@8wave/ai-elements 0.121.0-beta.53 → 0.121.0-beta.55
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/_chunks/{PkStreamingMarkdown-CR-xBRG2.js → PkStreamingMarkdown-Bev81_Lp.js} +7 -4
- package/dist/_chunks/PkStreamingMarkdown-Bev81_Lp.js.map +1 -0
- package/dist/_chunks/{PkToolEditedFile-DAMPjKIn.js → PkToolChatFile-a37ez2k5.js} +17 -17
- package/dist/_chunks/PkToolChatFile-a37ez2k5.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-B1J7a3o0.js → PkToolShowArtifact-CecXXZSh.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-B1J7a3o0.js.map → PkToolShowArtifact-CecXXZSh.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-DcNMM-j0.js → PkToolShowContactForm-3BGkXgD9.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-DcNMM-j0.js.map → PkToolShowContactForm-3BGkXgD9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CRa9HLZo.js → PkToolShowForm-BXOmY4ce.js} +2 -2
- package/dist/_chunks/{PkToolShowForm-CRa9HLZo.js.map → PkToolShowForm-BXOmY4ce.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-LQ0DMKM1.js → PkToolShowSources-Cv8UguNA.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-LQ0DMKM1.js.map → PkToolShowSources-Cv8UguNA.js.map} +1 -1
- package/dist/ai-elements.es.js +33 -11
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-DKBnpYB0.js → PkChatbot-BFAcqm6m.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-DKBnpYB0.js.map → PkChatbot-BFAcqm6m.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-CFCbJSjm.js → PkChatbotEmptyState-fADhr37n.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CFCbJSjm.js.map → PkChatbotEmptyState-fADhr37n.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-fte_uZHV.js → PkChatbotInput-CUOcwWDz.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-fte_uZHV.js.map → PkChatbotInput-CUOcwWDz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BVzOnfjU.js → PkChatbotMessages-CcTQozaF.js} +14 -14
- package/dist-vue/_chunks/{PkChatbotMessages-BVzOnfjU.js.map → PkChatbotMessages-CcTQozaF.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-CgwZs9AM.js → PkChatbotStepPayload-CQD8lb4l.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-CgwZs9AM.js.map → PkChatbotStepPayload-CQD8lb4l.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BOylJhFM.js → PkChatbotStepToolDetail-Bj1ZBPMz.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BOylJhFM.js.map → PkChatbotStepToolDetail-Bj1ZBPMz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-Cmi5TBZM.js → PkChatbotSteps-DhIEYst5.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-Cmi5TBZM.js.map → PkChatbotSteps-DhIEYst5.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DuHSW8TF.js → PkChatbotViewChat-CW4SxAtr.js} +256 -246
- package/dist-vue/_chunks/PkChatbotViewChat-CW4SxAtr.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-Bf9oJIdi.js → PkChatbotViewConversations-BXxXUgso.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-Bf9oJIdi.js.map → PkChatbotViewConversations-BXxXUgso.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-B6R1ixAl.js → PkChatbotViewFiles-i_OUsdlU.js} +3 -3
- package/dist-vue/_chunks/PkChatbotViewFiles-i_OUsdlU.js.map +1 -0
- package/dist-vue/_chunks/{PkStreamingMarkdown-BrBeaJes.js → PkStreamingMarkdown-qZLlI83D.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-BrBeaJes.js.map → PkStreamingMarkdown-qZLlI83D.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditedFile-BKyMjgs0.js → PkToolChatFile-DPkLqqDt.js} +17 -17
- package/dist-vue/_chunks/PkToolChatFile-DPkLqqDt.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-BvvVHrP-.js → PkToolShowArtifact-BDZjRnfs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BvvVHrP-.js.map → PkToolShowArtifact-BDZjRnfs.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-Dz_IiYr1.js → PkToolShowContactForm-CcIF7fNS.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-Dz_IiYr1.js.map → PkToolShowContactForm-CcIF7fNS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-DCSfCzrN.js → PkToolShowDiagram-CD70YQgq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-DCSfCzrN.js.map → PkToolShowDiagram-CD70YQgq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-qMBAEKxf.js → PkToolShowForm-edPn56Ka.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowForm-qMBAEKxf.js.map → PkToolShowForm-edPn56Ka.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DWwUnIDq.js → PkToolShowImageGallery-82BzTTbf.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DWwUnIDq.js.map → PkToolShowImageGallery-82BzTTbf.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-DreWhhfK.js → PkToolShowProductList-CKPDiMkx.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-DreWhhfK.js.map → PkToolShowProductList-CKPDiMkx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DR-uaXeX.js → PkToolShowSources-CHH2vKVG.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-DR-uaXeX.js.map → PkToolShowSources-CHH2vKVG.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-Xogv8wVt.js → PkToolShowVideo-C5TKoW1f.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-Xogv8wVt.js.map → PkToolShowVideo-C5TKoW1f.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BHTyFyDI.js → PkToolShowWebPages-CuwLXH1I.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BHTyFyDI.js.map → PkToolShowWebPages-CuwLXH1I.js.map} +1 -1
- package/dist-vue/_chunks/createChatbotApiClient-B3U31J_K.js.map +1 -1
- package/dist-vue/_chunks/{utils-Df_SeBdX.js → utils-C8jnMPj0.js} +7 -4
- package/dist-vue/_chunks/utils-C8jnMPj0.js.map +1 -0
- package/dist-vue/composables.js +15 -3
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +519 -478
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +70 -10
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +13 -2
- package/dist-vue/packages/components/src/chat/{PkToolEditedFile.d.ts → PkToolChatFile.d.ts} +5 -4
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -0
- package/dist-vue/packages/composable/src/useFileRow.d.ts +5 -3
- package/package.json +1 -1
- package/dist/_chunks/PkStreamingMarkdown-CR-xBRG2.js.map +0 -1
- package/dist/_chunks/PkToolEditedFile-DAMPjKIn.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-DuHSW8TF.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewFiles-B6R1ixAl.js.map +0 -1
- package/dist-vue/_chunks/PkToolEditedFile-BKyMjgs0.js.map +0 -1
- package/dist-vue/_chunks/utils-Df_SeBdX.js.map +0 -1
package/dist-vue/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./_chunks/rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-
|
|
2
|
+
import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-edPn56Ka.js";
|
|
3
3
|
import { E as i, S as a, T as o, _ as s, f as c, m as l, o as u, r as d, s as f, u as p, v as m, w as h, x as g, y as _ } from "./_chunks/schemas-BO5QlXAp.js";
|
|
4
|
-
import { t as v } from "./_chunks/PkChatbotMessages-
|
|
4
|
+
import { t as v } from "./_chunks/PkChatbotMessages-CcTQozaF.js";
|
|
5
5
|
import { a as y, i as ee, l as b, n as x, r as S } from "./_chunks/Media-DylqhvaF.js";
|
|
6
6
|
import { C, F as te, G as w, I as ne, J as re, K as ie, L as ae, M as oe, N as se, P as ce, R as le, S as ue, T as de, V as fe, W as pe, Y as me, _ as he, a as ge, at as _e, b as ve, ct as ye, d as be, dt as xe, f as Se, i as Ce, it as we, j as Te, nt as Ee, ot as De, p as Oe, q as ke, r as T, rt as Ae, s as je, st as Me, t as Ne, tt as Pe, w as Fe, y as Ie } from "./_chunks/Agent-B-jQOrER.js";
|
|
7
7
|
import { c as Le, d as Re, l as ze, r as Be, s as Ve, t as He, u as Ue } from "./_chunks/Document-DQtliJu6.js";
|
|
8
8
|
import { a as We, i as Ge, n as Ke } from "./_chunks/createChatbotApiClient-B3U31J_K.js";
|
|
9
9
|
import { t as qe } from "./_chunks/PkChatbotAuth-Btxg3TF0.js";
|
|
10
10
|
import { t as Je } from "./_chunks/VvButtonLocalized-C-vx25u4.js";
|
|
11
|
-
import { n as Ye, t as Xe } from "./_chunks/PkStreamingMarkdown-
|
|
11
|
+
import { n as Ye, t as Xe } from "./_chunks/PkStreamingMarkdown-qZLlI83D.js";
|
|
12
12
|
import { a as Ze, i as Qe, n as $e, r as et } from "./_chunks/useChatbotStore-D2L4m3iJ.js";
|
|
13
13
|
import "./_chunks/src-B-ZKEhTU.js";
|
|
14
14
|
import { a as tt, l as nt, u as rt } from "./_chunks/message-DuibQyHy.js";
|
|
15
|
-
import { A as it, D as at, F as ot, I as st, N as ct, P as lt, f as ut, g as dt, m as ft, w as pt } from "./_chunks/utils-
|
|
15
|
+
import { A as it, D as at, F as ot, I as st, N as ct, P as lt, f as ut, g as dt, m as ft, w as pt } from "./_chunks/utils-C8jnMPj0.js";
|
|
16
16
|
import { t as mt } from "./_chunks/useSafeLocalStorage-a2eHEqAi.js";
|
|
17
17
|
import { t as ht } from "./_chunks/useDialogConfirm-CyD9VTKg.js";
|
|
18
|
-
import { n as gt, r as _t, t as vt } from "./_chunks/PkChatbotViewConversations-
|
|
19
|
-
import { i as yt, n as bt, r as xt, t as St } from "./_chunks/PkChatbotViewChat-
|
|
18
|
+
import { n as gt, r as _t, t as vt } from "./_chunks/PkChatbotViewConversations-BXxXUgso.js";
|
|
19
|
+
import { i as yt, n as bt, r as xt, t as St } from "./_chunks/PkChatbotViewChat-CW4SxAtr.js";
|
|
20
20
|
import { t as Ct } from "./_chunks/PkChatbotError-BS84xuiu.js";
|
|
21
21
|
import { t as wt } from "./_chunks/useImageFallback-HUe4GHah.js";
|
|
22
22
|
import { t as Tt } from "./_chunks/useLocalizedString-Dmn92nix.js";
|
|
23
23
|
import { n as Et, t as Dt } from "./_chunks/PkRelativeTime-CZF5CYHv.js";
|
|
24
|
-
import { r as Ot, t as kt } from "./_chunks/PkToolShowArtifact-
|
|
24
|
+
import { r as Ot, t as kt } from "./_chunks/PkToolShowArtifact-BDZjRnfs.js";
|
|
25
25
|
import { $ as At, A as jt, B as Mt, C as Nt, Ct as Pt, D as Ft, E as It, F as Lt, G as Rt, H as zt, I as Bt, J as Vt, K as Ht, L as Ut, M as Wt, N as E, Q as Gt, S as Kt, St as qt, T as Jt, Tt as Yt, U as Xt, V as Zt, W as Qt, X as $t, _t as en, a as tn, at as nn, b as rn, bt as an, c as on, ct as sn, d as cn, dt as ln, et as un, f as dn, gt as fn, h as pn, it as mn, j as hn, k as gn, l as D, lt as O, mt as _n, nt as vn, o as yn, ot as bn, pt as xn, q as Sn, rt as Cn, st as wn, tt as Tn, u as En, ut as Dn, vt as On, w as kn, wt as An, x as jn, xt as Mn, y as Nn, yt as Pn, z as Fn } from "./_chunks/dist-DtxVAOxm.js";
|
|
26
26
|
import { n as In, t as Ln } from "./_chunks/dist-CKKe4gMX.js";
|
|
27
27
|
import { n as Rn, r as zn } from "./_chunks/dist-DTy4614p.js";
|
|
@@ -31,25 +31,25 @@ import { t as Wn } from "./_chunks/PkSvgViewer-BckH8MdR.js";
|
|
|
31
31
|
import { t as Gn } from "./_chunks/PkUrl-IFszepUi.js";
|
|
32
32
|
import { t as Kn } from "./_chunks/PkAvatar-uVRs_DD9.js";
|
|
33
33
|
import { t as qn } from "./_chunks/PkChatbotFeedbackForm-Bh3tvNUW.js";
|
|
34
|
-
import { n as Jn, t as Yn } from "./_chunks/PkChatbotSteps-
|
|
35
|
-
import { t as Xn } from "./_chunks/PkChatbotStepPayload-
|
|
36
|
-
import { t as Zn } from "./_chunks/PkChatbotStepToolDetail-
|
|
37
|
-
import { n as Qn, t as $n } from "./_chunks/PkChatbotInput-
|
|
38
|
-
import { t as er } from "./_chunks/PkChatbotEmptyState-
|
|
34
|
+
import { n as Jn, t as Yn } from "./_chunks/PkChatbotSteps-DhIEYst5.js";
|
|
35
|
+
import { t as Xn } from "./_chunks/PkChatbotStepPayload-CQD8lb4l.js";
|
|
36
|
+
import { t as Zn } from "./_chunks/PkChatbotStepToolDetail-Bj1ZBPMz.js";
|
|
37
|
+
import { n as Qn, t as $n } from "./_chunks/PkChatbotInput-CUOcwWDz.js";
|
|
38
|
+
import { t as er } from "./_chunks/PkChatbotEmptyState-fADhr37n.js";
|
|
39
39
|
import { t as tr } from "./_chunks/PkChatbotViewProfile-x0oUCbeL.js";
|
|
40
|
-
import { t as nr } from "./_chunks/PkChatbot-
|
|
41
|
-
import { i as rr, r as ir, t as ar } from "./_chunks/PkToolShowSources-
|
|
40
|
+
import { t as nr } from "./_chunks/PkChatbot-BFAcqm6m.js";
|
|
41
|
+
import { i as rr, r as ir, t as ar } from "./_chunks/PkToolShowSources-CHH2vKVG.js";
|
|
42
42
|
import { t as or } from "./_chunks/mcpOAuthReport-aR-W09MX.js";
|
|
43
43
|
import { t as sr } from "./_chunks/PkToolShowEmail-BehvoNsz.js";
|
|
44
44
|
import { t as cr } from "./_chunks/PkToolShowMessage-Cca7K7GQ.js";
|
|
45
|
-
import { t as lr } from "./_chunks/PkToolShowWebPages-
|
|
46
|
-
import { t as ur } from "./_chunks/PkToolShowProductList-
|
|
47
|
-
import { t as dr } from "./_chunks/PkToolShowContactForm-
|
|
45
|
+
import { t as lr } from "./_chunks/PkToolShowWebPages-CuwLXH1I.js";
|
|
46
|
+
import { t as ur } from "./_chunks/PkToolShowProductList-CKPDiMkx.js";
|
|
47
|
+
import { t as dr } from "./_chunks/PkToolShowContactForm-CcIF7fNS.js";
|
|
48
48
|
import { t as fr } from "./_chunks/PkToolShowCalendarEvent-C16j-Cto.js";
|
|
49
49
|
import { t as pr } from "./_chunks/PkToolShowComparison-BEHyRNXE.js";
|
|
50
50
|
import { t as mr } from "./_chunks/PkToolShowLocation-Cq0IXye1.js";
|
|
51
51
|
import { t as hr } from "./_chunks/PkToolShowQrCode-skWaARYV.js";
|
|
52
|
-
import { t as gr } from "./_chunks/PkToolShowImageGallery-
|
|
52
|
+
import { t as gr } from "./_chunks/PkToolShowImageGallery-82BzTTbf.js";
|
|
53
53
|
import { t as _r } from "./_chunks/PkToolShowSuggestedReply-CThFJVUq.js";
|
|
54
54
|
import { t as vr } from "./_chunks/PkToolShareDocument-CRghPfep.js";
|
|
55
55
|
import { VvAccordion as yr, VvAccordionGroup as br, VvAlert as xr, VvAlertGroup as Sr, VvBadge as Cr, VvButtonGroup as wr, VvCheckbox as Tr, VvCombobox as Er, VvDialog as Dr, VvDropdown as Or, VvDropdownAction as kr, VvIcon as Ar, VvInputFile as jr, VvInputRange as Mr, VvInputText as Nr, VvTab as Pr, VvTooltip as Fr } from "@volverjs/ui-vue/components";
|
|
@@ -19700,7 +19700,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
19700
19700
|
])]);
|
|
19701
19701
|
};
|
|
19702
19702
|
}
|
|
19703
|
-
}), mD = { class: "text-
|
|
19703
|
+
}), mD = { class: "text-12 text-word-3 mb-xs" }, hD = { class: "grid sm:grid-cols-2 gap-md items-start" }, gD = /* @__PURE__ */ L({
|
|
19704
19704
|
__name: "PkAgentHostToolsSettings",
|
|
19705
19705
|
props: /*@__PURE__*/ qr({ trustedOrigins: {} }, {
|
|
19706
19706
|
modelValue: {},
|
|
@@ -19897,10 +19897,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
19897
19897
|
}, 8, ["legend"]);
|
|
19898
19898
|
};
|
|
19899
19899
|
}
|
|
19900
|
-
}), _D = { class: "text-
|
|
19900
|
+
}), _D = { class: "text-12 text-word-3 mb-xs" }, vD = {
|
|
19901
19901
|
key: 2,
|
|
19902
|
-
class: "text-
|
|
19903
|
-
}, yD = { class: "text-
|
|
19902
|
+
class: "text-12 text-word-3 mb-md"
|
|
19903
|
+
}, yD = { class: "text-12 text-word-3 mb-md" }, bD = { class: "flex flex-col gap-sm text-14 text-word-2 m-0 pl-md" }, xD = /* @__PURE__ */ L({
|
|
19904
19904
|
__name: "PkAgentPageAccessSettings",
|
|
19905
19905
|
props: /*@__PURE__*/ qr({ trustedOrigins: {} }, {
|
|
19906
19906
|
modelValue: {},
|
|
@@ -20107,7 +20107,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20107
20107
|
}, CD = { class: "p-8 flex flex-col" }, wD = { class: "flex flex-col ml-12 gap-2" }, TD = { class: "text-12 text-word-3" }, ED = { class: "mb-md" }, DD = { class: "flex items-center gap-xs mb-2" }, OD = ["for"], kD = { class: "relative cursor-help text-word-3" }, AD = { class: "mb-md" }, jD = { class: "flex items-center gap-xs mb-2" }, MD = ["for"], ND = { class: "relative cursor-help text-word-3" }, PD = { class: "text-12 text-word-3 mt-xs leading-normal" }, FD = { class: "flex flex-col ml-12 gap-2" }, ID = { class: "text-12 text-word-3" }, LD = { class: "mb-md" }, RD = { class: "flex items-center gap-xs mb-2" }, zD = ["for"], BD = { class: "relative cursor-help text-word-3" }, VD = { class: "mb-md" }, HD = { class: "flex items-center gap-xs mb-2" }, UD = ["for"], WD = { class: "relative cursor-help text-word-3" }, GD = { class: "flex flex-col ml-12 gap-2" }, KD = { class: "text-12 text-word-3" }, qD = { class: "flex flex-col ml-12 gap-2" }, JD = { class: "text-12 text-word-3" }, YD = { class: "flex flex-col ml-12 gap-2" }, XD = { class: "text-12 text-word-3" }, ZD = { class: "flex items-end gap-sm mt-md" }, QD = { class: "flex flex-col gap-2 min-w-0" }, $D = { class: "truncate" }, eO = {
|
|
20108
20108
|
key: 0,
|
|
20109
20109
|
class: "text-12 text-word-3 truncate"
|
|
20110
|
-
}, tO = { class: "p-8 flex flex-col" }, nO = { class: "flex flex-col ml-12 gap-2" }, rO = { class: "text-12 text-word-3" }, iO = { class: "flex gap-sm mt-md" }, aO = { class: "text-12 text-word-3 mt-8 mb-md px-8" }, oO = { class: "p-8 flex flex-col" }, sO = { class: "grid sm:grid-cols-2 gap-md items-start" }, cO = { class: "flex flex-col gap-md" }, lO = { class: "text-12 text-word-3 mb-sm" }, uO = { class: "flex items-center gap-4" }, dO = { class: "text-12 text-word-3 mb-
|
|
20110
|
+
}, tO = { class: "p-8 flex flex-col" }, nO = { class: "flex flex-col ml-12 gap-2" }, rO = { class: "text-12 text-word-3" }, iO = { class: "flex gap-sm mt-md" }, aO = { class: "text-12 text-word-3 mt-8 mb-md px-8" }, oO = { class: "p-8 flex flex-col" }, sO = { class: "grid sm:grid-cols-2 gap-md items-start" }, cO = { class: "flex flex-col gap-md" }, lO = { class: "text-12 text-word-3 mb-sm" }, uO = { class: "flex items-center gap-4" }, dO = { class: "text-12 text-word-3 mb-xs" }, fO = { class: "flex flex-col nx-md nb-md" }, pO = { class: "flex flex-col ml-12 gap-2" }, mO = { class: "flex items-center gap-8" }, hO = { class: "font-semibold" }, gO = { class: "text-12 text-word-3" }, _O = ["title"], vO = { class: "p-xs flex flex-col" }, yO = {
|
|
20111
|
+
key: 0,
|
|
20112
|
+
class: "flex gap-md items-start"
|
|
20113
|
+
}, bO = { class: "flex flex-col gap-md" }, xO = { class: "font-semibold mb-xs" }, SO = { class: "text-smaller" }, CO = { key: 2 }, wO = { class: "p-8 flex flex-col" }, TO = { class: "font-semibold mb-xs" }, EO = { class: "text-smaller" }, DO = { class: "font-semibold mb-xs" }, OO = { class: "text-smaller" }, kO = { class: "block text-12 text-word-2 break-all p-12 font-mono" }, AO = { class: "flex flex-col gap-md" }, jO = { class: "text-12 text-word-3 mb-xs" }, MO = { class: "grid sm:grid-cols-2 gap-md" }, NO = { class: "text-12 text-word-3 mb-md" }, PO = /* @__PURE__ */ L({
|
|
20111
20114
|
__name: "PkAgentSettingsPanel",
|
|
20112
20115
|
props: /*@__PURE__*/ qr({
|
|
20113
20116
|
organizationSlug: {},
|
|
@@ -20230,6 +20233,16 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20230
20233
|
default: !1
|
|
20231
20234
|
},
|
|
20232
20235
|
shareDocumentEnabledModifiers: {},
|
|
20236
|
+
createSpreadsheetEnabled: {
|
|
20237
|
+
type: Boolean,
|
|
20238
|
+
default: !1
|
|
20239
|
+
},
|
|
20240
|
+
createSpreadsheetEnabledModifiers: {},
|
|
20241
|
+
createWordDocumentEnabled: {
|
|
20242
|
+
type: Boolean,
|
|
20243
|
+
default: !1
|
|
20244
|
+
},
|
|
20245
|
+
createWordDocumentEnabledModifiers: {},
|
|
20233
20246
|
approvalTools: { default: () => [] },
|
|
20234
20247
|
approvalToolsModifiers: {},
|
|
20235
20248
|
useAllUserKb: {
|
|
@@ -20334,7 +20347,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20334
20347
|
ranking: { default: void 0 },
|
|
20335
20348
|
rankingModifiers: {}
|
|
20336
20349
|
}),
|
|
20337
|
-
emits: /*@__PURE__*/ qr(["manageAccess"], /* @__PURE__ */ "update:agentId.update:name.update:type.update:initialMessage.update:greeting.update:messagePlaceholder.update:dismissableNotice.update:footerMessage.update:model.update:temperature.update:prompt.update:status.update:visibility.update:limit.update:maxStepCount.update:maxOutputTokens.update:presencePenalty.update:frequencyPenalty.update:searchMode.update:reasoning.update:webSearch.update:theme.update:mainColor.update:textColor.update:useColorsForAgentHeader.update:welcomePopup.update:interactiveLogin.update:floatingButtonPosition.update:layout.update:workingGlow.update:appearance.update:hideFloatingButton.update:copilotPageCss.update:maxMessageLength.update:media.update:minuteRateLimit.update:hourRateLimit.update:dayRateLimit.update:monthRateLimit.update:trustedOrigins.update:imageHosts.update:disabledTools.update:shareDocumentEnabled.update:approvalTools.update:useAllUserKb.update:useAllUserFiles.update:formMaxSteps.update:formMaxOptionsPerStep.update:widgetUrl.update:loadDelay.update:loaderStrategy.update:fileUploadEnabled.update:toolWorkingSetMode.update:voiceEnabled.update:voiceMaxSessionSeconds.update:voiceId.update:voiceLanguage.update:voiceFirstMessage.update:voiceCascadeTimeoutSeconds.update:voiceFillerAfterSeconds.update:voiceFillerMessage.update:voiceIgnoreBackgroundVoices.update:voiceTurnEagerness.update:voiceTurnTimeoutSeconds.update:fileUploadMaxFileSize.update:fileUploadAllowedMimeTypes.update:fileUploadMaxFilesPerMessage.update:fileUploadMaxFilesPerChat.update:customCss.update:privacyPolicyNotice.update:fallbackModels.update:zeroDataRetention.update:disallowPromptTraining.update:providerTimeoutMs.update:smoothStream.update:showExtendedSteps.update:channels.update:externalContextSchema.update:hostTools.update:pageAccess.update:ranking".split(".")),
|
|
20350
|
+
emits: /*@__PURE__*/ qr(["manageAccess"], /* @__PURE__ */ "update:agentId.update:name.update:type.update:initialMessage.update:greeting.update:messagePlaceholder.update:dismissableNotice.update:footerMessage.update:model.update:temperature.update:prompt.update:status.update:visibility.update:limit.update:maxStepCount.update:maxOutputTokens.update:presencePenalty.update:frequencyPenalty.update:searchMode.update:reasoning.update:webSearch.update:theme.update:mainColor.update:textColor.update:useColorsForAgentHeader.update:welcomePopup.update:interactiveLogin.update:floatingButtonPosition.update:layout.update:workingGlow.update:appearance.update:hideFloatingButton.update:copilotPageCss.update:maxMessageLength.update:media.update:minuteRateLimit.update:hourRateLimit.update:dayRateLimit.update:monthRateLimit.update:trustedOrigins.update:imageHosts.update:disabledTools.update:shareDocumentEnabled.update:createSpreadsheetEnabled.update:createWordDocumentEnabled.update:approvalTools.update:useAllUserKb.update:useAllUserFiles.update:formMaxSteps.update:formMaxOptionsPerStep.update:widgetUrl.update:loadDelay.update:loaderStrategy.update:fileUploadEnabled.update:toolWorkingSetMode.update:voiceEnabled.update:voiceMaxSessionSeconds.update:voiceId.update:voiceLanguage.update:voiceFirstMessage.update:voiceCascadeTimeoutSeconds.update:voiceFillerAfterSeconds.update:voiceFillerMessage.update:voiceIgnoreBackgroundVoices.update:voiceTurnEagerness.update:voiceTurnTimeoutSeconds.update:fileUploadMaxFileSize.update:fileUploadAllowedMimeTypes.update:fileUploadMaxFilesPerMessage.update:fileUploadMaxFilesPerChat.update:customCss.update:privacyPolicyNotice.update:fallbackModels.update:zeroDataRetention.update:disallowPromptTraining.update:providerTimeoutMs.update:smoothStream.update:showExtendedSteps.update:channels.update:externalContextSchema.update:hostTools.update:pageAccess.update:ranking".split(".")),
|
|
20338
20351
|
setup(e, { emit: n }) {
|
|
20339
20352
|
let { t: r, te: i, n: a, locale: o, availableLocales: s } = bi({ useScope: "global" }), c = A(() => [...s.filter((e) => e === o.value), ...s.filter((e) => e !== o.value)]), l = {
|
|
20340
20353
|
freshnessScale: fi(),
|
|
@@ -20358,8 +20371,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20358
20371
|
}, ...v.value?.slice(1) ?? []];
|
|
20359
20372
|
}, x = U(e, "messagePlaceholder"), S = U(e, "dismissableNotice"), C = U(e, "footerMessage"), w = U(e, "model"), ne = A(() => Re(w.value)), re = A(() => d.catalog?.find((e) => e.id === w.value)), ie = A(() => {
|
|
20360
20373
|
let e = re.value;
|
|
20361
|
-
if (e) return e.retired ? r("hint.modelRetired") :
|
|
20362
|
-
}), oe = U(e, "temperature"), ce = U(e, "prompt"), fe = U(e, "status"), pe = U(e, "visibility"), me = U(e, "limit"), he = U(e, "maxStepCount"), ge = U(e, "maxOutputTokens"), _e = U(e, "presencePenalty"), ve = U(e, "frequencyPenalty"), ye = U(e, "searchMode"), xe = U(e, "reasoning"), we = U(e, "webSearch"), Ee = U(e, "theme"), De = U(e, "mainColor"), ke = U(e, "textColor"), Ae = U(e, "useColorsForAgentHeader"), Me = U(e, "welcomePopup"), Ne = U(e, "interactiveLogin"), Pe = U(e, "floatingButtonPosition"), Fe = U(e, "layout"), Ie = U(e, "workingGlow"), Le = U(e, "appearance"), ze = U(e, "hideFloatingButton"), Be = U(e, "copilotPageCss"), Ve = U(e, "maxMessageLength"), He = U(e, "media"), Ue = U(e, "minuteRateLimit"), We = U(e, "hourRateLimit"), Ge = U(e, "dayRateLimit"), Ke = U(e, "monthRateLimit"), qe = U(e, "trustedOrigins"), Ye = U(e, "imageHosts"), Xe = U(e, "disabledTools"), Ze = U(e, "shareDocumentEnabled"), Qe = U(e, "
|
|
20374
|
+
if (e) return e.retired ? r("hint.modelRetired") : Ut.value && e.zdr === na.None || Wt.value && e.noTraining === na.None ? r("hint.modelNotCompatible") : Ut.value && e.zdr === na.Some || Wt.value && e.noTraining === na.Some ? r("hint.modelGuaranteedOnSome") : e.contextWindow ? r("hint.modelContextWindow", { count: a(Math.round(e.contextWindow / 1e3)) }) : void 0;
|
|
20375
|
+
}), oe = U(e, "temperature"), ce = U(e, "prompt"), fe = U(e, "status"), pe = U(e, "visibility"), me = U(e, "limit"), he = U(e, "maxStepCount"), ge = U(e, "maxOutputTokens"), _e = U(e, "presencePenalty"), ve = U(e, "frequencyPenalty"), ye = U(e, "searchMode"), xe = U(e, "reasoning"), we = U(e, "webSearch"), Ee = U(e, "theme"), De = U(e, "mainColor"), ke = U(e, "textColor"), Ae = U(e, "useColorsForAgentHeader"), Me = U(e, "welcomePopup"), Ne = U(e, "interactiveLogin"), Pe = U(e, "floatingButtonPosition"), Fe = U(e, "layout"), Ie = U(e, "workingGlow"), Le = U(e, "appearance"), ze = U(e, "hideFloatingButton"), Be = U(e, "copilotPageCss"), Ve = U(e, "maxMessageLength"), He = U(e, "media"), Ue = U(e, "minuteRateLimit"), We = U(e, "hourRateLimit"), Ge = U(e, "dayRateLimit"), Ke = U(e, "monthRateLimit"), qe = U(e, "trustedOrigins"), Ye = U(e, "imageHosts"), Xe = U(e, "disabledTools"), Ze = U(e, "shareDocumentEnabled"), Qe = U(e, "createSpreadsheetEnabled"), $e = U(e, "createWordDocumentEnabled"), et = U(e, "approvalTools"), tt = U(e, "useAllUserKb"), nt = U(e, "useAllUserFiles"), rt = U(e, "formMaxSteps"), it = U(e, "formMaxOptionsPerStep"), at = U(e, "widgetUrl"), ot = U(e, "loadDelay"), st = U(e, "loaderStrategy"), lt = U(e, "fileUploadEnabled"), ut = U(e, "toolWorkingSetMode"), dt = U(e, "voiceEnabled"), ft = U(e, "voiceMaxSessionSeconds"), pt = U(e, "voiceId"), mt = U(e, "voiceLanguage"), ht = U(e, "voiceFirstMessage"), gt = U(e, "voiceCascadeTimeoutSeconds"), _t = U(e, "voiceFillerAfterSeconds"), vt = U(e, "voiceFillerMessage"), yt = U(e, "voiceIgnoreBackgroundVoices"), bt = U(e, "voiceTurnEagerness"), xt = U(e, "voiceTurnTimeoutSeconds"), St = [
|
|
20363
20376
|
"it",
|
|
20364
20377
|
"en",
|
|
20365
20378
|
"es",
|
|
@@ -20367,46 +20380,46 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20367
20380
|
"de",
|
|
20368
20381
|
"pt",
|
|
20369
20382
|
"nl"
|
|
20370
|
-
],
|
|
20383
|
+
], Ct = [
|
|
20371
20384
|
"gender",
|
|
20372
20385
|
"age",
|
|
20373
20386
|
"accent",
|
|
20374
20387
|
"descriptive",
|
|
20375
20388
|
"description",
|
|
20376
20389
|
"use_case"
|
|
20377
|
-
],
|
|
20390
|
+
], wt = ["language"], Tt = (e) => {
|
|
20378
20391
|
let t = e.replace(/_/g, " ");
|
|
20379
20392
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
20380
|
-
},
|
|
20381
|
-
let t = e.labels ?? {}, n = [...
|
|
20393
|
+
}, Et = (e) => {
|
|
20394
|
+
let t = e.labels ?? {}, n = [...Ct.filter((e) => e in t), ...Object.keys(t).filter((e) => !Ct.includes(e) && !wt.includes(e))], r = /* @__PURE__ */ new Set();
|
|
20382
20395
|
return n.flatMap((e) => {
|
|
20383
20396
|
let n = t[e]?.trim().toLowerCase();
|
|
20384
|
-
return !n || r.has(n) ? [] : (r.add(n), [
|
|
20397
|
+
return !n || r.has(n) ? [] : (r.add(n), [Tt(n)]);
|
|
20385
20398
|
}).join(" · ");
|
|
20386
|
-
},
|
|
20399
|
+
}, Dt = A(() => (d.voices ?? []).map((e) => ({
|
|
20387
20400
|
label: e.name,
|
|
20388
20401
|
value: e.voiceId,
|
|
20389
|
-
description:
|
|
20390
|
-
}))),
|
|
20402
|
+
description: Et(e)
|
|
20403
|
+
}))), kt = (e, t) => {
|
|
20391
20404
|
let n = e.trim().toLowerCase();
|
|
20392
20405
|
return n ? t.filter((e) => `${e.label} ${e.description}`.toLowerCase().includes(n)) : t;
|
|
20393
|
-
},
|
|
20394
|
-
|
|
20395
|
-
},
|
|
20396
|
-
if (
|
|
20397
|
-
|
|
20406
|
+
}, At = A(() => r("hint.voiceId")), jt = B(), Mt = B(!1), Nt = () => {
|
|
20407
|
+
jt.value?.pause(), jt.value = void 0, Mt.value = !1;
|
|
20408
|
+
}, Pt = () => {
|
|
20409
|
+
if (Mt.value) {
|
|
20410
|
+
Nt();
|
|
20398
20411
|
return;
|
|
20399
20412
|
}
|
|
20400
|
-
let e = d.voices?.find((e) => e.voiceId ===
|
|
20413
|
+
let e = d.voices?.find((e) => e.voiceId === pt.value)?.previewUrl;
|
|
20401
20414
|
if (!e) return;
|
|
20402
|
-
|
|
20415
|
+
Nt();
|
|
20403
20416
|
let t = new Audio(e);
|
|
20404
|
-
t.addEventListener("ended",
|
|
20405
|
-
},
|
|
20406
|
-
W(
|
|
20407
|
-
let
|
|
20408
|
-
W(
|
|
20409
|
-
e?.freshness && e?.priority && e?.mmr || (
|
|
20417
|
+
t.addEventListener("ended", Nt), jt.value = t, Mt.value = !0, t.play().catch(Nt);
|
|
20418
|
+
}, Ft = A(() => !!d.voices?.find((e) => e.voiceId === pt.value)?.previewUrl);
|
|
20419
|
+
W(pt, Nt), $r(Nt);
|
|
20420
|
+
let It = U(e, "fileUploadMaxFileSize"), Lt = U(e, "fileUploadAllowedMimeTypes"), Rt = U(e, "fileUploadMaxFilesPerMessage"), zt = U(e, "fileUploadMaxFilesPerChat"), Bt = U(e, "customCss"), Vt = U(e, "privacyPolicyNotice"), Ht = U(e, "fallbackModels"), Ut = U(e, "zeroDataRetention"), Wt = U(e, "disallowPromptTraining"), E = U(e, "providerTimeoutMs"), Gt = U(e, "smoothStream"), Kt = U(e, "showExtendedSteps"), qt = U(e, "channels"), Jt = U(e, "externalContextSchema"), Yt = U(e, "hostTools"), Xt = U(e, "pageAccess"), Zt = U(e, "ranking");
|
|
20421
|
+
W(Zt, (e) => {
|
|
20422
|
+
e?.freshness && e?.priority && e?.mmr || (Zt.value = ri({
|
|
20410
20423
|
freshness: {
|
|
20411
20424
|
enabled: !1,
|
|
20412
20425
|
scale: 7776e3,
|
|
@@ -20425,16 +20438,16 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20425
20438
|
}
|
|
20426
20439
|
}));
|
|
20427
20440
|
}, { immediate: !0 });
|
|
20428
|
-
let
|
|
20441
|
+
let Qt = A({
|
|
20429
20442
|
get: () => {
|
|
20430
|
-
let e =
|
|
20443
|
+
let e = Zt.value?.freshness?.scale ?? 7776e3;
|
|
20431
20444
|
return e >= 86400 ? Math.round(e / 86400) : e;
|
|
20432
20445
|
},
|
|
20433
20446
|
set: (e) => {
|
|
20434
|
-
|
|
20447
|
+
Zt.value?.freshness && (Zt.value.freshness.scale = e * 86400);
|
|
20435
20448
|
}
|
|
20436
|
-
}),
|
|
20437
|
-
let e =
|
|
20449
|
+
}), $t = A(() => {
|
|
20450
|
+
let e = Qt.value, t = e * 4, n = Math.round(t / 30.4 * 10) / 10, i = Zt.value?.freshness?.weight ?? .1, a = Math.round(i / 2 * 1e3) / 1e3, o = Math.round(i * .06 * 1e3) / 1e3, s = {
|
|
20438
20451
|
half: e,
|
|
20439
20452
|
zero: t,
|
|
20440
20453
|
months: n,
|
|
@@ -20443,17 +20456,17 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20443
20456
|
zeroWeight: o.toFixed(3).replace(/0+$/, "").replace(/\.$/, "")
|
|
20444
20457
|
};
|
|
20445
20458
|
return r(t >= 30 ? "hint.freshnessScaleExplanationMonths" : "hint.freshnessScaleExplanationDays", s);
|
|
20446
|
-
}),
|
|
20447
|
-
await Yr(),
|
|
20459
|
+
}), en = B(!1), tn = mi("panelRoot"), nn = async () => {
|
|
20460
|
+
await Yr(), tn.value?.querySelector(".vv-tab .vv-nav__item-label.current")?.scrollIntoView({
|
|
20448
20461
|
block: "nearest",
|
|
20449
20462
|
inline: "nearest"
|
|
20450
20463
|
});
|
|
20451
|
-
},
|
|
20452
|
-
get: () =>
|
|
20464
|
+
}, rn = A({
|
|
20465
|
+
get: () => Jt.value != null,
|
|
20453
20466
|
set: (e) => {
|
|
20454
|
-
|
|
20467
|
+
Jt.value = e ? {} : void 0;
|
|
20455
20468
|
}
|
|
20456
|
-
}),
|
|
20469
|
+
}), an = {
|
|
20457
20470
|
images: [
|
|
20458
20471
|
"image/jpeg",
|
|
20459
20472
|
"image/png",
|
|
@@ -20470,7 +20483,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20470
20483
|
spreadsheets: [de],
|
|
20471
20484
|
wordDocuments: [Te],
|
|
20472
20485
|
audio: [...ee]
|
|
20473
|
-
},
|
|
20486
|
+
}, on = A(() => [
|
|
20474
20487
|
{
|
|
20475
20488
|
label: r("label.mimeTypeImages"),
|
|
20476
20489
|
value: "images"
|
|
@@ -20499,24 +20512,24 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20499
20512
|
label: r("label.mimeTypeAudio"),
|
|
20500
20513
|
value: "audio"
|
|
20501
20514
|
}]
|
|
20502
|
-
]),
|
|
20515
|
+
]), sn = A(() => Object.values(be).map((e) => ({
|
|
20503
20516
|
label: r(`agent.toolWorkingSetMode.${e}`),
|
|
20504
20517
|
value: e
|
|
20505
|
-
}))),
|
|
20506
|
-
get: () => Object.entries(
|
|
20518
|
+
}))), cn = A({
|
|
20519
|
+
get: () => Object.entries(an).filter(([, e]) => e.every((e) => Lt.value.includes(e))).map(([e]) => e),
|
|
20507
20520
|
set: (e) => {
|
|
20508
|
-
let t = new Set(
|
|
20509
|
-
|
|
20521
|
+
let t = new Set(cn.value.filter((t) => !e.includes(t)).flatMap((e) => an[e] ?? []));
|
|
20522
|
+
Lt.value = [.../* @__PURE__ */ new Set([...Lt.value.filter((e) => !t.has(e)), ...e.flatMap((e) => an[e] ?? [])])];
|
|
20510
20523
|
}
|
|
20511
|
-
}),
|
|
20512
|
-
let e =
|
|
20524
|
+
}), ln = A(() => {
|
|
20525
|
+
let e = on.value.filter(({ value: e }) => cn.value.includes(e) && an[e].some((e) => te(e, Xe.value))).map(({ label: e }) => e);
|
|
20513
20526
|
return e.length ? r("hint.fileUploadToolOff", { types: e.join(", ") }) : void 0;
|
|
20514
|
-
}),
|
|
20515
|
-
get: () => Math.round(
|
|
20527
|
+
}), un = A({
|
|
20528
|
+
get: () => Math.round(It.value / 1048576),
|
|
20516
20529
|
set: (e) => {
|
|
20517
|
-
|
|
20530
|
+
It.value = e * 1024 * 1024;
|
|
20518
20531
|
}
|
|
20519
|
-
}),
|
|
20532
|
+
}), dn = A(() => new Set(Ra(d.features))), fn = A(() => [
|
|
20520
20533
|
{
|
|
20521
20534
|
key: "knowledgeSearch",
|
|
20522
20535
|
icon: "ri:search-line",
|
|
@@ -20587,36 +20600,36 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20587
20600
|
icon: "ri:chat-3-line",
|
|
20588
20601
|
tools: [T.FetchTeamsChannelHistory]
|
|
20589
20602
|
}
|
|
20590
|
-
]),
|
|
20603
|
+
]), pn = A(() => fn.value.map((e) => ({
|
|
20591
20604
|
...e,
|
|
20592
|
-
tools: e.tools.filter((e) => !
|
|
20593
|
-
})).filter((e) => e.tools.length > 0)),
|
|
20594
|
-
function
|
|
20605
|
+
tools: e.tools.filter((e) => !dn.value.has(e))
|
|
20606
|
+
})).filter((e) => e.tools.length > 0)), mn = (e) => e === T.ShowSources || e === T.ReadDocumentFile ? !Xe.value.includes(T.SearchInKnowledgeBase) : e === T.ShowWeather ? !Xe.value.includes(T.GetWeather) : e !== T.ShareDocument || !d.playground && !Xe.value.includes(T.SearchInKnowledgeBase), hn = (e) => le(e) || e === T.Spreadsheet || e === T.WordDocument, gn = A(() => w.value ? [w.value] : []);
|
|
20607
|
+
function D(e) {
|
|
20595
20608
|
return e === T.ShareDocument ? Ze.value : !Xe.value.includes(e);
|
|
20596
20609
|
}
|
|
20597
|
-
function
|
|
20610
|
+
function O(e) {
|
|
20598
20611
|
return e === T.ShowForm || e === T.UserMemory || e === T.SearchInUserFiles || se(e);
|
|
20599
20612
|
}
|
|
20600
|
-
function
|
|
20601
|
-
return
|
|
20613
|
+
function _n(e) {
|
|
20614
|
+
return et.value.includes(e);
|
|
20602
20615
|
}
|
|
20603
|
-
let
|
|
20616
|
+
let vn = A(() => et.value.filter((e) => se(e) && D(e)).map((e) => ct(e, {
|
|
20604
20617
|
t: r,
|
|
20605
20618
|
te: i
|
|
20606
20619
|
})));
|
|
20607
|
-
function
|
|
20608
|
-
|
|
20620
|
+
function yn(e, t) {
|
|
20621
|
+
et.value = t ? [...et.value, e] : et.value.filter((t) => t !== e);
|
|
20609
20622
|
}
|
|
20610
|
-
function
|
|
20611
|
-
e === T.ShareDocument ? (Ze.value = t, t ||
|
|
20623
|
+
function bn(e, t) {
|
|
20624
|
+
e === T.ShareDocument ? (Ze.value = t, t || yn(e, !1)) : t ? Xe.value = Xe.value.filter((t) => t !== e) : (Xe.value = [...Xe.value, e], yn(e, !1), e === T.UserMemory && (tt.value = !1), e === T.SearchInUserFiles && (nt.value = !1), e === T.Spreadsheet && !d.playground && (Qe.value = !1), e === T.WordDocument && !d.playground && ($e.value = !1));
|
|
20612
20625
|
}
|
|
20613
|
-
let
|
|
20626
|
+
let xn = A(() => w.value?.split("/")[0] ?? ""), Sn = A(() => g.value === Se.Chat), Cn = A(() => {
|
|
20614
20627
|
let e = Ia(g.value, d.features);
|
|
20615
20628
|
return Object.values(Oe).filter((t) => e.includes(t) || t === pe.value).map((e) => ({
|
|
20616
20629
|
label: r(`agent.visibility.${e}`),
|
|
20617
20630
|
value: e
|
|
20618
20631
|
}));
|
|
20619
|
-
}),
|
|
20632
|
+
}), wn = A(() => {
|
|
20620
20633
|
let e = [
|
|
20621
20634
|
{
|
|
20622
20635
|
tab: "general",
|
|
@@ -20631,7 +20644,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20631
20644
|
label: r("label.tools")
|
|
20632
20645
|
}
|
|
20633
20646
|
];
|
|
20634
|
-
return
|
|
20647
|
+
return Sn.value && (d.playground || (e.push({
|
|
20635
20648
|
tab: "security",
|
|
20636
20649
|
label: r("label.security"),
|
|
20637
20650
|
class: p.value?.security ? "invalid" : ""
|
|
@@ -20642,18 +20655,18 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20642
20655
|
tab: "embed",
|
|
20643
20656
|
label: r("label.embed")
|
|
20644
20657
|
})), e;
|
|
20645
|
-
}),
|
|
20658
|
+
}), Tn = A(() => `${window.location.origin}/app/${d.organizationSlug}/${m.value}`), En = A(() => `${window.location.origin}/app/${d.organizationSlug}/${m.value}/chat`), Dn = A(() => `<script src="${`${d.baseUrl}/api/v1/public/organizations/${d.organizationSlug}/agents/${m.value}/embed.js`}" defer><\/script>`), On = A(() => `<iframe src="${Tn.value}" width="100%" height="600" frameborder="0"
|
|
20646
20659
|
style="border: 1px solid #e5e7eb; border-radius: 8px;"></iframe>`);
|
|
20647
20660
|
return (n, i) => {
|
|
20648
20661
|
let o = Er, s = Je, d = Nr, p = Mr, m = Tr, y = Ar, ee = Fr, te = yr, re = Pr, de = Cr, be = Dr;
|
|
20649
20662
|
return z(), N("div", {
|
|
20650
20663
|
ref_key: "panelRoot",
|
|
20651
|
-
ref:
|
|
20664
|
+
ref: tn,
|
|
20652
20665
|
class: "pk-agent-settings-panel"
|
|
20653
20666
|
}, [I(re, {
|
|
20654
|
-
items:
|
|
20667
|
+
items: wn.value,
|
|
20655
20668
|
lazy: "once",
|
|
20656
|
-
"onUpdate:modelValue":
|
|
20669
|
+
"onUpdate:modelValue": nn
|
|
20657
20670
|
}, {
|
|
20658
20671
|
"panel::general": G(() => [
|
|
20659
20672
|
I(Ya, {
|
|
@@ -20715,8 +20728,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20715
20728
|
"select-hint-label": "",
|
|
20716
20729
|
"deselect-hint-label": "",
|
|
20717
20730
|
"selected-hint-label": "",
|
|
20718
|
-
options:
|
|
20719
|
-
"hint-label":
|
|
20731
|
+
options: Cn.value,
|
|
20732
|
+
"hint-label": Sn.value ? pe.value ? H(r)(`agent.visibilityHint.${pe.value}`) : void 0 : H(r)("hint.reasoningVisibility"),
|
|
20720
20733
|
disabled: e.playground
|
|
20721
20734
|
}, {
|
|
20722
20735
|
option: G(({ option: e }) => [I(gs, {
|
|
@@ -20765,8 +20778,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20765
20778
|
strategy: "fixed",
|
|
20766
20779
|
placeholder: H(r)("action.select"),
|
|
20767
20780
|
catalog: e.catalog,
|
|
20768
|
-
"zero-data-retention":
|
|
20769
|
-
"disallow-prompt-training":
|
|
20781
|
+
"zero-data-retention": Ut.value,
|
|
20782
|
+
"disallow-prompt-training": Wt.value,
|
|
20770
20783
|
current: w.value,
|
|
20771
20784
|
unselectable: !1
|
|
20772
20785
|
}, null, 8, [
|
|
@@ -20808,17 +20821,17 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20808
20821
|
default: G(() => [
|
|
20809
20822
|
ne.value ? M("", !0) : (z(), j(aD, {
|
|
20810
20823
|
key: 0,
|
|
20811
|
-
modelValue:
|
|
20812
|
-
"onUpdate:modelValue": i[7] ||= (e) =>
|
|
20824
|
+
modelValue: Ht.value,
|
|
20825
|
+
"onUpdate:modelValue": i[7] ||= (e) => Ht.value = e,
|
|
20813
20826
|
name: "fallbackModels",
|
|
20814
20827
|
multiple: "",
|
|
20815
20828
|
strategy: "fixed",
|
|
20816
20829
|
label: H(r)("label.fallbackModels"),
|
|
20817
20830
|
placeholder: H(r)("placeholder.select"),
|
|
20818
20831
|
catalog: e.catalog,
|
|
20819
|
-
"zero-data-retention":
|
|
20820
|
-
"disallow-prompt-training":
|
|
20821
|
-
"exclude-models":
|
|
20832
|
+
"zero-data-retention": Ut.value,
|
|
20833
|
+
"disallow-prompt-training": Wt.value,
|
|
20834
|
+
"exclude-models": gn.value
|
|
20822
20835
|
}, null, 8, [
|
|
20823
20836
|
"modelValue",
|
|
20824
20837
|
"label",
|
|
@@ -20885,8 +20898,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20885
20898
|
"format-value"
|
|
20886
20899
|
]),
|
|
20887
20900
|
I(d, {
|
|
20888
|
-
modelValue:
|
|
20889
|
-
"onUpdate:modelValue": i[12] ||= (e) =>
|
|
20901
|
+
modelValue: E.value,
|
|
20902
|
+
"onUpdate:modelValue": i[12] ||= (e) => E.value = e,
|
|
20890
20903
|
name: "providerTimeoutMs",
|
|
20891
20904
|
type: "number",
|
|
20892
20905
|
min: "1000",
|
|
@@ -20895,7 +20908,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20895
20908
|
class: "mb-0",
|
|
20896
20909
|
label: H(r)("label.providerTimeoutMs"),
|
|
20897
20910
|
placeholder: H(r)("placeholder.insert"),
|
|
20898
|
-
invalid:
|
|
20911
|
+
invalid: E.value !== void 0 && (E.value < 1e3 || E.value > 789e3),
|
|
20899
20912
|
"hint-label": H(r)("hint.providerTimeoutMs")
|
|
20900
20913
|
}, null, 8, [
|
|
20901
20914
|
"modelValue",
|
|
@@ -20911,10 +20924,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20911
20924
|
default: G(() => [I(sD, {
|
|
20912
20925
|
reasoning: xe.value,
|
|
20913
20926
|
"onUpdate:reasoning": i[13] ||= (e) => xe.value = e,
|
|
20914
|
-
"active-provider":
|
|
20927
|
+
"active-provider": xn.value
|
|
20915
20928
|
}, null, 8, ["reasoning", "active-provider"]), I(KT, {
|
|
20916
|
-
modelValue:
|
|
20917
|
-
"onUpdate:modelValue": i[14] ||= (e) =>
|
|
20929
|
+
modelValue: Kt.value,
|
|
20930
|
+
"onUpdate:modelValue": i[14] ||= (e) => Kt.value = e,
|
|
20918
20931
|
name: "showExtendedSteps",
|
|
20919
20932
|
class: "mt-md mb-0",
|
|
20920
20933
|
switch: "",
|
|
@@ -20995,10 +21008,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
20995
21008
|
}, 8, ["legend"]),
|
|
20996
21009
|
I(fs, { legend: H(r)("label.smartRanking") }, {
|
|
20997
21010
|
default: G(() => [
|
|
20998
|
-
|
|
21011
|
+
Zt.value?.freshness ? (z(), j(m, {
|
|
20999
21012
|
key: 0,
|
|
21000
|
-
modelValue:
|
|
21001
|
-
"onUpdate:modelValue": i[18] ||= (e) =>
|
|
21013
|
+
modelValue: Zt.value.freshness.enabled,
|
|
21014
|
+
"onUpdate:modelValue": i[18] ||= (e) => Zt.value.freshness.enabled = e,
|
|
21002
21015
|
name: "freshnessEnabled",
|
|
21003
21016
|
switch: "",
|
|
21004
21017
|
value: !0,
|
|
@@ -21008,7 +21021,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21008
21021
|
default: G(() => [P("div", wD, [P("strong", null, V(H(r)("label.freshnessBoost")), 1), P("small", TD, V(H(r)("hint.freshnessBoost")), 1)])]),
|
|
21009
21022
|
_: 1
|
|
21010
21023
|
}, 8, ["modelValue"])) : M("", !0),
|
|
21011
|
-
|
|
21024
|
+
Zt.value?.freshness?.enabled ? (z(), N(k, { key: 1 }, [P("div", ED, [P("div", DD, [P("label", {
|
|
21012
21025
|
class: "block text-12 text-word-3",
|
|
21013
21026
|
for: l.freshnessScale
|
|
21014
21027
|
}, V(H(r)("hint.freshnessScale")), 9, OD), P("div", kD, [I(y, {
|
|
@@ -21019,8 +21032,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21019
21032
|
value: H(r)("hint.freshnessScaleTooltip")
|
|
21020
21033
|
}, null, 8, ["value"])])]), I(p, {
|
|
21021
21034
|
id: l.freshnessScale,
|
|
21022
|
-
modelValue:
|
|
21023
|
-
"onUpdate:modelValue": i[19] ||= (e) =>
|
|
21035
|
+
modelValue: Qt.value,
|
|
21036
|
+
"onUpdate:modelValue": i[19] ||= (e) => Qt.value = e,
|
|
21024
21037
|
name: "freshnessScale",
|
|
21025
21038
|
min: "1",
|
|
21026
21039
|
max: "365",
|
|
@@ -21042,11 +21055,11 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21042
21055
|
position: "bottom",
|
|
21043
21056
|
value: H(r)("hint.freshnessWeightTooltip")
|
|
21044
21057
|
}, null, 8, ["value"])])]),
|
|
21045
|
-
|
|
21058
|
+
Zt.value?.freshness ? (z(), j(p, {
|
|
21046
21059
|
key: 0,
|
|
21047
21060
|
id: l.freshnessWeight,
|
|
21048
|
-
modelValue:
|
|
21049
|
-
"onUpdate:modelValue": i[20] ||= (e) =>
|
|
21061
|
+
modelValue: Zt.value.freshness.weight,
|
|
21062
|
+
"onUpdate:modelValue": i[20] ||= (e) => Zt.value.freshness.weight = e,
|
|
21050
21063
|
name: "freshnessWeight",
|
|
21051
21064
|
min: "0.05",
|
|
21052
21065
|
max: "0.5",
|
|
@@ -21058,12 +21071,12 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21058
21071
|
"modelValue",
|
|
21059
21072
|
"format-value"
|
|
21060
21073
|
])) : M("", !0),
|
|
21061
|
-
P("p", PD, V(
|
|
21074
|
+
P("p", PD, V($t.value), 1)
|
|
21062
21075
|
])], 64)) : M("", !0),
|
|
21063
|
-
|
|
21076
|
+
Zt.value?.mmr ? (z(), j(m, {
|
|
21064
21077
|
key: 2,
|
|
21065
|
-
modelValue:
|
|
21066
|
-
"onUpdate:modelValue": i[21] ||= (e) =>
|
|
21078
|
+
modelValue: Zt.value.mmr.enabled,
|
|
21079
|
+
"onUpdate:modelValue": i[21] ||= (e) => Zt.value.mmr.enabled = e,
|
|
21067
21080
|
name: "mmrEnabled",
|
|
21068
21081
|
switch: "",
|
|
21069
21082
|
value: !0,
|
|
@@ -21073,7 +21086,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21073
21086
|
default: G(() => [P("div", FD, [P("strong", null, V(H(r)("label.mmr")), 1), P("small", ID, V(H(r)("hint.mmr")), 1)])]),
|
|
21074
21087
|
_: 1
|
|
21075
21088
|
}, 8, ["modelValue"])) : M("", !0),
|
|
21076
|
-
|
|
21089
|
+
Zt.value?.mmr?.enabled ? (z(), N(k, { key: 3 }, [P("div", LD, [P("div", RD, [P("label", {
|
|
21077
21090
|
class: "block text-12 text-word-3",
|
|
21078
21091
|
for: l.mmrDiversity
|
|
21079
21092
|
}, V(H(r)("label.mmrDiversity")), 9, zD), P("div", BD, [I(y, {
|
|
@@ -21082,11 +21095,11 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21082
21095
|
}), I(ee, {
|
|
21083
21096
|
position: "bottom",
|
|
21084
21097
|
value: H(r)("hint.mmrDiversityTooltip")
|
|
21085
|
-
}, null, 8, ["value"])])]),
|
|
21098
|
+
}, null, 8, ["value"])])]), Zt.value?.mmr ? (z(), j(p, {
|
|
21086
21099
|
key: 0,
|
|
21087
21100
|
id: l.mmrDiversity,
|
|
21088
|
-
modelValue:
|
|
21089
|
-
"onUpdate:modelValue": i[22] ||= (e) =>
|
|
21101
|
+
modelValue: Zt.value.mmr.diversity,
|
|
21102
|
+
"onUpdate:modelValue": i[22] ||= (e) => Zt.value.mmr.diversity = e,
|
|
21090
21103
|
name: "mmrDiversity",
|
|
21091
21104
|
min: "0",
|
|
21092
21105
|
max: "1",
|
|
@@ -21106,11 +21119,11 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21106
21119
|
}), I(ee, {
|
|
21107
21120
|
position: "bottom",
|
|
21108
21121
|
value: H(r)("hint.mmrCandidatesLimitTooltip")
|
|
21109
|
-
}, null, 8, ["value"])])]),
|
|
21122
|
+
}, null, 8, ["value"])])]), Zt.value?.mmr ? (z(), j(p, {
|
|
21110
21123
|
key: 0,
|
|
21111
21124
|
id: l.mmrCandidatesLimit,
|
|
21112
|
-
modelValue:
|
|
21113
|
-
"onUpdate:modelValue": i[23] ||= (e) =>
|
|
21125
|
+
modelValue: Zt.value.mmr.candidatesLimit,
|
|
21126
|
+
"onUpdate:modelValue": i[23] ||= (e) => Zt.value.mmr.candidatesLimit = e,
|
|
21114
21127
|
name: "mmrCandidatesLimit",
|
|
21115
21128
|
min: "20",
|
|
21116
21129
|
max: "100",
|
|
@@ -21131,8 +21144,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21131
21144
|
class: "mb-0"
|
|
21132
21145
|
}, {
|
|
21133
21146
|
default: G(() => [I(m, {
|
|
21134
|
-
modelValue:
|
|
21135
|
-
"onUpdate:modelValue": i[24] ||= (e) =>
|
|
21147
|
+
modelValue: Ut.value,
|
|
21148
|
+
"onUpdate:modelValue": i[24] ||= (e) => Ut.value = e,
|
|
21136
21149
|
name: "zeroDataRetention",
|
|
21137
21150
|
switch: "",
|
|
21138
21151
|
value: !0,
|
|
@@ -21141,10 +21154,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21141
21154
|
}, {
|
|
21142
21155
|
default: G(() => [P("div", GD, [P("strong", null, V(H(r)("label.zeroDataRetention")), 1), P("small", KD, V(H(r)("hint.zeroDataRetention")), 1)])]),
|
|
21143
21156
|
_: 1
|
|
21144
|
-
}, 8, ["modelValue"]),
|
|
21157
|
+
}, 8, ["modelValue"]), Ut.value ? M("", !0) : (z(), j(m, {
|
|
21145
21158
|
key: 0,
|
|
21146
|
-
modelValue:
|
|
21147
|
-
"onUpdate:modelValue": i[25] ||= (e) =>
|
|
21159
|
+
modelValue: Wt.value,
|
|
21160
|
+
"onUpdate:modelValue": i[25] ||= (e) => Wt.value = e,
|
|
21148
21161
|
name: "disallowPromptTraining",
|
|
21149
21162
|
switch: "",
|
|
21150
21163
|
value: !0,
|
|
@@ -21162,8 +21175,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21162
21175
|
class: "mb-0 mt-md"
|
|
21163
21176
|
}, {
|
|
21164
21177
|
default: G(() => [I(m, {
|
|
21165
|
-
modelValue:
|
|
21166
|
-
"onUpdate:modelValue": i[26] ||= (e) =>
|
|
21178
|
+
modelValue: dt.value,
|
|
21179
|
+
"onUpdate:modelValue": i[26] ||= (e) => dt.value = e,
|
|
21167
21180
|
name: "voiceEnabled",
|
|
21168
21181
|
switch: "",
|
|
21169
21182
|
value: !0,
|
|
@@ -21172,38 +21185,38 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21172
21185
|
}, {
|
|
21173
21186
|
default: G(() => [P("div", YD, [P("strong", null, V(H(r)("label.voiceEnabled")), 1), P("small", XD, V(H(r)("hint.voiceEnabled")), 1)])]),
|
|
21174
21187
|
_: 1
|
|
21175
|
-
}, 8, ["modelValue"]),
|
|
21176
|
-
|
|
21188
|
+
}, 8, ["modelValue"]), dt.value ? (z(), N(k, { key: 0 }, [
|
|
21189
|
+
vn.value.length ? (z(), j(qT, {
|
|
21177
21190
|
key: 0,
|
|
21178
21191
|
level: "warning",
|
|
21179
21192
|
class: "mt-md mb-0"
|
|
21180
21193
|
}, {
|
|
21181
|
-
default: G(() => [F(V(H(r)("hint.voiceApprovalRefused", { tools:
|
|
21194
|
+
default: G(() => [F(V(H(r)("hint.voiceApprovalRefused", { tools: vn.value.join(", ") })), 1)]),
|
|
21182
21195
|
_: 1
|
|
21183
21196
|
})) : M("", !0),
|
|
21184
21197
|
P("div", ZD, [I(o, {
|
|
21185
|
-
modelValue:
|
|
21186
|
-
"onUpdate:modelValue": i[28] ||= (e) =>
|
|
21198
|
+
modelValue: pt.value,
|
|
21199
|
+
"onUpdate:modelValue": i[28] ||= (e) => pt.value = e,
|
|
21187
21200
|
name: "voiceId",
|
|
21188
21201
|
icon: "ri:user-voice-line",
|
|
21189
21202
|
strategy: "fixed",
|
|
21190
21203
|
class: "flex-1 mb-0",
|
|
21191
21204
|
searchable: "",
|
|
21192
21205
|
label: H(r)("label.voiceId"),
|
|
21193
|
-
"hint-label":
|
|
21206
|
+
"hint-label": At.value,
|
|
21194
21207
|
placeholder: H(r)("placeholder.select"),
|
|
21195
21208
|
"select-hint-label": "",
|
|
21196
21209
|
"deselect-hint-label": "",
|
|
21197
21210
|
"selected-hint-label": "",
|
|
21198
|
-
options:
|
|
21199
|
-
"search-function":
|
|
21211
|
+
options: Dt.value,
|
|
21212
|
+
"search-function": kt
|
|
21200
21213
|
}, {
|
|
21201
21214
|
after: G(() => [I(s, {
|
|
21202
21215
|
modifiers: "action-quiet",
|
|
21203
|
-
icon:
|
|
21204
|
-
disabled: !
|
|
21205
|
-
title: H(r)(
|
|
21206
|
-
onClick: i[27] ||= (e) =>
|
|
21216
|
+
icon: Mt.value ? "ri:stop-circle-line" : "ri:play-circle-line",
|
|
21217
|
+
disabled: !Ft.value,
|
|
21218
|
+
title: H(r)(Mt.value ? "action.stopVoicePreview" : "action.playVoicePreview"),
|
|
21219
|
+
onClick: i[27] ||= (e) => Pt()
|
|
21207
21220
|
}, null, 8, [
|
|
21208
21221
|
"icon",
|
|
21209
21222
|
"disabled",
|
|
@@ -21219,8 +21232,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21219
21232
|
"options"
|
|
21220
21233
|
])]),
|
|
21221
21234
|
I(o, {
|
|
21222
|
-
modelValue:
|
|
21223
|
-
"onUpdate:modelValue": i[29] ||= (e) =>
|
|
21235
|
+
modelValue: mt.value,
|
|
21236
|
+
"onUpdate:modelValue": i[29] ||= (e) => mt.value = e,
|
|
21224
21237
|
name: "voiceLanguage",
|
|
21225
21238
|
icon: "ri:translate-2",
|
|
21226
21239
|
strategy: "fixed",
|
|
@@ -21232,7 +21245,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21232
21245
|
"select-hint-label": "",
|
|
21233
21246
|
"deselect-hint-label": "",
|
|
21234
21247
|
"selected-hint-label": "",
|
|
21235
|
-
options:
|
|
21248
|
+
options: St.map((e) => ({
|
|
21236
21249
|
label: H(r)(`language.${e}`),
|
|
21237
21250
|
value: e
|
|
21238
21251
|
}))
|
|
@@ -21244,8 +21257,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21244
21257
|
"options"
|
|
21245
21258
|
]),
|
|
21246
21259
|
I(d, {
|
|
21247
|
-
modelValue:
|
|
21248
|
-
"onUpdate:modelValue": i[30] ||= (e) =>
|
|
21260
|
+
modelValue: ht.value,
|
|
21261
|
+
"onUpdate:modelValue": i[30] ||= (e) => ht.value = e,
|
|
21249
21262
|
name: "voiceFirstMessage",
|
|
21250
21263
|
maxlength: "300",
|
|
21251
21264
|
class: "mb-0 mt-md",
|
|
@@ -21265,8 +21278,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21265
21278
|
}, {
|
|
21266
21279
|
default: G(() => [P("div", tO, [
|
|
21267
21280
|
I(m, {
|
|
21268
|
-
modelValue:
|
|
21269
|
-
"onUpdate:modelValue": i[31] ||= (e) =>
|
|
21281
|
+
modelValue: yt.value,
|
|
21282
|
+
"onUpdate:modelValue": i[31] ||= (e) => yt.value = e,
|
|
21270
21283
|
name: "voiceIgnoreBackgroundVoices",
|
|
21271
21284
|
switch: "",
|
|
21272
21285
|
value: !0,
|
|
@@ -21277,8 +21290,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21277
21290
|
_: 1
|
|
21278
21291
|
}, 8, ["modelValue"]),
|
|
21279
21292
|
I(o, {
|
|
21280
|
-
modelValue:
|
|
21281
|
-
"onUpdate:modelValue": i[32] ||= (e) =>
|
|
21293
|
+
modelValue: bt.value,
|
|
21294
|
+
"onUpdate:modelValue": i[32] ||= (e) => bt.value = e,
|
|
21282
21295
|
name: "voiceTurnEagerness",
|
|
21283
21296
|
icon: "ri:hourglass-line",
|
|
21284
21297
|
strategy: "fixed",
|
|
@@ -21312,8 +21325,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21312
21325
|
"options"
|
|
21313
21326
|
]),
|
|
21314
21327
|
P("div", iO, [I(d, {
|
|
21315
|
-
modelValue:
|
|
21316
|
-
"onUpdate:modelValue": i[33] ||= (e) =>
|
|
21328
|
+
modelValue: xt.value,
|
|
21329
|
+
"onUpdate:modelValue": i[33] ||= (e) => xt.value = e,
|
|
21317
21330
|
name: "voiceTurnTimeoutSeconds",
|
|
21318
21331
|
type: "number",
|
|
21319
21332
|
min: "1",
|
|
@@ -21327,8 +21340,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21327
21340
|
"label",
|
|
21328
21341
|
"placeholder"
|
|
21329
21342
|
]), I(d, {
|
|
21330
|
-
modelValue:
|
|
21331
|
-
"onUpdate:modelValue": i[34] ||= (e) =>
|
|
21343
|
+
modelValue: gt.value,
|
|
21344
|
+
"onUpdate:modelValue": i[34] ||= (e) => gt.value = e,
|
|
21332
21345
|
name: "voiceCascadeTimeoutSeconds",
|
|
21333
21346
|
type: "number",
|
|
21334
21347
|
min: "5",
|
|
@@ -21344,8 +21357,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21344
21357
|
])]),
|
|
21345
21358
|
P("small", aO, V(H(r)("hint.voiceTurnTimeoutSeconds")), 1),
|
|
21346
21359
|
I(d, {
|
|
21347
|
-
modelValue:
|
|
21348
|
-
"onUpdate:modelValue": i[35] ||= (e) =>
|
|
21360
|
+
modelValue: ft.value,
|
|
21361
|
+
"onUpdate:modelValue": i[35] ||= (e) => ft.value = e,
|
|
21349
21362
|
name: "voiceMaxSessionSeconds",
|
|
21350
21363
|
type: "number",
|
|
21351
21364
|
min: "30",
|
|
@@ -21366,8 +21379,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21366
21379
|
_: 1
|
|
21367
21380
|
}),
|
|
21368
21381
|
I(d, {
|
|
21369
|
-
modelValue:
|
|
21370
|
-
"onUpdate:modelValue": i[36] ||= (e) =>
|
|
21382
|
+
modelValue: _t.value,
|
|
21383
|
+
"onUpdate:modelValue": i[36] ||= (e) => _t.value = e,
|
|
21371
21384
|
name: "voiceFillerAfterSeconds",
|
|
21372
21385
|
type: "number",
|
|
21373
21386
|
min: "0.5",
|
|
@@ -21384,8 +21397,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21384
21397
|
"placeholder"
|
|
21385
21398
|
]),
|
|
21386
21399
|
I(d, {
|
|
21387
|
-
modelValue:
|
|
21388
|
-
"onUpdate:modelValue": i[37] ||= (e) =>
|
|
21400
|
+
modelValue: vt.value,
|
|
21401
|
+
"onUpdate:modelValue": i[37] ||= (e) => vt.value = e,
|
|
21389
21402
|
name: "voiceFillerMessage",
|
|
21390
21403
|
maxlength: "200",
|
|
21391
21404
|
class: "mb-0 mt-md",
|
|
@@ -21406,8 +21419,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21406
21419
|
}, 8, ["legend"])) : M("", !0),
|
|
21407
21420
|
e.playground ? M("", !0) : (z(), j(lD, {
|
|
21408
21421
|
key: 2,
|
|
21409
|
-
modelValue:
|
|
21410
|
-
"onUpdate:modelValue": i[38] ||= (e) =>
|
|
21422
|
+
modelValue: qt.value,
|
|
21423
|
+
"onUpdate:modelValue": i[38] ||= (e) => qt.value = e,
|
|
21411
21424
|
class: "mb-0 mt-md",
|
|
21412
21425
|
type: g.value
|
|
21413
21426
|
}, null, 8, ["modelValue", "type"]))
|
|
@@ -21435,7 +21448,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21435
21448
|
"label-add",
|
|
21436
21449
|
"label-remove"
|
|
21437
21450
|
])),
|
|
21438
|
-
|
|
21451
|
+
Sn.value ? (z(), j(t, {
|
|
21439
21452
|
key: 1,
|
|
21440
21453
|
modelValue: Ee.value,
|
|
21441
21454
|
"onUpdate:modelValue": i[40] ||= (e) => Ee.value = e,
|
|
@@ -21515,7 +21528,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21515
21528
|
class: "border border-surface-3 rounded-lg mt-md mb-md"
|
|
21516
21529
|
}, {
|
|
21517
21530
|
default: G(() => [P("div", oO, [
|
|
21518
|
-
|
|
21531
|
+
Sn.value ? (z(), j(KT, {
|
|
21519
21532
|
key: 0,
|
|
21520
21533
|
modelValue: Ae.value,
|
|
21521
21534
|
"onUpdate:modelValue": i[43] ||= (e) => Ae.value = e,
|
|
@@ -21529,10 +21542,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21529
21542
|
"label",
|
|
21530
21543
|
"hint-label"
|
|
21531
21544
|
])) : M("", !0),
|
|
21532
|
-
|
|
21545
|
+
Sn.value ? (z(), j(KT, {
|
|
21533
21546
|
key: 1,
|
|
21534
|
-
modelValue:
|
|
21535
|
-
"onUpdate:modelValue": i[44] ||= (e) =>
|
|
21547
|
+
modelValue: Gt.value,
|
|
21548
|
+
"onUpdate:modelValue": i[44] ||= (e) => Gt.value = e,
|
|
21536
21549
|
name: "smoothStream",
|
|
21537
21550
|
class: "mt-md mb-0",
|
|
21538
21551
|
switch: "",
|
|
@@ -21543,7 +21556,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21543
21556
|
"label",
|
|
21544
21557
|
"hint-label"
|
|
21545
21558
|
])) : M("", !0),
|
|
21546
|
-
!e.playground &&
|
|
21559
|
+
!e.playground && Sn.value ? (z(), j(KT, {
|
|
21547
21560
|
key: 2,
|
|
21548
21561
|
modelValue: Me.value,
|
|
21549
21562
|
"onUpdate:modelValue": i[45] ||= (e) => Me.value = e,
|
|
@@ -21557,7 +21570,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21557
21570
|
"label",
|
|
21558
21571
|
"hint-label"
|
|
21559
21572
|
])) : M("", !0),
|
|
21560
|
-
!e.playground &&
|
|
21573
|
+
!e.playground && Sn.value && pe.value === "public" ? (z(), j(KT, {
|
|
21561
21574
|
key: 3,
|
|
21562
21575
|
modelValue: Ne.value,
|
|
21563
21576
|
"onUpdate:modelValue": i[46] ||= (e) => Ne.value = e,
|
|
@@ -21571,7 +21584,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21571
21584
|
"label",
|
|
21572
21585
|
"hint-label"
|
|
21573
21586
|
])) : M("", !0),
|
|
21574
|
-
!e.playground &&
|
|
21587
|
+
!e.playground && Sn.value ? (z(), j(t, {
|
|
21575
21588
|
key: 4,
|
|
21576
21589
|
modelValue: Fe.value,
|
|
21577
21590
|
"onUpdate:modelValue": i[47] ||= (e) => Fe.value = e,
|
|
@@ -21603,7 +21616,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21603
21616
|
"hint-label",
|
|
21604
21617
|
"options"
|
|
21605
21618
|
])) : M("", !0),
|
|
21606
|
-
!e.playground &&
|
|
21619
|
+
!e.playground && Sn.value ? (z(), j(t, {
|
|
21607
21620
|
key: 5,
|
|
21608
21621
|
modelValue: Pe.value,
|
|
21609
21622
|
"onUpdate:modelValue": i[48] ||= (e) => Pe.value = e,
|
|
@@ -21633,7 +21646,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21633
21646
|
"label",
|
|
21634
21647
|
"options"
|
|
21635
21648
|
])) : M("", !0),
|
|
21636
|
-
!e.playground &&
|
|
21649
|
+
!e.playground && Sn.value && Fe.value === "floating" ? (z(), j(t, {
|
|
21637
21650
|
key: 6,
|
|
21638
21651
|
modelValue: Le.value,
|
|
21639
21652
|
"onUpdate:modelValue": i[49] ||= (e) => Le.value = e,
|
|
@@ -21655,7 +21668,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21655
21668
|
"hint-label",
|
|
21656
21669
|
"options"
|
|
21657
21670
|
])) : M("", !0),
|
|
21658
|
-
!e.playground &&
|
|
21671
|
+
!e.playground && Sn.value ? (z(), j(KT, {
|
|
21659
21672
|
key: 7,
|
|
21660
21673
|
modelValue: ze.value,
|
|
21661
21674
|
"onUpdate:modelValue": i[50] ||= (e) => ze.value = e,
|
|
@@ -21669,7 +21682,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21669
21682
|
"label",
|
|
21670
21683
|
"hint-label"
|
|
21671
21684
|
])) : M("", !0),
|
|
21672
|
-
!e.playground &&
|
|
21685
|
+
!e.playground && Sn.value && Fe.value === "copilot" ? (z(), j(KT, {
|
|
21673
21686
|
key: 8,
|
|
21674
21687
|
modelValue: Ie.value,
|
|
21675
21688
|
"onUpdate:modelValue": i[51] ||= (e) => Ie.value = e,
|
|
@@ -21683,7 +21696,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21683
21696
|
"label",
|
|
21684
21697
|
"hint-label"
|
|
21685
21698
|
])) : M("", !0),
|
|
21686
|
-
!e.playground &&
|
|
21699
|
+
!e.playground && Sn.value && Fe.value === "copilot" ? (z(), j(ls, {
|
|
21687
21700
|
key: 9,
|
|
21688
21701
|
modelValue: Be.value,
|
|
21689
21702
|
"onUpdate:modelValue": i[52] ||= (e) => Be.value = e,
|
|
@@ -21698,7 +21711,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21698
21711
|
"hint-label",
|
|
21699
21712
|
"placeholder"
|
|
21700
21713
|
])) : M("", !0),
|
|
21701
|
-
|
|
21714
|
+
Sn.value ? (z(), j(d, {
|
|
21702
21715
|
key: 10,
|
|
21703
21716
|
modelValue: Ve.value,
|
|
21704
21717
|
"onUpdate:modelValue": i[53] ||= (e) => Ve.value = e,
|
|
@@ -21716,8 +21729,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21716
21729
|
])) : M("", !0),
|
|
21717
21730
|
e.playground ? M("", !0) : (z(), j(ls, {
|
|
21718
21731
|
key: 11,
|
|
21719
|
-
modelValue:
|
|
21720
|
-
"onUpdate:modelValue": i[54] ||= (e) =>
|
|
21732
|
+
modelValue: Bt.value,
|
|
21733
|
+
"onUpdate:modelValue": i[54] ||= (e) => Bt.value = e,
|
|
21721
21734
|
language: "css",
|
|
21722
21735
|
class: "mt-md mb-0",
|
|
21723
21736
|
label: H(r)("label.customCss"),
|
|
@@ -21732,7 +21745,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21732
21745
|
])]),
|
|
21733
21746
|
_: 1
|
|
21734
21747
|
}, 8, ["title"]),
|
|
21735
|
-
|
|
21748
|
+
Sn.value ? (z(), j(re, {
|
|
21736
21749
|
key: 2,
|
|
21737
21750
|
items: c.value.map((e) => ({
|
|
21738
21751
|
tab: e,
|
|
@@ -21836,17 +21849,17 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21836
21849
|
"placeholder",
|
|
21837
21850
|
"onUpdate:modelValue"
|
|
21838
21851
|
]),
|
|
21839
|
-
!Xe.value.includes(H(T).ShowContactForm) && !
|
|
21852
|
+
!Xe.value.includes(H(T).ShowContactForm) && !dn.value.has(H(T).ShowContactForm) ? (z(), j(PT, {
|
|
21840
21853
|
key: 0,
|
|
21841
|
-
"model-value":
|
|
21854
|
+
"model-value": Vt.value?.[e] ?? "",
|
|
21842
21855
|
name: `privacyPolicyNotice.${e}`,
|
|
21843
21856
|
lang: e,
|
|
21844
21857
|
label: H(r)("label.privacyPolicyNotice"),
|
|
21845
21858
|
placeholder: H(r)("placeholder.insert"),
|
|
21846
21859
|
"hint-label": H(r)("hint.privacyPolicyNotice"),
|
|
21847
21860
|
class: "mb-0",
|
|
21848
|
-
"onUpdate:modelValue": (t) =>
|
|
21849
|
-
...
|
|
21861
|
+
"onUpdate:modelValue": (t) => Vt.value = {
|
|
21862
|
+
...Vt.value,
|
|
21850
21863
|
[e]: t ?? ""
|
|
21851
21864
|
}
|
|
21852
21865
|
}, null, 8, [
|
|
@@ -21867,8 +21880,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21867
21880
|
legend: H(r)("label.fileUpload")
|
|
21868
21881
|
}, {
|
|
21869
21882
|
default: G(() => [I(KT, {
|
|
21870
|
-
modelValue:
|
|
21871
|
-
"onUpdate:modelValue": i[55] ||= (e) =>
|
|
21883
|
+
modelValue: lt.value,
|
|
21884
|
+
"onUpdate:modelValue": i[55] ||= (e) => lt.value = e,
|
|
21872
21885
|
disabled: e.playground,
|
|
21873
21886
|
name: "fileUploadEnabled",
|
|
21874
21887
|
switch: "",
|
|
@@ -21879,10 +21892,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21879
21892
|
"disabled",
|
|
21880
21893
|
"label",
|
|
21881
21894
|
"hint-label"
|
|
21882
|
-
]),
|
|
21895
|
+
]), lt.value ? (z(), N(k, { key: 0 }, [
|
|
21883
21896
|
I(d, {
|
|
21884
|
-
modelValue:
|
|
21885
|
-
"onUpdate:modelValue": i[56] ||= (e) =>
|
|
21897
|
+
modelValue: un.value,
|
|
21898
|
+
"onUpdate:modelValue": i[56] ||= (e) => un.value = e,
|
|
21886
21899
|
disabled: e.playground,
|
|
21887
21900
|
name: "fileUploadMaxFileSize",
|
|
21888
21901
|
type: "number",
|
|
@@ -21897,15 +21910,15 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21897
21910
|
"placeholder"
|
|
21898
21911
|
]),
|
|
21899
21912
|
I(o, {
|
|
21900
|
-
modelValue:
|
|
21901
|
-
"onUpdate:modelValue": i[57] ||= (e) =>
|
|
21913
|
+
modelValue: cn.value,
|
|
21914
|
+
"onUpdate:modelValue": i[57] ||= (e) => cn.value = e,
|
|
21902
21915
|
disabled: e.playground,
|
|
21903
21916
|
name: "fileUploadAllowedMimeTypes",
|
|
21904
21917
|
"select-hint-label": "",
|
|
21905
21918
|
"deselect-hint-label": "",
|
|
21906
21919
|
label: H(r)("label.fileUploadAllowedMimeTypes"),
|
|
21907
21920
|
placeholder: H(r)("placeholder.select"),
|
|
21908
|
-
options:
|
|
21921
|
+
options: on.value,
|
|
21909
21922
|
badges: "",
|
|
21910
21923
|
multiple: "",
|
|
21911
21924
|
strategy: "fixed"
|
|
@@ -21916,17 +21929,17 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21916
21929
|
"placeholder",
|
|
21917
21930
|
"options"
|
|
21918
21931
|
]),
|
|
21919
|
-
|
|
21932
|
+
ln.value ? (z(), j(qT, {
|
|
21920
21933
|
key: 0,
|
|
21921
21934
|
level: "warning",
|
|
21922
21935
|
class: "mb-md"
|
|
21923
21936
|
}, {
|
|
21924
|
-
default: G(() => [F(V(
|
|
21937
|
+
default: G(() => [F(V(ln.value), 1)]),
|
|
21925
21938
|
_: 1
|
|
21926
21939
|
})) : M("", !0),
|
|
21927
21940
|
P("div", sO, [I(d, {
|
|
21928
|
-
modelValue:
|
|
21929
|
-
"onUpdate:modelValue": i[58] ||= (e) =>
|
|
21941
|
+
modelValue: Rt.value,
|
|
21942
|
+
"onUpdate:modelValue": i[58] ||= (e) => Rt.value = e,
|
|
21930
21943
|
disabled: e.playground,
|
|
21931
21944
|
name: "fileUploadMaxFilesPerMessage",
|
|
21932
21945
|
type: "number",
|
|
@@ -21940,8 +21953,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21940
21953
|
"label",
|
|
21941
21954
|
"placeholder"
|
|
21942
21955
|
]), I(d, {
|
|
21943
|
-
modelValue:
|
|
21944
|
-
"onUpdate:modelValue": i[59] ||= (e) =>
|
|
21956
|
+
modelValue: zt.value,
|
|
21957
|
+
"onUpdate:modelValue": i[59] ||= (e) => zt.value = e,
|
|
21945
21958
|
disabled: e.playground,
|
|
21946
21959
|
name: "fileUploadMaxFilesPerChat",
|
|
21947
21960
|
type: "number",
|
|
@@ -21965,8 +21978,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21965
21978
|
default: G(() => [I(cD, {
|
|
21966
21979
|
"web-search": we.value,
|
|
21967
21980
|
"onUpdate:webSearch": i[60] ||= (e) => we.value = e,
|
|
21968
|
-
"active-provider":
|
|
21969
|
-
"fallback-models":
|
|
21981
|
+
"active-provider": xn.value,
|
|
21982
|
+
"fallback-models": Ht.value
|
|
21970
21983
|
}, null, 8, [
|
|
21971
21984
|
"web-search",
|
|
21972
21985
|
"active-provider",
|
|
@@ -21979,12 +21992,12 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21979
21992
|
legend: H(r)("label.toolWorkingSet")
|
|
21980
21993
|
}, {
|
|
21981
21994
|
default: G(() => [I(o, {
|
|
21982
|
-
modelValue:
|
|
21983
|
-
"onUpdate:modelValue": i[61] ||= (e) =>
|
|
21995
|
+
modelValue: ut.value,
|
|
21996
|
+
"onUpdate:modelValue": i[61] ||= (e) => ut.value = e,
|
|
21984
21997
|
disabled: e.playground,
|
|
21985
21998
|
name: "toolWorkingSetMode",
|
|
21986
21999
|
label: H(r)("label.toolWorkingSetMode"),
|
|
21987
|
-
options:
|
|
22000
|
+
options: sn.value,
|
|
21988
22001
|
unselectable: !1,
|
|
21989
22002
|
"select-hint-label": "",
|
|
21990
22003
|
"deselect-hint-label": "",
|
|
@@ -21997,12 +22010,12 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
21997
22010
|
"label",
|
|
21998
22011
|
"options"
|
|
21999
22012
|
]), I(qT, { class: "mt-md mb-0" }, {
|
|
22000
|
-
default: G(() => [F(V(H(r)(`hint.toolWorkingSetMode.${
|
|
22013
|
+
default: G(() => [F(V(H(r)(`hint.toolWorkingSetMode.${ut.value}`)), 1)]),
|
|
22001
22014
|
_: 1
|
|
22002
22015
|
})]),
|
|
22003
22016
|
_: 1
|
|
22004
22017
|
}, 8, ["legend"])) : M("", !0),
|
|
22005
|
-
P("div", cO, [P("p", lO, V(H(r)("hint.approvalChannels")), 1), (z(!0), N(k, null, ai(
|
|
22018
|
+
P("div", cO, [P("p", lO, V(H(r)("hint.approvalChannels")), 1), (z(!0), N(k, null, ai(pn.value, (t) => (z(), N(k, { key: t.key }, [Sn.value || !t.tools.every((e) => hn(e)) ? (z(), j(fs, {
|
|
22006
22019
|
key: 0,
|
|
22007
22020
|
class: "mb-0"
|
|
22008
22021
|
}, {
|
|
@@ -22010,15 +22023,15 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22010
22023
|
name: t.icon,
|
|
22011
22024
|
class: "text-16"
|
|
22012
22025
|
}, null, 8, ["name"]), F(" " + V(H(r)(`toolGroup.${t.key}`)), 1)])]),
|
|
22013
|
-
default: G(() => [P("p", dO, V(H(r)(`toolGroupInfo.${t.key}`)), 1), P("div", fO, [(z(!0), N(k, null, ai(t.tools, (t) => (z(), N(k, { key: t }, [!
|
|
22026
|
+
default: G(() => [P("p", dO, V(H(r)(`toolGroupInfo.${t.key}`)), 1), P("div", fO, [(z(!0), N(k, null, ai(t.tools, (t) => (z(), N(k, { key: t }, [!hn(t) || Sn.value ? (z(), N(k, { key: 0 }, [I(m, {
|
|
22014
22027
|
class: "flex-nowrap border-t border-surface-3 mr-0 px-md pt-md",
|
|
22015
|
-
"model-value":
|
|
22028
|
+
"model-value": D(t),
|
|
22016
22029
|
name: `tool.${t}`,
|
|
22017
22030
|
value: !0,
|
|
22018
22031
|
"unchecked-value": !1,
|
|
22019
|
-
disabled: !
|
|
22032
|
+
disabled: !mn(t),
|
|
22020
22033
|
switch: "",
|
|
22021
|
-
"onUpdate:modelValue": (e) =>
|
|
22034
|
+
"onUpdate:modelValue": (e) => bn(t, e)
|
|
22022
22035
|
}, {
|
|
22023
22036
|
default: G(() => [P("div", pO, [
|
|
22024
22037
|
P("div", mO, [
|
|
@@ -22030,7 +22043,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22030
22043
|
default: G(() => [F(V(H(r)("label.deprecated")), 1)]),
|
|
22031
22044
|
_: 1
|
|
22032
22045
|
})) : M("", !0),
|
|
22033
|
-
|
|
22046
|
+
_n(t) ? (z(), j(HE, { key: 1 })) : M("", !0)
|
|
22034
22047
|
]),
|
|
22035
22048
|
P("small", gO, V(H(r)(`hint.tool.${t}`)), 1),
|
|
22036
22049
|
H(le)(t) && H(ae)(t) ? (z(), N("div", {
|
|
@@ -22063,16 +22076,16 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22063
22076
|
"name",
|
|
22064
22077
|
"disabled",
|
|
22065
22078
|
"onUpdate:modelValue"
|
|
22066
|
-
]),
|
|
22079
|
+
]), O(t) && D(t) ? (z(), j(te, {
|
|
22067
22080
|
key: 0,
|
|
22068
22081
|
title: H(r)("label.advancedOptions"),
|
|
22069
22082
|
modifiers: "details",
|
|
22070
22083
|
class: "border border-surface-3 rounded-lg mx-md mb-md"
|
|
22071
22084
|
}, {
|
|
22072
22085
|
default: G(() => [P("div", vO, [
|
|
22073
|
-
t === H(T).ShowForm ? (z(), N(
|
|
22074
|
-
modelValue:
|
|
22075
|
-
"onUpdate:modelValue": i[62] ||= (e) =>
|
|
22086
|
+
t === H(T).ShowForm ? (z(), N("div", yO, [I(d, {
|
|
22087
|
+
modelValue: rt.value,
|
|
22088
|
+
"onUpdate:modelValue": i[62] ||= (e) => rt.value = e,
|
|
22076
22089
|
name: "formMaxSteps",
|
|
22077
22090
|
type: "number",
|
|
22078
22091
|
min: 1,
|
|
@@ -22085,8 +22098,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22085
22098
|
"label",
|
|
22086
22099
|
"disabled"
|
|
22087
22100
|
]), I(d, {
|
|
22088
|
-
modelValue:
|
|
22089
|
-
"onUpdate:modelValue": i[63] ||= (e) =>
|
|
22101
|
+
modelValue: it.value,
|
|
22102
|
+
"onUpdate:modelValue": i[63] ||= (e) => it.value = e,
|
|
22090
22103
|
name: "formMaxOptionsPerStep",
|
|
22091
22104
|
type: "number",
|
|
22092
22105
|
min: 2,
|
|
@@ -22098,11 +22111,11 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22098
22111
|
"modelValue",
|
|
22099
22112
|
"label",
|
|
22100
22113
|
"disabled"
|
|
22101
|
-
])]
|
|
22114
|
+
])])) : M("", !0),
|
|
22102
22115
|
t === H(T).UserMemory ? (z(), j(KT, {
|
|
22103
22116
|
key: 1,
|
|
22104
|
-
modelValue:
|
|
22105
|
-
"onUpdate:modelValue": i[64] ||= (e) =>
|
|
22117
|
+
modelValue: tt.value,
|
|
22118
|
+
"onUpdate:modelValue": i[64] ||= (e) => tt.value = e,
|
|
22106
22119
|
name: "useAllUserKb",
|
|
22107
22120
|
label: H(r)("agent.tool.useAllUserKb"),
|
|
22108
22121
|
"hint-label": H(r)("hint.tool.useAllUserKb"),
|
|
@@ -22115,8 +22128,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22115
22128
|
])) : M("", !0),
|
|
22116
22129
|
t === H(T).SearchInUserFiles ? (z(), j(KT, {
|
|
22117
22130
|
key: 2,
|
|
22118
|
-
modelValue:
|
|
22119
|
-
"onUpdate:modelValue": i[65] ||= (e) =>
|
|
22131
|
+
modelValue: nt.value,
|
|
22132
|
+
"onUpdate:modelValue": i[65] ||= (e) => nt.value = e,
|
|
22120
22133
|
name: "useAllUserFiles",
|
|
22121
22134
|
label: H(r)("agent.tool.useAllUserFiles"),
|
|
22122
22135
|
"hint-label": H(r)("hint.tool.useAllUserFiles"),
|
|
@@ -22127,15 +22140,43 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22127
22140
|
"hint-label",
|
|
22128
22141
|
"disabled"
|
|
22129
22142
|
])) : M("", !0),
|
|
22130
|
-
H(
|
|
22143
|
+
t === H(T).Spreadsheet ? (z(), j(KT, {
|
|
22131
22144
|
key: 3,
|
|
22132
|
-
|
|
22145
|
+
modelValue: Qe.value,
|
|
22146
|
+
"onUpdate:modelValue": i[66] ||= (e) => Qe.value = e,
|
|
22147
|
+
name: "createSpreadsheetEnabled",
|
|
22148
|
+
label: H(r)("agent.tool.createSpreadsheet"),
|
|
22149
|
+
"hint-label": H(r)("hint.tool.createSpreadsheet"),
|
|
22150
|
+
disabled: e.playground
|
|
22151
|
+
}, null, 8, [
|
|
22152
|
+
"modelValue",
|
|
22153
|
+
"label",
|
|
22154
|
+
"hint-label",
|
|
22155
|
+
"disabled"
|
|
22156
|
+
])) : M("", !0),
|
|
22157
|
+
t === H(T).WordDocument ? (z(), j(KT, {
|
|
22158
|
+
key: 4,
|
|
22159
|
+
modelValue: $e.value,
|
|
22160
|
+
"onUpdate:modelValue": i[67] ||= (e) => $e.value = e,
|
|
22161
|
+
name: "createWordDocumentEnabled",
|
|
22162
|
+
label: H(r)("agent.tool.createWordDocument"),
|
|
22163
|
+
"hint-label": H(r)("hint.tool.createWordDocument"),
|
|
22164
|
+
disabled: e.playground
|
|
22165
|
+
}, null, 8, [
|
|
22166
|
+
"modelValue",
|
|
22167
|
+
"label",
|
|
22168
|
+
"hint-label",
|
|
22169
|
+
"disabled"
|
|
22170
|
+
])) : M("", !0),
|
|
22171
|
+
H(se)(t) ? (z(), j(KT, {
|
|
22172
|
+
key: 5,
|
|
22173
|
+
"model-value": _n(t),
|
|
22133
22174
|
name: `tool.${t}.approval`,
|
|
22134
22175
|
label: H(r)("label.toolRequiresApproval"),
|
|
22135
22176
|
"hint-label": H(r)("hint.toolRequiresApproval"),
|
|
22136
22177
|
disabled: e.playground,
|
|
22137
22178
|
class: "mb-0",
|
|
22138
|
-
"onUpdate:modelValue": (e) =>
|
|
22179
|
+
"onUpdate:modelValue": (e) => yn(t, e)
|
|
22139
22180
|
}, null, 8, [
|
|
22140
22181
|
"model-value",
|
|
22141
22182
|
"name",
|
|
@@ -22150,8 +22191,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22150
22191
|
_: 2
|
|
22151
22192
|
}, 1024)) : M("", !0)], 64))), 128))])
|
|
22152
22193
|
]),
|
|
22153
|
-
"panel::embed": G(() => [P("div",
|
|
22154
|
-
|
|
22194
|
+
"panel::embed": G(() => [P("div", bO, [
|
|
22195
|
+
qt.value.includes(H(Ce).Widget) ? M("", !0) : (z(), j(qT, {
|
|
22155
22196
|
key: 0,
|
|
22156
22197
|
level: "warning",
|
|
22157
22198
|
class: "mb-0"
|
|
@@ -22159,7 +22200,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22159
22200
|
default: G(() => [F(V(H(r)("hint.channelWidgetDisabled")), 1)]),
|
|
22160
22201
|
_: 1
|
|
22161
22202
|
})),
|
|
22162
|
-
|
|
22203
|
+
qt.value.includes(H(Ce).App) ? M("", !0) : (z(), j(qT, {
|
|
22163
22204
|
key: 1,
|
|
22164
22205
|
level: "warning",
|
|
22165
22206
|
class: "mb-0"
|
|
@@ -22167,19 +22208,19 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22167
22208
|
default: G(() => [F(V(H(r)("hint.channelAppDisabled")), 1)]),
|
|
22168
22209
|
_: 1
|
|
22169
22210
|
})),
|
|
22170
|
-
P("div", null, [P("h3",
|
|
22171
|
-
I(fD, { source:
|
|
22211
|
+
P("div", null, [P("h3", xO, V(H(r)("label.chatWidget")), 1), P("p", SO, V(H(r)("hint.embedCode")), 1)]),
|
|
22212
|
+
I(fD, { source: Dn.value }, {
|
|
22172
22213
|
default: G(() => [I(Ot, {
|
|
22173
|
-
code:
|
|
22214
|
+
code: Dn.value,
|
|
22174
22215
|
language: "html",
|
|
22175
22216
|
line: "",
|
|
22176
22217
|
class: "text-12 overflow-hidden font-mono leading-snug bg-surface-1"
|
|
22177
22218
|
}, null, 8, ["code"])]),
|
|
22178
22219
|
_: 1
|
|
22179
22220
|
}, 8, ["source"]),
|
|
22180
|
-
e.playground ? M("", !0) : (z(), N("div",
|
|
22181
|
-
modelValue:
|
|
22182
|
-
"onUpdate:modelValue": i[
|
|
22221
|
+
e.playground ? M("", !0) : (z(), N("div", CO, [I(d, {
|
|
22222
|
+
modelValue: at.value,
|
|
22223
|
+
"onUpdate:modelValue": i[68] ||= (e) => at.value = e,
|
|
22183
22224
|
name: "widgetUrl",
|
|
22184
22225
|
type: "url",
|
|
22185
22226
|
icon: "ri:links-line",
|
|
@@ -22194,10 +22235,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22194
22235
|
modifiers: "details",
|
|
22195
22236
|
class: "border border-surface-3 rounded-lg mb-0"
|
|
22196
22237
|
}, {
|
|
22197
|
-
default: G(() => [P("div",
|
|
22238
|
+
default: G(() => [P("div", wO, [
|
|
22198
22239
|
I(d, {
|
|
22199
|
-
modelValue:
|
|
22200
|
-
"onUpdate:modelValue": i[
|
|
22240
|
+
modelValue: ot.value,
|
|
22241
|
+
"onUpdate:modelValue": i[69] ||= (e) => ot.value = e,
|
|
22201
22242
|
name: "loadDelay",
|
|
22202
22243
|
type: "number",
|
|
22203
22244
|
step: "100",
|
|
@@ -22213,8 +22254,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22213
22254
|
"hint-label"
|
|
22214
22255
|
]),
|
|
22215
22256
|
I(o, {
|
|
22216
|
-
modelValue:
|
|
22217
|
-
"onUpdate:modelValue": i[
|
|
22257
|
+
modelValue: st.value,
|
|
22258
|
+
"onUpdate:modelValue": i[70] ||= (e) => st.value = e,
|
|
22218
22259
|
name: "loaderStrategy",
|
|
22219
22260
|
"select-hint-label": "",
|
|
22220
22261
|
"deselect-hint-label": "",
|
|
@@ -22240,48 +22281,48 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22240
22281
|
"label",
|
|
22241
22282
|
"options"
|
|
22242
22283
|
]),
|
|
22243
|
-
|
|
22284
|
+
st.value ? (z(), j(qT, {
|
|
22244
22285
|
key: 0,
|
|
22245
22286
|
class: "mt-md mb-0"
|
|
22246
22287
|
}, {
|
|
22247
|
-
default: G(() => [F(V(H(r)(`hint.loaderStrategy.${
|
|
22288
|
+
default: G(() => [F(V(H(r)(`hint.loaderStrategy.${st.value}`)), 1)]),
|
|
22248
22289
|
_: 1
|
|
22249
22290
|
})) : M("", !0)
|
|
22250
22291
|
])]),
|
|
22251
22292
|
_: 1
|
|
22252
22293
|
}, 8, ["title"])])),
|
|
22253
|
-
P("div", null, [P("h3",
|
|
22254
|
-
I(fD, { source:
|
|
22294
|
+
P("div", null, [P("h3", TO, V(H(r)("label.iframe")), 1), P("p", EO, V(H(r)("hint.embedIframe")), 1)]),
|
|
22295
|
+
I(fD, { source: On.value }, {
|
|
22255
22296
|
default: G(() => [I(Ot, {
|
|
22256
|
-
code:
|
|
22297
|
+
code: On.value,
|
|
22257
22298
|
language: "html",
|
|
22258
22299
|
line: "",
|
|
22259
22300
|
class: "text-12 overflow-hidden font-mono leading-snug bg-surface-1"
|
|
22260
22301
|
}, null, 8, ["code"])]),
|
|
22261
22302
|
_: 1
|
|
22262
22303
|
}, 8, ["source"]),
|
|
22263
|
-
P("div", null, [P("h4",
|
|
22264
|
-
I(fD, { source:
|
|
22304
|
+
P("div", null, [P("h4", DO, V(H(r)("label.preview")), 1), P("p", OO, V(H(r)("hint.embedPreview")), 1)]),
|
|
22305
|
+
I(fD, { source: En.value }, {
|
|
22265
22306
|
actions: G(() => [I(s, {
|
|
22266
22307
|
modifiers: "action-quiet-small",
|
|
22267
22308
|
icon: "ri:eye-line",
|
|
22268
22309
|
label: H(r)("action.view"),
|
|
22269
|
-
href:
|
|
22310
|
+
href: En.value,
|
|
22270
22311
|
target: "_blank"
|
|
22271
22312
|
}, null, 8, ["label", "href"])]),
|
|
22272
|
-
default: G(() => [P("code",
|
|
22313
|
+
default: G(() => [P("code", kO, V(En.value), 1)]),
|
|
22273
22314
|
_: 1
|
|
22274
22315
|
}, 8, ["source"])
|
|
22275
22316
|
])]),
|
|
22276
|
-
"panel::site": G(() => [P("div",
|
|
22317
|
+
"panel::site": G(() => [P("div", AO, [I(fs, {
|
|
22277
22318
|
legend: H(r)("label.externalContext"),
|
|
22278
22319
|
class: "mb-0"
|
|
22279
22320
|
}, {
|
|
22280
22321
|
default: G(() => [
|
|
22281
|
-
P("p",
|
|
22322
|
+
P("p", jO, V(H(r)("hint.externalContextSchema")), 1),
|
|
22282
22323
|
I(KT, {
|
|
22283
|
-
modelValue:
|
|
22284
|
-
"onUpdate:modelValue": i[
|
|
22324
|
+
modelValue: rn.value,
|
|
22325
|
+
"onUpdate:modelValue": i[71] ||= (e) => rn.value = e,
|
|
22285
22326
|
name: "externalContextEnabled",
|
|
22286
22327
|
switch: "",
|
|
22287
22328
|
label: H(r)("label.externalContextSchema"),
|
|
@@ -22291,27 +22332,27 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22291
22332
|
"label",
|
|
22292
22333
|
"hint-label"
|
|
22293
22334
|
]),
|
|
22294
|
-
|
|
22335
|
+
rn.value ? (z(), j(s, {
|
|
22295
22336
|
key: 0,
|
|
22296
22337
|
modifiers: "action-small",
|
|
22297
22338
|
icon: "ri:code-line",
|
|
22298
22339
|
class: "ml-auto",
|
|
22299
22340
|
label: H(r)("action.editSchema"),
|
|
22300
|
-
onClick: i[
|
|
22341
|
+
onClick: i[72] ||= (e) => en.value = !0
|
|
22301
22342
|
}, null, 8, ["label"])) : M("", !0),
|
|
22302
22343
|
I(be, {
|
|
22303
|
-
modelValue:
|
|
22304
|
-
"onUpdate:modelValue": i[
|
|
22344
|
+
modelValue: en.value,
|
|
22345
|
+
"onUpdate:modelValue": i[75] ||= (e) => en.value = e,
|
|
22305
22346
|
title: H(r)("label.externalContextSchema"),
|
|
22306
22347
|
"keep-open": ""
|
|
22307
22348
|
}, {
|
|
22308
22349
|
footer: G(() => [I(s, {
|
|
22309
22350
|
label: H(r)("action.close"),
|
|
22310
|
-
onClick: i[
|
|
22351
|
+
onClick: i[74] ||= (e) => en.value = !1
|
|
22311
22352
|
}, null, 8, ["label"])]),
|
|
22312
22353
|
default: G(() => [I(Ns, {
|
|
22313
|
-
modelValue:
|
|
22314
|
-
"onUpdate:modelValue": i[
|
|
22354
|
+
modelValue: Jt.value,
|
|
22355
|
+
"onUpdate:modelValue": i[73] ||= (e) => Jt.value = e,
|
|
22315
22356
|
label: H(r)("label.externalContextSchema"),
|
|
22316
22357
|
placeholder: H(r)("placeholder.insert")
|
|
22317
22358
|
}, null, 8, [
|
|
@@ -22324,20 +22365,20 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22324
22365
|
]),
|
|
22325
22366
|
_: 1
|
|
22326
22367
|
}, 8, ["legend"]), e.features?.hostTools === !0 ? (z(), N(k, { key: 0 }, [I(gD, {
|
|
22327
|
-
modelValue:
|
|
22328
|
-
"onUpdate:modelValue": i[
|
|
22368
|
+
modelValue: Yt.value,
|
|
22369
|
+
"onUpdate:modelValue": i[76] ||= (e) => Yt.value = e,
|
|
22329
22370
|
"trusted-origins": qe.value.origins
|
|
22330
22371
|
}, null, 8, ["modelValue", "trusted-origins"]), I(xD, {
|
|
22331
|
-
modelValue:
|
|
22332
|
-
"onUpdate:modelValue": i[
|
|
22372
|
+
modelValue: Xt.value,
|
|
22373
|
+
"onUpdate:modelValue": i[77] ||= (e) => Xt.value = e,
|
|
22333
22374
|
"trusted-origins": qe.value.origins
|
|
22334
22375
|
}, null, 8, ["modelValue", "trusted-origins"])], 64)) : M("", !0)])]),
|
|
22335
22376
|
"panel::security": G(() => [
|
|
22336
22377
|
I(fs, { legend: H(r)("label.rateLimits") }, {
|
|
22337
|
-
default: G(() => [P("div",
|
|
22378
|
+
default: G(() => [P("div", MO, [
|
|
22338
22379
|
I(d, {
|
|
22339
22380
|
modelValue: Ue.value,
|
|
22340
|
-
"onUpdate:modelValue": i[
|
|
22381
|
+
"onUpdate:modelValue": i[78] ||= (e) => Ue.value = e,
|
|
22341
22382
|
name: "minuteRateLimit",
|
|
22342
22383
|
type: "number",
|
|
22343
22384
|
label: H(r)("label.minuteRateLimit"),
|
|
@@ -22354,7 +22395,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22354
22395
|
]),
|
|
22355
22396
|
I(d, {
|
|
22356
22397
|
modelValue: We.value,
|
|
22357
|
-
"onUpdate:modelValue": i[
|
|
22398
|
+
"onUpdate:modelValue": i[79] ||= (e) => We.value = e,
|
|
22358
22399
|
name: "hourRateLimit",
|
|
22359
22400
|
type: "number",
|
|
22360
22401
|
label: H(r)("label.hourRateLimit"),
|
|
@@ -22371,7 +22412,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22371
22412
|
]),
|
|
22372
22413
|
I(d, {
|
|
22373
22414
|
modelValue: Ge.value,
|
|
22374
|
-
"onUpdate:modelValue": i[
|
|
22415
|
+
"onUpdate:modelValue": i[80] ||= (e) => Ge.value = e,
|
|
22375
22416
|
name: "dayRateLimit",
|
|
22376
22417
|
type: "number",
|
|
22377
22418
|
label: H(r)("label.dayRateLimit"),
|
|
@@ -22388,7 +22429,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22388
22429
|
]),
|
|
22389
22430
|
I(d, {
|
|
22390
22431
|
modelValue: Ke.value,
|
|
22391
|
-
"onUpdate:modelValue": i[
|
|
22432
|
+
"onUpdate:modelValue": i[81] ||= (e) => Ke.value = e,
|
|
22392
22433
|
name: "monthRateLimit",
|
|
22393
22434
|
type: "number",
|
|
22394
22435
|
label: H(r)("label.monthRateLimit"),
|
|
@@ -22408,7 +22449,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22408
22449
|
}, 8, ["legend"]),
|
|
22409
22450
|
I(HT, {
|
|
22410
22451
|
modelValue: qe.value.origins,
|
|
22411
|
-
"onUpdate:modelValue": i[
|
|
22452
|
+
"onUpdate:modelValue": i[82] ||= (e) => qe.value.origins = e,
|
|
22412
22453
|
name: "trustedOrigins",
|
|
22413
22454
|
label: H(r)("label.trustedOrigins"),
|
|
22414
22455
|
placeholder: H(r)("placeholder.noTrustedOrigins"),
|
|
@@ -22446,7 +22487,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22446
22487
|
]),
|
|
22447
22488
|
I(HT, {
|
|
22448
22489
|
modelValue: Ye.value,
|
|
22449
|
-
"onUpdate:modelValue": i[
|
|
22490
|
+
"onUpdate:modelValue": i[83] ||= (e) => Ye.value = e,
|
|
22450
22491
|
name: "imageHosts",
|
|
22451
22492
|
label: H(r)("label.imageHosts"),
|
|
22452
22493
|
placeholder: H(r)("placeholder.noImageHosts"),
|
|
@@ -22482,13 +22523,13 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22482
22523
|
"invalid",
|
|
22483
22524
|
"invalid-label"
|
|
22484
22525
|
]),
|
|
22485
|
-
P("p",
|
|
22526
|
+
P("p", NO, V(H(r)("label.imageHostsHint")), 1)
|
|
22486
22527
|
]),
|
|
22487
22528
|
_: 1
|
|
22488
22529
|
}, 8, ["items"]), oi(n.$slots, "default")], 512);
|
|
22489
22530
|
};
|
|
22490
22531
|
}
|
|
22491
|
-
}),
|
|
22532
|
+
}), FO = ["aria-current", "title"], IO = /* @__PURE__ */ L({
|
|
22492
22533
|
__name: "PkChatSidebarConversationItem",
|
|
22493
22534
|
props: /*@__PURE__*/ qr({
|
|
22494
22535
|
conversation: {},
|
|
@@ -22552,7 +22593,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22552
22593
|
"aria-current": e.active ? "page" : void 0,
|
|
22553
22594
|
title: o.value,
|
|
22554
22595
|
onClick: n[4] ||= (e) => i("select")
|
|
22555
|
-
}, V(o.value), 9,
|
|
22596
|
+
}, V(o.value), 9, FO),
|
|
22556
22597
|
e.answering ? (z(), j(u, {
|
|
22557
22598
|
key: 0,
|
|
22558
22599
|
name: "loading-loop",
|
|
@@ -22595,19 +22636,19 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22595
22636
|
], 64))], 2);
|
|
22596
22637
|
};
|
|
22597
22638
|
}
|
|
22598
|
-
}),
|
|
22639
|
+
}), LO = ["inert", "aria-label"], RO = { class: "pk-chat-sidebar__header" }, zO = ["title"], BO = { class: "pk-chat-sidebar__actions" }, VO = {
|
|
22599
22640
|
key: 0,
|
|
22600
22641
|
class: "pk-chat-sidebar__list scrollbar-thin vv-skeleton"
|
|
22601
|
-
},
|
|
22642
|
+
}, HO = {
|
|
22602
22643
|
key: 1,
|
|
22603
22644
|
class: "pk-chat-sidebar__list scrollbar-thin"
|
|
22604
|
-
},
|
|
22645
|
+
}, UO = {
|
|
22605
22646
|
key: 0,
|
|
22606
22647
|
class: "pk-chat-sidebar__no-results"
|
|
22607
|
-
},
|
|
22648
|
+
}, WO = { class: "pk-chat-sidebar__group-label" }, GO = {
|
|
22608
22649
|
key: 2,
|
|
22609
22650
|
class: "pk-chat-sidebar__footer"
|
|
22610
|
-
},
|
|
22651
|
+
}, KO = 864e5, qO = /* @__PURE__ */ L({
|
|
22611
22652
|
__name: "PkChatSidebar",
|
|
22612
22653
|
props: /*@__PURE__*/ qr({
|
|
22613
22654
|
agentId: {},
|
|
@@ -22643,7 +22684,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22643
22684
|
};
|
|
22644
22685
|
for (let n of w.value) {
|
|
22645
22686
|
let r = n.lastMessageAt ? new Date(n.lastMessageAt).getTime() : 0;
|
|
22646
|
-
r >= e ? t.today.push(n) : r >= e -
|
|
22687
|
+
r >= e ? t.today.push(n) : r >= e - KO ? t.yesterday.push(n) : r >= e - 7 * KO ? t.last7Days.push(n) : r >= e - 30 * KO ? t.last30Days.push(n) : t.older.push(n);
|
|
22647
22688
|
}
|
|
22648
22689
|
return Object.entries(t).filter(([, e]) => e.length > 0).map(([e, t]) => ({
|
|
22649
22690
|
key: e,
|
|
@@ -22686,7 +22727,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22686
22727
|
"aria-label": H(s)("label.conversations"),
|
|
22687
22728
|
onKeydown: le
|
|
22688
22729
|
}, [
|
|
22689
|
-
P("header",
|
|
22730
|
+
P("header", RO, [
|
|
22690
22731
|
e.organizationLogo || e.organizationName ? (z(), j(Kn, {
|
|
22691
22732
|
key: 0,
|
|
22692
22733
|
modifiers: "surface ring",
|
|
@@ -22698,7 +22739,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22698
22739
|
key: 1,
|
|
22699
22740
|
class: "pk-chat-sidebar__org-name",
|
|
22700
22741
|
title: e.organizationName
|
|
22701
|
-
}, V(e.organizationName), 9,
|
|
22742
|
+
}, V(e.organizationName), 9, zO)) : M("", !0),
|
|
22702
22743
|
I(a, {
|
|
22703
22744
|
class: "ml-auto",
|
|
22704
22745
|
icon: H(i) ? "ri:close-line" : "ri:sidebar-fold-line",
|
|
@@ -22712,7 +22753,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22712
22753
|
"title"
|
|
22713
22754
|
])
|
|
22714
22755
|
]),
|
|
22715
|
-
P("div",
|
|
22756
|
+
P("div", BO, [
|
|
22716
22757
|
e.agents ? (z(), j(RE, {
|
|
22717
22758
|
key: 0,
|
|
22718
22759
|
agents: e.agents,
|
|
@@ -22740,13 +22781,13 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22740
22781
|
"placeholder"
|
|
22741
22782
|
])
|
|
22742
22783
|
]),
|
|
22743
|
-
H(u) && H(l).length === 0 ? (z(), N("div",
|
|
22784
|
+
H(u) && H(l).length === 0 ? (z(), N("div", VO, [(z(), N(k, null, ai(6, (e) => P("div", {
|
|
22744
22785
|
key: e,
|
|
22745
22786
|
class: "vv-skeleton__item rounded-md h-36"
|
|
22746
|
-
})), 64))])) : (z(), N("nav",
|
|
22787
|
+
})), 64))])) : (z(), N("nav", HO, [ne.value.length === 0 ? (z(), N("p", UO, V(H(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, ai(ne.value, (t) => (z(), N("div", {
|
|
22747
22788
|
key: t.key,
|
|
22748
22789
|
class: "pk-chat-sidebar__group"
|
|
22749
|
-
}, [P("span",
|
|
22790
|
+
}, [P("span", WO, V(t.label), 1), (z(!0), N(k, null, ai(t.items, (t) => (z(), j(IO, {
|
|
22750
22791
|
key: t.id,
|
|
22751
22792
|
"editing-title": H(v),
|
|
22752
22793
|
"onUpdate:editingTitle": n[4] ||= (e) => Gr(v) ? v.value = e : null,
|
|
@@ -22777,44 +22818,44 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22777
22818
|
"onDelete",
|
|
22778
22819
|
"onFiles"
|
|
22779
22820
|
]))), 128))]))), 128))])),
|
|
22780
|
-
t.$slots.footer ? (z(), N("footer",
|
|
22781
|
-
], 46,
|
|
22821
|
+
t.$slots.footer ? (z(), N("footer", GO, [oi(t.$slots, "footer")])) : M("", !0)
|
|
22822
|
+
], 46, LO)], 64);
|
|
22782
22823
|
};
|
|
22783
22824
|
}
|
|
22784
|
-
}),
|
|
22825
|
+
}), JO = { class: "pk-retry-countdown" }, YO = /* @__PURE__ */ L({
|
|
22785
22826
|
__name: "PkRetryCountdown",
|
|
22786
22827
|
props: {
|
|
22787
22828
|
countdown: {},
|
|
22788
22829
|
maxSeconds: {}
|
|
22789
22830
|
},
|
|
22790
22831
|
setup(e) {
|
|
22791
|
-
return (e, t) => (z(), N("div",
|
|
22832
|
+
return (e, t) => (z(), N("div", JO, [...t[0] ||= [Hr("<div class=\"pk-retry-countdown__loader\"><div class=\"pk-retry-countdown__bubble\"><div class=\"pk-retry-countdown__typing\"><span class=\"pk-retry-countdown__dot\"></span><span class=\"pk-retry-countdown__dot\"></span><span class=\"pk-retry-countdown__dot\"></span></div></div></div>", 1)]]));
|
|
22792
22833
|
}
|
|
22793
|
-
}),
|
|
22834
|
+
}), XO = {
|
|
22794
22835
|
key: 0,
|
|
22795
22836
|
class: "pk-tool-selection"
|
|
22796
|
-
},
|
|
22837
|
+
}, ZO = { class: "text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8" }, QO = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, $O = { class: "font-semibold text-12 truncate" }, ek = {
|
|
22797
22838
|
key: 0,
|
|
22798
22839
|
class: "text-10 text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
22799
|
-
},
|
|
22840
|
+
}, tk = ["title"], nk = { class: "font-mono text-10 text-word-3 truncate ml-auto" }, rk = { class: "border rounded-b border-surface-3" }, ik = {
|
|
22800
22841
|
key: 0,
|
|
22801
22842
|
class: "flex flex-col gap-6 p-8 border-b border-surface-3 text-12 text-word-2"
|
|
22802
|
-
},
|
|
22843
|
+
}, ak = { key: 0 }, ok = {
|
|
22803
22844
|
key: 1,
|
|
22804
22845
|
class: "flex items-center gap-4"
|
|
22805
|
-
},
|
|
22846
|
+
}, sk = { class: "flex flex-wrap items-center justify-between gap-x-12 gap-y-4 p-8 border-b border-surface-3 text-12 text-word-3" }, ck = ["title"], lk = { class: "flex shrink-0" }, uk = { class: "pk-tool-selection__label" }, dk = { class: "tabular-nums truncate" }, fk = { class: "pk-tool-selection__groups" }, pk = { class: "flex flex-col gap-4 min-w-0" }, mk = { class: "flex items-center gap-6 min-w-0" }, hk = { class: "pk-tool-selection__label" }, gk = ["title"], _k = { class: "flex flex-wrap items-center gap-x-6 gap-y-2 text-10 text-word-3" }, vk = { key: 0 }, yk = {
|
|
22806
22847
|
key: 1,
|
|
22807
22848
|
class: "text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
22808
|
-
},
|
|
22849
|
+
}, bk = {
|
|
22809
22850
|
key: 2,
|
|
22810
22851
|
class: "pk-tool-selection__label"
|
|
22811
|
-
},
|
|
22852
|
+
}, xk = {
|
|
22812
22853
|
key: 3,
|
|
22813
22854
|
class: "pk-tool-selection__tag rounded px-4 py-2"
|
|
22814
|
-
},
|
|
22855
|
+
}, Sk = {
|
|
22815
22856
|
key: 4,
|
|
22816
22857
|
class: "pk-tool-selection__tag rounded px-4 py-2"
|
|
22817
|
-
},
|
|
22858
|
+
}, Ck = ["title"], wk = { class: "text-10 text-word-2 tabular-nums" }, Tk = /* @__PURE__ */ L({
|
|
22818
22859
|
__name: "PkToolSelection",
|
|
22819
22860
|
props: { message: {} },
|
|
22820
22861
|
setup(e) {
|
|
@@ -22856,32 +22897,32 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22856
22897
|
});
|
|
22857
22898
|
return (e, t) => {
|
|
22858
22899
|
let s = Ar;
|
|
22859
|
-
return a.value ? (z(), N("section",
|
|
22860
|
-
P("div",
|
|
22900
|
+
return a.value ? (z(), N("section", XO, [P("header", ZO, [
|
|
22901
|
+
P("div", QO, [I(s, {
|
|
22861
22902
|
name: "ri:filter-3-line",
|
|
22862
22903
|
class: "w-12 h-12"
|
|
22863
22904
|
})]),
|
|
22864
|
-
P("strong",
|
|
22865
|
-
a.value.decision.failed ? (z(), N("span",
|
|
22905
|
+
P("strong", $O, V(H(n)("toolSelection.title")), 1),
|
|
22906
|
+
a.value.decision.failed ? (z(), N("span", ek, V(H(n)("toolSelection.failed")), 1)) : (z(), N("span", {
|
|
22866
22907
|
key: 1,
|
|
22867
22908
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
|
|
22868
22909
|
title: H(n)(`toolSelection.modeHint.${a.value.decision.mode}`)
|
|
22869
|
-
}, V(H(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9,
|
|
22870
|
-
P("code",
|
|
22871
|
-
]), P("div",
|
|
22872
|
-
a.value.decision.failed || a.value.missed > 0 ? (z(), N("div",
|
|
22910
|
+
}, V(H(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9, tk)),
|
|
22911
|
+
P("code", nk, V(H(Le)), 1)
|
|
22912
|
+
]), P("div", rk, [
|
|
22913
|
+
a.value.decision.failed || a.value.missed > 0 ? (z(), N("div", ik, [a.value.decision.failed ? (z(), N("p", ak, V(H(n)("toolSelection.leadFailed", { budget: H(r)(a.value.decision.budgetMs, "integer") })), 1)) : M("", !0), a.value.missed > 0 ? (z(), N("p", ok, [I(s, {
|
|
22873
22914
|
name: "ri:error-warning-line",
|
|
22874
22915
|
class: "shrink-0 text-warning-darken-3"
|
|
22875
22916
|
}), F(" " + V(H(n)(a.value.decision.mode === "active" ? "toolSelection.missedActive" : "toolSelection.missedShadow", a.value.missed)), 1)])) : M("", !0)])) : M("", !0),
|
|
22876
|
-
P("dl",
|
|
22917
|
+
P("dl", sk, [(z(!0), N(k, null, ai(o.value, (e) => (z(), N("div", {
|
|
22877
22918
|
key: e.icon,
|
|
22878
22919
|
class: "flex items-center gap-6 min-w-0",
|
|
22879
22920
|
title: e.label
|
|
22880
|
-
}, [P("dt",
|
|
22921
|
+
}, [P("dt", lk, [I(s, {
|
|
22881
22922
|
name: e.icon,
|
|
22882
22923
|
"aria-hidden": "true"
|
|
22883
|
-
}, null, 8, ["name"]), P("span",
|
|
22884
|
-
P("ul",
|
|
22924
|
+
}, null, 8, ["name"]), P("span", uk, V(e.label), 1)]), P("dd", dk, V(e.value), 1)], 8, ck))), 128))]),
|
|
22925
|
+
P("ul", fk, [(z(!0), N(k, null, ai(a.value.groups, (e) => (z(), N("li", {
|
|
22885
22926
|
key: e.id,
|
|
22886
22927
|
class: Xr(["pk-tool-selection__group", {
|
|
22887
22928
|
"pk-tool-selection__group--selected": e.selected,
|
|
@@ -22892,24 +22933,24 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22892
22933
|
name: e.selected ? "ri:check-line" : "ri:subtract-line",
|
|
22893
22934
|
class: "pk-tool-selection__mark shrink-0"
|
|
22894
22935
|
}, null, 8, ["name"]),
|
|
22895
|
-
P("div",
|
|
22936
|
+
P("div", pk, [P("span", mk, [
|
|
22896
22937
|
I(s, {
|
|
22897
22938
|
name: i[e.kind],
|
|
22898
22939
|
class: "shrink-0 w-14 h-14",
|
|
22899
22940
|
title: H(n)(`toolSelection.kind.${e.kind}`),
|
|
22900
22941
|
"aria-hidden": "true"
|
|
22901
22942
|
}, null, 8, ["name", "title"]),
|
|
22902
|
-
P("span",
|
|
22943
|
+
P("span", hk, V(H(n)(`toolSelection.kind.${e.kind}`)), 1),
|
|
22903
22944
|
P("span", {
|
|
22904
22945
|
class: "pk-tool-selection__name truncate",
|
|
22905
22946
|
title: e.name
|
|
22906
|
-
}, V(e.name), 9,
|
|
22907
|
-
]), P("span",
|
|
22908
|
-
e.kind === "mcp" ? (z(), N("span",
|
|
22909
|
-
e.used && !e.selected ? (z(), N("span",
|
|
22910
|
-
e.used ? (z(), N("span",
|
|
22911
|
-
e.enabled ? (z(), N("span",
|
|
22912
|
-
e.seeded ? (z(), N("span",
|
|
22947
|
+
}, V(e.name), 9, gk)
|
|
22948
|
+
]), P("span", _k, [
|
|
22949
|
+
e.kind === "mcp" ? (z(), N("span", vk, V(H(n)("toolSelection.tools", e.tools)), 1)) : M("", !0),
|
|
22950
|
+
e.used && !e.selected ? (z(), N("span", yk, V(H(n)("toolSelection.missed")), 1)) : M("", !0),
|
|
22951
|
+
e.used ? (z(), N("span", bk, V(H(n)("toolSelection.used")), 1)) : M("", !0),
|
|
22952
|
+
e.enabled ? (z(), N("span", xk, V(H(n)("toolSelection.enabled")), 1)) : M("", !0),
|
|
22953
|
+
e.seeded ? (z(), N("span", Sk, V(H(n)("toolSelection.seeded")), 1)) : M("", !0)
|
|
22913
22954
|
])]),
|
|
22914
22955
|
e.probability === void 0 ? M("", !0) : (z(), N("div", {
|
|
22915
22956
|
key: 0,
|
|
@@ -22922,18 +22963,18 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22922
22963
|
"--pk-tool-selection-probability": `${e.probability * 100}%`,
|
|
22923
22964
|
"--pk-tool-selection-threshold": `${a.value.decision.threshold * 100}%`
|
|
22924
22965
|
})
|
|
22925
|
-
}, null, 4), P("span",
|
|
22966
|
+
}, null, 4), P("span", wk, V(H(r)(e.probability, "decimal")), 1)], 8, Ck))
|
|
22926
22967
|
], 2))), 128))])
|
|
22927
22968
|
])])) : M("", !0);
|
|
22928
22969
|
};
|
|
22929
22970
|
}
|
|
22930
|
-
}),
|
|
22971
|
+
}), Ek = ["aria-labelledby"], Dk = { class: "text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8" }, Ok = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, kk = ["id"], Ak = {
|
|
22931
22972
|
key: 0,
|
|
22932
22973
|
class: "text-10 text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
22933
|
-
},
|
|
22974
|
+
}, jk = ["title"], Mk = { class: "u-visually-hidden" }, Nk = ["title"], Pk = { class: "u-visually-hidden" }, Fk = { class: "border rounded-b border-surface-3" }, Ik = {
|
|
22934
22975
|
key: 0,
|
|
22935
22976
|
class: "p-8 border-b border-surface-3 text-12 text-word-2"
|
|
22936
|
-
},
|
|
22977
|
+
}, Lk = ["title"], Rk = { class: "flex shrink-0" }, zk = { class: "u-visually-hidden" }, Bk = { class: "tabular-nums truncate" }, Vk = { key: 1 }, Hk = ["title"], Uk = ["title"], Wk = { class: "text-10 text-word-2 tabular-nums" }, Gk = .5, Kk = /* @__PURE__ */ L({
|
|
22937
22978
|
__name: "PkTurnEvaluation",
|
|
22938
22979
|
props: { message: {} },
|
|
22939
22980
|
setup(e) {
|
|
@@ -22977,79 +23018,79 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
22977
23018
|
key: 0,
|
|
22978
23019
|
class: "pk-turn-evaluation",
|
|
22979
23020
|
"aria-labelledby": H(a)
|
|
22980
|
-
}, [P("header",
|
|
22981
|
-
P("div",
|
|
23021
|
+
}, [P("header", Dk, [
|
|
23022
|
+
P("div", Ok, [I(r, {
|
|
22982
23023
|
name: "ri:scales-line",
|
|
22983
23024
|
class: "w-12 h-12"
|
|
22984
23025
|
})]),
|
|
22985
23026
|
P("strong", {
|
|
22986
23027
|
id: H(a),
|
|
22987
23028
|
class: "font-semibold text-12 truncate"
|
|
22988
|
-
}, V(H(n)("turnEvaluation.title")), 9,
|
|
22989
|
-
o.value.failed ? (z(), N("span",
|
|
23029
|
+
}, V(H(n)("turnEvaluation.title")), 9, kk),
|
|
23030
|
+
o.value.failed ? (z(), N("span", Ak, V(H(n)("toolSelection.failed")), 1)) : (z(), N("span", {
|
|
22990
23031
|
key: 1,
|
|
22991
23032
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
|
|
22992
23033
|
title: H(n)("turnEvaluation.modeHint")
|
|
22993
|
-
}, [F(V(H(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span",
|
|
23034
|
+
}, [F(V(H(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span", Mk, V(H(n)("turnEvaluation.modeHint")), 1)], 8, jk)),
|
|
22994
23035
|
P("code", {
|
|
22995
23036
|
class: "font-mono text-10 text-word-3 truncate ml-auto",
|
|
22996
23037
|
title: H(n)("turnEvaluation.version", { version: o.value.version })
|
|
22997
|
-
}, [F(V(H(Le)) + " ", 1), P("span",
|
|
22998
|
-
]), P("div",
|
|
22999
|
-
o.value.failed ? (z(), N("p",
|
|
23038
|
+
}, [F(V(H(Le)) + " ", 1), P("span", Pk, V(H(n)("turnEvaluation.version", { version: o.value.version })), 1)], 8, Nk)
|
|
23039
|
+
]), P("div", Fk, [
|
|
23040
|
+
o.value.failed ? (z(), N("p", Ik, V(H(n)("turnEvaluation.leadFailed", { budget: H(i)(o.value.budgetMs, "integer") })), 1)) : M("", !0),
|
|
23000
23041
|
P("dl", { class: Xr(["flex flex-wrap items-center justify-between gap-x-12 gap-y-4 p-8 text-12 text-word-3", { "border-b border-surface-3": c.value.length > 0 }]) }, [(z(!0), N(k, null, ai(l.value, (e) => (z(), N("div", {
|
|
23001
23042
|
key: e.icon,
|
|
23002
23043
|
class: "flex items-center gap-6 min-w-0",
|
|
23003
23044
|
title: e.label
|
|
23004
|
-
}, [P("dt",
|
|
23045
|
+
}, [P("dt", Rk, [I(r, {
|
|
23005
23046
|
name: e.icon,
|
|
23006
23047
|
"aria-hidden": "true"
|
|
23007
|
-
}, null, 8, ["name"]), P("span",
|
|
23008
|
-
c.value.length > 0 ? (z(), N("ul",
|
|
23048
|
+
}, null, 8, ["name"]), P("span", zk, V(e.label), 1)]), P("dd", Bk, V(e.value), 1)], 8, Lk))), 128))], 2),
|
|
23049
|
+
c.value.length > 0 ? (z(), N("ul", Vk, [(z(!0), N(k, null, ai(c.value, (e) => (z(), N("li", {
|
|
23009
23050
|
key: e.id,
|
|
23010
|
-
class: Xr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >=
|
|
23051
|
+
class: Xr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >= Gk }])
|
|
23011
23052
|
}, [P("span", {
|
|
23012
23053
|
class: "truncate",
|
|
23013
23054
|
title: e.label
|
|
23014
|
-
}, V(e.label), 9,
|
|
23055
|
+
}, V(e.label), 9, Hk), P("div", {
|
|
23015
23056
|
class: "pk-turn-evaluation__probability",
|
|
23016
23057
|
title: H(n)("turnEvaluation.probability")
|
|
23017
23058
|
}, [P("span", {
|
|
23018
23059
|
class: "pk-turn-evaluation__bar",
|
|
23019
23060
|
"aria-hidden": "true",
|
|
23020
23061
|
style: Qr({ "--pk-turn-evaluation-probability": `${e.probability * 100}%` })
|
|
23021
|
-
}, null, 4), P("span",
|
|
23022
|
-
])], 8,
|
|
23062
|
+
}, null, 4), P("span", Wk, V(H(i)(e.probability, "decimal")), 1)], 8, Uk)], 2))), 128))])) : M("", !0)
|
|
23063
|
+
])], 8, Ek)) : M("", !0);
|
|
23023
23064
|
};
|
|
23024
23065
|
}
|
|
23025
|
-
}),
|
|
23066
|
+
}), qk = { class: "flex flex-col gap-16" }, Jk = {
|
|
23026
23067
|
key: 0,
|
|
23027
23068
|
class: "grid grid-cols-2 gap-x-10 text-12 text-word-3 justify-between"
|
|
23028
|
-
},
|
|
23069
|
+
}, Yk = { class: "flex flex-col gap-y-4" }, Xk = {
|
|
23029
23070
|
key: 1,
|
|
23030
23071
|
class: "flex items-center gap-4 min-w-0"
|
|
23031
|
-
},
|
|
23072
|
+
}, Zk = { class: "truncate" }, Qk = {
|
|
23032
23073
|
key: 2,
|
|
23033
23074
|
class: "flex items-center gap-4 min-w-0"
|
|
23034
|
-
},
|
|
23075
|
+
}, $k = { class: "truncate" }, eA = { key: 0 }, tA = {
|
|
23035
23076
|
key: 3,
|
|
23036
23077
|
class: "flex items-center gap-4"
|
|
23037
|
-
},
|
|
23078
|
+
}, nA = {
|
|
23038
23079
|
key: 4,
|
|
23039
23080
|
class: "flex items-center gap-4"
|
|
23040
|
-
},
|
|
23081
|
+
}, rA = { class: "flex flex-col gap-y-4 items-end" }, iA = ["datetime"], aA = {
|
|
23041
23082
|
key: 1,
|
|
23042
23083
|
class: "flex items-center gap-4"
|
|
23043
|
-
},
|
|
23084
|
+
}, oA = { key: 0 }, sA = {
|
|
23044
23085
|
key: 2,
|
|
23045
23086
|
class: "flex items-center gap-4"
|
|
23046
|
-
},
|
|
23087
|
+
}, cA = {
|
|
23047
23088
|
key: 3,
|
|
23048
23089
|
class: "flex items-center gap-4 min-w-0"
|
|
23049
|
-
},
|
|
23090
|
+
}, lA = { class: "truncate" }, uA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, dA = { class: "font-semibold truncate" }, fA = ["title"], pA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, mA = { class: "font-semibold truncate" }, hA = ["title"], gA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, _A = { class: "font-semibold truncate" }, vA = ["title"], yA = { class: "flex flex-col gap-16" }, bA = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, xA = { class: "tracking-widest border-r border-gray-lighten-3 pr-4" }, SA = { class: "font-bold text-12" }, CA = { class: "text-10" }, wA = { class: "text-12 text-word-2 truncate" }, TA = {
|
|
23050
23091
|
key: 0,
|
|
23051
23092
|
class: "text-10 text-word-4 whitespace-nowrap ml-auto"
|
|
23052
|
-
},
|
|
23093
|
+
}, EA = { key: 0 }, DA = { class: "border rounded-b border-surface-3" }, OA = { class: "font-bold text-10 uppercase p-8 border-b border-surface-3" }, kA = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, AA = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, jA = { class: "text-12 font-mono leading-snug bg-surface-1 p-8 m-0 whitespace-pre-wrap" }, MA = /* @__PURE__ */ L({
|
|
23053
23094
|
__name: "PkMessageParts",
|
|
23054
23095
|
props: { message: {} },
|
|
23055
23096
|
setup(e) {
|
|
@@ -23080,29 +23121,29 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23080
23121
|
}), l = A(() => t.message?.metadata?.transport === he.Voice), u = A(() => t.message?.metadata?.externalContext && Object.keys(t.message.metadata.externalContext).length > 0), d = A(() => t.message?.metadata?.platformContext && Object.keys(t.message.metadata.platformContext).length > 0);
|
|
23081
23122
|
return (t, f) => {
|
|
23082
23123
|
let p = Ar, m = yr, h = br, g = si("PjResizablePanel");
|
|
23083
|
-
return z(), N("div",
|
|
23084
|
-
e.message.metadata?.model || l.value ? (z(), N("div",
|
|
23124
|
+
return z(), N("div", qk, [
|
|
23125
|
+
e.message.metadata?.model || l.value ? (z(), N("div", Jk, [P("div", Yk, [
|
|
23085
23126
|
e.message.metadata?.model ? (z(), j(QE, {
|
|
23086
23127
|
key: 0,
|
|
23087
23128
|
"model-name": e.message.metadata?.model,
|
|
23088
23129
|
historical: ""
|
|
23089
23130
|
}, null, 8, ["model-name"])) : M("", !0),
|
|
23090
|
-
e.message?.metadata?.resolvedProvider ? (z(), N("span",
|
|
23131
|
+
e.message?.metadata?.resolvedProvider ? (z(), N("span", Xk, [I(p, {
|
|
23091
23132
|
name: "ri:cloud-line",
|
|
23092
23133
|
class: "shrink-0"
|
|
23093
|
-
}), P("span",
|
|
23094
|
-
e.message?.metadata?.totalTokens ? (z(), N("span",
|
|
23134
|
+
}), P("span", Zk, [F(V(H(it)(e.message.metadata.resolvedProvider)) + " ", 1), e.message.metadata.resolvedModelId ? (z(), N(k, { key: 0 }, [F(" (" + V(e.message.metadata.resolvedModelId) + ") ", 1)], 64)) : M("", !0)])])) : M("", !0),
|
|
23135
|
+
e.message?.metadata?.totalTokens ? (z(), N("span", Qk, [I(p, {
|
|
23095
23136
|
name: "ri:ai-generate-2-line",
|
|
23096
23137
|
class: "shrink-0"
|
|
23097
|
-
}), P("span",
|
|
23098
|
-
e.message?.metadata?.zeroDataRetention ? (z(), N("span",
|
|
23138
|
+
}), P("span", $k, [F(V(t.$n(e.message.metadata.totalTokens, "integer")) + " " + V(t.$t("label.tokens")) + " ", 1), e.message?.metadata?.cachedTokens ? (z(), N("span", eA, " (" + V(t.$n(e.message.metadata.cachedTokens, "integer")) + " " + V(t.$t("label.cached")) + ") ", 1)) : M("", !0)])])) : M("", !0),
|
|
23139
|
+
e.message?.metadata?.zeroDataRetention ? (z(), N("span", tA, [I(p, {
|
|
23099
23140
|
name: "ri:shield-check-line",
|
|
23100
23141
|
class: "shrink-0"
|
|
23101
|
-
}), F(" " + V(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span",
|
|
23142
|
+
}), F(" " + V(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span", nA, [I(p, {
|
|
23102
23143
|
name: "ri:shield-check-line",
|
|
23103
23144
|
class: "shrink-0"
|
|
23104
23145
|
}), F(" " + V(t.$t("label.noPromptTraining")), 1)])) : M("", !0)
|
|
23105
|
-
]), P("div",
|
|
23146
|
+
]), P("div", rA, [
|
|
23106
23147
|
e.message?.metadata?.createdAt ? (z(), N("time", {
|
|
23107
23148
|
key: 0,
|
|
23108
23149
|
datetime: new Date(e.message.metadata.createdAt).toISOString(),
|
|
@@ -23110,8 +23151,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23110
23151
|
}, [I(p, {
|
|
23111
23152
|
name: "ri:time-line",
|
|
23112
23153
|
class: "shrink-0"
|
|
23113
|
-
}), F(" " + V(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8,
|
|
23114
|
-
e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div",
|
|
23154
|
+
}), F(" " + V(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8, iA)) : M("", !0),
|
|
23155
|
+
e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div", aA, [
|
|
23115
23156
|
I(p, {
|
|
23116
23157
|
name: "ri:hourglass-line",
|
|
23117
23158
|
class: "shrink-0"
|
|
@@ -23120,16 +23161,16 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23120
23161
|
date: e.message.metadata?.createdAt,
|
|
23121
23162
|
"end-date": e.message.metadata?.completedAt
|
|
23122
23163
|
}, null, 8, ["date", "end-date"]),
|
|
23123
|
-
e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span",
|
|
23164
|
+
e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span", oA, " (" + V(e.message.metadata.totalProviderAttemptCount) + " attempts) ", 1)) : M("", !0)
|
|
23124
23165
|
])) : M("", !0),
|
|
23125
|
-
e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span",
|
|
23166
|
+
e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span", sA, [I(p, {
|
|
23126
23167
|
name: "ri:wallet-line",
|
|
23127
23168
|
class: "shrink-0"
|
|
23128
23169
|
}), F(" " + V(t.$n(parseFloat(e.message.metadata.cost), "currencyUSD")), 1)])) : M("", !0),
|
|
23129
|
-
l.value ? (z(), N("span",
|
|
23170
|
+
l.value ? (z(), N("span", cA, [I(p, {
|
|
23130
23171
|
name: "ri:mic-line",
|
|
23131
23172
|
class: "shrink-0"
|
|
23132
|
-
}), P("span",
|
|
23173
|
+
}), P("span", lA, V(t.$t("label.spokenExchange")), 1)])) : M("", !0)
|
|
23133
23174
|
])])) : M("", !0),
|
|
23134
23175
|
c.value || d.value || u.value ? (z(), j(h, {
|
|
23135
23176
|
key: 1,
|
|
@@ -23142,10 +23183,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23142
23183
|
title: t.$t("label.platformContext"),
|
|
23143
23184
|
class: "border border-surface-3 rounded"
|
|
23144
23185
|
}, {
|
|
23145
|
-
default: G(() => [P("dl",
|
|
23186
|
+
default: G(() => [P("dl", uA, [(z(!0), N(k, null, ai(e.message.metadata?.platformContext, (e, t) => (z(), N(k, { key: t }, [P("dt", dA, V(H(lt)(H(ot)(t))), 1), P("dd", {
|
|
23146
23187
|
class: "truncate font-mono col-span-2",
|
|
23147
23188
|
title: String(e)
|
|
23148
|
-
}, V(e), 9,
|
|
23189
|
+
}, V(e), 9, fA)], 64))), 128))])]),
|
|
23149
23190
|
_: 1
|
|
23150
23191
|
}, 8, ["title"])) : M("", !0),
|
|
23151
23192
|
c.value ? (z(), j(m, {
|
|
@@ -23154,10 +23195,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23154
23195
|
title: t.$t("label.deviceContext"),
|
|
23155
23196
|
class: "border border-surface-3 rounded"
|
|
23156
23197
|
}, {
|
|
23157
|
-
default: G(() => [P("dl",
|
|
23198
|
+
default: G(() => [P("dl", pA, [(z(!0), N(k, null, ai(c.value, (e, t) => (z(), N(k, { key: t }, [P("dt", mA, V(H(lt)(H(ot)(t))), 1), P("dd", {
|
|
23158
23199
|
class: "truncate font-mono col-span-2",
|
|
23159
23200
|
title: String(e)
|
|
23160
|
-
}, V(e), 9,
|
|
23201
|
+
}, V(e), 9, hA)], 64))), 128))])]),
|
|
23161
23202
|
_: 1
|
|
23162
23203
|
}, 8, ["title"])) : M("", !0),
|
|
23163
23204
|
u.value ? (z(), j(m, {
|
|
@@ -23166,19 +23207,19 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23166
23207
|
title: t.$t("label.externalContext"),
|
|
23167
23208
|
class: "border border-surface-3 rounded"
|
|
23168
23209
|
}, {
|
|
23169
|
-
default: G(() => [P("dl",
|
|
23210
|
+
default: G(() => [P("dl", gA, [(z(!0), N(k, null, ai(e.message.metadata?.externalContext, (e, t) => (z(), N(k, { key: t }, [P("dt", _A, V(H(lt)(H(ot)(t))), 1), P("dd", {
|
|
23170
23211
|
class: "truncate font-mono col-span-2",
|
|
23171
23212
|
title: String(e)
|
|
23172
|
-
}, V(e), 9,
|
|
23213
|
+
}, V(e), 9, vA)], 64))), 128))])]),
|
|
23173
23214
|
_: 1
|
|
23174
23215
|
}, 8, ["title"])) : M("", !0)
|
|
23175
23216
|
]),
|
|
23176
23217
|
_: 1
|
|
23177
23218
|
})) : M("", !0),
|
|
23178
|
-
I(
|
|
23179
|
-
P("ol",
|
|
23219
|
+
I(Tk, { message: e.message }, null, 8, ["message"]),
|
|
23220
|
+
P("ol", yA, [(z(!0), N(k, null, ai(r.value, (e, c) => (z(), N("li", { key: c }, [
|
|
23180
23221
|
P("span", { class: Xr(["text-12 text-word-2 leading-none flex items-center gap-12 bg-surface-1 rounded-t border-t border-x border-surface-3 p-8", { "border-b rounded-b": !n(e) && !H(tt)(e) }]) }, [
|
|
23181
|
-
P("div",
|
|
23222
|
+
P("div", bA, [P("span", xA, [P("strong", SA, V(c + 1), 1), P("span", CA, "/" + V(r.value.length), 1)]), (n(e) || H(nt)(e)) && H(pt)(e.state) ? (z(), j(p, {
|
|
23182
23223
|
key: 0,
|
|
23183
23224
|
name: "loading-loop",
|
|
23184
23225
|
class: "w-12 h-12 ml-4"
|
|
@@ -23187,14 +23228,14 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23187
23228
|
name: H(ft)(e) || "ri:question-line",
|
|
23188
23229
|
class: "w-12 h-12 ml-4"
|
|
23189
23230
|
}, null, 8, ["name"]))]),
|
|
23190
|
-
P("span",
|
|
23231
|
+
P("span", wA, V(H(dt)(e, {
|
|
23191
23232
|
t: H(o),
|
|
23192
23233
|
te: H(s)
|
|
23193
23234
|
})), 1),
|
|
23194
|
-
"toolCallId" in e && i(e.toolCallId) ? (z(), N("span",
|
|
23235
|
+
"toolCallId" in e && i(e.toolCallId) ? (z(), N("span", TA, V(H(a)(i(e.toolCallId))), 1)) : M("", !0)
|
|
23195
23236
|
], 2),
|
|
23196
|
-
n(e) ? (z(), N("div",
|
|
23197
|
-
P("div",
|
|
23237
|
+
n(e) ? (z(), N("div", EA, [P("div", DA, [
|
|
23238
|
+
P("div", OA, V(t.$t("label.input")), 1),
|
|
23198
23239
|
I(g, {
|
|
23199
23240
|
"min-height": 128,
|
|
23200
23241
|
"fit-content": ""
|
|
@@ -23206,7 +23247,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23206
23247
|
}, null, 8, ["code"])]),
|
|
23207
23248
|
_: 2
|
|
23208
23249
|
}, 1024),
|
|
23209
|
-
e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div",
|
|
23250
|
+
e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div", kA, V(t.$t("label.output")), 1), I(g, {
|
|
23210
23251
|
"min-height": 128,
|
|
23211
23252
|
"fit-content": ""
|
|
23212
23253
|
}, {
|
|
@@ -23217,7 +23258,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23217
23258
|
}, null, 8, ["code"])]),
|
|
23218
23259
|
_: 2
|
|
23219
23260
|
}, 1024)], 64)) : M("", !0),
|
|
23220
|
-
"errorText" in e && e.errorText ? (z(), N(k, { key: 1 }, [P("div",
|
|
23261
|
+
"errorText" in e && e.errorText ? (z(), N(k, { key: 1 }, [P("div", AA, V(t.$t("messagePart.stepError")), 1), P("pre", jA, V(e.errorText), 1)], 64)) : M("", !0),
|
|
23221
23262
|
e.type.includes("tool-subagent") || e.type === "tool-runWorker" ? oi(t.$slots, "subagent", { part: e }, void 0, void 0, 2) : oi(t.$slots, H(st)(e.type), { part: e }, void 0, void 0, 3)
|
|
23222
23263
|
])])) : M("", !0),
|
|
23223
23264
|
H(tt)(e) ? (z(), j(g, {
|
|
@@ -23233,26 +23274,26 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23233
23274
|
_: 2
|
|
23234
23275
|
}, 1024)) : M("", !0)
|
|
23235
23276
|
]))), 128))]),
|
|
23236
|
-
I(
|
|
23277
|
+
I(Kk, { message: e.message }, null, 8, ["message"])
|
|
23237
23278
|
]);
|
|
23238
23279
|
};
|
|
23239
23280
|
}
|
|
23240
|
-
}),
|
|
23281
|
+
}), NA = {
|
|
23241
23282
|
key: 0,
|
|
23242
23283
|
class: "border-t border-surface-3"
|
|
23243
|
-
},
|
|
23284
|
+
}, PA = { class: "flex flex-col" }, FA = { class: "flex items-center hover:bg-surface-1 transition-colors" }, IA = ["aria-expanded", "onClick"], LA = { class: "flex items-center gap-4 shrink-0" }, RA = {
|
|
23244
23285
|
key: 0,
|
|
23245
23286
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2"
|
|
23246
|
-
},
|
|
23287
|
+
}, zA = { class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2 uppercase" }, BA = {
|
|
23247
23288
|
key: 0,
|
|
23248
23289
|
class: "border-t border-surface-3"
|
|
23249
|
-
},
|
|
23290
|
+
}, VA = {
|
|
23250
23291
|
key: 0,
|
|
23251
23292
|
class: "px-8 py-4 text-10 text-word-3 bg-surface-1 border-b border-surface-3"
|
|
23252
|
-
},
|
|
23293
|
+
}, HA = ["onClick"], UA = {
|
|
23253
23294
|
key: 0,
|
|
23254
23295
|
class: "px-8 py-6 bg-surface-1 border-t border-surface-3"
|
|
23255
|
-
},
|
|
23296
|
+
}, WA = { class: "flex justify-between items-center gap-4 min-w-0" }, GA = { class: "font-semibold text-12 truncate" }, KA = /* @__PURE__ */ L({
|
|
23256
23297
|
__name: "PkMessageDetail",
|
|
23257
23298
|
props: {
|
|
23258
23299
|
message: {},
|
|
@@ -23277,14 +23318,14 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23277
23318
|
};
|
|
23278
23319
|
return (s, c) => {
|
|
23279
23320
|
let l = Ar, u = Je, d = yr;
|
|
23280
|
-
return z(), j(
|
|
23321
|
+
return z(), j(MA, { message: e.message }, Vr({
|
|
23281
23322
|
subagent: G(({ part: t }) => [t.output?.reasoningChatId && (t.output?.subAgentId || t.input?.objective) ? (z(), j(d, {
|
|
23282
23323
|
key: 0,
|
|
23283
23324
|
title: t.output.subAgentId ? s.$t("label.subAgent") : s.$t("agent.tool.runWorker"),
|
|
23284
23325
|
modifiers: "details",
|
|
23285
23326
|
class: "border-t border-surface-3"
|
|
23286
23327
|
}, {
|
|
23287
|
-
default: G(() => [P("div",
|
|
23328
|
+
default: G(() => [P("div", WA, [P("strong", GA, V(t.output.subAgentName ?? t.input?.objective), 1), I(u, {
|
|
23288
23329
|
modifiers: "action-small",
|
|
23289
23330
|
icon: "ri:eye-line",
|
|
23290
23331
|
class: "text-10 shrink-0",
|
|
@@ -23303,10 +23344,10 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23303
23344
|
_: 2
|
|
23304
23345
|
}, [e.canReadDocuments ? {
|
|
23305
23346
|
name: "tool-search-in-knowledge-base",
|
|
23306
|
-
fn: G(({ part: c }) => [c.output?.results?.length ? (z(), N("div",
|
|
23347
|
+
fn: G(({ part: c }) => [c.output?.results?.length ? (z(), N("div", NA, [P("ul", PA, [(z(!0), N(k, null, ai(o(c.output.results), (o) => (z(), N("li", {
|
|
23307
23348
|
key: o.document.id,
|
|
23308
23349
|
class: "border-b border-surface-3 last:border-b-0"
|
|
23309
|
-
}, [P("div",
|
|
23350
|
+
}, [P("div", FA, [P("button", {
|
|
23310
23351
|
type: "button",
|
|
23311
23352
|
class: "flex items-center gap-8 p-8 flex-1 min-w-0 text-left cursor-pointer",
|
|
23312
23353
|
"aria-expanded": t.has(o.document.id),
|
|
@@ -23322,14 +23363,14 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23322
23363
|
"name",
|
|
23323
23364
|
"url",
|
|
23324
23365
|
"filename"
|
|
23325
|
-
]), P("div",
|
|
23326
|
-
o.chunks.length > 1 ? (z(), N("span",
|
|
23327
|
-
P("span",
|
|
23366
|
+
]), P("div", LA, [
|
|
23367
|
+
o.chunks.length > 1 ? (z(), N("span", RA, V(o.chunks.length), 1)) : M("", !0),
|
|
23368
|
+
P("span", zA, V(o.document.language), 1),
|
|
23328
23369
|
I(l, {
|
|
23329
23370
|
name: t.has(o.document.id) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
23330
23371
|
class: "text-16 text-word-3"
|
|
23331
23372
|
}, null, 8, ["name"])
|
|
23332
|
-
])], 8,
|
|
23373
|
+
])], 8, IA), I(u, {
|
|
23333
23374
|
modifiers: "action-quiet-small",
|
|
23334
23375
|
icon: "ri:eye-line",
|
|
23335
23376
|
class: "text-10 shrink-0 mr-8",
|
|
@@ -23346,7 +23387,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23346
23387
|
"title",
|
|
23347
23388
|
"aria-label",
|
|
23348
23389
|
"to"
|
|
23349
|
-
])]), t.has(o.document.id) ? (z(), N("div",
|
|
23390
|
+
])]), t.has(o.document.id) ? (z(), N("div", BA, [o.document.source.description ? (z(), N("div", VA, V(o.document.source.description), 1)) : M("", !0), (z(!0), N(k, null, ai(o.chunks, (e) => (z(), N("div", {
|
|
23350
23391
|
key: e.id,
|
|
23351
23392
|
class: "border-b border-surface-3 last:border-b-0"
|
|
23352
23393
|
}, [P("button", {
|
|
@@ -23362,7 +23403,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23362
23403
|
"similarity",
|
|
23363
23404
|
"max-similarity",
|
|
23364
23405
|
"expanded"
|
|
23365
|
-
])], 8,
|
|
23406
|
+
])], 8, HA), n.has(e.id) ? (z(), N("div", UA, [I(Xe, {
|
|
23366
23407
|
markdown: e.content,
|
|
23367
23408
|
class: "wysiwyg text-10"
|
|
23368
23409
|
}, null, 8, ["markdown"])])) : M("", !0)]))), 128))])) : M("", !0)]))), 128))])])) : M("", !0)]),
|
|
@@ -23370,19 +23411,19 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23370
23411
|
} : void 0]), 1032, ["message"]);
|
|
23371
23412
|
};
|
|
23372
23413
|
}
|
|
23373
|
-
}),
|
|
23414
|
+
}), qA = { class: "flex flex-col h-full bg-surface rounded-xl" }, JA = { class: "sticky z-1 top-0 bg-surface-1 flex items-center justify-between gap-sm p-sm border-b border-surface-3" }, YA = { class: "flex items-center gap-sm min-w-0" }, XA = ["title"], ZA = {
|
|
23374
23415
|
key: 1,
|
|
23375
23416
|
class: "text-14 font-bold"
|
|
23376
|
-
},
|
|
23417
|
+
}, QA = { class: "flex-1 flex flex-col gap-md p-md overflow-y-auto min-h-0" }, $A = { class: "flex flex-col" }, ej = { class: "text-12 font-medium text-word-2 mb-xs block" }, tj = ["placeholder", "disabled"], nj = { class: "flex justify-end mt-xs" }, rj = {
|
|
23377
23418
|
key: 1,
|
|
23378
23419
|
class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
|
|
23379
|
-
},
|
|
23420
|
+
}, ij = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, aj = { class: "text-12 text-word-3" }, oj = {
|
|
23380
23421
|
key: 2,
|
|
23381
23422
|
class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
|
|
23382
|
-
},
|
|
23423
|
+
}, sj = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, cj = { class: "text-12 font-medium text-word-2" }, lj = { class: "flex items-center gap-xs ml-auto" }, uj = {
|
|
23383
23424
|
key: 0,
|
|
23384
23425
|
class: "py-sm text-word-2 leading-normal"
|
|
23385
|
-
},
|
|
23426
|
+
}, dj = /* @__PURE__ */ L({
|
|
23386
23427
|
__name: "PkReasoningChat",
|
|
23387
23428
|
props: {
|
|
23388
23429
|
baseUrl: {},
|
|
@@ -23418,7 +23459,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23418
23459
|
}), _ = A(() => g.value?.parts.find((e) => e.type === "text")?.text || "");
|
|
23419
23460
|
return (t, r) => {
|
|
23420
23461
|
let o = Je, s = xr, l = Ar;
|
|
23421
|
-
return z(), N("div",
|
|
23462
|
+
return z(), N("div", qA, [P("div", JA, [P("div", YA, [I(Kn, {
|
|
23422
23463
|
modifiers: "surface ring shrink-0",
|
|
23423
23464
|
class: "w-24 h-24",
|
|
23424
23465
|
name: e.name
|
|
@@ -23426,16 +23467,16 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23426
23467
|
key: 0,
|
|
23427
23468
|
class: "text-14 font-bold truncate",
|
|
23428
23469
|
title: e.name
|
|
23429
|
-
}, V(e.name), 9,
|
|
23470
|
+
}, V(e.name), 9, XA)) : (z(), N("strong", ZA, V(H(n)("label.reasoningAgentTester")), 1))]), h.value ? (z(), j(o, {
|
|
23430
23471
|
key: 0,
|
|
23431
23472
|
icon: "ri:reset-right-line",
|
|
23432
23473
|
modifiers: "action-quiet",
|
|
23433
23474
|
title: H(n)("action.clear"),
|
|
23434
23475
|
disabled: m.value,
|
|
23435
23476
|
onClick: p
|
|
23436
|
-
}, null, 8, ["title", "disabled"])) : M("", !0)]), P("div",
|
|
23437
|
-
P("div",
|
|
23438
|
-
P("label",
|
|
23477
|
+
}, null, 8, ["title", "disabled"])) : M("", !0)]), P("div", QA, [
|
|
23478
|
+
P("div", $A, [
|
|
23479
|
+
P("label", ej, V(H(n)("label.question")), 1),
|
|
23439
23480
|
_i(P("textarea", {
|
|
23440
23481
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
23441
23482
|
placeholder: H(n)("placeholder.enterYourQuestion"),
|
|
@@ -23443,8 +23484,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23443
23484
|
class: "pk-reasoning-chat__input u-field w-full p-sm text-14 min-h-64",
|
|
23444
23485
|
rows: "3",
|
|
23445
23486
|
onKeydown: f
|
|
23446
|
-
}, null, 40,
|
|
23447
|
-
P("div",
|
|
23487
|
+
}, null, 40, tj), [[gi, a.value]]),
|
|
23488
|
+
P("div", nj, [I(o, {
|
|
23448
23489
|
label: H(n)("action.submit"),
|
|
23449
23490
|
loading: m.value,
|
|
23450
23491
|
disabled: !a.value.trim() || m.value,
|
|
@@ -23461,17 +23502,17 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23461
23502
|
title: H(n)("label.error"),
|
|
23462
23503
|
content: H(c).message
|
|
23463
23504
|
}, null, 8, ["title", "content"])) : M("", !0),
|
|
23464
|
-
m.value && !g.value ? (z(), N("div",
|
|
23505
|
+
m.value && !g.value ? (z(), N("div", rj, [P("div", ij, [I(l, {
|
|
23465
23506
|
name: "loading-loop",
|
|
23466
23507
|
class: "w-16 h-16"
|
|
23467
|
-
}), P("span",
|
|
23468
|
-
g.value ? (z(), N("div",
|
|
23508
|
+
}), P("span", aj, V(H(n)("label.processing")), 1)]), r[2] ||= P("div", { class: "vv-skeleton flex flex-col gap-8" }, [P("div", { class: "vv-skeleton__item h-12 rounded" }), P("div", { class: "vv-skeleton__item h-12 rounded w-192" })], -1)])) : M("", !0),
|
|
23509
|
+
g.value ? (z(), N("div", oj, [P("div", sj, [
|
|
23469
23510
|
I(l, {
|
|
23470
23511
|
name: "ri:robot-2-line",
|
|
23471
23512
|
class: "w-16 h-16"
|
|
23472
23513
|
}),
|
|
23473
|
-
P("span",
|
|
23474
|
-
P("div",
|
|
23514
|
+
P("span", cj, V(H(n)("label.answer")), 1),
|
|
23515
|
+
P("div", lj, [m.value ? (z(), j(l, {
|
|
23475
23516
|
key: 0,
|
|
23476
23517
|
name: "loading-loop",
|
|
23477
23518
|
class: "w-14 h-14"
|
|
@@ -23482,7 +23523,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23482
23523
|
modifiers: "action-quiet-small",
|
|
23483
23524
|
onClick: r[1] ||= yi((e) => i("show-info", g.value), ["stop"])
|
|
23484
23525
|
}, null, 8, ["title"])) : M("", !0)])
|
|
23485
|
-
]), _.value ? (z(), N("div",
|
|
23526
|
+
]), _.value ? (z(), N("div", uj, [I(Xe, {
|
|
23486
23527
|
markdown: _.value,
|
|
23487
23528
|
loading: m.value,
|
|
23488
23529
|
class: "wysiwyg text-14"
|
|
@@ -23490,7 +23531,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23490
23531
|
])]);
|
|
23491
23532
|
};
|
|
23492
23533
|
}
|
|
23493
|
-
}),
|
|
23534
|
+
}), fj = { class: "welcome-popup__text" }, pj = ["aria-label"], mj = 100, hj = /* @__PURE__ */ L({
|
|
23494
23535
|
__name: "PkWelcomePopup",
|
|
23495
23536
|
props: {
|
|
23496
23537
|
agentId: {},
|
|
@@ -23505,7 +23546,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23505
23546
|
c.value = [], s.value = !1;
|
|
23506
23547
|
let t = e.split(/(\s+)/), n = 0;
|
|
23507
23548
|
function r() {
|
|
23508
|
-
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r,
|
|
23549
|
+
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, mj)) : s.value = !0;
|
|
23509
23550
|
}
|
|
23510
23551
|
r();
|
|
23511
23552
|
}
|
|
@@ -23529,7 +23570,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23529
23570
|
key: 0,
|
|
23530
23571
|
class: "welcome-popup",
|
|
23531
23572
|
onClick: yi(m, ["stop"])
|
|
23532
|
-
}, [P("p",
|
|
23573
|
+
}, [P("p", fj, [(z(!0), N(k, null, ai(c.value, (e, t) => (z(), N("span", {
|
|
23533
23574
|
key: t,
|
|
23534
23575
|
class: "welcome-popup__word"
|
|
23535
23576
|
}, V(e), 1))), 128))]), I(Lr, null, {
|
|
@@ -23545,35 +23586,35 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23545
23586
|
width: "14",
|
|
23546
23587
|
height: "14",
|
|
23547
23588
|
fill: "currentColor"
|
|
23548
|
-
}, [P("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8,
|
|
23589
|
+
}, [P("path", { d: "M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z" })], -1)]], 8, pj)) : M("", !0)]),
|
|
23549
23590
|
_: 1
|
|
23550
23591
|
})])) : M("", !0)]),
|
|
23551
23592
|
_: 1
|
|
23552
23593
|
}));
|
|
23553
23594
|
}
|
|
23554
|
-
}),
|
|
23595
|
+
}), gj = {
|
|
23555
23596
|
key: 0,
|
|
23556
23597
|
class: "pk-working-beam",
|
|
23557
23598
|
"aria-hidden": "true"
|
|
23558
|
-
},
|
|
23599
|
+
}, _j = /* @__PURE__ */ L({
|
|
23559
23600
|
__name: "PkWorkingBeam",
|
|
23560
23601
|
props: { active: { type: Boolean } },
|
|
23561
23602
|
setup(e) {
|
|
23562
23603
|
return (t, n) => (z(), j(Lr, { name: "pk-working-beam" }, {
|
|
23563
|
-
default: G(() => [e.active ? (z(), N("span",
|
|
23604
|
+
default: G(() => [e.active ? (z(), N("span", gj, [...n[0] ||= [P("span", { class: "pk-working-beam__halo" }, null, -1), P("span", { class: "pk-working-beam__ring" }, [P("span", { class: "pk-working-beam__light" })], -1)]])) : M("", !0)]),
|
|
23564
23605
|
_: 1
|
|
23565
23606
|
}));
|
|
23566
23607
|
}
|
|
23567
|
-
}),
|
|
23608
|
+
}), vj = { class: "pk-pagination mt-auto grid grid-cols-3 gap-md pt-24" }, yj = { class: "flex items-center" }, bj = ["for"], xj = ["id", "disabled"], Sj = ["value"], Cj = {
|
|
23568
23609
|
key: 1,
|
|
23569
23610
|
class: "ml-8 text-12 font-semibold tabular-nums"
|
|
23570
|
-
},
|
|
23611
|
+
}, wj = { class: "flex justify-center items-center" }, Tj = {
|
|
23571
23612
|
class: "rounded-md border border-surface-3 px-14 py-4 text-center text-12 font-bold tabular-nums",
|
|
23572
23613
|
type: "button"
|
|
23573
|
-
},
|
|
23614
|
+
}, Ej = {
|
|
23574
23615
|
key: 0,
|
|
23575
23616
|
class: "ml-6 text-12 whitespace-nowrap tabular-nums"
|
|
23576
|
-
},
|
|
23617
|
+
}, Dj = { class: "flex text-12 justify-end items-center whitespace-nowrap tabular-nums" }, Oj = /* @__PURE__ */ L({
|
|
23577
23618
|
__name: "PkPagination",
|
|
23578
23619
|
props: {
|
|
23579
23620
|
page: {
|
|
@@ -23605,11 +23646,11 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23605
23646
|
});
|
|
23606
23647
|
return (t, i) => {
|
|
23607
23648
|
let u = Je, d = wr;
|
|
23608
|
-
return z(), N("div",
|
|
23609
|
-
P("div",
|
|
23649
|
+
return z(), N("div", vj, [
|
|
23650
|
+
P("div", yj, [P("label", {
|
|
23610
23651
|
for: H(r),
|
|
23611
23652
|
class: "text-12 whitespace-nowrap"
|
|
23612
|
-
}, V(H(n)("label.itemsPerPage")), 9,
|
|
23653
|
+
}, V(H(n)("label.itemsPerPage")), 9, bj), e.limitSteps ? _i((z(), N("select", {
|
|
23613
23654
|
key: 0,
|
|
23614
23655
|
id: H(r),
|
|
23615
23656
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e,
|
|
@@ -23618,8 +23659,8 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23618
23659
|
}, [(z(!0), N(k, null, ai(e.limitSteps, (e) => (z(), N("option", {
|
|
23619
23660
|
key: e,
|
|
23620
23661
|
value: e
|
|
23621
|
-
}, V(e), 9,
|
|
23622
|
-
P("div",
|
|
23662
|
+
}, V(e), 9, Sj))), 128))], 8, xj)), [[hi, l.value]]) : (z(), N("span", Cj, V(e.limit), 1))]),
|
|
23663
|
+
P("div", wj, [I(d, { class: "flex-nowrap" }, {
|
|
23623
23664
|
default: G(() => [
|
|
23624
23665
|
I(u, {
|
|
23625
23666
|
title: H(n)("action.prev"),
|
|
@@ -23628,7 +23669,7 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23628
23669
|
modifiers: "action-quiet",
|
|
23629
23670
|
onClick: i[1] ||= yi((t) => a("update:page", e.page - 1), ["stop"])
|
|
23630
23671
|
}, null, 8, ["title", "disabled"]),
|
|
23631
|
-
P("button",
|
|
23672
|
+
P("button", Tj, V(e.page), 1),
|
|
23632
23673
|
I(u, {
|
|
23633
23674
|
title: H(n)("action.next"),
|
|
23634
23675
|
disabled: c.value,
|
|
@@ -23638,21 +23679,21 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23638
23679
|
}, null, 8, ["title", "disabled"])
|
|
23639
23680
|
]),
|
|
23640
23681
|
_: 1
|
|
23641
|
-
}), o.value ? (z(), N("small",
|
|
23642
|
-
P("div",
|
|
23682
|
+
}), o.value ? (z(), N("small", Ej, V(H(n)("label.totalPages", { total: o.value })), 1)) : M("", !0)]),
|
|
23683
|
+
P("div", Dj, V(H(n)("label.totalItemsCount", { total: e.total })), 1)
|
|
23643
23684
|
]);
|
|
23644
23685
|
};
|
|
23645
23686
|
}
|
|
23646
|
-
}),
|
|
23687
|
+
}), kj = { class: "pk-table-empty" }, Aj = {
|
|
23647
23688
|
class: "pk-table-empty__glyph",
|
|
23648
23689
|
"aria-hidden": "true"
|
|
23649
|
-
},
|
|
23690
|
+
}, jj = { class: "pk-table-empty__text" }, Mj = { class: "pk-table-empty__title" }, Nj = {
|
|
23650
23691
|
key: 0,
|
|
23651
23692
|
class: "pk-table-empty__description"
|
|
23652
|
-
},
|
|
23693
|
+
}, Pj = {
|
|
23653
23694
|
key: 0,
|
|
23654
23695
|
class: "pk-table-empty__actions"
|
|
23655
|
-
},
|
|
23696
|
+
}, Fj = /* @__PURE__ */ L({
|
|
23656
23697
|
__name: "PkTableEmpty",
|
|
23657
23698
|
props: {
|
|
23658
23699
|
title: { default: void 0 },
|
|
@@ -23663,86 +23704,86 @@ var PE = { class: "flex items-center gap-xs min-w-0" }, FE = { class: "truncate"
|
|
|
23663
23704
|
let { t } = bi({ useScope: "global" });
|
|
23664
23705
|
return (n, r) => {
|
|
23665
23706
|
let i = Ar;
|
|
23666
|
-
return z(), N("div",
|
|
23667
|
-
P("div",
|
|
23668
|
-
P("div",
|
|
23669
|
-
n.$slots.actions ? (z(), N("div",
|
|
23707
|
+
return z(), N("div", kj, [
|
|
23708
|
+
P("div", Aj, [I(i, { name: e.icon }, null, 8, ["name"])]),
|
|
23709
|
+
P("div", jj, [P("strong", Mj, V(e.title ?? H(t)("message.empty")), 1), e.description ? (z(), N("p", Nj, V(e.description), 1)) : M("", !0)]),
|
|
23710
|
+
n.$slots.actions ? (z(), N("div", Pj, [oi(n.$slots, "actions")])) : M("", !0)
|
|
23670
23711
|
]);
|
|
23671
23712
|
};
|
|
23672
23713
|
}
|
|
23673
|
-
}),
|
|
23714
|
+
}), Ij = { class: "flex flex-col items-center justify-center w-full text-md p-md leading-normal" }, Lj = { class: "mb-4" }, Rj = { class: "font-bold" }, zj = { class: "text-smaller text-word-3" }, Bj = /* @__PURE__ */ L({
|
|
23674
23715
|
__name: "PkTableError",
|
|
23675
23716
|
setup(e) {
|
|
23676
23717
|
let { t } = bi({ useScope: "global" });
|
|
23677
23718
|
return (e, n) => {
|
|
23678
23719
|
let r = Ar;
|
|
23679
|
-
return z(), N("div",
|
|
23680
|
-
P("div",
|
|
23720
|
+
return z(), N("div", Ij, [
|
|
23721
|
+
P("div", Lj, [I(r, {
|
|
23681
23722
|
name: "ri:alert-line",
|
|
23682
23723
|
class: "text-32 text-word-2"
|
|
23683
23724
|
})]),
|
|
23684
|
-
P("strong",
|
|
23685
|
-
P("div",
|
|
23725
|
+
P("strong", Rj, V(H(t)("message.warning")), 1),
|
|
23726
|
+
P("div", zj, V(H(t)("message.readError")), 1)
|
|
23686
23727
|
]);
|
|
23687
23728
|
};
|
|
23688
23729
|
}
|
|
23689
23730
|
});
|
|
23690
23731
|
// ../../node_modules/.pnpm/ts-util-is@2.1.0/node_modules/ts-util-is/dist/src/index.js
|
|
23691
|
-
function
|
|
23732
|
+
function Vj(e) {
|
|
23692
23733
|
return Array.isArray(e);
|
|
23693
23734
|
}
|
|
23694
|
-
function
|
|
23735
|
+
function Hj(e) {
|
|
23695
23736
|
return e !== void 0;
|
|
23696
23737
|
}
|
|
23697
|
-
function
|
|
23738
|
+
function Uj(e) {
|
|
23698
23739
|
return e === null;
|
|
23699
23740
|
}
|
|
23700
|
-
function
|
|
23741
|
+
function Wj(e) {
|
|
23701
23742
|
return typeof e == "object";
|
|
23702
23743
|
}
|
|
23703
|
-
function
|
|
23744
|
+
function Gj(e) {
|
|
23704
23745
|
return typeof e == "string";
|
|
23705
23746
|
}
|
|
23706
|
-
function
|
|
23747
|
+
function Kj(e) {
|
|
23707
23748
|
return e === void 0;
|
|
23708
23749
|
}
|
|
23709
23750
|
// ../../node_modules/.pnpm/ts-dot-prop@2.1.4/node_modules/ts-dot-prop/dist/index.js
|
|
23710
|
-
var
|
|
23751
|
+
var qj = /^[0-9]+$/, Jj = [
|
|
23711
23752
|
"__proto__",
|
|
23712
23753
|
"prototype",
|
|
23713
23754
|
"constructor"
|
|
23714
23755
|
];
|
|
23715
|
-
function
|
|
23716
|
-
let r =
|
|
23717
|
-
if (!
|
|
23718
|
-
let i =
|
|
23756
|
+
function Yj(e, t, n) {
|
|
23757
|
+
let r = Hj(n) ? n : void 0;
|
|
23758
|
+
if (!Wj(e) || !Gj(t)) return r;
|
|
23759
|
+
let i = Xj(t);
|
|
23719
23760
|
if (i.length !== 0) {
|
|
23720
23761
|
for (let t of i) {
|
|
23721
23762
|
if (t === "*") continue;
|
|
23722
23763
|
let n = function(e) {
|
|
23723
|
-
return e.map((e) =>
|
|
23764
|
+
return e.map((e) => Kj(e) || Uj(e) ? e : Vj(e) ? n(e) : e[t]);
|
|
23724
23765
|
};
|
|
23725
|
-
if (e =
|
|
23766
|
+
if (e = Vj(e) && !qj.test(t) ? n(e) : e[t], Kj(e) || Uj(e)) break;
|
|
23726
23767
|
}
|
|
23727
|
-
return
|
|
23768
|
+
return Kj(e) ? r : e;
|
|
23728
23769
|
}
|
|
23729
23770
|
}
|
|
23730
|
-
function
|
|
23771
|
+
function Xj(e) {
|
|
23731
23772
|
let t = e.split(/[.]|(?:\[(\d|\*)\])/).filter((e) => !!e);
|
|
23732
|
-
return t.some((e) =>
|
|
23773
|
+
return t.some((e) => Jj.indexOf(e) !== -1) ? [] : t;
|
|
23733
23774
|
}
|
|
23734
23775
|
// ../../packages/components/src/table/PkTableSortable.vue?vue&type=script&setup=true&lang.ts
|
|
23735
|
-
var
|
|
23776
|
+
var Zj = {
|
|
23736
23777
|
key: 0,
|
|
23737
23778
|
class: "pk-table-sortable__sort"
|
|
23738
|
-
},
|
|
23779
|
+
}, Qj = ["for"], $j = ["id"], eM = {
|
|
23739
23780
|
key: 0,
|
|
23740
23781
|
value: "",
|
|
23741
23782
|
disabled: ""
|
|
23742
|
-
},
|
|
23783
|
+
}, tM = ["value"], nM = { key: 0 }, rM = {
|
|
23743
23784
|
key: 0,
|
|
23744
23785
|
class: "truncate"
|
|
23745
|
-
},
|
|
23786
|
+
}, iM = ["onClick"], aM = ["onClick"], oM = ["data-label"], sM = { key: 1 }, cM = ["colspan"], lM = { key: 2 }, uM = ["colspan"], dM = { key: 1 }, fM = { key: 2 }, pM = "a, button, input, select, textarea, label, [contenteditable], [role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"menuitem\"]", mM = /* @__PURE__ */ L({
|
|
23746
23787
|
__name: "PkTableSortable",
|
|
23747
23788
|
props: {
|
|
23748
23789
|
columns: {
|
|
@@ -23882,7 +23923,7 @@ var Xj = {
|
|
|
23882
23923
|
let S = (e) => {
|
|
23883
23924
|
u.value === e ? d.value = d.value === "asc" ? "desc" : "asc" : u.value = e;
|
|
23884
23925
|
}, C = (e, t, n) => {
|
|
23885
|
-
a.rowClickable && (n.target?.closest(
|
|
23926
|
+
a.rowClickable && (n.target?.closest(pM) || o("click:row", e, t));
|
|
23886
23927
|
}, te = () => {
|
|
23887
23928
|
l.value++;
|
|
23888
23929
|
}, w = () => {
|
|
@@ -23892,19 +23933,19 @@ var Xj = {
|
|
|
23892
23933
|
a.page || o("update:page", l.value), a.limit || o("update:limit", c.value);
|
|
23893
23934
|
}), (t, a) => {
|
|
23894
23935
|
let o = Je, ne = Ar;
|
|
23895
|
-
return z(), N("div", { class: Xr(["pk-table-sortable", { "pk-table-sortable--stacked": e.stacked }]) }, [P("div", { class: Xr([v.value, "pk-table-sortable__wrapper"]) }, [e.stacked && !e.hideHead && m.value.length ? (z(), N("div",
|
|
23936
|
+
return z(), N("div", { class: Xr(["pk-table-sortable", { "pk-table-sortable--stacked": e.stacked }]) }, [P("div", { class: Xr([v.value, "pk-table-sortable__wrapper"]) }, [e.stacked && !e.hideHead && m.value.length ? (z(), N("div", Zj, [
|
|
23896
23937
|
P("label", {
|
|
23897
23938
|
for: H(i),
|
|
23898
23939
|
class: "text-12 text-word-3 truncate"
|
|
23899
|
-
}, V(H(r)("label.sortBy")), 9,
|
|
23940
|
+
}, V(H(r)("label.sortBy")), 9, Qj),
|
|
23900
23941
|
_i(P("select", {
|
|
23901
23942
|
id: H(i),
|
|
23902
23943
|
"onUpdate:modelValue": a[0] ||= (e) => h.value = e,
|
|
23903
23944
|
class: "pk-table-sortable__sort-field u-field u-field--compact"
|
|
23904
|
-
}, [h.value ? M("", !0) : (z(), N("option",
|
|
23945
|
+
}, [h.value ? M("", !0) : (z(), N("option", eM)), (z(!0), N(k, null, ai(m.value, (e) => (z(), N("option", {
|
|
23905
23946
|
key: e.name,
|
|
23906
23947
|
value: e.name
|
|
23907
|
-
}, V(e.label), 9,
|
|
23948
|
+
}, V(e.label), 9, tM))), 128))], 8, $j), [[hi, h.value]]),
|
|
23908
23949
|
I(o, {
|
|
23909
23950
|
modifiers: "action-quiet",
|
|
23910
23951
|
icon: H(d) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line",
|
|
@@ -23919,7 +23960,7 @@ var Xj = {
|
|
|
23919
23960
|
"disabled"
|
|
23920
23961
|
])
|
|
23921
23962
|
])) : M("", !0), P("table", { class: Xr(["vv-table", e.classTable]) }, [
|
|
23922
|
-
e.hideHead ? M("", !0) : (z(), N("thead",
|
|
23963
|
+
e.hideHead ? M("", !0) : (z(), N("thead", nM, [P("tr", null, [(z(!0), N(k, null, ai(p.value, (e) => (z(), N("th", Jr({ key: e.name }, { ref_for: !0 }, { class: [
|
|
23923
23964
|
e.class,
|
|
23924
23965
|
e.classTh,
|
|
23925
23966
|
{ selected: H(u) === e.name }
|
|
@@ -23927,7 +23968,7 @@ var Xj = {
|
|
|
23927
23968
|
key: 1,
|
|
23928
23969
|
type: "button",
|
|
23929
23970
|
onClick: (t) => S(e.name)
|
|
23930
|
-
}, [oi(t.$slots, `col::header::${e.name}`, {}, () => [F(V(e.label), 1)]), I(ne, Jr({ class: { "opacity-30": H(u) !== e.name } }, { ref_for: !0 }, H(u) === e.name ? { name: H(d) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line" } : { name: "ri:arrow-up-down-line" }), null, 16, ["class"])], 8,
|
|
23971
|
+
}, [oi(t.$slots, `col::header::${e.name}`, {}, () => [F(V(e.label), 1)]), I(ne, Jr({ class: { "opacity-30": H(u) !== e.name } }, { ref_for: !0 }, H(u) === e.name ? { name: H(d) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line" } : { name: "ri:arrow-up-down-line" }), null, 16, ["class"])], 8, iM)) : (z(), N("div", rM, [oi(t.$slots, `col::header::${e.name}`, {}, () => [F(V(e.label), 1)])]))], 16))), 128))])])),
|
|
23931
23972
|
I(Rr, {
|
|
23932
23973
|
tag: "tbody",
|
|
23933
23974
|
name: e.transitionName
|
|
@@ -23939,7 +23980,7 @@ var Xj = {
|
|
|
23939
23980
|
})), () => [e.isLoading ? oi(t.$slots, "loading", {}, () => [(z(!0), N(k, null, ai(c.value, (e) => (z(), N("tr", { key: e }, [(z(!0), N(k, null, ai(p.value, ({ name: n, wrapperClass: r }) => (z(), N("td", { key: n }, [oi(t.$slots, `skeleton::${n}`, Jr({ ref_for: !0 }, {
|
|
23940
23981
|
index: e,
|
|
23941
23982
|
wrapperClass: r
|
|
23942
|
-
}), () => [P("div", { class: Xr(["vv-skeleton", r]) }, [...a[3] ||= [P("div", { class: "vv-skeleton__item" }, null, -1)]], 2)])]))), 128))]))), 128))], void 0, 0) : e.isError ? e.isError ? (z(), N("tr",
|
|
23983
|
+
}), () => [P("div", { class: Xr(["vv-skeleton", r]) }, [...a[3] ||= [P("div", { class: "vv-skeleton__item" }, null, -1)]], 2)])]))), 128))]))), 128))], void 0, 0) : e.isError ? e.isError ? (z(), N("tr", lM, [P("td", { colspan: p.value.length }, [oi(t.$slots, "error", {}, () => [I(Bj)])], 8, uM)])) : M("", !0) : (z(), N(k, { key: 1 }, [e.data?.length ? (z(!0), N(k, { key: 0 }, ai(e.data, (r, i) => (z(), N("tr", {
|
|
23943
23984
|
key: i,
|
|
23944
23985
|
class: Xr([{
|
|
23945
23986
|
"pk-table-sortable__row--clickable": e.rowClickable,
|
|
@@ -23963,11 +24004,11 @@ var Xj = {
|
|
|
23963
24004
|
wrapperClass: o,
|
|
23964
24005
|
index: i,
|
|
23965
24006
|
value: r[e]
|
|
23966
|
-
}), () => [P("div", { class: Xr(["truncate", o]) }, V(H(
|
|
24007
|
+
}), () => [P("div", { class: Xr(["truncate", o]) }, V(H(Yj)(r, a ?? e)), 3)], void 0, 2)], 10, oM))), 128))], 10, aM))), 128)) : (z(), N("tr", sM, [P("td", { colspan: p.value.length }, [oi(t.$slots, "empty", {}, () => [I(Fj)])], 8, cM)]))], 64))])]),
|
|
23967
24008
|
_: 3
|
|
23968
24009
|
}, 8, ["name"]),
|
|
23969
|
-
H(n).tfoot ? (z(), N("tfoot",
|
|
23970
|
-
H(n).caption ? (z(), N("caption",
|
|
24010
|
+
H(n).tfoot ? (z(), N("tfoot", dM, [oi(t.$slots, "tfoot")])) : M("", !0),
|
|
24011
|
+
H(n).caption ? (z(), N("caption", fM, [oi(t.$slots, "caption")])) : M("", !0)
|
|
23971
24012
|
], 2)], 2), oi(t.$slots, "navigation", Zr(Ur({
|
|
23972
24013
|
hide: e.hideNavigation,
|
|
23973
24014
|
prevDisabled: x.value,
|
|
@@ -23976,7 +24017,7 @@ var Xj = {
|
|
|
23976
24017
|
next: te,
|
|
23977
24018
|
total: f.value,
|
|
23978
24019
|
page: l.value
|
|
23979
|
-
})), () => [e.hideNavigation ? M("", !0) : (z(), j(
|
|
24020
|
+
})), () => [e.hideNavigation ? M("", !0) : (z(), j(Oj, {
|
|
23980
24021
|
key: 0,
|
|
23981
24022
|
page: l.value,
|
|
23982
24023
|
total: s.value ?? 0,
|
|
@@ -23997,6 +24038,6 @@ var Xj = {
|
|
|
23997
24038
|
};
|
|
23998
24039
|
}
|
|
23999
24040
|
});
|
|
24000
|
-
export { AE as AGENT_STATUS_GLYPHS, jE as AGENT_VISIBILITY_GLYPHS, UE as MODEL_CATALOG_KEY, RE as PkAgentSelectorInline,
|
|
24041
|
+
export { AE as AGENT_STATUS_GLYPHS, jE as AGENT_VISIBILITY_GLYPHS, UE as MODEL_CATALOG_KEY, RE as PkAgentSelectorInline, PO as PkAgentSettingsPanel, yt as PkAuroraCanvas, Kn as PkAvatar, Ri as PkBadge, Qn as PkChatButton, qO as PkChatSidebar, IO as PkChatSidebarConversationItem, nr as PkChatbot, qe as PkChatbotAuth, er as PkChatbotEmptyState, Ct as PkChatbotError, qn as PkChatbotFeedbackForm, Un as PkChatbotFilePreview, $n as PkChatbotInput, v as PkChatbotMessages, Xn as PkChatbotStepPayload, Zn as PkChatbotStepToolDetail, Yn as PkChatbotSteps, St as PkChatbotViewChat, vt as PkChatbotViewConversations, tr as PkChatbotViewProfile, KT as PkCheckboxField, rr as PkChunkPreview, Ot as PkCode, fD as PkCopyBlock, ir as PkDocumentHeader, Ya as PkEditorAgentType, n as PkEditorCheckboxButtons, ls as PkEditorCode, so as PkEditorDocumentType, Ns as PkEditorJsonSchema, ET as PkEditorMarkdown, DT as PkEditorMedia, _o as PkEditorNotificationType, PT as PkEditorPrompt, t as PkEditorRadioButtons, HT as PkEditorRepeater, fs as PkFieldset, gs as PkIconOption, qT as PkInfobox, pD as PkInputColor, tE as PkIntegrationProvider, QE as PkLanguageModel, aD as PkLanguageModelCombobox, Bn as PkLazyImg, rE as PkLightbox, sE as PkLoader, lE as PkMedia, KA as PkMessageDetail, MA as PkMessageParts, iD as PkModelOption, vE as PkOfflineScreen, Oj as PkPagination, TE as PkPwaNotices, DE as PkQrCode, dj as PkReasoningChat, sD as PkReasoningSettings, Dt as PkRelativeTime, YO as PkRetryCountdown, Es as PkSchemaField, kE as PkSkeleton, Xe as PkStreamingMarkdown, Jn as PkStreamingMarkdownAutoscroll, Wn as PkSvgViewer, Fj as PkTableEmpty, Bj as PkTableError, mM as PkTableSortable, HE as PkToolApprovalBadge, vr as PkToolShareDocument, kt as PkToolShowArtifact, fr as PkToolShowCalendarEvent, pr as PkToolShowComparison, dr as PkToolShowContactForm, sr as PkToolShowEmail, r as PkToolShowForm, gr as PkToolShowImageGallery, mr as PkToolShowLocation, cr as PkToolShowMessage, ur as PkToolShowProductList, hr as PkToolShowQrCode, ar as PkToolShowSources, _r as PkToolShowSuggestedReply, lr as PkToolShowWebPages, Gn as PkUrl, xt as PkVoiceOrb, bt as PkVoiceSession, cD as PkWebSearchSettings, hj as PkWelcomePopup, _j as PkWorkingBeam, Je as VvButtonLocalized, ME as agentStatusGlyph, NE as agentVisibilityGlyph, ZT as integrationProviderIcon, or as isMcpOAuthReport, at as localizeSummaryLabels, Ye as provideChatImagePolicy, WE as provideModelCatalog, GE as useModelCatalogEntry };
|
|
24001
24042
|
|
|
24002
24043
|
//# sourceMappingURL=index.js.map
|