@hanzo/dev 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-BCDMNW2g.js} +19 -19
- package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-BUidXqSs.js} +2460 -2460
- package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
- package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
- package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-2HD5qiyt.js} +227 -227
- package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-CuWvI5hS.js} +13 -13
- package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-Z2QVmBzu.js} +328 -328
- package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-CEfiCIGR.js} +3 -3
- package/dist/{DocumentPages-VSn83vty.js → DocumentPages-glImt2JO.js} +3 -3
- package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-iqO3LiIj.js} +404 -404
- package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-GwnRmXEh.js} +4 -4
- package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-CXWpTlfI.js} +1089 -1089
- package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-CDydHOXg.js} +2 -2
- package/dist/{FontViewer-CLDdwhSr.js → FontViewer-DDt9C5Cb.js} +5 -5
- package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-_sfrtw9j.js} +357 -357
- package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-coFQvyRw.js} +3 -3
- package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
- package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-D3RklYQB.js} +8 -8
- package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
- package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BmPdNxW5.js} +2 -2
- package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-BlKTevTF.js} +3 -3
- package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-C0gSEyeO.js} +10 -10
- package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-Ago_DWEt.js} +2 -2
- package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-DBRqtLet.js} +10 -10
- package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-DD_h7VLv.js} +287 -287
- package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-B4dxjpba.js} +4 -4
- package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
- package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-BwYKB-3e.js} +892 -892
- package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-6UU-M6_B.js} +3 -3
- package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-D-00K-A9.js} +3 -3
- package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-CiuHdDv8.js} +489 -489
- package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
- package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
- package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
- package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-pQXIfodT.js} +3 -3
- package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Cqfh5eN2.js} +476 -476
- package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-B4Lp8Ktf.js} +334 -334
- package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-7xXUUySV.js} +5 -5
- package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-B_yprjav.js} +2 -2
- package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
- package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
- package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-DCgE3ojz.js} +461 -461
- package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
- package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
- package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
- package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-BbVlDQYx.js} +18 -18
- package/dist/builder/api/models.d.ts +2 -0
- package/dist/builder/api/models.js +6 -1
- package/dist/builder/api/sandbox.d.ts +2 -0
- package/dist/builder/api/sandbox.js +3 -1
- package/dist/builder/desk.d.ts +6 -0
- package/dist/builder/desk.js +79 -14
- package/dist/builder/mind.d.ts +5 -5
- package/dist/builder/mind.js +35 -14
- package/dist/builder/pane.d.ts +1 -1
- package/dist/builder/pane.js +1 -1
- package/dist/builder/panel.js +5 -5
- package/dist/builder/preview-fallback.d.ts +47 -0
- package/dist/builder/preview-fallback.js +341 -0
- package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-DrjqPCpz.js} +5 -5
- package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
- package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
- package/dist/core.js +1 -1
- package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-ZtWU3urU.js} +2 -2
- package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
- package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
- package/dist/{embed-c030vUqM.js → embed-CPWZKyIW.js} +36098 -35677
- package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
- package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
- package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-DW94DZj4.js} +54 -54
- package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-Cfz-3q1U.js} +507 -507
- package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
- package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
- package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
- package/dist/keymap.js +1 -1
- package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
- package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
- package/dist/mediaSource-jW5c7b4r.js +70 -0
- package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
- package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
- package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
- package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
- package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
- package/dist/query-BPk2W3QN.js +63 -0
- package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-CjZdBNVR.js} +2 -2
- package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
- package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
- package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
- package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
- package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
- package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
- package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
- package/dist/{threadSearch-BHyWwcV3.js → threadSearch-CrtCof6n.js} +162 -162
- package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
- package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
- package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
- package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
- package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-PesehDX0.js} +33 -33
- package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
- package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
- package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-CNhjWfP0.js} +1 -1
- package/dist/{useSettings-DYG9Dmro.js → useSettings-B_MtcTyD.js} +139 -139
- package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-B1wCgLPO.js} +1404 -1404
- package/dist/{useTheme-D2ZM1gvV.js → useTheme-WlXpQRKG.js} +4 -4
- package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
- package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
- package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
- package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
- package/package.json +1 -1
- package/dist/mediaSource-zI7JWid4.js +0 -70
- package/dist/query-BxrrBAp6.js +0 -63
|
@@ -1,11 +1,11 @@
|
|
|
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 {
|
|
4
|
-
import { Cr as
|
|
5
|
-
import { L as ye, V as be, W as xe, _ as H, bt as Se, m as U, mt as Ce, v as we } from "./themePalette-
|
|
6
|
-
import { f as W, u as Te } from "./network-
|
|
7
|
-
import { c as Ee, i as G, t as K } from "./modelPickerVisibility-
|
|
8
|
-
import { an as q, ln as De } from "./threadSearch-
|
|
3
|
+
import { C_ as i, Fr as a, Gr as o, Hr as s, Kh as c, Mr as l, Or as u, Pr as d, Qc as f, Qh as p, S_ as m, Tf as h, Uh as g, Ur as _, Vr as v, Wr as y, _g as b, ar as x, b_ as S, cg as C, ci as w, di as ee, gr as T, hr as E, nc as D, pi as O, r as k, t as A, tl as j, vg as M, wg as te, x_ as ne, xg as re, xs as N, yr as P } from "./utils-DtKQl-D3.js";
|
|
4
|
+
import { Cr as ie, G as F, Jd as I, Jt as L, K as ae, N as oe, P as R, Qd as se, Rg as ce, Tr as le, a as ue, b as de, dy as fe, ea as pe, ef as me, nf as he, py as z, q as B, v as V, vu as ge, xo as _e, y as ve } from "./keybindings-D0pBlT1k.js";
|
|
5
|
+
import { L as ye, V as be, W as xe, _ as H, bt as Se, m as U, mt as Ce, v as we } from "./themePalette-C-GtwwqV.js";
|
|
6
|
+
import { f as W, u as Te } from "./network-wuXD7-is.js";
|
|
7
|
+
import { c as Ee, i as G, t as K } from "./modelPickerVisibility-DBTc5r1G.js";
|
|
8
|
+
import { an as q, ln as De } from "./threadSearch-CrtCof6n.js";
|
|
9
9
|
import { a as Oe, i as ke } from "./search-3oqTSaO6.js";
|
|
10
10
|
import { n as Ae } from "./chevron-up-B5PN0DAN.js";
|
|
11
11
|
import { r as je } from "./triangle-alert-CpJvcOXh.js";
|
|
@@ -14,25 +14,25 @@ import { i as Ne, n as Pe, o as Fe, r as J, t as Ie } from "./table-2-CTB_FJbA.j
|
|
|
14
14
|
import { r as Le } from "./text-align-start-DgfaKVRZ.js";
|
|
15
15
|
import { t as Re } from "./trash-2-BSTDk3P8.js";
|
|
16
16
|
import { t as ze } from "./x-Bjr9Dwvl.js";
|
|
17
|
-
import { Bt as Y, _ as Be, g as Ve, gt as He, h as Ue, t as We, v as Ge, y as Ke } from "./ChatMarkdown-
|
|
18
|
-
import "./errors-
|
|
19
|
-
import { j as qe, p as Je } from "./useSettings-
|
|
20
|
-
import { S as Ye, T as Xe, b as Ze, s as Qe } from "./presentation-
|
|
21
|
-
import { t as $e } from "./use-atom-command-
|
|
22
|
-
import { p as et } from "./useTheme-
|
|
23
|
-
import { o as tt, t as nt } from "./assetUrls-
|
|
24
|
-
import { v as rt } from "./workspaceFocus-
|
|
25
|
-
import { B as it } from "./fileExplorerLabel-
|
|
26
|
-
import { t as at } from "./ExpandedImageDialog-
|
|
27
|
-
import { A as ot, D as st, E as ct, F as lt, M as ut, N as dt, O as ft, P as pt, T as mt, b as ht, j as gt, k as _t, o as vt, x as yt, y as bt } from "./browserLinkTarget-
|
|
28
|
-
import { t as xt } from "./scroll-area-
|
|
29
|
-
import { v as St } from "./useTextFieldSpeech-
|
|
30
|
-
import { D as Ct, E as wt, S as Tt, T as Et, c as Dt, d as Ot, i as kt, l as At, p as jt, s as Mt, w as Nt } from "./Icons-
|
|
31
|
-
import { at as Pt } from "./DiffCommentAnnotation-
|
|
32
|
-
import { i as Ft } from "./fileContextMenu-
|
|
33
|
-
import { a as It, i as Lt, l as Rt, n as zt, t as Bt } from "./PreviewImage-
|
|
34
|
-
import { t as Vt } from "./delimitedPreview-
|
|
35
|
-
import { a as Ht, i as Ut, o as Wt, r as Gt, s as Kt } from "./fileSurfaceChrome-
|
|
17
|
+
import { Bt as Y, _ as Be, g as Ve, gt as He, h as Ue, t as We, v as Ge, y as Ke } from "./ChatMarkdown-BUidXqSs.js";
|
|
18
|
+
import "./errors-D8_Zn8KN.js";
|
|
19
|
+
import { j as qe, p as Je } from "./useSettings-B_MtcTyD.js";
|
|
20
|
+
import { S as Ye, T as Xe, b as Ze, s as Qe } from "./presentation-68y8EAuH.js";
|
|
21
|
+
import { t as $e } from "./use-atom-command-XemtT1Gv.js";
|
|
22
|
+
import { p as et } from "./useTheme-WlXpQRKG.js";
|
|
23
|
+
import { o as tt, t as nt } from "./assetUrls-D8lRk7Xd.js";
|
|
24
|
+
import { v as rt } from "./workspaceFocus-MR1plm6A.js";
|
|
25
|
+
import { B as it } from "./fileExplorerLabel-Cfz-3q1U.js";
|
|
26
|
+
import { t as at } from "./ExpandedImageDialog-iqO3LiIj.js";
|
|
27
|
+
import { A as ot, D as st, E as ct, F as lt, M as ut, N as dt, O as ft, P as pt, T as mt, b as ht, j as gt, k as _t, o as vt, x as yt, y as bt } from "./browserLinkTarget-BbVlDQYx.js";
|
|
28
|
+
import { t as xt } from "./scroll-area-CEoyjC7h.js";
|
|
29
|
+
import { v as St } from "./useTextFieldSpeech-B1wCgLPO.js";
|
|
30
|
+
import { D as Ct, E as wt, S as Tt, T as Et, c as Dt, d as Ot, i as kt, l as At, p as jt, s as Mt, w as Nt } from "./Icons-CdegMw5l.js";
|
|
31
|
+
import { at as Pt } from "./DiffCommentAnnotation-2HD5qiyt.js";
|
|
32
|
+
import { i as Ft } from "./fileContextMenu-DW94DZj4.js";
|
|
33
|
+
import { a as It, i as Lt, l as Rt, n as zt, t as Bt } from "./PreviewImage-6UU-M6_B.js";
|
|
34
|
+
import { t as Vt } from "./delimitedPreview-DbbXcqOT.js";
|
|
35
|
+
import { a as Ht, i as Ut, o as Wt, r as Gt, s as Kt } from "./fileSurfaceChrome-BDyKklTq.js";
|
|
36
36
|
import { Suspense as qt, createContext as Jt, lazy as Yt, memo as Xt, use as Zt, useEffect as Qt, useEffectEvent as $t, useId as en, useLayoutEffect as tn, useRef as nn, useState as X, useSyncExternalStore as rn } from "react";
|
|
37
37
|
import { c as Z } from "react/compiler-runtime";
|
|
38
38
|
import { Fragment as an, jsx as Q, jsxs as $ } from "react/jsx-runtime";
|
|
@@ -67,7 +67,7 @@ function vn(e) {
|
|
|
67
67
|
ln = ln.filter((t) => t.source !== e), un.includes(e) && mn();
|
|
68
68
|
}
|
|
69
69
|
// src/components/files/projectFilesQueryState.ts
|
|
70
|
-
var yn = "", bn =
|
|
70
|
+
var yn = "", bn = p(M(!1)), xn = p(M(!1)).pipe(C("project-file-query:empty"));
|
|
71
71
|
function Sn(e, t, n) {
|
|
72
72
|
return q.optimisticFile({
|
|
73
73
|
environmentId: e,
|
|
@@ -101,7 +101,7 @@ function En(e, t, n) {
|
|
|
101
101
|
}
|
|
102
102
|
function Dn(e, t, n, r) {
|
|
103
103
|
let i = Sn(e, t, n);
|
|
104
|
-
Cn.has(i) || Cn.set(i,
|
|
104
|
+
Cn.has(i) || Cn.set(i, D.mount(i)), D.set(i, {
|
|
105
105
|
saved: !1,
|
|
106
106
|
data: {
|
|
107
107
|
relativePath: n,
|
|
@@ -112,30 +112,30 @@ function Dn(e, t, n, r) {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
function On(e, t, n) {
|
|
115
|
-
return
|
|
115
|
+
return D.get(Sn(e, t, n))?.data ?? null;
|
|
116
116
|
}
|
|
117
117
|
function kn(e, t, n) {
|
|
118
118
|
let r = On(e, t, n);
|
|
119
119
|
if (r) return r.contents;
|
|
120
|
-
let
|
|
121
|
-
return
|
|
120
|
+
let i = D.get(En(e, t, n)), a = fe(te(i));
|
|
121
|
+
return a?.exists === !1 ? void 0 : a?.contents;
|
|
122
122
|
}
|
|
123
123
|
function An(e, t, n) {
|
|
124
|
-
let r =
|
|
124
|
+
let r = D.get(Sn(e, t, n));
|
|
125
125
|
return r?.saved ? null : r?.data ?? null;
|
|
126
126
|
}
|
|
127
127
|
function jn(e, t, n, r) {
|
|
128
|
-
let i = Sn(e, t, n), a =
|
|
128
|
+
let i = Sn(e, t, n), a = D.get(i);
|
|
129
129
|
if (a?.data.contents !== r) return !1;
|
|
130
130
|
let o = En(e, t, n);
|
|
131
|
-
return
|
|
131
|
+
return D.set(i, {
|
|
132
132
|
...a,
|
|
133
133
|
saved: !0,
|
|
134
134
|
confirmingQuery: o
|
|
135
|
-
}), wn(i),
|
|
135
|
+
}), wn(i), D.refresh(o), !0;
|
|
136
136
|
}
|
|
137
137
|
function Mn(e, t, n, r) {
|
|
138
|
-
return n === null ? r :
|
|
138
|
+
return n === null ? r : D.get(Sn(e, t, n))?.data ?? r;
|
|
139
139
|
}
|
|
140
140
|
function Nn(e) {
|
|
141
141
|
return e._tag === "Failure" ? ce(e.cause) : null;
|
|
@@ -144,22 +144,22 @@ function Pn(e, t) {
|
|
|
144
144
|
return e === null ? null : Te(e, t) ?? t(n("Workspace query failed."));
|
|
145
145
|
}
|
|
146
146
|
var Fn = he(pe);
|
|
147
|
-
function In(e, t, i, a,
|
|
148
|
-
let
|
|
149
|
-
|
|
150
|
-
let
|
|
151
|
-
|
|
152
|
-
let y = v,
|
|
153
|
-
|
|
154
|
-
let
|
|
155
|
-
|
|
156
|
-
let
|
|
157
|
-
return
|
|
158
|
-
data:
|
|
159
|
-
error:
|
|
160
|
-
isPending:
|
|
147
|
+
function In(e, t, i, a, o) {
|
|
148
|
+
let s = Z(23), l = o === void 0 ? r : o, u = tt(e, l), { canReadFiles: d } = u, f, p, m;
|
|
149
|
+
s[0] !== d || s[1] !== t || s[2] !== i || s[3] !== e || s[4] !== a ? (f = d ? Tn(e, t, i) : bn, p = c, m = Ft(f, d ? a : void 0), s[0] = d, s[1] = t, s[2] = i, s[3] = e, s[4] = a, s[5] = f, s[6] = p, s[7] = m) : (f = s[5], p = s[6], m = s[7]);
|
|
150
|
+
let h = p(m), _ = g(f), v;
|
|
151
|
+
s[8] === _ ? v = s[9] : (v = () => _(), s[8] = _, s[9] = v);
|
|
152
|
+
let y = v, x;
|
|
153
|
+
s[10] === h ? x = s[11] : (x = b(h, Ln), s[10] = h, s[11] = x);
|
|
154
|
+
let S;
|
|
155
|
+
s[12] !== d || s[13] !== u.error || s[14] !== u.isPending || s[15] !== l || s[16] !== h ? (S = u.isPending ? null : d ? Pn(Nn(h), l) : u.error ?? l(n("This connection cannot read host files.")), s[12] = d, s[13] = u.error, s[14] = u.isPending, s[15] = l, s[16] = h, s[17] = S) : S = s[17];
|
|
156
|
+
let C = u.isPending || h.waiting, w;
|
|
157
|
+
return s[18] !== y || s[19] !== x || s[20] !== S || s[21] !== C ? (w = {
|
|
158
|
+
data: x,
|
|
159
|
+
error: S,
|
|
160
|
+
isPending: C,
|
|
161
161
|
refresh: y
|
|
162
|
-
},
|
|
162
|
+
}, s[18] = y, s[19] = x, s[20] = S, s[21] = C, s[22] = w) : w = s[22], w;
|
|
163
163
|
}
|
|
164
164
|
function Ln() {
|
|
165
165
|
return null;
|
|
@@ -187,30 +187,30 @@ function Rn(e, t, n, i, a, o) {
|
|
|
187
187
|
matchedQuery: f.searchedQuery
|
|
188
188
|
}, s[11] = f.error, s[12] = f.isPending, s[13] = f.searchedQuery, s[14] = p, s[15] = m) : m = s[15], m;
|
|
189
189
|
}
|
|
190
|
-
function zn(e, t, i, a,
|
|
191
|
-
let
|
|
192
|
-
|
|
193
|
-
let
|
|
194
|
-
|
|
195
|
-
let
|
|
196
|
-
|
|
197
|
-
let
|
|
198
|
-
|
|
199
|
-
let
|
|
200
|
-
if (
|
|
190
|
+
function zn(e, t, i, a, o) {
|
|
191
|
+
let s = Z(37), l = a === void 0 || a, u = o === void 0 ? r : o, d = tt(e, u), { canReadFiles: f } = d, p = l, m;
|
|
192
|
+
s[0] !== f || s[1] !== t || s[2] !== l || s[3] !== e || s[4] !== i ? (m = l && f ? En(e, t, i) : xn, s[0] = f, s[1] = t, s[2] = l, s[3] = e, s[4] = i, s[5] = m) : m = s[5];
|
|
193
|
+
let h = m, _ = c(h), v = g(h), y;
|
|
194
|
+
s[6] === v ? y = s[7] : (y = () => v(), s[6] = v, s[7] = y);
|
|
195
|
+
let x = y, S;
|
|
196
|
+
s[8] === _ ? S = s[9] : (S = b(_, Bn), s[8] = _, s[9] = S);
|
|
197
|
+
let C = S, w = C?.exists === !1, ee = i ?? yn, T;
|
|
198
|
+
s[10] !== t || s[11] !== e || s[12] !== ee ? (T = Sn(e, t, ee), s[10] = t, s[11] = e, s[12] = ee, s[13] = T) : T = s[13];
|
|
199
|
+
let E = c(T), D = i === null ? null : E, O, k, A, j, M;
|
|
200
|
+
if (s[14] !== f || s[15] !== d.error || s[16] !== d.isPending || s[17] !== w || s[18] !== p || s[19] !== D || s[20] !== C || s[21] !== i || s[22] !== u || s[23] !== _) {
|
|
201
201
|
let e = Nn(_);
|
|
202
|
-
|
|
203
|
-
} else
|
|
204
|
-
let te =
|
|
205
|
-
return
|
|
206
|
-
data:
|
|
207
|
-
error:
|
|
202
|
+
A = Fn(e) ? e : null, O = f ? D?.data ?? (w ? null : C) : null, k = A?.failure === "path_not_file", j = O, M = !p || d.isPending ? null : f ? w && !D ? u(n("''{path}'' does not exist.", { path: i })) : Pn(e, u) : d.error ?? u(n("This connection cannot read host files.")), s[14] = f, s[15] = d.error, s[16] = d.isPending, s[17] = w, s[18] = p, s[19] = D, s[20] = C, s[21] = i, s[22] = u, s[23] = _, s[24] = O, s[25] = k, s[26] = A, s[27] = j, s[28] = M;
|
|
203
|
+
} else O = s[24], k = s[25], A = s[26], j = s[27], M = s[28];
|
|
204
|
+
let te = p && (d.isPending || _.waiting), ne = !k && (O !== null || A?.failure === "binary_file"), re;
|
|
205
|
+
return s[29] !== k || s[30] !== A || s[31] !== x || s[32] !== ne || s[33] !== j || s[34] !== M || s[35] !== te ? (re = {
|
|
206
|
+
data: j,
|
|
207
|
+
error: M,
|
|
208
208
|
isPending: te,
|
|
209
|
-
readError:
|
|
210
|
-
isNotFile:
|
|
209
|
+
readError: A,
|
|
210
|
+
isNotFile: k,
|
|
211
211
|
isFile: ne,
|
|
212
|
-
refresh:
|
|
213
|
-
},
|
|
212
|
+
refresh: x
|
|
213
|
+
}, s[29] = k, s[30] = A, s[31] = x, s[32] = ne, s[33] = j, s[34] = M, s[35] = te, s[36] = re) : re = s[36], re;
|
|
214
214
|
}
|
|
215
215
|
function Bn() {
|
|
216
216
|
return null;
|
|
@@ -218,7 +218,7 @@ function Bn() {
|
|
|
218
218
|
// src/components/chat/threadDetailsPanelStyles.ts
|
|
219
219
|
var Vn = "bg-transparent shadow-none", Hn = "hover:!bg-black/[0.035] data-pressed:!bg-black/[0.035] dark:hover:!bg-white/[0.08] dark:data-pressed:!bg-white/[0.08]", Un = "hover:bg-black/[0.035] dark:hover:bg-white/[0.08]", Wn = `${Vn} ${Hn}`, Gn = `${Wn} data-popup-open:!bg-black/[0.035] dark:data-popup-open:!bg-white/[0.08]`, Kn = `${Hn} has-[[data-popup-open]]:bg-black/[0.035] dark:has-[[data-popup-open]]:bg-white/[0.08]`, qn = "gap-2.5 px-2.5 text-left", Jn = "[text-box:trim-both_cap_alphabetic] overflow-x-clip overflow-y-visible", Yn = `h-8 min-w-0 rounded-lg border-transparent ${qn} text-[13px] font-medium text-foreground/80`, Xn = `${Yn} w-full justify-start ${Wn}`, Zn = `${Xn} gap-0 px-0 [&_[data-slot=select-icon]]:-me-px [&_[data-slot=select-icon]]:relative [&_[data-slot=select-icon]]:flex [&_[data-slot=select-icon]]:h-full [&_[data-slot=select-icon]]:w-8 [&_[data-slot=select-icon]]:shrink-0 [&_[data-slot=select-icon]]:items-center [&_[data-slot=select-icon]]:justify-center [&_[data-slot=select-icon]]:before:absolute [&_[data-slot=select-icon]]:before:-left-px [&_[data-slot=select-icon]]:before:top-1/2 [&_[data-slot=select-icon]]:before:h-4 [&_[data-slot=select-icon]]:before:w-px [&_[data-slot=select-icon]]:before:-translate-y-1/2 [&_[data-slot=select-icon]]:before:bg-transparent hover:[&_[data-slot=select-icon]]:before:bg-border/65 data-popup-open:[&_[data-slot=select-icon]]:before:bg-border/65 [&_[data-slot=select-icon]>svg]:me-0 [&_[data-slot=select-icon]>svg]:size-4 [&_[data-slot=select-icon]>svg]:text-muted-foreground [&_[data-slot=select-icon]>svg]:opacity-100`, Qn = `flex h-full min-w-0 flex-1 items-center rounded-s-lg ${qn} ${Un}`, $n = `rounded-e-lg ${Un}`, er = `h-8 w-full min-w-0 justify-start rounded-lg border border-transparent ${qn} text-[13px] font-medium text-foreground/80 sm:h-8 sm:text-[13px]`, tr = "size-4 shrink-0 text-muted-foreground", nr = "size-4 shrink-0 text-muted-foreground", rr = `size-6 justify-center rounded-md border-transparent bg-transparent p-0 sm:size-6 ${Wn}`, ir = `h-6 gap-1 rounded-md border-transparent px-1.5 text-xs font-medium text-muted-foreground ${Wn}`, ar = `group/details-split flex w-full items-center rounded-lg ${Kn}`, or = `${Yn} flex-1 justify-start rounded-e-none ${Gn}`, sr = `${Yn} h-auto min-h-8 w-8 self-stretch justify-center rounded-s-none px-0 ${Gn}`, cr = "h-4 w-px shrink-0 bg-transparent group-hover/details-split:bg-border/65 group-has-[[data-popup-open]]/details-split:bg-border/65", lr = {
|
|
220
220
|
row: Xn,
|
|
221
|
-
title:
|
|
221
|
+
title: A(Xn, "h-auto min-h-8 items-start pt-1.5 pb-0 disabled:opacity-100 sm:h-auto [&>svg]:mt-px"),
|
|
222
222
|
select: Zn,
|
|
223
223
|
primary: or,
|
|
224
224
|
secondary: sr,
|
|
@@ -230,12 +230,12 @@ function ur(e) {
|
|
|
230
230
|
if (t[0] !== e) {
|
|
231
231
|
let { panel: m, part: h, multiline: g, tone: _, className: v, children: y, size: b, variant: x, render: S, ...C } = e;
|
|
232
232
|
r = v, n = y, s = S, o = C, a = m === void 0 || m;
|
|
233
|
-
let
|
|
233
|
+
let w = h === void 0 ? "row" : h;
|
|
234
234
|
i = g !== void 0 && g;
|
|
235
|
-
let
|
|
236
|
-
c = b === void 0 ? "default" : b, p = x === void 0 ? "default" : x, f =
|
|
237
|
-
let
|
|
238
|
-
t[13] !== n || t[14] !==
|
|
235
|
+
let T = _ === void 0 ? "default" : _;
|
|
236
|
+
c = b === void 0 ? "default" : b, p = x === void 0 ? "default" : x, f = ee, l = "button", u = s;
|
|
237
|
+
let E;
|
|
238
|
+
t[13] !== n || t[14] !== w ? (E = w === "select" ? /* @__PURE__ */ $(an, { children: [/* @__PURE__ */ Q("span", {
|
|
239
239
|
"data-slot": "select-label",
|
|
240
240
|
className: Qn,
|
|
241
241
|
children: n
|
|
@@ -243,10 +243,10 @@ function ur(e) {
|
|
|
243
243
|
"data-slot": "select-icon",
|
|
244
244
|
className: $n,
|
|
245
245
|
children: /* @__PURE__ */ Q(Ae, { className: nr })
|
|
246
|
-
})] }) : n, t[13] = n, t[14] =
|
|
246
|
+
})] }) : n, t[13] = n, t[14] = w, t[15] = E) : E = t[15], d = N({
|
|
247
247
|
type: s ? void 0 : "button",
|
|
248
|
-
className:
|
|
249
|
-
}, o, { children:
|
|
248
|
+
className: A("relative inline-flex shrink-0 cursor-pointer items-center whitespace-nowrap border outline-none transition-[box-shadow,scale] [&:not([aria-haspopup]):not(:disabled):not([aria-disabled=true])]:will-change-[scale] [&:active:not([aria-haspopup])]:scale-[0.97] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background pointer-coarse:after:absolute pointer-coarse:after:top-1/2 pointer-coarse:after:left-1/2 pointer-coarse:after:size-full pointer-coarse:after:min-h-8 pointer-coarse:after:min-w-8 pointer-coarse:after:-translate-x-1/2 pointer-coarse:after:-translate-y-1/2 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 disabled:pointer-events-none disabled:opacity-64 aria-disabled:cursor-not-allowed aria-disabled:opacity-64 [&_svg]:shrink-0", lr[w], i && "h-auto min-h-8 py-1.5 disabled:opacity-100 sm:h-auto", T === "muted" && "text-muted-foreground hover:text-foreground/80", T === "primary" && "bg-black/[0.035] text-foreground/80 hover:text-foreground hover:!bg-black/[0.06] data-pressed:!bg-black/[0.06] dark:bg-white/[0.08] dark:hover:!bg-white/[0.12] dark:data-pressed:!bg-white/[0.12]", T === "destructive" && "text-destructive hover:text-destructive data-pressed:text-destructive", w === "meta" && (T === "primary" || T === "destructive") && "h-5 focus-visible:ring-1 focus-visible:ring-offset-0", w === "meta" && T === "destructive" && "bg-destructive/10 hover:!bg-destructive/16 data-pressed:!bg-destructive/16 dark:hover:!bg-destructive/16 dark:data-pressed:!bg-destructive/16", r)
|
|
249
|
+
}, o, { children: E }), t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s, t[7] = c, t[8] = l, t[9] = u, t[10] = d, t[11] = f, t[12] = p;
|
|
250
250
|
} else n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6], c = t[7], l = t[8], u = t[9], d = t[10], f = t[11], p = t[12];
|
|
251
251
|
let m;
|
|
252
252
|
t[16] !== l || t[17] !== u || t[18] !== d ? (m = {
|
|
@@ -257,7 +257,7 @@ function ur(e) {
|
|
|
257
257
|
let h = f(m);
|
|
258
258
|
if (!a) {
|
|
259
259
|
let e = i ? "sm-multiline" : c, a;
|
|
260
|
-
return t[20] !== n || t[21] !== r || t[22] !== o || t[23] !== s || t[24] !== e || t[25] !== p ? (a = /* @__PURE__ */ Q(
|
|
260
|
+
return t[20] !== n || t[21] !== r || t[22] !== o || t[23] !== s || t[24] !== e || t[25] !== p ? (a = /* @__PURE__ */ Q(w, {
|
|
261
261
|
...o,
|
|
262
262
|
render: s,
|
|
263
263
|
size: e,
|
|
@@ -282,7 +282,7 @@ function hr(e) {
|
|
|
282
282
|
return e instanceof Element && e.closest("[role=\"alertdialog\"]") !== null;
|
|
283
283
|
}
|
|
284
284
|
function gr(e, t) {
|
|
285
|
-
let { commands: n, options: r } = e, i = V(t, r.keybindings?.() ??
|
|
285
|
+
let { commands: n, options: r } = e, i = V(t, r.keybindings?.() ?? D.get(Ce), { context: {
|
|
286
286
|
...mr(t),
|
|
287
287
|
...r.context?.()
|
|
288
288
|
} });
|
|
@@ -381,7 +381,7 @@ function Fr(e) {
|
|
|
381
381
|
return e.replace(Pr, (e) => e.replace(/[^\r\n]/g, " "));
|
|
382
382
|
}
|
|
383
383
|
// src/components/files/BinaryFilePreview.tsx
|
|
384
|
-
var Ir = Yt(() => import("./BinaryViewer-
|
|
384
|
+
var Ir = Yt(() => import("./BinaryViewer-BCDMNW2g.js"));
|
|
385
385
|
function Lr(e) {
|
|
386
386
|
let t = Z(3), n;
|
|
387
387
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(Wt, {}), t[0] = n) : n = t[0];
|
|
@@ -434,8 +434,8 @@ var Ur = /* @__PURE__ */ new Set([
|
|
|
434
434
|
"thread.previous",
|
|
435
435
|
"thread.next",
|
|
436
436
|
...le,
|
|
437
|
-
...
|
|
438
|
-
]), Wr = (e) => /\.pdf$/i.test(e.split(/[?#]/, 1)[0] ?? ""), Gr = Yt(() => import("./PdfViewer-
|
|
437
|
+
...ie
|
|
438
|
+
]), Wr = (e) => /\.pdf$/i.test(e.split(/[?#]/, 1)[0] ?? ""), Gr = Yt(() => import("./PdfViewer-BanXvPmz.js"));
|
|
439
439
|
function Kr(e) {
|
|
440
440
|
let t = Z(7), n;
|
|
441
441
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
@@ -556,15 +556,15 @@ function Zr(e) {
|
|
|
556
556
|
function Qr(e) {
|
|
557
557
|
let t = Z(55), n = zr(), r = nn(null), i;
|
|
558
558
|
t[0] !== e.containScroll || t[1] !== e.src || t[2] !== n ? (i = () => `${e.src.split("#", 1)[0]}${ft(n)}${e.containScroll ? bt : ""}`, t[0] = e.containScroll, t[1] = e.src, t[2] = n, t[3] = i) : i = t[3];
|
|
559
|
-
let [a] = X(i), [
|
|
559
|
+
let [a] = X(i), [o, s] = X(!1), [l, u] = X(null), d;
|
|
560
560
|
t[4] === n ? d = t[5] : (d = () => {
|
|
561
561
|
r.current?.contentWindow?.postMessage(_t(n), "*");
|
|
562
562
|
}, t[4] = n, t[5] = d);
|
|
563
563
|
let f = d, p;
|
|
564
564
|
t[6] === n ? p = t[7] : (p = [n], t[6] = n, t[7] = p), Qt(f, p);
|
|
565
|
-
let m =
|
|
565
|
+
let m = c(Ce), h = c(Se.configValueAtom(e.threadRef?.environmentId ?? null))?.keybindings, g, _;
|
|
566
566
|
if (t[8] !== h || t[9] !== m) {
|
|
567
|
-
let e =
|
|
567
|
+
let e = F(navigator.platform), n = (t) => ({
|
|
568
568
|
key: t.key,
|
|
569
569
|
metaKey: t.metaKey || t.modKey && e,
|
|
570
570
|
ctrlKey: t.ctrlKey || t.modKey && !e,
|
|
@@ -590,20 +590,20 @@ function Qr(e) {
|
|
|
590
590
|
}, navigator.platform), n = v.filter(t);
|
|
591
591
|
return n.length > 0 && !g.some(t) && (e.key.length === 1 || e.key === "Dead" || n.some((t) => t.key === B(e.key)));
|
|
592
592
|
}, t[18] = g, t[19] = v, t[20] = S) : S = t[20];
|
|
593
|
-
let C = $t(S), w = Y(e.threadRef),
|
|
594
|
-
t[21] !== w || t[22] !==
|
|
593
|
+
let C = $t(S), w = Y(e.threadRef), ee = St(e.threadRef), T;
|
|
594
|
+
t[21] !== w || t[22] !== ee || t[23] !== e.threadRef ? (T = (t, n) => {
|
|
595
595
|
n.metaKey || n.ctrlKey ? Xe()?.shell.openExternal(t).catch(ni) : e.threadRef !== void 0 && w({
|
|
596
596
|
...n,
|
|
597
597
|
preventDefault: ti,
|
|
598
598
|
stopPropagation: ei
|
|
599
|
-
}, t, void 0, e.threadRef.environmentId) ||
|
|
600
|
-
}, t[21] = w, t[22] =
|
|
601
|
-
let
|
|
602
|
-
t[25] !== l || t[26] !==
|
|
603
|
-
if (l !== null) return
|
|
604
|
-
},
|
|
599
|
+
}, t, void 0, e.threadRef.environmentId) || ee(t, { event: n }).catch($r);
|
|
600
|
+
}, t[21] = w, t[22] = ee, t[23] = e.threadRef, t[24] = T) : T = t[24];
|
|
601
|
+
let E = $t(T), { onFullscreenChange: D } = e, O, k;
|
|
602
|
+
t[25] !== l || t[26] !== D ? (O = () => {
|
|
603
|
+
if (l !== null) return D?.(!0), () => D?.(!1);
|
|
604
|
+
}, k = [l, D], t[25] = l, t[26] = D, t[27] = O, t[28] = k) : (O = t[27], k = t[28]), Qt(O, k);
|
|
605
605
|
let j;
|
|
606
|
-
t[29] !== C || t[30] !==
|
|
606
|
+
t[29] !== C || t[30] !== E || t[31] !== e ? (j = (t, n) => {
|
|
607
607
|
let r = ut(n.data);
|
|
608
608
|
if (r !== void 0) {
|
|
609
609
|
e.onContentHeight?.(r);
|
|
@@ -612,7 +612,7 @@ function Qr(e) {
|
|
|
612
612
|
if (document.activeElement !== t || navigator.userActivation?.isActive === !1) return;
|
|
613
613
|
let i = lt(n.data);
|
|
614
614
|
if (i !== void 0) {
|
|
615
|
-
|
|
615
|
+
E(i.url, i), t.contentWindow?.postMessage(mt(i.id), "*");
|
|
616
616
|
return;
|
|
617
617
|
}
|
|
618
618
|
let a = pt(n.data);
|
|
@@ -629,45 +629,45 @@ function Qr(e) {
|
|
|
629
629
|
images: [...o.images],
|
|
630
630
|
index: o.index
|
|
631
631
|
});
|
|
632
|
-
}, t[29] = C, t[30] =
|
|
633
|
-
let
|
|
634
|
-
t[33] ===
|
|
632
|
+
}, t[29] = C, t[30] = E, t[31] = e, t[32] = j) : j = t[32];
|
|
633
|
+
let M = $t(j), te;
|
|
634
|
+
t[33] === M ? te = t[34] : (te = () => {
|
|
635
635
|
let e = r.current;
|
|
636
636
|
if (e === null) return;
|
|
637
637
|
let t = (t) => {
|
|
638
|
-
t.source === e.contentWindow &&
|
|
638
|
+
t.source === e.contentWindow && M(e, t);
|
|
639
639
|
};
|
|
640
640
|
return window.addEventListener("message", t), () => window.removeEventListener("message", t);
|
|
641
|
-
}, t[33] =
|
|
641
|
+
}, t[33] = M, t[34] = te);
|
|
642
642
|
let ne;
|
|
643
643
|
t[35] === Symbol.for("react.memo_cache_sentinel") ? (ne = [], t[35] = ne) : ne = t[35], tn(te, ne);
|
|
644
|
-
let
|
|
645
|
-
t[36] !== b || t[37] !== f ? (
|
|
646
|
-
|
|
647
|
-
}, t[36] = b, t[37] = f, t[38] =
|
|
648
|
-
let
|
|
649
|
-
t[39] === e.className ?
|
|
650
|
-
let re;
|
|
651
|
-
t[41] !== s || t[42] !== n ? (re = s ? { colorScheme: n.appearance } : void 0, t[41] = s, t[42] = n, t[43] = re) : re = t[43];
|
|
644
|
+
let re = e.title, N;
|
|
645
|
+
t[36] !== b || t[37] !== f ? (N = () => {
|
|
646
|
+
s(!0), f(), b();
|
|
647
|
+
}, t[36] = b, t[37] = f, t[38] = N) : N = t[38];
|
|
648
|
+
let P;
|
|
649
|
+
t[39] === e.className ? P = t[40] : (P = A("border-0 scheme-light", e.className), t[39] = e.className, t[40] = P);
|
|
652
650
|
let ie;
|
|
653
|
-
t[
|
|
651
|
+
t[41] !== o || t[42] !== n ? (ie = o ? { colorScheme: n.appearance } : void 0, t[41] = o, t[42] = n, t[43] = ie) : ie = t[43];
|
|
652
|
+
let I;
|
|
653
|
+
t[44] !== e.title || t[45] !== a || t[46] !== N || t[47] !== P || t[48] !== ie ? (I = /* @__PURE__ */ Q("iframe", {
|
|
654
654
|
ref: r,
|
|
655
655
|
src: a,
|
|
656
|
-
title:
|
|
656
|
+
title: re,
|
|
657
657
|
sandbox: "allow-scripts allow-forms",
|
|
658
658
|
allow: "fullscreen",
|
|
659
659
|
loading: "lazy",
|
|
660
|
-
onLoad:
|
|
661
|
-
className:
|
|
662
|
-
style:
|
|
663
|
-
}), t[44] = e.title, t[45] = a, t[46] =
|
|
660
|
+
onLoad: N,
|
|
661
|
+
className: P,
|
|
662
|
+
style: ie
|
|
663
|
+
}), t[44] = e.title, t[45] = a, t[46] = N, t[47] = P, t[48] = ie, t[49] = I) : I = t[49];
|
|
664
664
|
let L;
|
|
665
665
|
t[50] === l ? L = t[51] : (L = l === null ? null : /* @__PURE__ */ Q(at, {
|
|
666
666
|
preview: l,
|
|
667
667
|
onClose: () => u(null)
|
|
668
668
|
}), t[50] = l, t[51] = L);
|
|
669
669
|
let oe;
|
|
670
|
-
return t[52] !==
|
|
670
|
+
return t[52] !== I || t[53] !== L ? (oe = /* @__PURE__ */ $(an, { children: [I, L] }), t[52] = I, t[53] = L, t[54] = oe) : oe = t[54], oe;
|
|
671
671
|
}
|
|
672
672
|
function $r(e) {
|
|
673
673
|
return console.error(e);
|
|
@@ -681,7 +681,7 @@ function ri(e) {
|
|
|
681
681
|
return !Ur.has(e.command);
|
|
682
682
|
}
|
|
683
683
|
// src/components/files/DelimitedTablePreview.tsx
|
|
684
|
-
var ii = Yt(() => import("./LargeTextViewer-
|
|
684
|
+
var ii = Yt(() => import("./LargeTextViewer-D3RklYQB.js"));
|
|
685
685
|
function ai(e) {
|
|
686
686
|
let t = Z(3), n;
|
|
687
687
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(Wt, {}), t[0] = n) : n = t[0];
|
|
@@ -692,7 +692,7 @@ function ai(e) {
|
|
|
692
692
|
}), t[1] = e, t[2] = r), r;
|
|
693
693
|
}
|
|
694
694
|
// src/components/files/AttachmentFilePreview.tsx
|
|
695
|
-
var oi = Yt(() => import("./LargeTextViewer-
|
|
695
|
+
var oi = Yt(() => import("./LargeTextViewer-D3RklYQB.js")), si = Yt(() => import("./OfficeFilePreview-Ago_DWEt.js").then((e) => ({ default: e.OfficeFilePreview }))), ci = Yt(() => import("./FontFilePreview-CDydHOXg.js").then((e) => ({ default: e.FontFilePreview }))), li = Yt(() => import("./MermaidFilePreview-BmPdNxW5.js").then((e) => ({ default: e.MermaidFilePreview }))), ui = Yt(() => import("./ReadOnlySourcePreview-7xXUUySV.js").then((e) => e.n)), di = 3e5, fi = /* @__PURE__ */ new WeakMap(), pi = 0;
|
|
696
696
|
function mi(e) {
|
|
697
697
|
let t = fi.get(e) ?? `blob:${pi++}`;
|
|
698
698
|
return fi.set(e, t), t;
|
|
@@ -710,34 +710,34 @@ function gi(e, t, r) {
|
|
|
710
710
|
return r(n(e === "mermaid" ? t ? "Show Mermaid source" : "Show rendered diagram" : e === "markdown" ? t ? "Show markdown source" : "Show rendered markdown" : e === "table" ? t ? "Show source" : "Show table" : t ? "Show HTML source" : "Show rendered page"));
|
|
711
711
|
}
|
|
712
712
|
function _i(e) {
|
|
713
|
-
let t = Z(118),
|
|
714
|
-
t[0] === e ?
|
|
715
|
-
let
|
|
716
|
-
t[2] === e ?
|
|
717
|
-
let
|
|
718
|
-
t[4] === e ?
|
|
719
|
-
let
|
|
720
|
-
t[6] === e.name ?
|
|
721
|
-
let
|
|
722
|
-
t[8] ===
|
|
723
|
-
let { copyToClipboard:
|
|
724
|
-
t[10] !==
|
|
713
|
+
let t = Z(118), a;
|
|
714
|
+
t[0] === e ? a = t[1] : (a = It(e), t[0] = e, t[1] = a);
|
|
715
|
+
let o = a, s;
|
|
716
|
+
t[2] === e ? s = t[3] : (s = Rt(e), t[2] = e, t[3] = s);
|
|
717
|
+
let c = s, l;
|
|
718
|
+
t[4] === e ? l = t[5] : (l = Vt(e), t[4] = e, t[5] = l);
|
|
719
|
+
let u = l, d = o === "mermaid" ? "mermaid" : o === "markdown" ? "markdown" : o === "html" ? "html" : u ? "table" : null, p = e.asset && "attachmentId" in e.asset ? e.asset.attachmentId : void 0, g = i(), _ = m(), v;
|
|
720
|
+
t[6] === e.name ? v = t[7] : (v = Ze(e.name), t[6] = e.name, t[7] = v);
|
|
721
|
+
let y;
|
|
722
|
+
t[8] === v ? y = t[9] : (y = { target: v }, t[8] = v, t[9] = y);
|
|
723
|
+
let { copyToClipboard: b, isCopied: x } = Ye(y), C;
|
|
724
|
+
t[10] !== p || t[11] !== e.asset || t[12] !== e.mimeType || t[13] !== e.name ? (C = e.asset && "resource" in e.asset ? e.asset.resource : p ? {
|
|
725
725
|
_tag: "attachment",
|
|
726
|
-
attachmentId:
|
|
726
|
+
attachmentId: p,
|
|
727
727
|
fileName: e.name,
|
|
728
728
|
mimeType: e.mimeType,
|
|
729
729
|
disposition: "inline"
|
|
730
|
-
} : null, t[10] =
|
|
731
|
-
let
|
|
732
|
-
t[15] ===
|
|
733
|
-
...
|
|
730
|
+
} : null, t[10] = p, t[11] = e.asset, t[12] = e.mimeType, t[13] = e.name, t[14] = C) : C = t[14];
|
|
731
|
+
let w = C, ee;
|
|
732
|
+
t[15] === w ? ee = t[16] : (ee = w ? w._tag === "draft-workspace-file" ? w : {
|
|
733
|
+
...w,
|
|
734
734
|
disposition: "attachment"
|
|
735
|
-
} : null, t[15] =
|
|
736
|
-
let T =
|
|
735
|
+
} : null, t[15] = w, t[16] = ee);
|
|
736
|
+
let T = ee, E = nt(e.file ? null : e.asset?.environmentId ?? null, e.file ? null : w), D = nt(e.asset?.environmentId ?? null, T), [O, k] = X(!1), [j, M] = X(null), [te, N] = X(null), [P, ie] = X(!0), [F, I] = X(0), [L, ae] = X(null), [oe, R] = X(null), [se, le] = X(null), ue = nn(null), de = nn(0), fe, pe;
|
|
737
737
|
t[17] === e.file ? (fe = t[18], pe = t[19]) : (fe = () => {
|
|
738
738
|
if (!e.file) return;
|
|
739
739
|
let t = URL.createObjectURL(e.file);
|
|
740
|
-
return
|
|
740
|
+
return M(t), () => URL.revokeObjectURL(t);
|
|
741
741
|
}, pe = [e.file], t[17] = e.file, t[18] = fe, t[19] = pe), Qt(fe, pe);
|
|
742
742
|
let me;
|
|
743
743
|
t[20] !== e.file || t[21] !== E ? (me = () => {
|
|
@@ -755,13 +755,13 @@ function _i(e) {
|
|
|
755
755
|
};
|
|
756
756
|
}, t[20] = e.file, t[21] = E, t[22] = me) : me = t[22];
|
|
757
757
|
let he;
|
|
758
|
-
t[23] !== e.file || t[24] !== E || t[25] !==
|
|
758
|
+
t[23] !== e.file || t[24] !== E || t[25] !== F ? (he = [
|
|
759
759
|
e.file,
|
|
760
760
|
E,
|
|
761
|
-
|
|
762
|
-
], t[23] = e.file, t[24] = E, t[25] =
|
|
763
|
-
let z = e.file ?
|
|
764
|
-
t[27] !== V || t[28] !== e.file || t[29] !== e.sizeBytes || t[30] !== E || t[31] !==
|
|
761
|
+
F
|
|
762
|
+
], t[23] = e.file, t[24] = E, t[25] = F, t[26] = he) : he = t[26], Qt(me, he);
|
|
763
|
+
let z = e.file ? j : te, B = o === "text" && (e.sizeBytes > 1048576 || e.sizeBytes === 0 && (!w || w._tag === "attachment")), V = o === "text" || o === "markdown" || o === "mermaid" || o === "html" && !P, ge, _e;
|
|
764
|
+
t[27] !== V || t[28] !== e.file || t[29] !== e.sizeBytes || t[30] !== E || t[31] !== F || t[32] !== B || t[33] !== z ? (ge = () => {
|
|
765
765
|
if (!V || B || !z) return;
|
|
766
766
|
let t = new AbortController();
|
|
767
767
|
ae(null), le(null);
|
|
@@ -782,7 +782,7 @@ function _i(e) {
|
|
|
782
782
|
} : await fetch(z, {
|
|
783
783
|
signal: t.signal,
|
|
784
784
|
...e.sizeBytes > 0 ? { headers: { Range: `bytes=0-${zt}` } } : {},
|
|
785
|
-
cache:
|
|
785
|
+
cache: F === 0 ? "default" : "reload"
|
|
786
786
|
}), t.signal);
|
|
787
787
|
t.signal.aborted || ae(a);
|
|
788
788
|
})().catch((e) => {
|
|
@@ -792,20 +792,20 @@ function _i(e) {
|
|
|
792
792
|
z,
|
|
793
793
|
V,
|
|
794
794
|
B,
|
|
795
|
-
|
|
795
|
+
F,
|
|
796
796
|
e.sizeBytes,
|
|
797
797
|
e.file,
|
|
798
798
|
E
|
|
799
|
-
], t[27] = V, t[28] = e.file, t[29] = e.sizeBytes, t[30] = E, t[31] =
|
|
800
|
-
let ve = oe ?? (V ? se : null), ye = Je(Si), [be, xe] = X(null), H = be ?? ye, Se = ve === null && V && (L !== null || B) && !(
|
|
801
|
-
t[36] !==
|
|
802
|
-
k(!0),
|
|
799
|
+
], t[27] = V, t[28] = e.file, t[29] = e.sizeBytes, t[30] = E, t[31] = F, t[32] = B, t[33] = z, t[34] = ge, t[35] = _e) : (ge = t[34], _e = t[35]), Qt(ge, _e);
|
|
800
|
+
let ve = oe ?? (V ? se : null), ye = Je(Si), [be, xe] = X(null), H = be ?? ye, Se = ve === null && V && (L !== null || B) && !(u && P) && (o !== "markdown" && o !== "mermaid" || !P), U;
|
|
801
|
+
t[36] !== g || t[37] !== D || t[38] !== e.file || t[39] !== e.name ? (U = () => {
|
|
802
|
+
k(!0), h(async () => {
|
|
803
803
|
let t = e.file;
|
|
804
804
|
if (!t) {
|
|
805
805
|
let e = await D();
|
|
806
|
-
if (!e) throw Error(
|
|
806
|
+
if (!e) throw Error(g("Reconnect to the environment and try again."));
|
|
807
807
|
let n = await fetch(e);
|
|
808
|
-
if (!n.ok) throw Error(
|
|
808
|
+
if (!n.ok) throw Error(g("The file could not be loaded. Try again."));
|
|
809
809
|
t = await n.blob();
|
|
810
810
|
}
|
|
811
811
|
let n = URL.createObjectURL(t);
|
|
@@ -813,22 +813,22 @@ function _i(e) {
|
|
|
813
813
|
let r = document.createElement("a");
|
|
814
814
|
r.href = n, r.download = e.name, r.click();
|
|
815
815
|
}).then((e) => {
|
|
816
|
-
if (!
|
|
816
|
+
if (!re(e)) {
|
|
817
817
|
let t = ce(e.cause);
|
|
818
818
|
Qe.add({
|
|
819
819
|
type: "error",
|
|
820
|
-
title:
|
|
821
|
-
description: Te(t, r) ??
|
|
820
|
+
title: g("Could not save file"),
|
|
821
|
+
description: Te(t, r) ?? g("Please try again.")
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
k(!1);
|
|
825
825
|
});
|
|
826
|
-
}, t[36] =
|
|
826
|
+
}, t[36] = g, t[37] = D, t[38] = e.file, t[39] = e.name, t[40] = U) : U = t[40];
|
|
827
827
|
let Ce = U, we;
|
|
828
|
-
t[41] !== L || t[42] !==
|
|
828
|
+
t[41] !== L || t[42] !== u || t[43] !== ve || t[44] !== g || t[45] !== o || t[46] !== V || t[47] !== c || t[48] !== e.asset || t[49] !== e.file || t[50] !== e.htmlRender || t[51] !== e.mimeType || t[52] !== e.name || t[53] !== e.sizeBytes || t[54] !== e.threadRef || t[55] !== P || t[56] !== F || t[57] !== B || t[58] !== z || t[59] !== H ? (we = ve ? /* @__PURE__ */ Q(Ht, {
|
|
829
829
|
message: ve,
|
|
830
830
|
onRetry: () => {
|
|
831
|
-
R(null),
|
|
831
|
+
R(null), I(xi);
|
|
832
832
|
}
|
|
833
833
|
}) : B && z ? /* @__PURE__ */ Q(qt, {
|
|
834
834
|
fallback: /* @__PURE__ */ Q(Wt, {}),
|
|
@@ -836,19 +836,19 @@ function _i(e) {
|
|
|
836
836
|
name: e.name,
|
|
837
837
|
src: z,
|
|
838
838
|
sizeBytes: e.sizeBytes,
|
|
839
|
-
onRetry: () =>
|
|
840
|
-
delimiter:
|
|
839
|
+
onRetry: () => I(bi),
|
|
840
|
+
delimiter: P ? u : null,
|
|
841
841
|
copyContents: ue,
|
|
842
842
|
wordWrap: H
|
|
843
|
-
}, `${z}:${
|
|
844
|
-
}) : !z || V && !L ? /* @__PURE__ */ Q(Wt, {}) : V && L ?
|
|
843
|
+
}, `${z}:${P}:${F}`)
|
|
844
|
+
}) : !z || V && !L ? /* @__PURE__ */ Q(Wt, {}) : V && L ? u && P ? /* @__PURE__ */ Q(ai, {
|
|
845
845
|
name: e.name,
|
|
846
846
|
text: L.text,
|
|
847
|
-
delimiter:
|
|
848
|
-
}) :
|
|
847
|
+
delimiter: u
|
|
848
|
+
}) : o === "mermaid" && P ? /* @__PURE__ */ Q(qt, {
|
|
849
849
|
fallback: /* @__PURE__ */ Q(Wt, {}),
|
|
850
850
|
children: /* @__PURE__ */ Q(li, { text: L.text })
|
|
851
|
-
}) :
|
|
851
|
+
}) : o === "markdown" && P ? /* @__PURE__ */ Q(xt, {
|
|
852
852
|
className: "min-h-0 flex-1",
|
|
853
853
|
children: /* @__PURE__ */ Q(We, {
|
|
854
854
|
text: Fr(L.text),
|
|
@@ -859,37 +859,37 @@ function _i(e) {
|
|
|
859
859
|
name: e.name,
|
|
860
860
|
text: L.text,
|
|
861
861
|
wordWrap: H
|
|
862
|
-
}) :
|
|
862
|
+
}) : o === "archive" || o === "sqlite" ? /* @__PURE__ */ Q(Lr, {
|
|
863
863
|
src: z,
|
|
864
864
|
name: e.name,
|
|
865
|
-
kind:
|
|
866
|
-
onRetry: () =>
|
|
867
|
-
},
|
|
865
|
+
kind: o,
|
|
866
|
+
onRetry: () => I(yi)
|
|
867
|
+
}, F) : o === "font" ? /* @__PURE__ */ Q(qt, {
|
|
868
868
|
fallback: /* @__PURE__ */ Q(Wt, {}),
|
|
869
869
|
children: /* @__PURE__ */ Q(ci, {
|
|
870
870
|
src: z,
|
|
871
871
|
name: e.name
|
|
872
872
|
})
|
|
873
|
-
}) :
|
|
873
|
+
}) : c ? /* @__PURE__ */ Q(qt, {
|
|
874
874
|
fallback: /* @__PURE__ */ Q(Wt, {}),
|
|
875
875
|
children: /* @__PURE__ */ Q(si, {
|
|
876
876
|
src: z,
|
|
877
877
|
name: e.name,
|
|
878
|
-
kind:
|
|
878
|
+
kind: c,
|
|
879
879
|
sizeBytes: e.sizeBytes
|
|
880
880
|
})
|
|
881
|
-
}) :
|
|
881
|
+
}) : o === "pdf" || o === "html" ? /* @__PURE__ */ Q(Jr, {
|
|
882
882
|
src: z,
|
|
883
883
|
title: e.name,
|
|
884
|
-
pdf:
|
|
884
|
+
pdf: o === "pdf",
|
|
885
885
|
htmlRender: e.htmlRender === !0,
|
|
886
886
|
threadRef: e.threadRef,
|
|
887
|
-
documentKey:
|
|
888
|
-
}) :
|
|
887
|
+
documentKey: o === "pdf" ? e.file ? mi(e.file) : e.asset && "attachmentId" in e.asset ? `${e.asset.environmentId}:${e.asset.attachmentId}` : void 0 : void 0
|
|
888
|
+
}) : o === "audio" ? /* @__PURE__ */ Q(He, {
|
|
889
889
|
src: z,
|
|
890
890
|
name: e.name,
|
|
891
|
-
onError: () => R(
|
|
892
|
-
}) :
|
|
891
|
+
onError: () => R(g("Unable to load audio."))
|
|
892
|
+
}) : o === "video" ? /* @__PURE__ */ Q("div", {
|
|
893
893
|
className: "flex min-h-0 flex-1 items-center justify-center bg-black",
|
|
894
894
|
children: /* @__PURE__ */ Q("video", {
|
|
895
895
|
controls: !0,
|
|
@@ -897,31 +897,31 @@ function _i(e) {
|
|
|
897
897
|
src: z,
|
|
898
898
|
"aria-label": e.name,
|
|
899
899
|
className: "max-h-full max-w-full",
|
|
900
|
-
onError: () => R(
|
|
900
|
+
onError: () => R(g("Unable to load video."))
|
|
901
901
|
})
|
|
902
|
-
}) :
|
|
902
|
+
}) : o === "image" ? /* @__PURE__ */ Q(Bt, {
|
|
903
903
|
src: z,
|
|
904
904
|
name: e.name,
|
|
905
905
|
mimeType: e.mimeType,
|
|
906
|
-
onError: () => R(
|
|
906
|
+
onError: () => R(g("Unable to load image."))
|
|
907
907
|
}, z) : /* @__PURE__ */ $("div", {
|
|
908
908
|
className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-1 px-6 text-center",
|
|
909
909
|
children: [/* @__PURE__ */ Q("p", {
|
|
910
910
|
className: "text-sm font-medium",
|
|
911
|
-
children: /* @__PURE__ */ Q(
|
|
911
|
+
children: /* @__PURE__ */ Q(S, { children: "No preview for this file" })
|
|
912
912
|
}), /* @__PURE__ */ Q("p", {
|
|
913
913
|
className: "max-w-sm text-xs leading-relaxed text-muted-foreground",
|
|
914
|
-
children: e.name.split(".").at(-1) ? /* @__PURE__ */ $(
|
|
914
|
+
children: e.name.split(".").at(-1) ? /* @__PURE__ */ $(S, { children: [
|
|
915
915
|
"Save it to open in an app that supports ",
|
|
916
|
-
/* @__PURE__ */ Q(
|
|
916
|
+
/* @__PURE__ */ Q(ne, { children: e.name.split(".").at(-1) }),
|
|
917
917
|
" files."
|
|
918
|
-
] }) : /* @__PURE__ */ Q(
|
|
918
|
+
] }) : /* @__PURE__ */ Q(S, { children: "Save it to open in an app that supports this format files." })
|
|
919
919
|
})]
|
|
920
|
-
}), t[41] = L, t[42] =
|
|
920
|
+
}), t[41] = L, t[42] = u, t[43] = ve, t[44] = g, t[45] = o, t[46] = V, t[47] = c, t[48] = e.asset, t[49] = e.file, t[50] = e.htmlRender, t[51] = e.mimeType, t[52] = e.name, t[53] = e.sizeBytes, t[54] = e.threadRef, t[55] = P, t[56] = F, t[57] = B, t[58] = z, t[59] = H, t[60] = we) : we = t[60];
|
|
921
921
|
let W = we, Ee;
|
|
922
|
-
t[61] === Symbol.for("react.memo_cache_sentinel") ? (Ee =
|
|
922
|
+
t[61] === Symbol.for("react.memo_cache_sentinel") ? (Ee = A(Gt), t[61] = Ee) : Ee = t[61];
|
|
923
923
|
let G;
|
|
924
|
-
t[62] !==
|
|
924
|
+
t[62] !== g || t[63] !== e.origin ? (G = e.origin ?? g("Attachment"), t[62] = g, t[63] = e.origin, t[64] = G) : G = t[64];
|
|
925
925
|
let K;
|
|
926
926
|
t[65] === G ? K = t[66] : (K = /* @__PURE__ */ Q("span", {
|
|
927
927
|
className: "shrink-0 px-0.5 text-muted-foreground",
|
|
@@ -936,10 +936,10 @@ function _i(e) {
|
|
|
936
936
|
children: e.name
|
|
937
937
|
}), t[68] = e.name, t[69] = De);
|
|
938
938
|
let Ae;
|
|
939
|
-
t[70] !==
|
|
939
|
+
t[70] !== _ || t[71] !== e.sizeBytes ? (Ae = e.sizeBytes > 0 ? /* @__PURE__ */ Q("span", {
|
|
940
940
|
className: "ml-2 shrink-0 text-muted-foreground",
|
|
941
|
-
children:
|
|
942
|
-
}) : null, t[70] =
|
|
941
|
+
children: f(e.sizeBytes, _)
|
|
942
|
+
}) : null, t[70] = _, t[71] = e.sizeBytes, t[72] = Ae) : Ae = t[72];
|
|
943
943
|
let Pe;
|
|
944
944
|
t[73] !== K || t[74] !== De || t[75] !== Ae ? (Pe = /* @__PURE__ */ $("div", {
|
|
945
945
|
className: "flex min-w-0 flex-1 items-center text-xs",
|
|
@@ -951,59 +951,59 @@ function _i(e) {
|
|
|
951
951
|
]
|
|
952
952
|
}), t[73] = K, t[74] = De, t[75] = Ae, t[76] = Pe) : Pe = t[76];
|
|
953
953
|
let J;
|
|
954
|
-
t[77] !==
|
|
955
|
-
label: gi(
|
|
956
|
-
pressed:
|
|
957
|
-
onPress: () =>
|
|
958
|
-
children: Q(
|
|
959
|
-
}) : null, t[77] =
|
|
954
|
+
t[77] !== _ || t[78] !== P || t[79] !== d ? (J = d ? /* @__PURE__ */ Q(Ut, {
|
|
955
|
+
label: gi(d, P, _),
|
|
956
|
+
pressed: P,
|
|
957
|
+
onPress: () => ie(vi),
|
|
958
|
+
children: Q(P ? Fe : d === "table" ? Ie : Ne, { className: "size-3.5" })
|
|
959
|
+
}) : null, t[77] = _, t[78] = P, t[79] = d, t[80] = J) : J = t[80];
|
|
960
960
|
let Y;
|
|
961
|
-
t[81] !==
|
|
962
|
-
label:
|
|
961
|
+
t[81] !== g || t[82] !== Se || t[83] !== H ? (Y = Se ? /* @__PURE__ */ Q(Ut, {
|
|
962
|
+
label: g(H ? "Disable word wrap" : "Enable word wrap"),
|
|
963
963
|
pressed: H,
|
|
964
964
|
onPress: () => xe(!H),
|
|
965
965
|
children: /* @__PURE__ */ Q(Me, { className: "size-3.5" })
|
|
966
|
-
}) : null, t[81] =
|
|
966
|
+
}) : null, t[81] = g, t[82] = Se, t[83] = H, t[84] = Y) : Y = t[84];
|
|
967
967
|
let Be;
|
|
968
|
-
t[85] !== L || t[86] !==
|
|
969
|
-
label:
|
|
968
|
+
t[85] !== L || t[86] !== b || t[87] !== g || t[88] !== x || t[89] !== B ? (Be = L || B ? /* @__PURE__ */ Q(Ut, {
|
|
969
|
+
label: x ? g("Copied") : L?.truncated ? g("Copy preview") : g("Copy contents"),
|
|
970
970
|
onPress: () => {
|
|
971
971
|
if (L) {
|
|
972
|
-
|
|
972
|
+
b(L.text, void 0);
|
|
973
973
|
return;
|
|
974
974
|
}
|
|
975
975
|
let e = ue.current;
|
|
976
|
-
e ? e().then((e) =>
|
|
976
|
+
e ? e().then((e) => b(e, void 0)).catch((e) => Qe.add({
|
|
977
977
|
type: "error",
|
|
978
|
-
title:
|
|
979
|
-
description: Te(e, r) ??
|
|
978
|
+
title: g("Could not copy file"),
|
|
979
|
+
description: Te(e, r) ?? g("Try again.")
|
|
980
980
|
})) : Qe.add({
|
|
981
981
|
type: "error",
|
|
982
|
-
title:
|
|
983
|
-
description:
|
|
982
|
+
title: g("Could not copy file"),
|
|
983
|
+
description: g("Wait for the file to finish loading before copying.")
|
|
984
984
|
});
|
|
985
985
|
},
|
|
986
|
-
children: Q(
|
|
987
|
-
}) : null, t[85] = L, t[86] =
|
|
986
|
+
children: Q(x ? Oe : je, { className: "size-3.5" })
|
|
987
|
+
}) : null, t[85] = L, t[86] = b, t[87] = g, t[88] = x, t[89] = B, t[90] = Be) : Be = t[90];
|
|
988
988
|
let Ve;
|
|
989
|
-
t[91] !==
|
|
990
|
-
label:
|
|
989
|
+
t[91] !== g || t[92] !== Ce || t[93] !== O || t[94] !== z ? (Ve = z ? /* @__PURE__ */ Q(Ut, {
|
|
990
|
+
label: g(O ? "Preparing file…" : "Save file"),
|
|
991
991
|
disabled: O,
|
|
992
992
|
onPress: Ce,
|
|
993
993
|
children: /* @__PURE__ */ Q(Le, { className: "size-3.5" })
|
|
994
|
-
}) : null, t[91] =
|
|
994
|
+
}) : null, t[91] = g, t[92] = Ce, t[93] = O, t[94] = z, t[95] = Ve) : Ve = t[95];
|
|
995
995
|
let Ue;
|
|
996
|
-
t[96] !==
|
|
997
|
-
label:
|
|
996
|
+
t[96] !== g || t[97] !== e.onRemove ? (Ue = e.onRemove ? /* @__PURE__ */ Q(Ut, {
|
|
997
|
+
label: g("Remove from draft"),
|
|
998
998
|
onPress: e.onRemove,
|
|
999
999
|
children: /* @__PURE__ */ Q(Re, { className: "size-3.5" })
|
|
1000
|
-
}) : null, t[96] =
|
|
1000
|
+
}) : null, t[96] = g, t[97] = e.onRemove, t[98] = Ue) : Ue = t[98];
|
|
1001
1001
|
let Ge;
|
|
1002
|
-
t[99] !==
|
|
1003
|
-
label:
|
|
1002
|
+
t[99] !== g || t[100] !== e.onClose ? (Ge = e.onClose ? /* @__PURE__ */ Q(Ut, {
|
|
1003
|
+
label: g("Close", { $context: "button, closes the file preview" }),
|
|
1004
1004
|
onPress: e.onClose,
|
|
1005
1005
|
children: /* @__PURE__ */ Q(ze, { className: "size-3.5" })
|
|
1006
|
-
}) : null, t[99] =
|
|
1006
|
+
}) : null, t[99] = g, t[100] = e.onClose, t[101] = Ge) : Ge = t[101];
|
|
1007
1007
|
let Ke;
|
|
1008
1008
|
t[102] !== Pe || t[103] !== J || t[104] !== Y || t[105] !== Be || t[106] !== Ve || t[107] !== Ue || t[108] !== Ge ? (Ke = /* @__PURE__ */ $("div", {
|
|
1009
1009
|
className: Ee,
|
|
@@ -1019,7 +1019,7 @@ function _i(e) {
|
|
|
1019
1019
|
]
|
|
1020
1020
|
}), t[102] = Pe, t[103] = J, t[104] = Y, t[105] = Be, t[106] = Ve, t[107] = Ue, t[108] = Ge, t[109] = Ke) : Ke = t[109];
|
|
1021
1021
|
let qe;
|
|
1022
|
-
t[110] !== L?.truncated || t[111] !==
|
|
1022
|
+
t[110] !== L?.truncated || t[111] !== g || t[112] !== e.sizeBytes ? (qe = L?.truncated ? /* @__PURE__ */ Q(Kt, { children: e.sizeBytes > 0 ? g("Preview limited to the first 1 MB of a {size} byte file. Save the file to read it in full.", { size: e.sizeBytes.toLocaleString() }) : g("Preview limited to the first 1 MB. Save the file to read it in full.") }) : null, t[110] = L?.truncated, t[111] = g, t[112] = e.sizeBytes, t[113] = qe) : qe = t[113];
|
|
1023
1023
|
let Xe;
|
|
1024
1024
|
return t[114] !== W || t[115] !== Ke || t[116] !== qe ? (Xe = /* @__PURE__ */ $("div", {
|
|
1025
1025
|
className: "flex min-h-0 flex-1 flex-col overflow-hidden bg-background",
|
|
@@ -1046,7 +1046,7 @@ function Si(e) {
|
|
|
1046
1046
|
return e.wordWrap;
|
|
1047
1047
|
}
|
|
1048
1048
|
// src/components/chat/composerMentionDrag.ts
|
|
1049
|
-
var Ci = "application/x-hanzodev-composer-mention", wi = "application/x-hanzodev-pull-request", Ti = me(ge), Ei =
|
|
1049
|
+
var Ci = "application/x-hanzodev-composer-mention", wi = "application/x-hanzodev-pull-request", Ti = me(ge), Ei = I(Ti), Di = se(Ti);
|
|
1050
1050
|
function Oi(e) {
|
|
1051
1051
|
let t = e.replace(/\/+$/, "");
|
|
1052
1052
|
return t.length === 0 ? null : it(t);
|
|
@@ -1097,9 +1097,9 @@ function Ni(e) {
|
|
|
1097
1097
|
let t = Z(10), n, r, i;
|
|
1098
1098
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, orientation: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
1099
1099
|
let a = i === void 0 ? "horizontal" : i, o;
|
|
1100
|
-
t[4] === n ? o = t[5] : (o =
|
|
1100
|
+
t[4] === n ? o = t[5] : (o = A("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch", n), t[4] = n, t[5] = o);
|
|
1101
1101
|
let s;
|
|
1102
|
-
return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */ Q(
|
|
1102
|
+
return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */ Q(O, {
|
|
1103
1103
|
className: o,
|
|
1104
1104
|
"data-slot": "separator",
|
|
1105
1105
|
orientation: a,
|
|
@@ -1158,7 +1158,7 @@ function Ii(e) {
|
|
|
1158
1158
|
], t[9] = i, t[10] = a, t[11] = o, t[12] = c, t[13] = l, t[14] = f, t[15] = u, t[16] = m) : m = t[16], Qt(p, m);
|
|
1159
1159
|
}
|
|
1160
1160
|
// src/components/ui/group.tsx
|
|
1161
|
-
var Li =
|
|
1161
|
+
var Li = j("flex w-fit *:focus-visible:z-1 has-[>[data-slot=group]]:gap-2 *:has-focus-visible:z-1 dark:*:[[data-slot=button]:hover~[data-slot=separator]:not([data-slot]:hover~[data-slot=separator]~[data-slot=separator]),[data-slot][data-pressed]~[data-slot=separator]:not([data-slot][data-pressed]~[data-slot=separator]~[data-slot=separator])]:before:bg-input/64 dark:*:[[data-slot=separator]:has(~[data-slot=button]:hover):not(:has(~[data-slot=separator]~[data-slot]:hover)),[data-slot=separator]:has(~[data-slot][data-pressed]):not(:has(~[data-slot=separator]~[data-slot][data-pressed]))]:before:bg-input/64", {
|
|
1162
1162
|
defaultVariants: { orientation: "horizontal" },
|
|
1163
1163
|
variants: { orientation: {
|
|
1164
1164
|
horizontal: "*:[[data-slot]~[data-slot]:not([data-slot=separator])]:before:-start-[0.5px] *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:-end-[0.5px] *:pointer-coarse:after:min-w-auto *:data-slot:has-[~[data-slot]]:rounded-e-none *:data-slot:has-[~[data-slot]]:border-e-0 *:data-slot:has-[~[data-slot]]:before:rounded-e-none *:[[data-slot]~[data-slot]]:rounded-s-none *:[[data-slot]~[data-slot]]:border-s-0 *:[[data-slot]~[data-slot]]:before:rounded-s-none",
|
|
@@ -1169,7 +1169,7 @@ function Ri(e) {
|
|
|
1169
1169
|
let t = Z(13), n, r, i, a;
|
|
1170
1170
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4]) : ({className: r, orientation: i, children: n, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a);
|
|
1171
1171
|
let o;
|
|
1172
|
-
t[5] !== r || t[6] !== i ? (o =
|
|
1172
|
+
t[5] !== r || t[6] !== i ? (o = A(Li({ orientation: i }), r), t[5] = r, t[6] = i, t[7] = o) : o = t[7];
|
|
1173
1173
|
let s;
|
|
1174
1174
|
return t[8] !== n || t[9] !== i || t[10] !== a || t[11] !== o ? (s = /* @__PURE__ */ Q("div", {
|
|
1175
1175
|
className: o,
|
|
@@ -1184,7 +1184,7 @@ function zi(e) {
|
|
|
1184
1184
|
let t = Z(10), n, r, i;
|
|
1185
1185
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, orientation: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
1186
1186
|
let a = i === void 0 ? "vertical" : i, o;
|
|
1187
|
-
t[4] === n ? o = t[5] : (o =
|
|
1187
|
+
t[4] === n ? o = t[5] : (o = A("[[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+input+&]:-translate-x-px pointer-events-none relative z-2 bg-input before:absolute before:inset-0 has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:translate-x-px has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:bg-ring dark:before:bg-input/32 [[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+&,[data-slot=number-field]:focus-within+input+&]:bg-ring", n), t[4] = n, t[5] = o);
|
|
1188
1188
|
let s;
|
|
1189
1189
|
return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */ Q(Ni, {
|
|
1190
1190
|
className: o,
|
|
@@ -2210,9 +2210,9 @@ var Bi = (e, t) => {
|
|
|
2210
2210
|
kind: "brand"
|
|
2211
2211
|
},
|
|
2212
2212
|
{
|
|
2213
|
-
Icon:
|
|
2213
|
+
Icon: F(e) ? At : k(e) ? Dt : J,
|
|
2214
2214
|
value: "file-manager",
|
|
2215
|
-
kind:
|
|
2215
|
+
kind: F(e) || k(e) ? "brand" : "generic"
|
|
2216
2216
|
}
|
|
2217
2217
|
], i = new Set(t);
|
|
2218
2218
|
return r.filter((e) => i.has(e.value)).map((t) => ({
|
|
@@ -2221,56 +2221,56 @@ var Bi = (e, t) => {
|
|
|
2221
2221
|
}));
|
|
2222
2222
|
};
|
|
2223
2223
|
function ea(e) {
|
|
2224
|
-
return
|
|
2224
|
+
return A(e === "brand" ? "text-foreground opacity-100" : "text-muted-foreground");
|
|
2225
2225
|
}
|
|
2226
2226
|
var ta = Xt(function(n) {
|
|
2227
|
-
let r = Z(133), { environmentId:
|
|
2228
|
-
r[0] !==
|
|
2229
|
-
if (!
|
|
2227
|
+
let r = Z(133), { environmentId: c, keybindings: f, availableEditors: p, openInCwd: h, openInCwdIsFile: g, presentation: b, compact: C, enableShortcut: w, displayMode: ee, revealFileManager: D } = n, O = g !== void 0 && g, k = b === void 0 ? "toolbar" : b, j = C !== void 0 && C, M = w === void 0 || w, te = ee === void 0 ? "toolbar" : ee, re = D !== void 0 && D, N = i(), ie = m(), F = te === "panel", I = F ? "div" : Ri, ae = nn(null), oe = $e(De.openInEditor, "open in editor"), R = Ge(c), se = e(c, _e), ce = R.mode === "local-exec" && !se, le = R.mode !== "remote-unavailable" && !ce, [ue, fe] = x(ce), pe = Ve(), [me, he] = Be(), z = qe(c)?.label ?? null, B = R.mode === "local-exec" ? p : pe, [V, ge] = vt(B), ve;
|
|
2228
|
+
r[0] !== c || r[1] !== he || r[2] !== h || r[3] !== O || r[4] !== oe || r[5] !== V || r[6] !== R.host || r[7] !== R.mode || r[8] !== re || r[9] !== ge ? (ve = async (e) => {
|
|
2229
|
+
if (!h) return !1;
|
|
2230
2230
|
let n = e ?? V;
|
|
2231
2231
|
if (!n || R.mode === "remote-unavailable") return !1;
|
|
2232
2232
|
if (R.mode === "remote-links") {
|
|
2233
2233
|
let e = L({
|
|
2234
2234
|
editor: n,
|
|
2235
2235
|
...R.host,
|
|
2236
|
-
absolutePath:
|
|
2236
|
+
absolutePath: h,
|
|
2237
2237
|
isFile: O
|
|
2238
2238
|
});
|
|
2239
2239
|
return e === void 0 || !await Ue(e) ? !1 : (he(), ge(n), !0);
|
|
2240
2240
|
}
|
|
2241
|
-
if (!t(
|
|
2241
|
+
if (!t(c, "orchestration:operate")) return !1;
|
|
2242
2242
|
let r = oe({
|
|
2243
|
-
environmentId:
|
|
2243
|
+
environmentId: c,
|
|
2244
2244
|
input: {
|
|
2245
|
-
cwd:
|
|
2245
|
+
cwd: h,
|
|
2246
2246
|
editor: n,
|
|
2247
|
-
...
|
|
2247
|
+
...re && n === "file-manager" ? { reveal: !0 } : {}
|
|
2248
2248
|
}
|
|
2249
2249
|
});
|
|
2250
2250
|
return ge(n), (await r)._tag === "Success";
|
|
2251
|
-
}, r[0] =
|
|
2251
|
+
}, r[0] = c, r[1] = he, r[2] = h, r[3] = O, r[4] = oe, r[5] = V, r[6] = R.host, r[7] = R.mode, r[8] = re, r[9] = ge, r[10] = ve) : ve = r[10];
|
|
2252
2252
|
let ye = ve, be;
|
|
2253
|
-
r[11] ===
|
|
2253
|
+
r[11] === f ? be = r[12] : (be = de(f, "editor.openFavorite"), r[11] = f, r[12] = be);
|
|
2254
2254
|
let xe = be, H = Zt(jr), Se, U, Ce, we, W, Te, Ee, G, K, q, Oe, ke, je, Me, Ne;
|
|
2255
|
-
if (r[13] !== H || r[14] !== le || r[15] !==
|
|
2255
|
+
if (r[13] !== H || r[14] !== le || r[15] !== j || r[16] !== B || r[17] !== M || r[18] !== z || r[19] !== N || r[20] !== ce || r[21] !== F || r[22] !== ie || r[23] !== xe || r[24] !== h || r[25] !== ye || r[26] !== V || r[27] !== k || r[28] !== R.mode || r[29] !== me || r[30] !== ge) {
|
|
2256
2256
|
Me = Symbol.for("react.early_return_sentinel");
|
|
2257
2257
|
bb0: {
|
|
2258
|
-
let e = $i(navigator.platform, B,
|
|
2258
|
+
let e = $i(navigator.platform, B, ie), t = e.find((e) => {
|
|
2259
2259
|
let { value: t } = e;
|
|
2260
2260
|
return t === V;
|
|
2261
2261
|
}) ?? null;
|
|
2262
|
-
we =
|
|
2262
|
+
we = F ? t ? N("Open in {editor}", { editor: t.label }) : N("Open in editor") : N("Open", { $context: "verb, opens the project in the preferred editor" });
|
|
2263
2263
|
let n = R.mode === "remote-unavailable" ? z === null ? N("No SSH route to this machine") : N("No SSH route to {environment}", { environment: z }) : R.mode === "remote-links" && e.length === 0 ? z === null ? N("Open from a computer to edit on this machine") : N("Open from a computer to edit on {environment}", { environment: z }) : null, i = n === null ? /* @__PURE__ */ $(an, { children: [
|
|
2264
|
-
e.length === 0 && /* @__PURE__ */ Q(
|
|
2264
|
+
e.length === 0 && /* @__PURE__ */ Q(l, {
|
|
2265
2265
|
density: k === "menu" ? "touch" : "default",
|
|
2266
2266
|
disabled: !0,
|
|
2267
|
-
children: /* @__PURE__ */ Q(
|
|
2267
|
+
children: /* @__PURE__ */ Q(S, { children: "No installed editors found" })
|
|
2268
2268
|
}),
|
|
2269
2269
|
e.map((e) => {
|
|
2270
2270
|
let { label: t, Icon: n, value: r, kind: i } = e;
|
|
2271
|
-
return /* @__PURE__ */ $(
|
|
2271
|
+
return /* @__PURE__ */ $(l, {
|
|
2272
2272
|
density: k === "menu" ? "touch" : "default",
|
|
2273
|
-
disabled: !
|
|
2273
|
+
disabled: !h || !le,
|
|
2274
2274
|
onClick: () => {
|
|
2275
2275
|
k === "menu" ? ye(r) : ge(r);
|
|
2276
2276
|
},
|
|
@@ -2279,17 +2279,17 @@ var ta = Xt(function(n) {
|
|
|
2279
2279
|
"aria-hidden": "true",
|
|
2280
2280
|
className: ea(i)
|
|
2281
2281
|
}),
|
|
2282
|
-
/* @__PURE__ */ Q(
|
|
2283
|
-
r === V && xe && /* @__PURE__ */ Q(
|
|
2282
|
+
/* @__PURE__ */ Q(d, { children: t }),
|
|
2283
|
+
r === V && xe && /* @__PURE__ */ Q(v, { children: xe })
|
|
2284
2284
|
]
|
|
2285
2285
|
}, r);
|
|
2286
2286
|
}),
|
|
2287
|
-
R.mode === "remote-links" && !me && /* @__PURE__ */ Q(
|
|
2287
|
+
R.mode === "remote-links" && !me && /* @__PURE__ */ Q(l, {
|
|
2288
2288
|
density: k === "menu" ? "touch" : "default",
|
|
2289
2289
|
disabled: !0,
|
|
2290
2290
|
children: z === null ? N("Opens over SSH. Needs your key on this machine") : N("Opens over SSH. Needs your key on {environment}", { environment: z })
|
|
2291
2291
|
})
|
|
2292
|
-
] }) : /* @__PURE__ */ Q(
|
|
2292
|
+
] }) : /* @__PURE__ */ Q(l, {
|
|
2293
2293
|
density: k === "menu" ? "touch" : "default",
|
|
2294
2294
|
disabled: !0,
|
|
2295
2295
|
children: n
|
|
@@ -2298,29 +2298,29 @@ var ta = Xt(function(n) {
|
|
|
2298
2298
|
let e;
|
|
2299
2299
|
r[48] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Q(Pe, { className: "size-4" }), r[48] = e) : e = r[48];
|
|
2300
2300
|
let n;
|
|
2301
|
-
r[49] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(
|
|
2301
|
+
r[49] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(d, { children: /* @__PURE__ */ Q(S, { children: "Open in…" }) }), r[49] = n) : n = r[49];
|
|
2302
2302
|
let i;
|
|
2303
|
-
r[50] === ce ? i = r[51] : (i = /* @__PURE__ */ $(
|
|
2303
|
+
r[50] === ce ? i = r[51] : (i = /* @__PURE__ */ $(y, {
|
|
2304
2304
|
density: "touch",
|
|
2305
2305
|
disabled: ce,
|
|
2306
2306
|
children: [e, n]
|
|
2307
2307
|
}), r[50] = ce, r[51] = i);
|
|
2308
2308
|
let a;
|
|
2309
|
-
r[52] === U ? a = r[53] : (a = /* @__PURE__ */ Q(
|
|
2309
|
+
r[52] === U ? a = r[53] : (a = /* @__PURE__ */ Q(_, { children: U }), r[52] = U, r[53] = a);
|
|
2310
2310
|
let o;
|
|
2311
|
-
r[54] !== i || r[55] !== a ? (o = /* @__PURE__ */ $(
|
|
2311
|
+
r[54] !== i || r[55] !== a ? (o = /* @__PURE__ */ $(s, { children: [i, a] }), r[54] = i, r[55] = a, r[56] = o) : o = r[56], Me = /* @__PURE__ */ $(an, { children: [t && /* @__PURE__ */ $(l, {
|
|
2312
2312
|
density: k === "menu" ? "touch" : "default",
|
|
2313
|
-
disabled: !
|
|
2313
|
+
disabled: !h || !le,
|
|
2314
2314
|
onClick: () => ye(V),
|
|
2315
2315
|
children: [
|
|
2316
|
-
/* @__PURE__ */ Q(t.Icon, { className:
|
|
2317
|
-
/* @__PURE__ */ Q(
|
|
2318
|
-
xe && /* @__PURE__ */ Q(
|
|
2316
|
+
/* @__PURE__ */ Q(t.Icon, { className: A("size-4", ea(t.kind)) }),
|
|
2317
|
+
/* @__PURE__ */ Q(d, { children: /* @__PURE__ */ $(S, { children: ["Open in ", /* @__PURE__ */ Q(ne, { children: t.label })] }) }),
|
|
2318
|
+
xe && /* @__PURE__ */ Q(v, { children: xe })
|
|
2319
2319
|
]
|
|
2320
2320
|
}), o] });
|
|
2321
2321
|
break bb0;
|
|
2322
2322
|
}
|
|
2323
|
-
Ce =
|
|
2323
|
+
Ce = j ? N("Open file in preferred editor") : we, Se = ur, Ne = Ce, W = "", Te = F ? "sm" : "xs", Ee = F ? "ghost" : "outline", G = "primary", K = F, q = !V || !h || !le, r[57] !== H || r[58] !== M ? (Oe = M && !H ? { [Pi]: "" } : {}, r[57] = H, r[58] = M, r[59] = Oe) : Oe = r[59], r[60] !== N || r[61] !== ye || r[62] !== V ? (ke = () => {
|
|
2324
2324
|
if (!V) return;
|
|
2325
2325
|
let e = Ke(V, navigator.platform);
|
|
2326
2326
|
ye(V).then((t) => {
|
|
@@ -2328,17 +2328,17 @@ var ta = Xt(function(n) {
|
|
|
2328
2328
|
});
|
|
2329
2329
|
}, r[60] = N, r[61] = ye, r[62] = V, r[63] = ke) : ke = r[63], je = t?.Icon ? /* @__PURE__ */ Q(t.Icon, {
|
|
2330
2330
|
"aria-hidden": "true",
|
|
2331
|
-
className:
|
|
2332
|
-
}) :
|
|
2331
|
+
className: A(F ? tr : "size-3.5", ea(t.kind))
|
|
2332
|
+
}) : F ? /* @__PURE__ */ Q(Pe, {
|
|
2333
2333
|
"aria-hidden": "true",
|
|
2334
2334
|
className: tr
|
|
2335
2335
|
}) : null;
|
|
2336
2336
|
}
|
|
2337
|
-
r[13] = H, r[14] = le, r[15] =
|
|
2337
|
+
r[13] = H, r[14] = le, r[15] = j, r[16] = B, r[17] = M, r[18] = z, r[19] = N, r[20] = ce, r[21] = F, r[22] = ie, r[23] = xe, r[24] = h, r[25] = ye, r[26] = V, r[27] = k, r[28] = R.mode, r[29] = me, r[30] = ge, r[31] = Se, r[32] = U, r[33] = Ce, r[34] = we, r[35] = W, r[36] = Te, r[37] = Ee, r[38] = G, r[39] = K, r[40] = q, r[41] = Oe, r[42] = ke, r[43] = je, r[44] = Me, r[45] = Ne;
|
|
2338
2338
|
} else Se = r[31], U = r[32], Ce = r[33], we = r[34], W = r[35], Te = r[36], Ee = r[37], G = r[38], K = r[39], q = r[40], Oe = r[41], ke = r[42], je = r[43], Me = r[44], Ne = r[45];
|
|
2339
2339
|
if (Me !== Symbol.for("react.early_return_sentinel")) return Me;
|
|
2340
|
-
let Fe =
|
|
2341
|
-
r[64] !==
|
|
2340
|
+
let Fe = j ? "sr-only" : "sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5", J;
|
|
2341
|
+
r[64] !== F || r[65] !== Fe ? (J = A(Fe, F && A("not-sr-only ml-0 min-w-0 truncate", "[text-box:trim-both_cap_alphabetic] overflow-x-clip overflow-y-visible")), r[64] = F, r[65] = Fe, r[66] = J) : J = r[66];
|
|
2342
2342
|
let Ie;
|
|
2343
2343
|
r[67] !== we || r[68] !== J ? (Ie = /* @__PURE__ */ Q("span", {
|
|
2344
2344
|
className: J,
|
|
@@ -2360,60 +2360,60 @@ var ta = Xt(function(n) {
|
|
|
2360
2360
|
let Re = Le, ze;
|
|
2361
2361
|
r[83] === N ? ze = r[84] : (ze = N("Open in editor"), r[83] = N, r[84] = ze);
|
|
2362
2362
|
let Y;
|
|
2363
|
-
r[85] ===
|
|
2363
|
+
r[85] === F ? Y = r[86] : (Y = F ? {
|
|
2364
2364
|
className: ar,
|
|
2365
2365
|
ref: ae
|
|
2366
|
-
} : {}, r[85] =
|
|
2366
|
+
} : {}, r[85] = F, r[86] = Y);
|
|
2367
2367
|
let He;
|
|
2368
|
-
r[87] === Re ? He = r[88] : (He = /* @__PURE__ */ Q(
|
|
2368
|
+
r[87] === Re ? He = r[88] : (He = /* @__PURE__ */ Q(P, { render: Re }), r[87] = Re, r[88] = He);
|
|
2369
2369
|
let We;
|
|
2370
|
-
r[89] === Ce ? We = r[90] : (We = /* @__PURE__ */ Q(
|
|
2370
|
+
r[89] === Ce ? We = r[90] : (We = /* @__PURE__ */ Q(T, {
|
|
2371
2371
|
side: "top",
|
|
2372
2372
|
children: Ce
|
|
2373
2373
|
}), r[89] = Ce, r[90] = We);
|
|
2374
2374
|
let Je;
|
|
2375
|
-
r[91] !== He || r[92] !== We ? (Je = /* @__PURE__ */ $(
|
|
2375
|
+
r[91] !== He || r[92] !== We ? (Je = /* @__PURE__ */ $(E, { children: [He, We] }), r[91] = He, r[92] = We, r[93] = Je) : Je = r[93];
|
|
2376
2376
|
let Ye;
|
|
2377
|
-
r[94] !==
|
|
2377
|
+
r[94] !== j || r[95] !== F ? (Ye = F ? /* @__PURE__ */ Q("span", {
|
|
2378
2378
|
"aria-hidden": "true",
|
|
2379
2379
|
className: cr
|
|
2380
|
-
}) : /* @__PURE__ */ Q(zi, { ...
|
|
2380
|
+
}) : /* @__PURE__ */ Q(zi, { ...j ? {} : { className: "hidden @3xl/header-actions:block" } }), r[94] = j, r[95] = F, r[96] = Ye) : Ye = r[96];
|
|
2381
2381
|
let Xe;
|
|
2382
2382
|
r[97] === N ? Xe = r[98] : (Xe = N("Choose editor"), r[97] = N, r[98] = Xe);
|
|
2383
|
-
let Ze =
|
|
2384
|
-
r[99] !==
|
|
2383
|
+
let Ze = F ? "sm" : "icon-xs", Qe = F ? "ghost" : "outline", et;
|
|
2384
|
+
r[99] !== F || r[100] !== Xe || r[101] !== Ze || r[102] !== Qe ? (et = /* @__PURE__ */ Q(ur, {
|
|
2385
2385
|
"aria-label": Xe,
|
|
2386
2386
|
"data-toolbar-control": "",
|
|
2387
2387
|
size: Ze,
|
|
2388
2388
|
variant: Qe,
|
|
2389
2389
|
part: "secondary",
|
|
2390
|
-
panel:
|
|
2391
|
-
}), r[99] =
|
|
2390
|
+
panel: F
|
|
2391
|
+
}), r[99] = F, r[100] = Xe, r[101] = Ze, r[102] = Qe, r[103] = et) : et = r[103];
|
|
2392
2392
|
let tt;
|
|
2393
|
-
r[104] !== ce || r[105] !== et ? (tt = /* @__PURE__ */ Q(
|
|
2393
|
+
r[104] !== ce || r[105] !== et ? (tt = /* @__PURE__ */ Q(o, {
|
|
2394
2394
|
disabled: ce,
|
|
2395
2395
|
render: et
|
|
2396
2396
|
}), r[104] = ce, r[105] = et, r[106] = tt) : tt = r[106];
|
|
2397
|
-
let nt =
|
|
2397
|
+
let nt = F ? nr : "size-4", rt;
|
|
2398
2398
|
r[107] === nt ? rt = r[108] : (rt = /* @__PURE__ */ Q(Ae, {
|
|
2399
2399
|
"aria-hidden": "true",
|
|
2400
2400
|
className: nt
|
|
2401
2401
|
}), r[107] = nt, r[108] = rt);
|
|
2402
2402
|
let it;
|
|
2403
|
-
r[109] !== tt || r[110] !== rt ? (it = /* @__PURE__ */ Q(
|
|
2403
|
+
r[109] !== tt || r[110] !== rt ? (it = /* @__PURE__ */ Q(P, {
|
|
2404
2404
|
render: tt,
|
|
2405
2405
|
children: rt
|
|
2406
2406
|
}), r[109] = tt, r[110] = rt, r[111] = it) : it = r[111];
|
|
2407
2407
|
let at;
|
|
2408
|
-
r[112] === Symbol.for("react.memo_cache_sentinel") ? (at = /* @__PURE__ */ Q(
|
|
2408
|
+
r[112] === Symbol.for("react.memo_cache_sentinel") ? (at = /* @__PURE__ */ Q(T, {
|
|
2409
2409
|
side: "top",
|
|
2410
|
-
children: /* @__PURE__ */ Q(
|
|
2410
|
+
children: /* @__PURE__ */ Q(S, { children: "Choose editor" })
|
|
2411
2411
|
}), r[112] = at) : at = r[112];
|
|
2412
2412
|
let ot;
|
|
2413
|
-
r[113] === it ? ot = r[114] : (ot = /* @__PURE__ */ $(
|
|
2413
|
+
r[113] === it ? ot = r[114] : (ot = /* @__PURE__ */ $(E, { children: [it, at] }), r[113] = it, r[114] = ot);
|
|
2414
2414
|
let st;
|
|
2415
|
-
r[115] ===
|
|
2416
|
-
let ct =
|
|
2415
|
+
r[115] === F ? st = r[116] : (st = F ? { anchor: ae } : {}, r[115] = F, r[116] = st);
|
|
2416
|
+
let ct = F ? "w-(--anchor-width)" : void 0, lt;
|
|
2417
2417
|
r[117] !== U || r[118] !== st || r[119] !== ct ? (lt = /* @__PURE__ */ Q(a, {
|
|
2418
2418
|
align: "end",
|
|
2419
2419
|
...st,
|
|
@@ -2421,13 +2421,13 @@ var ta = Xt(function(n) {
|
|
|
2421
2421
|
children: U
|
|
2422
2422
|
}), r[117] = U, r[118] = st, r[119] = ct, r[120] = lt) : lt = r[120];
|
|
2423
2423
|
let ut;
|
|
2424
|
-
r[121] !== ue || r[122] !== fe || r[123] !== ot || r[124] !== lt ? (ut = /* @__PURE__ */ $(
|
|
2424
|
+
r[121] !== ue || r[122] !== fe || r[123] !== ot || r[124] !== lt ? (ut = /* @__PURE__ */ $(u, {
|
|
2425
2425
|
open: ue,
|
|
2426
2426
|
onOpenChange: fe,
|
|
2427
2427
|
children: [ot, lt]
|
|
2428
2428
|
}), r[121] = ue, r[122] = fe, r[123] = ot, r[124] = lt, r[125] = ut) : ut = r[125];
|
|
2429
2429
|
let dt;
|
|
2430
|
-
return r[126] !==
|
|
2430
|
+
return r[126] !== I || r[127] !== ze || r[128] !== Y || r[129] !== Je || r[130] !== Ye || r[131] !== ut ? (dt = /* @__PURE__ */ $(I, {
|
|
2431
2431
|
"aria-label": ze,
|
|
2432
2432
|
role: "group",
|
|
2433
2433
|
...Y,
|
|
@@ -2436,6 +2436,6 @@ var ta = Xt(function(n) {
|
|
|
2436
2436
|
Ye,
|
|
2437
2437
|
ut
|
|
2438
2438
|
]
|
|
2439
|
-
}), r[126] =
|
|
2439
|
+
}), r[126] = I, r[127] = ze, r[128] = Y, r[129] = Je, r[130] = Ye, r[131] = ut, r[132] = dt) : dt = r[132], dt;
|
|
2440
2440
|
});
|
|
2441
2441
|
export { Jn as A, Sn as B, Mr as C, ur as D, Ar as E, jn as F, zn as G, Dn as H, On as I, vn as J, sn as K, kn as L, qn as M, ar as N, nr as O, cr as P, En as R, jr as S, Tr as T, In as U, Mn as V, Rn as W, Jr as _, Ii as a, zr as b, Ci as c, ki as d, Di as f, ai as g, hi as h, Fi as i, er as j, tr as k, wi as l, _i as m, Ri as n, Ni as o, Ai as p, _n as q, zi as r, Mi as s, ta as t, Oi as u, Qr as v, vr as w, Fr as x, Wr as y, An as z };
|