@estevia/evafusion-agent 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +20 -17
- package/dist/index.mjs +462 -451
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { motion as Ge, AnimatePresence as
|
|
1
|
+
import f, { forwardRef as er, isValidElement as wt, useContext as Gt, useState as Ae, useMemo as It, useCallback as ct, useEffect as Ie, useRef as St } from "react";
|
|
2
|
+
import { motion as Ge, AnimatePresence as Dt } from "framer-motion";
|
|
3
3
|
import tr from "react-dom";
|
|
4
4
|
import { EvaFusionClient as rr } from "@estevia/evafusion-sdk";
|
|
5
5
|
import { Layout as ar, Users as nr, Check as or, Copy as ir, Trash2 as sr, Settings2 as Ar, Minimize2 as lr, X as jt, AlertCircle as cr, Cpu as yt, Database as dr, Shield as ur, SendHorizontal as fr, Sparkles as pr } from "lucide-react";
|
|
6
|
-
var
|
|
6
|
+
var Pt = { exports: {} }, $e = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,15 +17,15 @@ var Et;
|
|
|
17
17
|
function gr() {
|
|
18
18
|
if (Et) return $e;
|
|
19
19
|
Et = 1;
|
|
20
|
-
var e =
|
|
21
|
-
function
|
|
22
|
-
var v,
|
|
23
|
-
m !== void 0 && (
|
|
24
|
-
for (v in
|
|
25
|
-
if (l && l.defaultProps) for (v in
|
|
26
|
-
return { $$typeof: a, type: l, key:
|
|
20
|
+
var e = f, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function d(l, u, m) {
|
|
22
|
+
var v, b = {}, B = null, i = null;
|
|
23
|
+
m !== void 0 && (B = "" + m), u.key !== void 0 && (B = "" + u.key), u.ref !== void 0 && (i = u.ref);
|
|
24
|
+
for (v in u) o.call(u, v) && !c.hasOwnProperty(v) && (b[v] = u[v]);
|
|
25
|
+
if (l && l.defaultProps) for (v in u = l.defaultProps, u) b[v] === void 0 && (b[v] = u[v]);
|
|
26
|
+
return { $$typeof: a, type: l, key: B, ref: i, props: b, _owner: s.current };
|
|
27
27
|
}
|
|
28
|
-
return $e.Fragment = n, $e.jsx =
|
|
28
|
+
return $e.Fragment = n, $e.jsx = d, $e.jsxs = d, $e;
|
|
29
29
|
}
|
|
30
30
|
var et = {};
|
|
31
31
|
/**
|
|
@@ -40,8 +40,8 @@ var et = {};
|
|
|
40
40
|
var zt;
|
|
41
41
|
function mr() {
|
|
42
42
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var e =
|
|
44
|
-
function
|
|
43
|
+
var e = f, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), i = Symbol.for("react.offscreen"), F = Symbol.iterator, w = "@@iterator";
|
|
44
|
+
function T(t) {
|
|
45
45
|
if (t === null || typeof t != "object")
|
|
46
46
|
return null;
|
|
47
47
|
var A = F && t[F] || t[w];
|
|
@@ -59,16 +59,16 @@ function mr() {
|
|
|
59
59
|
{
|
|
60
60
|
var x = X.ReactDebugCurrentFrame, I = x.getStackAddendum();
|
|
61
61
|
I !== "" && (A += "%s", g = g.concat([I]));
|
|
62
|
-
var U = g.map(function(
|
|
63
|
-
return String(
|
|
62
|
+
var U = g.map(function(z) {
|
|
63
|
+
return String(z);
|
|
64
64
|
});
|
|
65
65
|
U.unshift("Warning: " + A), Function.prototype.apply.call(console[t], console, U);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var R = !1, k = !1,
|
|
68
|
+
var R = !1, k = !1, N = !1, Q = !1, ne = !1, W;
|
|
69
69
|
W = Symbol.for("react.module.reference");
|
|
70
70
|
function oe(t) {
|
|
71
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t === c || ne || t === s || t === m || t === v || Q || t === i || R || k ||
|
|
71
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === c || ne || t === s || t === m || t === v || Q || t === i || R || k || N || typeof t == "object" && t !== null && (t.$$typeof === B || t.$$typeof === b || t.$$typeof === d || t.$$typeof === l || t.$$typeof === u || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -81,7 +81,7 @@ function mr() {
|
|
|
81
81
|
var I = A.displayName || A.name || "";
|
|
82
82
|
return I !== "" ? g + "(" + I + ")" : g;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function h(t) {
|
|
85
85
|
return t.displayName || "Context";
|
|
86
86
|
}
|
|
87
87
|
function re(t) {
|
|
@@ -109,19 +109,19 @@ function mr() {
|
|
|
109
109
|
switch (t.$$typeof) {
|
|
110
110
|
case l:
|
|
111
111
|
var A = t;
|
|
112
|
-
return
|
|
113
|
-
case f:
|
|
114
|
-
var g = t;
|
|
115
|
-
return b(g._context) + ".Provider";
|
|
112
|
+
return h(A) + ".Consumer";
|
|
116
113
|
case d:
|
|
114
|
+
var g = t;
|
|
115
|
+
return h(g._context) + ".Provider";
|
|
116
|
+
case u:
|
|
117
117
|
return te(t, t.render, "ForwardRef");
|
|
118
|
-
case
|
|
118
|
+
case b:
|
|
119
119
|
var x = t.displayName || null;
|
|
120
120
|
return x !== null ? x : re(t.type) || "Memo";
|
|
121
|
-
case
|
|
122
|
-
var I = t, U = I._payload,
|
|
121
|
+
case B: {
|
|
122
|
+
var I = t, U = I._payload, z = I._init;
|
|
123
123
|
try {
|
|
124
|
-
return re(
|
|
124
|
+
return re(z(U));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function mr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var H = Object.assign, p = 0, Y, S, fe, C,
|
|
133
|
-
function
|
|
132
|
+
var H = Object.assign, p = 0, Y, S, fe, C, J, Z, j;
|
|
133
|
+
function O() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
O.__reactDisabledLog = !0;
|
|
136
|
+
function M() {
|
|
137
137
|
{
|
|
138
138
|
if (p === 0) {
|
|
139
|
-
Y = console.log, S = console.info, fe = console.warn, C = console.error,
|
|
139
|
+
Y = console.log, S = console.info, fe = console.warn, C = console.error, J = console.group, Z = console.groupCollapsed, j = console.groupEnd;
|
|
140
140
|
var t = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: O,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -156,7 +156,7 @@ function mr() {
|
|
|
156
156
|
p++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function K() {
|
|
160
160
|
{
|
|
161
161
|
if (p--, p === 0) {
|
|
162
162
|
var t = {
|
|
@@ -178,13 +178,13 @@ function mr() {
|
|
|
178
178
|
value: C
|
|
179
179
|
}),
|
|
180
180
|
group: H({}, t, {
|
|
181
|
-
value:
|
|
181
|
+
value: J
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: H({}, t, {
|
|
184
184
|
value: Z
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: H({}, t, {
|
|
187
|
-
value:
|
|
187
|
+
value: j
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
@@ -210,7 +210,7 @@ function mr() {
|
|
|
210
210
|
var Re = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
Ce = new Re();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Se(t, A) {
|
|
214
214
|
if (!t || xe)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
@@ -223,30 +223,30 @@ function mr() {
|
|
|
223
223
|
var I = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var U;
|
|
226
|
-
U = _.current, _.current = null,
|
|
226
|
+
U = _.current, _.current = null, M();
|
|
227
227
|
try {
|
|
228
228
|
if (A) {
|
|
229
|
-
var
|
|
229
|
+
var z = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(z.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(z, []);
|
|
239
239
|
} catch (de) {
|
|
240
240
|
x = de;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(t, [],
|
|
242
|
+
Reflect.construct(t, [], z);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
z.call();
|
|
246
246
|
} catch (de) {
|
|
247
247
|
x = de;
|
|
248
248
|
}
|
|
249
|
-
t.call(
|
|
249
|
+
t.call(z.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
@@ -258,17 +258,17 @@ function mr() {
|
|
|
258
258
|
}
|
|
259
259
|
} catch (de) {
|
|
260
260
|
if (de && x && typeof de.stack == "string") {
|
|
261
|
-
for (var
|
|
261
|
+
for (var E = de.stack.split(`
|
|
262
262
|
`), se = x.stack.split(`
|
|
263
|
-
`), $ =
|
|
263
|
+
`), $ = E.length - 1, ae = se.length - 1; $ >= 1 && ae >= 0 && E[$] !== se[ae]; )
|
|
264
264
|
ae--;
|
|
265
265
|
for (; $ >= 1 && ae >= 0; $--, ae--)
|
|
266
|
-
if (
|
|
266
|
+
if (E[$] !== se[ae]) {
|
|
267
267
|
if ($ !== 1 || ae !== 1)
|
|
268
268
|
do
|
|
269
|
-
if ($--, ae--, ae < 0 ||
|
|
269
|
+
if ($--, ae--, ae < 0 || E[$] !== se[ae]) {
|
|
270
270
|
var ge = `
|
|
271
|
-
` +
|
|
271
|
+
` + E[$].replace(" at new ", " at ");
|
|
272
272
|
return t.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", t.displayName)), typeof t == "function" && Ce.set(t, ge), ge;
|
|
273
273
|
}
|
|
274
274
|
while ($ >= 1 && ae >= 0);
|
|
@@ -276,23 +276,23 @@ function mr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
xe = !1, _.current = U,
|
|
279
|
+
xe = !1, _.current = U, K(), Error.prepareStackTrace = I;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var Fe = t ? t.displayName || t.name : "", Le = Fe ? Me(Fe) : "";
|
|
282
282
|
return typeof t == "function" && Ce.set(t, Le), Le;
|
|
283
283
|
}
|
|
284
284
|
function at(t, A, g) {
|
|
285
|
-
return
|
|
285
|
+
return Se(t, !1);
|
|
286
286
|
}
|
|
287
287
|
function ft(t) {
|
|
288
288
|
var A = t.prototype;
|
|
289
289
|
return !!(A && A.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Qe(t, A, g) {
|
|
292
292
|
if (t == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof t == "function")
|
|
295
|
-
return
|
|
295
|
+
return Se(t, ft(t));
|
|
296
296
|
if (typeof t == "string")
|
|
297
297
|
return Me(t);
|
|
298
298
|
switch (t) {
|
|
@@ -303,49 +303,49 @@ function mr() {
|
|
|
303
303
|
}
|
|
304
304
|
if (typeof t == "object")
|
|
305
305
|
switch (t.$$typeof) {
|
|
306
|
-
case
|
|
306
|
+
case u:
|
|
307
307
|
return at(t.render);
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
308
|
+
case b:
|
|
309
|
+
return Qe(t.type, A, g);
|
|
310
|
+
case B: {
|
|
311
311
|
var x = t, I = x._payload, U = x._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return Qe(U(I), A, g);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var Te = Object.prototype.hasOwnProperty, nt = {},
|
|
321
|
-
function
|
|
320
|
+
var Te = Object.prototype.hasOwnProperty, nt = {}, Ye = X.ReactDebugCurrentFrame;
|
|
321
|
+
function Ve(t) {
|
|
322
322
|
if (t) {
|
|
323
|
-
var A = t._owner, g =
|
|
324
|
-
|
|
323
|
+
var A = t._owner, g = Qe(t.type, t._source, A ? A.type : null);
|
|
324
|
+
Ye.setExtraStackFrame(g);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
Ye.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
328
|
function ot(t, A, g, x, I) {
|
|
329
329
|
{
|
|
330
330
|
var U = Function.call.bind(Te);
|
|
331
|
-
for (var
|
|
332
|
-
if (U(t,
|
|
333
|
-
var
|
|
331
|
+
for (var z in t)
|
|
332
|
+
if (U(t, z)) {
|
|
333
|
+
var E = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof t[
|
|
336
|
-
var se = Error((x || "React class") + ": " + g + " type `" +
|
|
335
|
+
if (typeof t[z] != "function") {
|
|
336
|
+
var se = Error((x || "React class") + ": " + g + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw se.name = "Invariant Violation", se;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
E = t[z](A, z, x, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch ($) {
|
|
341
|
-
|
|
341
|
+
E = $;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
E && !(E instanceof Error) && (Ve(I), P("%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).", x || "React class", g, z, typeof E), Ve(null)), E instanceof Error && !(E.message in nt) && (nt[E.message] = !0, Ve(I), P("Failed %s type: %s", g, E.message), Ve(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var Xe = Array.isArray;
|
|
348
|
-
function
|
|
348
|
+
function Ue(t) {
|
|
349
349
|
return Xe(t);
|
|
350
350
|
}
|
|
351
351
|
function Be(t) {
|
|
@@ -368,7 +368,7 @@ function mr() {
|
|
|
368
368
|
if (pt(t))
|
|
369
369
|
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(t)), it(t);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var De = X.ReactCurrentOwner, gt = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
@@ -391,7 +391,7 @@ function mr() {
|
|
|
391
391
|
return t.key !== void 0;
|
|
392
392
|
}
|
|
393
393
|
function Ze(t, A) {
|
|
394
|
-
typeof t.ref == "string" &&
|
|
394
|
+
typeof t.ref == "string" && De.current;
|
|
395
395
|
}
|
|
396
396
|
function Oe(t, A) {
|
|
397
397
|
{
|
|
@@ -415,57 +415,57 @@ function mr() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var je = function(t, A, g, x, I, U,
|
|
419
|
-
var
|
|
418
|
+
var je = function(t, A, g, x, I, U, z) {
|
|
419
|
+
var E = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: a,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
423
|
type: t,
|
|
424
424
|
key: A,
|
|
425
425
|
ref: g,
|
|
426
|
-
props:
|
|
426
|
+
props: z,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: U
|
|
429
429
|
};
|
|
430
|
-
return
|
|
430
|
+
return E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
432
432
|
enumerable: !1,
|
|
433
433
|
writable: !0,
|
|
434
434
|
value: !1
|
|
435
|
-
}), Object.defineProperty(
|
|
435
|
+
}), Object.defineProperty(E, "_self", {
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !1,
|
|
439
439
|
value: x
|
|
440
|
-
}), Object.defineProperty(
|
|
440
|
+
}), Object.defineProperty(E, "_source", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
444
|
value: I
|
|
445
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
446
446
|
};
|
|
447
447
|
function vt(t, A, g, x, I) {
|
|
448
448
|
{
|
|
449
|
-
var U,
|
|
450
|
-
g !== void 0 && (ie(g),
|
|
449
|
+
var U, z = {}, E = null, se = null;
|
|
450
|
+
g !== void 0 && (ie(g), E = "" + g), At(A) && (ie(A.key), E = "" + A.key), mt(A) && (se = A.ref, Ze(A, I));
|
|
451
451
|
for (U in A)
|
|
452
|
-
Te.call(A, U) && !gt.hasOwnProperty(U) && (
|
|
452
|
+
Te.call(A, U) && !gt.hasOwnProperty(U) && (z[U] = A[U]);
|
|
453
453
|
if (t && t.defaultProps) {
|
|
454
454
|
var $ = t.defaultProps;
|
|
455
455
|
for (U in $)
|
|
456
|
-
|
|
456
|
+
z[U] === void 0 && (z[U] = $[U]);
|
|
457
457
|
}
|
|
458
|
-
if (
|
|
458
|
+
if (E || se) {
|
|
459
459
|
var ae = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
460
|
-
|
|
460
|
+
E && Oe(z, ae), se && lt(z, ae);
|
|
461
461
|
}
|
|
462
|
-
return je(t,
|
|
462
|
+
return je(t, E, se, I, x, De.current, z);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
var Je = X.ReactCurrentOwner, Ke = X.ReactDebugCurrentFrame;
|
|
466
|
-
function
|
|
466
|
+
function Pe(t) {
|
|
467
467
|
if (t) {
|
|
468
|
-
var A = t._owner, g =
|
|
468
|
+
var A = t._owner, g = Qe(t.type, t._source, A ? A.type : null);
|
|
469
469
|
Ke.setExtraStackFrame(g);
|
|
470
470
|
} else
|
|
471
471
|
Ke.setExtraStackFrame(null);
|
|
@@ -513,14 +513,14 @@ Check the top-level render call using <` + g + ">.");
|
|
|
513
513
|
return;
|
|
514
514
|
y[g] = !0;
|
|
515
515
|
var x = "";
|
|
516
|
-
t && t._owner && t._owner !== Je.current && (x = " It was passed a child from " + re(t._owner.type) + "."),
|
|
516
|
+
t && t._owner && t._owner !== Je.current && (x = " It was passed a child from " + re(t._owner.type) + "."), Pe(t), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, x), Pe(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function le(t, A) {
|
|
520
520
|
{
|
|
521
521
|
if (typeof t != "object")
|
|
522
522
|
return;
|
|
523
|
-
if (
|
|
523
|
+
if (Ue(t))
|
|
524
524
|
for (var g = 0; g < t.length; g++) {
|
|
525
525
|
var x = t[g];
|
|
526
526
|
He(x) && V(x, A);
|
|
@@ -528,10 +528,10 @@ Check the top-level render call using <` + g + ">.");
|
|
|
528
528
|
else if (He(t))
|
|
529
529
|
t._store && (t._store.validated = !0);
|
|
530
530
|
else if (t) {
|
|
531
|
-
var I =
|
|
531
|
+
var I = T(t);
|
|
532
532
|
if (typeof I == "function" && I !== t.entries)
|
|
533
|
-
for (var U = I.call(t),
|
|
534
|
-
He(
|
|
533
|
+
for (var U = I.call(t), z; !(z = U.next()).done; )
|
|
534
|
+
He(z.value) && V(z.value, A);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -543,9 +543,9 @@ Check the top-level render call using <` + g + ">.");
|
|
|
543
543
|
var g;
|
|
544
544
|
if (typeof A == "function")
|
|
545
545
|
g = A.propTypes;
|
|
546
|
-
else if (typeof A == "object" && (A.$$typeof ===
|
|
546
|
+
else if (typeof A == "object" && (A.$$typeof === u || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
A.$$typeof ===
|
|
548
|
+
A.$$typeof === b))
|
|
549
549
|
g = A.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
@@ -565,35 +565,35 @@ Check the top-level render call using <` + g + ">.");
|
|
|
565
565
|
for (var A = Object.keys(t.props), g = 0; g < A.length; g++) {
|
|
566
566
|
var x = A[g];
|
|
567
567
|
if (x !== "children" && x !== "key") {
|
|
568
|
-
|
|
568
|
+
Pe(t), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Pe(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
t.ref !== null && (
|
|
572
|
+
t.ref !== null && (Pe(t), P("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var we = {};
|
|
576
576
|
function ce(t, A, g, x, I, U) {
|
|
577
577
|
{
|
|
578
|
-
var
|
|
579
|
-
if (!
|
|
580
|
-
var
|
|
581
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
578
|
+
var z = oe(t);
|
|
579
|
+
if (!z) {
|
|
580
|
+
var E = "";
|
|
581
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
582
|
var se = ht();
|
|
583
|
-
se ?
|
|
583
|
+
se ? E += se : E += me();
|
|
584
584
|
var $;
|
|
585
|
-
t === null ? $ = "null" :
|
|
585
|
+
t === null ? $ = "null" : Ue(t) ? $ = "array" : t !== void 0 && t.$$typeof === a ? ($ = "<" + (re(t.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, E);
|
|
586
586
|
}
|
|
587
587
|
var ae = vt(t, A, g, I, U);
|
|
588
588
|
if (ae == null)
|
|
589
589
|
return ae;
|
|
590
|
-
if (
|
|
590
|
+
if (z) {
|
|
591
591
|
var ge = A.children;
|
|
592
592
|
if (ge !== void 0)
|
|
593
593
|
if (x)
|
|
594
|
-
if (
|
|
595
|
-
for (var
|
|
596
|
-
le(ge[
|
|
594
|
+
if (Ue(ge)) {
|
|
595
|
+
for (var Fe = 0; Fe < ge.length; Fe++)
|
|
596
|
+
le(ge[Fe], t);
|
|
597
597
|
Object.freeze && Object.freeze(ge);
|
|
598
598
|
} else
|
|
599
599
|
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -627,8 +627,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
627
627
|
et.Fragment = o, et.jsx = Jt, et.jsxs = Kt;
|
|
628
628
|
}()), et;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var r =
|
|
630
|
+
process.env.NODE_ENV === "production" ? Pt.exports = gr() : Pt.exports = mr();
|
|
631
|
+
var r = Pt.exports, vr = (e) => {
|
|
632
632
|
switch (e) {
|
|
633
633
|
case "success":
|
|
634
634
|
return wr;
|
|
@@ -641,15 +641,15 @@ var r = Dt.exports, vr = (e) => {
|
|
|
641
641
|
default:
|
|
642
642
|
return null;
|
|
643
643
|
}
|
|
644
|
-
}, hr = Array(12).fill(0), br = ({ visible: e, className: a }) =>
|
|
645
|
-
let [e, a] =
|
|
646
|
-
return
|
|
644
|
+
}, hr = Array(12).fill(0), br = ({ visible: e, className: a }) => f.createElement("div", { className: ["sonner-loading-wrapper", a].filter(Boolean).join(" "), "data-visible": e }, f.createElement("div", { className: "sonner-spinner" }, hr.map((n, o) => f.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${o}` })))), wr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), yr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, f.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), xr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), Cr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Br = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, f.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), f.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), Dr = () => {
|
|
645
|
+
let [e, a] = f.useState(document.hidden);
|
|
646
|
+
return f.useEffect(() => {
|
|
647
647
|
let n = () => {
|
|
648
648
|
a(document.hidden);
|
|
649
649
|
};
|
|
650
650
|
return document.addEventListener("visibilitychange", n), () => window.removeEventListener("visibilitychange", n);
|
|
651
651
|
}, []), e;
|
|
652
|
-
}, Nt = 1,
|
|
652
|
+
}, Nt = 1, Pr = class {
|
|
653
653
|
constructor() {
|
|
654
654
|
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
655
655
|
let a = this.subscribers.indexOf(e);
|
|
@@ -660,42 +660,42 @@ var r = Dt.exports, vr = (e) => {
|
|
|
660
660
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
661
661
|
}, this.create = (e) => {
|
|
662
662
|
var a;
|
|
663
|
-
let { message: n, ...o } = e, s = typeof (e == null ? void 0 : e.id) == "number" || ((a = e.id) == null ? void 0 : a.length) > 0 ? e.id : Nt++, c = this.toasts.find((l) => l.id === s),
|
|
664
|
-
return this.dismissedToasts.has(s) && this.dismissedToasts.delete(s), c ? this.toasts = this.toasts.map((l) => l.id === s ? (this.publish({ ...l, ...e, id: s, title: n }), { ...l, ...e, id: s, dismissible:
|
|
663
|
+
let { message: n, ...o } = e, s = typeof (e == null ? void 0 : e.id) == "number" || ((a = e.id) == null ? void 0 : a.length) > 0 ? e.id : Nt++, c = this.toasts.find((l) => l.id === s), d = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
664
|
+
return this.dismissedToasts.has(s) && this.dismissedToasts.delete(s), c ? this.toasts = this.toasts.map((l) => l.id === s ? (this.publish({ ...l, ...e, id: s, title: n }), { ...l, ...e, id: s, dismissible: d, title: n }) : l) : this.addToast({ title: n, ...o, dismissible: d, id: s }), s;
|
|
665
665
|
}, this.dismiss = (e) => (this.dismissedToasts.add(e), e || this.toasts.forEach((a) => {
|
|
666
666
|
this.subscribers.forEach((n) => n({ id: a.id, dismiss: !0 }));
|
|
667
667
|
}), this.subscribers.forEach((a) => a({ id: e, dismiss: !0 })), e), this.message = (e, a) => this.create({ ...a, message: e }), this.error = (e, a) => this.create({ ...a, message: e, type: "error" }), this.success = (e, a) => this.create({ ...a, type: "success", message: e }), this.info = (e, a) => this.create({ ...a, type: "info", message: e }), this.warning = (e, a) => this.create({ ...a, type: "warning", message: e }), this.loading = (e, a) => this.create({ ...a, type: "loading", message: e }), this.promise = (e, a) => {
|
|
668
668
|
if (!a) return;
|
|
669
669
|
let n;
|
|
670
670
|
a.loading !== void 0 && (n = this.create({ ...a, promise: e, type: "loading", message: a.loading, description: typeof a.description != "function" ? a.description : void 0 }));
|
|
671
|
-
let o = e instanceof Promise ? e : e(), s = n !== void 0, c,
|
|
672
|
-
if (c = ["resolve",
|
|
673
|
-
else if (Mr(
|
|
671
|
+
let o = e instanceof Promise ? e : e(), s = n !== void 0, c, d = o.then(async (u) => {
|
|
672
|
+
if (c = ["resolve", u], f.isValidElement(u)) s = !1, this.create({ id: n, type: "default", message: u });
|
|
673
|
+
else if (Mr(u) && !u.ok) {
|
|
674
674
|
s = !1;
|
|
675
|
-
let m = typeof a.error == "function" ? await a.error(`HTTP error! status: ${
|
|
675
|
+
let m = typeof a.error == "function" ? await a.error(`HTTP error! status: ${u.status}`) : a.error, v = typeof a.description == "function" ? await a.description(`HTTP error! status: ${u.status}`) : a.description;
|
|
676
676
|
this.create({ id: n, type: "error", message: m, description: v });
|
|
677
677
|
} else if (a.success !== void 0) {
|
|
678
678
|
s = !1;
|
|
679
|
-
let m = typeof a.success == "function" ? await a.success(
|
|
679
|
+
let m = typeof a.success == "function" ? await a.success(u) : a.success, v = typeof a.description == "function" ? await a.description(u) : a.description;
|
|
680
680
|
this.create({ id: n, type: "success", message: m, description: v });
|
|
681
681
|
}
|
|
682
|
-
}).catch(async (
|
|
683
|
-
if (c = ["reject",
|
|
682
|
+
}).catch(async (u) => {
|
|
683
|
+
if (c = ["reject", u], a.error !== void 0) {
|
|
684
684
|
s = !1;
|
|
685
|
-
let m = typeof a.error == "function" ? await a.error(
|
|
685
|
+
let m = typeof a.error == "function" ? await a.error(u) : a.error, v = typeof a.description == "function" ? await a.description(u) : a.description;
|
|
686
686
|
this.create({ id: n, type: "error", message: m, description: v });
|
|
687
687
|
}
|
|
688
688
|
}).finally(() => {
|
|
689
|
-
var
|
|
690
|
-
s && (this.dismiss(n), n = void 0), (
|
|
691
|
-
}), l = () => new Promise((
|
|
689
|
+
var u;
|
|
690
|
+
s && (this.dismiss(n), n = void 0), (u = a.finally) == null || u.call(a);
|
|
691
|
+
}), l = () => new Promise((u, m) => d.then(() => c[0] === "reject" ? m(c[1]) : u(c[1])).catch(m));
|
|
692
692
|
return typeof n != "string" && typeof n != "number" ? { unwrap: l } : Object.assign(n, { unwrap: l });
|
|
693
693
|
}, this.custom = (e, a) => {
|
|
694
694
|
let n = (a == null ? void 0 : a.id) || Nt++;
|
|
695
695
|
return this.create({ jsx: e(n), id: n, ...a }), n;
|
|
696
696
|
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
697
697
|
}
|
|
698
|
-
}, ue = new
|
|
698
|
+
}, ue = new Pr(), Nr = (e, a) => {
|
|
699
699
|
let n = (a == null ? void 0 : a.id) || Nt++;
|
|
700
700
|
return ue.addToast({ title: e, ...a, id: n }), n;
|
|
701
701
|
}, Mr = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Tr = Nr, Or = () => ue.toasts, jr = () => ue.getActiveToasts(), ut = Object.assign(Tr, { success: ue.success, info: ue.info, warning: ue.warning, error: ue.error, custom: ue.custom, message: ue.message, promise: ue.promise, dismiss: ue.dismiss, loading: ue.loading }, { getHistory: Or, getToasts: jr });
|
|
@@ -718,37 +718,37 @@ function Ir(e) {
|
|
|
718
718
|
return a && o.push(a), n && o.push(n), o;
|
|
719
719
|
}
|
|
720
720
|
var Sr = (e) => {
|
|
721
|
-
var a, n, o, s, c,
|
|
722
|
-
let { invert:
|
|
721
|
+
var a, n, o, s, c, d, l, u, m, v, b;
|
|
722
|
+
let { invert: B, toast: i, unstyled: F, interacting: w, setHeights: T, visibleToasts: X, heights: P, index: ee, toasts: R, expanded: k, removeToast: N, defaultRichColors: Q, closeButton: ne, style: W, cancelButtonStyle: oe, actionButtonStyle: te, className: h = "", descriptionClassName: re = "", duration: H, position: p, gap: Y, loadingIcon: S, expandByDefault: fe, classNames: C, icons: J, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: j } = e, [O, M] = f.useState(null), [K, _] = f.useState(null), [L, Me] = f.useState(!1), [xe, Ce] = f.useState(!1), [Re, Se] = f.useState(!1), [at, ft] = f.useState(!1), [Qe, Te] = f.useState(!1), [nt, Ye] = f.useState(0), [Ve, ot] = f.useState(0), Xe = f.useRef(i.duration || H || Rt), Ue = f.useRef(null), Be = f.useRef(null), pt = ee === 0, it = ee + 1 <= X, ie = i.type, De = i.dismissible !== !1, gt = i.className || "", st = i.descriptionClassName || "", ke = f.useMemo(() => P.findIndex((y) => y.toastId === i.id) || 0, [P, i.id]), mt = f.useMemo(() => {
|
|
723
723
|
var y;
|
|
724
724
|
return (y = i.closeButton) != null ? y : ne;
|
|
725
|
-
}, [i.closeButton, ne]), At =
|
|
726
|
-
Oe.current =
|
|
725
|
+
}, [i.closeButton, ne]), At = f.useMemo(() => i.duration || H || Rt, [i.duration, H]), Ze = f.useRef(0), Oe = f.useRef(0), lt = f.useRef(0), je = f.useRef(null), [vt, Je] = p.split("-"), Ke = f.useMemo(() => P.reduce((y, G, V) => V >= ke ? y : y + G.height, 0), [P, ke]), Pe = Dr(), _e = i.invert || B, He = ie === "loading";
|
|
726
|
+
Oe.current = f.useMemo(() => ke * Y + Ke, [ke, Ke]), f.useEffect(() => {
|
|
727
727
|
Xe.current = At;
|
|
728
|
-
}, [At]),
|
|
728
|
+
}, [At]), f.useEffect(() => {
|
|
729
729
|
Me(!0);
|
|
730
|
-
}, []),
|
|
730
|
+
}, []), f.useEffect(() => {
|
|
731
731
|
let y = Be.current;
|
|
732
732
|
if (y) {
|
|
733
733
|
let G = y.getBoundingClientRect().height;
|
|
734
|
-
return ot(G),
|
|
734
|
+
return ot(G), T((V) => [{ toastId: i.id, height: G, position: i.position }, ...V]), () => T((V) => V.filter((le) => le.toastId !== i.id));
|
|
735
735
|
}
|
|
736
|
-
}, [
|
|
736
|
+
}, [T, i.id]), f.useLayoutEffect(() => {
|
|
737
737
|
if (!L) return;
|
|
738
738
|
let y = Be.current, G = y.style.height;
|
|
739
739
|
y.style.height = "auto";
|
|
740
740
|
let V = y.getBoundingClientRect().height;
|
|
741
|
-
y.style.height = G, ot(V),
|
|
742
|
-
}, [L, i.title, i.description,
|
|
743
|
-
let me =
|
|
744
|
-
Ce(!0),
|
|
745
|
-
|
|
741
|
+
y.style.height = G, ot(V), T((le) => le.find((pe) => pe.toastId === i.id) ? le.map((pe) => pe.toastId === i.id ? { ...pe, height: V } : pe) : [{ toastId: i.id, height: V, position: i.position }, ...le]);
|
|
742
|
+
}, [L, i.title, i.description, T, i.id]);
|
|
743
|
+
let me = f.useCallback(() => {
|
|
744
|
+
Ce(!0), Ye(Oe.current), T((y) => y.filter((G) => G.toastId !== i.id)), setTimeout(() => {
|
|
745
|
+
N(i);
|
|
746
746
|
}, Gr);
|
|
747
|
-
}, [i,
|
|
748
|
-
|
|
747
|
+
}, [i, N, T, Oe]);
|
|
748
|
+
f.useEffect(() => {
|
|
749
749
|
if (i.promise && ie === "loading" || i.duration === 1 / 0 || i.type === "loading") return;
|
|
750
750
|
let y;
|
|
751
|
-
return k || w ||
|
|
751
|
+
return k || w || j && Pe ? (() => {
|
|
752
752
|
if (lt.current < Ze.current) {
|
|
753
753
|
let G = (/* @__PURE__ */ new Date()).getTime() - Ze.current;
|
|
754
754
|
Xe.current = Xe.current - G;
|
|
@@ -758,45 +758,45 @@ var Sr = (e) => {
|
|
|
758
758
|
var G;
|
|
759
759
|
(G = i.onAutoClose) == null || G.call(i, i), me();
|
|
760
760
|
}, Xe.current)), () => clearTimeout(y);
|
|
761
|
-
}, [k, w, i, ie,
|
|
761
|
+
}, [k, w, i, ie, j, Pe, me]), f.useEffect(() => {
|
|
762
762
|
i.delete && me();
|
|
763
763
|
}, [me, i.delete]);
|
|
764
764
|
function ht() {
|
|
765
765
|
var y, G, V;
|
|
766
|
-
return
|
|
766
|
+
return J != null && J.loading ? f.createElement("div", { className: ve(C == null ? void 0 : C.loader, (y = i == null ? void 0 : i.classNames) == null ? void 0 : y.loader, "sonner-loader"), "data-visible": ie === "loading" }, J.loading) : S ? f.createElement("div", { className: ve(C == null ? void 0 : C.loader, (G = i == null ? void 0 : i.classNames) == null ? void 0 : G.loader, "sonner-loader"), "data-visible": ie === "loading" }, S) : f.createElement(br, { className: ve(C == null ? void 0 : C.loader, (V = i == null ? void 0 : i.classNames) == null ? void 0 : V.loader), visible: ie === "loading" });
|
|
767
767
|
}
|
|
768
|
-
return
|
|
769
|
-
|
|
768
|
+
return f.createElement("li", { tabIndex: 0, ref: Be, className: ve(h, gt, C == null ? void 0 : C.toast, (a = i == null ? void 0 : i.classNames) == null ? void 0 : a.toast, C == null ? void 0 : C.default, C == null ? void 0 : C[ie], (n = i == null ? void 0 : i.classNames) == null ? void 0 : n[ie]), "data-sonner-toast": "", "data-rich-colors": (o = i.richColors) != null ? o : Q, "data-styled": !(i.jsx || i.unstyled || F), "data-mounted": L, "data-promise": !!i.promise, "data-swiped": Qe, "data-removed": xe, "data-visible": it, "data-y-position": vt, "data-x-position": Je, "data-index": ee, "data-front": pt, "data-swiping": Re, "data-dismissible": De, "data-type": ie, "data-invert": _e, "data-swipe-out": at, "data-swipe-direction": K, "data-expanded": !!(k || fe && L), style: { "--index": ee, "--toasts-before": ee, "--z-index": R.length - ee, "--offset": `${xe ? nt : Oe.current}px`, "--initial-height": fe ? "auto" : `${Ve}px`, ...W, ...i.style }, onDragEnd: () => {
|
|
769
|
+
Se(!1), M(null), je.current = null;
|
|
770
770
|
}, onPointerDown: (y) => {
|
|
771
|
-
He || !
|
|
771
|
+
He || !De || (Ue.current = /* @__PURE__ */ new Date(), Ye(Oe.current), y.target.setPointerCapture(y.pointerId), y.target.tagName !== "BUTTON" && (Se(!0), je.current = { x: y.clientX, y: y.clientY }));
|
|
772
772
|
}, onPointerUp: () => {
|
|
773
773
|
var y, G, V, le;
|
|
774
|
-
if (at || !
|
|
774
|
+
if (at || !De) return;
|
|
775
775
|
je.current = null;
|
|
776
|
-
let pe = Number(((y = Be.current) == null ? void 0 : y.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), be = Number(((G = Be.current) == null ? void 0 : G.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((V =
|
|
776
|
+
let pe = Number(((y = Be.current) == null ? void 0 : y.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), be = Number(((G = Be.current) == null ? void 0 : G.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((V = Ue.current) == null ? void 0 : V.getTime()), ce = O === "x" ? pe : be, ye = Math.abs(ce) / we;
|
|
777
777
|
if (Math.abs(ce) >= Lr || ye > 0.11) {
|
|
778
|
-
|
|
778
|
+
Ye(Oe.current), (le = i.onDismiss) == null || le.call(i, i), _(O === "x" ? pe > 0 ? "right" : "left" : be > 0 ? "down" : "up"), me(), ft(!0), Te(!1);
|
|
779
779
|
return;
|
|
780
780
|
}
|
|
781
|
-
|
|
781
|
+
Se(!1), M(null);
|
|
782
782
|
}, onPointerMove: (y) => {
|
|
783
783
|
var G, V, le, pe;
|
|
784
|
-
if (!je.current || !
|
|
784
|
+
if (!je.current || !De || ((G = window.getSelection()) == null ? void 0 : G.toString().length) > 0) return;
|
|
785
785
|
let be = y.clientY - je.current.y, we = y.clientX - je.current.x, ce = (V = e.swipeDirections) != null ? V : Ir(p);
|
|
786
|
-
!
|
|
786
|
+
!O && (Math.abs(we) > 1 || Math.abs(be) > 1) && M(Math.abs(we) > Math.abs(be) ? "x" : "y");
|
|
787
787
|
let ye = { x: 0, y: 0 };
|
|
788
|
-
|
|
789
|
-
} }, mt && !i.jsx ?
|
|
788
|
+
O === "y" ? (ce.includes("top") || ce.includes("bottom")) && (ce.includes("top") && be < 0 || ce.includes("bottom") && be > 0) && (ye.y = be) : O === "x" && (ce.includes("left") || ce.includes("right")) && (ce.includes("left") && we < 0 || ce.includes("right") && we > 0) && (ye.x = we), (Math.abs(ye.x) > 0 || Math.abs(ye.y) > 0) && Te(!0), (le = Be.current) == null || le.style.setProperty("--swipe-amount-x", `${ye.x}px`), (pe = Be.current) == null || pe.style.setProperty("--swipe-amount-y", `${ye.y}px`);
|
|
789
|
+
} }, mt && !i.jsx ? f.createElement("button", { "aria-label": Z, "data-disabled": He, "data-close-button": !0, onClick: He || !De ? () => {
|
|
790
790
|
} : () => {
|
|
791
791
|
var y;
|
|
792
792
|
me(), (y = i.onDismiss) == null || y.call(i, i);
|
|
793
|
-
}, className: ve(C == null ? void 0 : C.closeButton, (s = i == null ? void 0 : i.classNames) == null ? void 0 : s.closeButton) }, (c =
|
|
793
|
+
}, className: ve(C == null ? void 0 : C.closeButton, (s = i == null ? void 0 : i.classNames) == null ? void 0 : s.closeButton) }, (c = J == null ? void 0 : J.close) != null ? c : Br) : null, i.jsx || wt(i.title) ? i.jsx ? i.jsx : typeof i.title == "function" ? i.title() : i.title : f.createElement(f.Fragment, null, ie || i.icon || i.promise ? f.createElement("div", { "data-icon": "", className: ve(C == null ? void 0 : C.icon, (d = i == null ? void 0 : i.classNames) == null ? void 0 : d.icon) }, i.promise || i.type === "loading" && !i.icon ? i.icon || ht() : null, i.type !== "loading" ? i.icon || (J == null ? void 0 : J[ie]) || vr(ie) : null) : null, f.createElement("div", { "data-content": "", className: ve(C == null ? void 0 : C.content, (l = i == null ? void 0 : i.classNames) == null ? void 0 : l.content) }, f.createElement("div", { "data-title": "", className: ve(C == null ? void 0 : C.title, (u = i == null ? void 0 : i.classNames) == null ? void 0 : u.title) }, typeof i.title == "function" ? i.title() : i.title), i.description ? f.createElement("div", { "data-description": "", className: ve(re, st, C == null ? void 0 : C.description, (m = i == null ? void 0 : i.classNames) == null ? void 0 : m.description) }, typeof i.description == "function" ? i.description() : i.description) : null), wt(i.cancel) ? i.cancel : i.cancel && dt(i.cancel) ? f.createElement("button", { "data-button": !0, "data-cancel": !0, style: i.cancelButtonStyle || oe, onClick: (y) => {
|
|
794
794
|
var G, V;
|
|
795
|
-
dt(i.cancel) &&
|
|
796
|
-
}, className: ve(C == null ? void 0 : C.cancelButton, (v = i == null ? void 0 : i.classNames) == null ? void 0 : v.cancelButton) }, i.cancel.label) : null, wt(i.action) ? i.action : i.action && dt(i.action) ?
|
|
795
|
+
dt(i.cancel) && De && ((V = (G = i.cancel).onClick) == null || V.call(G, y), me());
|
|
796
|
+
}, className: ve(C == null ? void 0 : C.cancelButton, (v = i == null ? void 0 : i.classNames) == null ? void 0 : v.cancelButton) }, i.cancel.label) : null, wt(i.action) ? i.action : i.action && dt(i.action) ? f.createElement("button", { "data-button": !0, "data-action": !0, style: i.actionButtonStyle || te, onClick: (y) => {
|
|
797
797
|
var G, V;
|
|
798
798
|
dt(i.action) && ((V = (G = i.action).onClick) == null || V.call(G, y), !y.defaultPrevented && me());
|
|
799
|
-
}, className: ve(C == null ? void 0 : C.actionButton, (
|
|
799
|
+
}, className: ve(C == null ? void 0 : C.actionButton, (b = i == null ? void 0 : i.classNames) == null ? void 0 : b.actionButton) }, i.action.label) : null));
|
|
800
800
|
};
|
|
801
801
|
function Xt() {
|
|
802
802
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
@@ -806,83 +806,83 @@ function Xt() {
|
|
|
806
806
|
function Qr(e, a) {
|
|
807
807
|
let n = {};
|
|
808
808
|
return [e, a].forEach((o, s) => {
|
|
809
|
-
let c = s === 1,
|
|
810
|
-
function
|
|
809
|
+
let c = s === 1, d = c ? "--mobile-offset" : "--offset", l = c ? Xr : Rr;
|
|
810
|
+
function u(m) {
|
|
811
811
|
["top", "right", "bottom", "left"].forEach((v) => {
|
|
812
|
-
n[`${
|
|
812
|
+
n[`${d}-${v}`] = typeof m == "number" ? `${m}px` : m;
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
|
-
typeof o == "number" || typeof o == "string" ?
|
|
816
|
-
o[m] === void 0 ? n[`${
|
|
817
|
-
}) :
|
|
815
|
+
typeof o == "number" || typeof o == "string" ? u(o) : typeof o == "object" ? ["top", "right", "bottom", "left"].forEach((m) => {
|
|
816
|
+
o[m] === void 0 ? n[`${d}-${m}`] = l : n[`${d}-${m}`] = typeof o[m] == "number" ? `${o[m]}px` : o[m];
|
|
817
|
+
}) : u(l);
|
|
818
818
|
}), n;
|
|
819
819
|
}
|
|
820
820
|
var Yr = er(function(e, a) {
|
|
821
|
-
let { invert: n, position: o = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton:
|
|
822
|
-
Q((
|
|
823
|
-
var
|
|
824
|
-
return (
|
|
821
|
+
let { invert: n, position: o = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton: d, className: l, offset: u, mobileOffset: m, theme: v = "light", richColors: b, duration: B, style: i, visibleToasts: F = zr, toastOptions: w, dir: T = Xt(), gap: X = Hr, loadingIcon: P, icons: ee, containerAriaLabel: R = "Notifications", pauseWhenPageIsHidden: k } = e, [N, Q] = f.useState([]), ne = f.useMemo(() => Array.from(new Set([o].concat(N.filter((j) => j.position).map((j) => j.position)))), [N, o]), [W, oe] = f.useState([]), [te, h] = f.useState(!1), [re, H] = f.useState(!1), [p, Y] = f.useState(v !== "system" ? v : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), S = f.useRef(null), fe = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), C = f.useRef(null), J = f.useRef(!1), Z = f.useCallback((j) => {
|
|
822
|
+
Q((O) => {
|
|
823
|
+
var M;
|
|
824
|
+
return (M = O.find((K) => K.id === j.id)) != null && M.delete || ue.dismiss(j.id), O.filter(({ id: K }) => K !== j.id);
|
|
825
825
|
});
|
|
826
826
|
}, []);
|
|
827
|
-
return
|
|
828
|
-
if (
|
|
829
|
-
Q((
|
|
827
|
+
return f.useEffect(() => ue.subscribe((j) => {
|
|
828
|
+
if (j.dismiss) {
|
|
829
|
+
Q((O) => O.map((M) => M.id === j.id ? { ...M, delete: !0 } : M));
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
setTimeout(() => {
|
|
833
833
|
tr.flushSync(() => {
|
|
834
|
-
Q((
|
|
835
|
-
let
|
|
836
|
-
return
|
|
834
|
+
Q((O) => {
|
|
835
|
+
let M = O.findIndex((K) => K.id === j.id);
|
|
836
|
+
return M !== -1 ? [...O.slice(0, M), { ...O[M], ...j }, ...O.slice(M + 1)] : [j, ...O];
|
|
837
837
|
});
|
|
838
838
|
});
|
|
839
839
|
});
|
|
840
|
-
}), []),
|
|
840
|
+
}), []), f.useEffect(() => {
|
|
841
841
|
if (v !== "system") {
|
|
842
842
|
Y(v);
|
|
843
843
|
return;
|
|
844
844
|
}
|
|
845
845
|
if (v === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? Y("dark") : Y("light")), typeof window > "u") return;
|
|
846
|
-
let
|
|
846
|
+
let j = window.matchMedia("(prefers-color-scheme: dark)");
|
|
847
847
|
try {
|
|
848
|
-
|
|
849
|
-
Y(
|
|
848
|
+
j.addEventListener("change", ({ matches: O }) => {
|
|
849
|
+
Y(O ? "dark" : "light");
|
|
850
850
|
});
|
|
851
851
|
} catch {
|
|
852
|
-
|
|
852
|
+
j.addListener(({ matches: M }) => {
|
|
853
853
|
try {
|
|
854
|
-
Y(
|
|
855
|
-
} catch (
|
|
856
|
-
console.error(
|
|
854
|
+
Y(M ? "dark" : "light");
|
|
855
|
+
} catch (K) {
|
|
856
|
+
console.error(K);
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
|
-
}, [v]),
|
|
861
|
-
|
|
862
|
-
}, [
|
|
863
|
-
let
|
|
864
|
-
var
|
|
865
|
-
s.every((_) =>
|
|
860
|
+
}, [v]), f.useEffect(() => {
|
|
861
|
+
N.length <= 1 && h(!1);
|
|
862
|
+
}, [N]), f.useEffect(() => {
|
|
863
|
+
let j = (O) => {
|
|
864
|
+
var M, K;
|
|
865
|
+
s.every((_) => O[_] || O.code === _) && (h(!0), (M = S.current) == null || M.focus()), O.code === "Escape" && (document.activeElement === S.current || (K = S.current) != null && K.contains(document.activeElement)) && h(!1);
|
|
866
866
|
};
|
|
867
|
-
return document.addEventListener("keydown",
|
|
868
|
-
}, [s]),
|
|
867
|
+
return document.addEventListener("keydown", j), () => document.removeEventListener("keydown", j);
|
|
868
|
+
}, [s]), f.useEffect(() => {
|
|
869
869
|
if (S.current) return () => {
|
|
870
|
-
C.current && (C.current.focus({ preventScroll: !0 }), C.current = null,
|
|
870
|
+
C.current && (C.current.focus({ preventScroll: !0 }), C.current = null, J.current = !1);
|
|
871
871
|
};
|
|
872
|
-
}, [S.current]),
|
|
873
|
-
var
|
|
874
|
-
let [
|
|
875
|
-
return
|
|
876
|
-
|
|
872
|
+
}, [S.current]), f.createElement("section", { ref: a, "aria-label": `${R} ${fe}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, ne.map((j, O) => {
|
|
873
|
+
var M;
|
|
874
|
+
let [K, _] = j.split("-");
|
|
875
|
+
return N.length ? f.createElement("ol", { key: j, dir: T === "auto" ? Xt() : T, tabIndex: -1, ref: S, className: l, "data-sonner-toaster": !0, "data-theme": p, "data-y-position": K, "data-lifted": te && N.length > 1 && !c, "data-x-position": _, style: { "--front-toast-height": `${((M = W[0]) == null ? void 0 : M.height) || 0}px`, "--width": `${kr}px`, "--gap": `${X}px`, ...i, ...Qr(u, m) }, onBlur: (L) => {
|
|
876
|
+
J.current && !L.currentTarget.contains(L.relatedTarget) && (J.current = !1, C.current && (C.current.focus({ preventScroll: !0 }), C.current = null));
|
|
877
877
|
}, onFocus: (L) => {
|
|
878
|
-
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" ||
|
|
879
|
-
}, onMouseEnter: () =>
|
|
880
|
-
re ||
|
|
881
|
-
}, onDragEnd: () =>
|
|
878
|
+
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || J.current || (J.current = !0, C.current = L.relatedTarget);
|
|
879
|
+
}, onMouseEnter: () => h(!0), onMouseMove: () => h(!0), onMouseLeave: () => {
|
|
880
|
+
re || h(!1);
|
|
881
|
+
}, onDragEnd: () => h(!1), onPointerDown: (L) => {
|
|
882
882
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || H(!0);
|
|
883
|
-
}, onPointerUp: () => H(!1) },
|
|
883
|
+
}, onPointerUp: () => H(!1) }, N.filter((L) => !L.position && O === 0 || L.position === j).map((L, Me) => {
|
|
884
884
|
var xe, Ce;
|
|
885
|
-
return
|
|
885
|
+
return f.createElement(Sr, { key: L.id, icons: ee, index: Me, toast: L, defaultRichColors: b, duration: (xe = w == null ? void 0 : w.duration) != null ? xe : B, className: w == null ? void 0 : w.className, descriptionClassName: w == null ? void 0 : w.descriptionClassName, invert: n, visibleToasts: F, closeButton: (Ce = w == null ? void 0 : w.closeButton) != null ? Ce : d, interacting: re, position: j, style: w == null ? void 0 : w.style, unstyled: w == null ? void 0 : w.unstyled, classNames: w == null ? void 0 : w.classNames, cancelButtonStyle: w == null ? void 0 : w.cancelButtonStyle, actionButtonStyle: w == null ? void 0 : w.actionButtonStyle, removeToast: Z, toasts: N.filter((Re) => Re.position == L.position), heights: W.filter((Re) => Re.position == L.position), setHeights: oe, expandByDefault: c, gap: X, loadingIcon: P, expanded: te, pauseWhenPageIsHidden: k, swipeDirections: e.swipeDirections });
|
|
886
886
|
})) : null;
|
|
887
887
|
}));
|
|
888
888
|
});
|
|
@@ -909,7 +909,7 @@ const Qt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAKqCAYAAACkSiwxAA
|
|
|
909
909
|
)
|
|
910
910
|
]
|
|
911
911
|
}
|
|
912
|
-
), Tt =
|
|
912
|
+
), Tt = f.createContext(null);
|
|
913
913
|
function Yt(e) {
|
|
914
914
|
var a, n, o = "";
|
|
915
915
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
@@ -929,17 +929,17 @@ const Ot = "-", Fr = (e) => {
|
|
|
929
929
|
conflictingClassGroupModifiers: o
|
|
930
930
|
} = e;
|
|
931
931
|
return {
|
|
932
|
-
getClassGroupId: (
|
|
933
|
-
const l =
|
|
934
|
-
return l[0] === "" && l.length !== 1 && l.shift(), Vt(l, a) || qr(
|
|
932
|
+
getClassGroupId: (d) => {
|
|
933
|
+
const l = d.split(Ot);
|
|
934
|
+
return l[0] === "" && l.length !== 1 && l.shift(), Vt(l, a) || qr(d);
|
|
935
935
|
},
|
|
936
|
-
getConflictingClassGroupIds: (
|
|
937
|
-
const
|
|
938
|
-
return l && o[
|
|
936
|
+
getConflictingClassGroupIds: (d, l) => {
|
|
937
|
+
const u = n[d] || [];
|
|
938
|
+
return l && o[d] ? [...u, ...o[d]] : u;
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
}, Vt = (e, a) => {
|
|
942
|
-
var
|
|
942
|
+
var d;
|
|
943
943
|
if (e.length === 0)
|
|
944
944
|
return a.classGroupId;
|
|
945
945
|
const n = e[0], o = a.nextPart.get(n), s = o ? Vt(e.slice(1), o) : void 0;
|
|
@@ -948,9 +948,9 @@ const Ot = "-", Fr = (e) => {
|
|
|
948
948
|
if (a.validators.length === 0)
|
|
949
949
|
return;
|
|
950
950
|
const c = e.join(Ot);
|
|
951
|
-
return (
|
|
951
|
+
return (d = a.validators.find(({
|
|
952
952
|
validator: l
|
|
953
|
-
}) => l(c))) == null ? void 0 :
|
|
953
|
+
}) => l(c))) == null ? void 0 : d.classGroupId;
|
|
954
954
|
}, kt = /^\[(.+)\]$/, qr = (e) => {
|
|
955
955
|
if (kt.test(e)) {
|
|
956
956
|
const a = kt.exec(e)[1], n = a == null ? void 0 : a.substring(0, a.indexOf(":"));
|
|
@@ -965,8 +965,8 @@ const Ot = "-", Fr = (e) => {
|
|
|
965
965
|
nextPart: /* @__PURE__ */ new Map(),
|
|
966
966
|
validators: []
|
|
967
967
|
};
|
|
968
|
-
return Jr(Object.entries(e.classGroups), n).forEach(([c,
|
|
969
|
-
Mt(
|
|
968
|
+
return Jr(Object.entries(e.classGroups), n).forEach(([c, d]) => {
|
|
969
|
+
Mt(d, o, c, a);
|
|
970
970
|
}), o;
|
|
971
971
|
}, Mt = (e, a, n, o) => {
|
|
972
972
|
e.forEach((s) => {
|
|
@@ -986,8 +986,8 @@ const Ot = "-", Fr = (e) => {
|
|
|
986
986
|
});
|
|
987
987
|
return;
|
|
988
988
|
}
|
|
989
|
-
Object.entries(s).forEach(([c,
|
|
990
|
-
Mt(
|
|
989
|
+
Object.entries(s).forEach(([c, d]) => {
|
|
990
|
+
Mt(d, Ht(a, c), n, o);
|
|
991
991
|
});
|
|
992
992
|
});
|
|
993
993
|
}, Ht = (e, a) => {
|
|
@@ -999,7 +999,7 @@ const Ot = "-", Fr = (e) => {
|
|
|
999
999
|
}), n = n.nextPart.get(o);
|
|
1000
1000
|
}), n;
|
|
1001
1001
|
}, Zr = (e) => e.isThemeGetter, Jr = (e, a) => a ? e.map(([n, o]) => {
|
|
1002
|
-
const s = o.map((c) => typeof c == "string" ? a + c : typeof c == "object" ? Object.fromEntries(Object.entries(c).map(([
|
|
1002
|
+
const s = o.map((c) => typeof c == "string" ? a + c : typeof c == "object" ? Object.fromEntries(Object.entries(c).map(([d, l]) => [a + d, l])) : c);
|
|
1003
1003
|
return [n, s];
|
|
1004
1004
|
}) : e, Kr = (e) => {
|
|
1005
1005
|
if (e < 1)
|
|
@@ -1010,45 +1010,45 @@ const Ot = "-", Fr = (e) => {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
};
|
|
1012
1012
|
let a = 0, n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
1013
|
-
const s = (c,
|
|
1014
|
-
n.set(c,
|
|
1013
|
+
const s = (c, d) => {
|
|
1014
|
+
n.set(c, d), a++, a > e && (a = 0, o = n, n = /* @__PURE__ */ new Map());
|
|
1015
1015
|
};
|
|
1016
1016
|
return {
|
|
1017
1017
|
get(c) {
|
|
1018
|
-
let
|
|
1019
|
-
if (
|
|
1020
|
-
return
|
|
1021
|
-
if ((
|
|
1022
|
-
return s(c,
|
|
1018
|
+
let d = n.get(c);
|
|
1019
|
+
if (d !== void 0)
|
|
1020
|
+
return d;
|
|
1021
|
+
if ((d = o.get(c)) !== void 0)
|
|
1022
|
+
return s(c, d), d;
|
|
1023
1023
|
},
|
|
1024
|
-
set(c,
|
|
1025
|
-
n.has(c) ? n.set(c,
|
|
1024
|
+
set(c, d) {
|
|
1025
|
+
n.has(c) ? n.set(c, d) : s(c, d);
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
1028
|
}, Ut = "!", _r = (e) => {
|
|
1029
1029
|
const {
|
|
1030
1030
|
separator: a,
|
|
1031
1031
|
experimentalParseClassName: n
|
|
1032
|
-
} = e, o = a.length === 1, s = a[0], c = a.length,
|
|
1033
|
-
const
|
|
1034
|
-
let m = 0, v = 0,
|
|
1035
|
-
for (let
|
|
1036
|
-
let X = l[
|
|
1032
|
+
} = e, o = a.length === 1, s = a[0], c = a.length, d = (l) => {
|
|
1033
|
+
const u = [];
|
|
1034
|
+
let m = 0, v = 0, b;
|
|
1035
|
+
for (let T = 0; T < l.length; T++) {
|
|
1036
|
+
let X = l[T];
|
|
1037
1037
|
if (m === 0) {
|
|
1038
|
-
if (X === s && (o || l.slice(
|
|
1039
|
-
|
|
1038
|
+
if (X === s && (o || l.slice(T, T + c) === a)) {
|
|
1039
|
+
u.push(l.slice(v, T)), v = T + c;
|
|
1040
1040
|
continue;
|
|
1041
1041
|
}
|
|
1042
1042
|
if (X === "/") {
|
|
1043
|
-
|
|
1043
|
+
b = T;
|
|
1044
1044
|
continue;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
X === "[" ? m++ : X === "]" && m--;
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1049
|
+
const B = u.length === 0 ? l : l.substring(v), i = B.startsWith(Ut), F = i ? B.substring(1) : B, w = b && b > v ? b - v : void 0;
|
|
1050
1050
|
return {
|
|
1051
|
-
modifiers:
|
|
1051
|
+
modifiers: u,
|
|
1052
1052
|
hasImportantModifier: i,
|
|
1053
1053
|
baseClassName: F,
|
|
1054
1054
|
maybePostfixModifierPosition: w
|
|
@@ -1056,8 +1056,8 @@ const Ot = "-", Fr = (e) => {
|
|
|
1056
1056
|
};
|
|
1057
1057
|
return n ? (l) => n({
|
|
1058
1058
|
className: l,
|
|
1059
|
-
parseClassName:
|
|
1060
|
-
}) :
|
|
1059
|
+
parseClassName: d
|
|
1060
|
+
}) : d;
|
|
1061
1061
|
}, $r = (e) => {
|
|
1062
1062
|
if (e.length <= 1)
|
|
1063
1063
|
return e;
|
|
@@ -1075,28 +1075,28 @@ const Ot = "-", Fr = (e) => {
|
|
|
1075
1075
|
parseClassName: n,
|
|
1076
1076
|
getClassGroupId: o,
|
|
1077
1077
|
getConflictingClassGroupIds: s
|
|
1078
|
-
} = a, c = [],
|
|
1078
|
+
} = a, c = [], d = e.trim().split(ta);
|
|
1079
1079
|
let l = "";
|
|
1080
|
-
for (let
|
|
1081
|
-
const m =
|
|
1080
|
+
for (let u = d.length - 1; u >= 0; u -= 1) {
|
|
1081
|
+
const m = d[u], {
|
|
1082
1082
|
modifiers: v,
|
|
1083
|
-
hasImportantModifier:
|
|
1084
|
-
baseClassName:
|
|
1083
|
+
hasImportantModifier: b,
|
|
1084
|
+
baseClassName: B,
|
|
1085
1085
|
maybePostfixModifierPosition: i
|
|
1086
1086
|
} = n(m);
|
|
1087
|
-
let F = !!i, w = o(F ?
|
|
1087
|
+
let F = !!i, w = o(F ? B.substring(0, i) : B);
|
|
1088
1088
|
if (!w) {
|
|
1089
1089
|
if (!F) {
|
|
1090
1090
|
l = m + (l.length > 0 ? " " + l : l);
|
|
1091
1091
|
continue;
|
|
1092
1092
|
}
|
|
1093
|
-
if (w = o(
|
|
1093
|
+
if (w = o(B), !w) {
|
|
1094
1094
|
l = m + (l.length > 0 ? " " + l : l);
|
|
1095
1095
|
continue;
|
|
1096
1096
|
}
|
|
1097
1097
|
F = !1;
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1099
|
+
const T = $r(v).join(":"), X = b ? T + Ut : T, P = X + w;
|
|
1100
1100
|
if (c.includes(P))
|
|
1101
1101
|
continue;
|
|
1102
1102
|
c.push(P);
|
|
@@ -1124,17 +1124,17 @@ const Ft = (e) => {
|
|
|
1124
1124
|
return n;
|
|
1125
1125
|
};
|
|
1126
1126
|
function na(e, ...a) {
|
|
1127
|
-
let n, o, s, c =
|
|
1128
|
-
function
|
|
1129
|
-
const m = a.reduce((v,
|
|
1130
|
-
return n = ea(m), o = n.cache.get, s = n.cache.set, c = l, l(
|
|
1127
|
+
let n, o, s, c = d;
|
|
1128
|
+
function d(u) {
|
|
1129
|
+
const m = a.reduce((v, b) => b(v), e());
|
|
1130
|
+
return n = ea(m), o = n.cache.get, s = n.cache.set, c = l, l(u);
|
|
1131
1131
|
}
|
|
1132
|
-
function l(
|
|
1133
|
-
const m = o(
|
|
1132
|
+
function l(u) {
|
|
1133
|
+
const m = o(u);
|
|
1134
1134
|
if (m)
|
|
1135
1135
|
return m;
|
|
1136
|
-
const v = ra(
|
|
1137
|
-
return s(
|
|
1136
|
+
const v = ra(u, n);
|
|
1137
|
+
return s(u, v), v;
|
|
1138
1138
|
}
|
|
1139
1139
|
return function() {
|
|
1140
1140
|
return c(aa.apply(null, arguments));
|
|
@@ -1143,7 +1143,7 @@ function na(e, ...a) {
|
|
|
1143
1143
|
const q = (e) => {
|
|
1144
1144
|
const a = (n) => n[e] || [];
|
|
1145
1145
|
return a.isThemeGetter = !0, a;
|
|
1146
|
-
}, qt = /^\[(?:([a-z-]+):)?(.+)\]$/i, oa = /^\d+\/\d+$/, ia = /* @__PURE__ */ new Set(["px", "full", "screen"]), sa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Aa = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, la = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ca = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, da = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) =>
|
|
1146
|
+
}, qt = /^\[(?:([a-z-]+):)?(.+)\]$/i, oa = /^\d+\/\d+$/, ia = /* @__PURE__ */ new Set(["px", "full", "screen"]), sa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Aa = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, la = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ca = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, da = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => qe(e) || ia.has(e) || oa.test(e), Ee = (e) => We(e, "length", ba), qe = (e) => !!e && !Number.isNaN(Number(e)), xt = (e) => We(e, "number", qe), tt = (e) => !!e && Number.isInteger(Number(e)), ua = (e) => e.endsWith("%") && qe(e.slice(0, -1)), D = (e) => qt.test(e), ze = (e) => sa.test(e), fa = /* @__PURE__ */ new Set(["length", "size", "percentage"]), pa = (e) => We(e, fa, Wt), ga = (e) => We(e, "position", Wt), ma = /* @__PURE__ */ new Set(["image", "url"]), va = (e) => We(e, ma, ya), ha = (e) => We(e, "", wa), rt = () => !0, We = (e, a, n) => {
|
|
1147
1147
|
const o = qt.exec(e);
|
|
1148
1148
|
return o ? o[1] ? typeof a == "string" ? o[1] === a : a.has(o[1]) : n(o[2]) : !1;
|
|
1149
1149
|
}, ba = (e) => (
|
|
@@ -1152,36 +1152,36 @@ const q = (e) => {
|
|
|
1152
1152
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1153
1153
|
Aa.test(e) && !la.test(e)
|
|
1154
1154
|
), Wt = () => !1, wa = (e) => ca.test(e), ya = (e) => da.test(e), xa = () => {
|
|
1155
|
-
const e = q("colors"), a = q("spacing"), n = q("blur"), o = q("brightness"), s = q("borderColor"), c = q("borderRadius"),
|
|
1155
|
+
const e = q("colors"), a = q("spacing"), n = q("blur"), o = q("brightness"), s = q("borderColor"), c = q("borderRadius"), d = q("borderSpacing"), l = q("borderWidth"), u = q("contrast"), m = q("grayscale"), v = q("hueRotate"), b = q("invert"), B = q("gap"), i = q("gradientColorStops"), F = q("gradientColorStopPositions"), w = q("inset"), T = q("margin"), X = q("opacity"), P = q("padding"), ee = q("saturate"), R = q("scale"), k = q("sepia"), N = q("skew"), Q = q("space"), ne = q("translate"), W = () => ["auto", "contain", "none"], oe = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", D, a], h = () => [D, a], re = () => ["", Ne, Ee], H = () => ["auto", qe, D], p = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], S = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], fe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], C = () => ["", "0", D], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Z = () => [qe, D];
|
|
1156
1156
|
return {
|
|
1157
1157
|
cacheSize: 500,
|
|
1158
1158
|
separator: ":",
|
|
1159
1159
|
theme: {
|
|
1160
1160
|
colors: [rt],
|
|
1161
1161
|
spacing: [Ne, Ee],
|
|
1162
|
-
blur: ["none", "", ze,
|
|
1162
|
+
blur: ["none", "", ze, D],
|
|
1163
1163
|
brightness: Z(),
|
|
1164
1164
|
borderColor: [e],
|
|
1165
|
-
borderRadius: ["none", "", "full", ze,
|
|
1166
|
-
borderSpacing:
|
|
1165
|
+
borderRadius: ["none", "", "full", ze, D],
|
|
1166
|
+
borderSpacing: h(),
|
|
1167
1167
|
borderWidth: re(),
|
|
1168
1168
|
contrast: Z(),
|
|
1169
1169
|
grayscale: C(),
|
|
1170
1170
|
hueRotate: Z(),
|
|
1171
1171
|
invert: C(),
|
|
1172
|
-
gap:
|
|
1172
|
+
gap: h(),
|
|
1173
1173
|
gradientColorStops: [e],
|
|
1174
1174
|
gradientColorStopPositions: [ua, Ee],
|
|
1175
1175
|
inset: te(),
|
|
1176
1176
|
margin: te(),
|
|
1177
1177
|
opacity: Z(),
|
|
1178
|
-
padding:
|
|
1178
|
+
padding: h(),
|
|
1179
1179
|
saturate: Z(),
|
|
1180
1180
|
scale: Z(),
|
|
1181
1181
|
sepia: C(),
|
|
1182
1182
|
skew: Z(),
|
|
1183
|
-
space:
|
|
1184
|
-
translate:
|
|
1183
|
+
space: h(),
|
|
1184
|
+
translate: h()
|
|
1185
1185
|
},
|
|
1186
1186
|
classGroups: {
|
|
1187
1187
|
// Layout
|
|
@@ -1190,7 +1190,7 @@ const q = (e) => {
|
|
|
1190
1190
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1191
1191
|
*/
|
|
1192
1192
|
aspect: [{
|
|
1193
|
-
aspect: ["auto", "square", "video",
|
|
1193
|
+
aspect: ["auto", "square", "video", D]
|
|
1194
1194
|
}],
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Container
|
|
@@ -1209,14 +1209,14 @@ const q = (e) => {
|
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/break-after
|
|
1210
1210
|
*/
|
|
1211
1211
|
"break-after": [{
|
|
1212
|
-
"break-after":
|
|
1212
|
+
"break-after": J()
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Break Before
|
|
1216
1216
|
* @see https://tailwindcss.com/docs/break-before
|
|
1217
1217
|
*/
|
|
1218
1218
|
"break-before": [{
|
|
1219
|
-
"break-before":
|
|
1219
|
+
"break-before": J()
|
|
1220
1220
|
}],
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Break Inside
|
|
@@ -1275,7 +1275,7 @@ const q = (e) => {
|
|
|
1275
1275
|
* @see https://tailwindcss.com/docs/object-position
|
|
1276
1276
|
*/
|
|
1277
1277
|
"object-position": [{
|
|
1278
|
-
object: [...p(),
|
|
1278
|
+
object: [...p(), D]
|
|
1279
1279
|
}],
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Overflow
|
|
@@ -1397,7 +1397,7 @@ const q = (e) => {
|
|
|
1397
1397
|
* @see https://tailwindcss.com/docs/z-index
|
|
1398
1398
|
*/
|
|
1399
1399
|
z: [{
|
|
1400
|
-
z: ["auto", tt,
|
|
1400
|
+
z: ["auto", tt, D]
|
|
1401
1401
|
}],
|
|
1402
1402
|
// Flexbox and Grid
|
|
1403
1403
|
/**
|
|
@@ -1426,7 +1426,7 @@ const q = (e) => {
|
|
|
1426
1426
|
* @see https://tailwindcss.com/docs/flex
|
|
1427
1427
|
*/
|
|
1428
1428
|
flex: [{
|
|
1429
|
-
flex: ["1", "auto", "initial", "none",
|
|
1429
|
+
flex: ["1", "auto", "initial", "none", D]
|
|
1430
1430
|
}],
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Flex Grow
|
|
@@ -1447,7 +1447,7 @@ const q = (e) => {
|
|
|
1447
1447
|
* @see https://tailwindcss.com/docs/order
|
|
1448
1448
|
*/
|
|
1449
1449
|
order: [{
|
|
1450
|
-
order: ["first", "last", "none", tt,
|
|
1450
|
+
order: ["first", "last", "none", tt, D]
|
|
1451
1451
|
}],
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Grid Template Columns
|
|
@@ -1462,8 +1462,8 @@ const q = (e) => {
|
|
|
1462
1462
|
*/
|
|
1463
1463
|
"col-start-end": [{
|
|
1464
1464
|
col: ["auto", {
|
|
1465
|
-
span: ["full", tt,
|
|
1466
|
-
},
|
|
1465
|
+
span: ["full", tt, D]
|
|
1466
|
+
}, D]
|
|
1467
1467
|
}],
|
|
1468
1468
|
/**
|
|
1469
1469
|
* Grid Column Start
|
|
@@ -1492,8 +1492,8 @@ const q = (e) => {
|
|
|
1492
1492
|
*/
|
|
1493
1493
|
"row-start-end": [{
|
|
1494
1494
|
row: ["auto", {
|
|
1495
|
-
span: [tt,
|
|
1496
|
-
},
|
|
1495
|
+
span: [tt, D]
|
|
1496
|
+
}, D]
|
|
1497
1497
|
}],
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Grid Row Start
|
|
@@ -1521,35 +1521,35 @@ const q = (e) => {
|
|
|
1521
1521
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1522
1522
|
*/
|
|
1523
1523
|
"auto-cols": [{
|
|
1524
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
1524
|
+
"auto-cols": ["auto", "min", "max", "fr", D]
|
|
1525
1525
|
}],
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Grid Auto Rows
|
|
1528
1528
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1529
1529
|
*/
|
|
1530
1530
|
"auto-rows": [{
|
|
1531
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
1531
|
+
"auto-rows": ["auto", "min", "max", "fr", D]
|
|
1532
1532
|
}],
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Gap
|
|
1535
1535
|
* @see https://tailwindcss.com/docs/gap
|
|
1536
1536
|
*/
|
|
1537
1537
|
gap: [{
|
|
1538
|
-
gap: [
|
|
1538
|
+
gap: [B]
|
|
1539
1539
|
}],
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Gap X
|
|
1542
1542
|
* @see https://tailwindcss.com/docs/gap
|
|
1543
1543
|
*/
|
|
1544
1544
|
"gap-x": [{
|
|
1545
|
-
"gap-x": [
|
|
1545
|
+
"gap-x": [B]
|
|
1546
1546
|
}],
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Gap Y
|
|
1549
1549
|
* @see https://tailwindcss.com/docs/gap
|
|
1550
1550
|
*/
|
|
1551
1551
|
"gap-y": [{
|
|
1552
|
-
"gap-y": [
|
|
1552
|
+
"gap-y": [B]
|
|
1553
1553
|
}],
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Justify Content
|
|
@@ -1683,63 +1683,63 @@ const q = (e) => {
|
|
|
1683
1683
|
* @see https://tailwindcss.com/docs/margin
|
|
1684
1684
|
*/
|
|
1685
1685
|
m: [{
|
|
1686
|
-
m: [
|
|
1686
|
+
m: [T]
|
|
1687
1687
|
}],
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Margin X
|
|
1690
1690
|
* @see https://tailwindcss.com/docs/margin
|
|
1691
1691
|
*/
|
|
1692
1692
|
mx: [{
|
|
1693
|
-
mx: [
|
|
1693
|
+
mx: [T]
|
|
1694
1694
|
}],
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Margin Y
|
|
1697
1697
|
* @see https://tailwindcss.com/docs/margin
|
|
1698
1698
|
*/
|
|
1699
1699
|
my: [{
|
|
1700
|
-
my: [
|
|
1700
|
+
my: [T]
|
|
1701
1701
|
}],
|
|
1702
1702
|
/**
|
|
1703
1703
|
* Margin Start
|
|
1704
1704
|
* @see https://tailwindcss.com/docs/margin
|
|
1705
1705
|
*/
|
|
1706
1706
|
ms: [{
|
|
1707
|
-
ms: [
|
|
1707
|
+
ms: [T]
|
|
1708
1708
|
}],
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Margin End
|
|
1711
1711
|
* @see https://tailwindcss.com/docs/margin
|
|
1712
1712
|
*/
|
|
1713
1713
|
me: [{
|
|
1714
|
-
me: [
|
|
1714
|
+
me: [T]
|
|
1715
1715
|
}],
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Margin Top
|
|
1718
1718
|
* @see https://tailwindcss.com/docs/margin
|
|
1719
1719
|
*/
|
|
1720
1720
|
mt: [{
|
|
1721
|
-
mt: [
|
|
1721
|
+
mt: [T]
|
|
1722
1722
|
}],
|
|
1723
1723
|
/**
|
|
1724
1724
|
* Margin Right
|
|
1725
1725
|
* @see https://tailwindcss.com/docs/margin
|
|
1726
1726
|
*/
|
|
1727
1727
|
mr: [{
|
|
1728
|
-
mr: [
|
|
1728
|
+
mr: [T]
|
|
1729
1729
|
}],
|
|
1730
1730
|
/**
|
|
1731
1731
|
* Margin Bottom
|
|
1732
1732
|
* @see https://tailwindcss.com/docs/margin
|
|
1733
1733
|
*/
|
|
1734
1734
|
mb: [{
|
|
1735
|
-
mb: [
|
|
1735
|
+
mb: [T]
|
|
1736
1736
|
}],
|
|
1737
1737
|
/**
|
|
1738
1738
|
* Margin Left
|
|
1739
1739
|
* @see https://tailwindcss.com/docs/margin
|
|
1740
1740
|
*/
|
|
1741
1741
|
ml: [{
|
|
1742
|
-
ml: [
|
|
1742
|
+
ml: [T]
|
|
1743
1743
|
}],
|
|
1744
1744
|
/**
|
|
1745
1745
|
* Space Between X
|
|
@@ -1771,21 +1771,21 @@ const q = (e) => {
|
|
|
1771
1771
|
* @see https://tailwindcss.com/docs/width
|
|
1772
1772
|
*/
|
|
1773
1773
|
w: [{
|
|
1774
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
1774
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", D, a]
|
|
1775
1775
|
}],
|
|
1776
1776
|
/**
|
|
1777
1777
|
* Min-Width
|
|
1778
1778
|
* @see https://tailwindcss.com/docs/min-width
|
|
1779
1779
|
*/
|
|
1780
1780
|
"min-w": [{
|
|
1781
|
-
"min-w": [
|
|
1781
|
+
"min-w": [D, a, "min", "max", "fit"]
|
|
1782
1782
|
}],
|
|
1783
1783
|
/**
|
|
1784
1784
|
* Max-Width
|
|
1785
1785
|
* @see https://tailwindcss.com/docs/max-width
|
|
1786
1786
|
*/
|
|
1787
1787
|
"max-w": [{
|
|
1788
|
-
"max-w": [
|
|
1788
|
+
"max-w": [D, a, "none", "full", "min", "max", "fit", "prose", {
|
|
1789
1789
|
screen: [ze]
|
|
1790
1790
|
}, ze]
|
|
1791
1791
|
}],
|
|
@@ -1794,28 +1794,28 @@ const q = (e) => {
|
|
|
1794
1794
|
* @see https://tailwindcss.com/docs/height
|
|
1795
1795
|
*/
|
|
1796
1796
|
h: [{
|
|
1797
|
-
h: [
|
|
1797
|
+
h: [D, a, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1798
1798
|
}],
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Min-Height
|
|
1801
1801
|
* @see https://tailwindcss.com/docs/min-height
|
|
1802
1802
|
*/
|
|
1803
1803
|
"min-h": [{
|
|
1804
|
-
"min-h": [
|
|
1804
|
+
"min-h": [D, a, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1805
1805
|
}],
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Max-Height
|
|
1808
1808
|
* @see https://tailwindcss.com/docs/max-height
|
|
1809
1809
|
*/
|
|
1810
1810
|
"max-h": [{
|
|
1811
|
-
"max-h": [
|
|
1811
|
+
"max-h": [D, a, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1812
1812
|
}],
|
|
1813
1813
|
/**
|
|
1814
1814
|
* Size
|
|
1815
1815
|
* @see https://tailwindcss.com/docs/size
|
|
1816
1816
|
*/
|
|
1817
1817
|
size: [{
|
|
1818
|
-
size: [
|
|
1818
|
+
size: [D, a, "auto", "min", "max", "fit"]
|
|
1819
1819
|
}],
|
|
1820
1820
|
// Typography
|
|
1821
1821
|
/**
|
|
@@ -1884,35 +1884,35 @@ const q = (e) => {
|
|
|
1884
1884
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1885
1885
|
*/
|
|
1886
1886
|
tracking: [{
|
|
1887
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
1887
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", D]
|
|
1888
1888
|
}],
|
|
1889
1889
|
/**
|
|
1890
1890
|
* Line Clamp
|
|
1891
1891
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1892
1892
|
*/
|
|
1893
1893
|
"line-clamp": [{
|
|
1894
|
-
"line-clamp": ["none",
|
|
1894
|
+
"line-clamp": ["none", qe, xt]
|
|
1895
1895
|
}],
|
|
1896
1896
|
/**
|
|
1897
1897
|
* Line Height
|
|
1898
1898
|
* @see https://tailwindcss.com/docs/line-height
|
|
1899
1899
|
*/
|
|
1900
1900
|
leading: [{
|
|
1901
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ne,
|
|
1901
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ne, D]
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* List Style Image
|
|
1905
1905
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1906
1906
|
*/
|
|
1907
1907
|
"list-image": [{
|
|
1908
|
-
"list-image": ["none",
|
|
1908
|
+
"list-image": ["none", D]
|
|
1909
1909
|
}],
|
|
1910
1910
|
/**
|
|
1911
1911
|
* List Style Type
|
|
1912
1912
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1913
1913
|
*/
|
|
1914
1914
|
"list-style-type": [{
|
|
1915
|
-
list: ["none", "disc", "decimal",
|
|
1915
|
+
list: ["none", "disc", "decimal", D]
|
|
1916
1916
|
}],
|
|
1917
1917
|
/**
|
|
1918
1918
|
* List Style Position
|
|
@@ -1981,7 +1981,7 @@ const q = (e) => {
|
|
|
1981
1981
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1982
1982
|
*/
|
|
1983
1983
|
"underline-offset": [{
|
|
1984
|
-
"underline-offset": ["auto", Ne,
|
|
1984
|
+
"underline-offset": ["auto", Ne, D]
|
|
1985
1985
|
}],
|
|
1986
1986
|
/**
|
|
1987
1987
|
* Text Decoration Color
|
|
@@ -2012,14 +2012,14 @@ const q = (e) => {
|
|
|
2012
2012
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2013
2013
|
*/
|
|
2014
2014
|
indent: [{
|
|
2015
|
-
indent:
|
|
2015
|
+
indent: h()
|
|
2016
2016
|
}],
|
|
2017
2017
|
/**
|
|
2018
2018
|
* Vertical Alignment
|
|
2019
2019
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2020
2020
|
*/
|
|
2021
2021
|
"vertical-align": [{
|
|
2022
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2022
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", D]
|
|
2023
2023
|
}],
|
|
2024
2024
|
/**
|
|
2025
2025
|
* Whitespace
|
|
@@ -2047,7 +2047,7 @@ const q = (e) => {
|
|
|
2047
2047
|
* @see https://tailwindcss.com/docs/content
|
|
2048
2048
|
*/
|
|
2049
2049
|
content: [{
|
|
2050
|
-
content: ["none",
|
|
2050
|
+
content: ["none", D]
|
|
2051
2051
|
}],
|
|
2052
2052
|
// Backgrounds
|
|
2053
2053
|
/**
|
|
@@ -2463,7 +2463,7 @@ const q = (e) => {
|
|
|
2463
2463
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2464
2464
|
*/
|
|
2465
2465
|
"outline-offset": [{
|
|
2466
|
-
"outline-offset": [Ne,
|
|
2466
|
+
"outline-offset": [Ne, D]
|
|
2467
2467
|
}],
|
|
2468
2468
|
/**
|
|
2469
2469
|
* Outline Width
|
|
@@ -2583,14 +2583,14 @@ const q = (e) => {
|
|
|
2583
2583
|
* @see https://tailwindcss.com/docs/contrast
|
|
2584
2584
|
*/
|
|
2585
2585
|
contrast: [{
|
|
2586
|
-
contrast: [
|
|
2586
|
+
contrast: [u]
|
|
2587
2587
|
}],
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Drop Shadow
|
|
2590
2590
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2591
2591
|
*/
|
|
2592
2592
|
"drop-shadow": [{
|
|
2593
|
-
"drop-shadow": ["", "none", ze,
|
|
2593
|
+
"drop-shadow": ["", "none", ze, D]
|
|
2594
2594
|
}],
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Grayscale
|
|
@@ -2611,7 +2611,7 @@ const q = (e) => {
|
|
|
2611
2611
|
* @see https://tailwindcss.com/docs/invert
|
|
2612
2612
|
*/
|
|
2613
2613
|
invert: [{
|
|
2614
|
-
invert: [
|
|
2614
|
+
invert: [b]
|
|
2615
2615
|
}],
|
|
2616
2616
|
/**
|
|
2617
2617
|
* Saturate
|
|
@@ -2654,7 +2654,7 @@ const q = (e) => {
|
|
|
2654
2654
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2655
2655
|
*/
|
|
2656
2656
|
"backdrop-contrast": [{
|
|
2657
|
-
"backdrop-contrast": [
|
|
2657
|
+
"backdrop-contrast": [u]
|
|
2658
2658
|
}],
|
|
2659
2659
|
/**
|
|
2660
2660
|
* Backdrop Grayscale
|
|
@@ -2675,7 +2675,7 @@ const q = (e) => {
|
|
|
2675
2675
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2676
2676
|
*/
|
|
2677
2677
|
"backdrop-invert": [{
|
|
2678
|
-
"backdrop-invert": [
|
|
2678
|
+
"backdrop-invert": [b]
|
|
2679
2679
|
}],
|
|
2680
2680
|
/**
|
|
2681
2681
|
* Backdrop Opacity
|
|
@@ -2711,21 +2711,21 @@ const q = (e) => {
|
|
|
2711
2711
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2712
2712
|
*/
|
|
2713
2713
|
"border-spacing": [{
|
|
2714
|
-
"border-spacing": [
|
|
2714
|
+
"border-spacing": [d]
|
|
2715
2715
|
}],
|
|
2716
2716
|
/**
|
|
2717
2717
|
* Border Spacing X
|
|
2718
2718
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2719
2719
|
*/
|
|
2720
2720
|
"border-spacing-x": [{
|
|
2721
|
-
"border-spacing-x": [
|
|
2721
|
+
"border-spacing-x": [d]
|
|
2722
2722
|
}],
|
|
2723
2723
|
/**
|
|
2724
2724
|
* Border Spacing Y
|
|
2725
2725
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2726
2726
|
*/
|
|
2727
2727
|
"border-spacing-y": [{
|
|
2728
|
-
"border-spacing-y": [
|
|
2728
|
+
"border-spacing-y": [d]
|
|
2729
2729
|
}],
|
|
2730
2730
|
/**
|
|
2731
2731
|
* Table Layout
|
|
@@ -2747,7 +2747,7 @@ const q = (e) => {
|
|
|
2747
2747
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2748
2748
|
*/
|
|
2749
2749
|
transition: [{
|
|
2750
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
2750
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", D]
|
|
2751
2751
|
}],
|
|
2752
2752
|
/**
|
|
2753
2753
|
* Transition Duration
|
|
@@ -2761,7 +2761,7 @@ const q = (e) => {
|
|
|
2761
2761
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2762
2762
|
*/
|
|
2763
2763
|
ease: [{
|
|
2764
|
-
ease: ["linear", "in", "out", "in-out",
|
|
2764
|
+
ease: ["linear", "in", "out", "in-out", D]
|
|
2765
2765
|
}],
|
|
2766
2766
|
/**
|
|
2767
2767
|
* Transition Delay
|
|
@@ -2775,7 +2775,7 @@ const q = (e) => {
|
|
|
2775
2775
|
* @see https://tailwindcss.com/docs/animation
|
|
2776
2776
|
*/
|
|
2777
2777
|
animate: [{
|
|
2778
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
2778
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", D]
|
|
2779
2779
|
}],
|
|
2780
2780
|
// Transforms
|
|
2781
2781
|
/**
|
|
@@ -2811,7 +2811,7 @@ const q = (e) => {
|
|
|
2811
2811
|
* @see https://tailwindcss.com/docs/rotate
|
|
2812
2812
|
*/
|
|
2813
2813
|
rotate: [{
|
|
2814
|
-
rotate: [tt,
|
|
2814
|
+
rotate: [tt, D]
|
|
2815
2815
|
}],
|
|
2816
2816
|
/**
|
|
2817
2817
|
* Translate X
|
|
@@ -2832,21 +2832,21 @@ const q = (e) => {
|
|
|
2832
2832
|
* @see https://tailwindcss.com/docs/skew
|
|
2833
2833
|
*/
|
|
2834
2834
|
"skew-x": [{
|
|
2835
|
-
"skew-x": [
|
|
2835
|
+
"skew-x": [N]
|
|
2836
2836
|
}],
|
|
2837
2837
|
/**
|
|
2838
2838
|
* Skew Y
|
|
2839
2839
|
* @see https://tailwindcss.com/docs/skew
|
|
2840
2840
|
*/
|
|
2841
2841
|
"skew-y": [{
|
|
2842
|
-
"skew-y": [
|
|
2842
|
+
"skew-y": [N]
|
|
2843
2843
|
}],
|
|
2844
2844
|
/**
|
|
2845
2845
|
* Transform Origin
|
|
2846
2846
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2847
2847
|
*/
|
|
2848
2848
|
"transform-origin": [{
|
|
2849
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
2849
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", D]
|
|
2850
2850
|
}],
|
|
2851
2851
|
// Interactivity
|
|
2852
2852
|
/**
|
|
@@ -2868,7 +2868,7 @@ const q = (e) => {
|
|
|
2868
2868
|
* @see https://tailwindcss.com/docs/cursor
|
|
2869
2869
|
*/
|
|
2870
2870
|
cursor: [{
|
|
2871
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2871
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", D]
|
|
2872
2872
|
}],
|
|
2873
2873
|
/**
|
|
2874
2874
|
* Caret Color
|
|
@@ -2903,126 +2903,126 @@ const q = (e) => {
|
|
|
2903
2903
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2904
2904
|
*/
|
|
2905
2905
|
"scroll-m": [{
|
|
2906
|
-
"scroll-m":
|
|
2906
|
+
"scroll-m": h()
|
|
2907
2907
|
}],
|
|
2908
2908
|
/**
|
|
2909
2909
|
* Scroll Margin X
|
|
2910
2910
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2911
2911
|
*/
|
|
2912
2912
|
"scroll-mx": [{
|
|
2913
|
-
"scroll-mx":
|
|
2913
|
+
"scroll-mx": h()
|
|
2914
2914
|
}],
|
|
2915
2915
|
/**
|
|
2916
2916
|
* Scroll Margin Y
|
|
2917
2917
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2918
2918
|
*/
|
|
2919
2919
|
"scroll-my": [{
|
|
2920
|
-
"scroll-my":
|
|
2920
|
+
"scroll-my": h()
|
|
2921
2921
|
}],
|
|
2922
2922
|
/**
|
|
2923
2923
|
* Scroll Margin Start
|
|
2924
2924
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2925
2925
|
*/
|
|
2926
2926
|
"scroll-ms": [{
|
|
2927
|
-
"scroll-ms":
|
|
2927
|
+
"scroll-ms": h()
|
|
2928
2928
|
}],
|
|
2929
2929
|
/**
|
|
2930
2930
|
* Scroll Margin End
|
|
2931
2931
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2932
2932
|
*/
|
|
2933
2933
|
"scroll-me": [{
|
|
2934
|
-
"scroll-me":
|
|
2934
|
+
"scroll-me": h()
|
|
2935
2935
|
}],
|
|
2936
2936
|
/**
|
|
2937
2937
|
* Scroll Margin Top
|
|
2938
2938
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2939
2939
|
*/
|
|
2940
2940
|
"scroll-mt": [{
|
|
2941
|
-
"scroll-mt":
|
|
2941
|
+
"scroll-mt": h()
|
|
2942
2942
|
}],
|
|
2943
2943
|
/**
|
|
2944
2944
|
* Scroll Margin Right
|
|
2945
2945
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2946
2946
|
*/
|
|
2947
2947
|
"scroll-mr": [{
|
|
2948
|
-
"scroll-mr":
|
|
2948
|
+
"scroll-mr": h()
|
|
2949
2949
|
}],
|
|
2950
2950
|
/**
|
|
2951
2951
|
* Scroll Margin Bottom
|
|
2952
2952
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2953
2953
|
*/
|
|
2954
2954
|
"scroll-mb": [{
|
|
2955
|
-
"scroll-mb":
|
|
2955
|
+
"scroll-mb": h()
|
|
2956
2956
|
}],
|
|
2957
2957
|
/**
|
|
2958
2958
|
* Scroll Margin Left
|
|
2959
2959
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2960
2960
|
*/
|
|
2961
2961
|
"scroll-ml": [{
|
|
2962
|
-
"scroll-ml":
|
|
2962
|
+
"scroll-ml": h()
|
|
2963
2963
|
}],
|
|
2964
2964
|
/**
|
|
2965
2965
|
* Scroll Padding
|
|
2966
2966
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2967
2967
|
*/
|
|
2968
2968
|
"scroll-p": [{
|
|
2969
|
-
"scroll-p":
|
|
2969
|
+
"scroll-p": h()
|
|
2970
2970
|
}],
|
|
2971
2971
|
/**
|
|
2972
2972
|
* Scroll Padding X
|
|
2973
2973
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2974
2974
|
*/
|
|
2975
2975
|
"scroll-px": [{
|
|
2976
|
-
"scroll-px":
|
|
2976
|
+
"scroll-px": h()
|
|
2977
2977
|
}],
|
|
2978
2978
|
/**
|
|
2979
2979
|
* Scroll Padding Y
|
|
2980
2980
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2981
2981
|
*/
|
|
2982
2982
|
"scroll-py": [{
|
|
2983
|
-
"scroll-py":
|
|
2983
|
+
"scroll-py": h()
|
|
2984
2984
|
}],
|
|
2985
2985
|
/**
|
|
2986
2986
|
* Scroll Padding Start
|
|
2987
2987
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2988
2988
|
*/
|
|
2989
2989
|
"scroll-ps": [{
|
|
2990
|
-
"scroll-ps":
|
|
2990
|
+
"scroll-ps": h()
|
|
2991
2991
|
}],
|
|
2992
2992
|
/**
|
|
2993
2993
|
* Scroll Padding End
|
|
2994
2994
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2995
2995
|
*/
|
|
2996
2996
|
"scroll-pe": [{
|
|
2997
|
-
"scroll-pe":
|
|
2997
|
+
"scroll-pe": h()
|
|
2998
2998
|
}],
|
|
2999
2999
|
/**
|
|
3000
3000
|
* Scroll Padding Top
|
|
3001
3001
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3002
3002
|
*/
|
|
3003
3003
|
"scroll-pt": [{
|
|
3004
|
-
"scroll-pt":
|
|
3004
|
+
"scroll-pt": h()
|
|
3005
3005
|
}],
|
|
3006
3006
|
/**
|
|
3007
3007
|
* Scroll Padding Right
|
|
3008
3008
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3009
3009
|
*/
|
|
3010
3010
|
"scroll-pr": [{
|
|
3011
|
-
"scroll-pr":
|
|
3011
|
+
"scroll-pr": h()
|
|
3012
3012
|
}],
|
|
3013
3013
|
/**
|
|
3014
3014
|
* Scroll Padding Bottom
|
|
3015
3015
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3016
3016
|
*/
|
|
3017
3017
|
"scroll-pb": [{
|
|
3018
|
-
"scroll-pb":
|
|
3018
|
+
"scroll-pb": h()
|
|
3019
3019
|
}],
|
|
3020
3020
|
/**
|
|
3021
3021
|
* Scroll Padding Left
|
|
3022
3022
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3023
3023
|
*/
|
|
3024
3024
|
"scroll-pl": [{
|
|
3025
|
-
"scroll-pl":
|
|
3025
|
+
"scroll-pl": h()
|
|
3026
3026
|
}],
|
|
3027
3027
|
/**
|
|
3028
3028
|
* Scroll Snap Align
|
|
@@ -3090,7 +3090,7 @@ const q = (e) => {
|
|
|
3090
3090
|
* @see https://tailwindcss.com/docs/will-change
|
|
3091
3091
|
*/
|
|
3092
3092
|
"will-change": [{
|
|
3093
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3093
|
+
"will-change": ["auto", "scroll", "contents", "transform", D]
|
|
3094
3094
|
}],
|
|
3095
3095
|
// SVG
|
|
3096
3096
|
/**
|
|
@@ -3788,35 +3788,35 @@ const Lt = [
|
|
|
3788
3788
|
const e = Gt(Tt);
|
|
3789
3789
|
if (!e)
|
|
3790
3790
|
throw new Error("useEvaAgent must be used within an EvaFusionAgent provider");
|
|
3791
|
-
const { client: a, config: n } = e, [o, s] = Ae([]), [c,
|
|
3791
|
+
const { client: a, config: n } = e, [o, s] = Ae([]), [c, d] = Ae(""), [l, u] = Ae(!1), [m, v] = Ae(n.defaultVariant || "ANALYST"), [b, B] = Ae({
|
|
3792
3792
|
vertical: "SOFTWARE_DEV",
|
|
3793
3793
|
focus: "DISCOVERY",
|
|
3794
3794
|
data: n.initialData || null
|
|
3795
3795
|
}), [i, F] = Ae(""), w = It(() => Lt.filter(
|
|
3796
|
-
(R) => R.vertical ===
|
|
3797
|
-
), [
|
|
3798
|
-
const k = Lt.find((
|
|
3796
|
+
(R) => R.vertical === b.vertical && R.variant === m
|
|
3797
|
+
), [b.vertical, m]), T = ct((R) => {
|
|
3798
|
+
const k = Lt.find((N) => N.id === R);
|
|
3799
3799
|
if (k) {
|
|
3800
|
-
F(R),
|
|
3801
|
-
let
|
|
3802
|
-
if (
|
|
3800
|
+
F(R), d(k.prompt || "");
|
|
3801
|
+
let N = k.data || null;
|
|
3802
|
+
if (N && typeof N == "string")
|
|
3803
3803
|
try {
|
|
3804
|
-
const Q = JSON.parse(
|
|
3805
|
-
|
|
3804
|
+
const Q = JSON.parse(N);
|
|
3805
|
+
N = JSON.stringify(Q, null, 2);
|
|
3806
3806
|
} catch {
|
|
3807
3807
|
}
|
|
3808
|
-
else
|
|
3809
|
-
|
|
3808
|
+
else N && typeof N == "object" && (N = JSON.stringify(N, null, 2));
|
|
3809
|
+
B((Q) => ({
|
|
3810
3810
|
...Q,
|
|
3811
3811
|
focus: k.focus || Q.focus,
|
|
3812
|
-
data:
|
|
3812
|
+
data: N
|
|
3813
3813
|
}));
|
|
3814
3814
|
} else
|
|
3815
|
-
F(""),
|
|
3815
|
+
F(""), B((N) => ({ ...N, data: null }));
|
|
3816
3816
|
}, []), X = ct(() => {
|
|
3817
3817
|
s([]), n.persist && localStorage.removeItem(`eva_agent_chat_${n.apiKey}`), ut.info("Neural session reset.");
|
|
3818
3818
|
}, [n.apiKey, n.persist, n]);
|
|
3819
|
-
|
|
3819
|
+
Ie(() => {
|
|
3820
3820
|
if (n.persist) {
|
|
3821
3821
|
const R = localStorage.getItem(`eva_agent_chat_${n.apiKey}`);
|
|
3822
3822
|
if (R)
|
|
@@ -3826,27 +3826,27 @@ const Lt = [
|
|
|
3826
3826
|
console.error("Failed to load chat history", k);
|
|
3827
3827
|
}
|
|
3828
3828
|
}
|
|
3829
|
-
}, [n.apiKey, n.persist]),
|
|
3829
|
+
}, [n.apiKey, n.persist]), Ie(() => {
|
|
3830
3830
|
n.persist && o.length > 0 && localStorage.setItem(`eva_agent_chat_${n.apiKey}`, JSON.stringify(o));
|
|
3831
3831
|
}, [o, n.apiKey, n.persist]);
|
|
3832
3832
|
const P = ct((R) => {
|
|
3833
|
-
|
|
3833
|
+
B((k) => ({ ...k, ...R })), R.vertical && F("");
|
|
3834
3834
|
}, []), ee = ct(async (R) => {
|
|
3835
3835
|
const k = R || c;
|
|
3836
3836
|
if (!k.trim() || !a || l) return;
|
|
3837
|
-
const
|
|
3837
|
+
const N = {
|
|
3838
3838
|
role: "user",
|
|
3839
3839
|
content: k,
|
|
3840
3840
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
3841
3841
|
};
|
|
3842
|
-
s((Q) => [...Q,
|
|
3842
|
+
s((Q) => [...Q, N]), R || d(""), u(!0);
|
|
3843
3843
|
try {
|
|
3844
3844
|
const Q = {
|
|
3845
3845
|
prompt: k,
|
|
3846
|
-
vertical:
|
|
3847
|
-
focus:
|
|
3848
|
-
data: typeof
|
|
3849
|
-
ingestionMode:
|
|
3846
|
+
vertical: b.vertical,
|
|
3847
|
+
focus: b.focus,
|
|
3848
|
+
data: typeof b.data == "string" ? JSON.parse(b.data) : b.data,
|
|
3849
|
+
ingestionMode: b.data ? "DATA" : "TEXT"
|
|
3850
3850
|
};
|
|
3851
3851
|
let ne = m;
|
|
3852
3852
|
const W = k.toLowerCase();
|
|
@@ -3854,21 +3854,21 @@ const Lt = [
|
|
|
3854
3854
|
const oe = await a.query(ne, Q);
|
|
3855
3855
|
if (oe.success) {
|
|
3856
3856
|
let te = "";
|
|
3857
|
-
const
|
|
3858
|
-
if (typeof
|
|
3857
|
+
const h = oe.data;
|
|
3858
|
+
if (typeof h == "string")
|
|
3859
3859
|
try {
|
|
3860
|
-
const H = JSON.parse(
|
|
3861
|
-
te = H.analysis || H.summary || H.response || H.result ||
|
|
3860
|
+
const H = JSON.parse(h);
|
|
3861
|
+
te = H.analysis || H.summary || H.response || H.result || h, H.diagram && (te += `
|
|
3862
3862
|
|
|
3863
3863
|
### Neural Blueprint
|
|
3864
3864
|
${H.diagram}`);
|
|
3865
3865
|
} catch {
|
|
3866
|
-
te =
|
|
3866
|
+
te = h;
|
|
3867
3867
|
}
|
|
3868
|
-
else typeof
|
|
3868
|
+
else typeof h == "object" && h !== null ? (te = h.analysis || h.summary || h.response || h.result || JSON.stringify(h, null, 2), h.diagram && (te += `
|
|
3869
3869
|
|
|
3870
3870
|
### Neural Blueprint
|
|
3871
|
-
${
|
|
3871
|
+
${h.diagram}`)) : te = String(h);
|
|
3872
3872
|
const re = {
|
|
3873
3873
|
role: "assistant",
|
|
3874
3874
|
content: te,
|
|
@@ -3883,35 +3883,44 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3883
3883
|
} catch (Q) {
|
|
3884
3884
|
ut.error(`API Error: ${Q.message || "Failed to reach EvaFusion"}`);
|
|
3885
3885
|
} finally {
|
|
3886
|
-
|
|
3886
|
+
u(!1);
|
|
3887
3887
|
}
|
|
3888
|
-
}, [c, a, l, m,
|
|
3888
|
+
}, [c, a, l, m, b]);
|
|
3889
3889
|
return {
|
|
3890
3890
|
messages: o,
|
|
3891
3891
|
input: c,
|
|
3892
|
-
setInput:
|
|
3892
|
+
setInput: d,
|
|
3893
3893
|
isProcessing: l,
|
|
3894
3894
|
activeVariant: m,
|
|
3895
3895
|
setActiveVariant: v,
|
|
3896
3896
|
handleSend: ee,
|
|
3897
|
-
payloadConfig:
|
|
3897
|
+
payloadConfig: b,
|
|
3898
3898
|
updatePayloadConfig: P,
|
|
3899
3899
|
samples: w.map((R) => ({ ...R, isDataDriven: !!R.data })),
|
|
3900
3900
|
selectedSampleId: i,
|
|
3901
|
-
applySample:
|
|
3901
|
+
applySample: T,
|
|
3902
3902
|
clearChat: X,
|
|
3903
3903
|
isAuthorized: !!a
|
|
3904
3904
|
};
|
|
3905
3905
|
}, Ct = ({ chart: e }) => {
|
|
3906
3906
|
const a = St(null), [n, o] = Ae(null), [s, c] = Ae(!1);
|
|
3907
|
-
return
|
|
3908
|
-
|
|
3907
|
+
return Ie(() => {
|
|
3908
|
+
const d = document.createElement("style");
|
|
3909
|
+
return d.id = "eva-hide-mermaid-errors", d.innerHTML = `
|
|
3910
|
+
.mermaidTip, #dmermaid, [id^="dmermaid"], .mermaid-error { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
|
|
3911
|
+
#mermaid-error-container { display: none !important; }
|
|
3912
|
+
`, document.head.appendChild(d), () => {
|
|
3913
|
+
var l;
|
|
3914
|
+
(l = document.getElementById("eva-hide-mermaid-errors")) == null || l.remove();
|
|
3915
|
+
};
|
|
3916
|
+
}, []), Ie(() => {
|
|
3917
|
+
if (window.__EVA_MERMAID__) {
|
|
3909
3918
|
c(!0);
|
|
3910
3919
|
return;
|
|
3911
3920
|
}
|
|
3912
|
-
const
|
|
3913
|
-
|
|
3914
|
-
window.mermaid.initialize({
|
|
3921
|
+
const d = document.createElement("script");
|
|
3922
|
+
d.src = "https://cdn.jsdelivr.net/npm/mermaid@10.2.4/dist/mermaid.min.js", d.async = !0, d.onload = () => {
|
|
3923
|
+
window.__EVA_MERMAID__ = window.mermaid, window.__EVA_MERMAID__.initialize({
|
|
3915
3924
|
startOnLoad: !1,
|
|
3916
3925
|
theme: "dark",
|
|
3917
3926
|
securityLevel: "loose",
|
|
@@ -3924,31 +3933,33 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3924
3933
|
tertiaryColor: "#1e1e38"
|
|
3925
3934
|
}
|
|
3926
3935
|
}), c(!0);
|
|
3927
|
-
}, document.body.appendChild(
|
|
3928
|
-
}, []),
|
|
3936
|
+
}, document.body.appendChild(d);
|
|
3937
|
+
}, []), Ie(() => {
|
|
3929
3938
|
if (s && a.current) {
|
|
3930
|
-
const
|
|
3931
|
-
let
|
|
3939
|
+
const d = window.__EVA_MERMAID__, l = `mermaid-render-${Math.random().toString(36).slice(2, 11)}`;
|
|
3940
|
+
let u = e.trim().replace(/\\n/g, `
|
|
3932
3941
|
`).replace(/^`{3}mermaid\n?/, "").replace(/\n?`{3}$/, "").trim();
|
|
3933
|
-
const m = /(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)[\s\S]+/i, v =
|
|
3934
|
-
|
|
3935
|
-
|
|
3942
|
+
const m = /(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)[\s\S]+/i, v = u.match(m);
|
|
3943
|
+
v && (u = v[0].trim());
|
|
3944
|
+
const b = u.split(`
|
|
3936
3945
|
`);
|
|
3937
|
-
|
|
3946
|
+
if (b.length > 0) {
|
|
3947
|
+
const B = b[0].toLowerCase();
|
|
3948
|
+
(B.startsWith("graph ") || B.startsWith("flowchart ")) && (b[0] = b[0].replace(/;+$/, "").trim(), u = b.join(`
|
|
3938
3949
|
`));
|
|
3939
3950
|
}
|
|
3940
3951
|
try {
|
|
3941
|
-
|
|
3942
|
-
a.current && (a.current.innerHTML =
|
|
3943
|
-
}).catch((
|
|
3944
|
-
console.error("Mermaid Render Error:",
|
|
3952
|
+
d.render(l, u).then((B) => {
|
|
3953
|
+
a.current && (a.current.innerHTML = B.svg);
|
|
3954
|
+
}).catch((B) => {
|
|
3955
|
+
console.error("Mermaid Render Error:", B), o("Neural Blueprint Syntax Error");
|
|
3945
3956
|
});
|
|
3946
3957
|
} catch {
|
|
3947
3958
|
o("Neural Blueprint Sync Failed");
|
|
3948
3959
|
}
|
|
3949
3960
|
}
|
|
3950
3961
|
}, [e, s]), n ? /* @__PURE__ */ r.jsx("div", { className: "text-[10px] text-rose-500 italic p-4 bg-rose-500/5 rounded-xl border border-rose-500/10", children: n }) : s ? /* @__PURE__ */ r.jsx("div", { className: "w-full overflow-x-auto no-scrollbar bg-black/40 rounded-xl p-4 border border-white/5 my-4", children: /* @__PURE__ */ r.jsx("div", { ref: a, className: "flex justify-center" }) }) : /* @__PURE__ */ r.jsx("div", { className: "p-8 flex items-center justify-center", children: /* @__PURE__ */ r.jsx("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-amber-500" }) });
|
|
3951
|
-
},
|
|
3962
|
+
}, Da = ({ tasks: e, team: a }) => !e && !a ? null : /* @__PURE__ */ r.jsxs("div", { className: "space-y-6 mt-6", children: [
|
|
3952
3963
|
e && e.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: "space-y-3", children: [
|
|
3953
3964
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 text-amber-500", children: [
|
|
3954
3965
|
/* @__PURE__ */ r.jsx(ar, { size: 14 }),
|
|
@@ -3992,7 +4003,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3992
4003
|
/* @__PURE__ */ r.jsx("div", { className: "text-[8px] text-slate-500 uppercase font-black", children: n.role })
|
|
3993
4004
|
] })
|
|
3994
4005
|
] }),
|
|
3995
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex flex-wrap gap-1", children: (s = n.skills) == null ? void 0 : s.slice(0, 2).map((c,
|
|
4006
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex flex-wrap gap-1", children: (s = n.skills) == null ? void 0 : s.slice(0, 2).map((c, d) => /* @__PURE__ */ r.jsx("span", { className: "text-[7px] bg-white/5 text-slate-400 px-1 py-0.5 rounded", children: c }, d)) })
|
|
3996
4007
|
] }, o);
|
|
3997
4008
|
}) })
|
|
3998
4009
|
] })
|
|
@@ -4006,7 +4017,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4006
4017
|
n[s] === "Nominal" ? "bg-emerald-500/20 text-emerald-500" : "bg-amber-500/20 text-amber-500"
|
|
4007
4018
|
), children: n[s] }) : n[s] }, s)) }, o)) })
|
|
4008
4019
|
] }) }) });
|
|
4009
|
-
},
|
|
4020
|
+
}, Pa = ({ usage: e, rawPayload: a }) => {
|
|
4010
4021
|
const [n, o] = Ae(!1), s = () => {
|
|
4011
4022
|
navigator.clipboard.writeText(JSON.stringify(a, null, 2)), o(!0), ut.success("Neural payload copied to clipboard"), setTimeout(() => o(!1), 2e3);
|
|
4012
4023
|
};
|
|
@@ -4034,29 +4045,29 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4034
4045
|
)
|
|
4035
4046
|
] });
|
|
4036
4047
|
}, Na = ({ onClose: e, onMinimize: a }) => {
|
|
4037
|
-
const n = Gt(Tt), [o, s] = Ae(!1), [c,
|
|
4048
|
+
const n = Gt(Tt), [o, s] = Ae(!1), [c, d] = Ae(!1), l = St(null);
|
|
4038
4049
|
if (!n) return null;
|
|
4039
4050
|
const {
|
|
4040
|
-
messages:
|
|
4051
|
+
messages: u,
|
|
4041
4052
|
input: m,
|
|
4042
4053
|
setInput: v,
|
|
4043
|
-
isProcessing:
|
|
4044
|
-
activeVariant:
|
|
4054
|
+
isProcessing: b,
|
|
4055
|
+
activeVariant: B,
|
|
4045
4056
|
setActiveVariant: i,
|
|
4046
4057
|
handleSend: F,
|
|
4047
4058
|
payloadConfig: w,
|
|
4048
|
-
updatePayloadConfig:
|
|
4059
|
+
updatePayloadConfig: T,
|
|
4049
4060
|
samples: X,
|
|
4050
4061
|
selectedSampleId: P,
|
|
4051
4062
|
applySample: ee,
|
|
4052
4063
|
clearChat: R,
|
|
4053
4064
|
isAuthorized: k
|
|
4054
|
-
} = Ba(), [
|
|
4055
|
-
|
|
4056
|
-
o && (Q(w), W(
|
|
4065
|
+
} = Ba(), [N, Q] = Ae(w), [ne, W] = Ae(B);
|
|
4066
|
+
Ie(() => {
|
|
4067
|
+
o && (Q(w), W(B));
|
|
4057
4068
|
}, [o]);
|
|
4058
4069
|
const oe = () => {
|
|
4059
|
-
i(ne),
|
|
4070
|
+
i(ne), T(N), s(!1);
|
|
4060
4071
|
}, te = [
|
|
4061
4072
|
{ id: "SOFTWARE_DEV", name: "Software & Cloud" },
|
|
4062
4073
|
{ id: "FINANCE", name: "Finance & Quants" },
|
|
@@ -4064,34 +4075,34 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4064
4075
|
{ id: "MANUFACTURING", name: "Industrial & MFG" },
|
|
4065
4076
|
{ id: "REAL_ESTATE", name: "Real Estate & Const." },
|
|
4066
4077
|
{ id: "RETAIL", name: "Retail & Commerce" }
|
|
4067
|
-
],
|
|
4078
|
+
], h = () => {
|
|
4068
4079
|
var p;
|
|
4069
4080
|
(p = l.current) == null || p.scrollIntoView({ behavior: "smooth" });
|
|
4070
4081
|
};
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
}, [
|
|
4082
|
+
Ie(() => {
|
|
4083
|
+
h();
|
|
4084
|
+
}, [u, b]);
|
|
4074
4085
|
const re = (p) => p.isDataDriven ? " [DATA]" : " [PROMPT]", H = ({ msg: p }) => {
|
|
4075
|
-
const { content: Y, rawPayload: S, usage: fe } = p, C = Y.split(/(?=### )/g),
|
|
4076
|
-
`).map((
|
|
4077
|
-
const
|
|
4078
|
-
if (!
|
|
4079
|
-
if (
|
|
4086
|
+
const { content: Y, rawPayload: S, usage: fe } = p, C = Y.split(/(?=### )/g), J = (Z) => Z.includes("```mermaid") ? Z.split(/```mermaid([\s\S]*?)```/).map((O, M) => M % 2 === 1 ? /* @__PURE__ */ r.jsx(Ct, { chart: O.trim() }, M) : /* @__PURE__ */ r.jsx("div", { children: J(O) }, M)) : Z.split(`
|
|
4087
|
+
`).map((j, O) => {
|
|
4088
|
+
const M = j.trim();
|
|
4089
|
+
if (!M) return /* @__PURE__ */ r.jsx("div", { className: "h-2" }, O);
|
|
4090
|
+
if (M.startsWith("- ") || M.startsWith("* ") || M.match(/^\d+\. /))
|
|
4080
4091
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex gap-2 items-start mb-1.5 pl-2 group", children: [
|
|
4081
4092
|
/* @__PURE__ */ r.jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-amber-500/60 mt-1.5 shrink-0 group-hover:scale-125 transition-transform" }),
|
|
4082
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-[11px] leading-relaxed text-slate-300", children:
|
|
4083
|
-
] },
|
|
4084
|
-
const
|
|
4085
|
-
return /* @__PURE__ */ r.jsx("p", { className: "mb-2 leading-relaxed text-slate-300", children:
|
|
4093
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-[11px] leading-relaxed text-slate-300", children: M.replace(/^- |\* |\d+\. /, "") })
|
|
4094
|
+
] }, O);
|
|
4095
|
+
const K = M.split(/(\*\*.*?\*\*)/g);
|
|
4096
|
+
return /* @__PURE__ */ r.jsx("p", { className: "mb-2 leading-relaxed text-slate-300", children: K.map(
|
|
4086
4097
|
(_, L) => _.startsWith("**") && _.endsWith("**") ? /* @__PURE__ */ r.jsx("strong", { className: "text-amber-500/90 font-black", children: _.slice(2, -2) }, L) : _
|
|
4087
|
-
) },
|
|
4098
|
+
) }, O);
|
|
4088
4099
|
});
|
|
4089
4100
|
return /* @__PURE__ */ r.jsxs("div", { className: "space-y-4", children: [
|
|
4090
|
-
C.map((Z,
|
|
4101
|
+
C.map((Z, j) => {
|
|
4091
4102
|
if (Z.startsWith("### ")) {
|
|
4092
|
-
const
|
|
4093
|
-
`),
|
|
4094
|
-
`), _ =
|
|
4103
|
+
const O = Z.split(`
|
|
4104
|
+
`), M = O[0].replace("### ", ""), K = O.slice(1).join(`
|
|
4105
|
+
`), _ = M.toLowerCase().includes("blueprint"), L = /^\s*(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)/i.test(K.trim());
|
|
4095
4106
|
return /* @__PURE__ */ r.jsxs("div", { className: he(
|
|
4096
4107
|
"group relative",
|
|
4097
4108
|
_ ? "p-4 rounded-2xl bg-amber-500/5 border border-amber-500/10 mt-6" : ""
|
|
@@ -4102,25 +4113,25 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4102
4113
|
_ ? "text-amber-500" : "text-slate-500"
|
|
4103
4114
|
), children: [
|
|
4104
4115
|
!_ && /* @__PURE__ */ r.jsx("div", { className: "w-1 h-3 bg-amber-500/20 rounded-full" }),
|
|
4105
|
-
|
|
4116
|
+
M,
|
|
4106
4117
|
_ && /* @__PURE__ */ r.jsx("span", { className: "text-[7px] bg-amber-500/20 px-1.5 py-0.5 rounded text-amber-500 ml-auto", children: "Neural Core v1.6" })
|
|
4107
4118
|
] }),
|
|
4108
4119
|
/* @__PURE__ */ r.jsx("div", { className: he(
|
|
4109
4120
|
"font-sans",
|
|
4110
4121
|
_ ? "font-mono text-[10px] text-amber-500/70" : ""
|
|
4111
|
-
), children: L ? /* @__PURE__ */ r.jsx(Ct, { chart:
|
|
4112
|
-
] },
|
|
4122
|
+
), children: L ? /* @__PURE__ */ r.jsx(Ct, { chart: K.trim() }) : J(K) })
|
|
4123
|
+
] }, j);
|
|
4113
4124
|
}
|
|
4114
|
-
return /* @__PURE__ */ r.jsx("div", { children:
|
|
4125
|
+
return /* @__PURE__ */ r.jsx("div", { children: J(Z) }, j);
|
|
4115
4126
|
}),
|
|
4116
4127
|
S && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4117
|
-
S.tasks && /* @__PURE__ */ r.jsx(
|
|
4128
|
+
S.tasks && /* @__PURE__ */ r.jsx(Da, { tasks: S.tasks, team: S.team }),
|
|
4118
4129
|
S.nodes && /* @__PURE__ */ r.jsx(Bt, { data: S.nodes }),
|
|
4119
4130
|
S.metrics && /* @__PURE__ */ r.jsx(Bt, { data: S.metrics }),
|
|
4120
4131
|
Array.isArray(S.data) && /* @__PURE__ */ r.jsx(Bt, { data: S.data }),
|
|
4121
4132
|
S.diagram && /* @__PURE__ */ r.jsx(Ct, { chart: S.diagram })
|
|
4122
4133
|
] }),
|
|
4123
|
-
/* @__PURE__ */ r.jsx(
|
|
4134
|
+
/* @__PURE__ */ r.jsx(Pa, { usage: fe, rawPayload: S })
|
|
4124
4135
|
] });
|
|
4125
4136
|
};
|
|
4126
4137
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -4143,7 +4154,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4143
4154
|
transition: { type: "spring", damping: 25, stiffness: 200 },
|
|
4144
4155
|
className: he(
|
|
4145
4156
|
"fixed top-0 right-0 h-full w-full sm:max-w-[480px] z-[9991] flex flex-col eva-holographic-glass overflow-hidden border-l border-white/10 shadow-2xl",
|
|
4146
|
-
|
|
4157
|
+
b ? "eva-glow-thinking" : "eva-glow-listening"
|
|
4147
4158
|
),
|
|
4148
4159
|
children: [
|
|
4149
4160
|
/* @__PURE__ */ r.jsxs("div", { className: "p-6 flex items-center justify-between shrink-0 bg-[#0a0a20]/90 border-b border-white/5 backdrop-blur-xl", children: [
|
|
@@ -4208,17 +4219,17 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4208
4219
|
onClick: () => i(p),
|
|
4209
4220
|
className: he(
|
|
4210
4221
|
"px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest transition-all whitespace-nowrap border",
|
|
4211
|
-
|
|
4222
|
+
B === p ? "shadow-[0_0_15px_rgba(212,175,55,0.3)] border-amber-500" : "text-slate-400 border-white/5 hover:border-white/20 hover:text-white"
|
|
4212
4223
|
),
|
|
4213
4224
|
style: {
|
|
4214
|
-
backgroundColor:
|
|
4215
|
-
color:
|
|
4225
|
+
backgroundColor: B === p ? "#d4af37" : "transparent",
|
|
4226
|
+
color: B === p ? "black" : void 0
|
|
4216
4227
|
},
|
|
4217
4228
|
children: p
|
|
4218
4229
|
},
|
|
4219
4230
|
p
|
|
4220
4231
|
)) }),
|
|
4221
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex-1 overflow-y-auto eva-agent-scrollbar p-6 space-y-6 relative", children: k ?
|
|
4232
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex-1 overflow-y-auto eva-agent-scrollbar p-6 space-y-6 relative", children: k ? u.length === 0 ? /* @__PURE__ */ r.jsxs("div", { className: "h-full flex flex-col items-center justify-center text-center p-8 space-y-8", children: [
|
|
4222
4233
|
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
4223
4234
|
/* @__PURE__ */ r.jsx("div", { className: "absolute inset-0 bg-amber-500/5 rounded-full blur-3xl animate-pulse" }),
|
|
4224
4235
|
/* @__PURE__ */ r.jsx(yt, { size: 64, className: "text-amber-500/20 relative z-10" })
|
|
@@ -4241,7 +4252,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4241
4252
|
Y
|
|
4242
4253
|
)) })
|
|
4243
4254
|
] }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4244
|
-
|
|
4255
|
+
u.map((p, Y) => /* @__PURE__ */ r.jsxs("div", { className: he(
|
|
4245
4256
|
"flex flex-col space-y-2",
|
|
4246
4257
|
p.role === "user" ? "items-end" : "items-start"
|
|
4247
4258
|
), children: [
|
|
@@ -4258,7 +4269,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4258
4269
|
),
|
|
4259
4270
|
/* @__PURE__ */ r.jsx("span", { className: "text-[7px] font-black text-slate-500 uppercase tracking-widest px-2", children: p.role === "user" ? "Direct Input" : `Eva ${p.variant || "Neural"}` })
|
|
4260
4271
|
] }, Y)),
|
|
4261
|
-
|
|
4272
|
+
b && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center justify-center py-12 space-y-6", children: [
|
|
4262
4273
|
/* @__PURE__ */ r.jsxs("div", { className: "relative w-24 h-24", children: [
|
|
4263
4274
|
/* @__PURE__ */ r.jsx(
|
|
4264
4275
|
Ge.div,
|
|
@@ -4304,7 +4315,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4304
4315
|
/* @__PURE__ */ r.jsx("h4", { className: "text-sm font-black text-white uppercase tracking-widest", children: "Neural Link Restricted" }),
|
|
4305
4316
|
/* @__PURE__ */ r.jsx("p", { className: "text-[10px] text-slate-500 uppercase tracking-widest leading-relaxed max-w-[240px]", children: "Authentication failed. Please verify your API Key context to re-establish the neural link." })
|
|
4306
4317
|
] }) }),
|
|
4307
|
-
/* @__PURE__ */ r.jsx(
|
|
4318
|
+
/* @__PURE__ */ r.jsx(Dt, { children: o && /* @__PURE__ */ r.jsxs(
|
|
4308
4319
|
Ge.div,
|
|
4309
4320
|
{
|
|
4310
4321
|
initial: { y: "100%" },
|
|
@@ -4339,7 +4350,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4339
4350
|
/* @__PURE__ */ r.jsx(
|
|
4340
4351
|
"select",
|
|
4341
4352
|
{
|
|
4342
|
-
value:
|
|
4353
|
+
value: N.vertical,
|
|
4343
4354
|
onChange: (p) => Q((Y) => ({ ...Y, vertical: p.target.value })),
|
|
4344
4355
|
className: "w-full bg-[#0a0a20] border border-white/10 rounded-xl p-3 text-[10px] font-bold text-white outline-none focus:border-amber-500/40 transition-all appearance-none cursor-pointer",
|
|
4345
4356
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
@@ -4352,7 +4363,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4352
4363
|
/* @__PURE__ */ r.jsxs(
|
|
4353
4364
|
"select",
|
|
4354
4365
|
{
|
|
4355
|
-
value:
|
|
4366
|
+
value: N.focus,
|
|
4356
4367
|
onChange: (p) => Q((Y) => ({ ...Y, focus: p.target.value })),
|
|
4357
4368
|
className: "w-full bg-[#0a0a20] border border-white/10 rounded-xl p-3 text-[10px] font-bold text-white outline-none focus:border-amber-500/40 transition-all appearance-none cursor-pointer",
|
|
4358
4369
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
@@ -4393,7 +4404,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4393
4404
|
/* @__PURE__ */ r.jsx(
|
|
4394
4405
|
"textarea",
|
|
4395
4406
|
{
|
|
4396
|
-
value:
|
|
4407
|
+
value: N.data ? typeof N.data == "string" ? N.data : JSON.stringify(N.data, null, 2) : "",
|
|
4397
4408
|
onChange: (p) => {
|
|
4398
4409
|
Q((Y) => ({ ...Y, data: p.target.value }));
|
|
4399
4410
|
},
|
|
@@ -4451,14 +4462,14 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4451
4462
|
},
|
|
4452
4463
|
placeholder: "Invoke neural command...",
|
|
4453
4464
|
className: "flex-1 bg-transparent border-none text-white text-[11px] placeholder:text-slate-600 focus:ring-0 min-h-[44px] max-h-[120px] py-3 px-3 resize-none eva-agent-scrollbar outline-none font-medium",
|
|
4454
|
-
disabled:
|
|
4465
|
+
disabled: b || !k
|
|
4455
4466
|
}
|
|
4456
4467
|
),
|
|
4457
4468
|
/* @__PURE__ */ r.jsx(
|
|
4458
4469
|
"button",
|
|
4459
4470
|
{
|
|
4460
4471
|
type: "submit",
|
|
4461
|
-
disabled: !m.trim() ||
|
|
4472
|
+
disabled: !m.trim() || b || !k,
|
|
4462
4473
|
className: "w-11 h-11 rounded-xl bg-amber-500 text-white flex items-center justify-center shrink-0 shadow-lg shadow-amber-500/20 disabled:opacity-30 disabled:grayscale transition-all hover:scale-105 active:scale-95",
|
|
4463
4474
|
children: /* @__PURE__ */ r.jsx(fr, { size: 18, className: "text-white" })
|
|
4464
4475
|
}
|
|
@@ -4488,25 +4499,25 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4488
4499
|
environment: o = "PROD",
|
|
4489
4500
|
persist: s = !0,
|
|
4490
4501
|
theme: c = "dark"
|
|
4491
|
-
} = e, [
|
|
4502
|
+
} = e, [d, l] = Ae(!1), [u, m] = Ae(!1), v = It(() => {
|
|
4492
4503
|
if (!a) return null;
|
|
4493
|
-
const
|
|
4504
|
+
const b = n || Ma[o];
|
|
4494
4505
|
return new rr({
|
|
4495
4506
|
apiKey: a,
|
|
4496
|
-
baseUrl:
|
|
4507
|
+
baseUrl: b,
|
|
4497
4508
|
environment: o
|
|
4498
4509
|
});
|
|
4499
4510
|
}, [a, n, o]);
|
|
4500
4511
|
return /* @__PURE__ */ r.jsx(Tt.Provider, { value: {
|
|
4501
4512
|
client: v,
|
|
4502
|
-
isOpen:
|
|
4513
|
+
isOpen: d,
|
|
4503
4514
|
setIsOpen: l,
|
|
4504
|
-
isMinimized:
|
|
4515
|
+
isMinimized: u,
|
|
4505
4516
|
setIsMinimized: m,
|
|
4506
4517
|
config: e
|
|
4507
4518
|
}, children: /* @__PURE__ */ r.jsxs("div", { className: "eva-fusion-agent-root", children: [
|
|
4508
4519
|
/* @__PURE__ */ r.jsx(Yr, { position: "top-center", richColors: !0 }),
|
|
4509
|
-
/* @__PURE__ */ r.jsx(
|
|
4520
|
+
/* @__PURE__ */ r.jsx(Dt, { children: (!d || u) && /* @__PURE__ */ r.jsx(
|
|
4510
4521
|
Vr,
|
|
4511
4522
|
{
|
|
4512
4523
|
onClick: () => {
|
|
@@ -4514,7 +4525,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4514
4525
|
}
|
|
4515
4526
|
}
|
|
4516
4527
|
) }),
|
|
4517
|
-
/* @__PURE__ */ r.jsx(
|
|
4528
|
+
/* @__PURE__ */ r.jsx(Dt, { children: d && !u && /* @__PURE__ */ r.jsx(
|
|
4518
4529
|
Na,
|
|
4519
4530
|
{
|
|
4520
4531
|
onClose: () => l(!1),
|