@pagelines/sdk 1.0.740 → 1.0.742
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/AgentWrap.js +162 -162
- package/dist/AgentWrap.js.map +1 -1
- package/dist/contract.js +4 -2
- package/dist/contract.js.map +1 -1
- package/dist/sdkClient.js +1 -1
- package/dist/sdkClient.js.map +1 -1
- package/dist/widget.js +1 -1
- package/package.json +8 -8
package/dist/AgentWrap.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./rolldown-runtime.js";
|
|
2
2
|
import { s as e, t } from "./sdkClient.js";
|
|
3
3
|
import { Agent as n, CHAT_ISSUE_COPY as r, SettingsObject as i, createLogger as a, getDefaultAvatarUrl as o, isAssistantSilenceControl as s, parseChatCardFencePayload as c, parseChatVisualFencePayload as u } from "@pagelines/core";
|
|
4
|
-
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as _, createElementVNode as v, createTextVNode as te, createVNode as b, defineComponent as x, nextTick as ne, normalizeClass as S, normalizeStyle as C, onBeforeUnmount as re, onMounted as ie, onUnmounted as ae, openBlock as T, ref as k, renderList as A, renderSlot as oe, resolveDynamicComponent as j, shallowRef as se, toDisplayString as
|
|
4
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as _, createElementVNode as v, createTextVNode as te, createVNode as b, defineComponent as x, nextTick as ne, normalizeClass as S, normalizeStyle as C, onBeforeUnmount as re, onMounted as ie, onUnmounted as ae, openBlock as T, ref as k, renderList as A, renderSlot as oe, resolveDynamicComponent as j, shallowRef as se, toDisplayString as M, unref as ce, vModelText as ue, watch as de, withCtx as P, withDirectives as pe, withKeys as he, withModifiers as F } from "vue";
|
|
5
5
|
//#region ui/FSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var I = { class: "spinner max-w-sm" }, R = {
|
|
7
7
|
class: "ring-circular h-full w-full origin-center",
|
|
8
8
|
viewBox: "25 25 50 50"
|
|
9
9
|
}, _e = /* @__PURE__ */ x({
|
|
@@ -19,7 +19,7 @@ var R = { class: "spinner max-w-sm" }, z = {
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
setup(e) {
|
|
22
|
-
return (t, n) => (T(), _("div",
|
|
22
|
+
return (t, n) => (T(), _("div", I, [(T(), _("svg", R, [v("circle", {
|
|
23
23
|
class: S([e.colorMode, "ring-path"]),
|
|
24
24
|
cx: "50",
|
|
25
25
|
cy: "50",
|
|
@@ -1071,7 +1071,7 @@ var we = {
|
|
|
1071
1071
|
}, null, 40, G)], 2), v("div", je, [e.isOnline ? (T(), _(f, { key: 0 }, [n[1] || (n[1] = v("div", {
|
|
1072
1072
|
class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
1073
1073
|
style: { "animation-duration": "3s" }
|
|
1074
|
-
}, null, -1)), n[2] || (n[2] = v("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))], 64)) : (T(), _("div", Me))])]), v("div", Ne, [v("h1", { class: S(["font-light text-white mb-1 truncate", [e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight", e.layout === "horizontal" ? "text-white/95" : ""]]) },
|
|
1074
|
+
}, null, -1)), n[2] || (n[2] = v("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))], 64)) : (T(), _("div", Me))])]), v("div", Ne, [v("h1", { class: S(["font-light text-white mb-1 truncate", [e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight", e.layout === "horizontal" ? "text-white/95" : ""]]) }, M(e.agent.displayName.value), 3), v("p", { class: S(["font-light line-clamp-1", [e.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base", e.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"]]) }, M(e.layout === "horizontal" ? e.agent.title.value || "Assistant" : e.agent.title.value), 3)])], 2));
|
|
1075
1075
|
}
|
|
1076
1076
|
}), Fe = { class: "relative shrink-0 rounded-full" }, Ie = ["src", "alt"], Le = ["src", "alt"], Re = ["aria-label"], ze = /* @__PURE__ */ x({
|
|
1077
1077
|
__name: "AgentAvatar",
|
|
@@ -1220,7 +1220,7 @@ var we = {
|
|
|
1220
1220
|
};
|
|
1221
1221
|
});
|
|
1222
1222
|
return (t, u) => (T(), _("div", { class: S(["w-full py-0.5", s.value.muted]) }, [
|
|
1223
|
-
a.value ? (T(), _("span", Be,
|
|
1223
|
+
a.value ? (T(), _("span", Be, M(a.value), 1)) : h("", !0),
|
|
1224
1224
|
r.value ? (T(), _("button", {
|
|
1225
1225
|
key: 1,
|
|
1226
1226
|
type: "button",
|
|
@@ -1236,7 +1236,7 @@ var we = {
|
|
|
1236
1236
|
class: "i-tabler-circle-check size-3.5 shrink-0 text-green-600",
|
|
1237
1237
|
"aria-hidden": "true"
|
|
1238
1238
|
}, null, -1)),
|
|
1239
|
-
v("span", { class: S(["text-[12.5px] font-medium leading-none", s.value.muted]) },
|
|
1239
|
+
v("span", { class: S(["text-[12.5px] font-medium leading-none", s.value.muted]) }, M(e.model.terminal?.label), 3),
|
|
1240
1240
|
i.value ? (T(), _("i", {
|
|
1241
1241
|
key: 0,
|
|
1242
1242
|
class: S(["size-[13px] shrink-0", [n.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right", s.value.muted]]),
|
|
@@ -1253,7 +1253,7 @@ var we = {
|
|
|
1253
1253
|
}, [v("span", He, [v("span", {
|
|
1254
1254
|
"data-journal-spine": "dashed",
|
|
1255
1255
|
class: S(["w-0 border-l border-dashed", s.value.dashed])
|
|
1256
|
-
}, null, 2)]), v("span", { class: S(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none", s.value.muted]) }, [te(
|
|
1256
|
+
}, null, 2)]), v("span", { class: S(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none", s.value.muted]) }, [te(M(i.value) + " earlier updates ", 1), v("i", {
|
|
1257
1257
|
class: S(["size-3 shrink-0", n.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right"]),
|
|
1258
1258
|
"aria-hidden": "true"
|
|
1259
1259
|
}, null, 2)], 2)], 10, K)) : h("", !0),
|
|
@@ -1268,15 +1268,15 @@ var we = {
|
|
|
1268
1268
|
}, null, 8, ["data-journal-station", "class"]))]), t === o.value.length - 1 ? h("", !0) : (T(), _("span", {
|
|
1269
1269
|
key: 0,
|
|
1270
1270
|
class: S(["w-px flex-1", s.value.spine])
|
|
1271
|
-
}, null, 2))]), v("div", { class: S(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [v("span", { class: S(["relative block leading-snug", c.value[e.tone].label]) }, [te(
|
|
1271
|
+
}, null, 2))]), v("div", { class: S(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [v("span", { class: S(["relative block leading-snug", c.value[e.tone].label]) }, [te(M(e.label), 1), c.value[e.tone].statusWord ? (T(), _("span", Ke, ", " + M(c.value[e.tone].statusWord), 1)) : h("", !0)], 2), e.note ? (T(), _("p", {
|
|
1272
1272
|
key: 0,
|
|
1273
1273
|
class: S(["pt-0.5 text-[11.5px] leading-snug", s.value.muted])
|
|
1274
|
-
},
|
|
1274
|
+
}, M(e.note), 3)) : h("", !0)], 2)], 10, Ue))), 128)),
|
|
1275
1275
|
!r.value && e.model.hint ? (T(), _("p", {
|
|
1276
1276
|
key: 3,
|
|
1277
1277
|
"data-test": "messaging-tool-activity-hint",
|
|
1278
1278
|
class: S(["pl-[30px] pt-2.5 text-[12px] leading-snug", s.value.muted])
|
|
1279
|
-
},
|
|
1279
|
+
}, M(e.model.hint), 3)) : h("", !0)
|
|
1280
1280
|
], 2));
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
@@ -1562,9 +1562,9 @@ function createDOMPurify() {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
}, oe = function _getDefaultTrustedTypesPolicy() {
|
|
1564
1564
|
return ie || (re = Yt(u, r), ie = !0), re;
|
|
1565
|
-
}, j = t, se = j.implementation,
|
|
1565
|
+
}, j = t, se = j.implementation, M = j.createNodeIterator, ce = j.createDocumentFragment, ue = j.getElementsByTagName, de = n.importNode, P = Xt();
|
|
1566
1566
|
DOMPurify.isSupported = typeof Je == "function" && typeof v == "function" && se && se.createHTMLDocument !== void 0;
|
|
1567
|
-
let pe = Nt, he = Pt,
|
|
1567
|
+
let pe = Nt, he = Pt, F = Ft, I = It, R = Lt, _e = zt, ve = Bt, B = Ht, ye = Rt, H = null, be = addToSet({}, [
|
|
1568
1568
|
...St,
|
|
1569
1569
|
...Ct,
|
|
1570
1570
|
...wt,
|
|
@@ -1794,12 +1794,12 @@ function createDOMPurify() {
|
|
|
1794
1794
|
let a = n.body || n.documentElement;
|
|
1795
1795
|
return e && r && a.insertBefore(t.createTextNode(r), a.childNodes[0] || null), tt === et ? ue.call(n, je ? "html" : "body")[0] : je ? n.documentElement : a;
|
|
1796
1796
|
}, bn = function _createNodeIterator(e) {
|
|
1797
|
-
return
|
|
1797
|
+
return M.call(e.ownerDocument || e, e, s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION, null);
|
|
1798
1798
|
}, xn = function _stripTemplateExpressions(e) {
|
|
1799
|
-
return e = pt(e, pe, " "), e = pt(e, he, " "), e = pt(e,
|
|
1799
|
+
return e = pt(e, pe, " "), e = pt(e, he, " "), e = pt(e, F, " "), e;
|
|
1800
1800
|
}, Sn = function _scrubTemplateExpressions(e) {
|
|
1801
1801
|
e.normalize();
|
|
1802
|
-
let t =
|
|
1802
|
+
let t = M.call(e.ownerDocument || e, e, s.SHOW_TEXT | s.SHOW_COMMENT | s.SHOW_CDATA_SECTION | s.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
1803
1803
|
for (; n;) n.data = xn(n.data), n = t.nextNode();
|
|
1804
1804
|
let r = e.querySelectorAll?.call(e, "template");
|
|
1805
1805
|
r && rt(r, (e) => {
|
|
@@ -1844,28 +1844,28 @@ function createDOMPurify() {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
return pn(e), !0;
|
|
1846
1846
|
}, On = function _sanitizeElements(e, t) {
|
|
1847
|
-
if (_executeHooks(
|
|
1847
|
+
if (_executeHooks(P.beforeSanitizeElements, e, null), e !== t && v(e) === null) return !0;
|
|
1848
1848
|
if (Cn(e)) return pn(e), !0;
|
|
1849
1849
|
let n = Q(ne ? ne(e) : e.nodeName);
|
|
1850
|
-
if (_executeHooks(
|
|
1850
|
+
if (_executeHooks(P.uponSanitizeElement, e, {
|
|
1851
1851
|
tagName: n,
|
|
1852
1852
|
allowedTags: H
|
|
1853
1853
|
}), e !== t && v(e) === null) return !0;
|
|
1854
1854
|
if (En(e, n)) return pn(e), !0;
|
|
1855
1855
|
if (Ce[n] || !(Te.tagCheck instanceof Function && Te.tagCheck(n)) && !H[n]) {
|
|
1856
1856
|
let t = Dn(e, n);
|
|
1857
|
-
return t === !1 && _executeHooks(
|
|
1857
|
+
return t === !1 && _executeHooks(P.afterSanitizeElements, e, null), t;
|
|
1858
1858
|
}
|
|
1859
1859
|
if ((x ? x(e) : e.nodeType) === qt.element && !fn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && Z(Gt, e.innerHTML)) return pn(e), !0;
|
|
1860
1860
|
if (Ae && e.nodeType === qt.text) {
|
|
1861
1861
|
let t = xn(e.textContent);
|
|
1862
1862
|
e.textContent !== t && (st(DOMPurify.removed, { element: e.cloneNode() }), e.textContent = t);
|
|
1863
1863
|
}
|
|
1864
|
-
return _executeHooks(
|
|
1864
|
+
return _executeHooks(P.afterSanitizeElements, e, null), !1;
|
|
1865
1865
|
}, kn = function _isValidAttribute(e, n, r) {
|
|
1866
1866
|
if (we[n] || G && n === "patchsrc" || G && n === "for" && e !== "label" && e !== "output" || ze && (n === "id" || n === "name") && (r in t || r in rn)) return !1;
|
|
1867
1867
|
let i = U[n] || Te.attributeCheck instanceof Function && Te.attributeCheck(n, e);
|
|
1868
|
-
if (!(De && Z(
|
|
1868
|
+
if (!(De && Z(I, n)) && !(Ee && Z(R, n))) {
|
|
1869
1869
|
if (!i) {
|
|
1870
1870
|
if (!(jn(e) && (W.tagNameCheck instanceof RegExp && Z(W.tagNameCheck, e) || W.tagNameCheck instanceof Function && W.tagNameCheck(e)) && (W.attributeNameCheck instanceof RegExp && Z(W.attributeNameCheck, n) || W.attributeNameCheck instanceof Function && W.attributeNameCheck(n, e)) || n === "is" && W.allowCustomizedBuiltInElements && (W.tagNameCheck instanceof RegExp && Z(W.tagNameCheck, r) || W.tagNameCheck instanceof Function && W.tagNameCheck(r)))) return !1;
|
|
1871
1871
|
} else if (!Ye[n] && !Z(ye, pt(r, ve, "")) && !((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && mt(r, "data:") === 0 && Ke[e]) && !(Oe && !Z(_e, pt(r, ve, ""))) && r) return !1;
|
|
@@ -1895,7 +1895,7 @@ function createDOMPurify() {
|
|
|
1895
1895
|
hn(t, e);
|
|
1896
1896
|
}
|
|
1897
1897
|
}, Pn = function _sanitizeAttributes(e) {
|
|
1898
|
-
_executeHooks(
|
|
1898
|
+
_executeHooks(P.beforeSanitizeAttributes, e, null);
|
|
1899
1899
|
let t = e.attributes;
|
|
1900
1900
|
if (!t || Cn(e)) return;
|
|
1901
1901
|
let n = {
|
|
@@ -1907,7 +1907,7 @@ function createDOMPurify() {
|
|
|
1907
1907
|
}, r = t.length, i = Q(e.nodeName);
|
|
1908
1908
|
for (; r--;) {
|
|
1909
1909
|
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, u = Q(o), f = c, p = o === "value" ? f : ht(f);
|
|
1910
|
-
if (n.attrName = u, n.attrValue = p, n.keepAttr = !0, n.forceKeepAttr = void 0, _executeHooks(
|
|
1910
|
+
if (n.attrName = u, n.attrValue = p, n.keepAttr = !0, n.forceKeepAttr = void 0, _executeHooks(P.uponSanitizeAttribute, e, n), p = n.attrValue, Be && (u === "id" || u === "name") && mt(p, Ve) !== 0 && (hn(o, e), p = Ve + p), G && Z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, p)) {
|
|
1911
1911
|
hn(o, e);
|
|
1912
1912
|
continue;
|
|
1913
1913
|
}
|
|
@@ -1931,14 +1931,14 @@ function createDOMPurify() {
|
|
|
1931
1931
|
p = Mn(i, u, s, p), p !== f && Nn(e, o, s, p);
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
_executeHooks(
|
|
1934
|
+
_executeHooks(P.afterSanitizeAttributes, e, null);
|
|
1935
1935
|
}, Fn = function _sanitizeShadowDOM(e) {
|
|
1936
1936
|
let t = null, n = bn(e);
|
|
1937
|
-
for (_executeHooks(
|
|
1937
|
+
for (_executeHooks(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (_executeHooks(P.uponSanitizeShadowNode, t, null), On(t, e), Pn(t), wn(t.content) && Fn(t.content), (x ? x(t) : t.nodeType) === qt.element) {
|
|
1938
1938
|
let e = te(t);
|
|
1939
1939
|
wn(e) && (In(e), Fn(e));
|
|
1940
1940
|
}
|
|
1941
|
-
_executeHooks(
|
|
1941
|
+
_executeHooks(P.afterSanitizeShadowDOM, e, null);
|
|
1942
1942
|
}, In = function _sanitizeAttachedShadowRoots(e) {
|
|
1943
1943
|
let t = [{
|
|
1944
1944
|
node: e,
|
|
@@ -1981,7 +1981,7 @@ function createDOMPurify() {
|
|
|
1981
1981
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, i = null, a = null, o = null;
|
|
1982
1982
|
if (nt = !e, nt && (e = "<!-->"), typeof e != "string" && !Tn(e) && (e = stringifyValue(e), typeof e != "string")) throw xt("dirty is not a string, aborting");
|
|
1983
1983
|
if (!DOMPurify.isSupported) return e;
|
|
1984
|
-
Me ? (H = Ne, U = Pe) : on(t), (
|
|
1984
|
+
Me ? (H = Ne, U = Pe) : on(t), (P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && (H = clone(H)), P.uponSanitizeAttribute.length > 0 && (U = clone(U)), DOMPurify.removed = [];
|
|
1985
1985
|
let s = He && typeof e != "string" && Tn(e);
|
|
1986
1986
|
if (s) {
|
|
1987
1987
|
vn(e);
|
|
@@ -2030,23 +2030,23 @@ function createDOMPurify() {
|
|
|
2030
2030
|
let r = Q(e), i = Q(t);
|
|
2031
2031
|
return kn(r, i, n);
|
|
2032
2032
|
}, DOMPurify.addHook = function(e, t) {
|
|
2033
|
-
typeof t == "function" && X(
|
|
2033
|
+
typeof t == "function" && X(P, e) && st(P[e], t);
|
|
2034
2034
|
}, DOMPurify.removeHook = function(e, t) {
|
|
2035
|
-
if (X(
|
|
2035
|
+
if (X(P, e)) {
|
|
2036
2036
|
if (t !== void 0) {
|
|
2037
|
-
let n = it(
|
|
2038
|
-
return n === -1 ? void 0 : ct(
|
|
2037
|
+
let n = it(P[e], t);
|
|
2038
|
+
return n === -1 ? void 0 : ct(P[e], n, 1)[0];
|
|
2039
2039
|
}
|
|
2040
|
-
return at(
|
|
2040
|
+
return at(P[e]);
|
|
2041
2041
|
}
|
|
2042
2042
|
}, DOMPurify.removeHooks = function(e) {
|
|
2043
|
-
X(
|
|
2043
|
+
X(P, e) && (P[e] = []);
|
|
2044
2044
|
}, DOMPurify.removeAllHooks = function() {
|
|
2045
|
-
|
|
2045
|
+
P = Xt();
|
|
2046
2046
|
}, DOMPurify;
|
|
2047
2047
|
}
|
|
2048
2048
|
var Qt = createDOMPurify(), _Class;
|
|
2049
|
-
function
|
|
2049
|
+
function z() {
|
|
2050
2050
|
return {
|
|
2051
2051
|
async: !1,
|
|
2052
2052
|
breaks: !1,
|
|
@@ -2060,7 +2060,7 @@ function M() {
|
|
|
2060
2060
|
walkTokens: null
|
|
2061
2061
|
};
|
|
2062
2062
|
}
|
|
2063
|
-
var $t =
|
|
2063
|
+
var $t = z();
|
|
2064
2064
|
function N(e) {
|
|
2065
2065
|
$t = e;
|
|
2066
2066
|
}
|
|
@@ -2145,7 +2145,7 @@ var tn = ((e = "") => {
|
|
|
2145
2145
|
headingBeginRegex: E((e) => RegExp(`^ {0,${e}}#`)),
|
|
2146
2146
|
htmlBeginRegex: E((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
2147
2147
|
blockquoteBeginRegex: E((e) => RegExp(`^ {0,${e}}>`))
|
|
2148
|
-
}, nn = /^(?:[ \t]*(?:\n|$))+/, rn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, an = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, on = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, sn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, cn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ln = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, un = d(ln).replace(/bull/g, cn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), dn = d(ln).replace(/bull/g, cn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), fn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, pn = /^[^\n]+/, mn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, hn = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", mn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gn = d(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, cn).getRegex(), _n = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", vn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, yn = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n
|
|
2148
|
+
}, nn = /^(?:[ \t]*(?:\n|$))+/, rn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, an = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, on = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, sn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, cn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ln = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, un = d(ln).replace(/bull/g, cn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), dn = d(ln).replace(/bull/g, cn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), fn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, pn = /^[^\n]+/, mn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, hn = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", mn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gn = d(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, cn).getRegex(), _n = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", vn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, yn = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", vn).replace("tag", _n).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), le = (e) => d(fn).replace("hr", on).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _n).getRegex(), bn = le(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), xn = le(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Sn = {
|
|
2149
2149
|
blockquote: d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", xn).getRegex(),
|
|
2150
2150
|
code: rn,
|
|
2151
2151
|
def: hn,
|
|
@@ -2159,11 +2159,11 @@ var tn = ((e = "") => {
|
|
|
2159
2159
|
paragraph: bn,
|
|
2160
2160
|
table: en,
|
|
2161
2161
|
text: pn
|
|
2162
|
-
}, Cn = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", on).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)
|
|
2162
|
+
}, Cn = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", on).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _n).getRegex(), wn = {
|
|
2163
2163
|
...Sn,
|
|
2164
2164
|
lheading: dn,
|
|
2165
2165
|
table: Cn,
|
|
2166
|
-
paragraph: d(fn).replace("hr", on).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Cn).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)
|
|
2166
|
+
paragraph: d(fn).replace("hr", on).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Cn).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _n).getRegex()
|
|
2167
2167
|
}, Tn = {
|
|
2168
2168
|
...Sn,
|
|
2169
2169
|
html: d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", vn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
@@ -2207,7 +2207,7 @@ var tn = ((e = "") => {
|
|
|
2207
2207
|
url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", nr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
2208
2208
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
2209
2209
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
2210
|
-
text: d(/^([
|
|
2210
|
+
text: d(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", nr).getRegex()
|
|
2211
2211
|
}, or = {
|
|
2212
2212
|
...ar,
|
|
2213
2213
|
br: d(On).replace("{2,}", "*").getRegex(),
|
|
@@ -2893,78 +2893,78 @@ ${c}` : c;
|
|
|
2893
2893
|
}
|
|
2894
2894
|
inlineTokens(e, t = []) {
|
|
2895
2895
|
this.tokenizer.lexer = this;
|
|
2896
|
-
let n = e
|
|
2896
|
+
let n = e;
|
|
2897
2897
|
if (this.tokens.links) {
|
|
2898
2898
|
let e = Object.keys(this.tokens.links);
|
|
2899
|
-
|
|
2899
|
+
e.length > 0 && (n = n.replace(this.tokenizer.rules.inline.reflinkSearch, (t) => e.includes(t.slice(t.lastIndexOf("[") + 1, -1)) ? "[" + "a".repeat(t.length - 2) + "]" : t));
|
|
2900
2900
|
}
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
2905
|
-
let
|
|
2901
|
+
n = n.replace(this.tokenizer.rules.inline.anyPunctuation, "++"), n = n.replace(this.tokenizer.rules.inline.blockSkip, (e, t, n) => {
|
|
2902
|
+
let r = n ? n.length : 0;
|
|
2903
|
+
return e.slice(0, r) + "[" + "a".repeat(e.length - r - 2) + "]";
|
|
2904
|
+
}), n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
2905
|
+
let r = !1, i = "", a = Infinity;
|
|
2906
2906
|
for (; e;) {
|
|
2907
|
-
if (e.length <
|
|
2907
|
+
if (e.length < a) a = e.length;
|
|
2908
2908
|
else {
|
|
2909
2909
|
this.infiniteLoopError(e.charCodeAt(0));
|
|
2910
2910
|
break;
|
|
2911
2911
|
}
|
|
2912
|
-
|
|
2913
|
-
let
|
|
2914
|
-
if (this.options.extensions?.inline?.some((n) => (
|
|
2915
|
-
if (
|
|
2916
|
-
e = e.substring(
|
|
2912
|
+
r || (i = ""), r = !1;
|
|
2913
|
+
let o;
|
|
2914
|
+
if (this.options.extensions?.inline?.some((n) => (o = n.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), !0) : !1)) continue;
|
|
2915
|
+
if (o = this.tokenizer.escape(e)) {
|
|
2916
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2917
2917
|
continue;
|
|
2918
2918
|
}
|
|
2919
|
-
if (
|
|
2920
|
-
e = e.substring(
|
|
2919
|
+
if (o = this.tokenizer.tag(e)) {
|
|
2920
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2921
2921
|
continue;
|
|
2922
2922
|
}
|
|
2923
|
-
if (
|
|
2924
|
-
e = e.substring(
|
|
2923
|
+
if (o = this.tokenizer.link(e)) {
|
|
2924
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2925
2925
|
continue;
|
|
2926
2926
|
}
|
|
2927
|
-
if (
|
|
2928
|
-
e = e.substring(
|
|
2927
|
+
if (o = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
2928
|
+
e = e.substring(o.raw.length);
|
|
2929
2929
|
let n = t.at(-1);
|
|
2930
|
-
|
|
2930
|
+
o.type === "text" && n?.type === "text" ? (n.raw += o.raw, n.text += o.text) : t.push(o);
|
|
2931
2931
|
continue;
|
|
2932
2932
|
}
|
|
2933
|
-
if (
|
|
2934
|
-
e = e.substring(
|
|
2933
|
+
if (o = this.tokenizer.emStrong(e, n, i)) {
|
|
2934
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2935
2935
|
continue;
|
|
2936
2936
|
}
|
|
2937
|
-
if (
|
|
2938
|
-
e = e.substring(
|
|
2937
|
+
if (o = this.tokenizer.codespan(e)) {
|
|
2938
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2939
2939
|
continue;
|
|
2940
2940
|
}
|
|
2941
|
-
if (
|
|
2942
|
-
e = e.substring(
|
|
2941
|
+
if (o = this.tokenizer.br(e)) {
|
|
2942
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2943
2943
|
continue;
|
|
2944
2944
|
}
|
|
2945
|
-
if (
|
|
2946
|
-
e = e.substring(
|
|
2945
|
+
if (o = this.tokenizer.del(e, n, i)) {
|
|
2946
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2947
2947
|
continue;
|
|
2948
2948
|
}
|
|
2949
|
-
if (
|
|
2950
|
-
e = e.substring(
|
|
2949
|
+
if (o = this.tokenizer.autolink(e)) {
|
|
2950
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2951
2951
|
continue;
|
|
2952
2952
|
}
|
|
2953
|
-
if (!this.state.inLink && (
|
|
2954
|
-
e = e.substring(
|
|
2953
|
+
if (!this.state.inLink && (o = this.tokenizer.url(e))) {
|
|
2954
|
+
e = e.substring(o.raw.length), t.push(o);
|
|
2955
2955
|
continue;
|
|
2956
2956
|
}
|
|
2957
|
-
let
|
|
2957
|
+
let s = e;
|
|
2958
2958
|
if (this.options.extensions?.startInline) {
|
|
2959
2959
|
let t = Infinity, n = e.slice(1), r;
|
|
2960
2960
|
this.options.extensions.startInline.forEach((e) => {
|
|
2961
2961
|
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
2962
|
-
}), t < Infinity && t >= 0 && (
|
|
2962
|
+
}), t < Infinity && t >= 0 && (s = e.substring(0, t + 1));
|
|
2963
2963
|
}
|
|
2964
|
-
if (
|
|
2965
|
-
e = e.substring(
|
|
2964
|
+
if (o = this.tokenizer.inlineText(s)) {
|
|
2965
|
+
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (i = o.raw.slice(-1)), r = !0;
|
|
2966
2966
|
let n = t.at(-1);
|
|
2967
|
-
n?.type === "text" ? (n.raw +=
|
|
2967
|
+
n?.type === "text" ? (n.raw += o.raw, n.text += o.text) : t.push(o);
|
|
2968
2968
|
continue;
|
|
2969
2969
|
}
|
|
2970
2970
|
if (e) {
|
|
@@ -3296,7 +3296,7 @@ ${e}</tr>
|
|
|
3296
3296
|
"processAllTokens"
|
|
3297
3297
|
])), _Class), D = class {
|
|
3298
3298
|
constructor(...t) {
|
|
3299
|
-
e(this, "defaults",
|
|
3299
|
+
e(this, "defaults", z()), e(this, "options", this.setOptions), e(this, "parse", this.parseMarkdown(!0)), e(this, "parseInline", this.parseMarkdown(!1)), e(this, "Parser", dr), e(this, "Renderer", y), e(this, "TextRenderer", L), e(this, "Lexer", ur), e(this, "Tokenizer", w), e(this, "Hooks", fr), this.use(...t);
|
|
3300
3300
|
}
|
|
3301
3301
|
walkTokens(e, t) {
|
|
3302
3302
|
let n = [];
|
|
@@ -3465,7 +3465,7 @@ function g(e, t) {
|
|
|
3465
3465
|
}
|
|
3466
3466
|
g.options = g.setOptions = function(e) {
|
|
3467
3467
|
return pr.setOptions(e), g.defaults = pr.defaults, N(g.defaults), g;
|
|
3468
|
-
}, g.getDefaults =
|
|
3468
|
+
}, g.getDefaults = z, g.defaults = $t, g.use = function(...e) {
|
|
3469
3469
|
return pr.use(...e), g.defaults = pr.defaults, N(g.defaults), g;
|
|
3470
3470
|
}, g.walkTokens = function(e, t) {
|
|
3471
3471
|
return pr.walkTokens(e, t);
|
|
@@ -3506,7 +3506,7 @@ var mr = ["aria-label"], hr = { class: "px-4 pb-2 pt-4" }, gr = ["innerHTML"], _
|
|
|
3506
3506
|
v("div", hr, [v("div", {
|
|
3507
3507
|
class: "text-[14px] font-semibold leading-tight",
|
|
3508
3508
|
style: C({ color: s.value })
|
|
3509
|
-
},
|
|
3509
|
+
}, M(e.spec.title), 5)]),
|
|
3510
3510
|
i.value ? (T(), _("div", {
|
|
3511
3511
|
key: 0,
|
|
3512
3512
|
class: "chat-msg-prose px-4 pb-4 pt-2 text-[14px] leading-relaxed",
|
|
@@ -3524,7 +3524,7 @@ var mr = ["aria-label"], hr = { class: "px-4 pb-2 pt-4" }, gr = ["innerHTML"], _
|
|
|
3524
3524
|
class: "inline-flex h-10 items-center justify-center rounded-full px-5 text-[14px] font-semibold transition-colors duration-150 active:opacity-80",
|
|
3525
3525
|
style: C(actionStyle(e.style)),
|
|
3526
3526
|
onClick: (t) => r("action", e.reply)
|
|
3527
|
-
},
|
|
3527
|
+
}, M(e.label), 13, _r))), 128))], 4)) : h("", !0)
|
|
3528
3528
|
], 12, mr));
|
|
3529
3529
|
}
|
|
3530
3530
|
}), yr = 112, br = 52, xr = 14, Sr = 54, Cr = 34, wr = 260;
|
|
@@ -3942,7 +3942,7 @@ var kr = [
|
|
|
3942
3942
|
dataKey: e.dataKey
|
|
3943
3943
|
};
|
|
3944
3944
|
}));
|
|
3945
|
-
}),
|
|
3945
|
+
}), P = p(() => {
|
|
3946
3946
|
let e = m.value;
|
|
3947
3947
|
if (!e) return [];
|
|
3948
3948
|
let t = e.data;
|
|
@@ -3994,7 +3994,7 @@ var kr = [
|
|
|
3994
3994
|
seriesIndex: n
|
|
3995
3995
|
};
|
|
3996
3996
|
});
|
|
3997
|
-
}),
|
|
3997
|
+
}), F = p(() => {
|
|
3998
3998
|
let e = m.value;
|
|
3999
3999
|
if (!e?.data.length || e.chartType !== "line") return [];
|
|
4000
4000
|
let t = e.data.length - 1, n = e.data[t];
|
|
@@ -4007,7 +4007,7 @@ var kr = [
|
|
|
4007
4007
|
seriesIndex: i
|
|
4008
4008
|
};
|
|
4009
4009
|
}).filter((e) => e !== null);
|
|
4010
|
-
}),
|
|
4010
|
+
}), I = p(() => {
|
|
4011
4011
|
let e = b.value;
|
|
4012
4012
|
if (!e) return [];
|
|
4013
4013
|
let t = e.data.map((t) => ({
|
|
@@ -4023,7 +4023,7 @@ var kr = [
|
|
|
4023
4023
|
series: r
|
|
4024
4024
|
})
|
|
4025
4025
|
}));
|
|
4026
|
-
}),
|
|
4026
|
+
}), R = p(() => c.value ? layoutChatDiagram(c.value, { maxWidth: r.value }) : null), _e = [
|
|
4027
4027
|
"var(--color-theme-900)",
|
|
4028
4028
|
"var(--color-primary-500)",
|
|
4029
4029
|
"color-mix(in oklch, var(--color-primary-500) 55%, var(--color-theme-500))"
|
|
@@ -4060,11 +4060,11 @@ var kr = [
|
|
|
4060
4060
|
v("header", Ar, [v("h4", {
|
|
4061
4061
|
class: "text-[13px] font-semibold leading-tight",
|
|
4062
4062
|
style: C({ color: B.value })
|
|
4063
|
-
},
|
|
4063
|
+
}, M(o.value.meta.title), 5), o.value.meta.description ? (T(), _("p", {
|
|
4064
4064
|
key: 0,
|
|
4065
4065
|
class: "mt-0.5 text-[12px] leading-snug",
|
|
4066
4066
|
style: C({ color: ye.value })
|
|
4067
|
-
},
|
|
4067
|
+
}, M(o.value.meta.description), 5)) : h("", !0)]),
|
|
4068
4068
|
v("div", {
|
|
4069
4069
|
ref_key: "bodyEl",
|
|
4070
4070
|
ref: n
|
|
@@ -4079,10 +4079,10 @@ var kr = [
|
|
|
4079
4079
|
}, [v("div", Nr, [v("span", {
|
|
4080
4080
|
class: "line-clamp-2 min-w-0 font-medium leading-snug",
|
|
4081
4081
|
style: C({ color: B.value })
|
|
4082
|
-
},
|
|
4082
|
+
}, M(e.label), 5), v("span", {
|
|
4083
4083
|
class: "shrink-0 font-semibold tabular-nums",
|
|
4084
4084
|
style: C({ color: B.value })
|
|
4085
|
-
},
|
|
4085
|
+
}, M(e.value), 5)]), v("div", {
|
|
4086
4086
|
class: "h-2 w-full overflow-hidden rounded-full",
|
|
4087
4087
|
style: C({ background: Te.value })
|
|
4088
4088
|
}, [v("div", {
|
|
@@ -4116,7 +4116,7 @@ var kr = [
|
|
|
4116
4116
|
"text-anchor": "end",
|
|
4117
4117
|
"font-size": "9.5",
|
|
4118
4118
|
style: C({ fill: H.value })
|
|
4119
|
-
},
|
|
4119
|
+
}, M(ce(formatChatVisualTick)({
|
|
4120
4120
|
value: e,
|
|
4121
4121
|
shared: ae.value
|
|
4122
4122
|
})), 13, Ir))), 128))]),
|
|
@@ -4162,7 +4162,7 @@ var kr = [
|
|
|
4162
4162
|
r: "2.6",
|
|
4163
4163
|
style: C({ fill: seriesColor(t) })
|
|
4164
4164
|
}, null, 12, Br)) : h("", !0)], 64))), 128))]))), 128)),
|
|
4165
|
-
(T(!0), _(f, null, A(
|
|
4165
|
+
(T(!0), _(f, null, A(F.value, (e) => (T(), _("circle", {
|
|
4166
4166
|
key: `marker-${e.key}`,
|
|
4167
4167
|
cx: e.cx,
|
|
4168
4168
|
cy: e.cy,
|
|
@@ -4170,7 +4170,7 @@ var kr = [
|
|
|
4170
4170
|
style: C({ fill: seriesColor(e.seriesIndex) })
|
|
4171
4171
|
}, null, 12, Vr))), 128))
|
|
4172
4172
|
], 64)),
|
|
4173
|
-
(T(!0), _(f, null, A(
|
|
4173
|
+
(T(!0), _(f, null, A(P.value, (e) => (T(), _("text", {
|
|
4174
4174
|
key: e.key,
|
|
4175
4175
|
x: e.x,
|
|
4176
4176
|
y: e.angled ? j.value.height - j.value.bottom + 12 : j.value.height - 6,
|
|
@@ -4178,7 +4178,7 @@ var kr = [
|
|
|
4178
4178
|
"font-size": "9.5",
|
|
4179
4179
|
transform: e.angled ? `rotate(${ce(-40)} ${e.x} ${j.value.height - j.value.bottom + 12})` : void 0,
|
|
4180
4180
|
style: C({ fill: H.value })
|
|
4181
|
-
},
|
|
4181
|
+
}, M(e.label), 13, Hr))), 128))
|
|
4182
4182
|
], 12, Pr)), he.value.length > 1 || m.value.chartType !== "bar" ? (T(), _("div", Ur, [(T(!0), _(f, null, A(he.value, (e) => (T(), _("div", {
|
|
4183
4183
|
key: e.key,
|
|
4184
4184
|
class: "inline-flex items-center gap-1.5 text-[11.5px] leading-none"
|
|
@@ -4187,21 +4187,21 @@ var kr = [
|
|
|
4187
4187
|
class: "size-2.5 shrink-0 rounded-full",
|
|
4188
4188
|
style: C({ background: seriesColor(e.seriesIndex) })
|
|
4189
4189
|
}, null, 4),
|
|
4190
|
-
v("span", { style: C({ color: ye.value }) },
|
|
4190
|
+
v("span", { style: C({ color: ye.value }) }, M(e.label), 5),
|
|
4191
4191
|
v("span", {
|
|
4192
4192
|
class: "font-semibold tabular-nums",
|
|
4193
4193
|
style: C({ color: B.value })
|
|
4194
|
-
},
|
|
4195
|
-
]))), 128))])) : h("", !0)], 8, jr)) : b.value ? (T(), _("div", Wr, [(T(!0), _(f, null, A(
|
|
4194
|
+
}, M(e.value), 5)
|
|
4195
|
+
]))), 128))])) : h("", !0)], 8, jr)) : b.value ? (T(), _("div", Wr, [(T(!0), _(f, null, A(I.value, (e, t) => (T(), _("div", { key: e.key }, [v("div", Gr, [v("span", {
|
|
4196
4196
|
class: "truncate font-medium",
|
|
4197
4197
|
style: C({ color: B.value })
|
|
4198
|
-
},
|
|
4198
|
+
}, M(e.name), 5), v("span", Kr, [v("span", {
|
|
4199
4199
|
class: "font-semibold",
|
|
4200
4200
|
style: C({ color: B.value })
|
|
4201
|
-
},
|
|
4201
|
+
}, M(e.display), 5), v("span", {
|
|
4202
4202
|
class: "ml-1.5",
|
|
4203
4203
|
style: C({ color: ye.value })
|
|
4204
|
-
},
|
|
4204
|
+
}, M(Math.round(e.percent * 100)) + "%", 5)])]), v("div", {
|
|
4205
4205
|
class: "h-1.5 w-full overflow-hidden rounded-full",
|
|
4206
4206
|
style: C({ background: Te.value })
|
|
4207
4207
|
}, [v("div", {
|
|
@@ -4210,18 +4210,18 @@ var kr = [
|
|
|
4210
4210
|
width: `${Math.max(2, e.percent * 100)}%`,
|
|
4211
4211
|
background: seriesColor(t)
|
|
4212
4212
|
})
|
|
4213
|
-
}, null, 4)], 4)]))), 128))])) : c.value &&
|
|
4213
|
+
}, null, 4)], 4)]))), 128))])) : c.value && R.value ? (T(), _("div", qr, [(T(), _("svg", {
|
|
4214
4214
|
"data-test": "chat-visual-diagram-svg",
|
|
4215
4215
|
class: "block h-auto overflow-visible",
|
|
4216
|
-
viewBox: `0 0 ${
|
|
4216
|
+
viewBox: `0 0 ${R.value.width} ${R.value.height}`,
|
|
4217
4217
|
style: C({
|
|
4218
|
-
width: `${
|
|
4219
|
-
aspectRatio: `${
|
|
4218
|
+
width: `${R.value.width}px`,
|
|
4219
|
+
aspectRatio: `${R.value.width} / ${R.value.height}`
|
|
4220
4220
|
}),
|
|
4221
4221
|
role: "img",
|
|
4222
4222
|
"aria-label": o.value.meta.title
|
|
4223
4223
|
}, [
|
|
4224
|
-
(T(!0), _(f, null, A(
|
|
4224
|
+
(T(!0), _(f, null, A(R.value.edges, (e) => (T(), _("line", {
|
|
4225
4225
|
key: e.key,
|
|
4226
4226
|
"data-test": "chat-visual-diagram-edge",
|
|
4227
4227
|
"data-from": e.from,
|
|
@@ -4235,14 +4235,14 @@ var kr = [
|
|
|
4235
4235
|
"vector-effect": "non-scaling-stroke",
|
|
4236
4236
|
style: C({ stroke: we.value })
|
|
4237
4237
|
}, null, 12, Yr))), 128)),
|
|
4238
|
-
(T(!0), _(f, null, A(
|
|
4238
|
+
(T(!0), _(f, null, A(R.value.edges, (e) => (T(), _("circle", {
|
|
4239
4239
|
key: `${e.key}-dot`,
|
|
4240
4240
|
cx: e.x2,
|
|
4241
4241
|
cy: e.y2,
|
|
4242
4242
|
r: "2.4",
|
|
4243
4243
|
style: C({ fill: we.value })
|
|
4244
4244
|
}, null, 12, Xr))), 128)),
|
|
4245
|
-
(T(!0), _(f, null, A(
|
|
4245
|
+
(T(!0), _(f, null, A(R.value.edges.filter((e) => e.label), (e) => (T(), _("foreignObject", {
|
|
4246
4246
|
key: `${e.key}-label`,
|
|
4247
4247
|
x: e.labelX - 55,
|
|
4248
4248
|
y: e.labelY - 12,
|
|
@@ -4255,8 +4255,8 @@ var kr = [
|
|
|
4255
4255
|
color: ye.value,
|
|
4256
4256
|
background: t.inverted ? "var(--color-theme-900)" : "var(--color-theme-0)"
|
|
4257
4257
|
})
|
|
4258
|
-
},
|
|
4259
|
-
(T(!0), _(f, null, A(
|
|
4258
|
+
}, M(e.label), 5)], 8, Zr))), 128)),
|
|
4259
|
+
(T(!0), _(f, null, A(R.value.nodes, (e) => (T(), _("g", {
|
|
4260
4260
|
key: e.id,
|
|
4261
4261
|
"data-test": "chat-visual-diagram-node",
|
|
4262
4262
|
"data-node-id": e.id,
|
|
@@ -4290,17 +4290,17 @@ var kr = [
|
|
|
4290
4290
|
}, [v("div", ni, [v("div", {
|
|
4291
4291
|
class: "line-clamp-2 text-[13px] font-semibold leading-tight",
|
|
4292
4292
|
style: C({ color: B.value })
|
|
4293
|
-
},
|
|
4293
|
+
}, M(e.label), 5), e.detail ? (T(), _("div", {
|
|
4294
4294
|
key: 0,
|
|
4295
4295
|
class: "mt-0.5 line-clamp-1 text-[10.5px] leading-none",
|
|
4296
4296
|
style: C({ color: ye.value })
|
|
4297
|
-
},
|
|
4297
|
+
}, M(e.detail), 5)) : h("", !0)])], 8, ti))], 8, Qr))), 128))
|
|
4298
4298
|
], 12, Jr))])) : h("", !0)], 512),
|
|
4299
4299
|
o.value.meta.footer ? (T(), _("footer", {
|
|
4300
4300
|
key: 0,
|
|
4301
4301
|
class: "mt-3 text-[11px] leading-snug",
|
|
4302
4302
|
style: C({ color: H.value })
|
|
4303
|
-
},
|
|
4303
|
+
}, M(o.value.meta.footer), 5)) : h("", !0)
|
|
4304
4304
|
], 12, kr)) : h("", !0);
|
|
4305
4305
|
}
|
|
4306
4306
|
}), ii = ["innerHTML"], ai = /* @__PURE__ */ x({
|
|
@@ -4693,18 +4693,18 @@ var kr = [
|
|
|
4693
4693
|
let t = j.value[e];
|
|
4694
4694
|
if (t?.kind === "text") return t.id;
|
|
4695
4695
|
}
|
|
4696
|
-
}), ce = p(() => e.chatController?.liveStreamMessageId?.value),
|
|
4696
|
+
}), ce = p(() => e.chatController?.liveStreamMessageId?.value), I = p(() => {
|
|
4697
4697
|
let t = e.chatController?.sharedMessages.value ?? [];
|
|
4698
4698
|
return j.value.length && ce.value ? t.filter((e) => e.id !== ce.value) : t;
|
|
4699
|
-
}),
|
|
4699
|
+
}), R = p(() => {
|
|
4700
4700
|
if (!e.chatController?.workJournal?.value) return o.value?.workingDescription?.trim() || void 0;
|
|
4701
4701
|
}), ve = p(() => e.chatController?.workJournal?.value), B = p(() => {
|
|
4702
4702
|
if (!ve.value && !j.value.length) return;
|
|
4703
|
-
let e =
|
|
4703
|
+
let e = I.value, t = e[e.length - 1];
|
|
4704
4704
|
if (t) return t.sender === "agent" || t.sender === "system" ? e.length >= 2 ? e[e.length - 2].id : void 0 : t.id;
|
|
4705
4705
|
}), ye = p(() => {
|
|
4706
4706
|
let t = {};
|
|
4707
|
-
for (let n of
|
|
4707
|
+
for (let n of I.value) {
|
|
4708
4708
|
if (n.sender === "user" || !n.toolActivities?.length) continue;
|
|
4709
4709
|
let r = e.chatController?.workJournalFor?.({
|
|
4710
4710
|
activities: n.toolActivities,
|
|
@@ -4766,9 +4766,9 @@ var kr = [
|
|
|
4766
4766
|
}
|
|
4767
4767
|
let H = p(() => o.value?.transientIssue), be = p(() => {
|
|
4768
4768
|
if (!c.value) return;
|
|
4769
|
-
let e =
|
|
4769
|
+
let e = I.value, t = e[e.length - 1];
|
|
4770
4770
|
return t?.sender === "agent" || t?.sender === "system" ? t.id : void 0;
|
|
4771
|
-
}), U = p(() => !c.value ||
|
|
4771
|
+
}), U = p(() => !c.value || R.value || ve.value || j.value.length ? !1 : be.value === void 0), Se = p(() => R.value ?? (U.value ? "Thinking…" : void 0)), W = p(() => o.value?.sendBlockedReason), Ce = p(() => W.value === "agent_deleted"), we = p(() => u.value ? `${e.agent.displayName.value || e.agent.name.value || "Assistant"} is offline` : x.value ? "Connecting..." : W.value === "agent_deleted" ? "This assistant was deleted" : `Message ${e.agent.displayName.value || e.agent.name.value || "assistant"}`), Te = p(() => e.chatController?.composerState?.value ?? {
|
|
4772
4772
|
text: "",
|
|
4773
4773
|
pendingAttachments: [],
|
|
4774
4774
|
isUploading: !1
|
|
@@ -4857,7 +4857,7 @@ var kr = [
|
|
|
4857
4857
|
}
|
|
4858
4858
|
return (t, o) => (T(), _("div", {
|
|
4859
4859
|
"data-test": "messaging-root",
|
|
4860
|
-
class: S(["@container/chat relative flex h-full flex-col",
|
|
4860
|
+
class: S(["@container/chat relative flex h-full flex-col", I.value.length === 0 ? "min-h-0 [justify-content:safe_center] overflow-y-auto" : ""])
|
|
4861
4861
|
}, [
|
|
4862
4862
|
e.showHeader && !K.value ? (T(), _("div", li, [b(Pe, {
|
|
4863
4863
|
agent: e.agent,
|
|
@@ -4868,8 +4868,8 @@ var kr = [
|
|
|
4868
4868
|
"is-light": K.value,
|
|
4869
4869
|
class: "size-10"
|
|
4870
4870
|
}, null, 8, ["agent", "is-light"]),
|
|
4871
|
-
v("div", di, [v("div", fi,
|
|
4872
|
-
e.headerMeta ? (T(), _("span", mi,
|
|
4871
|
+
v("div", di, [v("div", fi, M(e.agent.displayName.value), 1), v("div", pi, M(e.agent.title.value || "Assistant"), 1)]),
|
|
4872
|
+
e.headerMeta ? (T(), _("span", mi, M(e.headerMeta), 1)) : h("", !0)
|
|
4873
4873
|
], 2)])) : h("", !0),
|
|
4874
4874
|
x.value ? (T(), _("div", {
|
|
4875
4875
|
key: 2,
|
|
@@ -4877,28 +4877,28 @@ var kr = [
|
|
|
4877
4877
|
}, [b(_e, { class: "size-4" })], 2)) : e.setupHint ? (T(), _("div", {
|
|
4878
4878
|
key: 3,
|
|
4879
4879
|
class: S(["flex items-center justify-center gap-1.5 py-2 text-[11px]", Ue.value])
|
|
4880
|
-
}, [o[18] || (o[18] = v("i", { class: "i-tabler-tool size-3" }, null, -1)), v("span", null,
|
|
4880
|
+
}, [o[18] || (o[18] = v("i", { class: "i-tabler-tool size-3" }, null, -1)), v("span", null, M(e.setupHint), 1)], 2)) : h("", !0),
|
|
4881
4881
|
b(ci, {
|
|
4882
4882
|
ref_key: "chatScroller",
|
|
4883
4883
|
ref: r,
|
|
4884
|
-
class: S(
|
|
4884
|
+
class: S(I.value.length === 0 ? "flex-none" : "flex-1")
|
|
4885
4885
|
}, {
|
|
4886
|
-
default:
|
|
4887
|
-
|
|
4886
|
+
default: P(() => [v("div", { class: S([I.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : e.centered ? "pt-20 pb-5 px-3 space-y-2" : "pt-4 pb-[120px] px-3 space-y-2", e.centered ? I.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[720px] mx-auto w-full" : ""]) }, [
|
|
4887
|
+
I.value.length === 0 && !x.value ? (T(), _("div", hi, [oe(t.$slots, "empty-heading", {
|
|
4888
4888
|
agent: e.agent,
|
|
4889
4889
|
isLight: K.value
|
|
4890
4890
|
}, () => [b(ze, {
|
|
4891
4891
|
agent: e.agent,
|
|
4892
4892
|
"is-light": K.value,
|
|
4893
4893
|
class: "mb-4 size-20 @sm/chat:size-24"
|
|
4894
|
-
}, null, 8, ["agent", "is-light"]), v("div", { class: S(["text-base @sm/chat:text-lg font-semibold", K.value ? "text-theme-900" : "text-white"]) },
|
|
4894
|
+
}, null, 8, ["agent", "is-light"]), v("div", { class: S(["text-base @sm/chat:text-lg font-semibold", K.value ? "text-theme-900" : "text-white"]) }, M(e.agent.displayName.value), 3)]), e.emptyStateMessage === "" ? h("", !0) : (T(), _(f, { key: 0 }, [v("p", { class: S(["mt-1 text-center text-xs @sm/chat:text-sm", Ue.value]) }, M(e.emptyStateMessage || "Type your message to get started."), 3), v("div", {
|
|
4895
4895
|
class: S(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]", K.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
|
|
4896
4896
|
title: n.value.tooltip
|
|
4897
|
-
}, [v("i", { class: S([n.value.icon, "size-3"]) }, null, 2), v("span", null,
|
|
4898
|
-
(T(!0), _(f, null, A(
|
|
4899
|
-
shouldShowTimeDivider(
|
|
4897
|
+
}, [v("i", { class: S([n.value.icon, "size-3"]) }, null, 2), v("span", null, M(n.value.label), 1)], 10, gi)], 64))])) : h("", !0),
|
|
4898
|
+
(T(!0), _(f, null, A(I.value, (e, t) => (T(), _(f, { key: e.id }, [
|
|
4899
|
+
shouldShowTimeDivider(I.value, t) ? (T(), _("div", _i, [
|
|
4900
4900
|
v("div", { class: S(["flex-1 h-px", He.value]) }, null, 2),
|
|
4901
|
-
v("span", { class: S(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", Ue.value]) },
|
|
4901
|
+
v("span", { class: S(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase", Ue.value]) }, M(shouldShowTimeDivider(I.value, t)), 3),
|
|
4902
4902
|
v("div", { class: S(["flex-1 h-px", He.value]) }, null, 2)
|
|
4903
4903
|
])) : h("", !0),
|
|
4904
4904
|
messageWorkJournal(e) ? (T(), _("div", {
|
|
@@ -4929,7 +4929,7 @@ var kr = [
|
|
|
4929
4929
|
text: e.text,
|
|
4930
4930
|
inverted: !K.value,
|
|
4931
4931
|
streaming: e.id === be.value,
|
|
4932
|
-
onClick: o[0] || (o[0] =
|
|
4932
|
+
onClick: o[0] || (o[0] = F(() => {}, ["stop"])),
|
|
4933
4933
|
onAction: handleCardAction
|
|
4934
4934
|
}, null, 8, [
|
|
4935
4935
|
"text",
|
|
@@ -4944,8 +4944,8 @@ var kr = [
|
|
|
4944
4944
|
href: e.issue.actionUrl,
|
|
4945
4945
|
"data-test": "messaging-system-msg-action",
|
|
4946
4946
|
class: S(["mt-2 text-[12px] font-medium inline-flex items-center gap-1", K.value ? "text-theme-900 hover:text-theme-700" : "text-white hover:text-white/80"]),
|
|
4947
|
-
onClick: o[1] || (o[1] =
|
|
4948
|
-
}, [te(
|
|
4947
|
+
onClick: o[1] || (o[1] = F(() => {}, ["stop"]))
|
|
4948
|
+
}, [te(M(e.issue.actionLabel) + " ", 1), o[19] || (o[19] = v("i", { class: "i-tabler-arrow-right size-3" }, null, -1))], 10, xi)) : h("", !0)], 2)])], 8, yi)) : e.sender === "system" ? (T(), _("div", {
|
|
4949
4949
|
key: 3,
|
|
4950
4950
|
"data-test": "messaging-system-status-msg",
|
|
4951
4951
|
"data-message-id": e.id,
|
|
@@ -4960,7 +4960,7 @@ var kr = [
|
|
|
4960
4960
|
}, [o[20] || (o[20] = v("i", { class: "i-tabler-info-circle size-4 mt-0.5 shrink-0" }, null, -1)), b(ai, {
|
|
4961
4961
|
text: e.text,
|
|
4962
4962
|
inverted: !K.value,
|
|
4963
|
-
onClick: o[2] || (o[2] =
|
|
4963
|
+
onClick: o[2] || (o[2] = F(() => {}, ["stop"]))
|
|
4964
4964
|
}, null, 8, ["text", "inverted"])], 10, Si)) : (T(), _("div", {
|
|
4965
4965
|
key: 4,
|
|
4966
4966
|
"data-test": e.sender === "agent" ? "messaging-assistant-msg" : e.sender === "user" ? "messaging-user-msg" : void 0,
|
|
@@ -4973,7 +4973,7 @@ var kr = [
|
|
|
4973
4973
|
class: S(["flex gap-2 items-end", {
|
|
4974
4974
|
"justify-end": e.sender === "user",
|
|
4975
4975
|
"justify-start": e.sender === "agent",
|
|
4976
|
-
"mb-6": isGroupEnd(
|
|
4976
|
+
"mb-6": isGroupEnd(I.value, t)
|
|
4977
4977
|
}])
|
|
4978
4978
|
}, [v("div", {
|
|
4979
4979
|
"data-test": "messaging-message-body",
|
|
@@ -5003,7 +5003,7 @@ var kr = [
|
|
|
5003
5003
|
"data-test": "messaging-attachment",
|
|
5004
5004
|
"data-attachment-placement": "block",
|
|
5005
5005
|
class: S(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", K.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
|
|
5006
|
-
}, [o[21] || (o[21] = v("i", { class: "i-tabler-file size-3.5" }, null, -1)), te(" " +
|
|
5006
|
+
}, [o[21] || (o[21] = v("i", { class: "i-tabler-file size-3.5" }, null, -1)), te(" " + M(e.filename), 1)], 10, Ei))], 64))), 128))], 2)) : h("", !0), messageRenderParts(e).length ? (T(), _("div", {
|
|
5007
5007
|
key: 1,
|
|
5008
5008
|
"data-test": "messaging-message-content",
|
|
5009
5009
|
class: S(e.sender === "user" ? K.value ? "rounded-[14px] px-4 py-2.5 bg-theme-100 text-theme-900" : "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : K.value ? "text-theme-800" : "text-white/95")
|
|
@@ -5011,7 +5011,7 @@ var kr = [
|
|
|
5011
5011
|
text: t.text,
|
|
5012
5012
|
inverted: e.sender === "user" || !K.value,
|
|
5013
5013
|
streaming: e.id === be.value,
|
|
5014
|
-
onClick: o[3] || (o[3] =
|
|
5014
|
+
onClick: o[3] || (o[3] = F(() => {}, ["stop"])),
|
|
5015
5015
|
onAction: handleCardAction
|
|
5016
5016
|
}, null, 8, [
|
|
5017
5017
|
"text",
|
|
@@ -5039,7 +5039,7 @@ var kr = [
|
|
|
5039
5039
|
"data-test": "messaging-attachment",
|
|
5040
5040
|
"data-attachment-placement": t.placement,
|
|
5041
5041
|
class: S(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", K.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
|
|
5042
|
-
}, [o[22] || (o[22] = v("i", { class: "i-tabler-file size-3.5" }, null, -1)), te(" " +
|
|
5042
|
+
}, [o[22] || (o[22] = v("i", { class: "i-tabler-file size-3.5" }, null, -1)), te(" " + M(t.attachment.filename), 1)], 10, Ai)) : h("", !0)], 64))), 128))], 2)) : h("", !0)], 2)], 10, Ci)),
|
|
5043
5043
|
e.id === B.value ? (T(), _(f, { key: 5 }, [j.value.length ? (T(!0), _(f, { key: 0 }, A(j.value, (e) => (T(), _(f, { key: e.id }, [e.kind === "work" ? (T(), _("div", {
|
|
5044
5044
|
key: 0,
|
|
5045
5045
|
"data-test": "messaging-tool-activity",
|
|
@@ -5056,7 +5056,7 @@ var kr = [
|
|
|
5056
5056
|
text: e.content,
|
|
5057
5057
|
inverted: !K.value,
|
|
5058
5058
|
streaming: e.id === se.value,
|
|
5059
|
-
onClick: o[4] || (o[4] =
|
|
5059
|
+
onClick: o[4] || (o[4] = F(() => {}, ["stop"])),
|
|
5060
5060
|
onAction: handleCardAction
|
|
5061
5061
|
}, null, 8, [
|
|
5062
5062
|
"text",
|
|
@@ -5074,8 +5074,8 @@ var kr = [
|
|
|
5074
5074
|
], 64))), 128)),
|
|
5075
5075
|
Se.value ? (T(), _("div", {
|
|
5076
5076
|
key: 1,
|
|
5077
|
-
"data-test":
|
|
5078
|
-
"data-working-description":
|
|
5077
|
+
"data-test": R.value ? "messaging-working-state" : "messaging-thinking-indicator",
|
|
5078
|
+
"data-working-description": R.value,
|
|
5079
5079
|
role: "status",
|
|
5080
5080
|
"aria-live": "polite",
|
|
5081
5081
|
class: S(["mb-4 flex items-center gap-2.5 pl-0.5 text-[13.5px] leading-none", K.value ? "text-theme-500" : "text-white/50"])
|
|
@@ -5084,7 +5084,7 @@ var kr = [
|
|
|
5084
5084
|
"data-test": "messaging-thinking-dot",
|
|
5085
5085
|
class: "chat-working-dot size-1.5 rounded-full bg-current",
|
|
5086
5086
|
style: C({ animationDelay: `${(e - 1) * .18}s` })
|
|
5087
|
-
}, null, 4)), 64))]), v("span", Ii,
|
|
5087
|
+
}, null, 4)), 64))]), v("span", Ii, M(Se.value), 1)], 10, Pi)) : h("", !0),
|
|
5088
5088
|
H.value ? (T(), _("div", {
|
|
5089
5089
|
key: 2,
|
|
5090
5090
|
"data-test": "messaging-transient-issue",
|
|
@@ -5095,13 +5095,13 @@ var kr = [
|
|
|
5095
5095
|
class: "i-tabler-alert-circle size-3.5 shrink-0 text-red-500",
|
|
5096
5096
|
"aria-hidden": "true"
|
|
5097
5097
|
}, null, -1)),
|
|
5098
|
-
v("span", null, [te(
|
|
5098
|
+
v("span", null, [te(M(H.value.message), 1), H.value.help ? (T(), _(f, { key: 0 }, [te(M(H.value.help), 1)], 64)) : h("", !0)]),
|
|
5099
5099
|
H.value.actionUrl && H.value.actionLabel ? (T(), _("a", {
|
|
5100
5100
|
key: 0,
|
|
5101
5101
|
href: H.value.actionUrl,
|
|
5102
5102
|
class: "shrink-0 underline underline-offset-2",
|
|
5103
|
-
onClick: o[5] || (o[5] =
|
|
5104
|
-
},
|
|
5103
|
+
onClick: o[5] || (o[5] = F(() => {}, ["stop"]))
|
|
5104
|
+
}, M(H.value.actionLabel), 9, Ri)) : h("", !0)
|
|
5105
5105
|
], 10, Li)) : h("", !0)
|
|
5106
5106
|
], 2)]),
|
|
5107
5107
|
_: 3
|
|
@@ -5109,8 +5109,8 @@ var kr = [
|
|
|
5109
5109
|
v("div", {
|
|
5110
5110
|
"data-test": "messaging-composer-footer",
|
|
5111
5111
|
class: S(["left-0 right-0 z-30 px-5 pb-[max(env(safe-area-inset-bottom),1rem)]", [
|
|
5112
|
-
|
|
5113
|
-
e.centered &&
|
|
5112
|
+
I.value.length === 0 || e.centered ? "relative shrink-0" : "absolute bottom-0",
|
|
5113
|
+
e.centered && I.value.length > 0 ? "pt-0" : "pt-3",
|
|
5114
5114
|
K.value ? e.centered ? "bg-theme-25/50" : "bg-gradient-to-t from-theme-0/90 via-theme-0/55 to-transparent" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"
|
|
5115
5115
|
]])
|
|
5116
5116
|
}, [
|
|
@@ -5128,7 +5128,7 @@ var kr = [
|
|
|
5128
5128
|
}, null, 10, zi)) : (T(), _("div", {
|
|
5129
5129
|
key: 1,
|
|
5130
5130
|
class: S(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", K.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
|
|
5131
|
-
}, [o[24] || (o[24] = v("i", { class: "i-tabler-file size-4" }, null, -1)), v("span", Bi,
|
|
5131
|
+
}, [o[24] || (o[24] = v("i", { class: "i-tabler-file size-4" }, null, -1)), v("span", Bi, M(e.filename), 1)], 2)), v("button", {
|
|
5132
5132
|
class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform cursor-pointer",
|
|
5133
5133
|
onClick: (e) => removeAttachment(t)
|
|
5134
5134
|
}, [...o[25] || (o[25] = [v("i", { class: "i-tabler-x size-3" }, null, -1)])], 8, Vi)]))), 128)), Oe.value ? (T(), _("div", Hi, [b(_e, { class: "size-5" })])) : h("", !0)], 2)) : h("", !0),
|
|
@@ -5152,8 +5152,8 @@ var kr = [
|
|
|
5152
5152
|
class: S(["flex min-w-0 items-center gap-2 py-1", K.value ? "text-theme-700" : "text-white/80"])
|
|
5153
5153
|
}, [
|
|
5154
5154
|
o[26] || (o[26] = v("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
|
|
5155
|
-
v("span", Gi,
|
|
5156
|
-
v("span", { class: S(["min-w-0 truncate text-sm", K.value ? "text-theme-400" : "text-white/45"]) },
|
|
5155
|
+
v("span", Gi, M(Re.value), 1),
|
|
5156
|
+
v("span", { class: S(["min-w-0 truncate text-sm", K.value ? "text-theme-400" : "text-white/45"]) }, M(Be.value), 3)
|
|
5157
5157
|
], 2)) : pe((T(), _("textarea", {
|
|
5158
5158
|
key: 0,
|
|
5159
5159
|
ref_key: "textarea",
|
|
@@ -5186,7 +5186,7 @@ var kr = [
|
|
|
5186
5186
|
"aria-label": G.value ? "Attach file" : "File attachments unavailable",
|
|
5187
5187
|
title: G.value ? "Attach file" : "File attachments unavailable",
|
|
5188
5188
|
onClick: o[7] || (o[7] = (e) => G.value && triggerFileInput())
|
|
5189
|
-
}, [Oe.value ? (T(), _("i", Ji)) : (T(), _("i", Yi)), v("span", Xi,
|
|
5189
|
+
}, [Oe.value ? (T(), _("i", Ji)) : (T(), _("i", Yi)), v("span", Xi, M(G.value ? "Attach file" : "File attachments unavailable"), 1)], 10, qi),
|
|
5190
5190
|
o[27] || (o[27] = v("div", { class: "flex-1" }, null, -1)),
|
|
5191
5191
|
v("div", Zi, [Ie.value || Le.value ? (T(), _("button", {
|
|
5192
5192
|
key: 0,
|
|
@@ -5194,16 +5194,16 @@ var kr = [
|
|
|
5194
5194
|
class: S(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 hover:opacity-70", Le.value ? K.value ? "text-theme-900 scale-110" : "text-white scale-110" : K.value ? "text-theme-500" : "text-white/60"]),
|
|
5195
5195
|
"aria-label": Ve.value,
|
|
5196
5196
|
title: Ve.value,
|
|
5197
|
-
onPointerdown: o[8] || (o[8] =
|
|
5198
|
-
onPointerup: o[9] || (o[9] =
|
|
5199
|
-
onPointercancel: o[10] || (o[10] =
|
|
5197
|
+
onPointerdown: o[8] || (o[8] = F((e) => startRecording(), ["prevent"])),
|
|
5198
|
+
onPointerup: o[9] || (o[9] = F((e) => finishRecording({ cancelled: !1 }), ["prevent"])),
|
|
5199
|
+
onPointercancel: o[10] || (o[10] = F((e) => finishRecording({ cancelled: !0 }), ["prevent"])),
|
|
5200
5200
|
onKeydown: [
|
|
5201
|
-
o[11] || (o[11] = he(
|
|
5202
|
-
o[13] || (o[13] = he(
|
|
5203
|
-
o[15] || (o[15] = he(
|
|
5201
|
+
o[11] || (o[11] = he(F((e) => startRecording(), ["prevent"]), ["enter"])),
|
|
5202
|
+
o[13] || (o[13] = he(F((e) => startRecording(), ["prevent"]), ["space"])),
|
|
5203
|
+
o[15] || (o[15] = he(F((e) => finishRecording({ cancelled: !0 }), ["prevent"]), ["escape"]))
|
|
5204
5204
|
],
|
|
5205
|
-
onKeyup: [o[12] || (o[12] = he(
|
|
5206
|
-
}, [v("i", { class: S([Le.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), v("span", $i,
|
|
5205
|
+
onKeyup: [o[12] || (o[12] = he(F((e) => finishRecording({ cancelled: !1 }), ["prevent"]), ["enter"])), o[14] || (o[14] = he(F((e) => finishRecording({ cancelled: !1 }), ["prevent"]), ["space"]))]
|
|
5206
|
+
}, [v("i", { class: S([Le.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-[18px]"]) }, null, 2), v("span", $i, M(Ve.value), 1)], 42, Qi)) : h("", !0), Le.value ? h("", !0) : (T(), _("button", {
|
|
5207
5207
|
key: 1,
|
|
5208
5208
|
"data-test": "messaging-send-btn",
|
|
5209
5209
|
"data-composer-action": Me.value,
|
|
@@ -5212,24 +5212,24 @@ var kr = [
|
|
|
5212
5212
|
"aria-label": Fe.value,
|
|
5213
5213
|
title: Fe.value,
|
|
5214
5214
|
onClick: o[16] || (o[16] = (e) => handleComposerAction())
|
|
5215
|
-
}, [Me.value === "stop" ? (T(), _("i", ta)) : (T(), _("i", na)), v("span", ra,
|
|
5215
|
+
}, [Me.value === "stop" ? (T(), _("i", ta)) : (T(), _("i", na)), v("span", ra, M(Fe.value), 1)], 10, ea))])
|
|
5216
5216
|
])], 10, Ui),
|
|
5217
|
-
K.value && e.centered && e.scope === "private" ? (T(), _("div", ia,
|
|
5218
|
-
|
|
5217
|
+
K.value && e.centered && e.scope === "private" ? (T(), _("div", ia, M(e.agent.displayName.value) + " is AI and can make mistakes. ", 1)) : h("", !0),
|
|
5218
|
+
I.value.length === 0 && e.suggestedPrompts.length > 0 ? (T(), _("div", aa, [v("div", oa, [(T(!0), _(f, null, A(e.suggestedPrompts, (e, t) => (T(), _("button", {
|
|
5219
5219
|
key: e.id,
|
|
5220
5220
|
type: "button",
|
|
5221
5221
|
disabled: Ce.value,
|
|
5222
5222
|
"data-test": "messaging-suggested-prompt",
|
|
5223
5223
|
class: S(["w-full rounded-2xl bg-theme-50 px-4 py-3 text-left text-[14.5px] font-medium transition-colors sm:w-auto sm:rounded-full sm:py-2 sm:text-center sm:text-[14px]", [Ce.value ? "cursor-not-allowed text-theme-300" : "cursor-pointer text-theme-600 hover:bg-theme-100 hover:text-theme-900", !re.value && t >= 3 ? "max-sm:hidden" : ""]]),
|
|
5224
5224
|
onClick: (t) => sendSuggestedPrompt(e)
|
|
5225
|
-
},
|
|
5225
|
+
}, M(e.label), 11, sa))), 128)), e.suggestedPrompts.length > 3 ? (T(), _("button", {
|
|
5226
5226
|
key: 0,
|
|
5227
5227
|
type: "button",
|
|
5228
5228
|
"data-test": "messaging-suggested-prompts-more",
|
|
5229
5229
|
"aria-expanded": re.value,
|
|
5230
5230
|
class: "flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-2xl px-4 py-3 text-[14px] font-medium text-theme-600 ring-1 ring-theme-200 transition-colors hover:bg-theme-50 hover:text-theme-900 sm:hidden",
|
|
5231
5231
|
onClick: o[17] || (o[17] = (e) => re.value = !re.value)
|
|
5232
|
-
}, [te(
|
|
5232
|
+
}, [te(M(re.value ? "See less" : "See more") + " ", 1), v("i", { class: S(["i-tabler-chevron-down size-4 transition-transform", re.value ? "rotate-180" : ""]) }, null, 2)], 8, ca)) : h("", !0)])])) : h("", !0)
|
|
5233
5233
|
], 2)
|
|
5234
5234
|
], 2));
|
|
5235
5235
|
}
|