@automattic/agenttic-ui 0.1.8 → 0.1.10
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/README.md +37 -0
- package/dist/components/AgentUI.d.ts +1 -0
- package/dist/components/AgentUI.d.ts.map +1 -1
- package/dist/components/animations/index.d.ts +0 -1
- package/dist/components/animations/index.d.ts.map +1 -1
- package/dist/components/chat/AnimatedPlaceholder.d.ts +8 -0
- package/dist/components/chat/AnimatedPlaceholder.d.ts.map +1 -0
- package/dist/components/chat/Chat.d.ts +1 -1
- package/dist/components/chat/Chat.d.ts.map +1 -1
- package/dist/components/chat/ChatFooter.d.ts +4 -2
- package/dist/components/chat/ChatFooter.d.ts.map +1 -1
- package/dist/components/chat/ChatFooter.stories.d.ts +73 -0
- package/dist/components/chat/ChatFooter.stories.d.ts.map +1 -0
- package/dist/components/chat/ChatHeader.d.ts.map +1 -1
- package/dist/components/chat/ChatInput.d.ts +4 -2
- package/dist/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/components/chat/ChatInput.stories.d.ts +2 -0
- package/dist/components/chat/ChatInput.stories.d.ts.map +1 -1
- package/dist/components/chat/MessageActions.d.ts.map +1 -1
- package/dist/components/chat/Messages.d.ts +1 -2
- package/dist/components/chat/Messages.d.ts.map +1 -1
- package/dist/components/chat/Messages.stories.d.ts +2 -2
- package/dist/components/icons/ZoomIcon.d.ts +3 -0
- package/dist/components/icons/ZoomIcon.d.ts.map +1 -0
- package/dist/components/icons/ZoomIconFilled.d.ts +3 -0
- package/dist/components/icons/ZoomIconFilled.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +1 -0
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.stories.d.ts +15 -4
- package/dist/components/ui/button.stories.d.ts.map +1 -1
- package/dist/components/views/CompactView.d.ts +3 -2
- package/dist/components/views/CompactView.d.ts.map +1 -1
- package/dist/components/views/ConversationView.d.ts +3 -2
- package/dist/components/views/ConversationView.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1382 -1252
- package/dist/types/index.d.ts +5 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { motion as
|
|
4
|
-
import { useRef as mn, useCallback as
|
|
1
|
+
import * as Mt from "react";
|
|
2
|
+
import Ze, { useState as Ee, useEffect as J, useCallback as V, useRef as W, useId as dn, memo as hn, useMemo as pn } from "react";
|
|
3
|
+
import { motion as q, AnimatePresence as Ue, useMotionValue as _t, useDragControls as vn, animate as xt } from "framer-motion";
|
|
4
|
+
import { useRef as mn, useCallback as et, useEffect as gn } from "@wordpress/element";
|
|
5
5
|
import { Slot as yn } from "@radix-ui/react-slot";
|
|
6
|
-
import
|
|
7
|
-
import './index.css';var
|
|
6
|
+
import Cn from "react-markdown";
|
|
7
|
+
import './index.css';var rt = { exports: {} }, je = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +14,21 @@ import './index.css';var qe = { exports: {} }, Re = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
if (h && h.defaultProps) for (
|
|
27
|
-
return { $$typeof:
|
|
17
|
+
var bt;
|
|
18
|
+
function _n() {
|
|
19
|
+
if (bt) return je;
|
|
20
|
+
bt = 1;
|
|
21
|
+
var n = Ze, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function u(h, f, p) {
|
|
23
|
+
var m, g = {}, C = null, E = null;
|
|
24
|
+
p !== void 0 && (C = "" + p), f.key !== void 0 && (C = "" + f.key), f.ref !== void 0 && (E = f.ref);
|
|
25
|
+
for (m in f) i.call(f, m) && !s.hasOwnProperty(m) && (g[m] = f[m]);
|
|
26
|
+
if (h && h.defaultProps) for (m in f = h.defaultProps, f) g[m] === void 0 && (g[m] = f[m]);
|
|
27
|
+
return { $$typeof: t, type: h, key: C, ref: E, props: g, _owner: a.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return je.Fragment = r, je.jsx = u, je.jsxs = u, je;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Le = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -38,57 +38,57 @@ var Te = {};
|
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var
|
|
41
|
+
var wt;
|
|
42
|
+
function xn() {
|
|
43
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var n = Ze, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), D = Symbol.iterator, H = "@@iterator";
|
|
45
45
|
function B(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var
|
|
49
|
-
return typeof
|
|
48
|
+
var c = D && e[D] || e[H];
|
|
49
|
+
return typeof c == "function" ? c : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var M = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function j(e) {
|
|
53
53
|
{
|
|
54
|
-
for (var
|
|
54
|
+
for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), y = 1; y < c; y++)
|
|
55
55
|
d[y - 1] = arguments[y];
|
|
56
|
-
|
|
56
|
+
K("error", e, d);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function K(e, c, d) {
|
|
60
60
|
{
|
|
61
|
-
var y =
|
|
62
|
-
|
|
63
|
-
var
|
|
61
|
+
var y = M.ReactDebugCurrentFrame, R = y.getStackAddendum();
|
|
62
|
+
R !== "" && (c += "%s", d = d.concat([R]));
|
|
63
|
+
var L = d.map(function(w) {
|
|
64
64
|
return String(w);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
L.unshift("Warning: " + c), Function.prototype.apply.call(console[e], console, L);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === i || e ===
|
|
69
|
+
var l = !1, v = !1, _ = !1, A = !1, O = !1, T;
|
|
70
|
+
T = Symbol.for("react.module.reference");
|
|
71
|
+
function Z(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === s || O || e === a || e === p || e === m || A || e === E || l || v || _ || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === g || e.$$typeof === u || e.$$typeof === h || e.$$typeof === f || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === T || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Pe(e, c, d) {
|
|
79
79
|
var y = e.displayName;
|
|
80
80
|
if (y)
|
|
81
81
|
return y;
|
|
82
|
-
var
|
|
83
|
-
return
|
|
82
|
+
var R = c.displayName || c.name || "";
|
|
83
|
+
return R !== "" ? d + "(" + R + ")" : d;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function S(e) {
|
|
86
86
|
return e.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function z(e) {
|
|
89
89
|
if (e == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof e.tag == "number" &&
|
|
91
|
+
if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
92
|
return e.displayName || e.name || null;
|
|
93
93
|
if (typeof e == "string")
|
|
94
94
|
return e;
|
|
@@ -97,32 +97,32 @@ function bn() {
|
|
|
97
97
|
return "Fragment";
|
|
98
98
|
case r:
|
|
99
99
|
return "Portal";
|
|
100
|
-
case
|
|
100
|
+
case s:
|
|
101
101
|
return "Profiler";
|
|
102
102
|
case a:
|
|
103
103
|
return "StrictMode";
|
|
104
|
-
case
|
|
104
|
+
case p:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case m:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof e == "object")
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
111
|
case h:
|
|
112
|
-
var
|
|
113
|
-
return
|
|
114
|
-
case l:
|
|
115
|
-
var d = e;
|
|
116
|
-
return fe(d._context) + ".Provider";
|
|
112
|
+
var c = e;
|
|
113
|
+
return S(c) + ".Consumer";
|
|
117
114
|
case u:
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
var d = e;
|
|
116
|
+
return S(d._context) + ".Provider";
|
|
117
|
+
case f:
|
|
118
|
+
return Pe(e, e.render, "ForwardRef");
|
|
119
|
+
case g:
|
|
120
120
|
var y = e.displayName || null;
|
|
121
|
-
return y !== null ? y :
|
|
121
|
+
return y !== null ? y : z(e.type) || "Memo";
|
|
122
122
|
case C: {
|
|
123
|
-
var
|
|
123
|
+
var R = e, L = R._payload, w = R._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return z(w(L));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,18 +130,18 @@ function bn() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
133
|
+
var te = Object.assign, ne = 0, Fe, de, le, Q, re, ie, he;
|
|
134
|
+
function Me() {
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
136
|
+
Me.__reactDisabledLog = !0;
|
|
137
|
+
function ce() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
139
|
+
if (ne === 0) {
|
|
140
|
+
Fe = console.log, de = console.info, le = console.warn, Q = console.error, re = console.group, ie = console.groupCollapsed, he = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: Me,
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
@@ -154,79 +154,79 @@ function bn() {
|
|
|
154
154
|
groupEnd: e
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
ne++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Ge() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (ne--, ne === 0) {
|
|
163
163
|
var e = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value:
|
|
169
|
+
log: te({}, e, {
|
|
170
|
+
value: Fe
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
173
|
-
value:
|
|
172
|
+
info: te({}, e, {
|
|
173
|
+
value: de
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
176
|
-
value:
|
|
175
|
+
warn: te({}, e, {
|
|
176
|
+
value: le
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
179
|
-
value:
|
|
178
|
+
error: te({}, e, {
|
|
179
|
+
value: Q
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
182
|
-
value:
|
|
181
|
+
group: te({}, e, {
|
|
182
|
+
value: re
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
184
|
+
groupCollapsed: te({}, e, {
|
|
185
185
|
value: ie
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
-
value:
|
|
187
|
+
groupEnd: te({}, e, {
|
|
188
|
+
value: he
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
ne < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var Te = M.ReactCurrentDispatcher, pe;
|
|
196
|
+
function ae(e, c, d) {
|
|
197
197
|
{
|
|
198
|
-
if (
|
|
198
|
+
if (pe === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var y =
|
|
203
|
-
|
|
201
|
+
} catch (R) {
|
|
202
|
+
var y = R.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
pe = y && y[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
|
-
` +
|
|
206
|
+
` + pe + e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var ue = !1, ve;
|
|
210
210
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
ve = new me();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!e ||
|
|
214
|
+
function ke(e, c) {
|
|
215
|
+
if (!e || ue)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var d =
|
|
218
|
+
var d = ve.get(e);
|
|
219
219
|
if (d !== void 0)
|
|
220
220
|
return d;
|
|
221
221
|
}
|
|
222
222
|
var y;
|
|
223
|
-
|
|
224
|
-
var
|
|
223
|
+
ue = !0;
|
|
224
|
+
var R = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var L;
|
|
227
|
+
L = Te.current, Te.current = null, ce();
|
|
228
228
|
try {
|
|
229
|
-
if (
|
|
229
|
+
if (c) {
|
|
230
230
|
var w = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
@@ -237,167 +237,167 @@ function bn() {
|
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(w, []);
|
|
240
|
-
} catch (
|
|
241
|
-
y =
|
|
240
|
+
} catch (Y) {
|
|
241
|
+
y = Y;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(e, [], w);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
w.call();
|
|
247
|
-
} catch (
|
|
248
|
-
y =
|
|
247
|
+
} catch (Y) {
|
|
248
|
+
y = Y;
|
|
249
249
|
}
|
|
250
250
|
e.call(w.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
y =
|
|
255
|
+
} catch (Y) {
|
|
256
|
+
y = Y;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
260
|
+
} catch (Y) {
|
|
261
|
+
if (Y && y && typeof Y.stack == "string") {
|
|
262
|
+
for (var b = Y.stack.split(`
|
|
263
263
|
`), N = y.stack.split(`
|
|
264
|
-
`),
|
|
264
|
+
`), I = b.length - 1, P = N.length - 1; I >= 1 && P >= 0 && b[I] !== N[P]; )
|
|
265
265
|
P--;
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
266
|
+
for (; I >= 1 && P >= 0; I--, P--)
|
|
267
|
+
if (b[I] !== N[P]) {
|
|
268
|
+
if (I !== 1 || P !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (I--, P--, P < 0 || b[I] !== N[P]) {
|
|
271
271
|
var G = `
|
|
272
|
-
` +
|
|
273
|
-
return e.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
272
|
+
` + b[I].replace(" at new ", " at ");
|
|
273
|
+
return e.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", e.displayName)), typeof e == "function" && ve.set(e, G), G;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (I >= 1 && P >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
ue = !1, Te.current = L, Ge(), Error.prepareStackTrace = R;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof e == "function" &&
|
|
282
|
+
var xe = e ? e.displayName || e.name : "", fe = xe ? ae(xe) : "";
|
|
283
|
+
return typeof e == "function" && ve.set(e, fe), fe;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function Ke(e, c, d) {
|
|
286
|
+
return ke(e, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
var
|
|
290
|
-
return !!(
|
|
288
|
+
function $e(e) {
|
|
289
|
+
var c = e.prototype;
|
|
290
|
+
return !!(c && c.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function ge(e, c, d) {
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
296
|
-
return
|
|
296
|
+
return ke(e, $e(e));
|
|
297
297
|
if (typeof e == "string")
|
|
298
|
-
return
|
|
298
|
+
return ae(e);
|
|
299
299
|
switch (e) {
|
|
300
|
-
case
|
|
301
|
-
return
|
|
302
|
-
case
|
|
303
|
-
return
|
|
300
|
+
case p:
|
|
301
|
+
return ae("Suspense");
|
|
302
|
+
case m:
|
|
303
|
+
return ae("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
306
306
|
switch (e.$$typeof) {
|
|
307
|
-
case
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
307
|
+
case f:
|
|
308
|
+
return Ke(e.render);
|
|
309
|
+
case g:
|
|
310
|
+
return ge(e.type, c, d);
|
|
311
311
|
case C: {
|
|
312
|
-
var y = e,
|
|
312
|
+
var y = e, R = y._payload, L = y._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return ge(L(R), c, d);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
321
|
+
var x = Object.prototype.hasOwnProperty, k = {}, U = M.ReactDebugCurrentFrame;
|
|
322
|
+
function X(e) {
|
|
323
323
|
if (e) {
|
|
324
|
-
var
|
|
325
|
-
|
|
324
|
+
var c = e._owner, d = ge(e.type, e._source, c ? c.type : null);
|
|
325
|
+
U.setExtraStackFrame(d);
|
|
326
326
|
} else
|
|
327
|
-
|
|
327
|
+
U.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function ye(e, c, d, y, R) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
331
|
+
var L = Function.call.bind(x);
|
|
332
332
|
for (var w in e)
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
333
|
+
if (L(e, w)) {
|
|
334
|
+
var b = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof e[w] != "function") {
|
|
337
337
|
var N = Error((y || "React class") + ": " + d + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw N.name = "Invariant Violation", N;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
340
|
+
b = e[w](c, w, y, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (I) {
|
|
342
|
+
b = I;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
b && !(b instanceof Error) && (X(R), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", d, w, typeof b), X(null)), b instanceof Error && !(b.message in k) && (k[b.message] = !0, X(R), j("Failed %s type: %s", d, b.message), X(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
348
|
+
var He = Array.isArray;
|
|
349
|
+
function oe(e) {
|
|
350
|
+
return He(e);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ce(e) {
|
|
353
353
|
{
|
|
354
|
-
var
|
|
354
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, d = c && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
355
|
return d;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Xe(e) {
|
|
359
359
|
try {
|
|
360
|
-
return
|
|
360
|
+
return Ne(e), !1;
|
|
361
361
|
} catch {
|
|
362
362
|
return !0;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ne(e) {
|
|
366
366
|
return "" + e;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
368
|
+
function ct(e) {
|
|
369
|
+
if (Xe(e))
|
|
370
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ce(e)), Ne(e);
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var ut = M.ReactCurrentOwner, Gt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
|
-
},
|
|
377
|
+
}, ft, dt;
|
|
378
378
|
function Kt(e) {
|
|
379
|
-
if (
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
379
|
+
if (x.call(e, "ref")) {
|
|
380
|
+
var c = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
+
if (c && c.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Xt(e) {
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
387
|
+
if (x.call(e, "key")) {
|
|
388
|
+
var c = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
+
if (c && c.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
typeof e.ref == "string" &&
|
|
394
|
+
function Jt(e, c) {
|
|
395
|
+
typeof e.ref == "string" && ut.current;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function qt(e, c) {
|
|
398
398
|
{
|
|
399
399
|
var d = function() {
|
|
400
|
-
|
|
400
|
+
ft || (ft = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
401
401
|
};
|
|
402
402
|
d.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
403
|
get: d,
|
|
@@ -405,10 +405,10 @@ function bn() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function zt(e, c) {
|
|
409
409
|
{
|
|
410
410
|
var d = function() {
|
|
411
|
-
|
|
411
|
+
dt || (dt = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
412
412
|
};
|
|
413
413
|
d.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
414
|
get: d,
|
|
@@ -416,70 +416,70 @@ function bn() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Qt = function(e,
|
|
420
|
-
var
|
|
419
|
+
var Qt = function(e, c, d, y, R, L, w) {
|
|
420
|
+
var b = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof:
|
|
422
|
+
$$typeof: t,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
424
424
|
type: e,
|
|
425
|
-
key:
|
|
425
|
+
key: c,
|
|
426
426
|
ref: d,
|
|
427
427
|
props: w,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: L
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(b, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: y
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(b, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
value: R
|
|
446
|
+
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
447
447
|
};
|
|
448
|
-
function en(e,
|
|
448
|
+
function en(e, c, d, y, R) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
d !== void 0 && (
|
|
452
|
-
for (
|
|
453
|
-
|
|
450
|
+
var L, w = {}, b = null, N = null;
|
|
451
|
+
d !== void 0 && (ct(d), b = "" + d), Xt(c) && (ct(c.key), b = "" + c.key), Kt(c) && (N = c.ref, Jt(c, R));
|
|
452
|
+
for (L in c)
|
|
453
|
+
x.call(c, L) && !Gt.hasOwnProperty(L) && (w[L] = c[L]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
w[
|
|
455
|
+
var I = e.defaultProps;
|
|
456
|
+
for (L in I)
|
|
457
|
+
w[L] === void 0 && (w[L] = I[L]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
459
|
+
if (b || N) {
|
|
460
460
|
var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
-
|
|
461
|
+
b && qt(w, P), N && zt(w, P);
|
|
462
462
|
}
|
|
463
|
-
return Qt(e,
|
|
463
|
+
return Qt(e, b, N, R, y, ut.current, w);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
466
|
+
var Je = M.ReactCurrentOwner, ht = M.ReactDebugCurrentFrame;
|
|
467
|
+
function _e(e) {
|
|
468
468
|
if (e) {
|
|
469
|
-
var
|
|
470
|
-
|
|
469
|
+
var c = e._owner, d = ge(e.type, e._source, c ? c.type : null);
|
|
470
|
+
ht.setExtraStackFrame(d);
|
|
471
471
|
} else
|
|
472
|
-
|
|
472
|
+
ht.setExtraStackFrame(null);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
477
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
474
|
+
var qe;
|
|
475
|
+
qe = !1;
|
|
476
|
+
function ze(e) {
|
|
477
|
+
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function pt() {
|
|
480
480
|
{
|
|
481
|
-
if (
|
|
482
|
-
var e =
|
|
481
|
+
if (Je.current) {
|
|
482
|
+
var e = z(Je.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -491,212 +491,212 @@ Check the render method of \`` + e + "`.";
|
|
|
491
491
|
function tn(e) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
|
-
var
|
|
494
|
+
var vt = {};
|
|
495
495
|
function nn(e) {
|
|
496
496
|
{
|
|
497
|
-
var
|
|
498
|
-
if (!
|
|
497
|
+
var c = pt();
|
|
498
|
+
if (!c) {
|
|
499
499
|
var d = typeof e == "string" ? e : e.displayName || e.name;
|
|
500
|
-
d && (
|
|
500
|
+
d && (c = `
|
|
501
501
|
|
|
502
502
|
Check the top-level render call using <` + d + ">.");
|
|
503
503
|
}
|
|
504
|
-
return
|
|
504
|
+
return c;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function mt(e, c) {
|
|
508
508
|
{
|
|
509
509
|
if (!e._store || e._store.validated || e.key != null)
|
|
510
510
|
return;
|
|
511
511
|
e._store.validated = !0;
|
|
512
|
-
var d = nn(
|
|
513
|
-
if (
|
|
512
|
+
var d = nn(c);
|
|
513
|
+
if (vt[d])
|
|
514
514
|
return;
|
|
515
|
-
|
|
515
|
+
vt[d] = !0;
|
|
516
516
|
var y = "";
|
|
517
|
-
e && e._owner && e._owner !==
|
|
517
|
+
e && e._owner && e._owner !== Je.current && (y = " It was passed a child from " + z(e._owner.type) + "."), _e(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, y), _e(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function gt(e, c) {
|
|
521
521
|
{
|
|
522
522
|
if (typeof e != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
524
|
+
if (oe(e))
|
|
525
525
|
for (var d = 0; d < e.length; d++) {
|
|
526
526
|
var y = e[d];
|
|
527
|
-
|
|
527
|
+
ze(y) && mt(y, c);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
529
|
+
else if (ze(e))
|
|
530
530
|
e._store && (e._store.validated = !0);
|
|
531
531
|
else if (e) {
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var
|
|
535
|
-
|
|
532
|
+
var R = B(e);
|
|
533
|
+
if (typeof R == "function" && R !== e.entries)
|
|
534
|
+
for (var L = R.call(e), w; !(w = L.next()).done; )
|
|
535
|
+
ze(w.value) && mt(w.value, c);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
function rn(e) {
|
|
540
540
|
{
|
|
541
|
-
var
|
|
542
|
-
if (
|
|
541
|
+
var c = e.type;
|
|
542
|
+
if (c == null || typeof c == "string")
|
|
543
543
|
return;
|
|
544
544
|
var d;
|
|
545
|
-
if (typeof
|
|
546
|
-
d =
|
|
547
|
-
else if (typeof
|
|
545
|
+
if (typeof c == "function")
|
|
546
|
+
d = c.propTypes;
|
|
547
|
+
else if (typeof c == "object" && (c.$$typeof === f || // Note: Memo only checks outer props here.
|
|
548
548
|
// Inner props are checked in the reconciler.
|
|
549
|
-
|
|
550
|
-
d =
|
|
549
|
+
c.$$typeof === g))
|
|
550
|
+
d = c.propTypes;
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
553
|
if (d) {
|
|
554
|
-
var y =
|
|
555
|
-
|
|
556
|
-
} else if (
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
554
|
+
var y = z(c);
|
|
555
|
+
ye(d, e.props, "prop", y, e);
|
|
556
|
+
} else if (c.PropTypes !== void 0 && !qe) {
|
|
557
|
+
qe = !0;
|
|
558
|
+
var R = z(c);
|
|
559
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
|
|
560
560
|
}
|
|
561
|
-
typeof
|
|
561
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
function an(e) {
|
|
565
565
|
{
|
|
566
|
-
for (var
|
|
567
|
-
var y =
|
|
566
|
+
for (var c = Object.keys(e.props), d = 0; d < c.length; d++) {
|
|
567
|
+
var y = c[d];
|
|
568
568
|
if (y !== "children" && y !== "key") {
|
|
569
|
-
|
|
569
|
+
_e(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), _e(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (
|
|
573
|
+
e.ref !== null && (_e(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), _e(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
576
|
+
var yt = {};
|
|
577
|
+
function Ct(e, c, d, y, R, L) {
|
|
578
578
|
{
|
|
579
|
-
var w =
|
|
579
|
+
var w = Z(e);
|
|
580
580
|
if (!w) {
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
581
|
+
var b = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
583
|
var N = tn();
|
|
584
|
-
N ?
|
|
585
|
-
var
|
|
586
|
-
e === null ?
|
|
584
|
+
N ? b += N : b += pt();
|
|
585
|
+
var I;
|
|
586
|
+
e === null ? I = "null" : oe(e) ? I = "array" : e !== void 0 && e.$$typeof === t ? (I = "<" + (z(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : I = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, b);
|
|
587
587
|
}
|
|
588
|
-
var P = en(e,
|
|
588
|
+
var P = en(e, c, d, R, L);
|
|
589
589
|
if (P == null)
|
|
590
590
|
return P;
|
|
591
591
|
if (w) {
|
|
592
|
-
var G =
|
|
592
|
+
var G = c.children;
|
|
593
593
|
if (G !== void 0)
|
|
594
594
|
if (y)
|
|
595
|
-
if (
|
|
596
|
-
for (var
|
|
597
|
-
|
|
595
|
+
if (oe(G)) {
|
|
596
|
+
for (var xe = 0; xe < G.length; xe++)
|
|
597
|
+
gt(G[xe], e);
|
|
598
598
|
Object.freeze && Object.freeze(G);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
|
-
|
|
602
|
+
gt(G, e);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
604
|
+
if (x.call(c, "key")) {
|
|
605
|
+
var fe = z(e), Y = Object.keys(c).filter(function(fn) {
|
|
606
606
|
return fn !== "key";
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var un =
|
|
610
|
-
|
|
607
|
+
}), Qe = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!yt[fe + Qe]) {
|
|
609
|
+
var un = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
j(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, Qe, fe, un, fe), yt[fe + Qe] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
return e === i ? an(P) : rn(P), P;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function on(e,
|
|
622
|
-
return
|
|
621
|
+
function on(e, c, d) {
|
|
622
|
+
return Ct(e, c, d, !0);
|
|
623
623
|
}
|
|
624
|
-
function sn(e,
|
|
625
|
-
return
|
|
624
|
+
function sn(e, c, d) {
|
|
625
|
+
return Ct(e, c, d, !1);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
}()),
|
|
627
|
+
var ln = sn, cn = on;
|
|
628
|
+
Le.Fragment = i, Le.jsx = ln, Le.jsxs = cn;
|
|
629
|
+
}()), Le;
|
|
630
630
|
}
|
|
631
|
-
process.env.NODE_ENV === "production" ?
|
|
632
|
-
var
|
|
633
|
-
function
|
|
634
|
-
return
|
|
631
|
+
process.env.NODE_ENV === "production" ? rt.exports = _n() : rt.exports = xn();
|
|
632
|
+
var o = rt.exports;
|
|
633
|
+
function se(...n) {
|
|
634
|
+
return n.flat().filter(Boolean).map((t) => typeof t == "string" ? t : typeof t == "object" && !Array.isArray(t) && t !== null ? Object.entries(t).filter(([r, i]) => i).map(([r]) => r).join(" ") : "").join(" ").trim();
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
const
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}, [
|
|
641
|
-
const a = r !== "collapsed" && r !== "compact",
|
|
636
|
+
function bn(n) {
|
|
637
|
+
const t = n || "collapsed", [r, i] = Ee(t);
|
|
638
|
+
J(() => {
|
|
639
|
+
n !== void 0 && i(n);
|
|
640
|
+
}, [n]);
|
|
641
|
+
const a = r !== "collapsed" && r !== "compact", s = V(() => {
|
|
642
642
|
i("expanded");
|
|
643
|
-
}, []),
|
|
644
|
-
i(
|
|
645
|
-
}, [
|
|
643
|
+
}, []), u = V(() => {
|
|
644
|
+
i(t);
|
|
645
|
+
}, [t]), h = V(() => {
|
|
646
646
|
i(
|
|
647
|
-
(
|
|
647
|
+
(f) => f === "collapsed" ? "compact" : "collapsed"
|
|
648
648
|
);
|
|
649
649
|
}, []);
|
|
650
650
|
return {
|
|
651
651
|
state: r,
|
|
652
|
-
initialState:
|
|
652
|
+
initialState: t,
|
|
653
653
|
setState: i,
|
|
654
654
|
isOpen: a,
|
|
655
|
-
open:
|
|
656
|
-
close:
|
|
655
|
+
open: s,
|
|
656
|
+
close: u,
|
|
657
657
|
toggle: h
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
660
|
function wn({
|
|
661
|
-
value:
|
|
662
|
-
setValue:
|
|
661
|
+
value: n,
|
|
662
|
+
setValue: t,
|
|
663
663
|
onSubmit: r,
|
|
664
664
|
isProcessing: i
|
|
665
665
|
}) {
|
|
666
|
-
const a = mn(null),
|
|
667
|
-
|
|
668
|
-
var
|
|
669
|
-
(
|
|
666
|
+
const a = mn(null), s = et(() => {
|
|
667
|
+
t(""), a.current && (a.current.style.height = "auto", setTimeout(() => {
|
|
668
|
+
var f;
|
|
669
|
+
(f = a.current) == null || f.focus();
|
|
670
670
|
}, 100));
|
|
671
|
-
}, [
|
|
672
|
-
const
|
|
673
|
-
if (!
|
|
671
|
+
}, [t]), u = et(() => {
|
|
672
|
+
const f = a.current;
|
|
673
|
+
if (!f)
|
|
674
674
|
return;
|
|
675
|
-
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
Math.max(
|
|
679
|
-
|
|
675
|
+
f.style.height = "auto";
|
|
676
|
+
const p = f.scrollHeight, m = 40, g = 200;
|
|
677
|
+
f.style.height = `${Math.min(
|
|
678
|
+
Math.max(p, m),
|
|
679
|
+
g
|
|
680
680
|
)}px`;
|
|
681
|
-
}, []), h =
|
|
682
|
-
(
|
|
683
|
-
|
|
681
|
+
}, []), h = et(
|
|
682
|
+
(f) => {
|
|
683
|
+
f.key === "Enter" && !f.shiftKey && !i && n.trim() && (f.preventDefault(), r(n.trim()), s());
|
|
684
684
|
},
|
|
685
|
-
[
|
|
685
|
+
[n, i, r, s]
|
|
686
686
|
);
|
|
687
687
|
return gn(() => {
|
|
688
|
-
|
|
689
|
-
}, [
|
|
690
|
-
value:
|
|
691
|
-
setValue:
|
|
692
|
-
clear:
|
|
688
|
+
u();
|
|
689
|
+
}, [n, u]), {
|
|
690
|
+
value: n,
|
|
691
|
+
setValue: t,
|
|
692
|
+
clear: s,
|
|
693
693
|
textareaRef: a,
|
|
694
694
|
handleKeyDown: h,
|
|
695
|
-
adjustHeight:
|
|
695
|
+
adjustHeight: u
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
var
|
|
699
|
-
|
|
698
|
+
var it, kt, Ie, $t;
|
|
699
|
+
it = {
|
|
700
700
|
"(": 9,
|
|
701
701
|
"!": 8,
|
|
702
702
|
"*": 7,
|
|
@@ -715,442 +715,438 @@ Qe = {
|
|
|
715
715
|
"?": 1,
|
|
716
716
|
"?:": 1
|
|
717
717
|
};
|
|
718
|
-
|
|
719
|
-
|
|
718
|
+
kt = ["(", "?"];
|
|
719
|
+
Ie = {
|
|
720
720
|
")": ["("],
|
|
721
721
|
":": ["?", "?:"]
|
|
722
722
|
};
|
|
723
|
-
|
|
724
|
-
function En(
|
|
725
|
-
for (var
|
|
726
|
-
for (a = i[0],
|
|
727
|
-
if (
|
|
728
|
-
if (
|
|
729
|
-
a =
|
|
723
|
+
$t = /<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;
|
|
724
|
+
function En(n) {
|
|
725
|
+
for (var t = [], r = [], i, a, s, u; i = n.match($t); ) {
|
|
726
|
+
for (a = i[0], s = n.substr(0, i.index).trim(), s && t.push(s); u = r.pop(); ) {
|
|
727
|
+
if (Ie[a]) {
|
|
728
|
+
if (Ie[a][0] === u) {
|
|
729
|
+
a = Ie[a][1] || a;
|
|
730
730
|
break;
|
|
731
731
|
}
|
|
732
|
-
} else if (
|
|
733
|
-
r.push(
|
|
732
|
+
} else if (kt.indexOf(u) >= 0 || it[u] < it[a]) {
|
|
733
|
+
r.push(u);
|
|
734
734
|
break;
|
|
735
735
|
}
|
|
736
|
-
|
|
736
|
+
t.push(u);
|
|
737
737
|
}
|
|
738
|
-
|
|
738
|
+
Ie[a] || r.push(a), n = n.substr(i.index + a.length);
|
|
739
739
|
}
|
|
740
|
-
return
|
|
740
|
+
return n = n.trim(), n && t.push(n), t.concat(r.reverse());
|
|
741
741
|
}
|
|
742
742
|
var Rn = {
|
|
743
|
-
"!": function(
|
|
744
|
-
return !
|
|
743
|
+
"!": function(n) {
|
|
744
|
+
return !n;
|
|
745
745
|
},
|
|
746
|
-
"*": function(
|
|
747
|
-
return
|
|
746
|
+
"*": function(n, t) {
|
|
747
|
+
return n * t;
|
|
748
748
|
},
|
|
749
|
-
"/": function(
|
|
750
|
-
return
|
|
749
|
+
"/": function(n, t) {
|
|
750
|
+
return n / t;
|
|
751
751
|
},
|
|
752
|
-
"%": function(
|
|
753
|
-
return
|
|
752
|
+
"%": function(n, t) {
|
|
753
|
+
return n % t;
|
|
754
754
|
},
|
|
755
|
-
"+": function(
|
|
756
|
-
return
|
|
755
|
+
"+": function(n, t) {
|
|
756
|
+
return n + t;
|
|
757
757
|
},
|
|
758
|
-
"-": function(
|
|
759
|
-
return
|
|
758
|
+
"-": function(n, t) {
|
|
759
|
+
return n - t;
|
|
760
760
|
},
|
|
761
|
-
"<": function(
|
|
762
|
-
return
|
|
761
|
+
"<": function(n, t) {
|
|
762
|
+
return n < t;
|
|
763
763
|
},
|
|
764
|
-
"<=": function(
|
|
765
|
-
return
|
|
764
|
+
"<=": function(n, t) {
|
|
765
|
+
return n <= t;
|
|
766
766
|
},
|
|
767
|
-
">": function(
|
|
768
|
-
return
|
|
767
|
+
">": function(n, t) {
|
|
768
|
+
return n > t;
|
|
769
769
|
},
|
|
770
|
-
">=": function(
|
|
771
|
-
return
|
|
770
|
+
">=": function(n, t) {
|
|
771
|
+
return n >= t;
|
|
772
772
|
},
|
|
773
|
-
"==": function(
|
|
774
|
-
return
|
|
773
|
+
"==": function(n, t) {
|
|
774
|
+
return n === t;
|
|
775
775
|
},
|
|
776
|
-
"!=": function(
|
|
777
|
-
return
|
|
776
|
+
"!=": function(n, t) {
|
|
777
|
+
return n !== t;
|
|
778
778
|
},
|
|
779
|
-
"&&": function(
|
|
780
|
-
return
|
|
779
|
+
"&&": function(n, t) {
|
|
780
|
+
return n && t;
|
|
781
781
|
},
|
|
782
|
-
"||": function(
|
|
783
|
-
return
|
|
782
|
+
"||": function(n, t) {
|
|
783
|
+
return n || t;
|
|
784
784
|
},
|
|
785
|
-
"?:": function(
|
|
786
|
-
if (
|
|
787
|
-
throw
|
|
785
|
+
"?:": function(n, t, r) {
|
|
786
|
+
if (n)
|
|
787
|
+
throw t;
|
|
788
788
|
return r;
|
|
789
789
|
}
|
|
790
790
|
};
|
|
791
|
-
function Tn(
|
|
792
|
-
var r = [], i, a,
|
|
793
|
-
for (i = 0; i <
|
|
794
|
-
if (h =
|
|
795
|
-
for (a =
|
|
796
|
-
|
|
791
|
+
function Tn(n, t) {
|
|
792
|
+
var r = [], i, a, s, u, h, f;
|
|
793
|
+
for (i = 0; i < n.length; i++) {
|
|
794
|
+
if (h = n[i], u = Rn[h], u) {
|
|
795
|
+
for (a = u.length, s = Array(a); a--; )
|
|
796
|
+
s[a] = r.pop();
|
|
797
797
|
try {
|
|
798
|
-
|
|
799
|
-
} catch (
|
|
800
|
-
return
|
|
798
|
+
f = u.apply(null, s);
|
|
799
|
+
} catch (p) {
|
|
800
|
+
return p;
|
|
801
801
|
}
|
|
802
|
-
} else
|
|
803
|
-
r.push(
|
|
802
|
+
} else t.hasOwnProperty(h) ? f = t[h] : f = +h;
|
|
803
|
+
r.push(f);
|
|
804
804
|
}
|
|
805
805
|
return r[0];
|
|
806
806
|
}
|
|
807
|
-
function jn(
|
|
808
|
-
var
|
|
807
|
+
function jn(n) {
|
|
808
|
+
var t = En(n);
|
|
809
809
|
return function(r) {
|
|
810
|
-
return Tn(
|
|
810
|
+
return Tn(t, r);
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
|
-
function Ln(
|
|
814
|
-
var
|
|
813
|
+
function Ln(n) {
|
|
814
|
+
var t = jn(n);
|
|
815
815
|
return function(r) {
|
|
816
|
-
return +
|
|
816
|
+
return +t({ n: r });
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
|
-
var
|
|
819
|
+
var Et = {
|
|
820
820
|
contextDelimiter: "",
|
|
821
821
|
onMissingKey: null
|
|
822
822
|
};
|
|
823
|
-
function
|
|
824
|
-
var
|
|
825
|
-
for (
|
|
826
|
-
if (i =
|
|
823
|
+
function An(n) {
|
|
824
|
+
var t, r, i;
|
|
825
|
+
for (t = n.split(";"), r = 0; r < t.length; r++)
|
|
826
|
+
if (i = t[r].trim(), i.indexOf("plural=") === 0)
|
|
827
827
|
return i.substr(7);
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function ot(n, t) {
|
|
830
830
|
var r;
|
|
831
|
-
this.data =
|
|
832
|
-
for (r in
|
|
833
|
-
this.options[r] =
|
|
831
|
+
this.data = n, this.pluralForms = {}, this.options = {};
|
|
832
|
+
for (r in Et)
|
|
833
|
+
this.options[r] = t !== void 0 && r in t ? t[r] : Et[r];
|
|
834
834
|
}
|
|
835
|
-
|
|
836
|
-
var r = this.pluralForms[
|
|
837
|
-
return r || (i = this.data[
|
|
835
|
+
ot.prototype.getPluralForm = function(n, t) {
|
|
836
|
+
var r = this.pluralForms[n], i, a, s;
|
|
837
|
+
return r || (i = this.data[n][""], s = i["Plural-Forms"] || i["plural-forms"] || // Ignore reason: As known, there's no way to document the empty
|
|
838
838
|
// string property on a key to guarantee this as metadata.
|
|
839
839
|
// @ts-ignore
|
|
840
|
-
i.plural_forms, typeof
|
|
840
|
+
i.plural_forms, typeof s != "function" && (a = An(
|
|
841
841
|
i["Plural-Forms"] || i["plural-forms"] || // Ignore reason: As known, there's no way to document the empty
|
|
842
842
|
// string property on a key to guarantee this as metadata.
|
|
843
843
|
// @ts-ignore
|
|
844
844
|
i.plural_forms
|
|
845
|
-
),
|
|
845
|
+
), s = Ln(a)), r = this.pluralForms[n] = s), r(t);
|
|
846
846
|
};
|
|
847
|
-
|
|
848
|
-
var
|
|
849
|
-
return a === void 0 ?
|
|
847
|
+
ot.prototype.dcnpgettext = function(n, t, r, i, a) {
|
|
848
|
+
var s, u, h;
|
|
849
|
+
return a === void 0 ? s = 0 : s = this.getPluralForm(n, a), u = r, t && (u = t + this.options.contextDelimiter + r), h = this.data[n][u], h && h[s] ? h[s] : (this.options.onMissingKey && this.options.onMissingKey(r, n), s === 0 ? r : i);
|
|
850
850
|
};
|
|
851
|
-
const
|
|
851
|
+
const Rt = {
|
|
852
852
|
"": {
|
|
853
|
-
plural_forms(
|
|
854
|
-
return
|
|
853
|
+
plural_forms(n) {
|
|
854
|
+
return n === 1 ? 0 : 1;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
},
|
|
858
|
-
const i = new
|
|
859
|
-
a.forEach((
|
|
860
|
-
},
|
|
861
|
-
var
|
|
862
|
-
i.data[
|
|
863
|
-
...i.data[
|
|
864
|
-
...
|
|
865
|
-
}, i.data[
|
|
866
|
-
...
|
|
867
|
-
...(
|
|
868
|
-
}, delete i.pluralForms[
|
|
869
|
-
},
|
|
870
|
-
|
|
871
|
-
},
|
|
872
|
-
var
|
|
873
|
-
i.data[
|
|
874
|
-
...i.data[
|
|
875
|
-
...
|
|
857
|
+
}, Sn = /^i18n\.(n?gettext|has_translation)(_|$)/, On = (n, t, r) => {
|
|
858
|
+
const i = new ot({}), a = /* @__PURE__ */ new Set(), s = () => {
|
|
859
|
+
a.forEach((l) => l());
|
|
860
|
+
}, u = (l) => (a.add(l), () => a.delete(l)), h = (l = "default") => i.data[l], f = (l, v = "default") => {
|
|
861
|
+
var _;
|
|
862
|
+
i.data[v] = {
|
|
863
|
+
...i.data[v],
|
|
864
|
+
...l
|
|
865
|
+
}, i.data[v][""] = {
|
|
866
|
+
...Rt[""],
|
|
867
|
+
...(_ = i.data[v]) == null ? void 0 : _[""]
|
|
868
|
+
}, delete i.pluralForms[v];
|
|
869
|
+
}, p = (l, v) => {
|
|
870
|
+
f(l, v), s();
|
|
871
|
+
}, m = (l, v = "default") => {
|
|
872
|
+
var _;
|
|
873
|
+
i.data[v] = {
|
|
874
|
+
...i.data[v],
|
|
875
|
+
...l,
|
|
876
876
|
// Populate default domain configuration (supported locale date which omits
|
|
877
877
|
// a plural forms expression).
|
|
878
878
|
"": {
|
|
879
|
-
...
|
|
880
|
-
...(
|
|
881
|
-
...
|
|
879
|
+
...Rt[""],
|
|
880
|
+
...(_ = i.data[v]) == null ? void 0 : _[""],
|
|
881
|
+
...l == null ? void 0 : l[""]
|
|
882
882
|
}
|
|
883
|
-
}, delete i.pluralForms[
|
|
884
|
-
},
|
|
885
|
-
i.data = {}, i.pluralForms = {},
|
|
886
|
-
}, C = (
|
|
887
|
-
let
|
|
888
|
-
return r ? (
|
|
889
|
-
},
|
|
890
|
-
let
|
|
891
|
-
return r ? (
|
|
892
|
-
}, B = (
|
|
893
|
-
let O = C(
|
|
894
|
-
return r ? (O = r.applyFilters("i18n.ngettext", O,
|
|
895
|
-
},
|
|
896
|
-
let
|
|
897
|
-
return r ? (
|
|
898
|
-
},
|
|
899
|
-
var
|
|
900
|
-
const
|
|
901
|
-
let O = !!((
|
|
902
|
-
return r && (O = r.applyFilters("i18n.has_translation", O,
|
|
883
|
+
}, delete i.pluralForms[v], s();
|
|
884
|
+
}, g = (l, v) => {
|
|
885
|
+
i.data = {}, i.pluralForms = {}, p(l, v);
|
|
886
|
+
}, C = (l = "default", v, _, A, O) => (i.data[l] || f(void 0, l), i.dcnpgettext(l, v, _, A, O)), E = (l) => l || "default", D = (l, v) => {
|
|
887
|
+
let _ = C(v, void 0, l);
|
|
888
|
+
return r ? (_ = r.applyFilters("i18n.gettext", _, l, v), r.applyFilters("i18n.gettext_" + E(v), _, l, v)) : _;
|
|
889
|
+
}, H = (l, v, _) => {
|
|
890
|
+
let A = C(_, v, l);
|
|
891
|
+
return r ? (A = r.applyFilters("i18n.gettext_with_context", A, l, v, _), r.applyFilters("i18n.gettext_with_context_" + E(_), A, l, v, _)) : A;
|
|
892
|
+
}, B = (l, v, _, A) => {
|
|
893
|
+
let O = C(A, void 0, l, v, _);
|
|
894
|
+
return r ? (O = r.applyFilters("i18n.ngettext", O, l, v, _, A), r.applyFilters("i18n.ngettext_" + E(A), O, l, v, _, A)) : O;
|
|
895
|
+
}, M = (l, v, _, A, O) => {
|
|
896
|
+
let T = C(O, A, l, v, _);
|
|
897
|
+
return r ? (T = r.applyFilters("i18n.ngettext_with_context", T, l, v, _, A, O), r.applyFilters("i18n.ngettext_with_context_" + E(O), T, l, v, _, A, O)) : T;
|
|
898
|
+
}, j = () => H("ltr", "text direction") === "rtl", K = (l, v, _) => {
|
|
899
|
+
var T, Z;
|
|
900
|
+
const A = v ? v + "" + l : l;
|
|
901
|
+
let O = !!((Z = (T = i.data) == null ? void 0 : T[_ ?? "default"]) != null && Z[A]);
|
|
902
|
+
return r && (O = r.applyFilters("i18n.has_translation", O, l, v, _), O = r.applyFilters("i18n.has_translation_" + E(_), O, l, v, _)), O;
|
|
903
903
|
};
|
|
904
904
|
if (r) {
|
|
905
|
-
const
|
|
906
|
-
|
|
905
|
+
const l = (v) => {
|
|
906
|
+
Sn.test(v) && s();
|
|
907
907
|
};
|
|
908
|
-
r.addAction("hookAdded", "core/i18n",
|
|
908
|
+
r.addAction("hookAdded", "core/i18n", l), r.addAction("hookRemoved", "core/i18n", l);
|
|
909
909
|
}
|
|
910
910
|
return {
|
|
911
911
|
getLocaleData: h,
|
|
912
|
-
setLocaleData:
|
|
913
|
-
addLocaleData:
|
|
914
|
-
resetLocaleData:
|
|
915
|
-
subscribe:
|
|
916
|
-
__:
|
|
917
|
-
_x:
|
|
912
|
+
setLocaleData: p,
|
|
913
|
+
addLocaleData: m,
|
|
914
|
+
resetLocaleData: g,
|
|
915
|
+
subscribe: u,
|
|
916
|
+
__: D,
|
|
917
|
+
_x: H,
|
|
918
918
|
_n: B,
|
|
919
|
-
_nx:
|
|
920
|
-
isRTL:
|
|
921
|
-
hasTranslation:
|
|
919
|
+
_nx: M,
|
|
920
|
+
isRTL: j,
|
|
921
|
+
hasTranslation: K
|
|
922
922
|
};
|
|
923
923
|
};
|
|
924
|
-
function
|
|
925
|
-
return typeof
|
|
924
|
+
function Ht(n) {
|
|
925
|
+
return typeof n != "string" || n === "" ? (console.error("The namespace must be a non-empty string."), !1) : /^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(n) ? !0 : (console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."), !1);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
928
|
-
return typeof
|
|
927
|
+
function st(n) {
|
|
928
|
+
return typeof n != "string" || n === "" ? (console.error("The hook name must be a non-empty string."), !1) : /^__/.test(n) ? (console.error("The hook name cannot begin with `__`."), !1) : /^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(n) ? !0 : (console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."), !1);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
return function(i, a,
|
|
932
|
-
const h = t
|
|
933
|
-
if (!
|
|
930
|
+
function Tt(n, t) {
|
|
931
|
+
return function(i, a, s, u = 10) {
|
|
932
|
+
const h = n[t];
|
|
933
|
+
if (!st(i) || !Ht(a))
|
|
934
934
|
return;
|
|
935
|
-
if (typeof
|
|
935
|
+
if (typeof s != "function") {
|
|
936
936
|
console.error("The hook callback must be a function.");
|
|
937
937
|
return;
|
|
938
938
|
}
|
|
939
|
-
if (typeof
|
|
939
|
+
if (typeof u != "number") {
|
|
940
940
|
console.error("If specified, the hook priority must be a number.");
|
|
941
941
|
return;
|
|
942
942
|
}
|
|
943
|
-
const
|
|
944
|
-
callback:
|
|
945
|
-
priority:
|
|
943
|
+
const f = {
|
|
944
|
+
callback: s,
|
|
945
|
+
priority: u,
|
|
946
946
|
namespace: a
|
|
947
947
|
};
|
|
948
948
|
if (h[i]) {
|
|
949
|
-
const
|
|
950
|
-
let
|
|
951
|
-
for (
|
|
949
|
+
const p = h[i].handlers;
|
|
950
|
+
let m;
|
|
951
|
+
for (m = p.length; m > 0 && !(u >= p[m - 1].priority); m--)
|
|
952
952
|
;
|
|
953
|
-
|
|
954
|
-
|
|
953
|
+
m === p.length ? p[m] = f : p.splice(m, 0, f), h.__current.forEach((g) => {
|
|
954
|
+
g.name === i && g.currentIndex >= m && g.currentIndex++;
|
|
955
955
|
});
|
|
956
956
|
} else
|
|
957
957
|
h[i] = {
|
|
958
|
-
handlers: [
|
|
958
|
+
handlers: [f],
|
|
959
959
|
runs: 0
|
|
960
960
|
};
|
|
961
|
-
i !== "hookAdded" &&
|
|
961
|
+
i !== "hookAdded" && n.doAction("hookAdded", i, a, s, u);
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
return function(a,
|
|
966
|
-
const
|
|
967
|
-
if (!
|
|
964
|
+
function Ve(n, t, r = !1) {
|
|
965
|
+
return function(a, s) {
|
|
966
|
+
const u = n[t];
|
|
967
|
+
if (!st(a) || !r && !Ht(s))
|
|
968
968
|
return;
|
|
969
|
-
if (!
|
|
969
|
+
if (!u[a])
|
|
970
970
|
return 0;
|
|
971
971
|
let h = 0;
|
|
972
972
|
if (r)
|
|
973
|
-
h =
|
|
974
|
-
runs:
|
|
973
|
+
h = u[a].handlers.length, u[a] = {
|
|
974
|
+
runs: u[a].runs,
|
|
975
975
|
handlers: []
|
|
976
976
|
};
|
|
977
977
|
else {
|
|
978
|
-
const
|
|
979
|
-
for (let
|
|
980
|
-
|
|
981
|
-
|
|
978
|
+
const f = u[a].handlers;
|
|
979
|
+
for (let p = f.length - 1; p >= 0; p--)
|
|
980
|
+
f[p].namespace === s && (f.splice(p, 1), h++, u.__current.forEach((m) => {
|
|
981
|
+
m.name === a && m.currentIndex >= p && m.currentIndex--;
|
|
982
982
|
}));
|
|
983
983
|
}
|
|
984
|
-
return a !== "hookRemoved" &&
|
|
984
|
+
return a !== "hookRemoved" && n.doAction("hookRemoved", a, s), h;
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function jt(n, t) {
|
|
988
988
|
return function(i, a) {
|
|
989
|
-
const
|
|
990
|
-
return typeof a < "u" ? i in
|
|
989
|
+
const s = n[t];
|
|
990
|
+
return typeof a < "u" ? i in s && s[i].handlers.some((u) => u.namespace === a) : i in s;
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
function
|
|
994
|
-
return function(
|
|
995
|
-
const h = t
|
|
996
|
-
h[
|
|
993
|
+
function We(n, t, r, i) {
|
|
994
|
+
return function(s, ...u) {
|
|
995
|
+
const h = n[t];
|
|
996
|
+
h[s] || (h[s] = {
|
|
997
997
|
handlers: [],
|
|
998
998
|
runs: 0
|
|
999
|
-
}), h[
|
|
1000
|
-
const
|
|
1001
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1002
|
-
return r ?
|
|
1003
|
-
const
|
|
1004
|
-
name:
|
|
999
|
+
}), h[s].runs++;
|
|
1000
|
+
const f = h[s].handlers;
|
|
1001
|
+
if (process.env.NODE_ENV !== "production" && s !== "hookAdded" && h.all && f.push(...h.all.handlers), !f || !f.length)
|
|
1002
|
+
return r ? u[0] : void 0;
|
|
1003
|
+
const p = {
|
|
1004
|
+
name: s,
|
|
1005
1005
|
currentIndex: 0
|
|
1006
1006
|
};
|
|
1007
|
-
async function
|
|
1007
|
+
async function m() {
|
|
1008
1008
|
try {
|
|
1009
|
-
h.__current.add(
|
|
1010
|
-
let C = r ?
|
|
1011
|
-
for (;
|
|
1012
|
-
C = await
|
|
1009
|
+
h.__current.add(p);
|
|
1010
|
+
let C = r ? u[0] : void 0;
|
|
1011
|
+
for (; p.currentIndex < f.length; )
|
|
1012
|
+
C = await f[p.currentIndex].callback.apply(null, u), r && (u[0] = C), p.currentIndex++;
|
|
1013
1013
|
return r ? C : void 0;
|
|
1014
1014
|
} finally {
|
|
1015
|
-
h.__current.delete(
|
|
1015
|
+
h.__current.delete(p);
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function g() {
|
|
1019
1019
|
try {
|
|
1020
|
-
h.__current.add(
|
|
1021
|
-
let C = r ?
|
|
1022
|
-
for (;
|
|
1023
|
-
C =
|
|
1020
|
+
h.__current.add(p);
|
|
1021
|
+
let C = r ? u[0] : void 0;
|
|
1022
|
+
for (; p.currentIndex < f.length; )
|
|
1023
|
+
C = f[p.currentIndex].callback.apply(null, u), r && (u[0] = C), p.currentIndex++;
|
|
1024
1024
|
return r ? C : void 0;
|
|
1025
1025
|
} finally {
|
|
1026
|
-
h.__current.delete(
|
|
1026
|
+
h.__current.delete(p);
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
return (i ?
|
|
1029
|
+
return (i ? m : g)();
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function Lt(n, t) {
|
|
1033
1033
|
return function() {
|
|
1034
|
-
var
|
|
1034
|
+
var u;
|
|
1035
1035
|
var i;
|
|
1036
|
-
const a = t
|
|
1037
|
-
return (i = (
|
|
1036
|
+
const a = n[t];
|
|
1037
|
+
return (i = (u = Array.from(a.__current).at(-1)) == null ? void 0 : u.name) !== null && i !== void 0 ? i : null;
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function At(n, t) {
|
|
1041
1041
|
return function(i) {
|
|
1042
|
-
const a = t
|
|
1043
|
-
return typeof i > "u" ? a.__current.size > 0 : Array.from(a.__current).some((
|
|
1042
|
+
const a = n[t];
|
|
1043
|
+
return typeof i > "u" ? a.__current.size > 0 : Array.from(a.__current).some((s) => s.name === i);
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function St(n, t) {
|
|
1047
1047
|
return function(i) {
|
|
1048
|
-
const a = t
|
|
1049
|
-
if (
|
|
1048
|
+
const a = n[t];
|
|
1049
|
+
if (st(i))
|
|
1050
1050
|
return a[i] && a[i].runs ? a[i].runs : 0;
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
1053
|
-
class
|
|
1053
|
+
class In {
|
|
1054
1054
|
constructor() {
|
|
1055
|
-
this.actions = /* @__PURE__ */ Object.create(null), this.actions.__current = /* @__PURE__ */ new Set(), this.filters = /* @__PURE__ */ Object.create(null), this.filters.__current = /* @__PURE__ */ new Set(), this.addAction =
|
|
1055
|
+
this.actions = /* @__PURE__ */ Object.create(null), this.actions.__current = /* @__PURE__ */ new Set(), this.filters = /* @__PURE__ */ Object.create(null), this.filters.__current = /* @__PURE__ */ new Set(), this.addAction = Tt(this, "actions"), this.addFilter = Tt(this, "filters"), this.removeAction = Ve(this, "actions"), this.removeFilter = Ve(this, "filters"), this.hasAction = jt(this, "actions"), this.hasFilter = jt(this, "filters"), this.removeAllActions = Ve(this, "actions", !0), this.removeAllFilters = Ve(this, "filters", !0), this.doAction = We(this, "actions", !1, !1), this.doActionAsync = We(this, "actions", !1, !0), this.applyFilters = We(this, "filters", !0, !1), this.applyFiltersAsync = We(this, "filters", !0, !0), this.currentAction = Lt(this, "actions"), this.currentFilter = Lt(this, "filters"), this.doingAction = At(this, "actions"), this.doingFilter = At(this, "filters"), this.didAction = St(this, "actions"), this.didFilter = St(this, "filters");
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return new
|
|
1058
|
+
function Dn() {
|
|
1059
|
+
return new In();
|
|
1060
1060
|
}
|
|
1061
|
-
const
|
|
1062
|
-
addAction:
|
|
1063
|
-
addFilter:
|
|
1064
|
-
removeAction:
|
|
1065
|
-
removeFilter:
|
|
1066
|
-
hasAction:
|
|
1067
|
-
hasFilter:
|
|
1068
|
-
removeAllActions:
|
|
1069
|
-
removeAllFilters:
|
|
1070
|
-
doAction:
|
|
1071
|
-
doActionAsync:
|
|
1072
|
-
applyFilters:
|
|
1073
|
-
applyFiltersAsync:
|
|
1074
|
-
currentAction:
|
|
1075
|
-
currentFilter:
|
|
1076
|
-
doingAction:
|
|
1077
|
-
doingFilter:
|
|
1078
|
-
didAction:
|
|
1079
|
-
didFilter:
|
|
1080
|
-
actions:
|
|
1081
|
-
filters:
|
|
1082
|
-
} =
|
|
1061
|
+
const Nt = Dn(), {
|
|
1062
|
+
addAction: Kr,
|
|
1063
|
+
addFilter: Xr,
|
|
1064
|
+
removeAction: Jr,
|
|
1065
|
+
removeFilter: qr,
|
|
1066
|
+
hasAction: zr,
|
|
1067
|
+
hasFilter: Qr,
|
|
1068
|
+
removeAllActions: ei,
|
|
1069
|
+
removeAllFilters: ti,
|
|
1070
|
+
doAction: ni,
|
|
1071
|
+
doActionAsync: ri,
|
|
1072
|
+
applyFilters: ii,
|
|
1073
|
+
applyFiltersAsync: ai,
|
|
1074
|
+
currentAction: oi,
|
|
1075
|
+
currentFilter: si,
|
|
1076
|
+
doingAction: li,
|
|
1077
|
+
doingFilter: ci,
|
|
1078
|
+
didAction: ui,
|
|
1079
|
+
didFilter: fi,
|
|
1080
|
+
actions: di,
|
|
1081
|
+
filters: hi
|
|
1082
|
+
} = Nt, F = On(void 0, void 0, Nt);
|
|
1083
1083
|
F.getLocaleData.bind(F);
|
|
1084
1084
|
F.setLocaleData.bind(F);
|
|
1085
1085
|
F.resetLocaleData.bind(F);
|
|
1086
1086
|
F.subscribe.bind(F);
|
|
1087
|
-
const
|
|
1087
|
+
const Re = F.__.bind(F);
|
|
1088
1088
|
F._x.bind(F);
|
|
1089
1089
|
F._n.bind(F);
|
|
1090
1090
|
F._nx.bind(F);
|
|
1091
1091
|
F.isRTL.bind(F);
|
|
1092
1092
|
F.hasTranslation.bind(F);
|
|
1093
|
-
const
|
|
1093
|
+
const Vt = Re("Ask anything", "a8c-agenttic"), at = {
|
|
1094
1094
|
type: "spring",
|
|
1095
1095
|
stiffness: 300,
|
|
1096
1096
|
damping: 30
|
|
1097
|
-
},
|
|
1098
|
-
type: "spring",
|
|
1099
|
-
stiffness: 400,
|
|
1100
|
-
damping: 35
|
|
1101
|
-
}, it = {
|
|
1097
|
+
}, De = {
|
|
1102
1098
|
type: "spring",
|
|
1103
1099
|
damping: 40,
|
|
1104
1100
|
stiffness: 500,
|
|
1105
1101
|
mass: 0.8
|
|
1106
|
-
},
|
|
1107
|
-
...
|
|
1102
|
+
}, Ye = {
|
|
1103
|
+
...De,
|
|
1108
1104
|
stiffness: 1e3,
|
|
1109
1105
|
damping: 90
|
|
1110
|
-
},
|
|
1106
|
+
}, lt = {
|
|
1111
1107
|
type: "spring",
|
|
1112
1108
|
damping: 40,
|
|
1113
|
-
stiffness:
|
|
1109
|
+
stiffness: 500,
|
|
1114
1110
|
mass: 0.8
|
|
1115
|
-
},
|
|
1111
|
+
}, Wt = {
|
|
1116
1112
|
hidden: {
|
|
1117
1113
|
opacity: 0
|
|
1118
1114
|
},
|
|
1119
1115
|
visible: {
|
|
1120
1116
|
opacity: 1,
|
|
1121
|
-
transition:
|
|
1117
|
+
transition: at
|
|
1122
1118
|
},
|
|
1123
1119
|
exit: {
|
|
1124
1120
|
opacity: 0,
|
|
1125
|
-
transition: { ...
|
|
1121
|
+
transition: { ...at, duration: 0.1 }
|
|
1126
1122
|
}
|
|
1127
|
-
},
|
|
1123
|
+
}, Pn = () => {
|
|
1128
1124
|
if (typeof window > "u")
|
|
1129
1125
|
return { left: 0, right: 0, top: 0, bottom: 0 };
|
|
1130
|
-
const
|
|
1126
|
+
const n = 20;
|
|
1131
1127
|
return {
|
|
1132
|
-
left:
|
|
1133
|
-
right: window.innerWidth - 400 -
|
|
1128
|
+
left: n,
|
|
1129
|
+
right: window.innerWidth - 400 - n,
|
|
1134
1130
|
// Assuming max width of 400px
|
|
1135
|
-
top:
|
|
1136
|
-
bottom: window.innerHeight - 60 -
|
|
1131
|
+
top: n,
|
|
1132
|
+
bottom: window.innerHeight - 60 - n
|
|
1137
1133
|
// Assuming collapsed height of 60px
|
|
1138
1134
|
};
|
|
1139
|
-
},
|
|
1135
|
+
}, Fn = {
|
|
1140
1136
|
"0%": { backgroundPosition: "-200% 0" },
|
|
1141
1137
|
"100%": { backgroundPosition: "200% 0" }
|
|
1142
|
-
},
|
|
1138
|
+
}, pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1143
1139
|
__proto__: null,
|
|
1144
|
-
fadeVariants:
|
|
1145
|
-
fastSpring:
|
|
1146
|
-
fastSpringWithDelay:
|
|
1147
|
-
getDragConstraints:
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1140
|
+
fadeVariants: Wt,
|
|
1141
|
+
fastSpring: De,
|
|
1142
|
+
fastSpringWithDelay: Ye,
|
|
1143
|
+
getDragConstraints: Pn,
|
|
1144
|
+
morphSpring: lt,
|
|
1145
|
+
springConfig: at,
|
|
1146
|
+
thinkingGradientKeyframes: Fn
|
|
1147
|
+
}, Symbol.toStringTag, { value: "Module" })), Mn = "button-module_button", kn = "button-module_pressed", $n = "button-module_primary", Hn = "button-module_ghost", Nn = "button-module_outline", Vn = "button-module_link", Wn = "button-module_icon", Bn = "button-module_sm", Yn = "button-module_withTextAndIcon", Ae = {
|
|
1148
|
+
button: Mn,
|
|
1149
|
+
pressed: kn,
|
|
1154
1150
|
primary: $n,
|
|
1155
1151
|
ghost: Hn,
|
|
1156
1152
|
outline: Nn,
|
|
@@ -1158,50 +1154,53 @@ const Ht = _e("Ask anything", "a8c-agenttic"), et = {
|
|
|
1158
1154
|
icon: Wn,
|
|
1159
1155
|
sm: Bn,
|
|
1160
1156
|
withTextAndIcon: Yn
|
|
1161
|
-
},
|
|
1157
|
+
}, ee = Mt.forwardRef(
|
|
1162
1158
|
function({
|
|
1163
|
-
className:
|
|
1159
|
+
className: t,
|
|
1164
1160
|
variant: r = "primary",
|
|
1165
1161
|
size: i,
|
|
1166
1162
|
icon: a,
|
|
1167
|
-
children:
|
|
1168
|
-
asChild:
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1163
|
+
children: s,
|
|
1164
|
+
asChild: u = !1,
|
|
1165
|
+
pressed: h = !1,
|
|
1166
|
+
...f
|
|
1167
|
+
}, p) {
|
|
1168
|
+
const m = u ? yn : "button", g = !!a, C = i || (g && !s ? "icon" : void 0);
|
|
1169
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1170
|
+
m,
|
|
1174
1171
|
{
|
|
1175
|
-
ref:
|
|
1172
|
+
ref: p,
|
|
1176
1173
|
"data-slot": "button",
|
|
1177
|
-
className:
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1174
|
+
className: se(
|
|
1175
|
+
Ae.button,
|
|
1176
|
+
Ae[r],
|
|
1177
|
+
C && Ae[C],
|
|
1178
|
+
g && s ? Ae.withTextAndIcon : void 0,
|
|
1179
|
+
h ? Ae.pressed : void 0,
|
|
1180
|
+
t
|
|
1183
1181
|
),
|
|
1184
|
-
|
|
1182
|
+
"aria-pressed": h,
|
|
1183
|
+
...f,
|
|
1185
1184
|
children: [
|
|
1186
1185
|
a,
|
|
1187
|
-
|
|
1186
|
+
s
|
|
1188
1187
|
]
|
|
1189
1188
|
}
|
|
1190
1189
|
);
|
|
1191
1190
|
}
|
|
1192
1191
|
);
|
|
1193
|
-
|
|
1194
|
-
function
|
|
1195
|
-
return /* @__PURE__ */
|
|
1192
|
+
ee.displayName = "Button";
|
|
1193
|
+
function Bt({ className: n, size: t = 24 }) {
|
|
1194
|
+
return /* @__PURE__ */ o.jsx(
|
|
1196
1195
|
"svg",
|
|
1197
1196
|
{
|
|
1198
|
-
className:
|
|
1199
|
-
width:
|
|
1200
|
-
height:
|
|
1197
|
+
className: n,
|
|
1198
|
+
width: t,
|
|
1199
|
+
height: t,
|
|
1201
1200
|
viewBox: "0 0 24 24",
|
|
1202
1201
|
fill: "none",
|
|
1203
1202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1204
|
-
children: /* @__PURE__ */
|
|
1203
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1205
1204
|
"path",
|
|
1206
1205
|
{
|
|
1207
1206
|
d: "M19.6611 11.5224L16.3782 10.39C15.0799 9.94387 14.0561 8.92011 13.61 7.62181L12.4775 4.33887C12.3231 3.88704 11.6769 3.88704 11.5225 4.33887L10.39 7.62181C9.94388 8.92011 8.9201 9.94387 7.6218 10.39L4.33887 11.5224C3.88704 11.6768 3.88704 12.3231 4.33887 12.4776L7.6218 13.61C8.9201 14.0561 9.94388 15.0799 10.39 16.3782L11.5225 19.6611C11.6769 20.113 12.3231 20.113 12.4775 19.6611L13.61 16.3782C14.0561 15.0799 15.0799 14.0561 16.3782 13.61L19.6611 12.4776C20.113 12.3231 20.113 11.6768 19.6611 11.5224ZM15.8291 12.2431L14.1876 12.8093C13.5356 13.0323 13.0266 13.5471 12.8036 14.1934L12.2374 15.8348C12.1572 16.0636 11.837 16.0636 11.7569 15.8348L11.1907 14.1934C10.9677 13.5414 10.4529 13.0323 9.80662 12.8093L8.16515 12.2431C7.93637 12.163 7.93637 11.8427 8.16515 11.7626L9.80662 11.1964C10.4586 10.9734 10.9677 10.4586 11.1907 9.81233L11.7569 8.17087C11.837 7.94209 12.1572 7.94209 12.2374 8.17087L12.8036 9.81233C13.0266 10.4643 13.5414 10.9734 14.1876 11.1964L15.8291 11.7626C16.0579 11.8427 16.0579 12.163 15.8291 12.2431Z",
|
|
@@ -1211,20 +1210,20 @@ function Vt({ className: t, size: n = 24 }) {
|
|
|
1211
1210
|
}
|
|
1212
1211
|
);
|
|
1213
1212
|
}
|
|
1214
|
-
const
|
|
1215
|
-
button:
|
|
1213
|
+
const Zn = "CollapsedView-module_button", Un = {
|
|
1214
|
+
button: Zn
|
|
1216
1215
|
};
|
|
1217
1216
|
function Gn({
|
|
1218
|
-
icon:
|
|
1219
|
-
onClick:
|
|
1217
|
+
icon: n = /* @__PURE__ */ o.jsx(Bt, { size: 36 }),
|
|
1218
|
+
onClick: t,
|
|
1220
1219
|
onHover: r,
|
|
1221
1220
|
focusOnMount: i = !1
|
|
1222
1221
|
}) {
|
|
1223
|
-
const a = W(null),
|
|
1224
|
-
return
|
|
1225
|
-
|
|
1226
|
-
}, [
|
|
1227
|
-
|
|
1222
|
+
const a = W(null), s = W(i);
|
|
1223
|
+
return J(() => {
|
|
1224
|
+
s.current && a.current && a.current.focus(), s.current = !1;
|
|
1225
|
+
}, [s, a]), /* @__PURE__ */ o.jsx(
|
|
1226
|
+
q.div,
|
|
1228
1227
|
{
|
|
1229
1228
|
"data-slot": "collapsed-view",
|
|
1230
1229
|
layout: "preserve-aspect",
|
|
@@ -1237,7 +1236,7 @@ function Gn({
|
|
|
1237
1236
|
opacity: 1,
|
|
1238
1237
|
scale: 1,
|
|
1239
1238
|
transition: {
|
|
1240
|
-
...
|
|
1239
|
+
...lt,
|
|
1241
1240
|
delay: 0.2
|
|
1242
1241
|
}
|
|
1243
1242
|
},
|
|
@@ -1248,16 +1247,16 @@ function Gn({
|
|
|
1248
1247
|
duration: 0.15
|
|
1249
1248
|
}
|
|
1250
1249
|
},
|
|
1251
|
-
children: /* @__PURE__ */
|
|
1252
|
-
|
|
1250
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1251
|
+
ee,
|
|
1253
1252
|
{
|
|
1254
1253
|
ref: a,
|
|
1255
|
-
onClick:
|
|
1254
|
+
onClick: t,
|
|
1256
1255
|
onMouseEnter: r,
|
|
1257
1256
|
variant: "link",
|
|
1258
|
-
className:
|
|
1259
|
-
icon:
|
|
1260
|
-
"aria-label":
|
|
1257
|
+
className: Un.button,
|
|
1258
|
+
icon: n,
|
|
1259
|
+
"aria-label": Re("Open chat", "a8c-agenttic")
|
|
1261
1260
|
}
|
|
1262
1261
|
)
|
|
1263
1262
|
}
|
|
@@ -1265,29 +1264,29 @@ function Gn({
|
|
|
1265
1264
|
}
|
|
1266
1265
|
const Kn = "Textarea-module_textarea", Xn = {
|
|
1267
1266
|
textarea: Kn
|
|
1268
|
-
},
|
|
1269
|
-
({ className:
|
|
1267
|
+
}, Yt = Mt.forwardRef(
|
|
1268
|
+
({ className: n, ...t }, r) => /* @__PURE__ */ o.jsx(
|
|
1270
1269
|
"textarea",
|
|
1271
1270
|
{
|
|
1272
1271
|
"data-slot": "textarea",
|
|
1273
1272
|
className: Xn.textarea,
|
|
1274
1273
|
ref: r,
|
|
1275
|
-
...
|
|
1274
|
+
...t
|
|
1276
1275
|
}
|
|
1277
1276
|
)
|
|
1278
1277
|
);
|
|
1279
|
-
|
|
1280
|
-
function
|
|
1281
|
-
return /* @__PURE__ */
|
|
1278
|
+
Yt.displayName = "Textarea";
|
|
1279
|
+
function Jn({ className: n, size: t = 24 }) {
|
|
1280
|
+
return /* @__PURE__ */ o.jsx(
|
|
1282
1281
|
"svg",
|
|
1283
1282
|
{
|
|
1284
|
-
width:
|
|
1285
|
-
height:
|
|
1283
|
+
width: t,
|
|
1284
|
+
height: t,
|
|
1286
1285
|
viewBox: "0 0 24 24",
|
|
1287
1286
|
fill: "none",
|
|
1288
1287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1289
|
-
className:
|
|
1290
|
-
children: /* @__PURE__ */
|
|
1288
|
+
className: n,
|
|
1289
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1291
1290
|
"path",
|
|
1292
1291
|
{
|
|
1293
1292
|
d: "M12.2197 5C12.4186 5 12.6094 5.07902 12.75 5.21967L17 9.46967C17.2929 9.76256 17.2929 10.2374 17 10.5303C16.7071 10.8232 16.2322 10.8232 15.9393 10.5303L12.9697 7.56067V18.25C12.9697 18.6642 12.6339 19 12.2197 19C11.8055 19 11.4697 18.6642 11.4697 18.25V7.56065L8.5 10.5303C8.2071 10.8232 7.73223 10.8232 7.43934 10.5303C7.14644 10.2374 7.14645 9.76256 7.43934 9.46967L11.6894 5.21967C11.83 5.07902 12.0208 5 12.2197 5Z",
|
|
@@ -1297,17 +1296,17 @@ function zn({ className: t, size: n = 24 }) {
|
|
|
1297
1296
|
}
|
|
1298
1297
|
);
|
|
1299
1298
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return /* @__PURE__ */
|
|
1299
|
+
function qn({ className: n, size: t = 24 }) {
|
|
1300
|
+
return /* @__PURE__ */ o.jsx(
|
|
1302
1301
|
"svg",
|
|
1303
1302
|
{
|
|
1304
|
-
width:
|
|
1305
|
-
height:
|
|
1303
|
+
width: t,
|
|
1304
|
+
height: t,
|
|
1306
1305
|
viewBox: "0 0 24 24",
|
|
1307
1306
|
fill: "none",
|
|
1308
1307
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1309
|
-
className:
|
|
1310
|
-
children: /* @__PURE__ */
|
|
1308
|
+
className: n,
|
|
1309
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1311
1310
|
"rect",
|
|
1312
1311
|
{
|
|
1313
1312
|
x: "7",
|
|
@@ -1321,23 +1320,23 @@ function Jn({ className: t, size: n = 24 }) {
|
|
|
1321
1320
|
}
|
|
1322
1321
|
);
|
|
1323
1322
|
}
|
|
1324
|
-
const
|
|
1325
|
-
container:
|
|
1323
|
+
const zn = "ChatInput-module_container", Qn = "ChatInput-module_textareaContainer", er = "ChatInput-module_actions", tr = "ChatInput-module_button", be = {
|
|
1324
|
+
container: zn,
|
|
1326
1325
|
textareaContainer: Qn,
|
|
1327
1326
|
actions: er,
|
|
1328
1327
|
button: tr
|
|
1329
1328
|
};
|
|
1330
|
-
function nr({ className:
|
|
1331
|
-
return /* @__PURE__ */
|
|
1329
|
+
function nr({ className: n, size: t = 24 }) {
|
|
1330
|
+
return /* @__PURE__ */ o.jsx(
|
|
1332
1331
|
"svg",
|
|
1333
1332
|
{
|
|
1334
|
-
className:
|
|
1335
|
-
width:
|
|
1336
|
-
height:
|
|
1333
|
+
className: n,
|
|
1334
|
+
width: t,
|
|
1335
|
+
height: t,
|
|
1337
1336
|
viewBox: "0 0 24 24",
|
|
1338
1337
|
fill: "none",
|
|
1339
1338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1340
|
-
children: /* @__PURE__ */
|
|
1339
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1341
1340
|
"path",
|
|
1342
1341
|
{
|
|
1343
1342
|
fillRule: "evenodd",
|
|
@@ -1349,153 +1348,207 @@ function nr({ className: t, size: n = 24 }) {
|
|
|
1349
1348
|
}
|
|
1350
1349
|
);
|
|
1351
1350
|
}
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1351
|
+
const rr = "AnimatedPlaceholder-module_container", ir = {
|
|
1352
|
+
container: rr
|
|
1353
|
+
};
|
|
1354
|
+
function ar({
|
|
1355
|
+
texts: n,
|
|
1356
|
+
interval: t = 3e3,
|
|
1357
|
+
className: r = ""
|
|
1358
|
+
}) {
|
|
1359
|
+
const [i, a] = Ee(0);
|
|
1360
|
+
return J(() => {
|
|
1361
|
+
const s = setInterval(() => {
|
|
1362
|
+
a(
|
|
1363
|
+
(u) => (u + 1) % n.length
|
|
1364
|
+
);
|
|
1365
|
+
}, t);
|
|
1366
|
+
return () => clearInterval(s);
|
|
1367
|
+
}, [n.length, t]), /* @__PURE__ */ o.jsx(Ue, { mode: "wait", children: /* @__PURE__ */ o.jsx(
|
|
1368
|
+
q.span,
|
|
1369
|
+
{
|
|
1370
|
+
"data-slot": "animated-placeholder",
|
|
1371
|
+
className: se(ir.container, r),
|
|
1372
|
+
initial: { opacity: 0, y: 8 },
|
|
1373
|
+
animate: { opacity: 1, y: 0 },
|
|
1374
|
+
exit: { opacity: 0, y: -8 },
|
|
1375
|
+
transition: {
|
|
1376
|
+
duration: 0.3,
|
|
1377
|
+
ease: [0.4, 0, 0.2, 1]
|
|
1378
|
+
// Matches --transition-colors cubic-bezier
|
|
1379
|
+
},
|
|
1380
|
+
children: n[i]
|
|
1381
|
+
},
|
|
1382
|
+
i
|
|
1383
|
+
) });
|
|
1384
|
+
}
|
|
1385
|
+
function Zt({
|
|
1386
|
+
value: n,
|
|
1387
|
+
onChange: t,
|
|
1355
1388
|
onSubmit: r,
|
|
1356
1389
|
onKeyDown: i,
|
|
1357
1390
|
textareaRef: a,
|
|
1358
|
-
placeholder:
|
|
1359
|
-
isProcessing:
|
|
1391
|
+
placeholder: s = Vt,
|
|
1392
|
+
isProcessing: u,
|
|
1360
1393
|
onBlur: h,
|
|
1361
|
-
fromCompact:
|
|
1362
|
-
onExpand:
|
|
1363
|
-
showExpandButton:
|
|
1364
|
-
focusOnMount:
|
|
1394
|
+
fromCompact: f = !1,
|
|
1395
|
+
onExpand: p,
|
|
1396
|
+
showExpandButton: m = !0,
|
|
1397
|
+
focusOnMount: g = !1,
|
|
1365
1398
|
customActions: C = [],
|
|
1366
|
-
actionOrder:
|
|
1399
|
+
actionOrder: E = "before-submit",
|
|
1400
|
+
onStop: D,
|
|
1401
|
+
disabled: H = !1
|
|
1367
1402
|
}) {
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1403
|
+
const B = dn(), M = (n.trim() || u) && !H, j = (T) => T.endsWith("…") ? T : `${T}…`, K = Array.isArray(s);
|
|
1404
|
+
let l;
|
|
1405
|
+
K ? l = s.map(j) : s ? l = j(s) : l = "";
|
|
1406
|
+
const v = W(g);
|
|
1407
|
+
J(() => {
|
|
1408
|
+
v.current && a.current && a.current.focus(), v.current = !1;
|
|
1409
|
+
}, [v, a]);
|
|
1410
|
+
const _ = () => C.map((T) => /* @__PURE__ */ o.jsx(
|
|
1411
|
+
ee,
|
|
1374
1412
|
{
|
|
1375
|
-
className:
|
|
1376
|
-
onClick:
|
|
1377
|
-
disabled:
|
|
1378
|
-
variant:
|
|
1379
|
-
icon:
|
|
1380
|
-
"aria-label":
|
|
1413
|
+
className: T.className || be.button,
|
|
1414
|
+
onClick: T.onClick,
|
|
1415
|
+
disabled: T.disabled,
|
|
1416
|
+
variant: T.variant || "ghost",
|
|
1417
|
+
icon: T.icon,
|
|
1418
|
+
"aria-label": T["aria-label"]
|
|
1381
1419
|
},
|
|
1382
|
-
|
|
1383
|
-
)),
|
|
1384
|
-
|
|
1420
|
+
T.id
|
|
1421
|
+
)), A = () => m && p ? /* @__PURE__ */ o.jsx(
|
|
1422
|
+
ee,
|
|
1385
1423
|
{
|
|
1386
|
-
className:
|
|
1387
|
-
onClick:
|
|
1424
|
+
className: be.button,
|
|
1425
|
+
onClick: p,
|
|
1388
1426
|
variant: "ghost",
|
|
1389
|
-
icon: /* @__PURE__ */
|
|
1390
|
-
"aria-label":
|
|
1427
|
+
icon: /* @__PURE__ */ o.jsx(nr, {}),
|
|
1428
|
+
"aria-label": Re("Expand conversation", "a8c-agenttic")
|
|
1391
1429
|
}
|
|
1392
|
-
) : null,
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
variant: "primary",
|
|
1399
|
-
icon: l ? /* @__PURE__ */ s.jsx(Jn, {}) : /* @__PURE__ */ s.jsx(zn, {}),
|
|
1400
|
-
"aria-label": _e(l ? "Stop processing" : "Send message", "a8c-agenttic")
|
|
1401
|
-
}
|
|
1402
|
-
);
|
|
1403
|
-
return /* @__PURE__ */ s.jsxs("div", { "data-slot": "chat-input", className: ge.container, children: [
|
|
1404
|
-
/* @__PURE__ */ s.jsx(
|
|
1405
|
-
ae.div,
|
|
1430
|
+
) : null, O = () => {
|
|
1431
|
+
const T = () => {
|
|
1432
|
+
u && D ? D() : r();
|
|
1433
|
+
};
|
|
1434
|
+
return /* @__PURE__ */ o.jsx(
|
|
1435
|
+
ee,
|
|
1406
1436
|
{
|
|
1407
|
-
className:
|
|
1437
|
+
className: be.button,
|
|
1438
|
+
onClick: T,
|
|
1439
|
+
disabled: !M,
|
|
1440
|
+
variant: "primary",
|
|
1441
|
+
icon: u ? /* @__PURE__ */ o.jsx(qn, {}) : /* @__PURE__ */ o.jsx(Jn, {}),
|
|
1442
|
+
"aria-label": Re(u ? "Stop processing" : "Send message", "a8c-agenttic")
|
|
1443
|
+
}
|
|
1444
|
+
);
|
|
1445
|
+
};
|
|
1446
|
+
return /* @__PURE__ */ o.jsxs("div", { "data-slot": "chat-input", className: be.container, children: [
|
|
1447
|
+
/* @__PURE__ */ o.jsxs(
|
|
1448
|
+
q.div,
|
|
1449
|
+
{
|
|
1450
|
+
className: be.textareaContainer,
|
|
1408
1451
|
initial: {
|
|
1409
1452
|
opacity: 0
|
|
1410
1453
|
},
|
|
1411
1454
|
animate: {
|
|
1412
1455
|
opacity: 1,
|
|
1413
1456
|
scale: 1,
|
|
1414
|
-
transition:
|
|
1457
|
+
transition: n.trim() ? { duration: 0 } : Ye
|
|
1415
1458
|
},
|
|
1416
|
-
children:
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1459
|
+
children: [
|
|
1460
|
+
!n && K && /* @__PURE__ */ o.jsx(
|
|
1461
|
+
ar,
|
|
1462
|
+
{
|
|
1463
|
+
texts: l
|
|
1464
|
+
}
|
|
1465
|
+
),
|
|
1466
|
+
/* @__PURE__ */ o.jsx(
|
|
1467
|
+
Yt,
|
|
1468
|
+
{
|
|
1469
|
+
id: B,
|
|
1470
|
+
ref: a,
|
|
1471
|
+
value: n,
|
|
1472
|
+
onChange: (T) => t(T.target.value),
|
|
1473
|
+
onKeyDown: i,
|
|
1474
|
+
onBlur: h,
|
|
1475
|
+
placeholder: K ? "" : l,
|
|
1476
|
+
rows: 1
|
|
1477
|
+
}
|
|
1478
|
+
)
|
|
1479
|
+
]
|
|
1429
1480
|
}
|
|
1430
1481
|
),
|
|
1431
|
-
/* @__PURE__ */
|
|
1432
|
-
|
|
1482
|
+
/* @__PURE__ */ o.jsxs(
|
|
1483
|
+
q.div,
|
|
1433
1484
|
{
|
|
1434
|
-
className:
|
|
1485
|
+
className: be.actions,
|
|
1435
1486
|
initial: {
|
|
1436
|
-
opacity:
|
|
1437
|
-
scale:
|
|
1487
|
+
opacity: f ? 1 : 0,
|
|
1488
|
+
scale: f ? 1 : 0.5
|
|
1438
1489
|
},
|
|
1439
1490
|
animate: {
|
|
1440
1491
|
opacity: 1,
|
|
1441
1492
|
scale: 1,
|
|
1442
|
-
transition:
|
|
1493
|
+
transition: n.trim() ? { duration: 0 } : De
|
|
1443
1494
|
},
|
|
1444
1495
|
children: [
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1496
|
+
A(),
|
|
1497
|
+
E === "before-submit" && _(),
|
|
1498
|
+
O(),
|
|
1499
|
+
E === "after-submit" && _()
|
|
1449
1500
|
]
|
|
1450
1501
|
}
|
|
1451
1502
|
)
|
|
1452
1503
|
] });
|
|
1453
1504
|
}
|
|
1454
|
-
function
|
|
1455
|
-
value:
|
|
1456
|
-
onChange:
|
|
1505
|
+
function or({
|
|
1506
|
+
value: n,
|
|
1507
|
+
onChange: t,
|
|
1457
1508
|
onSubmit: r,
|
|
1458
1509
|
onKeyDown: i,
|
|
1459
1510
|
textareaRef: a,
|
|
1460
|
-
placeholder:
|
|
1461
|
-
isProcessing:
|
|
1511
|
+
placeholder: s,
|
|
1512
|
+
isProcessing: u,
|
|
1462
1513
|
onBlur: h,
|
|
1463
|
-
onExpand:
|
|
1464
|
-
showExpandButton:
|
|
1465
|
-
focusOnMount:
|
|
1466
|
-
customActions:
|
|
1467
|
-
actionOrder: C
|
|
1514
|
+
onExpand: f,
|
|
1515
|
+
showExpandButton: p = !0,
|
|
1516
|
+
focusOnMount: m = !1,
|
|
1517
|
+
customActions: g,
|
|
1518
|
+
actionOrder: C,
|
|
1519
|
+
onStop: E
|
|
1468
1520
|
}) {
|
|
1469
|
-
return /* @__PURE__ */
|
|
1470
|
-
|
|
1521
|
+
return /* @__PURE__ */ o.jsx(
|
|
1522
|
+
Zt,
|
|
1471
1523
|
{
|
|
1472
|
-
value:
|
|
1473
|
-
onChange:
|
|
1524
|
+
value: n,
|
|
1525
|
+
onChange: t,
|
|
1474
1526
|
onSubmit: r,
|
|
1475
1527
|
onKeyDown: i,
|
|
1476
1528
|
textareaRef: a,
|
|
1477
|
-
placeholder:
|
|
1478
|
-
isProcessing:
|
|
1529
|
+
placeholder: s,
|
|
1530
|
+
isProcessing: u,
|
|
1479
1531
|
onBlur: h,
|
|
1480
|
-
onExpand:
|
|
1481
|
-
showExpandButton:
|
|
1482
|
-
focusOnMount:
|
|
1483
|
-
customActions:
|
|
1484
|
-
actionOrder: C
|
|
1532
|
+
onExpand: f,
|
|
1533
|
+
showExpandButton: p,
|
|
1534
|
+
focusOnMount: m,
|
|
1535
|
+
customActions: g,
|
|
1536
|
+
actionOrder: C,
|
|
1537
|
+
onStop: E
|
|
1485
1538
|
}
|
|
1486
1539
|
);
|
|
1487
1540
|
}
|
|
1488
|
-
function
|
|
1489
|
-
return /* @__PURE__ */
|
|
1541
|
+
function Ut({ className: n, size: t = 24 }) {
|
|
1542
|
+
return /* @__PURE__ */ o.jsx(
|
|
1490
1543
|
"svg",
|
|
1491
1544
|
{
|
|
1492
|
-
className:
|
|
1493
|
-
width:
|
|
1494
|
-
height:
|
|
1545
|
+
className: n,
|
|
1546
|
+
width: t,
|
|
1547
|
+
height: t,
|
|
1495
1548
|
viewBox: "0 0 24 24",
|
|
1496
1549
|
fill: "none",
|
|
1497
1550
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1498
|
-
children: /* @__PURE__ */
|
|
1551
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1499
1552
|
"path",
|
|
1500
1553
|
{
|
|
1501
1554
|
d: "M12.0001 13.0607L16.4697 17.5304L17.5304 16.4697L13.0607 12.0001L17.5304 7.53039L16.4697 6.46973L12.0001 10.9394L7.5304 6.46973L6.46973 7.53039L10.9394 12.0001L6.46974 16.4697L7.5304 17.5304L12.0001 13.0607Z",
|
|
@@ -1505,65 +1558,68 @@ function Yt({ className: t, size: n = 24 }) {
|
|
|
1505
1558
|
}
|
|
1506
1559
|
);
|
|
1507
1560
|
}
|
|
1508
|
-
const
|
|
1509
|
-
container:
|
|
1561
|
+
const sr = "ChatHeader-module_container", lr = {
|
|
1562
|
+
container: sr
|
|
1510
1563
|
};
|
|
1511
|
-
function
|
|
1512
|
-
return /* @__PURE__ */
|
|
1513
|
-
|
|
1564
|
+
function cr({ onClose: n }) {
|
|
1565
|
+
return /* @__PURE__ */ o.jsx(
|
|
1566
|
+
q.div,
|
|
1514
1567
|
{
|
|
1515
1568
|
"data-slot": "chat-header",
|
|
1516
1569
|
"data-draggable": "true",
|
|
1517
|
-
className:
|
|
1518
|
-
|
|
1519
|
-
|
|
1570
|
+
className: lr.container,
|
|
1571
|
+
initial: { opacity: 0 },
|
|
1572
|
+
animate: { opacity: 1 },
|
|
1573
|
+
transition: { ...De, delay: 0.1 },
|
|
1574
|
+
children: n && /* @__PURE__ */ o.jsx(
|
|
1575
|
+
ee,
|
|
1520
1576
|
{
|
|
1521
1577
|
variant: "ghost",
|
|
1522
|
-
icon: /* @__PURE__ */
|
|
1523
|
-
onClick:
|
|
1524
|
-
"aria-label":
|
|
1578
|
+
icon: /* @__PURE__ */ o.jsx(Ut, {}),
|
|
1579
|
+
onClick: n,
|
|
1580
|
+
"aria-label": Re("Close conversation", "a8c-agenttic")
|
|
1525
1581
|
}
|
|
1526
1582
|
)
|
|
1527
1583
|
}
|
|
1528
1584
|
);
|
|
1529
1585
|
}
|
|
1530
|
-
const
|
|
1531
|
-
container:
|
|
1532
|
-
containerWithIcon:
|
|
1533
|
-
content:
|
|
1534
|
-
actions:
|
|
1535
|
-
icon:
|
|
1536
|
-
dismissible:
|
|
1586
|
+
const ur = "Notice-module_container", fr = "Notice-module_containerWithIcon", dr = "Notice-module_content", hr = "Notice-module_actions", pr = "Notice-module_icon", vr = "Notice-module_dismissible", we = {
|
|
1587
|
+
container: ur,
|
|
1588
|
+
containerWithIcon: fr,
|
|
1589
|
+
content: dr,
|
|
1590
|
+
actions: hr,
|
|
1591
|
+
icon: pr,
|
|
1592
|
+
dismissible: vr
|
|
1537
1593
|
};
|
|
1538
|
-
function
|
|
1539
|
-
icon:
|
|
1540
|
-
message:
|
|
1594
|
+
function mr({
|
|
1595
|
+
icon: n,
|
|
1596
|
+
message: t,
|
|
1541
1597
|
action: r,
|
|
1542
1598
|
dismissible: i = !0,
|
|
1543
1599
|
onDismiss: a
|
|
1544
1600
|
}) {
|
|
1545
|
-
return /* @__PURE__ */
|
|
1601
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1546
1602
|
"div",
|
|
1547
1603
|
{
|
|
1548
1604
|
"data-slot": "notice",
|
|
1549
|
-
className:
|
|
1550
|
-
[
|
|
1605
|
+
className: se(we.container, {
|
|
1606
|
+
[we.containerWithIcon]: !!n
|
|
1551
1607
|
}),
|
|
1552
1608
|
children: [
|
|
1553
|
-
/* @__PURE__ */
|
|
1554
|
-
|
|
1555
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ o.jsxs("div", { className: we.content, children: [
|
|
1610
|
+
n && /* @__PURE__ */ o.jsx("div", { className: we.icon, children: n }),
|
|
1611
|
+
/* @__PURE__ */ o.jsx("span", { children: t })
|
|
1556
1612
|
] }),
|
|
1557
|
-
/* @__PURE__ */
|
|
1558
|
-
r && /* @__PURE__ */
|
|
1559
|
-
i && a && /* @__PURE__ */
|
|
1560
|
-
|
|
1613
|
+
/* @__PURE__ */ o.jsxs("div", { className: we.actions, children: [
|
|
1614
|
+
r && /* @__PURE__ */ o.jsx(ee, { onClick: r.onClick, variant: "link", children: r.label }),
|
|
1615
|
+
i && a && /* @__PURE__ */ o.jsx(
|
|
1616
|
+
ee,
|
|
1561
1617
|
{
|
|
1562
|
-
className:
|
|
1618
|
+
className: we.dismissible,
|
|
1563
1619
|
onClick: a,
|
|
1564
1620
|
variant: "ghost",
|
|
1565
1621
|
size: "sm",
|
|
1566
|
-
icon: /* @__PURE__ */
|
|
1622
|
+
icon: /* @__PURE__ */ o.jsx(Ut, {})
|
|
1567
1623
|
}
|
|
1568
1624
|
)
|
|
1569
1625
|
] })
|
|
@@ -1571,40 +1627,40 @@ function hr({
|
|
|
1571
1627
|
}
|
|
1572
1628
|
);
|
|
1573
1629
|
}
|
|
1574
|
-
const
|
|
1575
|
-
container:
|
|
1576
|
-
},
|
|
1577
|
-
className:
|
|
1578
|
-
suggestions:
|
|
1630
|
+
const gr = "Suggestions-module_container", Ot = {
|
|
1631
|
+
container: gr
|
|
1632
|
+
}, yr = ({
|
|
1633
|
+
className: n,
|
|
1634
|
+
suggestions: t,
|
|
1579
1635
|
onSubmit: r
|
|
1580
1636
|
}) => {
|
|
1581
1637
|
const i = (a) => {
|
|
1582
1638
|
r && r(a.prompt);
|
|
1583
1639
|
};
|
|
1584
|
-
return !
|
|
1585
|
-
|
|
1640
|
+
return !t || t.length === 0 ? null : /* @__PURE__ */ o.jsx(Ue, { children: t && t.length > 0 && /* @__PURE__ */ o.jsx(
|
|
1641
|
+
q.div,
|
|
1586
1642
|
{
|
|
1587
|
-
className:
|
|
1643
|
+
className: se(Ot.container, n),
|
|
1588
1644
|
initial: { opacity: 0, y: "-80%" },
|
|
1589
1645
|
animate: { opacity: 1, y: "-100%" },
|
|
1590
1646
|
exit: { opacity: 0, y: "-80%" },
|
|
1591
|
-
transition:
|
|
1592
|
-
children:
|
|
1593
|
-
(a,
|
|
1594
|
-
|
|
1647
|
+
transition: Ye,
|
|
1648
|
+
children: t.map(
|
|
1649
|
+
(a, s) => /* @__PURE__ */ o.jsx(
|
|
1650
|
+
q.div,
|
|
1595
1651
|
{
|
|
1596
1652
|
initial: { opacity: 0, y: 10 },
|
|
1597
1653
|
animate: { opacity: 1, y: 0 },
|
|
1598
1654
|
transition: {
|
|
1599
|
-
...
|
|
1600
|
-
delay:
|
|
1655
|
+
...Ye,
|
|
1656
|
+
delay: s * 0.05
|
|
1601
1657
|
},
|
|
1602
|
-
children: /* @__PURE__ */
|
|
1603
|
-
|
|
1658
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1659
|
+
ee,
|
|
1604
1660
|
{
|
|
1605
1661
|
onClick: () => i(a),
|
|
1606
1662
|
variant: "outline",
|
|
1607
|
-
className:
|
|
1663
|
+
className: Ot.button,
|
|
1608
1664
|
children: a.label
|
|
1609
1665
|
}
|
|
1610
1666
|
)
|
|
@@ -1614,214 +1670,220 @@ const pr = "Suggestions-module_container", St = {
|
|
|
1614
1670
|
)
|
|
1615
1671
|
}
|
|
1616
1672
|
) });
|
|
1617
|
-
},
|
|
1618
|
-
container:
|
|
1673
|
+
}, Cr = "ChatFooter-module_container", _r = {
|
|
1674
|
+
container: Cr
|
|
1619
1675
|
};
|
|
1620
|
-
function
|
|
1621
|
-
inputValue:
|
|
1622
|
-
onInputChange:
|
|
1676
|
+
function xr({
|
|
1677
|
+
inputValue: n,
|
|
1678
|
+
onInputChange: t,
|
|
1623
1679
|
onSubmit: r,
|
|
1624
1680
|
onKeyDown: i,
|
|
1625
1681
|
textareaRef: a,
|
|
1626
|
-
placeholder:
|
|
1627
|
-
isProcessing:
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1682
|
+
placeholder: s,
|
|
1683
|
+
isProcessing: u,
|
|
1684
|
+
onStop: h,
|
|
1685
|
+
fromCompact: f = !1,
|
|
1686
|
+
onExpand: p,
|
|
1687
|
+
disabled: m,
|
|
1688
|
+
notice: g,
|
|
1689
|
+
suggestions: C,
|
|
1690
|
+
clearSuggestions: E,
|
|
1691
|
+
focusOnMount: D,
|
|
1692
|
+
customActions: H,
|
|
1693
|
+
actionOrder: B
|
|
1636
1694
|
}) {
|
|
1637
1695
|
const M = V(
|
|
1638
|
-
(
|
|
1639
|
-
|
|
1696
|
+
(j) => {
|
|
1697
|
+
t(j), E == null || E();
|
|
1640
1698
|
},
|
|
1641
|
-
[
|
|
1699
|
+
[t, E]
|
|
1700
|
+
);
|
|
1701
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1702
|
+
q.div,
|
|
1703
|
+
{
|
|
1704
|
+
"data-slot": "chat-footer",
|
|
1705
|
+
className: _r.container,
|
|
1706
|
+
initial: { opacity: 0, scale: 1 },
|
|
1707
|
+
animate: { opacity: 1, scale: 1 },
|
|
1708
|
+
transition: { ...De },
|
|
1709
|
+
children: [
|
|
1710
|
+
!n && /* @__PURE__ */ o.jsx(
|
|
1711
|
+
yr,
|
|
1712
|
+
{
|
|
1713
|
+
suggestions: C,
|
|
1714
|
+
onSubmit: M
|
|
1715
|
+
}
|
|
1716
|
+
),
|
|
1717
|
+
g && /* @__PURE__ */ o.jsx(
|
|
1718
|
+
mr,
|
|
1719
|
+
{
|
|
1720
|
+
icon: g.icon,
|
|
1721
|
+
message: g.message,
|
|
1722
|
+
action: g.action,
|
|
1723
|
+
dismissible: g.dismissible,
|
|
1724
|
+
onDismiss: g.onDismiss
|
|
1725
|
+
}
|
|
1726
|
+
),
|
|
1727
|
+
/* @__PURE__ */ o.jsx(
|
|
1728
|
+
Zt,
|
|
1729
|
+
{
|
|
1730
|
+
value: n,
|
|
1731
|
+
onChange: t,
|
|
1732
|
+
onSubmit: r,
|
|
1733
|
+
onKeyDown: i,
|
|
1734
|
+
textareaRef: a,
|
|
1735
|
+
placeholder: s,
|
|
1736
|
+
isProcessing: u,
|
|
1737
|
+
onStop: h,
|
|
1738
|
+
fromCompact: f,
|
|
1739
|
+
onExpand: p,
|
|
1740
|
+
showExpandButton: !1,
|
|
1741
|
+
focusOnMount: D,
|
|
1742
|
+
customActions: H,
|
|
1743
|
+
actionOrder: B,
|
|
1744
|
+
disabled: m
|
|
1745
|
+
}
|
|
1746
|
+
)
|
|
1747
|
+
]
|
|
1748
|
+
}
|
|
1642
1749
|
);
|
|
1643
|
-
return /* @__PURE__ */ s.jsxs("div", { "data-slot": "chat-footer", className: gr.container, children: [
|
|
1644
|
-
!t && /* @__PURE__ */ s.jsx(
|
|
1645
|
-
vr,
|
|
1646
|
-
{
|
|
1647
|
-
suggestions: v,
|
|
1648
|
-
onSubmit: M
|
|
1649
|
-
}
|
|
1650
|
-
),
|
|
1651
|
-
f && /* @__PURE__ */ s.jsx(
|
|
1652
|
-
hr,
|
|
1653
|
-
{
|
|
1654
|
-
icon: f.icon,
|
|
1655
|
-
message: f.message,
|
|
1656
|
-
action: f.action,
|
|
1657
|
-
dismissible: f.dismissible,
|
|
1658
|
-
onDismiss: f.onDismiss
|
|
1659
|
-
}
|
|
1660
|
-
),
|
|
1661
|
-
/* @__PURE__ */ s.jsx(
|
|
1662
|
-
Bt,
|
|
1663
|
-
{
|
|
1664
|
-
value: t,
|
|
1665
|
-
onChange: n,
|
|
1666
|
-
onSubmit: r,
|
|
1667
|
-
onKeyDown: i,
|
|
1668
|
-
textareaRef: a,
|
|
1669
|
-
placeholder: c,
|
|
1670
|
-
isProcessing: l,
|
|
1671
|
-
fromCompact: h,
|
|
1672
|
-
onExpand: u,
|
|
1673
|
-
showExpandButton: !1,
|
|
1674
|
-
focusOnMount: C,
|
|
1675
|
-
customActions: j,
|
|
1676
|
-
actionOrder: I
|
|
1677
|
-
}
|
|
1678
|
-
)
|
|
1679
|
-
] });
|
|
1680
1750
|
}
|
|
1681
|
-
const
|
|
1682
|
-
container:
|
|
1751
|
+
const br = "MessageActions-module_container", It = {
|
|
1752
|
+
container: br
|
|
1683
1753
|
};
|
|
1684
|
-
function
|
|
1685
|
-
return !
|
|
1754
|
+
function Dt({ message: n }) {
|
|
1755
|
+
return !n.actions || n.actions.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
1686
1756
|
"div",
|
|
1687
1757
|
{
|
|
1688
|
-
className:
|
|
1758
|
+
className: It.container,
|
|
1689
1759
|
"data-visible": "true",
|
|
1690
1760
|
role: "toolbar",
|
|
1691
1761
|
"aria-label": "Message actions",
|
|
1692
|
-
children:
|
|
1693
|
-
|
|
1762
|
+
children: n.actions.map((t) => /* @__PURE__ */ o.jsx(
|
|
1763
|
+
ee,
|
|
1694
1764
|
{
|
|
1695
|
-
className:
|
|
1696
|
-
icon:
|
|
1697
|
-
onClick: () =>
|
|
1765
|
+
className: It.button,
|
|
1766
|
+
icon: t.icon,
|
|
1767
|
+
onClick: () => t.onClick(n),
|
|
1698
1768
|
variant: "ghost",
|
|
1699
1769
|
size: "sm",
|
|
1700
1770
|
type: "button",
|
|
1701
|
-
disabled:
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1771
|
+
disabled: t.disabled,
|
|
1772
|
+
pressed: t.pressed,
|
|
1773
|
+
title: t.tooltip || t.label,
|
|
1774
|
+
"aria-label": t.label,
|
|
1775
|
+
...t.tooltip && { title: t.tooltip },
|
|
1776
|
+
children: t.showLabel ? t.label : void 0
|
|
1705
1777
|
},
|
|
1706
|
-
|
|
1778
|
+
t.id
|
|
1707
1779
|
))
|
|
1708
1780
|
}
|
|
1709
1781
|
);
|
|
1710
1782
|
}
|
|
1711
|
-
const
|
|
1712
|
-
message:
|
|
1713
|
-
user:
|
|
1714
|
-
bubble:
|
|
1715
|
-
error:
|
|
1716
|
-
content:
|
|
1717
|
-
},
|
|
1718
|
-
function({ message:
|
|
1719
|
-
const a = () => /* @__PURE__ */
|
|
1720
|
-
if (
|
|
1721
|
-
return /* @__PURE__ */
|
|
1722
|
-
if (
|
|
1723
|
-
const h =
|
|
1724
|
-
return /* @__PURE__ */
|
|
1783
|
+
const wr = "Message-module_message", Er = "Message-module_user", Rr = "Message-module_bubble", Tr = "Message-module_error", jr = "Message-module_content", Be = {
|
|
1784
|
+
message: wr,
|
|
1785
|
+
user: Er,
|
|
1786
|
+
bubble: Rr,
|
|
1787
|
+
error: Tr,
|
|
1788
|
+
content: jr
|
|
1789
|
+
}, Lr = Ze.forwardRef(
|
|
1790
|
+
function({ message: t, messageRenderer: r = Cn }, i) {
|
|
1791
|
+
const a = () => /* @__PURE__ */ o.jsx(o.Fragment, { children: t.content.map((s, u) => {
|
|
1792
|
+
if (s.type === "text" && s.text)
|
|
1793
|
+
return /* @__PURE__ */ o.jsx(r, { children: s.text }, u);
|
|
1794
|
+
if (s.type === "component" && s.component) {
|
|
1795
|
+
const h = s.component;
|
|
1796
|
+
return /* @__PURE__ */ o.jsx(
|
|
1725
1797
|
h,
|
|
1726
1798
|
{
|
|
1727
|
-
...
|
|
1799
|
+
...s.componentProps || {}
|
|
1728
1800
|
},
|
|
1729
|
-
|
|
1801
|
+
u
|
|
1730
1802
|
);
|
|
1731
1803
|
}
|
|
1732
1804
|
return null;
|
|
1733
1805
|
}) });
|
|
1734
|
-
return /* @__PURE__ */
|
|
1735
|
-
|
|
1806
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1807
|
+
q.div,
|
|
1736
1808
|
{
|
|
1737
1809
|
ref: i,
|
|
1738
|
-
variants:
|
|
1810
|
+
variants: Wt,
|
|
1739
1811
|
initial: "hidden",
|
|
1740
1812
|
animate: "visible",
|
|
1741
1813
|
"data-slot": "message",
|
|
1742
|
-
"data-role":
|
|
1743
|
-
className:
|
|
1814
|
+
"data-role": t.role,
|
|
1815
|
+
className: se(Be.message, Be[t.role]),
|
|
1744
1816
|
children: [
|
|
1745
|
-
/* @__PURE__ */
|
|
1746
|
-
/* @__PURE__ */
|
|
1747
|
-
|
|
1817
|
+
/* @__PURE__ */ o.jsxs("div", { className: Be.content, children: [
|
|
1818
|
+
/* @__PURE__ */ o.jsx("div", { className: Be.bubble, children: a() }),
|
|
1819
|
+
t.role !== "user" && /* @__PURE__ */ o.jsx(Dt, { message: t })
|
|
1748
1820
|
] }),
|
|
1749
|
-
|
|
1821
|
+
t.role === "user" && /* @__PURE__ */ o.jsx(Dt, { message: t })
|
|
1750
1822
|
]
|
|
1751
1823
|
}
|
|
1752
1824
|
);
|
|
1753
1825
|
}
|
|
1754
|
-
),
|
|
1755
|
-
container:
|
|
1756
|
-
emptyState:
|
|
1757
|
-
},
|
|
1758
|
-
container:
|
|
1759
|
-
icon:
|
|
1760
|
-
content:
|
|
1761
|
-
},
|
|
1762
|
-
|
|
1763
|
-
function({ content:
|
|
1764
|
-
const i = pn(() => /* @__PURE__ */
|
|
1765
|
-
return /* @__PURE__ */
|
|
1826
|
+
), Ar = "Messages-module_container", Sr = "Messages-module_emptyState", tt = {
|
|
1827
|
+
container: Ar,
|
|
1828
|
+
emptyState: Sr
|
|
1829
|
+
}, Or = "Thinking-module_container", Ir = "Thinking-module_icon", Dr = "Thinking-module_content", nt = {
|
|
1830
|
+
container: Or,
|
|
1831
|
+
icon: Ir,
|
|
1832
|
+
content: Dr
|
|
1833
|
+
}, Pr = hn(
|
|
1834
|
+
Ze.forwardRef(
|
|
1835
|
+
function({ content: t = "Thinking…" }, r) {
|
|
1836
|
+
const i = pn(() => /* @__PURE__ */ o.jsx(Bt, {}), []);
|
|
1837
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1766
1838
|
"div",
|
|
1767
1839
|
{
|
|
1768
1840
|
ref: r,
|
|
1769
1841
|
"data-slot": "thinking",
|
|
1770
|
-
className:
|
|
1842
|
+
className: nt.container,
|
|
1771
1843
|
children: [
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ o.jsx("div", { className: nt.icon, children: i }),
|
|
1845
|
+
/* @__PURE__ */ o.jsx("span", { className: nt.content, children: t })
|
|
1774
1846
|
]
|
|
1775
1847
|
}
|
|
1776
1848
|
);
|
|
1777
1849
|
}
|
|
1778
1850
|
)
|
|
1779
1851
|
);
|
|
1780
|
-
function
|
|
1781
|
-
messages:
|
|
1782
|
-
isProcessing:
|
|
1852
|
+
function Fr({
|
|
1853
|
+
messages: n,
|
|
1854
|
+
isProcessing: t,
|
|
1783
1855
|
error: r,
|
|
1784
1856
|
emptyView: i,
|
|
1785
|
-
|
|
1786
|
-
messageRenderer: c
|
|
1857
|
+
messageRenderer: a
|
|
1787
1858
|
}) {
|
|
1788
|
-
const
|
|
1789
|
-
return
|
|
1790
|
-
const
|
|
1791
|
-
if (
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
l.current.scrollTo({
|
|
1798
|
-
top: j,
|
|
1799
|
-
behavior: I
|
|
1800
|
-
});
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
if (v && f.current) {
|
|
1804
|
-
const C = t.slice(
|
|
1805
|
-
h.current.length
|
|
1859
|
+
const s = W(null), u = W([]), h = W(!0), f = W(null);
|
|
1860
|
+
return J(() => {
|
|
1861
|
+
const p = n.length > u.current.length;
|
|
1862
|
+
if (h.current && n.length > 0 && s.current ? s.current.scrollTop = s.current.scrollHeight : p && !h.current && s.current && s.current.scrollTo({
|
|
1863
|
+
top: s.current.scrollHeight,
|
|
1864
|
+
behavior: "smooth"
|
|
1865
|
+
}), p && f.current) {
|
|
1866
|
+
const g = n.slice(
|
|
1867
|
+
u.current.length
|
|
1806
1868
|
).filter(
|
|
1807
|
-
(
|
|
1869
|
+
(C) => C.role === "agent"
|
|
1808
1870
|
);
|
|
1809
|
-
if (
|
|
1810
|
-
const
|
|
1811
|
-
|
|
1871
|
+
if (g.length > 0) {
|
|
1872
|
+
const E = g[g.length - 1].content.filter((D) => D.type === "text").map((D) => D.text).join(" ");
|
|
1873
|
+
E && (f.current.textContent = E);
|
|
1812
1874
|
}
|
|
1813
1875
|
}
|
|
1814
|
-
|
|
1815
|
-
}, [
|
|
1876
|
+
h.current && (h.current = !1), u.current = n;
|
|
1877
|
+
}, [n]), n.length === 0 ? i ? /* @__PURE__ */ o.jsx(
|
|
1816
1878
|
"div",
|
|
1817
1879
|
{
|
|
1818
1880
|
"data-slot": "messages",
|
|
1819
|
-
className: `${
|
|
1820
|
-
ref:
|
|
1881
|
+
className: `${tt.container} ${tt.emptyState}`,
|
|
1882
|
+
ref: s,
|
|
1821
1883
|
children: i
|
|
1822
1884
|
}
|
|
1823
|
-
) : null : /* @__PURE__ */
|
|
1824
|
-
/* @__PURE__ */
|
|
1885
|
+
) : null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1886
|
+
/* @__PURE__ */ o.jsx(
|
|
1825
1887
|
"div",
|
|
1826
1888
|
{
|
|
1827
1889
|
ref: f,
|
|
@@ -1836,23 +1898,23 @@ function Dr({
|
|
|
1836
1898
|
}
|
|
1837
1899
|
}
|
|
1838
1900
|
),
|
|
1839
|
-
/* @__PURE__ */
|
|
1901
|
+
/* @__PURE__ */ o.jsx(
|
|
1840
1902
|
"div",
|
|
1841
1903
|
{
|
|
1842
1904
|
"data-slot": "messages",
|
|
1843
|
-
className:
|
|
1844
|
-
ref:
|
|
1845
|
-
children: /* @__PURE__ */
|
|
1846
|
-
|
|
1847
|
-
|
|
1905
|
+
className: tt.container,
|
|
1906
|
+
ref: s,
|
|
1907
|
+
children: /* @__PURE__ */ o.jsxs(Ue, { mode: "popLayout", children: [
|
|
1908
|
+
n.map((p) => /* @__PURE__ */ o.jsx(
|
|
1909
|
+
Lr,
|
|
1848
1910
|
{
|
|
1849
|
-
message:
|
|
1850
|
-
messageRenderer:
|
|
1911
|
+
message: p,
|
|
1912
|
+
messageRenderer: a
|
|
1851
1913
|
},
|
|
1852
|
-
|
|
1914
|
+
p.id
|
|
1853
1915
|
)),
|
|
1854
|
-
|
|
1855
|
-
r && /* @__PURE__ */
|
|
1916
|
+
t && /* @__PURE__ */ o.jsx(Pr, {}),
|
|
1917
|
+
r && /* @__PURE__ */ o.jsx(
|
|
1856
1918
|
"div",
|
|
1857
1919
|
{
|
|
1858
1920
|
className: "error-message",
|
|
@@ -1869,82 +1931,83 @@ function Dr({
|
|
|
1869
1931
|
)
|
|
1870
1932
|
] });
|
|
1871
1933
|
}
|
|
1872
|
-
const
|
|
1873
|
-
container:
|
|
1874
|
-
withHeader:
|
|
1934
|
+
const Mr = "ConversationView-module_container", kr = "ConversationView-module_withHeader", Pt = {
|
|
1935
|
+
container: Mr,
|
|
1936
|
+
withHeader: kr
|
|
1875
1937
|
};
|
|
1876
|
-
function
|
|
1877
|
-
messages:
|
|
1878
|
-
error:
|
|
1938
|
+
function Ft({
|
|
1939
|
+
messages: n,
|
|
1940
|
+
error: t,
|
|
1879
1941
|
inputValue: r,
|
|
1880
1942
|
onInputChange: i,
|
|
1881
1943
|
onSubmit: a,
|
|
1882
|
-
onKeyDown:
|
|
1883
|
-
textareaRef:
|
|
1944
|
+
onKeyDown: s,
|
|
1945
|
+
textareaRef: u,
|
|
1884
1946
|
placeholder: h,
|
|
1885
|
-
isProcessing:
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1947
|
+
isProcessing: f,
|
|
1948
|
+
onStop: p,
|
|
1949
|
+
fromCompact: m = !1,
|
|
1950
|
+
showHeader: g = !1,
|
|
1951
|
+
onClose: C,
|
|
1952
|
+
onExpand: E,
|
|
1953
|
+
notice: D,
|
|
1954
|
+
emptyView: H,
|
|
1955
|
+
suggestions: B,
|
|
1956
|
+
clearSuggestions: M,
|
|
1957
|
+
messageRenderer: j,
|
|
1958
|
+
focusOnMount: K = !1
|
|
1896
1959
|
}) {
|
|
1897
|
-
return
|
|
1898
|
-
const
|
|
1899
|
-
|
|
1960
|
+
return J(() => {
|
|
1961
|
+
const l = (v) => {
|
|
1962
|
+
v.key === "Escape" && C && C();
|
|
1900
1963
|
};
|
|
1901
|
-
return document.addEventListener("keydown",
|
|
1902
|
-
}, [
|
|
1964
|
+
return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
|
|
1965
|
+
}, [C]), /* @__PURE__ */ o.jsxs(
|
|
1903
1966
|
"div",
|
|
1904
1967
|
{
|
|
1905
1968
|
"data-slot": "conversation-view",
|
|
1906
|
-
className: `${
|
|
1969
|
+
className: `${Pt.container}${g ? ` ${Pt.withHeader}` : ""}`,
|
|
1907
1970
|
children: [
|
|
1908
|
-
|
|
1909
|
-
/* @__PURE__ */
|
|
1910
|
-
|
|
1971
|
+
g && /* @__PURE__ */ o.jsx(cr, { onClose: C }),
|
|
1972
|
+
/* @__PURE__ */ o.jsx(
|
|
1973
|
+
Fr,
|
|
1911
1974
|
{
|
|
1912
|
-
messages:
|
|
1913
|
-
isProcessing:
|
|
1914
|
-
error:
|
|
1915
|
-
emptyView:
|
|
1916
|
-
|
|
1917
|
-
messageRenderer: $
|
|
1975
|
+
messages: n,
|
|
1976
|
+
isProcessing: f,
|
|
1977
|
+
error: t,
|
|
1978
|
+
emptyView: H,
|
|
1979
|
+
messageRenderer: j
|
|
1918
1980
|
}
|
|
1919
1981
|
),
|
|
1920
|
-
/* @__PURE__ */
|
|
1921
|
-
|
|
1982
|
+
/* @__PURE__ */ o.jsx(
|
|
1983
|
+
xr,
|
|
1922
1984
|
{
|
|
1923
1985
|
inputValue: r,
|
|
1924
1986
|
onInputChange: i,
|
|
1925
1987
|
onSubmit: a,
|
|
1926
|
-
onKeyDown:
|
|
1927
|
-
textareaRef:
|
|
1988
|
+
onKeyDown: s,
|
|
1989
|
+
textareaRef: u,
|
|
1928
1990
|
placeholder: h,
|
|
1929
|
-
isProcessing:
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1991
|
+
isProcessing: f,
|
|
1992
|
+
onStop: p,
|
|
1993
|
+
fromCompact: m,
|
|
1994
|
+
onExpand: E,
|
|
1995
|
+
notice: D,
|
|
1996
|
+
suggestions: B,
|
|
1997
|
+
clearSuggestions: M,
|
|
1998
|
+
focusOnMount: K
|
|
1936
1999
|
}
|
|
1937
2000
|
)
|
|
1938
2001
|
]
|
|
1939
2002
|
}
|
|
1940
2003
|
);
|
|
1941
2004
|
}
|
|
1942
|
-
const
|
|
1943
|
-
container:
|
|
1944
|
-
embedded:
|
|
1945
|
-
floating:
|
|
1946
|
-
content:
|
|
1947
|
-
},
|
|
2005
|
+
const $r = "Chat-module_container", Hr = "Chat-module_embedded", Nr = "Chat-module_floating", Vr = "Chat-module_content", Se = {
|
|
2006
|
+
container: $r,
|
|
2007
|
+
embedded: Hr,
|
|
2008
|
+
floating: Nr,
|
|
2009
|
+
content: Vr
|
|
2010
|
+
}, $ = {
|
|
1948
2011
|
COLLAPSED_SIZE: 56,
|
|
1949
2012
|
COMPACT_WIDTH: 372,
|
|
1950
2013
|
EXPANDED_HEIGHT: 520,
|
|
@@ -1952,7 +2015,7 @@ const Fr = "Chat-module_container", Mr = "Chat-module_embedded", kr = "Chat-modu
|
|
|
1952
2015
|
BORDER_RADIUS: 24,
|
|
1953
2016
|
PADDING: 16,
|
|
1954
2017
|
VIEWPORT_OFFSET: 16
|
|
1955
|
-
},
|
|
2018
|
+
}, Oe = {
|
|
1956
2019
|
SPRING_CONFIG: {
|
|
1957
2020
|
type: "spring",
|
|
1958
2021
|
damping: 25,
|
|
@@ -1965,256 +2028,264 @@ const Fr = "Chat-module_container", Mr = "Chat-module_embedded", kr = "Chat-modu
|
|
|
1965
2028
|
'[data-slot="chat-footer"]'
|
|
1966
2029
|
].join(", ")
|
|
1967
2030
|
};
|
|
1968
|
-
function
|
|
1969
|
-
messages:
|
|
1970
|
-
isProcessing:
|
|
2031
|
+
function Wr({
|
|
2032
|
+
messages: n,
|
|
2033
|
+
isProcessing: t,
|
|
1971
2034
|
error: r,
|
|
1972
2035
|
onSubmit: i,
|
|
1973
2036
|
variant: a = "floating",
|
|
1974
|
-
triggerIcon:
|
|
1975
|
-
placeholder:
|
|
2037
|
+
triggerIcon: s,
|
|
2038
|
+
placeholder: u = Vt,
|
|
1976
2039
|
notice: h,
|
|
1977
|
-
onOpen:
|
|
1978
|
-
onExpand:
|
|
1979
|
-
onClose:
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
2040
|
+
onOpen: f,
|
|
2041
|
+
onExpand: p,
|
|
2042
|
+
onClose: m,
|
|
2043
|
+
onStop: g,
|
|
2044
|
+
emptyView: C,
|
|
2045
|
+
floatingChatState: E,
|
|
2046
|
+
suggestions: D,
|
|
2047
|
+
clearSuggestions: H,
|
|
2048
|
+
messageRenderer: B,
|
|
2049
|
+
className: M
|
|
1986
2050
|
}) {
|
|
1987
|
-
const [
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
}, [
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1993
|
-
clearTimeout(
|
|
1994
|
-
}),
|
|
1995
|
-
}, []),
|
|
1996
|
-
value:
|
|
1997
|
-
setValue:
|
|
1998
|
-
onSubmit: async (
|
|
1999
|
-
|
|
2051
|
+
const [j, K] = Ee(""), l = bn(E), v = W(!1), _ = W(!1), A = W(!1), [O, T] = Ee(!1);
|
|
2052
|
+
J(() => {
|
|
2053
|
+
v.current = !1, _.current = !1, A.current = !1;
|
|
2054
|
+
}, [l.state]);
|
|
2055
|
+
const Z = W(/* @__PURE__ */ new Set()), Pe = V(() => {
|
|
2056
|
+
Z.current.forEach((x) => {
|
|
2057
|
+
clearTimeout(x);
|
|
2058
|
+
}), Z.current.clear();
|
|
2059
|
+
}, []), S = wn({
|
|
2060
|
+
value: j,
|
|
2061
|
+
setValue: K,
|
|
2062
|
+
onSubmit: async (x) => {
|
|
2063
|
+
l.state !== "expanded" && (p == null || p()), l.setState("expanded"), await i(x);
|
|
2000
2064
|
},
|
|
2001
|
-
isProcessing:
|
|
2002
|
-
}), [
|
|
2065
|
+
isProcessing: t
|
|
2066
|
+
}), [z, te] = Ee(56), [ne, Fe] = Ee(
|
|
2003
2067
|
"left"
|
|
2004
|
-
),
|
|
2005
|
-
|
|
2006
|
-
}, [
|
|
2007
|
-
var
|
|
2008
|
-
const
|
|
2009
|
-
return !(
|
|
2010
|
-
}, [
|
|
2011
|
-
if (
|
|
2012
|
-
const
|
|
2013
|
-
|
|
2014
|
-
},
|
|
2015
|
-
|
|
2016
|
-
}
|
|
2017
|
-
}, [
|
|
2018
|
-
if (
|
|
2019
|
-
const
|
|
2020
|
-
|
|
2021
|
-
},
|
|
2022
|
-
|
|
2023
|
-
}
|
|
2024
|
-
}, [
|
|
2025
|
-
if (
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2028
|
-
}
|
|
2029
|
-
}, [
|
|
2030
|
-
|
|
2031
|
-
}, [
|
|
2032
|
-
|
|
2033
|
-
}, [
|
|
2034
|
-
(
|
|
2035
|
-
if (!
|
|
2068
|
+
), de = W(null), le = W(null), Q = W(null), re = _t(0), ie = _t(0), he = vn(), Me = V(() => {
|
|
2069
|
+
v.current = !0, l.open(), f == null || f();
|
|
2070
|
+
}, [l, f]), ce = V(() => {
|
|
2071
|
+
var k, U, X;
|
|
2072
|
+
const x = (U = (k = Q.current) == null ? void 0 : k.ownerDocument) == null ? void 0 : U.activeElement;
|
|
2073
|
+
return !(x && ((X = Q.current) != null && X.contains(x)) || j.trim());
|
|
2074
|
+
}, [j, Q]), Ge = (x) => x === "collapsed" ? $.COLLAPSED_SIZE : x === "compact" ? z : $.EXPANDED_HEIGHT, Te = V(() => {
|
|
2075
|
+
if (l.state === "collapsed" && (l.setState("compact"), l.initialState === "collapsed")) {
|
|
2076
|
+
const x = setTimeout(() => {
|
|
2077
|
+
l.state === "compact" && ce() && l.setState("collapsed"), Z.current.delete(x);
|
|
2078
|
+
}, $.AUTO_COLLAPSE_DELAY);
|
|
2079
|
+
Z.current.add(x);
|
|
2080
|
+
}
|
|
2081
|
+
}, [l, ce]), pe = V(() => {
|
|
2082
|
+
if (l.initialState === "collapsed" && l.state === "compact" && ce()) {
|
|
2083
|
+
const x = setTimeout(() => {
|
|
2084
|
+
l.state === "compact" && ce() && l.setState("collapsed"), Z.current.delete(x);
|
|
2085
|
+
}, $.AUTO_COLLAPSE_DELAY);
|
|
2086
|
+
Z.current.add(x);
|
|
2087
|
+
}
|
|
2088
|
+
}, [l, ce]), ae = V(async () => {
|
|
2089
|
+
if (S.value.trim()) {
|
|
2090
|
+
const x = S.value.trim();
|
|
2091
|
+
S.clear(), l.state !== "expanded" && (p == null || p()), l.setState("expanded"), await i(x);
|
|
2092
|
+
}
|
|
2093
|
+
}, [S, i, l, p]), ue = V(() => {
|
|
2094
|
+
A.current = !0, p == null || p(), l.setState("expanded");
|
|
2095
|
+
}, [p, l]), ve = V(() => {
|
|
2096
|
+
_.current = !0, S.clear(), l.close(), m && m();
|
|
2097
|
+
}, [S, l, m]), me = V(
|
|
2098
|
+
(x) => {
|
|
2099
|
+
if (!Q.current || !le.current)
|
|
2036
2100
|
return null;
|
|
2037
|
-
const
|
|
2101
|
+
const k = Q.current.getBoundingClientRect(), U = le.current.getBoundingClientRect(), X = window.getComputedStyle(Q.current), ye = new DOMMatrixReadOnly(X.transform), He = k.x - ye.e, oe = k.y - ye.f, Xe = (x ?? ne) === "left" ? U.left : U.right - $.COMPACT_WIDTH, Ne = U.bottom - $.EXPANDED_HEIGHT;
|
|
2038
2102
|
return {
|
|
2039
|
-
x:
|
|
2040
|
-
y:
|
|
2103
|
+
x: Xe - He,
|
|
2104
|
+
y: Ne - oe
|
|
2041
2105
|
};
|
|
2042
2106
|
},
|
|
2043
|
-
[
|
|
2044
|
-
),
|
|
2045
|
-
(
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
) ||
|
|
2107
|
+
[ne]
|
|
2108
|
+
), ke = V(
|
|
2109
|
+
(x) => {
|
|
2110
|
+
x.target.closest(
|
|
2111
|
+
Oe.NON_DRAGGABLE_SELECTORS
|
|
2112
|
+
) || he.start(x.nativeEvent);
|
|
2049
2113
|
},
|
|
2050
|
-
[
|
|
2051
|
-
),
|
|
2052
|
-
(
|
|
2053
|
-
const
|
|
2054
|
-
|
|
2055
|
-
const
|
|
2056
|
-
|
|
2057
|
-
...
|
|
2058
|
-
velocity:
|
|
2059
|
-
}),
|
|
2060
|
-
...
|
|
2061
|
-
velocity:
|
|
2114
|
+
[he]
|
|
2115
|
+
), Ke = V(
|
|
2116
|
+
(x, k) => {
|
|
2117
|
+
const U = k.point.x, X = $.COMPACT_WIDTH, ye = (window.innerWidth - X) / 2, oe = U < ye ? "left" : "right";
|
|
2118
|
+
Fe(oe);
|
|
2119
|
+
const Ce = me(oe);
|
|
2120
|
+
Ce && (xt(re, Ce.x, {
|
|
2121
|
+
...Oe.SPRING_CONFIG,
|
|
2122
|
+
velocity: k.velocity.x * Oe.VELOCITY_MULTIPLIER
|
|
2123
|
+
}), xt(ie, Ce.y, {
|
|
2124
|
+
...Oe.SPRING_CONFIG,
|
|
2125
|
+
velocity: k.velocity.y * Oe.VELOCITY_MULTIPLIER
|
|
2062
2126
|
}));
|
|
2063
2127
|
},
|
|
2064
|
-
[
|
|
2065
|
-
),
|
|
2066
|
-
return
|
|
2067
|
-
|
|
2068
|
-
}, [
|
|
2069
|
-
if (
|
|
2128
|
+
[re, ie, me]
|
|
2129
|
+
), $e = W(l.state), ge = $e.current === "compact" && l.state === "expanded";
|
|
2130
|
+
return J(() => {
|
|
2131
|
+
Pe(), $e.current = l.state;
|
|
2132
|
+
}, [l.state, Pe]), J(() => {
|
|
2133
|
+
if (l.state !== "expanded")
|
|
2070
2134
|
return;
|
|
2071
|
-
const
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2135
|
+
const x = () => {
|
|
2136
|
+
const k = me();
|
|
2137
|
+
k && (re.set(k.x), ie.set(k.y));
|
|
2074
2138
|
};
|
|
2075
|
-
return window.addEventListener("resize",
|
|
2076
|
-
}, [
|
|
2077
|
-
const
|
|
2139
|
+
return window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
|
|
2140
|
+
}, [l.state, re, ie, me]), J(() => {
|
|
2141
|
+
const x = Z.current;
|
|
2078
2142
|
return () => {
|
|
2079
|
-
|
|
2080
|
-
clearTimeout(
|
|
2081
|
-
}),
|
|
2143
|
+
x.forEach((k) => {
|
|
2144
|
+
clearTimeout(k);
|
|
2145
|
+
}), x.clear();
|
|
2082
2146
|
};
|
|
2083
|
-
}, []),
|
|
2084
|
-
if (
|
|
2085
|
-
const
|
|
2086
|
-
|
|
2147
|
+
}, []), J(() => {
|
|
2148
|
+
if (l.state === "compact" && de.current) {
|
|
2149
|
+
const x = de.current.scrollHeight + $.PADDING;
|
|
2150
|
+
te(x);
|
|
2087
2151
|
}
|
|
2088
|
-
}, [
|
|
2152
|
+
}, [l.state, S.value]), a === "embedded" ? /* @__PURE__ */ o.jsx(
|
|
2089
2153
|
"div",
|
|
2090
2154
|
{
|
|
2091
2155
|
"data-slot": "chat-embedded",
|
|
2092
|
-
className:
|
|
2093
|
-
children: /* @__PURE__ */
|
|
2094
|
-
|
|
2156
|
+
className: se(M, Se.container, Se.embedded),
|
|
2157
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2158
|
+
Ft,
|
|
2095
2159
|
{
|
|
2096
|
-
messages:
|
|
2097
|
-
inputValue:
|
|
2098
|
-
onInputChange:
|
|
2099
|
-
onSubmit:
|
|
2100
|
-
onKeyDown:
|
|
2101
|
-
textareaRef:
|
|
2102
|
-
placeholder:
|
|
2103
|
-
isProcessing:
|
|
2160
|
+
messages: n,
|
|
2161
|
+
inputValue: S.value,
|
|
2162
|
+
onInputChange: S.setValue,
|
|
2163
|
+
onSubmit: ae,
|
|
2164
|
+
onKeyDown: S.handleKeyDown,
|
|
2165
|
+
textareaRef: S.textareaRef,
|
|
2166
|
+
placeholder: u,
|
|
2167
|
+
isProcessing: t,
|
|
2168
|
+
onStop: g,
|
|
2104
2169
|
showHeader: !1,
|
|
2105
2170
|
notice: h,
|
|
2106
|
-
suggestions:
|
|
2107
|
-
clearSuggestions:
|
|
2171
|
+
suggestions: D,
|
|
2172
|
+
clearSuggestions: H,
|
|
2108
2173
|
error: r,
|
|
2109
|
-
emptyView:
|
|
2110
|
-
messageRenderer:
|
|
2111
|
-
onExpand:
|
|
2112
|
-
focusOnMount:
|
|
2174
|
+
emptyView: C,
|
|
2175
|
+
messageRenderer: B,
|
|
2176
|
+
onExpand: ue,
|
|
2177
|
+
focusOnMount: A.current
|
|
2113
2178
|
}
|
|
2114
2179
|
)
|
|
2115
2180
|
}
|
|
2116
|
-
) : /* @__PURE__ */
|
|
2117
|
-
/* @__PURE__ */
|
|
2181
|
+
) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2182
|
+
/* @__PURE__ */ o.jsx(
|
|
2118
2183
|
"div",
|
|
2119
2184
|
{
|
|
2120
|
-
ref:
|
|
2185
|
+
ref: le,
|
|
2121
2186
|
style: {
|
|
2122
2187
|
position: "fixed",
|
|
2123
|
-
top:
|
|
2124
|
-
left:
|
|
2125
|
-
right:
|
|
2126
|
-
bottom:
|
|
2188
|
+
top: $.VIEWPORT_OFFSET,
|
|
2189
|
+
left: $.VIEWPORT_OFFSET,
|
|
2190
|
+
right: $.VIEWPORT_OFFSET,
|
|
2191
|
+
bottom: $.VIEWPORT_OFFSET,
|
|
2127
2192
|
pointerEvents: "none"
|
|
2128
2193
|
}
|
|
2129
2194
|
}
|
|
2130
2195
|
),
|
|
2131
|
-
/* @__PURE__ */
|
|
2132
|
-
|
|
2196
|
+
/* @__PURE__ */ o.jsx(
|
|
2197
|
+
q.div,
|
|
2133
2198
|
{
|
|
2134
|
-
ref:
|
|
2199
|
+
ref: Q,
|
|
2135
2200
|
"data-slot": "chat-floating",
|
|
2136
|
-
className:
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2201
|
+
className: se(M, Se.container, Se.floating, {
|
|
2202
|
+
animating: O
|
|
2203
|
+
}),
|
|
2204
|
+
onMouseLeave: l.state === "compact" ? pe : void 0,
|
|
2205
|
+
drag: l.state === "expanded",
|
|
2206
|
+
dragControls: he,
|
|
2140
2207
|
dragListener: !1,
|
|
2141
|
-
dragConstraints:
|
|
2208
|
+
dragConstraints: le,
|
|
2142
2209
|
dragMomentum: !1,
|
|
2143
2210
|
dragElastic: 0.1,
|
|
2144
2211
|
dragTransition: { power: 0.1, timeConstant: 100 },
|
|
2145
|
-
onDragEnd:
|
|
2146
|
-
onPointerDown:
|
|
2212
|
+
onDragEnd: Ke,
|
|
2213
|
+
onPointerDown: ke,
|
|
2147
2214
|
style: {
|
|
2148
|
-
x:
|
|
2149
|
-
y:
|
|
2150
|
-
bottom:
|
|
2151
|
-
left:
|
|
2215
|
+
x: re,
|
|
2216
|
+
y: ie,
|
|
2217
|
+
bottom: $.VIEWPORT_OFFSET,
|
|
2218
|
+
left: $.VIEWPORT_OFFSET
|
|
2152
2219
|
},
|
|
2153
|
-
children: /* @__PURE__ */
|
|
2154
|
-
|
|
2220
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2221
|
+
q.div,
|
|
2155
2222
|
{
|
|
2156
2223
|
layout: !0,
|
|
2157
|
-
className:
|
|
2224
|
+
className: Se.content,
|
|
2158
2225
|
initial: !1,
|
|
2159
2226
|
animate: {
|
|
2160
|
-
width:
|
|
2161
|
-
height:
|
|
2162
|
-
x:
|
|
2163
|
-
transition:
|
|
2227
|
+
width: l.state === "collapsed" ? $.COLLAPSED_SIZE : $.COMPACT_WIDTH,
|
|
2228
|
+
height: Ge(l.state),
|
|
2229
|
+
x: l.state === "collapsed" && ne === "right" ? $.COMPACT_WIDTH - $.COLLAPSED_SIZE : 0,
|
|
2230
|
+
transition: S.value.trim() ? { duration: 0 } : lt
|
|
2164
2231
|
},
|
|
2232
|
+
onAnimationStart: () => T(!0),
|
|
2233
|
+
onAnimationComplete: () => T(!1),
|
|
2165
2234
|
style: {
|
|
2166
|
-
borderRadius:
|
|
2235
|
+
borderRadius: $.BORDER_RADIUS
|
|
2167
2236
|
},
|
|
2168
|
-
children: /* @__PURE__ */
|
|
2169
|
-
|
|
2237
|
+
children: /* @__PURE__ */ o.jsxs(Ue, { mode: "wait", children: [
|
|
2238
|
+
l.state === "collapsed" && /* @__PURE__ */ o.jsx(
|
|
2170
2239
|
Gn,
|
|
2171
2240
|
{
|
|
2172
|
-
icon:
|
|
2173
|
-
onClick:
|
|
2174
|
-
onHover:
|
|
2175
|
-
focusOnMount:
|
|
2241
|
+
icon: s,
|
|
2242
|
+
onClick: Me,
|
|
2243
|
+
onHover: Te,
|
|
2244
|
+
focusOnMount: _.current
|
|
2176
2245
|
},
|
|
2177
2246
|
"collapsed"
|
|
2178
2247
|
),
|
|
2179
|
-
|
|
2180
|
-
|
|
2248
|
+
l.state === "compact" && /* @__PURE__ */ o.jsx("div", { ref: de, children: /* @__PURE__ */ o.jsx(
|
|
2249
|
+
or,
|
|
2181
2250
|
{
|
|
2182
|
-
value:
|
|
2183
|
-
onChange:
|
|
2184
|
-
onSubmit:
|
|
2185
|
-
onKeyDown:
|
|
2186
|
-
textareaRef:
|
|
2187
|
-
placeholder:
|
|
2188
|
-
isProcessing:
|
|
2189
|
-
onBlur:
|
|
2190
|
-
onExpand:
|
|
2191
|
-
showExpandButton: !
|
|
2192
|
-
focusOnMount:
|
|
2251
|
+
value: S.value,
|
|
2252
|
+
onChange: S.setValue,
|
|
2253
|
+
onSubmit: ae,
|
|
2254
|
+
onKeyDown: S.handleKeyDown,
|
|
2255
|
+
textareaRef: S.textareaRef,
|
|
2256
|
+
placeholder: u,
|
|
2257
|
+
isProcessing: t,
|
|
2258
|
+
onBlur: pe,
|
|
2259
|
+
onExpand: ue,
|
|
2260
|
+
showExpandButton: !S.value.trim(),
|
|
2261
|
+
focusOnMount: v.current,
|
|
2262
|
+
onStop: g
|
|
2193
2263
|
},
|
|
2194
2264
|
"compact"
|
|
2195
2265
|
) }),
|
|
2196
|
-
|
|
2197
|
-
|
|
2266
|
+
l.state === "expanded" && /* @__PURE__ */ o.jsx(
|
|
2267
|
+
Ft,
|
|
2198
2268
|
{
|
|
2199
|
-
messages:
|
|
2200
|
-
inputValue:
|
|
2201
|
-
onInputChange:
|
|
2202
|
-
onSubmit:
|
|
2203
|
-
onKeyDown:
|
|
2204
|
-
textareaRef:
|
|
2205
|
-
placeholder:
|
|
2206
|
-
isProcessing:
|
|
2269
|
+
messages: n,
|
|
2270
|
+
inputValue: S.value,
|
|
2271
|
+
onInputChange: S.setValue,
|
|
2272
|
+
onSubmit: ae,
|
|
2273
|
+
onKeyDown: S.handleKeyDown,
|
|
2274
|
+
textareaRef: S.textareaRef,
|
|
2275
|
+
placeholder: u,
|
|
2276
|
+
isProcessing: t,
|
|
2277
|
+
onStop: g,
|
|
2207
2278
|
showHeader: !0,
|
|
2208
|
-
onClose:
|
|
2209
|
-
fromCompact:
|
|
2279
|
+
onClose: ve,
|
|
2280
|
+
fromCompact: ge,
|
|
2210
2281
|
notice: h,
|
|
2211
|
-
suggestions:
|
|
2212
|
-
clearSuggestions:
|
|
2282
|
+
suggestions: D,
|
|
2283
|
+
clearSuggestions: H,
|
|
2213
2284
|
error: r,
|
|
2214
|
-
emptyView:
|
|
2215
|
-
messageRenderer:
|
|
2216
|
-
onExpand:
|
|
2217
|
-
focusOnMount:
|
|
2285
|
+
emptyView: C,
|
|
2286
|
+
messageRenderer: B,
|
|
2287
|
+
onExpand: ue,
|
|
2288
|
+
focusOnMount: A.current
|
|
2218
2289
|
},
|
|
2219
2290
|
"expanded"
|
|
2220
2291
|
)
|
|
@@ -2225,57 +2296,59 @@ function Hr({
|
|
|
2225
2296
|
)
|
|
2226
2297
|
] });
|
|
2227
2298
|
}
|
|
2228
|
-
const
|
|
2229
|
-
messages:
|
|
2230
|
-
isProcessing:
|
|
2299
|
+
const vi = ({
|
|
2300
|
+
messages: n,
|
|
2301
|
+
isProcessing: t,
|
|
2231
2302
|
error: r,
|
|
2232
2303
|
onSubmit: i,
|
|
2233
2304
|
variant: a = "floating",
|
|
2234
|
-
triggerIcon:
|
|
2235
|
-
placeholder:
|
|
2305
|
+
triggerIcon: s,
|
|
2306
|
+
placeholder: u,
|
|
2236
2307
|
notice: h,
|
|
2237
|
-
emptyView:
|
|
2238
|
-
onOpen:
|
|
2239
|
-
onExpand:
|
|
2240
|
-
onClose:
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2308
|
+
emptyView: f,
|
|
2309
|
+
onOpen: p,
|
|
2310
|
+
onExpand: m,
|
|
2311
|
+
onClose: g,
|
|
2312
|
+
onStop: C,
|
|
2313
|
+
floatingChatState: E,
|
|
2314
|
+
suggestions: D,
|
|
2315
|
+
clearSuggestions: H,
|
|
2316
|
+
messageRenderer: B,
|
|
2317
|
+
className: M
|
|
2318
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
2319
|
+
Wr,
|
|
2248
2320
|
{
|
|
2249
|
-
messages:
|
|
2250
|
-
isProcessing:
|
|
2321
|
+
messages: n,
|
|
2322
|
+
isProcessing: t,
|
|
2251
2323
|
error: r,
|
|
2252
2324
|
onSubmit: i,
|
|
2253
2325
|
variant: a,
|
|
2254
|
-
triggerIcon:
|
|
2255
|
-
placeholder:
|
|
2326
|
+
triggerIcon: s,
|
|
2327
|
+
placeholder: u,
|
|
2256
2328
|
notice: h,
|
|
2257
|
-
emptyView:
|
|
2258
|
-
onOpen:
|
|
2259
|
-
onExpand:
|
|
2260
|
-
onClose:
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2329
|
+
emptyView: f,
|
|
2330
|
+
onOpen: p,
|
|
2331
|
+
onExpand: m,
|
|
2332
|
+
onClose: g,
|
|
2333
|
+
onStop: C,
|
|
2334
|
+
floatingChatState: E,
|
|
2335
|
+
suggestions: D,
|
|
2336
|
+
clearSuggestions: H,
|
|
2337
|
+
messageRenderer: B,
|
|
2338
|
+
className: se("agenttic", M)
|
|
2266
2339
|
}
|
|
2267
2340
|
);
|
|
2268
|
-
function
|
|
2269
|
-
return /* @__PURE__ */
|
|
2341
|
+
function mi({ className: n, size: t = 24 }) {
|
|
2342
|
+
return /* @__PURE__ */ o.jsx(
|
|
2270
2343
|
"svg",
|
|
2271
2344
|
{
|
|
2272
|
-
width:
|
|
2273
|
-
height:
|
|
2345
|
+
width: t,
|
|
2346
|
+
height: t,
|
|
2274
2347
|
viewBox: "0 0 24 24",
|
|
2275
2348
|
fill: "none",
|
|
2276
2349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2277
|
-
className:
|
|
2278
|
-
children: /* @__PURE__ */
|
|
2350
|
+
className: n,
|
|
2351
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2279
2352
|
"path",
|
|
2280
2353
|
{
|
|
2281
2354
|
d: "M6.97288 17.25C6.97288 17.3881 7.08481 17.5 7.22288 17.5L8.5 17.5L8.5 12.875L7.22288 12.875C7.08481 12.875 6.97288 12.9869 6.97288 13.125L6.97288 17.25ZM16.3725 17.5C17.1129 17.5 17.7434 16.9587 17.8549 16.2256L18.4819 13.1006C18.6199 12.1924 17.9175 11.3752 17.0004 11.375L14.0698 11.375C13.8509 11.3749 13.6429 11.2794 13.5004 11.1133C13.358 10.9469 13.2949 10.7261 13.3286 10.5098L13.7602 7.74023C13.8309 7.28511 13.4792 6.875 13.02 6.875L13.0141 6.87891L10 12.5L10 17.5L16.3725 17.5ZM5.47288 13.125C5.47288 12.1585 6.25638 11.375 7.22288 11.375L9.01216 11.375L11.6811 6.19238C11.9394 5.69079 12.4558 5.3751 13.02 5.375C14.4008 5.375 15.4552 6.6078 15.2426 7.97168L14.9458 9.875L17.0004 9.875C18.8366 9.87517 20.2413 11.511 19.9653 13.3262L19.3374 16.4512C19.1145 17.9166 17.8548 19 16.3725 19L7.22288 19C6.25638 19 5.47288 18.2165 5.47288 17.25L5.47288 13.125Z",
|
|
@@ -2285,18 +2358,18 @@ function hi({ className: t, size: n = 24 }) {
|
|
|
2285
2358
|
}
|
|
2286
2359
|
);
|
|
2287
2360
|
}
|
|
2288
|
-
function
|
|
2289
|
-
return /* @__PURE__ */
|
|
2361
|
+
function gi({ className: n, size: t = 24 }) {
|
|
2362
|
+
return /* @__PURE__ */ o.jsx(
|
|
2290
2363
|
"svg",
|
|
2291
2364
|
{
|
|
2292
|
-
width:
|
|
2293
|
-
height:
|
|
2365
|
+
width: t,
|
|
2366
|
+
height: t,
|
|
2294
2367
|
viewBox: "0 0 24 24",
|
|
2295
2368
|
fill: "none",
|
|
2296
2369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2297
|
-
className:
|
|
2370
|
+
className: n,
|
|
2298
2371
|
"aria-hidden": "true",
|
|
2299
|
-
children: /* @__PURE__ */
|
|
2372
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2300
2373
|
"path",
|
|
2301
2374
|
{
|
|
2302
2375
|
d: "M6.97288 6.75C6.97288 6.61194 7.08481 6.5 7.22288 6.5L8.5 6.5L8.5 11.125L7.22288 11.125C7.08481 11.125 6.97288 11.0131 6.97288 10.875L6.97288 6.75ZM16.3725 6.5C17.1129 6.5 17.7434 7.0413 17.8549 7.77438L18.4819 10.8994C18.6199 11.8076 17.9175 12.6248 17.0004 12.625L14.0698 12.625C13.8509 12.6251 13.6429 12.7206 13.5004 12.8867C13.358 13.0531 13.2949 13.2739 13.3286 13.4902L13.7602 16.2598C13.8309 16.7149 13.4792 17.125 13.02 17.125L13.0141 17.1211L10 11.5L10 6.5L16.3725 6.5ZM5.47288 10.875C5.47288 11.8415 6.25638 12.625 7.22288 12.625L9.01216 12.625L11.6811 17.8076C11.9394 18.3092 12.4558 18.6249 13.02 18.625C14.4008 18.625 15.4552 17.3922 15.2426 16.0283L14.9458 14.125L17.0004 14.125C18.8366 14.1248 20.2413 12.489 19.9653 10.6738L19.3374 7.54883C19.1145 6.08344 17.8548 5 16.3725 5L7.22288 5C6.25638 5 5.47288 5.78348 5.47288 6.75L5.47288 10.875Z",
|
|
@@ -2306,18 +2379,18 @@ function pi({ className: t, size: n = 24 }) {
|
|
|
2306
2379
|
}
|
|
2307
2380
|
);
|
|
2308
2381
|
}
|
|
2309
|
-
function
|
|
2310
|
-
return /* @__PURE__ */
|
|
2382
|
+
function yi({ className: n, size: t = 24 }) {
|
|
2383
|
+
return /* @__PURE__ */ o.jsx(
|
|
2311
2384
|
"svg",
|
|
2312
2385
|
{
|
|
2313
|
-
width:
|
|
2314
|
-
height:
|
|
2386
|
+
width: t,
|
|
2387
|
+
height: t,
|
|
2315
2388
|
viewBox: "0 0 24 24",
|
|
2316
2389
|
fill: "none",
|
|
2317
2390
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2318
|
-
className:
|
|
2391
|
+
className: n,
|
|
2319
2392
|
"aria-hidden": "true",
|
|
2320
|
-
children: /* @__PURE__ */
|
|
2393
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2321
2394
|
"path",
|
|
2322
2395
|
{
|
|
2323
2396
|
d: "M14.5 12C14.5 11.1716 13.8284 10.5 13 10.5H8C7.17157 10.5 6.5 11.1716 6.5 12V17C6.5 17.8284 7.17157 18.5 8 18.5H13C13.8284 18.5 14.5 17.8284 14.5 17V12ZM16 14.5H16.5C17.3284 14.5 18 13.8284 18 13V8C18 7.17157 17.3284 6.5 16.5 6.5H11C10.1716 6.5 9.5 7.17157 9.5 8V9H13C14.6569 9 16 10.3431 16 12V14.5ZM19.5 13C19.5 14.6569 18.1569 16 16.5 16H16V17C16 18.6569 14.6569 20 13 20H8C6.34315 20 5 18.6569 5 17V12C5 10.3431 6.34315 9 8 9V8C8 6.34315 9.34315 5 11 5H16.5C18.1569 5 19.5 6.34315 19.5 8V13Z",
|
|
@@ -2327,18 +2400,18 @@ function vi({ className: t, size: n = 24 }) {
|
|
|
2327
2400
|
}
|
|
2328
2401
|
);
|
|
2329
2402
|
}
|
|
2330
|
-
function
|
|
2331
|
-
return /* @__PURE__ */
|
|
2403
|
+
function Ci({ className: n, size: t = 24 }) {
|
|
2404
|
+
return /* @__PURE__ */ o.jsx(
|
|
2332
2405
|
"svg",
|
|
2333
2406
|
{
|
|
2334
|
-
width:
|
|
2335
|
-
height:
|
|
2407
|
+
width: t,
|
|
2408
|
+
height: t,
|
|
2336
2409
|
viewBox: "0 0 24 24",
|
|
2337
2410
|
fill: "none",
|
|
2338
2411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2339
|
-
className:
|
|
2412
|
+
className: n,
|
|
2340
2413
|
"aria-hidden": "true",
|
|
2341
|
-
children: /* @__PURE__ */
|
|
2414
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2342
2415
|
"path",
|
|
2343
2416
|
{
|
|
2344
2417
|
fillRule: "evenodd",
|
|
@@ -2350,24 +2423,81 @@ function mi({ className: t, size: n = 24 }) {
|
|
|
2350
2423
|
}
|
|
2351
2424
|
);
|
|
2352
2425
|
}
|
|
2426
|
+
function _i({ className: n, size: t = 24 }) {
|
|
2427
|
+
return /* @__PURE__ */ o.jsx(
|
|
2428
|
+
"svg",
|
|
2429
|
+
{
|
|
2430
|
+
width: t,
|
|
2431
|
+
height: t,
|
|
2432
|
+
viewBox: "0 0 24 24",
|
|
2433
|
+
fill: "none",
|
|
2434
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2435
|
+
className: n,
|
|
2436
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2437
|
+
"path",
|
|
2438
|
+
{
|
|
2439
|
+
fillRule: "evenodd",
|
|
2440
|
+
clipRule: "evenodd",
|
|
2441
|
+
d: "M11.2222 6.55556C8.6449 6.55556 6.55556 8.6449 6.55556 11.2222C6.55556 13.7996 8.6449 15.8889 11.2222 15.8889C13.7996 15.8889 15.8889 13.7996 15.8889 11.2222C15.8889 8.6449 13.7996 6.55556 11.2222 6.55556ZM5 11.2222C5 7.78579 7.78579 5 11.2222 5C14.6587 5 17.4445 7.78579 17.4445 11.2222C17.4445 12.6601 16.9567 13.9841 16.1377 15.0377L18.7722 17.6722C19.0759 17.976 19.0759 18.4685 18.7722 18.7722C18.4685 19.0759 17.976 19.0759 17.6722 18.7722L15.0377 16.1377C13.9841 16.9567 12.6601 17.4445 11.2222 17.4445C7.78579 17.4445 5 14.6587 5 11.2222Z",
|
|
2442
|
+
fill: "currentColor"
|
|
2443
|
+
}
|
|
2444
|
+
)
|
|
2445
|
+
}
|
|
2446
|
+
);
|
|
2447
|
+
}
|
|
2448
|
+
function xi({ className: n, size: t = 24 }) {
|
|
2449
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2450
|
+
"svg",
|
|
2451
|
+
{
|
|
2452
|
+
width: t,
|
|
2453
|
+
height: t,
|
|
2454
|
+
viewBox: "0 0 24 24",
|
|
2455
|
+
fill: "none",
|
|
2456
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2457
|
+
className: n,
|
|
2458
|
+
children: [
|
|
2459
|
+
/* @__PURE__ */ o.jsx(
|
|
2460
|
+
"path",
|
|
2461
|
+
{
|
|
2462
|
+
d: "M11.2222 14.3333C12.9404 14.3333 14.3333 12.9404 14.3333 11.2222C14.3333 9.50401 12.9404 8.11111 11.2222 8.11111C9.50401 8.11111 8.11111 9.50401 8.11111 11.2222C8.11111 12.9404 9.50401 14.3333 11.2222 14.3333Z",
|
|
2463
|
+
fill: "currentColor"
|
|
2464
|
+
}
|
|
2465
|
+
),
|
|
2466
|
+
/* @__PURE__ */ o.jsx(
|
|
2467
|
+
"path",
|
|
2468
|
+
{
|
|
2469
|
+
fillRule: "evenodd",
|
|
2470
|
+
clipRule: "evenodd",
|
|
2471
|
+
d: "M11.2222 6.55556C8.6449 6.55556 6.55556 8.6449 6.55556 11.2222C6.55556 13.7996 8.6449 15.8889 11.2222 15.8889C13.7996 15.8889 15.8889 13.7996 15.8889 11.2222C15.8889 8.6449 13.7996 6.55556 11.2222 6.55556ZM5 11.2222C5 7.78579 7.78579 5 11.2222 5C14.6587 5 17.4445 7.78579 17.4445 11.2222C17.4445 12.6601 16.9567 13.9841 16.1377 15.0377L18.7722 17.6722C19.0759 17.976 19.0759 18.4685 18.7722 18.7722C18.4685 19.0759 17.976 19.0759 17.6722 18.7722L15.0377 16.1377C13.9841 16.9567 12.6601 17.4445 11.2222 17.4445C7.78579 17.4445 5 14.6587 5 11.2222Z",
|
|
2472
|
+
fill: "currentColor"
|
|
2473
|
+
}
|
|
2474
|
+
)
|
|
2475
|
+
]
|
|
2476
|
+
}
|
|
2477
|
+
);
|
|
2478
|
+
}
|
|
2353
2479
|
export {
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2480
|
+
vi as AgentUI,
|
|
2481
|
+
ar as AnimatedPlaceholder,
|
|
2482
|
+
Jn as ArrowUpIcon,
|
|
2483
|
+
Bt as BigSkyIcon,
|
|
2484
|
+
Wr as Chat,
|
|
2485
|
+
xr as ChatFooter,
|
|
2486
|
+
Zt as ChatInput,
|
|
2487
|
+
nr as ChevronUpIcon,
|
|
2488
|
+
yi as CopyIcon,
|
|
2489
|
+
Lr as Message,
|
|
2490
|
+
Dt as MessageActions,
|
|
2491
|
+
Fr as Messages,
|
|
2492
|
+
mr as Notice,
|
|
2493
|
+
qn as StopIcon,
|
|
2494
|
+
Ci as StylesIcon,
|
|
2495
|
+
yr as Suggestions,
|
|
2496
|
+
Pr as ThinkingMessage,
|
|
2497
|
+
gi as ThumbsDownIcon,
|
|
2498
|
+
mi as ThumbsUpIcon,
|
|
2499
|
+
Ut as XIcon,
|
|
2500
|
+
_i as ZoomIcon,
|
|
2501
|
+
xi as ZoomIconFilled,
|
|
2502
|
+
pi as animations
|
|
2373
2503
|
};
|