@8wave/ai-elements 0.114.0-beta.25 → 0.114.0-beta.28
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 +754 -335
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/_chunks/PkChatbotAuth-jzoNJkmH.js +421 -0
- package/dist-vue/_chunks/PkChatbotAuth-jzoNJkmH.js.map +1 -0
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +53 -5
- package/dist-vue/apps/web-component/src/composables/useChatbotAuthForm.d.ts +14 -0
- package/dist-vue/composables.js +297 -16
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +354 -328
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +24 -0
- package/dist-vue/packages/auth/src/additional-fields.d.ts +48 -0
- package/dist-vue/packages/auth/src/passkey-policy-client-plugin.d.ts +31 -0
- package/dist-vue/packages/auth/src/passkey-policy-plugin.d.ts +22 -0
- package/dist-vue/packages/auth/src/two-factor-policy-client-plugin.d.ts +60 -0
- package/dist-vue/packages/auth/src/two-factor-policy-plugin.d.ts +65 -0
- package/dist-vue/packages/components/src/PkQrCode.d.ts +14 -0
- package/dist-vue/packages/components/src/chat/PkChatbotAuth.d.ts +19 -0
- package/dist-vue/packages/components/src/index.d.ts +2 -1
- package/dist-vue/packages/models/src/schema/Member.d.ts +3 -0
- package/dist-vue/packages/models/src/schema/Notification.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/User.d.ts +1 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist-vue/_chunks/PkChatbotAuth-Bi508F1u.js +0 -349
- package/dist-vue/_chunks/PkChatbotAuth-Bi508F1u.js.map +0 -1
package/dist-vue/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { i as _, r as v } from "./_chunks/Media-_HfFLHGD.js";
|
|
|
5
5
|
import { C as y, E as ee, M as b, S as x, T as S, _ as C, d as w, g as te, i as ne, m as re, n as T, o as ie, p as ae, r as oe, t as se, u as ce, v as le, w as ue, x as de, y as fe } from "./_chunks/Agent-tbKw8Mdt.js";
|
|
6
6
|
import { c as pe, d as me, l as he, r as ge, s as _e, t as ve, u as ye } from "./_chunks/Document-p2Y_4gk8.js";
|
|
7
7
|
import { a as be, i as xe, n as Se } from "./_chunks/createChatbotApiClient-BlWs282E.js";
|
|
8
|
-
import { t as Ce } from "./_chunks/PkChatbotAuth-
|
|
8
|
+
import { t as Ce } from "./_chunks/PkChatbotAuth-jzoNJkmH.js";
|
|
9
9
|
import { t as we } from "./_chunks/PkStreamingMarkdown-BN7waklD.js";
|
|
10
10
|
import { a as Te, i as Ee, n as De, r as Oe } from "./_chunks/useChatbotStore-CMo47fnS.js";
|
|
11
11
|
import "./_chunks/src-DT8FLE4_.js";
|
|
@@ -210,6 +210,7 @@ var Ei = (e) => !e.disabled && !e.retired, Di = {
|
|
|
210
210
|
ApiKeyExpiring: "api_key_expiring",
|
|
211
211
|
Organization: "organization",
|
|
212
212
|
PasswordResetRequested: "password_reset_requested",
|
|
213
|
+
TwoFactor: "two_factor",
|
|
213
214
|
DocumentSyncRemoved: "document_sync_removed",
|
|
214
215
|
ChatWarning: "chat_warning",
|
|
215
216
|
ChatBlocked: "chat_blocked",
|
|
@@ -16605,10 +16606,35 @@ function OC(e) {
|
|
|
16605
16606
|
//#endregion
|
|
16606
16607
|
//#region ../../packages/components/src/PkPwaNotices.vue
|
|
16607
16608
|
typeof OC == "function" && OC(DC);
|
|
16608
|
-
var kC = DC, AC = {
|
|
16609
|
+
var kC = DC, AC = ["aria-label", "innerHTML"], jC = /* @__PURE__ */ L({
|
|
16610
|
+
__name: "PkQrCode",
|
|
16611
|
+
props: {
|
|
16612
|
+
value: {},
|
|
16613
|
+
label: {}
|
|
16614
|
+
},
|
|
16615
|
+
setup(e) {
|
|
16616
|
+
let t = e, n = B("");
|
|
16617
|
+
return G(() => t.value, async (e) => {
|
|
16618
|
+
if (!e) {
|
|
16619
|
+
n.value = "";
|
|
16620
|
+
return;
|
|
16621
|
+
}
|
|
16622
|
+
let { default: t } = await import("qrcode");
|
|
16623
|
+
n.value = await t.toString(e, {
|
|
16624
|
+
type: "svg",
|
|
16625
|
+
margin: 1
|
|
16626
|
+
});
|
|
16627
|
+
}, { immediate: !0 }), (t, r) => (z(), N("div", {
|
|
16628
|
+
class: "pk-qr-code",
|
|
16629
|
+
role: "img",
|
|
16630
|
+
"aria-label": e.label,
|
|
16631
|
+
innerHTML: n.value
|
|
16632
|
+
}, null, 8, AC));
|
|
16633
|
+
}
|
|
16634
|
+
}), MC = {
|
|
16609
16635
|
key: 0,
|
|
16610
16636
|
class: "vv-skeleton"
|
|
16611
|
-
},
|
|
16637
|
+
}, NC = /* @__PURE__ */ L({
|
|
16612
16638
|
inheritAttrs: !1,
|
|
16613
16639
|
__name: "PkSkeleton",
|
|
16614
16640
|
props: {
|
|
@@ -16621,35 +16647,35 @@ var kC = DC, AC = {
|
|
|
16621
16647
|
},
|
|
16622
16648
|
setup(e) {
|
|
16623
16649
|
return (t, n) => (z(), j(or, { mode: "out-in" }, {
|
|
16624
|
-
default: K(() => [e.loading ? (z(), N("div",
|
|
16650
|
+
default: K(() => [e.loading ? (z(), N("div", MC, [V(t.$slots, "skeleton", {}, () => [(z(!0), N(k, null, Or(typeof e.rows == "string" ? parseInt(e.rows) : e.rows, (n) => (z(), N("div", {
|
|
16625
16651
|
key: n,
|
|
16626
16652
|
class: yr(["vv-skeleton__item", e.rowClasses?.[n - 1] ? e.rowClasses[n - 1] : t.$attrs.class])
|
|
16627
16653
|
}, null, 2))), 128))])])) : V(t.$slots, "default", {}, void 0, void 0, 1)]),
|
|
16628
16654
|
_: 3
|
|
16629
16655
|
}));
|
|
16630
16656
|
}
|
|
16631
|
-
}),
|
|
16657
|
+
}), PC = {
|
|
16632
16658
|
active: "ri:play-line",
|
|
16633
16659
|
inactive: "ri:pause-line",
|
|
16634
16660
|
draft: "ri:edit-line",
|
|
16635
16661
|
error: "ri:error-warning-line"
|
|
16636
|
-
},
|
|
16662
|
+
}, FC = {
|
|
16637
16663
|
public: "ri:global-line",
|
|
16638
16664
|
organization: "ri:building-line",
|
|
16639
16665
|
private: "ri:lock-line"
|
|
16640
16666
|
};
|
|
16641
|
-
function
|
|
16642
|
-
return
|
|
16667
|
+
function IC(e) {
|
|
16668
|
+
return PC[e ?? ""] ?? "ri:pause-line";
|
|
16643
16669
|
}
|
|
16644
|
-
function
|
|
16645
|
-
return
|
|
16670
|
+
function LC(e) {
|
|
16671
|
+
return FC[e ?? ""] ?? "ri:building-line";
|
|
16646
16672
|
}
|
|
16647
16673
|
//#endregion
|
|
16648
16674
|
//#region ../../packages/components/src/chat/PkAgentSelectorInline.vue?vue&type=script&setup=true&lang.ts
|
|
16649
|
-
var
|
|
16675
|
+
var RC = { class: "flex items-center gap-xs min-w-0" }, zC = { class: "truncate" }, BC = {
|
|
16650
16676
|
key: 0,
|
|
16651
16677
|
class: "flex items-center gap-xs min-w-0"
|
|
16652
|
-
},
|
|
16678
|
+
}, VC = { class: "text-word truncate" }, HC = /* @__PURE__ */ L({
|
|
16653
16679
|
__name: "PkAgentSelectorInline",
|
|
16654
16680
|
props: /*@__PURE__*/ gr({ agents: {} }, {
|
|
16655
16681
|
modelValue: { default: void 0 },
|
|
@@ -16677,16 +16703,16 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16677
16703
|
"dropdown-modifiers": "menu mobile",
|
|
16678
16704
|
offset: "2"
|
|
16679
16705
|
}, {
|
|
16680
|
-
option: K(({ option: e }) => [P("span",
|
|
16706
|
+
option: K(({ option: e }) => [P("span", RC, [I(gn, {
|
|
16681
16707
|
modifiers: "surface ring",
|
|
16682
16708
|
"img-src": e.interface?.logo,
|
|
16683
16709
|
name: e.name
|
|
16684
|
-
}, null, 8, ["img-src", "name"]), P("span",
|
|
16685
|
-
value: K(({ selectedOptions: e }) => [e.length ? (z(), N("span",
|
|
16710
|
+
}, null, 8, ["img-src", "name"]), P("span", zC, H(e.name), 1)])]),
|
|
16711
|
+
value: K(({ selectedOptions: e }) => [e.length ? (z(), N("span", BC, [I(gn, {
|
|
16686
16712
|
modifiers: "surface ring",
|
|
16687
16713
|
"img-src": e[0].interface?.logo,
|
|
16688
16714
|
name: e[0].name
|
|
16689
|
-
}, null, 8, ["img-src", "name"]), P("span",
|
|
16715
|
+
}, null, 8, ["img-src", "name"]), P("span", VC, H(e[0].name), 1)])) : M("", !0)]),
|
|
16690
16716
|
_: 1
|
|
16691
16717
|
}, 8, [
|
|
16692
16718
|
"modelValue",
|
|
@@ -16696,7 +16722,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16696
16722
|
]);
|
|
16697
16723
|
};
|
|
16698
16724
|
}
|
|
16699
|
-
}),
|
|
16725
|
+
}), UC = he, WC = .6, GC = ne.parse({}), KC = /* @__PURE__ */ L({
|
|
16700
16726
|
__name: "PkToolApprovalBadge",
|
|
16701
16727
|
setup(e) {
|
|
16702
16728
|
let { t } = Vr({ useScope: "global" });
|
|
@@ -16714,16 +16740,16 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16714
16740
|
});
|
|
16715
16741
|
};
|
|
16716
16742
|
}
|
|
16717
|
-
}),
|
|
16718
|
-
let e = R(
|
|
16743
|
+
}), qC = Symbol("modelCatalog"), JC = (e) => Tr(qC, e), YC = () => {
|
|
16744
|
+
let e = R(qC, void 0);
|
|
16719
16745
|
return (t) => t ? e?.value?.find((e) => e.id === t) : void 0;
|
|
16720
|
-
},
|
|
16721
|
-
let e = R(
|
|
16746
|
+
}, XC = () => {
|
|
16747
|
+
let e = R(qC, void 0);
|
|
16722
16748
|
return A(() => e?.value !== void 0);
|
|
16723
|
-
},
|
|
16749
|
+
}, ZC = (e) => me(e) ? {
|
|
16724
16750
|
label: "label.modelNotAvailable",
|
|
16725
16751
|
hint: "hint.modelNotOnEndpoint"
|
|
16726
|
-
} : void 0,
|
|
16752
|
+
} : void 0, QC = (e) => {
|
|
16727
16753
|
if (e) {
|
|
16728
16754
|
if (e.retired) return {
|
|
16729
16755
|
label: "label.retired",
|
|
@@ -16738,7 +16764,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16738
16764
|
hint: "hint.modelDisabledForOrganization"
|
|
16739
16765
|
};
|
|
16740
16766
|
}
|
|
16741
|
-
},
|
|
16767
|
+
}, $C = { class: "flex gap-6 items-center" }, ew = { class: "flex items-baseline gap-6 min-w-0" }, tw = ["title"], nw = ["title"], rw = /* @__PURE__ */ L({
|
|
16742
16768
|
__name: "PkLanguageModel",
|
|
16743
16769
|
props: {
|
|
16744
16770
|
modelName: {},
|
|
@@ -16749,7 +16775,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16749
16775
|
showSource: { type: Boolean }
|
|
16750
16776
|
},
|
|
16751
16777
|
setup(e) {
|
|
16752
|
-
let t = e, { t: n } = Vr({ useScope: "global" }), r =
|
|
16778
|
+
let t = e, { t: n } = Vr({ useScope: "global" }), r = YC(), i = XC(), a = A(() => r(t.modelName)), o = A(() => {
|
|
16753
16779
|
let e = t.modelName;
|
|
16754
16780
|
if (!e) return;
|
|
16755
16781
|
let n = e.indexOf("/");
|
|
@@ -16772,11 +16798,11 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16772
16798
|
hint: n("hint.modelSourcePlatform")
|
|
16773
16799
|
} : void 0;
|
|
16774
16800
|
}), f = A(() => {
|
|
16775
|
-
if (!t.historical) return a.value ?
|
|
16801
|
+
if (!t.historical) return a.value ? QC(a.value) : i.value ? ZC(t.modelName) : void 0;
|
|
16776
16802
|
});
|
|
16777
16803
|
return (t, r) => {
|
|
16778
16804
|
let i = $n;
|
|
16779
|
-
return z(), N("div",
|
|
16805
|
+
return z(), N("div", $C, [I(i, {
|
|
16780
16806
|
name: u.value,
|
|
16781
16807
|
prefix: l.value,
|
|
16782
16808
|
class: yr(["shrink-0", { "text-word-4": f.value }]),
|
|
@@ -16786,40 +16812,40 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16786
16812
|
"prefix",
|
|
16787
16813
|
"class",
|
|
16788
16814
|
"title"
|
|
16789
|
-
]), P("span",
|
|
16815
|
+
]), P("span", ew, [
|
|
16790
16816
|
P("span", { class: yr(["truncate", { "text-word-3": f.value }]) }, H(e.label || a.value?.label || o.value), 3),
|
|
16791
16817
|
d.value ? (z(), N("span", {
|
|
16792
16818
|
key: 0,
|
|
16793
16819
|
class: "shrink-0 text-12 text-word-3",
|
|
16794
16820
|
title: d.value.hint
|
|
16795
|
-
}, H(d.value.label), 9,
|
|
16821
|
+
}, H(d.value.label), 9, tw)) : M("", !0),
|
|
16796
16822
|
f.value ? (z(), N("span", {
|
|
16797
16823
|
key: 1,
|
|
16798
16824
|
class: "shrink-0 text-12 text-word-3",
|
|
16799
16825
|
title: U(n)(f.value.hint)
|
|
16800
|
-
}, H(U(n)(f.value.label)), 9,
|
|
16826
|
+
}, H(U(n)(f.value.label)), 9, nw)) : M("", !0)
|
|
16801
16827
|
])]);
|
|
16802
16828
|
};
|
|
16803
16829
|
}
|
|
16804
|
-
}),
|
|
16830
|
+
}), iw = {
|
|
16805
16831
|
key: 0,
|
|
16806
16832
|
class: "flex items-center gap-8 min-w-0 w-full"
|
|
16807
|
-
},
|
|
16833
|
+
}, aw = { class: "flex flex-col gap-2 min-w-0" }, ow = { class: "flex items-center gap-8 min-w-0 leading-tight" }, sw = { class: "truncate" }, cw = ["title"], lw = {
|
|
16808
16834
|
key: 0,
|
|
16809
16835
|
class: "text-12 text-word-3 truncate leading-tight"
|
|
16810
|
-
},
|
|
16836
|
+
}, uw = {
|
|
16811
16837
|
key: 1,
|
|
16812
16838
|
class: "flex items-center gap-8 min-w-0 w-full"
|
|
16813
|
-
},
|
|
16839
|
+
}, dw = { class: "truncate" }, fw = ["title"], pw = {
|
|
16814
16840
|
key: 1,
|
|
16815
16841
|
class: "ml-auto flex items-center gap-8 shrink-0"
|
|
16816
|
-
},
|
|
16842
|
+
}, mw = {
|
|
16817
16843
|
key: 0,
|
|
16818
16844
|
class: "text-12 text-word-3 none sm:inline"
|
|
16819
|
-
},
|
|
16845
|
+
}, hw = {
|
|
16820
16846
|
key: 1,
|
|
16821
16847
|
class: "text-12 text-word-3"
|
|
16822
|
-
},
|
|
16848
|
+
}, gw = ["title"], _w = /* @__PURE__ */ L({
|
|
16823
16849
|
__name: "PkModelOption",
|
|
16824
16850
|
props: {
|
|
16825
16851
|
entry: {},
|
|
@@ -16828,7 +16854,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16828
16854
|
stacked: { type: Boolean }
|
|
16829
16855
|
},
|
|
16830
16856
|
setup(e) {
|
|
16831
|
-
let t = e, { t: n, n: r } = Vr({ 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(() =>
|
|
16857
|
+
let t = e, { t: n, n: r } = Vr({ 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(() => QC(t.entry)), l = A(() => {
|
|
16832
16858
|
let e = t.entry?.pricing;
|
|
16833
16859
|
if (!e) return;
|
|
16834
16860
|
let n = (e) => r(e * ye, "USD");
|
|
@@ -16848,7 +16874,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16848
16874
|
}), f = A(() => [u.value, l.value].filter(Boolean).join(" · "));
|
|
16849
16875
|
return (t, r) => {
|
|
16850
16876
|
let a = $n;
|
|
16851
|
-
return e.stacked ? (z(), N("div",
|
|
16877
|
+
return e.stacked ? (z(), N("div", iw, [I(a, {
|
|
16852
16878
|
name: s.value,
|
|
16853
16879
|
prefix: o.value,
|
|
16854
16880
|
class: "shrink-0 w-16 h-16",
|
|
@@ -16857,11 +16883,11 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16857
16883
|
"name",
|
|
16858
16884
|
"prefix",
|
|
16859
16885
|
"title"
|
|
16860
|
-
]), P("div",
|
|
16886
|
+
]), P("div", aw, [P("span", ow, [P("span", sw, H(i.value), 1), c.value ? (z(), N("span", {
|
|
16861
16887
|
key: 0,
|
|
16862
16888
|
class: "text-12 text-word-3 shrink-0",
|
|
16863
16889
|
title: U(n)(c.value.hint)
|
|
16864
|
-
}, H(U(n)(c.value.label)), 9,
|
|
16890
|
+
}, H(U(n)(c.value.label)), 9, cw)) : M("", !0)]), f.value ? (z(), N("span", lw, H(f.value), 1)) : M("", !0)])])) : (z(), N("div", uw, [
|
|
16865
16891
|
I(a, {
|
|
16866
16892
|
name: s.value,
|
|
16867
16893
|
prefix: o.value,
|
|
@@ -16872,25 +16898,25 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16872
16898
|
"prefix",
|
|
16873
16899
|
"title"
|
|
16874
16900
|
]),
|
|
16875
|
-
P("span",
|
|
16901
|
+
P("span", dw, H(i.value), 1),
|
|
16876
16902
|
c.value ? (z(), N("span", {
|
|
16877
16903
|
key: 0,
|
|
16878
16904
|
class: "text-12 text-word-3 shrink-0",
|
|
16879
16905
|
title: U(n)(c.value.hint)
|
|
16880
|
-
}, H(U(n)(c.value.label)), 9,
|
|
16881
|
-
e.detailed ? (z(), N("span",
|
|
16882
|
-
u.value ? (z(), N("span",
|
|
16883
|
-
l.value ? (z(), N("span",
|
|
16906
|
+
}, H(U(n)(c.value.label)), 9, fw)) : M("", !0),
|
|
16907
|
+
e.detailed ? (z(), N("span", pw, [
|
|
16908
|
+
u.value ? (z(), N("span", mw, H(u.value), 1)) : M("", !0),
|
|
16909
|
+
l.value ? (z(), N("span", hw, H(l.value), 1)) : M("", !0),
|
|
16884
16910
|
(z(!0), N(k, null, Or(d.value, (e) => (z(), N("span", {
|
|
16885
16911
|
key: e.key,
|
|
16886
16912
|
class: yr(["pk-model-option__dot", `pk-model-option__dot--${e.value}`]),
|
|
16887
16913
|
title: e.title
|
|
16888
|
-
}, null, 10,
|
|
16914
|
+
}, null, 10, gw))), 128))
|
|
16889
16915
|
])) : M("", !0)
|
|
16890
16916
|
]));
|
|
16891
16917
|
};
|
|
16892
16918
|
}
|
|
16893
|
-
}),
|
|
16919
|
+
}), vw = /* @__PURE__ */ L({
|
|
16894
16920
|
__name: "PkLanguageModelCombobox",
|
|
16895
16921
|
props: {
|
|
16896
16922
|
name: {},
|
|
@@ -16907,7 +16933,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16907
16933
|
},
|
|
16908
16934
|
emits: ["update:modelValue"],
|
|
16909
16935
|
setup(e, { emit: t }) {
|
|
16910
|
-
let { t: n } = Vr({ useScope: "global" }), r = e, i = t, a = R(
|
|
16936
|
+
let { t: n } = Vr({ useScope: "global" }), r = e, i = t, a = R(qC, void 0), o = A(() => r.catalog ?? a?.value), s = A(() => Array.isArray(r.modelValue) ? r.modelValue.filter(Boolean) : r.modelValue || void 0), c = A(() => UC.map((e) => ({
|
|
16911
16937
|
label: e,
|
|
16912
16938
|
value: e
|
|
16913
16939
|
}))), l = (e) => r.zeroDataRetention === !0 && e.zdr === Ti.None || r.disallowPromptTraining === !0 && e.noTraining === Ti.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 : Ei(e)) && !l(e) && d(e)).map((e) => ({
|
|
@@ -16960,7 +16986,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16960
16986
|
"selected-hint-label": "",
|
|
16961
16987
|
"onUpdate:modelValue": a[0] ||= (e) => i("update:modelValue", e)
|
|
16962
16988
|
}, {
|
|
16963
|
-
value: K(({ selectedOptions: e }) => [r.multiple ? (z(!0), N(k, { key: 0 }, Or(e, (t) => (z(), j(
|
|
16989
|
+
value: K(({ selectedOptions: e }) => [r.multiple ? (z(!0), N(k, { key: 0 }, Or(e, (t) => (z(), j(rw, {
|
|
16964
16990
|
key: g(t),
|
|
16965
16991
|
"model-name": g(t),
|
|
16966
16992
|
label: _(t)?.catalogLabel,
|
|
@@ -16978,7 +17004,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16978
17004
|
"endpoint-name",
|
|
16979
17005
|
"show-source",
|
|
16980
17006
|
"class"
|
|
16981
|
-
]))), 128)) : (z(), j(
|
|
17007
|
+
]))), 128)) : (z(), j(rw, {
|
|
16982
17008
|
key: 1,
|
|
16983
17009
|
"model-name": g(e[0]),
|
|
16984
17010
|
label: _(e[0])?.catalogLabel,
|
|
@@ -16993,12 +17019,12 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
16993
17019
|
"endpoint-name",
|
|
16994
17020
|
"show-source"
|
|
16995
17021
|
]))]),
|
|
16996
|
-
option: K(({ option: e }) => [_(e)?.entry ? (z(), j(
|
|
17022
|
+
option: K(({ option: e }) => [_(e)?.entry ? (z(), j(_w, {
|
|
16997
17023
|
key: 0,
|
|
16998
17024
|
entry: _(e)?.entry,
|
|
16999
17025
|
stacked: "",
|
|
17000
17026
|
class: "text-14"
|
|
17001
|
-
}, null, 8, ["entry"])) : (z(), j(
|
|
17027
|
+
}, null, 8, ["entry"])) : (z(), j(rw, {
|
|
17002
17028
|
key: 1,
|
|
17003
17029
|
"model-name": g(e),
|
|
17004
17030
|
label: _(e)?.catalogLabel,
|
|
@@ -17021,10 +17047,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17021
17047
|
]);
|
|
17022
17048
|
};
|
|
17023
17049
|
}
|
|
17024
|
-
}),
|
|
17050
|
+
}), yw = {
|
|
17025
17051
|
key: 5,
|
|
17026
17052
|
class: "text-12 text-word-3"
|
|
17027
|
-
},
|
|
17053
|
+
}, bw = /* @__PURE__ */ L({
|
|
17028
17054
|
__name: "PkReasoningSettings",
|
|
17029
17055
|
props: /*@__PURE__*/ gr({ activeProvider: {} }, {
|
|
17030
17056
|
reasoning: { default: void 0 },
|
|
@@ -17334,10 +17360,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17334
17360
|
"placeholder",
|
|
17335
17361
|
"hint-label",
|
|
17336
17362
|
"options"
|
|
17337
|
-
])) : (z(), N("small",
|
|
17363
|
+
])) : (z(), N("small", yw, H(U(t)("hint.reasoningNotSupported")), 1));
|
|
17338
17364
|
};
|
|
17339
17365
|
}
|
|
17340
|
-
}),
|
|
17366
|
+
}), xw = /* @__PURE__ */ L({
|
|
17341
17367
|
__name: "PkWebSearchSettings",
|
|
17342
17368
|
props: /*@__PURE__*/ gr({
|
|
17343
17369
|
activeProvider: {},
|
|
@@ -17708,7 +17734,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17708
17734
|
], 64)) : M("", !0)], 64)) : M("", !0)], 64)) : M("", !0)], 64);
|
|
17709
17735
|
};
|
|
17710
17736
|
}
|
|
17711
|
-
}),
|
|
17737
|
+
}), Sw = /* @__PURE__ */ L({
|
|
17712
17738
|
__name: "PkEditorChannels",
|
|
17713
17739
|
props: /*@__PURE__*/ gr({ type: {} }, {
|
|
17714
17740
|
modelValue: { default: () => Object.values(oe) },
|
|
@@ -17768,7 +17794,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17768
17794
|
_: 1
|
|
17769
17795
|
}, 8, ["legend"]));
|
|
17770
17796
|
}
|
|
17771
|
-
}),
|
|
17797
|
+
}), Cw = { key: 1 }, ww = { class: "pk-copy-block__actions" }, Tw = /* @__PURE__ */ L({
|
|
17772
17798
|
__name: "PkCopyBlock",
|
|
17773
17799
|
props: {
|
|
17774
17800
|
source: {},
|
|
@@ -17783,7 +17809,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17783
17809
|
key: 0,
|
|
17784
17810
|
code: n.value,
|
|
17785
17811
|
language: e.codeLanguage
|
|
17786
|
-
}, null, 8, ["code", "language"])) : (z(), N("div",
|
|
17812
|
+
}, null, 8, ["code", "language"])) : (z(), N("div", Cw, H(n.value), 1))]), P("div", ww, [I(c, null, {
|
|
17787
17813
|
default: K(() => [I(s, {
|
|
17788
17814
|
modifiers: e.modifiers.includes("inline") ? "action-quiet-small" : "action-small",
|
|
17789
17815
|
icon: U(i) ? "ri:check-line" : "ri:file-copy-line",
|
|
@@ -17798,7 +17824,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17798
17824
|
})])], 2);
|
|
17799
17825
|
};
|
|
17800
17826
|
}
|
|
17801
|
-
}),
|
|
17827
|
+
}), Ew = /* @__PURE__ */ L({
|
|
17802
17828
|
__name: "PkInputColor",
|
|
17803
17829
|
props: {
|
|
17804
17830
|
modelValue: {},
|
|
@@ -17831,13 +17857,13 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17831
17857
|
])]);
|
|
17832
17858
|
};
|
|
17833
17859
|
}
|
|
17834
|
-
}),
|
|
17860
|
+
}), Dw = { class: "pk-agent-settings-panel" }, Ow = { class: "xl:grid grid-cols-2 gap-x-md items-start" }, kw = { class: "flex items-center gap-8" }, Aw = { class: "flex items-center gap-8" }, jw = {
|
|
17835
17861
|
key: 0,
|
|
17836
17862
|
class: "text-12 text-word-3 -mt-sm mb-md"
|
|
17837
|
-
},
|
|
17863
|
+
}, Mw = { class: "p-8 flex flex-col" }, Nw = { class: "flex flex-col ml-12 gap-2" }, Pw = { class: "text-12 text-word-3" }, Fw = { class: "mb-md" }, Iw = { class: "flex items-center gap-xs mb-2" }, Lw = ["for"], Rw = { class: "info-icon relative cursor-help text-word-3" }, zw = { class: "mb-md" }, Bw = { class: "flex items-center gap-xs mb-2" }, Vw = ["for"], Hw = { class: "info-icon relative cursor-help text-word-3" }, Uw = { class: "text-12 text-word-3 mt-xs leading-normal" }, Ww = { class: "flex flex-col ml-12 gap-2" }, Gw = { class: "text-12 text-word-3" }, Kw = { class: "mb-md" }, qw = { class: "flex items-center gap-xs mb-2" }, Jw = ["for"], Yw = { class: "info-icon relative cursor-help text-word-3" }, Xw = { class: "mb-md" }, Zw = { class: "flex items-center gap-xs mb-2" }, Qw = ["for"], $w = { class: "info-icon relative cursor-help text-word-3" }, eT = { class: "flex flex-col ml-12 gap-2" }, tT = { class: "text-12 text-word-3" }, nT = { class: "flex flex-col ml-12 gap-2" }, rT = { class: "text-12 text-word-3" }, iT = { class: "flex flex-col ml-12 gap-2" }, aT = { class: "text-12 text-word-3" }, oT = { class: "flex items-end gap-sm mt-md" }, sT = { class: "flex flex-col gap-2 min-w-0" }, cT = { class: "truncate" }, lT = {
|
|
17838
17864
|
key: 0,
|
|
17839
17865
|
class: "text-12 text-word-3 truncate"
|
|
17840
|
-
},
|
|
17866
|
+
}, uT = { class: "p-8 flex flex-col" }, dT = { class: "flex flex-col ml-12 gap-2" }, fT = { class: "text-12 text-word-3" }, pT = { class: "flex gap-sm mt-md" }, mT = { class: "text-12 text-word-3 mt-8 mb-md px-8" }, hT = { class: "p-8 flex flex-col" }, gT = { class: "grid sm:grid-cols-2 gap-md items-start" }, _T = { class: "flex flex-col gap-md" }, vT = { class: "text-12 text-word-3 mb-sm" }, yT = { class: "flex items-center gap-4" }, bT = { class: "text-12 text-word-3 mb-sm" }, xT = { class: "flex flex-col nx-md nb-md" }, ST = { class: "flex flex-col ml-12 gap-2" }, CT = { class: "flex items-center gap-8" }, wT = { class: "font-semibold" }, TT = { class: "text-12 text-word-3" }, ET = ["title"], DT = { class: "p-xs flex gap-md items-start" }, OT = { class: "flex flex-col gap-md" }, kT = { class: "font-semibold mb-xs" }, AT = { class: "text-smaller" }, jT = { key: 2 }, MT = { class: "p-8 flex flex-col" }, NT = { class: "text-smaller mb-xs" }, PT = { class: "font-semibold mb-xs" }, FT = { class: "text-smaller" }, IT = { class: "font-semibold mb-xs" }, LT = { class: "text-smaller" }, RT = { class: "block text-12 text-word-2 break-all p-12 font-mono" }, zT = { class: "grid sm:grid-cols-2 gap-md" }, BT = /* @__PURE__ */ L({
|
|
17841
17867
|
__name: "PkAgentSettingsPanel",
|
|
17842
17868
|
props: /*@__PURE__*/ gr({
|
|
17843
17869
|
organizationSlug: {},
|
|
@@ -17866,9 +17892,9 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17866
17892
|
dismissableNoticeModifiers: {},
|
|
17867
17893
|
footerMessage: { default: void 0 },
|
|
17868
17894
|
footerMessageModifiers: {},
|
|
17869
|
-
model: { default:
|
|
17895
|
+
model: { default: UC[0] },
|
|
17870
17896
|
modelModifiers: {},
|
|
17871
|
-
temperature: { default:
|
|
17897
|
+
temperature: { default: WC },
|
|
17872
17898
|
temperatureModifiers: {},
|
|
17873
17899
|
prompt: { default: "" },
|
|
17874
17900
|
promptModifiers: {},
|
|
@@ -17991,13 +18017,13 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
17991
18017
|
voiceTurnEagernessModifiers: {},
|
|
17992
18018
|
voiceTurnTimeoutSeconds: { default: 5 },
|
|
17993
18019
|
voiceTurnTimeoutSecondsModifiers: {},
|
|
17994
|
-
fileUploadMaxFileSize: { default:
|
|
18020
|
+
fileUploadMaxFileSize: { default: GC.maxFileSizeBytes },
|
|
17995
18021
|
fileUploadMaxFileSizeModifiers: {},
|
|
17996
|
-
fileUploadAllowedMimeTypes: { default: () => [...
|
|
18022
|
+
fileUploadAllowedMimeTypes: { default: () => [...GC.allowedMimeTypes] },
|
|
17997
18023
|
fileUploadAllowedMimeTypesModifiers: {},
|
|
17998
|
-
fileUploadMaxFilesPerMessage: { default:
|
|
18024
|
+
fileUploadMaxFilesPerMessage: { default: GC.maxFilesPerMessage },
|
|
17999
18025
|
fileUploadMaxFilesPerMessageModifiers: {},
|
|
18000
|
-
fileUploadMaxFilesPerChat: { default:
|
|
18026
|
+
fileUploadMaxFilesPerChat: { default: GC.maxFilesPerChat },
|
|
18001
18027
|
fileUploadMaxFilesPerChatModifiers: {},
|
|
18002
18028
|
customCss: { default: void 0 },
|
|
18003
18029
|
customCssModifiers: {},
|
|
@@ -18294,7 +18320,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18294
18320
|
style="border: 1px solid #e5e7eb; border-radius: 8px;"></iframe>`);
|
|
18295
18321
|
return (s, c) => {
|
|
18296
18322
|
let l = $n, v = Yn, w = nr, ce = tr, me = Jn, je = ir, et = Kn, tt = Vn, nt = rr, rt = Gn, st = Xn;
|
|
18297
|
-
return z(), N("div",
|
|
18323
|
+
return z(), N("div", Dw, [I(nt, {
|
|
18298
18324
|
items: Wt.value,
|
|
18299
18325
|
lazy: "once"
|
|
18300
18326
|
}, {
|
|
@@ -18307,11 +18333,11 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18307
18333
|
readonly: "",
|
|
18308
18334
|
vertical: ""
|
|
18309
18335
|
}, null, 8, ["modelValue", "label"]),
|
|
18310
|
-
P("div",
|
|
18336
|
+
P("div", Ow, [I(v, {
|
|
18311
18337
|
modelValue: te.value,
|
|
18312
18338
|
"onUpdate:modelValue": c[1] ||= (e) => te.value = e,
|
|
18313
18339
|
name: "status",
|
|
18314
|
-
icon: U(
|
|
18340
|
+
icon: U(IC)(te.value),
|
|
18315
18341
|
label: U(n)("label.status"),
|
|
18316
18342
|
placeholder: U(n)("placeholder.select"),
|
|
18317
18343
|
unselectable: !1,
|
|
@@ -18334,8 +18360,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18334
18360
|
],
|
|
18335
18361
|
disabled: e.playground
|
|
18336
18362
|
}, {
|
|
18337
|
-
option: K(({ option: e }) => [P("span",
|
|
18338
|
-
name: U(
|
|
18363
|
+
option: K(({ option: e }) => [P("span", kw, [I(l, {
|
|
18364
|
+
name: U(IC)(String(e.value)),
|
|
18339
18365
|
class: "w-16 h-16 shrink-0"
|
|
18340
18366
|
}, null, 8, ["name"]), F(" " + H(e.label), 1)])]),
|
|
18341
18367
|
_: 1
|
|
@@ -18350,7 +18376,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18350
18376
|
modelValue: ne.value,
|
|
18351
18377
|
"onUpdate:modelValue": c[2] ||= (e) => ne.value = e,
|
|
18352
18378
|
name: "visibility",
|
|
18353
|
-
icon: U(
|
|
18379
|
+
icon: U(LC)(ne.value),
|
|
18354
18380
|
label: U(n)("label.visibility"),
|
|
18355
18381
|
placeholder: U(n)("placeholder.select"),
|
|
18356
18382
|
unselectable: !1,
|
|
@@ -18373,8 +18399,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18373
18399
|
],
|
|
18374
18400
|
disabled: e.playground || !Ut.value
|
|
18375
18401
|
}, {
|
|
18376
|
-
option: K(({ option: e }) => [P("span",
|
|
18377
|
-
name: U(
|
|
18402
|
+
option: K(({ option: e }) => [P("span", Aw, [I(l, {
|
|
18403
|
+
name: U(LC)(String(e.value)),
|
|
18378
18404
|
class: "w-16 h-16 shrink-0"
|
|
18379
18405
|
}, null, 8, ["name"]), F(" " + H(e.label), 1)])]),
|
|
18380
18406
|
_: 1
|
|
@@ -18397,7 +18423,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18397
18423
|
"label",
|
|
18398
18424
|
"placeholder"
|
|
18399
18425
|
]),
|
|
18400
|
-
I(
|
|
18426
|
+
I(vw, {
|
|
18401
18427
|
modelValue: g.value,
|
|
18402
18428
|
"onUpdate:modelValue": c[4] ||= (e) => g.value = e,
|
|
18403
18429
|
name: "model",
|
|
@@ -18418,7 +18444,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18418
18444
|
"disallow-prompt-training",
|
|
18419
18445
|
"current"
|
|
18420
18446
|
]),
|
|
18421
|
-
y.value ? (z(), N("p",
|
|
18447
|
+
y.value ? (z(), N("p", jw, H(y.value), 1)) : M("", !0),
|
|
18422
18448
|
_.value ? (z(), j(QS, {
|
|
18423
18449
|
key: 1,
|
|
18424
18450
|
icon: "ri:server-line",
|
|
@@ -18443,10 +18469,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18443
18469
|
modifiers: "details",
|
|
18444
18470
|
class: "border border-surface-3 rounded"
|
|
18445
18471
|
}, {
|
|
18446
|
-
default: K(() => [P("div",
|
|
18472
|
+
default: K(() => [P("div", Mw, [
|
|
18447
18473
|
I(oo, { legend: U(n)("label.modelParameters") }, {
|
|
18448
18474
|
default: K(() => [
|
|
18449
|
-
_.value ? M("", !0) : (z(), j(
|
|
18475
|
+
_.value ? M("", !0) : (z(), j(vw, {
|
|
18450
18476
|
key: 0,
|
|
18451
18477
|
modelValue: _t.value,
|
|
18452
18478
|
"onUpdate:modelValue": c[6] ||= (e) => _t.value = e,
|
|
@@ -18548,7 +18574,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18548
18574
|
_: 1
|
|
18549
18575
|
}, 8, ["legend"]),
|
|
18550
18576
|
I(oo, { legend: U(n)("label.reasoning") }, {
|
|
18551
|
-
default: K(() => [I(
|
|
18577
|
+
default: K(() => [I(bw, {
|
|
18552
18578
|
reasoning: pe.value,
|
|
18553
18579
|
"onUpdate:reasoning": c[12] ||= (e) => pe.value = e,
|
|
18554
18580
|
"active-provider": Ht.value
|
|
@@ -18645,13 +18671,13 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18645
18671
|
"unchecked-value": !1,
|
|
18646
18672
|
class: "flex-nowrap mb-md"
|
|
18647
18673
|
}, {
|
|
18648
|
-
default: K(() => [P("div",
|
|
18674
|
+
default: K(() => [P("div", Nw, [P("strong", null, H(U(n)("label.freshnessBoost")), 1), P("small", Pw, H(U(n)("hint.freshnessBoost")), 1)])]),
|
|
18649
18675
|
_: 1
|
|
18650
18676
|
}, 8, ["modelValue"])) : M("", !0),
|
|
18651
|
-
Tt.value?.freshness?.enabled ? (z(), N(k, { key: 1 }, [P("div",
|
|
18677
|
+
Tt.value?.freshness?.enabled ? (z(), N(k, { key: 1 }, [P("div", Fw, [P("div", Iw, [P("label", {
|
|
18652
18678
|
class: "block text-12 text-word-3",
|
|
18653
18679
|
for: a.freshnessScale
|
|
18654
|
-
}, H(U(n)("hint.freshnessScale")), 9,
|
|
18680
|
+
}, H(U(n)("hint.freshnessScale")), 9, Lw), P("div", Rw, [I(l, {
|
|
18655
18681
|
name: "ri:information-line",
|
|
18656
18682
|
class: "w-14 h-14"
|
|
18657
18683
|
}), I(je, {
|
|
@@ -18671,11 +18697,11 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18671
18697
|
"id",
|
|
18672
18698
|
"modelValue",
|
|
18673
18699
|
"format-value"
|
|
18674
|
-
])]), P("div",
|
|
18675
|
-
P("div",
|
|
18700
|
+
])]), P("div", zw, [
|
|
18701
|
+
P("div", Bw, [P("label", {
|
|
18676
18702
|
class: "block text-12 text-word-3",
|
|
18677
18703
|
for: a.freshnessWeight
|
|
18678
|
-
}, H(U(n)("label.freshnessWeight")), 9,
|
|
18704
|
+
}, H(U(n)("label.freshnessWeight")), 9, Vw), P("div", Hw, [I(l, {
|
|
18679
18705
|
name: "ri:information-line",
|
|
18680
18706
|
class: "w-14 h-14"
|
|
18681
18707
|
}), I(je, {
|
|
@@ -18698,7 +18724,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18698
18724
|
"modelValue",
|
|
18699
18725
|
"format-value"
|
|
18700
18726
|
])) : M("", !0),
|
|
18701
|
-
P("p",
|
|
18727
|
+
P("p", Uw, H(Dt.value), 1)
|
|
18702
18728
|
])], 64)) : M("", !0),
|
|
18703
18729
|
Tt.value?.mmr ? (z(), j(me, {
|
|
18704
18730
|
key: 2,
|
|
@@ -18710,13 +18736,13 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18710
18736
|
"unchecked-value": !1,
|
|
18711
18737
|
class: "flex-nowrap mb-md border-t border-surface-3 pt-md"
|
|
18712
18738
|
}, {
|
|
18713
|
-
default: K(() => [P("div",
|
|
18739
|
+
default: K(() => [P("div", Ww, [P("strong", null, H(U(n)("label.mmr")), 1), P("small", Gw, H(U(n)("hint.mmr")), 1)])]),
|
|
18714
18740
|
_: 1
|
|
18715
18741
|
}, 8, ["modelValue"])) : M("", !0),
|
|
18716
|
-
Tt.value?.mmr?.enabled ? (z(), N(k, { key: 3 }, [P("div",
|
|
18742
|
+
Tt.value?.mmr?.enabled ? (z(), N(k, { key: 3 }, [P("div", Kw, [P("div", qw, [P("label", {
|
|
18717
18743
|
class: "block text-12 text-word-3",
|
|
18718
18744
|
for: a.mmrDiversity
|
|
18719
|
-
}, H(U(n)("label.mmrDiversity")), 9,
|
|
18745
|
+
}, H(U(n)("label.mmrDiversity")), 9, Jw), P("div", Yw, [I(l, {
|
|
18720
18746
|
name: "ri:information-line",
|
|
18721
18747
|
class: "w-14 h-14"
|
|
18722
18748
|
}), I(je, {
|
|
@@ -18737,10 +18763,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18737
18763
|
"id",
|
|
18738
18764
|
"modelValue",
|
|
18739
18765
|
"format-value"
|
|
18740
|
-
])) : M("", !0)]), P("div",
|
|
18766
|
+
])) : M("", !0)]), P("div", Xw, [P("div", Zw, [P("label", {
|
|
18741
18767
|
class: "block text-12 text-word-3",
|
|
18742
18768
|
for: a.mmrCandidatesLimit
|
|
18743
|
-
}, H(U(n)("label.mmrCandidatesLimit")), 9,
|
|
18769
|
+
}, H(U(n)("label.mmrCandidatesLimit")), 9, Qw), P("div", $w, [I(l, {
|
|
18744
18770
|
name: "ri:information-line",
|
|
18745
18771
|
class: "w-14 h-14"
|
|
18746
18772
|
}), I(je, {
|
|
@@ -18779,7 +18805,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18779
18805
|
"unchecked-value": !1,
|
|
18780
18806
|
class: "flex-nowrap mb-0"
|
|
18781
18807
|
}, {
|
|
18782
|
-
default: K(() => [P("div",
|
|
18808
|
+
default: K(() => [P("div", eT, [P("strong", null, H(U(n)("label.zeroDataRetention")), 1), P("small", tT, H(U(n)("hint.zeroDataRetention")), 1)])]),
|
|
18783
18809
|
_: 1
|
|
18784
18810
|
}, 8, ["modelValue"]), vt.value ? M("", !0) : (z(), j(me, {
|
|
18785
18811
|
key: 0,
|
|
@@ -18791,7 +18817,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18791
18817
|
"unchecked-value": !1,
|
|
18792
18818
|
class: "flex-nowrap mt-md mb-0"
|
|
18793
18819
|
}, {
|
|
18794
|
-
default: K(() => [P("div",
|
|
18820
|
+
default: K(() => [P("div", nT, [P("strong", null, H(U(n)("label.disallowPromptTraining")), 1), P("small", rT, H(U(n)("hint.disallowPromptTraining")), 1)])]),
|
|
18795
18821
|
_: 1
|
|
18796
18822
|
}, 8, ["modelValue"]))]),
|
|
18797
18823
|
_: 1
|
|
@@ -18810,7 +18836,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18810
18836
|
"unchecked-value": !1,
|
|
18811
18837
|
class: "flex-nowrap mb-0"
|
|
18812
18838
|
}, {
|
|
18813
|
-
default: K(() => [P("div",
|
|
18839
|
+
default: K(() => [P("div", iT, [P("strong", null, H(U(n)("label.voiceEnabled")), 1), P("small", aT, H(U(n)("hint.voiceEnabled")), 1)])]),
|
|
18814
18840
|
_: 1
|
|
18815
18841
|
}, 8, ["modelValue"]), Ve.value ? (z(), N(k, { key: 0 }, [
|
|
18816
18842
|
zt.value.length ? (z(), j(QS, {
|
|
@@ -18821,7 +18847,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18821
18847
|
default: K(() => [F(H(U(n)("hint.voiceApprovalRefused", { tools: zt.value.join(", ") })), 1)]),
|
|
18822
18848
|
_: 1
|
|
18823
18849
|
})) : M("", !0),
|
|
18824
|
-
P("div",
|
|
18850
|
+
P("div", oT, [I(v, {
|
|
18825
18851
|
modelValue: Ue.value,
|
|
18826
18852
|
"onUpdate:modelValue": c[27] ||= (e) => Ue.value = e,
|
|
18827
18853
|
name: "voiceId",
|
|
@@ -18849,7 +18875,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18849
18875
|
"disabled",
|
|
18850
18876
|
"title"
|
|
18851
18877
|
])]),
|
|
18852
|
-
option: K(({ option: e }) => [P("span",
|
|
18878
|
+
option: K(({ option: e }) => [P("span", sT, [P("span", cT, H(e.label), 1), e.description ? (z(), N("small", lT, H(e.description), 1)) : M("", !0)])]),
|
|
18853
18879
|
_: 1
|
|
18854
18880
|
}, 8, [
|
|
18855
18881
|
"modelValue",
|
|
@@ -18903,7 +18929,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18903
18929
|
modifiers: "details",
|
|
18904
18930
|
class: "border border-surface-3 rounded-lg mt-md"
|
|
18905
18931
|
}, {
|
|
18906
|
-
default: K(() => [P("div",
|
|
18932
|
+
default: K(() => [P("div", uT, [
|
|
18907
18933
|
I(me, {
|
|
18908
18934
|
modelValue: Ye.value,
|
|
18909
18935
|
"onUpdate:modelValue": c[30] ||= (e) => Ye.value = e,
|
|
@@ -18913,7 +18939,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18913
18939
|
"unchecked-value": !1,
|
|
18914
18940
|
class: "flex-nowrap mb-0"
|
|
18915
18941
|
}, {
|
|
18916
|
-
default: K(() => [P("div",
|
|
18942
|
+
default: K(() => [P("div", dT, [P("strong", null, H(U(n)("label.voiceIgnoreBackgroundVoices")), 1), P("small", fT, H(U(n)("hint.voiceIgnoreBackgroundVoices")), 1)])]),
|
|
18917
18943
|
_: 1
|
|
18918
18944
|
}, 8, ["modelValue"]),
|
|
18919
18945
|
I(v, {
|
|
@@ -18951,7 +18977,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18951
18977
|
"placeholder",
|
|
18952
18978
|
"options"
|
|
18953
18979
|
]),
|
|
18954
|
-
P("div",
|
|
18980
|
+
P("div", pT, [I(w, {
|
|
18955
18981
|
modelValue: Qe.value,
|
|
18956
18982
|
"onUpdate:modelValue": c[32] ||= (e) => Qe.value = e,
|
|
18957
18983
|
name: "voiceTurnTimeoutSeconds",
|
|
@@ -18982,7 +19008,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
18982
19008
|
"label",
|
|
18983
19009
|
"placeholder"
|
|
18984
19010
|
])]),
|
|
18985
|
-
P("small",
|
|
19011
|
+
P("small", mT, H(U(n)("hint.voiceTurnTimeoutSeconds")), 1),
|
|
18986
19012
|
I(w, {
|
|
18987
19013
|
modelValue: He.value,
|
|
18988
19014
|
"onUpdate:modelValue": c[34] ||= (e) => He.value = e,
|
|
@@ -19044,7 +19070,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19044
19070
|
], 64)) : M("", !0)]),
|
|
19045
19071
|
_: 1
|
|
19046
19072
|
}, 8, ["legend"])) : M("", !0),
|
|
19047
|
-
e.playground ? M("", !0) : (z(), j(
|
|
19073
|
+
e.playground ? M("", !0) : (z(), j(Sw, {
|
|
19048
19074
|
key: 2,
|
|
19049
19075
|
modelValue: Ct.value,
|
|
19050
19076
|
"onUpdate:modelValue": c[37] ||= (e) => Ct.value = e,
|
|
@@ -19116,7 +19142,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19116
19142
|
"options"
|
|
19117
19143
|
])) : M("", !0),
|
|
19118
19144
|
I(oo, { legend: U(n)("label.appearance") }, {
|
|
19119
|
-
default: K(() => [I(
|
|
19145
|
+
default: K(() => [I(Ew, {
|
|
19120
19146
|
modelValue: _e.value,
|
|
19121
19147
|
"onUpdate:modelValue": c[40] ||= (e) => _e.value = e,
|
|
19122
19148
|
name: "mainColor",
|
|
@@ -19154,7 +19180,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19154
19180
|
modifiers: "details",
|
|
19155
19181
|
class: "border border-surface-3 rounded-lg mt-md mb-md"
|
|
19156
19182
|
}, {
|
|
19157
|
-
default: K(() => [P("div",
|
|
19183
|
+
default: K(() => [P("div", hT, [
|
|
19158
19184
|
Ut.value ? (z(), j(ZS, {
|
|
19159
19185
|
key: 0,
|
|
19160
19186
|
modelValue: ye.value,
|
|
@@ -19430,7 +19456,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19430
19456
|
"placeholder",
|
|
19431
19457
|
"options"
|
|
19432
19458
|
]),
|
|
19433
|
-
P("div",
|
|
19459
|
+
P("div", gT, [I(w, {
|
|
19434
19460
|
modelValue: pt.value,
|
|
19435
19461
|
"onUpdate:modelValue": c[52] ||= (e) => pt.value = e,
|
|
19436
19462
|
disabled: e.playground,
|
|
@@ -19468,7 +19494,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19468
19494
|
key: 1,
|
|
19469
19495
|
legend: U(n)("label.webSearch")
|
|
19470
19496
|
}, {
|
|
19471
|
-
default: K(() => [I(
|
|
19497
|
+
default: K(() => [I(xw, {
|
|
19472
19498
|
"web-search": he.value,
|
|
19473
19499
|
"onUpdate:webSearch": c[54] ||= (e) => he.value = e,
|
|
19474
19500
|
"active-provider": Ht.value
|
|
@@ -19503,15 +19529,15 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19503
19529
|
})]),
|
|
19504
19530
|
_: 1
|
|
19505
19531
|
}, 8, ["legend"])) : M("", !0),
|
|
19506
|
-
P("div",
|
|
19532
|
+
P("div", _T, [P("p", vT, H(U(n)("hint.approvalChannels")), 1), (z(!0), N(k, null, Or(Ft.value, (t) => (z(), N(k, { key: t.key }, [Ut.value || !t.tools.every((e) => U(ee)(e)) ? (z(), j(oo, {
|
|
19507
19533
|
key: 0,
|
|
19508
19534
|
class: "mb-0"
|
|
19509
19535
|
}, {
|
|
19510
|
-
legend: K(() => [P("span",
|
|
19536
|
+
legend: K(() => [P("span", yT, [I(l, {
|
|
19511
19537
|
name: t.icon,
|
|
19512
19538
|
class: "text-16"
|
|
19513
19539
|
}, null, 8, ["name"]), F(" " + H(U(n)(`toolGroup.${t.key}`)), 1)])]),
|
|
19514
|
-
default: K(() => [P("p",
|
|
19540
|
+
default: K(() => [P("p", bT, H(U(n)(`toolGroupInfo.${t.key}`)), 1), P("div", xT, [(z(!0), N(k, null, Or(t.tools, (t) => (z(), N(k, { key: t }, [!U(ee)(t) || Ut.value ? (z(), N(k, { key: 0 }, [I(me, {
|
|
19515
19541
|
class: "flex-nowrap border-t border-surface-3 mr-0 px-md pt-md",
|
|
19516
19542
|
"model-value": D(t),
|
|
19517
19543
|
name: `tool.${t}`,
|
|
@@ -19521,9 +19547,9 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19521
19547
|
switch: "",
|
|
19522
19548
|
"onUpdate:modelValue": (e) => Vt(t, e)
|
|
19523
19549
|
}, {
|
|
19524
|
-
default: K(() => [P("div",
|
|
19525
|
-
P("div",
|
|
19526
|
-
P("strong",
|
|
19550
|
+
default: K(() => [P("div", ST, [
|
|
19551
|
+
P("div", CT, [
|
|
19552
|
+
P("strong", wT, H(U(n)(`agent.tool.${t}`)), 1),
|
|
19527
19553
|
t === U(T).ShowMultipleChoice ? (z(), j(rt, {
|
|
19528
19554
|
key: 0,
|
|
19529
19555
|
modifiers: "gray sm"
|
|
@@ -19531,9 +19557,9 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19531
19557
|
default: K(() => [F(H(U(n)("label.deprecated")), 1)]),
|
|
19532
19558
|
_: 1
|
|
19533
19559
|
})) : M("", !0),
|
|
19534
|
-
Rt(t) ? (z(), j(
|
|
19560
|
+
Rt(t) ? (z(), j(KC, { key: 1 })) : M("", !0)
|
|
19535
19561
|
]),
|
|
19536
|
-
P("small",
|
|
19562
|
+
P("small", TT, H(U(n)(`hint.tool.${t}`)), 1),
|
|
19537
19563
|
U(ee)(t) && U(S)(t) ? (z(), N("div", {
|
|
19538
19564
|
key: 0,
|
|
19539
19565
|
class: "flex items-center gap-4 self-start mt-4 pt-4 w-full border-t border-surface-3",
|
|
@@ -19556,7 +19582,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19556
19582
|
class: "text-12"
|
|
19557
19583
|
}), F(" " + H(U(n)("label.teams")), 1)]),
|
|
19558
19584
|
_: 1
|
|
19559
|
-
})], 8,
|
|
19585
|
+
})], 8, ET)) : M("", !0)
|
|
19560
19586
|
])]),
|
|
19561
19587
|
_: 2
|
|
19562
19588
|
}, 1032, [
|
|
@@ -19570,7 +19596,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19570
19596
|
modifiers: "details",
|
|
19571
19597
|
class: "border border-surface-3 rounded-lg mx-md mb-md"
|
|
19572
19598
|
}, {
|
|
19573
|
-
default: K(() => [P("div",
|
|
19599
|
+
default: K(() => [P("div", DT, [
|
|
19574
19600
|
t === U(T).ShowForm ? (z(), N(k, { key: 0 }, [I(w, {
|
|
19575
19601
|
modelValue: Pe.value,
|
|
19576
19602
|
"onUpdate:modelValue": c[56] ||= (e) => Pe.value = e,
|
|
@@ -19651,7 +19677,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19651
19677
|
_: 2
|
|
19652
19678
|
}, 1024)) : M("", !0)], 64))), 128))])
|
|
19653
19679
|
]),
|
|
19654
|
-
"panel::embed": K(() => [P("div",
|
|
19680
|
+
"panel::embed": K(() => [P("div", OT, [
|
|
19655
19681
|
Ct.value.includes(U(oe).Widget) ? M("", !0) : (z(), j(QS, {
|
|
19656
19682
|
key: 0,
|
|
19657
19683
|
level: "warning",
|
|
@@ -19668,8 +19694,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19668
19694
|
default: K(() => [F(H(U(n)("hint.channelAppDisabled")), 1)]),
|
|
19669
19695
|
_: 1
|
|
19670
19696
|
})),
|
|
19671
|
-
P("div", null, [P("h3",
|
|
19672
|
-
I(
|
|
19697
|
+
P("div", null, [P("h3", kT, H(U(n)("label.chatWidget")), 1), P("p", AT, H(U(n)("hint.embedCode")), 1)]),
|
|
19698
|
+
I(Tw, { source: qt.value }, {
|
|
19673
19699
|
default: K(() => [I(Xe, {
|
|
19674
19700
|
code: qt.value,
|
|
19675
19701
|
language: "html",
|
|
@@ -19678,7 +19704,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19678
19704
|
}, null, 8, ["code"])]),
|
|
19679
19705
|
_: 1
|
|
19680
19706
|
}, 8, ["source"]),
|
|
19681
|
-
e.playground ? M("", !0) : (z(), N("div",
|
|
19707
|
+
e.playground ? M("", !0) : (z(), N("div", jT, [
|
|
19682
19708
|
I(w, {
|
|
19683
19709
|
modelValue: Ie.value,
|
|
19684
19710
|
"onUpdate:modelValue": c[60] ||= (e) => Ie.value = e,
|
|
@@ -19697,7 +19723,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19697
19723
|
modifiers: "details",
|
|
19698
19724
|
class: "border border-surface-3 rounded-lg mb-md"
|
|
19699
19725
|
}, {
|
|
19700
|
-
default: K(() => [P("div",
|
|
19726
|
+
default: K(() => [P("div", MT, [
|
|
19701
19727
|
I(w, {
|
|
19702
19728
|
modelValue: Le.value,
|
|
19703
19729
|
"onUpdate:modelValue": c[61] ||= (e) => Le.value = e,
|
|
@@ -19758,7 +19784,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19758
19784
|
class: "mb-0"
|
|
19759
19785
|
}, {
|
|
19760
19786
|
default: K(() => [
|
|
19761
|
-
P("p",
|
|
19787
|
+
P("p", NT, H(U(n)("hint.externalContextSchema")), 1),
|
|
19762
19788
|
I(ZS, {
|
|
19763
19789
|
modelValue: kt.value,
|
|
19764
19790
|
"onUpdate:modelValue": c[63] ||= (e) => kt.value = e,
|
|
@@ -19806,8 +19832,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19806
19832
|
_: 1
|
|
19807
19833
|
}, 8, ["legend"])
|
|
19808
19834
|
])),
|
|
19809
|
-
P("div", null, [P("h3",
|
|
19810
|
-
I(
|
|
19835
|
+
P("div", null, [P("h3", PT, H(U(n)("label.iframe")), 1), P("p", FT, H(U(n)("hint.embedIframe")), 1)]),
|
|
19836
|
+
I(Tw, { source: Jt.value }, {
|
|
19811
19837
|
default: K(() => [I(Xe, {
|
|
19812
19838
|
code: Jt.value,
|
|
19813
19839
|
language: "html",
|
|
@@ -19816,8 +19842,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19816
19842
|
}, null, 8, ["code"])]),
|
|
19817
19843
|
_: 1
|
|
19818
19844
|
}, 8, ["source"]),
|
|
19819
|
-
P("div", null, [P("h4",
|
|
19820
|
-
I(
|
|
19845
|
+
P("div", null, [P("h4", IT, H(U(n)("label.preview")), 1), P("p", LT, H(U(n)("hint.embedPreview")), 1)]),
|
|
19846
|
+
I(Tw, { source: Kt.value }, {
|
|
19821
19847
|
actions: K(() => [I(et, {
|
|
19822
19848
|
modifiers: "action-quiet-small",
|
|
19823
19849
|
icon: "ri:eye-line",
|
|
@@ -19825,12 +19851,12 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19825
19851
|
href: Kt.value,
|
|
19826
19852
|
target: "_blank"
|
|
19827
19853
|
}, null, 8, ["label", "href"])]),
|
|
19828
|
-
default: K(() => [P("code",
|
|
19854
|
+
default: K(() => [P("code", RT, H(Kt.value), 1)]),
|
|
19829
19855
|
_: 1
|
|
19830
19856
|
}, 8, ["source"])
|
|
19831
19857
|
])]),
|
|
19832
19858
|
"panel::security": K(() => [I(oo, { legend: U(n)("label.rateLimits") }, {
|
|
19833
|
-
default: K(() => [P("div",
|
|
19859
|
+
default: K(() => [P("div", zT, [
|
|
19834
19860
|
I(w, {
|
|
19835
19861
|
modelValue: Te.value,
|
|
19836
19862
|
"onUpdate:modelValue": c[68] ||= (e) => Te.value = e,
|
|
@@ -19943,7 +19969,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
19943
19969
|
}, 8, ["items"]), V(s.$slots, "default")]);
|
|
19944
19970
|
};
|
|
19945
19971
|
}
|
|
19946
|
-
}),
|
|
19972
|
+
}), VT = ["aria-current", "title"], HT = /* @__PURE__ */ L({
|
|
19947
19973
|
__name: "PkChatSidebarConversationItem",
|
|
19948
19974
|
props: /*@__PURE__*/ gr({
|
|
19949
19975
|
conversation: {},
|
|
@@ -20000,7 +20026,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20000
20026
|
"aria-current": e.active ? "page" : void 0,
|
|
20001
20027
|
title: o.value,
|
|
20002
20028
|
onClick: n[4] ||= (e) => i("select")
|
|
20003
|
-
}, H(o.value), 9,
|
|
20029
|
+
}, H(o.value), 9, VT), I(f, _r({
|
|
20004
20030
|
placement: "bottom-end",
|
|
20005
20031
|
modifiers: "menu",
|
|
20006
20032
|
flip: !0,
|
|
@@ -20033,19 +20059,19 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20033
20059
|
}, 16)], 64))], 2);
|
|
20034
20060
|
};
|
|
20035
20061
|
}
|
|
20036
|
-
}),
|
|
20062
|
+
}), UT = ["inert", "aria-label"], WT = { class: "pk-chat-sidebar__header" }, GT = ["title"], KT = { class: "pk-chat-sidebar__actions" }, qT = {
|
|
20037
20063
|
key: 0,
|
|
20038
20064
|
class: "pk-chat-sidebar__list vv-skeleton"
|
|
20039
|
-
},
|
|
20065
|
+
}, JT = {
|
|
20040
20066
|
key: 1,
|
|
20041
20067
|
class: "pk-chat-sidebar__list"
|
|
20042
|
-
},
|
|
20068
|
+
}, YT = {
|
|
20043
20069
|
key: 0,
|
|
20044
20070
|
class: "pk-chat-sidebar__no-results"
|
|
20045
|
-
},
|
|
20071
|
+
}, XT = { class: "pk-chat-sidebar__group-label" }, ZT = {
|
|
20046
20072
|
key: 2,
|
|
20047
20073
|
class: "pk-chat-sidebar__footer"
|
|
20048
|
-
},
|
|
20074
|
+
}, QT = 864e5, $T = /* @__PURE__ */ L({
|
|
20049
20075
|
__name: "PkChatSidebar",
|
|
20050
20076
|
props: /*@__PURE__*/ gr({
|
|
20051
20077
|
agentId: {},
|
|
@@ -20081,7 +20107,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20081
20107
|
};
|
|
20082
20108
|
for (let n of w.value) {
|
|
20083
20109
|
let r = n.lastMessageAt ? new Date(n.lastMessageAt).getTime() : 0;
|
|
20084
|
-
r >= e ? t.today.push(n) : r >= e -
|
|
20110
|
+
r >= e ? t.today.push(n) : r >= e - QT ? t.yesterday.push(n) : r >= e - 7 * QT ? t.last7Days.push(n) : r >= e - 30 * QT ? t.last30Days.push(n) : t.older.push(n);
|
|
20085
20111
|
}
|
|
20086
20112
|
return Object.entries(t).filter(([, e]) => e.length > 0).map(([e, t]) => ({
|
|
20087
20113
|
key: e,
|
|
@@ -20124,7 +20150,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20124
20150
|
"aria-label": U(s)("label.conversations"),
|
|
20125
20151
|
onKeydown: se
|
|
20126
20152
|
}, [
|
|
20127
|
-
P("header",
|
|
20153
|
+
P("header", WT, [
|
|
20128
20154
|
e.organizationLogo || e.organizationName ? (z(), j(gn, {
|
|
20129
20155
|
key: 0,
|
|
20130
20156
|
modifiers: "surface ring",
|
|
@@ -20136,7 +20162,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20136
20162
|
key: 1,
|
|
20137
20163
|
class: "pk-chat-sidebar__org-name",
|
|
20138
20164
|
title: e.organizationName
|
|
20139
|
-
}, H(e.organizationName), 9,
|
|
20165
|
+
}, H(e.organizationName), 9, GT)) : M("", !0),
|
|
20140
20166
|
I(a, {
|
|
20141
20167
|
class: "ml-auto",
|
|
20142
20168
|
icon: U(i) ? "ri:close-line" : "ri:sidebar-fold-line",
|
|
@@ -20150,8 +20176,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20150
20176
|
"title"
|
|
20151
20177
|
])
|
|
20152
20178
|
]),
|
|
20153
|
-
P("div",
|
|
20154
|
-
e.agents ? (z(), j(
|
|
20179
|
+
P("div", KT, [
|
|
20180
|
+
e.agents ? (z(), j(HC, {
|
|
20155
20181
|
key: 0,
|
|
20156
20182
|
agents: e.agents,
|
|
20157
20183
|
"model-value": e.agentId,
|
|
@@ -20173,13 +20199,13 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20173
20199
|
placeholder: U(s)("placeholder.search")
|
|
20174
20200
|
}, null, 8, ["modelValue", "placeholder"])
|
|
20175
20201
|
]),
|
|
20176
|
-
U(u) && U(l).length === 0 ? (z(), N("div",
|
|
20202
|
+
U(u) && U(l).length === 0 ? (z(), N("div", qT, [(z(), N(k, null, Or(6, (e) => P("div", {
|
|
20177
20203
|
key: e,
|
|
20178
20204
|
class: "vv-skeleton__item rounded-md h-36"
|
|
20179
|
-
})), 64))])) : (z(), N("nav",
|
|
20205
|
+
})), 64))])) : (z(), N("nav", JT, [te.value.length === 0 ? (z(), N("p", YT, H(U(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, Or(te.value, (t) => (z(), N("div", {
|
|
20180
20206
|
key: t.key,
|
|
20181
20207
|
class: "pk-chat-sidebar__group"
|
|
20182
|
-
}, [P("span",
|
|
20208
|
+
}, [P("span", XT, H(t.label), 1), (z(!0), N(k, null, Or(t.items, (t) => (z(), j(HT, {
|
|
20183
20209
|
key: t.id,
|
|
20184
20210
|
"editing-title": U(_),
|
|
20185
20211
|
"onUpdate:editingTitle": n[4] ||= (e) => mr(_) ? _.value = e : null,
|
|
@@ -20208,44 +20234,44 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20208
20234
|
"onDelete",
|
|
20209
20235
|
"onFiles"
|
|
20210
20236
|
]))), 128))]))), 128))])),
|
|
20211
|
-
t.$slots.footer ? (z(), N("footer",
|
|
20212
|
-
], 46,
|
|
20237
|
+
t.$slots.footer ? (z(), N("footer", ZT, [V(t.$slots, "footer")])) : M("", !0)
|
|
20238
|
+
], 46, UT)], 64);
|
|
20213
20239
|
};
|
|
20214
20240
|
}
|
|
20215
|
-
}),
|
|
20241
|
+
}), eE = { class: "pk-retry-countdown" }, tE = /* @__PURE__ */ L({
|
|
20216
20242
|
__name: "PkRetryCountdown",
|
|
20217
20243
|
props: {
|
|
20218
20244
|
countdown: {},
|
|
20219
20245
|
maxSeconds: {}
|
|
20220
20246
|
},
|
|
20221
20247
|
setup(e) {
|
|
20222
|
-
return (e, t) => (z(), N("div",
|
|
20248
|
+
return (e, t) => (z(), N("div", eE, [...t[0] ||= [dr("<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)]]));
|
|
20223
20249
|
}
|
|
20224
|
-
}),
|
|
20250
|
+
}), nE = {
|
|
20225
20251
|
key: 0,
|
|
20226
20252
|
class: "pk-tool-selection"
|
|
20227
|
-
},
|
|
20253
|
+
}, rE = { 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" }, iE = { class: "flex items-center bg-gray-lighten-1 text-white px-6 py-3 rounded" }, aE = { class: "font-semibold text-12 truncate" }, oE = {
|
|
20228
20254
|
key: 0,
|
|
20229
20255
|
class: "text-10 text-warning-darken-2 bg-surface-warning rounded px-4 py-2"
|
|
20230
|
-
},
|
|
20256
|
+
}, sE = ["title"], cE = { class: "font-mono text-10 text-word-3 truncate ml-auto" }, lE = { class: "border rounded-b border-surface-3" }, uE = {
|
|
20231
20257
|
key: 0,
|
|
20232
20258
|
class: "flex flex-col gap-6 p-8 border-b border-surface-3 text-12 text-word-2"
|
|
20233
|
-
},
|
|
20259
|
+
}, dE = { key: 0 }, fE = {
|
|
20234
20260
|
key: 1,
|
|
20235
20261
|
class: "flex items-center gap-4 text-warning-darken-2"
|
|
20236
|
-
},
|
|
20262
|
+
}, pE = { 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" }, mE = ["title"], hE = { class: "flex shrink-0" }, gE = { class: "pk-tool-selection__label" }, _E = { class: "tabular-nums truncate" }, vE = { class: "pk-tool-selection__groups" }, yE = { class: "flex flex-col gap-4 min-w-0" }, bE = { class: "flex items-center gap-6 min-w-0" }, xE = { class: "pk-tool-selection__label" }, SE = ["title"], CE = { class: "flex flex-wrap items-center gap-x-6 gap-y-2 text-10 text-word-3" }, wE = { key: 0 }, TE = {
|
|
20237
20263
|
key: 1,
|
|
20238
20264
|
class: "text-warning-darken-2 bg-surface-warning rounded px-4 py-2"
|
|
20239
|
-
},
|
|
20265
|
+
}, EE = {
|
|
20240
20266
|
key: 2,
|
|
20241
20267
|
class: "pk-tool-selection__label"
|
|
20242
|
-
},
|
|
20268
|
+
}, DE = {
|
|
20243
20269
|
key: 3,
|
|
20244
20270
|
class: "pk-tool-selection__tag rounded px-4 py-2"
|
|
20245
|
-
},
|
|
20271
|
+
}, OE = {
|
|
20246
20272
|
key: 4,
|
|
20247
20273
|
class: "pk-tool-selection__tag rounded px-4 py-2"
|
|
20248
|
-
},
|
|
20274
|
+
}, kE = ["title"], AE = { class: "text-10 text-word-2 tabular-nums" }, jE = /* @__PURE__ */ L({
|
|
20249
20275
|
__name: "PkToolSelection",
|
|
20250
20276
|
props: { message: {} },
|
|
20251
20277
|
setup(e) {
|
|
@@ -20287,32 +20313,32 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20287
20313
|
});
|
|
20288
20314
|
return (e, t) => {
|
|
20289
20315
|
let s = $n;
|
|
20290
|
-
return a.value ? (z(), N("section",
|
|
20291
|
-
P("div",
|
|
20316
|
+
return a.value ? (z(), N("section", nE, [P("header", rE, [
|
|
20317
|
+
P("div", iE, [I(s, {
|
|
20292
20318
|
name: "ri:filter-3-line",
|
|
20293
20319
|
class: "w-12 h-12"
|
|
20294
20320
|
})]),
|
|
20295
|
-
P("strong",
|
|
20296
|
-
a.value.decision.failed ? (z(), N("span",
|
|
20321
|
+
P("strong", aE, H(U(n)("toolSelection.title")), 1),
|
|
20322
|
+
a.value.decision.failed ? (z(), N("span", oE, H(U(n)("toolSelection.failed")), 1)) : (z(), N("span", {
|
|
20297
20323
|
key: 1,
|
|
20298
20324
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
|
|
20299
20325
|
title: U(n)(`toolSelection.modeHint.${a.value.decision.mode}`)
|
|
20300
|
-
}, H(U(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9,
|
|
20301
|
-
P("code",
|
|
20302
|
-
]), P("div",
|
|
20303
|
-
a.value.decision.failed || a.value.missed > 0 ? (z(), N("div",
|
|
20326
|
+
}, H(U(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9, sE)),
|
|
20327
|
+
P("code", cE, H(U(pe)), 1)
|
|
20328
|
+
]), P("div", lE, [
|
|
20329
|
+
a.value.decision.failed || a.value.missed > 0 ? (z(), N("div", uE, [a.value.decision.failed ? (z(), N("p", dE, H(U(n)("toolSelection.leadFailed", { budget: U(r)(a.value.decision.budgetMs, "integer") })), 1)) : M("", !0), a.value.missed > 0 ? (z(), N("p", fE, [I(s, {
|
|
20304
20330
|
name: "ri:error-warning-line",
|
|
20305
20331
|
class: "shrink-0"
|
|
20306
20332
|
}), F(" " + H(U(n)(a.value.decision.mode === "active" ? "toolSelection.missedActive" : "toolSelection.missedShadow", a.value.missed)), 1)])) : M("", !0)])) : M("", !0),
|
|
20307
|
-
P("dl",
|
|
20333
|
+
P("dl", pE, [(z(!0), N(k, null, Or(o.value, (e) => (z(), N("div", {
|
|
20308
20334
|
key: e.icon,
|
|
20309
20335
|
class: "flex items-center gap-6 min-w-0",
|
|
20310
20336
|
title: e.label
|
|
20311
|
-
}, [P("dt",
|
|
20337
|
+
}, [P("dt", hE, [I(s, {
|
|
20312
20338
|
name: e.icon,
|
|
20313
20339
|
"aria-hidden": "true"
|
|
20314
|
-
}, null, 8, ["name"]), P("span",
|
|
20315
|
-
P("ul",
|
|
20340
|
+
}, null, 8, ["name"]), P("span", gE, H(e.label), 1)]), P("dd", _E, H(e.value), 1)], 8, mE))), 128))]),
|
|
20341
|
+
P("ul", vE, [(z(!0), N(k, null, Or(a.value.groups, (e) => (z(), N("li", {
|
|
20316
20342
|
key: e.id,
|
|
20317
20343
|
class: yr(["pk-tool-selection__group", {
|
|
20318
20344
|
"pk-tool-selection__group--selected": e.selected,
|
|
@@ -20323,24 +20349,24 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20323
20349
|
name: e.selected ? "ri:check-line" : "ri:subtract-line",
|
|
20324
20350
|
class: "pk-tool-selection__mark shrink-0"
|
|
20325
20351
|
}, null, 8, ["name"]),
|
|
20326
|
-
P("div",
|
|
20352
|
+
P("div", yE, [P("span", bE, [
|
|
20327
20353
|
I(s, {
|
|
20328
20354
|
name: i[e.kind],
|
|
20329
20355
|
class: "shrink-0 w-14 h-14",
|
|
20330
20356
|
title: U(n)(`toolSelection.kind.${e.kind}`),
|
|
20331
20357
|
"aria-hidden": "true"
|
|
20332
20358
|
}, null, 8, ["name", "title"]),
|
|
20333
|
-
P("span",
|
|
20359
|
+
P("span", xE, H(U(n)(`toolSelection.kind.${e.kind}`)), 1),
|
|
20334
20360
|
P("span", {
|
|
20335
20361
|
class: "pk-tool-selection__name truncate",
|
|
20336
20362
|
title: e.name
|
|
20337
|
-
}, H(e.name), 9,
|
|
20338
|
-
]), P("span",
|
|
20339
|
-
e.kind === "mcp" ? (z(), N("span",
|
|
20340
|
-
e.used && !e.selected ? (z(), N("span",
|
|
20341
|
-
e.used ? (z(), N("span",
|
|
20342
|
-
e.enabled ? (z(), N("span",
|
|
20343
|
-
e.seeded ? (z(), N("span",
|
|
20363
|
+
}, H(e.name), 9, SE)
|
|
20364
|
+
]), P("span", CE, [
|
|
20365
|
+
e.kind === "mcp" ? (z(), N("span", wE, H(U(n)("toolSelection.tools", e.tools)), 1)) : M("", !0),
|
|
20366
|
+
e.used && !e.selected ? (z(), N("span", TE, H(U(n)("toolSelection.missed")), 1)) : M("", !0),
|
|
20367
|
+
e.used ? (z(), N("span", EE, H(U(n)("toolSelection.used")), 1)) : M("", !0),
|
|
20368
|
+
e.enabled ? (z(), N("span", DE, H(U(n)("toolSelection.enabled")), 1)) : M("", !0),
|
|
20369
|
+
e.seeded ? (z(), N("span", OE, H(U(n)("toolSelection.seeded")), 1)) : M("", !0)
|
|
20344
20370
|
])]),
|
|
20345
20371
|
e.probability === void 0 ? M("", !0) : (z(), N("div", {
|
|
20346
20372
|
key: 0,
|
|
@@ -20353,18 +20379,18 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20353
20379
|
"--pk-tool-selection-probability": `${e.probability * 100}%`,
|
|
20354
20380
|
"--pk-tool-selection-threshold": `${a.value.decision.threshold * 100}%`
|
|
20355
20381
|
})
|
|
20356
|
-
}, null, 4), P("span",
|
|
20382
|
+
}, null, 4), P("span", AE, H(U(r)(e.probability, "decimal")), 1)], 8, kE))
|
|
20357
20383
|
], 2))), 128))])
|
|
20358
20384
|
])])) : M("", !0);
|
|
20359
20385
|
};
|
|
20360
20386
|
}
|
|
20361
|
-
}),
|
|
20387
|
+
}), ME = ["aria-labelledby"], NE = { 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" }, PE = { class: "flex items-center bg-gray-lighten-1 text-white px-6 py-3 rounded" }, FE = ["id"], IE = {
|
|
20362
20388
|
key: 0,
|
|
20363
20389
|
class: "text-10 text-warning-darken-2 bg-surface-warning rounded px-4 py-2"
|
|
20364
|
-
},
|
|
20390
|
+
}, LE = ["title"], RE = { class: "u-visually-hidden" }, zE = ["title"], BE = { class: "u-visually-hidden" }, VE = { class: "border rounded-b border-surface-3" }, HE = {
|
|
20365
20391
|
key: 0,
|
|
20366
20392
|
class: "p-8 border-b border-surface-3 text-12 text-word-2"
|
|
20367
|
-
},
|
|
20393
|
+
}, UE = ["title"], WE = { class: "flex shrink-0" }, GE = { class: "u-visually-hidden" }, KE = { class: "tabular-nums truncate" }, qE = { key: 1 }, JE = ["title"], YE = ["title"], XE = { class: "text-10 text-word-2 tabular-nums" }, ZE = .5, QE = /* @__PURE__ */ L({
|
|
20368
20394
|
__name: "PkTurnEvaluation",
|
|
20369
20395
|
props: { message: {} },
|
|
20370
20396
|
setup(e) {
|
|
@@ -20408,79 +20434,79 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20408
20434
|
key: 0,
|
|
20409
20435
|
class: "pk-turn-evaluation",
|
|
20410
20436
|
"aria-labelledby": U(a)
|
|
20411
|
-
}, [P("header",
|
|
20412
|
-
P("div",
|
|
20437
|
+
}, [P("header", NE, [
|
|
20438
|
+
P("div", PE, [I(r, {
|
|
20413
20439
|
name: "ri:scales-line",
|
|
20414
20440
|
class: "w-12 h-12"
|
|
20415
20441
|
})]),
|
|
20416
20442
|
P("strong", {
|
|
20417
20443
|
id: U(a),
|
|
20418
20444
|
class: "font-semibold text-12 truncate"
|
|
20419
|
-
}, H(U(n)("turnEvaluation.title")), 9,
|
|
20420
|
-
o.value.failed ? (z(), N("span",
|
|
20445
|
+
}, H(U(n)("turnEvaluation.title")), 9, FE),
|
|
20446
|
+
o.value.failed ? (z(), N("span", IE, H(U(n)("toolSelection.failed")), 1)) : (z(), N("span", {
|
|
20421
20447
|
key: 1,
|
|
20422
20448
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
|
|
20423
20449
|
title: U(n)("turnEvaluation.modeHint")
|
|
20424
|
-
}, [F(H(U(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span",
|
|
20450
|
+
}, [F(H(U(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span", RE, H(U(n)("turnEvaluation.modeHint")), 1)], 8, LE)),
|
|
20425
20451
|
P("code", {
|
|
20426
20452
|
class: "font-mono text-10 text-word-3 truncate ml-auto",
|
|
20427
20453
|
title: U(n)("turnEvaluation.version", { version: o.value.version })
|
|
20428
|
-
}, [F(H(U(pe)) + " ", 1), P("span",
|
|
20429
|
-
]), P("div",
|
|
20430
|
-
o.value.failed ? (z(), N("p",
|
|
20454
|
+
}, [F(H(U(pe)) + " ", 1), P("span", BE, H(U(n)("turnEvaluation.version", { version: o.value.version })), 1)], 8, zE)
|
|
20455
|
+
]), P("div", VE, [
|
|
20456
|
+
o.value.failed ? (z(), N("p", HE, H(U(n)("turnEvaluation.leadFailed", { budget: U(i)(o.value.budgetMs, "integer") })), 1)) : M("", !0),
|
|
20431
20457
|
P("dl", { class: yr(["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, Or(l.value, (e) => (z(), N("div", {
|
|
20432
20458
|
key: e.icon,
|
|
20433
20459
|
class: "flex items-center gap-6 min-w-0",
|
|
20434
20460
|
title: e.label
|
|
20435
|
-
}, [P("dt",
|
|
20461
|
+
}, [P("dt", WE, [I(r, {
|
|
20436
20462
|
name: e.icon,
|
|
20437
20463
|
"aria-hidden": "true"
|
|
20438
|
-
}, null, 8, ["name"]), P("span",
|
|
20439
|
-
c.value.length > 0 ? (z(), N("ul",
|
|
20464
|
+
}, null, 8, ["name"]), P("span", GE, H(e.label), 1)]), P("dd", KE, H(e.value), 1)], 8, UE))), 128))], 2),
|
|
20465
|
+
c.value.length > 0 ? (z(), N("ul", qE, [(z(!0), N(k, null, Or(c.value, (e) => (z(), N("li", {
|
|
20440
20466
|
key: e.id,
|
|
20441
|
-
class: yr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >=
|
|
20467
|
+
class: yr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >= ZE }])
|
|
20442
20468
|
}, [P("span", {
|
|
20443
20469
|
class: "truncate",
|
|
20444
20470
|
title: e.label
|
|
20445
|
-
}, H(e.label), 9,
|
|
20471
|
+
}, H(e.label), 9, JE), P("div", {
|
|
20446
20472
|
class: "pk-turn-evaluation__probability",
|
|
20447
20473
|
title: U(n)("turnEvaluation.probability")
|
|
20448
20474
|
}, [P("span", {
|
|
20449
20475
|
class: "pk-turn-evaluation__bar",
|
|
20450
20476
|
"aria-hidden": "true",
|
|
20451
20477
|
style: xr({ "--pk-turn-evaluation-probability": `${e.probability * 100}%` })
|
|
20452
|
-
}, null, 4), P("span",
|
|
20453
|
-
])], 8,
|
|
20478
|
+
}, null, 4), P("span", XE, H(U(i)(e.probability, "decimal")), 1)], 8, YE)], 2))), 128))])) : M("", !0)
|
|
20479
|
+
])], 8, ME)) : M("", !0);
|
|
20454
20480
|
};
|
|
20455
20481
|
}
|
|
20456
|
-
}),
|
|
20482
|
+
}), $E = { class: "flex flex-col gap-16" }, eD = {
|
|
20457
20483
|
key: 0,
|
|
20458
20484
|
class: "grid grid-cols-2 gap-x-10 text-12 text-word-3 justify-between"
|
|
20459
|
-
},
|
|
20485
|
+
}, tD = { class: "flex flex-col gap-y-4" }, nD = {
|
|
20460
20486
|
key: 1,
|
|
20461
20487
|
class: "flex items-center gap-4 min-w-0"
|
|
20462
|
-
},
|
|
20488
|
+
}, rD = { class: "truncate" }, iD = {
|
|
20463
20489
|
key: 2,
|
|
20464
20490
|
class: "flex items-center gap-4 min-w-0"
|
|
20465
|
-
},
|
|
20491
|
+
}, aD = { class: "truncate" }, oD = { key: 0 }, sD = {
|
|
20466
20492
|
key: 3,
|
|
20467
20493
|
class: "flex items-center gap-4"
|
|
20468
|
-
},
|
|
20494
|
+
}, cD = {
|
|
20469
20495
|
key: 4,
|
|
20470
20496
|
class: "flex items-center gap-4"
|
|
20471
|
-
},
|
|
20497
|
+
}, lD = { class: "flex flex-col gap-y-4 items-end" }, uD = ["datetime"], dD = {
|
|
20472
20498
|
key: 1,
|
|
20473
20499
|
class: "flex items-center gap-4"
|
|
20474
|
-
},
|
|
20500
|
+
}, fD = { key: 0 }, pD = {
|
|
20475
20501
|
key: 2,
|
|
20476
20502
|
class: "flex items-center gap-4"
|
|
20477
|
-
},
|
|
20503
|
+
}, mD = {
|
|
20478
20504
|
key: 3,
|
|
20479
20505
|
class: "flex items-center gap-4 min-w-0"
|
|
20480
|
-
},
|
|
20506
|
+
}, hD = { class: "truncate" }, gD = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, _D = { class: "font-semibold truncate" }, vD = ["title"], yD = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, bD = { class: "font-semibold truncate" }, xD = ["title"], SD = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, CD = { class: "font-semibold truncate" }, wD = ["title"], TD = { class: "flex flex-col gap-16" }, ED = { class: "flex items-center bg-gray-lighten-1 text-white px-6 py-3 rounded" }, DD = { class: "tracking-widest border-r border-gray-lighten-3 pr-4" }, OD = { class: "font-bold text-12" }, kD = { class: "text-10" }, AD = { class: "font-mono text-10 text-word-2 truncate" }, jD = {
|
|
20481
20507
|
key: 0,
|
|
20482
20508
|
class: "text-10 text-word-4 whitespace-nowrap ml-auto"
|
|
20483
|
-
},
|
|
20509
|
+
}, MD = { key: 0 }, ND = { class: "border rounded-b border-surface-3" }, PD = { class: "font-bold text-10 uppercase p-8 border-b border-surface-3" }, FD = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, ID = /* @__PURE__ */ L({
|
|
20484
20510
|
__name: "PkMessageParts",
|
|
20485
20511
|
props: { message: {} },
|
|
20486
20512
|
setup(e) {
|
|
@@ -20511,29 +20537,29 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20511
20537
|
}), o = A(() => t.message?.metadata?.transport === ae.Voice), s = A(() => t.message?.metadata?.externalContext && Object.keys(t.message.metadata.externalContext).length > 0), c = A(() => t.message?.metadata?.platformContext && Object.keys(t.message.metadata.platformContext).length > 0);
|
|
20512
20538
|
return (t, l) => {
|
|
20513
20539
|
let u = $n, d = Vn, f = Hn, p = kr("PjResizablePanel");
|
|
20514
|
-
return z(), N("div",
|
|
20515
|
-
e.message.metadata?.model || o.value ? (z(), N("div",
|
|
20516
|
-
e.message.metadata?.model ? (z(), j(
|
|
20540
|
+
return z(), N("div", $E, [
|
|
20541
|
+
e.message.metadata?.model || o.value ? (z(), N("div", eD, [P("div", tD, [
|
|
20542
|
+
e.message.metadata?.model ? (z(), j(rw, {
|
|
20517
20543
|
key: 0,
|
|
20518
20544
|
"model-name": e.message.metadata?.model,
|
|
20519
20545
|
historical: ""
|
|
20520
20546
|
}, null, 8, ["model-name"])) : M("", !0),
|
|
20521
|
-
e.message?.metadata?.resolvedProvider ? (z(), N("span",
|
|
20547
|
+
e.message?.metadata?.resolvedProvider ? (z(), N("span", nD, [I(u, {
|
|
20522
20548
|
name: "ri:cloud-line",
|
|
20523
20549
|
class: "shrink-0"
|
|
20524
|
-
}), P("span",
|
|
20525
|
-
e.message?.metadata?.totalTokens ? (z(), N("span",
|
|
20550
|
+
}), P("span", rD, [F(H(e.message.metadata.resolvedProvider) + " ", 1), e.message.metadata.resolvedModelId ? (z(), N(k, { key: 0 }, [F(" (" + H(e.message.metadata.resolvedModelId) + ") ", 1)], 64)) : M("", !0)])])) : M("", !0),
|
|
20551
|
+
e.message?.metadata?.totalTokens ? (z(), N("span", iD, [I(u, {
|
|
20526
20552
|
name: "ri:ai-generate-2-line",
|
|
20527
20553
|
class: "shrink-0"
|
|
20528
|
-
}), P("span",
|
|
20529
|
-
e.message?.metadata?.zeroDataRetention ? (z(), N("span",
|
|
20554
|
+
}), P("span", aD, [F(H(t.$n(e.message.metadata.totalTokens, "integer")) + " " + H(t.$t("label.tokens")) + " ", 1), e.message?.metadata?.cachedTokens ? (z(), N("span", oD, " (" + H(t.$n(e.message.metadata.cachedTokens, "integer")) + " " + H(t.$t("label.cached")) + ") ", 1)) : M("", !0)])])) : M("", !0),
|
|
20555
|
+
e.message?.metadata?.zeroDataRetention ? (z(), N("span", sD, [I(u, {
|
|
20530
20556
|
name: "ri:shield-check-line",
|
|
20531
20557
|
class: "shrink-0"
|
|
20532
|
-
}), F(" " + H(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span",
|
|
20558
|
+
}), F(" " + H(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span", cD, [I(u, {
|
|
20533
20559
|
name: "ri:shield-check-line",
|
|
20534
20560
|
class: "shrink-0"
|
|
20535
20561
|
}), F(" " + H(t.$t("label.noPromptTraining")), 1)])) : M("", !0)
|
|
20536
|
-
]), P("div",
|
|
20562
|
+
]), P("div", lD, [
|
|
20537
20563
|
e.message?.metadata?.createdAt ? (z(), N("time", {
|
|
20538
20564
|
key: 0,
|
|
20539
20565
|
datetime: new Date(e.message.metadata.createdAt).toISOString(),
|
|
@@ -20541,8 +20567,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20541
20567
|
}, [I(u, {
|
|
20542
20568
|
name: "ri:time-line",
|
|
20543
20569
|
class: "shrink-0"
|
|
20544
|
-
}), F(" " + H(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8,
|
|
20545
|
-
e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div",
|
|
20570
|
+
}), F(" " + H(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8, uD)) : M("", !0),
|
|
20571
|
+
e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div", dD, [
|
|
20546
20572
|
I(u, {
|
|
20547
20573
|
name: "ri:hourglass-line",
|
|
20548
20574
|
class: "shrink-0"
|
|
@@ -20551,16 +20577,16 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20551
20577
|
date: e.message.metadata?.createdAt,
|
|
20552
20578
|
"end-date": e.message.metadata?.completedAt
|
|
20553
20579
|
}, null, 8, ["date", "end-date"]),
|
|
20554
|
-
e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span",
|
|
20580
|
+
e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span", fD, " (" + H(e.message.metadata.totalProviderAttemptCount) + " attempts) ", 1)) : M("", !0)
|
|
20555
20581
|
])) : M("", !0),
|
|
20556
|
-
e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span",
|
|
20582
|
+
e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span", pD, [I(u, {
|
|
20557
20583
|
name: "ri:wallet-line",
|
|
20558
20584
|
class: "shrink-0"
|
|
20559
20585
|
}), F(" " + H(t.$n(parseFloat(e.message.metadata.cost), "currencyUSD")), 1)])) : M("", !0),
|
|
20560
|
-
o.value ? (z(), N("span",
|
|
20586
|
+
o.value ? (z(), N("span", mD, [I(u, {
|
|
20561
20587
|
name: "ri:mic-line",
|
|
20562
20588
|
class: "shrink-0"
|
|
20563
|
-
}), P("span",
|
|
20589
|
+
}), P("span", hD, H(t.$t("label.spokenExchange")), 1)])) : M("", !0)
|
|
20564
20590
|
])])) : M("", !0),
|
|
20565
20591
|
a.value || c.value || s.value ? (z(), j(f, {
|
|
20566
20592
|
key: 1,
|
|
@@ -20573,10 +20599,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20573
20599
|
title: t.$t("label.platformContext"),
|
|
20574
20600
|
class: "border border-surface-3 rounded"
|
|
20575
20601
|
}, {
|
|
20576
|
-
default: K(() => [P("dl",
|
|
20602
|
+
default: K(() => [P("dl", gD, [(z(!0), N(k, null, Or(e.message.metadata?.platformContext, (e, t) => (z(), N(k, { key: t }, [P("dt", _D, H(U(Ne)(U(Pe)(t))), 1), P("dd", {
|
|
20577
20603
|
class: "truncate font-mono col-span-2",
|
|
20578
20604
|
title: String(e)
|
|
20579
|
-
}, H(e), 9,
|
|
20605
|
+
}, H(e), 9, vD)], 64))), 128))])]),
|
|
20580
20606
|
_: 1
|
|
20581
20607
|
}, 8, ["title"])) : M("", !0),
|
|
20582
20608
|
a.value ? (z(), j(d, {
|
|
@@ -20585,10 +20611,10 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20585
20611
|
title: t.$t("label.deviceContext"),
|
|
20586
20612
|
class: "border border-surface-3 rounded"
|
|
20587
20613
|
}, {
|
|
20588
|
-
default: K(() => [P("dl",
|
|
20614
|
+
default: K(() => [P("dl", yD, [(z(!0), N(k, null, Or(a.value, (e, t) => (z(), N(k, { key: t }, [P("dt", bD, H(U(Ne)(U(Pe)(t))), 1), P("dd", {
|
|
20589
20615
|
class: "truncate font-mono col-span-2",
|
|
20590
20616
|
title: String(e)
|
|
20591
|
-
}, H(e), 9,
|
|
20617
|
+
}, H(e), 9, xD)], 64))), 128))])]),
|
|
20592
20618
|
_: 1
|
|
20593
20619
|
}, 8, ["title"])) : M("", !0),
|
|
20594
20620
|
s.value ? (z(), j(d, {
|
|
@@ -20597,19 +20623,19 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20597
20623
|
title: t.$t("label.externalContext"),
|
|
20598
20624
|
class: "border border-surface-3 rounded"
|
|
20599
20625
|
}, {
|
|
20600
|
-
default: K(() => [P("dl",
|
|
20626
|
+
default: K(() => [P("dl", SD, [(z(!0), N(k, null, Or(e.message.metadata?.externalContext, (e, t) => (z(), N(k, { key: t }, [P("dt", CD, H(U(Ne)(U(Pe)(t))), 1), P("dd", {
|
|
20601
20627
|
class: "truncate font-mono col-span-2",
|
|
20602
20628
|
title: String(e)
|
|
20603
|
-
}, H(e), 9,
|
|
20629
|
+
}, H(e), 9, wD)], 64))), 128))])]),
|
|
20604
20630
|
_: 1
|
|
20605
20631
|
}, 8, ["title"])) : M("", !0)
|
|
20606
20632
|
]),
|
|
20607
20633
|
_: 1
|
|
20608
20634
|
})) : M("", !0),
|
|
20609
|
-
I(
|
|
20610
|
-
P("ol",
|
|
20635
|
+
I(jE, { message: e.message }, null, 8, ["message"]),
|
|
20636
|
+
P("ol", TD, [(z(!0), N(k, null, Or(n.value, (e, a) => (z(), N("li", { key: a }, [
|
|
20611
20637
|
P("span", { class: yr(["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": !U(ke)(e) && !U(Ae)(e) }]) }, [
|
|
20612
|
-
P("div",
|
|
20638
|
+
P("div", ED, [P("span", DD, [P("strong", OD, H(a + 1), 1), P("span", kD, "/" + H(n.value.length), 1)]), (U(ke)(e) || U(je)(e)) && U(ln)(e.state) ? (z(), j(u, {
|
|
20613
20639
|
key: 0,
|
|
20614
20640
|
name: "loading-loop",
|
|
20615
20641
|
class: "w-12 h-12 ml-4"
|
|
@@ -20618,11 +20644,11 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20618
20644
|
name: U(cn)(e) || "ri:question-line",
|
|
20619
20645
|
class: "w-12 h-12 ml-4"
|
|
20620
20646
|
}, null, 8, ["name"]))]),
|
|
20621
|
-
P("code",
|
|
20622
|
-
"toolCallId" in e && r(e.toolCallId) ? (z(), N("span",
|
|
20647
|
+
P("code", AD, H(U(Me)(e.type)), 1),
|
|
20648
|
+
"toolCallId" in e && r(e.toolCallId) ? (z(), N("span", jD, H(U(i)(r(e.toolCallId))), 1)) : M("", !0)
|
|
20623
20649
|
], 2),
|
|
20624
|
-
U(ke)(e) ? (z(), N("div",
|
|
20625
|
-
P("div",
|
|
20650
|
+
U(ke)(e) ? (z(), N("div", MD, [P("div", ND, [
|
|
20651
|
+
P("div", PD, H(t.$t("label.input")), 1),
|
|
20626
20652
|
I(p, {
|
|
20627
20653
|
"min-height": 128,
|
|
20628
20654
|
"fit-content": ""
|
|
@@ -20634,7 +20660,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20634
20660
|
}, null, 8, ["code"])]),
|
|
20635
20661
|
_: 2
|
|
20636
20662
|
}, 1024),
|
|
20637
|
-
e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div",
|
|
20663
|
+
e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div", FD, H(t.$t("label.output")), 1), I(p, {
|
|
20638
20664
|
"min-height": 128,
|
|
20639
20665
|
"fit-content": ""
|
|
20640
20666
|
}, {
|
|
@@ -20660,26 +20686,26 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20660
20686
|
_: 2
|
|
20661
20687
|
}, 1024)) : M("", !0)
|
|
20662
20688
|
]))), 128))]),
|
|
20663
|
-
I(
|
|
20689
|
+
I(QE, { message: e.message }, null, 8, ["message"])
|
|
20664
20690
|
]);
|
|
20665
20691
|
};
|
|
20666
20692
|
}
|
|
20667
|
-
}),
|
|
20693
|
+
}), LD = {
|
|
20668
20694
|
key: 0,
|
|
20669
20695
|
class: "border-t border-surface-3"
|
|
20670
|
-
},
|
|
20696
|
+
}, RD = { class: "flex flex-col" }, zD = ["onClick"], BD = { class: "flex items-center gap-4 shrink-0" }, VD = {
|
|
20671
20697
|
key: 0,
|
|
20672
20698
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2"
|
|
20673
|
-
},
|
|
20699
|
+
}, HD = { class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2 uppercase" }, UD = {
|
|
20674
20700
|
key: 0,
|
|
20675
20701
|
class: "border-t border-surface-3"
|
|
20676
|
-
},
|
|
20702
|
+
}, WD = {
|
|
20677
20703
|
key: 0,
|
|
20678
20704
|
class: "px-8 py-4 text-10 text-word-3 bg-surface-1 border-b border-surface-3"
|
|
20679
|
-
},
|
|
20705
|
+
}, GD = ["onClick"], KD = {
|
|
20680
20706
|
key: 0,
|
|
20681
20707
|
class: "px-8 py-6 bg-surface-1 border-t border-surface-3"
|
|
20682
|
-
},
|
|
20708
|
+
}, qD = { class: "flex justify-between items-center gap-4 min-w-0" }, JD = { class: "font-semibold text-12 truncate" }, YD = /* @__PURE__ */ L({
|
|
20683
20709
|
__name: "PkMessageDetail",
|
|
20684
20710
|
props: {
|
|
20685
20711
|
message: {},
|
|
@@ -20704,14 +20730,14 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20704
20730
|
};
|
|
20705
20731
|
return (s, c) => {
|
|
20706
20732
|
let l = Kn, u = $n, d = Vn;
|
|
20707
|
-
return z(), j(
|
|
20733
|
+
return z(), j(ID, { message: e.message }, ur({
|
|
20708
20734
|
subagent: K(({ part: t }) => [t.output?.reasoningChatId && (t.output?.subAgentId || t.input?.objective) ? (z(), j(d, {
|
|
20709
20735
|
key: 0,
|
|
20710
20736
|
title: t.output.subAgentId ? s.$t("label.subAgent") : s.$t("agent.tool.runWorker"),
|
|
20711
20737
|
modifiers: "details",
|
|
20712
20738
|
class: "border-t border-surface-3"
|
|
20713
20739
|
}, {
|
|
20714
|
-
default: K(() => [P("div",
|
|
20740
|
+
default: K(() => [P("div", qD, [P("strong", JD, H(t.output.subAgentName ?? t.input?.objective), 1), I(l, {
|
|
20715
20741
|
modifiers: "action-small",
|
|
20716
20742
|
icon: "ri:eye-line",
|
|
20717
20743
|
class: "text-10 shrink-0",
|
|
@@ -20730,7 +20756,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20730
20756
|
_: 2
|
|
20731
20757
|
}, [e.canReadDocuments ? {
|
|
20732
20758
|
name: "tool-search-in-knowledge-base",
|
|
20733
|
-
fn: K(({ part: d }) => [d.output?.results?.length ? (z(), N("div",
|
|
20759
|
+
fn: K(({ part: d }) => [d.output?.results?.length ? (z(), N("div", LD, [P("ul", RD, [(z(!0), N(k, null, Or(o(d.output.results), (o) => (z(), N("li", {
|
|
20734
20760
|
key: o.document.id,
|
|
20735
20761
|
class: "border-b border-surface-3 last:border-b-0"
|
|
20736
20762
|
}, [P("button", {
|
|
@@ -20746,9 +20772,9 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20746
20772
|
"name",
|
|
20747
20773
|
"url",
|
|
20748
20774
|
"filename"
|
|
20749
|
-
]), P("div",
|
|
20750
|
-
o.chunks.length > 1 ? (z(), N("span",
|
|
20751
|
-
P("span",
|
|
20775
|
+
]), P("div", BD, [
|
|
20776
|
+
o.chunks.length > 1 ? (z(), N("span", VD, H(o.chunks.length), 1)) : M("", !0),
|
|
20777
|
+
P("span", HD, H(o.document.language), 1),
|
|
20752
20778
|
I(l, {
|
|
20753
20779
|
modifiers: "action-quiet-small",
|
|
20754
20780
|
icon: "ri:eye-line",
|
|
@@ -20767,7 +20793,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20767
20793
|
name: t.has(o.document.id) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
20768
20794
|
class: "text-16 text-word-3"
|
|
20769
20795
|
}, null, 8, ["name"])
|
|
20770
|
-
])], 8,
|
|
20796
|
+
])], 8, zD), t.has(o.document.id) ? (z(), N("div", UD, [o.document.source.description ? (z(), N("div", WD, H(o.document.source.description), 1)) : M("", !0), (z(!0), N(k, null, Or(o.chunks, (e) => (z(), N("div", {
|
|
20771
20797
|
key: e.id,
|
|
20772
20798
|
class: "border-b border-surface-3 last:border-b-0"
|
|
20773
20799
|
}, [P("button", {
|
|
@@ -20783,7 +20809,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20783
20809
|
"similarity",
|
|
20784
20810
|
"max-similarity",
|
|
20785
20811
|
"expanded"
|
|
20786
|
-
])], 8,
|
|
20812
|
+
])], 8, GD), n.has(e.id) ? (z(), N("div", KD, [I(we, {
|
|
20787
20813
|
markdown: e.content,
|
|
20788
20814
|
class: "wysiwyg text-10"
|
|
20789
20815
|
}, null, 8, ["markdown"])])) : M("", !0)]))), 128))])) : M("", !0)]))), 128))])])) : M("", !0)]),
|
|
@@ -20791,19 +20817,19 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20791
20817
|
} : void 0]), 1032, ["message"]);
|
|
20792
20818
|
};
|
|
20793
20819
|
}
|
|
20794
|
-
}),
|
|
20820
|
+
}), XD = { class: "flex flex-col h-full bg-surface rounded-xl" }, ZD = { class: "sticky z-1 top-0 bg-surface-1 flex items-center justify-between gap-sm p-sm border-b border-surface-3" }, QD = { class: "flex items-center gap-sm min-w-0" }, $D = ["title"], eO = {
|
|
20795
20821
|
key: 1,
|
|
20796
20822
|
class: "text-14 font-bold"
|
|
20797
|
-
},
|
|
20823
|
+
}, tO = { class: "flex-1 flex flex-col gap-md p-md overflow-y-auto min-h-0" }, nO = { class: "flex flex-col" }, rO = { class: "text-12 font-medium text-word-2 mb-xs block" }, iO = ["placeholder", "disabled"], aO = { class: "flex justify-end mt-xs" }, oO = {
|
|
20798
20824
|
key: 1,
|
|
20799
20825
|
class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
|
|
20800
|
-
},
|
|
20826
|
+
}, sO = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, cO = { class: "text-12 text-word-3" }, lO = {
|
|
20801
20827
|
key: 2,
|
|
20802
20828
|
class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
|
|
20803
|
-
},
|
|
20829
|
+
}, uO = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, dO = { class: "text-12 font-medium text-word-2" }, fO = { class: "flex items-center gap-xs ml-auto" }, pO = {
|
|
20804
20830
|
key: 0,
|
|
20805
20831
|
class: "py-sm text-word-2 leading-normal"
|
|
20806
|
-
},
|
|
20832
|
+
}, mO = /* @__PURE__ */ L({
|
|
20807
20833
|
__name: "PkReasoningChat",
|
|
20808
20834
|
props: {
|
|
20809
20835
|
baseUrl: {},
|
|
@@ -20839,7 +20865,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20839
20865
|
}), p = A(() => f.value?.parts.find((e) => e.type === "text")?.text || "");
|
|
20840
20866
|
return (t, r) => {
|
|
20841
20867
|
let m = Kn, h = Un, g = $n;
|
|
20842
|
-
return z(), N("div",
|
|
20868
|
+
return z(), N("div", XD, [P("div", ZD, [P("div", QD, [I(gn, {
|
|
20843
20869
|
modifiers: "surface ring shrink-0",
|
|
20844
20870
|
class: "w-24 h-24",
|
|
20845
20871
|
name: e.name
|
|
@@ -20847,16 +20873,16 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20847
20873
|
key: 0,
|
|
20848
20874
|
class: "text-14 font-bold truncate",
|
|
20849
20875
|
title: e.name
|
|
20850
|
-
}, H(e.name), 9,
|
|
20876
|
+
}, H(e.name), 9, $D)) : (z(), N("strong", eO, H(U(n)("label.reasoningAgentTester")), 1))]), d.value ? (z(), j(m, {
|
|
20851
20877
|
key: 0,
|
|
20852
20878
|
icon: "ri:reset-right-line",
|
|
20853
20879
|
modifiers: "action-quiet",
|
|
20854
20880
|
title: U(n)("action.clear"),
|
|
20855
20881
|
disabled: u.value,
|
|
20856
20882
|
onClick: l
|
|
20857
|
-
}, null, 8, ["title", "disabled"])) : M("", !0)]), P("div",
|
|
20858
|
-
P("div",
|
|
20859
|
-
P("label",
|
|
20883
|
+
}, null, 8, ["title", "disabled"])) : M("", !0)]), P("div", tO, [
|
|
20884
|
+
P("div", nO, [
|
|
20885
|
+
P("label", rO, H(U(n)("label.question")), 1),
|
|
20860
20886
|
Rr(P("textarea", {
|
|
20861
20887
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
20862
20888
|
placeholder: U(n)("placeholder.enterYourQuestion"),
|
|
@@ -20864,8 +20890,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20864
20890
|
class: "u-field w-full p-sm font-inherit text-14 resize-y min-h-60",
|
|
20865
20891
|
rows: "3",
|
|
20866
20892
|
onKeydown: c
|
|
20867
|
-
}, null, 40,
|
|
20868
|
-
P("div",
|
|
20893
|
+
}, null, 40, iO), [[Lr, a.value]]),
|
|
20894
|
+
P("div", aO, [I(m, {
|
|
20869
20895
|
label: U(n)("action.submit"),
|
|
20870
20896
|
loading: u.value,
|
|
20871
20897
|
disabled: !a.value.trim() || u.value,
|
|
@@ -20882,17 +20908,17 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20882
20908
|
title: U(n)("label.error"),
|
|
20883
20909
|
content: o.value.error.message
|
|
20884
20910
|
}, null, 8, ["title", "content"])) : M("", !0),
|
|
20885
|
-
u.value && !f.value ? (z(), N("div",
|
|
20911
|
+
u.value && !f.value ? (z(), N("div", oO, [P("div", sO, [I(g, {
|
|
20886
20912
|
name: "loading-loop",
|
|
20887
20913
|
class: "w-16 h-16"
|
|
20888
|
-
}), P("span",
|
|
20889
|
-
f.value ? (z(), N("div",
|
|
20914
|
+
}), P("span", cO, H(U(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),
|
|
20915
|
+
f.value ? (z(), N("div", lO, [P("div", uO, [
|
|
20890
20916
|
I(g, {
|
|
20891
20917
|
name: "ri:robot-2-line",
|
|
20892
20918
|
class: "w-16 h-16"
|
|
20893
20919
|
}),
|
|
20894
|
-
P("span",
|
|
20895
|
-
P("div",
|
|
20920
|
+
P("span", dO, H(U(n)("label.answer")), 1),
|
|
20921
|
+
P("div", fO, [u.value ? (z(), j(g, {
|
|
20896
20922
|
key: 0,
|
|
20897
20923
|
name: "loading-loop",
|
|
20898
20924
|
class: "w-14 h-14"
|
|
@@ -20903,7 +20929,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20903
20929
|
modifiers: "action-quiet-small",
|
|
20904
20930
|
onClick: r[1] ||= Br((e) => i("show-info", f.value), ["stop"])
|
|
20905
20931
|
}, null, 8, ["title"])) : M("", !0)])
|
|
20906
|
-
]), p.value ? (z(), N("div",
|
|
20932
|
+
]), p.value ? (z(), N("div", pO, [I(we, {
|
|
20907
20933
|
markdown: p.value,
|
|
20908
20934
|
loading: u.value,
|
|
20909
20935
|
class: "wysiwyg text-14"
|
|
@@ -20911,7 +20937,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20911
20937
|
])]);
|
|
20912
20938
|
};
|
|
20913
20939
|
}
|
|
20914
|
-
}),
|
|
20940
|
+
}), hO = { class: "welcome-popup__text" }, gO = ["aria-label"], _O = 100, vO = /* @__PURE__ */ L({
|
|
20915
20941
|
__name: "PkWelcomePopup",
|
|
20916
20942
|
props: {
|
|
20917
20943
|
agentId: {},
|
|
@@ -20926,7 +20952,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20926
20952
|
c.value = [], s.value = !1;
|
|
20927
20953
|
let t = e.split(/(\s+)/), n = 0;
|
|
20928
20954
|
function r() {
|
|
20929
|
-
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r,
|
|
20955
|
+
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, _O)) : s.value = !0;
|
|
20930
20956
|
}
|
|
20931
20957
|
r();
|
|
20932
20958
|
}
|
|
@@ -20950,7 +20976,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20950
20976
|
key: 0,
|
|
20951
20977
|
class: "welcome-popup",
|
|
20952
20978
|
onClick: Br(m, ["stop"])
|
|
20953
|
-
}, [P("p",
|
|
20979
|
+
}, [P("p", hO, [(z(!0), N(k, null, Or(c.value, (e, t) => (z(), N("span", {
|
|
20954
20980
|
key: t,
|
|
20955
20981
|
class: "welcome-popup__word"
|
|
20956
20982
|
}, H(e), 1))), 128))]), I(or, null, {
|
|
@@ -20966,22 +20992,22 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
20966
20992
|
width: "14",
|
|
20967
20993
|
height: "14",
|
|
20968
20994
|
fill: "currentColor"
|
|
20969
|
-
}, [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,
|
|
20995
|
+
}, [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, gO)) : M("", !0)]),
|
|
20970
20996
|
_: 1
|
|
20971
20997
|
})])) : M("", !0)]),
|
|
20972
20998
|
_: 1
|
|
20973
20999
|
}));
|
|
20974
21000
|
}
|
|
20975
|
-
}),
|
|
21001
|
+
}), yO = { class: "pk-pagination mt-auto grid grid-cols-3 gap-md pt-24" }, bO = { class: "flex items-center" }, xO = { class: "text-12" }, SO = ["disabled"], CO = ["value"], wO = {
|
|
20976
21002
|
key: 1,
|
|
20977
21003
|
class: "ml-8 text-12 font-semibold tabular-nums"
|
|
20978
|
-
},
|
|
21004
|
+
}, TO = { class: "flex justify-center items-center" }, EO = {
|
|
20979
21005
|
class: "rounded-md border border-surface-3 px-14 py-4 text-center text-12 font-bold tabular-nums",
|
|
20980
21006
|
type: "button"
|
|
20981
|
-
},
|
|
21007
|
+
}, DO = {
|
|
20982
21008
|
key: 0,
|
|
20983
21009
|
class: "ml-6 text-12 whitespace-nowrap tabular-nums"
|
|
20984
|
-
},
|
|
21010
|
+
}, OO = { class: "flex text-12 justify-end items-center whitespace-nowrap tabular-nums" }, kO = /* @__PURE__ */ L({
|
|
20985
21011
|
__name: "PkPagination",
|
|
20986
21012
|
props: {
|
|
20987
21013
|
page: {
|
|
@@ -21013,8 +21039,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
21013
21039
|
});
|
|
21014
21040
|
return (t, r) => {
|
|
21015
21041
|
let l = Kn, u = qn;
|
|
21016
|
-
return z(), N("div",
|
|
21017
|
-
P("div",
|
|
21042
|
+
return z(), N("div", yO, [
|
|
21043
|
+
P("div", bO, [P("label", xO, H(U(n)("label.itemsPerPage")) + ":", 1), e.limitSteps ? Rr((z(), N("select", {
|
|
21018
21044
|
key: 0,
|
|
21019
21045
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
21020
21046
|
disabled: e.disabled,
|
|
@@ -21022,8 +21048,8 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
21022
21048
|
}, [(z(!0), N(k, null, Or(e.limitSteps, (e) => (z(), N("option", {
|
|
21023
21049
|
key: e,
|
|
21024
21050
|
value: e
|
|
21025
|
-
}, H(e), 9,
|
|
21026
|
-
P("div",
|
|
21051
|
+
}, H(e), 9, CO))), 128))], 8, SO)), [[Ir, c.value]]) : (z(), N("span", wO, H(e.limit), 1))]),
|
|
21052
|
+
P("div", TO, [I(u, { class: "flex-nowrap" }, {
|
|
21027
21053
|
default: K(() => [
|
|
21028
21054
|
I(l, {
|
|
21029
21055
|
title: U(n)("action.prev"),
|
|
@@ -21032,7 +21058,7 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
21032
21058
|
modifiers: "action-quiet",
|
|
21033
21059
|
onClick: r[1] ||= Br((t) => i("update:page", e.page - 1), ["stop"])
|
|
21034
21060
|
}, null, 8, ["title", "disabled"]),
|
|
21035
|
-
P("button",
|
|
21061
|
+
P("button", EO, H(e.page), 1),
|
|
21036
21062
|
I(l, {
|
|
21037
21063
|
title: U(n)("action.next"),
|
|
21038
21064
|
disabled: s.value,
|
|
@@ -21042,21 +21068,21 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
21042
21068
|
}, null, 8, ["title", "disabled"])
|
|
21043
21069
|
]),
|
|
21044
21070
|
_: 1
|
|
21045
|
-
}), a.value ? (z(), N("small",
|
|
21046
|
-
P("div",
|
|
21071
|
+
}), a.value ? (z(), N("small", DO, H(U(n)("label.totalPages", { total: a.value })), 1)) : M("", !0)]),
|
|
21072
|
+
P("div", OO, H(U(n)("label.totalItemsCount", { total: e.total })), 1)
|
|
21047
21073
|
]);
|
|
21048
21074
|
};
|
|
21049
21075
|
}
|
|
21050
|
-
}),
|
|
21076
|
+
}), AO = { class: "pk-table-empty" }, jO = {
|
|
21051
21077
|
class: "pk-table-empty__glyph",
|
|
21052
21078
|
"aria-hidden": "true"
|
|
21053
|
-
},
|
|
21079
|
+
}, MO = { class: "pk-table-empty__text" }, NO = { class: "pk-table-empty__title" }, PO = {
|
|
21054
21080
|
key: 0,
|
|
21055
21081
|
class: "pk-table-empty__description"
|
|
21056
|
-
},
|
|
21082
|
+
}, FO = {
|
|
21057
21083
|
key: 0,
|
|
21058
21084
|
class: "pk-table-empty__actions"
|
|
21059
|
-
},
|
|
21085
|
+
}, IO = /* @__PURE__ */ L({
|
|
21060
21086
|
__name: "PkTableEmpty",
|
|
21061
21087
|
props: {
|
|
21062
21088
|
title: { default: void 0 },
|
|
@@ -21067,82 +21093,82 @@ var IC = { class: "flex items-center gap-xs min-w-0" }, LC = { class: "truncate"
|
|
|
21067
21093
|
let { t } = Vr({ useScope: "global" });
|
|
21068
21094
|
return (n, r) => {
|
|
21069
21095
|
let i = $n;
|
|
21070
|
-
return z(), N("div",
|
|
21071
|
-
P("div",
|
|
21072
|
-
P("div",
|
|
21073
|
-
n.$slots.actions ? (z(), N("div",
|
|
21096
|
+
return z(), N("div", AO, [
|
|
21097
|
+
P("div", jO, [I(i, { name: e.icon }, null, 8, ["name"])]),
|
|
21098
|
+
P("div", MO, [P("strong", NO, H(e.title ?? U(t)("message.empty")), 1), e.description ? (z(), N("p", PO, H(e.description), 1)) : M("", !0)]),
|
|
21099
|
+
n.$slots.actions ? (z(), N("div", FO, [V(n.$slots, "actions")])) : M("", !0)
|
|
21074
21100
|
]);
|
|
21075
21101
|
};
|
|
21076
21102
|
}
|
|
21077
|
-
}),
|
|
21103
|
+
}), LO = { class: "flex flex-col items-center justify-center w-full text-md p-md leading-normal" }, RO = { class: "mb-4" }, zO = { class: "font-bold" }, BO = { class: "text-smaller text-word-3" }, VO = /* @__PURE__ */ L({
|
|
21078
21104
|
__name: "PkTableError",
|
|
21079
21105
|
setup(e) {
|
|
21080
21106
|
let { t } = Vr({ useScope: "global" });
|
|
21081
21107
|
return (e, n) => {
|
|
21082
21108
|
let r = $n;
|
|
21083
|
-
return z(), N("div",
|
|
21084
|
-
P("div",
|
|
21109
|
+
return z(), N("div", LO, [
|
|
21110
|
+
P("div", RO, [I(r, {
|
|
21085
21111
|
name: "ri:alert-line",
|
|
21086
21112
|
class: "text-32 text-word-2"
|
|
21087
21113
|
})]),
|
|
21088
|
-
P("strong",
|
|
21089
|
-
P("div",
|
|
21114
|
+
P("strong", zO, H(U(t)("message.warning")), 1),
|
|
21115
|
+
P("div", BO, H(U(t)("message.readError")), 1)
|
|
21090
21116
|
]);
|
|
21091
21117
|
};
|
|
21092
21118
|
}
|
|
21093
21119
|
});
|
|
21094
21120
|
//#endregion
|
|
21095
21121
|
//#region ../../node_modules/.pnpm/ts-util-is@2.1.0/node_modules/ts-util-is/dist/src/index.js
|
|
21096
|
-
function
|
|
21122
|
+
function HO(e) {
|
|
21097
21123
|
return Array.isArray(e);
|
|
21098
21124
|
}
|
|
21099
|
-
function
|
|
21125
|
+
function UO(e) {
|
|
21100
21126
|
return e !== void 0;
|
|
21101
21127
|
}
|
|
21102
|
-
function
|
|
21128
|
+
function WO(e) {
|
|
21103
21129
|
return e === null;
|
|
21104
21130
|
}
|
|
21105
|
-
function
|
|
21131
|
+
function GO(e) {
|
|
21106
21132
|
return typeof e == "object";
|
|
21107
21133
|
}
|
|
21108
|
-
function
|
|
21134
|
+
function KO(e) {
|
|
21109
21135
|
return typeof e == "string";
|
|
21110
21136
|
}
|
|
21111
|
-
function
|
|
21137
|
+
function qO(e) {
|
|
21112
21138
|
return e === void 0;
|
|
21113
21139
|
}
|
|
21114
21140
|
//#endregion
|
|
21115
21141
|
//#region ../../node_modules/.pnpm/ts-dot-prop@2.1.4/node_modules/ts-dot-prop/dist/index.js
|
|
21116
|
-
var
|
|
21142
|
+
var JO = /^[0-9]+$/, YO = [
|
|
21117
21143
|
"__proto__",
|
|
21118
21144
|
"prototype",
|
|
21119
21145
|
"constructor"
|
|
21120
21146
|
];
|
|
21121
|
-
function
|
|
21122
|
-
let r =
|
|
21123
|
-
if (!
|
|
21124
|
-
let i =
|
|
21147
|
+
function XO(e, t, n) {
|
|
21148
|
+
let r = UO(n) ? n : void 0;
|
|
21149
|
+
if (!GO(e) || !KO(t)) return r;
|
|
21150
|
+
let i = ZO(t);
|
|
21125
21151
|
if (i.length !== 0) {
|
|
21126
21152
|
for (let t of i) {
|
|
21127
21153
|
if (t === "*") continue;
|
|
21128
21154
|
let n = function(e) {
|
|
21129
|
-
return e.map((e) =>
|
|
21155
|
+
return e.map((e) => qO(e) || WO(e) ? e : HO(e) ? n(e) : e[t]);
|
|
21130
21156
|
};
|
|
21131
|
-
if (e =
|
|
21157
|
+
if (e = HO(e) && !JO.test(t) ? n(e) : e[t], qO(e) || WO(e)) break;
|
|
21132
21158
|
}
|
|
21133
|
-
return
|
|
21159
|
+
return qO(e) ? r : e;
|
|
21134
21160
|
}
|
|
21135
21161
|
}
|
|
21136
|
-
function
|
|
21162
|
+
function ZO(e) {
|
|
21137
21163
|
let t = e.split(/[.]|(?:\[(\d|\*)\])/).filter((e) => !!e);
|
|
21138
|
-
return t.some((e) =>
|
|
21164
|
+
return t.some((e) => YO.indexOf(e) !== -1) ? [] : t;
|
|
21139
21165
|
}
|
|
21140
21166
|
//#endregion
|
|
21141
21167
|
//#region ../../packages/components/src/table/PkTableSortable.vue?vue&type=script&setup=true&lang.ts
|
|
21142
|
-
var
|
|
21168
|
+
var QO = { class: "pk-table-sortable" }, $O = { key: 0 }, ek = {
|
|
21143
21169
|
key: 0,
|
|
21144
21170
|
class: "truncate"
|
|
21145
|
-
},
|
|
21171
|
+
}, tk = ["onClick"], nk = ["onClick"], rk = { key: 1 }, ik = ["colspan"], ak = { key: 2 }, ok = ["colspan"], sk = { key: 1 }, ck = { key: 2 }, lk = "a, button, input, select, textarea, label, [contenteditable], [role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"menuitem\"]", uk = /* @__PURE__ */ L({
|
|
21146
21172
|
__name: "PkTableSortable",
|
|
21147
21173
|
props: {
|
|
21148
21174
|
columns: {
|
|
@@ -21275,7 +21301,7 @@ var XO = { class: "pk-table-sortable" }, ZO = { key: 0 }, QO = {
|
|
|
21275
21301
|
}
|
|
21276
21302
|
c.value = e;
|
|
21277
21303
|
}, v = (e, t, n) => {
|
|
21278
|
-
r.rowClickable && (n.target?.closest(
|
|
21304
|
+
r.rowClickable && (n.target?.closest(lk) || i("click:row", e, t));
|
|
21279
21305
|
}, y = () => {
|
|
21280
21306
|
s.value++;
|
|
21281
21307
|
}, ee = () => {
|
|
@@ -21285,8 +21311,8 @@ var XO = { class: "pk-table-sortable" }, ZO = { key: 0 }, QO = {
|
|
|
21285
21311
|
r.page || i("update:page", s.value), r.limit || i("update:limit", o.value);
|
|
21286
21312
|
}), (t, r) => {
|
|
21287
21313
|
let i = $n;
|
|
21288
|
-
return z(), N("div",
|
|
21289
|
-
e.hideHead ? M("", !0) : (z(), N("thead",
|
|
21314
|
+
return z(), N("div", QO, [P("div", { class: yr([f.value, "pk-table-sortable__wrapper"]) }, [P("table", { class: yr(["vv-table", e.classTable]) }, [
|
|
21315
|
+
e.hideHead ? M("", !0) : (z(), N("thead", $O, [P("tr", null, [(z(!0), N(k, null, Or(d.value, (e) => (z(), N("th", _r({ key: e.name }, { ref_for: !0 }, { class: [
|
|
21290
21316
|
e.class,
|
|
21291
21317
|
e.classTh,
|
|
21292
21318
|
{ selected: U(c) === e.name }
|
|
@@ -21294,7 +21320,7 @@ var XO = { class: "pk-table-sortable" }, ZO = { key: 0 }, QO = {
|
|
|
21294
21320
|
key: 1,
|
|
21295
21321
|
type: "button",
|
|
21296
21322
|
onClick: (t) => _(e.name)
|
|
21297
|
-
}, [V(t.$slots, `col::header::${e.name}`, {}, () => [F(H(e.label), 1)]), I(i, _r({ class: { "opacity-30": U(c) !== e.name } }, { ref_for: !0 }, U(c) === e.name ? { name: U(l) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line" } : { name: "ri:arrow-up-down-line" }), null, 16, ["class"])], 8,
|
|
21323
|
+
}, [V(t.$slots, `col::header::${e.name}`, {}, () => [F(H(e.label), 1)]), I(i, _r({ class: { "opacity-30": U(c) !== e.name } }, { ref_for: !0 }, U(c) === e.name ? { name: U(l) === "asc" ? "ri:arrow-up-line" : "ri:arrow-down-line" } : { name: "ri:arrow-up-down-line" }), null, 16, ["class"])], 8, tk)) : (z(), N("div", ek, [V(t.$slots, `col::header::${e.name}`, {}, () => [F(H(e.label), 1)])]))], 16))), 128))])])),
|
|
21298
21324
|
I(sr, {
|
|
21299
21325
|
tag: "tbody",
|
|
21300
21326
|
name: e.transitionName
|
|
@@ -21306,7 +21332,7 @@ var XO = { class: "pk-table-sortable" }, ZO = { key: 0 }, QO = {
|
|
|
21306
21332
|
})), () => [e.isLoading ? V(t.$slots, "loading", {}, () => [(z(!0), N(k, null, Or(o.value, (e) => (z(), N("tr", { key: e }, [(z(!0), N(k, null, Or(d.value, ({ name: n, wrapperClass: i }) => (z(), N("td", { key: n }, [V(t.$slots, `skeleton::${n}`, _r({ ref_for: !0 }, {
|
|
21307
21333
|
index: e,
|
|
21308
21334
|
wrapperClass: i
|
|
21309
|
-
}), () => [P("div", { class: yr(["vv-skeleton", i]) }, [...r[2] ||= [P("div", { class: "vv-skeleton__item" }, null, -1)]], 2)])]))), 128))]))), 128))], void 0, 0) : e.isError ? e.isError ? (z(), N("tr",
|
|
21335
|
+
}), () => [P("div", { class: yr(["vv-skeleton", i]) }, [...r[2] ||= [P("div", { class: "vv-skeleton__item" }, null, -1)]], 2)])]))), 128))]))), 128))], void 0, 0) : e.isError ? e.isError ? (z(), N("tr", ak, [P("td", { colspan: e.columns.length }, [V(t.$slots, "error", {}, () => [I(VO)])], 8, ok)])) : M("", !0) : (z(), N(k, { key: 1 }, [e.data?.length ? (z(!0), N(k, { key: 0 }, Or(e.data, (r, i) => (z(), N("tr", {
|
|
21310
21336
|
key: i,
|
|
21311
21337
|
class: yr([{
|
|
21312
21338
|
"pk-table-sortable__row--clickable": e.rowClickable,
|
|
@@ -21329,11 +21355,11 @@ var XO = { class: "pk-table-sortable" }, ZO = { key: 0 }, QO = {
|
|
|
21329
21355
|
wrapperClass: o,
|
|
21330
21356
|
index: i,
|
|
21331
21357
|
value: r[e]
|
|
21332
|
-
}), () => [P("div", { class: yr(["truncate", o]) }, H(U(
|
|
21358
|
+
}), () => [P("div", { class: yr(["truncate", o]) }, H(U(XO)(r, a ?? e)), 3)], void 0, 2)], 2))), 128))], 10, nk))), 128)) : (z(), N("tr", rk, [P("td", { colspan: e.columns.length }, [V(t.$slots, "empty", {}, () => [I(IO)])], 8, ik)]))], 64))])]),
|
|
21333
21359
|
_: 3
|
|
21334
21360
|
}, 8, ["name"]),
|
|
21335
|
-
U(n).tfoot ? (z(), N("tfoot",
|
|
21336
|
-
U(n).caption ? (z(), N("caption",
|
|
21361
|
+
U(n).tfoot ? (z(), N("tfoot", sk, [V(t.$slots, "tfoot")])) : M("", !0),
|
|
21362
|
+
U(n).caption ? (z(), N("caption", ck, [V(t.$slots, "caption")])) : M("", !0)
|
|
21337
21363
|
], 2)], 2), V(t.$slots, "navigation", br(fr({
|
|
21338
21364
|
hide: e.hideNavigation,
|
|
21339
21365
|
prevDisabled: g.value,
|
|
@@ -21342,7 +21368,7 @@ var XO = { class: "pk-table-sortable" }, ZO = { key: 0 }, QO = {
|
|
|
21342
21368
|
next: y,
|
|
21343
21369
|
total: u.value,
|
|
21344
21370
|
page: s.value
|
|
21345
|
-
})), () => [e.hideNavigation ? M("", !0) : (z(), j(
|
|
21371
|
+
})), () => [e.hideNavigation ? M("", !0) : (z(), j(kO, {
|
|
21346
21372
|
key: 0,
|
|
21347
21373
|
page: s.value,
|
|
21348
21374
|
total: a.value ?? 0,
|
|
@@ -21364,6 +21390,6 @@ var XO = { class: "pk-table-sortable" }, ZO = { key: 0 }, QO = {
|
|
|
21364
21390
|
}
|
|
21365
21391
|
});
|
|
21366
21392
|
//#endregion
|
|
21367
|
-
export {
|
|
21393
|
+
export { PC as AGENT_STATUS_GLYPHS, FC as AGENT_VISIBILITY_GLYPHS, qC as MODEL_CATALOG_KEY, HC as PkAgentSelectorInline, BT as PkAgentSettingsPanel, Ve as PkAuroraCanvas, gn as PkAvatar, si as PkBadge, Sn as PkChatButton, $T as PkChatSidebar, HT as PkChatSidebarConversationItem, En as PkChatbot, Ce as PkChatbotAuth, wn as PkChatbotEmptyState, Ge as PkChatbotError, _n as PkChatbotFeedbackForm, pn as PkChatbotFilePreview, Cn as PkChatbotInput, Fe as PkChatbotMessages, bn as PkChatbotStepPayload, xn as PkChatbotStepToolDetail, yn as PkChatbotSteps, We as PkChatbotViewChat, Be as PkChatbotViewConversations, Tn as PkChatbotViewProfile, ZS as PkCheckboxField, Dn as PkChunkPreview, Xe as PkCode, Tw as PkCopyBlock, On as PkDocumentHeader, Zi as PkEditorAgentType, n as PkEditorCheckboxButtons, ro as PkEditorCode, la as PkEditorDocumentType, To as PkEditorJsonSchema, ES as PkEditorMarkdown, DS as PkEditorMedia, va as PkEditorNotificationType, PS as PkEditorPrompt, t as PkEditorRadioButtons, HS as PkEditorRepeater, qS as PkEditorWyswyg, oo as PkFieldset, QS as PkInfobox, Ew as PkInputColor, aC as PkIntegrationProvider, rw as PkLanguageModel, vw as PkLanguageModelCombobox, un as PkLazyImg, sC as PkLightbox, dC as PkLoader, pC as PkMedia, YD as PkMessageDetail, ID as PkMessageParts, _w as PkModelOption, SC as PkOfflineScreen, kO as PkPagination, kC as PkPwaNotices, jC as PkQrCode, mO as PkReasoningChat, bw as PkReasoningSettings, Ye as PkRelativeTime, tE as PkRetryCountdown, yo as PkSchemaField, NC as PkSkeleton, we as PkStreamingMarkdown, vn as PkStreamingMarkdownAutoscroll, mn as PkSvgViewer, IO as PkTableEmpty, VO as PkTableError, uk as PkTableSortable, KC as PkToolApprovalBadge, Ze as PkToolShowArtifact, Fn as PkToolShowCalendarEvent, In as PkToolShowComparison, Pn as PkToolShowContactForm, An as PkToolShowEmail, r as PkToolShowForm, zn as PkToolShowImageGallery, Ln as PkToolShowLocation, jn as PkToolShowMessage, Nn as PkToolShowProductList, Rn as PkToolShowQrCode, kn as PkToolShowSources, Bn as PkToolShowSuggestedReply, Mn as PkToolShowWebPages, hn as PkUrl, Ue as PkVoiceOrb, He as PkVoiceSession, xw as PkWebSearchSettings, vO as PkWelcomePopup, IC as agentStatusGlyph, LC as agentVisibilityGlyph, tC as integrationProviderIcon, JC as provideModelCatalog, YC as useModelCatalogEntry };
|
|
21368
21394
|
|
|
21369
21395
|
//# sourceMappingURL=index.js.map
|