@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,41 +1,41 @@
|
|
|
1
|
-
import { Et as e, c as t, d as n, m as r } from "./session-
|
|
1
|
+
import { Et as e, c as t, d as n, m as r } from "./session-Decc4Fo5.js";
|
|
2
2
|
import { c as i, i as a, n as o, s, t as c } from "./messages-yqmY7G5x.js";
|
|
3
|
-
import { Bs as l, C_ as u,
|
|
4
|
-
import { $ as
|
|
5
|
-
import { Kt as
|
|
6
|
-
import { C as
|
|
7
|
-
import { a as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { a as
|
|
15
|
-
import "./errors-
|
|
16
|
-
import { a as
|
|
17
|
-
import { s as
|
|
18
|
-
import { t as
|
|
19
|
-
import { l as Lt } from "./assetUrls-
|
|
20
|
-
import { F as Rt, M as zt, _ as Bt, k as Vt, n as Ht } from "./workspaceFocus-
|
|
21
|
-
import { n as Ut } from "./dialog-
|
|
22
|
-
import { n as Wt } from "./hanzoWebAnalytics-
|
|
3
|
+
import { Bs as l, C_ as u, Fp as d, Js as f, Kr as p, Md as m, Nd as h, Qs as g, Rd as _, S_ as v, Wp as y, Xs as b, Zs as x, _f as S, ac as C, b_ as w, ci as T, dc as E, fg as D, gr as O, hg as k, hr as A, l as j, lc as M, lt as N, nc as P, oc as F, t as I, uc as L, w_ as ee, x_ as te, yd as R, yr as z, zd as B, zf as V } from "./utils-DtKQl-D3.js";
|
|
4
|
+
import { $ as H, $p as ne, Ed as U, Fa as re, Ga as ie, Gd as ae, Ht as oe, Ih as se, Ka as W, Mm as G, Pd as ce, Qd as le, Ra as ue, Sy as de, Tr as fe, Ty as pe, Ua as me, Un as he, Ut as ge, Wm as _e, Wo as ve, Yd as ye, _h as be, ad as xe, ah as Se, b as Ce, bm as we, cd as Te, cy as Ee, dp as De, ef as Oe, ff as ke, gg as Ae, hd as je, im as Me, kd as Ne, km as Pe, ko as Fe, md as Ie, nf as Le, pf as Re, pv as ze, qa as Be, sm as Ve, up as He, v as Ue, vg as We, wd as Ge, wy as Ke, xh as qe, xn as Je, xo as Ye, xy as Xe, yd as Ze, yf as Qe, yy as $e } from "./keybindings-D0pBlT1k.js";
|
|
5
|
+
import { Kt as et, zt as tt } from "./themePalette-C-GtwwqV.js";
|
|
6
|
+
import { C as nt, T as rt, j as it, k as at, t as ot } from "./mediaReference-3wc4ZfY8.js";
|
|
7
|
+
import { a as st, f as K, p as ct, r as lt } from "./network-wuXD7-is.js";
|
|
8
|
+
import { $ as ut, Cn as dt, D as ft, O as pt, Q as mt, T as ht, b as gt, o as _t } from "./threadSearch-CrtCof6n.js";
|
|
9
|
+
import { n as vt } from "./unlink-2-CRzwRyat.js";
|
|
10
|
+
import { t as yt } from "./circle-alert-DVvR-XZ_.js";
|
|
11
|
+
import { t as bt } from "./refresh-cw-DsOTMnYT.js";
|
|
12
|
+
import { t as xt } from "./square-VsbLWtSJ.js";
|
|
13
|
+
import { t as St } from "./x-Bjr9Dwvl.js";
|
|
14
|
+
import { a as Ct, c as wt, o as Tt, s as Et, t as Dt } from "./select-DLFnkZsI.js";
|
|
15
|
+
import "./errors-D8_Zn8KN.js";
|
|
16
|
+
import { a as Ot, f as kt, j as At, m as jt, p as Mt, r as Nt, v as Pt } from "./useSettings-B_MtcTyD.js";
|
|
17
|
+
import { s as Ft } from "./presentation-68y8EAuH.js";
|
|
18
|
+
import { t as It } from "./useStableCallback-kf0xbSaG.js";
|
|
19
|
+
import { l as Lt } from "./assetUrls-D8lRk7Xd.js";
|
|
20
|
+
import { F as Rt, M as zt, _ as Bt, k as Vt, n as Ht } from "./workspaceFocus-MR1plm6A.js";
|
|
21
|
+
import { n as Ut } from "./dialog-EmpqFZiK.js";
|
|
22
|
+
import { n as Wt } from "./hanzoWebAnalytics-B1eETW-7.js";
|
|
23
23
|
import { t as Gt } from "./useMediaQuery-9k_QsMWI.js";
|
|
24
|
-
import { i as Kt, n as qt, r as Jt, t as Yt } from "./wizard-
|
|
24
|
+
import { i as Kt, n as qt, r as Jt, t as Yt } from "./wizard-DjD4UNew.js";
|
|
25
25
|
import { memo as Xt, useEffect as q, useLayoutEffect as Zt, useRef as J, useState as Qt, useSyncExternalStore as $t } from "react";
|
|
26
26
|
import { c as Y } from "react/compiler-runtime";
|
|
27
27
|
import { useNavigate as en, useRouter as tn } from "@tanstack/react-router";
|
|
28
28
|
import { Fragment as nn, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
29
29
|
// src/browser/openFileInPreview.ts
|
|
30
|
-
var rn = (e) => /\.(?:html?|pdf)$/i.test(e.split(/[?#]/, 1)[0] ?? ""), an = class extends
|
|
30
|
+
var rn = (e) => /\.(?:html?|pdf)$/i.test(e.split(/[?#]/, 1)[0] ?? ""), an = class extends Ne()("BrowserPreviewUnavailableError", { message: Ge }) {}, on = class extends Ne()("BrowserSettingsReadError", { cause: Te() }) {
|
|
31
31
|
get message() {
|
|
32
32
|
return o(i("Saved browser settings could not be loaded."));
|
|
33
33
|
}
|
|
34
|
-
}, sn =
|
|
34
|
+
}, sn = Le(on);
|
|
35
35
|
async function cn(e) {
|
|
36
|
-
let t = Vt(e.threadRef), n = await
|
|
37
|
-
if (sn(n)) return
|
|
38
|
-
let r =
|
|
36
|
+
let t = Vt(e.threadRef), n = await dt().catch((e) => new on({ cause: e }));
|
|
37
|
+
if (sn(n)) return k(We(n));
|
|
38
|
+
let r = ut(t.environmentId), i = f(t).activeTabId, a = () => zt(Rt.getState().byThreadKey, t)?.id ?? null, o = a(), s = await e.openPreview({
|
|
39
39
|
environmentId: t.environmentId,
|
|
40
40
|
input: {
|
|
41
41
|
threadId: t.threadId,
|
|
@@ -49,13 +49,13 @@ async function cn(e) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
return
|
|
53
|
-
|
|
52
|
+
return S(s, (n) => {
|
|
53
|
+
b(t, e.url), e.background ? (g(t, n), i && f(t).activeTabId === n.tabId && a() === o && x(t, i)) : (l(t, n), Rt.getState().openBrowser(t, n.tabId));
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
async function ln(e) {
|
|
57
|
-
if (!
|
|
58
|
-
let t = Vt(e.threadRef), n =
|
|
57
|
+
if (!mt(e.threadRef.environmentId)) return k(We(new an({ message: o(i("The integrated browser is unavailable in this runtime.")) })));
|
|
58
|
+
let t = Vt(e.threadRef), n = ot(e.filePath, e.workspaceRoot).relativePath !== void 0, r = await e.createAssetUrl({
|
|
59
59
|
environmentId: e.threadRef.environmentId,
|
|
60
60
|
input: { resource: {
|
|
61
61
|
_tag: n ? "workspace-file" : "media-file",
|
|
@@ -63,9 +63,9 @@ async function ln(e) {
|
|
|
63
63
|
path: e.filePath
|
|
64
64
|
} }
|
|
65
65
|
});
|
|
66
|
-
if (r._tag === "Failure") return
|
|
67
|
-
let a =
|
|
68
|
-
return a === null ?
|
|
66
|
+
if (r._tag === "Failure") return k(r.cause);
|
|
67
|
+
let a = et(e.httpBaseUrl, r.value.relativeUrl);
|
|
68
|
+
return a === null ? k(Ae(/* @__PURE__ */ Error("The environment returned an invalid asset URL."))) : cn({
|
|
69
69
|
threadRef: t,
|
|
70
70
|
url: a,
|
|
71
71
|
openPreview: e.openPreview
|
|
@@ -80,7 +80,7 @@ var un = {
|
|
|
80
80
|
"Start agent": i("Start agent")
|
|
81
81
|
};
|
|
82
82
|
function dn(e, t = s) {
|
|
83
|
-
let n =
|
|
83
|
+
let n = H(e);
|
|
84
84
|
return t(un[n] ?? n);
|
|
85
85
|
}
|
|
86
86
|
var fn = {
|
|
@@ -104,7 +104,7 @@ function gn(e, t = s) {
|
|
|
104
104
|
return t(i("{organization} manages Hanzo Dev updates. Only stable releases can be installed.", { organization: e }));
|
|
105
105
|
}
|
|
106
106
|
function _n(e, t = s) {
|
|
107
|
-
return e !== void 0 &&
|
|
107
|
+
return e !== void 0 && ge(e) !== void 0 ? hn(e.organization, t) : void 0;
|
|
108
108
|
}
|
|
109
109
|
function vn(e, t, n = s) {
|
|
110
110
|
switch (t) {
|
|
@@ -116,7 +116,7 @@ function vn(e, t, n = s) {
|
|
|
116
116
|
}
|
|
117
117
|
function yn(e, t, n = s) {
|
|
118
118
|
let r = e?.limits?.maxRuntimeMode;
|
|
119
|
-
return e !== void 0 && r !== void 0 &&
|
|
119
|
+
return e !== void 0 && r !== void 0 && ve(t, r) ? vn(e.organization, r, n) : void 0;
|
|
120
120
|
}
|
|
121
121
|
function bn(e, t, n) {
|
|
122
122
|
switch (t) {
|
|
@@ -127,7 +127,7 @@ function bn(e, t, n) {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
function xn(e, t, n = s) {
|
|
130
|
-
return e !== void 0 &&
|
|
130
|
+
return e !== void 0 && oe(e, t) !== void 0 ? bn(e.organization, t, n) : void 0;
|
|
131
131
|
}
|
|
132
132
|
i("Use default"), i("When you return"), i("Before the cache expires (beta)"), i("Never", { $context: "idle compaction mode" });
|
|
133
133
|
var Sn = {
|
|
@@ -244,7 +244,7 @@ function jn(e, t) {
|
|
|
244
244
|
}
|
|
245
245
|
var Mn = /^\.{1,2}$|[\\:*?"<>|\p{Cc}]|[ .]$/u, Nn = /^(?:con|prn|aux|nul|conin\$|conout\$|com[0-9¹²³]|lpt[0-9¹²³])(?: *\.| *$)/i;
|
|
246
246
|
function Pn(e) {
|
|
247
|
-
if (
|
|
247
|
+
if (_(e.trim())) return null;
|
|
248
248
|
let t = kn(e);
|
|
249
249
|
if (!t) return null;
|
|
250
250
|
let n = t.path.split(/[?#]/)[0];
|
|
@@ -263,19 +263,19 @@ function Fn(e) {
|
|
|
263
263
|
function In(e, t) {
|
|
264
264
|
return Fn(e) ? t?.scratchWorkspaceRoot ?? null : null;
|
|
265
265
|
}
|
|
266
|
-
var Ln =
|
|
266
|
+
var Ln = R.definitions.map((e) => e.kind);
|
|
267
267
|
function Rn(e, t = s) {
|
|
268
|
-
return e === "url" ? t(i("Git URL")) :
|
|
268
|
+
return e === "url" ? t(i("Git URL")) : R.get(e).pickerLabel;
|
|
269
269
|
}
|
|
270
270
|
function zn(e, t = s) {
|
|
271
|
-
return e === "url" ? t(i("URL", { $context: "placeholder for a git URL field" })) :
|
|
271
|
+
return e === "url" ? t(i("URL", { $context: "placeholder for a git URL field" })) : R.get(e).repositoryPathHint;
|
|
272
272
|
}
|
|
273
273
|
function Bn(e) {
|
|
274
274
|
return e === "url" ? null : e;
|
|
275
275
|
}
|
|
276
276
|
var Vn = /^[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})\/[A-Za-z0-9._-]+(?:\.git)?$/;
|
|
277
277
|
function Hn(e) {
|
|
278
|
-
let t =
|
|
278
|
+
let t = R.get(void 0);
|
|
279
279
|
if (t.publicHost === null) return null;
|
|
280
280
|
let n = e.endsWith(".git") ? e : `${e}.git`;
|
|
281
281
|
return t.defaultCloneTransport === "https" ? `https://${t.publicHost}/${n}` : `git@${t.publicHost}:${n}`;
|
|
@@ -286,18 +286,18 @@ function Wn(e, t, n = s) {
|
|
|
286
286
|
}
|
|
287
287
|
function Gn(e) {
|
|
288
288
|
let t = e.trim();
|
|
289
|
-
return Vn.test(t) ? Hn(t) ?? t :
|
|
289
|
+
return Vn.test(t) ? Hn(t) ?? t : R.repositoryUrlFromPage(t) ?? t;
|
|
290
290
|
}
|
|
291
291
|
function Kn(e) {
|
|
292
|
-
return
|
|
292
|
+
return R.get(e.provider).defaultCloneTransport === "https" ? e.url : e.sshUrl;
|
|
293
293
|
}
|
|
294
294
|
function qn(e, t) {
|
|
295
|
-
return e?.[t] ?? t ===
|
|
295
|
+
return e?.[t] ?? t === R.get(void 0).kind;
|
|
296
296
|
}
|
|
297
297
|
function Jn(e, t) {
|
|
298
|
-
return
|
|
299
|
-
ready:
|
|
300
|
-
label:
|
|
298
|
+
return ze(Ln.filter((e) => qn(t, e)), pe(de({
|
|
299
|
+
ready: Ke($e),
|
|
300
|
+
label: Xe
|
|
301
301
|
}), (t) => ({
|
|
302
302
|
ready: e(t).ready,
|
|
303
303
|
label: Rn(t)
|
|
@@ -314,7 +314,7 @@ function Zn(e, t = s) {
|
|
|
314
314
|
let r = n.get(e);
|
|
315
315
|
return r ? r.status === "available" ? r.auth.status === "unauthenticated" ? {
|
|
316
316
|
ready: !1,
|
|
317
|
-
hint:
|
|
317
|
+
hint: Ee(r.auth.detail) ?? t(i("{provider} is not authenticated. Open Source Control settings for setup guidance.", { provider: r.label }))
|
|
318
318
|
} : Yn : {
|
|
319
319
|
ready: !1,
|
|
320
320
|
hint: Tn(r.installHint, t)
|
|
@@ -327,8 +327,8 @@ function Zn(e, t = s) {
|
|
|
327
327
|
function Qn(e) {
|
|
328
328
|
let t = e?.trim() ?? "";
|
|
329
329
|
if (t.length === 0) return "~/";
|
|
330
|
-
let n = t === "~" ||
|
|
331
|
-
return
|
|
330
|
+
let n = t === "~" || m(t) || t.startsWith("~/") || h(t);
|
|
331
|
+
return rt(n ? t : `~/${t}`);
|
|
332
332
|
}
|
|
333
333
|
function $n(e) {
|
|
334
334
|
let t = (e ?? "").split(/[?#]/)[0]?.trim() ?? "", n = t.indexOf("://"), r = n >= 0 || /^[^/\\:]+@[^/\\:]+:/.test(t), i = (n >= 0 ? t.slice(n + 3) : t).split(/[/\\:]+/).filter((e) => e.trim().length > 0);
|
|
@@ -345,17 +345,17 @@ function tr(e, t, n = e) {
|
|
|
345
345
|
function nr(e, t) {
|
|
346
346
|
let n = t?.trim() ?? "";
|
|
347
347
|
if (n.length === 0) return e;
|
|
348
|
-
let r =
|
|
348
|
+
let r = rt(e);
|
|
349
349
|
return `${r}${r.endsWith("\\") ? n.replaceAll("/", "\\") : n}`;
|
|
350
350
|
}
|
|
351
351
|
function rr(e, t) {
|
|
352
|
-
return nr(e,
|
|
352
|
+
return nr(e, B(t));
|
|
353
353
|
}
|
|
354
354
|
function ir(e, t) {
|
|
355
355
|
let n = Zn(e);
|
|
356
|
-
return
|
|
356
|
+
return R.definitions.flatMap((r) => {
|
|
357
357
|
if (!qn(t, r.kind) || !n(r.kind).ready) return [];
|
|
358
|
-
let i = e?.sourceControlProviders.find((e) => e.kind === r.kind), a = r.newRepositoryOwner(i ?
|
|
358
|
+
let i = e?.sourceControlProviders.find((e) => e.kind === r.kind), a = r.newRepositoryOwner(i ? Ee(i.auth.account) : null);
|
|
359
359
|
return a === null ? [] : [{
|
|
360
360
|
definition: r,
|
|
361
361
|
owner: a.owner
|
|
@@ -370,14 +370,14 @@ function or(e, t) {
|
|
|
370
370
|
return e.owner ? `${e.owner}/${n}` : n;
|
|
371
371
|
}
|
|
372
372
|
function sr(e) {
|
|
373
|
-
let t =
|
|
373
|
+
let t = nt(e.browseDirectoryPath, e.selectedDirectoryName);
|
|
374
374
|
return (e.caseSensitive ? e.selectedDirectoryName === e.cloneDirectoryName : e.selectedDirectoryName.toLowerCase() === e.cloneDirectoryName.toLowerCase()) ? t : nr(t, e.cloneDirectoryName);
|
|
375
375
|
}
|
|
376
376
|
function cr(e) {
|
|
377
|
-
let t =
|
|
377
|
+
let t = at(e.pickedPath);
|
|
378
378
|
return t === null ? nr(e.pickedPath, e.cloneDirectoryName) : sr({
|
|
379
379
|
browseDirectoryPath: t,
|
|
380
|
-
selectedDirectoryName:
|
|
380
|
+
selectedDirectoryName: it(e.pickedPath),
|
|
381
381
|
cloneDirectoryName: e.cloneDirectoryName,
|
|
382
382
|
caseSensitive: e.caseSensitive
|
|
383
383
|
});
|
|
@@ -789,7 +789,7 @@ function li(e, t) {
|
|
|
789
789
|
}
|
|
790
790
|
function ui(e) {
|
|
791
791
|
return e.map((e, t) => {
|
|
792
|
-
let n =
|
|
792
|
+
let n = fe[t];
|
|
793
793
|
if (n) return {
|
|
794
794
|
...e,
|
|
795
795
|
shortcutCommand: n
|
|
@@ -851,7 +851,7 @@ function pi(t, n = o) {
|
|
|
851
851
|
threadId: e.id
|
|
852
852
|
},
|
|
853
853
|
searchTerms: [e.title],
|
|
854
|
-
threadSearch:
|
|
854
|
+
threadSearch: _t({
|
|
855
855
|
...e,
|
|
856
856
|
latestUserMessageAt: e.latestUserMessageAt ?? null,
|
|
857
857
|
opens: e.opens ?? null
|
|
@@ -873,8 +873,8 @@ function mi(e, t, n, r) {
|
|
|
873
873
|
} : i;
|
|
874
874
|
}
|
|
875
875
|
function hi(e, t, n, r) {
|
|
876
|
-
if (e.threadSearch) return
|
|
877
|
-
let i = typeof e.title == "string" ? e.title : e.searchTitle, a = i !== void 0 && i !== e.searchTerms[0] ? [i, ...e.searchTerms] : e.searchTerms, o =
|
|
876
|
+
if (e.threadSearch) return pt(t, e.threadSearch, n, r);
|
|
877
|
+
let i = typeof e.title == "string" ? e.title : e.searchTitle, a = i !== void 0 && i !== e.searchTerms[0] ? [i, ...e.searchTerms] : e.searchTerms, o = ft(t, a, r);
|
|
878
878
|
return o && (e.title === a[0] ? o : {
|
|
879
879
|
...o,
|
|
880
880
|
ranges: []
|
|
@@ -889,7 +889,7 @@ function gi(e, t = o) {
|
|
|
889
889
|
isInSubmenu: !1
|
|
890
890
|
}, t);
|
|
891
891
|
}
|
|
892
|
-
let n = e.query.startsWith(">"), r = n ? e.query.slice(1) : e.query, a =
|
|
892
|
+
let n = e.query.startsWith(">"), r = n ? e.query.slice(1) : e.query, a = gt(r);
|
|
893
893
|
if (a.length === 0) return n ? e.activeGroups.filter((e) => e.value === "actions") : [...e.activeGroups];
|
|
894
894
|
let s = [...e.activeGroups];
|
|
895
895
|
n ? s = s.filter((e) => e.value === "actions") : e.isInSubmenu || (s = s.filter((e) => e.value !== "recent-threads"));
|
|
@@ -911,7 +911,7 @@ function gi(e, t = o) {
|
|
|
911
911
|
label: t(i("Settings")),
|
|
912
912
|
items: e.settingsSearchItems
|
|
913
913
|
}));
|
|
914
|
-
let u = e.now ?? Date.now(), d =
|
|
914
|
+
let u = e.now ?? Date.now(), d = ht(c.map((e) => ({
|
|
915
915
|
group: e,
|
|
916
916
|
items: e.items
|
|
917
917
|
})), (e, t) => mi(e, a, u, t)), f = d.some(({ group: e }) => e.value === "threads-search"), p = d.map(({ group: e, ranked: t }) => {
|
|
@@ -938,11 +938,11 @@ function gi(e, t = o) {
|
|
|
938
938
|
}];
|
|
939
939
|
}
|
|
940
940
|
function _i(e, t) {
|
|
941
|
-
let n = (e) => typeof e.title == "string" ? e.title : e.searchTitle, r = new Set(e.map(n)), i =
|
|
941
|
+
let n = (e) => typeof e.title == "string" ? e.title : e.searchTitle, r = new Set(e.map(n)), i = gt(t);
|
|
942
942
|
return e.flatMap((e) => {
|
|
943
943
|
if (e.kind !== "submenu" || typeof e.title != "string") return [];
|
|
944
944
|
let t = e.title.replace(/(\.\.\.|…)$/u, "");
|
|
945
|
-
if (
|
|
945
|
+
if (gt(t).startsWith(i)) return [];
|
|
946
946
|
let a = t === e.title ? `${t}: ` : `${t.trimEnd()} `;
|
|
947
947
|
return e.groups.flatMap((e) => e.items.flatMap((e) => {
|
|
948
948
|
let t = n(e);
|
|
@@ -1035,7 +1035,7 @@ function Ti(e, t = o) {
|
|
|
1035
1035
|
return Zn(e, t);
|
|
1036
1036
|
}
|
|
1037
1037
|
function Ei(e, t = o) {
|
|
1038
|
-
return (e instanceof Error ?
|
|
1038
|
+
return (e instanceof Error ? st(e, t) : null) ?? t(i("An error occurred."));
|
|
1039
1039
|
}
|
|
1040
1040
|
var Di = {
|
|
1041
1041
|
"commandPalette.toggle": "command",
|
|
@@ -1060,7 +1060,7 @@ var ji = {
|
|
|
1060
1060
|
mode: "command",
|
|
1061
1061
|
openIntent: null,
|
|
1062
1062
|
session: 0
|
|
1063
|
-
}, Mi =
|
|
1063
|
+
}, Mi = N(() => ji), Ni = null;
|
|
1064
1064
|
function Pi(e) {
|
|
1065
1065
|
let t = Mi.getState(), n = ii(t, e);
|
|
1066
1066
|
!t.open && n.open && (Ni = {
|
|
@@ -1144,7 +1144,7 @@ var Gi = 24, Ki = Array.from({ length: Gi }, (e, t) => String(t)), qi = .2, Ji =
|
|
|
1144
1144
|
});
|
|
1145
1145
|
function Yi(e) {
|
|
1146
1146
|
let t = Y(6), { children: n, tone: r, size: i } = e, a = r === void 0 ? "default" : r, o = (i === void 0 ? "default" : i) === "compact" ? "h-7 rounded-md max-sm:order-first max-sm:basis-full sm:h-6" : "h-9 max-w-fit grow-[1.5] basis-0 rounded-full p-0.5 sm:h-8", s = a === "error" ? "bg-destructive/6 text-destructive ring-destructive/24" : "bg-muted/48 ring-border", c;
|
|
1147
|
-
t[0] !== o || t[1] !== s ? (c =
|
|
1147
|
+
t[0] !== o || t[1] !== s ? (c = I("flex min-w-0 items-center gap-1.5 ring-1 ring-inset", o, s), t[0] = o, t[1] = s, t[2] = c) : c = t[2];
|
|
1148
1148
|
let l;
|
|
1149
1149
|
return t[3] !== n || t[4] !== c ? (l = /* @__PURE__ */ X("div", {
|
|
1150
1150
|
"data-slot": "voice-input-pill",
|
|
@@ -1170,10 +1170,10 @@ var Xi = {
|
|
|
1170
1170
|
"microphone-disconnected": i("Mic disconnected")
|
|
1171
1171
|
};
|
|
1172
1172
|
function Zi(e) {
|
|
1173
|
-
let t = Y(50), n =
|
|
1173
|
+
let t = Y(50), n = u(), r = v(), i = en(), a;
|
|
1174
1174
|
t[0] !== n || t[1] !== e.error ? (a = e.error ?? n("Voice input failed"), t[0] = n, t[1] = e.error, t[2] = a) : a = t[2];
|
|
1175
|
-
let o = a, s = e.errorAction === "settings", c = e.size === "compact", l = e.errorCode ? Xi[e.errorCode] : void 0,
|
|
1176
|
-
t[3] !== n || t[4] !== s || t[5] !== e.errorCode ? (
|
|
1175
|
+
let o = a, s = e.errorAction === "settings", c = e.size === "compact", l = e.errorCode ? Xi[e.errorCode] : void 0, d;
|
|
1176
|
+
t[3] !== n || t[4] !== s || t[5] !== e.errorCode ? (d = s ? {
|
|
1177
1177
|
label: n("Open voice settings"),
|
|
1178
1178
|
text: n("Settings")
|
|
1179
1179
|
} : e.errorCode === "transcription-failed" ? {
|
|
@@ -1182,89 +1182,89 @@ function Zi(e) {
|
|
|
1182
1182
|
} : {
|
|
1183
1183
|
label: n("Record again"),
|
|
1184
1184
|
text: n("Record again")
|
|
1185
|
-
}, t[3] = n, t[4] = s, t[5] = e.errorCode, t[6] =
|
|
1186
|
-
let
|
|
1187
|
-
t[7] === n ?
|
|
1188
|
-
let h;
|
|
1189
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ X(Ct, {}), t[9] = h) : h = t[9];
|
|
1185
|
+
}, t[3] = n, t[4] = s, t[5] = e.errorCode, t[6] = d) : d = t[6];
|
|
1186
|
+
let f = d, p = e.size, m = c ? "icon-xs" : "icon-sm-pill", h;
|
|
1187
|
+
t[7] === n ? h = t[8] : (h = n("Dismiss voice input error"), t[7] = n, t[8] = h);
|
|
1190
1188
|
let g;
|
|
1191
|
-
t[
|
|
1189
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ X(St, {}), t[9] = g) : g = t[9];
|
|
1190
|
+
let _;
|
|
1191
|
+
t[10] !== e.onDismiss || t[11] !== m || t[12] !== h ? (_ = /* @__PURE__ */ X(z, { render: /* @__PURE__ */ X(T, {
|
|
1192
1192
|
type: "button",
|
|
1193
|
-
size:
|
|
1193
|
+
size: m,
|
|
1194
1194
|
variant: "ghost",
|
|
1195
|
-
"aria-label":
|
|
1195
|
+
"aria-label": h,
|
|
1196
1196
|
onPointerDown: $i,
|
|
1197
1197
|
onClick: e.onDismiss,
|
|
1198
1198
|
className: "shrink-0",
|
|
1199
|
-
children:
|
|
1200
|
-
}) }), t[10] = e.onDismiss, t[11] =
|
|
1201
|
-
let
|
|
1202
|
-
t[14] !== n || t[15] !== e.cancelShortcutLabel ? (
|
|
1203
|
-
let v;
|
|
1204
|
-
t[17] === _ ? v = t[18] : (v = /* @__PURE__ */ X(k, {
|
|
1205
|
-
side: "top",
|
|
1206
|
-
children: _
|
|
1207
|
-
}), t[17] = _, t[18] = v);
|
|
1199
|
+
children: g
|
|
1200
|
+
}) }), t[10] = e.onDismiss, t[11] = m, t[12] = h, t[13] = _) : _ = t[13];
|
|
1201
|
+
let y;
|
|
1202
|
+
t[14] !== n || t[15] !== e.cancelShortcutLabel ? (y = e.cancelShortcutLabel ? n("Dismiss ({shortcut})", { shortcut: e.cancelShortcutLabel }) : n("Dismiss"), t[14] = n, t[15] = e.cancelShortcutLabel, t[16] = y) : y = t[16];
|
|
1208
1203
|
let b;
|
|
1209
|
-
t[
|
|
1204
|
+
t[17] === y ? b = t[18] : (b = /* @__PURE__ */ X(O, {
|
|
1205
|
+
side: "top",
|
|
1206
|
+
children: y
|
|
1207
|
+
}), t[17] = y, t[18] = b);
|
|
1210
1208
|
let x;
|
|
1211
|
-
t[
|
|
1209
|
+
t[19] !== _ || t[20] !== b ? (x = /* @__PURE__ */ Z(A, { children: [_, b] }), t[19] = _, t[20] = b, t[21] = x) : x = t[21];
|
|
1210
|
+
let S;
|
|
1211
|
+
t[22] === o ? S = t[23] : (S = /* @__PURE__ */ X("span", {
|
|
1212
1212
|
tabIndex: 0,
|
|
1213
1213
|
role: "status",
|
|
1214
1214
|
"aria-label": o,
|
|
1215
1215
|
className: "flex min-w-0 items-center gap-1.5 rounded-sm text-sm font-medium outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset"
|
|
1216
|
-
}), t[22] = o, t[23] =
|
|
1217
|
-
let
|
|
1218
|
-
t[24] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1216
|
+
}), t[22] = o, t[23] = S);
|
|
1217
|
+
let C;
|
|
1218
|
+
t[24] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ X(yt, {
|
|
1219
1219
|
"aria-hidden": !0,
|
|
1220
1220
|
className: "size-3.5 shrink-0"
|
|
1221
|
-
}), t[24] =
|
|
1222
|
-
let C;
|
|
1223
|
-
t[25] !== l || t[26] !== n || t[27] !== r ? (C = l ? r(l) : n("Voice input failed"), t[25] = l, t[26] = n, t[27] = r, t[28] = C) : C = t[28];
|
|
1221
|
+
}), t[24] = C) : C = t[24];
|
|
1224
1222
|
let w;
|
|
1225
|
-
t[
|
|
1226
|
-
className: "truncate",
|
|
1227
|
-
children: C
|
|
1228
|
-
}), t[29] = C, t[30] = w);
|
|
1223
|
+
t[25] !== l || t[26] !== n || t[27] !== r ? (w = l ? r(l) : n("Voice input failed"), t[25] = l, t[26] = n, t[27] = r, t[28] = w) : w = t[28];
|
|
1229
1224
|
let E;
|
|
1230
|
-
t[
|
|
1231
|
-
|
|
1232
|
-
children:
|
|
1233
|
-
}), t[
|
|
1225
|
+
t[29] === w ? E = t[30] : (E = /* @__PURE__ */ X("span", {
|
|
1226
|
+
className: "truncate",
|
|
1227
|
+
children: w
|
|
1228
|
+
}), t[29] = w, t[30] = E);
|
|
1234
1229
|
let D;
|
|
1235
|
-
t[
|
|
1230
|
+
t[31] !== S || t[32] !== E ? (D = /* @__PURE__ */ Z(z, {
|
|
1231
|
+
render: S,
|
|
1232
|
+
children: [C, E]
|
|
1233
|
+
}), t[31] = S, t[32] = E, t[33] = D) : D = t[33];
|
|
1234
|
+
let k;
|
|
1235
|
+
t[34] === o ? k = t[35] : (k = /* @__PURE__ */ X(O, {
|
|
1236
1236
|
side: "top",
|
|
1237
1237
|
children: o
|
|
1238
|
-
}), t[34] = o, t[35] =
|
|
1239
|
-
let
|
|
1240
|
-
t[36] !==
|
|
1241
|
-
let
|
|
1242
|
-
t[39] !==
|
|
1238
|
+
}), t[34] = o, t[35] = k);
|
|
1239
|
+
let j;
|
|
1240
|
+
t[36] !== D || t[37] !== k ? (j = /* @__PURE__ */ Z(A, { children: [D, k] }), t[36] = D, t[37] = k, t[38] = j) : j = t[38];
|
|
1241
|
+
let M;
|
|
1242
|
+
t[39] !== f || t[40] !== c || t[41] !== i || t[42] !== s || t[43] !== e ? (M = e.errorAction ? /* @__PURE__ */ X(T, {
|
|
1243
1243
|
type: "button",
|
|
1244
1244
|
size: c ? "xs" : "sm-pill",
|
|
1245
1245
|
variant: "outline",
|
|
1246
|
-
"aria-label":
|
|
1246
|
+
"aria-label": f.label,
|
|
1247
1247
|
disabled: e.disabled,
|
|
1248
1248
|
onPointerDown: Qi,
|
|
1249
1249
|
onClick: () => {
|
|
1250
1250
|
s ? (e.onDismiss(), i({ to: "/settings/voice" })) : e.onRetry();
|
|
1251
1251
|
},
|
|
1252
1252
|
className: "ms-auto shrink-0",
|
|
1253
|
-
children:
|
|
1253
|
+
children: f.text
|
|
1254
1254
|
}) : /* @__PURE__ */ X("span", {
|
|
1255
1255
|
"aria-hidden": !0,
|
|
1256
1256
|
className: "w-1.5 shrink-0"
|
|
1257
|
-
}), t[39] =
|
|
1258
|
-
let
|
|
1259
|
-
return t[45] !== e.size || t[46] !==
|
|
1257
|
+
}), t[39] = f, t[40] = c, t[41] = i, t[42] = s, t[43] = e, t[44] = M) : M = t[44];
|
|
1258
|
+
let N;
|
|
1259
|
+
return t[45] !== e.size || t[46] !== j || t[47] !== M || t[48] !== x ? (N = /* @__PURE__ */ Z(Yi, {
|
|
1260
1260
|
tone: "error",
|
|
1261
|
-
size:
|
|
1261
|
+
size: p,
|
|
1262
1262
|
children: [
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1263
|
+
x,
|
|
1264
|
+
j,
|
|
1265
|
+
M
|
|
1266
1266
|
]
|
|
1267
|
-
}), t[45] = e.size, t[46] =
|
|
1267
|
+
}), t[45] = e.size, t[46] = j, t[47] = M, t[48] = x, t[49] = N) : N = t[49], N;
|
|
1268
1268
|
}
|
|
1269
1269
|
function Qi(e) {
|
|
1270
1270
|
return e.preventDefault();
|
|
@@ -1343,15 +1343,15 @@ function ia(e) {
|
|
|
1343
1343
|
let t = Y(8), n;
|
|
1344
1344
|
t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ X(z, { render: e.children }), t[0] = e.children, t[1] = n);
|
|
1345
1345
|
let r = e.shortcut ? ` (${e.shortcut})` : "", i;
|
|
1346
|
-
t[2] !== e.label || t[3] !== r ? (i = /* @__PURE__ */ Z(
|
|
1346
|
+
t[2] !== e.label || t[3] !== r ? (i = /* @__PURE__ */ Z(O, {
|
|
1347
1347
|
side: "top",
|
|
1348
1348
|
children: [e.label, r]
|
|
1349
1349
|
}), t[2] = e.label, t[3] = r, t[4] = i) : i = t[4];
|
|
1350
1350
|
let a;
|
|
1351
|
-
return t[5] !== n || t[6] !== i ? (a = /* @__PURE__ */ Z(
|
|
1351
|
+
return t[5] !== n || t[6] !== i ? (a = /* @__PURE__ */ Z(A, { children: [n, i] }), t[5] = n, t[6] = i, t[7] = a) : a = t[7], a;
|
|
1352
1352
|
}
|
|
1353
1353
|
function aa(e) {
|
|
1354
|
-
let t = Y(14), n =
|
|
1354
|
+
let t = Y(14), n = u();
|
|
1355
1355
|
if (e.state.phase !== "idle") return null;
|
|
1356
1356
|
let r;
|
|
1357
1357
|
t[0] === n ? r = t[1] : (r = n("Start voice input"), t[0] = n, t[1] = r);
|
|
@@ -1360,7 +1360,7 @@ function aa(e) {
|
|
|
1360
1360
|
e.disabled || e.onStart();
|
|
1361
1361
|
}, t[2] = e, t[3] = s);
|
|
1362
1362
|
let c;
|
|
1363
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ X(
|
|
1363
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ X(vt, {}), t[4] = c) : c = t[4];
|
|
1364
1364
|
let l;
|
|
1365
1365
|
t[5] !== i || t[6] !== e.disabled || t[7] !== o || t[8] !== s ? (l = /* @__PURE__ */ X(T, {
|
|
1366
1366
|
type: "button",
|
|
@@ -1373,15 +1373,15 @@ function aa(e) {
|
|
|
1373
1373
|
className: "shrink-0",
|
|
1374
1374
|
children: c
|
|
1375
1375
|
}), t[5] = i, t[6] = e.disabled, t[7] = o, t[8] = s, t[9] = l) : l = t[9];
|
|
1376
|
-
let
|
|
1377
|
-
return t[10] !== i || t[11] !== a || t[12] !== l ? (
|
|
1376
|
+
let d;
|
|
1377
|
+
return t[10] !== i || t[11] !== a || t[12] !== l ? (d = /* @__PURE__ */ X(ia, {
|
|
1378
1378
|
label: i,
|
|
1379
1379
|
shortcut: a,
|
|
1380
1380
|
children: l
|
|
1381
|
-
}), t[10] = i, t[11] = a, t[12] = l, t[13] =
|
|
1381
|
+
}), t[10] = i, t[11] = a, t[12] = l, t[13] = d) : d = t[13], d;
|
|
1382
1382
|
}
|
|
1383
1383
|
function oa(e) {
|
|
1384
|
-
let t = Y(52), n =
|
|
1384
|
+
let t = Y(52), n = u(), r = v(), { phase: i } = e.state, a = e.size === "compact";
|
|
1385
1385
|
if (i === "error") {
|
|
1386
1386
|
let n = e.disabled ?? !1, r = e.cancelShortcutLabel ?? null, i;
|
|
1387
1387
|
return t[0] !== e.onCancel || t[1] !== e.onStart || t[2] !== e.size || t[3] !== e.state.error || t[4] !== e.state.errorAction || t[5] !== e.state.errorCode || t[6] !== n || t[7] !== r ? (i = /* @__PURE__ */ X(Zi, {
|
|
@@ -1399,37 +1399,37 @@ function oa(e) {
|
|
|
1399
1399
|
t[9] !== r || t[10] !== e.progress || t[11] !== e.state ? (o = ta(e.state, e.progress, r), t[9] = r, t[10] = e.progress, t[11] = e.state, t[12] = o) : o = t[12];
|
|
1400
1400
|
let s = o;
|
|
1401
1401
|
if (!s.active) return null;
|
|
1402
|
-
let c = i === "recording", l = c || i === "post-processing",
|
|
1403
|
-
t[13] === n ?
|
|
1404
|
-
let
|
|
1405
|
-
t[15] === n ?
|
|
1406
|
-
let g;
|
|
1407
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ X(Ct, {}), t[17] = g) : g = t[17];
|
|
1402
|
+
let c = i === "recording", l = c || i === "post-processing", d = e.size, f;
|
|
1403
|
+
t[13] === n ? f = t[14] : (f = n("Cancel voice input"), t[13] = n, t[14] = f);
|
|
1404
|
+
let m = e.cancelShortcutLabel, h = a ? "icon-xs" : "icon-sm-pill", g;
|
|
1405
|
+
t[15] === n ? g = t[16] : (g = n("Cancel voice input"), t[15] = n, t[16] = g);
|
|
1408
1406
|
let _;
|
|
1409
|
-
t[
|
|
1407
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ X(St, {}), t[17] = _) : _ = t[17];
|
|
1408
|
+
let y;
|
|
1409
|
+
t[18] !== e.onCancel || t[19] !== h || t[20] !== g ? (y = /* @__PURE__ */ X(T, {
|
|
1410
1410
|
type: "button",
|
|
1411
|
-
size:
|
|
1411
|
+
size: h,
|
|
1412
1412
|
variant: "ghost",
|
|
1413
|
-
"aria-label":
|
|
1413
|
+
"aria-label": g,
|
|
1414
1414
|
onPointerDown: ea,
|
|
1415
1415
|
onClick: e.onCancel,
|
|
1416
1416
|
className: "shrink-0",
|
|
1417
|
-
children: g
|
|
1418
|
-
}), t[18] = e.onCancel, t[19] = m, t[20] = h, t[21] = _) : _ = t[21];
|
|
1419
|
-
let v;
|
|
1420
|
-
t[22] !== e.cancelShortcutLabel || t[23] !== d || t[24] !== _ ? (v = /* @__PURE__ */ X(ia, {
|
|
1421
|
-
label: d,
|
|
1422
|
-
shortcut: p,
|
|
1423
1417
|
children: _
|
|
1424
|
-
}), t[
|
|
1425
|
-
let b
|
|
1426
|
-
t[
|
|
1427
|
-
|
|
1428
|
-
|
|
1418
|
+
}), t[18] = e.onCancel, t[19] = h, t[20] = g, t[21] = y) : y = t[21];
|
|
1419
|
+
let b;
|
|
1420
|
+
t[22] !== e.cancelShortcutLabel || t[23] !== f || t[24] !== y ? (b = /* @__PURE__ */ X(ia, {
|
|
1421
|
+
label: f,
|
|
1422
|
+
shortcut: m,
|
|
1423
|
+
children: y
|
|
1424
|
+
}), t[22] = e.cancelShortcutLabel, t[23] = f, t[24] = y, t[25] = b) : b = t[25];
|
|
1425
|
+
let x = !l && "pe-2.5", S;
|
|
1426
|
+
t[26] === x ? S = t[27] : (S = I("flex min-w-0 flex-1 items-center gap-2 overflow-hidden", x), t[26] = x, t[27] = S);
|
|
1427
|
+
let C = c ? "off" : "polite", E = s.status ?? void 0, D;
|
|
1428
|
+
t[28] !== s.status || t[29] !== e.level || t[30] !== e.recordingLimitSeconds || t[31] !== e.recordingStartedAt || t[32] !== c ? (D = c ? /* @__PURE__ */ X(ra, {
|
|
1429
1429
|
level: e.level,
|
|
1430
1430
|
recordingStartedAt: e.recordingStartedAt,
|
|
1431
1431
|
recordingLimitSeconds: e.recordingLimitSeconds
|
|
1432
|
-
}) : /* @__PURE__ */ Z(nn, { children: [/* @__PURE__ */ X(
|
|
1432
|
+
}) : /* @__PURE__ */ Z(nn, { children: [/* @__PURE__ */ X(p, {
|
|
1433
1433
|
"aria-hidden": !0,
|
|
1434
1434
|
size: "sm",
|
|
1435
1435
|
tone: "muted",
|
|
@@ -1437,17 +1437,17 @@ function oa(e) {
|
|
|
1437
1437
|
}), /* @__PURE__ */ X("span", {
|
|
1438
1438
|
className: "min-w-0 truncate text-sm text-muted-foreground",
|
|
1439
1439
|
children: s.status
|
|
1440
|
-
})] }), t[28] = s.status, t[29] = e.level, t[30] = e.recordingLimitSeconds, t[31] = e.recordingStartedAt, t[32] = c, t[33] =
|
|
1441
|
-
let
|
|
1442
|
-
t[34] !==
|
|
1443
|
-
className:
|
|
1440
|
+
})] }), t[28] = s.status, t[29] = e.level, t[30] = e.recordingLimitSeconds, t[31] = e.recordingStartedAt, t[32] = c, t[33] = D) : D = t[33];
|
|
1441
|
+
let O;
|
|
1442
|
+
t[34] !== S || t[35] !== C || t[36] !== E || t[37] !== D ? (O = /* @__PURE__ */ X("div", {
|
|
1443
|
+
className: S,
|
|
1444
1444
|
role: "status",
|
|
1445
|
-
"aria-live":
|
|
1446
|
-
"aria-label":
|
|
1447
|
-
children:
|
|
1448
|
-
}), t[34] =
|
|
1449
|
-
let
|
|
1450
|
-
t[39] !== a || t[40] !== n || t[41] !== i || t[42] !== e.finishShortcutLabel || t[43] !== e.onSkipPostProcessing || t[44] !== e.onStop || t[45] !== c ? (
|
|
1445
|
+
"aria-live": C,
|
|
1446
|
+
"aria-label": E,
|
|
1447
|
+
children: D
|
|
1448
|
+
}), t[34] = S, t[35] = C, t[36] = E, t[37] = D, t[38] = O) : O = t[38];
|
|
1449
|
+
let k;
|
|
1450
|
+
t[39] !== a || t[40] !== n || t[41] !== i || t[42] !== e.finishShortcutLabel || t[43] !== e.onSkipPostProcessing || t[44] !== e.onStop || t[45] !== c ? (k = i === "post-processing" ? /* @__PURE__ */ X(T, {
|
|
1451
1451
|
type: "button",
|
|
1452
1452
|
size: a ? "xs" : "sm-pill",
|
|
1453
1453
|
variant: "ghost",
|
|
@@ -1466,18 +1466,18 @@ function oa(e) {
|
|
|
1466
1466
|
onPointerDown: ea,
|
|
1467
1467
|
onClick: e.onStop,
|
|
1468
1468
|
className: "shrink-0",
|
|
1469
|
-
children: [/* @__PURE__ */ X(
|
|
1469
|
+
children: [/* @__PURE__ */ X(xt, { className: "size-3" }), /* @__PURE__ */ X("span", { children: /* @__PURE__ */ X(w, { children: "Stop" }) })]
|
|
1470
1470
|
})
|
|
1471
|
-
}) : null, t[39] = a, t[40] = n, t[41] = i, t[42] = e.finishShortcutLabel, t[43] = e.onSkipPostProcessing, t[44] = e.onStop, t[45] = c, t[46] =
|
|
1472
|
-
let
|
|
1473
|
-
return t[47] !== e.size || t[48] !==
|
|
1474
|
-
size:
|
|
1471
|
+
}) : null, t[39] = a, t[40] = n, t[41] = i, t[42] = e.finishShortcutLabel, t[43] = e.onSkipPostProcessing, t[44] = e.onStop, t[45] = c, t[46] = k) : k = t[46];
|
|
1472
|
+
let A;
|
|
1473
|
+
return t[47] !== e.size || t[48] !== O || t[49] !== k || t[50] !== b ? (A = /* @__PURE__ */ Z(Yi, {
|
|
1474
|
+
size: d,
|
|
1475
1475
|
children: [
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1476
|
+
b,
|
|
1477
|
+
O,
|
|
1478
|
+
k
|
|
1479
1479
|
]
|
|
1480
|
-
}), t[47] = e.size, t[48] =
|
|
1480
|
+
}), t[47] = e.size, t[48] = O, t[49] = k, t[50] = b, t[51] = A) : A = t[51], A;
|
|
1481
1481
|
}
|
|
1482
1482
|
// src/speech/microphoneOrder.ts
|
|
1483
1483
|
var sa = { kind: "default" }, ca = /* @__PURE__ */ new Set([
|
|
@@ -1553,10 +1553,10 @@ async function ya() {
|
|
|
1553
1553
|
}));
|
|
1554
1554
|
}
|
|
1555
1555
|
function ba(e) {
|
|
1556
|
-
let t = da(
|
|
1557
|
-
if (!
|
|
1556
|
+
let t = da(Nt());
|
|
1557
|
+
if (!Ot()) return t;
|
|
1558
1558
|
let n = e(t);
|
|
1559
|
-
return n !== t &&
|
|
1559
|
+
return n !== t && kt({ voiceMicrophones: [...n] }), n;
|
|
1560
1560
|
}
|
|
1561
1561
|
async function xa() {
|
|
1562
1562
|
let e = await va().catch(() => []);
|
|
@@ -1573,8 +1573,8 @@ var Sa = {
|
|
|
1573
1573
|
accurateMaxWaitSeconds: 10,
|
|
1574
1574
|
fastMaxWaitSeconds: 4
|
|
1575
1575
|
};
|
|
1576
|
-
|
|
1577
|
-
var Ca =
|
|
1576
|
+
ye(Oe(Be));
|
|
1577
|
+
var Ca = le(Oe(Be));
|
|
1578
1578
|
function wa(e, t, n) {
|
|
1579
1579
|
let r = [...new Set(t)], i = /* @__PURE__ */ new Map();
|
|
1580
1580
|
if (r.length === 0 || n === void 0) return i;
|
|
@@ -1659,7 +1659,7 @@ function Ma(e, t = "en") {
|
|
|
1659
1659
|
return n || (n = new Intl.DisplayNames([t], { type: "language" }), ja.set(t, n)), n.of(e) ?? e;
|
|
1660
1660
|
}
|
|
1661
1661
|
function Na(e) {
|
|
1662
|
-
let t = Y(42), { model: n } = e, r =
|
|
1662
|
+
let t = Y(42), { model: n } = e, r = u(), i = ee(), a = Mt(Fa), o;
|
|
1663
1663
|
t[0] === n?.languages ? o = t[1] : (o = n?.languages ?? [], t[0] = n?.languages, t[1] = o);
|
|
1664
1664
|
let s = o, c;
|
|
1665
1665
|
t[2] !== s || t[3] !== n || t[4] !== a ? (c = n ? Ea({
|
|
@@ -1677,9 +1677,9 @@ function Na(e) {
|
|
|
1677
1677
|
let p = d, m = !n, h;
|
|
1678
1678
|
t[12] === r ? h = t[13] : (h = r("Transcription language"), t[12] = r, t[13] = h);
|
|
1679
1679
|
let g;
|
|
1680
|
-
t[14] === p ? g = t[15] : (g = /* @__PURE__ */ X(
|
|
1680
|
+
t[14] === p ? g = t[15] : (g = /* @__PURE__ */ X(wt, { children: p }), t[14] = p, t[15] = g);
|
|
1681
1681
|
let _;
|
|
1682
|
-
t[16] !== h || t[17] !== g ? (_ = /* @__PURE__ */ X(
|
|
1682
|
+
t[16] !== h || t[17] !== g ? (_ = /* @__PURE__ */ X(Et, {
|
|
1683
1683
|
size: "sm",
|
|
1684
1684
|
"aria-label": h,
|
|
1685
1685
|
className: "max-w-64",
|
|
@@ -1687,127 +1687,127 @@ function Na(e) {
|
|
|
1687
1687
|
}), t[16] = h, t[17] = g, t[18] = _) : _ = t[18];
|
|
1688
1688
|
let v;
|
|
1689
1689
|
t[19] === r ? v = t[20] : (v = r("Auto", { $context: "automatic language detection" }), t[19] = r, t[20] = v);
|
|
1690
|
-
let
|
|
1691
|
-
t[21] === v ?
|
|
1690
|
+
let y;
|
|
1691
|
+
t[21] === v ? y = t[22] : (y = /* @__PURE__ */ X(Ct, {
|
|
1692
1692
|
value: "auto",
|
|
1693
1693
|
children: v
|
|
1694
|
-
}), t[21] = v, t[22] =
|
|
1695
|
-
let
|
|
1696
|
-
t[23] !== a || t[24] !== f ? (
|
|
1694
|
+
}), t[21] = v, t[22] = y);
|
|
1695
|
+
let b;
|
|
1696
|
+
t[23] !== a || t[24] !== f ? (b = f ? /* @__PURE__ */ X(Ct, {
|
|
1697
1697
|
value: a,
|
|
1698
1698
|
disabled: !0,
|
|
1699
1699
|
children: f
|
|
1700
|
-
}) : null, t[23] = a, t[24] = f, t[25] =
|
|
1701
|
-
let
|
|
1700
|
+
}) : null, t[23] = a, t[24] = f, t[25] = b) : b = t[25];
|
|
1701
|
+
let x;
|
|
1702
1702
|
if (t[26] !== s || t[27] !== i) {
|
|
1703
1703
|
let e;
|
|
1704
1704
|
t[29] === i ? e = t[30] : (e = (e, t) => Ma(e, i).localeCompare(Ma(t, i)), t[29] = i, t[30] = e);
|
|
1705
1705
|
let n;
|
|
1706
|
-
t[31] === i ? n = t[32] : (n = (e) => /* @__PURE__ */ X(
|
|
1706
|
+
t[31] === i ? n = t[32] : (n = (e) => /* @__PURE__ */ X(Ct, {
|
|
1707
1707
|
value: e,
|
|
1708
1708
|
children: Ma(e, i)
|
|
1709
|
-
}, e), t[31] = i, t[32] = n),
|
|
1710
|
-
} else
|
|
1711
|
-
let
|
|
1712
|
-
t[33] !==
|
|
1709
|
+
}, e), t[31] = i, t[32] = n), x = s.toSorted(e).map(n), t[26] = s, t[27] = i, t[28] = x;
|
|
1710
|
+
} else x = t[28];
|
|
1711
|
+
let S;
|
|
1712
|
+
t[33] !== b || t[34] !== x || t[35] !== y ? (S = /* @__PURE__ */ Z(Tt, {
|
|
1713
1713
|
align: "end",
|
|
1714
1714
|
alignItemWithTrigger: !1,
|
|
1715
1715
|
children: [
|
|
1716
|
+
y,
|
|
1716
1717
|
b,
|
|
1717
|
-
x
|
|
1718
|
-
S
|
|
1718
|
+
x
|
|
1719
1719
|
]
|
|
1720
|
-
}), t[33] =
|
|
1721
|
-
let
|
|
1722
|
-
return t[37] !== a || t[38] !==
|
|
1720
|
+
}), t[33] = b, t[34] = x, t[35] = y, t[36] = S) : S = t[36];
|
|
1721
|
+
let C;
|
|
1722
|
+
return t[37] !== a || t[38] !== S || t[39] !== m || t[40] !== _ ? (C = /* @__PURE__ */ Z(Dt, {
|
|
1723
1723
|
value: a,
|
|
1724
1724
|
disabled: m,
|
|
1725
1725
|
onValueChange: Pa,
|
|
1726
|
-
children: [_,
|
|
1727
|
-
}), t[37] = a, t[38] =
|
|
1726
|
+
children: [_, S]
|
|
1727
|
+
}), t[37] = a, t[38] = S, t[39] = m, t[40] = _, t[41] = C) : C = t[41], C;
|
|
1728
1728
|
}
|
|
1729
1729
|
function Pa(e) {
|
|
1730
|
-
e &&
|
|
1730
|
+
e && kt({ speechLanguage: e });
|
|
1731
1731
|
}
|
|
1732
1732
|
function Fa(e) {
|
|
1733
1733
|
return e.speechLanguage;
|
|
1734
1734
|
}
|
|
1735
1735
|
// src/components/chat/VoiceInputSetup.tsx
|
|
1736
1736
|
function Ia(e) {
|
|
1737
|
-
let n = Y(72), r =
|
|
1737
|
+
let n = Y(72), r = u(), a = ee(), s = en(), c = At(e.environmentId), l;
|
|
1738
1738
|
n[0] !== a || n[1] !== e.language ? (l = e.language ? Ma(e.language, a) : null, n[0] = a, n[1] = e.language, n[2] = l) : l = n[2];
|
|
1739
|
-
let d = l, f = t(e.environmentId,
|
|
1739
|
+
let d = l, f = t(e.environmentId, Fe), p = Mt(da), m;
|
|
1740
1740
|
n[3] === Symbol.for("react.memo_cache_sentinel") ? (m = [], n[3] = m) : m = n[3];
|
|
1741
1741
|
let [h, g] = Qt(m), _;
|
|
1742
1742
|
n[4] !== h || n[5] !== p ? (_ = ma(p, h), n[4] = h, n[5] = p, n[6] = _) : _ = n[6];
|
|
1743
|
-
let v = _, [
|
|
1744
|
-
n[7] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1743
|
+
let v = _, [y, b] = Qt(!1), [x, S] = Qt(null), C;
|
|
1744
|
+
n[7] === Symbol.for("react.memo_cache_sentinel") ? (C = async () => {
|
|
1745
1745
|
if (navigator.mediaDevices?.enumerateDevices) {
|
|
1746
|
-
|
|
1746
|
+
b(!0);
|
|
1747
1747
|
try {
|
|
1748
|
-
g(await ya()),
|
|
1748
|
+
g(await ya()), S(null);
|
|
1749
1749
|
} catch {
|
|
1750
|
-
|
|
1750
|
+
S(o(i("Couldn’t list microphones. The system default still works.")));
|
|
1751
1751
|
}
|
|
1752
|
-
|
|
1752
|
+
b(!1);
|
|
1753
1753
|
}
|
|
1754
|
-
}, n[7] =
|
|
1755
|
-
let
|
|
1756
|
-
n[8] !== e.open || n[9] !== e.step || n[10] !==
|
|
1754
|
+
}, n[7] = C) : C = n[7];
|
|
1755
|
+
let E = It(C), D, O;
|
|
1756
|
+
n[8] !== e.open || n[9] !== e.step || n[10] !== E ? (D = () => {
|
|
1757
1757
|
if (!e.open || e.step !== 1) return;
|
|
1758
|
-
queueMicrotask(() => void
|
|
1758
|
+
queueMicrotask(() => void E());
|
|
1759
1759
|
let t = navigator.mediaDevices;
|
|
1760
|
-
return t?.addEventListener?.("devicechange",
|
|
1761
|
-
},
|
|
1760
|
+
return t?.addEventListener?.("devicechange", E), () => t?.removeEventListener?.("devicechange", E);
|
|
1761
|
+
}, O = [
|
|
1762
1762
|
e.open,
|
|
1763
1763
|
e.step,
|
|
1764
|
-
|
|
1765
|
-
], n[8] = e.open, n[9] = e.step, n[10] =
|
|
1766
|
-
let
|
|
1767
|
-
n[13] !== h || n[14] !== v ? (
|
|
1768
|
-
let A = !!
|
|
1764
|
+
E
|
|
1765
|
+
], n[8] = e.open, n[9] = e.step, n[10] = E, n[11] = D, n[12] = O) : (D = n[11], O = n[12]), q(D, O);
|
|
1766
|
+
let k;
|
|
1767
|
+
n[13] !== h || n[14] !== v ? (k = v && !h.some((e) => e.deviceId === v), n[13] = h, n[14] = v, n[15] = k) : k = n[15];
|
|
1768
|
+
let A = !!k, j;
|
|
1769
1769
|
n[16] !== r || n[17] !== h || n[18] !== v ? (j = v ? h.find((e) => e.deviceId === v)?.label ?? r("Selected microphone (Unavailable)") : r("System default"), n[16] = r, n[17] = h, n[18] = v, n[19] = j) : j = n[19];
|
|
1770
|
-
let M = j,
|
|
1771
|
-
n[20] ===
|
|
1772
|
-
let
|
|
1773
|
-
n[22] !== s || n[23] !== e ? (
|
|
1770
|
+
let M = j, N = e.status?.supported ? e.status : null, P = e.model, F;
|
|
1771
|
+
n[20] === P ? F = n[21] : (F = P?.downloaded === void 0 ? null : Math.round(P.downloaded / P.size * 100), n[20] = P, n[21] = F);
|
|
1772
|
+
let I = F, L;
|
|
1773
|
+
n[22] !== s || n[23] !== e ? (L = (t) => {
|
|
1774
1774
|
e.onOpenChange(!1), s({
|
|
1775
1775
|
to: "/settings/voice",
|
|
1776
1776
|
hash: t
|
|
1777
1777
|
});
|
|
1778
|
-
}, n[22] = s, n[23] = e, n[24] =
|
|
1779
|
-
let
|
|
1780
|
-
n[25] !== r || n[26] !== e.step ? (
|
|
1781
|
-
let L;
|
|
1782
|
-
n[28] !== c || n[29] !== r || n[30] !== e.step ? (L = e.step === 0 ? c?.label == null ? r("Download a speech model once. Your audio is transcribed on your transcription environment.") : r("Download a speech model once. Your audio is transcribed on {destination}.", { destination: c.label }) : r("Pick a microphone, then start talking."), n[28] = c, n[29] = r, n[30] = e.step, n[31] = L) : L = n[31];
|
|
1783
|
-
let z;
|
|
1784
|
-
n[32] !== I || n[33] !== L ? (z = /* @__PURE__ */ X(qt, {
|
|
1785
|
-
title: I,
|
|
1786
|
-
description: L
|
|
1787
|
-
}), n[32] = I, n[33] = L, n[34] = z) : z = n[34];
|
|
1778
|
+
}, n[22] = s, n[23] = e, n[24] = L) : L = n[24];
|
|
1779
|
+
let R = L, z;
|
|
1780
|
+
n[25] !== r || n[26] !== e.step ? (z = e.step === 0 ? r("Set up voice input") : r("Voice input is ready"), n[25] = r, n[26] = e.step, n[27] = z) : z = n[27];
|
|
1788
1781
|
let B;
|
|
1789
|
-
n[
|
|
1782
|
+
n[28] !== c || n[29] !== r || n[30] !== e.step ? (B = e.step === 0 ? c?.label == null ? r("Download a speech model once. Your audio is transcribed on your transcription environment.") : r("Download a speech model once. Your audio is transcribed on {destination}.", { destination: c.label }) : r("Pick a microphone, then start talking."), n[28] = c, n[29] = r, n[30] = e.step, n[31] = B) : B = n[31];
|
|
1783
|
+
let V;
|
|
1784
|
+
n[32] !== z || n[33] !== B ? (V = /* @__PURE__ */ X(qt, {
|
|
1785
|
+
title: z,
|
|
1786
|
+
description: B
|
|
1787
|
+
}), n[32] = z, n[33] = B, n[34] = V) : V = n[34];
|
|
1788
|
+
let H;
|
|
1789
|
+
n[35] !== r || n[36] !== d || n[37] !== y || n[38] !== x || n[39] !== h || n[40] !== P || n[41] !== I || n[42] !== e.downloading || n[43] !== e.error || n[44] !== e.language || n[45] !== e.step || n[46] !== E || n[47] !== A || n[48] !== v || n[49] !== M ? (H = /* @__PURE__ */ X(Jt, { children: e.step === 0 ? /* @__PURE__ */ Z("section", {
|
|
1790
1790
|
className: "space-y-3 text-sm",
|
|
1791
|
-
children: [
|
|
1791
|
+
children: [P ? /* @__PURE__ */ Z("div", {
|
|
1792
1792
|
className: "space-y-3 rounded-lg border border-border/70 bg-card/60 p-3",
|
|
1793
1793
|
children: [
|
|
1794
1794
|
/* @__PURE__ */ Z("div", {
|
|
1795
1795
|
className: "flex items-baseline justify-between gap-3",
|
|
1796
1796
|
children: [/* @__PURE__ */ X("h3", {
|
|
1797
1797
|
className: "min-w-0 truncate font-medium",
|
|
1798
|
-
children:
|
|
1798
|
+
children: P.name
|
|
1799
1799
|
}), /* @__PURE__ */ X("span", {
|
|
1800
1800
|
className: "shrink-0 text-xs text-muted-foreground tabular-nums",
|
|
1801
|
-
children: r("{size} MB", { size: Math.round(
|
|
1801
|
+
children: r("{size} MB", { size: Math.round(P.size / 1024 / 1024) })
|
|
1802
1802
|
})]
|
|
1803
1803
|
}),
|
|
1804
1804
|
/* @__PURE__ */ X("p", {
|
|
1805
1805
|
className: "text-xs text-muted-foreground",
|
|
1806
|
-
children:
|
|
1806
|
+
children: P.recommended && e.language ? /* @__PURE__ */ Z(w, { children: [
|
|
1807
1807
|
"Recommended for ",
|
|
1808
|
-
/* @__PURE__ */ X(
|
|
1808
|
+
/* @__PURE__ */ X(te, { children: d }),
|
|
1809
1809
|
". Includes a 1.2 MB silence detector."
|
|
1810
|
-
] }) : /* @__PURE__ */ X(
|
|
1810
|
+
] }) : /* @__PURE__ */ X(w, { children: "Includes a 1.2 MB silence detector." })
|
|
1811
1811
|
}),
|
|
1812
1812
|
e.downloading ? /* @__PURE__ */ Z("div", {
|
|
1813
1813
|
role: "status",
|
|
@@ -1817,26 +1817,26 @@ function Ia(e) {
|
|
|
1817
1817
|
"aria-label": r("Speech model download progress"),
|
|
1818
1818
|
"aria-valuemin": 0,
|
|
1819
1819
|
"aria-valuemax": 100,
|
|
1820
|
-
"aria-valuenow":
|
|
1820
|
+
"aria-valuenow": I ?? void 0,
|
|
1821
1821
|
className: "h-1 overflow-hidden rounded-full bg-muted",
|
|
1822
1822
|
children: /* @__PURE__ */ X("div", {
|
|
1823
1823
|
className: "h-full bg-primary transition-[width] duration-200",
|
|
1824
|
-
style: { width: `${
|
|
1824
|
+
style: { width: `${I ?? 0}%` }
|
|
1825
1825
|
})
|
|
1826
1826
|
}), /* @__PURE__ */ X("p", {
|
|
1827
1827
|
className: "text-xs text-muted-foreground tabular-nums",
|
|
1828
|
-
children:
|
|
1828
|
+
children: P.state === "verifying" ? r("Verifying…") : I === null ? r("Starting download…") : r("{progress}% downloaded", { progress: I })
|
|
1829
1829
|
})]
|
|
1830
1830
|
}) : null
|
|
1831
1831
|
]
|
|
1832
1832
|
}) : e.error ? null : /* @__PURE__ */ X("p", {
|
|
1833
1833
|
role: "status",
|
|
1834
1834
|
className: "text-muted-foreground",
|
|
1835
|
-
children: /* @__PURE__ */ X(
|
|
1835
|
+
children: /* @__PURE__ */ X(w, { children: "Loading transcription models…" })
|
|
1836
1836
|
}), e.error ? /* @__PURE__ */ Z("p", {
|
|
1837
1837
|
role: "alert",
|
|
1838
1838
|
className: "flex items-start gap-1.5 text-destructive",
|
|
1839
|
-
children: [/* @__PURE__ */ X(
|
|
1839
|
+
children: [/* @__PURE__ */ X(yt, {
|
|
1840
1840
|
"aria-hidden": !0,
|
|
1841
1841
|
className: "mt-0.5 size-3.5 shrink-0"
|
|
1842
1842
|
}), e.error]
|
|
@@ -1847,13 +1847,13 @@ function Ia(e) {
|
|
|
1847
1847
|
/* @__PURE__ */ X("label", {
|
|
1848
1848
|
className: "sr-only",
|
|
1849
1849
|
htmlFor: "voice-setup-microphone",
|
|
1850
|
-
children: /* @__PURE__ */ X(
|
|
1850
|
+
children: /* @__PURE__ */ X(w, { children: "Microphone" })
|
|
1851
1851
|
}),
|
|
1852
1852
|
/* @__PURE__ */ Z("div", {
|
|
1853
1853
|
className: "flex items-center gap-2",
|
|
1854
|
-
children: [/* @__PURE__ */ Z(
|
|
1854
|
+
children: [/* @__PURE__ */ Z(Dt, {
|
|
1855
1855
|
value: v ? `device:${v}` : "system-default",
|
|
1856
|
-
disabled:
|
|
1856
|
+
disabled: y,
|
|
1857
1857
|
onValueChange: (e) => {
|
|
1858
1858
|
if (!e) return;
|
|
1859
1859
|
let t = e.slice(7), n = h.find((e) => e.deviceId === t)?.label ?? "";
|
|
@@ -1863,26 +1863,26 @@ function Ia(e) {
|
|
|
1863
1863
|
label: n
|
|
1864
1864
|
}));
|
|
1865
1865
|
},
|
|
1866
|
-
children: [/* @__PURE__ */ Z(
|
|
1866
|
+
children: [/* @__PURE__ */ Z(Et, {
|
|
1867
1867
|
id: "voice-setup-microphone",
|
|
1868
1868
|
size: "sm",
|
|
1869
1869
|
"aria-label": r("Microphone"),
|
|
1870
1870
|
className: "min-w-0 flex-1",
|
|
1871
|
-
children: [/* @__PURE__ */ X(
|
|
1871
|
+
children: [/* @__PURE__ */ X(vt, {
|
|
1872
1872
|
"aria-hidden": !0,
|
|
1873
1873
|
className: "size-3.5 shrink-0 text-muted-foreground"
|
|
1874
|
-
}), /* @__PURE__ */ X(
|
|
1875
|
-
}), /* @__PURE__ */ Z(
|
|
1874
|
+
}), /* @__PURE__ */ X(wt, { children: M })]
|
|
1875
|
+
}), /* @__PURE__ */ Z(Tt, {
|
|
1876
1876
|
align: "end",
|
|
1877
1877
|
alignItemWithTrigger: !1,
|
|
1878
1878
|
children: [
|
|
1879
|
-
/* @__PURE__ */ X(
|
|
1879
|
+
/* @__PURE__ */ X(Ct, {
|
|
1880
1880
|
value: "system-default",
|
|
1881
|
-
children: /* @__PURE__ */ X(
|
|
1881
|
+
children: /* @__PURE__ */ X(w, { children: "System default" })
|
|
1882
1882
|
}),
|
|
1883
|
-
A ? /* @__PURE__ */ X(
|
|
1883
|
+
A ? /* @__PURE__ */ X(Ct, {
|
|
1884
1884
|
value: `device:${v}`,
|
|
1885
|
-
children: /* @__PURE__ */ X(
|
|
1885
|
+
children: /* @__PURE__ */ X(w, { children: "Selected microphone (Unavailable)" })
|
|
1886
1886
|
}) : null,
|
|
1887
1887
|
h.map(La)
|
|
1888
1888
|
]
|
|
@@ -1891,43 +1891,43 @@ function Ia(e) {
|
|
|
1891
1891
|
type: "button",
|
|
1892
1892
|
variant: "ghost",
|
|
1893
1893
|
size: "icon-sm",
|
|
1894
|
-
disabled:
|
|
1894
|
+
disabled: y,
|
|
1895
1895
|
"aria-label": r("Refresh microphones"),
|
|
1896
|
-
onClick: () => void
|
|
1897
|
-
children: /* @__PURE__ */ X(
|
|
1896
|
+
onClick: () => void E(),
|
|
1897
|
+
children: /* @__PURE__ */ X(bt, { className: "size-3.5" })
|
|
1898
1898
|
})]
|
|
1899
1899
|
}),
|
|
1900
1900
|
A ? /* @__PURE__ */ X("p", {
|
|
1901
1901
|
className: "text-xs text-destructive",
|
|
1902
|
-
children: /* @__PURE__ */ X(
|
|
1902
|
+
children: /* @__PURE__ */ X(w, { children: "That microphone is unplugged. Pick another one." })
|
|
1903
1903
|
}) : null,
|
|
1904
|
-
|
|
1904
|
+
x ? /* @__PURE__ */ X("p", {
|
|
1905
1905
|
role: "alert",
|
|
1906
1906
|
className: "text-xs text-muted-foreground",
|
|
1907
|
-
children:
|
|
1907
|
+
children: x
|
|
1908
1908
|
}) : null
|
|
1909
1909
|
]
|
|
1910
|
-
}) }), n[35] = r, n[36] = d, n[37] =
|
|
1911
|
-
let
|
|
1912
|
-
n[51] !== f || n[52] !== r || n[53] !==
|
|
1910
|
+
}) }), n[35] = r, n[36] = d, n[37] = y, n[38] = x, n[39] = h, n[40] = P, n[41] = I, n[42] = e.downloading, n[43] = e.error, n[44] = e.language, n[45] = e.step, n[46] = E, n[47] = A, n[48] = v, n[49] = M, n[50] = H) : H = n[50];
|
|
1911
|
+
let ne;
|
|
1912
|
+
n[51] !== f || n[52] !== r || n[53] !== P || n[54] !== R || n[55] !== e.downloading || n[56] !== e.error || n[57] !== e.onCancelDownload || n[58] !== e.onDownload || n[59] !== e.onRetryCatalog || n[60] !== e.onStartRecording || n[61] !== e.step || n[62] !== N ? (ne = e.step === 0 ? /* @__PURE__ */ Z(Yt, {
|
|
1913
1913
|
leading: /* @__PURE__ */ X(T, {
|
|
1914
1914
|
variant: "ghost",
|
|
1915
|
-
onClick: () =>
|
|
1916
|
-
children: r(
|
|
1915
|
+
onClick: () => R("speech-models"),
|
|
1916
|
+
children: r(P ? "Other models" : "Choose a model")
|
|
1917
1917
|
}),
|
|
1918
1918
|
children: [
|
|
1919
1919
|
e.onRetryCatalog ? /* @__PURE__ */ X(T, {
|
|
1920
1920
|
onClick: e.onRetryCatalog,
|
|
1921
|
-
children: /* @__PURE__ */ X(
|
|
1921
|
+
children: /* @__PURE__ */ X(w, { children: "Retry loading models" })
|
|
1922
1922
|
}) : null,
|
|
1923
1923
|
e.downloading ? /* @__PURE__ */ X(T, {
|
|
1924
1924
|
variant: "outline",
|
|
1925
1925
|
disabled: !f,
|
|
1926
1926
|
onClick: e.onCancelDownload,
|
|
1927
|
-
children: /* @__PURE__ */ X(
|
|
1927
|
+
children: /* @__PURE__ */ X(w, { children: "Cancel download" })
|
|
1928
1928
|
}) : null,
|
|
1929
|
-
|
|
1930
|
-
disabled: !f || e.downloading || !
|
|
1929
|
+
P ? /* @__PURE__ */ X(T, {
|
|
1930
|
+
disabled: !f || e.downloading || !N,
|
|
1931
1931
|
onClick: e.onDownload,
|
|
1932
1932
|
children: e.downloading ? r("Downloading…") : e.error ? r("Try again") : r(f ? "Download model" : "Needs an admin to download")
|
|
1933
1933
|
}) : null
|
|
@@ -1935,29 +1935,29 @@ function Ia(e) {
|
|
|
1935
1935
|
}) : /* @__PURE__ */ X(Yt, {
|
|
1936
1936
|
leading: /* @__PURE__ */ X(T, {
|
|
1937
1937
|
variant: "ghost",
|
|
1938
|
-
onClick: () =>
|
|
1939
|
-
children: /* @__PURE__ */ X(
|
|
1938
|
+
onClick: () => R(""),
|
|
1939
|
+
children: /* @__PURE__ */ X(w, { children: "Voice settings" })
|
|
1940
1940
|
}),
|
|
1941
1941
|
children: /* @__PURE__ */ Z(T, {
|
|
1942
1942
|
onClick: e.onStartRecording,
|
|
1943
|
-
children: [/* @__PURE__ */ X(
|
|
1943
|
+
children: [/* @__PURE__ */ X(vt, {}), /* @__PURE__ */ X(w, { children: "Start dictating" })]
|
|
1944
1944
|
})
|
|
1945
|
-
}), n[51] = f, n[52] = r, n[53] =
|
|
1946
|
-
let
|
|
1947
|
-
n[64] !==
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
] }), n[64] =
|
|
1952
|
-
let
|
|
1953
|
-
return n[68] !== e.onOpenChange || n[69] !== e.open || n[70] !==
|
|
1945
|
+
}), n[51] = f, n[52] = r, n[53] = P, n[54] = R, n[55] = e.downloading, n[56] = e.error, n[57] = e.onCancelDownload, n[58] = e.onDownload, n[59] = e.onRetryCatalog, n[60] = e.onStartRecording, n[61] = e.step, n[62] = N, n[63] = ne) : ne = n[63];
|
|
1946
|
+
let U;
|
|
1947
|
+
n[64] !== V || n[65] !== H || n[66] !== ne ? (U = /* @__PURE__ */ Z(Kt, { children: [
|
|
1948
|
+
V,
|
|
1949
|
+
H,
|
|
1950
|
+
ne
|
|
1951
|
+
] }), n[64] = V, n[65] = H, n[66] = ne, n[67] = U) : U = n[67];
|
|
1952
|
+
let re;
|
|
1953
|
+
return n[68] !== e.onOpenChange || n[69] !== e.open || n[70] !== U ? (re = /* @__PURE__ */ X(Ut, {
|
|
1954
1954
|
open: e.open,
|
|
1955
1955
|
onOpenChange: e.onOpenChange,
|
|
1956
|
-
children:
|
|
1957
|
-
}), n[68] = e.onOpenChange, n[69] = e.open, n[70] =
|
|
1956
|
+
children: U
|
|
1957
|
+
}), n[68] = e.onOpenChange, n[69] = e.open, n[70] = U, n[71] = re) : re = n[71], re;
|
|
1958
1958
|
}
|
|
1959
1959
|
function La(e) {
|
|
1960
|
-
return /* @__PURE__ */ X(
|
|
1960
|
+
return /* @__PURE__ */ X(Ct, {
|
|
1961
1961
|
value: `device:${e.deviceId}`,
|
|
1962
1962
|
children: e.label
|
|
1963
1963
|
}, e.deviceId);
|
|
@@ -2011,26 +2011,26 @@ function qa(e) {
|
|
|
2011
2011
|
return t ? { prompt: t[1]?.trim() ?? "" } : null;
|
|
2012
2012
|
}
|
|
2013
2013
|
// ../../packages/client-runtime/src/voice-input/transcription.ts
|
|
2014
|
-
var Ja =
|
|
2014
|
+
var Ja = je([
|
|
2015
2015
|
"unavailable",
|
|
2016
2016
|
"unsupported-locale",
|
|
2017
2017
|
"preparation-failed",
|
|
2018
2018
|
"transcription-failed",
|
|
2019
2019
|
"cancelled"
|
|
2020
|
-
]), Ya = class extends
|
|
2020
|
+
]), Ya = class extends Ne()("VoiceTranscriptionError", {
|
|
2021
2021
|
code: Ja,
|
|
2022
|
-
message:
|
|
2023
|
-
i18nMessage:
|
|
2024
|
-
cause:
|
|
2022
|
+
message: Ge,
|
|
2023
|
+
i18nMessage: Re(lt),
|
|
2024
|
+
cause: ke(Te())
|
|
2025
2025
|
}) {};
|
|
2026
2026
|
function Xa(e) {
|
|
2027
2027
|
if (e.aborted) throw new Ya({
|
|
2028
2028
|
code: "cancelled",
|
|
2029
|
-
...
|
|
2029
|
+
...ct(i("Voice transcription was cancelled."))
|
|
2030
2030
|
});
|
|
2031
2031
|
}
|
|
2032
2032
|
// ../../packages/client-runtime/src/voice-input/controller.ts
|
|
2033
|
-
var Za =
|
|
2033
|
+
var Za = Le(Ya), Qa = i("Microphone access is required for voice input. Allow access in your browser or system settings and try again.");
|
|
2034
2034
|
function $a(e) {
|
|
2035
2035
|
return typeof e == "object" && !!e && "name" in e && e.name === "NotAllowedError";
|
|
2036
2036
|
}
|
|
@@ -2108,7 +2108,7 @@ function po(e, t) {
|
|
|
2108
2108
|
} : fo(e) === "unsupported-locale" ? {
|
|
2109
2109
|
message: t(i("Voice transcription is not available for this language.")),
|
|
2110
2110
|
code: "language-unsupported"
|
|
2111
|
-
} : Za(e) && e.message.trim() ? { message:
|
|
2111
|
+
} : Za(e) && e.message.trim() ? { message: st(e, t) ?? e.message } : {
|
|
2112
2112
|
message: t(i("Could not prepare voice transcription.")),
|
|
2113
2113
|
code: "start-failed"
|
|
2114
2114
|
};
|
|
@@ -2117,7 +2117,7 @@ function mo(e, t) {
|
|
|
2117
2117
|
return e instanceof Error && e.message === "voice-operation-busy" ? {
|
|
2118
2118
|
message: t(i("Voice transcription is still finishing. Try again shortly.")),
|
|
2119
2119
|
code: "still-transcribing"
|
|
2120
|
-
} : Za(e) ? { message:
|
|
2120
|
+
} : Za(e) ? { message: st(e, t) ?? e.message } : {
|
|
2121
2121
|
message: t(i("Could not transcribe this recording.")),
|
|
2122
2122
|
code: "transcription-failed"
|
|
2123
2123
|
};
|
|
@@ -2411,17 +2411,17 @@ var ho = {
|
|
|
2411
2411
|
setState(e) {
|
|
2412
2412
|
this.state = e, this.dependencies.onStateChange(e);
|
|
2413
2413
|
}
|
|
2414
|
-
}, _o = 18e5, vo =
|
|
2415
|
-
return yield*
|
|
2414
|
+
}, _o = 18e5, vo = Le(ue), Q = Ve("clientRuntime.voiceInput.environmentRequest")(function* (e) {
|
|
2415
|
+
return yield* V({
|
|
2416
2416
|
group: e.group,
|
|
2417
2417
|
prepared: e.prepared,
|
|
2418
|
-
signer: yield*
|
|
2419
|
-
remoteAuthorization: yield*
|
|
2418
|
+
signer: yield* be(y),
|
|
2419
|
+
remoteAuthorization: yield* be(d),
|
|
2420
2420
|
method: e.method,
|
|
2421
2421
|
url: e.path,
|
|
2422
2422
|
timeoutMs: e.timeoutMs ?? 3e4,
|
|
2423
2423
|
requestInit: { redirect: "error" },
|
|
2424
|
-
request: (t) =>
|
|
2424
|
+
request: (t) => qe(() => e.canSend?.() === !1 ? we : e.run(t))
|
|
2425
2425
|
});
|
|
2426
2426
|
}), yo = (e) => Q({
|
|
2427
2427
|
group: "voice",
|
|
@@ -2441,9 +2441,9 @@ var ho = {
|
|
|
2441
2441
|
method: "GET",
|
|
2442
2442
|
path: (e) => e.cloudModels(),
|
|
2443
2443
|
run: ({ client: e, headers: t }) => e.cloudModels({ headers: t })
|
|
2444
|
-
}), So = (e, t) => bo(e).pipe(
|
|
2444
|
+
}), So = (e, t) => bo(e).pipe(Me((e) => e[t] ? se : ne(new Ya({
|
|
2445
2445
|
code: "unavailable",
|
|
2446
|
-
message: new
|
|
2446
|
+
message: new ue({
|
|
2447
2447
|
provider: t,
|
|
2448
2448
|
reason: "missing-key"
|
|
2449
2449
|
}).message
|
|
@@ -2455,7 +2455,7 @@ var ho = {
|
|
|
2455
2455
|
run: ({ client: e, headers: r }) => e.setCloudKey({
|
|
2456
2456
|
headers: r,
|
|
2457
2457
|
params: { provider: t },
|
|
2458
|
-
payload: { key: typeof n == "string" ?
|
|
2458
|
+
payload: { key: typeof n == "string" ? He(n) : n }
|
|
2459
2459
|
})
|
|
2460
2460
|
}), wo = (e, t, n, r, i, a) => {
|
|
2461
2461
|
let o = a === void 0 ? {} : { model: a };
|
|
@@ -2475,7 +2475,7 @@ var ho = {
|
|
|
2475
2475
|
query: o,
|
|
2476
2476
|
payload: Aa(n, r)
|
|
2477
2477
|
})
|
|
2478
|
-
}).pipe(
|
|
2478
|
+
}).pipe(G((e) => e._tag === "RemoteEnvironmentAuthFetchError" && vo(e.cause) ? new Ya({
|
|
2479
2479
|
code: "transcription-failed",
|
|
2480
2480
|
message: e.cause.message
|
|
2481
2481
|
}) : e));
|
|
@@ -2490,9 +2490,9 @@ var ho = {
|
|
|
2490
2490
|
headers: t,
|
|
2491
2491
|
params: { use: "media" }
|
|
2492
2492
|
})
|
|
2493
|
-
}).pipe(
|
|
2494
|
-
let n = new URL(
|
|
2495
|
-
return n.protocol = n.protocol === "https:" ? "wss:" : "ws:", n.searchParams.set("wsTicket",
|
|
2493
|
+
}).pipe(Pe(({ ticket: e }) => {
|
|
2494
|
+
let n = new URL(ie, t);
|
|
2495
|
+
return n.protocol = n.protocol === "https:" ? "wss:" : "ws:", n.searchParams.set("wsTicket", De(e)), n.toString();
|
|
2496
2496
|
}));
|
|
2497
2497
|
}, Eo = (e, t = !1) => {
|
|
2498
2498
|
let n = t ? { benchmarks: "1" } : {};
|
|
@@ -2597,7 +2597,7 @@ var ho = {
|
|
|
2597
2597
|
headers: n,
|
|
2598
2598
|
payload: { modelId: t }
|
|
2599
2599
|
})
|
|
2600
|
-
}), Io =
|
|
2600
|
+
}), Io = ye(Oe(W));
|
|
2601
2601
|
function Lo(e) {
|
|
2602
2602
|
e.signal.throwIfAborted();
|
|
2603
2603
|
let t = (e.createSocket ?? ((e) => new WebSocket(e)))(e.url), n, r, a = new Promise((e, t) => {
|
|
@@ -2609,10 +2609,10 @@ function Lo(e) {
|
|
|
2609
2609
|
}, _ = (n, i = !0) => {
|
|
2610
2610
|
f || (f = !0, g(), r(n), t.close(), i && e.onError(n));
|
|
2611
2611
|
}, v = () => {
|
|
2612
|
-
clearTimeout(h), h = setTimeout(() => _(
|
|
2613
|
-
}, y = () => _(
|
|
2612
|
+
clearTimeout(h), h = setTimeout(() => _(K(i("Live transcription stopped responding."))), 12e4);
|
|
2613
|
+
}, y = () => _(K(i("Voice transcription was cancelled.")), !1), b = () => {
|
|
2614
2614
|
if (!(!p || f || d)) {
|
|
2615
|
-
if (!e.canSend()) return _(
|
|
2615
|
+
if (!e.canSend()) return _(K(i("Voice consent was revoked.")));
|
|
2616
2616
|
for (; c.length < 2 && o.length;) {
|
|
2617
2617
|
let e = o.shift();
|
|
2618
2618
|
c.push(e.byteLength), l += e.byteLength, s -= e.byteLength, t.send(e), v();
|
|
@@ -2621,58 +2621,58 @@ function Lo(e) {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
};
|
|
2623
2623
|
return t.addEventListener("open", () => {
|
|
2624
|
-
if (!e.canSend()) return _(
|
|
2624
|
+
if (!e.canSend()) return _(K(i("Voice consent was revoked.")));
|
|
2625
2625
|
f || t.send(JSON.stringify({
|
|
2626
2626
|
type: "start",
|
|
2627
2627
|
options: e.options
|
|
2628
2628
|
}));
|
|
2629
2629
|
}), t.addEventListener("message", (r) => {
|
|
2630
2630
|
if (!f) {
|
|
2631
|
-
if (!e.canSend()) return _(
|
|
2631
|
+
if (!e.canSend()) return _(K(i("Voice consent was revoked.")));
|
|
2632
2632
|
try {
|
|
2633
2633
|
let a = Io(r.data);
|
|
2634
2634
|
switch (a.type) {
|
|
2635
2635
|
case "ready":
|
|
2636
|
-
if (p) throw
|
|
2636
|
+
if (p) throw K(i("Unexpected speech stream response."));
|
|
2637
2637
|
p = !0, clearTimeout(h), b();
|
|
2638
2638
|
break;
|
|
2639
2639
|
case "update":
|
|
2640
|
-
if (!c.length || a.revision < m) throw
|
|
2640
|
+
if (!c.length || a.revision < m) throw K(i("Unexpected speech stream response."));
|
|
2641
2641
|
m = a.revision, l -= c.shift(), clearTimeout(h), a.text && e.onText(a.text), b(), c.length && v();
|
|
2642
2642
|
break;
|
|
2643
2643
|
case "finished":
|
|
2644
|
-
if (!d) throw
|
|
2644
|
+
if (!d) throw K(i("Unexpected speech stream response."));
|
|
2645
2645
|
f = !0, g(), n(a.text), t.close();
|
|
2646
2646
|
break;
|
|
2647
2647
|
case "error": _(Error(a.message));
|
|
2648
2648
|
}
|
|
2649
2649
|
} catch (e) {
|
|
2650
|
-
_(e instanceof Error ? e :
|
|
2650
|
+
_(e instanceof Error ? e : K(i("Invalid speech stream response.")));
|
|
2651
2651
|
}
|
|
2652
2652
|
}
|
|
2653
|
-
}), t.addEventListener("close", () => _(
|
|
2653
|
+
}), t.addEventListener("close", () => _(K(i("The voice connection closed. Please record again.")))), t.addEventListener("error", () => _(K(i("Could not connect to live transcription.")))), e.signal.addEventListener("abort", y, { once: !0 }), v(), e.signal.aborted && y(), {
|
|
2654
2654
|
feed: (e) => {
|
|
2655
2655
|
if (f || u) return;
|
|
2656
2656
|
let t = new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
2657
2657
|
if (s + l + t.byteLength > 192e5) {
|
|
2658
|
-
_(
|
|
2658
|
+
_(K(i("Voice recordings are limited to five minutes.")));
|
|
2659
2659
|
return;
|
|
2660
2660
|
}
|
|
2661
2661
|
let n = 0;
|
|
2662
2662
|
for (; n < t.length;) {
|
|
2663
|
-
let e = o.at(-1), r = e ?
|
|
2663
|
+
let e = o.at(-1), r = e ? me - e.byteLength : 0;
|
|
2664
2664
|
if (e && r > 0) {
|
|
2665
2665
|
let i = Math.min(r, t.length - n), a = new Uint8Array(e.byteLength + i);
|
|
2666
2666
|
a.set(e), a.set(t.subarray(n, n + i), e.byteLength), o[o.length - 1] = a, s += i, n += i;
|
|
2667
2667
|
continue;
|
|
2668
2668
|
}
|
|
2669
|
-
let i = t.slice(n, n +
|
|
2669
|
+
let i = t.slice(n, n + me);
|
|
2670
2670
|
o.push(i), s += i.byteLength, n += i.byteLength;
|
|
2671
2671
|
}
|
|
2672
2672
|
try {
|
|
2673
2673
|
b();
|
|
2674
2674
|
} catch {
|
|
2675
|
-
_(
|
|
2675
|
+
_(K(i("Could not send microphone audio.")));
|
|
2676
2676
|
}
|
|
2677
2677
|
},
|
|
2678
2678
|
finish: () => {
|
|
@@ -2680,7 +2680,7 @@ function Lo(e) {
|
|
|
2680
2680
|
try {
|
|
2681
2681
|
b();
|
|
2682
2682
|
} catch {
|
|
2683
|
-
_(
|
|
2683
|
+
_(K(i("Could not finish live transcription.")));
|
|
2684
2684
|
}
|
|
2685
2685
|
return a;
|
|
2686
2686
|
},
|
|
@@ -2791,7 +2791,7 @@ function Jo(e, t) {
|
|
|
2791
2791
|
function Yo(e) {
|
|
2792
2792
|
let t = Y(10), n;
|
|
2793
2793
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = Symbol("dictation-target"), t[0] = n) : n = t[0];
|
|
2794
|
-
let r = J(n), i = e.subscribeKeys, a =
|
|
2794
|
+
let r = J(n), i = e.subscribeKeys, a = Mt(Xo), o = J(e), s;
|
|
2795
2795
|
t[1] === e ? s = t[2] : (s = () => {
|
|
2796
2796
|
o.current = e;
|
|
2797
2797
|
}, t[1] = e, t[2] = s), q(s);
|
|
@@ -2832,7 +2832,7 @@ function Yo(e) {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
if (n.onKeyDown(e)) return;
|
|
2834
2834
|
let { keybindings: i, terminalOpen: s, modelPickerOpen: u, disabled: d } = o.current, f = o.current.previewFocus ?? !1;
|
|
2835
|
-
if (
|
|
2835
|
+
if (Ue(e, i, { context: {
|
|
2836
2836
|
terminalFocus: Bt() !== null,
|
|
2837
2837
|
terminalOpen: s,
|
|
2838
2838
|
modelPickerOpen: u,
|
|
@@ -2872,7 +2872,7 @@ function Yo(e) {
|
|
|
2872
2872
|
};
|
|
2873
2873
|
}, d = [a, i], t[3] = a, t[4] = i, t[5] = u, t[6] = d) : (u = t[5], d = t[6]), q(u, d);
|
|
2874
2874
|
let f;
|
|
2875
|
-
return t[7] !== e.keybindings || t[8] !== e.terminalOpen ? (f =
|
|
2875
|
+
return t[7] !== e.keybindings || t[8] !== e.terminalOpen ? (f = Ce(e.keybindings, "composer.dictation", { context: {
|
|
2876
2876
|
terminalFocus: !1,
|
|
2877
2877
|
terminalOpen: e.terminalOpen
|
|
2878
2878
|
} }), t[7] = e.keybindings, t[8] = e.terminalOpen, t[9] = f) : f = t[9], f;
|
|
@@ -2891,19 +2891,19 @@ function Zo() {
|
|
|
2891
2891
|
}
|
|
2892
2892
|
// src/speech/runEnvironmentSpeech.ts
|
|
2893
2893
|
function Qo(e) {
|
|
2894
|
-
return D(
|
|
2894
|
+
return D(P, r).pipe(Me((t) => _e(e, t)));
|
|
2895
2895
|
}
|
|
2896
2896
|
function $(e, t) {
|
|
2897
|
-
return
|
|
2897
|
+
return Se(Qo(e), t);
|
|
2898
2898
|
}
|
|
2899
2899
|
// src/speech/voiceConsent.ts
|
|
2900
|
-
var $o = "hanzodev:voice-audio-grant:v1", es = "hanzodev:voice-cleanup-grant:v1", ts =
|
|
2901
|
-
id:
|
|
2902
|
-
destination:
|
|
2903
|
-
}), ns =
|
|
2900
|
+
var $o = "hanzodev:voice-audio-grant:v1", es = "hanzodev:voice-cleanup-grant:v1", ts = U({
|
|
2901
|
+
id: Ge,
|
|
2902
|
+
destination: he
|
|
2903
|
+
}), ns = Ze(ts), rs = Qe(ns), is = ce([ns, Ie("off")]), as = ce([is, U({
|
|
2904
2904
|
pending: ts,
|
|
2905
2905
|
previous: is
|
|
2906
|
-
})]), os = (e) => `${$o}:saved:${e}`, ss = (e) => e && e !== "off" && "pending" in e ? e.pending : null, cs =
|
|
2906
|
+
})]), os = (e) => `${$o}:saved:${e}`, ss = (e) => e && e !== "off" && "pending" in e ? e.pending : null, cs = Ze(Ge), ls = ae(Oe(as)), us = () => F($o, null, as);
|
|
2907
2907
|
function ds(e) {
|
|
2908
2908
|
try {
|
|
2909
2909
|
return e ? window.localStorage.getItem(os(e)) : null;
|
|
@@ -2915,7 +2915,7 @@ function fs(e, t) {
|
|
|
2915
2915
|
return !e || e === "off" || !("pending" in e) ? e : t === null ? e.previous : t === "true" ? e.pending : "off";
|
|
2916
2916
|
}
|
|
2917
2917
|
function ps() {
|
|
2918
|
-
let e = Y(8), [t] =
|
|
2918
|
+
let e = Y(8), [t] = L($o, null, as), n;
|
|
2919
2919
|
e[0] === t ? n = e[1] : (n = ss(t)?.id, e[0] = t, e[1] = n);
|
|
2920
2920
|
let r = n, i, a;
|
|
2921
2921
|
e[2] === r ? (i = e[3], a = e[4]) : (i = (e) => r ? M(os(r), e) : hs, a = () => ds(r), e[2] = r, e[3] = i, e[4] = a);
|
|
@@ -2943,7 +2943,7 @@ function vs(e) {
|
|
|
2943
2943
|
pending: n,
|
|
2944
2944
|
previous: fs(t, ds(ss(t)?.id))
|
|
2945
2945
|
}, t), () => {
|
|
2946
|
-
ss(us())?.id === n.id && E(os(n.id), !0, !1,
|
|
2946
|
+
ss(us())?.id === n.id && E(os(n.id), !0, !1, xe);
|
|
2947
2947
|
};
|
|
2948
2948
|
}
|
|
2949
2949
|
function ys(e) {
|
|
@@ -2966,10 +2966,10 @@ function ys(e) {
|
|
|
2966
2966
|
}
|
|
2967
2967
|
}
|
|
2968
2968
|
function bs() {
|
|
2969
|
-
return
|
|
2969
|
+
return L(es, null, cs)[0];
|
|
2970
2970
|
}
|
|
2971
2971
|
function xs() {
|
|
2972
|
-
return
|
|
2972
|
+
return F(es, null, cs);
|
|
2973
2973
|
}
|
|
2974
2974
|
function Ss(e) {
|
|
2975
2975
|
E(es, e ? j() : null, null, cs);
|
|
@@ -3074,7 +3074,7 @@ function Ts(e, t) {
|
|
|
3074
3074
|
};
|
|
3075
3075
|
}
|
|
3076
3076
|
// src/speech/browserVoiceInput.ts
|
|
3077
|
-
var Es =
|
|
3077
|
+
var Es = Le(Ya);
|
|
3078
3078
|
function Ds(e) {
|
|
3079
3079
|
return Ts(e, async (t) => {
|
|
3080
3080
|
let n = e.getTranscriptionOptions(), r = e.getStreamingEnabled(), a = async (t, { signal: r }) => {
|
|
@@ -3172,7 +3172,7 @@ var js = class {
|
|
|
3172
3172
|
cloudProvider: e.cloudProvider,
|
|
3173
3173
|
cloudModel: e.cloudModel,
|
|
3174
3174
|
hasAudioConsent: n,
|
|
3175
|
-
getStreamingEnabled: () => this.target?.readContext().clientSettings.speechStreaming ??
|
|
3175
|
+
getStreamingEnabled: () => this.target?.readContext().clientSettings.speechStreaming ?? Je.speechStreaming,
|
|
3176
3176
|
getTranscriptionOptions: () => {
|
|
3177
3177
|
let e = this.target?.readContext();
|
|
3178
3178
|
if (!e) throw Error(o(i("Voice input has no draft to record into.")));
|
|
@@ -3230,7 +3230,7 @@ var js = class {
|
|
|
3230
3230
|
releaseRecording: async () => a.cancelRecording(),
|
|
3231
3231
|
deleteRecording: a.deleteRecording,
|
|
3232
3232
|
postProcess: s,
|
|
3233
|
-
onPostProcessingError: () =>
|
|
3233
|
+
onPostProcessingError: () => Ft.add({
|
|
3234
3234
|
type: "warning",
|
|
3235
3235
|
title: o(i("Transcript cleanup failed")),
|
|
3236
3236
|
description: o(i("The original transcript was added."))
|
|
@@ -3415,34 +3415,34 @@ function Qs(e, t = !1) {
|
|
|
3415
3415
|
}), r;
|
|
3416
3416
|
}
|
|
3417
3417
|
function $s() {
|
|
3418
|
-
let e = Y(19), r =
|
|
3419
|
-
e[0] !== a || e[1] !== i ? (
|
|
3420
|
-
let g;
|
|
3421
|
-
e[3] === f ? g = e[4] : (g = f ? { cloudProvider: f } : {}, e[3] = f, e[4] = g);
|
|
3418
|
+
let e = Y(19), r = u(), i = jt(), a = ps(), o = a === "off" ? null : a, s = i && o ? o.destination.environmentId : null, c = At(s), l = Ee(n(s)), d = t(s, Ye), f = o?.destination.kind === "cloud" ? o.destination : void 0, p = f?.provider, m = f?.provider === "openrouter" ? f.model : void 0, h = c?.serverConfig?.environment.capabilities[p ? "cloudVoiceTranscription" : "voiceTranscription"] === !0, g;
|
|
3419
|
+
e[0] !== a || e[1] !== i ? (g = i && a === null ? { offerFirstRunSetup: !0 } : {}, e[0] = a, e[1] = i, e[2] = g) : g = e[2];
|
|
3422
3420
|
let _;
|
|
3423
|
-
e[
|
|
3424
|
-
let v
|
|
3425
|
-
e[
|
|
3426
|
-
|
|
3421
|
+
e[3] === p ? _ = e[4] : (_ = p ? { cloudProvider: p } : {}, e[3] = p, e[4] = _);
|
|
3422
|
+
let v;
|
|
3423
|
+
e[5] === m ? v = e[6] : (v = m ? { cloudModel: m } : {}, e[5] = m, e[6] = v);
|
|
3424
|
+
let y = o?.id ?? null, b;
|
|
3425
|
+
e[7] !== c || e[8] !== r || e[9] !== p ? (b = p && c ? r("{provider} via {environment}", {
|
|
3426
|
+
provider: re[p],
|
|
3427
3427
|
environment: c.label
|
|
3428
|
-
}) : c?.label ?? null, e[7] = c, e[8] = r, e[9] =
|
|
3429
|
-
let x =
|
|
3430
|
-
return e[11] !== s || e[12] !==
|
|
3431
|
-
...h,
|
|
3432
|
-
environmentId: s,
|
|
3428
|
+
}) : c?.label ?? null, e[7] = c, e[8] = r, e[9] = p, e[10] = b) : b = e[10];
|
|
3429
|
+
let x = h && d ? l : null, S;
|
|
3430
|
+
return e[11] !== s || e[12] !== g || e[13] !== _ || e[14] !== v || e[15] !== y || e[16] !== b || e[17] !== x ? (S = {
|
|
3433
3431
|
...g,
|
|
3432
|
+
environmentId: s,
|
|
3434
3433
|
..._,
|
|
3435
|
-
|
|
3434
|
+
...v,
|
|
3435
|
+
grantId: y,
|
|
3436
3436
|
label: b,
|
|
3437
3437
|
prepared: x
|
|
3438
|
-
}, e[11] = s, e[12] =
|
|
3438
|
+
}, e[11] = s, e[12] = g, e[13] = _, e[14] = v, e[15] = y, e[16] = b, e[17] = x, e[18] = S) : S = e[18], S;
|
|
3439
3439
|
}
|
|
3440
3440
|
function ec(e) {
|
|
3441
3441
|
let r = Y(135), a;
|
|
3442
3442
|
r[0] === Symbol.for("react.memo_cache_sentinel") ? (a = { warn: !1 }, r[0] = a) : a = r[0];
|
|
3443
|
-
let s = tn(a), c = $s(), l = c.prepared, u = c.grantId, d = c.cloudProvider, f = c.cloudModel, p =
|
|
3444
|
-
r[1] === _ ? v = r[2] : (v = (e) =>
|
|
3445
|
-
let y =
|
|
3443
|
+
let s = tn(a), c = $s(), l = c.prepared, u = c.grantId, d = c.cloudProvider, f = c.cloudModel, p = At(e.environmentId)?.serverConfig?.environment.capabilities, m = Ee(n(e.environmentId)), h = t(e.environmentId, "orchestration:operate") && (p?.voiceTranscription || p?.cloudVoiceTranscription) ? m : null, g = Mt(), _ = e.projectId ?? null, v;
|
|
3444
|
+
r[1] === _ ? v = r[2] : (v = (e) => tt(e, _).settings.speechProjectCustomWords, r[1] = _, r[2] = v);
|
|
3445
|
+
let y = Pt(e.environmentId, v), [b, x] = Qt(null), [S, C] = Qt(null), [w, T] = Qt(Xs), E;
|
|
3446
3446
|
r[3] !== u || r[4] !== l ? (E = {
|
|
3447
3447
|
prepared: l,
|
|
3448
3448
|
grantId: u
|
|
@@ -3452,49 +3452,49 @@ function ec(e) {
|
|
|
3452
3452
|
key: e.ownerKey,
|
|
3453
3453
|
disabled: e.disabled
|
|
3454
3454
|
}, r[6] = e.disabled, r[7] = e.ownerKey, r[8] = k) : k = r[8];
|
|
3455
|
-
let [
|
|
3455
|
+
let [A, j] = Qt(k);
|
|
3456
3456
|
(D.prepared !== l || D.grantId !== u) && (O({
|
|
3457
3457
|
prepared: l,
|
|
3458
3458
|
grantId: u
|
|
3459
|
-
}), T(Xs), C(null)), (
|
|
3459
|
+
}), T(Xs), C(null)), (A.key !== e.ownerKey || A.disabled !== e.disabled) && (j({
|
|
3460
3460
|
key: e.ownerKey,
|
|
3461
3461
|
disabled: e.disabled
|
|
3462
3462
|
}), C(null), T(Xs));
|
|
3463
|
-
let
|
|
3464
|
-
r[9] !== f || r[10] !== d || r[11] !== u || r[12] !== l ? (
|
|
3463
|
+
let M;
|
|
3464
|
+
r[9] !== f || r[10] !== d || r[11] !== u || r[12] !== l ? (M = {
|
|
3465
3465
|
prepared: l,
|
|
3466
3466
|
grantId: u,
|
|
3467
3467
|
cloudProvider: d,
|
|
3468
3468
|
cloudModel: f
|
|
3469
|
-
}, r[9] = f, r[10] = d, r[11] = u, r[12] = l, r[13] =
|
|
3470
|
-
let
|
|
3471
|
-
r[14] !==
|
|
3472
|
-
let
|
|
3473
|
-
r[17] !== h || r[18] !== g || r[19] !== e || r[20] !== y || r[21] !==
|
|
3469
|
+
}, r[9] = f, r[10] = d, r[11] = u, r[12] = l, r[13] = M) : M = r[13];
|
|
3470
|
+
let N = Rs(M), P = Vs(N), F = P.target?.ownerKey === e.ownerKey, I = Us(N, e.ownerKey), L = S === l && l ? Ys : F ? P.state : Os, ee;
|
|
3471
|
+
r[14] !== F || r[15] !== P.state ? (ee = !F && eo(P.state), r[14] = F, r[15] = P.state, r[16] = ee) : ee = r[16];
|
|
3472
|
+
let te = ee, R = J(0), z = J(null), B;
|
|
3473
|
+
r[17] !== h || r[18] !== g || r[19] !== e || r[20] !== y || r[21] !== N ? (B = {
|
|
3474
3474
|
input: e,
|
|
3475
3475
|
clientSettings: g,
|
|
3476
3476
|
cleanupPrepared: h,
|
|
3477
3477
|
projectWords: y,
|
|
3478
|
-
session:
|
|
3479
|
-
}, r[17] = h, r[18] = g, r[19] = e, r[20] = y, r[21] =
|
|
3480
|
-
let
|
|
3481
|
-
r[23] !== h || r[24] !== g || r[25] !== e || r[26] !== y || r[27] !==
|
|
3482
|
-
|
|
3478
|
+
session: N
|
|
3479
|
+
}, r[17] = h, r[18] = g, r[19] = e, r[20] = y, r[21] = N, r[22] = B) : B = r[22];
|
|
3480
|
+
let V = J(B), H;
|
|
3481
|
+
r[23] !== h || r[24] !== g || r[25] !== e || r[26] !== y || r[27] !== N ? (H = () => {
|
|
3482
|
+
V.current = {
|
|
3483
3483
|
input: e,
|
|
3484
3484
|
clientSettings: g,
|
|
3485
3485
|
cleanupPrepared: h,
|
|
3486
3486
|
projectWords: y,
|
|
3487
|
-
session:
|
|
3487
|
+
session: N
|
|
3488
3488
|
};
|
|
3489
|
-
}, r[23] = h, r[24] = g, r[25] = e, r[26] = y, r[27] =
|
|
3490
|
-
let
|
|
3491
|
-
r[29] ===
|
|
3492
|
-
|
|
3493
|
-
}),
|
|
3494
|
-
let
|
|
3495
|
-
r[32] !== e.ownerKey || r[33] !== e.presented ? (
|
|
3496
|
-
let
|
|
3497
|
-
r[36] !== d || r[37] !== l ? (
|
|
3489
|
+
}, r[23] = h, r[24] = g, r[25] = e, r[26] = y, r[27] = N, r[28] = H) : H = r[28], Zt(H);
|
|
3490
|
+
let ne = J(!1), U, re;
|
|
3491
|
+
r[29] === N ? (U = r[30], re = r[31]) : (U = () => (ne.current = !0, () => {
|
|
3492
|
+
ne.current = !1, z.current = null, R.current += 1, N?.ownerChanged(V.current.input.ownerKey);
|
|
3493
|
+
}), re = [N], r[29] = N, r[30] = U, r[31] = re), q(U, re);
|
|
3494
|
+
let ie, ae;
|
|
3495
|
+
r[32] !== e.ownerKey || r[33] !== e.presented ? (ie = () => e.presented === !1 ? void 0 : Ks(e.ownerKey), ae = [e.ownerKey, e.presented], r[32] = e.ownerKey, r[33] = e.presented, r[34] = ie, r[35] = ae) : (ie = r[34], ae = r[35]), q(ie, ae);
|
|
3496
|
+
let oe, se;
|
|
3497
|
+
r[36] !== d || r[37] !== l ? (oe = () => {
|
|
3498
3498
|
if (!l || d) return;
|
|
3499
3499
|
let e = !1;
|
|
3500
3500
|
return Qs(l).then((t) => {
|
|
@@ -3510,14 +3510,14 @@ function ec(e) {
|
|
|
3510
3510
|
}), () => {
|
|
3511
3511
|
e = !0;
|
|
3512
3512
|
};
|
|
3513
|
-
},
|
|
3514
|
-
let
|
|
3515
|
-
r[40] !== l || r[41] !== w.downloading || r[42] !== w.open || r[43] !==
|
|
3516
|
-
if (!w.open || !w.downloading || !l || !
|
|
3513
|
+
}, se = [l, d], r[36] = d, r[37] = l, r[38] = oe, r[39] = se) : (oe = r[38], se = r[39]), q(oe, se);
|
|
3514
|
+
let W = !d && b?.prepared === l ? b.value : null, G = w.model?.id, ce, le;
|
|
3515
|
+
r[40] !== l || r[41] !== w.downloading || r[42] !== w.open || r[43] !== G ? (ce = () => {
|
|
3516
|
+
if (!w.open || !w.downloading || !l || !G) return;
|
|
3517
3517
|
let e = !1, t = !1, n = window.setInterval(() => {
|
|
3518
3518
|
t || (t = !0, $(Eo(l)).then((t) => {
|
|
3519
3519
|
if (e) return;
|
|
3520
|
-
let n = t.models.find((e) => e.id ===
|
|
3520
|
+
let n = t.models.find((e) => e.id === G) ?? null;
|
|
3521
3521
|
n && T((e) => ({
|
|
3522
3522
|
...e,
|
|
3523
3523
|
model: {
|
|
@@ -3532,43 +3532,43 @@ function ec(e) {
|
|
|
3532
3532
|
return () => {
|
|
3533
3533
|
e = !0, window.clearInterval(n);
|
|
3534
3534
|
};
|
|
3535
|
-
},
|
|
3535
|
+
}, le = [
|
|
3536
3536
|
l,
|
|
3537
3537
|
w.downloading,
|
|
3538
3538
|
w.open,
|
|
3539
|
-
|
|
3540
|
-
], r[40] = l, r[41] = w.downloading, r[42] = w.open, r[43] =
|
|
3541
|
-
let
|
|
3542
|
-
r[46] !== e.disabled || r[47] !== e.ownerKey || r[48] !==
|
|
3543
|
-
let t =
|
|
3544
|
-
(t !== e.ownerKey || e.disabled) && (
|
|
3545
|
-
},
|
|
3539
|
+
G
|
|
3540
|
+
], r[40] = l, r[41] = w.downloading, r[42] = w.open, r[43] = G, r[44] = ce, r[45] = le) : (ce = r[44], le = r[45]), q(ce, le);
|
|
3541
|
+
let ue = J(e.ownerKey), de, fe;
|
|
3542
|
+
r[46] !== e.disabled || r[47] !== e.ownerKey || r[48] !== N ? (de = () => {
|
|
3543
|
+
let t = ue.current;
|
|
3544
|
+
(t !== e.ownerKey || e.disabled) && (ue.current = e.ownerKey, z.current = null, R.current += 1, t === e.ownerKey ? N?.ownerKey === e.ownerKey && N.cancel() : N?.ownerChanged(t));
|
|
3545
|
+
}, fe = [
|
|
3546
3546
|
e.ownerKey,
|
|
3547
3547
|
e.disabled,
|
|
3548
|
-
|
|
3549
|
-
], r[46] = e.disabled, r[47] = e.ownerKey, r[48] =
|
|
3548
|
+
N
|
|
3549
|
+
], r[46] = e.disabled, r[47] = e.ownerKey, r[48] = N, r[49] = de, r[50] = fe) : (de = r[49], fe = r[50]), q(de, fe);
|
|
3550
|
+
let pe;
|
|
3551
|
+
r[51] !== e.disabled || r[52] !== e.ownerKey || r[53] !== L.phase ? (pe = () => {
|
|
3552
|
+
let t = z.current;
|
|
3553
|
+
L.phase === "error" && (z.current = null), L.phase === "idle" && t && (z.current = null, !e.disabled && t.ownerKey === e.ownerKey && t.text !== void 0 && t.submit(t.text));
|
|
3554
|
+
}, r[51] = e.disabled, r[52] = e.ownerKey, r[53] = L.phase, r[54] = pe) : pe = r[54];
|
|
3550
3555
|
let me;
|
|
3551
|
-
r[
|
|
3552
|
-
|
|
3553
|
-
P.phase === "error" && (L.current = null), P.phase === "idle" && t && (L.current = null, !e.disabled && t.ownerKey === e.ownerKey && t.text !== void 0 && t.submit(t.text));
|
|
3554
|
-
}, r[51] = e.disabled, r[52] = e.ownerKey, r[53] = P.phase, r[54] = me) : me = r[54];
|
|
3555
|
-
let he;
|
|
3556
|
-
r[55] !== e.disabled || r[56] !== e.ownerKey || r[57] !== P ? (he = [
|
|
3557
|
-
P,
|
|
3556
|
+
r[55] !== e.disabled || r[56] !== e.ownerKey || r[57] !== L ? (me = [
|
|
3557
|
+
L,
|
|
3558
3558
|
e.ownerKey,
|
|
3559
3559
|
e.disabled
|
|
3560
|
-
], r[55] = e.disabled, r[56] = e.ownerKey, r[57] =
|
|
3561
|
-
let
|
|
3562
|
-
r[59] !==
|
|
3563
|
-
|
|
3564
|
-
ownerKey:
|
|
3560
|
+
], r[55] = e.disabled, r[56] = e.ownerKey, r[57] = L, r[58] = me) : me = r[58], q(pe, me);
|
|
3561
|
+
let he;
|
|
3562
|
+
r[59] !== N || r[60] !== L ? (he = (e) => {
|
|
3563
|
+
V.current.input.disabled || L.phase === "preparing" || (!N || !eo(L) ? e(V.current.input.readDraft().text) : z.current || (z.current = {
|
|
3564
|
+
ownerKey: V.current.input.ownerKey,
|
|
3565
3565
|
submit: e
|
|
3566
|
-
},
|
|
3567
|
-
}, r[59] =
|
|
3568
|
-
let
|
|
3569
|
-
r[62] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
3570
|
-
let e =
|
|
3571
|
-
let e =
|
|
3566
|
+
}, N.state.phase === "recording" && N.stop()));
|
|
3567
|
+
}, r[59] = N, r[60] = L, r[61] = he) : he = r[61];
|
|
3568
|
+
let ge = It(he), _e;
|
|
3569
|
+
r[62] === Symbol.for("react.memo_cache_sentinel") ? (_e = () => {
|
|
3570
|
+
let e = V.current.input.ownerKey, t = () => {
|
|
3571
|
+
let e = V.current;
|
|
3572
3572
|
return {
|
|
3573
3573
|
environmentId: e.input.environmentId,
|
|
3574
3574
|
projectName: e.input.projectName ?? null,
|
|
@@ -3577,14 +3577,14 @@ function ec(e) {
|
|
|
3577
3577
|
cleanup: e.input.cleanup !== !1,
|
|
3578
3578
|
cleanupPrepared: e.cleanupPrepared
|
|
3579
3579
|
};
|
|
3580
|
-
}, n = t(), r =
|
|
3580
|
+
}, n = t(), r = V.current.input.persistentDraft ?? null, i = () => ne.current && V.current.input.ownerKey === e;
|
|
3581
3581
|
return {
|
|
3582
3582
|
ownerKey: e,
|
|
3583
|
-
label:
|
|
3583
|
+
label: V.current.input.label ?? null,
|
|
3584
3584
|
persistent: r !== null,
|
|
3585
3585
|
open: r?.open ?? null,
|
|
3586
3586
|
readDraft: () => {
|
|
3587
|
-
if (i()) return
|
|
3587
|
+
if (i()) return V.current.input.readDraft();
|
|
3588
3588
|
let e = r?.readStoredText();
|
|
3589
3589
|
return e == null ? null : {
|
|
3590
3590
|
text: e,
|
|
@@ -3595,30 +3595,30 @@ function ec(e) {
|
|
|
3595
3595
|
};
|
|
3596
3596
|
},
|
|
3597
3597
|
commitDraft: (t, n) => {
|
|
3598
|
-
i() ?
|
|
3598
|
+
i() ? V.current.input.disabled || (V.current.input.commitDraft(t, n), z.current?.ownerKey === e && (z.current.text = t)) : r?.commitStoredText(t);
|
|
3599
3599
|
},
|
|
3600
3600
|
readContext: () => i() ? t() : n
|
|
3601
3601
|
};
|
|
3602
|
-
}, r[62] =
|
|
3603
|
-
let
|
|
3604
|
-
r[63] !==
|
|
3605
|
-
|
|
3606
|
-
},
|
|
3607
|
-
|
|
3602
|
+
}, r[62] = _e) : _e = r[62];
|
|
3603
|
+
let ve = It(_e), ye, be;
|
|
3604
|
+
r[63] !== ve || r[64] !== e.ownerKey || r[65] !== N ? (ye = () => {
|
|
3605
|
+
N?.ownerKey === e.ownerKey && eo(N.state) && N.adopt(ve());
|
|
3606
|
+
}, be = [
|
|
3607
|
+
N,
|
|
3608
3608
|
e.ownerKey,
|
|
3609
|
-
|
|
3610
|
-
], r[63] =
|
|
3611
|
-
let
|
|
3612
|
-
r[68] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
3609
|
+
ve
|
|
3610
|
+
], r[63] = ve, r[64] = e.ownerKey, r[65] = N, r[66] = ye, r[67] = be) : (ye = r[66], be = r[67]), q(ye, be);
|
|
3611
|
+
let xe;
|
|
3612
|
+
r[68] === Symbol.for("react.memo_cache_sentinel") ? (xe = async (e, t, n, r) => {
|
|
3613
3613
|
T({
|
|
3614
3614
|
...Xs,
|
|
3615
3615
|
open: !0
|
|
3616
3616
|
});
|
|
3617
3617
|
let a = await $(Eo(e, !0)).catch(oc);
|
|
3618
|
-
if (r !==
|
|
3618
|
+
if (r !== R.current) return;
|
|
3619
3619
|
let s = Da(a?.models ?? [], {
|
|
3620
3620
|
selectedModelId: t,
|
|
3621
|
-
intent:
|
|
3621
|
+
intent: V.current.clientSettings.speechLanguage,
|
|
3622
3622
|
preferred: Zo(),
|
|
3623
3623
|
benchmarkTier: n
|
|
3624
3624
|
});
|
|
@@ -3632,24 +3632,24 @@ function ec(e) {
|
|
|
3632
3632
|
catalogFailed: a === null,
|
|
3633
3633
|
error: s ? null : o(i(a ? "No model matches your language. Choose a model or change the language in Voice settings." : "Could not load transcription models. Check the connection and try again."))
|
|
3634
3634
|
}));
|
|
3635
|
-
}, r[68] =
|
|
3636
|
-
let
|
|
3637
|
-
r[69] !==
|
|
3638
|
-
if (
|
|
3635
|
+
}, r[68] = xe) : xe = r[68];
|
|
3636
|
+
let Se = It(xe), Ce;
|
|
3637
|
+
r[69] !== te || r[70] !== d || r[71] !== ve || r[72] !== c.offerFirstRunSetup || r[73] !== u || r[74] !== Se || r[75] !== l || r[76] !== s || r[77] !== N || r[78] !== w.downloading || r[79] !== w.open ? (Ce = async () => {
|
|
3638
|
+
if (V.current.input.disabled || w.open && w.downloading) return;
|
|
3639
3639
|
if (!u) {
|
|
3640
|
-
c.offerFirstRunSetup &&
|
|
3640
|
+
c.offerFirstRunSetup && V.current.input.offerSetup !== !1 && (s ? await s.navigate({
|
|
3641
3641
|
to: "/settings/voice",
|
|
3642
3642
|
hash: "voice-transcription-destination"
|
|
3643
3643
|
}) : typeof window < "u" && window.location.assign("/settings/voice#voice-transcription-destination"));
|
|
3644
3644
|
return;
|
|
3645
3645
|
}
|
|
3646
|
-
let e =
|
|
3647
|
-
if (!
|
|
3646
|
+
let e = R.current += 1, t = V.current.input.ownerKey;
|
|
3647
|
+
if (!N || !l || te) return;
|
|
3648
3648
|
if (d) {
|
|
3649
|
-
await
|
|
3649
|
+
await N.start(ve());
|
|
3650
3650
|
return;
|
|
3651
3651
|
}
|
|
3652
|
-
let n = () => e ===
|
|
3652
|
+
let n = () => e === R.current && V.current.session === N && V.current.input.ownerKey === t && !V.current.input.disabled;
|
|
3653
3653
|
T(Xs), C(l);
|
|
3654
3654
|
let r;
|
|
3655
3655
|
try {
|
|
@@ -3657,7 +3657,7 @@ function ec(e) {
|
|
|
3657
3657
|
} catch (e) {
|
|
3658
3658
|
let t = e;
|
|
3659
3659
|
if (!n()) return;
|
|
3660
|
-
C(null),
|
|
3660
|
+
C(null), Ft.add({
|
|
3661
3661
|
type: "error",
|
|
3662
3662
|
title: o(i("Could not start voice input")),
|
|
3663
3663
|
description: t instanceof Error ? t.message : String(t)
|
|
@@ -3668,36 +3668,36 @@ function ec(e) {
|
|
|
3668
3668
|
if (x({
|
|
3669
3669
|
prepared: l,
|
|
3670
3670
|
value: r
|
|
3671
|
-
}), C(null), r.supported && r.state === "missing-model") return
|
|
3672
|
-
r.supported ? await
|
|
3671
|
+
}), C(null), r.supported && r.state === "missing-model") return Se(l, r.modelId, r.benchmarkTier, e);
|
|
3672
|
+
r.supported ? await N.start(ve()) : Ft.add({
|
|
3673
3673
|
type: "error",
|
|
3674
3674
|
title: o(i("Voice input is not available")),
|
|
3675
3675
|
description: r.reason
|
|
3676
3676
|
});
|
|
3677
3677
|
}
|
|
3678
|
-
}, r[69] =
|
|
3679
|
-
let
|
|
3680
|
-
r[81] !==
|
|
3681
|
-
if (!l || !
|
|
3682
|
-
let e =
|
|
3678
|
+
}, r[69] = te, r[70] = d, r[71] = ve, r[72] = c.offerFirstRunSetup, r[73] = u, r[74] = Se, r[75] = l, r[76] = s, r[77] = N, r[78] = w.downloading, r[79] = w.open, r[80] = Ce) : Ce = r[80];
|
|
3679
|
+
let we = It(Ce), Te;
|
|
3680
|
+
r[81] !== W || r[82] !== l || r[83] !== w.downloading || r[84] !== G ? (Te = async () => {
|
|
3681
|
+
if (!l || !W?.supported || !G || w.downloading) return;
|
|
3682
|
+
let e = G, t = R.current += 1;
|
|
3683
3683
|
T(ac);
|
|
3684
3684
|
try {
|
|
3685
3685
|
let { models: n } = await $(Do(l, e));
|
|
3686
|
-
if (t !==
|
|
3686
|
+
if (t !== R.current) return;
|
|
3687
3687
|
let r = n.some((t) => {
|
|
3688
3688
|
let { id: n, state: r } = t;
|
|
3689
3689
|
return n === e && r === "installed";
|
|
3690
3690
|
});
|
|
3691
|
-
if (r && e !==
|
|
3691
|
+
if (r && e !== W.modelId) try {
|
|
3692
3692
|
await $(Oo(l, e));
|
|
3693
3693
|
} catch {
|
|
3694
|
-
if (t !==
|
|
3694
|
+
if (t !== R.current) return;
|
|
3695
3695
|
T(ic);
|
|
3696
3696
|
return;
|
|
3697
3697
|
}
|
|
3698
|
-
if (t !==
|
|
3698
|
+
if (t !== R.current) return;
|
|
3699
3699
|
let a = await Qs(l, !0);
|
|
3700
|
-
if (t !==
|
|
3700
|
+
if (t !== R.current) return;
|
|
3701
3701
|
x({
|
|
3702
3702
|
prepared: l,
|
|
3703
3703
|
value: a
|
|
@@ -3710,16 +3710,16 @@ function ec(e) {
|
|
|
3710
3710
|
error: s ? null : o(i("The model is not ready. Try downloading it again."))
|
|
3711
3711
|
}));
|
|
3712
3712
|
} catch {
|
|
3713
|
-
if (t !==
|
|
3713
|
+
if (t !== R.current) return;
|
|
3714
3714
|
T(rc);
|
|
3715
3715
|
}
|
|
3716
|
-
}, r[81] =
|
|
3717
|
-
let
|
|
3718
|
-
r[86] !== l || r[87] !==
|
|
3719
|
-
if (l &&
|
|
3720
|
-
|
|
3716
|
+
}, r[81] = W, r[82] = l, r[83] = w.downloading, r[84] = G, r[85] = Te) : Te = r[85];
|
|
3717
|
+
let De = It(Te), Oe;
|
|
3718
|
+
r[86] !== l || r[87] !== G ? (Oe = async () => {
|
|
3719
|
+
if (l && G) {
|
|
3720
|
+
R.current += 1, T(nc);
|
|
3721
3721
|
try {
|
|
3722
|
-
await $(ko(l,
|
|
3722
|
+
await $(ko(l, G));
|
|
3723
3723
|
} catch (e) {
|
|
3724
3724
|
let t = e;
|
|
3725
3725
|
T((e) => ({
|
|
@@ -3728,61 +3728,61 @@ function ec(e) {
|
|
|
3728
3728
|
}));
|
|
3729
3729
|
}
|
|
3730
3730
|
}
|
|
3731
|
-
}, r[86] = l, r[87] =
|
|
3732
|
-
let
|
|
3733
|
-
r[89] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
3731
|
+
}, r[86] = l, r[87] = G, r[88] = Oe) : Oe = r[88];
|
|
3732
|
+
let ke = It(Oe), Ae = (u === null ? !!c.offerFirstRunSetup && e.offerSetup !== !1 : l !== null && (d !== void 0 || b?.prepared === l && b.value?.supported !== !1)) && !te && typeof navigator < "u" && !!navigator.mediaDevices?.getUserMedia && typeof AudioWorkletNode < "u", je = c.environmentId, Me = c.label, Ne;
|
|
3733
|
+
r[89] === Symbol.for("react.memo_cache_sentinel") ? (Ne = (e) => T((t) => ({
|
|
3734
3734
|
...t,
|
|
3735
3735
|
open: e
|
|
3736
|
-
})), r[89] =
|
|
3736
|
+
})), r[89] = Ne) : Ne = r[89];
|
|
3737
|
+
let Pe;
|
|
3738
|
+
r[90] !== W || r[91] !== Se || r[92] !== l || r[93] !== w.catalogFailed || r[94] !== w.open ? (Pe = w.open && w.catalogFailed && l && W?.supported ? () => Se(l, W.modelId, W.benchmarkTier, R.current += 1) : null, r[90] = W, r[91] = Se, r[92] = l, r[93] = w.catalogFailed, r[94] = w.open, r[95] = Pe) : Pe = r[95];
|
|
3737
3739
|
let Fe;
|
|
3738
|
-
r[
|
|
3740
|
+
r[96] === we ? Fe = r[97] : (Fe = async () => {
|
|
3741
|
+
T(tc), await we();
|
|
3742
|
+
}, r[96] = we, r[97] = Fe);
|
|
3739
3743
|
let Ie;
|
|
3740
|
-
r[
|
|
3741
|
-
T(tc), await Te();
|
|
3742
|
-
}, r[96] = Te, r[97] = Ie);
|
|
3743
|
-
let Le;
|
|
3744
|
-
r[98] !== Ae || r[99] !== Oe || r[100] !== w || r[101] !== Fe || r[102] !== Ie ? (Le = {
|
|
3744
|
+
r[98] !== ke || r[99] !== De || r[100] !== w || r[101] !== Pe || r[102] !== Fe ? (Ie = {
|
|
3745
3745
|
...w,
|
|
3746
|
-
setOpen:
|
|
3747
|
-
retryCatalog:
|
|
3748
|
-
download:
|
|
3749
|
-
cancelDownload:
|
|
3750
|
-
startRecording:
|
|
3751
|
-
}, r[98] =
|
|
3752
|
-
let
|
|
3753
|
-
r[104] ===
|
|
3746
|
+
setOpen: Ne,
|
|
3747
|
+
retryCatalog: Pe,
|
|
3748
|
+
download: De,
|
|
3749
|
+
cancelDownload: ke,
|
|
3750
|
+
startRecording: Fe
|
|
3751
|
+
}, r[98] = ke, r[99] = De, r[100] = w, r[101] = Pe, r[102] = Fe, r[103] = Ie) : Ie = r[103];
|
|
3752
|
+
let Le = L.phase === "recording" || L.phase === "transcribing" ? I.preview : null, Re = I.level, ze = F ? P.recordingStartedAt : null, Be = L.phase === "preparing", Ve;
|
|
3753
|
+
r[104] === L ? Ve = r[105] : (Ve = eo(L), r[104] = L, r[105] = Ve);
|
|
3754
|
+
let He;
|
|
3755
|
+
r[106] === L ? He = r[107] : (He = eo(L), r[106] = L, r[107] = He);
|
|
3754
3756
|
let Ue;
|
|
3755
|
-
r[
|
|
3756
|
-
let We;
|
|
3757
|
-
r[
|
|
3758
|
-
|
|
3759
|
-
r[111]
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
r[114]
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
skipPostProcessing: Ye
|
|
3785
|
-
}, r[117] = ne.level, r[118] = U, r[119] = c.environmentId, r[120] = c.label, r[121] = Te, r[122] = P, r[123] = _e, r[124] = je, r[125] = Le, r[126] = Re, r[127] = Be, r[128] = Ve, r[129] = He, r[130] = Ue, r[131] = Ge, r[132] = qe, r[133] = Ye, r[134] = Xe) : Xe = r[134], Xe;
|
|
3757
|
+
r[108] !== F || r[109] !== N ? (Ue = () => F && N ? N.stop() : Promise.resolve(), r[108] = F, r[109] = N, r[110] = Ue) : Ue = r[110];
|
|
3758
|
+
let We = It(Ue), Ge;
|
|
3759
|
+
r[111] !== F || r[112] !== N ? (Ge = () => {
|
|
3760
|
+
z.current = null, R.current += 1, C(null), T(Xs), F && N?.cancel();
|
|
3761
|
+
}, r[111] = F, r[112] = N, r[113] = Ge) : Ge = r[113];
|
|
3762
|
+
let Ke = It(Ge), qe;
|
|
3763
|
+
r[114] !== F || r[115] !== N ? (qe = () => {
|
|
3764
|
+
F && N?.skipPostProcessing();
|
|
3765
|
+
}, r[114] = F, r[115] = N, r[116] = qe) : qe = r[116];
|
|
3766
|
+
let Je = It(qe), Ye;
|
|
3767
|
+
return r[117] !== I.level || r[118] !== W || r[119] !== c.environmentId || r[120] !== c.label || r[121] !== we || r[122] !== L || r[123] !== ge || r[124] !== Ae || r[125] !== Ie || r[126] !== Le || r[127] !== ze || r[128] !== Be || r[129] !== Ve || r[130] !== He || r[131] !== We || r[132] !== Ke || r[133] !== Je ? (Ye = {
|
|
3768
|
+
available: Ae,
|
|
3769
|
+
status: W,
|
|
3770
|
+
transcriptionEnvironmentId: je,
|
|
3771
|
+
transcriptionEnvironmentLabel: Me,
|
|
3772
|
+
setup: Ie,
|
|
3773
|
+
state: L,
|
|
3774
|
+
preview: Le,
|
|
3775
|
+
level: Re,
|
|
3776
|
+
recordingStartedAt: ze,
|
|
3777
|
+
preparing: Be,
|
|
3778
|
+
blocksSubmission: Ve,
|
|
3779
|
+
freezesEditor: He,
|
|
3780
|
+
start: we,
|
|
3781
|
+
submitAfterDictation: ge,
|
|
3782
|
+
stop: We,
|
|
3783
|
+
cancel: Ke,
|
|
3784
|
+
skipPostProcessing: Je
|
|
3785
|
+
}, r[117] = I.level, r[118] = W, r[119] = c.environmentId, r[120] = c.label, r[121] = we, r[122] = L, r[123] = ge, r[124] = Ae, r[125] = Ie, r[126] = Le, r[127] = ze, r[128] = Be, r[129] = Ve, r[130] = He, r[131] = We, r[132] = Ke, r[133] = Je, r[134] = Ye) : Ye = r[134], Ye;
|
|
3786
3786
|
}
|
|
3787
3787
|
function tc(e) {
|
|
3788
3788
|
return {
|