@8wave/ai-elements 0.121.0-beta.66 → 0.121.0-beta.68
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/ai-elements.es.js +6 -6
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/composables.js +6 -6
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +549 -530
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +20 -12
- package/dist-vue/packages/components/src/PkCheckboxField.d.ts +4 -2
- package/dist-vue/packages/components/src/PkInfoPopover.d.ts +14 -1
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +2 -2
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
package/dist-vue/index.js
CHANGED
|
@@ -17899,14 +17899,103 @@ var bT = yT(), xT = /* @__PURE__ */ Vw({
|
|
|
17899
17899
|
}, 8, ["legend"])], 2);
|
|
17900
17900
|
};
|
|
17901
17901
|
}
|
|
17902
|
-
}), GT =
|
|
17902
|
+
}), GT = [
|
|
17903
|
+
"aria-label",
|
|
17904
|
+
"aria-expanded",
|
|
17905
|
+
"aria-describedby",
|
|
17906
|
+
"onKeydown"
|
|
17907
|
+
], KT = ["id"], qT = 8, JT = 8, YT = 150, XT = /* @__PURE__ */ L({
|
|
17908
|
+
inheritAttrs: !1,
|
|
17909
|
+
__name: "PkInfoPopover",
|
|
17910
|
+
props: {
|
|
17911
|
+
text: {},
|
|
17912
|
+
label: {}
|
|
17913
|
+
},
|
|
17914
|
+
setup(e) {
|
|
17915
|
+
let t = e, n = pi(), { t: r } = bi({ useScope: "global" }), i = fi(), a = B(), o = B(), s = B(!1), c = B("body"), l = "", u;
|
|
17916
|
+
function d() {
|
|
17917
|
+
if (!a.value || !o.value) return;
|
|
17918
|
+
let e = a.value.getBoundingClientRect(), { width: t, height: n } = o.value.getBoundingClientRect(), { clientWidth: r, clientHeight: i } = document.documentElement, s = e.right + qT, c = e.top + e.height / 2 - n / 2;
|
|
17919
|
+
s + t > r - JT && (s = e.left - qT - t, s < JT && (s = e.left + e.width / 2 - t / 2, c = e.bottom + qT)), s = Math.min(Math.max(s, JT), r - t - JT), c = Math.min(Math.max(c, JT), i - n - JT), o.value.style.left = `${s}px`, o.value.style.top = `${c}px`;
|
|
17920
|
+
}
|
|
17921
|
+
function f(e) {
|
|
17922
|
+
let t = e.target;
|
|
17923
|
+
!a.value?.contains(t) && !o.value?.contains(t) && h();
|
|
17924
|
+
}
|
|
17925
|
+
function p(e) {
|
|
17926
|
+
e.key === "Escape" && h();
|
|
17927
|
+
}
|
|
17928
|
+
function m() {
|
|
17929
|
+
!s.value && o.value && (o.value.showPopover(), d(), s.value = !0, document.addEventListener("pointerdown", f, !0), document.addEventListener("keydown", p), window.addEventListener("scroll", h, !0), window.addEventListener("resize", h));
|
|
17930
|
+
}
|
|
17931
|
+
function h() {
|
|
17932
|
+
clearTimeout(u), s.value && (o.value?.hidePopover(), s.value = !1, document.removeEventListener("pointerdown", f, !0), document.removeEventListener("keydown", p), window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h));
|
|
17933
|
+
}
|
|
17934
|
+
function g() {
|
|
17935
|
+
s.value ? h() : m();
|
|
17936
|
+
}
|
|
17937
|
+
function _() {
|
|
17938
|
+
l === "mouse" ? m() : g(), l = "";
|
|
17939
|
+
}
|
|
17940
|
+
function v() {
|
|
17941
|
+
a.value?.matches(":focus-visible") && m();
|
|
17942
|
+
}
|
|
17943
|
+
function y(e) {
|
|
17944
|
+
e.pointerType === "mouse" && (clearTimeout(u), m());
|
|
17945
|
+
}
|
|
17946
|
+
function b(e) {
|
|
17947
|
+
e.pointerType === "mouse" && !a.value?.matches(":focus-visible") && (clearTimeout(u), u = setTimeout(h, YT));
|
|
17948
|
+
}
|
|
17949
|
+
return ei(() => {
|
|
17950
|
+
c.value = a.value?.closest("dialog") ?? "body";
|
|
17951
|
+
}), $r(h), (e, u) => {
|
|
17952
|
+
let d = jr;
|
|
17953
|
+
return z(), N(k, null, [P("span", Jr(e.$attrs, {
|
|
17954
|
+
ref_key: "trigger",
|
|
17955
|
+
ref: a,
|
|
17956
|
+
class: "pk-info-popover u-touch-target",
|
|
17957
|
+
role: "button",
|
|
17958
|
+
tabindex: "0",
|
|
17959
|
+
"aria-label": H(n).default ? t.label : t.label ?? H(r)("label.info"),
|
|
17960
|
+
"aria-expanded": s.value,
|
|
17961
|
+
"aria-describedby": H(i),
|
|
17962
|
+
onPointerdown: u[0] ||= (e) => Gr(l) ? l.value = e.pointerType : l = e.pointerType,
|
|
17963
|
+
onPointerenter: y,
|
|
17964
|
+
onPointerleave: b,
|
|
17965
|
+
onClick: yi(_, ["prevent"]),
|
|
17966
|
+
onKeydown: [vi(yi(g, ["prevent"]), ["enter"]), vi(yi(g, ["prevent"]), ["space"])],
|
|
17967
|
+
onFocus: v,
|
|
17968
|
+
onBlur: h
|
|
17969
|
+
}), [oi(e.$slots, "default", {}, () => [I(d, {
|
|
17970
|
+
name: "ri:information-line",
|
|
17971
|
+
class: "w-14 h-14"
|
|
17972
|
+
})])], 16, GT), (z(), j(Ir, { to: c.value }, [P("div", {
|
|
17973
|
+
id: H(i),
|
|
17974
|
+
ref_key: "panel",
|
|
17975
|
+
ref: o,
|
|
17976
|
+
class: "pk-info-popover__panel",
|
|
17977
|
+
role: "tooltip",
|
|
17978
|
+
popover: "manual",
|
|
17979
|
+
onPointerenter: y,
|
|
17980
|
+
onPointerleave: b
|
|
17981
|
+
}, V(t.text), 41, KT)], 8, ["to"]))], 64);
|
|
17982
|
+
};
|
|
17983
|
+
}
|
|
17984
|
+
}), ZT = { class: "flex flex-col ml-12 gap-2" }, QT = {
|
|
17903
17985
|
key: 0,
|
|
17986
|
+
class: "flex items-center gap-8"
|
|
17987
|
+
}, $T = { class: "font-semibold" }, eE = {
|
|
17988
|
+
key: 1,
|
|
17989
|
+
class: "font-semibold"
|
|
17990
|
+
}, tE = {
|
|
17991
|
+
key: 2,
|
|
17904
17992
|
class: "text-12 text-word-3"
|
|
17905
|
-
},
|
|
17993
|
+
}, nE = /* @__PURE__ */ L({
|
|
17906
17994
|
__name: "PkCheckboxField",
|
|
17907
17995
|
props: /*@__PURE__*/ qr({
|
|
17908
17996
|
label: {},
|
|
17909
17997
|
hintLabel: {},
|
|
17998
|
+
infoLabel: {},
|
|
17910
17999
|
name: {},
|
|
17911
18000
|
disabled: { type: Boolean }
|
|
17912
18001
|
}, {
|
|
@@ -17930,9 +18019,9 @@ var bT = yT(), xT = /* @__PURE__ */ Vw({
|
|
|
17930
18019
|
"unchecked-value": !1,
|
|
17931
18020
|
disabled: e.disabled
|
|
17932
18021
|
}, {
|
|
17933
|
-
default: G(() => [P("div",
|
|
17934
|
-
P("strong",
|
|
17935
|
-
e.hintLabel ? (z(), N("small",
|
|
18022
|
+
default: G(() => [P("div", ZT, [
|
|
18023
|
+
e.infoLabel ? (z(), N("span", QT, [P("strong", $T, V(e.label), 1), I(XT, { text: e.infoLabel }, null, 8, ["text"])])) : (z(), N("strong", eE, V(e.label), 1)),
|
|
18024
|
+
e.hintLabel ? (z(), N("small", tE, V(e.hintLabel), 1)) : M("", !0),
|
|
17936
18025
|
oi(n.$slots, "default")
|
|
17937
18026
|
])]),
|
|
17938
18027
|
_: 3
|
|
@@ -17943,7 +18032,7 @@ var bT = yT(), xT = /* @__PURE__ */ Vw({
|
|
|
17943
18032
|
]);
|
|
17944
18033
|
};
|
|
17945
18034
|
}
|
|
17946
|
-
}),
|
|
18035
|
+
}), rE = /* @__PURE__ */ L({
|
|
17947
18036
|
__name: "PkInfobox",
|
|
17948
18037
|
props: {
|
|
17949
18038
|
level: { default: "info" },
|
|
@@ -17956,116 +18045,35 @@ var bT = yT(), xT = /* @__PURE__ */ Vw({
|
|
|
17956
18045
|
return z(), N("div", { class: Xr(["pk-infobox", `pk-infobox--${e.level}`]) }, [I(i, { name: n.value }, null, 8, ["name"]), oi(t.$slots, "default")], 2);
|
|
17957
18046
|
};
|
|
17958
18047
|
}
|
|
17959
|
-
}),
|
|
17960
|
-
"aria-label",
|
|
17961
|
-
"aria-expanded",
|
|
17962
|
-
"aria-describedby",
|
|
17963
|
-
"onKeydown"
|
|
17964
|
-
], ZT = ["id"], QT = 8, $T = 8, eE = 150, tE = /* @__PURE__ */ L({
|
|
17965
|
-
__name: "PkInfoPopover",
|
|
17966
|
-
props: {
|
|
17967
|
-
text: {},
|
|
17968
|
-
label: {}
|
|
17969
|
-
},
|
|
17970
|
-
setup(e) {
|
|
17971
|
-
let t = e, { t: n } = bi({ useScope: "global" }), r = fi(), i = B(), a = B(), o = B(!1), s = B("body"), c = "", l;
|
|
17972
|
-
function u() {
|
|
17973
|
-
if (!i.value || !a.value) return;
|
|
17974
|
-
let e = i.value.getBoundingClientRect(), { width: t, height: n } = a.value.getBoundingClientRect(), { clientWidth: r, clientHeight: o } = document.documentElement, s = e.right + QT, c = e.top + e.height / 2 - n / 2;
|
|
17975
|
-
s + t > r - $T && (s = e.left - QT - t, s < $T && (s = e.left + e.width / 2 - t / 2, c = e.bottom + QT)), s = Math.min(Math.max(s, $T), r - t - $T), c = Math.min(Math.max(c, $T), o - n - $T), a.value.style.left = `${s}px`, a.value.style.top = `${c}px`;
|
|
17976
|
-
}
|
|
17977
|
-
function d(e) {
|
|
17978
|
-
let t = e.target;
|
|
17979
|
-
!i.value?.contains(t) && !a.value?.contains(t) && m();
|
|
17980
|
-
}
|
|
17981
|
-
function f(e) {
|
|
17982
|
-
e.key === "Escape" && m();
|
|
17983
|
-
}
|
|
17984
|
-
function p() {
|
|
17985
|
-
!o.value && a.value && (a.value.showPopover(), u(), o.value = !0, document.addEventListener("pointerdown", d, !0), document.addEventListener("keydown", f), window.addEventListener("scroll", m, !0), window.addEventListener("resize", m));
|
|
17986
|
-
}
|
|
17987
|
-
function m() {
|
|
17988
|
-
clearTimeout(l), o.value && (a.value?.hidePopover(), o.value = !1, document.removeEventListener("pointerdown", d, !0), document.removeEventListener("keydown", f), window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m));
|
|
17989
|
-
}
|
|
17990
|
-
function h() {
|
|
17991
|
-
o.value ? m() : p();
|
|
17992
|
-
}
|
|
17993
|
-
function g() {
|
|
17994
|
-
c === "mouse" ? p() : h(), c = "";
|
|
17995
|
-
}
|
|
17996
|
-
function _() {
|
|
17997
|
-
i.value?.matches(":focus-visible") && p();
|
|
17998
|
-
}
|
|
17999
|
-
function v(e) {
|
|
18000
|
-
e.pointerType === "mouse" && (clearTimeout(l), p());
|
|
18001
|
-
}
|
|
18002
|
-
function y(e) {
|
|
18003
|
-
e.pointerType === "mouse" && !i.value?.matches(":focus-visible") && (clearTimeout(l), l = setTimeout(m, eE));
|
|
18004
|
-
}
|
|
18005
|
-
return ei(() => {
|
|
18006
|
-
s.value = i.value?.closest("dialog") ?? "body";
|
|
18007
|
-
}), $r(m), (e, l) => {
|
|
18008
|
-
let u = jr;
|
|
18009
|
-
return z(), N(k, null, [P("span", {
|
|
18010
|
-
ref_key: "trigger",
|
|
18011
|
-
ref: i,
|
|
18012
|
-
class: "pk-info-popover u-touch-target",
|
|
18013
|
-
role: "button",
|
|
18014
|
-
tabindex: "0",
|
|
18015
|
-
"aria-label": t.label ?? H(n)("label.info"),
|
|
18016
|
-
"aria-expanded": o.value,
|
|
18017
|
-
"aria-describedby": H(r),
|
|
18018
|
-
onPointerdown: l[0] ||= (e) => Gr(c) ? c.value = e.pointerType : c = e.pointerType,
|
|
18019
|
-
onPointerenter: v,
|
|
18020
|
-
onPointerleave: y,
|
|
18021
|
-
onClick: yi(g, ["prevent"]),
|
|
18022
|
-
onKeydown: [vi(yi(h, ["prevent"]), ["enter"]), vi(yi(h, ["prevent"]), ["space"])],
|
|
18023
|
-
onFocus: _,
|
|
18024
|
-
onBlur: m
|
|
18025
|
-
}, [I(u, {
|
|
18026
|
-
name: "ri:information-line",
|
|
18027
|
-
class: "w-14 h-14"
|
|
18028
|
-
})], 40, XT), (z(), j(Ir, { to: s.value }, [P("div", {
|
|
18029
|
-
id: H(r),
|
|
18030
|
-
ref_key: "panel",
|
|
18031
|
-
ref: a,
|
|
18032
|
-
class: "pk-info-popover__panel",
|
|
18033
|
-
role: "tooltip",
|
|
18034
|
-
popover: "manual",
|
|
18035
|
-
onPointerenter: v,
|
|
18036
|
-
onPointerleave: y
|
|
18037
|
-
}, V(t.text), 41, ZT)], 8, ["to"]))], 64);
|
|
18038
|
-
};
|
|
18039
|
-
}
|
|
18040
|
-
}), nE = {
|
|
18048
|
+
}), iE = {
|
|
18041
18049
|
[pa.HubSpot]: "mdi:hubspot",
|
|
18042
18050
|
[pa.Salesforce]: "mdi:salesforce",
|
|
18043
18051
|
[pa.SharePoint]: "mdi:microsoft-sharepoint"
|
|
18044
|
-
},
|
|
18045
|
-
function
|
|
18046
|
-
return e ?
|
|
18052
|
+
}, aE = { web: "ri:global-line" }, oE = "mdi:puzzle-outline";
|
|
18053
|
+
function sE(e) {
|
|
18054
|
+
return e ? iE[e] ?? aE[e] ?? oE : oE;
|
|
18047
18055
|
}
|
|
18048
18056
|
// ../../packages/components/src/PkIntegrationProvider.vue?vue&type=script&setup=true&lang.ts
|
|
18049
|
-
var
|
|
18057
|
+
var cE = { class: "flex gap-sm items-center min-w-0" }, lE = { class: "w-40 h-40 shrink-0 rounded-lg border border-surface-3 bg-surface-1 flex items-center justify-center text-18" }, uE = { class: "truncate" }, dE = /* @__PURE__ */ L({
|
|
18050
18058
|
__name: "PkIntegrationProvider",
|
|
18051
18059
|
props: { provider: {} },
|
|
18052
18060
|
setup(e) {
|
|
18053
|
-
let t = e, { t: n, te: r } = bi({ useScope: "global" }), i = A(() => r(`integrationProvider.${t.provider}`) ? n(`integrationProvider.${t.provider}`) : t.provider), a = A(() =>
|
|
18061
|
+
let t = e, { t: n, te: r } = bi({ useScope: "global" }), i = A(() => r(`integrationProvider.${t.provider}`) ? n(`integrationProvider.${t.provider}`) : t.provider), a = A(() => sE(t.provider));
|
|
18054
18062
|
return (e, t) => {
|
|
18055
18063
|
let n = jr;
|
|
18056
|
-
return z(), N("div",
|
|
18064
|
+
return z(), N("div", cE, [P("span", lE, [I(n, {
|
|
18057
18065
|
name: a.value,
|
|
18058
18066
|
title: i.value
|
|
18059
|
-
}, null, 8, ["name", "title"])]), P("span",
|
|
18067
|
+
}, null, 8, ["name", "title"])]), P("span", uE, V(i.value), 1)]);
|
|
18060
18068
|
};
|
|
18061
18069
|
}
|
|
18062
|
-
}),
|
|
18070
|
+
}), fE = [
|
|
18063
18071
|
"href",
|
|
18064
18072
|
"data-pswp-src",
|
|
18065
18073
|
"data-pswp-width",
|
|
18066
18074
|
"data-pswp-height",
|
|
18067
18075
|
"data-pswp-caption"
|
|
18068
|
-
],
|
|
18076
|
+
], pE = /* @__PURE__ */ L({
|
|
18069
18077
|
__name: "PkLightbox",
|
|
18070
18078
|
props: {
|
|
18071
18079
|
images: {},
|
|
@@ -18108,23 +18116,23 @@ var oE = { class: "flex gap-sm items-center min-w-0" }, sE = { class: "w-40 h-40
|
|
|
18108
18116
|
hidden: "",
|
|
18109
18117
|
target: "_blank",
|
|
18110
18118
|
rel: "noopener noreferrer"
|
|
18111
|
-
}, null, 8,
|
|
18119
|
+
}, null, 8, fE))), 128)), oi(t.$slots, "default", { open: c })], 512));
|
|
18112
18120
|
}
|
|
18113
|
-
}),
|
|
18121
|
+
}), mE = (e, t) => {
|
|
18114
18122
|
let n = e.__vccOpts || e;
|
|
18115
18123
|
for (let [e, r] of t) n[e] = r;
|
|
18116
18124
|
return n;
|
|
18117
|
-
},
|
|
18118
|
-
function
|
|
18125
|
+
}, hE = {};
|
|
18126
|
+
function gE(e, t) {
|
|
18119
18127
|
return z(), N("div", null, [...t[0] ||= [P("div", {
|
|
18120
18128
|
"aria-hidden": "true",
|
|
18121
18129
|
class: "pk-loader"
|
|
18122
18130
|
}, null, -1)]]);
|
|
18123
18131
|
}
|
|
18124
|
-
var
|
|
18132
|
+
var _E = /*#__PURE__*/ mE(hE, [["render", gE]]), vE = {
|
|
18125
18133
|
key: 2,
|
|
18126
18134
|
class: "absolute inset-0 vv-skeleton__item z-1 h-auto"
|
|
18127
|
-
},
|
|
18135
|
+
}, yE = /* @__PURE__ */ L({
|
|
18128
18136
|
__name: "PkMedia",
|
|
18129
18137
|
props: {
|
|
18130
18138
|
media: {},
|
|
@@ -18176,16 +18184,16 @@ var hE = /*#__PURE__*/ fE(pE, [["render", mE]]), gE = {
|
|
|
18176
18184
|
width: `${e.width}px`,
|
|
18177
18185
|
height: `${e.height}px`
|
|
18178
18186
|
})
|
|
18179
|
-
}, [I(r, { name: a.value }, null, 8, ["name"])], 4)), i.value ? (z(), N("div",
|
|
18187
|
+
}, [I(r, { name: a.value }, null, 8, ["name"])], 4)), i.value ? (z(), N("div", vE)) : M("", !0)], 2);
|
|
18180
18188
|
};
|
|
18181
18189
|
}
|
|
18182
|
-
}),
|
|
18190
|
+
}), bE = ["aria-labelledby", "aria-describedby"], xE = {
|
|
18183
18191
|
class: "pk-offline-screen__badge",
|
|
18184
18192
|
"aria-hidden": "true"
|
|
18185
|
-
},
|
|
18193
|
+
}, SE = ["id"], CE = ["id"], wE = { class: "pk-offline-screen__actions" }, TE = {
|
|
18186
18194
|
class: "pk-offline-screen__status",
|
|
18187
18195
|
"aria-live": "polite"
|
|
18188
|
-
},
|
|
18196
|
+
}, EE = /*@__PURE__*/ L({
|
|
18189
18197
|
__name: "PkOfflineScreen",
|
|
18190
18198
|
props: {
|
|
18191
18199
|
offline: { type: Boolean },
|
|
@@ -18213,17 +18221,17 @@ var hE = /*#__PURE__*/ fE(pE, [["render", mE]]), gE = {
|
|
|
18213
18221
|
ref: c,
|
|
18214
18222
|
class: "pk-offline-screen__panel"
|
|
18215
18223
|
}, [
|
|
18216
|
-
P("span",
|
|
18224
|
+
P("span", xE, [I(l, { name: "wifi-off" })]),
|
|
18217
18225
|
P("h1", {
|
|
18218
18226
|
id: H(o),
|
|
18219
18227
|
class: "vv-text vv-text--headline vv-text--size-1 pk-offline-screen__title"
|
|
18220
|
-
}, V(H(i)("title")), 9,
|
|
18228
|
+
}, V(H(i)("title")), 9, SE),
|
|
18221
18229
|
P("p", {
|
|
18222
18230
|
id: H(s),
|
|
18223
18231
|
class: "pk-offline-screen__text"
|
|
18224
|
-
}, V(H(i)("text", { name: H(a) })), 9,
|
|
18232
|
+
}, V(H(i)("text", { name: H(a) })), 9, CE),
|
|
18225
18233
|
n[2] ||= P("hr", { class: "vv-separator mt-32 mb-24" }, null, -1),
|
|
18226
|
-
P("div",
|
|
18234
|
+
P("div", wE, [I(u, {
|
|
18227
18235
|
icon: "reload",
|
|
18228
18236
|
label: t.$t("action.retry"),
|
|
18229
18237
|
loading: e.checking,
|
|
@@ -18233,18 +18241,18 @@ var hE = /*#__PURE__*/ fE(pE, [["render", mE]]), gE = {
|
|
|
18233
18241
|
"label",
|
|
18234
18242
|
"loading",
|
|
18235
18243
|
"disabled"
|
|
18236
|
-
]), P("p",
|
|
18244
|
+
]), P("p", TE, [n[1] ||= P("span", {
|
|
18237
18245
|
class: "pk-offline-screen__pulse",
|
|
18238
18246
|
"aria-hidden": "true"
|
|
18239
18247
|
}, null, -1), F(" " + V(e.checking ? H(i)("statusChecking") : H(i)("statusIdle")), 1)])])
|
|
18240
|
-
], 512)], 8,
|
|
18248
|
+
], 512)], 8, bE)) : M("", !0)]),
|
|
18241
18249
|
_: 1
|
|
18242
18250
|
});
|
|
18243
18251
|
};
|
|
18244
18252
|
}
|
|
18245
18253
|
});
|
|
18246
18254
|
// ../../packages/components/src/PkOfflineScreen.vue?vue&type=i18n&index=0&lang.json
|
|
18247
|
-
function
|
|
18255
|
+
function DE(e) {
|
|
18248
18256
|
let t = e;
|
|
18249
18257
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
18250
18258
|
locale: "",
|
|
@@ -18345,8 +18353,8 @@ function TE(e) {
|
|
|
18345
18353
|
});
|
|
18346
18354
|
}
|
|
18347
18355
|
// ../../packages/components/src/PkOfflineScreen.vue
|
|
18348
|
-
typeof
|
|
18349
|
-
var
|
|
18356
|
+
typeof DE == "function" && DE(EE);
|
|
18357
|
+
var OE = EE, kE = { class: "block text-smaller mt-4" }, AE = { class: "block text-smaller mt-4" }, jE = "pwa-install-dismissed", ME = 5e3, NE = /*@__PURE__*/ L({
|
|
18350
18358
|
__name: "PkPwaNotices",
|
|
18351
18359
|
props: {
|
|
18352
18360
|
updateAvailable: { type: Boolean },
|
|
@@ -18354,7 +18362,7 @@ var EE = wE, DE = { class: "block text-smaller mt-4" }, OE = { class: "block tex
|
|
|
18354
18362
|
},
|
|
18355
18363
|
emits: ["update", "dismissUpdate"],
|
|
18356
18364
|
setup(e, { emit: t }) {
|
|
18357
|
-
let n = t, { t: r } = bi(), { t: i } = bi({ useScope: "global" }), { shortName: a } = wo(), o = mt(
|
|
18365
|
+
let n = t, { t: r } = bi(), { t: i } = bi({ useScope: "global" }), { shortName: a } = wo(), o = mt(jE, !1), s = B(), c = B(!1), l = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, u = () => {
|
|
18358
18366
|
let e = window.navigator.userAgent;
|
|
18359
18367
|
return (/iphone|ipad|ipod/i.test(e) || /macintosh/i.test(e) && window.navigator.maxTouchPoints > 1) && !/crios|fxios|edgios/i.test(e);
|
|
18360
18368
|
}, d = B(!1), f, p = A(() => !o.value && (!!s.value || d.value)), m = (e) => {
|
|
@@ -18365,7 +18373,7 @@ var EE = wE, DE = { class: "block text-smaller mt-4" }, OE = { class: "block tex
|
|
|
18365
18373
|
ei(() => {
|
|
18366
18374
|
l() || (window.addEventListener("beforeinstallprompt", m), window.addEventListener("appinstalled", h), u() && (f = setTimeout(() => {
|
|
18367
18375
|
d.value = !0;
|
|
18368
|
-
},
|
|
18376
|
+
}, ME)));
|
|
18369
18377
|
}), $r(() => {
|
|
18370
18378
|
window.removeEventListener("beforeinstallprompt", m), window.removeEventListener("appinstalled", h), clearTimeout(f);
|
|
18371
18379
|
});
|
|
@@ -18418,7 +18426,7 @@ var EE = wE, DE = { class: "block text-smaller mt-4" }, OE = { class: "block tex
|
|
|
18418
18426
|
}, null, 8, ["label", "disabled"])]),
|
|
18419
18427
|
_: 1
|
|
18420
18428
|
})]),
|
|
18421
|
-
default: G(() => [F(V(H(r)("installText", { name: H(a) })) + " ", 1), P("small",
|
|
18429
|
+
default: G(() => [F(V(H(r)("installText", { name: H(a) })) + " ", 1), P("small", kE, V(d.value ? H(r)("installHintIos") : H(r)("installHint")), 1)]),
|
|
18422
18430
|
_: 1
|
|
18423
18431
|
})) : M("", !0), e.updateAvailable ? (z(), j(u, {
|
|
18424
18432
|
key: "update",
|
|
@@ -18444,7 +18452,7 @@ var EE = wE, DE = { class: "block text-smaller mt-4" }, OE = { class: "block tex
|
|
|
18444
18452
|
}, null, 8, ["label", "disabled"])]),
|
|
18445
18453
|
_: 1
|
|
18446
18454
|
})]),
|
|
18447
|
-
default: G(() => [F(V(H(r)("updateText")) + " ", 1), P("small",
|
|
18455
|
+
default: G(() => [F(V(H(r)("updateText")) + " ", 1), P("small", AE, V(H(r)("updateInfo")), 1)]),
|
|
18448
18456
|
_: 1
|
|
18449
18457
|
})) : M("", !0)]),
|
|
18450
18458
|
_: 1
|
|
@@ -18453,7 +18461,7 @@ var EE = wE, DE = { class: "block text-smaller mt-4" }, OE = { class: "block tex
|
|
|
18453
18461
|
}
|
|
18454
18462
|
});
|
|
18455
18463
|
// ../../packages/components/src/PkPwaNotices.vue?vue&type=i18n&index=0&lang.json
|
|
18456
|
-
function
|
|
18464
|
+
function PE(e) {
|
|
18457
18465
|
let t = e;
|
|
18458
18466
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
18459
18467
|
locale: "",
|
|
@@ -18586,8 +18594,8 @@ function ME(e) {
|
|
|
18586
18594
|
});
|
|
18587
18595
|
}
|
|
18588
18596
|
// ../../packages/components/src/PkPwaNotices.vue
|
|
18589
|
-
typeof
|
|
18590
|
-
var
|
|
18597
|
+
typeof PE == "function" && PE(NE);
|
|
18598
|
+
var FE = NE, IE = ["aria-label", "innerHTML"], LE = /* @__PURE__ */ L({
|
|
18591
18599
|
__name: "PkQrCode",
|
|
18592
18600
|
props: {
|
|
18593
18601
|
value: {},
|
|
@@ -18610,12 +18618,12 @@ var NE = jE, PE = ["aria-label", "innerHTML"], FE = /* @__PURE__ */ L({
|
|
|
18610
18618
|
role: "img",
|
|
18611
18619
|
"aria-label": e.label,
|
|
18612
18620
|
innerHTML: n.value
|
|
18613
|
-
}, null, 8,
|
|
18621
|
+
}, null, 8, IE));
|
|
18614
18622
|
}
|
|
18615
|
-
}),
|
|
18623
|
+
}), RE = {
|
|
18616
18624
|
key: 0,
|
|
18617
18625
|
class: "vv-skeleton"
|
|
18618
|
-
},
|
|
18626
|
+
}, zE = /* @__PURE__ */ L({
|
|
18619
18627
|
inheritAttrs: !1,
|
|
18620
18628
|
__name: "PkSkeleton",
|
|
18621
18629
|
props: {
|
|
@@ -18628,32 +18636,32 @@ var NE = jE, PE = ["aria-label", "innerHTML"], FE = /* @__PURE__ */ L({
|
|
|
18628
18636
|
},
|
|
18629
18637
|
setup(e) {
|
|
18630
18638
|
return (t, n) => (z(), j(Lr, { mode: "out-in" }, {
|
|
18631
|
-
default: G(() => [e.loading ? (z(), N("div",
|
|
18639
|
+
default: G(() => [e.loading ? (z(), N("div", RE, [oi(t.$slots, "skeleton", {}, () => [(z(!0), N(k, null, ai(typeof e.rows == "string" ? parseInt(e.rows) : e.rows, (n) => (z(), N("div", {
|
|
18632
18640
|
key: n,
|
|
18633
18641
|
class: Xr(["vv-skeleton__item", e.rowClasses?.[n - 1] ? e.rowClasses[n - 1] : t.$attrs.class])
|
|
18634
18642
|
}, null, 2))), 128))])])) : oi(t.$slots, "default", {}, void 0, void 0, 1)]),
|
|
18635
18643
|
_: 3
|
|
18636
18644
|
}));
|
|
18637
18645
|
}
|
|
18638
|
-
}),
|
|
18646
|
+
}), BE = {
|
|
18639
18647
|
active: "ri:play-line",
|
|
18640
18648
|
inactive: "ri:pause-line",
|
|
18641
18649
|
draft: "ri:edit-line",
|
|
18642
18650
|
error: "ri:error-warning-line"
|
|
18643
|
-
},
|
|
18651
|
+
}, VE = {
|
|
18644
18652
|
public: "ri:global-line",
|
|
18645
18653
|
organization: "ri:building-line",
|
|
18646
18654
|
private: "ri:shield-user-line",
|
|
18647
18655
|
restricted: "ri:lock-line"
|
|
18648
18656
|
};
|
|
18649
|
-
function
|
|
18650
|
-
return
|
|
18657
|
+
function HE(e) {
|
|
18658
|
+
return BE[e ?? ""] ?? "ri:pause-line";
|
|
18651
18659
|
}
|
|
18652
|
-
function
|
|
18653
|
-
return
|
|
18660
|
+
function UE(e) {
|
|
18661
|
+
return VE[e ?? ""] ?? "ri:building-line";
|
|
18654
18662
|
}
|
|
18655
18663
|
// ../../packages/components/src/chat/constants.ts
|
|
18656
|
-
var
|
|
18664
|
+
var WE = ze, GE = .6, KE = he.parse({}), qE = /* @__PURE__ */ L({
|
|
18657
18665
|
__name: "PkToolApprovalBadge",
|
|
18658
18666
|
setup(e) {
|
|
18659
18667
|
let { t } = bi({ useScope: "global" });
|
|
@@ -18671,16 +18679,16 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18671
18679
|
});
|
|
18672
18680
|
};
|
|
18673
18681
|
}
|
|
18674
|
-
}),
|
|
18675
|
-
let e = R(
|
|
18682
|
+
}), JE = Symbol("modelCatalog"), YE = (e) => ni(JE, e), XE = () => {
|
|
18683
|
+
let e = R(JE, void 0);
|
|
18676
18684
|
return (t) => t ? e?.value?.find((e) => e.id === t) : void 0;
|
|
18677
|
-
},
|
|
18678
|
-
let e = R(
|
|
18685
|
+
}, ZE = () => {
|
|
18686
|
+
let e = R(JE, void 0);
|
|
18679
18687
|
return A(() => e?.value !== void 0);
|
|
18680
|
-
},
|
|
18688
|
+
}, QE = (e) => Re(e) ? {
|
|
18681
18689
|
label: "label.modelNotAvailable",
|
|
18682
18690
|
hint: "hint.modelNotOnEndpoint"
|
|
18683
|
-
} : void 0,
|
|
18691
|
+
} : void 0, $E = (e) => {
|
|
18684
18692
|
if (e) {
|
|
18685
18693
|
if (e.retired) return {
|
|
18686
18694
|
label: "label.retired",
|
|
@@ -18695,7 +18703,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18695
18703
|
hint: "hint.modelDisabledForOrganization"
|
|
18696
18704
|
};
|
|
18697
18705
|
}
|
|
18698
|
-
},
|
|
18706
|
+
}, eD = { class: "flex items-baseline gap-6 min-w-0" }, tD = ["title"], nD = ["title"], rD = /* @__PURE__ */ L({
|
|
18699
18707
|
__name: "PkLanguageModel",
|
|
18700
18708
|
props: {
|
|
18701
18709
|
modelName: {},
|
|
@@ -18707,7 +18715,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18707
18715
|
asOption: { type: Boolean }
|
|
18708
18716
|
},
|
|
18709
18717
|
setup(e) {
|
|
18710
|
-
let t = e, { t: n } = bi({ useScope: "global" }), r =
|
|
18718
|
+
let t = e, { t: n } = bi({ useScope: "global" }), r = XE(), i = ZE(), a = A(() => r(t.modelName)), o = A(() => {
|
|
18711
18719
|
let e = t.modelName;
|
|
18712
18720
|
if (!e) return;
|
|
18713
18721
|
let n = e.indexOf("/");
|
|
@@ -18730,7 +18738,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18730
18738
|
hint: n("hint.modelSourcePlatform")
|
|
18731
18739
|
} : void 0;
|
|
18732
18740
|
}), p = A(() => {
|
|
18733
|
-
if (!t.historical) return a.value ?
|
|
18741
|
+
if (!t.historical) return a.value ? $E(a.value) : i.value ? QE(t.modelName) : void 0;
|
|
18734
18742
|
});
|
|
18735
18743
|
return (t, r) => {
|
|
18736
18744
|
let i = jr;
|
|
@@ -18751,34 +18759,34 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18751
18759
|
"prefix",
|
|
18752
18760
|
"class",
|
|
18753
18761
|
"title"
|
|
18754
|
-
])), P("span",
|
|
18762
|
+
])), P("span", eD, [
|
|
18755
18763
|
P("span", { class: Xr(["truncate", { "text-word-3": p.value }]) }, V(e.label || a.value?.label || o.value), 3),
|
|
18756
18764
|
f.value ? (z(), N("span", {
|
|
18757
18765
|
key: 0,
|
|
18758
18766
|
class: "shrink-0 text-12 text-word-3",
|
|
18759
18767
|
title: f.value.hint
|
|
18760
|
-
}, V(f.value.label), 9,
|
|
18768
|
+
}, V(f.value.label), 9, tD)) : M("", !0),
|
|
18761
18769
|
p.value ? (z(), N("span", {
|
|
18762
18770
|
key: 1,
|
|
18763
18771
|
class: "shrink-0 text-12 text-word-3",
|
|
18764
18772
|
title: H(n)(p.value.hint)
|
|
18765
|
-
}, V(H(n)(p.value.label)), 9,
|
|
18773
|
+
}, V(H(n)(p.value.label)), 9, nD)) : M("", !0)
|
|
18766
18774
|
])]),
|
|
18767
18775
|
_: 1
|
|
18768
18776
|
}, 16);
|
|
18769
18777
|
};
|
|
18770
18778
|
}
|
|
18771
|
-
}),
|
|
18779
|
+
}), iD = { class: "flex flex-col gap-2 min-w-0" }, aD = { class: "flex items-center gap-8 min-w-0 leading-tight" }, oD = { class: "truncate" }, sD = ["title"], cD = {
|
|
18772
18780
|
key: 0,
|
|
18773
18781
|
class: "text-12 text-word-3 truncate leading-tight"
|
|
18774
|
-
},
|
|
18782
|
+
}, lD = /* @__PURE__ */ L({
|
|
18775
18783
|
__name: "PkModelOption",
|
|
18776
18784
|
props: {
|
|
18777
18785
|
entry: {},
|
|
18778
18786
|
modelName: {}
|
|
18779
18787
|
},
|
|
18780
18788
|
setup(e) {
|
|
18781
|
-
let t = e, { t: n, n: r } = bi({ useScope: "global" }), i = A(() => t.entry?.label || t.modelName || ""), a = A(() => t.entry?.brandIcon ?? "ri:cpu-line"), o = A(() => a.value.startsWith("custom:") ? "custom" : void 0), s = A(() => a.value.replace(/^custom:/, "")), c = A(() =>
|
|
18789
|
+
let t = e, { t: n, n: r } = bi({ useScope: "global" }), i = A(() => t.entry?.label || t.modelName || ""), a = A(() => t.entry?.brandIcon ?? "ri:cpu-line"), o = A(() => a.value.startsWith("custom:") ? "custom" : void 0), s = A(() => a.value.replace(/^custom:/, "")), c = A(() => $E(t.entry)), l = A(() => {
|
|
18782
18790
|
let e = t.entry?.pricing;
|
|
18783
18791
|
if (!e) return;
|
|
18784
18792
|
let n = (e) => r(e * Ue, "USD");
|
|
@@ -18793,11 +18801,11 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18793
18801
|
"icon-title": e.entry?.brand,
|
|
18794
18802
|
class: "w-full"
|
|
18795
18803
|
}, {
|
|
18796
|
-
default: G(() => [P("span",
|
|
18804
|
+
default: G(() => [P("span", iD, [P("span", aD, [P("span", oD, V(i.value), 1), c.value ? (z(), N("span", {
|
|
18797
18805
|
key: 0,
|
|
18798
18806
|
class: "text-12 text-word-3 shrink-0",
|
|
18799
18807
|
title: H(n)(c.value.hint)
|
|
18800
|
-
}, V(H(n)(c.value.label)), 9,
|
|
18808
|
+
}, V(H(n)(c.value.label)), 9, sD)) : M("", !0)]), d.value ? (z(), N("span", cD, V(d.value), 1)) : M("", !0)])]),
|
|
18801
18809
|
_: 1
|
|
18802
18810
|
}, 8, [
|
|
18803
18811
|
"icon",
|
|
@@ -18805,7 +18813,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18805
18813
|
"icon-title"
|
|
18806
18814
|
]));
|
|
18807
18815
|
}
|
|
18808
|
-
}),
|
|
18816
|
+
}), uD = /* @__PURE__ */ L({
|
|
18809
18817
|
__name: "PkLanguageModelCombobox",
|
|
18810
18818
|
props: {
|
|
18811
18819
|
name: {},
|
|
@@ -18822,7 +18830,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18822
18830
|
},
|
|
18823
18831
|
emits: ["update:modelValue"],
|
|
18824
18832
|
setup(e, { emit: t }) {
|
|
18825
|
-
let { t: n } = bi({ useScope: "global" }), r = e, i = t, a = R(
|
|
18833
|
+
let { t: n } = bi({ useScope: "global" }), r = e, i = t, a = R(JE, void 0), o = A(() => r.catalog ?? a?.value), s = A(() => Array.isArray(r.modelValue) ? r.modelValue.filter(Boolean) : r.modelValue || void 0), c = A(() => WE.map((e) => ({
|
|
18826
18834
|
label: e,
|
|
18827
18835
|
value: e
|
|
18828
18836
|
}))), l = (e) => r.zeroDataRetention === !0 && e.zdr === ia.None || r.disallowPromptTraining === !0 && e.noTraining === ia.None, u = A(() => new Set([r.current, ...Array.isArray(s.value) ? s.value : [s.value]].filter(Boolean))), d = (e) => !r.inputModality || !e.inputModalities || e.inputModalities.includes(r.inputModality), f = A(() => (o.value ?? []).filter((e) => u.value.has(e.id) || (r.offerDisabled ? !e.retired : aa(e)) && !l(e) && d(e)).map((e) => ({
|
|
@@ -18873,7 +18881,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18873
18881
|
"selected-hint-label": "",
|
|
18874
18882
|
"onUpdate:modelValue": a[0] ||= (e) => i("update:modelValue", e)
|
|
18875
18883
|
}, {
|
|
18876
|
-
value: G(({ selectedOptions: e }) => [r.multiple ? (z(!0), N(k, { key: 0 }, ai(e, (t) => (z(), j(
|
|
18884
|
+
value: G(({ selectedOptions: e }) => [r.multiple ? (z(!0), N(k, { key: 0 }, ai(e, (t) => (z(), j(rD, {
|
|
18877
18885
|
key: g(t),
|
|
18878
18886
|
"model-name": g(t),
|
|
18879
18887
|
label: _(t)?.catalogLabel,
|
|
@@ -18891,7 +18899,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18891
18899
|
"endpoint-name",
|
|
18892
18900
|
"show-source",
|
|
18893
18901
|
"class"
|
|
18894
|
-
]))), 128)) : (z(), j(
|
|
18902
|
+
]))), 128)) : (z(), j(rD, {
|
|
18895
18903
|
key: 1,
|
|
18896
18904
|
"model-name": g(e[0]),
|
|
18897
18905
|
label: _(e[0])?.catalogLabel,
|
|
@@ -18906,11 +18914,11 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18906
18914
|
"endpoint-name",
|
|
18907
18915
|
"show-source"
|
|
18908
18916
|
]))]),
|
|
18909
|
-
option: G(({ option: e }) => [_(e)?.entry ? (z(), j(
|
|
18917
|
+
option: G(({ option: e }) => [_(e)?.entry ? (z(), j(lD, {
|
|
18910
18918
|
key: 0,
|
|
18911
18919
|
entry: _(e)?.entry,
|
|
18912
18920
|
class: "text-14"
|
|
18913
|
-
}, null, 8, ["entry"])) : (z(), j(
|
|
18921
|
+
}, null, 8, ["entry"])) : (z(), j(rD, {
|
|
18914
18922
|
key: 1,
|
|
18915
18923
|
"as-option": "",
|
|
18916
18924
|
"model-name": g(e),
|
|
@@ -18934,10 +18942,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
18934
18942
|
]);
|
|
18935
18943
|
};
|
|
18936
18944
|
}
|
|
18937
|
-
}),
|
|
18945
|
+
}), dD = {
|
|
18938
18946
|
key: 5,
|
|
18939
18947
|
class: "text-12 text-word-3"
|
|
18940
|
-
},
|
|
18948
|
+
}, fD = /* @__PURE__ */ L({
|
|
18941
18949
|
__name: "PkReasoningSettings",
|
|
18942
18950
|
props: /*@__PURE__*/ qr({ activeProvider: {} }, {
|
|
18943
18951
|
reasoning: { default: void 0 },
|
|
@@ -19153,7 +19161,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19153
19161
|
"label",
|
|
19154
19162
|
"placeholder"
|
|
19155
19163
|
]),
|
|
19156
|
-
I(
|
|
19164
|
+
I(nE, {
|
|
19157
19165
|
"model-value": s.value?.includeThoughts ?? !1,
|
|
19158
19166
|
name: "reasoning.google.includeThoughts",
|
|
19159
19167
|
class: "mb-0",
|
|
@@ -19223,10 +19231,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19223
19231
|
"placeholder",
|
|
19224
19232
|
"hint-label",
|
|
19225
19233
|
"options"
|
|
19226
|
-
])) : (z(), N("small",
|
|
19234
|
+
])) : (z(), N("small", dD, V(H(t)("hint.reasoningNotSupported")), 1));
|
|
19227
19235
|
};
|
|
19228
19236
|
}
|
|
19229
|
-
}),
|
|
19237
|
+
}), pD = /* @__PURE__ */ L({
|
|
19230
19238
|
__name: "PkWebSearchSettings",
|
|
19231
19239
|
props: /*@__PURE__*/ qr({
|
|
19232
19240
|
activeProvider: {},
|
|
@@ -19322,7 +19330,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19322
19330
|
});
|
|
19323
19331
|
return (n, d) => {
|
|
19324
19332
|
let f = Dr, p = Pr;
|
|
19325
|
-
return z(), N(k, null, [I(
|
|
19333
|
+
return z(), N(k, null, [I(nE, {
|
|
19326
19334
|
"model-value": i.value?.enabled ?? !1,
|
|
19327
19335
|
name: "webSearchEnabled",
|
|
19328
19336
|
switch: "",
|
|
@@ -19606,7 +19614,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19606
19614
|
], 64)) : M("", !0)], 64)) : M("", !0)], 64)) : M("", !0)], 64);
|
|
19607
19615
|
};
|
|
19608
19616
|
}
|
|
19609
|
-
}),
|
|
19617
|
+
}), mD = /* @__PURE__ */ L({
|
|
19610
19618
|
__name: "PkEditorChannels",
|
|
19611
19619
|
props: /*@__PURE__*/ qr({ type: {} }, {
|
|
19612
19620
|
modelValue: { default: () => Object.values(Se) },
|
|
@@ -19623,7 +19631,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19623
19631
|
}
|
|
19624
19632
|
return (e, t) => (z(), j(ms, { legend: e.$t("label.channels") }, {
|
|
19625
19633
|
default: G(() => [
|
|
19626
|
-
I(
|
|
19634
|
+
I(nE, {
|
|
19627
19635
|
"model-value": i(H(Se).Frontoffice),
|
|
19628
19636
|
name: "channel.frontoffice",
|
|
19629
19637
|
switch: "",
|
|
@@ -19635,7 +19643,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19635
19643
|
"label",
|
|
19636
19644
|
"hint-label"
|
|
19637
19645
|
]),
|
|
19638
|
-
r.value ? (z(), j(
|
|
19646
|
+
r.value ? (z(), j(nE, {
|
|
19639
19647
|
key: 0,
|
|
19640
19648
|
"model-value": i(H(Se).App),
|
|
19641
19649
|
name: "channel.app",
|
|
@@ -19648,7 +19656,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19648
19656
|
"label",
|
|
19649
19657
|
"hint-label"
|
|
19650
19658
|
])) : M("", !0),
|
|
19651
|
-
r.value ? (z(), j(
|
|
19659
|
+
r.value ? (z(), j(nE, {
|
|
19652
19660
|
key: 1,
|
|
19653
19661
|
"model-value": i(H(Se).Widget),
|
|
19654
19662
|
name: "channel.widget",
|
|
@@ -19666,7 +19674,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19666
19674
|
_: 1
|
|
19667
19675
|
}, 8, ["legend"]));
|
|
19668
19676
|
}
|
|
19669
|
-
}),
|
|
19677
|
+
}), hD = { key: 1 }, gD = { class: "pk-copy-block__actions" }, _D = /* @__PURE__ */ L({
|
|
19670
19678
|
__name: "PkCopyBlock",
|
|
19671
19679
|
props: {
|
|
19672
19680
|
source: {},
|
|
@@ -19681,7 +19689,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19681
19689
|
key: 0,
|
|
19682
19690
|
code: n.value,
|
|
19683
19691
|
language: e.codeLanguage
|
|
19684
|
-
}, null, 8, ["code", "language"])) : (z(), N("div",
|
|
19692
|
+
}, null, 8, ["code", "language"])) : (z(), N("div", hD, V(n.value), 1))]), P("div", gD, [I(c, null, {
|
|
19685
19693
|
default: G(() => [I(s, {
|
|
19686
19694
|
modifiers: e.modifiers.includes("inline") ? "action-quiet-small" : "action-small",
|
|
19687
19695
|
icon: H(i) ? "ri:check-line" : "ri:file-copy-line",
|
|
@@ -19696,7 +19704,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19696
19704
|
})])], 2);
|
|
19697
19705
|
};
|
|
19698
19706
|
}
|
|
19699
|
-
}),
|
|
19707
|
+
}), vD = /* @__PURE__ */ L({
|
|
19700
19708
|
__name: "PkInputColor",
|
|
19701
19709
|
props: {
|
|
19702
19710
|
modelValue: {},
|
|
@@ -19729,7 +19737,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19729
19737
|
])]);
|
|
19730
19738
|
};
|
|
19731
19739
|
}
|
|
19732
|
-
}),
|
|
19740
|
+
}), yD = { class: "text-12 text-word-3 mb-xs" }, bD = { class: "grid sm:grid-cols-2 gap-md items-start" }, xD = /* @__PURE__ */ L({
|
|
19733
19741
|
__name: "PkAgentHostToolsSettings",
|
|
19734
19742
|
props: /*@__PURE__*/ qr({ trustedOrigins: {} }, {
|
|
19735
19743
|
modelValue: {},
|
|
@@ -19788,8 +19796,11 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19788
19796
|
class: "mb-0"
|
|
19789
19797
|
}, {
|
|
19790
19798
|
default: G(() => [
|
|
19791
|
-
P("p",
|
|
19792
|
-
|
|
19799
|
+
P("p", yD, [F(V(H(r)("hint.hostTools")) + " ", 1), I(XT, {
|
|
19800
|
+
class: "align-middle",
|
|
19801
|
+
text: H(r)("hint.hostToolsInfo")
|
|
19802
|
+
}, null, 8, ["text"])]),
|
|
19803
|
+
I(nE, {
|
|
19793
19804
|
modelValue: o.value,
|
|
19794
19805
|
"onUpdate:modelValue": t[0] ||= (e) => o.value = e,
|
|
19795
19806
|
name: "hostToolsEnabled",
|
|
@@ -19802,7 +19813,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19802
19813
|
"hint-label"
|
|
19803
19814
|
]),
|
|
19804
19815
|
o.value ? (z(), N(k, { key: 0 }, [
|
|
19805
|
-
a.value ? M("", !0) : (z(), j(
|
|
19816
|
+
a.value ? M("", !0) : (z(), j(rE, {
|
|
19806
19817
|
key: 0,
|
|
19807
19818
|
level: "warning",
|
|
19808
19819
|
class: "mb-md"
|
|
@@ -19879,7 +19890,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19879
19890
|
"options",
|
|
19880
19891
|
"disabled"
|
|
19881
19892
|
]),
|
|
19882
|
-
I(
|
|
19893
|
+
I(nE, {
|
|
19883
19894
|
modelValue: p.value,
|
|
19884
19895
|
"onUpdate:modelValue": t[4] ||= (e) => p.value = e,
|
|
19885
19896
|
name: "hostToolsConfirmDestructive",
|
|
@@ -19891,7 +19902,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19891
19902
|
"label",
|
|
19892
19903
|
"hint-label"
|
|
19893
19904
|
]),
|
|
19894
|
-
P("div",
|
|
19905
|
+
P("div", bD, [I(n, {
|
|
19895
19906
|
modelValue: m.value,
|
|
19896
19907
|
"onUpdate:modelValue": t[5] ||= (e) => m.value = e,
|
|
19897
19908
|
name: "hostToolsTimeout",
|
|
@@ -19926,10 +19937,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19926
19937
|
}, 8, ["legend"]);
|
|
19927
19938
|
};
|
|
19928
19939
|
}
|
|
19929
|
-
}),
|
|
19940
|
+
}), SD = { class: "text-12 text-word-3 mb-xs" }, CD = {
|
|
19930
19941
|
key: 2,
|
|
19931
19942
|
class: "text-12 text-word-3 mb-md"
|
|
19932
|
-
},
|
|
19943
|
+
}, wD = { class: "text-12 text-word-3 mb-md" }, TD = { class: "flex flex-col gap-sm text-14 text-word-2 m-0 pl-md" }, ED = /* @__PURE__ */ L({
|
|
19933
19944
|
__name: "PkAgentPageAccessSettings",
|
|
19934
19945
|
props: /*@__PURE__*/ qr({ trustedOrigins: {} }, {
|
|
19935
19946
|
modelValue: {},
|
|
@@ -19996,7 +20007,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
19996
20007
|
class: "mb-0"
|
|
19997
20008
|
}, {
|
|
19998
20009
|
default: G(() => [
|
|
19999
|
-
P("p",
|
|
20010
|
+
P("p", SD, V(H(r)("hint.pageAccess")), 1),
|
|
20000
20011
|
I(o, {
|
|
20001
20012
|
modelValue: p.value,
|
|
20002
20013
|
"onUpdate:modelValue": n[0] ||= (e) => p.value = e,
|
|
@@ -20015,7 +20026,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20015
20026
|
"options",
|
|
20016
20027
|
"hint-label"
|
|
20017
20028
|
]),
|
|
20018
|
-
v.value && !x.value ? (z(), j(
|
|
20029
|
+
v.value && !x.value ? (z(), j(rE, {
|
|
20019
20030
|
key: 0,
|
|
20020
20031
|
level: "warning",
|
|
20021
20032
|
class: "mb-md"
|
|
@@ -20023,7 +20034,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20023
20034
|
default: G(() => [F(V(H(r)("hint.pageAccessNeedsOrigins")), 1)]),
|
|
20024
20035
|
_: 1
|
|
20025
20036
|
})) : M("", !0),
|
|
20026
|
-
y.value ? (z(), j(
|
|
20037
|
+
y.value ? (z(), j(rE, {
|
|
20027
20038
|
key: 1,
|
|
20028
20039
|
level: "warning",
|
|
20029
20040
|
class: "mb-md"
|
|
@@ -20035,7 +20046,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20035
20046
|
onClick: b
|
|
20036
20047
|
}, null, 8, ["label"])]),
|
|
20037
20048
|
_: 1
|
|
20038
|
-
})) : v.value && t.value?.acknowledgedAt && H(oe)(t.value, p.value) ? (z(), N("p",
|
|
20049
|
+
})) : v.value && t.value?.acknowledgedAt && H(oe)(t.value, p.value) ? (z(), N("p", CD, V(H(r)("hint.pageAccessAccepted", { date: H(i)(new Date(t.value.acknowledgedAt), "date-time") })), 1)) : M("", !0),
|
|
20039
20050
|
_.value ? (z(), N(k, { key: 3 }, [
|
|
20040
20051
|
I(WT, {
|
|
20041
20052
|
modelValue: S.value,
|
|
@@ -20070,8 +20081,11 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20070
20081
|
"label",
|
|
20071
20082
|
"placeholder"
|
|
20072
20083
|
]),
|
|
20073
|
-
P("p",
|
|
20074
|
-
|
|
20084
|
+
P("p", wD, [F(V(H(r)("hint.pageAccessExcludeSelectors")) + " ", 1), I(XT, {
|
|
20085
|
+
class: "align-middle",
|
|
20086
|
+
text: H(r)("hint.pageAccessExcludeSelectorsInfo")
|
|
20087
|
+
}, null, 8, ["text"])]),
|
|
20088
|
+
p.value === H(ne).Full ? (z(), j(nE, {
|
|
20075
20089
|
key: 0,
|
|
20076
20090
|
modelValue: w.value,
|
|
20077
20091
|
"onUpdate:modelValue": n[2] ||= (e) => w.value = e,
|
|
@@ -20122,7 +20136,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20122
20136
|
}, null, 8, ["label"])]),
|
|
20123
20137
|
_: 1
|
|
20124
20138
|
})]),
|
|
20125
|
-
default: G(() => [P("ul",
|
|
20139
|
+
default: G(() => [P("ul", TD, [(z(!0), N(k, null, ai(g.value, (e) => (z(), N("li", { key: e }, V(e), 1))), 128))])]),
|
|
20126
20140
|
_: 1
|
|
20127
20141
|
}, 8, ["modelValue", "title"])
|
|
20128
20142
|
]),
|
|
@@ -20130,16 +20144,16 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20130
20144
|
}, 8, ["legend"]);
|
|
20131
20145
|
};
|
|
20132
20146
|
}
|
|
20133
|
-
}),
|
|
20147
|
+
}), DD = {
|
|
20134
20148
|
key: 1,
|
|
20135
20149
|
class: "pk-agent-settings-panel__model-note text-12 text-word-3 mb-md"
|
|
20136
|
-
},
|
|
20150
|
+
}, OD = { class: "p-8 flex flex-col" }, kD = { class: "flex flex-col ml-12 gap-2" }, AD = { class: "text-12 text-word-3" }, jD = { class: "mb-md" }, MD = { class: "flex items-center gap-xs mb-2" }, ND = ["for"], PD = { class: "mb-md" }, FD = { class: "flex items-center gap-xs mb-2" }, ID = ["for"], LD = { class: "text-12 text-word-3 mt-xs leading-normal" }, RD = { class: "flex flex-col ml-12 gap-2" }, zD = { class: "text-12 text-word-3" }, BD = { class: "mb-md" }, VD = { class: "flex items-center gap-xs mb-2" }, HD = ["for"], UD = { class: "mb-md" }, WD = { class: "flex items-center gap-xs mb-2" }, GD = ["for"], KD = { class: "flex flex-col ml-12 gap-2" }, qD = { class: "text-12 text-word-3" }, JD = { class: "flex flex-col ml-12 gap-2" }, YD = { class: "text-12 text-word-3" }, XD = { class: "flex flex-col ml-12 gap-2" }, ZD = { class: "text-12 text-word-3" }, QD = { class: "flex items-end gap-sm mt-md" }, $D = { class: "flex flex-col gap-2 min-w-0" }, eO = { class: "truncate" }, tO = {
|
|
20137
20151
|
key: 0,
|
|
20138
20152
|
class: "text-12 text-word-3 truncate"
|
|
20139
|
-
},
|
|
20153
|
+
}, nO = { class: "p-8 flex flex-col" }, rO = { class: "flex flex-col ml-12 gap-2" }, iO = { class: "text-12 text-word-3" }, aO = { class: "flex gap-sm mt-md" }, oO = { class: "text-12 text-word-3 mt-8 mb-md px-8" }, sO = { class: "p-8 flex flex-col" }, cO = ["aria-label", "onClick"], lO = { class: "grid sm:grid-cols-2 gap-md items-start" }, uO = { class: "flex flex-col gap-md" }, dO = { class: "text-12 text-word-3 mb-sm" }, fO = { class: "flex items-center gap-4" }, pO = { class: "text-12 text-word-3 mb-xs" }, mO = { class: "flex flex-col nx-md nb-md" }, hO = { class: "flex flex-col ml-12 gap-2" }, gO = { class: "flex items-center gap-8" }, _O = { class: "font-semibold" }, vO = { class: "text-12 text-word-3" }, yO = ["title"], bO = { class: "p-xs flex flex-col" }, xO = {
|
|
20140
20154
|
key: 0,
|
|
20141
20155
|
class: "flex gap-md items-start"
|
|
20142
|
-
},
|
|
20156
|
+
}, SO = { class: "flex flex-col gap-md" }, CO = { class: "font-semibold mb-xs" }, wO = { class: "text-smaller" }, TO = { key: 2 }, EO = { class: "p-8 flex flex-col" }, DO = { class: "font-semibold mb-xs" }, OO = { class: "text-smaller" }, kO = { class: "font-semibold mb-xs" }, AO = { class: "text-smaller" }, jO = { class: "block text-12 text-word-2 break-all p-12 font-mono" }, MO = { class: "flex flex-col gap-md" }, NO = { class: "text-12 text-word-3 mb-xs" }, PO = { class: "grid sm:grid-cols-2 gap-md" }, FO = { class: "text-12 text-word-3 mb-md" }, IO = /* @__PURE__ */ L({
|
|
20143
20157
|
__name: "PkAgentSettingsPanel",
|
|
20144
20158
|
props: /*@__PURE__*/ qr({
|
|
20145
20159
|
organizationSlug: {},
|
|
@@ -20171,9 +20185,9 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20171
20185
|
dismissableNoticeModifiers: {},
|
|
20172
20186
|
footerMessage: { default: void 0 },
|
|
20173
20187
|
footerMessageModifiers: {},
|
|
20174
|
-
model: { default:
|
|
20188
|
+
model: { default: WE[0] },
|
|
20175
20189
|
modelModifiers: {},
|
|
20176
|
-
temperature: { default:
|
|
20190
|
+
temperature: { default: GE },
|
|
20177
20191
|
temperatureModifiers: {},
|
|
20178
20192
|
prompt: { default: "" },
|
|
20179
20193
|
promptModifiers: {},
|
|
@@ -20329,13 +20343,13 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20329
20343
|
voiceTurnEagernessModifiers: {},
|
|
20330
20344
|
voiceTurnTimeoutSeconds: { default: 5 },
|
|
20331
20345
|
voiceTurnTimeoutSecondsModifiers: {},
|
|
20332
|
-
fileUploadMaxFileSize: { default:
|
|
20346
|
+
fileUploadMaxFileSize: { default: KE.maxFileSizeBytes },
|
|
20333
20347
|
fileUploadMaxFileSizeModifiers: {},
|
|
20334
|
-
fileUploadAllowedMimeTypes: { default: () => [...
|
|
20348
|
+
fileUploadAllowedMimeTypes: { default: () => [...KE.allowedMimeTypes] },
|
|
20335
20349
|
fileUploadAllowedMimeTypesModifiers: {},
|
|
20336
|
-
fileUploadMaxFilesPerMessage: { default:
|
|
20350
|
+
fileUploadMaxFilesPerMessage: { default: KE.maxFilesPerMessage },
|
|
20337
20351
|
fileUploadMaxFilesPerMessageModifiers: {},
|
|
20338
|
-
fileUploadMaxFilesPerChat: { default:
|
|
20352
|
+
fileUploadMaxFilesPerChat: { default: KE.maxFilesPerChat },
|
|
20339
20353
|
fileUploadMaxFilesPerChatModifiers: {},
|
|
20340
20354
|
customCss: { default: void 0 },
|
|
20341
20355
|
customCssModifiers: {},
|
|
@@ -20729,7 +20743,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20729
20743
|
modelValue: fe.value,
|
|
20730
20744
|
"onUpdate:modelValue": o[1] ||= (e) => fe.value = e,
|
|
20731
20745
|
name: "status",
|
|
20732
|
-
icon: H(
|
|
20746
|
+
icon: H(HE)(fe.value),
|
|
20733
20747
|
label: H(r)("label.status"),
|
|
20734
20748
|
placeholder: H(r)("placeholder.select"),
|
|
20735
20749
|
unselectable: !1,
|
|
@@ -20753,7 +20767,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20753
20767
|
disabled: e.playground
|
|
20754
20768
|
}, {
|
|
20755
20769
|
option: G(({ option: e }) => [I(vs, {
|
|
20756
|
-
icon: H(
|
|
20770
|
+
icon: H(HE)(String(e.value)),
|
|
20757
20771
|
label: e.label
|
|
20758
20772
|
}, null, 8, ["icon", "label"])]),
|
|
20759
20773
|
_: 1
|
|
@@ -20769,7 +20783,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20769
20783
|
modelValue: pe.value,
|
|
20770
20784
|
"onUpdate:modelValue": o[2] ||= (e) => pe.value = e,
|
|
20771
20785
|
name: "visibility",
|
|
20772
|
-
icon: H(
|
|
20786
|
+
icon: H(UE)(pe.value),
|
|
20773
20787
|
label: H(r)("label.visibility"),
|
|
20774
20788
|
placeholder: H(r)("placeholder.select"),
|
|
20775
20789
|
unselectable: !1,
|
|
@@ -20781,7 +20795,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20781
20795
|
disabled: e.playground
|
|
20782
20796
|
}, {
|
|
20783
20797
|
option: G(({ option: e }) => [I(vs, {
|
|
20784
|
-
icon: H(
|
|
20798
|
+
icon: H(UE)(String(e.value)),
|
|
20785
20799
|
label: e.label,
|
|
20786
20800
|
description: H(r)(`agent.visibilityHint.${e.value}`)
|
|
20787
20801
|
}, null, 8, [
|
|
@@ -20818,7 +20832,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20818
20832
|
"label",
|
|
20819
20833
|
"placeholder"
|
|
20820
20834
|
]),
|
|
20821
|
-
I(
|
|
20835
|
+
I(uD, {
|
|
20822
20836
|
modelValue: ne.value,
|
|
20823
20837
|
"onUpdate:modelValue": o[5] ||= (e) => ne.value = e,
|
|
20824
20838
|
name: "model",
|
|
@@ -20839,8 +20853,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20839
20853
|
"disallow-prompt-training",
|
|
20840
20854
|
"current"
|
|
20841
20855
|
]),
|
|
20842
|
-
oe.value ? (z(), N("p",
|
|
20843
|
-
re.value && e.features?.gateway !== !1 ? (z(), j(
|
|
20856
|
+
oe.value ? (z(), N("p", DD, V(oe.value), 1)) : M("", !0),
|
|
20857
|
+
re.value && e.features?.gateway !== !1 ? (z(), j(rE, {
|
|
20844
20858
|
key: 2,
|
|
20845
20859
|
icon: "ri:server-line",
|
|
20846
20860
|
class: "mb-md"
|
|
@@ -20864,10 +20878,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20864
20878
|
modifiers: "details",
|
|
20865
20879
|
class: "border border-surface-3 rounded"
|
|
20866
20880
|
}, {
|
|
20867
|
-
default: G(() => [P("div",
|
|
20881
|
+
default: G(() => [P("div", OD, [
|
|
20868
20882
|
I(ms, { legend: H(r)("label.modelParameters") }, {
|
|
20869
20883
|
default: G(() => [
|
|
20870
|
-
re.value ? M("", !0) : (z(), j(
|
|
20884
|
+
re.value ? M("", !0) : (z(), j(uD, {
|
|
20871
20885
|
key: 0,
|
|
20872
20886
|
modelValue: Ht.value,
|
|
20873
20887
|
"onUpdate:modelValue": o[7] ||= (e) => Ht.value = e,
|
|
@@ -20970,12 +20984,12 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20970
20984
|
}, 8, ["legend"]),
|
|
20971
20985
|
I(ms, { legend: H(r)("label.reasoning") }, {
|
|
20972
20986
|
default: G(() => [
|
|
20973
|
-
I(
|
|
20987
|
+
I(fD, {
|
|
20974
20988
|
reasoning: Ce.value,
|
|
20975
20989
|
"onUpdate:reasoning": o[13] ||= (e) => Ce.value = e,
|
|
20976
20990
|
"active-provider": Sn.value
|
|
20977
20991
|
}, null, 8, ["reasoning", "active-provider"]),
|
|
20978
|
-
I(
|
|
20992
|
+
I(nE, {
|
|
20979
20993
|
modelValue: qt.value,
|
|
20980
20994
|
"onUpdate:modelValue": o[14] ||= (e) => qt.value = e,
|
|
20981
20995
|
name: "showReasoning",
|
|
@@ -20988,7 +21002,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
20988
21002
|
"label",
|
|
20989
21003
|
"hint-label"
|
|
20990
21004
|
]),
|
|
20991
|
-
I(
|
|
21005
|
+
I(nE, {
|
|
20992
21006
|
modelValue: Kt.value,
|
|
20993
21007
|
"onUpdate:modelValue": o[15] ||= (e) => Kt.value = e,
|
|
20994
21008
|
name: "showExtendedSteps",
|
|
@@ -21082,13 +21096,13 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21082
21096
|
"unchecked-value": !1,
|
|
21083
21097
|
class: "flex-nowrap mb-md"
|
|
21084
21098
|
}, {
|
|
21085
|
-
default: G(() => [P("div",
|
|
21099
|
+
default: G(() => [P("div", kD, [P("strong", null, V(H(r)("label.freshnessBoost")), 1), P("small", AD, V(H(r)("hint.freshnessBoost")), 1)])]),
|
|
21086
21100
|
_: 1
|
|
21087
21101
|
}, 8, ["modelValue"])) : M("", !0),
|
|
21088
|
-
Qt.value?.freshness?.enabled ? (z(), N(k, { key: 1 }, [P("div",
|
|
21102
|
+
Qt.value?.freshness?.enabled ? (z(), N(k, { key: 1 }, [P("div", jD, [P("div", MD, [P("label", {
|
|
21089
21103
|
class: "block text-12 text-word-3",
|
|
21090
21104
|
for: l.freshnessScale
|
|
21091
|
-
}, V(H(r)("hint.freshnessScale")), 9,
|
|
21105
|
+
}, V(H(r)("hint.freshnessScale")), 9, ND), I(XT, { text: H(r)("hint.freshnessScaleTooltip") }, null, 8, ["text"])]), I(m, {
|
|
21092
21106
|
id: l.freshnessScale,
|
|
21093
21107
|
modelValue: $t.value,
|
|
21094
21108
|
"onUpdate:modelValue": o[20] ||= (e) => $t.value = e,
|
|
@@ -21102,11 +21116,11 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21102
21116
|
"id",
|
|
21103
21117
|
"modelValue",
|
|
21104
21118
|
"format-value"
|
|
21105
|
-
])]), P("div",
|
|
21106
|
-
P("div",
|
|
21119
|
+
])]), P("div", PD, [
|
|
21120
|
+
P("div", FD, [P("label", {
|
|
21107
21121
|
class: "block text-12 text-word-3",
|
|
21108
21122
|
for: l.freshnessWeight
|
|
21109
|
-
}, V(H(r)("label.freshnessWeight")), 9,
|
|
21123
|
+
}, V(H(r)("label.freshnessWeight")), 9, ID), I(XT, { text: H(r)("hint.freshnessWeightTooltip") }, null, 8, ["text"])]),
|
|
21110
21124
|
Qt.value?.freshness ? (z(), j(m, {
|
|
21111
21125
|
key: 0,
|
|
21112
21126
|
id: l.freshnessWeight,
|
|
@@ -21123,7 +21137,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21123
21137
|
"modelValue",
|
|
21124
21138
|
"format-value"
|
|
21125
21139
|
])) : M("", !0),
|
|
21126
|
-
P("p",
|
|
21140
|
+
P("p", LD, V(en.value), 1)
|
|
21127
21141
|
])], 64)) : M("", !0),
|
|
21128
21142
|
Qt.value?.mmr ? (z(), j(y, {
|
|
21129
21143
|
key: 2,
|
|
@@ -21135,13 +21149,13 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21135
21149
|
"unchecked-value": !1,
|
|
21136
21150
|
class: "flex-nowrap mb-md border-t border-surface-3 pt-md"
|
|
21137
21151
|
}, {
|
|
21138
|
-
default: G(() => [P("div",
|
|
21152
|
+
default: G(() => [P("div", RD, [P("strong", null, V(H(r)("label.mmr")), 1), P("small", zD, V(H(r)("hint.mmr")), 1)])]),
|
|
21139
21153
|
_: 1
|
|
21140
21154
|
}, 8, ["modelValue"])) : M("", !0),
|
|
21141
|
-
Qt.value?.mmr?.enabled ? (z(), N(k, { key: 3 }, [P("div",
|
|
21155
|
+
Qt.value?.mmr?.enabled ? (z(), N(k, { key: 3 }, [P("div", BD, [P("div", VD, [P("label", {
|
|
21142
21156
|
class: "block text-12 text-word-3",
|
|
21143
21157
|
for: l.mmrDiversity
|
|
21144
|
-
}, V(H(r)("label.mmrDiversity")), 9,
|
|
21158
|
+
}, V(H(r)("label.mmrDiversity")), 9, HD), I(XT, { text: H(r)("hint.mmrDiversityTooltip") }, null, 8, ["text"])]), Qt.value?.mmr ? (z(), j(m, {
|
|
21145
21159
|
key: 0,
|
|
21146
21160
|
id: l.mmrDiversity,
|
|
21147
21161
|
modelValue: Qt.value.mmr.diversity,
|
|
@@ -21156,10 +21170,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21156
21170
|
"id",
|
|
21157
21171
|
"modelValue",
|
|
21158
21172
|
"format-value"
|
|
21159
|
-
])) : M("", !0)]), P("div",
|
|
21173
|
+
])) : M("", !0)]), P("div", UD, [P("div", WD, [P("label", {
|
|
21160
21174
|
class: "block text-12 text-word-3",
|
|
21161
21175
|
for: l.mmrCandidatesLimit
|
|
21162
|
-
}, V(H(r)("label.mmrCandidatesLimit")), 9,
|
|
21176
|
+
}, V(H(r)("label.mmrCandidatesLimit")), 9, GD), I(XT, { text: H(r)("hint.mmrCandidatesLimitTooltip") }, null, 8, ["text"])]), Qt.value?.mmr ? (z(), j(m, {
|
|
21163
21177
|
key: 0,
|
|
21164
21178
|
id: l.mmrCandidatesLimit,
|
|
21165
21179
|
modelValue: Qt.value.mmr.candidatesLimit,
|
|
@@ -21192,7 +21206,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21192
21206
|
"unchecked-value": !1,
|
|
21193
21207
|
class: "flex-nowrap mb-0"
|
|
21194
21208
|
}, {
|
|
21195
|
-
default: G(() => [P("div",
|
|
21209
|
+
default: G(() => [P("div", KD, [P("strong", null, V(H(r)("label.zeroDataRetention")), 1), P("small", qD, V(H(r)("hint.zeroDataRetention")), 1)])]),
|
|
21196
21210
|
_: 1
|
|
21197
21211
|
}, 8, ["modelValue"]), Ut.value ? M("", !0) : (z(), j(y, {
|
|
21198
21212
|
key: 0,
|
|
@@ -21204,7 +21218,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21204
21218
|
"unchecked-value": !1,
|
|
21205
21219
|
class: "flex-nowrap mt-md mb-0"
|
|
21206
21220
|
}, {
|
|
21207
|
-
default: G(() => [P("div",
|
|
21221
|
+
default: G(() => [P("div", JD, [P("strong", null, V(H(r)("label.disallowPromptTraining")), 1), P("small", YD, V(H(r)("hint.disallowPromptTraining")), 1)])]),
|
|
21208
21222
|
_: 1
|
|
21209
21223
|
}, 8, ["modelValue"]))]),
|
|
21210
21224
|
_: 1
|
|
@@ -21223,10 +21237,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21223
21237
|
"unchecked-value": !1,
|
|
21224
21238
|
class: "flex-nowrap mb-0"
|
|
21225
21239
|
}, {
|
|
21226
|
-
default: G(() => [P("div",
|
|
21240
|
+
default: G(() => [P("div", XD, [P("strong", null, V(H(r)("label.voiceEnabled")), 1), P("small", ZD, V(H(r)("hint.voiceEnabled")), 1)])]),
|
|
21227
21241
|
_: 1
|
|
21228
21242
|
}, 8, ["modelValue"]), dt.value ? (z(), N(k, { key: 0 }, [
|
|
21229
|
-
yn.value.length ? (z(), j(
|
|
21243
|
+
yn.value.length ? (z(), j(rE, {
|
|
21230
21244
|
key: 0,
|
|
21231
21245
|
level: "warning",
|
|
21232
21246
|
class: "mt-md mb-0"
|
|
@@ -21234,7 +21248,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21234
21248
|
default: G(() => [F(V(H(r)("hint.voiceApprovalRefused", { tools: yn.value.join(", ") })), 1)]),
|
|
21235
21249
|
_: 1
|
|
21236
21250
|
})) : M("", !0),
|
|
21237
|
-
P("div",
|
|
21251
|
+
P("div", QD, [I(s, {
|
|
21238
21252
|
modelValue: pt.value,
|
|
21239
21253
|
"onUpdate:modelValue": o[29] ||= (e) => pt.value = e,
|
|
21240
21254
|
name: "voiceId",
|
|
@@ -21262,7 +21276,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21262
21276
|
"disabled",
|
|
21263
21277
|
"title"
|
|
21264
21278
|
])]),
|
|
21265
|
-
option: G(({ option: e }) => [P("span",
|
|
21279
|
+
option: G(({ option: e }) => [P("span", $D, [P("span", eO, V(e.label), 1), e.description ? (z(), N("small", tO, V(e.description), 1)) : M("", !0)])]),
|
|
21266
21280
|
_: 1
|
|
21267
21281
|
}, 8, [
|
|
21268
21282
|
"modelValue",
|
|
@@ -21316,7 +21330,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21316
21330
|
modifiers: "details",
|
|
21317
21331
|
class: "border border-surface-3 rounded-lg mt-md"
|
|
21318
21332
|
}, {
|
|
21319
|
-
default: G(() => [P("div",
|
|
21333
|
+
default: G(() => [P("div", nO, [
|
|
21320
21334
|
I(y, {
|
|
21321
21335
|
modelValue: yt.value,
|
|
21322
21336
|
"onUpdate:modelValue": o[32] ||= (e) => yt.value = e,
|
|
@@ -21326,7 +21340,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21326
21340
|
"unchecked-value": !1,
|
|
21327
21341
|
class: "flex-nowrap mb-0"
|
|
21328
21342
|
}, {
|
|
21329
|
-
default: G(() => [P("div",
|
|
21343
|
+
default: G(() => [P("div", rO, [P("strong", null, V(H(r)("label.voiceIgnoreBackgroundVoices")), 1), P("small", iO, V(H(r)("hint.voiceIgnoreBackgroundVoices")), 1)])]),
|
|
21330
21344
|
_: 1
|
|
21331
21345
|
}, 8, ["modelValue"]),
|
|
21332
21346
|
I(s, {
|
|
@@ -21364,7 +21378,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21364
21378
|
"placeholder",
|
|
21365
21379
|
"options"
|
|
21366
21380
|
]),
|
|
21367
|
-
P("div",
|
|
21381
|
+
P("div", aO, [I(p, {
|
|
21368
21382
|
modelValue: xt.value,
|
|
21369
21383
|
"onUpdate:modelValue": o[34] ||= (e) => xt.value = e,
|
|
21370
21384
|
name: "voiceTurnTimeoutSeconds",
|
|
@@ -21395,7 +21409,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21395
21409
|
"label",
|
|
21396
21410
|
"placeholder"
|
|
21397
21411
|
])]),
|
|
21398
|
-
P("small",
|
|
21412
|
+
P("small", oO, V(H(r)("hint.voiceTurnTimeoutSeconds")), 1),
|
|
21399
21413
|
I(p, {
|
|
21400
21414
|
modelValue: ft.value,
|
|
21401
21415
|
"onUpdate:modelValue": o[36] ||= (e) => ft.value = e,
|
|
@@ -21414,7 +21428,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21414
21428
|
"hint-label",
|
|
21415
21429
|
"placeholder"
|
|
21416
21430
|
]),
|
|
21417
|
-
I(
|
|
21431
|
+
I(rE, { class: "mt-md mb-0" }, {
|
|
21418
21432
|
default: G(() => [F(V(H(r)("hint.voiceSlowAgentOnCall")), 1)]),
|
|
21419
21433
|
_: 1
|
|
21420
21434
|
}),
|
|
@@ -21457,7 +21471,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21457
21471
|
], 64)) : M("", !0)]),
|
|
21458
21472
|
_: 1
|
|
21459
21473
|
}, 8, ["legend"])) : M("", !0),
|
|
21460
|
-
e.playground ? M("", !0) : (z(), j(
|
|
21474
|
+
e.playground ? M("", !0) : (z(), j(mD, {
|
|
21461
21475
|
key: 2,
|
|
21462
21476
|
modelValue: Jt.value,
|
|
21463
21477
|
"onUpdate:modelValue": o[39] ||= (e) => Jt.value = e,
|
|
@@ -21529,7 +21543,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21529
21543
|
"options"
|
|
21530
21544
|
])) : M("", !0),
|
|
21531
21545
|
I(ms, { legend: H(r)("label.appearance") }, {
|
|
21532
|
-
default: G(() => [I(
|
|
21546
|
+
default: G(() => [I(vD, {
|
|
21533
21547
|
modelValue: Ee.value,
|
|
21534
21548
|
"onUpdate:modelValue": o[42] ||= (e) => Ee.value = e,
|
|
21535
21549
|
name: "mainColor",
|
|
@@ -21567,8 +21581,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21567
21581
|
modifiers: "details",
|
|
21568
21582
|
class: "border border-surface-3 rounded-lg mt-md mb-md"
|
|
21569
21583
|
}, {
|
|
21570
|
-
default: G(() => [P("div",
|
|
21571
|
-
Cn.value ? (z(), j(
|
|
21584
|
+
default: G(() => [P("div", sO, [
|
|
21585
|
+
Cn.value ? (z(), j(nE, {
|
|
21572
21586
|
key: 0,
|
|
21573
21587
|
modelValue: ke.value,
|
|
21574
21588
|
"onUpdate:modelValue": o[44] ||= (e) => ke.value = e,
|
|
@@ -21582,7 +21596,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21582
21596
|
"label",
|
|
21583
21597
|
"hint-label"
|
|
21584
21598
|
])) : M("", !0),
|
|
21585
|
-
Cn.value ? (z(), j(
|
|
21599
|
+
Cn.value ? (z(), j(nE, {
|
|
21586
21600
|
key: 1,
|
|
21587
21601
|
modelValue: E.value,
|
|
21588
21602
|
"onUpdate:modelValue": o[45] ||= (e) => E.value = e,
|
|
@@ -21596,7 +21610,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21596
21610
|
"label",
|
|
21597
21611
|
"hint-label"
|
|
21598
21612
|
])) : M("", !0),
|
|
21599
|
-
!e.playground && Cn.value ? (z(), j(
|
|
21613
|
+
!e.playground && Cn.value ? (z(), j(nE, {
|
|
21600
21614
|
key: 2,
|
|
21601
21615
|
modelValue: je.value,
|
|
21602
21616
|
"onUpdate:modelValue": o[46] ||= (e) => je.value = e,
|
|
@@ -21610,7 +21624,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21610
21624
|
"label",
|
|
21611
21625
|
"hint-label"
|
|
21612
21626
|
])) : M("", !0),
|
|
21613
|
-
!e.playground && Cn.value && pe.value === "public" ? (z(), j(
|
|
21627
|
+
!e.playground && Cn.value && pe.value === "public" ? (z(), j(nE, {
|
|
21614
21628
|
key: 3,
|
|
21615
21629
|
modelValue: Me.value,
|
|
21616
21630
|
"onUpdate:modelValue": o[47] ||= (e) => Me.value = e,
|
|
@@ -21708,7 +21722,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21708
21722
|
"hint-label",
|
|
21709
21723
|
"options"
|
|
21710
21724
|
])) : M("", !0),
|
|
21711
|
-
!e.playground && Cn.value ? (z(), j(
|
|
21725
|
+
!e.playground && Cn.value ? (z(), j(nE, {
|
|
21712
21726
|
key: 7,
|
|
21713
21727
|
modelValue: ze.value,
|
|
21714
21728
|
"onUpdate:modelValue": o[51] ||= (e) => ze.value = e,
|
|
@@ -21722,7 +21736,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21722
21736
|
"label",
|
|
21723
21737
|
"hint-label"
|
|
21724
21738
|
])) : M("", !0),
|
|
21725
|
-
!e.playground && Cn.value ? (z(), j(
|
|
21739
|
+
!e.playground && Cn.value ? (z(), j(nE, {
|
|
21726
21740
|
key: 8,
|
|
21727
21741
|
modelValue: Fe.value,
|
|
21728
21742
|
"onUpdate:modelValue": o[52] ||= (e) => Fe.value = e,
|
|
@@ -21829,7 +21843,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21829
21843
|
"placeholder",
|
|
21830
21844
|
"onUpdate:modelValue"
|
|
21831
21845
|
]),
|
|
21832
|
-
I(
|
|
21846
|
+
I(rE, { class: "nt-8" }, {
|
|
21833
21847
|
default: G(() => [F(V(H(r)("hint.greeting")), 1)]),
|
|
21834
21848
|
_: 1
|
|
21835
21849
|
}),
|
|
@@ -21919,7 +21933,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21919
21933
|
key: 0,
|
|
21920
21934
|
legend: H(r)("label.fileUpload")
|
|
21921
21935
|
}, {
|
|
21922
|
-
default: G(() => [I(
|
|
21936
|
+
default: G(() => [I(nE, {
|
|
21923
21937
|
modelValue: lt.value,
|
|
21924
21938
|
"onUpdate:modelValue": o[56] ||= (e) => lt.value = e,
|
|
21925
21939
|
disabled: e.playground,
|
|
@@ -21975,7 +21989,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21975
21989
|
"aria-label": H(r)("label.deselectAction"),
|
|
21976
21990
|
type: "button",
|
|
21977
21991
|
onClick: yi((e) => n(t), ["stop"])
|
|
21978
|
-
}, [I(ee, { name: "close" })], 8,
|
|
21992
|
+
}, [I(ee, { name: "close" })], 8, cO))
|
|
21979
21993
|
]),
|
|
21980
21994
|
_: 2
|
|
21981
21995
|
}, 1024))), 128))]),
|
|
@@ -21996,7 +22010,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
21996
22010
|
"placeholder",
|
|
21997
22011
|
"options"
|
|
21998
22012
|
]),
|
|
21999
|
-
un.value ? (z(), j(
|
|
22013
|
+
un.value ? (z(), j(rE, {
|
|
22000
22014
|
key: 0,
|
|
22001
22015
|
level: "warning",
|
|
22002
22016
|
class: "mb-md"
|
|
@@ -22004,7 +22018,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22004
22018
|
default: G(() => [F(V(un.value), 1)]),
|
|
22005
22019
|
_: 1
|
|
22006
22020
|
})) : M("", !0),
|
|
22007
|
-
P("div",
|
|
22021
|
+
P("div", lO, [I(p, {
|
|
22008
22022
|
modelValue: Rt.value,
|
|
22009
22023
|
"onUpdate:modelValue": o[59] ||= (e) => Rt.value = e,
|
|
22010
22024
|
disabled: e.playground,
|
|
@@ -22042,7 +22056,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22042
22056
|
key: 1,
|
|
22043
22057
|
legend: H(r)("label.webSearch")
|
|
22044
22058
|
}, {
|
|
22045
|
-
default: G(() => [I(
|
|
22059
|
+
default: G(() => [I(pD, {
|
|
22046
22060
|
"web-search": we.value,
|
|
22047
22061
|
"onUpdate:webSearch": o[61] ||= (e) => we.value = e,
|
|
22048
22062
|
"active-provider": Sn.value,
|
|
@@ -22076,21 +22090,21 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22076
22090
|
"disabled",
|
|
22077
22091
|
"label",
|
|
22078
22092
|
"options"
|
|
22079
|
-
]), I(
|
|
22093
|
+
]), I(rE, { class: "mt-md mb-0" }, {
|
|
22080
22094
|
default: G(() => [F(V(H(r)(`hint.toolWorkingSetMode.${ut.value}`)), 1)]),
|
|
22081
22095
|
_: 1
|
|
22082
22096
|
})]),
|
|
22083
22097
|
_: 1
|
|
22084
22098
|
}, 8, ["legend"])) : M("", !0),
|
|
22085
|
-
P("div",
|
|
22099
|
+
P("div", uO, [P("p", dO, V(H(r)("hint.approvalChannels")), 1), (z(!0), N(k, null, ai(mn.value, (t) => (z(), N(k, { key: t.key }, [Cn.value || !t.tools.every((e) => gn(e)) ? (z(), j(ms, {
|
|
22086
22100
|
key: 0,
|
|
22087
22101
|
class: "mb-0"
|
|
22088
22102
|
}, {
|
|
22089
|
-
legend: G(() => [P("span",
|
|
22103
|
+
legend: G(() => [P("span", fO, [I(ee, {
|
|
22090
22104
|
name: t.icon,
|
|
22091
22105
|
class: "text-16"
|
|
22092
22106
|
}, null, 8, ["name"]), F(" " + V(H(r)(`toolGroup.${t.key}`)), 1)])]),
|
|
22093
|
-
default: G(() => [P("p",
|
|
22107
|
+
default: G(() => [P("p", pO, V(H(r)(`toolGroupInfo.${t.key}`)), 1), P("div", mO, [(z(!0), N(k, null, ai(t.tools, (t) => (z(), N(k, { key: t }, [!gn(t) || Cn.value ? (z(), N(k, { key: 0 }, [I(y, {
|
|
22094
22108
|
class: "flex-nowrap border-t border-surface-3 mr-0 px-md pt-md",
|
|
22095
22109
|
"model-value": D(t),
|
|
22096
22110
|
name: `tool.${t}`,
|
|
@@ -22100,10 +22114,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22100
22114
|
switch: "",
|
|
22101
22115
|
"onUpdate:modelValue": (e) => xn(t, e)
|
|
22102
22116
|
}, {
|
|
22103
|
-
default: G(() => [P("div",
|
|
22104
|
-
P("div",
|
|
22105
|
-
P("strong",
|
|
22106
|
-
H(i)(`hint.toolInfo.${t}`) ? (z(), j(
|
|
22117
|
+
default: G(() => [P("div", hO, [
|
|
22118
|
+
P("div", gO, [
|
|
22119
|
+
P("strong", _O, V(H(r)(`agent.tool.${t}`)), 1),
|
|
22120
|
+
H(i)(`hint.toolInfo.${t}`) ? (z(), j(XT, {
|
|
22107
22121
|
key: 0,
|
|
22108
22122
|
text: H(r)(`hint.toolInfo.${t}`)
|
|
22109
22123
|
}, null, 8, ["text"])) : M("", !0),
|
|
@@ -22114,9 +22128,9 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22114
22128
|
default: G(() => [F(V(H(r)("label.deprecated")), 1)]),
|
|
22115
22129
|
_: 1
|
|
22116
22130
|
})) : M("", !0),
|
|
22117
|
-
vn(t) ? (z(), j(
|
|
22131
|
+
vn(t) ? (z(), j(qE, { key: 2 })) : M("", !0)
|
|
22118
22132
|
]),
|
|
22119
|
-
P("small",
|
|
22133
|
+
P("small", vO, V(H(r)(`hint.tool.${t}`)), 1),
|
|
22120
22134
|
H(Ie)(t) && H(de)(t) ? (z(), N("div", {
|
|
22121
22135
|
key: 0,
|
|
22122
22136
|
class: "flex items-center gap-4 self-start mt-4 pt-4 w-full border-t border-surface-3",
|
|
@@ -22139,7 +22153,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22139
22153
|
class: "text-12"
|
|
22140
22154
|
}), F(" " + V(H(r)("label.teams")), 1)]),
|
|
22141
22155
|
_: 1
|
|
22142
|
-
})], 8,
|
|
22156
|
+
})], 8, yO)) : M("", !0)
|
|
22143
22157
|
])]),
|
|
22144
22158
|
_: 2
|
|
22145
22159
|
}, 1032, [
|
|
@@ -22153,8 +22167,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22153
22167
|
modifiers: "details",
|
|
22154
22168
|
class: "border border-surface-3 rounded-lg mx-md mb-md"
|
|
22155
22169
|
}, {
|
|
22156
|
-
default: G(() => [P("div",
|
|
22157
|
-
t === H(T).ShowForm ? (z(), N("div",
|
|
22170
|
+
default: G(() => [P("div", bO, [
|
|
22171
|
+
t === H(T).ShowForm ? (z(), N("div", xO, [I(p, {
|
|
22158
22172
|
modelValue: rt.value,
|
|
22159
22173
|
"onUpdate:modelValue": o[63] ||= (e) => rt.value = e,
|
|
22160
22174
|
name: "formMaxSteps",
|
|
@@ -22183,21 +22197,23 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22183
22197
|
"label",
|
|
22184
22198
|
"disabled"
|
|
22185
22199
|
])])) : M("", !0),
|
|
22186
|
-
t === H(T).UserMemory ? (z(), j(
|
|
22200
|
+
t === H(T).UserMemory ? (z(), j(nE, {
|
|
22187
22201
|
key: 1,
|
|
22188
22202
|
modelValue: tt.value,
|
|
22189
22203
|
"onUpdate:modelValue": o[65] ||= (e) => tt.value = e,
|
|
22190
22204
|
name: "useAllUserKb",
|
|
22191
22205
|
label: H(r)("agent.tool.useAllUserKb"),
|
|
22192
22206
|
"hint-label": H(r)("hint.tool.useAllUserKb"),
|
|
22207
|
+
"info-label": H(r)("hint.toolInfo.useAllUserKb"),
|
|
22193
22208
|
disabled: e.playground
|
|
22194
22209
|
}, null, 8, [
|
|
22195
22210
|
"modelValue",
|
|
22196
22211
|
"label",
|
|
22197
22212
|
"hint-label",
|
|
22213
|
+
"info-label",
|
|
22198
22214
|
"disabled"
|
|
22199
22215
|
])) : M("", !0),
|
|
22200
|
-
t === H(T).SearchInUserFiles ? (z(), j(
|
|
22216
|
+
t === H(T).SearchInUserFiles ? (z(), j(nE, {
|
|
22201
22217
|
key: 2,
|
|
22202
22218
|
modelValue: nt.value,
|
|
22203
22219
|
"onUpdate:modelValue": o[66] ||= (e) => nt.value = e,
|
|
@@ -22211,7 +22227,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22211
22227
|
"hint-label",
|
|
22212
22228
|
"disabled"
|
|
22213
22229
|
])) : M("", !0),
|
|
22214
|
-
t === H(T).Spreadsheet ? (z(), j(
|
|
22230
|
+
t === H(T).Spreadsheet ? (z(), j(nE, {
|
|
22215
22231
|
key: 3,
|
|
22216
22232
|
modelValue: Qe.value,
|
|
22217
22233
|
"onUpdate:modelValue": o[67] ||= (e) => Qe.value = e,
|
|
@@ -22225,7 +22241,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22225
22241
|
"hint-label",
|
|
22226
22242
|
"disabled"
|
|
22227
22243
|
])) : M("", !0),
|
|
22228
|
-
t === H(T).WordDocument ? (z(), j(
|
|
22244
|
+
t === H(T).WordDocument ? (z(), j(nE, {
|
|
22229
22245
|
key: 4,
|
|
22230
22246
|
modelValue: $e.value,
|
|
22231
22247
|
"onUpdate:modelValue": o[68] ||= (e) => $e.value = e,
|
|
@@ -22239,7 +22255,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22239
22255
|
"hint-label",
|
|
22240
22256
|
"disabled"
|
|
22241
22257
|
])) : M("", !0),
|
|
22242
|
-
H(ue)(t) ? (z(), j(
|
|
22258
|
+
H(ue)(t) ? (z(), j(nE, {
|
|
22243
22259
|
key: 5,
|
|
22244
22260
|
"model-value": vn(t),
|
|
22245
22261
|
name: `tool.${t}.approval`,
|
|
@@ -22262,8 +22278,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22262
22278
|
_: 2
|
|
22263
22279
|
}, 1024)) : M("", !0)], 64))), 128))])
|
|
22264
22280
|
]),
|
|
22265
|
-
"panel::embed": G(() => [P("div",
|
|
22266
|
-
Jt.value.includes(H(Se).Widget) ? M("", !0) : (z(), j(
|
|
22281
|
+
"panel::embed": G(() => [P("div", SO, [
|
|
22282
|
+
Jt.value.includes(H(Se).Widget) ? M("", !0) : (z(), j(rE, {
|
|
22267
22283
|
key: 0,
|
|
22268
22284
|
level: "warning",
|
|
22269
22285
|
class: "mb-0"
|
|
@@ -22271,7 +22287,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22271
22287
|
default: G(() => [F(V(H(r)("hint.channelWidgetDisabled")), 1)]),
|
|
22272
22288
|
_: 1
|
|
22273
22289
|
})),
|
|
22274
|
-
Jt.value.includes(H(Se).App) ? M("", !0) : (z(), j(
|
|
22290
|
+
Jt.value.includes(H(Se).App) ? M("", !0) : (z(), j(rE, {
|
|
22275
22291
|
key: 1,
|
|
22276
22292
|
level: "warning",
|
|
22277
22293
|
class: "mb-0"
|
|
@@ -22279,8 +22295,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22279
22295
|
default: G(() => [F(V(H(r)("hint.channelAppDisabled")), 1)]),
|
|
22280
22296
|
_: 1
|
|
22281
22297
|
})),
|
|
22282
|
-
P("div", null, [P("h3",
|
|
22283
|
-
I(
|
|
22298
|
+
P("div", null, [P("h3", CO, V(H(r)("label.chatWidget")), 1), P("p", wO, V(H(r)("hint.embedCode")), 1)]),
|
|
22299
|
+
I(_D, { source: On.value }, {
|
|
22284
22300
|
default: G(() => [I(kt, {
|
|
22285
22301
|
code: On.value,
|
|
22286
22302
|
language: "html",
|
|
@@ -22289,7 +22305,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22289
22305
|
}, null, 8, ["code"])]),
|
|
22290
22306
|
_: 1
|
|
22291
22307
|
}, 8, ["source"]),
|
|
22292
|
-
e.playground ? M("", !0) : (z(), N("div",
|
|
22308
|
+
e.playground ? M("", !0) : (z(), N("div", TO, [I(p, {
|
|
22293
22309
|
modelValue: at.value,
|
|
22294
22310
|
"onUpdate:modelValue": o[69] ||= (e) => at.value = e,
|
|
22295
22311
|
name: "widgetUrl",
|
|
@@ -22306,7 +22322,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22306
22322
|
modifiers: "details",
|
|
22307
22323
|
class: "border border-surface-3 rounded-lg mb-0"
|
|
22308
22324
|
}, {
|
|
22309
|
-
default: G(() => [P("div",
|
|
22325
|
+
default: G(() => [P("div", EO, [
|
|
22310
22326
|
I(p, {
|
|
22311
22327
|
modelValue: ot.value,
|
|
22312
22328
|
"onUpdate:modelValue": o[70] ||= (e) => ot.value = e,
|
|
@@ -22352,7 +22368,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22352
22368
|
"label",
|
|
22353
22369
|
"options"
|
|
22354
22370
|
]),
|
|
22355
|
-
st.value ? (z(), j(
|
|
22371
|
+
st.value ? (z(), j(rE, {
|
|
22356
22372
|
key: 0,
|
|
22357
22373
|
class: "mt-md mb-0"
|
|
22358
22374
|
}, {
|
|
@@ -22362,8 +22378,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22362
22378
|
])]),
|
|
22363
22379
|
_: 1
|
|
22364
22380
|
}, 8, ["title"])])),
|
|
22365
|
-
P("div", null, [P("h3",
|
|
22366
|
-
I(
|
|
22381
|
+
P("div", null, [P("h3", DO, V(H(r)("label.iframe")), 1), P("p", OO, V(H(r)("hint.embedIframe")), 1)]),
|
|
22382
|
+
I(_D, { source: kn.value }, {
|
|
22367
22383
|
default: G(() => [I(kt, {
|
|
22368
22384
|
code: kn.value,
|
|
22369
22385
|
language: "html",
|
|
@@ -22372,8 +22388,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22372
22388
|
}, null, 8, ["code"])]),
|
|
22373
22389
|
_: 1
|
|
22374
22390
|
}, 8, ["source"]),
|
|
22375
|
-
P("div", null, [P("h4",
|
|
22376
|
-
I(
|
|
22391
|
+
P("div", null, [P("h4", kO, V(H(r)("label.preview")), 1), P("p", AO, V(H(r)("hint.embedPreview")), 1)]),
|
|
22392
|
+
I(_D, { source: Dn.value }, {
|
|
22377
22393
|
actions: G(() => [I(d, {
|
|
22378
22394
|
modifiers: "action-quiet-small",
|
|
22379
22395
|
icon: "ri:eye-line",
|
|
@@ -22381,17 +22397,17 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22381
22397
|
href: Dn.value,
|
|
22382
22398
|
target: "_blank"
|
|
22383
22399
|
}, null, 8, ["label", "href"])]),
|
|
22384
|
-
default: G(() => [P("code",
|
|
22400
|
+
default: G(() => [P("code", jO, V(Dn.value), 1)]),
|
|
22385
22401
|
_: 1
|
|
22386
22402
|
}, 8, ["source"])
|
|
22387
22403
|
])]),
|
|
22388
|
-
"panel::site": G(() => [P("div",
|
|
22404
|
+
"panel::site": G(() => [P("div", MO, [I(ms, {
|
|
22389
22405
|
legend: H(r)("label.externalContext"),
|
|
22390
22406
|
class: "mb-0"
|
|
22391
22407
|
}, {
|
|
22392
22408
|
default: G(() => [
|
|
22393
|
-
P("p",
|
|
22394
|
-
I(
|
|
22409
|
+
P("p", NO, V(H(r)("hint.externalContextSchema")), 1),
|
|
22410
|
+
I(nE, {
|
|
22395
22411
|
modelValue: an.value,
|
|
22396
22412
|
"onUpdate:modelValue": o[72] ||= (e) => an.value = e,
|
|
22397
22413
|
name: "externalContextEnabled",
|
|
@@ -22435,18 +22451,18 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22435
22451
|
}, 8, ["modelValue", "title"])
|
|
22436
22452
|
]),
|
|
22437
22453
|
_: 1
|
|
22438
|
-
}, 8, ["legend"]), e.features?.hostTools === !0 ? (z(), N(k, { key: 0 }, [I(
|
|
22454
|
+
}, 8, ["legend"]), e.features?.hostTools === !0 ? (z(), N(k, { key: 0 }, [I(xD, {
|
|
22439
22455
|
modelValue: Xt.value,
|
|
22440
22456
|
"onUpdate:modelValue": o[77] ||= (e) => Xt.value = e,
|
|
22441
22457
|
"trusted-origins": qe.value.origins
|
|
22442
|
-
}, null, 8, ["modelValue", "trusted-origins"]), I(
|
|
22458
|
+
}, null, 8, ["modelValue", "trusted-origins"]), I(ED, {
|
|
22443
22459
|
modelValue: Zt.value,
|
|
22444
22460
|
"onUpdate:modelValue": o[78] ||= (e) => Zt.value = e,
|
|
22445
22461
|
"trusted-origins": qe.value.origins
|
|
22446
22462
|
}, null, 8, ["modelValue", "trusted-origins"])], 64)) : M("", !0)])]),
|
|
22447
22463
|
"panel::security": G(() => [
|
|
22448
22464
|
I(ms, { legend: H(r)("label.rateLimits") }, {
|
|
22449
|
-
default: G(() => [P("div",
|
|
22465
|
+
default: G(() => [P("div", PO, [
|
|
22450
22466
|
I(p, {
|
|
22451
22467
|
modelValue: Ue.value,
|
|
22452
22468
|
"onUpdate:modelValue": o[79] ||= (e) => Ue.value = e,
|
|
@@ -22594,29 +22610,32 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22594
22610
|
"invalid",
|
|
22595
22611
|
"invalid-label"
|
|
22596
22612
|
]),
|
|
22597
|
-
P("p",
|
|
22613
|
+
P("p", FO, [F(V(H(r)("label.imageHostsHint")) + " ", 1), I(XT, {
|
|
22614
|
+
class: "align-middle",
|
|
22615
|
+
text: H(r)("label.imageHostsInfo")
|
|
22616
|
+
}, null, 8, ["text"])])
|
|
22598
22617
|
]),
|
|
22599
22618
|
_: 1
|
|
22600
22619
|
}, 8, ["items"]), oi(n.$slots, "default")], 512);
|
|
22601
22620
|
};
|
|
22602
22621
|
}
|
|
22603
|
-
}),
|
|
22622
|
+
}), LO = [
|
|
22604
22623
|
"aria-controls",
|
|
22605
22624
|
"aria-activedescendant",
|
|
22606
22625
|
"aria-label",
|
|
22607
22626
|
"placeholder"
|
|
22608
|
-
],
|
|
22627
|
+
], RO = {
|
|
22609
22628
|
key: 0,
|
|
22610
22629
|
class: "pk-chat-search__list vv-skeleton"
|
|
22611
|
-
},
|
|
22630
|
+
}, zO = {
|
|
22612
22631
|
key: 1,
|
|
22613
22632
|
class: "pk-chat-search__empty"
|
|
22614
|
-
},
|
|
22633
|
+
}, BO = ["id", "aria-label"], VO = ["id", "aria-selected"], HO = { class: "pk-chat-search__title" }, UO = ["aria-labelledby"], WO = ["id"], GO = [
|
|
22615
22634
|
"id",
|
|
22616
22635
|
"aria-selected",
|
|
22617
22636
|
"onMousemove",
|
|
22618
22637
|
"onClick"
|
|
22619
|
-
],
|
|
22638
|
+
], KO = { class: "pk-chat-search__title" }, qO = "new-chat", JO = /* @__PURE__ */ L({
|
|
22620
22639
|
__name: "PkChatSearchDialog",
|
|
22621
22640
|
props: /*@__PURE__*/ qr({ agentId: {} }, {
|
|
22622
22641
|
modelValue: {
|
|
@@ -22646,7 +22665,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22646
22665
|
key: e,
|
|
22647
22666
|
label: a(`label.${e}`),
|
|
22648
22667
|
items: t
|
|
22649
|
-
}))), g = A(() => !l.value.trim()), _ = A(() => [...g.value ? [
|
|
22668
|
+
}))), g = A(() => !l.value.trim()), _ = A(() => [...g.value ? [qO] : [], ...h.value.flatMap(({ items: e }) => e.map(({ id: e }) => e))]), v = fi(), y = (e) => `${v}-${e}`, b = B(0), x = A(() => _.value[b.value]);
|
|
22650
22669
|
W([m, g], () => {
|
|
22651
22670
|
b.value = 0;
|
|
22652
22671
|
});
|
|
@@ -22659,7 +22678,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22659
22678
|
b.value = (b.value + n + t) % t, await Yr(), S.value?.querySelector("[aria-selected=\"true\"]")?.scrollIntoView({ block: "nearest" });
|
|
22660
22679
|
} else e.key === "Enter" && !e.isComposing && x.value && (e.preventDefault(), w(x.value));
|
|
22661
22680
|
}, w = (e) => {
|
|
22662
|
-
r.value = !1, e ===
|
|
22681
|
+
r.value = !1, e === qO ? i("new-chat") : i("select", e);
|
|
22663
22682
|
}, ee = B();
|
|
22664
22683
|
return W(r, async (e) => {
|
|
22665
22684
|
e ? (await Yr(), ee.value?.focus()) : l.value = "";
|
|
@@ -22694,7 +22713,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22694
22713
|
"aria-label": H(a)("nav.searchChat"),
|
|
22695
22714
|
placeholder: H(a)("nav.searchChat"),
|
|
22696
22715
|
onKeydown: C
|
|
22697
|
-
}, null, 40,
|
|
22716
|
+
}, null, 40, LO), [[gi, l.value]]),
|
|
22698
22717
|
I(i, {
|
|
22699
22718
|
icon: "ri:close-line",
|
|
22700
22719
|
modifiers: "action-quiet",
|
|
@@ -22703,10 +22722,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22703
22722
|
onClick: t[1] ||= (e) => r.value = !1
|
|
22704
22723
|
}, null, 8, ["aria-label", "title"])
|
|
22705
22724
|
]),
|
|
22706
|
-
default: G(() => [f.value && _.value.length === 0 ? (z(), N("div",
|
|
22725
|
+
default: G(() => [f.value && _.value.length === 0 ? (z(), N("div", RO, [(z(), N(k, null, ai(3, (e) => P("div", {
|
|
22707
22726
|
key: e,
|
|
22708
22727
|
class: "vv-skeleton__item rounded-md h-36"
|
|
22709
|
-
})), 64))])) : _.value.length === 0 ? (z(), N("p",
|
|
22728
|
+
})), 64))])) : _.value.length === 0 ? (z(), N("p", zO, V(H(a)("message.noResults")), 1)) : (z(), N("div", {
|
|
22710
22729
|
key: 2,
|
|
22711
22730
|
id: H(v),
|
|
22712
22731
|
ref_key: "listEl",
|
|
@@ -22716,13 +22735,13 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22716
22735
|
class: "pk-chat-search__list"
|
|
22717
22736
|
}, [g.value ? (z(), N("div", {
|
|
22718
22737
|
key: 0,
|
|
22719
|
-
id: y(
|
|
22738
|
+
id: y(qO),
|
|
22720
22739
|
role: "option",
|
|
22721
|
-
"aria-selected": x.value ===
|
|
22740
|
+
"aria-selected": x.value === qO,
|
|
22722
22741
|
class: "pk-chat-search__option",
|
|
22723
22742
|
onMousemove: t[2] ||= (e) => b.value = 0,
|
|
22724
|
-
onClick: t[3] ||= (e) => w(
|
|
22725
|
-
}, [I(n, { name: "ri:edit-box-line" }), P("span",
|
|
22743
|
+
onClick: t[3] ||= (e) => w(qO)
|
|
22744
|
+
}, [I(n, { name: "ri:edit-box-line" }), P("span", HO, V(H(a)("label.newChat")), 1)], 40, VO)) : M("", !0), (z(!0), N(k, null, ai(h.value, (e) => (z(), N("div", {
|
|
22726
22745
|
key: e.key,
|
|
22727
22746
|
role: "group",
|
|
22728
22747
|
"aria-labelledby": `${H(v)}-${e.key}`,
|
|
@@ -22730,7 +22749,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22730
22749
|
}, [P("span", {
|
|
22731
22750
|
id: `${H(v)}-${e.key}`,
|
|
22732
22751
|
class: "pk-chat-search__group-label"
|
|
22733
|
-
}, V(e.label), 9,
|
|
22752
|
+
}, V(e.label), 9, WO), (z(!0), N(k, null, ai(e.items, (e) => (z(), N("div", {
|
|
22734
22753
|
id: y(e.id),
|
|
22735
22754
|
key: e.id,
|
|
22736
22755
|
role: "option",
|
|
@@ -22738,12 +22757,12 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22738
22757
|
class: "pk-chat-search__option",
|
|
22739
22758
|
onMousemove: (t) => b.value = _.value.indexOf(e.id),
|
|
22740
22759
|
onClick: (t) => w(e.id)
|
|
22741
|
-
}, [I(n, { name: "ri:chat-3-line" }), P("span",
|
|
22760
|
+
}, [I(n, { name: "ri:chat-3-line" }), P("span", KO, V(H(_t)(e)), 1)], 40, GO))), 128))], 8, UO))), 128))], 8, BO))]),
|
|
22742
22761
|
_: 1
|
|
22743
22762
|
}, 8, ["modelValue", "aria-label"]);
|
|
22744
22763
|
};
|
|
22745
22764
|
}
|
|
22746
|
-
}),
|
|
22765
|
+
}), YO = { class: "pk-chat-shortcuts__list" }, XO = { class: "pk-chat-shortcuts__keys" }, ZO = /* @__PURE__ */ L({
|
|
22747
22766
|
__name: "PkChatShortcutsDialog",
|
|
22748
22767
|
props: /*@__PURE__*/ qr({ shortcuts: {} }, {
|
|
22749
22768
|
modelValue: {
|
|
@@ -22764,15 +22783,15 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22764
22783
|
modifiers: "small",
|
|
22765
22784
|
class: "pk-chat-shortcuts"
|
|
22766
22785
|
}, {
|
|
22767
|
-
default: G(() => [P("dl",
|
|
22786
|
+
default: G(() => [P("dl", YO, [(z(!0), N(k, null, ai(e.shortcuts, (e) => (z(), N("div", {
|
|
22768
22787
|
key: e.label,
|
|
22769
22788
|
class: "pk-chat-shortcuts__row"
|
|
22770
|
-
}, [P("dt", null, V(e.label), 1), P("dd",
|
|
22789
|
+
}, [P("dt", null, V(e.label), 1), P("dd", XO, [(z(!0), N(k, null, ai(e.keys, (e) => (z(), N("kbd", { key: e }, V(e), 1))), 128))])]))), 128))])]),
|
|
22771
22790
|
_: 1
|
|
22772
22791
|
}, 8, ["modelValue", "title"]);
|
|
22773
22792
|
};
|
|
22774
22793
|
}
|
|
22775
|
-
}),
|
|
22794
|
+
}), QO = ["aria-current", "title"], $O = /* @__PURE__ */ L({
|
|
22776
22795
|
__name: "PkChatSidebarConversationItem",
|
|
22777
22796
|
props: /*@__PURE__*/ qr({
|
|
22778
22797
|
conversation: {},
|
|
@@ -22836,7 +22855,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22836
22855
|
"aria-current": e.active ? "page" : void 0,
|
|
22837
22856
|
title: o.value,
|
|
22838
22857
|
onClick: n[4] ||= (e) => i("select")
|
|
22839
|
-
}, V(o.value), 9,
|
|
22858
|
+
}, V(o.value), 9, QO),
|
|
22840
22859
|
e.answering ? (z(), j(u, {
|
|
22841
22860
|
key: 0,
|
|
22842
22861
|
name: "loading-loop",
|
|
@@ -22881,32 +22900,32 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22881
22900
|
], 64))], 2);
|
|
22882
22901
|
};
|
|
22883
22902
|
}
|
|
22884
|
-
}),
|
|
22903
|
+
}), ek = ["inert", "aria-label"], tk = { class: "pk-chat-sidebar__header" }, nk = ["title"], rk = { class: "pk-chat-sidebar__actions" }, ik = {
|
|
22885
22904
|
key: 0,
|
|
22886
22905
|
class: "pk-chat-sidebar__agent"
|
|
22887
|
-
},
|
|
22906
|
+
}, ak = ["aria-keyshortcuts"], ok = {
|
|
22888
22907
|
class: "pk-chat-sidebar__shortcut",
|
|
22889
22908
|
"aria-hidden": "true"
|
|
22890
|
-
},
|
|
22909
|
+
}, sk = {
|
|
22891
22910
|
key: 0,
|
|
22892
22911
|
class: "pk-chat-sidebar__list scrollbar-thin vv-skeleton"
|
|
22893
|
-
},
|
|
22912
|
+
}, ck = {
|
|
22894
22913
|
key: 1,
|
|
22895
22914
|
class: "pk-chat-sidebar__list scrollbar-thin"
|
|
22896
|
-
},
|
|
22915
|
+
}, lk = {
|
|
22897
22916
|
key: 0,
|
|
22898
22917
|
class: "pk-chat-sidebar__no-results"
|
|
22899
|
-
},
|
|
22918
|
+
}, uk = { class: "pk-chat-sidebar__group-label" }, dk = {
|
|
22900
22919
|
key: 0,
|
|
22901
22920
|
class: "vv-skeleton__item rounded-md h-36"
|
|
22902
|
-
},
|
|
22921
|
+
}, fk = {
|
|
22903
22922
|
key: 2,
|
|
22904
22923
|
class: "pk-chat-sidebar__footer"
|
|
22905
|
-
},
|
|
22924
|
+
}, pk = [
|
|
22906
22925
|
"aria-valuenow",
|
|
22907
22926
|
"aria-label",
|
|
22908
22927
|
"title"
|
|
22909
|
-
],
|
|
22928
|
+
], mk = 256, hk = 224, gk = 480, _k = 16, vk = /* @__PURE__ */ L({
|
|
22910
22929
|
__name: "PkChatSidebar",
|
|
22911
22930
|
props: /*@__PURE__*/ qr({
|
|
22912
22931
|
agentId: {},
|
|
@@ -22925,8 +22944,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22925
22944
|
setup(e, { emit: t }) {
|
|
22926
22945
|
let n = e, r = U(e, "collapsed"), i = ki("(max-width: 1023px)"), a = () => {
|
|
22927
22946
|
i.value && (r.value = !0);
|
|
22928
|
-
}, o = t, { t: s } = bi({ useScope: "global" }), c = (e) => Math.min(
|
|
22929
|
-
get: () => c(Number(l.value) ||
|
|
22947
|
+
}, o = t, { t: s } = bi({ useScope: "global" }), c = (e) => Math.min(gk, Math.max(hk, Math.round(e))), l = Oi("pk-chat-sidebar-width", mk), u = A({
|
|
22948
|
+
get: () => c(Number(l.value) || mk),
|
|
22930
22949
|
set: (e) => {
|
|
22931
22950
|
l.value = c(e);
|
|
22932
22951
|
}
|
|
@@ -22944,10 +22963,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
22944
22963
|
d.value = !1, document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
22945
22964
|
}, g = (e) => {
|
|
22946
22965
|
let t = {
|
|
22947
|
-
ArrowLeft: u.value -
|
|
22948
|
-
ArrowRight: u.value +
|
|
22949
|
-
Home:
|
|
22950
|
-
End:
|
|
22966
|
+
ArrowLeft: u.value - _k,
|
|
22967
|
+
ArrowRight: u.value + _k,
|
|
22968
|
+
Home: hk,
|
|
22969
|
+
End: gk
|
|
22951
22970
|
}[e.key];
|
|
22952
22971
|
t !== void 0 && (e.preventDefault(), u.value = t);
|
|
22953
22972
|
}, _ = A(() => ({
|
|
@@ -23054,7 +23073,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23054
23073
|
"aria-label": H(s)("label.conversations"),
|
|
23055
23074
|
onKeydown: je
|
|
23056
23075
|
}, [
|
|
23057
|
-
P("header",
|
|
23076
|
+
P("header", tk, [
|
|
23058
23077
|
e.organizationLogo || e.organizationName ? (z(), j(qn, {
|
|
23059
23078
|
key: 0,
|
|
23060
23079
|
class: "pk-chat-sidebar__org-logo",
|
|
@@ -23065,7 +23084,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23065
23084
|
key: 1,
|
|
23066
23085
|
class: "pk-chat-sidebar__org-name",
|
|
23067
23086
|
title: e.organizationName
|
|
23068
|
-
}, V(e.organizationName), 9,
|
|
23087
|
+
}, V(e.organizationName), 9, nk)) : M("", !0),
|
|
23069
23088
|
I(a, {
|
|
23070
23089
|
class: "ml-auto",
|
|
23071
23090
|
icon: "ri:search-line",
|
|
@@ -23094,8 +23113,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23094
23113
|
"title"
|
|
23095
23114
|
])
|
|
23096
23115
|
]),
|
|
23097
|
-
P("div",
|
|
23098
|
-
t.$slots.agent ? (z(), N("div",
|
|
23116
|
+
P("div", rk, [
|
|
23117
|
+
t.$slots.agent ? (z(), N("div", ik, [oi(t.$slots, "agent")])) : M("", !0),
|
|
23099
23118
|
P("button", {
|
|
23100
23119
|
type: "button",
|
|
23101
23120
|
class: "pk-chat-sidebar__new-chat",
|
|
@@ -23104,19 +23123,19 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23104
23123
|
}, [
|
|
23105
23124
|
I(c, { name: "ri:edit-box-line" }),
|
|
23106
23125
|
F(" " + V(H(s)("label.newChat")) + " ", 1),
|
|
23107
|
-
P("kbd",
|
|
23108
|
-
], 8,
|
|
23126
|
+
P("kbd", ok, V(ke(T.newChat)), 1)
|
|
23127
|
+
], 8, ak),
|
|
23109
23128
|
oi(t.$slots, "actions-extra")
|
|
23110
23129
|
]),
|
|
23111
|
-
H(b) && H(y).length === 0 ? (z(), N("div",
|
|
23130
|
+
H(b) && H(y).length === 0 ? (z(), N("div", sk, [(z(), N(k, null, ai(6, (e) => P("div", {
|
|
23112
23131
|
key: e,
|
|
23113
23132
|
class: "vv-skeleton__item rounded-md h-36"
|
|
23114
|
-
})), 64))])) : (z(), N("nav",
|
|
23115
|
-
he.value.length === 0 ? (z(), N("p",
|
|
23133
|
+
})), 64))])) : (z(), N("nav", ck, [
|
|
23134
|
+
he.value.length === 0 ? (z(), N("p", lk, V(H(s)("message.noConversations")), 1)) : M("", !0),
|
|
23116
23135
|
(z(!0), N(k, null, ai(he.value, (t) => (z(), N("div", {
|
|
23117
23136
|
key: t.key,
|
|
23118
23137
|
class: "pk-chat-sidebar__group"
|
|
23119
|
-
}, [P("span",
|
|
23138
|
+
}, [P("span", uk, V(t.label), 1), (z(!0), N(k, null, ai(t.items, (t) => (z(), j($O, {
|
|
23120
23139
|
key: t.id,
|
|
23121
23140
|
"editing-title": H(se),
|
|
23122
23141
|
"onUpdate:editingTitle": n[3] ||= (e) => Gr(se) ? se.value = e : null,
|
|
@@ -23152,9 +23171,9 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23152
23171
|
ref_key: "moreEl",
|
|
23153
23172
|
ref: pe,
|
|
23154
23173
|
class: "pk-chat-sidebar__more vv-skeleton"
|
|
23155
|
-
}, [H(S) ? (z(), N("div",
|
|
23174
|
+
}, [H(S) ? (z(), N("div", dk)) : M("", !0)], 512)) : M("", !0)
|
|
23156
23175
|
])),
|
|
23157
|
-
t.$slots.footer ? (z(), N("footer",
|
|
23176
|
+
t.$slots.footer ? (z(), N("footer", fk, [oi(t.$slots, "footer", { openShortcuts: H(i) ? void 0 : be })])) : M("", !0),
|
|
23158
23177
|
!H(i) && !r.value ? (z(), N("div", {
|
|
23159
23178
|
key: 3,
|
|
23160
23179
|
class: "pk-chat-sidebar__resize",
|
|
@@ -23162,26 +23181,26 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23162
23181
|
tabindex: "0",
|
|
23163
23182
|
"aria-orientation": "vertical",
|
|
23164
23183
|
"aria-valuenow": u.value,
|
|
23165
|
-
"aria-valuemin":
|
|
23166
|
-
"aria-valuemax":
|
|
23184
|
+
"aria-valuemin": hk,
|
|
23185
|
+
"aria-valuemax": gk,
|
|
23167
23186
|
"aria-label": H(s)("action.resize"),
|
|
23168
23187
|
title: H(s)("action.resize"),
|
|
23169
23188
|
onPointerdown: p,
|
|
23170
23189
|
onPointermove: m,
|
|
23171
23190
|
onPointerup: h,
|
|
23172
23191
|
onPointercancel: h,
|
|
23173
|
-
onDblclick: n[4] ||= (e) => u.value =
|
|
23192
|
+
onDblclick: n[4] ||= (e) => u.value = mk,
|
|
23174
23193
|
onKeydown: g
|
|
23175
|
-
}, null, 40,
|
|
23176
|
-
], 46,
|
|
23177
|
-
I(
|
|
23194
|
+
}, null, 40, pk)) : M("", !0)
|
|
23195
|
+
], 46, ek),
|
|
23196
|
+
I(JO, {
|
|
23178
23197
|
modelValue: ve.value,
|
|
23179
23198
|
"onUpdate:modelValue": n[5] ||= (e) => ve.value = e,
|
|
23180
23199
|
"agent-id": e.agentId,
|
|
23181
23200
|
onSelect: ge,
|
|
23182
23201
|
onNewChat: _e
|
|
23183
23202
|
}, null, 8, ["modelValue", "agent-id"]),
|
|
23184
|
-
I(
|
|
23203
|
+
I(ZO, {
|
|
23185
23204
|
modelValue: ye.value,
|
|
23186
23205
|
"onUpdate:modelValue": n[6] ||= (e) => ye.value = e,
|
|
23187
23206
|
shortcuts: Ae.value
|
|
@@ -23189,40 +23208,40 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23189
23208
|
], 64);
|
|
23190
23209
|
};
|
|
23191
23210
|
}
|
|
23192
|
-
}),
|
|
23211
|
+
}), yk = { class: "pk-retry-countdown" }, bk = /* @__PURE__ */ L({
|
|
23193
23212
|
__name: "PkRetryCountdown",
|
|
23194
23213
|
props: {
|
|
23195
23214
|
countdown: {},
|
|
23196
23215
|
maxSeconds: {}
|
|
23197
23216
|
},
|
|
23198
23217
|
setup(e) {
|
|
23199
|
-
return (e, t) => (z(), N("div",
|
|
23218
|
+
return (e, t) => (z(), N("div", yk, [...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)]]));
|
|
23200
23219
|
}
|
|
23201
|
-
}),
|
|
23220
|
+
}), xk = {
|
|
23202
23221
|
key: 0,
|
|
23203
23222
|
class: "pk-tool-selection"
|
|
23204
|
-
},
|
|
23223
|
+
}, Sk = { 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" }, Ck = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, wk = { class: "font-semibold text-12 truncate" }, Tk = {
|
|
23205
23224
|
key: 0,
|
|
23206
23225
|
class: "text-10 text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
23207
|
-
},
|
|
23226
|
+
}, Ek = ["title"], Dk = { class: "font-mono text-10 text-word-3 truncate ml-auto" }, Ok = { class: "border rounded-b border-surface-3" }, kk = {
|
|
23208
23227
|
key: 0,
|
|
23209
23228
|
class: "flex flex-col gap-6 p-8 border-b border-surface-3 text-12 text-word-2"
|
|
23210
|
-
},
|
|
23229
|
+
}, Ak = { key: 0 }, jk = {
|
|
23211
23230
|
key: 1,
|
|
23212
23231
|
class: "flex items-center gap-4"
|
|
23213
|
-
},
|
|
23232
|
+
}, Mk = { 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" }, Nk = ["title"], Pk = { class: "flex shrink-0" }, Fk = { class: "pk-tool-selection__label" }, Ik = { class: "tabular-nums truncate" }, Lk = { class: "pk-tool-selection__groups" }, Rk = { class: "flex flex-col gap-4 min-w-0" }, zk = { class: "flex items-center gap-6 min-w-0" }, Bk = { class: "pk-tool-selection__label" }, Vk = ["title"], Hk = { class: "flex flex-wrap items-center gap-x-6 gap-y-2 text-10 text-word-3" }, Uk = { key: 0 }, Wk = {
|
|
23214
23233
|
key: 1,
|
|
23215
23234
|
class: "text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
23216
|
-
},
|
|
23235
|
+
}, Gk = {
|
|
23217
23236
|
key: 2,
|
|
23218
23237
|
class: "pk-tool-selection__label"
|
|
23219
|
-
},
|
|
23238
|
+
}, Kk = {
|
|
23220
23239
|
key: 3,
|
|
23221
23240
|
class: "pk-tool-selection__tag rounded px-4 py-2"
|
|
23222
|
-
},
|
|
23241
|
+
}, qk = {
|
|
23223
23242
|
key: 4,
|
|
23224
23243
|
class: "pk-tool-selection__tag rounded px-4 py-2"
|
|
23225
|
-
},
|
|
23244
|
+
}, Jk = ["title"], Yk = { class: "text-10 text-word-2 tabular-nums" }, Xk = /* @__PURE__ */ L({
|
|
23226
23245
|
__name: "PkToolSelection",
|
|
23227
23246
|
props: { message: {} },
|
|
23228
23247
|
setup(e) {
|
|
@@ -23264,32 +23283,32 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23264
23283
|
});
|
|
23265
23284
|
return (e, t) => {
|
|
23266
23285
|
let s = jr;
|
|
23267
|
-
return a.value ? (z(), N("section",
|
|
23268
|
-
P("div",
|
|
23286
|
+
return a.value ? (z(), N("section", xk, [P("header", Sk, [
|
|
23287
|
+
P("div", Ck, [I(s, {
|
|
23269
23288
|
name: "ri:filter-3-line",
|
|
23270
23289
|
class: "w-12 h-12"
|
|
23271
23290
|
})]),
|
|
23272
|
-
P("strong",
|
|
23273
|
-
a.value.decision.failed ? (z(), N("span",
|
|
23291
|
+
P("strong", wk, V(H(n)("toolSelection.title")), 1),
|
|
23292
|
+
a.value.decision.failed ? (z(), N("span", Tk, V(H(n)("toolSelection.failed")), 1)) : (z(), N("span", {
|
|
23274
23293
|
key: 1,
|
|
23275
23294
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
|
|
23276
23295
|
title: H(n)(`toolSelection.modeHint.${a.value.decision.mode}`)
|
|
23277
|
-
}, V(H(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9,
|
|
23278
|
-
P("code",
|
|
23279
|
-
]), P("div",
|
|
23280
|
-
a.value.decision.failed || a.value.missed > 0 ? (z(), N("div",
|
|
23296
|
+
}, V(H(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9, Ek)),
|
|
23297
|
+
P("code", Dk, V(H(Le)), 1)
|
|
23298
|
+
]), P("div", Ok, [
|
|
23299
|
+
a.value.decision.failed || a.value.missed > 0 ? (z(), N("div", kk, [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", jk, [I(s, {
|
|
23281
23300
|
name: "ri:error-warning-line",
|
|
23282
23301
|
class: "shrink-0 text-warning-darken-3"
|
|
23283
23302
|
}), F(" " + V(H(n)(a.value.decision.mode === "active" ? "toolSelection.missedActive" : "toolSelection.missedShadow", a.value.missed)), 1)])) : M("", !0)])) : M("", !0),
|
|
23284
|
-
P("dl",
|
|
23303
|
+
P("dl", Mk, [(z(!0), N(k, null, ai(o.value, (e) => (z(), N("div", {
|
|
23285
23304
|
key: e.icon,
|
|
23286
23305
|
class: "flex items-center gap-6 min-w-0",
|
|
23287
23306
|
title: e.label
|
|
23288
|
-
}, [P("dt",
|
|
23307
|
+
}, [P("dt", Pk, [I(s, {
|
|
23289
23308
|
name: e.icon,
|
|
23290
23309
|
"aria-hidden": "true"
|
|
23291
|
-
}, null, 8, ["name"]), P("span",
|
|
23292
|
-
P("ul",
|
|
23310
|
+
}, null, 8, ["name"]), P("span", Fk, V(e.label), 1)]), P("dd", Ik, V(e.value), 1)], 8, Nk))), 128))]),
|
|
23311
|
+
P("ul", Lk, [(z(!0), N(k, null, ai(a.value.groups, (e) => (z(), N("li", {
|
|
23293
23312
|
key: e.id,
|
|
23294
23313
|
class: Xr(["pk-tool-selection__group", {
|
|
23295
23314
|
"pk-tool-selection__group--selected": e.selected,
|
|
@@ -23300,24 +23319,24 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23300
23319
|
name: e.selected ? "ri:check-line" : "ri:subtract-line",
|
|
23301
23320
|
class: "pk-tool-selection__mark shrink-0"
|
|
23302
23321
|
}, null, 8, ["name"]),
|
|
23303
|
-
P("div",
|
|
23322
|
+
P("div", Rk, [P("span", zk, [
|
|
23304
23323
|
I(s, {
|
|
23305
23324
|
name: i[e.kind],
|
|
23306
23325
|
class: "shrink-0 w-14 h-14",
|
|
23307
23326
|
title: H(n)(`toolSelection.kind.${e.kind}`),
|
|
23308
23327
|
"aria-hidden": "true"
|
|
23309
23328
|
}, null, 8, ["name", "title"]),
|
|
23310
|
-
P("span",
|
|
23329
|
+
P("span", Bk, V(H(n)(`toolSelection.kind.${e.kind}`)), 1),
|
|
23311
23330
|
P("span", {
|
|
23312
23331
|
class: "pk-tool-selection__name truncate",
|
|
23313
23332
|
title: e.name
|
|
23314
|
-
}, V(e.name), 9,
|
|
23315
|
-
]), P("span",
|
|
23316
|
-
e.kind === "mcp" ? (z(), N("span",
|
|
23317
|
-
e.used && !e.selected ? (z(), N("span",
|
|
23318
|
-
e.used ? (z(), N("span",
|
|
23319
|
-
e.enabled ? (z(), N("span",
|
|
23320
|
-
e.seeded ? (z(), N("span",
|
|
23333
|
+
}, V(e.name), 9, Vk)
|
|
23334
|
+
]), P("span", Hk, [
|
|
23335
|
+
e.kind === "mcp" ? (z(), N("span", Uk, V(H(n)("toolSelection.tools", e.tools)), 1)) : M("", !0),
|
|
23336
|
+
e.used && !e.selected ? (z(), N("span", Wk, V(H(n)("toolSelection.missed")), 1)) : M("", !0),
|
|
23337
|
+
e.used ? (z(), N("span", Gk, V(H(n)("toolSelection.used")), 1)) : M("", !0),
|
|
23338
|
+
e.enabled ? (z(), N("span", Kk, V(H(n)("toolSelection.enabled")), 1)) : M("", !0),
|
|
23339
|
+
e.seeded ? (z(), N("span", qk, V(H(n)("toolSelection.seeded")), 1)) : M("", !0)
|
|
23321
23340
|
])]),
|
|
23322
23341
|
e.probability === void 0 ? M("", !0) : (z(), N("div", {
|
|
23323
23342
|
key: 0,
|
|
@@ -23330,18 +23349,18 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23330
23349
|
"--pk-tool-selection-probability": `${e.probability * 100}%`,
|
|
23331
23350
|
"--pk-tool-selection-threshold": `${a.value.decision.threshold * 100}%`
|
|
23332
23351
|
})
|
|
23333
|
-
}, null, 4), P("span",
|
|
23352
|
+
}, null, 4), P("span", Yk, V(H(r)(e.probability, "decimal")), 1)], 8, Jk))
|
|
23334
23353
|
], 2))), 128))])
|
|
23335
23354
|
])])) : M("", !0);
|
|
23336
23355
|
};
|
|
23337
23356
|
}
|
|
23338
|
-
}),
|
|
23357
|
+
}), Zk = ["aria-labelledby"], Qk = { 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" }, $k = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, eA = ["id"], tA = {
|
|
23339
23358
|
key: 0,
|
|
23340
23359
|
class: "text-10 text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
23341
|
-
},
|
|
23360
|
+
}, nA = ["title"], rA = { class: "u-visually-hidden" }, iA = ["title"], aA = { class: "u-visually-hidden" }, oA = { class: "border rounded-b border-surface-3" }, sA = {
|
|
23342
23361
|
key: 0,
|
|
23343
23362
|
class: "p-8 border-b border-surface-3 text-12 text-word-2"
|
|
23344
|
-
},
|
|
23363
|
+
}, cA = ["title"], lA = { class: "flex shrink-0" }, uA = { class: "u-visually-hidden" }, dA = { class: "tabular-nums truncate" }, fA = { key: 1 }, pA = ["title"], mA = ["title"], hA = { class: "text-10 text-word-2 tabular-nums" }, gA = .5, _A = /* @__PURE__ */ L({
|
|
23345
23364
|
__name: "PkTurnEvaluation",
|
|
23346
23365
|
props: { message: {} },
|
|
23347
23366
|
setup(e) {
|
|
@@ -23385,79 +23404,79 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23385
23404
|
key: 0,
|
|
23386
23405
|
class: "pk-turn-evaluation",
|
|
23387
23406
|
"aria-labelledby": H(a)
|
|
23388
|
-
}, [P("header",
|
|
23389
|
-
P("div",
|
|
23407
|
+
}, [P("header", Qk, [
|
|
23408
|
+
P("div", $k, [I(r, {
|
|
23390
23409
|
name: "ri:scales-line",
|
|
23391
23410
|
class: "w-12 h-12"
|
|
23392
23411
|
})]),
|
|
23393
23412
|
P("strong", {
|
|
23394
23413
|
id: H(a),
|
|
23395
23414
|
class: "font-semibold text-12 truncate"
|
|
23396
|
-
}, V(H(n)("turnEvaluation.title")), 9,
|
|
23397
|
-
o.value.failed ? (z(), N("span",
|
|
23415
|
+
}, V(H(n)("turnEvaluation.title")), 9, eA),
|
|
23416
|
+
o.value.failed ? (z(), N("span", tA, V(H(n)("toolSelection.failed")), 1)) : (z(), N("span", {
|
|
23398
23417
|
key: 1,
|
|
23399
23418
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
|
|
23400
23419
|
title: H(n)("turnEvaluation.modeHint")
|
|
23401
|
-
}, [F(V(H(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span",
|
|
23420
|
+
}, [F(V(H(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span", rA, V(H(n)("turnEvaluation.modeHint")), 1)], 8, nA)),
|
|
23402
23421
|
P("code", {
|
|
23403
23422
|
class: "font-mono text-10 text-word-3 truncate ml-auto",
|
|
23404
23423
|
title: H(n)("turnEvaluation.version", { version: o.value.version })
|
|
23405
|
-
}, [F(V(H(Le)) + " ", 1), P("span",
|
|
23406
|
-
]), P("div",
|
|
23407
|
-
o.value.failed ? (z(), N("p",
|
|
23424
|
+
}, [F(V(H(Le)) + " ", 1), P("span", aA, V(H(n)("turnEvaluation.version", { version: o.value.version })), 1)], 8, iA)
|
|
23425
|
+
]), P("div", oA, [
|
|
23426
|
+
o.value.failed ? (z(), N("p", sA, V(H(n)("turnEvaluation.leadFailed", { budget: H(i)(o.value.budgetMs, "integer") })), 1)) : M("", !0),
|
|
23408
23427
|
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", {
|
|
23409
23428
|
key: e.icon,
|
|
23410
23429
|
class: "flex items-center gap-6 min-w-0",
|
|
23411
23430
|
title: e.label
|
|
23412
|
-
}, [P("dt",
|
|
23431
|
+
}, [P("dt", lA, [I(r, {
|
|
23413
23432
|
name: e.icon,
|
|
23414
23433
|
"aria-hidden": "true"
|
|
23415
|
-
}, null, 8, ["name"]), P("span",
|
|
23416
|
-
c.value.length > 0 ? (z(), N("ul",
|
|
23434
|
+
}, null, 8, ["name"]), P("span", uA, V(e.label), 1)]), P("dd", dA, V(e.value), 1)], 8, cA))), 128))], 2),
|
|
23435
|
+
c.value.length > 0 ? (z(), N("ul", fA, [(z(!0), N(k, null, ai(c.value, (e) => (z(), N("li", {
|
|
23417
23436
|
key: e.id,
|
|
23418
|
-
class: Xr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >=
|
|
23437
|
+
class: Xr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >= gA }])
|
|
23419
23438
|
}, [P("span", {
|
|
23420
23439
|
class: "truncate",
|
|
23421
23440
|
title: e.label
|
|
23422
|
-
}, V(e.label), 9,
|
|
23441
|
+
}, V(e.label), 9, pA), P("div", {
|
|
23423
23442
|
class: "pk-turn-evaluation__probability",
|
|
23424
23443
|
title: H(n)("turnEvaluation.probability")
|
|
23425
23444
|
}, [P("span", {
|
|
23426
23445
|
class: "pk-turn-evaluation__bar",
|
|
23427
23446
|
"aria-hidden": "true",
|
|
23428
23447
|
style: Qr({ "--pk-turn-evaluation-probability": `${e.probability * 100}%` })
|
|
23429
|
-
}, null, 4), P("span",
|
|
23430
|
-
])], 8,
|
|
23448
|
+
}, null, 4), P("span", hA, V(H(i)(e.probability, "decimal")), 1)], 8, mA)], 2))), 128))])) : M("", !0)
|
|
23449
|
+
])], 8, Zk)) : M("", !0);
|
|
23431
23450
|
};
|
|
23432
23451
|
}
|
|
23433
|
-
}),
|
|
23452
|
+
}), vA = { class: "flex flex-col gap-16" }, yA = {
|
|
23434
23453
|
key: 0,
|
|
23435
23454
|
class: "grid grid-cols-2 gap-x-10 text-12 text-word-3 justify-between"
|
|
23436
|
-
},
|
|
23455
|
+
}, bA = { class: "flex flex-col gap-y-4" }, xA = {
|
|
23437
23456
|
key: 1,
|
|
23438
23457
|
class: "flex items-center gap-4 min-w-0"
|
|
23439
|
-
},
|
|
23458
|
+
}, SA = { class: "truncate" }, CA = {
|
|
23440
23459
|
key: 2,
|
|
23441
23460
|
class: "flex items-center gap-4 min-w-0"
|
|
23442
|
-
},
|
|
23461
|
+
}, wA = { class: "truncate" }, TA = { key: 0 }, EA = {
|
|
23443
23462
|
key: 3,
|
|
23444
23463
|
class: "flex items-center gap-4"
|
|
23445
|
-
},
|
|
23464
|
+
}, DA = {
|
|
23446
23465
|
key: 4,
|
|
23447
23466
|
class: "flex items-center gap-4"
|
|
23448
|
-
},
|
|
23467
|
+
}, OA = { class: "flex flex-col gap-y-4 items-end" }, kA = ["datetime"], AA = {
|
|
23449
23468
|
key: 1,
|
|
23450
23469
|
class: "flex items-center gap-4"
|
|
23451
|
-
},
|
|
23470
|
+
}, jA = { key: 0 }, MA = {
|
|
23452
23471
|
key: 2,
|
|
23453
23472
|
class: "flex items-center gap-4"
|
|
23454
|
-
},
|
|
23473
|
+
}, NA = {
|
|
23455
23474
|
key: 3,
|
|
23456
23475
|
class: "flex items-center gap-4 min-w-0"
|
|
23457
|
-
},
|
|
23476
|
+
}, PA = { class: "truncate" }, FA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, IA = { class: "font-semibold truncate" }, LA = ["title"], RA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, zA = { class: "font-semibold truncate" }, BA = ["title"], VA = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, HA = { class: "font-semibold truncate" }, UA = ["title"], WA = { class: "flex flex-col gap-16" }, GA = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, KA = { class: "tracking-widest border-r border-gray-lighten-3 pr-4" }, qA = { class: "font-bold text-12" }, JA = { class: "text-10" }, YA = { class: "text-12 text-word-2 truncate" }, XA = {
|
|
23458
23477
|
key: 0,
|
|
23459
23478
|
class: "text-10 text-word-4 whitespace-nowrap ml-auto"
|
|
23460
|
-
},
|
|
23479
|
+
}, ZA = { key: 0 }, QA = { class: "border rounded-b border-surface-3" }, $A = { class: "font-bold text-10 uppercase p-8 border-b border-surface-3" }, ej = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, tj = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, nj = { class: "text-12 font-mono leading-snug bg-surface-1 p-8 m-0 whitespace-pre-wrap" }, rj = /* @__PURE__ */ L({
|
|
23461
23480
|
__name: "PkMessageParts",
|
|
23462
23481
|
props: { message: {} },
|
|
23463
23482
|
setup(e) {
|
|
@@ -23488,29 +23507,29 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23488
23507
|
}), l = A(() => t.message?.metadata?.transport === Ne.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);
|
|
23489
23508
|
return (t, f) => {
|
|
23490
23509
|
let p = jr, m = br, h = xr, g = si("PjResizablePanel");
|
|
23491
|
-
return z(), N("div",
|
|
23492
|
-
e.message.metadata?.model || l.value ? (z(), N("div",
|
|
23493
|
-
e.message.metadata?.model ? (z(), j(
|
|
23510
|
+
return z(), N("div", vA, [
|
|
23511
|
+
e.message.metadata?.model || l.value ? (z(), N("div", yA, [P("div", bA, [
|
|
23512
|
+
e.message.metadata?.model ? (z(), j(rD, {
|
|
23494
23513
|
key: 0,
|
|
23495
23514
|
"model-name": e.message.metadata?.model,
|
|
23496
23515
|
historical: ""
|
|
23497
23516
|
}, null, 8, ["model-name"])) : M("", !0),
|
|
23498
|
-
e.message?.metadata?.resolvedProvider ? (z(), N("span",
|
|
23517
|
+
e.message?.metadata?.resolvedProvider ? (z(), N("span", xA, [I(p, {
|
|
23499
23518
|
name: "ri:cloud-line",
|
|
23500
23519
|
class: "shrink-0"
|
|
23501
|
-
}), P("span",
|
|
23502
|
-
e.message?.metadata?.totalTokens ? (z(), N("span",
|
|
23520
|
+
}), P("span", SA, [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),
|
|
23521
|
+
e.message?.metadata?.totalTokens ? (z(), N("span", CA, [I(p, {
|
|
23503
23522
|
name: "ri:ai-generate-2-line",
|
|
23504
23523
|
class: "shrink-0"
|
|
23505
|
-
}), P("span",
|
|
23506
|
-
e.message?.metadata?.zeroDataRetention ? (z(), N("span",
|
|
23524
|
+
}), P("span", wA, [F(V(t.$n(e.message.metadata.totalTokens, "integer")) + " " + V(t.$t("label.tokens")) + " ", 1), e.message?.metadata?.cachedTokens ? (z(), N("span", TA, " (" + V(t.$n(e.message.metadata.cachedTokens, "integer")) + " " + V(t.$t("label.cached")) + ") ", 1)) : M("", !0)])])) : M("", !0),
|
|
23525
|
+
e.message?.metadata?.zeroDataRetention ? (z(), N("span", EA, [I(p, {
|
|
23507
23526
|
name: "ri:shield-check-line",
|
|
23508
23527
|
class: "shrink-0"
|
|
23509
|
-
}), F(" " + V(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span",
|
|
23528
|
+
}), F(" " + V(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span", DA, [I(p, {
|
|
23510
23529
|
name: "ri:shield-check-line",
|
|
23511
23530
|
class: "shrink-0"
|
|
23512
23531
|
}), F(" " + V(t.$t("label.noPromptTraining")), 1)])) : M("", !0)
|
|
23513
|
-
]), P("div",
|
|
23532
|
+
]), P("div", OA, [
|
|
23514
23533
|
e.message?.metadata?.createdAt ? (z(), N("time", {
|
|
23515
23534
|
key: 0,
|
|
23516
23535
|
datetime: new Date(e.message.metadata.createdAt).toISOString(),
|
|
@@ -23518,8 +23537,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23518
23537
|
}, [I(p, {
|
|
23519
23538
|
name: "ri:time-line",
|
|
23520
23539
|
class: "shrink-0"
|
|
23521
|
-
}), F(" " + V(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8,
|
|
23522
|
-
e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div",
|
|
23540
|
+
}), F(" " + V(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8, kA)) : M("", !0),
|
|
23541
|
+
e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div", AA, [
|
|
23523
23542
|
I(p, {
|
|
23524
23543
|
name: "ri:hourglass-line",
|
|
23525
23544
|
class: "shrink-0"
|
|
@@ -23528,16 +23547,16 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23528
23547
|
date: e.message.metadata?.createdAt,
|
|
23529
23548
|
"end-date": e.message.metadata?.completedAt
|
|
23530
23549
|
}, null, 8, ["date", "end-date"]),
|
|
23531
|
-
e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span",
|
|
23550
|
+
e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span", jA, " (" + V(e.message.metadata.totalProviderAttemptCount) + " attempts) ", 1)) : M("", !0)
|
|
23532
23551
|
])) : M("", !0),
|
|
23533
|
-
e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span",
|
|
23552
|
+
e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span", MA, [I(p, {
|
|
23534
23553
|
name: "ri:wallet-line",
|
|
23535
23554
|
class: "shrink-0"
|
|
23536
23555
|
}), F(" " + V(t.$n(parseFloat(e.message.metadata.cost), "currencyUSD")), 1)])) : M("", !0),
|
|
23537
|
-
l.value ? (z(), N("span",
|
|
23556
|
+
l.value ? (z(), N("span", NA, [I(p, {
|
|
23538
23557
|
name: "ri:mic-line",
|
|
23539
23558
|
class: "shrink-0"
|
|
23540
|
-
}), P("span",
|
|
23559
|
+
}), P("span", PA, V(t.$t("label.spokenExchange")), 1)])) : M("", !0)
|
|
23541
23560
|
])])) : M("", !0),
|
|
23542
23561
|
c.value || d.value || u.value ? (z(), j(h, {
|
|
23543
23562
|
key: 1,
|
|
@@ -23550,10 +23569,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23550
23569
|
title: t.$t("label.platformContext"),
|
|
23551
23570
|
class: "border border-surface-3 rounded"
|
|
23552
23571
|
}, {
|
|
23553
|
-
default: G(() => [P("dl",
|
|
23572
|
+
default: G(() => [P("dl", FA, [(z(!0), N(k, null, ai(e.message.metadata?.platformContext, (e, t) => (z(), N(k, { key: t }, [P("dt", IA, V(H(lt)(H(ot)(t))), 1), P("dd", {
|
|
23554
23573
|
class: "truncate font-mono col-span-2",
|
|
23555
23574
|
title: String(e)
|
|
23556
|
-
}, V(e), 9,
|
|
23575
|
+
}, V(e), 9, LA)], 64))), 128))])]),
|
|
23557
23576
|
_: 1
|
|
23558
23577
|
}, 8, ["title"])) : M("", !0),
|
|
23559
23578
|
c.value ? (z(), j(m, {
|
|
@@ -23562,10 +23581,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23562
23581
|
title: t.$t("label.deviceContext"),
|
|
23563
23582
|
class: "border border-surface-3 rounded"
|
|
23564
23583
|
}, {
|
|
23565
|
-
default: G(() => [P("dl",
|
|
23584
|
+
default: G(() => [P("dl", RA, [(z(!0), N(k, null, ai(c.value, (e, t) => (z(), N(k, { key: t }, [P("dt", zA, V(H(lt)(H(ot)(t))), 1), P("dd", {
|
|
23566
23585
|
class: "truncate font-mono col-span-2",
|
|
23567
23586
|
title: String(e)
|
|
23568
|
-
}, V(e), 9,
|
|
23587
|
+
}, V(e), 9, BA)], 64))), 128))])]),
|
|
23569
23588
|
_: 1
|
|
23570
23589
|
}, 8, ["title"])) : M("", !0),
|
|
23571
23590
|
u.value ? (z(), j(m, {
|
|
@@ -23574,19 +23593,19 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23574
23593
|
title: t.$t("label.externalContext"),
|
|
23575
23594
|
class: "border border-surface-3 rounded"
|
|
23576
23595
|
}, {
|
|
23577
|
-
default: G(() => [P("dl",
|
|
23596
|
+
default: G(() => [P("dl", VA, [(z(!0), N(k, null, ai(e.message.metadata?.externalContext, (e, t) => (z(), N(k, { key: t }, [P("dt", HA, V(H(lt)(H(ot)(t))), 1), P("dd", {
|
|
23578
23597
|
class: "truncate font-mono col-span-2",
|
|
23579
23598
|
title: String(e)
|
|
23580
|
-
}, V(e), 9,
|
|
23599
|
+
}, V(e), 9, UA)], 64))), 128))])]),
|
|
23581
23600
|
_: 1
|
|
23582
23601
|
}, 8, ["title"])) : M("", !0)
|
|
23583
23602
|
]),
|
|
23584
23603
|
_: 1
|
|
23585
23604
|
})) : M("", !0),
|
|
23586
|
-
I(
|
|
23587
|
-
P("ol",
|
|
23605
|
+
I(Xk, { message: e.message }, null, 8, ["message"]),
|
|
23606
|
+
P("ol", WA, [(z(!0), N(k, null, ai(r.value, (e, c) => (z(), N("li", { key: c }, [
|
|
23588
23607
|
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) }]) }, [
|
|
23589
|
-
P("div",
|
|
23608
|
+
P("div", GA, [P("span", KA, [P("strong", qA, V(c + 1), 1), P("span", JA, "/" + V(r.value.length), 1)]), (n(e) || H(nt)(e)) && H(pt)(e.state) ? (z(), j(p, {
|
|
23590
23609
|
key: 0,
|
|
23591
23610
|
name: "loading-loop",
|
|
23592
23611
|
class: "w-12 h-12 ml-4"
|
|
@@ -23595,14 +23614,14 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23595
23614
|
name: H(ft)(e) || "ri:question-line",
|
|
23596
23615
|
class: "w-12 h-12 ml-4"
|
|
23597
23616
|
}, null, 8, ["name"]))]),
|
|
23598
|
-
P("span",
|
|
23617
|
+
P("span", YA, V(H(dt)(e, {
|
|
23599
23618
|
t: H(o),
|
|
23600
23619
|
te: H(s)
|
|
23601
23620
|
})), 1),
|
|
23602
|
-
"toolCallId" in e && i(e.toolCallId) ? (z(), N("span",
|
|
23621
|
+
"toolCallId" in e && i(e.toolCallId) ? (z(), N("span", XA, V(H(a)(i(e.toolCallId))), 1)) : M("", !0)
|
|
23603
23622
|
], 2),
|
|
23604
|
-
n(e) ? (z(), N("div",
|
|
23605
|
-
P("div",
|
|
23623
|
+
n(e) ? (z(), N("div", ZA, [P("div", QA, [
|
|
23624
|
+
P("div", $A, V(t.$t("label.input")), 1),
|
|
23606
23625
|
I(g, {
|
|
23607
23626
|
"min-height": 128,
|
|
23608
23627
|
"fit-content": ""
|
|
@@ -23614,7 +23633,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23614
23633
|
}, null, 8, ["code"])]),
|
|
23615
23634
|
_: 2
|
|
23616
23635
|
}, 1024),
|
|
23617
|
-
e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div",
|
|
23636
|
+
e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div", ej, V(t.$t("label.output")), 1), I(g, {
|
|
23618
23637
|
"min-height": 128,
|
|
23619
23638
|
"fit-content": ""
|
|
23620
23639
|
}, {
|
|
@@ -23625,7 +23644,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23625
23644
|
}, null, 8, ["code"])]),
|
|
23626
23645
|
_: 2
|
|
23627
23646
|
}, 1024)], 64)) : M("", !0),
|
|
23628
|
-
"errorText" in e && e.errorText ? (z(), N(k, { key: 1 }, [P("div",
|
|
23647
|
+
"errorText" in e && e.errorText ? (z(), N(k, { key: 1 }, [P("div", tj, V(t.$t("messagePart.stepError")), 1), P("pre", nj, V(e.errorText), 1)], 64)) : M("", !0),
|
|
23629
23648
|
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)
|
|
23630
23649
|
])])) : M("", !0),
|
|
23631
23650
|
H(tt)(e) ? (z(), j(g, {
|
|
@@ -23641,26 +23660,26 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23641
23660
|
_: 2
|
|
23642
23661
|
}, 1024)) : M("", !0)
|
|
23643
23662
|
]))), 128))]),
|
|
23644
|
-
I(
|
|
23663
|
+
I(_A, { message: e.message }, null, 8, ["message"])
|
|
23645
23664
|
]);
|
|
23646
23665
|
};
|
|
23647
23666
|
}
|
|
23648
|
-
}),
|
|
23667
|
+
}), ij = {
|
|
23649
23668
|
key: 0,
|
|
23650
23669
|
class: "border-t border-surface-3"
|
|
23651
|
-
},
|
|
23670
|
+
}, aj = { class: "flex flex-col" }, oj = { class: "flex items-center hover:bg-surface-1 transition-colors" }, sj = ["aria-expanded", "onClick"], cj = { class: "flex items-center gap-4 shrink-0" }, lj = {
|
|
23652
23671
|
key: 0,
|
|
23653
23672
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2"
|
|
23654
|
-
},
|
|
23673
|
+
}, uj = { class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2 uppercase" }, dj = {
|
|
23655
23674
|
key: 0,
|
|
23656
23675
|
class: "border-t border-surface-3"
|
|
23657
|
-
},
|
|
23676
|
+
}, fj = {
|
|
23658
23677
|
key: 0,
|
|
23659
23678
|
class: "px-8 py-4 text-10 text-word-3 bg-surface-1 border-b border-surface-3"
|
|
23660
|
-
},
|
|
23679
|
+
}, pj = ["onClick"], mj = {
|
|
23661
23680
|
key: 0,
|
|
23662
23681
|
class: "px-8 py-6 bg-surface-1 border-t border-surface-3"
|
|
23663
|
-
},
|
|
23682
|
+
}, hj = { class: "flex justify-between items-center gap-4 min-w-0" }, gj = { class: "font-semibold text-12 truncate" }, _j = /* @__PURE__ */ L({
|
|
23664
23683
|
__name: "PkMessageDetail",
|
|
23665
23684
|
props: {
|
|
23666
23685
|
message: {},
|
|
@@ -23685,14 +23704,14 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23685
23704
|
};
|
|
23686
23705
|
return (s, c) => {
|
|
23687
23706
|
let l = jr, u = Je, d = br;
|
|
23688
|
-
return z(), j(
|
|
23707
|
+
return z(), j(rj, { message: e.message }, Vr({
|
|
23689
23708
|
subagent: G(({ part: t }) => [t.output?.reasoningChatId && (t.output?.subAgentId || t.input?.objective) ? (z(), j(d, {
|
|
23690
23709
|
key: 0,
|
|
23691
23710
|
title: t.output.subAgentId ? s.$t("label.subAgent") : s.$t("agent.tool.runWorker"),
|
|
23692
23711
|
modifiers: "details",
|
|
23693
23712
|
class: "border-t border-surface-3"
|
|
23694
23713
|
}, {
|
|
23695
|
-
default: G(() => [P("div",
|
|
23714
|
+
default: G(() => [P("div", hj, [P("strong", gj, V(t.output.subAgentName ?? t.input?.objective), 1), I(u, {
|
|
23696
23715
|
modifiers: "action-small",
|
|
23697
23716
|
icon: "ri:eye-line",
|
|
23698
23717
|
class: "text-10 shrink-0",
|
|
@@ -23711,10 +23730,10 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23711
23730
|
_: 2
|
|
23712
23731
|
}, [e.canReadDocuments ? {
|
|
23713
23732
|
name: "tool-search-in-knowledge-base",
|
|
23714
|
-
fn: G(({ part: c }) => [c.output?.results?.length ? (z(), N("div",
|
|
23733
|
+
fn: G(({ part: c }) => [c.output?.results?.length ? (z(), N("div", ij, [P("ul", aj, [(z(!0), N(k, null, ai(o(c.output.results), (o) => (z(), N("li", {
|
|
23715
23734
|
key: o.document.id,
|
|
23716
23735
|
class: "border-b border-surface-3 last:border-b-0"
|
|
23717
|
-
}, [P("div",
|
|
23736
|
+
}, [P("div", oj, [P("button", {
|
|
23718
23737
|
type: "button",
|
|
23719
23738
|
class: "flex items-center gap-8 p-8 flex-1 min-w-0 text-left cursor-pointer",
|
|
23720
23739
|
"aria-expanded": t.has(o.document.id),
|
|
@@ -23730,14 +23749,14 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23730
23749
|
"name",
|
|
23731
23750
|
"url",
|
|
23732
23751
|
"filename"
|
|
23733
|
-
]), P("div",
|
|
23734
|
-
o.chunks.length > 1 ? (z(), N("span",
|
|
23735
|
-
P("span",
|
|
23752
|
+
]), P("div", cj, [
|
|
23753
|
+
o.chunks.length > 1 ? (z(), N("span", lj, V(o.chunks.length), 1)) : M("", !0),
|
|
23754
|
+
P("span", uj, V(o.document.language), 1),
|
|
23736
23755
|
I(l, {
|
|
23737
23756
|
name: t.has(o.document.id) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
23738
23757
|
class: "text-16 text-word-3"
|
|
23739
23758
|
}, null, 8, ["name"])
|
|
23740
|
-
])], 8,
|
|
23759
|
+
])], 8, sj), I(u, {
|
|
23741
23760
|
modifiers: "action-quiet-small",
|
|
23742
23761
|
icon: "ri:eye-line",
|
|
23743
23762
|
class: "text-10 shrink-0 mr-8",
|
|
@@ -23754,7 +23773,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23754
23773
|
"title",
|
|
23755
23774
|
"aria-label",
|
|
23756
23775
|
"to"
|
|
23757
|
-
])]), t.has(o.document.id) ? (z(), N("div",
|
|
23776
|
+
])]), t.has(o.document.id) ? (z(), N("div", dj, [o.document.source.description ? (z(), N("div", fj, V(o.document.source.description), 1)) : M("", !0), (z(!0), N(k, null, ai(o.chunks, (e) => (z(), N("div", {
|
|
23758
23777
|
key: e.id,
|
|
23759
23778
|
class: "border-b border-surface-3 last:border-b-0"
|
|
23760
23779
|
}, [P("button", {
|
|
@@ -23770,7 +23789,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23770
23789
|
"similarity",
|
|
23771
23790
|
"max-similarity",
|
|
23772
23791
|
"expanded"
|
|
23773
|
-
])], 8,
|
|
23792
|
+
])], 8, pj), n.has(e.id) ? (z(), N("div", mj, [I(Xe, {
|
|
23774
23793
|
markdown: e.content,
|
|
23775
23794
|
class: "wysiwyg text-10"
|
|
23776
23795
|
}, null, 8, ["markdown"])])) : M("", !0)]))), 128))])) : M("", !0)]))), 128))])])) : M("", !0)]),
|
|
@@ -23778,19 +23797,19 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23778
23797
|
} : void 0]), 1032, ["message"]);
|
|
23779
23798
|
};
|
|
23780
23799
|
}
|
|
23781
|
-
}),
|
|
23800
|
+
}), vj = { class: "flex flex-col h-full bg-surface rounded-xl" }, yj = { class: "sticky z-1 top-0 bg-surface-1 flex items-center justify-between gap-sm p-sm border-b border-surface-3" }, bj = { class: "flex items-center gap-sm min-w-0" }, xj = ["title"], Sj = {
|
|
23782
23801
|
key: 1,
|
|
23783
23802
|
class: "text-14 font-bold"
|
|
23784
|
-
},
|
|
23803
|
+
}, Cj = { class: "flex-1 flex flex-col gap-md p-md overflow-y-auto min-h-0" }, wj = { class: "flex flex-col" }, Tj = { class: "text-12 font-medium text-word-2 mb-xs block" }, Ej = ["placeholder", "disabled"], Dj = { class: "flex justify-end mt-xs" }, Oj = {
|
|
23785
23804
|
key: 1,
|
|
23786
23805
|
class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
|
|
23787
|
-
},
|
|
23806
|
+
}, kj = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, Aj = { class: "text-12 text-word-3" }, jj = {
|
|
23788
23807
|
key: 2,
|
|
23789
23808
|
class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
|
|
23790
|
-
},
|
|
23809
|
+
}, Mj = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, Nj = { class: "text-12 font-medium text-word-2" }, Pj = { class: "flex items-center gap-xs ml-auto" }, Fj = {
|
|
23791
23810
|
key: 0,
|
|
23792
23811
|
class: "py-sm text-word-2 leading-normal"
|
|
23793
|
-
},
|
|
23812
|
+
}, Ij = /* @__PURE__ */ L({
|
|
23794
23813
|
__name: "PkReasoningChat",
|
|
23795
23814
|
props: {
|
|
23796
23815
|
baseUrl: {},
|
|
@@ -23826,23 +23845,23 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23826
23845
|
}), _ = A(() => g.value?.parts.find((e) => e.type === "text")?.text || "");
|
|
23827
23846
|
return (t, r) => {
|
|
23828
23847
|
let o = Je, s = Sr, l = jr;
|
|
23829
|
-
return z(), N("div",
|
|
23848
|
+
return z(), N("div", vj, [P("div", yj, [P("div", bj, [I(qn, {
|
|
23830
23849
|
class: "w-24 h-24",
|
|
23831
23850
|
name: e.name
|
|
23832
23851
|
}, null, 8, ["name"]), e.name ? (z(), N("strong", {
|
|
23833
23852
|
key: 0,
|
|
23834
23853
|
class: "text-14 font-bold truncate",
|
|
23835
23854
|
title: e.name
|
|
23836
|
-
}, V(e.name), 9,
|
|
23855
|
+
}, V(e.name), 9, xj)) : (z(), N("strong", Sj, V(H(n)("label.reasoningAgentTester")), 1))]), h.value ? (z(), j(o, {
|
|
23837
23856
|
key: 0,
|
|
23838
23857
|
icon: "ri:reset-right-line",
|
|
23839
23858
|
modifiers: "action-quiet",
|
|
23840
23859
|
title: H(n)("action.clear"),
|
|
23841
23860
|
disabled: m.value,
|
|
23842
23861
|
onClick: p
|
|
23843
|
-
}, null, 8, ["title", "disabled"])) : M("", !0)]), P("div",
|
|
23844
|
-
P("div",
|
|
23845
|
-
P("label",
|
|
23862
|
+
}, null, 8, ["title", "disabled"])) : M("", !0)]), P("div", Cj, [
|
|
23863
|
+
P("div", wj, [
|
|
23864
|
+
P("label", Tj, V(H(n)("label.question")), 1),
|
|
23846
23865
|
_i(P("textarea", {
|
|
23847
23866
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
23848
23867
|
placeholder: H(n)("placeholder.enterYourQuestion"),
|
|
@@ -23850,8 +23869,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23850
23869
|
class: "pk-reasoning-chat__input u-field w-full p-sm text-14 min-h-64",
|
|
23851
23870
|
rows: "3",
|
|
23852
23871
|
onKeydown: f
|
|
23853
|
-
}, null, 40,
|
|
23854
|
-
P("div",
|
|
23872
|
+
}, null, 40, Ej), [[gi, a.value]]),
|
|
23873
|
+
P("div", Dj, [I(o, {
|
|
23855
23874
|
label: H(n)("action.submit"),
|
|
23856
23875
|
loading: m.value,
|
|
23857
23876
|
disabled: !a.value.trim() || m.value,
|
|
@@ -23868,17 +23887,17 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23868
23887
|
title: H(n)("label.error"),
|
|
23869
23888
|
content: H(c).message
|
|
23870
23889
|
}, null, 8, ["title", "content"])) : M("", !0),
|
|
23871
|
-
m.value && !g.value ? (z(), N("div",
|
|
23890
|
+
m.value && !g.value ? (z(), N("div", Oj, [P("div", kj, [I(l, {
|
|
23872
23891
|
name: "loading-loop",
|
|
23873
23892
|
class: "w-16 h-16"
|
|
23874
|
-
}), P("span",
|
|
23875
|
-
g.value ? (z(), N("div",
|
|
23893
|
+
}), 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),
|
|
23894
|
+
g.value ? (z(), N("div", jj, [P("div", Mj, [
|
|
23876
23895
|
I(l, {
|
|
23877
23896
|
name: "ri:robot-2-line",
|
|
23878
23897
|
class: "w-16 h-16"
|
|
23879
23898
|
}),
|
|
23880
|
-
P("span",
|
|
23881
|
-
P("div",
|
|
23899
|
+
P("span", Nj, V(H(n)("label.answer")), 1),
|
|
23900
|
+
P("div", Pj, [m.value ? (z(), j(l, {
|
|
23882
23901
|
key: 0,
|
|
23883
23902
|
name: "loading-loop",
|
|
23884
23903
|
class: "w-14 h-14"
|
|
@@ -23889,7 +23908,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23889
23908
|
modifiers: "action-quiet-small",
|
|
23890
23909
|
onClick: r[1] ||= yi((e) => i("show-info", g.value), ["stop"])
|
|
23891
23910
|
}, null, 8, ["title"])) : M("", !0)])
|
|
23892
|
-
]), _.value ? (z(), N("div",
|
|
23911
|
+
]), _.value ? (z(), N("div", Fj, [I(Xe, {
|
|
23893
23912
|
markdown: _.value,
|
|
23894
23913
|
loading: m.value,
|
|
23895
23914
|
class: "wysiwyg text-14"
|
|
@@ -23897,7 +23916,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23897
23916
|
])]);
|
|
23898
23917
|
};
|
|
23899
23918
|
}
|
|
23900
|
-
}),
|
|
23919
|
+
}), Lj = { class: "welcome-popup__text" }, Rj = ["aria-label"], zj = 100, Bj = /* @__PURE__ */ L({
|
|
23901
23920
|
__name: "PkWelcomePopup",
|
|
23902
23921
|
props: {
|
|
23903
23922
|
agentId: {},
|
|
@@ -23912,7 +23931,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23912
23931
|
c.value = [], s.value = !1;
|
|
23913
23932
|
let t = e.split(/(\s+)/), n = 0;
|
|
23914
23933
|
function r() {
|
|
23915
|
-
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r,
|
|
23934
|
+
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, zj)) : s.value = !0;
|
|
23916
23935
|
}
|
|
23917
23936
|
r();
|
|
23918
23937
|
}
|
|
@@ -23936,7 +23955,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23936
23955
|
key: 0,
|
|
23937
23956
|
class: "welcome-popup",
|
|
23938
23957
|
onClick: yi(m, ["stop"])
|
|
23939
|
-
}, [P("p",
|
|
23958
|
+
}, [P("p", Lj, [(z(!0), N(k, null, ai(c.value, (e, t) => (z(), N("span", {
|
|
23940
23959
|
key: t,
|
|
23941
23960
|
class: "welcome-popup__word"
|
|
23942
23961
|
}, V(e), 1))), 128))]), I(Lr, null, {
|
|
@@ -23952,35 +23971,35 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
23952
23971
|
width: "14",
|
|
23953
23972
|
height: "14",
|
|
23954
23973
|
fill: "currentColor"
|
|
23955
|
-
}, [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,
|
|
23974
|
+
}, [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, Rj)) : M("", !0)]),
|
|
23956
23975
|
_: 1
|
|
23957
23976
|
})])) : M("", !0)]),
|
|
23958
23977
|
_: 1
|
|
23959
23978
|
}));
|
|
23960
23979
|
}
|
|
23961
|
-
}),
|
|
23980
|
+
}), Vj = {
|
|
23962
23981
|
key: 0,
|
|
23963
23982
|
class: "pk-working-beam",
|
|
23964
23983
|
"aria-hidden": "true"
|
|
23965
|
-
},
|
|
23984
|
+
}, Hj = /* @__PURE__ */ L({
|
|
23966
23985
|
__name: "PkWorkingBeam",
|
|
23967
23986
|
props: { active: { type: Boolean } },
|
|
23968
23987
|
setup(e) {
|
|
23969
23988
|
return (t, n) => (z(), j(Lr, { name: "pk-working-beam" }, {
|
|
23970
|
-
default: G(() => [e.active ? (z(), N("span",
|
|
23989
|
+
default: G(() => [e.active ? (z(), N("span", Vj, [...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)]),
|
|
23971
23990
|
_: 1
|
|
23972
23991
|
}));
|
|
23973
23992
|
}
|
|
23974
|
-
}),
|
|
23993
|
+
}), Uj = { class: "pk-pagination mt-auto grid grid-cols-3 gap-md pt-24" }, Wj = { class: "flex items-center" }, Gj = ["for"], Kj = ["id", "disabled"], qj = ["value"], Jj = {
|
|
23975
23994
|
key: 1,
|
|
23976
23995
|
class: "ml-8 text-12 font-semibold tabular-nums"
|
|
23977
|
-
},
|
|
23996
|
+
}, Yj = { class: "flex justify-center items-center" }, Xj = {
|
|
23978
23997
|
class: "rounded-md border border-surface-3 px-14 py-4 text-center text-12 font-bold tabular-nums",
|
|
23979
23998
|
type: "button"
|
|
23980
|
-
},
|
|
23999
|
+
}, Zj = {
|
|
23981
24000
|
key: 0,
|
|
23982
24001
|
class: "ml-6 text-12 whitespace-nowrap tabular-nums"
|
|
23983
|
-
},
|
|
24002
|
+
}, Qj = { class: "flex text-12 justify-end items-center whitespace-nowrap tabular-nums" }, $j = /* @__PURE__ */ L({
|
|
23984
24003
|
__name: "PkPagination",
|
|
23985
24004
|
props: {
|
|
23986
24005
|
page: {
|
|
@@ -24012,11 +24031,11 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
24012
24031
|
});
|
|
24013
24032
|
return (t, i) => {
|
|
24014
24033
|
let u = Je, d = Tr;
|
|
24015
|
-
return z(), N("div",
|
|
24016
|
-
P("div",
|
|
24034
|
+
return z(), N("div", Uj, [
|
|
24035
|
+
P("div", Wj, [P("label", {
|
|
24017
24036
|
for: H(r),
|
|
24018
24037
|
class: "text-12 whitespace-nowrap"
|
|
24019
|
-
}, V(H(n)("label.itemsPerPage")), 9,
|
|
24038
|
+
}, V(H(n)("label.itemsPerPage")), 9, Gj), e.limitSteps ? _i((z(), N("select", {
|
|
24020
24039
|
key: 0,
|
|
24021
24040
|
id: H(r),
|
|
24022
24041
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e,
|
|
@@ -24025,8 +24044,8 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
24025
24044
|
}, [(z(!0), N(k, null, ai(e.limitSteps, (e) => (z(), N("option", {
|
|
24026
24045
|
key: e,
|
|
24027
24046
|
value: e
|
|
24028
|
-
}, V(e), 9,
|
|
24029
|
-
P("div",
|
|
24047
|
+
}, V(e), 9, qj))), 128))], 8, Kj)), [[hi, l.value]]) : (z(), N("span", Jj, V(e.limit), 1))]),
|
|
24048
|
+
P("div", Yj, [I(d, { class: "flex-nowrap" }, {
|
|
24030
24049
|
default: G(() => [
|
|
24031
24050
|
I(u, {
|
|
24032
24051
|
title: H(n)("action.prev"),
|
|
@@ -24035,7 +24054,7 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
24035
24054
|
modifiers: "action-quiet",
|
|
24036
24055
|
onClick: i[1] ||= yi((t) => a("update:page", e.page - 1), ["stop"])
|
|
24037
24056
|
}, null, 8, ["title", "disabled"]),
|
|
24038
|
-
P("button",
|
|
24057
|
+
P("button", Xj, V(e.page), 1),
|
|
24039
24058
|
I(u, {
|
|
24040
24059
|
title: H(n)("action.next"),
|
|
24041
24060
|
disabled: c.value,
|
|
@@ -24045,21 +24064,21 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
24045
24064
|
}, null, 8, ["title", "disabled"])
|
|
24046
24065
|
]),
|
|
24047
24066
|
_: 1
|
|
24048
|
-
}), o.value ? (z(), N("small",
|
|
24049
|
-
P("div",
|
|
24067
|
+
}), o.value ? (z(), N("small", Zj, V(H(n)("label.totalPages", { total: o.value })), 1)) : M("", !0)]),
|
|
24068
|
+
P("div", Qj, V(H(n)("label.totalItemsCount", { total: e.total })), 1)
|
|
24050
24069
|
]);
|
|
24051
24070
|
};
|
|
24052
24071
|
}
|
|
24053
|
-
}),
|
|
24072
|
+
}), eM = { class: "pk-table-empty" }, tM = {
|
|
24054
24073
|
class: "pk-table-empty__glyph",
|
|
24055
24074
|
"aria-hidden": "true"
|
|
24056
|
-
},
|
|
24075
|
+
}, nM = { class: "pk-table-empty__text" }, rM = { class: "pk-table-empty__title" }, iM = {
|
|
24057
24076
|
key: 0,
|
|
24058
24077
|
class: "pk-table-empty__description"
|
|
24059
|
-
},
|
|
24078
|
+
}, aM = {
|
|
24060
24079
|
key: 0,
|
|
24061
24080
|
class: "pk-table-empty__actions"
|
|
24062
|
-
},
|
|
24081
|
+
}, oM = /* @__PURE__ */ L({
|
|
24063
24082
|
__name: "PkTableEmpty",
|
|
24064
24083
|
props: {
|
|
24065
24084
|
title: { default: void 0 },
|
|
@@ -24070,86 +24089,86 @@ var HE = ze, UE = .6, WE = he.parse({}), GE = /* @__PURE__ */ L({
|
|
|
24070
24089
|
let { t } = bi({ useScope: "global" });
|
|
24071
24090
|
return (n, r) => {
|
|
24072
24091
|
let i = jr;
|
|
24073
|
-
return z(), N("div",
|
|
24074
|
-
P("div",
|
|
24075
|
-
P("div",
|
|
24076
|
-
n.$slots.actions ? (z(), N("div",
|
|
24092
|
+
return z(), N("div", eM, [
|
|
24093
|
+
P("div", tM, [I(i, { name: e.icon }, null, 8, ["name"])]),
|
|
24094
|
+
P("div", nM, [P("strong", rM, V(e.title ?? H(t)("message.empty")), 1), e.description ? (z(), N("p", iM, V(e.description), 1)) : M("", !0)]),
|
|
24095
|
+
n.$slots.actions ? (z(), N("div", aM, [oi(n.$slots, "actions")])) : M("", !0)
|
|
24077
24096
|
]);
|
|
24078
24097
|
};
|
|
24079
24098
|
}
|
|
24080
|
-
}),
|
|
24099
|
+
}), sM = { class: "flex flex-col items-center justify-center w-full text-md p-md leading-normal" }, cM = { class: "mb-4" }, lM = { class: "font-bold" }, uM = { class: "text-smaller text-word-3" }, dM = /* @__PURE__ */ L({
|
|
24081
24100
|
__name: "PkTableError",
|
|
24082
24101
|
setup(e) {
|
|
24083
24102
|
let { t } = bi({ useScope: "global" });
|
|
24084
24103
|
return (e, n) => {
|
|
24085
24104
|
let r = jr;
|
|
24086
|
-
return z(), N("div",
|
|
24087
|
-
P("div",
|
|
24105
|
+
return z(), N("div", sM, [
|
|
24106
|
+
P("div", cM, [I(r, {
|
|
24088
24107
|
name: "ri:alert-line",
|
|
24089
24108
|
class: "text-32 text-word-2"
|
|
24090
24109
|
})]),
|
|
24091
|
-
P("strong",
|
|
24092
|
-
P("div",
|
|
24110
|
+
P("strong", lM, V(H(t)("message.warning")), 1),
|
|
24111
|
+
P("div", uM, V(H(t)("message.readError")), 1)
|
|
24093
24112
|
]);
|
|
24094
24113
|
};
|
|
24095
24114
|
}
|
|
24096
24115
|
});
|
|
24097
24116
|
// ../../node_modules/.pnpm/ts-util-is@2.1.0/node_modules/ts-util-is/dist/src/index.js
|
|
24098
|
-
function
|
|
24117
|
+
function fM(e) {
|
|
24099
24118
|
return Array.isArray(e);
|
|
24100
24119
|
}
|
|
24101
|
-
function
|
|
24120
|
+
function pM(e) {
|
|
24102
24121
|
return e !== void 0;
|
|
24103
24122
|
}
|
|
24104
|
-
function
|
|
24123
|
+
function mM(e) {
|
|
24105
24124
|
return e === null;
|
|
24106
24125
|
}
|
|
24107
|
-
function
|
|
24126
|
+
function hM(e) {
|
|
24108
24127
|
return typeof e == "object";
|
|
24109
24128
|
}
|
|
24110
|
-
function
|
|
24129
|
+
function gM(e) {
|
|
24111
24130
|
return typeof e == "string";
|
|
24112
24131
|
}
|
|
24113
|
-
function
|
|
24132
|
+
function _M(e) {
|
|
24114
24133
|
return e === void 0;
|
|
24115
24134
|
}
|
|
24116
24135
|
// ../../node_modules/.pnpm/ts-dot-prop@2.1.4/node_modules/ts-dot-prop/dist/index.js
|
|
24117
|
-
var
|
|
24136
|
+
var vM = /^[0-9]+$/, yM = [
|
|
24118
24137
|
"__proto__",
|
|
24119
24138
|
"prototype",
|
|
24120
24139
|
"constructor"
|
|
24121
24140
|
];
|
|
24122
|
-
function
|
|
24123
|
-
let r =
|
|
24124
|
-
if (!
|
|
24125
|
-
let i =
|
|
24141
|
+
function bM(e, t, n) {
|
|
24142
|
+
let r = pM(n) ? n : void 0;
|
|
24143
|
+
if (!hM(e) || !gM(t)) return r;
|
|
24144
|
+
let i = xM(t);
|
|
24126
24145
|
if (i.length !== 0) {
|
|
24127
24146
|
for (let t of i) {
|
|
24128
24147
|
if (t === "*") continue;
|
|
24129
24148
|
let n = function(e) {
|
|
24130
|
-
return e.map((e) =>
|
|
24149
|
+
return e.map((e) => _M(e) || mM(e) ? e : fM(e) ? n(e) : e[t]);
|
|
24131
24150
|
};
|
|
24132
|
-
if (e =
|
|
24151
|
+
if (e = fM(e) && !vM.test(t) ? n(e) : e[t], _M(e) || mM(e)) break;
|
|
24133
24152
|
}
|
|
24134
|
-
return
|
|
24153
|
+
return _M(e) ? r : e;
|
|
24135
24154
|
}
|
|
24136
24155
|
}
|
|
24137
|
-
function
|
|
24156
|
+
function xM(e) {
|
|
24138
24157
|
let t = e.split(/[.]|(?:\[(\d|\*)\])/).filter((e) => !!e);
|
|
24139
|
-
return t.some((e) =>
|
|
24158
|
+
return t.some((e) => yM.indexOf(e) !== -1) ? [] : t;
|
|
24140
24159
|
}
|
|
24141
24160
|
// ../../packages/components/src/table/PkTableSortable.vue?vue&type=script&setup=true&lang.ts
|
|
24142
|
-
var
|
|
24161
|
+
var SM = {
|
|
24143
24162
|
key: 0,
|
|
24144
24163
|
class: "pk-table-sortable__sort"
|
|
24145
|
-
},
|
|
24164
|
+
}, CM = ["for"], wM = ["id"], TM = {
|
|
24146
24165
|
key: 0,
|
|
24147
24166
|
value: "",
|
|
24148
24167
|
disabled: ""
|
|
24149
|
-
},
|
|
24168
|
+
}, EM = ["value"], DM = { key: 0 }, OM = {
|
|
24150
24169
|
key: 0,
|
|
24151
24170
|
class: "truncate"
|
|
24152
|
-
},
|
|
24171
|
+
}, kM = ["onClick"], AM = ["onClick"], jM = ["data-label"], MM = { key: 1 }, NM = ["colspan"], PM = { key: 2 }, FM = ["colspan"], IM = { key: 1 }, LM = { key: 2 }, RM = "a, button, input, select, textarea, label, [contenteditable], [role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"menuitem\"]", zM = /* @__PURE__ */ L({
|
|
24153
24172
|
__name: "PkTableSortable",
|
|
24154
24173
|
props: {
|
|
24155
24174
|
columns: {
|
|
@@ -24289,7 +24308,7 @@ var bM = {
|
|
|
24289
24308
|
let C = (e) => {
|
|
24290
24309
|
u.value === e ? d.value = d.value === "asc" ? "desc" : "asc" : u.value = e;
|
|
24291
24310
|
}, w = (e, t, n) => {
|
|
24292
|
-
a.rowClickable && (n.target?.closest(
|
|
24311
|
+
a.rowClickable && (n.target?.closest(RM) || o("click:row", e, t));
|
|
24293
24312
|
}, ee = () => {
|
|
24294
24313
|
l.value++;
|
|
24295
24314
|
}, te = () => {
|
|
@@ -24299,19 +24318,19 @@ var bM = {
|
|
|
24299
24318
|
a.page || o("update:page", l.value), a.limit || o("update:limit", c.value);
|
|
24300
24319
|
}), (t, a) => {
|
|
24301
24320
|
let o = Je, ne = jr;
|
|
24302
|
-
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",
|
|
24321
|
+
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", SM, [
|
|
24303
24322
|
P("label", {
|
|
24304
24323
|
for: H(i),
|
|
24305
24324
|
class: "text-12 text-word-3 truncate"
|
|
24306
|
-
}, V(H(r)("label.sortBy")), 9,
|
|
24325
|
+
}, V(H(r)("label.sortBy")), 9, CM),
|
|
24307
24326
|
_i(P("select", {
|
|
24308
24327
|
id: H(i),
|
|
24309
24328
|
"onUpdate:modelValue": a[0] ||= (e) => h.value = e,
|
|
24310
24329
|
class: "pk-table-sortable__sort-field u-field u-field--compact"
|
|
24311
|
-
}, [h.value ? M("", !0) : (z(), N("option",
|
|
24330
|
+
}, [h.value ? M("", !0) : (z(), N("option", TM)), (z(!0), N(k, null, ai(m.value, (e) => (z(), N("option", {
|
|
24312
24331
|
key: e.name,
|
|
24313
24332
|
value: e.name
|
|
24314
|
-
}, V(e.label), 9,
|
|
24333
|
+
}, V(e.label), 9, EM))), 128))], 8, wM), [[hi, h.value]]),
|
|
24315
24334
|
I(o, {
|
|
24316
24335
|
modifiers: "action-quiet",
|
|
24317
24336
|
icon: H(d) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line",
|
|
@@ -24326,7 +24345,7 @@ var bM = {
|
|
|
24326
24345
|
"disabled"
|
|
24327
24346
|
])
|
|
24328
24347
|
])) : M("", !0), P("table", { class: Xr(["vv-table", e.classTable]) }, [
|
|
24329
|
-
e.hideHead ? M("", !0) : (z(), N("thead",
|
|
24348
|
+
e.hideHead ? M("", !0) : (z(), N("thead", DM, [P("tr", null, [(z(!0), N(k, null, ai(p.value, (e) => (z(), N("th", Jr({ key: e.name }, { ref_for: !0 }, { class: [
|
|
24330
24349
|
e.class,
|
|
24331
24350
|
e.classTh,
|
|
24332
24351
|
{ selected: H(u) === e.name }
|
|
@@ -24334,7 +24353,7 @@ var bM = {
|
|
|
24334
24353
|
key: 1,
|
|
24335
24354
|
type: "button",
|
|
24336
24355
|
onClick: (t) => C(e.name)
|
|
24337
|
-
}, [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,
|
|
24356
|
+
}, [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, kM)) : (z(), N("div", OM, [oi(t.$slots, `col::header::${e.name}`, {}, () => [F(V(e.label), 1)])]))], 16))), 128))])])),
|
|
24338
24357
|
I(Rr, {
|
|
24339
24358
|
tag: "tbody",
|
|
24340
24359
|
name: e.transitionName
|
|
@@ -24346,7 +24365,7 @@ var bM = {
|
|
|
24346
24365
|
})), () => [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 }, {
|
|
24347
24366
|
index: e,
|
|
24348
24367
|
wrapperClass: r
|
|
24349
|
-
}), () => [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",
|
|
24368
|
+
}), () => [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", PM, [P("td", { colspan: p.value.length }, [oi(t.$slots, "error", {}, () => [I(dM)])], 8, FM)])) : M("", !0) : (z(), N(k, { key: 1 }, [e.data?.length ? (z(!0), N(k, { key: 0 }, ai(e.data, (r, i) => (z(), N("tr", {
|
|
24350
24369
|
key: i,
|
|
24351
24370
|
class: Xr([{
|
|
24352
24371
|
"pk-table-sortable__row--clickable": e.rowClickable,
|
|
@@ -24370,11 +24389,11 @@ var bM = {
|
|
|
24370
24389
|
wrapperClass: o,
|
|
24371
24390
|
index: i,
|
|
24372
24391
|
value: r[e]
|
|
24373
|
-
}), () => [P("div", { class: Xr(["truncate", o]) }, V(H(
|
|
24392
|
+
}), () => [P("div", { class: Xr(["truncate", o]) }, V(H(bM)(r, a ?? e)), 3)], void 0, 2)], 10, jM))), 128))], 10, AM))), 128)) : (z(), N("tr", MM, [P("td", { colspan: p.value.length }, [oi(t.$slots, "empty", {}, () => [I(oM)])], 8, NM)]))], 64))])]),
|
|
24374
24393
|
_: 3
|
|
24375
24394
|
}, 8, ["name"]),
|
|
24376
|
-
H(n).tfoot ? (z(), N("tfoot",
|
|
24377
|
-
H(n).caption ? (z(), N("caption",
|
|
24395
|
+
H(n).tfoot ? (z(), N("tfoot", IM, [oi(t.$slots, "tfoot")])) : M("", !0),
|
|
24396
|
+
H(n).caption ? (z(), N("caption", LM, [oi(t.$slots, "caption")])) : M("", !0)
|
|
24378
24397
|
], 2)], 2), oi(t.$slots, "navigation", Zr(Ur({
|
|
24379
24398
|
hide: e.hideNavigation,
|
|
24380
24399
|
prevDisabled: S.value,
|
|
@@ -24383,7 +24402,7 @@ var bM = {
|
|
|
24383
24402
|
next: ee,
|
|
24384
24403
|
total: f.value,
|
|
24385
24404
|
page: l.value
|
|
24386
|
-
})), () => [e.hideNavigation ? M("", !0) : (z(), j(
|
|
24405
|
+
})), () => [e.hideNavigation ? M("", !0) : (z(), j($j, {
|
|
24387
24406
|
key: 0,
|
|
24388
24407
|
page: l.value,
|
|
24389
24408
|
total: s.value ?? 0,
|
|
@@ -24404,6 +24423,6 @@ var bM = {
|
|
|
24404
24423
|
};
|
|
24405
24424
|
}
|
|
24406
24425
|
});
|
|
24407
|
-
export {
|
|
24426
|
+
export { BE as AGENT_STATUS_GLYPHS, VE as AGENT_VISIBILITY_GLYPHS, JE as MODEL_CATALOG_KEY, IO as PkAgentSettingsPanel, bt as PkAuroraCanvas, qn as PkAvatar, Bi as PkBadge, $n as PkChatButton, vk as PkChatSidebar, $O as PkChatSidebarConversationItem, rr as PkChatbot, qe as PkChatbotAuth, tr as PkChatbotEmptyState, wt as PkChatbotError, Jn as PkChatbotFeedbackForm, Wn as PkChatbotFilePreview, er as PkChatbotInput, v as PkChatbotMessages, Zn as PkChatbotStepPayload, Qn as PkChatbotStepToolDetail, Xn as PkChatbotSteps, Ct as PkChatbotViewChat, yt as PkChatbotViewConversations, nr as PkChatbotViewProfile, nE as PkCheckboxField, ir as PkChunkPreview, kt as PkCode, _D as PkCopyBlock, ar as PkDocumentHeader, Za as PkEditorAgentType, n as PkEditorCheckboxButtons, ds as PkEditorCode, lo as PkEditorDocumentType, Fs as PkEditorJsonSchema, OT as PkEditorMarkdown, kT as PkEditorMedia, yo as PkEditorNotificationType, IT as PkEditorPrompt, t as PkEditorRadioButtons, WT as PkEditorRepeater, ms as PkFieldset, vs as PkIconOption, XT as PkInfoPopover, rE as PkInfobox, vD as PkInputColor, dE as PkIntegrationProvider, rD as PkLanguageModel, uD as PkLanguageModelCombobox, Vn as PkLazyImg, pE as PkLightbox, _E as PkLoader, yE as PkMedia, _j as PkMessageDetail, rj as PkMessageParts, lD as PkModelOption, OE as PkOfflineScreen, $j as PkPagination, FE as PkPwaNotices, LE as PkQrCode, Ij as PkReasoningChat, fD as PkReasoningSettings, Ot as PkRelativeTime, bk as PkRetryCountdown, Os as PkSchemaField, zE as PkSkeleton, Xe as PkStreamingMarkdown, Yn as PkStreamingMarkdownAutoscroll, Gn as PkSvgViewer, oM as PkTableEmpty, dM as PkTableError, zM as PkTableSortable, qE as PkToolApprovalBadge, yr as PkToolShareDocument, At as PkToolShowArtifact, pr as PkToolShowCalendarEvent, mr as PkToolShowComparison, fr as PkToolShowContactForm, cr as PkToolShowEmail, r as PkToolShowForm, _r as PkToolShowImageGallery, hr as PkToolShowLocation, lr as PkToolShowMessage, dr as PkToolShowProductList, gr as PkToolShowQrCode, or as PkToolShowSources, vr as PkToolShowSuggestedReply, ur as PkToolShowWebPages, Kn as PkUrl, St as PkVoiceOrb, xt as PkVoiceSession, pD as PkWebSearchSettings, Bj as PkWelcomePopup, Hj as PkWorkingBeam, Je as VvButtonLocalized, HE as agentStatusGlyph, UE as agentVisibilityGlyph, sE as integrationProviderIcon, sr as isMcpOAuthReport, at as localizeSummaryLabels, Ye as provideChatImagePolicy, YE as provideModelCatalog, XE as useModelCatalogEntry };
|
|
24408
24427
|
|
|
24409
24428
|
//# sourceMappingURL=index.js.map
|