@8wave/ai-elements 0.119.0-beta.22 → 0.119.0-beta.26
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 +32 -20
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/_chunks/createChatbotApiClient-DSLxswr4.js.map +1 -1
- package/dist-vue/composables.js +32 -20
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +247 -247
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +6 -6
- package/dist-vue/packages/ability/src/index.d.ts +4 -0
- package/dist-vue/packages/components/src/agentGlyphs.d.ts +5 -3
- package/dist-vue/packages/models/src/schema/Invitation.d.ts +1 -1
- package/package.json +1 -1
package/dist-vue/index.js
CHANGED
|
@@ -16768,7 +16768,7 @@ var sw = aw, cw = ["aria-label", "innerHTML"], lw = /* @__PURE__ */ L({
|
|
|
16768
16768
|
}, pw = {
|
|
16769
16769
|
public: "ri:global-line",
|
|
16770
16770
|
organization: "ri:building-line",
|
|
16771
|
-
private: "ri:
|
|
16771
|
+
private: "ri:shield-user-line"
|
|
16772
16772
|
};
|
|
16773
16773
|
function mw(e) {
|
|
16774
16774
|
return fw[e ?? ""] ?? "ri:pause-line";
|
|
@@ -17963,13 +17963,13 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
17963
17963
|
])]);
|
|
17964
17964
|
};
|
|
17965
17965
|
}
|
|
17966
|
-
}), aT = { class: "xl:grid grid-cols-2 gap-x-md items-start" }, oT = { class: "flex items-center gap-8" }, sT = { class: "flex items-center gap-8" }, cT = {
|
|
17966
|
+
}), aT = { class: "xl:grid grid-cols-2 gap-x-md items-start" }, oT = { class: "flex items-center gap-8" }, sT = { class: "flex items-center gap-8" }, cT = { class: "flex flex-col" }, lT = { class: "text-12 text-word-3" }, uT = {
|
|
17967
17967
|
key: 0,
|
|
17968
17968
|
class: "pk-agent-settings-panel__model-note text-12 text-word-3 mb-md"
|
|
17969
|
-
},
|
|
17969
|
+
}, dT = { class: "p-8 flex flex-col" }, fT = { class: "flex flex-col ml-12 gap-2" }, pT = { class: "text-12 text-word-3" }, mT = { class: "mb-md" }, hT = { class: "flex items-center gap-xs mb-2" }, gT = ["for"], _T = { class: "relative cursor-help text-word-3" }, vT = { class: "mb-md" }, yT = { class: "flex items-center gap-xs mb-2" }, bT = ["for"], xT = { class: "relative cursor-help text-word-3" }, ST = { class: "text-12 text-word-3 mt-xs leading-normal" }, CT = { class: "flex flex-col ml-12 gap-2" }, wT = { class: "text-12 text-word-3" }, TT = { class: "mb-md" }, ET = { class: "flex items-center gap-xs mb-2" }, DT = ["for"], OT = { class: "relative cursor-help text-word-3" }, kT = { class: "mb-md" }, AT = { class: "flex items-center gap-xs mb-2" }, jT = ["for"], MT = { class: "relative cursor-help text-word-3" }, NT = { class: "flex flex-col ml-12 gap-2" }, PT = { class: "text-12 text-word-3" }, FT = { class: "flex flex-col ml-12 gap-2" }, IT = { class: "text-12 text-word-3" }, LT = { class: "flex flex-col ml-12 gap-2" }, RT = { class: "text-12 text-word-3" }, zT = { class: "flex items-end gap-sm mt-md" }, BT = { class: "flex flex-col gap-2 min-w-0" }, VT = { class: "truncate" }, HT = {
|
|
17970
17970
|
key: 0,
|
|
17971
17971
|
class: "text-12 text-word-3 truncate"
|
|
17972
|
-
},
|
|
17972
|
+
}, UT = { class: "p-8 flex flex-col" }, WT = { class: "flex flex-col ml-12 gap-2" }, GT = { class: "text-12 text-word-3" }, KT = { class: "flex gap-sm mt-md" }, qT = { class: "text-12 text-word-3 mt-8 mb-md px-8" }, JT = { class: "p-8 flex flex-col" }, YT = { class: "grid sm:grid-cols-2 gap-md items-start" }, XT = { class: "flex flex-col gap-md" }, ZT = { class: "text-12 text-word-3 mb-sm" }, QT = { class: "flex items-center gap-4" }, $T = { class: "text-12 text-word-3 mb-sm" }, eE = { class: "flex flex-col nx-md nb-md" }, tE = { class: "flex flex-col ml-12 gap-2" }, nE = { class: "flex items-center gap-8" }, rE = { class: "font-semibold" }, iE = { class: "text-12 text-word-3" }, aE = ["title"], oE = { class: "p-xs flex gap-md items-start" }, sE = { class: "flex flex-col gap-md" }, cE = { class: "font-semibold mb-xs" }, lE = { class: "text-smaller" }, uE = { key: 2 }, dE = { class: "p-8 flex flex-col" }, fE = { class: "text-smaller mb-xs" }, pE = { class: "font-semibold mb-xs" }, mE = { class: "text-smaller" }, hE = { class: "font-semibold mb-xs" }, gE = { class: "text-smaller" }, _E = { class: "block text-12 text-word-2 break-all p-12 font-mono" }, vE = { class: "grid sm:grid-cols-2 gap-md" }, yE = { class: "text-12 text-word-3 mb-md" }, bE = /* @__PURE__ */ L({
|
|
17973
17973
|
__name: "PkAgentSettingsPanel",
|
|
17974
17974
|
props: /*@__PURE__*/ Ar({
|
|
17975
17975
|
organizationSlug: {},
|
|
@@ -18530,13 +18530,13 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18530
18530
|
value: "organization"
|
|
18531
18531
|
}
|
|
18532
18532
|
],
|
|
18533
|
-
"hint-label": Zt.value ? void 0 : U(n)("hint.reasoningVisibility"),
|
|
18533
|
+
"hint-label": Zt.value ? C.value ? U(n)(`agent.visibilityHint.${C.value}`) : void 0 : U(n)("hint.reasoningVisibility"),
|
|
18534
18534
|
disabled: e.playground || !Zt.value
|
|
18535
18535
|
}, {
|
|
18536
18536
|
option: K(({ option: e }) => [P("span", sT, [I(l, {
|
|
18537
18537
|
name: U(hw)(String(e.value)),
|
|
18538
18538
|
class: "w-16 h-16 shrink-0"
|
|
18539
|
-
}, null, 8, ["name"]), F(" "
|
|
18539
|
+
}, null, 8, ["name"]), P("span", cT, [F(H(e.label) + " ", 1), P("span", lT, H(U(n)(`agent.visibilityHint.${e.value}`)), 1)])])]),
|
|
18540
18540
|
_: 1
|
|
18541
18541
|
}, 8, [
|
|
18542
18542
|
"modelValue",
|
|
@@ -18579,7 +18579,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18579
18579
|
"disallow-prompt-training",
|
|
18580
18580
|
"current"
|
|
18581
18581
|
]),
|
|
18582
|
-
y.value ? (z(), N("p",
|
|
18582
|
+
y.value ? (z(), N("p", uT, H(y.value), 1)) : M("", !0),
|
|
18583
18583
|
_.value && e.features?.gateway !== !1 ? (z(), j(kC, {
|
|
18584
18584
|
key: 1,
|
|
18585
18585
|
icon: "ri:server-line",
|
|
@@ -18604,7 +18604,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18604
18604
|
modifiers: "details",
|
|
18605
18605
|
class: "border border-surface-3 rounded"
|
|
18606
18606
|
}, {
|
|
18607
|
-
default: K(() => [P("div",
|
|
18607
|
+
default: K(() => [P("div", dT, [
|
|
18608
18608
|
I(Uo, { legend: U(n)("label.modelParameters") }, {
|
|
18609
18609
|
default: K(() => [
|
|
18610
18610
|
_.value ? M("", !0) : (z(), j(Xw, {
|
|
@@ -18806,13 +18806,13 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18806
18806
|
"unchecked-value": !1,
|
|
18807
18807
|
class: "flex-nowrap mb-md"
|
|
18808
18808
|
}, {
|
|
18809
|
-
default: K(() => [P("div",
|
|
18809
|
+
default: K(() => [P("div", fT, [P("strong", null, H(U(n)("label.freshnessBoost")), 1), P("small", pT, H(U(n)("hint.freshnessBoost")), 1)])]),
|
|
18810
18810
|
_: 1
|
|
18811
18811
|
}, 8, ["modelValue"])) : M("", !0),
|
|
18812
|
-
Ot.value?.freshness?.enabled ? (z(), N(k, { key: 1 }, [P("div",
|
|
18812
|
+
Ot.value?.freshness?.enabled ? (z(), N(k, { key: 1 }, [P("div", mT, [P("div", hT, [P("label", {
|
|
18813
18813
|
class: "block text-12 text-word-3",
|
|
18814
18814
|
for: a.freshnessScale
|
|
18815
|
-
}, H(U(n)("hint.freshnessScale")), 9,
|
|
18815
|
+
}, H(U(n)("hint.freshnessScale")), 9, gT), P("div", _T, [I(l, {
|
|
18816
18816
|
name: "ri:information-line",
|
|
18817
18817
|
class: "w-14 h-14"
|
|
18818
18818
|
}), I(we, {
|
|
@@ -18832,11 +18832,11 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18832
18832
|
"id",
|
|
18833
18833
|
"modelValue",
|
|
18834
18834
|
"format-value"
|
|
18835
|
-
])]), P("div",
|
|
18836
|
-
P("div",
|
|
18835
|
+
])]), P("div", vT, [
|
|
18836
|
+
P("div", yT, [P("label", {
|
|
18837
18837
|
class: "block text-12 text-word-3",
|
|
18838
18838
|
for: a.freshnessWeight
|
|
18839
|
-
}, H(U(n)("label.freshnessWeight")), 9,
|
|
18839
|
+
}, H(U(n)("label.freshnessWeight")), 9, bT), P("div", xT, [I(l, {
|
|
18840
18840
|
name: "ri:information-line",
|
|
18841
18841
|
class: "w-14 h-14"
|
|
18842
18842
|
}), I(we, {
|
|
@@ -18859,7 +18859,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18859
18859
|
"modelValue",
|
|
18860
18860
|
"format-value"
|
|
18861
18861
|
])) : M("", !0),
|
|
18862
|
-
P("p",
|
|
18862
|
+
P("p", ST, H(At.value), 1)
|
|
18863
18863
|
])], 64)) : M("", !0),
|
|
18864
18864
|
Ot.value?.mmr ? (z(), j(he, {
|
|
18865
18865
|
key: 2,
|
|
@@ -18871,13 +18871,13 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18871
18871
|
"unchecked-value": !1,
|
|
18872
18872
|
class: "flex-nowrap mb-md border-t border-surface-3 pt-md"
|
|
18873
18873
|
}, {
|
|
18874
|
-
default: K(() => [P("div",
|
|
18874
|
+
default: K(() => [P("div", CT, [P("strong", null, H(U(n)("label.mmr")), 1), P("small", wT, H(U(n)("hint.mmr")), 1)])]),
|
|
18875
18875
|
_: 1
|
|
18876
18876
|
}, 8, ["modelValue"])) : M("", !0),
|
|
18877
|
-
Ot.value?.mmr?.enabled ? (z(), N(k, { key: 3 }, [P("div",
|
|
18877
|
+
Ot.value?.mmr?.enabled ? (z(), N(k, { key: 3 }, [P("div", TT, [P("div", ET, [P("label", {
|
|
18878
18878
|
class: "block text-12 text-word-3",
|
|
18879
18879
|
for: a.mmrDiversity
|
|
18880
|
-
}, H(U(n)("label.mmrDiversity")), 9,
|
|
18880
|
+
}, H(U(n)("label.mmrDiversity")), 9, DT), P("div", OT, [I(l, {
|
|
18881
18881
|
name: "ri:information-line",
|
|
18882
18882
|
class: "w-14 h-14"
|
|
18883
18883
|
}), I(we, {
|
|
@@ -18898,10 +18898,10 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18898
18898
|
"id",
|
|
18899
18899
|
"modelValue",
|
|
18900
18900
|
"format-value"
|
|
18901
|
-
])) : M("", !0)]), P("div",
|
|
18901
|
+
])) : M("", !0)]), P("div", kT, [P("div", AT, [P("label", {
|
|
18902
18902
|
class: "block text-12 text-word-3",
|
|
18903
18903
|
for: a.mmrCandidatesLimit
|
|
18904
|
-
}, H(U(n)("label.mmrCandidatesLimit")), 9,
|
|
18904
|
+
}, H(U(n)("label.mmrCandidatesLimit")), 9, jT), P("div", MT, [I(l, {
|
|
18905
18905
|
name: "ri:information-line",
|
|
18906
18906
|
class: "w-14 h-14"
|
|
18907
18907
|
}), I(we, {
|
|
@@ -18940,7 +18940,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18940
18940
|
"unchecked-value": !1,
|
|
18941
18941
|
class: "flex-nowrap mb-0"
|
|
18942
18942
|
}, {
|
|
18943
|
-
default: K(() => [P("div",
|
|
18943
|
+
default: K(() => [P("div", NT, [P("strong", null, H(U(n)("label.zeroDataRetention")), 1), P("small", PT, H(U(n)("hint.zeroDataRetention")), 1)])]),
|
|
18944
18944
|
_: 1
|
|
18945
18945
|
}, 8, ["modelValue"]), St.value ? M("", !0) : (z(), j(he, {
|
|
18946
18946
|
key: 0,
|
|
@@ -18952,7 +18952,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18952
18952
|
"unchecked-value": !1,
|
|
18953
18953
|
class: "flex-nowrap mt-md mb-0"
|
|
18954
18954
|
}, {
|
|
18955
|
-
default: K(() => [P("div",
|
|
18955
|
+
default: K(() => [P("div", FT, [P("strong", null, H(U(n)("label.disallowPromptTraining")), 1), P("small", IT, H(U(n)("hint.disallowPromptTraining")), 1)])]),
|
|
18956
18956
|
_: 1
|
|
18957
18957
|
}, 8, ["modelValue"]))]),
|
|
18958
18958
|
_: 1
|
|
@@ -18971,7 +18971,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18971
18971
|
"unchecked-value": !1,
|
|
18972
18972
|
class: "flex-nowrap mb-0"
|
|
18973
18973
|
}, {
|
|
18974
|
-
default: K(() => [P("div",
|
|
18974
|
+
default: K(() => [P("div", LT, [P("strong", null, H(U(n)("label.voiceEnabled")), 1), P("small", RT, H(U(n)("hint.voiceEnabled")), 1)])]),
|
|
18975
18975
|
_: 1
|
|
18976
18976
|
}, 8, ["modelValue"]), We.value ? (z(), N(k, { key: 0 }, [
|
|
18977
18977
|
Yt.value.length ? (z(), j(kC, {
|
|
@@ -18982,7 +18982,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
18982
18982
|
default: K(() => [F(H(U(n)("hint.voiceApprovalRefused", { tools: Yt.value.join(", ") })), 1)]),
|
|
18983
18983
|
_: 1
|
|
18984
18984
|
})) : M("", !0),
|
|
18985
|
-
P("div",
|
|
18985
|
+
P("div", zT, [I(v, {
|
|
18986
18986
|
modelValue: Ke.value,
|
|
18987
18987
|
"onUpdate:modelValue": c[27] ||= (e) => Ke.value = e,
|
|
18988
18988
|
name: "voiceId",
|
|
@@ -19010,7 +19010,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19010
19010
|
"disabled",
|
|
19011
19011
|
"title"
|
|
19012
19012
|
])]),
|
|
19013
|
-
option: K(({ option: e }) => [P("span",
|
|
19013
|
+
option: K(({ option: e }) => [P("span", BT, [P("span", VT, H(e.label), 1), e.description ? (z(), N("small", HT, H(e.description), 1)) : M("", !0)])]),
|
|
19014
19014
|
_: 1
|
|
19015
19015
|
}, 8, [
|
|
19016
19016
|
"modelValue",
|
|
@@ -19064,7 +19064,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19064
19064
|
modifiers: "details",
|
|
19065
19065
|
class: "border border-surface-3 rounded-lg mt-md"
|
|
19066
19066
|
}, {
|
|
19067
|
-
default: K(() => [P("div",
|
|
19067
|
+
default: K(() => [P("div", UT, [
|
|
19068
19068
|
I(he, {
|
|
19069
19069
|
modelValue: Qe.value,
|
|
19070
19070
|
"onUpdate:modelValue": c[30] ||= (e) => Qe.value = e,
|
|
@@ -19074,7 +19074,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19074
19074
|
"unchecked-value": !1,
|
|
19075
19075
|
class: "flex-nowrap mb-0"
|
|
19076
19076
|
}, {
|
|
19077
|
-
default: K(() => [P("div",
|
|
19077
|
+
default: K(() => [P("div", WT, [P("strong", null, H(U(n)("label.voiceIgnoreBackgroundVoices")), 1), P("small", GT, H(U(n)("hint.voiceIgnoreBackgroundVoices")), 1)])]),
|
|
19078
19078
|
_: 1
|
|
19079
19079
|
}, 8, ["modelValue"]),
|
|
19080
19080
|
I(v, {
|
|
@@ -19112,7 +19112,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19112
19112
|
"placeholder",
|
|
19113
19113
|
"options"
|
|
19114
19114
|
]),
|
|
19115
|
-
P("div",
|
|
19115
|
+
P("div", KT, [I(x, {
|
|
19116
19116
|
modelValue: et.value,
|
|
19117
19117
|
"onUpdate:modelValue": c[32] ||= (e) => et.value = e,
|
|
19118
19118
|
name: "voiceTurnTimeoutSeconds",
|
|
@@ -19143,7 +19143,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19143
19143
|
"label",
|
|
19144
19144
|
"placeholder"
|
|
19145
19145
|
])]),
|
|
19146
|
-
P("small",
|
|
19146
|
+
P("small", qT, H(U(n)("hint.voiceTurnTimeoutSeconds")), 1),
|
|
19147
19147
|
I(x, {
|
|
19148
19148
|
modelValue: Ge.value,
|
|
19149
19149
|
"onUpdate:modelValue": c[34] ||= (e) => Ge.value = e,
|
|
@@ -19315,7 +19315,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19315
19315
|
modifiers: "details",
|
|
19316
19316
|
class: "border border-surface-3 rounded-lg mt-md mb-md"
|
|
19317
19317
|
}, {
|
|
19318
|
-
default: K(() => [P("div",
|
|
19318
|
+
default: K(() => [P("div", JT, [
|
|
19319
19319
|
Zt.value ? (z(), j(OC, {
|
|
19320
19320
|
key: 0,
|
|
19321
19321
|
modelValue: pe.value,
|
|
@@ -19591,7 +19591,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19591
19591
|
"placeholder",
|
|
19592
19592
|
"options"
|
|
19593
19593
|
]),
|
|
19594
|
-
P("div",
|
|
19594
|
+
P("div", YT, [I(x, {
|
|
19595
19595
|
modelValue: _t.value,
|
|
19596
19596
|
"onUpdate:modelValue": c[52] ||= (e) => _t.value = e,
|
|
19597
19597
|
disabled: e.playground,
|
|
@@ -19664,15 +19664,15 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19664
19664
|
})]),
|
|
19665
19665
|
_: 1
|
|
19666
19666
|
}, 8, ["legend"])) : M("", !0),
|
|
19667
|
-
P("div",
|
|
19667
|
+
P("div", XT, [P("p", ZT, H(U(n)("hint.approvalChannels")), 1), (z(!0), N(k, null, Hr(Ht.value, (t) => (z(), N(k, { key: t.key }, [Zt.value || !t.tools.every((e) => Wt(e)) ? (z(), j(Uo, {
|
|
19668
19668
|
key: 0,
|
|
19669
19669
|
class: "mb-0"
|
|
19670
19670
|
}, {
|
|
19671
|
-
legend: K(() => [P("span",
|
|
19671
|
+
legend: K(() => [P("span", QT, [I(l, {
|
|
19672
19672
|
name: t.icon,
|
|
19673
19673
|
class: "text-16"
|
|
19674
19674
|
}, null, 8, ["name"]), F(" " + H(U(n)(`toolGroup.${t.key}`)), 1)])]),
|
|
19675
|
-
default: K(() => [P("p",
|
|
19675
|
+
default: K(() => [P("p", $T, H(U(n)(`toolGroupInfo.${t.key}`)), 1), P("div", eE, [(z(!0), N(k, null, Hr(t.tools, (t) => (z(), N(k, { key: t }, [!Wt(t) || Zt.value ? (z(), N(k, { key: 0 }, [I(he, {
|
|
19676
19676
|
class: "flex-nowrap border-t border-surface-3 mr-0 px-md pt-md",
|
|
19677
19677
|
"model-value": Kt(t),
|
|
19678
19678
|
name: `tool.${t}`,
|
|
@@ -19682,9 +19682,9 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19682
19682
|
switch: "",
|
|
19683
19683
|
"onUpdate:modelValue": (e) => D(t, e)
|
|
19684
19684
|
}, {
|
|
19685
|
-
default: K(() => [P("div",
|
|
19686
|
-
P("div",
|
|
19687
|
-
P("strong",
|
|
19685
|
+
default: K(() => [P("div", tE, [
|
|
19686
|
+
P("div", nE, [
|
|
19687
|
+
P("strong", rE, H(U(n)(`agent.tool.${t}`)), 1),
|
|
19688
19688
|
t === U(T).ShowMultipleChoice ? (z(), j(rt, {
|
|
19689
19689
|
key: 0,
|
|
19690
19690
|
modifiers: "gray sm"
|
|
@@ -19694,7 +19694,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19694
19694
|
})) : M("", !0),
|
|
19695
19695
|
Jt(t) ? (z(), j(ww, { key: 1 })) : M("", !0)
|
|
19696
19696
|
]),
|
|
19697
|
-
P("small",
|
|
19697
|
+
P("small", iE, H(U(n)(`hint.tool.${t}`)), 1),
|
|
19698
19698
|
U(ve)(t) && U(se)(t) ? (z(), N("div", {
|
|
19699
19699
|
key: 0,
|
|
19700
19700
|
class: "flex items-center gap-4 self-start mt-4 pt-4 w-full border-t border-surface-3",
|
|
@@ -19717,7 +19717,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19717
19717
|
class: "text-12"
|
|
19718
19718
|
}), F(" " + H(U(n)("label.teams")), 1)]),
|
|
19719
19719
|
_: 1
|
|
19720
|
-
})], 8,
|
|
19720
|
+
})], 8, aE)) : M("", !0)
|
|
19721
19721
|
])]),
|
|
19722
19722
|
_: 2
|
|
19723
19723
|
}, 1032, [
|
|
@@ -19731,7 +19731,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19731
19731
|
modifiers: "details",
|
|
19732
19732
|
class: "border border-surface-3 rounded-lg mx-md mb-md"
|
|
19733
19733
|
}, {
|
|
19734
|
-
default: K(() => [P("div",
|
|
19734
|
+
default: K(() => [P("div", oE, [
|
|
19735
19735
|
t === U(T).ShowForm ? (z(), N(k, { key: 0 }, [I(x, {
|
|
19736
19736
|
modelValue: Le.value,
|
|
19737
19737
|
"onUpdate:modelValue": c[56] ||= (e) => Le.value = e,
|
|
@@ -19812,7 +19812,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19812
19812
|
_: 2
|
|
19813
19813
|
}, 1024)) : M("", !0)], 64))), 128))])
|
|
19814
19814
|
]),
|
|
19815
|
-
"panel::embed": K(() => [P("div",
|
|
19815
|
+
"panel::embed": K(() => [P("div", sE, [
|
|
19816
19816
|
Et.value.includes(U(Se).Widget) ? M("", !0) : (z(), j(kC, {
|
|
19817
19817
|
key: 0,
|
|
19818
19818
|
level: "warning",
|
|
@@ -19829,7 +19829,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19829
19829
|
default: K(() => [F(H(U(n)("hint.channelAppDisabled")), 1)]),
|
|
19830
19830
|
_: 1
|
|
19831
19831
|
})),
|
|
19832
|
-
P("div", null, [P("h3",
|
|
19832
|
+
P("div", null, [P("h3", cE, H(U(n)("label.chatWidget")), 1), P("p", lE, H(U(n)("hint.embedCode")), 1)]),
|
|
19833
19833
|
I(rT, { source: tn.value }, {
|
|
19834
19834
|
default: K(() => [I(lt, {
|
|
19835
19835
|
code: tn.value,
|
|
@@ -19839,7 +19839,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19839
19839
|
}, null, 8, ["code"])]),
|
|
19840
19840
|
_: 1
|
|
19841
19841
|
}, 8, ["source"]),
|
|
19842
|
-
e.playground ? M("", !0) : (z(), N("div",
|
|
19842
|
+
e.playground ? M("", !0) : (z(), N("div", uE, [
|
|
19843
19843
|
I(x, {
|
|
19844
19844
|
modelValue: ze.value,
|
|
19845
19845
|
"onUpdate:modelValue": c[60] ||= (e) => ze.value = e,
|
|
@@ -19858,7 +19858,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19858
19858
|
modifiers: "details",
|
|
19859
19859
|
class: "border border-surface-3 rounded-lg mb-md"
|
|
19860
19860
|
}, {
|
|
19861
|
-
default: K(() => [P("div",
|
|
19861
|
+
default: K(() => [P("div", dE, [
|
|
19862
19862
|
I(x, {
|
|
19863
19863
|
modelValue: Be.value,
|
|
19864
19864
|
"onUpdate:modelValue": c[61] ||= (e) => Be.value = e,
|
|
@@ -19919,7 +19919,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19919
19919
|
class: "mb-0"
|
|
19920
19920
|
}, {
|
|
19921
19921
|
default: K(() => [
|
|
19922
|
-
P("p",
|
|
19922
|
+
P("p", fE, H(U(n)("hint.externalContextSchema")), 1),
|
|
19923
19923
|
I(OC, {
|
|
19924
19924
|
modelValue: Pt.value,
|
|
19925
19925
|
"onUpdate:modelValue": c[63] ||= (e) => Pt.value = e,
|
|
@@ -19966,7 +19966,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19966
19966
|
_: 1
|
|
19967
19967
|
}, 8, ["legend"])
|
|
19968
19968
|
])),
|
|
19969
|
-
P("div", null, [P("h3",
|
|
19969
|
+
P("div", null, [P("h3", pE, H(U(n)("label.iframe")), 1), P("p", mE, H(U(n)("hint.embedIframe")), 1)]),
|
|
19970
19970
|
I(rT, { source: nn.value }, {
|
|
19971
19971
|
default: K(() => [I(lt, {
|
|
19972
19972
|
code: nn.value,
|
|
@@ -19976,7 +19976,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19976
19976
|
}, null, 8, ["code"])]),
|
|
19977
19977
|
_: 1
|
|
19978
19978
|
}, 8, ["source"]),
|
|
19979
|
-
P("div", null, [P("h4",
|
|
19979
|
+
P("div", null, [P("h4", hE, H(U(n)("label.preview")), 1), P("p", gE, H(U(n)("hint.embedPreview")), 1)]),
|
|
19980
19980
|
I(rT, { source: en.value }, {
|
|
19981
19981
|
actions: K(() => [I(Ae, {
|
|
19982
19982
|
modifiers: "action-quiet-small",
|
|
@@ -19985,13 +19985,13 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
19985
19985
|
href: en.value,
|
|
19986
19986
|
target: "_blank"
|
|
19987
19987
|
}, null, 8, ["label", "href"])]),
|
|
19988
|
-
default: K(() => [P("code",
|
|
19988
|
+
default: K(() => [P("code", _E, H(en.value), 1)]),
|
|
19989
19989
|
_: 1
|
|
19990
19990
|
}, 8, ["source"])
|
|
19991
19991
|
])]),
|
|
19992
19992
|
"panel::security": K(() => [
|
|
19993
19993
|
I(Uo, { legend: U(n)("label.rateLimits") }, {
|
|
19994
|
-
default: K(() => [P("div",
|
|
19994
|
+
default: K(() => [P("div", vE, [
|
|
19995
19995
|
I(x, {
|
|
19996
19996
|
modelValue: Ee.value,
|
|
19997
19997
|
"onUpdate:modelValue": c[68] ||= (e) => Ee.value = e,
|
|
@@ -20139,13 +20139,13 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20139
20139
|
"invalid",
|
|
20140
20140
|
"invalid-label"
|
|
20141
20141
|
]),
|
|
20142
|
-
P("p",
|
|
20142
|
+
P("p", yE, H(U(n)("label.imageHostsHint")), 1)
|
|
20143
20143
|
]),
|
|
20144
20144
|
_: 1
|
|
20145
20145
|
}, 8, ["items"]), V(s.$slots, "default")], 512);
|
|
20146
20146
|
};
|
|
20147
20147
|
}
|
|
20148
|
-
}),
|
|
20148
|
+
}), xE = ["aria-current", "title"], SE = /* @__PURE__ */ L({
|
|
20149
20149
|
__name: "PkChatSidebarConversationItem",
|
|
20150
20150
|
props: /*@__PURE__*/ Ar({
|
|
20151
20151
|
conversation: {},
|
|
@@ -20207,7 +20207,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20207
20207
|
"aria-current": e.active ? "page" : void 0,
|
|
20208
20208
|
title: o.value,
|
|
20209
20209
|
onClick: n[4] ||= (e) => i("select")
|
|
20210
|
-
}, H(o.value), 9,
|
|
20210
|
+
}, H(o.value), 9, xE), I(f, jr({
|
|
20211
20211
|
placement: "bottom-end",
|
|
20212
20212
|
modifiers: "menu",
|
|
20213
20213
|
flip: !0,
|
|
@@ -20240,19 +20240,19 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20240
20240
|
}, 16)], 64))], 2);
|
|
20241
20241
|
};
|
|
20242
20242
|
}
|
|
20243
|
-
}),
|
|
20243
|
+
}), CE = ["inert", "aria-label"], wE = { class: "pk-chat-sidebar__header" }, TE = ["title"], EE = { class: "pk-chat-sidebar__actions" }, DE = {
|
|
20244
20244
|
key: 0,
|
|
20245
20245
|
class: "pk-chat-sidebar__list scrollbar-thin vv-skeleton"
|
|
20246
|
-
},
|
|
20246
|
+
}, OE = {
|
|
20247
20247
|
key: 1,
|
|
20248
20248
|
class: "pk-chat-sidebar__list scrollbar-thin"
|
|
20249
|
-
},
|
|
20249
|
+
}, kE = {
|
|
20250
20250
|
key: 0,
|
|
20251
20251
|
class: "pk-chat-sidebar__no-results"
|
|
20252
|
-
},
|
|
20252
|
+
}, AE = { class: "pk-chat-sidebar__group-label" }, jE = {
|
|
20253
20253
|
key: 2,
|
|
20254
20254
|
class: "pk-chat-sidebar__footer"
|
|
20255
|
-
},
|
|
20255
|
+
}, ME = 864e5, NE = /* @__PURE__ */ L({
|
|
20256
20256
|
__name: "PkChatSidebar",
|
|
20257
20257
|
props: /*@__PURE__*/ Ar({
|
|
20258
20258
|
agentId: {},
|
|
@@ -20288,7 +20288,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20288
20288
|
};
|
|
20289
20289
|
for (let n of te.value) {
|
|
20290
20290
|
let r = n.lastMessageAt ? new Date(n.lastMessageAt).getTime() : 0;
|
|
20291
|
-
r >= e ? t.today.push(n) : r >= e -
|
|
20291
|
+
r >= e ? t.today.push(n) : r >= e - ME ? t.yesterday.push(n) : r >= e - 7 * ME ? t.last7Days.push(n) : r >= e - 30 * ME ? t.last30Days.push(n) : t.older.push(n);
|
|
20292
20292
|
}
|
|
20293
20293
|
return Object.entries(t).filter(([, e]) => e.length > 0).map(([e, t]) => ({
|
|
20294
20294
|
key: e,
|
|
@@ -20331,7 +20331,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20331
20331
|
"aria-label": U(s)("label.conversations"),
|
|
20332
20332
|
onKeydown: ce
|
|
20333
20333
|
}, [
|
|
20334
|
-
P("header",
|
|
20334
|
+
P("header", wE, [
|
|
20335
20335
|
e.organizationLogo || e.organizationName ? (z(), j(kn, {
|
|
20336
20336
|
key: 0,
|
|
20337
20337
|
modifiers: "surface ring",
|
|
@@ -20343,7 +20343,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20343
20343
|
key: 1,
|
|
20344
20344
|
class: "pk-chat-sidebar__org-name",
|
|
20345
20345
|
title: e.organizationName
|
|
20346
|
-
}, H(e.organizationName), 9,
|
|
20346
|
+
}, H(e.organizationName), 9, TE)) : M("", !0),
|
|
20347
20347
|
I(a, {
|
|
20348
20348
|
class: "ml-auto",
|
|
20349
20349
|
icon: U(i) ? "ri:close-line" : "ri:sidebar-fold-line",
|
|
@@ -20357,7 +20357,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20357
20357
|
"title"
|
|
20358
20358
|
])
|
|
20359
20359
|
]),
|
|
20360
|
-
P("div",
|
|
20360
|
+
P("div", EE, [
|
|
20361
20361
|
e.agents ? (z(), j(bw, {
|
|
20362
20362
|
key: 0,
|
|
20363
20363
|
agents: e.agents,
|
|
@@ -20385,13 +20385,13 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20385
20385
|
"placeholder"
|
|
20386
20386
|
])
|
|
20387
20387
|
]),
|
|
20388
|
-
U(u) && U(l).length === 0 ? (z(), N("div",
|
|
20388
|
+
U(u) && U(l).length === 0 ? (z(), N("div", DE, [(z(), N(k, null, Hr(6, (e) => P("div", {
|
|
20389
20389
|
key: e,
|
|
20390
20390
|
class: "vv-skeleton__item rounded-md h-36"
|
|
20391
|
-
})), 64))])) : (z(), N("nav",
|
|
20391
|
+
})), 64))])) : (z(), N("nav", OE, [w.value.length === 0 ? (z(), N("p", kE, H(U(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, Hr(w.value, (t) => (z(), N("div", {
|
|
20392
20392
|
key: t.key,
|
|
20393
20393
|
class: "pk-chat-sidebar__group"
|
|
20394
|
-
}, [P("span",
|
|
20394
|
+
}, [P("span", AE, H(t.label), 1), (z(!0), N(k, null, Hr(t.items, (t) => (z(), j(SE, {
|
|
20395
20395
|
key: t.id,
|
|
20396
20396
|
"editing-title": U(_),
|
|
20397
20397
|
"onUpdate:editingTitle": n[4] ||= (e) => Or(_) ? _.value = e : null,
|
|
@@ -20420,44 +20420,44 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20420
20420
|
"onDelete",
|
|
20421
20421
|
"onFiles"
|
|
20422
20422
|
]))), 128))]))), 128))])),
|
|
20423
|
-
t.$slots.footer ? (z(), N("footer",
|
|
20424
|
-
], 46,
|
|
20423
|
+
t.$slots.footer ? (z(), N("footer", jE, [V(t.$slots, "footer")])) : M("", !0)
|
|
20424
|
+
], 46, CE)], 64);
|
|
20425
20425
|
};
|
|
20426
20426
|
}
|
|
20427
|
-
}),
|
|
20427
|
+
}), PE = { class: "pk-retry-countdown" }, FE = /* @__PURE__ */ L({
|
|
20428
20428
|
__name: "PkRetryCountdown",
|
|
20429
20429
|
props: {
|
|
20430
20430
|
countdown: {},
|
|
20431
20431
|
maxSeconds: {}
|
|
20432
20432
|
},
|
|
20433
20433
|
setup(e) {
|
|
20434
|
-
return (e, t) => (z(), N("div",
|
|
20434
|
+
return (e, t) => (z(), N("div", PE, [...t[0] ||= [Tr("<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)]]));
|
|
20435
20435
|
}
|
|
20436
|
-
}),
|
|
20436
|
+
}), IE = {
|
|
20437
20437
|
key: 0,
|
|
20438
20438
|
class: "pk-tool-selection"
|
|
20439
|
-
},
|
|
20439
|
+
}, LE = { 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" }, RE = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, zE = { class: "font-semibold text-12 truncate" }, BE = {
|
|
20440
20440
|
key: 0,
|
|
20441
20441
|
class: "text-10 text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
20442
|
-
},
|
|
20442
|
+
}, VE = ["title"], HE = { class: "font-mono text-10 text-word-3 truncate ml-auto" }, UE = { class: "border rounded-b border-surface-3" }, WE = {
|
|
20443
20443
|
key: 0,
|
|
20444
20444
|
class: "flex flex-col gap-6 p-8 border-b border-surface-3 text-12 text-word-2"
|
|
20445
|
-
},
|
|
20445
|
+
}, GE = { key: 0 }, KE = {
|
|
20446
20446
|
key: 1,
|
|
20447
20447
|
class: "flex items-center gap-4"
|
|
20448
|
-
},
|
|
20448
|
+
}, qE = { 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" }, JE = ["title"], YE = { class: "flex shrink-0" }, XE = { class: "pk-tool-selection__label" }, ZE = { class: "tabular-nums truncate" }, QE = { class: "pk-tool-selection__groups" }, $E = { class: "flex flex-col gap-4 min-w-0" }, eD = { class: "flex items-center gap-6 min-w-0" }, tD = { class: "pk-tool-selection__label" }, nD = ["title"], rD = { class: "flex flex-wrap items-center gap-x-6 gap-y-2 text-10 text-word-3" }, iD = { key: 0 }, aD = {
|
|
20449
20449
|
key: 1,
|
|
20450
20450
|
class: "text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
20451
|
-
},
|
|
20451
|
+
}, oD = {
|
|
20452
20452
|
key: 2,
|
|
20453
20453
|
class: "pk-tool-selection__label"
|
|
20454
|
-
},
|
|
20454
|
+
}, sD = {
|
|
20455
20455
|
key: 3,
|
|
20456
20456
|
class: "pk-tool-selection__tag rounded px-4 py-2"
|
|
20457
|
-
},
|
|
20457
|
+
}, cD = {
|
|
20458
20458
|
key: 4,
|
|
20459
20459
|
class: "pk-tool-selection__tag rounded px-4 py-2"
|
|
20460
|
-
},
|
|
20460
|
+
}, lD = ["title"], uD = { class: "text-10 text-word-2 tabular-nums" }, dD = /* @__PURE__ */ L({
|
|
20461
20461
|
__name: "PkToolSelection",
|
|
20462
20462
|
props: { message: {} },
|
|
20463
20463
|
setup(e) {
|
|
@@ -20499,32 +20499,32 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20499
20499
|
});
|
|
20500
20500
|
return (e, t) => {
|
|
20501
20501
|
let s = pr;
|
|
20502
|
-
return a.value ? (z(), N("section",
|
|
20503
|
-
P("div",
|
|
20502
|
+
return a.value ? (z(), N("section", IE, [P("header", LE, [
|
|
20503
|
+
P("div", RE, [I(s, {
|
|
20504
20504
|
name: "ri:filter-3-line",
|
|
20505
20505
|
class: "w-12 h-12"
|
|
20506
20506
|
})]),
|
|
20507
|
-
P("strong",
|
|
20508
|
-
a.value.decision.failed ? (z(), N("span",
|
|
20507
|
+
P("strong", zE, H(U(n)("toolSelection.title")), 1),
|
|
20508
|
+
a.value.decision.failed ? (z(), N("span", BE, H(U(n)("toolSelection.failed")), 1)) : (z(), N("span", {
|
|
20509
20509
|
key: 1,
|
|
20510
20510
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
|
|
20511
20511
|
title: U(n)(`toolSelection.modeHint.${a.value.decision.mode}`)
|
|
20512
|
-
}, H(U(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9,
|
|
20513
|
-
P("code",
|
|
20514
|
-
]), P("div",
|
|
20515
|
-
a.value.decision.failed || a.value.missed > 0 ? (z(), N("div",
|
|
20512
|
+
}, H(U(n)(`toolSelection.mode.${a.value.decision.mode}`)), 9, VE)),
|
|
20513
|
+
P("code", HE, H(U(ke)), 1)
|
|
20514
|
+
]), P("div", UE, [
|
|
20515
|
+
a.value.decision.failed || a.value.missed > 0 ? (z(), N("div", WE, [a.value.decision.failed ? (z(), N("p", GE, H(U(n)("toolSelection.leadFailed", { budget: U(r)(a.value.decision.budgetMs, "integer") })), 1)) : M("", !0), a.value.missed > 0 ? (z(), N("p", KE, [I(s, {
|
|
20516
20516
|
name: "ri:error-warning-line",
|
|
20517
20517
|
class: "shrink-0 text-warning-darken-3"
|
|
20518
20518
|
}), F(" " + H(U(n)(a.value.decision.mode === "active" ? "toolSelection.missedActive" : "toolSelection.missedShadow", a.value.missed)), 1)])) : M("", !0)])) : M("", !0),
|
|
20519
|
-
P("dl",
|
|
20519
|
+
P("dl", qE, [(z(!0), N(k, null, Hr(o.value, (e) => (z(), N("div", {
|
|
20520
20520
|
key: e.icon,
|
|
20521
20521
|
class: "flex items-center gap-6 min-w-0",
|
|
20522
20522
|
title: e.label
|
|
20523
|
-
}, [P("dt",
|
|
20523
|
+
}, [P("dt", YE, [I(s, {
|
|
20524
20524
|
name: e.icon,
|
|
20525
20525
|
"aria-hidden": "true"
|
|
20526
|
-
}, null, 8, ["name"]), P("span",
|
|
20527
|
-
P("ul",
|
|
20526
|
+
}, null, 8, ["name"]), P("span", XE, H(e.label), 1)]), P("dd", ZE, H(e.value), 1)], 8, JE))), 128))]),
|
|
20527
|
+
P("ul", QE, [(z(!0), N(k, null, Hr(a.value.groups, (e) => (z(), N("li", {
|
|
20528
20528
|
key: e.id,
|
|
20529
20529
|
class: Nr(["pk-tool-selection__group", {
|
|
20530
20530
|
"pk-tool-selection__group--selected": e.selected,
|
|
@@ -20535,24 +20535,24 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20535
20535
|
name: e.selected ? "ri:check-line" : "ri:subtract-line",
|
|
20536
20536
|
class: "pk-tool-selection__mark shrink-0"
|
|
20537
20537
|
}, null, 8, ["name"]),
|
|
20538
|
-
P("div",
|
|
20538
|
+
P("div", $E, [P("span", eD, [
|
|
20539
20539
|
I(s, {
|
|
20540
20540
|
name: i[e.kind],
|
|
20541
20541
|
class: "shrink-0 w-14 h-14",
|
|
20542
20542
|
title: U(n)(`toolSelection.kind.${e.kind}`),
|
|
20543
20543
|
"aria-hidden": "true"
|
|
20544
20544
|
}, null, 8, ["name", "title"]),
|
|
20545
|
-
P("span",
|
|
20545
|
+
P("span", tD, H(U(n)(`toolSelection.kind.${e.kind}`)), 1),
|
|
20546
20546
|
P("span", {
|
|
20547
20547
|
class: "pk-tool-selection__name truncate",
|
|
20548
20548
|
title: e.name
|
|
20549
|
-
}, H(e.name), 9,
|
|
20550
|
-
]), P("span",
|
|
20551
|
-
e.kind === "mcp" ? (z(), N("span",
|
|
20552
|
-
e.used && !e.selected ? (z(), N("span",
|
|
20553
|
-
e.used ? (z(), N("span",
|
|
20554
|
-
e.enabled ? (z(), N("span",
|
|
20555
|
-
e.seeded ? (z(), N("span",
|
|
20549
|
+
}, H(e.name), 9, nD)
|
|
20550
|
+
]), P("span", rD, [
|
|
20551
|
+
e.kind === "mcp" ? (z(), N("span", iD, H(U(n)("toolSelection.tools", e.tools)), 1)) : M("", !0),
|
|
20552
|
+
e.used && !e.selected ? (z(), N("span", aD, H(U(n)("toolSelection.missed")), 1)) : M("", !0),
|
|
20553
|
+
e.used ? (z(), N("span", oD, H(U(n)("toolSelection.used")), 1)) : M("", !0),
|
|
20554
|
+
e.enabled ? (z(), N("span", sD, H(U(n)("toolSelection.enabled")), 1)) : M("", !0),
|
|
20555
|
+
e.seeded ? (z(), N("span", cD, H(U(n)("toolSelection.seeded")), 1)) : M("", !0)
|
|
20556
20556
|
])]),
|
|
20557
20557
|
e.probability === void 0 ? M("", !0) : (z(), N("div", {
|
|
20558
20558
|
key: 0,
|
|
@@ -20565,18 +20565,18 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20565
20565
|
"--pk-tool-selection-probability": `${e.probability * 100}%`,
|
|
20566
20566
|
"--pk-tool-selection-threshold": `${a.value.decision.threshold * 100}%`
|
|
20567
20567
|
})
|
|
20568
|
-
}, null, 4), P("span",
|
|
20568
|
+
}, null, 4), P("span", uD, H(U(r)(e.probability, "decimal")), 1)], 8, lD))
|
|
20569
20569
|
], 2))), 128))])
|
|
20570
20570
|
])])) : M("", !0);
|
|
20571
20571
|
};
|
|
20572
20572
|
}
|
|
20573
|
-
}),
|
|
20573
|
+
}), fD = ["aria-labelledby"], pD = { 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" }, mD = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, hD = ["id"], gD = {
|
|
20574
20574
|
key: 0,
|
|
20575
20575
|
class: "text-10 text-word-1 bg-surface-warning rounded px-4 py-2"
|
|
20576
|
-
},
|
|
20576
|
+
}, _D = ["title"], vD = { class: "u-visually-hidden" }, yD = ["title"], bD = { class: "u-visually-hidden" }, xD = { class: "border rounded-b border-surface-3" }, SD = {
|
|
20577
20577
|
key: 0,
|
|
20578
20578
|
class: "p-8 border-b border-surface-3 text-12 text-word-2"
|
|
20579
|
-
},
|
|
20579
|
+
}, CD = ["title"], wD = { class: "flex shrink-0" }, TD = { class: "u-visually-hidden" }, ED = { class: "tabular-nums truncate" }, DD = { key: 1 }, OD = ["title"], kD = ["title"], AD = { class: "text-10 text-word-2 tabular-nums" }, jD = .5, MD = /* @__PURE__ */ L({
|
|
20580
20580
|
__name: "PkTurnEvaluation",
|
|
20581
20581
|
props: { message: {} },
|
|
20582
20582
|
setup(e) {
|
|
@@ -20620,79 +20620,79 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20620
20620
|
key: 0,
|
|
20621
20621
|
class: "pk-turn-evaluation",
|
|
20622
20622
|
"aria-labelledby": U(a)
|
|
20623
|
-
}, [P("header",
|
|
20624
|
-
P("div",
|
|
20623
|
+
}, [P("header", pD, [
|
|
20624
|
+
P("div", mD, [I(r, {
|
|
20625
20625
|
name: "ri:scales-line",
|
|
20626
20626
|
class: "w-12 h-12"
|
|
20627
20627
|
})]),
|
|
20628
20628
|
P("strong", {
|
|
20629
20629
|
id: U(a),
|
|
20630
20630
|
class: "font-semibold text-12 truncate"
|
|
20631
|
-
}, H(U(n)("turnEvaluation.title")), 9,
|
|
20632
|
-
o.value.failed ? (z(), N("span",
|
|
20631
|
+
}, H(U(n)("turnEvaluation.title")), 9, hD),
|
|
20632
|
+
o.value.failed ? (z(), N("span", gD, H(U(n)("toolSelection.failed")), 1)) : (z(), N("span", {
|
|
20633
20633
|
key: 1,
|
|
20634
20634
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2",
|
|
20635
20635
|
title: U(n)("turnEvaluation.modeHint")
|
|
20636
|
-
}, [F(H(U(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span",
|
|
20636
|
+
}, [F(H(U(n)(`toolSelection.mode.${o.value.mode}`)) + " ", 1), P("span", vD, H(U(n)("turnEvaluation.modeHint")), 1)], 8, _D)),
|
|
20637
20637
|
P("code", {
|
|
20638
20638
|
class: "font-mono text-10 text-word-3 truncate ml-auto",
|
|
20639
20639
|
title: U(n)("turnEvaluation.version", { version: o.value.version })
|
|
20640
|
-
}, [F(H(U(ke)) + " ", 1), P("span",
|
|
20641
|
-
]), P("div",
|
|
20642
|
-
o.value.failed ? (z(), N("p",
|
|
20640
|
+
}, [F(H(U(ke)) + " ", 1), P("span", bD, H(U(n)("turnEvaluation.version", { version: o.value.version })), 1)], 8, yD)
|
|
20641
|
+
]), P("div", xD, [
|
|
20642
|
+
o.value.failed ? (z(), N("p", SD, H(U(n)("turnEvaluation.leadFailed", { budget: U(i)(o.value.budgetMs, "integer") })), 1)) : M("", !0),
|
|
20643
20643
|
P("dl", { class: Nr(["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, Hr(l.value, (e) => (z(), N("div", {
|
|
20644
20644
|
key: e.icon,
|
|
20645
20645
|
class: "flex items-center gap-6 min-w-0",
|
|
20646
20646
|
title: e.label
|
|
20647
|
-
}, [P("dt",
|
|
20647
|
+
}, [P("dt", wD, [I(r, {
|
|
20648
20648
|
name: e.icon,
|
|
20649
20649
|
"aria-hidden": "true"
|
|
20650
|
-
}, null, 8, ["name"]), P("span",
|
|
20651
|
-
c.value.length > 0 ? (z(), N("ul",
|
|
20650
|
+
}, null, 8, ["name"]), P("span", TD, H(e.label), 1)]), P("dd", ED, H(e.value), 1)], 8, CD))), 128))], 2),
|
|
20651
|
+
c.value.length > 0 ? (z(), N("ul", DD, [(z(!0), N(k, null, Hr(c.value, (e) => (z(), N("li", {
|
|
20652
20652
|
key: e.id,
|
|
20653
|
-
class: Nr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >=
|
|
20653
|
+
class: Nr(["pk-turn-evaluation__question", { "pk-turn-evaluation__question--yes": e.probability >= jD }])
|
|
20654
20654
|
}, [P("span", {
|
|
20655
20655
|
class: "truncate",
|
|
20656
20656
|
title: e.label
|
|
20657
|
-
}, H(e.label), 9,
|
|
20657
|
+
}, H(e.label), 9, OD), P("div", {
|
|
20658
20658
|
class: "pk-turn-evaluation__probability",
|
|
20659
20659
|
title: U(n)("turnEvaluation.probability")
|
|
20660
20660
|
}, [P("span", {
|
|
20661
20661
|
class: "pk-turn-evaluation__bar",
|
|
20662
20662
|
"aria-hidden": "true",
|
|
20663
20663
|
style: Fr({ "--pk-turn-evaluation-probability": `${e.probability * 100}%` })
|
|
20664
|
-
}, null, 4), P("span",
|
|
20665
|
-
])], 8,
|
|
20664
|
+
}, null, 4), P("span", AD, H(U(i)(e.probability, "decimal")), 1)], 8, kD)], 2))), 128))])) : M("", !0)
|
|
20665
|
+
])], 8, fD)) : M("", !0);
|
|
20666
20666
|
};
|
|
20667
20667
|
}
|
|
20668
|
-
}),
|
|
20668
|
+
}), ND = { class: "flex flex-col gap-16" }, PD = {
|
|
20669
20669
|
key: 0,
|
|
20670
20670
|
class: "grid grid-cols-2 gap-x-10 text-12 text-word-3 justify-between"
|
|
20671
|
-
},
|
|
20671
|
+
}, FD = { class: "flex flex-col gap-y-4" }, ID = {
|
|
20672
20672
|
key: 1,
|
|
20673
20673
|
class: "flex items-center gap-4 min-w-0"
|
|
20674
|
-
},
|
|
20674
|
+
}, LD = { class: "truncate" }, RD = {
|
|
20675
20675
|
key: 2,
|
|
20676
20676
|
class: "flex items-center gap-4 min-w-0"
|
|
20677
|
-
},
|
|
20677
|
+
}, zD = { class: "truncate" }, BD = { key: 0 }, VD = {
|
|
20678
20678
|
key: 3,
|
|
20679
20679
|
class: "flex items-center gap-4"
|
|
20680
|
-
},
|
|
20680
|
+
}, HD = {
|
|
20681
20681
|
key: 4,
|
|
20682
20682
|
class: "flex items-center gap-4"
|
|
20683
|
-
},
|
|
20683
|
+
}, UD = { class: "flex flex-col gap-y-4 items-end" }, WD = ["datetime"], GD = {
|
|
20684
20684
|
key: 1,
|
|
20685
20685
|
class: "flex items-center gap-4"
|
|
20686
|
-
},
|
|
20686
|
+
}, KD = { key: 0 }, qD = {
|
|
20687
20687
|
key: 2,
|
|
20688
20688
|
class: "flex items-center gap-4"
|
|
20689
|
-
},
|
|
20689
|
+
}, JD = {
|
|
20690
20690
|
key: 3,
|
|
20691
20691
|
class: "flex items-center gap-4 min-w-0"
|
|
20692
|
-
},
|
|
20692
|
+
}, YD = { class: "truncate" }, XD = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, ZD = { class: "font-semibold truncate" }, QD = ["title"], $D = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, eO = { class: "font-semibold truncate" }, tO = ["title"], nO = { class: "grid grid-cols-3 gap-x-8 gap-y-2 text-10 text-word-3" }, rO = { class: "font-semibold truncate" }, iO = ["title"], aO = { class: "flex flex-col gap-16" }, oO = { class: "flex items-center bg-gray text-white px-6 py-3 rounded" }, sO = { class: "tracking-widest border-r border-gray-lighten-3 pr-4" }, cO = { class: "font-bold text-12" }, lO = { class: "text-10" }, uO = { class: "font-mono text-10 text-word-2 truncate" }, dO = {
|
|
20693
20693
|
key: 0,
|
|
20694
20694
|
class: "text-10 text-word-4 whitespace-nowrap ml-auto"
|
|
20695
|
-
},
|
|
20695
|
+
}, fO = { key: 0 }, pO = { class: "border rounded-b border-surface-3" }, mO = { class: "font-bold text-10 uppercase p-8 border-b border-surface-3" }, hO = { class: "font-bold text-10 uppercase p-8 border-b border-t border-surface-3" }, gO = /* @__PURE__ */ L({
|
|
20696
20696
|
__name: "PkMessageParts",
|
|
20697
20697
|
props: { message: {} },
|
|
20698
20698
|
setup(e) {
|
|
@@ -20723,29 +20723,29 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20723
20723
|
}), o = A(() => t.message?.metadata?.transport === xe.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);
|
|
20724
20724
|
return (t, l) => {
|
|
20725
20725
|
let u = pr, d = tr, f = nr, p = Ur("PjResizablePanel");
|
|
20726
|
-
return z(), N("div",
|
|
20727
|
-
e.message.metadata?.model || o.value ? (z(), N("div",
|
|
20726
|
+
return z(), N("div", ND, [
|
|
20727
|
+
e.message.metadata?.model || o.value ? (z(), N("div", PD, [P("div", FD, [
|
|
20728
20728
|
e.message.metadata?.model ? (z(), j(Fw, {
|
|
20729
20729
|
key: 0,
|
|
20730
20730
|
"model-name": e.message.metadata?.model,
|
|
20731
20731
|
historical: ""
|
|
20732
20732
|
}, null, 8, ["model-name"])) : M("", !0),
|
|
20733
|
-
e.message?.metadata?.resolvedProvider ? (z(), N("span",
|
|
20733
|
+
e.message?.metadata?.resolvedProvider ? (z(), N("span", ID, [I(u, {
|
|
20734
20734
|
name: "ri:cloud-line",
|
|
20735
20735
|
class: "shrink-0"
|
|
20736
|
-
}), P("span",
|
|
20737
|
-
e.message?.metadata?.totalTokens ? (z(), N("span",
|
|
20736
|
+
}), P("span", LD, [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),
|
|
20737
|
+
e.message?.metadata?.totalTokens ? (z(), N("span", RD, [I(u, {
|
|
20738
20738
|
name: "ri:ai-generate-2-line",
|
|
20739
20739
|
class: "shrink-0"
|
|
20740
|
-
}), P("span",
|
|
20741
|
-
e.message?.metadata?.zeroDataRetention ? (z(), N("span",
|
|
20740
|
+
}), P("span", zD, [F(H(t.$n(e.message.metadata.totalTokens, "integer")) + " " + H(t.$t("label.tokens")) + " ", 1), e.message?.metadata?.cachedTokens ? (z(), N("span", BD, " (" + H(t.$n(e.message.metadata.cachedTokens, "integer")) + " " + H(t.$t("label.cached")) + ") ", 1)) : M("", !0)])])) : M("", !0),
|
|
20741
|
+
e.message?.metadata?.zeroDataRetention ? (z(), N("span", VD, [I(u, {
|
|
20742
20742
|
name: "ri:shield-check-line",
|
|
20743
20743
|
class: "shrink-0"
|
|
20744
|
-
}), F(" " + H(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span",
|
|
20744
|
+
}), F(" " + H(t.$t("label.noDataRetention")), 1)])) : e.message?.metadata?.disallowPromptTraining ? (z(), N("span", HD, [I(u, {
|
|
20745
20745
|
name: "ri:shield-check-line",
|
|
20746
20746
|
class: "shrink-0"
|
|
20747
20747
|
}), F(" " + H(t.$t("label.noPromptTraining")), 1)])) : M("", !0)
|
|
20748
|
-
]), P("div",
|
|
20748
|
+
]), P("div", UD, [
|
|
20749
20749
|
e.message?.metadata?.createdAt ? (z(), N("time", {
|
|
20750
20750
|
key: 0,
|
|
20751
20751
|
datetime: new Date(e.message.metadata.createdAt).toISOString(),
|
|
@@ -20753,8 +20753,8 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20753
20753
|
}, [I(u, {
|
|
20754
20754
|
name: "ri:time-line",
|
|
20755
20755
|
class: "shrink-0"
|
|
20756
|
-
}), F(" " + H(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8,
|
|
20757
|
-
e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div",
|
|
20756
|
+
}), F(" " + H(t.$d(new Date(e.message.metadata.createdAt), "date-time")), 1)], 8, WD)) : M("", !0),
|
|
20757
|
+
e.message?.metadata?.completedAt && e.message?.metadata?.createdAt ? (z(), N("div", GD, [
|
|
20758
20758
|
I(u, {
|
|
20759
20759
|
name: "ri:hourglass-line",
|
|
20760
20760
|
class: "shrink-0"
|
|
@@ -20763,16 +20763,16 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20763
20763
|
date: e.message.metadata?.createdAt,
|
|
20764
20764
|
"end-date": e.message.metadata?.completedAt
|
|
20765
20765
|
}, null, 8, ["date", "end-date"]),
|
|
20766
|
-
e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span",
|
|
20766
|
+
e.message?.metadata?.totalProviderAttemptCount && e.message.metadata.totalProviderAttemptCount > 1 ? (z(), N("span", KD, " (" + H(e.message.metadata.totalProviderAttemptCount) + " attempts) ", 1)) : M("", !0)
|
|
20767
20767
|
])) : M("", !0),
|
|
20768
|
-
e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span",
|
|
20768
|
+
e.message?.metadata?.cost && parseFloat(e.message.metadata.cost) > 0 ? (z(), N("span", qD, [I(u, {
|
|
20769
20769
|
name: "ri:wallet-line",
|
|
20770
20770
|
class: "shrink-0"
|
|
20771
20771
|
}), F(" " + H(t.$n(parseFloat(e.message.metadata.cost), "currencyUSD")), 1)])) : M("", !0),
|
|
20772
|
-
o.value ? (z(), N("span",
|
|
20772
|
+
o.value ? (z(), N("span", JD, [I(u, {
|
|
20773
20773
|
name: "ri:mic-line",
|
|
20774
20774
|
class: "shrink-0"
|
|
20775
|
-
}), P("span",
|
|
20775
|
+
}), P("span", YD, H(t.$t("label.spokenExchange")), 1)])) : M("", !0)
|
|
20776
20776
|
])])) : M("", !0),
|
|
20777
20777
|
a.value || c.value || s.value ? (z(), j(f, {
|
|
20778
20778
|
key: 1,
|
|
@@ -20785,10 +20785,10 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20785
20785
|
title: t.$t("label.platformContext"),
|
|
20786
20786
|
class: "border border-surface-3 rounded"
|
|
20787
20787
|
}, {
|
|
20788
|
-
default: K(() => [P("dl",
|
|
20788
|
+
default: K(() => [P("dl", XD, [(z(!0), N(k, null, Hr(e.message.metadata?.platformContext, (e, t) => (z(), N(k, { key: t }, [P("dt", ZD, H(U(y)(U(ee)(t))), 1), P("dd", {
|
|
20789
20789
|
class: "truncate font-mono col-span-2",
|
|
20790
20790
|
title: String(e)
|
|
20791
|
-
}, H(e), 9,
|
|
20791
|
+
}, H(e), 9, QD)], 64))), 128))])]),
|
|
20792
20792
|
_: 1
|
|
20793
20793
|
}, 8, ["title"])) : M("", !0),
|
|
20794
20794
|
a.value ? (z(), j(d, {
|
|
@@ -20797,10 +20797,10 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20797
20797
|
title: t.$t("label.deviceContext"),
|
|
20798
20798
|
class: "border border-surface-3 rounded"
|
|
20799
20799
|
}, {
|
|
20800
|
-
default: K(() => [P("dl",
|
|
20800
|
+
default: K(() => [P("dl", $D, [(z(!0), N(k, null, Hr(a.value, (e, t) => (z(), N(k, { key: t }, [P("dt", eO, H(U(y)(U(ee)(t))), 1), P("dd", {
|
|
20801
20801
|
class: "truncate font-mono col-span-2",
|
|
20802
20802
|
title: String(e)
|
|
20803
|
-
}, H(e), 9,
|
|
20803
|
+
}, H(e), 9, tO)], 64))), 128))])]),
|
|
20804
20804
|
_: 1
|
|
20805
20805
|
}, 8, ["title"])) : M("", !0),
|
|
20806
20806
|
s.value ? (z(), j(d, {
|
|
@@ -20809,19 +20809,19 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20809
20809
|
title: t.$t("label.externalContext"),
|
|
20810
20810
|
class: "border border-surface-3 rounded"
|
|
20811
20811
|
}, {
|
|
20812
|
-
default: K(() => [P("dl",
|
|
20812
|
+
default: K(() => [P("dl", nO, [(z(!0), N(k, null, Hr(e.message.metadata?.externalContext, (e, t) => (z(), N(k, { key: t }, [P("dt", rO, H(U(y)(U(ee)(t))), 1), P("dd", {
|
|
20813
20813
|
class: "truncate font-mono col-span-2",
|
|
20814
20814
|
title: String(e)
|
|
20815
|
-
}, H(e), 9,
|
|
20815
|
+
}, H(e), 9, iO)], 64))), 128))])]),
|
|
20816
20816
|
_: 1
|
|
20817
20817
|
}, 8, ["title"])) : M("", !0)
|
|
20818
20818
|
]),
|
|
20819
20819
|
_: 1
|
|
20820
20820
|
})) : M("", !0),
|
|
20821
|
-
I(
|
|
20822
|
-
P("ol",
|
|
20821
|
+
I(dD, { message: e.message }, null, 8, ["message"]),
|
|
20822
|
+
P("ol", aO, [(z(!0), N(k, null, Hr(n.value, (e, a) => (z(), N("li", { key: a }, [
|
|
20823
20823
|
P("span", { class: Nr(["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(Je)(e) && !U(Ke)(e) }]) }, [
|
|
20824
|
-
P("div",
|
|
20824
|
+
P("div", oO, [P("span", sO, [P("strong", cO, H(a + 1), 1), P("span", lO, "/" + H(n.value.length), 1)]), (U(Je)(e) || U(qe)(e)) && U(xn)(e.state) ? (z(), j(u, {
|
|
20825
20825
|
key: 0,
|
|
20826
20826
|
name: "loading-loop",
|
|
20827
20827
|
class: "w-12 h-12 ml-4"
|
|
@@ -20830,11 +20830,11 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20830
20830
|
name: U(Sn)(e) || "ri:question-line",
|
|
20831
20831
|
class: "w-12 h-12 ml-4"
|
|
20832
20832
|
}, null, 8, ["name"]))]),
|
|
20833
|
-
P("code",
|
|
20834
|
-
"toolCallId" in e && r(e.toolCallId) ? (z(), N("span",
|
|
20833
|
+
P("code", uO, H(U(v)(e.type)), 1),
|
|
20834
|
+
"toolCallId" in e && r(e.toolCallId) ? (z(), N("span", dO, H(U(i)(r(e.toolCallId))), 1)) : M("", !0)
|
|
20835
20835
|
], 2),
|
|
20836
|
-
U(Je)(e) ? (z(), N("div",
|
|
20837
|
-
P("div",
|
|
20836
|
+
U(Je)(e) ? (z(), N("div", fO, [P("div", pO, [
|
|
20837
|
+
P("div", mO, H(t.$t("label.input")), 1),
|
|
20838
20838
|
I(p, {
|
|
20839
20839
|
"min-height": 128,
|
|
20840
20840
|
"fit-content": ""
|
|
@@ -20846,7 +20846,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20846
20846
|
}, null, 8, ["code"])]),
|
|
20847
20847
|
_: 2
|
|
20848
20848
|
}, 1024),
|
|
20849
|
-
e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div",
|
|
20849
|
+
e.output && e.output !== "null" ? (z(), N(k, { key: 0 }, [P("div", hO, H(t.$t("label.output")), 1), I(p, {
|
|
20850
20850
|
"min-height": 128,
|
|
20851
20851
|
"fit-content": ""
|
|
20852
20852
|
}, {
|
|
@@ -20872,26 +20872,26 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20872
20872
|
_: 2
|
|
20873
20873
|
}, 1024)) : M("", !0)
|
|
20874
20874
|
]))), 128))]),
|
|
20875
|
-
I(
|
|
20875
|
+
I(MD, { message: e.message }, null, 8, ["message"])
|
|
20876
20876
|
]);
|
|
20877
20877
|
};
|
|
20878
20878
|
}
|
|
20879
|
-
}),
|
|
20879
|
+
}), _O = {
|
|
20880
20880
|
key: 0,
|
|
20881
20881
|
class: "border-t border-surface-3"
|
|
20882
|
-
},
|
|
20882
|
+
}, vO = { class: "flex flex-col" }, yO = { class: "flex items-center hover:bg-surface-1 transition-colors" }, bO = ["aria-expanded", "onClick"], xO = { class: "flex items-center gap-4 shrink-0" }, SO = {
|
|
20883
20883
|
key: 0,
|
|
20884
20884
|
class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2"
|
|
20885
|
-
},
|
|
20885
|
+
}, CO = { class: "text-10 text-word-4 bg-surface-2 rounded px-4 py-2 uppercase" }, wO = {
|
|
20886
20886
|
key: 0,
|
|
20887
20887
|
class: "border-t border-surface-3"
|
|
20888
|
-
},
|
|
20888
|
+
}, TO = {
|
|
20889
20889
|
key: 0,
|
|
20890
20890
|
class: "px-8 py-4 text-10 text-word-3 bg-surface-1 border-b border-surface-3"
|
|
20891
|
-
},
|
|
20891
|
+
}, EO = ["onClick"], DO = {
|
|
20892
20892
|
key: 0,
|
|
20893
20893
|
class: "px-8 py-6 bg-surface-1 border-t border-surface-3"
|
|
20894
|
-
},
|
|
20894
|
+
}, OO = { class: "flex justify-between items-center gap-4 min-w-0" }, kO = { class: "font-semibold text-12 truncate" }, AO = /* @__PURE__ */ L({
|
|
20895
20895
|
__name: "PkMessageDetail",
|
|
20896
20896
|
props: {
|
|
20897
20897
|
message: {},
|
|
@@ -20916,14 +20916,14 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20916
20916
|
};
|
|
20917
20917
|
return (s, c) => {
|
|
20918
20918
|
let l = pr, u = or, d = tr;
|
|
20919
|
-
return z(), j(
|
|
20919
|
+
return z(), j(gO, { message: e.message }, wr({
|
|
20920
20920
|
subagent: K(({ part: t }) => [t.output?.reasoningChatId && (t.output?.subAgentId || t.input?.objective) ? (z(), j(d, {
|
|
20921
20921
|
key: 0,
|
|
20922
20922
|
title: t.output.subAgentId ? s.$t("label.subAgent") : s.$t("agent.tool.runWorker"),
|
|
20923
20923
|
modifiers: "details",
|
|
20924
20924
|
class: "border-t border-surface-3"
|
|
20925
20925
|
}, {
|
|
20926
|
-
default: K(() => [P("div",
|
|
20926
|
+
default: K(() => [P("div", OO, [P("strong", kO, H(t.output.subAgentName ?? t.input?.objective), 1), I(u, {
|
|
20927
20927
|
modifiers: "action-small",
|
|
20928
20928
|
icon: "ri:eye-line",
|
|
20929
20929
|
class: "text-10 shrink-0",
|
|
@@ -20942,10 +20942,10 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20942
20942
|
_: 2
|
|
20943
20943
|
}, [e.canReadDocuments ? {
|
|
20944
20944
|
name: "tool-search-in-knowledge-base",
|
|
20945
|
-
fn: K(({ part: c }) => [c.output?.results?.length ? (z(), N("div",
|
|
20945
|
+
fn: K(({ part: c }) => [c.output?.results?.length ? (z(), N("div", _O, [P("ul", vO, [(z(!0), N(k, null, Hr(o(c.output.results), (o) => (z(), N("li", {
|
|
20946
20946
|
key: o.document.id,
|
|
20947
20947
|
class: "border-b border-surface-3 last:border-b-0"
|
|
20948
|
-
}, [P("div",
|
|
20948
|
+
}, [P("div", yO, [P("button", {
|
|
20949
20949
|
type: "button",
|
|
20950
20950
|
class: "flex items-center gap-8 p-8 flex-1 min-w-0 text-left cursor-pointer",
|
|
20951
20951
|
"aria-expanded": t.has(o.document.id),
|
|
@@ -20961,14 +20961,14 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20961
20961
|
"name",
|
|
20962
20962
|
"url",
|
|
20963
20963
|
"filename"
|
|
20964
|
-
]), P("div",
|
|
20965
|
-
o.chunks.length > 1 ? (z(), N("span",
|
|
20966
|
-
P("span",
|
|
20964
|
+
]), P("div", xO, [
|
|
20965
|
+
o.chunks.length > 1 ? (z(), N("span", SO, H(o.chunks.length), 1)) : M("", !0),
|
|
20966
|
+
P("span", CO, H(o.document.language), 1),
|
|
20967
20967
|
I(l, {
|
|
20968
20968
|
name: t.has(o.document.id) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
20969
20969
|
class: "text-16 text-word-3"
|
|
20970
20970
|
}, null, 8, ["name"])
|
|
20971
|
-
])], 8,
|
|
20971
|
+
])], 8, bO), I(u, {
|
|
20972
20972
|
modifiers: "action-quiet-small",
|
|
20973
20973
|
icon: "ri:eye-line",
|
|
20974
20974
|
class: "text-10 shrink-0 mr-8",
|
|
@@ -20985,7 +20985,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
20985
20985
|
"title",
|
|
20986
20986
|
"aria-label",
|
|
20987
20987
|
"to"
|
|
20988
|
-
])]), t.has(o.document.id) ? (z(), N("div",
|
|
20988
|
+
])]), t.has(o.document.id) ? (z(), N("div", wO, [o.document.source.description ? (z(), N("div", TO, H(o.document.source.description), 1)) : M("", !0), (z(!0), N(k, null, Hr(o.chunks, (e) => (z(), N("div", {
|
|
20989
20989
|
key: e.id,
|
|
20990
20990
|
class: "border-b border-surface-3 last:border-b-0"
|
|
20991
20991
|
}, [P("button", {
|
|
@@ -21001,7 +21001,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21001
21001
|
"similarity",
|
|
21002
21002
|
"max-similarity",
|
|
21003
21003
|
"expanded"
|
|
21004
|
-
])], 8,
|
|
21004
|
+
])], 8, EO), n.has(e.id) ? (z(), N("div", DO, [I(Ve, {
|
|
21005
21005
|
markdown: e.content,
|
|
21006
21006
|
class: "wysiwyg text-10"
|
|
21007
21007
|
}, null, 8, ["markdown"])])) : M("", !0)]))), 128))])) : M("", !0)]))), 128))])])) : M("", !0)]),
|
|
@@ -21009,19 +21009,19 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21009
21009
|
} : void 0]), 1032, ["message"]);
|
|
21010
21010
|
};
|
|
21011
21011
|
}
|
|
21012
|
-
}),
|
|
21012
|
+
}), jO = { class: "flex flex-col h-full bg-surface rounded-xl" }, MO = { class: "sticky z-1 top-0 bg-surface-1 flex items-center justify-between gap-sm p-sm border-b border-surface-3" }, NO = { class: "flex items-center gap-sm min-w-0" }, PO = ["title"], FO = {
|
|
21013
21013
|
key: 1,
|
|
21014
21014
|
class: "text-14 font-bold"
|
|
21015
|
-
},
|
|
21015
|
+
}, IO = { class: "flex-1 flex flex-col gap-md p-md overflow-y-auto min-h-0" }, LO = { class: "flex flex-col" }, RO = { class: "text-12 font-medium text-word-2 mb-xs block" }, zO = ["placeholder", "disabled"], BO = { class: "flex justify-end mt-xs" }, VO = {
|
|
21016
21016
|
key: 1,
|
|
21017
21017
|
class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
|
|
21018
|
-
},
|
|
21018
|
+
}, HO = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, UO = { class: "text-12 text-word-3" }, WO = {
|
|
21019
21019
|
key: 2,
|
|
21020
21020
|
class: "flex flex-col gap-sm p-md bg-surface-1 border border-surface-3 rounded-xl"
|
|
21021
|
-
},
|
|
21021
|
+
}, GO = { class: "flex items-center gap-xs pb-xs border-b border-surface-3" }, KO = { class: "text-12 font-medium text-word-2" }, qO = { class: "flex items-center gap-xs ml-auto" }, JO = {
|
|
21022
21022
|
key: 0,
|
|
21023
21023
|
class: "py-sm text-word-2 leading-normal"
|
|
21024
|
-
},
|
|
21024
|
+
}, YO = /* @__PURE__ */ L({
|
|
21025
21025
|
__name: "PkReasoningChat",
|
|
21026
21026
|
props: {
|
|
21027
21027
|
baseUrl: {},
|
|
@@ -21057,7 +21057,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21057
21057
|
}), p = A(() => f.value?.parts.find((e) => e.type === "text")?.text || "");
|
|
21058
21058
|
return (t, r) => {
|
|
21059
21059
|
let m = or, h = rr, g = pr;
|
|
21060
|
-
return z(), N("div",
|
|
21060
|
+
return z(), N("div", jO, [P("div", MO, [P("div", NO, [I(kn, {
|
|
21061
21061
|
modifiers: "surface ring shrink-0",
|
|
21062
21062
|
class: "w-24 h-24",
|
|
21063
21063
|
name: e.name
|
|
@@ -21065,16 +21065,16 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21065
21065
|
key: 0,
|
|
21066
21066
|
class: "text-14 font-bold truncate",
|
|
21067
21067
|
title: e.name
|
|
21068
|
-
}, H(e.name), 9,
|
|
21068
|
+
}, H(e.name), 9, PO)) : (z(), N("strong", FO, H(U(n)("label.reasoningAgentTester")), 1))]), d.value ? (z(), j(m, {
|
|
21069
21069
|
key: 0,
|
|
21070
21070
|
icon: "ri:reset-right-line",
|
|
21071
21071
|
modifiers: "action-quiet",
|
|
21072
21072
|
title: U(n)("action.clear"),
|
|
21073
21073
|
disabled: u.value,
|
|
21074
21074
|
onClick: l
|
|
21075
|
-
}, null, 8, ["title", "disabled"])) : M("", !0)]), P("div",
|
|
21076
|
-
P("div",
|
|
21077
|
-
P("label",
|
|
21075
|
+
}, null, 8, ["title", "disabled"])) : M("", !0)]), P("div", IO, [
|
|
21076
|
+
P("div", LO, [
|
|
21077
|
+
P("label", RO, H(U(n)("label.question")), 1),
|
|
21078
21078
|
$r(P("textarea", {
|
|
21079
21079
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
21080
21080
|
placeholder: U(n)("placeholder.enterYourQuestion"),
|
|
@@ -21082,8 +21082,8 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21082
21082
|
class: "pk-reasoning-chat__input u-field w-full p-sm text-14 min-h-64",
|
|
21083
21083
|
rows: "3",
|
|
21084
21084
|
onKeydown: c
|
|
21085
|
-
}, null, 40,
|
|
21086
|
-
P("div",
|
|
21085
|
+
}, null, 40, zO), [[Qr, a.value]]),
|
|
21086
|
+
P("div", BO, [I(m, {
|
|
21087
21087
|
label: U(n)("action.submit"),
|
|
21088
21088
|
loading: u.value,
|
|
21089
21089
|
disabled: !a.value.trim() || u.value,
|
|
@@ -21100,17 +21100,17 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21100
21100
|
title: U(n)("label.error"),
|
|
21101
21101
|
content: o.value.error.message
|
|
21102
21102
|
}, null, 8, ["title", "content"])) : M("", !0),
|
|
21103
|
-
u.value && !f.value ? (z(), N("div",
|
|
21103
|
+
u.value && !f.value ? (z(), N("div", VO, [P("div", HO, [I(g, {
|
|
21104
21104
|
name: "loading-loop",
|
|
21105
21105
|
class: "w-16 h-16"
|
|
21106
|
-
}), P("span",
|
|
21107
|
-
f.value ? (z(), N("div",
|
|
21106
|
+
}), P("span", UO, 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),
|
|
21107
|
+
f.value ? (z(), N("div", WO, [P("div", GO, [
|
|
21108
21108
|
I(g, {
|
|
21109
21109
|
name: "ri:robot-2-line",
|
|
21110
21110
|
class: "w-16 h-16"
|
|
21111
21111
|
}),
|
|
21112
|
-
P("span",
|
|
21113
|
-
P("div",
|
|
21112
|
+
P("span", KO, H(U(n)("label.answer")), 1),
|
|
21113
|
+
P("div", qO, [u.value ? (z(), j(g, {
|
|
21114
21114
|
key: 0,
|
|
21115
21115
|
name: "loading-loop",
|
|
21116
21116
|
class: "w-14 h-14"
|
|
@@ -21121,7 +21121,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21121
21121
|
modifiers: "action-quiet-small",
|
|
21122
21122
|
onClick: r[1] ||= ti((e) => i("show-info", f.value), ["stop"])
|
|
21123
21123
|
}, null, 8, ["title"])) : M("", !0)])
|
|
21124
|
-
]), p.value ? (z(), N("div",
|
|
21124
|
+
]), p.value ? (z(), N("div", JO, [I(Ve, {
|
|
21125
21125
|
markdown: p.value,
|
|
21126
21126
|
loading: u.value,
|
|
21127
21127
|
class: "wysiwyg text-14"
|
|
@@ -21129,7 +21129,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21129
21129
|
])]);
|
|
21130
21130
|
};
|
|
21131
21131
|
}
|
|
21132
|
-
}),
|
|
21132
|
+
}), XO = { class: "welcome-popup__text" }, ZO = ["aria-label"], QO = 100, $O = /* @__PURE__ */ L({
|
|
21133
21133
|
__name: "PkWelcomePopup",
|
|
21134
21134
|
props: {
|
|
21135
21135
|
agentId: {},
|
|
@@ -21144,7 +21144,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21144
21144
|
c.value = [], s.value = !1;
|
|
21145
21145
|
let t = e.split(/(\s+)/), n = 0;
|
|
21146
21146
|
function r() {
|
|
21147
|
-
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r,
|
|
21147
|
+
n < t.length ? (c.value.push(t[n]), n++, l = setTimeout(r, QO)) : s.value = !0;
|
|
21148
21148
|
}
|
|
21149
21149
|
r();
|
|
21150
21150
|
}
|
|
@@ -21168,7 +21168,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21168
21168
|
key: 0,
|
|
21169
21169
|
class: "welcome-popup",
|
|
21170
21170
|
onClick: ti(m, ["stop"])
|
|
21171
|
-
}, [P("p",
|
|
21171
|
+
}, [P("p", XO, [(z(!0), N(k, null, Hr(c.value, (e, t) => (z(), N("span", {
|
|
21172
21172
|
key: t,
|
|
21173
21173
|
class: "welcome-popup__word"
|
|
21174
21174
|
}, H(e), 1))), 128))]), I(br, null, {
|
|
@@ -21184,22 +21184,22 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21184
21184
|
width: "14",
|
|
21185
21185
|
height: "14",
|
|
21186
21186
|
fill: "currentColor"
|
|
21187
|
-
}, [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,
|
|
21187
|
+
}, [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, ZO)) : M("", !0)]),
|
|
21188
21188
|
_: 1
|
|
21189
21189
|
})])) : M("", !0)]),
|
|
21190
21190
|
_: 1
|
|
21191
21191
|
}));
|
|
21192
21192
|
}
|
|
21193
|
-
}),
|
|
21193
|
+
}), ek = { class: "pk-pagination mt-auto grid grid-cols-3 gap-md pt-24" }, tk = { class: "flex items-center" }, nk = ["for"], rk = ["id", "disabled"], ik = ["value"], ak = {
|
|
21194
21194
|
key: 1,
|
|
21195
21195
|
class: "ml-8 text-12 font-semibold tabular-nums"
|
|
21196
|
-
},
|
|
21196
|
+
}, ok = { class: "flex justify-center items-center" }, sk = {
|
|
21197
21197
|
class: "rounded-md border border-surface-3 px-14 py-4 text-center text-12 font-bold tabular-nums",
|
|
21198
21198
|
type: "button"
|
|
21199
|
-
},
|
|
21199
|
+
}, ck = {
|
|
21200
21200
|
key: 0,
|
|
21201
21201
|
class: "ml-6 text-12 whitespace-nowrap tabular-nums"
|
|
21202
|
-
},
|
|
21202
|
+
}, lk = { class: "flex text-12 justify-end items-center whitespace-nowrap tabular-nums" }, uk = /* @__PURE__ */ L({
|
|
21203
21203
|
__name: "PkPagination",
|
|
21204
21204
|
props: {
|
|
21205
21205
|
page: {
|
|
@@ -21231,11 +21231,11 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21231
21231
|
});
|
|
21232
21232
|
return (t, i) => {
|
|
21233
21233
|
let u = or, d = sr;
|
|
21234
|
-
return z(), N("div",
|
|
21235
|
-
P("div",
|
|
21234
|
+
return z(), N("div", ek, [
|
|
21235
|
+
P("div", tk, [P("label", {
|
|
21236
21236
|
for: U(r),
|
|
21237
21237
|
class: "text-12 whitespace-nowrap"
|
|
21238
|
-
}, H(U(n)("label.itemsPerPage")), 9,
|
|
21238
|
+
}, H(U(n)("label.itemsPerPage")), 9, nk), e.limitSteps ? $r((z(), N("select", {
|
|
21239
21239
|
key: 0,
|
|
21240
21240
|
id: U(r),
|
|
21241
21241
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e,
|
|
@@ -21244,8 +21244,8 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21244
21244
|
}, [(z(!0), N(k, null, Hr(e.limitSteps, (e) => (z(), N("option", {
|
|
21245
21245
|
key: e,
|
|
21246
21246
|
value: e
|
|
21247
|
-
}, H(e), 9,
|
|
21248
|
-
P("div",
|
|
21247
|
+
}, H(e), 9, ik))), 128))], 8, rk)), [[Zr, l.value]]) : (z(), N("span", ak, H(e.limit), 1))]),
|
|
21248
|
+
P("div", ok, [I(d, { class: "flex-nowrap" }, {
|
|
21249
21249
|
default: K(() => [
|
|
21250
21250
|
I(u, {
|
|
21251
21251
|
title: U(n)("action.prev"),
|
|
@@ -21254,7 +21254,7 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21254
21254
|
modifiers: "action-quiet",
|
|
21255
21255
|
onClick: i[1] ||= ti((t) => a("update:page", e.page - 1), ["stop"])
|
|
21256
21256
|
}, null, 8, ["title", "disabled"]),
|
|
21257
|
-
P("button",
|
|
21257
|
+
P("button", sk, H(e.page), 1),
|
|
21258
21258
|
I(u, {
|
|
21259
21259
|
title: U(n)("action.next"),
|
|
21260
21260
|
disabled: c.value,
|
|
@@ -21264,21 +21264,21 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21264
21264
|
}, null, 8, ["title", "disabled"])
|
|
21265
21265
|
]),
|
|
21266
21266
|
_: 1
|
|
21267
|
-
}), o.value ? (z(), N("small",
|
|
21268
|
-
P("div",
|
|
21267
|
+
}), o.value ? (z(), N("small", ck, H(U(n)("label.totalPages", { total: o.value })), 1)) : M("", !0)]),
|
|
21268
|
+
P("div", lk, H(U(n)("label.totalItemsCount", { total: e.total })), 1)
|
|
21269
21269
|
]);
|
|
21270
21270
|
};
|
|
21271
21271
|
}
|
|
21272
|
-
}),
|
|
21272
|
+
}), dk = { class: "pk-table-empty" }, fk = {
|
|
21273
21273
|
class: "pk-table-empty__glyph",
|
|
21274
21274
|
"aria-hidden": "true"
|
|
21275
|
-
},
|
|
21275
|
+
}, pk = { class: "pk-table-empty__text" }, mk = { class: "pk-table-empty__title" }, hk = {
|
|
21276
21276
|
key: 0,
|
|
21277
21277
|
class: "pk-table-empty__description"
|
|
21278
|
-
},
|
|
21278
|
+
}, gk = {
|
|
21279
21279
|
key: 0,
|
|
21280
21280
|
class: "pk-table-empty__actions"
|
|
21281
|
-
},
|
|
21281
|
+
}, _k = /* @__PURE__ */ L({
|
|
21282
21282
|
__name: "PkTableEmpty",
|
|
21283
21283
|
props: {
|
|
21284
21284
|
title: { default: void 0 },
|
|
@@ -21289,82 +21289,82 @@ var gw = { class: "flex items-center gap-xs min-w-0" }, _w = { class: "truncate"
|
|
|
21289
21289
|
let { t } = ni({ useScope: "global" });
|
|
21290
21290
|
return (n, r) => {
|
|
21291
21291
|
let i = pr;
|
|
21292
|
-
return z(), N("div",
|
|
21293
|
-
P("div",
|
|
21294
|
-
P("div",
|
|
21295
|
-
n.$slots.actions ? (z(), N("div",
|
|
21292
|
+
return z(), N("div", dk, [
|
|
21293
|
+
P("div", fk, [I(i, { name: e.icon }, null, 8, ["name"])]),
|
|
21294
|
+
P("div", pk, [P("strong", mk, H(e.title ?? U(t)("message.empty")), 1), e.description ? (z(), N("p", hk, H(e.description), 1)) : M("", !0)]),
|
|
21295
|
+
n.$slots.actions ? (z(), N("div", gk, [V(n.$slots, "actions")])) : M("", !0)
|
|
21296
21296
|
]);
|
|
21297
21297
|
};
|
|
21298
21298
|
}
|
|
21299
|
-
}),
|
|
21299
|
+
}), vk = { class: "flex flex-col items-center justify-center w-full text-md p-md leading-normal" }, yk = { class: "mb-4" }, bk = { class: "font-bold" }, xk = { class: "text-smaller text-word-3" }, Sk = /* @__PURE__ */ L({
|
|
21300
21300
|
__name: "PkTableError",
|
|
21301
21301
|
setup(e) {
|
|
21302
21302
|
let { t } = ni({ useScope: "global" });
|
|
21303
21303
|
return (e, n) => {
|
|
21304
21304
|
let r = pr;
|
|
21305
|
-
return z(), N("div",
|
|
21306
|
-
P("div",
|
|
21305
|
+
return z(), N("div", vk, [
|
|
21306
|
+
P("div", yk, [I(r, {
|
|
21307
21307
|
name: "ri:alert-line",
|
|
21308
21308
|
class: "text-32 text-word-2"
|
|
21309
21309
|
})]),
|
|
21310
|
-
P("strong",
|
|
21311
|
-
P("div",
|
|
21310
|
+
P("strong", bk, H(U(t)("message.warning")), 1),
|
|
21311
|
+
P("div", xk, H(U(t)("message.readError")), 1)
|
|
21312
21312
|
]);
|
|
21313
21313
|
};
|
|
21314
21314
|
}
|
|
21315
21315
|
});
|
|
21316
21316
|
//#endregion
|
|
21317
21317
|
//#region ../../node_modules/.pnpm/ts-util-is@2.1.0/node_modules/ts-util-is/dist/src/index.js
|
|
21318
|
-
function
|
|
21318
|
+
function Ck(e) {
|
|
21319
21319
|
return Array.isArray(e);
|
|
21320
21320
|
}
|
|
21321
|
-
function
|
|
21321
|
+
function wk(e) {
|
|
21322
21322
|
return e !== void 0;
|
|
21323
21323
|
}
|
|
21324
|
-
function
|
|
21324
|
+
function Tk(e) {
|
|
21325
21325
|
return e === null;
|
|
21326
21326
|
}
|
|
21327
|
-
function
|
|
21327
|
+
function Ek(e) {
|
|
21328
21328
|
return typeof e == "object";
|
|
21329
21329
|
}
|
|
21330
|
-
function
|
|
21330
|
+
function Dk(e) {
|
|
21331
21331
|
return typeof e == "string";
|
|
21332
21332
|
}
|
|
21333
|
-
function
|
|
21333
|
+
function Ok(e) {
|
|
21334
21334
|
return e === void 0;
|
|
21335
21335
|
}
|
|
21336
21336
|
//#endregion
|
|
21337
21337
|
//#region ../../node_modules/.pnpm/ts-dot-prop@2.1.4/node_modules/ts-dot-prop/dist/index.js
|
|
21338
|
-
var
|
|
21338
|
+
var kk = /^[0-9]+$/, Ak = [
|
|
21339
21339
|
"__proto__",
|
|
21340
21340
|
"prototype",
|
|
21341
21341
|
"constructor"
|
|
21342
21342
|
];
|
|
21343
|
-
function
|
|
21344
|
-
let r =
|
|
21345
|
-
if (!
|
|
21346
|
-
let i =
|
|
21343
|
+
function jk(e, t, n) {
|
|
21344
|
+
let r = wk(n) ? n : void 0;
|
|
21345
|
+
if (!Ek(e) || !Dk(t)) return r;
|
|
21346
|
+
let i = Mk(t);
|
|
21347
21347
|
if (i.length !== 0) {
|
|
21348
21348
|
for (let t of i) {
|
|
21349
21349
|
if (t === "*") continue;
|
|
21350
21350
|
let n = function(e) {
|
|
21351
|
-
return e.map((e) =>
|
|
21351
|
+
return e.map((e) => Ok(e) || Tk(e) ? e : Ck(e) ? n(e) : e[t]);
|
|
21352
21352
|
};
|
|
21353
|
-
if (e =
|
|
21353
|
+
if (e = Ck(e) && !kk.test(t) ? n(e) : e[t], Ok(e) || Tk(e)) break;
|
|
21354
21354
|
}
|
|
21355
|
-
return
|
|
21355
|
+
return Ok(e) ? r : e;
|
|
21356
21356
|
}
|
|
21357
21357
|
}
|
|
21358
|
-
function
|
|
21358
|
+
function Mk(e) {
|
|
21359
21359
|
let t = e.split(/[.]|(?:\[(\d|\*)\])/).filter((e) => !!e);
|
|
21360
|
-
return t.some((e) =>
|
|
21360
|
+
return t.some((e) => Ak.indexOf(e) !== -1) ? [] : t;
|
|
21361
21361
|
}
|
|
21362
21362
|
//#endregion
|
|
21363
21363
|
//#region ../../packages/components/src/table/PkTableSortable.vue?vue&type=script&setup=true&lang.ts
|
|
21364
|
-
var
|
|
21364
|
+
var Nk = { key: 0 }, Pk = {
|
|
21365
21365
|
key: 0,
|
|
21366
21366
|
class: "truncate"
|
|
21367
|
-
},
|
|
21367
|
+
}, Fk = ["onClick"], Ik = ["onClick"], Lk = ["data-label"], Rk = { key: 1 }, zk = ["colspan"], Bk = { key: 2 }, Vk = ["colspan"], Hk = { key: 1 }, Uk = { key: 2 }, Wk = "a, button, input, select, textarea, label, [contenteditable], [role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"menuitem\"]", Gk = /* @__PURE__ */ L({
|
|
21368
21368
|
__name: "PkTableSortable",
|
|
21369
21369
|
props: {
|
|
21370
21370
|
columns: {
|
|
@@ -21497,7 +21497,7 @@ var jk = { key: 0 }, Mk = {
|
|
|
21497
21497
|
let _ = (e) => {
|
|
21498
21498
|
c.value === e ? l.value = l.value === "asc" ? "desc" : "asc" : c.value = e;
|
|
21499
21499
|
}, v = (e, t, n) => {
|
|
21500
|
-
r.rowClickable && (n.target?.closest(
|
|
21500
|
+
r.rowClickable && (n.target?.closest(Wk) || i("click:row", e, t));
|
|
21501
21501
|
}, y = () => {
|
|
21502
21502
|
s.value++;
|
|
21503
21503
|
}, ee = () => {
|
|
@@ -21508,7 +21508,7 @@ var jk = { key: 0 }, Mk = {
|
|
|
21508
21508
|
}), (t, r) => {
|
|
21509
21509
|
let i = pr;
|
|
21510
21510
|
return z(), N("div", { class: Nr(["pk-table-sortable", { "pk-table-sortable--stacked": e.stacked }]) }, [P("div", { class: Nr([f.value, "pk-table-sortable__wrapper"]) }, [P("table", { class: Nr(["vv-table", e.classTable]) }, [
|
|
21511
|
-
e.hideHead ? M("", !0) : (z(), N("thead",
|
|
21511
|
+
e.hideHead ? M("", !0) : (z(), N("thead", Nk, [P("tr", null, [(z(!0), N(k, null, Hr(d.value, (e) => (z(), N("th", jr({ key: e.name }, { ref_for: !0 }, { class: [
|
|
21512
21512
|
e.class,
|
|
21513
21513
|
e.classTh,
|
|
21514
21514
|
{ selected: U(c) === e.name }
|
|
@@ -21516,7 +21516,7 @@ var jk = { key: 0 }, Mk = {
|
|
|
21516
21516
|
key: 1,
|
|
21517
21517
|
type: "button",
|
|
21518
21518
|
onClick: (t) => _(e.name)
|
|
21519
|
-
}, [V(t.$slots, `col::header::${e.name}`, {}, () => [F(H(e.label), 1)]), I(i, jr({ 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,
|
|
21519
|
+
}, [V(t.$slots, `col::header::${e.name}`, {}, () => [F(H(e.label), 1)]), I(i, jr({ 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, Fk)) : (z(), N("div", Pk, [V(t.$slots, `col::header::${e.name}`, {}, () => [F(H(e.label), 1)])]))], 16))), 128))])])),
|
|
21520
21520
|
I(xr, {
|
|
21521
21521
|
tag: "tbody",
|
|
21522
21522
|
name: e.transitionName
|
|
@@ -21528,7 +21528,7 @@ var jk = { key: 0 }, Mk = {
|
|
|
21528
21528
|
})), () => [e.isLoading ? V(t.$slots, "loading", {}, () => [(z(!0), N(k, null, Hr(o.value, (e) => (z(), N("tr", { key: e }, [(z(!0), N(k, null, Hr(d.value, ({ name: n, wrapperClass: i }) => (z(), N("td", { key: n }, [V(t.$slots, `skeleton::${n}`, jr({ ref_for: !0 }, {
|
|
21529
21529
|
index: e,
|
|
21530
21530
|
wrapperClass: i
|
|
21531
|
-
}), () => [P("div", { class: Nr(["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",
|
|
21531
|
+
}), () => [P("div", { class: Nr(["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", Bk, [P("td", { colspan: e.columns.length }, [V(t.$slots, "error", {}, () => [I(Sk)])], 8, Vk)])) : M("", !0) : (z(), N(k, { key: 1 }, [e.data?.length ? (z(!0), N(k, { key: 0 }, Hr(e.data, (r, i) => (z(), N("tr", {
|
|
21532
21532
|
key: i,
|
|
21533
21533
|
class: Nr([{
|
|
21534
21534
|
"pk-table-sortable__row--clickable": e.rowClickable,
|
|
@@ -21552,11 +21552,11 @@ var jk = { key: 0 }, Mk = {
|
|
|
21552
21552
|
wrapperClass: o,
|
|
21553
21553
|
index: i,
|
|
21554
21554
|
value: r[e]
|
|
21555
|
-
}), () => [P("div", { class: Nr(["truncate", o]) }, H(U(
|
|
21555
|
+
}), () => [P("div", { class: Nr(["truncate", o]) }, H(U(jk)(r, a ?? e)), 3)], void 0, 2)], 10, Lk))), 128))], 10, Ik))), 128)) : (z(), N("tr", Rk, [P("td", { colspan: e.columns.length }, [V(t.$slots, "empty", {}, () => [I(_k)])], 8, zk)]))], 64))])]),
|
|
21556
21556
|
_: 3
|
|
21557
21557
|
}, 8, ["name"]),
|
|
21558
|
-
U(n).tfoot ? (z(), N("tfoot",
|
|
21559
|
-
U(n).caption ? (z(), N("caption",
|
|
21558
|
+
U(n).tfoot ? (z(), N("tfoot", Hk, [V(t.$slots, "tfoot")])) : M("", !0),
|
|
21559
|
+
U(n).caption ? (z(), N("caption", Uk, [V(t.$slots, "caption")])) : M("", !0)
|
|
21560
21560
|
], 2)], 2), V(t.$slots, "navigation", Pr(Er({
|
|
21561
21561
|
hide: e.hideNavigation,
|
|
21562
21562
|
prevDisabled: g.value,
|
|
@@ -21565,7 +21565,7 @@ var jk = { key: 0 }, Mk = {
|
|
|
21565
21565
|
next: y,
|
|
21566
21566
|
total: u.value,
|
|
21567
21567
|
page: s.value
|
|
21568
|
-
})), () => [e.hideNavigation ? M("", !0) : (z(), j(
|
|
21568
|
+
})), () => [e.hideNavigation ? M("", !0) : (z(), j(uk, {
|
|
21569
21569
|
key: 0,
|
|
21570
21570
|
page: s.value,
|
|
21571
21571
|
total: a.value ?? 0,
|
|
@@ -21587,6 +21587,6 @@ var jk = { key: 0 }, Mk = {
|
|
|
21587
21587
|
}
|
|
21588
21588
|
});
|
|
21589
21589
|
//#endregion
|
|
21590
|
-
export { fw as AGENT_STATUS_GLYPHS, pw as AGENT_VISIBILITY_GLYPHS, Tw as MODEL_CATALOG_KEY, bw as PkAgentSelectorInline,
|
|
21590
|
+
export { fw as AGENT_STATUS_GLYPHS, pw as AGENT_VISIBILITY_GLYPHS, Tw as MODEL_CATALOG_KEY, bw as PkAgentSelectorInline, bE as PkAgentSettingsPanel, et as PkAuroraCanvas, kn as PkAvatar, yi as PkBadge, Fn as PkChatButton, NE as PkChatSidebar, SE as PkChatSidebarConversationItem, zn as PkChatbot, ze as PkChatbotAuth, Ln as PkChatbotEmptyState, it as PkChatbotError, An as PkChatbotFeedbackForm, En as PkChatbotFilePreview, In as PkChatbotInput, b as PkChatbotMessages, Nn as PkChatbotStepPayload, Pn as PkChatbotStepToolDetail, Mn as PkChatbotSteps, rt as PkChatbotViewChat, $e as PkChatbotViewConversations, Rn as PkChatbotViewProfile, OC as PkCheckboxField, Bn as PkChunkPreview, lt as PkCode, rT as PkCopyBlock, Vn as PkDocumentHeader, Ea as PkEditorAgentType, n as PkEditorCheckboxButtons, Bo as PkEditorCode, Ra as PkEditorDocumentType, ss as PkEditorJsonSchema, cC as PkEditorMarkdown, lC as PkEditorMedia, qa as PkEditorNotificationType, gC as PkEditorPrompt, t as PkEditorRadioButtons, wC as PkEditorRepeater, Uo as PkFieldset, kC as PkInfobox, iT as PkInputColor, LC as PkIntegrationProvider, Fw as PkLanguageModel, Xw as PkLanguageModelCombobox, Cn as PkLazyImg, zC as PkLightbox, UC as PkLoader, GC as PkMedia, AO as PkMessageDetail, gO as PkMessageParts, Yw as PkModelOption, ew as PkOfflineScreen, uk as PkPagination, sw as PkPwaNotices, lw as PkQrCode, YO as PkReasoningChat, Qw as PkReasoningSettings, ct as PkRelativeTime, FE as PkRetryCountdown, ts as PkSchemaField, dw as PkSkeleton, Ve as PkStreamingMarkdown, jn as PkStreamingMarkdownAutoscroll, Dn as PkSvgViewer, _k as PkTableEmpty, Sk as PkTableError, Gk as PkTableSortable, ww as PkToolApprovalBadge, ut as PkToolShowArtifact, Yn as PkToolShowCalendarEvent, Xn as PkToolShowComparison, Jn as PkToolShowContactForm, Wn as PkToolShowEmail, r as PkToolShowForm, $n as PkToolShowImageGallery, Zn as PkToolShowLocation, Gn as PkToolShowMessage, qn as PkToolShowProductList, Qn as PkToolShowQrCode, Hn as PkToolShowSources, er as PkToolShowSuggestedReply, Kn as PkToolShowWebPages, On as PkUrl, nt as PkVoiceOrb, tt as PkVoiceSession, $w as PkWebSearchSettings, $O as PkWelcomePopup, mw as agentStatusGlyph, hw as agentVisibilityGlyph, NC as integrationProviderIcon, Un as isMcpOAuthReport, Be as provideChatImagePolicy, Ew as provideModelCatalog, Dw as useModelCatalogEntry };
|
|
21591
21591
|
|
|
21592
21592
|
//# sourceMappingURL=index.js.map
|