@ibiz-template-plugin/ai-chat 0.0.18 → 0.0.19
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
CHANGED
|
@@ -2,9 +2,9 @@ import './style.css';
|
|
|
2
2
|
var Sn = Object.defineProperty;
|
|
3
3
|
var kn = (n, e, t) => e in n ? Sn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
4
4
|
var x = (n, e, t) => (kn(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
5
|
-
import
|
|
5
|
+
import Pe from "interactjs";
|
|
6
6
|
import Vt from "cherry-markdown";
|
|
7
|
-
var
|
|
7
|
+
var Le, w, qt, jt, ne, ct, Yt, Xe, Xt, re = {}, Zt = [], Nn = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ze = Array.isArray;
|
|
8
8
|
function G(n, e) {
|
|
9
9
|
for (var t in e)
|
|
10
10
|
n[t] = e[t];
|
|
@@ -18,7 +18,7 @@ function j(n, e, t) {
|
|
|
18
18
|
var i, s, o, a = {};
|
|
19
19
|
for (o in e)
|
|
20
20
|
o == "key" ? i = e[o] : o == "ref" ? s = e[o] : a[o] = e[o];
|
|
21
|
-
if (arguments.length > 2 && (a.children = arguments.length > 3 ?
|
|
21
|
+
if (arguments.length > 2 && (a.children = arguments.length > 3 ? Le.call(arguments, 2) : t), typeof n == "function" && n.defaultProps != null)
|
|
22
22
|
for (o in n.defaultProps)
|
|
23
23
|
a[o] === void 0 && (a[o] = n.defaultProps[o]);
|
|
24
24
|
return Se(n, a, i, s, null);
|
|
@@ -55,21 +55,21 @@ function Jt(n) {
|
|
|
55
55
|
return Jt(n);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Ze(n) {
|
|
59
59
|
(!n.__d && (n.__d = !0) && ne.push(n) && !Ee.__r++ || ct !== w.debounceRendering) && ((ct = w.debounceRendering) || Yt)(Ee);
|
|
60
60
|
}
|
|
61
61
|
function Ee() {
|
|
62
62
|
var n, e, t, i, s, o, a, r, u;
|
|
63
|
-
for (ne.sort(
|
|
64
|
-
n.__d && (e = ne.length, i = void 0, s = void 0, o = void 0, r = (a = (t = n).__v).__e, (u = t.__P) && (i = [], s = [], (o = G({}, a)).__v = a.__v + 1,
|
|
63
|
+
for (ne.sort(Xe); n = ne.shift(); )
|
|
64
|
+
n.__d && (e = ne.length, i = void 0, s = void 0, o = void 0, r = (a = (t = n).__v).__e, (u = t.__P) && (i = [], s = [], (o = G({}, a)).__v = a.__v + 1, tt(u, a, o, t.__n, u.ownerSVGElement !== void 0, a.__h != null ? [r] : null, i, r == null ? ge(a) : r, a.__h, s), tn(i, a, s), a.__e != r && Jt(a)), ne.length > e && ne.sort(Xe));
|
|
65
65
|
Ee.__r = 0;
|
|
66
66
|
}
|
|
67
67
|
function Kt(n, e, t, i, s, o, a, r, u, h, p) {
|
|
68
68
|
var l, v, _, d, f, m, b, g, T, C = 0, S = i && i.__k || Zt, O = S.length, L = O, U = e.length;
|
|
69
69
|
for (t.__k = [], l = 0; l < U; l++)
|
|
70
|
-
(d = t.__k[l] = (d = e[l]) == null || typeof d == "boolean" || typeof d == "function" ? null : typeof d == "string" || typeof d == "number" || typeof d == "bigint" ? Se(null, d, null, null, d) :
|
|
70
|
+
(d = t.__k[l] = (d = e[l]) == null || typeof d == "boolean" || typeof d == "function" ? null : typeof d == "string" || typeof d == "number" || typeof d == "bigint" ? Se(null, d, null, null, d) : ze(d) ? Se(Y, { children: d }, null, null, null) : d.__b > 0 ? Se(d.type, d.props, d.key, d.ref ? d.ref : null, d.__v) : d) != null ? (d.__ = t, d.__b = t.__b + 1, (g = En(d, S, b = l + C, L)) === -1 ? _ = re : (_ = S[g] || re, S[g] = void 0, L--), tt(n, d, _, s, o, a, r, u, h, p), f = d.__e, (v = d.ref) && _.ref != v && (_.ref && nt(_.ref, null, d), p.push(v, d.__c || f, d)), f != null && (m == null && (m = f), (T = _ === re || _.__v === null) ? g == -1 && C-- : g !== b && (g === b + 1 ? C++ : g > b ? L > U - b ? C += g - b : C-- : C = g < b && g == b - 1 ? g - b : 0), b = l + C, typeof d.type != "function" || g === b && _.__k !== d.__k ? typeof d.type == "function" || g === b && !T ? d.__d !== void 0 ? (u = d.__d, d.__d = void 0) : u = f.nextSibling : u = en(n, f, u) : u = Qt(d, u, n), typeof t.type == "function" && (t.__d = u))) : (_ = S[l]) && _.key == null && _.__e && (_.__e == u && (_.__ = i, u = ge(_)), Ge(_, _, !1), S[l] = null);
|
|
71
71
|
for (t.__e = m, l = O; l--; )
|
|
72
|
-
S[l] != null && (typeof t.type == "function" && S[l].__e != null && S[l].__e == t.__d && (t.__d = S[l].__e.nextSibling),
|
|
72
|
+
S[l] != null && (typeof t.type == "function" && S[l].__e != null && S[l].__e == t.__d && (t.__d = S[l].__e.nextSibling), Ge(S[l], S[l]));
|
|
73
73
|
}
|
|
74
74
|
function Qt(n, e, t) {
|
|
75
75
|
for (var i, s = n.__k, o = 0; s && o < s.length; o++)
|
|
@@ -77,7 +77,7 @@ function Qt(n, e, t) {
|
|
|
77
77
|
return e;
|
|
78
78
|
}
|
|
79
79
|
function Me(n, e) {
|
|
80
|
-
return e = e || [], n == null || typeof n == "boolean" || (
|
|
80
|
+
return e = e || [], n == null || typeof n == "boolean" || (ze(n) ? n.some(function(t) {
|
|
81
81
|
Me(t, e);
|
|
82
82
|
}) : e.push(n)), e;
|
|
83
83
|
}
|
|
@@ -153,7 +153,7 @@ function dt(n) {
|
|
|
153
153
|
function ht(n) {
|
|
154
154
|
return this.l[n.type + !0](w.event ? w.event(n) : n);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function tt(n, e, t, i, s, o, a, r, u, h) {
|
|
157
157
|
var p, l, v, _, d, f, m, b, g, T, C, S, O, L, U, z = e.type;
|
|
158
158
|
if (e.constructor !== void 0)
|
|
159
159
|
return null;
|
|
@@ -184,7 +184,7 @@ function et(n, e, t, i, s, o, a, r, u, h) {
|
|
|
184
184
|
do
|
|
185
185
|
l.__d = !1, S && S(e), p = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
186
186
|
while (l.__d && ++O < 25);
|
|
187
|
-
l.state = l.__s, l.getChildContext != null && (i = G(G({}, i), l.getChildContext())), v || l.getSnapshotBeforeUpdate == null || (f = l.getSnapshotBeforeUpdate(_, d)), Kt(n,
|
|
187
|
+
l.state = l.__s, l.getChildContext != null && (i = G(G({}, i), l.getChildContext())), v || l.getSnapshotBeforeUpdate == null || (f = l.getSnapshotBeforeUpdate(_, d)), Kt(n, ze(U = p != null && p.type === Y && p.key == null ? p.props.children : p) ? U : [U], e, t, i, s, o, a, r, u, h), l.base = e.__e, e.__h = null, l.__h.length && a.push(l), m && (l.__E = l.__ = null);
|
|
188
188
|
} catch (ye) {
|
|
189
189
|
e.__v = null, (u || o != null) && (e.__e = r, e.__h = !!u, o[o.indexOf(r)] = null), w.__e(ye, e, t);
|
|
190
190
|
}
|
|
@@ -194,7 +194,7 @@ function et(n, e, t, i, s, o, a, r, u, h) {
|
|
|
194
194
|
}
|
|
195
195
|
function tn(n, e, t) {
|
|
196
196
|
for (var i = 0; i < t.length; i++)
|
|
197
|
-
|
|
197
|
+
nt(t[i], t[++i], t[++i]);
|
|
198
198
|
w.__c && w.__c(e, n), n.some(function(s) {
|
|
199
199
|
try {
|
|
200
200
|
n = s.__h, s.__h = [], n.some(function(o) {
|
|
@@ -222,7 +222,7 @@ function $n(n, e, t, i, s, o, a, r, u) {
|
|
|
222
222
|
if (d === null)
|
|
223
223
|
v === _ || r && n.data === _ || (n.data = _);
|
|
224
224
|
else {
|
|
225
|
-
if (o = o &&
|
|
225
|
+
if (o = o && Le.call(n.childNodes), p = (v = t.props || re).dangerouslySetInnerHTML, l = _.dangerouslySetInnerHTML, !r) {
|
|
226
226
|
if (o != null)
|
|
227
227
|
for (v = {}, f = 0; f < n.attributes.length; f++)
|
|
228
228
|
v[n.attributes[f].name] = n.attributes[f].value;
|
|
@@ -230,23 +230,23 @@ function $n(n, e, t, i, s, o, a, r, u) {
|
|
|
230
230
|
}
|
|
231
231
|
if (Mn(n, _, v, s, r), l)
|
|
232
232
|
e.__k = [];
|
|
233
|
-
else if (Kt(n,
|
|
233
|
+
else if (Kt(n, ze(f = e.props.children) ? f : [f], e, t, i, s && d !== "foreignObject", o, a, o ? o[0] : t.__k && ge(t, 0), r, u), o != null)
|
|
234
234
|
for (f = o.length; f--; )
|
|
235
235
|
o[f] != null && Gt(o[f]);
|
|
236
236
|
r || ("value" in _ && (f = _.value) !== void 0 && (f !== n.value || d === "progress" && !f || d === "option" && f !== v.value) && $e(n, "value", f, v.value, !1), "checked" in _ && (f = _.checked) !== void 0 && f !== n.checked && $e(n, "checked", f, v.checked, !1));
|
|
237
237
|
}
|
|
238
238
|
return n;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function nt(n, e, t) {
|
|
241
241
|
try {
|
|
242
242
|
typeof n == "function" ? n(e) : n.current = e;
|
|
243
243
|
} catch (i) {
|
|
244
244
|
w.__e(i, t);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Ge(n, e, t) {
|
|
248
248
|
var i, s;
|
|
249
|
-
if (w.unmount && w.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e ||
|
|
249
|
+
if (w.unmount && w.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || nt(i, null, e)), (i = n.__c) != null) {
|
|
250
250
|
if (i.componentWillUnmount)
|
|
251
251
|
try {
|
|
252
252
|
i.componentWillUnmount();
|
|
@@ -257,7 +257,7 @@ function Ze(n, e, t) {
|
|
|
257
257
|
}
|
|
258
258
|
if (i = n.__k)
|
|
259
259
|
for (s = 0; s < i.length; s++)
|
|
260
|
-
i[s] &&
|
|
260
|
+
i[s] && Ge(i[s], e, t || typeof n.type != "function");
|
|
261
261
|
t || n.__e == null || Gt(n.__e), n.__ = n.__e = n.__d = void 0;
|
|
262
262
|
}
|
|
263
263
|
function An(n, e, t) {
|
|
@@ -265,7 +265,7 @@ function An(n, e, t) {
|
|
|
265
265
|
}
|
|
266
266
|
function ae(n, e, t) {
|
|
267
267
|
var i, s, o, a;
|
|
268
|
-
w.__ && w.__(n, e), s = (i = typeof t == "function") ? null : t && t.__k || e.__k, o = [], a = [],
|
|
268
|
+
w.__ && w.__(n, e), s = (i = typeof t == "function") ? null : t && t.__k || e.__k, o = [], a = [], tt(e, n = (!i && t || e).__k = j(Y, null, [n]), s || re, re, e.ownerSVGElement !== void 0, !i && t ? [t] : s ? null : e.firstChild ? Le.call(e.childNodes) : null, o, !i && t ? t : s ? s.__e : e.firstChild, i, a), tn(o, n, a);
|
|
269
269
|
}
|
|
270
270
|
function In(n, e) {
|
|
271
271
|
var t = { __c: e = "__cC" + Xt++, __: n, Consumer: function(i, s) {
|
|
@@ -276,7 +276,7 @@ function In(n, e) {
|
|
|
276
276
|
return o;
|
|
277
277
|
}, this.shouldComponentUpdate = function(a) {
|
|
278
278
|
this.props.value !== a.value && s.some(function(r) {
|
|
279
|
-
r.__e = !0,
|
|
279
|
+
r.__e = !0, Ze(r);
|
|
280
280
|
});
|
|
281
281
|
}, this.sub = function(a) {
|
|
282
282
|
s.push(a);
|
|
@@ -288,7 +288,7 @@ function In(n, e) {
|
|
|
288
288
|
} };
|
|
289
289
|
return t.Provider.__ = t.Consumer.contextType = t;
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
Le = Zt.slice, w = { __e: function(n, e, t, i) {
|
|
292
292
|
for (var s, o, a; e = e.__; )
|
|
293
293
|
if ((s = e.__c) && !s.__)
|
|
294
294
|
try {
|
|
@@ -302,10 +302,10 @@ De = Zt.slice, w = { __e: function(n, e, t, i) {
|
|
|
302
302
|
return n != null && n.constructor === void 0;
|
|
303
303
|
}, F.prototype.setState = function(n, e) {
|
|
304
304
|
var t;
|
|
305
|
-
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = G({}, this.state), typeof n == "function" && (n = n(G({}, t), this.props)), n && G(t, n), n != null && this.__v && (e && this._sb.push(e),
|
|
305
|
+
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = G({}, this.state), typeof n == "function" && (n = n(G({}, t), this.props)), n && G(t, n), n != null && this.__v && (e && this._sb.push(e), Ze(this));
|
|
306
306
|
}, F.prototype.forceUpdate = function(n) {
|
|
307
|
-
this.__v && (this.__e = !0, n && this.__h.push(n),
|
|
308
|
-
}, F.prototype.render = Y, ne = [], Yt = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout,
|
|
307
|
+
this.__v && (this.__e = !0, n && this.__h.push(n), Ze(this));
|
|
308
|
+
}, F.prototype.render = Y, ne = [], Yt = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Xe = function(n, e) {
|
|
309
309
|
return n.__v.__b - e.__v.__b;
|
|
310
310
|
}, Ee.__r = 0, Xt = 0;
|
|
311
311
|
const Dn = "ibiz", Ln = "is-";
|
|
@@ -678,7 +678,7 @@ ve.posix = ve;
|
|
|
678
678
|
function Z() {
|
|
679
679
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Ae() {
|
|
682
682
|
return "".concat(Z() + Z(), "-").concat(Z(), "-").concat(Z(), "-").concat(Z(), "-").concat(Z()).concat(Z()).concat(Z());
|
|
683
683
|
}
|
|
684
684
|
const Hn = /<svg\b[^>]*>[\s\S]*?<\/svg>/;
|
|
@@ -1224,7 +1224,7 @@ class Bn {
|
|
|
1224
1224
|
}), i.appendChild(t.createTextNode("\n")), t.appendChild(i), new XMLSerializer().serializeToString(t).replace(/></g, ">\n<");
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Je(n) {
|
|
1228
1228
|
return n.x >= 0 && n.x <= 1 && n.y >= 0 && n.y <= 1;
|
|
1229
1229
|
}
|
|
1230
1230
|
function on(n, e, t, i) {
|
|
@@ -1234,8 +1234,8 @@ function on(n, e, t, i) {
|
|
|
1234
1234
|
y: r
|
|
1235
1235
|
};
|
|
1236
1236
|
}
|
|
1237
|
-
var le, k,
|
|
1238
|
-
function
|
|
1237
|
+
var le, k, Re, ft, we = 0, an = [], ke = [], vt = w.__b, mt = w.__r, _t = w.diffed, gt = w.__c, wt = w.unmount;
|
|
1238
|
+
function He(n, e) {
|
|
1239
1239
|
w.__h && w.__h(k, n, we || e), we = 0;
|
|
1240
1240
|
var t = k.__H || (k.__H = { __: [], __h: [] });
|
|
1241
1241
|
return n >= t.__.length && t.__.push({ __V: ke }), t.__[n];
|
|
@@ -1244,7 +1244,7 @@ function K(n) {
|
|
|
1244
1244
|
return we = 1, Pn(ln, n);
|
|
1245
1245
|
}
|
|
1246
1246
|
function Pn(n, e, t) {
|
|
1247
|
-
var i =
|
|
1247
|
+
var i = He(le++, 2);
|
|
1248
1248
|
if (i.t = n, !i.__c && (i.__ = [t ? t(e) : ln(void 0, e), function(r) {
|
|
1249
1249
|
var u = i.__N ? i.__N[0] : i.__[0], h = i.t(u, r);
|
|
1250
1250
|
u !== h && (i.__N = [h, i.__[1]], i.__c.setState({}));
|
|
@@ -1280,7 +1280,7 @@ function Pn(n, e, t) {
|
|
|
1280
1280
|
return i.__N || i.__;
|
|
1281
1281
|
}
|
|
1282
1282
|
function D(n, e) {
|
|
1283
|
-
var t =
|
|
1283
|
+
var t = He(le++, 3);
|
|
1284
1284
|
!w.__s && cn(t.__H, e) && (t.__ = n, t.i = e, k.__H.__h.push(t));
|
|
1285
1285
|
}
|
|
1286
1286
|
function P(n) {
|
|
@@ -1289,23 +1289,23 @@ function P(n) {
|
|
|
1289
1289
|
}, []);
|
|
1290
1290
|
}
|
|
1291
1291
|
function X(n, e) {
|
|
1292
|
-
var t =
|
|
1292
|
+
var t = He(le++, 7);
|
|
1293
1293
|
return cn(t.__H, e) ? (t.__V = n(), t.i = e, t.__h = n, t.__V) : t.__;
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function Fe(n, e) {
|
|
1296
1296
|
return we = 8, X(function() {
|
|
1297
1297
|
return n;
|
|
1298
1298
|
}, e);
|
|
1299
1299
|
}
|
|
1300
1300
|
function rn(n) {
|
|
1301
|
-
var e = k.context[n.__c], t =
|
|
1301
|
+
var e = k.context[n.__c], t = He(le++, 9);
|
|
1302
1302
|
return t.c = n, e ? (t.__ == null && (t.__ = !0, e.sub(k)), e.props.value) : n.__;
|
|
1303
1303
|
}
|
|
1304
1304
|
function Rn() {
|
|
1305
1305
|
for (var n; n = an.shift(); )
|
|
1306
1306
|
if (n.__P && n.__H)
|
|
1307
1307
|
try {
|
|
1308
|
-
n.__H.__h.forEach(Ne), n.__H.__h.forEach(
|
|
1308
|
+
n.__H.__h.forEach(Ne), n.__H.__h.forEach(Ke), n.__H.__h = [];
|
|
1309
1309
|
} catch (e) {
|
|
1310
1310
|
n.__H.__h = [], w.__e(e, n.__v);
|
|
1311
1311
|
}
|
|
@@ -1315,20 +1315,20 @@ w.__b = function(n) {
|
|
|
1315
1315
|
}, w.__r = function(n) {
|
|
1316
1316
|
mt && mt(n), le = 0;
|
|
1317
1317
|
var e = (k = n.__c).__H;
|
|
1318
|
-
e && (
|
|
1318
|
+
e && (Re === k ? (e.__h = [], k.__h = [], e.__.forEach(function(t) {
|
|
1319
1319
|
t.__N && (t.__ = t.__N), t.__V = ke, t.__N = t.i = void 0;
|
|
1320
|
-
})) : (e.__h.forEach(Ne), e.__h.forEach(
|
|
1320
|
+
})) : (e.__h.forEach(Ne), e.__h.forEach(Ke), e.__h = [], le = 0)), Re = k;
|
|
1321
1321
|
}, w.diffed = function(n) {
|
|
1322
1322
|
_t && _t(n);
|
|
1323
1323
|
var e = n.__c;
|
|
1324
1324
|
e && e.__H && (e.__H.__h.length && (an.push(e) !== 1 && ft === w.requestAnimationFrame || ((ft = w.requestAnimationFrame) || Fn)(Rn)), e.__H.__.forEach(function(t) {
|
|
1325
1325
|
t.i && (t.__H = t.i), t.__V !== ke && (t.__ = t.__V), t.i = void 0, t.__V = ke;
|
|
1326
|
-
})),
|
|
1326
|
+
})), Re = k = null;
|
|
1327
1327
|
}, w.__c = function(n, e) {
|
|
1328
1328
|
e.some(function(t) {
|
|
1329
1329
|
try {
|
|
1330
1330
|
t.__h.forEach(Ne), t.__h = t.__h.filter(function(i) {
|
|
1331
|
-
return !i.__ ||
|
|
1331
|
+
return !i.__ || Ke(i);
|
|
1332
1332
|
});
|
|
1333
1333
|
} catch (i) {
|
|
1334
1334
|
e.some(function(s) {
|
|
@@ -1358,7 +1358,7 @@ function Ne(n) {
|
|
|
1358
1358
|
var e = k, t = n.__c;
|
|
1359
1359
|
typeof t == "function" && (n.__c = void 0, t()), k = e;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Ke(n) {
|
|
1362
1362
|
var e = k;
|
|
1363
1363
|
n.__c = n.__(), k = e;
|
|
1364
1364
|
}
|
|
@@ -1370,7 +1370,7 @@ function cn(n, e) {
|
|
|
1370
1370
|
function ln(n, e) {
|
|
1371
1371
|
return typeof e == "function" ? e(n) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Oe() {
|
|
1374
1374
|
throw new Error("Cycle detected");
|
|
1375
1375
|
}
|
|
1376
1376
|
var Un = Symbol.for("preact-signals");
|
|
@@ -1380,7 +1380,7 @@ function st() {
|
|
|
1380
1380
|
else {
|
|
1381
1381
|
for (var n, e = !1; me !== void 0; ) {
|
|
1382
1382
|
var t = me;
|
|
1383
|
-
for (me = void 0,
|
|
1383
|
+
for (me = void 0, Qe++; t !== void 0; ) {
|
|
1384
1384
|
var i = t.o;
|
|
1385
1385
|
if (t.o = void 0, t.f &= -3, !(8 & t.f) && dn(t))
|
|
1386
1386
|
try {
|
|
@@ -1391,11 +1391,11 @@ function st() {
|
|
|
1391
1391
|
t = i;
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
|
-
if (
|
|
1394
|
+
if (Qe = 0, ce--, e)
|
|
1395
1395
|
throw n;
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
var N = void 0, me = void 0, ce = 0,
|
|
1398
|
+
var N = void 0, me = void 0, ce = 0, Qe = 0, Ie = 0;
|
|
1399
1399
|
function un(n) {
|
|
1400
1400
|
if (N !== void 0) {
|
|
1401
1401
|
var e = n.n;
|
|
@@ -1452,7 +1452,7 @@ Object.defineProperty(A.prototype, "value", { get: function() {
|
|
|
1452
1452
|
if (N instanceof Q && function() {
|
|
1453
1453
|
throw new Error("Computed cannot have side-effects");
|
|
1454
1454
|
}(), n !== this.v) {
|
|
1455
|
-
|
|
1455
|
+
Qe > 100 && Oe(), this.v = n, this.i++, Ie++, ce++;
|
|
1456
1456
|
try {
|
|
1457
1457
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1458
1458
|
e.t.N();
|
|
@@ -1487,14 +1487,14 @@ function pn(n) {
|
|
|
1487
1487
|
n.s = t;
|
|
1488
1488
|
}
|
|
1489
1489
|
function Q(n) {
|
|
1490
|
-
A.call(this, void 0), this.x = n, this.s = void 0, this.g =
|
|
1490
|
+
A.call(this, void 0), this.x = n, this.s = void 0, this.g = Ie - 1, this.f = 4;
|
|
1491
1491
|
}
|
|
1492
1492
|
(Q.prototype = new A()).h = function() {
|
|
1493
1493
|
if (this.f &= -3, 1 & this.f)
|
|
1494
1494
|
return !1;
|
|
1495
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1495
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Ie))
|
|
1496
1496
|
return !0;
|
|
1497
|
-
if (this.g =
|
|
1497
|
+
if (this.g = Ie, this.f |= 1, this.i > 0 && !dn(this))
|
|
1498
1498
|
return this.f &= -2, !0;
|
|
1499
1499
|
var n = N;
|
|
1500
1500
|
try {
|
|
@@ -1529,12 +1529,12 @@ Q.prototype.N = function() {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
};
|
|
1531
1531
|
Q.prototype.peek = function() {
|
|
1532
|
-
if (this.h() ||
|
|
1532
|
+
if (this.h() || Oe(), 16 & this.f)
|
|
1533
1533
|
throw this.v;
|
|
1534
1534
|
return this.v;
|
|
1535
1535
|
};
|
|
1536
1536
|
Object.defineProperty(Q.prototype, "value", { get: function() {
|
|
1537
|
-
1 & this.f &&
|
|
1537
|
+
1 & this.f && Oe();
|
|
1538
1538
|
var n = un(this);
|
|
1539
1539
|
if (this.h(), n !== void 0 && (n.i = this.i), 16 & this.f)
|
|
1540
1540
|
throw this.v;
|
|
@@ -1583,7 +1583,7 @@ be.prototype.c = function() {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
};
|
|
1585
1585
|
be.prototype.S = function() {
|
|
1586
|
-
1 & this.f &&
|
|
1586
|
+
1 & this.f && Oe(), this.f |= 1, this.f &= -9, vn(this), hn(this), ce++;
|
|
1587
1587
|
var n = N;
|
|
1588
1588
|
return N = this, Wn.bind(this, n);
|
|
1589
1589
|
};
|
|
@@ -1602,13 +1602,13 @@ function at(n) {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
return e.d.bind(e);
|
|
1604
1604
|
}
|
|
1605
|
-
var
|
|
1605
|
+
var Be, Ue;
|
|
1606
1606
|
function ue(n, e) {
|
|
1607
1607
|
w[n] = e.bind(null, w[n] || function() {
|
|
1608
1608
|
});
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1611
|
-
|
|
1610
|
+
function De(n) {
|
|
1611
|
+
Ue && Ue(), Ue = n && n.S();
|
|
1612
1612
|
}
|
|
1613
1613
|
function mn(n) {
|
|
1614
1614
|
var e = this, t = n.data, i = I(t);
|
|
@@ -1645,7 +1645,7 @@ ue("__b", function(n, e) {
|
|
|
1645
1645
|
n(e);
|
|
1646
1646
|
});
|
|
1647
1647
|
ue("__r", function(n, e) {
|
|
1648
|
-
|
|
1648
|
+
De();
|
|
1649
1649
|
var t, i = e.__c;
|
|
1650
1650
|
i && (i.__$f &= -2, (t = i.__$u) === void 0 && (i.__$u = t = function(s) {
|
|
1651
1651
|
var o;
|
|
@@ -1654,13 +1654,13 @@ ue("__r", function(n, e) {
|
|
|
1654
1654
|
}), o.c = function() {
|
|
1655
1655
|
i.__$f |= 1, i.setState({});
|
|
1656
1656
|
}, o;
|
|
1657
|
-
}())),
|
|
1657
|
+
}())), Be = i, De(t), n(e);
|
|
1658
1658
|
});
|
|
1659
1659
|
ue("__e", function(n, e, t, i) {
|
|
1660
|
-
|
|
1660
|
+
De(), Be = void 0, n(e, t, i);
|
|
1661
1661
|
});
|
|
1662
1662
|
ue("diffed", function(n, e) {
|
|
1663
|
-
|
|
1663
|
+
De(), Be = void 0;
|
|
1664
1664
|
var t;
|
|
1665
1665
|
if (typeof e.type == "string" && (t = e.__e)) {
|
|
1666
1666
|
var i = e.__np, s = e.props;
|
|
@@ -1736,7 +1736,7 @@ function I(n) {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
function B(n) {
|
|
1738
1738
|
var e = P(n);
|
|
1739
|
-
return e.current = n,
|
|
1739
|
+
return e.current = n, Be.__$f |= 4, X(function() {
|
|
1740
1740
|
return fn(function() {
|
|
1741
1741
|
return e.current();
|
|
1742
1742
|
});
|
|
@@ -1931,14 +1931,14 @@ const jn = () => c("svg", {
|
|
|
1931
1931
|
strokeWidth: "48",
|
|
1932
1932
|
d: "M112 184l144 144 144-144"
|
|
1933
1933
|
})
|
|
1934
|
-
}),
|
|
1934
|
+
}), We = (n) => c("svg", {
|
|
1935
1935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1936
1936
|
className: "".concat(n.className, " icon"),
|
|
1937
1937
|
viewBox: "0 0 512 512",
|
|
1938
1938
|
children: c("path", {
|
|
1939
1939
|
d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29l-134.4 160a16 16 0 01-12 5.71h-.27a16 16 0 01-11.89-5.3l-57.6-64a16 16 0 1123.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0124.5 20.58z"
|
|
1940
1940
|
})
|
|
1941
|
-
}),
|
|
1941
|
+
}), Ve = (n) => c("svg", {
|
|
1942
1942
|
className: n.className,
|
|
1943
1943
|
width: "16",
|
|
1944
1944
|
height: "16",
|
|
@@ -2150,10 +2150,10 @@ const te = new M("markdown-message"), wi = (n) => {
|
|
|
2150
2150
|
const {
|
|
2151
2151
|
message: e,
|
|
2152
2152
|
size: t
|
|
2153
|
-
} = n, i = I(
|
|
2153
|
+
} = n, i = I(Ae()), s = I(null), o = X(() => e.state === 20 && e.completed !== !0, [e.state, e.completed]), a = X(() => e.state === 20 && e.completed === !0, [e.state, e.completed]), r = I({
|
|
2154
2154
|
title: "",
|
|
2155
2155
|
description: "",
|
|
2156
|
-
icon: c(
|
|
2156
|
+
icon: c(Ve, {})
|
|
2157
2157
|
}), u = I({
|
|
2158
2158
|
hasSuggestions: !1,
|
|
2159
2159
|
suggestions: []
|
|
@@ -2184,7 +2184,7 @@ const te = new M("markdown-message"), wi = (n) => {
|
|
|
2184
2184
|
thoughtContent: _,
|
|
2185
2185
|
answerContent: d
|
|
2186
2186
|
} = l(e.content);
|
|
2187
|
-
v ? (r.value.icon = c(
|
|
2187
|
+
v ? (r.value.icon = c(We, {}), r.value.title = "思考完成") : e.completed === !0 ? (r.value.icon = c(We, {}), r.value.title = "思考已停止") : (r.value.icon = c(Ve, {}), r.value.title = "思考中..."), r.value.description = _ || "", s.value.setMarkdown(d || "");
|
|
2188
2188
|
} else
|
|
2189
2189
|
s.value.setMarkdown(e.content || "");
|
|
2190
2190
|
h(e.suggestions);
|
|
@@ -2200,7 +2200,7 @@ const te = new M("markdown-message"), wi = (n) => {
|
|
|
2200
2200
|
r.value = {
|
|
2201
2201
|
title: _ ? "思考完成" : e.completed === !0 ? "思考已停止" : "思考中...",
|
|
2202
2202
|
description: d || "",
|
|
2203
|
-
icon: _ || e.completed === !0 ? c(
|
|
2203
|
+
icon: _ || e.completed === !0 ? c(We, {}) : c(Ve, {})
|
|
2204
2204
|
}, f && (v = f);
|
|
2205
2205
|
} else
|
|
2206
2206
|
v = e.content;
|
|
@@ -2314,7 +2314,7 @@ const he = new M("common-material"), yi = (n) => {
|
|
|
2314
2314
|
})]
|
|
2315
2315
|
});
|
|
2316
2316
|
};
|
|
2317
|
-
const
|
|
2317
|
+
const qe = new M("chat-input-material-item"), wn = (n) => {
|
|
2318
2318
|
const {
|
|
2319
2319
|
material: e
|
|
2320
2320
|
} = n;
|
|
@@ -2330,9 +2330,9 @@ const Ve = new M("chat-input-material-item"), wn = (n) => {
|
|
|
2330
2330
|
n.controller.deleteMaterial(e);
|
|
2331
2331
|
};
|
|
2332
2332
|
return c("div", {
|
|
2333
|
-
className: "".concat(
|
|
2333
|
+
className: "".concat(qe.b(), " ").concat(qe.is("disabled", n.disabled)),
|
|
2334
2334
|
children: [c("div", {
|
|
2335
|
-
className:
|
|
2335
|
+
className: qe.e("icon"),
|
|
2336
2336
|
onClick: i,
|
|
2337
2337
|
children: c(ci, {})
|
|
2338
2338
|
}), j(t, {
|
|
@@ -2342,7 +2342,7 @@ const Ve = new M("chat-input-material-item"), wn = (n) => {
|
|
|
2342
2342
|
});
|
|
2343
2343
|
};
|
|
2344
2344
|
const ie = new M("user-message-question"), Ci = (n) => {
|
|
2345
|
-
const e = I(
|
|
2345
|
+
const e = I(Ae()), t = I(null), i = B(() => n.message.content), s = B(() => sn.parseMixedContent(i.value));
|
|
2346
2346
|
return D(() => {
|
|
2347
2347
|
t.value = new Vt({
|
|
2348
2348
|
id: e,
|
|
@@ -2514,7 +2514,7 @@ class pe {
|
|
|
2514
2514
|
return this.data.aiChat;
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
|
-
class
|
|
2517
|
+
class je {
|
|
2518
2518
|
constructor(e) {
|
|
2519
2519
|
this.material = e;
|
|
2520
2520
|
}
|
|
@@ -2613,7 +2613,7 @@ const H = new M("chat-toolbar-item"), Ni = (n) => {
|
|
|
2613
2613
|
})]
|
|
2614
2614
|
});
|
|
2615
2615
|
};
|
|
2616
|
-
const Ei = new M("chat-toolbar"),
|
|
2616
|
+
const Ei = new M("chat-toolbar"), et = (n) => {
|
|
2617
2617
|
const {
|
|
2618
2618
|
controller: e,
|
|
2619
2619
|
items: t = [],
|
|
@@ -2796,7 +2796,7 @@ const Tt = new M("chat-messages"), xt = (n) => {
|
|
|
2796
2796
|
size: p,
|
|
2797
2797
|
message: h,
|
|
2798
2798
|
controller: n.controller,
|
|
2799
|
-
children: c(
|
|
2799
|
+
children: c(et, {
|
|
2800
2800
|
data: h,
|
|
2801
2801
|
type: "content",
|
|
2802
2802
|
items: n.toolbarItems,
|
|
@@ -2857,7 +2857,7 @@ function yn(n, e, t) {
|
|
|
2857
2857
|
return yn(i, e, t);
|
|
2858
2858
|
}), n.__c && n.__c.__P === e && (n.__e && t.insertBefore(n.__e, n.__d), n.__c.__e = !0, n.__c.__P = t)), n;
|
|
2859
2859
|
}
|
|
2860
|
-
function
|
|
2860
|
+
function Ye() {
|
|
2861
2861
|
this.__u = 0, this.t = null, this.__b = null;
|
|
2862
2862
|
}
|
|
2863
2863
|
function Cn(n) {
|
|
@@ -2870,7 +2870,7 @@ function Te() {
|
|
|
2870
2870
|
w.unmount = function(n) {
|
|
2871
2871
|
var e = n.__c;
|
|
2872
2872
|
e && e.__R && e.__R(), e && n.__h === !0 && (n.type = null), Et && Et(n);
|
|
2873
|
-
}, (
|
|
2873
|
+
}, (Ye.prototype = new F()).__c = function(n, e) {
|
|
2874
2874
|
var t = e.__c, i = this;
|
|
2875
2875
|
i.t == null && (i.t = []), i.t.push(t);
|
|
2876
2876
|
var s = Cn(i.__v), o = !1, a = function() {
|
|
@@ -2889,9 +2889,9 @@ w.unmount = function(n) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
}, u = e.__h === !0;
|
|
2891
2891
|
i.__u++ || u || i.setState({ __a: i.__b = i.__v.__k[0] }), n.then(a, a);
|
|
2892
|
-
},
|
|
2892
|
+
}, Ye.prototype.componentWillUnmount = function() {
|
|
2893
2893
|
this.t = [];
|
|
2894
|
-
},
|
|
2894
|
+
}, Ye.prototype.render = function(n, e) {
|
|
2895
2895
|
if (this.__b) {
|
|
2896
2896
|
if (this.__v.__k) {
|
|
2897
2897
|
var t = document.createElement("div"), i = this.__v.__k[0].__c;
|
|
@@ -3164,24 +3164,32 @@ class zt {
|
|
|
3164
3164
|
*/
|
|
3165
3165
|
async fecthHistory() {
|
|
3166
3166
|
if (this.topicId) {
|
|
3167
|
-
const
|
|
3168
|
-
if (
|
|
3169
|
-
return
|
|
3170
|
-
const
|
|
3171
|
-
messageid:
|
|
3172
|
-
state:
|
|
3173
|
-
type:
|
|
3174
|
-
role:
|
|
3175
|
-
content:
|
|
3176
|
-
suggestions:
|
|
3167
|
+
const t = await q.getData(E.DATA_BASE_NAME, E.DATA_TABLE_NAME, this.topicId);
|
|
3168
|
+
if (t && t.data && t.data.length > 0)
|
|
3169
|
+
return t.data.forEach((i) => {
|
|
3170
|
+
const s = {
|
|
3171
|
+
messageid: i.messageid,
|
|
3172
|
+
state: i.state,
|
|
3173
|
+
type: i.type,
|
|
3174
|
+
role: i.role,
|
|
3175
|
+
content: i.content,
|
|
3176
|
+
suggestions: i.suggestions,
|
|
3177
3177
|
completed: !0
|
|
3178
3178
|
};
|
|
3179
|
-
this.addMessage(
|
|
3179
|
+
this.addMessage(s);
|
|
3180
3180
|
}), !0;
|
|
3181
3181
|
}
|
|
3182
|
-
return this.opts.history(this.context, this.params, {
|
|
3183
|
-
appDataEntityId: this.appDataEntityId
|
|
3184
|
-
|
|
3182
|
+
return await this.opts.history(this.context, this.params, {
|
|
3183
|
+
appDataEntityId: this.appDataEntityId,
|
|
3184
|
+
appendCurData: this.opts.appendCurData
|
|
3185
|
+
}) && this.opts.appendCurContent && this.addMessage({
|
|
3186
|
+
state: 30,
|
|
3187
|
+
messageid: Ae(),
|
|
3188
|
+
role: "USER",
|
|
3189
|
+
type: "DEFAULT",
|
|
3190
|
+
content: this.opts.appendCurContent,
|
|
3191
|
+
completed: !0
|
|
3192
|
+
}), !0;
|
|
3185
3193
|
}
|
|
3186
3194
|
/**
|
|
3187
3195
|
* 更新数据到indexdb
|
|
@@ -3301,7 +3309,7 @@ class zt {
|
|
|
3301
3309
|
let t = this.stringlyMaterialResource();
|
|
3302
3310
|
t ? t += "\n".concat(e) : t = e, this.addMessage({
|
|
3303
3311
|
state: 30,
|
|
3304
|
-
messageid:
|
|
3312
|
+
messageid: Ae(),
|
|
3305
3313
|
role: "USER",
|
|
3306
3314
|
type: "DEFAULT",
|
|
3307
3315
|
content: t
|
|
@@ -3409,7 +3417,7 @@ class zt {
|
|
|
3409
3417
|
* @param {IMaterial} data
|
|
3410
3418
|
*/
|
|
3411
3419
|
addMaterial(e) {
|
|
3412
|
-
this.materials.value.find((i) => i.id === e.id) ? this.materials.value = [...this.materials.value] : this.materials.value = [...this.materials.value, new
|
|
3420
|
+
this.materials.value.find((i) => i.id === e.id) ? this.materials.value = [...this.materials.value] : this.materials.value = [...this.materials.value, new je(e)];
|
|
3413
3421
|
}
|
|
3414
3422
|
/**
|
|
3415
3423
|
* 替换素材资源
|
|
@@ -3421,7 +3429,7 @@ class zt {
|
|
|
3421
3429
|
*/
|
|
3422
3430
|
replaceMaterial(e, t) {
|
|
3423
3431
|
const i = this.materials.value.findIndex((s) => s.id === e);
|
|
3424
|
-
i !== -1 ? (this.materials.value[i] = new
|
|
3432
|
+
i !== -1 ? (this.materials.value[i] = new je(t), this.materials.value = [...this.materials.value]) : this.materials.value = [...this.materials.value, new je(t)];
|
|
3425
3433
|
}
|
|
3426
3434
|
/**
|
|
3427
3435
|
* 删除指定素材资源
|
|
@@ -3476,13 +3484,15 @@ class zt {
|
|
|
3476
3484
|
const a = t.data.actionid;
|
|
3477
3485
|
if (!a)
|
|
3478
3486
|
throw new Error("actionid不能为空");
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
}
|
|
3485
|
-
|
|
3487
|
+
const r = {
|
|
3488
|
+
...e
|
|
3489
|
+
};
|
|
3490
|
+
Object.assign(r, {
|
|
3491
|
+
topic: this.topic
|
|
3492
|
+
}), r.msg.realcontent = e.realcontent, await this.opts.extendToolbarClick(i, {
|
|
3493
|
+
id: a,
|
|
3494
|
+
appId: this.context.srfappid
|
|
3495
|
+
}, this.context, this.params, r);
|
|
3486
3496
|
}
|
|
3487
3497
|
break;
|
|
3488
3498
|
case "raw":
|
|
@@ -3954,7 +3964,9 @@ class Ji {
|
|
|
3954
3964
|
contentToolbarItems: t.contentToolbarItems,
|
|
3955
3965
|
footerToolbarItems: t.footerToolbarItems,
|
|
3956
3966
|
questionToolbarItems: t.questionToolbarItems,
|
|
3957
|
-
otherToolbarItems: t.otherToolbarItems
|
|
3967
|
+
otherToolbarItems: t.otherToolbarItems,
|
|
3968
|
+
appendCurData: t.appendCurData,
|
|
3969
|
+
appendCurContent: t.appendCurContent
|
|
3958
3970
|
}
|
|
3959
3971
|
}), await this.aiTopic.updateCurrentTopic(i)), Object.assign(t, {
|
|
3960
3972
|
topicId: i == null ? void 0 : i.id,
|
|
@@ -4002,6 +4014,8 @@ class Ji {
|
|
|
4002
4014
|
footerToolbarItems: e.aiChat.footerToolbarItems,
|
|
4003
4015
|
questionToolbarItems: e.aiChat.questionToolbarItems,
|
|
4004
4016
|
otherToolbarItems: e.aiChat.otherToolbarItems,
|
|
4017
|
+
appendCurData: e.aiChat.appendCurData,
|
|
4018
|
+
appendCurContent: e.aiChat.appendCurContent,
|
|
4005
4019
|
appDataEntityId: e.aiChat.appDataEntityId,
|
|
4006
4020
|
topicId: e.id,
|
|
4007
4021
|
topic: e,
|
|
@@ -4168,20 +4182,20 @@ const xn = ({
|
|
|
4168
4182
|
});
|
|
4169
4183
|
const r = () => {
|
|
4170
4184
|
a.current && !o.value && a.current.start();
|
|
4171
|
-
}, u =
|
|
4185
|
+
}, u = Fe((m) => {
|
|
4172
4186
|
s.value = m.target.value;
|
|
4173
4187
|
}, [s]), h = B(() => s.value.length <= 0);
|
|
4174
4188
|
D(() => (i.current && Lt(i.current), () => {
|
|
4175
4189
|
i.current && Lt.destroy(i.current);
|
|
4176
4190
|
}), [i]);
|
|
4177
|
-
const p =
|
|
4191
|
+
const p = Fe(async () => {
|
|
4178
4192
|
try {
|
|
4179
4193
|
const m = s.value;
|
|
4180
4194
|
s.value = "", await n.controller.question(m);
|
|
4181
4195
|
} catch (m) {
|
|
4182
4196
|
console.error(m);
|
|
4183
4197
|
}
|
|
4184
|
-
}, [s]), l =
|
|
4198
|
+
}, [s]), l = Fe(async () => {
|
|
4185
4199
|
try {
|
|
4186
4200
|
n.controller.abortQuestion();
|
|
4187
4201
|
} catch (m) {
|
|
@@ -4509,7 +4523,7 @@ const oe = new M("chat-minimize"), is = (n) => {
|
|
|
4509
4523
|
const d = localStorage.getItem(E.MINIMIZE_STYLY_CHCHE);
|
|
4510
4524
|
if (d) {
|
|
4511
4525
|
const f = JSON.parse(d);
|
|
4512
|
-
|
|
4526
|
+
Je(f) && Object.assign(r, f);
|
|
4513
4527
|
}
|
|
4514
4528
|
l(), v();
|
|
4515
4529
|
}, []), D(() => {
|
|
@@ -4697,7 +4711,7 @@ class Pt extends F {
|
|
|
4697
4711
|
* @memberof ChatContainer
|
|
4698
4712
|
*/
|
|
4699
4713
|
registerDragDialogBorder() {
|
|
4700
|
-
|
|
4714
|
+
Pe(this.containerRef.current).resizable({
|
|
4701
4715
|
// 可拖拽的边缘
|
|
4702
4716
|
edges: {
|
|
4703
4717
|
top: !0,
|
|
@@ -4708,11 +4722,11 @@ class Pt extends F {
|
|
|
4708
4722
|
margin: 6,
|
|
4709
4723
|
modifiers: [
|
|
4710
4724
|
// 保持在父对象内部
|
|
4711
|
-
|
|
4725
|
+
Pe.modifiers.restrictEdges({
|
|
4712
4726
|
outer: document.body
|
|
4713
4727
|
}),
|
|
4714
4728
|
// 缩放最小宽度
|
|
4715
|
-
|
|
4729
|
+
Pe.modifiers.restrictSize({
|
|
4716
4730
|
min: {
|
|
4717
4731
|
width: this.data.minWidth,
|
|
4718
4732
|
height: this.data.minHeight
|
|
@@ -4751,7 +4765,7 @@ class Pt extends F {
|
|
|
4751
4765
|
const t = localStorage.getItem(E.STYLE_CACHE);
|
|
4752
4766
|
if (t) {
|
|
4753
4767
|
const i = JSON.parse(t);
|
|
4754
|
-
i.side &&
|
|
4768
|
+
i.side && Je(i.side) && i.window && Je(i.window) && Object.assign(this.data, i);
|
|
4755
4769
|
}
|
|
4756
4770
|
this.setStyle(), this.registerDragDialog(), this.registerDragDialogBorder(), document.addEventListener("fullscreenchange", this.handleFullScreenChange);
|
|
4757
4771
|
}
|
|
@@ -4872,7 +4886,7 @@ class Pt extends F {
|
|
|
4872
4886
|
controller: this.props.aiChat,
|
|
4873
4887
|
toolbarItems: this.props.contentToolbarItems
|
|
4874
4888
|
})
|
|
4875
|
-
}), c(
|
|
4889
|
+
}), c(et, {
|
|
4876
4890
|
data: this.props.aiTopic.activedTopic.value,
|
|
4877
4891
|
type: "footer",
|
|
4878
4892
|
className: "".concat(this.ns.e("toolbar"), " ").concat(this.ns.is("has-materials", this.props.aiChat.materials.value.length > 0)),
|
|
@@ -4894,7 +4908,7 @@ class Pt extends F {
|
|
|
4894
4908
|
controller: this.props.aiChat,
|
|
4895
4909
|
toolbarItems: this.props.contentToolbarItems
|
|
4896
4910
|
})
|
|
4897
|
-
}), c(
|
|
4911
|
+
}), c(et, {
|
|
4898
4912
|
type: "footer",
|
|
4899
4913
|
data: this.props.aiTopic.activedTopic.value,
|
|
4900
4914
|
className: "".concat(this.ns.e("toolbar"), " ").concat(this.ns.is("has-materials", this.props.aiChat.materials.value.length > 0)),
|