@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,7 +1,7 @@
|
|
|
1
|
-
import { j as e } from "./session-
|
|
1
|
+
import { j as e } from "./session-Decc4Fo5.js";
|
|
2
2
|
import { c as t, n } from "./messages-yqmY7G5x.js";
|
|
3
|
-
import { Br as r,
|
|
4
|
-
import { ad as fe, ct as pe } from "./keybindings-
|
|
3
|
+
import { Br as r, C_ as i, Fc as a, Fr as o, G as s, Gr as c, H as l, Ir as u, J as d, Kh as f, Lr as p, Mr as m, Or as h, Qh as g, S_ as ee, Uh as te, Yh as _, _g as ne, b_ as v, cg as y, ci as b, gf as x, gr as S, hr as C, kr as re, nc as w, q as ie, qh as ae, qt as oe, t as se, uc as ce, x_ as le, xf as T, yd as ue, yr as E, z as de } from "./utils-DtKQl-D3.js";
|
|
4
|
+
import { ad as fe, ct as pe } from "./keybindings-D0pBlT1k.js";
|
|
5
5
|
import { i as me } from "./search-3oqTSaO6.js";
|
|
6
6
|
import { t as he } from "./external-link-BJbZG79p.js";
|
|
7
7
|
import { n as ge } from "./chevron-up-B5PN0DAN.js";
|
|
@@ -11,40 +11,40 @@ import { i as Se } from "./user-round-DXjpOTSK.js";
|
|
|
11
11
|
import { n as Ce } from "./smile-plus-DQGGycyd.js";
|
|
12
12
|
import { i as we, n as Te, r as Ee, t as De } from "./rows-3-htYGoJUI.js";
|
|
13
13
|
import { t as Oe } from "./message-square-off-DzWBGuDr.js";
|
|
14
|
-
import { Jt as ke, o as Ae } from "./ChatMarkdown-
|
|
15
|
-
import { M as je, S as Me, a as Ne, c as Pe, i as Fe, n as Ie, r as Le, t as Re, w as ze } from "./PullRequestReviewAnnotation-
|
|
16
|
-
import { f as Be, p as Ve } from "./useSettings-
|
|
17
|
-
import { s as He } from "./presentation-
|
|
18
|
-
import { t as Ue } from "./use-atom-command-
|
|
19
|
-
import { f as We } from "./useTheme-
|
|
20
|
-
import { n as Ge } from "./query-
|
|
14
|
+
import { Jt as ke, o as Ae } from "./ChatMarkdown-BUidXqSs.js";
|
|
15
|
+
import { M as je, S as Me, a as Ne, c as Pe, i as Fe, n as Ie, r as Le, t as Re, w as ze } from "./PullRequestReviewAnnotation-B4Lp8Ktf.js";
|
|
16
|
+
import { f as Be, p as Ve } from "./useSettings-B_MtcTyD.js";
|
|
17
|
+
import { s as He } from "./presentation-68y8EAuH.js";
|
|
18
|
+
import { t as Ue } from "./use-atom-command-XemtT1Gv.js";
|
|
19
|
+
import { f as We } from "./useTheme-WlXpQRKG.js";
|
|
20
|
+
import { n as Ge } from "./query-BPk2W3QN.js";
|
|
21
21
|
import { t as Ke } from "./observeIntersection-C0N8P8-O.js";
|
|
22
|
-
import { $n as qe, B as D, W as Je, Zn as Ye, at as Xe, er as Ze, ft as Qe, hn as $e, it as et, nt as tt, rt as nt, tr as rt, ut as it } from "./useTextFieldSpeech-
|
|
23
|
-
import { n as at, t as ot } from "./toggle-group-
|
|
24
|
-
import { i as st, t as ct } from "./DiffCommentAnnotation-
|
|
25
|
-
import { t as lt } from "./refresh-icon-
|
|
26
|
-
import { n as ut, r as dt, t as ft } from "./collapsible-
|
|
27
|
-
import { t as pt } from "./FileExplorerPane-
|
|
28
|
-
import { n as mt } from "./DiffWorkerPoolProvider-
|
|
22
|
+
import { $n as qe, B as D, W as Je, Zn as Ye, at as Xe, er as Ze, ft as Qe, hn as $e, it as et, nt as tt, rt as nt, tr as rt, ut as it } from "./useTextFieldSpeech-B1wCgLPO.js";
|
|
23
|
+
import { n as at, t as ot } from "./toggle-group-l8hRPswr.js";
|
|
24
|
+
import { i as st, t as ct } from "./DiffCommentAnnotation-2HD5qiyt.js";
|
|
25
|
+
import { t as lt } from "./refresh-icon-Vo5ImiQL.js";
|
|
26
|
+
import { n as ut, r as dt, t as ft } from "./collapsible-CDT6JKbk.js";
|
|
27
|
+
import { t as pt } from "./FileExplorerPane-GwnRmXEh.js";
|
|
28
|
+
import { n as mt } from "./DiffWorkerPoolProvider-CEfiCIGR.js";
|
|
29
29
|
import { a as ht, c as gt, i as _t, l as O, o as vt, s as yt, u as bt } from "./diffRendering-tvIuzFsP.js";
|
|
30
30
|
import { t as xt } from "./syntaxHighlighting-CqVs1cUM.js";
|
|
31
|
-
import { c as St, i as Ct, o as wt, t as Tt } from "./changedFileKind-
|
|
32
|
-
import { i as Et, o as Dt, r as Ot, t as kt } from "./empty-
|
|
33
|
-
import { i as At, n as jt, o as Mt, r as k, s as Nt, t as Pt } from "./DiffFileTree-
|
|
34
|
-
import { createContext as Ft, use as It, useContext as Lt, useEffect as Rt, useEffectEvent as zt, useRef as Bt, useState as A, useSyncExternalStore as
|
|
35
|
-
import { c as
|
|
36
|
-
import { Fragment as
|
|
31
|
+
import { c as St, i as Ct, o as wt, t as Tt } from "./changedFileKind-DrjqPCpz.js";
|
|
32
|
+
import { i as Et, o as Dt, r as Ot, t as kt } from "./empty-ChM6gdzn.js";
|
|
33
|
+
import { i as At, n as jt, o as Mt, r as k, s as Nt, t as Pt } from "./DiffFileTree-CuWvI5hS.js";
|
|
34
|
+
import { createContext as Ft, use as It, useContext as Lt, useEffect as Rt, useEffectEvent as zt, useRef as Bt, useState as A, useSyncExternalStore as Vt } from "react";
|
|
35
|
+
import { c as Ht } from "react/compiler-runtime";
|
|
36
|
+
import { Fragment as Ut, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
37
37
|
// ../../packages/client-runtime/src/pullRequestDiffFold.ts
|
|
38
|
-
function
|
|
38
|
+
function Wt(e, t, n, r = !1) {
|
|
39
39
|
return n.get(e) ?? (t === null ? r : t === "folded");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Gt(e, t, n) {
|
|
42
42
|
if (e.get(t) === n) return e;
|
|
43
43
|
let r = new Map(e);
|
|
44
44
|
return n === void 0 ? r.delete(t) : r.set(t, n), r;
|
|
45
45
|
}
|
|
46
46
|
// src/components/pullRequest/pullRequestFileOrder.logic.ts
|
|
47
|
-
var
|
|
47
|
+
var N = /* @__PURE__ */ new Set([
|
|
48
48
|
"pnpm-lock.yaml",
|
|
49
49
|
"yarn.lock",
|
|
50
50
|
"package-lock.json",
|
|
@@ -53,17 +53,17 @@ var P = /* @__PURE__ */ new Set([
|
|
|
53
53
|
"go.sum",
|
|
54
54
|
"composer.lock",
|
|
55
55
|
"Gemfile.lock"
|
|
56
|
-
]),
|
|
56
|
+
]), P = /* @__PURE__ */ new Set([
|
|
57
57
|
"__snapshots__",
|
|
58
58
|
"__generated__",
|
|
59
59
|
"dist",
|
|
60
60
|
"build",
|
|
61
61
|
"vendor"
|
|
62
|
-
]),
|
|
62
|
+
]), Kt = /* @__PURE__ */ new Set([
|
|
63
63
|
"__tests__",
|
|
64
64
|
"tests",
|
|
65
65
|
"test"
|
|
66
|
-
]),
|
|
66
|
+
]), qt = [
|
|
67
67
|
".mts",
|
|
68
68
|
".cts",
|
|
69
69
|
".mjs",
|
|
@@ -73,23 +73,23 @@ var P = /* @__PURE__ */ new Set([
|
|
|
73
73
|
".ts",
|
|
74
74
|
".js"
|
|
75
75
|
];
|
|
76
|
-
function
|
|
76
|
+
function Jt(e) {
|
|
77
77
|
let t = e.split("/"), n = t.at(-1) ?? "";
|
|
78
|
-
return
|
|
78
|
+
return N.has(n) || n.endsWith(".snap") || n.endsWith(".min.js") || n.endsWith(".min.css") || /\.generated\./.test(n) || t.slice(0, -1).some((e) => P.has(e)) ? "generated" : /\.(?:test|spec)\./.test(n) || t.slice(0, -1).some((e) => Kt.has(e)) ? "test" : "source";
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Yt(e) {
|
|
81
81
|
let t = e.lastIndexOf(".");
|
|
82
82
|
return t > e.lastIndexOf("/") ? e.slice(0, t) : e;
|
|
83
83
|
}
|
|
84
|
-
function Yt(e) {
|
|
85
|
-
return Jt(e.split("/").at(-1) ?? "");
|
|
86
|
-
}
|
|
87
84
|
function Xt(e) {
|
|
88
|
-
|
|
89
|
-
return t === void 0 ? e : e.slice(0, -t.length);
|
|
85
|
+
return Yt(e.split("/").at(-1) ?? "");
|
|
90
86
|
}
|
|
91
87
|
function Zt(e) {
|
|
92
|
-
|
|
88
|
+
let t = qt.find((t) => e.endsWith(t));
|
|
89
|
+
return t === void 0 ? e : e.slice(0, -t.length);
|
|
90
|
+
}
|
|
91
|
+
function F(e) {
|
|
92
|
+
return Zt(e.split("/").at(-1) ?? "");
|
|
93
93
|
}
|
|
94
94
|
function Qt(e, t) {
|
|
95
95
|
let n = e.split("/").slice(0, -1);
|
|
@@ -103,7 +103,7 @@ function en(e, t, n, r) {
|
|
|
103
103
|
$t.lastIndex = 0;
|
|
104
104
|
let t = $t.exec(a);
|
|
105
105
|
for (; t !== null;) {
|
|
106
|
-
let o = (t[1] ?? "").replace(/\?.*$/, ""), s =
|
|
106
|
+
let o = (t[1] ?? "").replace(/\?.*$/, ""), s = Zt(o.startsWith(".") ? Qt(e, o) : o), c = n.get(s) ?? n.get(`${s}/index`) ?? r.get(F(s));
|
|
107
107
|
c !== void 0 && c !== e && i.add(c), t = $t.exec(a);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -131,11 +131,11 @@ function rn(e) {
|
|
|
131
131
|
let t = /* @__PURE__ */ new Map();
|
|
132
132
|
for (let n of e) t.set(O(n), n);
|
|
133
133
|
let n = /* @__PURE__ */ new Map();
|
|
134
|
-
for (let e of t.keys()) n.set(e,
|
|
134
|
+
for (let e of t.keys()) n.set(e, Jt(e));
|
|
135
135
|
let r = [...t.keys()].filter((e) => n.get(e) === "source"), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
136
136
|
for (let e of r) {
|
|
137
|
-
i.set(
|
|
138
|
-
let t =
|
|
137
|
+
i.set(Zt(e), e);
|
|
138
|
+
let t = F(e);
|
|
139
139
|
o.has(t) && a.add(t), o.set(t, e);
|
|
140
140
|
}
|
|
141
141
|
for (let e of a) o.delete(e);
|
|
@@ -146,7 +146,7 @@ function rn(e) {
|
|
|
146
146
|
}
|
|
147
147
|
let c = tn(r, s), l = /* @__PURE__ */ new Map();
|
|
148
148
|
c.forEach((e, t) => {
|
|
149
|
-
let n =
|
|
149
|
+
let n = Xt(e);
|
|
150
150
|
l.has(n) || l.set(n, t);
|
|
151
151
|
});
|
|
152
152
|
let u = [...t.keys()].filter((e) => n.get(e) === "test").sort((e, t) => nn(e, l) - nn(t, l) || e.localeCompare(t)), d = [...t.keys()].filter((e) => n.get(e) === "generated").sort((e, t) => e.localeCompare(t));
|
|
@@ -171,81 +171,81 @@ function an(e, r, i, a = n) {
|
|
|
171
171
|
}
|
|
172
172
|
// src/components/pullRequest/PullRequestDiffUnavailableState.tsx
|
|
173
173
|
function on(e) {
|
|
174
|
-
let t =
|
|
174
|
+
let t = Ht(35), { error: n, provider: r, url: i, onRetry: a } = e, o = ee(), s, c;
|
|
175
175
|
if (t[0] !== n || t[1] !== o || t[2] !== r) {
|
|
176
176
|
let { providerName: e, terminology: i } = ke(r);
|
|
177
177
|
s = e, c = an(n, s, oe(i), o), t[0] = n, t[1] = o, t[2] = r, t[3] = s, t[4] = c;
|
|
178
178
|
} else s = t[3], c = t[4];
|
|
179
179
|
let { title: l, description: u } = c, d;
|
|
180
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */
|
|
180
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ j("div", {
|
|
181
181
|
className: "flex size-11 items-center justify-center rounded-full bg-warning-surface text-warning",
|
|
182
|
-
children: /* @__PURE__ */
|
|
182
|
+
children: /* @__PURE__ */ j(xe, {
|
|
183
183
|
"aria-hidden": !0,
|
|
184
184
|
className: "size-5"
|
|
185
185
|
})
|
|
186
186
|
}), t[5] = d) : d = t[5];
|
|
187
187
|
let f;
|
|
188
|
-
t[6] === l ? f = t[7] : (f = /* @__PURE__ */
|
|
188
|
+
t[6] === l ? f = t[7] : (f = /* @__PURE__ */ j(Dt, { children: l }), t[6] = l, t[7] = f);
|
|
189
189
|
let p;
|
|
190
|
-
t[8] === u ? p = t[9] : (p = /* @__PURE__ */
|
|
190
|
+
t[8] === u ? p = t[9] : (p = /* @__PURE__ */ j(Ot, { children: u }), t[8] = u, t[9] = p);
|
|
191
191
|
let m;
|
|
192
|
-
t[10] !== f || t[11] !== p ? (m = /* @__PURE__ */
|
|
192
|
+
t[10] !== f || t[11] !== p ? (m = /* @__PURE__ */ M(Et, { children: [f, p] }), t[10] = f, t[11] = p, t[12] = m) : m = t[12];
|
|
193
193
|
let h, g;
|
|
194
|
-
t[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */
|
|
195
|
-
let
|
|
196
|
-
t[15] === a ?
|
|
194
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ j(lt, {}), g = /* @__PURE__ */ j(v, { children: "Try again" }), t[13] = h, t[14] = g) : (h = t[13], g = t[14]);
|
|
195
|
+
let te;
|
|
196
|
+
t[15] === a ? te = t[16] : (te = /* @__PURE__ */ M(b, {
|
|
197
197
|
size: "sm",
|
|
198
198
|
variant: "default",
|
|
199
199
|
onClick: a,
|
|
200
200
|
children: [h, g]
|
|
201
|
-
}), t[15] = a, t[16] =
|
|
201
|
+
}), t[15] = a, t[16] = te);
|
|
202
202
|
let _;
|
|
203
|
-
t[17] === i ? _ = t[18] : (_ = /* @__PURE__ */
|
|
203
|
+
t[17] === i ? _ = t[18] : (_ = /* @__PURE__ */ j("a", {
|
|
204
204
|
href: i,
|
|
205
205
|
target: "_blank",
|
|
206
206
|
rel: "noopener noreferrer"
|
|
207
207
|
}), t[17] = i, t[18] = _);
|
|
208
|
-
let v;
|
|
209
|
-
t[19] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ M(he, { "aria-hidden": !0 }), t[19] = v) : v = t[19];
|
|
210
208
|
let ne;
|
|
211
|
-
t[
|
|
212
|
-
let
|
|
213
|
-
t[
|
|
209
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ j(he, { "aria-hidden": !0 }), t[19] = ne) : ne = t[19];
|
|
210
|
+
let y;
|
|
211
|
+
t[20] === s ? y = t[21] : (y = /* @__PURE__ */ M(v, { children: ["Open on ", /* @__PURE__ */ j(le, { children: s })] }), t[20] = s, t[21] = y);
|
|
212
|
+
let x;
|
|
213
|
+
t[22] !== y || t[23] !== _ ? (x = /* @__PURE__ */ M(b, {
|
|
214
214
|
size: "sm",
|
|
215
215
|
variant: "outline",
|
|
216
216
|
render: _,
|
|
217
|
-
children: [
|
|
218
|
-
}), t[22] =
|
|
219
|
-
let
|
|
220
|
-
t[25] !==
|
|
217
|
+
children: [ne, y]
|
|
218
|
+
}), t[22] = y, t[23] = _, t[24] = x) : x = t[24];
|
|
219
|
+
let S;
|
|
220
|
+
t[25] !== x || t[26] !== te ? (S = /* @__PURE__ */ M("div", {
|
|
221
221
|
className: "flex flex-wrap justify-center gap-2",
|
|
222
|
-
children: [
|
|
223
|
-
}), t[25] =
|
|
224
|
-
let
|
|
225
|
-
t[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
222
|
+
children: [te, x]
|
|
223
|
+
}), t[25] = x, t[26] = te, t[27] = S) : S = t[27];
|
|
224
|
+
let C;
|
|
225
|
+
t[28] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ j("summary", {
|
|
226
226
|
className: "mx-auto w-fit cursor-pointer rounded-sm -outline-offset-2 hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",
|
|
227
|
-
children: /* @__PURE__ */
|
|
228
|
-
}), t[28] =
|
|
229
|
-
let
|
|
230
|
-
t[29] === n ?
|
|
227
|
+
children: /* @__PURE__ */ j(v, { children: "Technical details" })
|
|
228
|
+
}), t[28] = C) : C = t[28];
|
|
229
|
+
let re;
|
|
230
|
+
t[29] === n ? re = t[30] : (re = /* @__PURE__ */ M("details", {
|
|
231
231
|
className: "w-full max-w-lg text-xs text-muted-foreground",
|
|
232
|
-
children: [
|
|
232
|
+
children: [C, /* @__PURE__ */ j("pre", {
|
|
233
233
|
className: "scrollbar-gutter-both mt-3 max-h-40 overflow-auto whitespace-pre-wrap break-words rounded-lg border border-border bg-muted/40 p-3 text-left font-mono text-xs",
|
|
234
234
|
children: n
|
|
235
235
|
})]
|
|
236
|
-
}), t[29] = n, t[30] =
|
|
237
|
-
let
|
|
238
|
-
return t[31] !==
|
|
236
|
+
}), t[29] = n, t[30] = re);
|
|
237
|
+
let w;
|
|
238
|
+
return t[31] !== S || t[32] !== re || t[33] !== m ? (w = /* @__PURE__ */ M(kt, {
|
|
239
239
|
size: "compact",
|
|
240
240
|
className: "min-h-full",
|
|
241
241
|
role: "status",
|
|
242
242
|
children: [
|
|
243
243
|
d,
|
|
244
244
|
m,
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
S,
|
|
246
|
+
re
|
|
247
247
|
]
|
|
248
|
-
}), t[31] =
|
|
248
|
+
}), t[31] = S, t[32] = re, t[33] = m, t[34] = w) : w = t[34], w;
|
|
249
249
|
}
|
|
250
250
|
// src/components/pullRequest/pullRequestFilesViewed.logic.ts
|
|
251
251
|
function I(e) {
|
|
@@ -377,14 +377,14 @@ var mn = ({ environmentId: e, reference: t }) => D.filesViewed({
|
|
|
377
377
|
environmentId: e,
|
|
378
378
|
input: t
|
|
379
379
|
}, n),
|
|
380
|
-
send: ({ environmentId: e, reference: t }, n) =>
|
|
380
|
+
send: ({ environmentId: e, reference: t }, n) => T(w, D.setFilesViewed, {
|
|
381
381
|
environmentId: e,
|
|
382
382
|
input: {
|
|
383
383
|
...t,
|
|
384
384
|
files: n
|
|
385
385
|
}
|
|
386
386
|
}, { reportFailure: !1 }),
|
|
387
|
-
refresh: (e) =>
|
|
387
|
+
refresh: (e) => w.refresh(mn(e)),
|
|
388
388
|
reportFailure: () => He.add({
|
|
389
389
|
type: "error",
|
|
390
390
|
title: n(t("Could not update viewed files"))
|
|
@@ -400,19 +400,19 @@ var gn = /* @__PURE__ */ new Map(), _n = {
|
|
|
400
400
|
setViewed: () => {}
|
|
401
401
|
};
|
|
402
402
|
function vn(e) {
|
|
403
|
-
let t =
|
|
403
|
+
let t = Ht(22), { environmentId: n, reference: r, enabled: i } = e, a;
|
|
404
404
|
t[0] !== i || t[1] !== n || t[2] !== r ? (a = i ? D.filesViewed({
|
|
405
405
|
environmentId: n,
|
|
406
406
|
input: r
|
|
407
407
|
}) : null, t[0] = i, t[1] = n, t[2] = r, t[3] = a) : a = t[3];
|
|
408
|
-
let o = Ge(a,
|
|
408
|
+
let o = Ge(a, ee()), s;
|
|
409
409
|
t[4] === o.data ? s = t[5] : (s = I(o.data), t[4] = o.data, t[5] = s);
|
|
410
410
|
let c = s, l;
|
|
411
411
|
t[6] !== i || t[7] !== n || t[8] !== r ? (l = i ? z({
|
|
412
412
|
environmentId: n,
|
|
413
413
|
reference: r
|
|
414
414
|
}) : _n, t[6] = i, t[7] = n, t[8] = r, t[9] = l) : l = t[9];
|
|
415
|
-
let u = l, d =
|
|
415
|
+
let u = l, d = Vt(u.subscribe, u.getSnapshot), f, p;
|
|
416
416
|
t[10] !== d || t[11] !== c ? (f = (e) => L(e, c, d), p = (e) => !d.has(e) && cn(c?.get(e)), t[10] = d, t[11] = c, t[12] = f, t[13] = p) : (f = t[12], p = t[13]);
|
|
417
417
|
let m = o.data?.truncated === !0, h;
|
|
418
418
|
return t[14] !== i || t[15] !== o.error || t[16] !== o.refresh || t[17] !== u.setViewed || t[18] !== f || t[19] !== p || t[20] !== m ? (h = {
|
|
@@ -460,15 +460,15 @@ function wn(e) {
|
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
// src/components/pullRequest/PullRequestCodeTab.tsx
|
|
463
|
-
var Tn =
|
|
463
|
+
var Tn = _((e) => {
|
|
464
464
|
let { environmentId: t, input: n, paths: r } = JSON.parse(e);
|
|
465
|
-
return
|
|
465
|
+
return g((e) => r.map((r) => e(D.diff({
|
|
466
466
|
environmentId: t,
|
|
467
467
|
input: {
|
|
468
468
|
...n,
|
|
469
469
|
path: r
|
|
470
470
|
}
|
|
471
|
-
})))).pipe(
|
|
471
|
+
})))).pipe(y(`pull-request-withheld-file-diffs:${e}`));
|
|
472
472
|
}), En = [], Dn = 10, On = "hanzodev.pullRequestFileTreeOpen", kn = "\n[data-diffs-header] [data-additions-count],\n[data-diffs-header] [data-deletions-count] {\n display: none !important;\n}", An = [], jn = /* @__PURE__ */ new WeakMap(), Mn = ((e) => e);
|
|
473
473
|
function Nn(e, t, n) {
|
|
474
474
|
let r = jn.get(e.source);
|
|
@@ -510,51 +510,51 @@ function In(e) {
|
|
|
510
510
|
}
|
|
511
511
|
var Ln = Ft(null);
|
|
512
512
|
function Rn(e) {
|
|
513
|
-
let t =
|
|
514
|
-
if (
|
|
515
|
-
let
|
|
516
|
-
t[0] !== r || t[1] !==
|
|
517
|
-
let
|
|
518
|
-
t[3] !== r || t[4] !==
|
|
519
|
-
let
|
|
520
|
-
t[6] !==
|
|
521
|
-
let f;
|
|
522
|
-
t[9] !== n || t[10] !== o ? (f = (e, t) => o.setFileViewed(n, e === !0, "shiftKey" in t.event && t.event.shiftKey === !0), t[9] = n, t[10] = o, t[11] = f) : f = t[11];
|
|
513
|
+
let t = Ht(24), { fileKey: n, path: r, stat: a } = e, o = i(), s = It(Ln);
|
|
514
|
+
if (s === null || !s.enabled) return a;
|
|
515
|
+
let c;
|
|
516
|
+
t[0] !== r || t[1] !== s ? (c = s.isViewed(r), t[0] = r, t[1] = s, t[2] = c) : c = t[2];
|
|
517
|
+
let l = c, u;
|
|
518
|
+
t[3] !== r || t[4] !== s ? (u = s.isStale(r), t[3] = r, t[4] = s, t[5] = u) : u = t[5];
|
|
519
|
+
let d = u, f;
|
|
520
|
+
t[6] !== o || t[7] !== d ? (f = d ? o("Changed", { $context: "file changed since viewed" }) : o("Viewed", { $context: "file marked as viewed" }), t[6] = o, t[7] = d, t[8] = f) : f = t[8];
|
|
523
521
|
let p;
|
|
524
|
-
t[
|
|
525
|
-
"aria-label": d,
|
|
526
|
-
checked: c,
|
|
527
|
-
onCheckedChange: f
|
|
528
|
-
}), t[12] = d, t[13] = f, t[14] = c, t[15] = p) : p = t[15];
|
|
522
|
+
t[9] !== n || t[10] !== s ? (p = (e, t) => s.setFileViewed(n, e === !0, "shiftKey" in t.event && t.event.shiftKey === !0), t[9] = n, t[10] = s, t[11] = p) : p = t[11];
|
|
529
523
|
let m;
|
|
530
|
-
t[
|
|
531
|
-
|
|
532
|
-
|
|
524
|
+
t[12] !== f || t[13] !== p || t[14] !== l ? (m = /* @__PURE__ */ j(je, {
|
|
525
|
+
"aria-label": f,
|
|
526
|
+
checked: l,
|
|
527
|
+
onCheckedChange: p
|
|
528
|
+
}), t[12] = f, t[13] = p, t[14] = l, t[15] = m) : m = t[15];
|
|
529
|
+
let h;
|
|
530
|
+
t[16] === d ? h = t[17] : (h = d ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
531
|
+
render: /* @__PURE__ */ j("span", { className: "text-warning-foreground" }),
|
|
532
|
+
children: /* @__PURE__ */ j(v, {
|
|
533
533
|
context: "file changed since viewed",
|
|
534
534
|
children: "Changed"
|
|
535
535
|
})
|
|
536
|
-
}), /* @__PURE__ */
|
|
536
|
+
}), /* @__PURE__ */ j(S, {
|
|
537
537
|
side: "bottom",
|
|
538
|
-
children: /* @__PURE__ */
|
|
539
|
-
})] }) : /* @__PURE__ */
|
|
538
|
+
children: /* @__PURE__ */ j(v, { children: "This file has been pushed to since you marked it viewed." })
|
|
539
|
+
})] }) : /* @__PURE__ */ j("span", {
|
|
540
540
|
className: "@max-xs:hidden",
|
|
541
|
-
children: /* @__PURE__ */
|
|
541
|
+
children: /* @__PURE__ */ j(v, {
|
|
542
542
|
context: "file marked as viewed",
|
|
543
543
|
children: "Viewed"
|
|
544
544
|
})
|
|
545
|
-
}), t[16] =
|
|
546
|
-
let
|
|
547
|
-
t[18] !==
|
|
545
|
+
}), t[16] = d, t[17] = h);
|
|
546
|
+
let g;
|
|
547
|
+
t[18] !== m || t[19] !== h ? (g = /* @__PURE__ */ M("label", {
|
|
548
548
|
"data-viewed-toggle": "",
|
|
549
549
|
className: "flex h-8 w-18 shrink-0 cursor-pointer select-none items-center gap-1.5 text-2xs text-muted-foreground",
|
|
550
550
|
onClick: zn,
|
|
551
|
-
children: [
|
|
552
|
-
}), t[18] =
|
|
553
|
-
let
|
|
554
|
-
return t[21] !==
|
|
551
|
+
children: [m, h]
|
|
552
|
+
}), t[18] = m, t[19] = h, t[20] = g) : g = t[20];
|
|
553
|
+
let ee;
|
|
554
|
+
return t[21] !== a || t[22] !== g ? (ee = /* @__PURE__ */ M("span", {
|
|
555
555
|
className: "flex items-center gap-3",
|
|
556
|
-
children: [
|
|
557
|
-
}), t[21] =
|
|
556
|
+
children: [a, g]
|
|
557
|
+
}), t[21] = a, t[22] = g, t[23] = ee) : ee = t[23], ee;
|
|
558
558
|
}
|
|
559
559
|
function zn(e) {
|
|
560
560
|
return e.stopPropagation();
|
|
@@ -568,37 +568,37 @@ function Bn(e, t) {
|
|
|
568
568
|
});
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
|
-
function Vn(
|
|
572
|
-
let
|
|
573
|
-
|
|
574
|
-
let
|
|
571
|
+
function Vn(g) {
|
|
572
|
+
let _ = Ht(259), { scrollerRef: y, environmentId: x, reference: w, detail: T, selectedCommitOid: he, onSelectedCommitChange: ke, pendingFinding: je, fixFindingLabel: Be, onFixFinding: Je, onAddToChat: lt, onAddToAgentSelection: yt, onRefresh: Et, refreshToken: Dt, backgroundRefreshToken: Ot, revealRequest: kt, revealUrl: k, onRevealSettled: Ft } = g, It = Dt === void 0 ? 0 : Dt, Vt = Ot === void 0 ? 0 : Ot, N = kt === void 0 ? null : kt, P = i(), Kt = ee(), qt;
|
|
573
|
+
_[0] !== P || _[1] !== Be ? (qt = Be ?? P("Fix in a thread"), _[0] = P, _[1] = Be, _[2] = qt) : qt = _[2];
|
|
574
|
+
let Jt = qt, Yt = We();
|
|
575
575
|
mt();
|
|
576
|
-
let
|
|
577
|
-
|
|
576
|
+
let Xt = Ve(pr), [Zt, F] = A(fr), [Qt, $t] = A(null), [en, tn] = A(Dn), [nn, rn] = A(null), an = nn ?? (Xt.diffFilesCollapsed ? "folded" : null), I = Xt.diffLayout, [sn, cn] = A(null), L = sn ?? Xt.wordWrap, [R, ln] = A(Xt.diffIgnoreWhitespace), [un, dn] = ce(On, !1, fe), [fn, pn] = Mt(), [mn, hn] = A(null), [z, gn] = A(null), [_n, yn] = A(!1), [bn, Sn] = A(!1), B;
|
|
577
|
+
_[3] === Symbol.for("react.memo_cache_sentinel") ? (B = {
|
|
578
578
|
key: "",
|
|
579
579
|
cursor: null,
|
|
580
580
|
slices: An
|
|
581
|
-
},
|
|
582
|
-
let [jn, Mn] = A(B), Pn = nt(
|
|
581
|
+
}, _[3] = B) : B = _[3];
|
|
582
|
+
let [jn, Mn] = A(B), Pn = nt(w), V = he !== null && T.commits.some((e) => e.oid === he) ? he : null, H = JSON.stringify([
|
|
583
583
|
x,
|
|
584
584
|
Pn,
|
|
585
585
|
V
|
|
586
586
|
]), [zn, Vn] = A(H);
|
|
587
|
-
zn !== H && (Vn(H), $t(null), gn(null), hn(null),
|
|
587
|
+
zn !== H && (Vn(H), $t(null), gn(null), hn(null), F(/* @__PURE__ */ new Map()), rn(null), tn(Dn), Sn(!1), Mn({
|
|
588
588
|
key: H,
|
|
589
589
|
cursor: null,
|
|
590
590
|
slices: An
|
|
591
591
|
}));
|
|
592
592
|
let U = jn.key === H ? jn.slices : An, W = jn.key === H ? jn.cursor : null, tr;
|
|
593
|
-
|
|
593
|
+
_[4] !== V || _[5] !== W || _[6] !== x || _[7] !== w ? (tr = D.diff({
|
|
594
594
|
environmentId: x,
|
|
595
595
|
input: {
|
|
596
|
-
...
|
|
596
|
+
...w,
|
|
597
597
|
...W === null ? {} : { cursor: W },
|
|
598
598
|
...V === null ? {} : { commit: V }
|
|
599
599
|
}
|
|
600
|
-
}),
|
|
601
|
-
let G = Ge(tr,
|
|
600
|
+
}), _[4] = V, _[5] = W, _[6] = x, _[7] = w, _[8] = tr) : tr = _[8];
|
|
601
|
+
let G = Ge(tr, Kt), [ir, hr] = A(null), gr = G.data;
|
|
602
602
|
gr !== null && (ir?.data !== gr || ir.cursor !== W || ir.scopeKey !== H) && (hr({
|
|
603
603
|
data: gr,
|
|
604
604
|
cursor: W,
|
|
@@ -628,99 +628,99 @@ function Vn(p) {
|
|
|
628
628
|
};
|
|
629
629
|
}));
|
|
630
630
|
let _r;
|
|
631
|
-
|
|
631
|
+
_[9] !== V || _[10] !== x || _[11] !== w ? (_r = D.diff({
|
|
632
632
|
environmentId: x,
|
|
633
633
|
input: {
|
|
634
|
-
...
|
|
634
|
+
...w,
|
|
635
635
|
...V === null ? {} : { commit: V }
|
|
636
636
|
}
|
|
637
|
-
}),
|
|
638
|
-
let K =
|
|
639
|
-
|
|
637
|
+
}), _[9] = V, _[10] = x, _[11] = w, _[12] = _r) : _r = _[12];
|
|
638
|
+
let K = te(_r), vr = Pn, yr = et(w), br = Xe(dr), xr = Xe(ur), Sr;
|
|
639
|
+
_[13] === Symbol.for("react.memo_cache_sentinel") ? (Sr = { reportFailure: !1 }, _[13] = Sr) : Sr = _[13];
|
|
640
640
|
let Cr = Ue(D.replyToThread, Sr), wr;
|
|
641
|
-
|
|
641
|
+
_[14] === Symbol.for("react.memo_cache_sentinel") ? (wr = { reportFailure: !1 }, _[14] = wr) : wr = _[14];
|
|
642
642
|
let Tr = Ue(D.setThreadResolution, wr), Er;
|
|
643
|
-
|
|
643
|
+
_[15] === Symbol.for("react.memo_cache_sentinel") ? (Er = { reportFailure: !1 }, _[15] = Er) : Er = _[15];
|
|
644
644
|
let Dr = Ue(D.updateComment, Er), Or;
|
|
645
|
-
|
|
646
|
-
let kr = Ue(D.threadComments, Or), Ar = Ue(D.diffFileContents), jr =
|
|
647
|
-
|
|
645
|
+
_[16] === Symbol.for("react.memo_cache_sentinel") ? (Or = { reportFailure: !1 }, _[16] = Or) : Or = _[16];
|
|
646
|
+
let kr = Ue(D.threadComments, Or), Ar = Ue(D.diffFileContents), jr = T.capabilities.viewedFiles, Mr = jr !== void 0, Nr;
|
|
647
|
+
_[17] !== x || _[18] !== w || _[19] !== Mr ? (Nr = {
|
|
648
648
|
environmentId: x,
|
|
649
|
-
reference:
|
|
649
|
+
reference: w,
|
|
650
650
|
enabled: Mr
|
|
651
|
-
},
|
|
651
|
+
}, _[17] = x, _[18] = w, _[19] = Mr, _[20] = Nr) : Nr = _[20];
|
|
652
652
|
let Pr = vn(Nr), { setViewed: Fr, refresh: q, enabled: Ir, isViewed: Lr, isStale: Rr } = Pr, zr;
|
|
653
|
-
|
|
653
|
+
_[21] === Symbol.for("react.memo_cache_sentinel") ? (zr = {
|
|
654
654
|
scope: "",
|
|
655
655
|
paths: En,
|
|
656
656
|
shownKeys: /* @__PURE__ */ new Map()
|
|
657
|
-
},
|
|
657
|
+
}, _[21] = zr) : zr = _[21];
|
|
658
658
|
let [Br, Vr] = A(zr), Hr = Br.scope === H ? Br.paths : En, Ur;
|
|
659
|
-
|
|
659
|
+
_[22] === V ? Ur = _[23] : (Ur = V === null ? {} : { commit: V }, _[22] = V, _[23] = Ur);
|
|
660
660
|
let Wr;
|
|
661
|
-
|
|
662
|
-
...
|
|
661
|
+
_[24] !== w || _[25] !== Ur ? (Wr = {
|
|
662
|
+
...w,
|
|
663
663
|
...Ur
|
|
664
|
-
},
|
|
665
|
-
let Gr = Wr, Kr = Lt(
|
|
666
|
-
|
|
664
|
+
}, _[24] = w, _[25] = Ur, _[26] = Wr) : Wr = _[26];
|
|
665
|
+
let Gr = Wr, Kr = Lt(ae), qr;
|
|
666
|
+
_[27] !== x || _[28] !== Gr ? (qr = (e) => D.diff({
|
|
667
667
|
environmentId: x,
|
|
668
668
|
input: {
|
|
669
669
|
...Gr,
|
|
670
670
|
path: e
|
|
671
671
|
}
|
|
672
|
-
}),
|
|
672
|
+
}), _[27] = x, _[28] = Gr, _[29] = qr) : qr = _[29];
|
|
673
673
|
let Jr = qr, Yr;
|
|
674
|
-
|
|
674
|
+
_[30] !== Kr || _[31] !== Jr || _[32] !== Hr ? (Yr = () => {
|
|
675
675
|
for (let e of Hr) Kr.refresh(Jr(e));
|
|
676
|
-
},
|
|
676
|
+
}, _[30] = Kr, _[31] = Jr, _[32] = Hr, _[33] = Yr) : Yr = _[33];
|
|
677
677
|
let Xr = zt(Yr), Zr = Bt(It), Qr;
|
|
678
|
-
|
|
678
|
+
_[34] !== q || _[35] !== K || _[36] !== It || _[37] !== H ? (Qr = [
|
|
679
679
|
It,
|
|
680
680
|
H,
|
|
681
681
|
K,
|
|
682
682
|
q
|
|
683
|
-
],
|
|
683
|
+
], _[34] = q, _[35] = K, _[36] = It, _[37] = H, _[38] = Qr) : Qr = _[38], Rt(() => {
|
|
684
684
|
Zr.current !== It && (Zr.current = It, Mn({
|
|
685
685
|
key: H,
|
|
686
686
|
cursor: null,
|
|
687
687
|
slices: An
|
|
688
688
|
}), hr(null), K(), Xr(), q());
|
|
689
689
|
}, Qr);
|
|
690
|
-
let $r = Bt(
|
|
691
|
-
|
|
692
|
-
$r.current !==
|
|
693
|
-
},
|
|
690
|
+
let $r = Bt(Vt), ei;
|
|
691
|
+
_[39] !== Vt || _[40] !== q || _[41] !== K || _[42] !== Xr ? (ei = () => {
|
|
692
|
+
$r.current !== Vt && ($r.current = Vt, Mn(lr), K(), Xr(), q());
|
|
693
|
+
}, _[39] = Vt, _[40] = q, _[41] = K, _[42] = Xr, _[43] = ei) : ei = _[43];
|
|
694
694
|
let ti;
|
|
695
|
-
|
|
696
|
-
|
|
695
|
+
_[44] !== Vt || _[45] !== q || _[46] !== K ? (ti = [
|
|
696
|
+
Vt,
|
|
697
697
|
K,
|
|
698
698
|
q
|
|
699
|
-
],
|
|
699
|
+
], _[44] = Vt, _[45] = q, _[46] = K, _[47] = ti) : ti = _[47], Rt(ei, ti);
|
|
700
700
|
let ni = Nt(), ri = Bt(null), ii = wt(Ar, {
|
|
701
701
|
environmentId: x,
|
|
702
|
-
reference:
|
|
702
|
+
reference: w,
|
|
703
703
|
commit: V,
|
|
704
|
-
cacheKey: `pull-request:${Pn}:${
|
|
704
|
+
cacheKey: `pull-request:${Pn}:${T.updatedAt}:${V ?? "all"}`
|
|
705
705
|
}), ai;
|
|
706
|
-
|
|
707
|
-
let oi = ai, si =
|
|
708
|
-
inlineComment: si.inlineComment &&
|
|
709
|
-
reply: si.reply &&
|
|
710
|
-
resolve: si.resolve &&
|
|
706
|
+
_[48] !== T || _[49] !== x || _[50] !== w ? (ai = st(T, x, w), _[48] = T, _[49] = x, _[50] = w, _[51] = ai) : ai = _[51];
|
|
707
|
+
let oi = ai, si = T.capabilities.review, ci = {
|
|
708
|
+
inlineComment: si.inlineComment && T.viewerPermissions.comment,
|
|
709
|
+
reply: si.reply && T.viewerPermissions.comment,
|
|
710
|
+
resolve: si.resolve && T.viewerPermissions.resolve
|
|
711
711
|
}, li = ci.inlineComment && V === null, ui = si.rangeComment === !0, di = V === null && (ci.inlineComment || yt !== void 0), { parsedSlices: fi, loadedFiles: pi, sourceFileStats: mi } = Fn(U, `pull-request:${H}:${R}`, R), hi;
|
|
712
|
-
|
|
712
|
+
_[52] !== x || _[53] !== Gr || _[54] !== Hr ? (hi = Tn(JSON.stringify({
|
|
713
713
|
environmentId: x,
|
|
714
714
|
input: Gr,
|
|
715
715
|
paths: Hr
|
|
716
|
-
})),
|
|
717
|
-
let gi =
|
|
718
|
-
|
|
716
|
+
})), _[52] = x, _[53] = Gr, _[54] = Hr, _[55] = hi) : hi = _[55];
|
|
717
|
+
let gi = f(hi), _i;
|
|
718
|
+
_[56] === gi ? _i = _[57] : (_i = gi.some(cr), _[56] = gi, _[57] = _i);
|
|
719
719
|
let vi = _i, yi = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map(), xi = /* @__PURE__ */ new Set();
|
|
720
720
|
Hr.forEach((e, t) => {
|
|
721
721
|
let n = gi[t];
|
|
722
722
|
if (n === void 0) return;
|
|
723
|
-
let r = n._tag === "Failure" ? null :
|
|
723
|
+
let r = n._tag === "Failure" ? null : ne(n, sr);
|
|
724
724
|
if (r === null) {
|
|
725
725
|
yi.set(e, n._tag === "Failure" ? "error" : "loading");
|
|
726
726
|
return;
|
|
@@ -742,9 +742,9 @@ function Vn(p) {
|
|
|
742
742
|
Br.scope === H && Si.length > 0 && (Vr({
|
|
743
743
|
...Br,
|
|
744
744
|
shownKeys: new Map([...Br.shownKeys, ...Si])
|
|
745
|
-
}),
|
|
745
|
+
}), F((e) => Si.reduce((t, n) => {
|
|
746
746
|
let [r, i] = n, a = Br.shownKeys.get(r), o = a !== void 0 && e.get(a);
|
|
747
|
-
return o === void 0 ? t :
|
|
747
|
+
return o === void 0 ? t : Gt(t, i, o);
|
|
748
748
|
}, e)));
|
|
749
749
|
let Ci = bi.size === 0 ? pi : pi.map((e) => e.hunks.length === 0 ? bi.get(O(e)) ?? e : e), wi = (e) => {
|
|
750
750
|
Kr.refresh(Jr(e)), !Hr.includes(e) && Vr({
|
|
@@ -754,20 +754,20 @@ function Vn(p) {
|
|
|
754
754
|
});
|
|
755
755
|
}, Ti = Ye(k), Ei = Ti?.kind === "diff" ? Ci.find((e) => qe(Ti.digest, O(e))) : void 0, J = Ei ? O(Ei) : null, [Di, Oi] = A(null), ki = J ?? (Di?.scope === H ? Di.path : null), Ai = Ci.filter(or).length, Y = fn ? Ci.filter((e) => {
|
|
756
756
|
let t = O(e);
|
|
757
|
-
return t ===
|
|
757
|
+
return t === N?.path || t === ki || !Tt(t);
|
|
758
758
|
}) : Ci, ji = Ci.length - Y.length, Mi = Y.map(ar), Ni;
|
|
759
|
-
|
|
760
|
-
let Pi = Ni, Fi = jt(Y), Ii = In(
|
|
759
|
+
_[58] === U ? Ni = _[59] : (Ni = new Map(U.flatMap(rr)), _[58] = U, _[59] = Ni);
|
|
760
|
+
let Pi = Ni, Fi = jt(Y), Ii = In(T.reviewThreads), Li;
|
|
761
761
|
bb0: {
|
|
762
762
|
let e = /* @__PURE__ */ new Set();
|
|
763
763
|
if (V !== null) {
|
|
764
764
|
Li = e;
|
|
765
765
|
break bb0;
|
|
766
766
|
}
|
|
767
|
-
for (let t of Y) for (let n of Ii.get(O(t)) ?? []) n.line !== null &&
|
|
767
|
+
for (let t of Y) for (let n of Ii.get(O(t)) ?? []) n.line !== null && d(t, n.side, n.line) && e.add(n.id);
|
|
768
768
|
Li = e;
|
|
769
769
|
}
|
|
770
|
-
let Ri = Li, zi = V ??
|
|
770
|
+
let Ri = Li, zi = V ?? T.headSha, Bi = ue.find(T.provider)?.rawFileUrl, Vi = ue.parseChangeRequestUrl(T.url)?.link.repositoryUrl, Hi = (e, t) => e.hunks.length === 0 && e.type !== "deleted" && a(t) && zi !== void 0 && Bi !== void 0 && Vi !== void 0 ? Bi({
|
|
771
771
|
repositoryUrl: Vi,
|
|
772
772
|
sha: zi,
|
|
773
773
|
path: t
|
|
@@ -828,36 +828,36 @@ function Vn(p) {
|
|
|
828
828
|
annotationsVersion: ht(o.map(er).join("|"))
|
|
829
829
|
};
|
|
830
830
|
}), Wi;
|
|
831
|
-
|
|
832
|
-
let X = Wi, Gi = U[0]?.source.withheldFilesReadable === !0, Ki = U.some($n) || fi.some(Qn), qi = X === null ? fi.flatMap(Zn) : [], Ji = Y.length === 0 && qi.length > 0 ? /* @__PURE__ */
|
|
831
|
+
_[60] === U ? Wi = _[61] : (Wi = U.at(-1)?.nextCursor ?? null, _[60] = U, _[61] = Wi);
|
|
832
|
+
let X = Wi, Gi = U[0]?.source.withheldFilesReadable === !0, Ki = U.some($n) || fi.some(Qn), qi = X === null ? fi.flatMap(Zn) : [], Ji = Y.length === 0 && qi.length > 0 ? /* @__PURE__ */ j("div", {
|
|
833
833
|
className: "space-y-4 px-4 py-5",
|
|
834
|
-
children: qi.map((e) => /* @__PURE__ */
|
|
834
|
+
children: qi.map((e) => /* @__PURE__ */ M("div", {
|
|
835
835
|
className: "space-y-2",
|
|
836
|
-
children: [/* @__PURE__ */
|
|
836
|
+
children: [/* @__PURE__ */ j("p", {
|
|
837
837
|
className: "text-xs text-muted-foreground",
|
|
838
|
-
children:
|
|
839
|
-
}), /* @__PURE__ */
|
|
838
|
+
children: Kt(e.reason)
|
|
839
|
+
}), /* @__PURE__ */ j("pre", {
|
|
840
840
|
className: "whitespace-pre-wrap break-words font-mono text-xs",
|
|
841
841
|
children: e.text
|
|
842
842
|
})]
|
|
843
843
|
}, `${e.reason}:${e.text.slice(0, 64)}`))
|
|
844
|
-
}) : null, Yi = qi.length === 0 ? null : /* @__PURE__ */
|
|
844
|
+
}) : null, Yi = qi.length === 0 ? null : /* @__PURE__ */ j("div", {
|
|
845
845
|
className: "space-y-4 border-t border-border/60 px-4 py-5",
|
|
846
|
-
children: qi.map((e) => /* @__PURE__ */
|
|
846
|
+
children: qi.map((e) => /* @__PURE__ */ M("div", {
|
|
847
847
|
className: "space-y-2",
|
|
848
|
-
children: [/* @__PURE__ */
|
|
848
|
+
children: [/* @__PURE__ */ j("p", {
|
|
849
849
|
className: "text-xs text-muted-foreground",
|
|
850
|
-
children:
|
|
851
|
-
}), /* @__PURE__ */
|
|
850
|
+
children: Kt(e.reason)
|
|
851
|
+
}), /* @__PURE__ */ j("pre", {
|
|
852
852
|
className: "whitespace-pre-wrap break-words font-mono text-xs",
|
|
853
853
|
children: e.text
|
|
854
854
|
})]
|
|
855
855
|
}, `${e.reason}:${e.text.slice(0, 64)}`))
|
|
856
856
|
}), Xi;
|
|
857
|
-
|
|
857
|
+
_[62] !== Ir || _[63] !== Lr || _[64] !== Rr ? (Xi = (e) => Ir && Lr(e) && !Rr(e), _[62] = Ir, _[63] = Lr, _[64] = Rr, _[65] = Xi) : Xi = _[65];
|
|
858
858
|
let Zi = Xi, Qi;
|
|
859
|
-
|
|
860
|
-
let { fileKey: t, path: n, fileDiff: r, annotations: i, annotationsVersion: a } = e, o =
|
|
859
|
+
_[66] !== an || _[67] !== Ir || _[68] !== Zt || _[69] !== Zi || _[70] !== Lr || _[71] !== Rr ? (Qi = (e) => {
|
|
860
|
+
let { fileKey: t, path: n, fileDiff: r, annotations: i, annotationsVersion: a } = e, o = Wt(t, an, Zt, Zi(n)), s = Ir ? `e${Lr(n) ? "v" : ""}${Rr(n) ? "s" : ""}` : "";
|
|
861
861
|
return {
|
|
862
862
|
id: t,
|
|
863
863
|
type: "diff",
|
|
@@ -866,48 +866,48 @@ function Vn(p) {
|
|
|
866
866
|
collapsed: o,
|
|
867
867
|
version: ht(`${o ? "1" : "0"}:${s}:${a}`)
|
|
868
868
|
};
|
|
869
|
-
},
|
|
869
|
+
}, _[66] = an, _[67] = Ir, _[68] = Zt, _[69] = Zi, _[70] = Lr, _[71] = Rr, _[72] = Qi) : Qi = _[72];
|
|
870
870
|
let Z = Ui.map(Qi), $i = Z.map(Xn), ea = new Set(Z.filter(Yn).map(Jn)), ta = At($i, ea), Q = X !== null && X !== W && !G.isPending && G.error === null, na;
|
|
871
|
-
|
|
871
|
+
_[73] === X ? na = _[74] : (na = () => {
|
|
872
872
|
X !== null && Mn((e) => ({
|
|
873
873
|
...e,
|
|
874
874
|
cursor: X
|
|
875
875
|
}));
|
|
876
|
-
},
|
|
876
|
+
}, _[73] = X, _[74] = na);
|
|
877
877
|
let $ = na, ra;
|
|
878
|
-
|
|
878
|
+
_[75] !== Q || _[76] !== $ ? (ra = (e) => {
|
|
879
879
|
if (e !== null && Q) return Ke(e, (e) => {
|
|
880
880
|
e.isIntersecting && $();
|
|
881
881
|
}, { rootMargin: "240px" });
|
|
882
|
-
},
|
|
882
|
+
}, _[75] = Q, _[76] = $, _[77] = ra) : ra = _[77];
|
|
883
883
|
let ia = ra, aa = (e) => {
|
|
884
884
|
let t = Ui.find((t) => t.fileKey === e)?.path, n = t !== void 0 && Zi(t);
|
|
885
|
-
|
|
885
|
+
F((t) => Gt(t, e, !Wt(e, an, t, n)));
|
|
886
886
|
}, oa = {
|
|
887
887
|
enabled: Ir,
|
|
888
888
|
isViewed: Lr,
|
|
889
889
|
isStale: Rr,
|
|
890
890
|
setFileViewed: (e, t, n) => {
|
|
891
|
-
let r =
|
|
891
|
+
let r = ie(Ui, e, n ? Qt : null);
|
|
892
892
|
$t(e);
|
|
893
893
|
for (let e of r) Fr(e.path, t, V === null ? e.fileDiff.newObjectId : void 0);
|
|
894
|
-
|
|
894
|
+
F((e) => r.reduce((e, n) => Gt(e, n.fileKey, an === null ? void 0 : t), e));
|
|
895
895
|
}
|
|
896
896
|
}, sa = (e, t) => {
|
|
897
897
|
let n = Z.find((t) => O(t.fileDiff) === e);
|
|
898
|
-
n !== void 0 && (
|
|
898
|
+
n !== void 0 && (F((e) => Gt(e, n.id, !1)), t && hn({
|
|
899
899
|
id: n.id,
|
|
900
900
|
range: t
|
|
901
901
|
}), ni.request(n.id, t));
|
|
902
902
|
}, ca = () => {
|
|
903
|
-
rn(At($i, ea) ? "expanded" : "folded"),
|
|
904
|
-
}, la =
|
|
903
|
+
rn(At($i, ea) ? "expanded" : "folded"), F(/* @__PURE__ */ new Map());
|
|
904
|
+
}, la = T.commits.toSorted(qn), ua = (e, t) => {
|
|
905
905
|
if (!e || !di || vi) return;
|
|
906
906
|
let n = t.item;
|
|
907
907
|
if (n.type !== "diff") return;
|
|
908
908
|
let r = Y.find((e) => _t(e) === n.id);
|
|
909
909
|
if (!r) return;
|
|
910
|
-
let i = O(r), a = bt(r),
|
|
910
|
+
let i = O(r), a = bt(r), o = fi.flatMap(Kn).find((e) => O(e) === i), c = (o && s(o, e, ui)) ?? s(r, e, ui);
|
|
911
911
|
c !== null && gn({
|
|
912
912
|
fileKey: n.id,
|
|
913
913
|
path: i,
|
|
@@ -918,8 +918,8 @@ function Vn(p) {
|
|
|
918
918
|
}, da = (e, t, n) => {
|
|
919
919
|
let r = Y.find((t) => _t(t) === e.fileKey), i = r === void 0 ? null : de({
|
|
920
920
|
id: `pull-request-selection:${l(e.fileKey, e.range)}`,
|
|
921
|
-
sectionId: `pull-request:${
|
|
922
|
-
sectionTitle: `PR #${
|
|
921
|
+
sectionId: `pull-request:${T.number}`,
|
|
922
|
+
sectionTitle: `PR #${T.number} review`,
|
|
923
923
|
filePath: e.path,
|
|
924
924
|
fileDiff: r,
|
|
925
925
|
range: e.range,
|
|
@@ -927,28 +927,28 @@ function Vn(p) {
|
|
|
927
927
|
});
|
|
928
928
|
gn(null), hn(null), i !== null && n(i);
|
|
929
929
|
}, fa;
|
|
930
|
-
|
|
930
|
+
_[78] !== G || _[79] !== P || _[80] !== X || _[81] !== ia ? (fa = () => X === null ? null : /* @__PURE__ */ j("div", {
|
|
931
931
|
ref: ia,
|
|
932
932
|
className: "flex items-center justify-center gap-2 py-2 text-xs text-muted-foreground",
|
|
933
|
-
children: G.error === null ? G.isPending ?
|
|
933
|
+
children: G.error === null ? G.isPending ? P("Loading more files...") : null : /* @__PURE__ */ M(Ut, { children: [/* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(v, { children: "The rest of this diff could not be loaded." }) }), /* @__PURE__ */ j(b, {
|
|
934
934
|
size: "xs",
|
|
935
935
|
variant: "outline",
|
|
936
936
|
onClick: () => G.refresh(),
|
|
937
|
-
children: /* @__PURE__ */
|
|
937
|
+
children: /* @__PURE__ */ j(v, { children: "Retry" })
|
|
938
938
|
})] })
|
|
939
|
-
}),
|
|
939
|
+
}), _[78] = G, _[79] = P, _[80] = X, _[81] = ia, _[82] = fa) : fa = _[82];
|
|
940
940
|
let pa = fa, ma = (e) => {
|
|
941
941
|
let t = e.collapsed === !0;
|
|
942
|
-
return /* @__PURE__ */
|
|
942
|
+
return /* @__PURE__ */ j(b, {
|
|
943
943
|
size: "icon-micro",
|
|
944
944
|
variant: "ghost-muted",
|
|
945
945
|
"aria-expanded": !t,
|
|
946
|
-
"aria-label":
|
|
946
|
+
"aria-label": P(t ? "Expand diff" : "Collapse diff"),
|
|
947
947
|
className: "mr-1",
|
|
948
948
|
onClick: (t) => {
|
|
949
949
|
t.stopPropagation(), aa(e.id);
|
|
950
950
|
},
|
|
951
|
-
children:
|
|
951
|
+
children: j(t ? me : ge, { className: "size-4" })
|
|
952
952
|
});
|
|
953
953
|
}, ha = (e) => {
|
|
954
954
|
if (e.type !== "diff") return null;
|
|
@@ -957,24 +957,24 @@ function Vn(p) {
|
|
|
957
957
|
let e = Pi.get(r);
|
|
958
958
|
e && ({additions: t, deletions: n} = e);
|
|
959
959
|
}
|
|
960
|
-
return /* @__PURE__ */
|
|
960
|
+
return /* @__PURE__ */ j(Rn, {
|
|
961
961
|
fileKey: e.id,
|
|
962
962
|
path: r,
|
|
963
|
-
stat: /* @__PURE__ */
|
|
963
|
+
stat: /* @__PURE__ */ j(it, {
|
|
964
964
|
additions: t,
|
|
965
965
|
deletions: n,
|
|
966
966
|
className: "font-mono text-2xs"
|
|
967
967
|
})
|
|
968
968
|
});
|
|
969
969
|
}, ga;
|
|
970
|
-
|
|
970
|
+
_[83] === Symbol.for("react.memo_cache_sentinel") ? (ga = (e, t) => F((e) => Gt(e, t.id, t.collapsed === !0)), _[83] = ga) : ga = _[83];
|
|
971
971
|
let _a = {
|
|
972
972
|
diffStyle: I === "split" ? "split" : "unified",
|
|
973
973
|
lineDiffType: "none",
|
|
974
974
|
overflow: L ? "wrap" : "scroll",
|
|
975
|
-
theme: gt(
|
|
975
|
+
theme: gt(Yt),
|
|
976
976
|
preferredHighlighter: xt,
|
|
977
|
-
themeType:
|
|
977
|
+
themeType: Yt,
|
|
978
978
|
stickyHeaders: !0,
|
|
979
979
|
loadDiffFiles: (e) => xi.has(e) ? Promise.reject(Error(n(t("Unchanged lines are unavailable in a file with cut lines.")))) : ii(e),
|
|
980
980
|
enableGutterUtility: di && z === null && !vi,
|
|
@@ -986,7 +986,7 @@ function Vn(p) {
|
|
|
986
986
|
},
|
|
987
987
|
onItemCollapsedChange: ga
|
|
988
988
|
}, va;
|
|
989
|
-
|
|
989
|
+
_[84] !== Et || _[85] !== _n ? (va = async (e, t) => {
|
|
990
990
|
if (_n) return !1;
|
|
991
991
|
yn(!0);
|
|
992
992
|
let n = await t();
|
|
@@ -994,22 +994,22 @@ function Vn(p) {
|
|
|
994
994
|
type: "error",
|
|
995
995
|
title: e
|
|
996
996
|
}), !1) : (Et(), !0);
|
|
997
|
-
},
|
|
998
|
-
let ya = va, ba = (e, r) => /* @__PURE__ */
|
|
997
|
+
}, _[84] = Et, _[85] = _n, _[86] = va) : va = _[86];
|
|
998
|
+
let ya = va, ba = (e, r) => /* @__PURE__ */ j(Le, {
|
|
999
999
|
thread: e,
|
|
1000
|
-
workspaceRoot:
|
|
1000
|
+
workspaceRoot: T.workspaceRoot,
|
|
1001
1001
|
canReply: ci.reply,
|
|
1002
|
-
canResolve: ci.resolve && ze(
|
|
1003
|
-
canReact:
|
|
1002
|
+
canResolve: ci.resolve && ze(T, e),
|
|
1003
|
+
canReact: T.capabilities.reactions === !0,
|
|
1004
1004
|
environmentId: x,
|
|
1005
|
-
reference:
|
|
1005
|
+
reference: w,
|
|
1006
1006
|
completionScope: oi,
|
|
1007
1007
|
pending: _n,
|
|
1008
1008
|
fixPending: je === $e({
|
|
1009
1009
|
kind: "thread",
|
|
1010
1010
|
thread: e
|
|
1011
1011
|
}),
|
|
1012
|
-
fixLabel:
|
|
1012
|
+
fixLabel: Jt,
|
|
1013
1013
|
...Je ? { onFix: () => Je({
|
|
1014
1014
|
kind: "thread",
|
|
1015
1015
|
thread: e
|
|
@@ -1022,7 +1022,7 @@ function Vn(p) {
|
|
|
1022
1022
|
let i = await kr({
|
|
1023
1023
|
environmentId: x,
|
|
1024
1024
|
input: {
|
|
1025
|
-
...
|
|
1025
|
+
...w,
|
|
1026
1026
|
threadId: e.id,
|
|
1027
1027
|
cursor: r
|
|
1028
1028
|
}
|
|
@@ -1035,12 +1035,12 @@ function Vn(p) {
|
|
|
1035
1035
|
onReply: (r) => ya(n(t("Reply could not be posted")), () => Cr({
|
|
1036
1036
|
environmentId: x,
|
|
1037
1037
|
input: {
|
|
1038
|
-
...
|
|
1038
|
+
...w,
|
|
1039
1039
|
threadId: e.id,
|
|
1040
1040
|
body: r
|
|
1041
1041
|
}
|
|
1042
1042
|
})),
|
|
1043
|
-
canEditComment: (e) => Me(
|
|
1043
|
+
canEditComment: (e) => Me(T, {
|
|
1044
1044
|
author: e.author,
|
|
1045
1045
|
kind: "review-comment",
|
|
1046
1046
|
canEdit: e.canEdit
|
|
@@ -1048,7 +1048,7 @@ function Vn(p) {
|
|
|
1048
1048
|
onEditComment: (e, r) => ya(n(t("The comment could not be saved")), () => Dr({
|
|
1049
1049
|
environmentId: x,
|
|
1050
1050
|
input: {
|
|
1051
|
-
...
|
|
1051
|
+
...w,
|
|
1052
1052
|
commentId: e,
|
|
1053
1053
|
kind: "review-comment",
|
|
1054
1054
|
body: r
|
|
@@ -1057,46 +1057,46 @@ function Vn(p) {
|
|
|
1057
1057
|
onToggleResolved: () => void ya(n(t("The conversation could not be updated")), () => Tr({
|
|
1058
1058
|
environmentId: x,
|
|
1059
1059
|
input: {
|
|
1060
|
-
...
|
|
1060
|
+
...w,
|
|
1061
1061
|
threadId: e.id,
|
|
1062
1062
|
resolved: !e.isResolved
|
|
1063
1063
|
}
|
|
1064
1064
|
})),
|
|
1065
1065
|
onReacted: Et,
|
|
1066
1066
|
...r === void 0 ? {} : { hidden: r }
|
|
1067
|
-
}, `${
|
|
1067
|
+
}, `${w.projectId}#${w.number}:${e.id}`), xa = (...e) => {
|
|
1068
1068
|
let [t] = e;
|
|
1069
|
-
return /* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ M("div", {
|
|
1070
1070
|
className: "relative font-sans text-foreground has-[>:not([data-resolved-threads])]:py-1",
|
|
1071
1071
|
children: [
|
|
1072
|
-
t.metadata.image ? /* @__PURE__ */
|
|
1072
|
+
t.metadata.image ? /* @__PURE__ */ j("div", {
|
|
1073
1073
|
className: "flex justify-center p-3",
|
|
1074
|
-
children: /* @__PURE__ */
|
|
1074
|
+
children: /* @__PURE__ */ j(Ae, {
|
|
1075
1075
|
environmentId: x,
|
|
1076
1076
|
resource: {
|
|
1077
1077
|
_tag: pe,
|
|
1078
|
-
cwd:
|
|
1078
|
+
cwd: T.workspaceRoot,
|
|
1079
1079
|
url: t.metadata.image.url,
|
|
1080
|
-
repository:
|
|
1080
|
+
repository: T.repository
|
|
1081
1081
|
},
|
|
1082
1082
|
alt: t.metadata.image.path
|
|
1083
1083
|
})
|
|
1084
1084
|
}) : null,
|
|
1085
|
-
t.metadata.withheld ? /* @__PURE__ */
|
|
1085
|
+
t.metadata.withheld ? /* @__PURE__ */ j(mr, {
|
|
1086
1086
|
...t.metadata.withheld,
|
|
1087
1087
|
onLoad: Gi ? wi : void 0
|
|
1088
1088
|
}) : null,
|
|
1089
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ j(Re, {
|
|
1090
1090
|
threads: t.metadata.threads,
|
|
1091
1091
|
renderThread: ba
|
|
1092
1092
|
}),
|
|
1093
|
-
t.metadata.pending.map((e) => /* @__PURE__ */
|
|
1093
|
+
t.metadata.pending.map((e) => /* @__PURE__ */ j(Ie, {
|
|
1094
1094
|
comment: e,
|
|
1095
1095
|
onRemove: () => xr(vr, e.id)
|
|
1096
1096
|
}, e.id)),
|
|
1097
|
-
t.metadata.draft && z && di ? /* @__PURE__ */
|
|
1097
|
+
t.metadata.draft && z && di ? /* @__PURE__ */ j(ct, {
|
|
1098
1098
|
environmentId: x,
|
|
1099
|
-
projectId:
|
|
1099
|
+
projectId: w.projectId,
|
|
1100
1100
|
ownerKey: JSON.stringify([
|
|
1101
1101
|
x,
|
|
1102
1102
|
vr,
|
|
@@ -1106,9 +1106,9 @@ function Vn(p) {
|
|
|
1106
1106
|
rangeLabel: `${z.path}:${Fe(z.position).line}`,
|
|
1107
1107
|
text: "",
|
|
1108
1108
|
completionScope: li ? oi : null,
|
|
1109
|
-
submitLabel:
|
|
1109
|
+
submitLabel: P(li ? "Add to review" : "Add to agent"),
|
|
1110
1110
|
...li && yt ? { secondaryAction: {
|
|
1111
|
-
label:
|
|
1111
|
+
label: P("Add to agent"),
|
|
1112
1112
|
onAction: (e) => da(z, e, (t) => yt({
|
|
1113
1113
|
comment: t,
|
|
1114
1114
|
request: e
|
|
@@ -1134,103 +1134,103 @@ function Vn(p) {
|
|
|
1134
1134
|
]
|
|
1135
1135
|
});
|
|
1136
1136
|
}, Sa;
|
|
1137
|
-
|
|
1138
|
-
let Ca = la.find(Sa), wa = Ca ? Ca.messageHeadline :
|
|
1139
|
-
|
|
1137
|
+
_[87] === V ? Sa = _[88] : (Sa = (e) => e.oid === V, _[87] = V, _[88] = Sa);
|
|
1138
|
+
let Ca = la.find(Sa), wa = Ca ? Ca.messageHeadline : P("All commits"), Ta;
|
|
1139
|
+
_[89] === Symbol.for("react.memo_cache_sentinel") ? (Ta = (e) => {
|
|
1140
1140
|
ln(e), gn(null), hn(null);
|
|
1141
|
-
},
|
|
1141
|
+
}, _[89] = Ta) : Ta = _[89];
|
|
1142
1142
|
let Ea = Ta, Da;
|
|
1143
|
-
|
|
1143
|
+
_[90] !== P || _[91] !== ji || _[92] !== pn ? (Da = ji > 0 ? /* @__PURE__ */ j(b, {
|
|
1144
1144
|
type: "button",
|
|
1145
1145
|
size: "xs",
|
|
1146
1146
|
variant: "link",
|
|
1147
1147
|
onClick: () => pn(!1),
|
|
1148
|
-
children:
|
|
1149
|
-
}) : null,
|
|
1148
|
+
children: P("{count, plural, one {{count} test file hidden} other {{count} test files hidden}}", { count: ji })
|
|
1149
|
+
}) : null, _[90] = P, _[91] = ji, _[92] = pn, _[93] = Da) : Da = _[93];
|
|
1150
1150
|
let Oa;
|
|
1151
|
-
|
|
1152
|
-
render: /* @__PURE__ */
|
|
1153
|
-
children: /* @__PURE__ */
|
|
1154
|
-
"aria-label":
|
|
1151
|
+
_[94] !== P || _[95] !== Ki ? (Oa = Ki ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
1152
|
+
render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
|
|
1153
|
+
children: /* @__PURE__ */ j(xe, {
|
|
1154
|
+
"aria-label": P("Some of this diff was not shown"),
|
|
1155
1155
|
className: "size-3.5 text-warning-foreground"
|
|
1156
1156
|
})
|
|
1157
|
-
}), /* @__PURE__ */
|
|
1157
|
+
}), /* @__PURE__ */ j(S, {
|
|
1158
1158
|
side: "bottom",
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1160
|
-
})] }) : null,
|
|
1159
|
+
children: /* @__PURE__ */ j(v, { children: "The host withheld part of this diff: a binary file, or a change too large to inline." })
|
|
1160
|
+
})] }) : null, _[94] = P, _[95] = Ki, _[96] = Oa) : Oa = _[96];
|
|
1161
1161
|
let ka;
|
|
1162
|
-
|
|
1162
|
+
_[97] === Symbol.for("react.memo_cache_sentinel") ? (ka = /* @__PURE__ */ j(b, {
|
|
1163
1163
|
size: "icon-sm",
|
|
1164
1164
|
variant: "ghost"
|
|
1165
|
-
}),
|
|
1165
|
+
}), _[97] = ka) : ka = _[97];
|
|
1166
1166
|
let Aa;
|
|
1167
|
-
|
|
1167
|
+
_[98] === P ? Aa = _[99] : (Aa = P("Diff options"), _[98] = P, _[99] = Aa);
|
|
1168
1168
|
let ja;
|
|
1169
|
-
|
|
1169
|
+
_[100] === Aa ? ja = _[101] : (ja = /* @__PURE__ */ j(c, {
|
|
1170
1170
|
render: ka,
|
|
1171
1171
|
className: "@lg:hidden",
|
|
1172
1172
|
"aria-label": Aa
|
|
1173
|
-
}),
|
|
1173
|
+
}), _[100] = Aa, _[101] = ja);
|
|
1174
1174
|
let Ma;
|
|
1175
|
-
|
|
1175
|
+
_[102] === Symbol.for("react.memo_cache_sentinel") ? (Ma = /* @__PURE__ */ j(Ce, { className: "size-3.5" }), _[102] = Ma) : Ma = _[102];
|
|
1176
1176
|
let Na;
|
|
1177
|
-
|
|
1177
|
+
_[103] === ja ? Na = _[104] : (Na = /* @__PURE__ */ j(E, {
|
|
1178
1178
|
render: ja,
|
|
1179
1179
|
children: Ma
|
|
1180
|
-
}),
|
|
1180
|
+
}), _[103] = ja, _[104] = Na);
|
|
1181
1181
|
let Pa;
|
|
1182
|
-
|
|
1182
|
+
_[105] === Symbol.for("react.memo_cache_sentinel") ? (Pa = /* @__PURE__ */ j(S, {
|
|
1183
1183
|
side: "top",
|
|
1184
|
-
children: /* @__PURE__ */
|
|
1185
|
-
}),
|
|
1184
|
+
children: /* @__PURE__ */ j(v, { children: "Diff options" })
|
|
1185
|
+
}), _[105] = Pa) : Pa = _[105];
|
|
1186
1186
|
let Fa;
|
|
1187
|
-
|
|
1187
|
+
_[106] === Na ? Fa = _[107] : (Fa = /* @__PURE__ */ M(C, { children: [Na, Pa] }), _[106] = Na, _[107] = Fa);
|
|
1188
1188
|
let Ia;
|
|
1189
|
-
|
|
1189
|
+
_[108] === Ea ? Ia = _[109] : (Ia = (e) => Ea(e), _[108] = Ea, _[109] = Ia);
|
|
1190
1190
|
let La;
|
|
1191
|
-
|
|
1191
|
+
_[110] === Symbol.for("react.memo_cache_sentinel") ? (La = /* @__PURE__ */ j(v, { children: "Hide whitespace changes" }), _[110] = La) : La = _[110];
|
|
1192
1192
|
let Ra;
|
|
1193
|
-
|
|
1193
|
+
_[111] !== R || _[112] !== Ia ? (Ra = /* @__PURE__ */ j(re, {
|
|
1194
1194
|
checked: R,
|
|
1195
1195
|
onCheckedChange: Ia,
|
|
1196
1196
|
children: La
|
|
1197
|
-
}),
|
|
1197
|
+
}), _[111] = R, _[112] = Ia, _[113] = Ra) : Ra = _[113];
|
|
1198
1198
|
let za, Ba;
|
|
1199
|
-
|
|
1199
|
+
_[114] === Symbol.for("react.memo_cache_sentinel") ? (za = (e) => cn(e), Ba = /* @__PURE__ */ j(v, { children: "Wrap lines" }), _[114] = za, _[115] = Ba) : (za = _[114], Ba = _[115]);
|
|
1200
1200
|
let Va;
|
|
1201
|
-
|
|
1201
|
+
_[116] === L ? Va = _[117] : (Va = /* @__PURE__ */ j(re, {
|
|
1202
1202
|
checked: L,
|
|
1203
1203
|
onCheckedChange: za,
|
|
1204
1204
|
children: Ba
|
|
1205
|
-
}),
|
|
1205
|
+
}), _[116] = L, _[117] = Va);
|
|
1206
1206
|
let Ha;
|
|
1207
|
-
|
|
1207
|
+
_[118] === Symbol.for("react.memo_cache_sentinel") ? (Ha = /* @__PURE__ */ j(r, {}), _[118] = Ha) : Ha = _[118];
|
|
1208
1208
|
let Ua;
|
|
1209
|
-
|
|
1209
|
+
_[119] === Symbol.for("react.memo_cache_sentinel") ? (Ua = /* @__PURE__ */ j(p, {
|
|
1210
1210
|
value: "stacked",
|
|
1211
1211
|
closeOnClick: !0,
|
|
1212
|
-
children: /* @__PURE__ */
|
|
1212
|
+
children: /* @__PURE__ */ j(v, {
|
|
1213
1213
|
context: "diff layout",
|
|
1214
1214
|
children: "Stacked"
|
|
1215
1215
|
})
|
|
1216
|
-
}),
|
|
1216
|
+
}), _[119] = Ua) : Ua = _[119];
|
|
1217
1217
|
let Wa;
|
|
1218
|
-
|
|
1218
|
+
_[120] === Symbol.for("react.memo_cache_sentinel") ? (Wa = /* @__PURE__ */ j(p, {
|
|
1219
1219
|
value: "split",
|
|
1220
1220
|
closeOnClick: !0,
|
|
1221
|
-
children: /* @__PURE__ */
|
|
1221
|
+
children: /* @__PURE__ */ j(v, {
|
|
1222
1222
|
context: "diff layout",
|
|
1223
1223
|
children: "Split"
|
|
1224
1224
|
})
|
|
1225
|
-
}),
|
|
1225
|
+
}), _[120] = Wa) : Wa = _[120];
|
|
1226
1226
|
let Ga;
|
|
1227
|
-
|
|
1227
|
+
_[121] === I ? Ga = _[122] : (Ga = /* @__PURE__ */ M(u, {
|
|
1228
1228
|
value: I,
|
|
1229
1229
|
onValueChange: Un,
|
|
1230
1230
|
children: [Ua, Wa]
|
|
1231
|
-
}),
|
|
1231
|
+
}), _[121] = I, _[122] = Ga);
|
|
1232
1232
|
let Ka;
|
|
1233
|
-
|
|
1233
|
+
_[123] !== Ra || _[124] !== Va || _[125] !== Ga ? (Ka = /* @__PURE__ */ M(o, {
|
|
1234
1234
|
align: "end",
|
|
1235
1235
|
children: [
|
|
1236
1236
|
Ra,
|
|
@@ -1238,153 +1238,153 @@ function Vn(p) {
|
|
|
1238
1238
|
Ha,
|
|
1239
1239
|
Ga
|
|
1240
1240
|
]
|
|
1241
|
-
}),
|
|
1241
|
+
}), _[123] = Ra, _[124] = Va, _[125] = Ga, _[126] = Ka) : Ka = _[126];
|
|
1242
1242
|
let qa;
|
|
1243
|
-
|
|
1243
|
+
_[127] !== Fa || _[128] !== Ka ? (qa = /* @__PURE__ */ M(h, { children: [Fa, Ka] }), _[127] = Fa, _[128] = Ka, _[129] = qa) : qa = _[129];
|
|
1244
1244
|
let Ja;
|
|
1245
|
-
|
|
1245
|
+
_[130] !== P || _[131] !== R ? (Ja = P(R ? "Show whitespace changes" : "Hide whitespace changes"), _[130] = P, _[131] = R, _[132] = Ja) : Ja = _[132];
|
|
1246
1246
|
let Ya;
|
|
1247
|
-
|
|
1247
|
+
_[133] === Ea ? Ya = _[134] : (Ya = (e) => Ea(!!e), _[133] = Ea, _[134] = Ya);
|
|
1248
1248
|
let Xa;
|
|
1249
|
-
|
|
1249
|
+
_[135] !== R || _[136] !== Ja || _[137] !== Ya ? (Xa = /* @__PURE__ */ j(ot, {
|
|
1250
1250
|
"aria-label": Ja,
|
|
1251
1251
|
variant: "ghost",
|
|
1252
1252
|
size: "sm",
|
|
1253
1253
|
pressed: R,
|
|
1254
1254
|
onPressedChange: Ya
|
|
1255
|
-
}),
|
|
1255
|
+
}), _[135] = R, _[136] = Ja, _[137] = Ya, _[138] = Xa) : Xa = _[138];
|
|
1256
1256
|
let Za;
|
|
1257
|
-
|
|
1257
|
+
_[139] === Symbol.for("react.memo_cache_sentinel") ? (Za = /* @__PURE__ */ j(Te, { className: "size-3.5" }), _[139] = Za) : Za = _[139];
|
|
1258
1258
|
let Qa;
|
|
1259
|
-
|
|
1259
|
+
_[140] === Xa ? Qa = _[141] : (Qa = /* @__PURE__ */ j(E, {
|
|
1260
1260
|
render: Xa,
|
|
1261
1261
|
children: Za
|
|
1262
|
-
}),
|
|
1262
|
+
}), _[140] = Xa, _[141] = Qa);
|
|
1263
1263
|
let $a;
|
|
1264
|
-
|
|
1264
|
+
_[142] !== P || _[143] !== R ? ($a = P(R ? "Show whitespace changes" : "Hide whitespace changes"), _[142] = P, _[143] = R, _[144] = $a) : $a = _[144];
|
|
1265
1265
|
let eo;
|
|
1266
|
-
|
|
1266
|
+
_[145] === $a ? eo = _[146] : (eo = /* @__PURE__ */ j(S, {
|
|
1267
1267
|
side: "top",
|
|
1268
1268
|
children: $a
|
|
1269
|
-
}),
|
|
1269
|
+
}), _[145] = $a, _[146] = eo);
|
|
1270
1270
|
let to;
|
|
1271
|
-
|
|
1271
|
+
_[147] !== Qa || _[148] !== eo ? (to = /* @__PURE__ */ M(C, { children: [Qa, eo] }), _[147] = Qa, _[148] = eo, _[149] = to) : to = _[149];
|
|
1272
1272
|
let no;
|
|
1273
|
-
|
|
1273
|
+
_[150] === P ? no = _[151] : (no = P("Diff layout"), _[150] = P, _[151] = no);
|
|
1274
1274
|
let ro;
|
|
1275
|
-
|
|
1275
|
+
_[152] === I ? ro = _[153] : (ro = [I], _[152] = I, _[153] = ro);
|
|
1276
1276
|
let io;
|
|
1277
|
-
|
|
1277
|
+
_[154] === P ? io = _[155] : (io = P("Stacked diff view"), _[154] = P, _[155] = io);
|
|
1278
1278
|
let ao;
|
|
1279
|
-
|
|
1279
|
+
_[156] === Symbol.for("react.memo_cache_sentinel") ? (ao = /* @__PURE__ */ j(De, { className: "size-3.5" }), _[156] = ao) : ao = _[156];
|
|
1280
1280
|
let oo;
|
|
1281
|
-
|
|
1281
|
+
_[157] === io ? oo = _[158] : (oo = /* @__PURE__ */ j(ot, {
|
|
1282
1282
|
"aria-label": io,
|
|
1283
1283
|
value: "stacked",
|
|
1284
1284
|
children: ao
|
|
1285
|
-
}),
|
|
1285
|
+
}), _[157] = io, _[158] = oo);
|
|
1286
1286
|
let so;
|
|
1287
|
-
|
|
1287
|
+
_[159] === P ? so = _[160] : (so = P("Split diff view"), _[159] = P, _[160] = so);
|
|
1288
1288
|
let co;
|
|
1289
|
-
|
|
1289
|
+
_[161] === Symbol.for("react.memo_cache_sentinel") ? (co = /* @__PURE__ */ j(we, { className: "size-3.5" }), _[161] = co) : co = _[161];
|
|
1290
1290
|
let lo;
|
|
1291
|
-
|
|
1291
|
+
_[162] === so ? lo = _[163] : (lo = /* @__PURE__ */ j(ot, {
|
|
1292
1292
|
"aria-label": so,
|
|
1293
1293
|
value: "split",
|
|
1294
1294
|
children: co
|
|
1295
|
-
}),
|
|
1295
|
+
}), _[162] = so, _[163] = lo);
|
|
1296
1296
|
let uo;
|
|
1297
|
-
|
|
1297
|
+
_[164] !== no || _[165] !== ro || _[166] !== oo || _[167] !== lo ? (uo = /* @__PURE__ */ M(at, {
|
|
1298
1298
|
"aria-label": no,
|
|
1299
1299
|
className: "shrink-0",
|
|
1300
1300
|
variant: "segmented",
|
|
1301
1301
|
value: ro,
|
|
1302
1302
|
onValueChange: Hn,
|
|
1303
1303
|
children: [oo, lo]
|
|
1304
|
-
}),
|
|
1304
|
+
}), _[164] = no, _[165] = ro, _[166] = oo, _[167] = lo, _[168] = uo) : uo = _[168];
|
|
1305
1305
|
let fo;
|
|
1306
|
-
|
|
1306
|
+
_[169] !== P || _[170] !== L ? (fo = P(L ? "Disable diff line wrapping" : "Enable diff line wrapping"), _[169] = P, _[170] = L, _[171] = fo) : fo = _[171];
|
|
1307
1307
|
let po;
|
|
1308
|
-
|
|
1308
|
+
_[172] === Symbol.for("react.memo_cache_sentinel") ? (po = (e) => {
|
|
1309
1309
|
cn(!!e);
|
|
1310
|
-
},
|
|
1310
|
+
}, _[172] = po) : po = _[172];
|
|
1311
1311
|
let mo;
|
|
1312
|
-
|
|
1312
|
+
_[173] !== fo || _[174] !== L ? (mo = /* @__PURE__ */ j(ot, {
|
|
1313
1313
|
"aria-label": fo,
|
|
1314
1314
|
variant: "ghost",
|
|
1315
1315
|
size: "sm",
|
|
1316
1316
|
pressed: L,
|
|
1317
1317
|
onPressedChange: po
|
|
1318
|
-
}),
|
|
1318
|
+
}), _[173] = fo, _[174] = L, _[175] = mo) : mo = _[175];
|
|
1319
1319
|
let ho;
|
|
1320
|
-
|
|
1320
|
+
_[176] === Symbol.for("react.memo_cache_sentinel") ? (ho = /* @__PURE__ */ j(Se, { className: "size-3.5" }), _[176] = ho) : ho = _[176];
|
|
1321
1321
|
let go;
|
|
1322
|
-
|
|
1322
|
+
_[177] === mo ? go = _[178] : (go = /* @__PURE__ */ j(E, {
|
|
1323
1323
|
render: mo,
|
|
1324
1324
|
children: ho
|
|
1325
|
-
}),
|
|
1325
|
+
}), _[177] = mo, _[178] = go);
|
|
1326
1326
|
let _o;
|
|
1327
|
-
|
|
1327
|
+
_[179] !== P || _[180] !== L ? (_o = P(L ? "Disable line wrapping" : "Enable line wrapping"), _[179] = P, _[180] = L, _[181] = _o) : _o = _[181];
|
|
1328
1328
|
let vo;
|
|
1329
|
-
|
|
1329
|
+
_[182] === _o ? vo = _[183] : (vo = /* @__PURE__ */ j(S, {
|
|
1330
1330
|
side: "top",
|
|
1331
1331
|
children: _o
|
|
1332
|
-
}),
|
|
1332
|
+
}), _[182] = _o, _[183] = vo);
|
|
1333
1333
|
let yo;
|
|
1334
|
-
|
|
1334
|
+
_[184] !== go || _[185] !== vo ? (yo = /* @__PURE__ */ M(C, { children: [go, vo] }), _[184] = go, _[185] = vo, _[186] = yo) : yo = _[186];
|
|
1335
1335
|
let bo;
|
|
1336
|
-
|
|
1336
|
+
_[187] !== to || _[188] !== uo || _[189] !== yo ? (bo = /* @__PURE__ */ M("div", {
|
|
1337
1337
|
className: "hidden items-center gap-1 @lg:flex",
|
|
1338
1338
|
children: [
|
|
1339
1339
|
to,
|
|
1340
1340
|
uo,
|
|
1341
1341
|
yo
|
|
1342
1342
|
]
|
|
1343
|
-
}),
|
|
1343
|
+
}), _[187] = to, _[188] = uo, _[189] = yo, _[190] = bo) : bo = _[190];
|
|
1344
1344
|
let xo;
|
|
1345
|
-
|
|
1346
|
-
render: /* @__PURE__ */
|
|
1345
|
+
_[191] !== ta || _[192] !== $i.length || _[193] !== P || _[194] !== ca ? (xo = $i.length > 0 ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
1346
|
+
render: /* @__PURE__ */ j(b, {
|
|
1347
1347
|
type: "button",
|
|
1348
1348
|
size: "icon-sm",
|
|
1349
1349
|
variant: "ghost",
|
|
1350
|
-
"aria-label":
|
|
1350
|
+
"aria-label": P(ta ? "Expand all files" : "Collapse all files"),
|
|
1351
1351
|
onClick: ca
|
|
1352
1352
|
}),
|
|
1353
|
-
children:
|
|
1354
|
-
}), /* @__PURE__ */
|
|
1353
|
+
children: j(ta ? ye : _e, { className: "size-3.5" })
|
|
1354
|
+
}), /* @__PURE__ */ j(S, {
|
|
1355
1355
|
side: "top",
|
|
1356
|
-
children:
|
|
1357
|
-
})] }) : null,
|
|
1356
|
+
children: P(ta ? "Expand all files" : "Collapse all files")
|
|
1357
|
+
})] }) : null, _[191] = ta, _[192] = $i.length, _[193] = P, _[194] = ca, _[195] = xo) : xo = _[195];
|
|
1358
1358
|
let So;
|
|
1359
|
-
|
|
1360
|
-
render: /* @__PURE__ */
|
|
1361
|
-
"aria-label":
|
|
1359
|
+
_[196] !== P || _[197] !== fn || _[198] !== pn || _[199] !== Ai ? (So = Ai > 0 ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
1360
|
+
render: /* @__PURE__ */ j(ot, {
|
|
1361
|
+
"aria-label": P("Hide test files"),
|
|
1362
1362
|
variant: "ghost",
|
|
1363
1363
|
size: "sm",
|
|
1364
1364
|
pressed: fn,
|
|
1365
1365
|
onPressedChange: (e) => pn(!!e)
|
|
1366
1366
|
}),
|
|
1367
|
-
children: /* @__PURE__ */
|
|
1368
|
-
}), /* @__PURE__ */
|
|
1367
|
+
children: /* @__PURE__ */ j(Ee, { className: "size-3.5" })
|
|
1368
|
+
}), /* @__PURE__ */ j(S, {
|
|
1369
1369
|
side: "top",
|
|
1370
|
-
children:
|
|
1371
|
-
})] }) : null,
|
|
1370
|
+
children: P(fn ? "Show test files" : "Hide test files")
|
|
1371
|
+
})] }) : null, _[196] = P, _[197] = fn, _[198] = pn, _[199] = Ai, _[200] = So) : So = _[200];
|
|
1372
1372
|
let Co;
|
|
1373
|
-
|
|
1374
|
-
render: /* @__PURE__ */
|
|
1375
|
-
"aria-label":
|
|
1373
|
+
_[201] !== $i.length || _[202] !== un || _[203] !== P || _[204] !== dn ? (Co = $i.length > 0 ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
1374
|
+
render: /* @__PURE__ */ j(ot, {
|
|
1375
|
+
"aria-label": P(un ? "Hide file tree" : "Show file tree"),
|
|
1376
1376
|
variant: "ghost",
|
|
1377
1377
|
size: "sm",
|
|
1378
1378
|
pressed: un,
|
|
1379
1379
|
onPressedChange: (e) => dn(!!e)
|
|
1380
1380
|
}),
|
|
1381
|
-
children: /* @__PURE__ */
|
|
1382
|
-
}), /* @__PURE__ */
|
|
1381
|
+
children: /* @__PURE__ */ j(ve, { className: "size-3.5" })
|
|
1382
|
+
}), /* @__PURE__ */ j(S, {
|
|
1383
1383
|
side: "top",
|
|
1384
|
-
children:
|
|
1385
|
-
})] }) : null,
|
|
1384
|
+
children: P(un ? "Hide file tree" : "Show file tree")
|
|
1385
|
+
})] }) : null, _[201] = $i.length, _[202] = un, _[203] = P, _[204] = dn, _[205] = Co) : Co = _[205];
|
|
1386
1386
|
let wo;
|
|
1387
|
-
|
|
1387
|
+
_[206] !== qa || _[207] !== bo || _[208] !== xo || _[209] !== So || _[210] !== Co ? (wo = /* @__PURE__ */ M("div", {
|
|
1388
1388
|
className: "flex shrink-0 items-center gap-1",
|
|
1389
1389
|
children: [
|
|
1390
1390
|
qa,
|
|
@@ -1393,51 +1393,51 @@ function Vn(p) {
|
|
|
1393
1393
|
So,
|
|
1394
1394
|
Co
|
|
1395
1395
|
]
|
|
1396
|
-
}),
|
|
1397
|
-
let To = /* @__PURE__ */
|
|
1396
|
+
}), _[206] = qa, _[207] = bo, _[208] = xo, _[209] = So, _[210] = Co, _[211] = wo) : wo = _[211];
|
|
1397
|
+
let To = /* @__PURE__ */ M("div", {
|
|
1398
1398
|
className: "@container flex h-10 min-h-10 shrink-0 items-center justify-between gap-2 border-b border-border/60 bg-background px-4 text-xs text-muted-foreground",
|
|
1399
|
-
children: [/* @__PURE__ */
|
|
1399
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1400
1400
|
className: "flex min-w-0 flex-1 items-center gap-3",
|
|
1401
|
-
children: [la.length > 0 ? /* @__PURE__ */
|
|
1402
|
-
render: /* @__PURE__ */
|
|
1401
|
+
children: [la.length > 0 ? /* @__PURE__ */ M(h, { children: [/* @__PURE__ */ M(c, {
|
|
1402
|
+
render: /* @__PURE__ */ j(b, {
|
|
1403
1403
|
size: "xs",
|
|
1404
1404
|
variant: "secondary"
|
|
1405
1405
|
}),
|
|
1406
1406
|
className: "min-w-0 max-w-64",
|
|
1407
|
-
"aria-label":
|
|
1408
|
-
children: [/* @__PURE__ */
|
|
1407
|
+
"aria-label": P("Diff scope: {scope}", { scope: wa }),
|
|
1408
|
+
children: [/* @__PURE__ */ j("span", {
|
|
1409
1409
|
className: "truncate",
|
|
1410
1410
|
children: wa
|
|
1411
|
-
}), /* @__PURE__ */
|
|
1412
|
-
}), /* @__PURE__ */
|
|
1411
|
+
}), /* @__PURE__ */ j(ge, { className: "size-3.5 shrink-0 opacity-70" })]
|
|
1412
|
+
}), /* @__PURE__ */ M(o, {
|
|
1413
1413
|
align: "start",
|
|
1414
1414
|
className: "max-w-[min(28rem,calc(100vw-2rem))]",
|
|
1415
|
-
children: [/* @__PURE__ */
|
|
1415
|
+
children: [/* @__PURE__ */ M(u, {
|
|
1416
1416
|
value: V ?? "all",
|
|
1417
1417
|
onValueChange: (e) => ke(e === "all" ? null : e),
|
|
1418
|
-
children: [/* @__PURE__ */
|
|
1418
|
+
children: [/* @__PURE__ */ j(p, {
|
|
1419
1419
|
value: "all",
|
|
1420
1420
|
closeOnClick: !0,
|
|
1421
|
-
children: /* @__PURE__ */
|
|
1421
|
+
children: /* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(v, { children: "All commits" }) })
|
|
1422
1422
|
}), la.slice(0, en).map(Gn)]
|
|
1423
|
-
}), la.length > en ? /* @__PURE__ */
|
|
1423
|
+
}), la.length > en ? /* @__PURE__ */ j(m, {
|
|
1424
1424
|
closeOnClick: !1,
|
|
1425
1425
|
onClick: () => tn(Wn),
|
|
1426
|
-
children: /* @__PURE__ */
|
|
1426
|
+
children: /* @__PURE__ */ j("span", {
|
|
1427
1427
|
className: "text-muted-foreground",
|
|
1428
|
-
children:
|
|
1428
|
+
children: P("{count, plural, one {Show more ({count} left)} other {Show more ({count} left)}}", { count: la.length - en })
|
|
1429
1429
|
})
|
|
1430
1430
|
}) : null]
|
|
1431
|
-
})] }) : null, /* @__PURE__ */
|
|
1432
|
-
/* @__PURE__ */
|
|
1431
|
+
})] }) : null, /* @__PURE__ */ M(Qe, { children: [
|
|
1432
|
+
/* @__PURE__ */ M("span", {
|
|
1433
1433
|
className: "shrink-0 tabular-nums",
|
|
1434
|
-
children: [
|
|
1434
|
+
children: [P("{count, plural, one {{count} file} other {{count} files}}", { count: Y.length }), X === null ? "" : "+"]
|
|
1435
1435
|
}),
|
|
1436
1436
|
Da,
|
|
1437
|
-
Pr.enabled && Y.length > 0 ? /* @__PURE__ */
|
|
1437
|
+
Pr.enabled && Y.length > 0 ? /* @__PURE__ */ M("span", {
|
|
1438
1438
|
className: "flex min-w-0 items-center gap-1 tabular-nums",
|
|
1439
1439
|
children: [
|
|
1440
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ M("span", {
|
|
1441
1441
|
className: "shrink-0",
|
|
1442
1442
|
children: [
|
|
1443
1443
|
Mi.filter(Lr).length,
|
|
@@ -1445,74 +1445,74 @@ function Vn(p) {
|
|
|
1445
1445
|
Y.length
|
|
1446
1446
|
]
|
|
1447
1447
|
}),
|
|
1448
|
-
/* @__PURE__ */
|
|
1448
|
+
/* @__PURE__ */ j("span", {
|
|
1449
1449
|
className: "truncate",
|
|
1450
|
-
children: jr === "environment" ?
|
|
1450
|
+
children: jr === "environment" ? P("viewed in {app}", { app: e }) : P("viewed", { $context: "files marked as viewed" })
|
|
1451
1451
|
}),
|
|
1452
|
-
jr === "environment" ? /* @__PURE__ */
|
|
1453
|
-
render: /* @__PURE__ */
|
|
1454
|
-
children: /* @__PURE__ */
|
|
1455
|
-
"aria-label":
|
|
1452
|
+
jr === "environment" ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
1453
|
+
render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
|
|
1454
|
+
children: /* @__PURE__ */ j(be, {
|
|
1455
|
+
"aria-label": P("These ticks are kept here, not on the host"),
|
|
1456
1456
|
className: "text-muted-foreground size-3.5"
|
|
1457
1457
|
})
|
|
1458
|
-
}), /* @__PURE__ */
|
|
1458
|
+
}), /* @__PURE__ */ j(S, {
|
|
1459
1459
|
side: "bottom",
|
|
1460
|
-
children: /* @__PURE__ */
|
|
1460
|
+
children: /* @__PURE__ */ j(v, { children: "This host keeps no shared record of which files you have read, so these ticks are kept by this environment. They follow you between the apps connected to it, but the host's own web UI will not show them." })
|
|
1461
1461
|
})] }) : null,
|
|
1462
|
-
Pr.error === null ? null : /* @__PURE__ */
|
|
1463
|
-
render: /* @__PURE__ */
|
|
1464
|
-
children: /* @__PURE__ */
|
|
1465
|
-
"aria-label":
|
|
1462
|
+
Pr.error === null ? null : /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
1463
|
+
render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
|
|
1464
|
+
children: /* @__PURE__ */ j(xe, {
|
|
1465
|
+
"aria-label": P("Your ticks could not be read"),
|
|
1466
1466
|
className: "size-3.5 text-warning-foreground"
|
|
1467
1467
|
})
|
|
1468
|
-
}), /* @__PURE__ */
|
|
1468
|
+
}), /* @__PURE__ */ j(S, {
|
|
1469
1469
|
side: "bottom",
|
|
1470
|
-
children: /* @__PURE__ */
|
|
1470
|
+
children: /* @__PURE__ */ M(v, { children: ["The boxes below are whatever was last read, and empty if nothing has been read yet. ", /* @__PURE__ */ j(le, { children: Pr.error })] })
|
|
1471
1471
|
})] }),
|
|
1472
|
-
Pr.truncated ? /* @__PURE__ */
|
|
1473
|
-
render: /* @__PURE__ */
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1475
|
-
"aria-label":
|
|
1472
|
+
Pr.truncated ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
1473
|
+
render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
|
|
1474
|
+
children: /* @__PURE__ */ j(xe, {
|
|
1475
|
+
"aria-label": P("This count covers only part of the change"),
|
|
1476
1476
|
className: "size-3.5 text-warning-foreground"
|
|
1477
1477
|
})
|
|
1478
|
-
}), /* @__PURE__ */
|
|
1478
|
+
}), /* @__PURE__ */ j(S, {
|
|
1479
1479
|
side: "bottom",
|
|
1480
|
-
children: /* @__PURE__ */
|
|
1480
|
+
children: /* @__PURE__ */ j(v, { children: "This change has more files than the host will report ticks for in one read, so the count is short and some boxes below start empty." })
|
|
1481
1481
|
})] }) : null
|
|
1482
1482
|
]
|
|
1483
1483
|
}) : null,
|
|
1484
1484
|
Oa,
|
|
1485
|
-
V !== null && ci.inlineComment ? /* @__PURE__ */
|
|
1486
|
-
render: /* @__PURE__ */
|
|
1487
|
-
children: /* @__PURE__ */
|
|
1488
|
-
"aria-label":
|
|
1485
|
+
V !== null && ci.inlineComment ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
|
|
1486
|
+
render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
|
|
1487
|
+
children: /* @__PURE__ */ j(Oe, {
|
|
1488
|
+
"aria-label": P("Line comments are written from the whole change"),
|
|
1489
1489
|
className: "size-3.5"
|
|
1490
1490
|
})
|
|
1491
|
-
}), /* @__PURE__ */
|
|
1491
|
+
}), /* @__PURE__ */ j(S, {
|
|
1492
1492
|
side: "bottom",
|
|
1493
|
-
children: /* @__PURE__ */
|
|
1493
|
+
children: /* @__PURE__ */ j(v, { children: "A comment is anchored to the whole change, so switch to All commits to write one." })
|
|
1494
1494
|
})] }) : null
|
|
1495
1495
|
] })]
|
|
1496
1496
|
}), wo]
|
|
1497
1497
|
}), Eo;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
},
|
|
1498
|
+
_[212] !== Q || _[213] !== Z || _[214] !== $ || _[215] !== sa || _[216] !== N ? (Eo = () => {
|
|
1499
|
+
N !== null && ri.current !== N.nonce && (Z.some((e) => O(e.fileDiff) === N.path) ? (ri.current = N.nonce, sa(N.path)) : Q && $());
|
|
1500
|
+
}, _[212] = Q, _[213] = Z, _[214] = $, _[215] = sa, _[216] = N, _[217] = Eo) : Eo = _[217];
|
|
1501
1501
|
let Do = zt(Eo), Oo;
|
|
1502
|
-
|
|
1502
|
+
_[218] === Do ? Oo = _[219] : (Oo = () => {
|
|
1503
1503
|
Do();
|
|
1504
|
-
},
|
|
1504
|
+
}, _[218] = Do, _[219] = Oo);
|
|
1505
1505
|
let ko;
|
|
1506
|
-
|
|
1506
|
+
_[220] !== Q || _[221] !== Z || _[222] !== N ? (ko = [
|
|
1507
1507
|
Q,
|
|
1508
1508
|
Z,
|
|
1509
|
-
|
|
1510
|
-
],
|
|
1509
|
+
N
|
|
1510
|
+
], _[220] = Q, _[221] = Z, _[222] = N, _[223] = ko) : ko = _[223], Rt(Oo, ko);
|
|
1511
1511
|
let Ao = Bt(null), jo;
|
|
1512
|
-
|
|
1512
|
+
_[224] !== Q || _[225] !== V || _[226] !== T.commits || _[227] !== Z || _[228] !== Ti || _[229] !== Ei || _[230] !== $ || _[231] !== U.length || _[232] !== X || _[233] !== Ft || _[234] !== J || _[235] !== sa || _[236] !== k || _[237] !== H || _[238] !== Oi ? (jo = () => {
|
|
1513
1513
|
if (k === void 0 && (Ao.current = null), k === void 0 || Ti?.kind !== "diff") return;
|
|
1514
1514
|
let e = Ze(k);
|
|
1515
|
-
if ((
|
|
1515
|
+
if ((T.commits.some((t) => t.oid === e) ? e : null) !== V) return;
|
|
1516
1516
|
let t = `${H}:${k}`;
|
|
1517
1517
|
if (Ao.current === t) return;
|
|
1518
1518
|
if (!J || !Z.some((e) => O(e.fileDiff) === J)) {
|
|
@@ -1530,52 +1530,52 @@ function Vn(p) {
|
|
|
1530
1530
|
side: Ne(n.side),
|
|
1531
1531
|
endSide: Ne(n.endSide)
|
|
1532
1532
|
} : void 0);
|
|
1533
|
-
},
|
|
1533
|
+
}, _[224] = Q, _[225] = V, _[226] = T.commits, _[227] = Z, _[228] = Ti, _[229] = Ei, _[230] = $, _[231] = U.length, _[232] = X, _[233] = Ft, _[234] = J, _[235] = sa, _[236] = k, _[237] = H, _[238] = Oi, _[239] = jo) : jo = _[239];
|
|
1534
1534
|
let Mo = zt(jo), No;
|
|
1535
|
-
|
|
1535
|
+
_[240] === Mo ? No = _[241] : (No = () => {
|
|
1536
1536
|
Mo();
|
|
1537
|
-
},
|
|
1537
|
+
}, _[240] = Mo, _[241] = No);
|
|
1538
1538
|
let Po;
|
|
1539
|
-
|
|
1539
|
+
_[242] !== Q || _[243] !== Z || _[244] !== J || _[245] !== k ? (Po = [
|
|
1540
1540
|
k,
|
|
1541
1541
|
J,
|
|
1542
1542
|
Q,
|
|
1543
1543
|
Z
|
|
1544
|
-
],
|
|
1545
|
-
let Fo = (e) => /* @__PURE__ */
|
|
1544
|
+
], _[242] = Q, _[243] = Z, _[244] = J, _[245] = k, _[246] = Po) : Po = _[246], Rt(No, Po);
|
|
1545
|
+
let Fo = (e) => /* @__PURE__ */ M("div", {
|
|
1546
1546
|
className: "flex h-full min-h-0 flex-col",
|
|
1547
|
-
children: [To, /* @__PURE__ */
|
|
1548
|
-
ref:
|
|
1547
|
+
children: [To, /* @__PURE__ */ j("div", {
|
|
1548
|
+
ref: y,
|
|
1549
1549
|
className: "min-h-0 flex-1 overflow-auto",
|
|
1550
1550
|
children: e
|
|
1551
1551
|
})]
|
|
1552
|
-
}), Io = oe(
|
|
1553
|
-
if (G.isPending && U.length === 0) return Fo(/* @__PURE__ */
|
|
1552
|
+
}), Io = oe(ue.get(T.provider).changeRequest);
|
|
1553
|
+
if (G.isPending && U.length === 0) return Fo(/* @__PURE__ */ j(St, { label: P("Loading {term, select, mr {merge request} cr {change request} other {pull request}} diff...", { term: Io }) }));
|
|
1554
1554
|
if (G.error && U.length === 0) {
|
|
1555
1555
|
let e;
|
|
1556
|
-
|
|
1556
|
+
_[247] === G ? e = _[248] : (e = () => G.refresh(), _[247] = G, _[248] = e);
|
|
1557
1557
|
let t;
|
|
1558
|
-
return
|
|
1558
|
+
return _[249] !== T.provider || _[250] !== T.url || _[251] !== G.error || _[252] !== e ? (t = /* @__PURE__ */ j(on, {
|
|
1559
1559
|
error: G.error,
|
|
1560
|
-
provider:
|
|
1561
|
-
url:
|
|
1560
|
+
provider: T.provider,
|
|
1561
|
+
url: T.url,
|
|
1562
1562
|
onRetry: e
|
|
1563
|
-
}),
|
|
1563
|
+
}), _[249] = T.provider, _[250] = T.url, _[251] = G.error, _[252] = e, _[253] = t) : t = _[253], Fo(t);
|
|
1564
1564
|
}
|
|
1565
1565
|
if (Ji !== null) return Fo(Ji);
|
|
1566
|
-
if (Z.length === 0 && X === null) return Fo(/* @__PURE__ */
|
|
1566
|
+
if (Z.length === 0 && X === null) return Fo(/* @__PURE__ */ j("p", {
|
|
1567
1567
|
className: "px-4 py-5 text-sm text-muted-foreground",
|
|
1568
|
-
children: V === null ?
|
|
1568
|
+
children: V === null ? P("This {term, select, mr {merge request} cr {change request} other {pull request}} has no file changes.", { term: Io }) : P("This commit has no file changes.")
|
|
1569
1569
|
}));
|
|
1570
1570
|
let Lo;
|
|
1571
|
-
|
|
1572
|
-
let Ro =
|
|
1571
|
+
_[254] === Ri ? Lo = _[255] : (Lo = (e) => !Ri.has(e.id), _[254] = Ri, _[255] = Lo);
|
|
1572
|
+
let Ro = T.reviewThreads.filter(Lo), zo = /* @__PURE__ */ new Map();
|
|
1573
1573
|
for (let e of Ro) {
|
|
1574
1574
|
let t = zo.get(e.path);
|
|
1575
1575
|
t ? t.push(e) : zo.set(e.path, [e]);
|
|
1576
1576
|
}
|
|
1577
1577
|
let Bo;
|
|
1578
|
-
return
|
|
1578
|
+
return _[256] !== Z || _[257] !== aa ? (Bo = (e) => {
|
|
1579
1579
|
let t = e.nativeEvent.composedPath?.() ?? [];
|
|
1580
1580
|
for (let e of t) if (e instanceof HTMLElement) {
|
|
1581
1581
|
if (e instanceof HTMLButtonElement || e instanceof HTMLAnchorElement || e.hasAttribute("data-viewed-toggle")) return;
|
|
@@ -1587,68 +1587,68 @@ function Vn(p) {
|
|
|
1587
1587
|
return;
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
|
-
},
|
|
1590
|
+
}, _[256] = Z, _[257] = aa, _[258] = Bo) : Bo = _[258], /* @__PURE__ */ M("div", {
|
|
1591
1591
|
className: "flex h-full min-h-0 flex-col",
|
|
1592
1592
|
children: [
|
|
1593
1593
|
To,
|
|
1594
|
-
zo.size > 0 ? /* @__PURE__ */
|
|
1594
|
+
zo.size > 0 ? /* @__PURE__ */ j("div", {
|
|
1595
1595
|
className: "shrink-0 border-b border-border/60",
|
|
1596
|
-
children: /* @__PURE__ */
|
|
1596
|
+
children: /* @__PURE__ */ M(ft, {
|
|
1597
1597
|
open: bn,
|
|
1598
1598
|
onOpenChange: Sn,
|
|
1599
|
-
children: [/* @__PURE__ */
|
|
1599
|
+
children: [/* @__PURE__ */ j("h2", { children: /* @__PURE__ */ M(dt, {
|
|
1600
1600
|
className: "flex w-full items-center gap-1.5 px-4 py-2 text-left text-xs text-muted-foreground",
|
|
1601
1601
|
children: [
|
|
1602
|
-
/* @__PURE__ */
|
|
1603
|
-
/* @__PURE__ */
|
|
1602
|
+
/* @__PURE__ */ j("span", { children: P(X === null ? "Conversations not on the current diff" : "Conversations not on the diff loaded so far") }),
|
|
1603
|
+
/* @__PURE__ */ j(me, {
|
|
1604
1604
|
"aria-hidden": !0,
|
|
1605
1605
|
className: se("size-3.5 transition-transform", bn && "rotate-90")
|
|
1606
1606
|
}),
|
|
1607
|
-
/* @__PURE__ */
|
|
1607
|
+
/* @__PURE__ */ j("span", {
|
|
1608
1608
|
"aria-hidden": !0,
|
|
1609
1609
|
className: "tabular-nums",
|
|
1610
1610
|
children: Ro.length
|
|
1611
1611
|
}),
|
|
1612
|
-
/* @__PURE__ */
|
|
1612
|
+
/* @__PURE__ */ j("span", {
|
|
1613
1613
|
className: "sr-only",
|
|
1614
|
-
children:
|
|
1614
|
+
children: P("{count, plural, one {{count} conversation} other {{count} conversations}}", { count: Ro.length })
|
|
1615
1615
|
})
|
|
1616
1616
|
]
|
|
1617
|
-
}) }), /* @__PURE__ */
|
|
1617
|
+
}) }), /* @__PURE__ */ j(ut, { children: /* @__PURE__ */ j("div", {
|
|
1618
1618
|
className: "max-h-64 space-y-1 overflow-auto px-1 pb-1",
|
|
1619
1619
|
children: [...zo].map((e) => {
|
|
1620
1620
|
let [t, n] = e;
|
|
1621
|
-
return /* @__PURE__ */
|
|
1621
|
+
return /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, { render: /* @__PURE__ */ j("p", {
|
|
1622
1622
|
className: "truncate px-3 text-xs text-muted-foreground",
|
|
1623
1623
|
children: t
|
|
1624
|
-
}) }), /* @__PURE__ */
|
|
1624
|
+
}) }), /* @__PURE__ */ j(S, {
|
|
1625
1625
|
side: "top",
|
|
1626
1626
|
children: t
|
|
1627
|
-
})] }), /* @__PURE__ */
|
|
1627
|
+
})] }), /* @__PURE__ */ j("div", {
|
|
1628
1628
|
className: "mt-1 space-y-2",
|
|
1629
|
-
children: n.map((e) => /* @__PURE__ */
|
|
1629
|
+
children: n.map((e) => /* @__PURE__ */ M("div", { children: [e.line === null ? null : /* @__PURE__ */ j("p", {
|
|
1630
1630
|
className: "px-3 text-xs text-muted-foreground",
|
|
1631
|
-
children: /* @__PURE__ */
|
|
1631
|
+
children: /* @__PURE__ */ M(v, { children: ["Line ", /* @__PURE__ */ j(le, { children: e.line })] })
|
|
1632
1632
|
}), ba(e)] }, e.id))
|
|
1633
1633
|
})] }, t);
|
|
1634
1634
|
})
|
|
1635
1635
|
}) })]
|
|
1636
1636
|
})
|
|
1637
1637
|
}) : null,
|
|
1638
|
-
/* @__PURE__ */
|
|
1638
|
+
/* @__PURE__ */ M("div", {
|
|
1639
1639
|
className: "flex min-h-0 flex-1 overflow-hidden",
|
|
1640
|
-
children: [/* @__PURE__ */
|
|
1640
|
+
children: [/* @__PURE__ */ j("div", {
|
|
1641
1641
|
className: "relative min-h-0 min-w-0 flex-1",
|
|
1642
1642
|
onWheelCapture: ni.cancel,
|
|
1643
1643
|
onTouchStartCapture: ni.cancel,
|
|
1644
1644
|
onPointerDownCapture: ni.cancel,
|
|
1645
1645
|
onKeyDownCapture: ni.cancel,
|
|
1646
1646
|
onClickCapture: Bo,
|
|
1647
|
-
children: /* @__PURE__ */
|
|
1647
|
+
children: /* @__PURE__ */ j(Ln, {
|
|
1648
1648
|
value: oa,
|
|
1649
|
-
children: /* @__PURE__ */
|
|
1649
|
+
children: /* @__PURE__ */ j(Ct, {
|
|
1650
1650
|
className: "@container h-full overflow-auto [scrollbar-gutter:stable]",
|
|
1651
|
-
containerRef:
|
|
1651
|
+
containerRef: y,
|
|
1652
1652
|
viewerRef: ni.attach,
|
|
1653
1653
|
items: Z,
|
|
1654
1654
|
selectedLines: mn,
|
|
@@ -1661,30 +1661,30 @@ function Vn(p) {
|
|
|
1661
1661
|
unsafeCSSExtra: `${kn}\n${Cn}`
|
|
1662
1662
|
})
|
|
1663
1663
|
})
|
|
1664
|
-
}), un ? /* @__PURE__ */
|
|
1664
|
+
}), un ? /* @__PURE__ */ j(pt, {
|
|
1665
1665
|
resizable: !0,
|
|
1666
1666
|
storageKey: "hanzodev:diff-file-tree-width",
|
|
1667
1667
|
defaultWidth: 320,
|
|
1668
1668
|
defaultWidthFraction: .4,
|
|
1669
1669
|
minWidth: 192,
|
|
1670
|
-
resizeLabel:
|
|
1671
|
-
children: /* @__PURE__ */
|
|
1672
|
-
ariaLabel:
|
|
1670
|
+
resizeLabel: P("Resize PR Code files"),
|
|
1671
|
+
children: /* @__PURE__ */ j(Pt, {
|
|
1672
|
+
ariaLabel: P("{term, select, mr {Merge request} cr {Change request} other {Pull request}} #{number} files", {
|
|
1673
1673
|
term: Io,
|
|
1674
|
-
number:
|
|
1674
|
+
number: T.number
|
|
1675
1675
|
}),
|
|
1676
1676
|
entries: Fi,
|
|
1677
1677
|
onSelectFile: sa,
|
|
1678
|
-
footer: X === null ? null : /* @__PURE__ */
|
|
1678
|
+
footer: X === null ? null : /* @__PURE__ */ j("div", {
|
|
1679
1679
|
className: "shrink-0 border-t border-border/60 p-2",
|
|
1680
|
-
children: /* @__PURE__ */
|
|
1680
|
+
children: /* @__PURE__ */ j(b, {
|
|
1681
1681
|
type: "button",
|
|
1682
1682
|
size: "xs",
|
|
1683
1683
|
variant: "outline",
|
|
1684
1684
|
className: "w-full",
|
|
1685
1685
|
disabled: G.isPending,
|
|
1686
1686
|
onClick: G.error === null ? $ : () => G.refresh(),
|
|
1687
|
-
children: G.error === null ? G.isPending ?
|
|
1687
|
+
children: G.error === null ? G.isPending ? P("Loading more files...") : P("Load more files") : P("Retry")
|
|
1688
1688
|
})
|
|
1689
1689
|
})
|
|
1690
1690
|
})
|
|
@@ -1705,18 +1705,18 @@ function Wn(e) {
|
|
|
1705
1705
|
return e + Dn;
|
|
1706
1706
|
}
|
|
1707
1707
|
function Gn(e) {
|
|
1708
|
-
return /* @__PURE__ */
|
|
1708
|
+
return /* @__PURE__ */ j(p, {
|
|
1709
1709
|
value: e.oid,
|
|
1710
1710
|
closeOnClick: !0,
|
|
1711
|
-
children: /* @__PURE__ */
|
|
1711
|
+
children: /* @__PURE__ */ M("span", {
|
|
1712
1712
|
className: "flex items-center gap-2",
|
|
1713
|
-
children: [/* @__PURE__ */
|
|
1713
|
+
children: [/* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, { render: /* @__PURE__ */ j("span", {
|
|
1714
1714
|
className: "min-w-0 truncate",
|
|
1715
1715
|
children: e.messageHeadline
|
|
1716
|
-
}) }), /* @__PURE__ */
|
|
1716
|
+
}) }), /* @__PURE__ */ j(S, {
|
|
1717
1717
|
side: "top",
|
|
1718
1718
|
children: e.messageHeadline
|
|
1719
|
-
})] }), /* @__PURE__ */
|
|
1719
|
+
})] }), /* @__PURE__ */ j("span", {
|
|
1720
1720
|
className: "ml-auto shrink-0 font-mono text-xs text-muted-foreground",
|
|
1721
1721
|
children: e.oid.slice(0, 7)
|
|
1722
1722
|
})]
|
|
@@ -1816,31 +1816,31 @@ function pr(e) {
|
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
1818
|
function mr(e) {
|
|
1819
|
-
let t =
|
|
1820
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1819
|
+
let t = Ht(14), { path: n, status: r, onLoad: a } = e, o = i(), s;
|
|
1820
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ j(xe, {
|
|
1821
1821
|
"aria-hidden": !0,
|
|
1822
1822
|
className: "size-3.5 shrink-0 text-warning"
|
|
1823
|
-
}), t[0] =
|
|
1824
|
-
let s;
|
|
1825
|
-
t[1] !== a || t[2] !== r ? (s = a(r === "error" ? "Couldn't load this diff." : r === "empty" ? "No text diff for this file." : "Diff too large to display."), t[1] = a, t[2] = r, t[3] = s) : s = t[3];
|
|
1823
|
+
}), t[0] = s) : s = t[0];
|
|
1826
1824
|
let c;
|
|
1827
|
-
t[
|
|
1825
|
+
t[1] !== o || t[2] !== r ? (c = o(r === "error" ? "Couldn't load this diff." : r === "empty" ? "No text diff for this file." : "Diff too large to display."), t[1] = o, t[2] = r, t[3] = c) : c = t[3];
|
|
1828
1826
|
let l;
|
|
1829
|
-
t[
|
|
1827
|
+
t[4] === c ? l = t[5] : (l = /* @__PURE__ */ j("span", { children: c }), t[4] = c, t[5] = l);
|
|
1828
|
+
let u;
|
|
1829
|
+
t[6] !== o || t[7] !== a || t[8] !== n || t[9] !== r ? (u = a === void 0 || r === "empty" ? null : /* @__PURE__ */ j(b, {
|
|
1830
1830
|
size: "micro",
|
|
1831
1831
|
variant: "warning-outline",
|
|
1832
1832
|
disabled: r === "loading",
|
|
1833
|
-
onClick: () =>
|
|
1834
|
-
children:
|
|
1835
|
-
}), t[6] =
|
|
1836
|
-
let
|
|
1837
|
-
return t[11] !==
|
|
1833
|
+
onClick: () => a(n),
|
|
1834
|
+
children: o(r === "loading" ? "Loading..." : r === "error" ? "Retry" : "Load diff")
|
|
1835
|
+
}), t[6] = o, t[7] = a, t[8] = n, t[9] = r, t[10] = u) : u = t[10];
|
|
1836
|
+
let d;
|
|
1837
|
+
return t[11] !== l || t[12] !== u ? (d = /* @__PURE__ */ M("div", {
|
|
1838
1838
|
className: "flex items-center gap-2 bg-warning/8 px-3 py-2 text-xs text-warning-foreground",
|
|
1839
1839
|
children: [
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1840
|
+
s,
|
|
1841
|
+
l,
|
|
1842
|
+
u
|
|
1843
1843
|
]
|
|
1844
|
-
}), t[11] =
|
|
1844
|
+
}), t[11] = l, t[12] = u, t[13] = d) : d = t[13], d;
|
|
1845
1845
|
}
|
|
1846
1846
|
export { Vn as default };
|