@8wave/ai-elements 0.112.0 → 0.114.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/Agent-D3ODaN3E.js +566 -0
- package/dist/_chunks/Agent-D3ODaN3E.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-CRlRDGYl.js → PkStreamingMarkdown-CYOm47PX.js} +1276 -453
- package/dist/_chunks/PkStreamingMarkdown-CYOm47PX.js.map +1 -0
- package/dist/_chunks/{PkToolRequestGeolocation-BbxYKt-9.js → PkToolRequestGeolocation-BY7nXImb.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-BbxYKt-9.js.map → PkToolRequestGeolocation-BY7nXImb.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CTp2w60F.js → PkToolRequestOAuthConnection-DFOTALFt.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CTp2w60F.js.map → PkToolRequestOAuthConnection-DFOTALFt.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-CNnt82aH.js → PkToolShowArtifact-DzHRWoru.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-CNnt82aH.js.map → PkToolShowArtifact-DzHRWoru.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-D77gyjQG.js → PkToolShowContactForm-1J6_1AA2.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-D77gyjQG.js.map → PkToolShowContactForm-1J6_1AA2.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-DP4LLAk3.js → PkToolShowForm-DmQYj3v1.js} +5 -5
- package/dist/_chunks/{PkToolShowForm-DP4LLAk3.js.map → PkToolShowForm-DmQYj3v1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Bwy0Ptmi.js → PkToolShowSources-BO8V5rlS.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Bwy0Ptmi.js.map → PkToolShowSources-BO8V5rlS.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-CFO8wV1b.js → PkToolShowSuggestedReply-CTWVG1Zk.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-CFO8wV1b.js.map → PkToolShowSuggestedReply-CTWVG1Zk.js.map} +1 -1
- package/dist/_chunks/{markdown-BRD-hDrH.js → markdown-JpLFzufn.js} +7 -7
- package/dist/_chunks/{markdown-BRD-hDrH.js.map → markdown-JpLFzufn.js.map} +1 -1
- package/dist/_chunks/url-validation-uLMZ5-AU.js.map +1 -1
- package/dist/ai-elements.es.js +2773 -2733
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/Media-_HfFLHGD.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbot-C11EVHnI.js → PkChatbot-DZP40EZP.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-C11EVHnI.js.map → PkChatbot-DZP40EZP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-CacY4o02.js → PkChatbotEmptyState-DycCrfwz.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CacY4o02.js.map → PkChatbotEmptyState-DycCrfwz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-Dkz3SNAk.js → PkChatbotInput-BCuqLdkT.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-Dkz3SNAk.js.map → PkChatbotInput-BCuqLdkT.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-PjKRDNYJ.js +776 -0
- package/dist-vue/_chunks/PkChatbotMessages-PjKRDNYJ.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-DU0W-eUp.js → PkChatbotStepPayload-CI98RiNv.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-DU0W-eUp.js.map → PkChatbotStepPayload-CI98RiNv.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-etlBryOg.js → PkChatbotStepToolDetail-B8zXJOdI.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-etlBryOg.js.map → PkChatbotStepToolDetail-B8zXJOdI.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-CL27pMFS.js +190 -0
- package/dist-vue/_chunks/{PkChatbotSteps-jW07Q-4x.js.map → PkChatbotSteps-CL27pMFS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DJnjuhjt.js → PkChatbotViewChat-BZVcDXzL.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-DJnjuhjt.js.map → PkChatbotViewChat-BZVcDXzL.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-BCdolW0R.js → PkChatbotViewConversations-Cx-mLdUE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-BCdolW0R.js.map → PkChatbotViewConversations-Cx-mLdUE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-Cudao8ew.js → PkChatbotViewFiles-DLIa-xG8.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-Cudao8ew.js.map → PkChatbotViewFiles-DLIa-xG8.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-DDsKOkcC.js → PkChatbotViewProfile-DEc9apXY.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-DDsKOkcC.js.map → PkChatbotViewProfile-DEc9apXY.js.map} +1 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-B2iju0WK.js +3245 -0
- package/dist-vue/_chunks/PkStreamingMarkdown-B2iju0WK.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-BnwU7CV2.js → PkToolShowArtifact-C0J71YF6.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BnwU7CV2.js.map → PkToolShowArtifact-C0J71YF6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-_x_dbiHn.js → PkToolShowContactForm-De3Od9mC.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-_x_dbiHn.js.map → PkToolShowContactForm-De3Od9mC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-RtkI_sKL.js → PkToolShowDiagram-DmY_hhAS.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-RtkI_sKL.js.map → PkToolShowDiagram-DmY_hhAS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowEmail-CRQjoJr1.js → PkToolShowEmail-D_Z15wCS.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-CRQjoJr1.js.map → PkToolShowEmail-D_Z15wCS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-IPAkJIXh.js → PkToolShowForm-DUGysIxj.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowForm-IPAkJIXh.js.map → PkToolShowForm-DUGysIxj.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowMessage-joTzAg9N.js → PkToolShowMessage-e5_EI5mV.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-joTzAg9N.js.map → PkToolShowMessage-e5_EI5mV.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-tOYjd2bq.js → PkToolShowProductList-B3X7Svyc.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-tOYjd2bq.js.map → PkToolShowProductList-B3X7Svyc.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-gI947JOm.js → PkToolShowSources-BUjBSGc5.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-gI947JOm.js.map → PkToolShowSources-BUjBSGc5.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-D3Xy4iUs.js → PkToolShowWebPages-DEih8h5k.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-D3Xy4iUs.js.map → PkToolShowWebPages-DEih8h5k.js.map} +1 -1
- package/dist-vue/_chunks/{PkUrl-BgMBemSz.js → PkUrl-3NH9t-WA.js} +2 -2
- package/dist-vue/_chunks/{PkUrl-BgMBemSz.js.map → PkUrl-3NH9t-WA.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CaVLm5W9.js → createChatbotApiClient-DohvHshj.js} +115 -108
- package/dist-vue/_chunks/createChatbotApiClient-DohvHshj.js.map +1 -0
- package/dist-vue/_chunks/url-validation-uLMZ5-AU.js.map +1 -1
- package/dist-vue/_chunks/{useChatbotStore-BwrBZJCq.js → useChatbotStore-_10Jaf4z.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-BwrBZJCq.js.map → useChatbotStore-_10Jaf4z.js.map} +1 -1
- package/dist-vue/_chunks/utils-BL4Ppr2R.js +184 -0
- package/dist-vue/_chunks/utils-BL4Ppr2R.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +1 -3
- package/dist-vue/composables.js +136 -95
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3203 -3107
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +16 -0
- package/dist-vue/packages/auth/src/social-redirect-plugin.d.ts +18 -12
- package/dist-vue/packages/components/src/chat/PkTurnEvaluation.d.ts +8 -0
- package/dist-vue/packages/components/src/chat/markdownHtml.d.ts +20 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +9 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +60 -0
- package/dist-vue/packages/models/src/schema/AgentApiTool.d.ts +70 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +42 -0
- package/dist-vue/packages/models/src/schema/Lead.d.ts +13 -0
- package/dist-vue/packages/models/src/schema/Media.d.ts +0 -1
- package/dist-vue/packages/models/src/schema/ModelProvider.d.ts +1 -1
- package/dist-vue/style.css +1 -1
- package/package.json +2 -1
- package/dist/_chunks/Agent-DTLrWpzX.js +0 -460
- package/dist/_chunks/Agent-DTLrWpzX.js.map +0 -1
- package/dist/_chunks/Media-Cft7Pwrh.js +0 -108
- package/dist/_chunks/Media-Cft7Pwrh.js.map +0 -1
- package/dist/_chunks/PkStreamingMarkdown-CRlRDGYl.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-BD-vUak6.js +0 -776
- package/dist-vue/_chunks/PkChatbotMessages-BD-vUak6.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotSteps-jW07Q-4x.js +0 -190
- package/dist-vue/_chunks/PkStreamingMarkdown-BoEpwaYQ.js +0 -2430
- package/dist-vue/_chunks/PkStreamingMarkdown-BoEpwaYQ.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-CaVLm5W9.js.map +0 -1
- package/dist-vue/_chunks/utils-h4C7rRcu.js +0 -177
- package/dist-vue/_chunks/utils-h4C7rRcu.js.map +0 -1
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./PkStreamingMarkdown-BoEpwaYQ.js";
|
|
2
|
-
import { c as t, o as n } from "./message-RohfrdWS.js";
|
|
3
|
-
import { f as r, h as i, l as a, m as o, n as s, p as ee, s as c, u as l } from "./utils-h4C7rRcu.js";
|
|
4
|
-
import { t as u } from "./PkChatbotStepPayload-DU0W-eUp.js";
|
|
5
|
-
import { t as d } from "./PkChatbotStepToolDetail-etlBryOg.js";
|
|
6
|
-
import { VvIcon as f } from "@volverjs/ui-vue/components";
|
|
7
|
-
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, normalizeClass as S, openBlock as C, reactive as w, ref as T, renderList as E, resolveDynamicComponent as D, toDisplayString as O, unref as k, watch as te, withCtx as ne } from "vue";
|
|
8
|
-
import { useI18n as re } from "vue-i18n";
|
|
9
|
-
import { useResizeObserver as A } from "@vueuse/core";
|
|
10
|
-
//#region ../../packages/components/src/chat/PkStreamingMarkdownAutoscroll.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var j = 8, M = /* @__PURE__ */ x({
|
|
12
|
-
__name: "PkStreamingMarkdownAutoscroll",
|
|
13
|
-
props: {
|
|
14
|
-
markdown: {},
|
|
15
|
-
innerClass: {},
|
|
16
|
-
isDark: { type: Boolean },
|
|
17
|
-
tailLength: {}
|
|
18
|
-
},
|
|
19
|
-
setup(t) {
|
|
20
|
-
let n = T(), r = T(), i = !1, a, o = () => {
|
|
21
|
-
let e = n.value;
|
|
22
|
-
e && e.scrollTop !== a && (a = void 0, i = e.scrollHeight - e.clientHeight - e.scrollTop > j);
|
|
23
|
-
};
|
|
24
|
-
return A([n, r], () => {
|
|
25
|
-
let e = n.value;
|
|
26
|
-
e && (e.scrollHeight <= e.clientHeight && (i = !1), !i && (e.scrollTop = e.scrollHeight, a = e.scrollTop));
|
|
27
|
-
}), (i, a) => (C(), _("div", {
|
|
28
|
-
ref_key: "scrollEl",
|
|
29
|
-
ref: n,
|
|
30
|
-
class: "overflow-auto light-scrollbar",
|
|
31
|
-
onScroll: o
|
|
32
|
-
}, [b(e, {
|
|
33
|
-
ref_key: "contentEl",
|
|
34
|
-
ref: r,
|
|
35
|
-
markdown: t.markdown,
|
|
36
|
-
"is-dark": t.isDark,
|
|
37
|
-
"tail-length": t.tailLength,
|
|
38
|
-
class: S(t.innerClass)
|
|
39
|
-
}, null, 8, [
|
|
40
|
-
"markdown",
|
|
41
|
-
"is-dark",
|
|
42
|
-
"tail-length",
|
|
43
|
-
"class"
|
|
44
|
-
])], 544));
|
|
45
|
-
}
|
|
46
|
-
}), N = {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: "pk-chatbot-steps"
|
|
49
|
-
}, P = ["aria-expanded"], F = { class: "pk-chatbot-steps__title" }, I = { class: "pk-chatbot-steps__meta" }, L = {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: "pk-chatbot-steps__list"
|
|
52
|
-
}, R = { class: "pk-chatbot-steps__step-label" }, z = { class: "pk-chatbot-steps__step-summary" }, B = {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "pk-chatbot-steps__step-duration"
|
|
55
|
-
}, V = {
|
|
56
|
-
key: 0,
|
|
57
|
-
class: "pk-chatbot-steps__step-body"
|
|
58
|
-
}, H = {
|
|
59
|
-
key: 1,
|
|
60
|
-
class: "pk-chatbot-steps__step-content pk-chatbot-steps__step-content--scroll light-scrollbar"
|
|
61
|
-
}, U = {
|
|
62
|
-
key: 2,
|
|
63
|
-
class: "pk-chatbot-steps__step-payload pk-chatbot-steps__step-payload--error"
|
|
64
|
-
}, W = { class: "pk-chatbot-steps__step-payload-label" }, G = /* @__PURE__ */ x({
|
|
65
|
-
__name: "PkChatbotSteps",
|
|
66
|
-
props: {
|
|
67
|
-
message: {},
|
|
68
|
-
isStreaming: { type: Boolean },
|
|
69
|
-
isDark: { type: Boolean }
|
|
70
|
-
},
|
|
71
|
-
setup(x) {
|
|
72
|
-
let A = x, { t: j, n: G } = re({ useScope: "global" }), K = (e) => l(e) === "output-error" && "errorText" in e && typeof e.errorText == "string" ? e.errorText : void 0, q = m(() => {
|
|
73
|
-
let e = A.message.parts, s = A.message.metadata?.partTimings, c = [];
|
|
74
|
-
for (let [l, u] of e.entries()) {
|
|
75
|
-
let d = n(u), f = t(u);
|
|
76
|
-
if (!d && !f) continue;
|
|
77
|
-
let p = "toolCallId" in u ? u.toolCallId : void 0, m = d && u.text.trim() ? u.text : void 0, h = K(u), g = i(u), _ = f && "input" in u ? u.input : void 0, v = f && "output" in u ? u.output : void 0;
|
|
78
|
-
c.push({
|
|
79
|
-
key: p ?? `${u.type}-${l}`,
|
|
80
|
-
part: u,
|
|
81
|
-
icon: a(u),
|
|
82
|
-
label: r(j, u),
|
|
83
|
-
summary: ee(u),
|
|
84
|
-
durationMs: p ? s?.[p] : void 0,
|
|
85
|
-
isActive: !!A.isStreaming && l === e.length - 1,
|
|
86
|
-
text: m,
|
|
87
|
-
error: h,
|
|
88
|
-
hasRichDetail: g,
|
|
89
|
-
hasBody: !!(m || h || (g ? _ !== void 0 || v !== void 0 : o(_) || o(v))),
|
|
90
|
-
toolInput: _,
|
|
91
|
-
toolOutput: v
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
return c;
|
|
95
|
-
}), J = m(() => {
|
|
96
|
-
let { createdAt: e, completedAt: t } = A.message.metadata ?? {};
|
|
97
|
-
if (e && t) return t - e;
|
|
98
|
-
}), Y = (e) => c(G, e), X = w(/* @__PURE__ */ new Map()), Z = (e) => X.get(e.key) ?? !1, ie = (e) => {
|
|
99
|
-
X.set(e.key, !Z(e));
|
|
100
|
-
}, Q = T(void 0), $ = m(() => Q.value ?? !!A.isStreaming);
|
|
101
|
-
return te(() => A.isStreaming, (e) => {
|
|
102
|
-
e && (Q.value = void 0, X.clear());
|
|
103
|
-
}), (t, n) => {
|
|
104
|
-
let r = f;
|
|
105
|
-
return q.value.length ? (C(), _("div", N, [v("button", {
|
|
106
|
-
type: "button",
|
|
107
|
-
class: "pk-chatbot-steps__header",
|
|
108
|
-
"aria-expanded": $.value,
|
|
109
|
-
onClick: n[0] ||= (e) => Q.value = !$.value
|
|
110
|
-
}, [
|
|
111
|
-
x.isStreaming ? (C(), h(r, {
|
|
112
|
-
key: 0,
|
|
113
|
-
name: "loading-loop",
|
|
114
|
-
class: "shrink-0"
|
|
115
|
-
})) : (C(), h(r, {
|
|
116
|
-
key: 1,
|
|
117
|
-
name: "ri:route-line",
|
|
118
|
-
class: "shrink-0"
|
|
119
|
-
})),
|
|
120
|
-
v("span", F, O(k(j)("messagePart.steps")), 1),
|
|
121
|
-
v("span", I, [y(O(k(j)("messagePart.stepCount", q.value.length)) + " ", 1), Y(J.value) ? (C(), _(p, { key: 0 }, [y(" · " + O(Y(J.value)), 1)], 64)) : g("", !0)]),
|
|
122
|
-
b(r, {
|
|
123
|
-
name: $.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
124
|
-
class: "pk-chatbot-steps__chevron shrink-0 ml-auto"
|
|
125
|
-
}, null, 8, ["name"])
|
|
126
|
-
], 8, P), $.value ? (C(), _("ol", L, [(C(!0), _(p, null, E(q.value, (t) => (C(), _("li", {
|
|
127
|
-
key: t.key,
|
|
128
|
-
class: S(["pk-chatbot-steps__step", { "pk-chatbot-steps__step--active": t.isActive }])
|
|
129
|
-
}, [(C(), h(D(t.hasBody ? "button" : "div"), {
|
|
130
|
-
type: t.hasBody ? "button" : void 0,
|
|
131
|
-
class: "pk-chatbot-steps__step-header",
|
|
132
|
-
"aria-expanded": t.hasBody ? Z(t) : void 0,
|
|
133
|
-
onClick: (e) => t.hasBody ? ie(t) : void 0
|
|
134
|
-
}, {
|
|
135
|
-
default: ne(() => [
|
|
136
|
-
v("span", { class: S(["pk-chatbot-steps-marker", { "pk-chatbot-steps-marker--active": t.isActive }]) }, [t.isActive ? (C(), h(r, {
|
|
137
|
-
key: 0,
|
|
138
|
-
name: "loading-loop"
|
|
139
|
-
})) : t.icon ? (C(), h(r, {
|
|
140
|
-
key: 1,
|
|
141
|
-
name: t.icon
|
|
142
|
-
}, null, 8, ["name"])) : g("", !0)], 2),
|
|
143
|
-
v("span", R, O(t.label), 1),
|
|
144
|
-
v("span", z, O(t.summary), 1),
|
|
145
|
-
Y(t.durationMs) ? (C(), _("span", B, O(Y(t.durationMs)), 1)) : g("", !0),
|
|
146
|
-
t.hasBody ? (C(), h(r, {
|
|
147
|
-
key: 1,
|
|
148
|
-
name: Z(t) ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
149
|
-
class: "pk-chatbot-steps__chevron shrink-0 ml-auto"
|
|
150
|
-
}, null, 8, ["name"])) : g("", !0)
|
|
151
|
-
]),
|
|
152
|
-
_: 2
|
|
153
|
-
}, 1032, [
|
|
154
|
-
"type",
|
|
155
|
-
"aria-expanded",
|
|
156
|
-
"onClick"
|
|
157
|
-
])), t.hasBody && Z(t) ? (C(), _("div", V, [t.text && t.isActive ? (C(), h(M, {
|
|
158
|
-
key: 0,
|
|
159
|
-
markdown: t.text,
|
|
160
|
-
"is-dark": x.isDark,
|
|
161
|
-
"tail-length": k(s),
|
|
162
|
-
"inner-class": "wysiwyg",
|
|
163
|
-
class: "pk-chatbot-steps__step-content pk-chatbot-steps__step-content--scroll"
|
|
164
|
-
}, null, 8, [
|
|
165
|
-
"markdown",
|
|
166
|
-
"is-dark",
|
|
167
|
-
"tail-length"
|
|
168
|
-
])) : t.text ? (C(), _("div", H, [b(e, {
|
|
169
|
-
markdown: t.text,
|
|
170
|
-
"is-dark": x.isDark,
|
|
171
|
-
class: "wysiwyg"
|
|
172
|
-
}, null, 8, ["markdown", "is-dark"])])) : t.error ? (C(), _("div", U, [v("span", W, O(k(j)("messagePart.stepError")), 1), v("pre", null, O(t.error), 1)])) : t.hasRichDetail ? (C(), h(d, {
|
|
173
|
-
key: 3,
|
|
174
|
-
part: t.part
|
|
175
|
-
}, null, 8, ["part"])) : (C(), _(p, { key: 4 }, [k(o)(t.toolInput) ? (C(), h(u, {
|
|
176
|
-
key: 0,
|
|
177
|
-
label: k(j)("messagePart.stepInput"),
|
|
178
|
-
value: t.toolInput
|
|
179
|
-
}, null, 8, ["label", "value"])) : g("", !0), k(o)(t.toolOutput) ? (C(), h(u, {
|
|
180
|
-
key: 1,
|
|
181
|
-
label: k(j)("messagePart.stepOutput"),
|
|
182
|
-
value: t.toolOutput
|
|
183
|
-
}, null, 8, ["label", "value"])) : g("", !0)], 64))])) : g("", !0)], 2))), 128))])) : g("", !0)])) : g("", !0);
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
//#endregion
|
|
188
|
-
export { M as n, G as t };
|
|
189
|
-
|
|
190
|
-
//# sourceMappingURL=PkChatbotSteps-jW07Q-4x.js.map
|