@pagelines/sdk 1.0.356 → 1.0.358
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/{AgentProvider.vue_vue_type_script_setup_true_lang-D_Ftn3vK.js → AgentProvider.vue_vue_type_script_setup_true_lang-DKRtWknA.js} +2 -2
- package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-D_Ftn3vK.js.map → AgentProvider.vue_vue_type_script_setup_true_lang-DKRtWknA.js.map} +1 -1
- package/dist/{AgentWidgetInline-BRfRYhMT.js → AgentWidgetInline-BuW3tR6N.js} +3 -3
- package/dist/{AgentWidgetInline-BRfRYhMT.js.map → AgentWidgetInline-BuW3tR6N.js.map} +1 -1
- package/dist/{AgentWidgetModal-DZLVuspg.js → AgentWidgetModal-Bx9XzVTw.js} +3 -3
- package/dist/{AgentWidgetModal-DZLVuspg.js.map → AgentWidgetModal-Bx9XzVTw.js.map} +1 -1
- package/dist/{AgentWrap.vue_vue_type_script_setup_true_lang-CnOmMDjt.js → AgentWrap.vue_vue_type_script_setup_true_lang-CZiiYRYE.js} +88 -82
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-CZiiYRYE.js.map +1 -0
- package/dist/agent/AgentController.d.ts +5 -0
- package/dist/agent.js +4 -4
- package/dist/{index-CV0s99kQ.js → index-CN6PhEbU.js} +4 -4
- package/dist/{index-CV0s99kQ.js.map → index-CN6PhEbU.js.map} +1 -1
- package/dist/widget.js +1 -1
- package/package.json +1 -1
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-CnOmMDjt.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as d, createBlock as m, unref as t } from "vue";
|
|
2
|
-
import { _ as f } from "./AgentProvider.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as g } from "./index-
|
|
2
|
+
import { _ as f } from "./AgentProvider.vue_vue_type_script_setup_true_lang-DKRtWknA.js";
|
|
3
|
+
import { u as g } from "./index-CN6PhEbU.js";
|
|
4
4
|
const y = /* @__PURE__ */ l({
|
|
5
5
|
__name: "AgentWidgetInline",
|
|
6
6
|
props: {
|
|
@@ -30,4 +30,4 @@ const y = /* @__PURE__ */ l({
|
|
|
30
30
|
export {
|
|
31
31
|
y as default
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=AgentWidgetInline-
|
|
33
|
+
//# sourceMappingURL=AgentWidgetInline-BuW3tR6N.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentWidgetInline-
|
|
1
|
+
{"version":3,"file":"AgentWidgetInline-BuW3tR6N.js","sources":["../widget/ui/AgentWidgetInline.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\n\ndefineExpose({ update })\n</script>\n\n<template>\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n />\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","__expose","_createBlock","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;AAOA,UAAMA,IAAQC,GAWR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK;AAEhI,WAAAS,EAAa,EAAE,QAAAF,GAAQ,mBAIrBG,EASEC,GAAA;AAAA,MARC,KAAKV,EAAA;AAAA,MACL,QAAQA,EAAA;AAAA,MACR,OAAOW,EAAAV,CAAA;AAAA,MACP,SAASU,EAAAT,CAAA;AAAA,MACT,iBAAeS,EAAAR,CAAA;AAAA,MACf,eAAaQ,EAAAP,CAAA;AAAA,MACb,eAAaO,EAAAN,CAAA;AAAA,MACb,aAAWL,EAAA;AAAA,IAAA;;;"}
|
|
@@ -2,8 +2,8 @@ var h = Object.defineProperty;
|
|
|
2
2
|
var l = (t, o) => h(t, "name", { value: o, configurable: !0 });
|
|
3
3
|
import { defineComponent as g, ref as v, onMounted as b, nextTick as C, openBlock as k, createBlock as y, withCtx as B, createVNode as T, unref as n } from "vue";
|
|
4
4
|
import { _ } from "./FModal.vue_vue_type_script_setup_true_lang-DI6cyWhd.js";
|
|
5
|
-
import { _ as M } from "./AgentProvider.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as w } from "./index-
|
|
5
|
+
import { _ as M } from "./AgentProvider.vue_vue_type_script_setup_true_lang-DKRtWknA.js";
|
|
6
|
+
import { u as w } from "./index-CN6PhEbU.js";
|
|
7
7
|
const $ = /* @__PURE__ */ g({
|
|
8
8
|
__name: "AgentWidgetModal",
|
|
9
9
|
props: {
|
|
@@ -62,4 +62,4 @@ const $ = /* @__PURE__ */ g({
|
|
|
62
62
|
export {
|
|
63
63
|
$ as default
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=AgentWidgetModal-
|
|
65
|
+
//# sourceMappingURL=AgentWidgetModal-Bx9XzVTw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentWidgetModal-
|
|
1
|
+
{"version":3,"file":"AgentWidgetModal-Bx9XzVTw.js","sources":["../widget/ui/AgentWidgetModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport { nextTick, onMounted, ref } from 'vue'\nimport FModal from '@/ui/common/FModal.vue'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n onClose?: () => void\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\nconst isVisible = ref(false)\n\n// Trigger transition after mount\nonMounted(async () => {\n await nextTick()\n // Small delay to ensure DOM is ready and transition fires\n setTimeout(() => {\n isVisible.value = true\n }, 10)\n})\n\nfunction close() {\n isVisible.value = false\n // Wait for transition to complete before calling onClose\n setTimeout(() => {\n if (props.onClose) {\n props.onClose()\n }\n }, 300) // Match FModal transition duration\n}\n\nfunction open() {\n isVisible.value = true\n}\n\ndefineExpose({ update, close, open })\n</script>\n\n<template>\n <FModal\n :vis=\"isVisible\"\n :disable-teleport=\"true\"\n modal-class=\"max-w-4xl h-[80vh] md:h-[600px]\"\n :has-close=\"false\"\n @update:vis=\"isVisible = $event\"\n @close=\"close\"\n >\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n :has-close=\"true\"\n @close=\"close\"\n />\n </FModal>\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","isVisible","ref","onMounted","nextTick","close","__name","open","__expose","_createBlock","FModal","_cache","$event","_createVNode","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAYR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK,GAC1HS,IAAYC,EAAI,EAAK;AAG3B,IAAAC,EAAU,YAAY;AACpB,YAAMC,EAAA,GAEN,WAAW,MAAM;AACf,QAAAH,EAAU,QAAQ;AAAA,MACpB,GAAG,EAAE;AAAA,IACP,CAAC;AAED,aAASI,IAAQ;AACf,MAAAJ,EAAU,QAAQ,IAElB,WAAW,MAAM;AACf,QAAIT,EAAM,WACRA,EAAM,QAAA;AAAA,MAEV,GAAG,GAAG;AAAA,IACR;AARS,IAAAc,EAAAD,GAAA;AAUT,aAASE,IAAO;AACd,MAAAN,EAAU,QAAQ;AAAA,IACpB;AAFS,WAAAK,EAAAC,GAAA,SAITC,EAAa,EAAE,QAAAT,GAAQ,OAAAM,GAAO,MAAAE,EAAA,CAAM,mBAIlCE,EAoBSC,GAAA;AAAA,MAnBN,KAAKT,EAAA;AAAA,MACL,oBAAkB;AAAA,MACnB,eAAY;AAAA,MACX,aAAW;AAAA,MACX,gBAAUU,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEX,EAAA,QAAYW;AAAA,MACxB,SAAOP;AAAA,IAAA;iBAER,MAWE;AAAA,QAXFQ,EAWEC,GAAA;AAAA,UAVC,KAAKrB,EAAA;AAAA,UACL,QAAQA,EAAA;AAAA,UACR,OAAOsB,EAAArB,CAAA;AAAA,UACP,SAASqB,EAAApB,CAAA;AAAA,UACT,iBAAeoB,EAAAnB,CAAA;AAAA,UACf,eAAamB,EAAAlB,CAAA;AAAA,UACb,eAAakB,EAAAjB,CAAA;AAAA,UACb,aAAWL,EAAA;AAAA,UACX,aAAW;AAAA,UACX,SAAOY;AAAA,QAAA;;;;;;"}
|
|
@@ -216,6 +216,12 @@ Current User:
|
|
|
216
216
|
...e.attachments?.length ? { attachments: e.attachments } : {}
|
|
217
217
|
})).filter((e) => e.content.length > 0 || e.attachments && e.attachments.length > 0);
|
|
218
218
|
}
|
|
219
|
+
/** Seed the controller with previously-loaded messages (e.g. from a server thread). */
|
|
220
|
+
loadMessages(e) {
|
|
221
|
+
this.conversationId = e.conversationId;
|
|
222
|
+
const n = this.sharedMessages.value;
|
|
223
|
+
this.sharedMessages.value = [...e.messages, ...n];
|
|
224
|
+
}
|
|
219
225
|
async destroy() {
|
|
220
226
|
await this.endConversation();
|
|
221
227
|
}
|
|
@@ -240,7 +246,7 @@ function Ai(l) {
|
|
|
240
246
|
return t.replace(/{name}/g, e.name || "Digital Agent").replace(/{title}/g, e.title || "").replace(/{handle}/g, e.handle || "").replace(/{orgName}/g, e.org?.name || "");
|
|
241
247
|
}
|
|
242
248
|
h(Ai, "parseButtonTemplate");
|
|
243
|
-
const Ds = { class: "relative flex-shrink-0" }, Cs = ["src", "alt"],
|
|
249
|
+
const Ds = { class: "relative flex-shrink-0" }, Cs = ["src", "alt"], Ms = { class: "absolute top-1 right-1" }, Is = {
|
|
244
250
|
key: 1,
|
|
245
251
|
class: "size-3 bg-theme-400 rounded-full ring-2 ring-white"
|
|
246
252
|
}, Ls = { class: "min-w-0" }, Os = /* @__PURE__ */ xt({
|
|
@@ -269,14 +275,14 @@ const Ds = { class: "relative flex-shrink-0" }, Cs = ["src", "alt"], Is = { clas
|
|
|
269
275
|
(...n) => jt(Cn) && jt(Cn)(...n))
|
|
270
276
|
}, null, 40, Cs)
|
|
271
277
|
], 2),
|
|
272
|
-
w("div",
|
|
278
|
+
w("div", Ms, [
|
|
273
279
|
l.isOnline ? (A(), E(Le, { key: 0 }, [
|
|
274
280
|
e[1] || (e[1] = w("div", {
|
|
275
281
|
class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
276
282
|
style: { "animation-duration": "3s" }
|
|
277
283
|
}, null, -1)),
|
|
278
284
|
e[2] || (e[2] = w("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
|
|
279
|
-
], 64)) : (A(), E("div",
|
|
285
|
+
], 64)) : (A(), E("div", Is))
|
|
280
286
|
])
|
|
281
287
|
]),
|
|
282
288
|
w("div", Ls, [
|
|
@@ -298,7 +304,7 @@ const Ds = { class: "relative flex-shrink-0" }, Cs = ["src", "alt"], Is = { clas
|
|
|
298
304
|
});
|
|
299
305
|
const {
|
|
300
306
|
entries: Yn,
|
|
301
|
-
setPrototypeOf:
|
|
307
|
+
setPrototypeOf: Mn,
|
|
302
308
|
isFrozen: zs,
|
|
303
309
|
getPrototypeOf: Ns,
|
|
304
310
|
getOwnPropertyDescriptor: Ps
|
|
@@ -327,7 +333,7 @@ Yt || (Yt = /* @__PURE__ */ h(function(t) {
|
|
|
327
333
|
n[s - 1] = arguments[s];
|
|
328
334
|
return new t(...n);
|
|
329
335
|
}, "construct"));
|
|
330
|
-
const ct = X(Array.prototype.forEach), $s = X(Array.prototype.lastIndexOf),
|
|
336
|
+
const ct = X(Array.prototype.forEach), $s = X(Array.prototype.lastIndexOf), In = X(Array.prototype.pop), Ge = X(Array.prototype.push), Us = X(Array.prototype.splice), ft = X(String.prototype.toLowerCase), $t = X(String.prototype.toString), Ut = X(String.prototype.match), We = X(String.prototype.replace), Bs = X(String.prototype.indexOf), Fs = X(String.prototype.trim), K = X(Object.prototype.hasOwnProperty), j = X(RegExp.prototype.test), je = Hs(TypeError);
|
|
331
337
|
function X(l) {
|
|
332
338
|
return function(t) {
|
|
333
339
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -347,7 +353,7 @@ function Hs(l) {
|
|
|
347
353
|
h(Hs, "unconstruct");
|
|
348
354
|
function S(l, t) {
|
|
349
355
|
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ft;
|
|
350
|
-
|
|
356
|
+
Mn && Mn(l, null);
|
|
351
357
|
let n = t.length;
|
|
352
358
|
for (; n--; ) {
|
|
353
359
|
let s = t[n];
|
|
@@ -487,7 +493,7 @@ function Vn() {
|
|
|
487
493
|
t.isSupported = typeof Yn == "function" && typeof ee == "function" && te && te.createHTMLDocument !== void 0;
|
|
488
494
|
const {
|
|
489
495
|
MUSTACHE_EXPR: $e,
|
|
490
|
-
ERB_EXPR:
|
|
496
|
+
ERB_EXPR: I,
|
|
491
497
|
TMPLIT_EXPR: Ue,
|
|
492
498
|
DATA_ATTR: Tt,
|
|
493
499
|
ARIA_ATTR: vt,
|
|
@@ -543,20 +549,20 @@ function Vn() {
|
|
|
543
549
|
const pn = S({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
544
550
|
let Dt = null;
|
|
545
551
|
const fn = S({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), it = "http://www.w3.org/1998/Math/MathML", at = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml";
|
|
546
|
-
let Ce = fe, Ct = !1,
|
|
552
|
+
let Ce = fe, Ct = !1, Mt = null;
|
|
547
553
|
const us = S({}, [it, at, fe], $t);
|
|
548
554
|
let lt = S({}, ["mi", "mo", "mn", "ms", "mtext"]), ot = S({}, ["annotation-xml"]);
|
|
549
555
|
const hs = S({}, ["title", "style", "font", "a", "script"]);
|
|
550
556
|
let He = null;
|
|
551
557
|
const ps = ["application/xhtml+xml", "text/html"], fs = "text/html";
|
|
552
|
-
let U = null,
|
|
558
|
+
let U = null, Me = null;
|
|
553
559
|
const ds = e.createElement("form"), dn = /* @__PURE__ */ h(function(i) {
|
|
554
560
|
return i instanceof RegExp || i instanceof Function;
|
|
555
|
-
}, "isRegexOrFunction"),
|
|
561
|
+
}, "isRegexOrFunction"), It = /* @__PURE__ */ h(function() {
|
|
556
562
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
557
|
-
if (!(
|
|
563
|
+
if (!(Me && Me === i)) {
|
|
558
564
|
if ((!i || typeof i != "object") && (i = {}), i = le(i), He = // eslint-disable-next-line unicorn/prefer-includes
|
|
559
|
-
ps.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? fs : i.PARSER_MEDIA_TYPE, U = He === "application/xhtml+xml" ? $t : ft, x = K(i, "ALLOWED_TAGS") ? S({}, i.ALLOWED_TAGS, U) : L, C = K(i, "ALLOWED_ATTR") ? S({}, i.ALLOWED_ATTR, U) : he,
|
|
565
|
+
ps.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? fs : i.PARSER_MEDIA_TYPE, U = He === "application/xhtml+xml" ? $t : ft, x = K(i, "ALLOWED_TAGS") ? S({}, i.ALLOWED_TAGS, U) : L, C = K(i, "ALLOWED_ATTR") ? S({}, i.ALLOWED_ATTR, U) : he, Mt = K(i, "ALLOWED_NAMESPACES") ? S({}, i.ALLOWED_NAMESPACES, $t) : us, Dt = K(i, "ADD_URI_SAFE_ATTR") ? S(le(fn), i.ADD_URI_SAFE_ATTR, U) : fn, hn = K(i, "ADD_DATA_URI_TAGS") ? S(le(pn), i.ADD_DATA_URI_TAGS, U) : pn, ie = K(i, "FORBID_CONTENTS") ? S({}, i.FORBID_CONTENTS, U) : Rt, pe = K(i, "FORBID_TAGS") ? S({}, i.FORBID_TAGS, U) : le({}), tt = K(i, "FORBID_ATTR") ? S({}, i.FORBID_ATTR, U) : le({}), De = K(i, "USE_PROFILES") ? i.USE_PROFILES : !1, an = i.ALLOW_ARIA_ATTR !== !1, St = i.ALLOW_DATA_ATTR !== !1, ln = i.ALLOW_UNKNOWN_PROTOCOLS || !1, on = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = i.SAFE_FOR_TEMPLATES || !1, nt = i.SAFE_FOR_XML !== !1, ye = i.WHOLE_DOCUMENT || !1, Re = i.RETURN_DOM || !1, st = i.RETURN_DOM_FRAGMENT || !1, rt = i.RETURN_TRUSTED_TYPE || !1, Et = i.FORCE_BODY || !1, cn = i.SANITIZE_DOM !== !1, un = i.SANITIZE_NAMED_PROPS || !1, _t = i.KEEP_CONTENT !== !1, Fe = i.IN_PLACE || !1, T = i.ALLOWED_URI_REGEXP || Zn, Ce = i.NAMESPACE || fe, lt = i.MATHML_TEXT_INTEGRATION_POINTS || lt, ot = i.HTML_INTEGRATION_POINTS || ot, z = i.CUSTOM_ELEMENT_HANDLING || {}, i.CUSTOM_ELEMENT_HANDLING && dn(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = i.CUSTOM_ELEMENT_HANDLING.tagNameCheck), i.CUSTOM_ELEMENT_HANDLING && dn(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (z.attributeNameCheck = i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), i.CUSTOM_ELEMENT_HANDLING && typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), _e && (St = !1), st && (Re = !0), De && (x = S({}, On), C = pt(null), De.html === !0 && (S(x, Ln), S(C, zn)), De.svg === !0 && (S(x, Bt), S(C, Gt), S(C, ut)), De.svgFilters === !0 && (S(x, Ft), S(C, Gt), S(C, ut)), De.mathMl === !0 && (S(x, Ht), S(C, Nn), S(C, ut))), K(i, "ADD_TAGS") || (ke.tagCheck = null), K(i, "ADD_ATTR") || (ke.attributeCheck = null), i.ADD_TAGS && (typeof i.ADD_TAGS == "function" ? ke.tagCheck = i.ADD_TAGS : (x === L && (x = le(x)), S(x, i.ADD_TAGS, U))), i.ADD_ATTR && (typeof i.ADD_ATTR == "function" ? ke.attributeCheck = i.ADD_ATTR : (C === he && (C = le(C)), S(C, i.ADD_ATTR, U))), i.ADD_URI_SAFE_ATTR && S(Dt, i.ADD_URI_SAFE_ATTR, U), i.FORBID_CONTENTS && (ie === Rt && (ie = le(ie)), S(ie, i.FORBID_CONTENTS, U)), i.ADD_FORBID_CONTENTS && (ie === Rt && (ie = le(ie)), S(ie, i.ADD_FORBID_CONTENTS, U)), _t && (x["#text"] = !0), ye && S(x, ["html", "head", "body"]), x.table && (S(x, ["tbody"]), delete pe.tbody), i.TRUSTED_TYPES_POLICY) {
|
|
560
566
|
if (typeof i.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
561
567
|
throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
562
568
|
if (typeof i.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -564,7 +570,7 @@ function Vn() {
|
|
|
564
570
|
$ = i.TRUSTED_TYPES_POLICY, W = $.createHTML("");
|
|
565
571
|
} else
|
|
566
572
|
$ === void 0 && ($ = tr(b, s)), $ !== null && typeof W == "string" && (W = $.createHTML(""));
|
|
567
|
-
Z && Z(i),
|
|
573
|
+
Z && Z(i), Me = i;
|
|
568
574
|
}
|
|
569
575
|
}, "_parseConfig"), gn = S({}, [...Bt, ...Ft, ...Ws]), mn = S({}, [...Ht, ...js]), gs = /* @__PURE__ */ h(function(i) {
|
|
570
576
|
let u = ee(i);
|
|
@@ -573,7 +579,7 @@ function Vn() {
|
|
|
573
579
|
tagName: "template"
|
|
574
580
|
});
|
|
575
581
|
const g = ft(i.tagName), N = ft(u.tagName);
|
|
576
|
-
return
|
|
582
|
+
return Mt[i.namespaceURI] ? i.namespaceURI === at ? u.namespaceURI === fe ? g === "svg" : u.namespaceURI === it ? g === "svg" && (N === "annotation-xml" || lt[N]) : !!gn[g] : i.namespaceURI === it ? u.namespaceURI === fe ? g === "math" : u.namespaceURI === at ? g === "math" && ot[N] : !!mn[g] : i.namespaceURI === fe ? u.namespaceURI === at && !ot[N] || u.namespaceURI === it && !lt[N] ? !1 : !mn[g] && (hs[g] || !gn[g]) : !!(He === "application/xhtml+xml" && Mt[i.namespaceURI]) : !1;
|
|
577
583
|
}, "_checkValidNamespace"), ae = /* @__PURE__ */ h(function(i) {
|
|
578
584
|
Ge(t.removed, {
|
|
579
585
|
element: i
|
|
@@ -645,7 +651,7 @@ function Vn() {
|
|
|
645
651
|
}, "_isNode");
|
|
646
652
|
function de(k, i, u) {
|
|
647
653
|
ct(k, (g) => {
|
|
648
|
-
g.call(t, i, u,
|
|
654
|
+
g.call(t, i, u, Me);
|
|
649
655
|
});
|
|
650
656
|
}
|
|
651
657
|
h(de, "_executeHooks");
|
|
@@ -674,7 +680,7 @@ function Vn() {
|
|
|
674
680
|
}
|
|
675
681
|
return ae(i), !0;
|
|
676
682
|
}
|
|
677
|
-
return i instanceof c && !gs(i) || (g === "noscript" || g === "noembed" || g === "noframes") && j(/<\/no(script|embed|frames)/i, i.innerHTML) ? (ae(i), !0) : (_e && i.nodeType === Ye.text && (u = i.textContent, ct([$e,
|
|
683
|
+
return i instanceof c && !gs(i) || (g === "noscript" || g === "noembed" || g === "noframes") && j(/<\/no(script|embed|frames)/i, i.innerHTML) ? (ae(i), !0) : (_e && i.nodeType === Ye.text && (u = i.textContent, ct([$e, I, Ue], (N) => {
|
|
678
684
|
u = We(u, N, " ");
|
|
679
685
|
}), i.textContent !== u && (Ge(t.removed, {
|
|
680
686
|
element: i.cloneNode()
|
|
@@ -730,13 +736,13 @@ function Vn() {
|
|
|
730
736
|
name: P,
|
|
731
737
|
namespaceURI: V,
|
|
732
738
|
value: ge
|
|
733
|
-
} = G,
|
|
739
|
+
} = G, Ie = U(P), Ot = ge;
|
|
734
740
|
let H = P === "value" ? Ot : Fs(Ot);
|
|
735
|
-
if (g.attrName =
|
|
741
|
+
if (g.attrName = Ie, g.attrValue = H, g.keepAttr = !0, g.forceKeepAttr = void 0, de(B.uponSanitizeAttribute, i, g), H = g.attrValue, un && (Ie === "id" || Ie === "name") && (Te(P, i), H = cs + H), nt && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, H)) {
|
|
736
742
|
Te(P, i);
|
|
737
743
|
continue;
|
|
738
744
|
}
|
|
739
|
-
if (
|
|
745
|
+
if (Ie === "attributename" && Ut(H, "href")) {
|
|
740
746
|
Te(P, i);
|
|
741
747
|
continue;
|
|
742
748
|
}
|
|
@@ -750,16 +756,16 @@ function Vn() {
|
|
|
750
756
|
Te(P, i);
|
|
751
757
|
continue;
|
|
752
758
|
}
|
|
753
|
-
_e && ct([$e,
|
|
759
|
+
_e && ct([$e, I, Ue], (An) => {
|
|
754
760
|
H = We(H, An, " ");
|
|
755
761
|
});
|
|
756
762
|
const Sn = U(i.nodeName);
|
|
757
|
-
if (!yn(Sn,
|
|
763
|
+
if (!yn(Sn, Ie, H)) {
|
|
758
764
|
Te(P, i);
|
|
759
765
|
continue;
|
|
760
766
|
}
|
|
761
767
|
if ($ && typeof b == "object" && typeof b.getAttributeType == "function" && !V)
|
|
762
|
-
switch (b.getAttributeType(Sn,
|
|
768
|
+
switch (b.getAttributeType(Sn, Ie)) {
|
|
763
769
|
case "TrustedHTML": {
|
|
764
770
|
H = $.createHTML(H);
|
|
765
771
|
break;
|
|
@@ -771,7 +777,7 @@ function Vn() {
|
|
|
771
777
|
}
|
|
772
778
|
if (H !== Ot)
|
|
773
779
|
try {
|
|
774
|
-
V ? i.setAttributeNS(V, P, H) : i.setAttribute(P, H), Lt(i) ? ae(i) :
|
|
780
|
+
V ? i.setAttributeNS(V, P, H) : i.setAttribute(P, H), Lt(i) ? ae(i) : In(t.removed);
|
|
775
781
|
} catch {
|
|
776
782
|
Te(P, i);
|
|
777
783
|
}
|
|
@@ -794,7 +800,7 @@ function Vn() {
|
|
|
794
800
|
throw je("toString is not a function");
|
|
795
801
|
if (!t.isSupported)
|
|
796
802
|
return k;
|
|
797
|
-
if (At ||
|
|
803
|
+
if (At || It(i), t.removed = [], typeof k == "string" && (Fe = !1), Fe) {
|
|
798
804
|
if (k.nodeName) {
|
|
799
805
|
const ge = U(k.nodeName);
|
|
800
806
|
if (!x[ge] || pe[ge])
|
|
@@ -825,16 +831,16 @@ function Vn() {
|
|
|
825
831
|
}
|
|
826
832
|
let V = ye ? u.outerHTML : u.innerHTML;
|
|
827
833
|
return ye && x["!doctype"] && u.ownerDocument && u.ownerDocument.doctype && u.ownerDocument.doctype.name && j(Xn, u.ownerDocument.doctype.name) && (V = "<!DOCTYPE " + u.ownerDocument.doctype.name + `>
|
|
828
|
-
` + V), _e && ct([$e,
|
|
834
|
+
` + V), _e && ct([$e, I, Ue], (ge) => {
|
|
829
835
|
V = We(V, ge, " ");
|
|
830
836
|
}), $ && rt ? $.createHTML(V) : V;
|
|
831
837
|
}, t.setConfig = function() {
|
|
832
838
|
let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
833
|
-
|
|
839
|
+
It(k), At = !0;
|
|
834
840
|
}, t.clearConfig = function() {
|
|
835
|
-
|
|
841
|
+
Me = null, At = !1;
|
|
836
842
|
}, t.isValidAttribute = function(k, i, u) {
|
|
837
|
-
|
|
843
|
+
Me || It({});
|
|
838
844
|
const g = U(k), N = U(i);
|
|
839
845
|
return yn(g, N, u);
|
|
840
846
|
}, t.addHook = function(k, i) {
|
|
@@ -844,7 +850,7 @@ function Vn() {
|
|
|
844
850
|
const u = $s(B[k], i);
|
|
845
851
|
return u === -1 ? void 0 : Us(B[k], u, 1)[0];
|
|
846
852
|
}
|
|
847
|
-
return
|
|
853
|
+
return In(B[k]);
|
|
848
854
|
}, t.removeHooks = function(k) {
|
|
849
855
|
B[k] = [];
|
|
850
856
|
}, t.removeAllHooks = function() {
|
|
@@ -878,7 +884,7 @@ var sr = (() => {
|
|
|
878
884
|
return !1;
|
|
879
885
|
}
|
|
880
886
|
})(), Y = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ h((l) => new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ h((l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}>`), "blockquoteBeginRegex") }, rr = /^(?:[ \t]*(?:\n|$))+/, ir = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ar = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Qe = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, lr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Vt = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Kn = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Jn = R(Kn).replace(/bull/g, Vt).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(), or = R(Kn).replace(/bull/g, Vt).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(), Qt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, cr = /^[^\n]+/, Kt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ur = R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Kt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), hr = R(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Vt).getRegex(), bt = "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", Jt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, pr = R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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", Jt).replace("tag", bt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), es = R(Qt).replace("hr", Qe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex(), fr = R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", es).getRegex(), en = { blockquote: fr, code: ir, def: ur, fences: ar, heading: lr, hr: Qe, html: pr, lheading: Jn, list: hr, newline: rr, paragraph: es, table: ve, text: cr }, Un = R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Qe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex(), dr = { ...en, lheading: or, table: Un, paragraph: R(Qt).replace("hr", Qe).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Un).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", bt).getRegex() }, gr = { ...en, html: R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Jt).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(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: ve, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: R(Qt).replace("hr", Qe).replace("heading", ` *#{1,6} *[^
|
|
881
|
-
]`).replace("lheading", Jn).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, mr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ts = /^( {2,}|\\)\n(?!\s*$)/, xr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, wt = /[\p{P}\p{S}]/u, tn = /[\s\p{P}\p{S}]/u, ns = /[^\s\p{P}\p{S}]/u, br = R(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, tn).getRegex(), ss = /(?!~)[\p{P}\p{S}]/u, wr = /(?!~)[\s\p{P}\p{S}]/u, yr = /(?:[^\s\p{P}\p{S}]|~)/u, rs = /(?![*_])[\p{P}\p{S}]/u, Tr = /(?![*_])[\s\p{P}\p{S}]/u, vr = /(?:[^\s\p{P}\p{S}]|[*_])/u, Sr = R(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", sr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), is = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ar = R(is, "u").replace(/punct/g, wt).getRegex(), Er = R(is, "u").replace(/punct/g, ss).getRegex(), as = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", _r = R(as, "gu").replace(/notPunctSpace/g, ns).replace(/punctSpace/g, tn).replace(/punct/g, wt).getRegex(), Rr = R(as, "gu").replace(/notPunctSpace/g, yr).replace(/punctSpace/g, wr).replace(/punct/g, ss).getRegex(), Dr = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ns).replace(/punctSpace/g, tn).replace(/punct/g, wt).getRegex(), Cr = R(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, rs).getRegex(),
|
|
887
|
+
]`).replace("lheading", Jn).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, mr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ts = /^( {2,}|\\)\n(?!\s*$)/, xr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, wt = /[\p{P}\p{S}]/u, tn = /[\s\p{P}\p{S}]/u, ns = /[^\s\p{P}\p{S}]/u, br = R(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, tn).getRegex(), ss = /(?!~)[\p{P}\p{S}]/u, wr = /(?!~)[\s\p{P}\p{S}]/u, yr = /(?:[^\s\p{P}\p{S}]|~)/u, rs = /(?![*_])[\p{P}\p{S}]/u, Tr = /(?![*_])[\s\p{P}\p{S}]/u, vr = /(?:[^\s\p{P}\p{S}]|[*_])/u, Sr = R(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", sr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), is = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ar = R(is, "u").replace(/punct/g, wt).getRegex(), Er = R(is, "u").replace(/punct/g, ss).getRegex(), as = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", _r = R(as, "gu").replace(/notPunctSpace/g, ns).replace(/punctSpace/g, tn).replace(/punct/g, wt).getRegex(), Rr = R(as, "gu").replace(/notPunctSpace/g, yr).replace(/punctSpace/g, wr).replace(/punct/g, ss).getRegex(), Dr = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ns).replace(/punctSpace/g, tn).replace(/punct/g, wt).getRegex(), Cr = R(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, rs).getRegex(), Mr = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Ir = R(Mr, "gu").replace(/notPunctSpace/g, vr).replace(/punctSpace/g, Tr).replace(/punct/g, rs).getRegex(), Lr = R(/\\(punct)/, "gu").replace(/punct/g, wt).getRegex(), Or = R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), zr = R(Jt).replace("(?:-->|$)", "-->").getRegex(), Nr = R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", zr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Pr = R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ls = R(/^!?\[(label)\]\[(ref)\]/).replace("label", gt).replace("ref", Kt).getRegex(), os = R(/^!?\[(ref)\](?:\[\])?/).replace("ref", Kt).getRegex(), $r = R("reflink|nolink(?!\\()", "g").replace("reflink", ls).replace("nolink", os).getRegex(), Bn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nn = { _backpedal: ve, anyPunctuation: Lr, autolink: Or, blockSkip: Sr, br: ts, code: kr, del: ve, delLDelim: ve, delRDelim: ve, emStrongLDelim: Ar, emStrongRDelimAst: _r, emStrongRDelimUnd: Dr, escape: mr, link: Pr, nolink: os, punctuation: br, reflink: ls, reflinkSearch: $r, tag: Nr, text: xr, url: ve }, Ur = { ...nn, link: R(/^!?\[(label)\]\((.*?)\)/).replace("label", gt).getRegex(), reflink: R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gt).getRegex() }, Zt = { ...nn, emStrongRDelimAst: Rr, emStrongLDelim: Er, delLDelim: Cr, delRDelim: Ir, url: R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Bn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Bn).getRegex() }, Br = { ...Zt, br: R(ts).replace("{2,}", "*").getRegex(), text: R(Zt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, ht = { normal: en, gfm: dr, pedantic: gr }, Ze = { normal: nn, gfm: Zt, breaks: Br, pedantic: Ur }, Fr = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Fn = /* @__PURE__ */ h((l) => Fr[l], "de");
|
|
882
888
|
function oe(l, t) {
|
|
883
889
|
if (t) {
|
|
884
890
|
if (Y.escapeTest.test(l)) return l.replace(Y.escapeReplace, Fn);
|
|
@@ -1954,36 +1960,36 @@ Please report this to https://github.com/markedjs/marked.`, t) {
|
|
|
1954
1960
|
};
|
|
1955
1961
|
}
|
|
1956
1962
|
}, h(Pe, "B"), Pe), Se = new jr();
|
|
1957
|
-
function
|
|
1963
|
+
function M(l, t) {
|
|
1958
1964
|
return Se.parse(l, t);
|
|
1959
1965
|
}
|
|
1960
|
-
h(
|
|
1961
|
-
|
|
1962
|
-
return Se.setOptions(l),
|
|
1966
|
+
h(M, "g");
|
|
1967
|
+
M.options = M.setOptions = function(l) {
|
|
1968
|
+
return Se.setOptions(l), M.defaults = Se.defaults, Qn(M.defaults), M;
|
|
1963
1969
|
};
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
return Se.use(...l),
|
|
1970
|
+
M.getDefaults = Xt;
|
|
1971
|
+
M.defaults = Ae;
|
|
1972
|
+
M.use = function(...l) {
|
|
1973
|
+
return Se.use(...l), M.defaults = Se.defaults, Qn(M.defaults), M;
|
|
1968
1974
|
};
|
|
1969
|
-
|
|
1975
|
+
M.walkTokens = function(l, t) {
|
|
1970
1976
|
return Se.walkTokens(l, t);
|
|
1971
1977
|
};
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1978
|
+
M.parseInline = Se.parseInline;
|
|
1979
|
+
M.Parser = re;
|
|
1980
|
+
M.parser = re.parse;
|
|
1981
|
+
M.Renderer = kt;
|
|
1982
|
+
M.TextRenderer = sn;
|
|
1983
|
+
M.Lexer = se;
|
|
1984
|
+
M.lexer = se.lex;
|
|
1985
|
+
M.Tokenizer = mt;
|
|
1986
|
+
M.Hooks = Ve;
|
|
1987
|
+
M.parse = M;
|
|
1988
|
+
M.options;
|
|
1989
|
+
M.setOptions;
|
|
1990
|
+
M.use;
|
|
1991
|
+
M.walkTokens;
|
|
1992
|
+
M.parseInline;
|
|
1987
1993
|
re.parse;
|
|
1988
1994
|
se.lex;
|
|
1989
1995
|
const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
@@ -2024,12 +2030,12 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2024
2030
|
emptyStateMessage: {}
|
|
2025
2031
|
},
|
|
2026
2032
|
setup(l) {
|
|
2027
|
-
const t = new
|
|
2028
|
-
t.link = ({ href: y, text: T }) => `<a href="${y}" target="_blank" rel="noopener noreferrer">${T}</a>`,
|
|
2033
|
+
const t = new M.Renderer();
|
|
2034
|
+
t.link = ({ href: y, text: T }) => `<a href="${y}" target="_blank" rel="noopener noreferrer">${T}</a>`, M.setOptions({ breaks: !0, gfm: !0, renderer: t });
|
|
2029
2035
|
function e(y) {
|
|
2030
2036
|
if (!y)
|
|
2031
2037
|
return "";
|
|
2032
|
-
const T =
|
|
2038
|
+
const T = M.parse(y, { async: !1 });
|
|
2033
2039
|
return nr.sanitize(T, { ADD_ATTR: ["target"] });
|
|
2034
2040
|
}
|
|
2035
2041
|
h(e, "renderMarkdown");
|
|
@@ -2086,7 +2092,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2086
2092
|
f.value && (f.value.style.height = "auto", f.value.style.height = `${Math.min(f.value.scrollHeight, 150)}px`);
|
|
2087
2093
|
}
|
|
2088
2094
|
h($e, "adjustTextareaHeight"), Wt(c, () => zt(() => $e()));
|
|
2089
|
-
const
|
|
2095
|
+
const I = Q(() => l.variant === "light");
|
|
2090
2096
|
function Ue() {
|
|
2091
2097
|
d.value?.click();
|
|
2092
2098
|
}
|
|
@@ -2138,7 +2144,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2138
2144
|
return h(Be, "formatTimeDivider"), Wt(W, (y) => {
|
|
2139
2145
|
y.length > 0 && zt(() => B());
|
|
2140
2146
|
}, { immediate: !0, deep: !0 }), (y, T) => (A(), E("div", qr, [
|
|
2141
|
-
|
|
2147
|
+
I.value ? q("", !0) : (A(), E("div", Yr, [
|
|
2142
2148
|
Nt(Os, {
|
|
2143
2149
|
agent: l.agent,
|
|
2144
2150
|
"is-online": F.value
|
|
@@ -2146,20 +2152,20 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2146
2152
|
])),
|
|
2147
2153
|
me.value ? (A(), E("div", {
|
|
2148
2154
|
key: 1,
|
|
2149
|
-
class: v(["py-16 flex flex-col items-center justify-center gap-3 text-sm",
|
|
2155
|
+
class: v(["py-16 flex flex-col items-center justify-center gap-3 text-sm", I.value ? "text-theme-400" : "text-white/60"])
|
|
2150
2156
|
}, [
|
|
2151
2157
|
w("i", {
|
|
2152
|
-
class: v(["i-heroicons-cloud-arrow-down size-8",
|
|
2158
|
+
class: v(["i-heroicons-cloud-arrow-down size-8", I.value ? "text-theme-300" : "text-white/40"])
|
|
2153
2159
|
}, null, 2),
|
|
2154
2160
|
w("span", null, ce($.value), 1)
|
|
2155
2161
|
], 2)) : ee.value ? (A(), E("div", {
|
|
2156
2162
|
key: 2,
|
|
2157
|
-
class: v(["py-16 flex flex-col items-center justify-center gap-2 text-sm",
|
|
2163
|
+
class: v(["py-16 flex flex-col items-center justify-center gap-2 text-sm", I.value ? "text-theme-400" : "text-theme-600"])
|
|
2158
2164
|
}, [
|
|
2159
2165
|
Nt(_n, { class: "size-4" })
|
|
2160
2166
|
], 2)) : r.value ? (A(), E("div", {
|
|
2161
2167
|
key: 3,
|
|
2162
|
-
class: v(["flex items-center justify-center gap-1.5 py-2 text-[11px]",
|
|
2168
|
+
class: v(["flex items-center justify-center gap-1.5 py-2 text-[11px]", I.value ? "text-theme-300" : "text-white/30"])
|
|
2163
2169
|
}, [
|
|
2164
2170
|
T[2] || (T[2] = w("i", { class: "i-tabler-tool size-3" }, null, -1)),
|
|
2165
2171
|
w("span", null, ce(r.value), 1)
|
|
@@ -2187,19 +2193,19 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2187
2193
|
w("span", {
|
|
2188
2194
|
class: v(["relative inline-flex rounded-full bg-emerald-500 ring-2", [
|
|
2189
2195
|
o.value ? "size-3" : "size-2.5",
|
|
2190
|
-
|
|
2196
|
+
I.value ? "ring-white" : "ring-theme-900"
|
|
2191
2197
|
]])
|
|
2192
2198
|
}, null, 2)
|
|
2193
2199
|
], 2)) : q("", !0)
|
|
2194
2200
|
]),
|
|
2195
2201
|
w("div", {
|
|
2196
|
-
class: v(["font-semibold", [
|
|
2202
|
+
class: v(["font-semibold", [I.value ? "text-theme-900" : "text-white", o.value ? "text-lg" : "text-base"]])
|
|
2197
2203
|
}, ce(l.agent.displayName.value), 3),
|
|
2198
2204
|
w("p", {
|
|
2199
|
-
class: v(["mt-1 text-center", [
|
|
2205
|
+
class: v(["mt-1 text-center", [I.value ? "text-theme-300" : "text-white/30", o.value ? "text-sm" : "text-xs"]])
|
|
2200
2206
|
}, ce(l.emptyStateMessage || "Send a message to get started"), 3),
|
|
2201
2207
|
w("div", {
|
|
2202
|
-
class: v(["inline-flex items-center gap-1.5 mt-6 px-2.5 py-1 rounded-full text-[11px]",
|
|
2208
|
+
class: v(["inline-flex items-center gap-1.5 mt-6 px-2.5 py-1 rounded-full text-[11px]", I.value ? "bg-theme-50 border border-theme-100 text-theme-400" : "bg-white/10 border border-white/20 text-white/40"]),
|
|
2203
2209
|
title: a.value.tooltip
|
|
2204
2210
|
}, [
|
|
2205
2211
|
w("i", {
|
|
@@ -2213,13 +2219,13 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2213
2219
|
}, [
|
|
2214
2220
|
et(W.value, L) ? (A(), E("div", Kr, [
|
|
2215
2221
|
w("div", {
|
|
2216
|
-
class: v(["flex-1 h-px",
|
|
2222
|
+
class: v(["flex-1 h-px", I.value ? "bg-theme-200" : "bg-white/10"])
|
|
2217
2223
|
}, null, 2),
|
|
2218
2224
|
w("span", {
|
|
2219
|
-
class: v(["font-medium shrink-0", [
|
|
2225
|
+
class: v(["font-medium shrink-0", [I.value ? "text-theme-400" : "text-white/40", o.value ? "text-xs" : "text-[11px]"]])
|
|
2220
2226
|
}, ce(et(W.value, L)), 3),
|
|
2221
2227
|
w("div", {
|
|
2222
|
-
class: v(["flex-1 h-px",
|
|
2228
|
+
class: v(["flex-1 h-px", I.value ? "bg-theme-200" : "bg-white/10"])
|
|
2223
2229
|
}, null, 2)
|
|
2224
2230
|
])) : q("", !0),
|
|
2225
2231
|
w("div", {
|
|
@@ -2263,7 +2269,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2263
2269
|
href: C.url,
|
|
2264
2270
|
target: "_blank",
|
|
2265
2271
|
rel: "noopener",
|
|
2266
|
-
class: v(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs",
|
|
2272
|
+
class: v(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", I.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
|
|
2267
2273
|
}, [
|
|
2268
2274
|
T[3] || (T[3] = w("i", { class: "i-tabler-file size-3.5" }, null, -1)),
|
|
2269
2275
|
xs(" " + ce(C.name), 1)
|
|
@@ -2272,7 +2278,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2272
2278
|
], 2)) : q("", !0),
|
|
2273
2279
|
x.text ? (A(), E("div", {
|
|
2274
2280
|
key: 1,
|
|
2275
|
-
class: v(["rounded-2xl px-3.5 py-2", x.sender === "user" ? "bg-primary-500 text-white" :
|
|
2281
|
+
class: v(["rounded-2xl px-3.5 py-2", x.sender === "user" ? "bg-primary-500 text-white" : I.value ? "bg-theme-100 text-theme-800" : "bg-white/15 backdrop-blur-sm text-white/95"])
|
|
2276
2282
|
}, [
|
|
2277
2283
|
w("div", {
|
|
2278
2284
|
class: v(["chat-msg-prose break-words", o.value ? "text-[15px] leading-[1.6]" : "text-[13px] leading-[1.55]"]),
|
|
@@ -2291,10 +2297,10 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2291
2297
|
}, null, 10, ai)
|
|
2292
2298
|
]),
|
|
2293
2299
|
w("div", {
|
|
2294
|
-
class: v(["rounded-2xl px-4 py-2.5 flex items-center",
|
|
2300
|
+
class: v(["rounded-2xl px-4 py-2.5 flex items-center", I.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
|
|
2295
2301
|
}, [
|
|
2296
2302
|
w("i", {
|
|
2297
|
-
class: v(["i-svg-spinners-3-dots-fade size-6",
|
|
2303
|
+
class: v(["i-svg-spinners-3-dots-fade size-6", I.value ? "text-theme-400" : "text-white/70"])
|
|
2298
2304
|
}, null, 2)
|
|
2299
2305
|
], 2)
|
|
2300
2306
|
])) : q("", !0)
|
|
@@ -2309,10 +2315,10 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2309
2315
|
key: 0,
|
|
2310
2316
|
src: x.url,
|
|
2311
2317
|
alt: x.name,
|
|
2312
|
-
class: v(["size-14 rounded-lg object-cover border",
|
|
2318
|
+
class: v(["size-14 rounded-lg object-cover border", I.value ? "border-theme-200" : "border-white/20"])
|
|
2313
2319
|
}, null, 10, ci)) : (A(), E("div", {
|
|
2314
2320
|
key: 1,
|
|
2315
|
-
class: v(["h-14 px-3 rounded-lg flex items-center gap-1.5 text-xs border",
|
|
2321
|
+
class: v(["h-14 px-3 rounded-lg flex items-center gap-1.5 text-xs border", I.value ? "border-theme-200 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
|
|
2316
2322
|
}, [
|
|
2317
2323
|
T[4] || (T[4] = w("i", { class: "i-tabler-file size-4" }, null, -1)),
|
|
2318
2324
|
w("span", ui, ce(x.name), 1)
|
|
@@ -2338,13 +2344,13 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2338
2344
|
onChange: Tt
|
|
2339
2345
|
}, null, 544)) : q("", !0),
|
|
2340
2346
|
w("div", {
|
|
2341
|
-
class: v(["flex items-end gap-1 w-full rounded-3xl px-3 py-1.5",
|
|
2347
|
+
class: v(["flex items-end gap-1 w-full rounded-3xl px-3 py-1.5", I.value ? "bg-theme-50 border border-theme-200 focus-within:border-theme-300" : "bg-white/10 backdrop-blur-sm border border-white/20 focus-within:border-white/40"])
|
|
2342
2348
|
}, [
|
|
2343
2349
|
l.uploadFn ? (A(), E("button", {
|
|
2344
2350
|
key: 0,
|
|
2345
2351
|
class: v(["shrink-0 flex items-center justify-center rounded-full transition-colors mb-0.5 cursor-pointer", [
|
|
2346
2352
|
o.value ? "size-10" : "size-9",
|
|
2347
|
-
|
|
2353
|
+
I.value ? "text-theme-400 hover:text-theme-600" : "text-white/50 hover:text-white/80",
|
|
2348
2354
|
b.value ? "opacity-50 pointer-events-none" : ""
|
|
2349
2355
|
]]),
|
|
2350
2356
|
disabled: te.value || b.value,
|
|
@@ -2361,7 +2367,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2361
2367
|
placeholder: ue.value,
|
|
2362
2368
|
disabled: te.value,
|
|
2363
2369
|
style: ws({ fontSize: (o.value, "16px"), resize: "none" }),
|
|
2364
|
-
class: v(["flex-1 min-w-0 bg-transparent px-2 py-1.5 focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
|
|
2370
|
+
class: v(["flex-1 min-w-0 bg-transparent px-2 py-1.5 focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", I.value ? "text-theme-800 placeholder-theme-400" : "text-white placeholder-white/50"]),
|
|
2365
2371
|
onKeydown: yt
|
|
2366
2372
|
}, null, 46, mi), [
|
|
2367
2373
|
[ys, c.value]
|
|
@@ -2369,7 +2375,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2369
2375
|
w("button", {
|
|
2370
2376
|
class: v(["shrink-0 flex items-center justify-center rounded-full transition-colors mb-0.5", [
|
|
2371
2377
|
o.value ? "size-10" : "size-9",
|
|
2372
|
-
Ke.value ? "bg-primary-500 text-white hover:bg-primary-600 cursor-pointer" :
|
|
2378
|
+
Ke.value ? "bg-primary-500 text-white hover:bg-primary-600 cursor-pointer" : I.value ? "bg-theme-100 text-theme-300" : "bg-white/10 text-white/30"
|
|
2373
2379
|
]]),
|
|
2374
2380
|
disabled: !Ke.value,
|
|
2375
2381
|
onClick: T[1] || (T[1] = (x) => Je())
|
|
@@ -2378,7 +2384,7 @@ const qr = { class: "flex flex-col h-full relative" }, Yr = {
|
|
|
2378
2384
|
])], 10, ki)
|
|
2379
2385
|
], 2),
|
|
2380
2386
|
w("div", {
|
|
2381
|
-
class: v(["text-[10px] text-center mt-2",
|
|
2387
|
+
class: v(["text-[10px] text-center mt-2", I.value ? "text-theme-300" : "text-white/40"])
|
|
2382
2388
|
}, " Press Enter to send, Shift+Enter for new line ", 2)
|
|
2383
2389
|
])
|
|
2384
2390
|
]));
|
|
@@ -2506,4 +2512,4 @@ export {
|
|
|
2506
2512
|
Cn as h,
|
|
2507
2513
|
Ai as p
|
|
2508
2514
|
};
|
|
2509
|
-
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-
|
|
2515
|
+
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-CZiiYRYE.js.map
|