@ibiz-template-plugin/ai-chat 0.0.89 → 0.0.91
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.es.js +82 -80
- package/dist/index.legacy.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6157,7 +6157,7 @@ function ji(n, e) {
|
|
|
6157
6157
|
}
|
|
6158
6158
|
return !0;
|
|
6159
6159
|
}
|
|
6160
|
-
let
|
|
6160
|
+
let K = class zs {
|
|
6161
6161
|
/**
|
|
6162
6162
|
@internal
|
|
6163
6163
|
*/
|
|
@@ -6262,7 +6262,7 @@ let q = class zs {
|
|
|
6262
6262
|
return t.sort((i, r) => i.type.rank - r.type.rank), t;
|
|
6263
6263
|
}
|
|
6264
6264
|
};
|
|
6265
|
-
|
|
6265
|
+
K.none = [];
|
|
6266
6266
|
class Wi extends Error {
|
|
6267
6267
|
}
|
|
6268
6268
|
class N {
|
|
@@ -6561,7 +6561,7 @@ class Vn {
|
|
|
6561
6561
|
marks() {
|
|
6562
6562
|
let e = this.parent, t = this.index();
|
|
6563
6563
|
if (e.content.size == 0)
|
|
6564
|
-
return
|
|
6564
|
+
return K.none;
|
|
6565
6565
|
if (this.textOffset)
|
|
6566
6566
|
return e.child(t).marks;
|
|
6567
6567
|
let i = e.maybeChild(t - 1), r = e.maybeChild(t);
|
|
@@ -6728,7 +6728,7 @@ let bt = class Fs {
|
|
|
6728
6728
|
/**
|
|
6729
6729
|
@internal
|
|
6730
6730
|
*/
|
|
6731
|
-
constructor(e, t, i, r =
|
|
6731
|
+
constructor(e, t, i, r = K.none) {
|
|
6732
6732
|
this.type = e, this.attrs = t, this.marks = r, this.content = i || S.empty;
|
|
6733
6733
|
}
|
|
6734
6734
|
/**
|
|
@@ -6842,7 +6842,7 @@ let bt = class Fs {
|
|
|
6842
6842
|
attributes, and marks.
|
|
6843
6843
|
*/
|
|
6844
6844
|
hasMarkup(e, t, i) {
|
|
6845
|
-
return this.type == e && ji(this.attrs, t || e.defaultAttrs || N2) &&
|
|
6845
|
+
return this.type == e && ji(this.attrs, t || e.defaultAttrs || N2) && K.sameSet(this.marks, i || K.none);
|
|
6846
6846
|
}
|
|
6847
6847
|
/**
|
|
6848
6848
|
Create a new node with the same markup as this node, containing
|
|
@@ -7052,12 +7052,12 @@ let bt = class Fs {
|
|
|
7052
7052
|
*/
|
|
7053
7053
|
check() {
|
|
7054
7054
|
this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
|
|
7055
|
-
let e =
|
|
7055
|
+
let e = K.none;
|
|
7056
7056
|
for (let t = 0; t < this.marks.length; t++) {
|
|
7057
7057
|
let i = this.marks[t];
|
|
7058
7058
|
i.type.checkAttrs(i.attrs), e = i.addToSet(e);
|
|
7059
7059
|
}
|
|
7060
|
-
if (!
|
|
7060
|
+
if (!K.sameSet(e, this.marks))
|
|
7061
7061
|
throw new RangeError("Invalid collection of marks for node ".concat(this.type.name, ": ").concat(this.marks.map((t) => t.type.name)));
|
|
7062
7062
|
this.content.forEach((t) => t.check());
|
|
7063
7063
|
}
|
|
@@ -7599,7 +7599,7 @@ let hl = class xd {
|
|
|
7599
7599
|
create(e = null, t, i) {
|
|
7600
7600
|
if (this.isText)
|
|
7601
7601
|
throw new Error("NodeType.create can't construct text nodes");
|
|
7602
|
-
return new bt(this, this.computeAttrs(e), S.from(t),
|
|
7602
|
+
return new bt(this, this.computeAttrs(e), S.from(t), K.setFrom(i));
|
|
7603
7603
|
}
|
|
7604
7604
|
/**
|
|
7605
7605
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -7607,7 +7607,7 @@ let hl = class xd {
|
|
|
7607
7607
|
if it doesn't match.
|
|
7608
7608
|
*/
|
|
7609
7609
|
createChecked(e = null, t, i) {
|
|
7610
|
-
return t = S.from(t), this.checkContent(t), new bt(this, this.computeAttrs(e), t,
|
|
7610
|
+
return t = S.from(t), this.checkContent(t), new bt(this, this.computeAttrs(e), t, K.setFrom(i));
|
|
7611
7611
|
}
|
|
7612
7612
|
/**
|
|
7613
7613
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -7625,7 +7625,7 @@ let hl = class xd {
|
|
|
7625
7625
|
t = o.append(t);
|
|
7626
7626
|
}
|
|
7627
7627
|
let r = this.contentMatch.matchFragment(t), s = r && r.fillBefore(S.empty, !0);
|
|
7628
|
-
return s ? new bt(this, e, t.append(s),
|
|
7628
|
+
return s ? new bt(this, e, t.append(s), K.setFrom(i)) : null;
|
|
7629
7629
|
}
|
|
7630
7630
|
/**
|
|
7631
7631
|
Returns true if the given fragment is valid content for this node
|
|
@@ -7681,7 +7681,7 @@ let hl = class xd {
|
|
|
7681
7681
|
let t;
|
|
7682
7682
|
for (let i = 0; i < e.length; i++)
|
|
7683
7683
|
this.allowsMarkType(e[i].type) ? t && t.push(e[i]) : t || (t = e.slice(0, i));
|
|
7684
|
-
return t ? t.length ? t :
|
|
7684
|
+
return t ? t.length ? t : K.none : e;
|
|
7685
7685
|
}
|
|
7686
7686
|
/**
|
|
7687
7687
|
@internal
|
|
@@ -7722,7 +7722,7 @@ class fr {
|
|
|
7722
7722
|
constructor(e, t, i, r) {
|
|
7723
7723
|
this.name = e, this.rank = t, this.schema = i, this.spec = r, this.attrs = kd(e, r.attrs), this.excluded = null;
|
|
7724
7724
|
let s = bd(this.attrs);
|
|
7725
|
-
this.instance = s ? new
|
|
7725
|
+
this.instance = s ? new K(this, s) : null;
|
|
7726
7726
|
}
|
|
7727
7727
|
/**
|
|
7728
7728
|
Create a mark of this type. `attrs` may be `null` or an object
|
|
@@ -7730,7 +7730,7 @@ class fr {
|
|
|
7730
7730
|
they have defaults, will be added.
|
|
7731
7731
|
*/
|
|
7732
7732
|
create(e = null) {
|
|
7733
|
-
return !e && this.instance ? this.instance : new
|
|
7733
|
+
return !e && this.instance ? this.instance : new K(this, wd(this.attrs, e));
|
|
7734
7734
|
}
|
|
7735
7735
|
/**
|
|
7736
7736
|
@internal
|
|
@@ -7798,7 +7798,7 @@ class Sd {
|
|
|
7798
7798
|
let s = this.marks[r], o = s.spec.excludes;
|
|
7799
7799
|
s.excluded = o == null ? [s] : o == "" ? [] : fl(this, o.split(" "));
|
|
7800
7800
|
}
|
|
7801
|
-
this.nodeFromJSON = (r) => bt.fromJSON(this, r), this.markFromJSON = (r) =>
|
|
7801
|
+
this.nodeFromJSON = (r) => bt.fromJSON(this, r), this.markFromJSON = (r) => K.fromJSON(this, r), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
|
|
7802
7802
|
}
|
|
7803
7803
|
/**
|
|
7804
7804
|
Create a node in this schema. The `type` may be a string or a
|
|
@@ -7822,7 +7822,7 @@ class Sd {
|
|
|
7822
7822
|
*/
|
|
7823
7823
|
text(e, t) {
|
|
7824
7824
|
let i = this.nodes.text;
|
|
7825
|
-
return new Ki(i, i.defaultAttrs, e,
|
|
7825
|
+
return new Ki(i, i.defaultAttrs, e, K.setFrom(t));
|
|
7826
7826
|
}
|
|
7827
7827
|
/**
|
|
7828
7828
|
Create a mark with the given type and attributes.
|
|
@@ -7889,7 +7889,7 @@ let $n = class Vs {
|
|
|
7889
7889
|
*/
|
|
7890
7890
|
parse(e, t = {}) {
|
|
7891
7891
|
let i = new ml(this, t, !1);
|
|
7892
|
-
return i.addAll(e,
|
|
7892
|
+
return i.addAll(e, K.none, t.from, t.to), i.finish();
|
|
7893
7893
|
}
|
|
7894
7894
|
/**
|
|
7895
7895
|
Parses the content of the given DOM node, like
|
|
@@ -7901,7 +7901,7 @@ let $n = class Vs {
|
|
|
7901
7901
|
*/
|
|
7902
7902
|
parseSlice(e, t = {}) {
|
|
7903
7903
|
let i = new ml(this, t, !0);
|
|
7904
|
-
return i.addAll(e,
|
|
7904
|
+
return i.addAll(e, K.none, t.from, t.to), N.maxOpen(i.finish());
|
|
7905
7905
|
}
|
|
7906
7906
|
/**
|
|
7907
7907
|
@internal
|
|
@@ -8023,7 +8023,7 @@ function pl(n, e, t) {
|
|
|
8023
8023
|
}
|
|
8024
8024
|
class wi {
|
|
8025
8025
|
constructor(e, t, i, r, s, o) {
|
|
8026
|
-
this.type = e, this.attrs = t, this.marks = i, this.solid = r, this.options = o, this.content = [], this.activeMarks =
|
|
8026
|
+
this.type = e, this.attrs = t, this.marks = i, this.solid = r, this.options = o, this.content = [], this.activeMarks = K.none, this.match = s || (o & Rn ? null : e.contentMatch);
|
|
8027
8027
|
}
|
|
8028
8028
|
findWrapping(e) {
|
|
8029
8029
|
if (!this.match) {
|
|
@@ -8058,7 +8058,7 @@ class ml {
|
|
|
8058
8058
|
constructor(e, t, i) {
|
|
8059
8059
|
this.parser = e, this.options = t, this.isOpen = i, this.open = 0, this.localPreserveWS = !1;
|
|
8060
8060
|
let r = t.topNode, s, o = pl(null, t.preserveWhitespace, 0) | (i ? Rn : 0);
|
|
8061
|
-
r ? s = new wi(r.type, r.attrs,
|
|
8061
|
+
r ? s = new wi(r.type, r.attrs, K.none, !0, t.topMatch || r.type.contentMatch, o) : i ? s = new wi(null, null, K.none, !0, null, o) : s = new wi(e.schema.topNodeType, null, K.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
|
|
8062
8062
|
}
|
|
8063
8063
|
get top() {
|
|
8064
8064
|
return this.nodes[this.open];
|
|
@@ -8220,7 +8220,7 @@ class ml {
|
|
|
8220
8220
|
this.closeExtra();
|
|
8221
8221
|
let s = this.top;
|
|
8222
8222
|
s.match && (s.match = s.match.matchType(e.type));
|
|
8223
|
-
let o =
|
|
8223
|
+
let o = K.none;
|
|
8224
8224
|
for (let a of r.concat(e.marks))
|
|
8225
8225
|
(s.type ? s.type.allowsMarkType(a.type) : vl(a.type, e.type)) && (o = a.addToSet(o));
|
|
8226
8226
|
return s.content.push(e.mark(o)), !0;
|
|
@@ -8240,7 +8240,7 @@ class ml {
|
|
|
8240
8240
|
o.match = o.match && o.match.matchType(e);
|
|
8241
8241
|
let a = pl(e, s, o.options);
|
|
8242
8242
|
o.options & Rn && o.content.length == 0 && (a |= Rn);
|
|
8243
|
-
let l =
|
|
8243
|
+
let l = K.none;
|
|
8244
8244
|
return i = i.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : vl(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new wi(e, t, l, r, null, a)), this.open++, i;
|
|
8245
8245
|
}
|
|
8246
8246
|
// Make sure all nodes above this.open are finished and added to
|
|
@@ -9993,7 +9993,7 @@ class Vd {
|
|
|
9993
9993
|
let i = this.doc.nodeAt(e);
|
|
9994
9994
|
if (!i)
|
|
9995
9995
|
throw new RangeError("No node at position " + e);
|
|
9996
|
-
if (t instanceof
|
|
9996
|
+
if (t instanceof K)
|
|
9997
9997
|
t.isInSet(i.marks) && this.step(new jt(e, t));
|
|
9998
9998
|
else {
|
|
9999
9999
|
let r = i.marks, s, o = [];
|
|
@@ -10478,7 +10478,7 @@ class v6 extends Vd {
|
|
|
10478
10478
|
this is already the case.
|
|
10479
10479
|
*/
|
|
10480
10480
|
ensureMarks(e) {
|
|
10481
|
-
return
|
|
10481
|
+
return K.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
|
|
10482
10482
|
}
|
|
10483
10483
|
/**
|
|
10484
10484
|
Add a mark to the set of stored marks.
|
|
@@ -10523,7 +10523,7 @@ class v6 extends Vd {
|
|
|
10523
10523
|
*/
|
|
10524
10524
|
replaceSelectionWith(e, t = !0) {
|
|
10525
10525
|
let i = this.selection;
|
|
10526
|
-
return t && (e = e.mark(this.storedMarks || (i.empty ? i.$from.marks() : i.$from.marksAcross(i.$to) ||
|
|
10526
|
+
return t && (e = e.mark(this.storedMarks || (i.empty ? i.$from.marks() : i.$from.marksAcross(i.$to) || K.none))), i.replaceWith(this, e), this;
|
|
10527
10527
|
}
|
|
10528
10528
|
/**
|
|
10529
10529
|
Delete the selection.
|
|
@@ -12206,7 +12206,7 @@ class Ct extends ii {
|
|
|
12206
12206
|
updateChildren(e, t) {
|
|
12207
12207
|
let i = this.node.inlineContent, r = t, s = e.composing ? this.localCompositionInfo(e, t) : null, o = s && s.pos > -1 ? s : null, a = s && s.pos < 0, l = new v3(this, o && o.node, e);
|
|
12208
12208
|
w3(this.node, this.innerDeco, (c, u, d) => {
|
|
12209
|
-
c.spec.marks ? l.syncToMarks(c.spec.marks, i, e) : c.type.side >= 0 && !d && l.syncToMarks(u == this.node.childCount ?
|
|
12209
|
+
c.spec.marks ? l.syncToMarks(c.spec.marks, i, e) : c.type.side >= 0 && !d && l.syncToMarks(u == this.node.childCount ? K.none : this.node.child(u).marks, i, e), l.placeWidget(c, e, r);
|
|
12210
12210
|
}, (c, u, d, f) => {
|
|
12211
12211
|
l.syncToMarks(c.marks, i, e);
|
|
12212
12212
|
let p;
|
|
@@ -15821,7 +15821,7 @@ function Jo(n, e) {
|
|
|
15821
15821
|
function Fh(n) {
|
|
15822
15822
|
return typeof n == "function";
|
|
15823
15823
|
}
|
|
15824
|
-
function
|
|
15824
|
+
function J(n, e = void 0, ...t) {
|
|
15825
15825
|
return Fh(n) ? e ? n.bind(e)(...t) : n(...t) : n;
|
|
15826
15826
|
}
|
|
15827
15827
|
function Nv(n = {}) {
|
|
@@ -15977,22 +15977,22 @@ function Iv(n, e) {
|
|
|
15977
15977
|
};
|
|
15978
15978
|
}, {}), p = dc({
|
|
15979
15979
|
...f,
|
|
15980
|
-
content:
|
|
15981
|
-
marks:
|
|
15982
|
-
group:
|
|
15983
|
-
inline:
|
|
15984
|
-
atom:
|
|
15985
|
-
selectable:
|
|
15986
|
-
draggable:
|
|
15987
|
-
code:
|
|
15988
|
-
whitespace:
|
|
15989
|
-
linebreakReplacement:
|
|
15980
|
+
content: J(A(c, "content", d)),
|
|
15981
|
+
marks: J(A(c, "marks", d)),
|
|
15982
|
+
group: J(A(c, "group", d)),
|
|
15983
|
+
inline: J(A(c, "inline", d)),
|
|
15984
|
+
atom: J(A(c, "atom", d)),
|
|
15985
|
+
selectable: J(A(c, "selectable", d)),
|
|
15986
|
+
draggable: J(A(c, "draggable", d)),
|
|
15987
|
+
code: J(A(c, "code", d)),
|
|
15988
|
+
whitespace: J(A(c, "whitespace", d)),
|
|
15989
|
+
linebreakReplacement: J(
|
|
15990
15990
|
A(c, "linebreakReplacement", d)
|
|
15991
15991
|
),
|
|
15992
|
-
defining:
|
|
15993
|
-
isolating:
|
|
15992
|
+
defining: J(A(c, "defining", d)),
|
|
15993
|
+
isolating: J(A(c, "isolating", d)),
|
|
15994
15994
|
attrs: Object.fromEntries(u.map(hc))
|
|
15995
|
-
}), m =
|
|
15995
|
+
}), m = J(A(c, "parseHTML", d));
|
|
15996
15996
|
m && (p.parseDOM = m.map(
|
|
15997
15997
|
(v) => uc(v, u)
|
|
15998
15998
|
));
|
|
@@ -16019,13 +16019,13 @@ function Iv(n, e) {
|
|
|
16019
16019
|
};
|
|
16020
16020
|
}, {}), p = dc({
|
|
16021
16021
|
...f,
|
|
16022
|
-
inclusive:
|
|
16023
|
-
excludes:
|
|
16024
|
-
group:
|
|
16025
|
-
spanning:
|
|
16026
|
-
code:
|
|
16022
|
+
inclusive: J(A(c, "inclusive", d)),
|
|
16023
|
+
excludes: J(A(c, "excludes", d)),
|
|
16024
|
+
group: J(A(c, "group", d)),
|
|
16025
|
+
spanning: J(A(c, "spanning", d)),
|
|
16026
|
+
code: J(A(c, "code", d)),
|
|
16027
16027
|
attrs: Object.fromEntries(u.map(hc))
|
|
16028
|
-
}), m =
|
|
16028
|
+
}), m = J(A(c, "parseHTML", d));
|
|
16029
16029
|
m && (p.parseDOM = m.map(
|
|
16030
16030
|
(y) => uc(y, u)
|
|
16031
16031
|
));
|
|
@@ -16210,7 +16210,7 @@ function pc(n, e) {
|
|
|
16210
16210
|
name: i.name,
|
|
16211
16211
|
options: i.options,
|
|
16212
16212
|
storage: i.storage
|
|
16213
|
-
}, s =
|
|
16213
|
+
}, s = J(A(i, "group", r));
|
|
16214
16214
|
return typeof s != "string" ? !1 : s.split(" ").includes("list");
|
|
16215
16215
|
}
|
|
16216
16216
|
function Sr(n, {
|
|
@@ -16760,7 +16760,7 @@ var Xo = class {
|
|
|
16760
16760
|
}
|
|
16761
16761
|
get options() {
|
|
16762
16762
|
return {
|
|
16763
|
-
...
|
|
16763
|
+
...J(
|
|
16764
16764
|
A(this, "addOptions", {
|
|
16765
16765
|
name: this.name
|
|
16766
16766
|
})
|
|
@@ -16769,7 +16769,7 @@ var Xo = class {
|
|
|
16769
16769
|
}
|
|
16770
16770
|
get storage() {
|
|
16771
16771
|
return {
|
|
16772
|
-
...
|
|
16772
|
+
...J(
|
|
16773
16773
|
A(this, "addStorage", {
|
|
16774
16774
|
name: this.name,
|
|
16775
16775
|
options: this.options
|
|
@@ -17146,7 +17146,7 @@ var Tr = class {
|
|
|
17146
17146
|
editor: this.editor,
|
|
17147
17147
|
type: ds(e.name, this.schema)
|
|
17148
17148
|
};
|
|
17149
|
-
e.type === "mark" && ((t =
|
|
17149
|
+
e.type === "mark" && ((t = J(A(e, "keepOnSplit", i))) == null || t) && this.splittableMarks.push(e.name);
|
|
17150
17150
|
const r = A(e, "onBeforeCreate", i), s = A(e, "onCreate", i), o = A(e, "onUpdate", i), a = A(
|
|
17151
17151
|
e,
|
|
17152
17152
|
"onSelectionUpdate",
|
|
@@ -18047,7 +18047,7 @@ function M8(n) {
|
|
|
18047
18047
|
return new d8({
|
|
18048
18048
|
find: n.find,
|
|
18049
18049
|
handler: ({ state: e, range: t, match: i }) => {
|
|
18050
|
-
const r =
|
|
18050
|
+
const r = J(n.getAttributes, void 0, i) || {}, { tr: s } = e, o = t.from;
|
|
18051
18051
|
let a = t.to;
|
|
18052
18052
|
const l = n.type.create(r);
|
|
18053
18053
|
if (i[1]) {
|
|
@@ -19534,7 +19534,7 @@ se.create({
|
|
|
19534
19534
|
storage: n.storage
|
|
19535
19535
|
};
|
|
19536
19536
|
return {
|
|
19537
|
-
allowGapCursor: (e =
|
|
19537
|
+
allowGapCursor: (e = J(A(n, "allowGapCursor", t))) != null ? e : null
|
|
19538
19538
|
};
|
|
19539
19539
|
}
|
|
19540
19540
|
});
|
|
@@ -23187,13 +23187,15 @@ class gf {
|
|
|
23187
23187
|
const r = this.aiTopic.getCurrentTopicByID(
|
|
23188
23188
|
e.id
|
|
23189
23189
|
);
|
|
23190
|
-
if (r && (e.sequence = r.sequence, e.isTop = r.isTop),
|
|
23191
|
-
|
|
23192
|
-
|
|
23193
|
-
|
|
23194
|
-
|
|
23195
|
-
|
|
23196
|
-
|
|
23190
|
+
if (r && (e.sequence = r.sequence, e.isTop = r.isTop), !t.activeAIAgentID) {
|
|
23191
|
+
if (r && r.aiChat && r.aiChat.activeAIAgentID)
|
|
23192
|
+
t.activeAIAgentID = r.aiChat.activeAIAgentID, e.aiChat.activeAIAgentID = r.aiChat.activeAIAgentID;
|
|
23193
|
+
else if (t.aiAgentlist && t.aiAgentlist.length > 0 && !t.activeAIAgentID) {
|
|
23194
|
+
const o = t.aiAgentlist.find(
|
|
23195
|
+
(a) => a.default === 1
|
|
23196
|
+
);
|
|
23197
|
+
o ? (t.activeAIAgentID = o.id, e.aiChat.activeAIAgentID = o.id) : (t.activeAIAgentID = t.aiAgentlist[0].id, e.aiChat.activeAIAgentID = t.aiAgentlist[0].id);
|
|
23198
|
+
}
|
|
23197
23199
|
}
|
|
23198
23200
|
r && r.aiChat && r.aiChat.sessionid && (t.sessionid = r.aiChat.sessionid, e.aiChat.sessionid = r.aiChat.sessionid);
|
|
23199
23201
|
const s = i.resourceMode;
|
|
@@ -23674,7 +23676,7 @@ const Oe = new z("chat-agent-setting"), L7 = (n) => {
|
|
|
23674
23676
|
a ? /* @__PURE__ */ h("div", { className: Oe.e("dropdown"), ref: o, children: /* @__PURE__ */ h("ul", { className: Oe.em("dropdown", "list"), children: i.map((p) => f(p)) }) }) : null
|
|
23675
23677
|
] });
|
|
23676
23678
|
};
|
|
23677
|
-
const
|
|
23679
|
+
const q = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpeechRecognition, rr = (n) => {
|
|
23678
23680
|
var C;
|
|
23679
23681
|
const [e, t] = j(!1);
|
|
23680
23682
|
bo(Mr);
|
|
@@ -23731,10 +23733,10 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23731
23733
|
return /* @__PURE__ */ h(
|
|
23732
23734
|
"div",
|
|
23733
23735
|
{
|
|
23734
|
-
className: "".concat(
|
|
23736
|
+
className: "".concat(q.b("wrapper"), " ").concat(q.is("expand", n.controller.inputExpand.value)),
|
|
23735
23737
|
children: [
|
|
23736
|
-
/* @__PURE__ */ h("div", { className:
|
|
23737
|
-
/* @__PURE__ */ h("div", { className:
|
|
23738
|
+
/* @__PURE__ */ h("div", { className: q.b("material-wrapper"), children: /* @__PURE__ */ h(P7, { controller: n.controller }) }),
|
|
23739
|
+
/* @__PURE__ */ h("div", { className: q.b("main-wrapper"), children: [
|
|
23738
23740
|
/* @__PURE__ */ h(
|
|
23739
23741
|
pf,
|
|
23740
23742
|
{
|
|
@@ -23750,15 +23752,15 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23750
23752
|
onKeyDown: d
|
|
23751
23753
|
}
|
|
23752
23754
|
),
|
|
23753
|
-
/* @__PURE__ */ h("div", { className:
|
|
23754
|
-
/* @__PURE__ */ h("div", { className:
|
|
23755
|
+
/* @__PURE__ */ h("div", { className: q.b("action-wrapper"), children: [
|
|
23756
|
+
/* @__PURE__ */ h("div", { className: q.b("left-action-wrapper"), children: [
|
|
23755
23757
|
/* @__PURE__ */ h(
|
|
23756
23758
|
id,
|
|
23757
23759
|
{
|
|
23758
23760
|
showBorder: !1,
|
|
23759
23761
|
enableSearch: !0,
|
|
23760
23762
|
placeholder: "Auto",
|
|
23761
|
-
className:
|
|
23763
|
+
className: q.b("agent-select"),
|
|
23762
23764
|
popperStyle: { height: "220px" },
|
|
23763
23765
|
value: n.controller.activeAIAgentID,
|
|
23764
23766
|
options: n.controller.agentList.value,
|
|
@@ -23771,7 +23773,7 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23771
23773
|
n.controller.enableKnowledgeBaseSelect.value && /* @__PURE__ */ h(
|
|
23772
23774
|
e2,
|
|
23773
23775
|
{
|
|
23774
|
-
className: "".concat(
|
|
23776
|
+
className: "".concat(q.b("setting-wrapper"), " ").concat(q.is(
|
|
23775
23777
|
"disabled",
|
|
23776
23778
|
!n.controller.enableKnowledgeBaseState.value
|
|
23777
23779
|
)),
|
|
@@ -23788,11 +23790,11 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23788
23790
|
),
|
|
23789
23791
|
n.controller.enableRecallConfigSetting.value && n.controller.agentList.value.length > 0 ? /* @__PURE__ */ h(L7, { controller: n.controller }) : null
|
|
23790
23792
|
] }),
|
|
23791
|
-
/* @__PURE__ */ h("div", { className:
|
|
23793
|
+
/* @__PURE__ */ h("div", { className: q.b("right-action-wrapper"), children: [
|
|
23792
23794
|
/* @__PURE__ */ h(
|
|
23793
23795
|
"div",
|
|
23794
23796
|
{
|
|
23795
|
-
className: "".concat(
|
|
23797
|
+
className: "".concat(q.be("right-action-wrapper", "action-item"), " ").concat(q.is(
|
|
23796
23798
|
"disabled",
|
|
23797
23799
|
n.controller.isLoading.value
|
|
23798
23800
|
)),
|
|
@@ -23801,17 +23803,17 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23801
23803
|
Hi,
|
|
23802
23804
|
{
|
|
23803
23805
|
triggerMode: "hover",
|
|
23804
|
-
content: /* @__PURE__ */ h("div", { className:
|
|
23806
|
+
content: /* @__PURE__ */ h("div", { className: q.b("pop-actions"), children: [
|
|
23805
23807
|
/* @__PURE__ */ h(
|
|
23806
23808
|
"div",
|
|
23807
23809
|
{
|
|
23808
|
-
className:
|
|
23810
|
+
className: q.b("pop-action-item"),
|
|
23809
23811
|
onClick: (w) => {
|
|
23810
23812
|
f(w);
|
|
23811
23813
|
},
|
|
23812
23814
|
children: [
|
|
23813
|
-
/* @__PURE__ */ h("span", { className:
|
|
23814
|
-
/* @__PURE__ */ h("span", { className:
|
|
23815
|
+
/* @__PURE__ */ h("span", { className: q.b("pop-action-item-icon"), children: /* @__PURE__ */ h(Xu, {}) }),
|
|
23816
|
+
/* @__PURE__ */ h("span", { className: q.b("pop-action-item-title"), children: k.t.value("documentation") })
|
|
23815
23817
|
]
|
|
23816
23818
|
}
|
|
23817
23819
|
),
|
|
@@ -23820,12 +23822,12 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23820
23822
|
return /* @__PURE__ */ h(
|
|
23821
23823
|
"div",
|
|
23822
23824
|
{
|
|
23823
|
-
className:
|
|
23825
|
+
className: q.b("pop-action-item"),
|
|
23824
23826
|
onClick: (I) => {
|
|
23825
23827
|
p(I, w);
|
|
23826
23828
|
},
|
|
23827
23829
|
children: [
|
|
23828
|
-
/* @__PURE__ */ h("span", { className:
|
|
23830
|
+
/* @__PURE__ */ h("span", { className: q.b("pop-action-item-icon"), children: typeof w.icon == "function" ? w.icon() : ((x = w.icon) == null ? void 0 : x.showIcon) && /* @__PURE__ */ h(Je, { children: (T = w.icon) != null && T.cssClass ? /* @__PURE__ */ h("i", { className: w.icon.cssClass }) : (M = w.icon) != null && M.imagePath ? lr(w.icon.imagePath) ? /* @__PURE__ */ h(
|
|
23829
23831
|
"div",
|
|
23830
23832
|
{
|
|
23831
23833
|
dangerouslySetInnerHTML: {
|
|
@@ -23833,7 +23835,7 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23833
23835
|
}
|
|
23834
23836
|
}
|
|
23835
23837
|
) : /* @__PURE__ */ h("img", { src: w.icon.imagePath }) : null }) }),
|
|
23836
|
-
/* @__PURE__ */ h("span", { className:
|
|
23838
|
+
/* @__PURE__ */ h("span", { className: q.b("pop-action-item-title"), children: w.label })
|
|
23837
23839
|
]
|
|
23838
23840
|
},
|
|
23839
23841
|
w.id
|
|
@@ -23852,7 +23854,7 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23852
23854
|
"div",
|
|
23853
23855
|
{
|
|
23854
23856
|
title: r.value ? k.t.value("voiceInputProgress") : k.t.value("voiceInput"),
|
|
23855
|
-
className: "".concat(
|
|
23857
|
+
className: "".concat(q.be("right-action-wrapper", "action-item"), " ").concat(q.is(
|
|
23856
23858
|
"disabled",
|
|
23857
23859
|
n.controller.isLoading.value
|
|
23858
23860
|
)),
|
|
@@ -23864,7 +23866,7 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23864
23866
|
"div",
|
|
23865
23867
|
{
|
|
23866
23868
|
title: k.t.value("stopGenerating"),
|
|
23867
|
-
className: "".concat(
|
|
23869
|
+
className: "".concat(q.be("right-action-wrapper", "action-item"), " ").concat(q.is("send", !0)),
|
|
23868
23870
|
onClick: u,
|
|
23869
23871
|
children: /* @__PURE__ */ h(Sg, {})
|
|
23870
23872
|
}
|
|
@@ -23872,12 +23874,12 @@ const J = new z("chat-input"), Tc = window.SpeechRecognition || window.webkitSpe
|
|
|
23872
23874
|
"div",
|
|
23873
23875
|
{
|
|
23874
23876
|
title: k.t.value("sendMessage"),
|
|
23875
|
-
className: "".concat(
|
|
23877
|
+
className: "".concat(q.be("right-action-wrapper", "action-item"), " ").concat(q.is(
|
|
23876
23878
|
"disabled",
|
|
23877
23879
|
l.value
|
|
23878
|
-
)),
|
|
23880
|
+
), " ").concat(q.is("send", !0)),
|
|
23879
23881
|
onClick: c,
|
|
23880
|
-
children: /* @__PURE__ */ h(cg, {})
|
|
23882
|
+
children: /* @__PURE__ */ h(cg, { className: q.e("send-icon") })
|
|
23881
23883
|
}
|
|
23882
23884
|
)
|
|
23883
23885
|
] })
|