@quidgest/chatbot 0.5.4 → 0.5.6
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/index.js +5 -5
- package/dist/index.mjs +156 -149
- package/dist/utils/string.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/ChatBot/__tests__/__snapshots__/ChatBot.spec.ts.snap +1 -1
- package/src/components/ChatBotInput/ChatBotInput.vue +1 -0
- package/src/components/ChatBotInput/__tests__/__snapshots__/ChatBotInput.spec.ts.snap +1 -1
- package/src/components/FieldPreview/FieldPreview.vue +5 -1
- package/src/components/FieldPreview/__tests__/__snapshots__/FieldPreview.spec.ts.snap +1 -1
- package/src/utils/string.ts +6 -0
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as nt, computed as w, inject as ot, ref as N, provide as Wt, defineComponent as T, openBlock as y, createElementBlock as $, normalizeClass as Q, normalizeStyle as ye, unref as f, toRef as Ie, withModifiers as
|
|
1
|
+
import { getCurrentInstance as nt, computed as w, inject as ot, ref as N, provide as Wt, defineComponent as T, openBlock as y, createElementBlock as $, normalizeClass as Q, normalizeStyle as ye, unref as f, toRef as Ie, withModifiers as qe, createVNode as D, createCommentVNode as P, createElementVNode as R, renderSlot as q, createTextVNode as Ge, toDisplayString as ne, createBlock as H, resolveDynamicComponent as _t, h as Qe, mergeProps as se, useTemplateRef as kt, withCtx as E, normalizeProps as Se, guardReactiveProps as Ne, mergeModels as ue, useModel as De, watch as ie, createSlots as $t, withDirectives as At, vModelDynamic as Yt, useId as Xt, onMounted as Ee, onUnmounted as xt, readonly as Kt, customRef as en, getCurrentScope as tn, onScopeDispose as It, shallowRef as We, nextTick as Ae, toValue as at, reactive as Ye, onBeforeUnmount as nn, Fragment as ce, Teleport as on, Transition as st, renderList as Ce, toHandlers as an, vModelText as rn, resolveComponent as ln, withKeys as sn, onBeforeMount as cn } from "vue";
|
|
2
2
|
import St from "axios";
|
|
3
3
|
import un from "markdown-it";
|
|
4
4
|
function Xe(e) {
|
|
@@ -270,13 +270,13 @@ const Dn = ["id", "disabled"], En = {
|
|
|
270
270
|
class: Q(u.value),
|
|
271
271
|
disabled: r.value,
|
|
272
272
|
style: ye(c.value),
|
|
273
|
-
onClick:
|
|
273
|
+
onClick: qe(a, ["stop", "prevent"])
|
|
274
274
|
}, [
|
|
275
275
|
t.loading ? (y(), $("div", En, [
|
|
276
276
|
D(f(hn))
|
|
277
277
|
])) : P("v-if", !0),
|
|
278
278
|
R("span", Cn, [
|
|
279
|
-
|
|
279
|
+
q(p.$slots, "default"),
|
|
280
280
|
Ge(
|
|
281
281
|
" " + ne(t.label),
|
|
282
282
|
1
|
|
@@ -321,7 +321,7 @@ const Dn = ["id", "disabled"], En = {
|
|
|
321
321
|
style: ye(r.value)
|
|
322
322
|
}, null, 8, ["id", "class", "icon", "style"]));
|
|
323
323
|
}
|
|
324
|
-
}),
|
|
324
|
+
}), Ln = ["id"], qn = /* @__PURE__ */ T({
|
|
325
325
|
__name: "QIconFont",
|
|
326
326
|
props: {
|
|
327
327
|
id: {},
|
|
@@ -335,7 +335,7 @@ const Dn = ["id", "disabled"], En = {
|
|
|
335
335
|
return (r, a) => (y(), $("i", {
|
|
336
336
|
id: n.id,
|
|
337
337
|
class: Q(["q-icon", "q-icon__font", t.value, o.value, n.class])
|
|
338
|
-
}, null, 10,
|
|
338
|
+
}, null, 10, Ln));
|
|
339
339
|
}
|
|
340
340
|
}), Mn = ["id", "src"], Nn = /* @__PURE__ */ T({
|
|
341
341
|
__name: "QIconImg",
|
|
@@ -506,7 +506,7 @@ const Un = /* @__PURE__ */ T({
|
|
|
506
506
|
onUnloaded: a
|
|
507
507
|
}, null, 8, ["id", "class", "src", "symbol"]));
|
|
508
508
|
}
|
|
509
|
-
}), Y = X(Rn), Pn = X(
|
|
509
|
+
}), Y = X(Rn), Pn = X(qn), Gn = X(Nn), jn = X(Un);
|
|
510
510
|
let zn = 0;
|
|
511
511
|
function it(e) {
|
|
512
512
|
return f(e) || `uid-${++zn}`;
|
|
@@ -538,10 +538,10 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
538
538
|
]),
|
|
539
539
|
role: "group"
|
|
540
540
|
}, [
|
|
541
|
-
|
|
541
|
+
q(t.$slots, "default")
|
|
542
542
|
], 10, Vn));
|
|
543
543
|
}
|
|
544
|
-
}),
|
|
544
|
+
}), Lt = X(Hn), Zn = ["id"], Jn = ["for"], Qn = /* @__PURE__ */ T({
|
|
545
545
|
inheritAttrs: !1,
|
|
546
546
|
__name: "QLabel",
|
|
547
547
|
props: {
|
|
@@ -563,11 +563,11 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
563
563
|
id: n.id,
|
|
564
564
|
class: Q(t.value)
|
|
565
565
|
}, [
|
|
566
|
-
|
|
566
|
+
q(o.$slots, "prepend"),
|
|
567
567
|
R("label", se({
|
|
568
568
|
for: n.for
|
|
569
569
|
}, o.$attrs), [
|
|
570
|
-
|
|
570
|
+
q(o.$slots, "default", {}, () => [
|
|
571
571
|
Ge(
|
|
572
572
|
ne(n.label),
|
|
573
573
|
1
|
|
@@ -575,10 +575,10 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
575
575
|
)
|
|
576
576
|
])
|
|
577
577
|
], 16, Jn),
|
|
578
|
-
|
|
578
|
+
q(o.$slots, "append")
|
|
579
579
|
], 10, Zn));
|
|
580
580
|
}
|
|
581
|
-
}),
|
|
581
|
+
}), qt = X(Qn), Wn = ["id"], Yn = {
|
|
582
582
|
key: 0,
|
|
583
583
|
class: "q-field__prepend"
|
|
584
584
|
}, Xn = {
|
|
@@ -619,7 +619,7 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
619
619
|
id: t.id,
|
|
620
620
|
class: Q(a.value)
|
|
621
621
|
}, [
|
|
622
|
-
t.label ? (y(), H(f(
|
|
622
|
+
t.label ? (y(), H(f(qt), {
|
|
623
623
|
key: 0,
|
|
624
624
|
class: "q-field__label",
|
|
625
625
|
label: t.label,
|
|
@@ -627,15 +627,15 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
627
627
|
required: t.required
|
|
628
628
|
}, {
|
|
629
629
|
prepend: E(() => [
|
|
630
|
-
|
|
630
|
+
q(i.$slots, "label.prepend")
|
|
631
631
|
]),
|
|
632
632
|
append: E(() => [
|
|
633
|
-
|
|
633
|
+
q(i.$slots, "label.append")
|
|
634
634
|
]),
|
|
635
635
|
_: 3
|
|
636
636
|
/* FORWARDED */
|
|
637
637
|
}, 8, ["label", "for", "required"])) : P("v-if", !0),
|
|
638
|
-
|
|
638
|
+
q(i.$slots, "control", {}, () => [
|
|
639
639
|
R(
|
|
640
640
|
"div",
|
|
641
641
|
se({
|
|
@@ -644,11 +644,11 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
644
644
|
}, i.$attrs),
|
|
645
645
|
[
|
|
646
646
|
i.$slots.prepend ? (y(), $("div", Yn, [
|
|
647
|
-
|
|
647
|
+
q(i.$slots, "prepend")
|
|
648
648
|
])) : P("v-if", !0),
|
|
649
|
-
|
|
649
|
+
q(i.$slots, "default"),
|
|
650
650
|
i.$slots.append ? (y(), $("div", Xn, [
|
|
651
|
-
|
|
651
|
+
q(i.$slots, "append")
|
|
652
652
|
])) : P("v-if", !0)
|
|
653
653
|
],
|
|
654
654
|
16
|
|
@@ -656,7 +656,7 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
656
656
|
)
|
|
657
657
|
]),
|
|
658
658
|
i.$slots.extras ? (y(), $("div", Kn, [
|
|
659
|
-
|
|
659
|
+
q(i.$slots, "extras")
|
|
660
660
|
])) : P("v-if", !0)
|
|
661
661
|
], 10, Wn));
|
|
662
662
|
}
|
|
@@ -760,10 +760,10 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
760
760
|
invalid: o.invalid
|
|
761
761
|
}, $t({
|
|
762
762
|
"label.prepend": E(() => [
|
|
763
|
-
|
|
763
|
+
q(g.$slots, "label.prepend")
|
|
764
764
|
]),
|
|
765
765
|
"label.append": E(() => [
|
|
766
|
-
|
|
766
|
+
q(g.$slots, "label.append")
|
|
767
767
|
]),
|
|
768
768
|
default: E(() => [
|
|
769
769
|
At(R("input", se({
|
|
@@ -788,14 +788,14 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
788
788
|
g.$slots.prepend ? {
|
|
789
789
|
name: "prepend",
|
|
790
790
|
fn: E(() => [
|
|
791
|
-
|
|
791
|
+
q(g.$slots, "prepend")
|
|
792
792
|
]),
|
|
793
793
|
key: "0"
|
|
794
794
|
} : void 0,
|
|
795
795
|
g.$slots.append || v.value ? {
|
|
796
796
|
name: "append",
|
|
797
797
|
fn: E(() => [
|
|
798
|
-
|
|
798
|
+
q(g.$slots, "append"),
|
|
799
799
|
v.value ? (y(), H(f(ao), {
|
|
800
800
|
key: 0,
|
|
801
801
|
"data-testid": "q-text-field__clear-button",
|
|
@@ -808,7 +808,7 @@ const Vn = ["id"], Hn = /* @__PURE__ */ T({
|
|
|
808
808
|
g.$slots.extras ? {
|
|
809
809
|
name: "extras",
|
|
810
810
|
fn: E(() => [
|
|
811
|
-
|
|
811
|
+
q(g.$slots, "extras")
|
|
812
812
|
]),
|
|
813
813
|
key: "2"
|
|
814
814
|
} : void 0
|
|
@@ -885,7 +885,7 @@ const co = { ref: "layer" }, uo = /* @__PURE__ */ T({
|
|
|
885
885
|
"div",
|
|
886
886
|
co,
|
|
887
887
|
[
|
|
888
|
-
|
|
888
|
+
q(s.$slots, "default")
|
|
889
889
|
],
|
|
890
890
|
512
|
|
891
891
|
/* NEED_PATCH */
|
|
@@ -1127,10 +1127,10 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1127
1127
|
xo(n) || Ro(n));
|
|
1128
1128
|
}, et = function(e, n) {
|
|
1129
1129
|
return !(Eo(n) || fe(n) < 0 || !Ue(e, n));
|
|
1130
|
-
},
|
|
1130
|
+
}, Lo = function(e) {
|
|
1131
1131
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
1132
1132
|
return !!(isNaN(n) || n >= 0);
|
|
1133
|
-
},
|
|
1133
|
+
}, qo = function e(n) {
|
|
1134
1134
|
var t = [], o = [];
|
|
1135
1135
|
return n.forEach(function(r, a) {
|
|
1136
1136
|
var i = !!r.scopeParent, l = i ? r.scopeParent : r, u = ko(l, i), c = i ? e(r.candidates) : l;
|
|
@@ -1151,8 +1151,8 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1151
1151
|
filter: et.bind(null, n),
|
|
1152
1152
|
flatten: !1,
|
|
1153
1153
|
getShadowRoot: n.getShadowRoot,
|
|
1154
|
-
shadowRootFilter:
|
|
1155
|
-
}) : t = Ot(e, n.includeContainer, et.bind(null, n)),
|
|
1154
|
+
shadowRootFilter: Lo
|
|
1155
|
+
}) : t = Ot(e, n.includeContainer, et.bind(null, n)), qo(t);
|
|
1156
1156
|
}, No = function(e, n) {
|
|
1157
1157
|
n = n || {};
|
|
1158
1158
|
var t;
|
|
@@ -1321,8 +1321,8 @@ var mt = {
|
|
|
1321
1321
|
return d && d[m] !== void 0 ? d[m] : r[k || m];
|
|
1322
1322
|
}, u = function(d, m) {
|
|
1323
1323
|
var k = typeof (m == null ? void 0 : m.composedPath) == "function" ? m.composedPath() : void 0;
|
|
1324
|
-
return a.containerGroups.findIndex(function(
|
|
1325
|
-
var S =
|
|
1324
|
+
return a.containerGroups.findIndex(function(L) {
|
|
1325
|
+
var S = L.container, O = L.tabbableNodes;
|
|
1326
1326
|
return S.contains(d) || // fall back to explicit tabbable search which will take into consideration any
|
|
1327
1327
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
1328
1328
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
@@ -1332,7 +1332,7 @@ var mt = {
|
|
|
1332
1332
|
});
|
|
1333
1333
|
});
|
|
1334
1334
|
}, c = function(d) {
|
|
1335
|
-
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = m.hasFallback,
|
|
1335
|
+
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = m.hasFallback, L = k === void 0 ? !1 : k, S = m.params, O = S === void 0 ? [] : S, C = r[d];
|
|
1336
1336
|
if (typeof C == "function" && (C = C.apply(void 0, Go(O))), C === !0 && (C = void 0), !C) {
|
|
1337
1337
|
if (C === void 0 || C === !1)
|
|
1338
1338
|
return C;
|
|
@@ -1345,7 +1345,7 @@ var mt = {
|
|
|
1345
1345
|
} catch (h) {
|
|
1346
1346
|
throw new Error("`".concat(d, '` appears to be an invalid selector; error="').concat(h.message, '"'));
|
|
1347
1347
|
}
|
|
1348
|
-
if (!J && !
|
|
1348
|
+
if (!J && !L)
|
|
1349
1349
|
throw new Error("`".concat(d, "` as selector refers to no known node"));
|
|
1350
1350
|
}
|
|
1351
1351
|
return J;
|
|
@@ -1368,7 +1368,7 @@ var mt = {
|
|
|
1368
1368
|
return d;
|
|
1369
1369
|
}, s = function() {
|
|
1370
1370
|
if (a.containerGroups = a.containers.map(function(d) {
|
|
1371
|
-
var m = Mo(d, r.tabbableOptions), k = No(d, r.tabbableOptions),
|
|
1371
|
+
var m = Mo(d, r.tabbableOptions), k = No(d, r.tabbableOptions), L = m.length > 0 ? m[0] : void 0, S = m.length > 0 ? m[m.length - 1] : void 0, O = k.find(function(h) {
|
|
1372
1372
|
return be(h);
|
|
1373
1373
|
}), C = k.slice().reverse().find(function(h) {
|
|
1374
1374
|
return be(h);
|
|
@@ -1382,7 +1382,7 @@ var mt = {
|
|
|
1382
1382
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
1383
1383
|
posTabIndexesFound: J,
|
|
1384
1384
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1385
|
-
firstTabbableNode:
|
|
1385
|
+
firstTabbableNode: L,
|
|
1386
1386
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1387
1387
|
lastTabbableNode: S,
|
|
1388
1388
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -1441,7 +1441,7 @@ var mt = {
|
|
|
1441
1441
|
});
|
|
1442
1442
|
return m || (m === !1 ? !1 : d);
|
|
1443
1443
|
}, _ = function(d) {
|
|
1444
|
-
var m = d.target, k = d.event,
|
|
1444
|
+
var m = d.target, k = d.event, L = d.isBackward, S = L === void 0 ? !1 : L;
|
|
1445
1445
|
m = m || Be(k), s();
|
|
1446
1446
|
var O = null;
|
|
1447
1447
|
if (a.tabbableGroups.length > 0) {
|
|
@@ -1493,7 +1493,7 @@ var mt = {
|
|
|
1493
1493
|
k && (a.mostRecentlyFocusedNode = m);
|
|
1494
1494
|
else {
|
|
1495
1495
|
d.stopImmediatePropagation();
|
|
1496
|
-
var
|
|
1496
|
+
var L, S = !0;
|
|
1497
1497
|
if (a.mostRecentlyFocusedNode)
|
|
1498
1498
|
if (fe(a.mostRecentlyFocusedNode) > 0) {
|
|
1499
1499
|
var O = u(a.mostRecentlyFocusedNode), C = a.containerGroups[O].tabbableNodes;
|
|
@@ -1501,7 +1501,7 @@ var mt = {
|
|
|
1501
1501
|
var J = C.findIndex(function(h) {
|
|
1502
1502
|
return h === a.mostRecentlyFocusedNode;
|
|
1503
1503
|
});
|
|
1504
|
-
J >= 0 && (r.isKeyForward(a.recentNavEvent) ? J + 1 < C.length && (
|
|
1504
|
+
J >= 0 && (r.isKeyForward(a.recentNavEvent) ? J + 1 < C.length && (L = C[J + 1], S = !1) : J - 1 >= 0 && (L = C[J - 1], S = !1));
|
|
1505
1505
|
}
|
|
1506
1506
|
} else
|
|
1507
1507
|
a.containerGroups.some(function(h) {
|
|
@@ -1511,12 +1511,12 @@ var mt = {
|
|
|
1511
1511
|
}) || (S = !1);
|
|
1512
1512
|
else
|
|
1513
1513
|
S = !1;
|
|
1514
|
-
S && (
|
|
1514
|
+
S && (L = _({
|
|
1515
1515
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1516
1516
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1517
1517
|
target: a.mostRecentlyFocusedNode,
|
|
1518
1518
|
isBackward: r.isKeyBackward(a.recentNavEvent)
|
|
1519
|
-
})), b(
|
|
1519
|
+
})), b(L || a.mostRecentlyFocusedNode || p());
|
|
1520
1520
|
}
|
|
1521
1521
|
a.recentNavEvent = void 0;
|
|
1522
1522
|
}, G = function(d) {
|
|
@@ -1556,8 +1556,8 @@ var mt = {
|
|
|
1556
1556
|
return t.removeEventListener("focusin", W, !0), t.removeEventListener("mousedown", B, !0), t.removeEventListener("touchstart", B, !0), t.removeEventListener("click", V, !0), t.removeEventListener("keydown", j, !0), t.removeEventListener("keydown", z), i;
|
|
1557
1557
|
}, U = function(d) {
|
|
1558
1558
|
var m = d.some(function(k) {
|
|
1559
|
-
var
|
|
1560
|
-
return
|
|
1559
|
+
var L = Array.from(k.removedNodes);
|
|
1560
|
+
return L.some(function(S) {
|
|
1561
1561
|
return S === a.mostRecentlyFocusedNode;
|
|
1562
1562
|
});
|
|
1563
1563
|
});
|
|
@@ -1580,12 +1580,12 @@ var mt = {
|
|
|
1580
1580
|
activate: function(d) {
|
|
1581
1581
|
if (a.active)
|
|
1582
1582
|
return this;
|
|
1583
|
-
var m = l(d, "onActivate"), k = l(d, "onPostActivate"),
|
|
1584
|
-
|
|
1583
|
+
var m = l(d, "onActivate"), k = l(d, "onPostActivate"), L = l(d, "checkCanFocusTrap");
|
|
1584
|
+
L || s(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = t.activeElement, m == null || m();
|
|
1585
1585
|
var S = function() {
|
|
1586
|
-
|
|
1586
|
+
L && s(), x(), te(), k == null || k();
|
|
1587
1587
|
};
|
|
1588
|
-
return
|
|
1588
|
+
return L ? (L(a.containers.concat()).then(S, S), this) : (S(), this);
|
|
1589
1589
|
},
|
|
1590
1590
|
deactivate: function(d) {
|
|
1591
1591
|
if (!a.active)
|
|
@@ -1596,11 +1596,11 @@ var mt = {
|
|
|
1596
1596
|
checkCanReturnFocus: r.checkCanReturnFocus
|
|
1597
1597
|
}, d);
|
|
1598
1598
|
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, Z(), a.active = !1, a.paused = !1, te(), mt.deactivateTrap(o, i);
|
|
1599
|
-
var k = l(m, "onDeactivate"),
|
|
1599
|
+
var k = l(m, "onDeactivate"), L = l(m, "onPostDeactivate"), S = l(m, "checkCanReturnFocus"), O = l(m, "returnFocus", "returnFocusOnDeactivate");
|
|
1600
1600
|
k == null || k();
|
|
1601
1601
|
var C = function() {
|
|
1602
1602
|
gt(function() {
|
|
1603
|
-
O && b(g(a.nodeFocusedBeforeActivation)),
|
|
1603
|
+
O && b(g(a.nodeFocusedBeforeActivation)), L == null || L();
|
|
1604
1604
|
});
|
|
1605
1605
|
};
|
|
1606
1606
|
return O && S ? (S(g(a.nodeFocusedBeforeActivation)).then(C, C), this) : (C(), this);
|
|
@@ -1628,8 +1628,8 @@ var mt = {
|
|
|
1628
1628
|
if (a.paused === d)
|
|
1629
1629
|
return this;
|
|
1630
1630
|
if (a.paused = d, d) {
|
|
1631
|
-
var k = l(m, "onPause"),
|
|
1632
|
-
k == null || k(), Z(), te(),
|
|
1631
|
+
var k = l(m, "onPause"), L = l(m, "onPostPause");
|
|
1632
|
+
k == null || k(), Z(), te(), L == null || L();
|
|
1633
1633
|
} else {
|
|
1634
1634
|
var S = l(m, "onUnpause"), O = l(m, "onPostUnpause");
|
|
1635
1635
|
S == null || S(), s(), x(), te(), O == null || O();
|
|
@@ -1668,12 +1668,12 @@ const Xo = /* @__PURE__ */ T({
|
|
|
1668
1668
|
emits: ["update:disabled"],
|
|
1669
1669
|
setup(e) {
|
|
1670
1670
|
const n = e, t = De(e, "disabled");
|
|
1671
|
-
return (o, r) => t.value ?
|
|
1671
|
+
return (o, r) => t.value ? q(o.$slots, "default", { key: 0 }) : (y(), H(
|
|
1672
1672
|
f(Xo),
|
|
1673
1673
|
Se(se({ key: 1 }, n)),
|
|
1674
1674
|
{
|
|
1675
1675
|
default: E(() => [
|
|
1676
|
-
|
|
1676
|
+
q(o.$slots, "default")
|
|
1677
1677
|
]),
|
|
1678
1678
|
_: 3
|
|
1679
1679
|
/* FORWARDED */
|
|
@@ -1783,7 +1783,7 @@ const ca = () => {
|
|
|
1783
1783
|
}), xt(() => {
|
|
1784
1784
|
const a = o() - 1;
|
|
1785
1785
|
a <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, a.toString()), t.remove();
|
|
1786
|
-
}), (a, i) =>
|
|
1786
|
+
}), (a, i) => q(a.$slots, "default");
|
|
1787
1787
|
}
|
|
1788
1788
|
}), da = X(ua);
|
|
1789
1789
|
function pa(e, n, t, o) {
|
|
@@ -2046,18 +2046,18 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
|
|
|
2046
2046
|
Ae(_e), o("enter");
|
|
2047
2047
|
}
|
|
2048
2048
|
function te() {
|
|
2049
|
-
|
|
2049
|
+
L();
|
|
2050
2050
|
}
|
|
2051
2051
|
function d() {
|
|
2052
2052
|
o("leave");
|
|
2053
2053
|
}
|
|
2054
2054
|
function m() {
|
|
2055
|
-
|
|
2055
|
+
L(), Jt();
|
|
2056
2056
|
}
|
|
2057
2057
|
function k() {
|
|
2058
2058
|
s.animating = !0;
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function L() {
|
|
2061
2061
|
s.animating = !1;
|
|
2062
2062
|
}
|
|
2063
2063
|
function S() {
|
|
@@ -2215,7 +2215,7 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
|
|
|
2215
2215
|
4
|
|
2216
2216
|
/* STYLE */
|
|
2217
2217
|
)) : P("v-if", !0),
|
|
2218
|
-
|
|
2218
|
+
q(I.$slots, "default")
|
|
2219
2219
|
], 16, Aa)
|
|
2220
2220
|
]),
|
|
2221
2221
|
_: 3
|
|
@@ -2263,10 +2263,10 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
|
|
|
2263
2263
|
}, Ra = {
|
|
2264
2264
|
key: 1,
|
|
2265
2265
|
class: "q-dialog__body"
|
|
2266
|
-
},
|
|
2266
|
+
}, La = {
|
|
2267
2267
|
key: 0,
|
|
2268
2268
|
class: "q-dialog__body-icon"
|
|
2269
|
-
},
|
|
2269
|
+
}, qa = { class: "q-dialog__body-text" }, Ma = ["innerHTML"], Na = { key: 1 }, Fa = {
|
|
2270
2270
|
key: 0,
|
|
2271
2271
|
class: "q-dialog__input"
|
|
2272
2272
|
}, Ta = {
|
|
@@ -2341,8 +2341,8 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
|
|
|
2341
2341
|
},
|
|
2342
2342
|
[
|
|
2343
2343
|
t.title || b.$slots.header || b.$slots["header.prepend"] || b.$slots["header.append"] ? (y(), $("div", Ca, [
|
|
2344
|
-
|
|
2345
|
-
|
|
2344
|
+
q(b.$slots, "header", {}, () => [
|
|
2345
|
+
q(b.$slots, "header.prepend"),
|
|
2346
2346
|
t.title ? (y(), $(
|
|
2347
2347
|
"span",
|
|
2348
2348
|
Ba,
|
|
@@ -2350,15 +2350,15 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
|
|
|
2350
2350
|
1
|
|
2351
2351
|
/* TEXT */
|
|
2352
2352
|
)) : P("v-if", !0),
|
|
2353
|
-
|
|
2353
|
+
q(b.$slots, "header.append")
|
|
2354
2354
|
])
|
|
2355
2355
|
])) : P("v-if", !0),
|
|
2356
2356
|
t.icon || t.text || b.$slots.body ? (y(), $("div", Ra, [
|
|
2357
|
-
|
|
2357
|
+
q(b.$slots, "body", {}, () => {
|
|
2358
2358
|
var _;
|
|
2359
2359
|
return [
|
|
2360
|
-
|
|
2361
|
-
t.icon ? (y(), $("span",
|
|
2360
|
+
q(b.$slots, "body.icon", {}, () => [
|
|
2361
|
+
t.icon ? (y(), $("span", La, [
|
|
2362
2362
|
D(
|
|
2363
2363
|
f(Y),
|
|
2364
2364
|
Se(Ne(t.icon)),
|
|
@@ -2368,7 +2368,7 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
|
|
|
2368
2368
|
)
|
|
2369
2369
|
])) : P("v-if", !0)
|
|
2370
2370
|
]),
|
|
2371
|
-
R("div",
|
|
2371
|
+
R("div", qa, [
|
|
2372
2372
|
t.html ? (y(), $("div", {
|
|
2373
2373
|
key: 0,
|
|
2374
2374
|
innerHTML: t.text
|
|
@@ -2403,7 +2403,7 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
|
|
|
2403
2403
|
/* STABLE */
|
|
2404
2404
|
}, 8, ["modelValue", "invalid", "placeholder"])
|
|
2405
2405
|
])) : P("v-if", !0),
|
|
2406
|
-
|
|
2406
|
+
q(b.$slots, "body.append")
|
|
2407
2407
|
];
|
|
2408
2408
|
})
|
|
2409
2409
|
])) : P("v-if", !0),
|
|
@@ -2435,7 +2435,7 @@ const $a = ["id"], Aa = ["role"], xa = /* @__PURE__ */ T({
|
|
|
2435
2435
|
/* KEYED_FRAGMENT */
|
|
2436
2436
|
))
|
|
2437
2437
|
])) : P("v-if", !0),
|
|
2438
|
-
|
|
2438
|
+
q(b.$slots, "footer.append")
|
|
2439
2439
|
])) : P("v-if", !0),
|
|
2440
2440
|
t.dismissible ? (y(), H(f(re), {
|
|
2441
2441
|
key: 3,
|
|
@@ -2559,10 +2559,10 @@ const ja = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
|
|
|
2559
2559
|
required: n.required
|
|
2560
2560
|
}, $t({
|
|
2561
2561
|
"label.prepend": E(() => [
|
|
2562
|
-
|
|
2562
|
+
q(c.$slots, "label.prepend")
|
|
2563
2563
|
]),
|
|
2564
2564
|
"label.append": E(() => [
|
|
2565
|
-
|
|
2565
|
+
q(c.$slots, "label.append")
|
|
2566
2566
|
]),
|
|
2567
2567
|
default: E(() => [
|
|
2568
2568
|
At(R("textarea", se({
|
|
@@ -2590,21 +2590,21 @@ const ja = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
|
|
|
2590
2590
|
c.$slots.prepend ? {
|
|
2591
2591
|
name: "prepend",
|
|
2592
2592
|
fn: E(() => [
|
|
2593
|
-
|
|
2593
|
+
q(c.$slots, "prepend")
|
|
2594
2594
|
]),
|
|
2595
2595
|
key: "0"
|
|
2596
2596
|
} : void 0,
|
|
2597
2597
|
c.$slots.append ? {
|
|
2598
2598
|
name: "append",
|
|
2599
2599
|
fn: E(() => [
|
|
2600
|
-
|
|
2600
|
+
q(c.$slots, "append")
|
|
2601
2601
|
]),
|
|
2602
2602
|
key: "1"
|
|
2603
2603
|
} : void 0,
|
|
2604
2604
|
c.$slots.extras ? {
|
|
2605
2605
|
name: "extras",
|
|
2606
2606
|
fn: E(() => [
|
|
2607
|
-
|
|
2607
|
+
q(c.$slots, "extras")
|
|
2608
2608
|
]),
|
|
2609
2609
|
key: "2"
|
|
2610
2610
|
} : void 0
|
|
@@ -2835,7 +2835,10 @@ function Vt(e, n) {
|
|
|
2835
2835
|
return n.toString();
|
|
2836
2836
|
}
|
|
2837
2837
|
}
|
|
2838
|
-
|
|
2838
|
+
function Za(e) {
|
|
2839
|
+
return e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
|
|
2840
|
+
}
|
|
2841
|
+
const Ja = ["data-testid"], Qa = { class: "q-field-preview__toolbar" }, Wa = { class: "q-field-preview__footer" }, Ya = /* @__PURE__ */ T({
|
|
2839
2842
|
__name: "FieldPreview",
|
|
2840
2843
|
props: {
|
|
2841
2844
|
name: {},
|
|
@@ -2862,8 +2865,11 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
|
|
|
2862
2865
|
function b() {
|
|
2863
2866
|
i.value || (i.value = !0, o("regenerate", t.name));
|
|
2864
2867
|
}
|
|
2865
|
-
return (g, _) => (y(), $("div",
|
|
2866
|
-
|
|
2868
|
+
return (g, _) => (y(), $("div", {
|
|
2869
|
+
class: "q-field-preview",
|
|
2870
|
+
"data-testid": f(Za)(t.name)
|
|
2871
|
+
}, [
|
|
2872
|
+
R("div", Qa, [
|
|
2867
2873
|
R("span", null, [
|
|
2868
2874
|
Ge(ne(f(r).suggestionsForField) + " ", 1),
|
|
2869
2875
|
R("b", null, ne(t.name), 1)
|
|
@@ -2874,8 +2880,8 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
|
|
|
2874
2880
|
}, [
|
|
2875
2881
|
(y(), H(_t(c.value), Se(Ne(p.value)), null, 16))
|
|
2876
2882
|
], 2),
|
|
2877
|
-
R("div",
|
|
2878
|
-
D(f(
|
|
2883
|
+
R("div", Wa, [
|
|
2884
|
+
D(f(Lt), { borderless: "" }, {
|
|
2879
2885
|
default: E(() => [
|
|
2880
2886
|
D(f(re), {
|
|
2881
2887
|
title: f(r).regenerateResponse,
|
|
@@ -2905,15 +2911,15 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
|
|
|
2905
2911
|
_: 1
|
|
2906
2912
|
})
|
|
2907
2913
|
])
|
|
2908
|
-
]));
|
|
2914
|
+
], 8, Ja));
|
|
2909
2915
|
}
|
|
2910
|
-
}),
|
|
2916
|
+
}), Xa = { class: "pulsing-dots" }, Ka = { class: "generating-text" }, er = { class: "dots-container" }, tr = /* @__PURE__ */ T({
|
|
2911
2917
|
__name: "PulseDots",
|
|
2912
2918
|
setup(e) {
|
|
2913
2919
|
const n = [1, 2, 3], t = me();
|
|
2914
|
-
return (o, r) => (y(), $("div",
|
|
2915
|
-
R("span",
|
|
2916
|
-
R("div",
|
|
2920
|
+
return (o, r) => (y(), $("div", Xa, [
|
|
2921
|
+
R("span", Ka, ne(f(t).generatingResponse), 1),
|
|
2922
|
+
R("div", er, [
|
|
2917
2923
|
(y(), $(ce, null, Ce(n, (a, i) => R("span", {
|
|
2918
2924
|
key: i,
|
|
2919
2925
|
class: "dot",
|
|
@@ -2922,16 +2928,16 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
|
|
|
2922
2928
|
])
|
|
2923
2929
|
]));
|
|
2924
2930
|
}
|
|
2925
|
-
}),
|
|
2931
|
+
}), nr = { class: "q-chatbot__message-container" }, or = { class: "q-chatbot__message-wrapper" }, ar = {
|
|
2926
2932
|
key: 0,
|
|
2927
2933
|
class: "q-chatbot__image-preview"
|
|
2928
|
-
},
|
|
2934
|
+
}, rr = ["src", "alt"], ir = {
|
|
2929
2935
|
key: 1,
|
|
2930
2936
|
class: "q-chatbot__file-preview-container"
|
|
2931
|
-
},
|
|
2937
|
+
}, lr = { class: "q-chatbot__file-icon-container" }, sr = { class: "q-chatbot__file-info" }, cr = { class: "q-chatbot__file-name" }, ur = { class: "q-chatbot__file-extension" }, dr = { class: "q-chatbot__message" }, pr = {
|
|
2932
2938
|
key: 1,
|
|
2933
2939
|
class: "q-chatbot__text q-chatbot__user-text"
|
|
2934
|
-
},
|
|
2940
|
+
}, fr = /* @__PURE__ */ T({
|
|
2935
2941
|
__name: "ChatBotMessage",
|
|
2936
2942
|
props: {
|
|
2937
2943
|
sender: { default: "user" },
|
|
@@ -2981,33 +2987,33 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
|
|
|
2981
2987
|
}
|
|
2982
2988
|
return (g, _) => {
|
|
2983
2989
|
var B, W, G;
|
|
2984
|
-
return y(), $("div",
|
|
2990
|
+
return y(), $("div", nr, [
|
|
2985
2991
|
D(f(Y), {
|
|
2986
2992
|
type: "img",
|
|
2987
2993
|
icon: u.value,
|
|
2988
2994
|
alt: f(r).senderImage,
|
|
2989
2995
|
class: "q-chatbot__profile"
|
|
2990
2996
|
}, null, 8, ["icon", "alt"]),
|
|
2991
|
-
R("div",
|
|
2992
|
-
l.value ? (y(), $("div",
|
|
2997
|
+
R("div", or, [
|
|
2998
|
+
l.value ? (y(), $("div", ar, [
|
|
2993
2999
|
R("img", {
|
|
2994
3000
|
src: (B = t.file) == null ? void 0 : B.previewUrl,
|
|
2995
3001
|
alt: f(r).imagePreview
|
|
2996
|
-
}, null, 8,
|
|
2997
|
-
])) : (W = t.file) != null && W.fileData && !l.value ? (y(), $("div",
|
|
2998
|
-
R("div",
|
|
3002
|
+
}, null, 8, rr)
|
|
3003
|
+
])) : (W = t.file) != null && W.fileData && !l.value ? (y(), $("div", ir, [
|
|
3004
|
+
R("div", lr, [
|
|
2999
3005
|
D(f(Y), {
|
|
3000
3006
|
icon: "file",
|
|
3001
3007
|
class: "q-chatbot__file-icon"
|
|
3002
3008
|
})
|
|
3003
3009
|
]),
|
|
3004
|
-
R("div",
|
|
3005
|
-
R("span",
|
|
3006
|
-
R("span",
|
|
3010
|
+
R("div", sr, [
|
|
3011
|
+
R("span", cr, ne((G = t.file) == null ? void 0 : G.fileData.name), 1),
|
|
3012
|
+
R("span", ur, ne(c.value), 1)
|
|
3007
3013
|
])
|
|
3008
3014
|
])) : P("", !0),
|
|
3009
|
-
R("div",
|
|
3010
|
-
g.loading ? (y(), H(
|
|
3015
|
+
R("div", dr, [
|
|
3016
|
+
g.loading ? (y(), H(tr, { key: 0 })) : t.sender === "bot" && t.fields.length > 0 ? (y(!0), $(ce, { key: 1 }, Ce(t.fields, (j, z) => (y(), H(f(Ya), {
|
|
3011
3017
|
key: z,
|
|
3012
3018
|
class: "q-chatbot__text",
|
|
3013
3019
|
text: j.text || "",
|
|
@@ -3021,11 +3027,11 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
|
|
|
3021
3027
|
key: 0,
|
|
3022
3028
|
class: "q-chatbot__text",
|
|
3023
3029
|
source: t.message || ""
|
|
3024
|
-
}, null, 8, ["source"])) : (y(), $("div",
|
|
3030
|
+
}, null, 8, ["source"])) : (y(), $("div", pr, ne(t.message), 1))
|
|
3025
3031
|
], 64))
|
|
3026
3032
|
])
|
|
3027
3033
|
]),
|
|
3028
|
-
D(f(
|
|
3034
|
+
D(f(_r), {
|
|
3029
3035
|
"show-buttons": i.value,
|
|
3030
3036
|
loading: t.loading,
|
|
3031
3037
|
"date-format": t.dateFormat,
|
|
@@ -3039,35 +3045,35 @@ const Za = { class: "q-field-preview" }, Ja = { class: "q-field-preview__toolbar
|
|
|
3039
3045
|
}), K = [];
|
|
3040
3046
|
for (let e = 0; e < 256; ++e)
|
|
3041
3047
|
K.push((e + 256).toString(16).slice(1));
|
|
3042
|
-
function
|
|
3048
|
+
function vr(e, n = 0) {
|
|
3043
3049
|
return (K[e[n + 0]] + K[e[n + 1]] + K[e[n + 2]] + K[e[n + 3]] + "-" + K[e[n + 4]] + K[e[n + 5]] + "-" + K[e[n + 6]] + K[e[n + 7]] + "-" + K[e[n + 8]] + K[e[n + 9]] + "-" + K[e[n + 10]] + K[e[n + 11]] + K[e[n + 12]] + K[e[n + 13]] + K[e[n + 14]] + K[e[n + 15]]).toLowerCase();
|
|
3044
3050
|
}
|
|
3045
3051
|
let Je;
|
|
3046
|
-
const
|
|
3047
|
-
function
|
|
3052
|
+
const mr = new Uint8Array(16);
|
|
3053
|
+
function gr() {
|
|
3048
3054
|
if (!Je) {
|
|
3049
3055
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
3050
3056
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3051
3057
|
Je = crypto.getRandomValues.bind(crypto);
|
|
3052
3058
|
}
|
|
3053
|
-
return Je(
|
|
3059
|
+
return Je(mr);
|
|
3054
3060
|
}
|
|
3055
|
-
const
|
|
3061
|
+
const br = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), wt = { randomUUID: br };
|
|
3056
3062
|
function Ht(e, n, t) {
|
|
3057
3063
|
var r;
|
|
3058
3064
|
if (wt.randomUUID && !n && !e)
|
|
3059
3065
|
return wt.randomUUID();
|
|
3060
3066
|
e = e || {};
|
|
3061
|
-
const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ??
|
|
3067
|
+
const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? gr();
|
|
3062
3068
|
if (o.length < 16)
|
|
3063
3069
|
throw new Error("Random bytes length must be >= 16");
|
|
3064
|
-
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128,
|
|
3070
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, vr(o);
|
|
3065
3071
|
}
|
|
3066
|
-
const pe = N([]),
|
|
3072
|
+
const pe = N([]), Le = N(1);
|
|
3067
3073
|
function Zt() {
|
|
3068
3074
|
function e(a, i, l, u, c) {
|
|
3069
3075
|
const p = {
|
|
3070
|
-
id:
|
|
3076
|
+
id: Le.value++,
|
|
3071
3077
|
message: a,
|
|
3072
3078
|
date: /* @__PURE__ */ new Date(),
|
|
3073
3079
|
sender: i || "bot",
|
|
@@ -3079,10 +3085,10 @@ function Zt() {
|
|
|
3079
3085
|
return pe.value.push(p), p;
|
|
3080
3086
|
}
|
|
3081
3087
|
function n() {
|
|
3082
|
-
return pe.value.find((a) => a.id ===
|
|
3088
|
+
return pe.value.find((a) => a.id === Le.value - 1);
|
|
3083
3089
|
}
|
|
3084
3090
|
function t() {
|
|
3085
|
-
pe.value = [],
|
|
3091
|
+
pe.value = [], Le.value = 1;
|
|
3086
3092
|
}
|
|
3087
3093
|
function o(a) {
|
|
3088
3094
|
pe.value = pe.value.filter((i) => i.id !== a);
|
|
@@ -3092,7 +3098,7 @@ function Zt() {
|
|
|
3092
3098
|
}
|
|
3093
3099
|
return {
|
|
3094
3100
|
messages: pe,
|
|
3095
|
-
nextMessageId:
|
|
3101
|
+
nextMessageId: Le,
|
|
3096
3102
|
addChatMessage: e,
|
|
3097
3103
|
getLastMessage: n,
|
|
3098
3104
|
clearMessages: t,
|
|
@@ -3100,10 +3106,10 @@ function Zt() {
|
|
|
3100
3106
|
deleteMessageById: o
|
|
3101
3107
|
};
|
|
3102
3108
|
}
|
|
3103
|
-
const
|
|
3109
|
+
const hr = { class: "q-chatbot__dialog-title" }, yr = {
|
|
3104
3110
|
key: 0,
|
|
3105
3111
|
class: "q-chatbot__feedback-buttons"
|
|
3106
|
-
},
|
|
3112
|
+
}, wr = { class: "q-chatbot__sender" }, _r = /* @__PURE__ */ T({
|
|
3107
3113
|
__name: "ChatBotMessageButtons",
|
|
3108
3114
|
props: {
|
|
3109
3115
|
loading: { type: Boolean },
|
|
@@ -3137,8 +3143,8 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3137
3143
|
}
|
|
3138
3144
|
], _ = w(() => t.dateFormat ? W(s, "HH:mm") : s.toLocaleString()), B = w(() => `${_.value}`);
|
|
3139
3145
|
function W(U, ee) {
|
|
3140
|
-
const te = U.getDate().toString().padStart(2, "0"), d = (U.getMonth() + 1).toString().padStart(2, "0"), m = U.getFullYear().toString().padStart(2, "0"), k = U.getHours().toString().padStart(2, "0"),
|
|
3141
|
-
return ee.replace("dd", te).replace("MM", d).replace("yyyy", m).replace("HH", k).replace("mm",
|
|
3146
|
+
const te = U.getDate().toString().padStart(2, "0"), d = (U.getMonth() + 1).toString().padStart(2, "0"), m = U.getFullYear().toString().padStart(2, "0"), k = U.getHours().toString().padStart(2, "0"), L = U.getMinutes().toString().padStart(2, "0"), S = U.getSeconds().toString().padStart(2, "0");
|
|
3147
|
+
return ee.replace("dd", te).replace("MM", d).replace("yyyy", m).replace("HH", k).replace("mm", L).replace("ss", S);
|
|
3142
3148
|
}
|
|
3143
3149
|
function G(U) {
|
|
3144
3150
|
i.value = !0, l.value = "", u.value = U;
|
|
@@ -3166,7 +3172,7 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3166
3172
|
buttons: g
|
|
3167
3173
|
}, {
|
|
3168
3174
|
body: E(() => [
|
|
3169
|
-
R("div",
|
|
3175
|
+
R("div", hr, ne(f(r).commentDialogTitle), 1),
|
|
3170
3176
|
D(f(Nt), {
|
|
3171
3177
|
modelValue: l.value,
|
|
3172
3178
|
"onUpdate:modelValue": ee[0] || (ee[0] = (te) => l.value = te),
|
|
@@ -3178,8 +3184,8 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3178
3184
|
]),
|
|
3179
3185
|
_: 1
|
|
3180
3186
|
}, 8, ["modelValue"]),
|
|
3181
|
-
U.showButtons ? (y(), $("div",
|
|
3182
|
-
D(f(
|
|
3187
|
+
U.showButtons ? (y(), $("div", yr, [
|
|
3188
|
+
D(f(Lt), null, {
|
|
3183
3189
|
default: E(() => [
|
|
3184
3190
|
D(f(re), {
|
|
3185
3191
|
title: f(r).goodResponse,
|
|
@@ -3236,10 +3242,10 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3236
3242
|
_: 1
|
|
3237
3243
|
})
|
|
3238
3244
|
])) : P("", !0),
|
|
3239
|
-
R("div",
|
|
3245
|
+
R("div", wr, ne(B.value), 1)
|
|
3240
3246
|
], 64));
|
|
3241
3247
|
}
|
|
3242
|
-
}),
|
|
3248
|
+
}), kr = { class: "q-chatbot__tools" }, $r = { class: "q-chatbot__tools__select" }, Ar = /* @__PURE__ */ T({
|
|
3243
3249
|
__name: "ChatToolBar",
|
|
3244
3250
|
props: {
|
|
3245
3251
|
disabled: { type: Boolean },
|
|
@@ -3283,8 +3289,8 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3283
3289
|
}
|
|
3284
3290
|
return (s, v) => {
|
|
3285
3291
|
const b = ln("q-select");
|
|
3286
|
-
return y(), $("div",
|
|
3287
|
-
R("div",
|
|
3292
|
+
return y(), $("div", kr, [
|
|
3293
|
+
R("div", $r, [
|
|
3288
3294
|
i.value ? (y(), H(b, {
|
|
3289
3295
|
key: 0,
|
|
3290
3296
|
modelValue: l.value,
|
|
@@ -3313,14 +3319,14 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3313
3319
|
]);
|
|
3314
3320
|
};
|
|
3315
3321
|
}
|
|
3316
|
-
}),
|
|
3322
|
+
}), xr = { class: "q-chatbot__input-wrapper" }, Ir = {
|
|
3317
3323
|
key: 0,
|
|
3318
3324
|
class: "q-chatbot__file-preview"
|
|
3319
|
-
},
|
|
3325
|
+
}, Sr = ["src", "alt"], Dr = {
|
|
3320
3326
|
key: 1,
|
|
3321
3327
|
class: "q-chatbot__file-preview",
|
|
3322
3328
|
tabindex: "0"
|
|
3323
|
-
},
|
|
3329
|
+
}, Er = { class: "q-chatbot__file-name" }, Cr = { class: "q-chatbot__input" }, Br = { class: "q-chatbot__send-container" }, Rr = ["accept"], Lr = /* @__PURE__ */ T({
|
|
3324
3330
|
__name: "ChatBotInput",
|
|
3325
3331
|
props: {
|
|
3326
3332
|
disabled: { type: Boolean },
|
|
@@ -3375,29 +3381,29 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3375
3381
|
(U = Z.files) != null && U[0] && W(Z.files[0]);
|
|
3376
3382
|
}
|
|
3377
3383
|
return (x, Z) => (y(), $(ce, null, [
|
|
3378
|
-
D(f(
|
|
3384
|
+
D(f(qt), {
|
|
3379
3385
|
label: f(r).inputLabel
|
|
3380
3386
|
}, null, 8, ["label"]),
|
|
3381
3387
|
R("div", {
|
|
3382
3388
|
class: Q(["q-chatbot__footer", g.value]),
|
|
3383
|
-
onDragover:
|
|
3384
|
-
onDragleave:
|
|
3385
|
-
onDrop:
|
|
3389
|
+
onDragover: qe(b, ["prevent"]),
|
|
3390
|
+
onDragleave: qe(_, ["prevent"]),
|
|
3391
|
+
onDrop: qe(B, ["prevent"])
|
|
3386
3392
|
}, [
|
|
3387
|
-
R("div",
|
|
3388
|
-
i.value ? (y(), $("div",
|
|
3393
|
+
R("div", xr, [
|
|
3394
|
+
i.value ? (y(), $("div", Ir, [
|
|
3389
3395
|
p.value ? (y(), $("img", {
|
|
3390
3396
|
key: 0,
|
|
3391
3397
|
class: "q-chatbot__image-preview",
|
|
3392
3398
|
src: l.value,
|
|
3393
3399
|
tabindex: "0",
|
|
3394
3400
|
alt: f(r).imagePreview
|
|
3395
|
-
}, null, 8,
|
|
3401
|
+
}, null, 8, Sr)) : (y(), $("div", Dr, [
|
|
3396
3402
|
D(f(Y), {
|
|
3397
3403
|
icon: "file",
|
|
3398
3404
|
class: "q-chatbot__file-icon"
|
|
3399
3405
|
}),
|
|
3400
|
-
R("span",
|
|
3406
|
+
R("span", Er, ne(i.value.name), 1)
|
|
3401
3407
|
])),
|
|
3402
3408
|
D(f(re), {
|
|
3403
3409
|
class: "q-chatbot__remove-file",
|
|
@@ -3412,8 +3418,9 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3412
3418
|
_: 1
|
|
3413
3419
|
})
|
|
3414
3420
|
])) : P("", !0),
|
|
3415
|
-
R("div",
|
|
3421
|
+
R("div", Cr, [
|
|
3416
3422
|
D(f(Va), {
|
|
3423
|
+
id: "chatbot-input",
|
|
3417
3424
|
modelValue: s.value,
|
|
3418
3425
|
"onUpdate:modelValue": Z[0] || (Z[0] = (U) => s.value = U),
|
|
3419
3426
|
size: "block",
|
|
@@ -3424,7 +3431,7 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3424
3431
|
onKeyup: sn(G, ["enter"])
|
|
3425
3432
|
}, null, 8, ["modelValue", "disabled"])
|
|
3426
3433
|
]),
|
|
3427
|
-
R("div",
|
|
3434
|
+
R("div", Br, [
|
|
3428
3435
|
D(f(re), {
|
|
3429
3436
|
title: f(r).imageUpload,
|
|
3430
3437
|
class: "q-chatbot__upload",
|
|
@@ -3444,7 +3451,7 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3444
3451
|
accept: c.value,
|
|
3445
3452
|
class: "hidden-input",
|
|
3446
3453
|
onChange: V
|
|
3447
|
-
}, null, 40,
|
|
3454
|
+
}, null, 40, Rr),
|
|
3448
3455
|
D(f(re), {
|
|
3449
3456
|
title: f(r).sendMessage,
|
|
3450
3457
|
variant: "bold",
|
|
@@ -3463,7 +3470,7 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3463
3470
|
], 34)
|
|
3464
3471
|
], 64));
|
|
3465
3472
|
}
|
|
3466
|
-
}), qr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20126.25%20110.36'%3e%3cdefs%3e%3cradialGradient%20id='radial-gradient'%20cx='45.24'%20cy='38.05'%20fx='45.24'%20fy='38.05'%20r='59.09'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2331319e'/%3e%3cstop%20offset='.19'%20stop-color='%232e2e97'/%3e%3cstop%20offset='.45'%20stop-color='%23292985'/%3e%3cstop%20offset='.75'%20stop-color='%23202067'/%3e%3cstop%20offset='1'%20stop-color='%2317174a'/%3e%3c/radialGradient%3e%3clinearGradient%20id='linear-gradient'%20x1='82.65'%20y1='50.41'%20x2='82.65'%20y2='77.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.02'%20stop-color='%2366ebfe'/%3e%3cstop%20offset='.96'%20stop-color='%2300bfdb'/%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-2'%20x1='44.6'%20y1='50.01'%20x2='44.6'%20y2='77.1'%20xlink:href='%23linear-gradient'/%3e%3c/defs%3e%3cg%20isolation='isolate'%3e%3cg%20id='Layer_1'%3e%3cpath%20d='M126.2,61.4c-.2-3.69-2.61-17.39-5.92-22.09-2.42-3.44-5.89-4.03-7.96-4.38-.13-.02-.27-.05-.41-.07-.16-.28-.32-.58-.45-.81-.63-1.14-1.03-1.87-1.44-2.44-6.96-9.88-14.91-16.51-24.85-20.69-.25-2.29-.84-5.24-3.37-7.44-2.93-2.55-7.58-2.9-11.68-3.21-.93-.07-1.82-.14-2.4-.22l-.33-.05h-8.61l-.36.05c-.65.1-1.61.17-2.63.24-3.75.27-8.01.57-10.98,2.85-2.94,2.26-3.58,5.55-3.79,7.84-9.71,3.94-17.86,10.71-24.85,20.62-.4.57-.81,1.3-1.43,2.44-.13.23-.29.53-.45.81-.14.02-.28.05-.4.07-2.07.35-5.54.94-7.96,4.39-2.25,3.19-3.84,9.89-4.58,13.59-.6,2.97-1.9,10.3-1.08,14.26.79,3.78,3.66,5.6,5.37,6.68.12.08.26.16.39.25,1.65,10.03,6.98,18.56,15.52,24.77,9.23,6.72,20.2,9.43,27.78,10.52,4.49.65,9.15.97,13.85.97,9.67,0,23.77-1.39,36-8.02,11.58-6.27,18.81-16,21.04-28.24,4.52-2.76,6.36-5.67,5.98-12.71Z'%20fill='%2317174a'/%3e%3cpath%20d='M67.15,4.69c2.98.42,9.31.31,11.62,2.31,1.99,1.73,1.65,4.82,2.06,7.22,10.77,3.89,18.73,10.59,25.39,20.04.64.91,2.13,3.95,2.58,4.33,1.71,1.46,5.54.35,7.67,3.37,2.29,3.25,4.83,15.41,5.06,19.59.31,5.82-.76,6.9-5.58,9.44-3.28,26.16-29.7,34.5-52.68,34.5-4.6,0-9.06-.33-13.17-.93-18.13-2.61-37.11-12.11-39.51-33.08-1.7-1.92-4.96-2.54-5.55-5.39-.95-4.56,2.21-20.32,4.89-24.14,2.13-3.02,5.96-1.91,7.67-3.37.46-.39,1.94-3.42,2.58-4.33,6.54-9.28,14.55-16.22,25.21-19.87.85-.87-.3-5.45,2.43-7.55,2.52-1.94,8.35-1.69,11.42-2.16h7.91'%20fill='%23fff'/%3e%3cpath%20d='M121.86,61.51c-.22-4.2-2.78-16.43-5.07-19.7-1.77-2.51-4.71-2.18-6.64-2.83.1,1.18.16,2.37.16,3.57,0,26.85-25.96,48.61-57.98,48.61-15.83,0-30.17-5.32-40.63-13.94,4.91,17.1,22.06,25.14,38.51,27.52,4.12.59,8.6.93,13.21.93,23.06,0,49.57-8.38,52.85-34.68,4.83-2.56,5.91-3.63,5.6-9.49Z'%20fill='%23d0d7e2'%20mix-blend-mode='multiply'%20opacity='.4'/%3e%3cpath%20d='M62.91,97.68c5.82,0,11.67-.53,16.72-1.56,13.1-2.67,22.09-8.06,26.72-16.03,4.43-7.63,4.75-17.33.96-28.84-4.28-13-13.22-22.77-24.7-27.89-.13,4.51-3.84,8.16-8.38,8.16h-20.89c-4.61,0-8.39-3.78-8.39-8.39v-.14c-5.36,2.25-10.29,5.49-14.5,9.61-8.23,8.06-13.16,19.02-13.9,30.84-.59,9.44,2.67,17.53,9.43,23.42,6.27,5.46,15.68,9.02,27.2,10.3,3.13.35,6.43.52,9.73.52'%20fill='url(%23radial-gradient)'/%3e%3crect%20x='74.34'%20y='50.41'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient)'/%3e%3crect%20x='36.29'%20y='50.01'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient-2)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",
|
|
3473
|
+
}), qr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20126.25%20110.36'%3e%3cdefs%3e%3cradialGradient%20id='radial-gradient'%20cx='45.24'%20cy='38.05'%20fx='45.24'%20fy='38.05'%20r='59.09'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2331319e'/%3e%3cstop%20offset='.19'%20stop-color='%232e2e97'/%3e%3cstop%20offset='.45'%20stop-color='%23292985'/%3e%3cstop%20offset='.75'%20stop-color='%23202067'/%3e%3cstop%20offset='1'%20stop-color='%2317174a'/%3e%3c/radialGradient%3e%3clinearGradient%20id='linear-gradient'%20x1='82.65'%20y1='50.41'%20x2='82.65'%20y2='77.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.02'%20stop-color='%2366ebfe'/%3e%3cstop%20offset='.96'%20stop-color='%2300bfdb'/%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-2'%20x1='44.6'%20y1='50.01'%20x2='44.6'%20y2='77.1'%20xlink:href='%23linear-gradient'/%3e%3c/defs%3e%3cg%20isolation='isolate'%3e%3cg%20id='Layer_1'%3e%3cpath%20d='M126.2,61.4c-.2-3.69-2.61-17.39-5.92-22.09-2.42-3.44-5.89-4.03-7.96-4.38-.13-.02-.27-.05-.41-.07-.16-.28-.32-.58-.45-.81-.63-1.14-1.03-1.87-1.44-2.44-6.96-9.88-14.91-16.51-24.85-20.69-.25-2.29-.84-5.24-3.37-7.44-2.93-2.55-7.58-2.9-11.68-3.21-.93-.07-1.82-.14-2.4-.22l-.33-.05h-8.61l-.36.05c-.65.1-1.61.17-2.63.24-3.75.27-8.01.57-10.98,2.85-2.94,2.26-3.58,5.55-3.79,7.84-9.71,3.94-17.86,10.71-24.85,20.62-.4.57-.81,1.3-1.43,2.44-.13.23-.29.53-.45.81-.14.02-.28.05-.4.07-2.07.35-5.54.94-7.96,4.39-2.25,3.19-3.84,9.89-4.58,13.59-.6,2.97-1.9,10.3-1.08,14.26.79,3.78,3.66,5.6,5.37,6.68.12.08.26.16.39.25,1.65,10.03,6.98,18.56,15.52,24.77,9.23,6.72,20.2,9.43,27.78,10.52,4.49.65,9.15.97,13.85.97,9.67,0,23.77-1.39,36-8.02,11.58-6.27,18.81-16,21.04-28.24,4.52-2.76,6.36-5.67,5.98-12.71Z'%20fill='%2317174a'/%3e%3cpath%20d='M67.15,4.69c2.98.42,9.31.31,11.62,2.31,1.99,1.73,1.65,4.82,2.06,7.22,10.77,3.89,18.73,10.59,25.39,20.04.64.91,2.13,3.95,2.58,4.33,1.71,1.46,5.54.35,7.67,3.37,2.29,3.25,4.83,15.41,5.06,19.59.31,5.82-.76,6.9-5.58,9.44-3.28,26.16-29.7,34.5-52.68,34.5-4.6,0-9.06-.33-13.17-.93-18.13-2.61-37.11-12.11-39.51-33.08-1.7-1.92-4.96-2.54-5.55-5.39-.95-4.56,2.21-20.32,4.89-24.14,2.13-3.02,5.96-1.91,7.67-3.37.46-.39,1.94-3.42,2.58-4.33,6.54-9.28,14.55-16.22,25.21-19.87.85-.87-.3-5.45,2.43-7.55,2.52-1.94,8.35-1.69,11.42-2.16h7.91'%20fill='%23fff'/%3e%3cpath%20d='M121.86,61.51c-.22-4.2-2.78-16.43-5.07-19.7-1.77-2.51-4.71-2.18-6.64-2.83.1,1.18.16,2.37.16,3.57,0,26.85-25.96,48.61-57.98,48.61-15.83,0-30.17-5.32-40.63-13.94,4.91,17.1,22.06,25.14,38.51,27.52,4.12.59,8.6.93,13.21.93,23.06,0,49.57-8.38,52.85-34.68,4.83-2.56,5.91-3.63,5.6-9.49Z'%20fill='%23d0d7e2'%20mix-blend-mode='multiply'%20opacity='.4'/%3e%3cpath%20d='M62.91,97.68c5.82,0,11.67-.53,16.72-1.56,13.1-2.67,22.09-8.06,26.72-16.03,4.43-7.63,4.75-17.33.96-28.84-4.28-13-13.22-22.77-24.7-27.89-.13,4.51-3.84,8.16-8.38,8.16h-20.89c-4.61,0-8.39-3.78-8.39-8.39v-.14c-5.36,2.25-10.29,5.49-14.5,9.61-8.23,8.06-13.16,19.02-13.9,30.84-.59,9.44,2.67,17.53,9.43,23.42,6.27,5.46,15.68,9.02,27.2,10.3,3.13.35,6.43.52,9.73.52'%20fill='url(%23radial-gradient)'/%3e%3crect%20x='74.34'%20y='50.41'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient)'/%3e%3crect%20x='36.29'%20y='50.01'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient-2)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Mr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF2GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZX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ev5X0CklziW8WhfTgO8G9VDVHXAHo0w0i44wa0PkzMh+ApirpHi3Rn3/AnAUuuDySUA2xK/fYBaV99XS/k5Ev/w+6IPetTo6+TraP74MnZHnFWClkuK/Zfbv8+j6UYcaR8xh6JOAB9eovwIYH0VoU2QP5F3P7wxMRj9BiarSSzuwCvjA/L3VtdrFvPYE9ie6qqYb0Omgfh3VKcvIIy5czz8YfQbnFJpLbegDeZGmjqxbSI3r+ScCtwL9GhzsS+jQ1tn1aLxuNRvMBR8OTCD4MZk4SJprO6JecOs6govcn88GfggcEXOwz5uZaboN2Qysi3p0Pf8Y40A4lfgUY96IduzcoaR4xqaOWRvW6nr+3sZJcg4wxNJuLjSOl2lKirU2djAWccvGkX+6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=", Nr = { class: "q-chatbot" }, Fr = { class: "q-chatbot__content" }, Tr = { class: "q-chatbot__footer-container" }, Gr = /* @__PURE__ */ T({
|
|
3467
3474
|
name: "ChatBot",
|
|
3468
3475
|
__name: "ChatBot",
|
|
3469
3476
|
props: {
|
|
@@ -3471,7 +3478,7 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3471
3478
|
controllerEndpoint: {},
|
|
3472
3479
|
username: {},
|
|
3473
3480
|
projectPath: {},
|
|
3474
|
-
userImage: { default:
|
|
3481
|
+
userImage: { default: Mr },
|
|
3475
3482
|
chatbotImage: { default: qr },
|
|
3476
3483
|
dateFormat: {},
|
|
3477
3484
|
agentData: { default: () => ({
|
|
@@ -3592,7 +3599,7 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3592
3599
|
);
|
|
3593
3600
|
}
|
|
3594
3601
|
}
|
|
3595
|
-
async function
|
|
3602
|
+
async function L() {
|
|
3596
3603
|
const { data: h, error: A } = await s(
|
|
3597
3604
|
t.username,
|
|
3598
3605
|
t.projectPath,
|
|
@@ -3632,13 +3639,13 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3632
3639
|
h.id !== l.value && await O({ formId: h.formId, key: h.id }), M && oe && await m(M);
|
|
3633
3640
|
},
|
|
3634
3641
|
{ deep: !0 }
|
|
3635
|
-
), (h, A) => (y(), $("div",
|
|
3636
|
-
R("div",
|
|
3637
|
-
D(f(
|
|
3642
|
+
), (h, A) => (y(), $("div", Nr, [
|
|
3643
|
+
R("div", Fr, [
|
|
3644
|
+
D(f(Ar), {
|
|
3638
3645
|
disabled: z.value,
|
|
3639
3646
|
"available-agents": t.availableAgents,
|
|
3640
3647
|
"selected-agent-key": l.value,
|
|
3641
|
-
onClear:
|
|
3648
|
+
onClear: L,
|
|
3642
3649
|
onChangeChat: O
|
|
3643
3650
|
}, null, 8, ["disabled", "available-agents", "selected-agent-key"]),
|
|
3644
3651
|
R("div", {
|
|
@@ -3651,7 +3658,7 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3651
3658
|
key: M.id,
|
|
3652
3659
|
class: Q(S(M.sender))
|
|
3653
3660
|
}, [
|
|
3654
|
-
D(f(
|
|
3661
|
+
D(f(fr), se({ ref_for: !0 }, M, {
|
|
3655
3662
|
"date-format": t.dateFormat,
|
|
3656
3663
|
"user-image": t.userImage,
|
|
3657
3664
|
"chatbot-image": t.chatbotImage,
|
|
@@ -3666,8 +3673,8 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3666
3673
|
], 2))), 128))
|
|
3667
3674
|
], 544)
|
|
3668
3675
|
]),
|
|
3669
|
-
R("div",
|
|
3670
|
-
D(f(
|
|
3676
|
+
R("div", Tr, [
|
|
3677
|
+
D(f(Lr), {
|
|
3671
3678
|
disabled: z.value,
|
|
3672
3679
|
loading: f(p),
|
|
3673
3680
|
onSendMessage: d
|
|
@@ -3677,5 +3684,5 @@ const br = { class: "q-chatbot__dialog-title" }, hr = {
|
|
|
3677
3684
|
}
|
|
3678
3685
|
});
|
|
3679
3686
|
export {
|
|
3680
|
-
|
|
3687
|
+
Gr as default
|
|
3681
3688
|
};
|