@estevia/evafusion-agent 1.6.6 → 1.6.7
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 +17 -14
- package/dist/index.mjs +232 -223
- 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
|
|
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 u(l, d, m) {
|
|
22
22
|
var v, h = {}, z = null, i = null;
|
|
23
23
|
m !== void 0 && (z = "" + m), d.key !== void 0 && (z = "" + d.key), d.ref !== void 0 && (i = d.ref);
|
|
24
24
|
for (v in d) o.call(d, v) && !c.hasOwnProperty(v) && (h[v] = d[v]);
|
|
25
25
|
if (l && l.defaultProps) for (v in d = l.defaultProps, d) h[v] === void 0 && (h[v] = d[v]);
|
|
26
26
|
return { $$typeof: a, type: l, key: z, ref: i, props: h, _owner: s.current };
|
|
27
27
|
}
|
|
28
|
-
return $e.Fragment = n, $e.jsx =
|
|
28
|
+
return $e.Fragment = n, $e.jsx = u, $e.jsxs = u, $e;
|
|
29
29
|
}
|
|
30
30
|
var et = {};
|
|
31
31
|
/**
|
|
@@ -40,7 +40,7 @@ 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 =
|
|
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"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), i = Symbol.for("react.offscreen"), F = Symbol.iterator, w = "@@iterator";
|
|
44
44
|
function M(t) {
|
|
45
45
|
if (t === null || typeof t != "object")
|
|
46
46
|
return null;
|
|
@@ -48,7 +48,7 @@ function mr() {
|
|
|
48
48
|
return typeof A == "function" ? A : null;
|
|
49
49
|
}
|
|
50
50
|
var X = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function D(t) {
|
|
52
52
|
{
|
|
53
53
|
for (var A = arguments.length, g = new Array(A > 1 ? A - 1 : 0), x = 1; x < A; x++)
|
|
54
54
|
g[x - 1] = arguments[x];
|
|
@@ -65,10 +65,10 @@ function mr() {
|
|
|
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, P = !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 || P || typeof t == "object" && t !== null && (t.$$typeof === z || t.$$typeof === h || t.$$typeof === u || t.$$typeof === l || t.$$typeof === d || // 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.
|
|
@@ -87,7 +87,7 @@ function mr() {
|
|
|
87
87
|
function re(t) {
|
|
88
88
|
if (t == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof t.tag == "number" &&
|
|
90
|
+
if (typeof t.tag == "number" && D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
91
91
|
return t.displayName || t.name || null;
|
|
92
92
|
if (typeof t == "string")
|
|
93
93
|
return t;
|
|
@@ -110,7 +110,7 @@ function mr() {
|
|
|
110
110
|
case l:
|
|
111
111
|
var A = t;
|
|
112
112
|
return b(A) + ".Consumer";
|
|
113
|
-
case
|
|
113
|
+
case u:
|
|
114
114
|
var g = t;
|
|
115
115
|
return b(g._context) + ".Provider";
|
|
116
116
|
case d:
|
|
@@ -129,14 +129,14 @@ function mr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var H = Object.assign, p = 0, Y, S, fe, C,
|
|
132
|
+
var H = Object.assign, p = 0, Y, S, fe, C, J, Z, O;
|
|
133
133
|
function T() {
|
|
134
134
|
}
|
|
135
135
|
T.__reactDisabledLog = !0;
|
|
136
136
|
function N() {
|
|
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, O = console.groupEnd;
|
|
140
140
|
var t = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -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,7 +178,7 @@ 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
|
|
@@ -188,7 +188,7 @@ function mr() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
p < 0 &&
|
|
191
|
+
p < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var _ = X.ReactCurrentDispatcher, L;
|
|
@@ -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
|
{
|
|
@@ -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) {
|
|
@@ -306,24 +306,24 @@ function mr() {
|
|
|
306
306
|
case d:
|
|
307
307
|
return at(t.render);
|
|
308
308
|
case h:
|
|
309
|
-
return
|
|
309
|
+
return Qe(t.type, A, g);
|
|
310
310
|
case z: {
|
|
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
|
{
|
|
@@ -340,12 +340,12 @@ function mr() {
|
|
|
340
340
|
} catch ($) {
|
|
341
341
|
j = $;
|
|
342
342
|
}
|
|
343
|
-
j && !(j instanceof Error) && (
|
|
343
|
+
j && !(j instanceof Error) && (Ve(I), D("%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, E, typeof j), Ve(null)), j instanceof Error && !(j.message in nt) && (nt[j.message] = !0, Ve(I), D("Failed %s type: %s", g, j.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) {
|
|
@@ -366,9 +366,9 @@ function mr() {
|
|
|
366
366
|
}
|
|
367
367
|
function ie(t) {
|
|
368
368
|
if (pt(t))
|
|
369
|
-
return
|
|
369
|
+
return D("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,12 +391,12 @@ 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
|
{
|
|
398
398
|
var g = function() {
|
|
399
|
-
st || (st = !0,
|
|
399
|
+
st || (st = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", A));
|
|
400
400
|
};
|
|
401
401
|
g.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
402
402
|
get: g,
|
|
@@ -407,7 +407,7 @@ function mr() {
|
|
|
407
407
|
function lt(t, A) {
|
|
408
408
|
{
|
|
409
409
|
var g = function() {
|
|
410
|
-
ke || (ke = !0,
|
|
410
|
+
ke || (ke = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", A));
|
|
411
411
|
};
|
|
412
412
|
g.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
413
413
|
get: g,
|
|
@@ -459,13 +459,13 @@ function mr() {
|
|
|
459
459
|
var ae = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
460
460
|
j && Oe(E, ae), se && lt(E, ae);
|
|
461
461
|
}
|
|
462
|
-
return je(t, j, se, I, x,
|
|
462
|
+
return je(t, j, se, I, x, De.current, E);
|
|
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), D('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);
|
|
@@ -555,9 +555,9 @@ Check the top-level render call using <` + g + ">.");
|
|
|
555
555
|
} else if (A.PropTypes !== void 0 && !_e) {
|
|
556
556
|
_e = !0;
|
|
557
557
|
var I = re(A);
|
|
558
|
-
|
|
558
|
+
D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof A.getDefaultProps == "function" && !A.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof A.getDefaultProps == "function" && !A.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function be(t) {
|
|
@@ -565,11 +565,11 @@ 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), D("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), D("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var we = {};
|
|
@@ -582,7 +582,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
582
582
|
var se = ht();
|
|
583
583
|
se ? j += se : j += 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") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, j);
|
|
586
586
|
}
|
|
587
587
|
var ae = vt(t, A, g, I, U);
|
|
588
588
|
if (ae == null)
|
|
@@ -591,12 +591,12 @@ Check the top-level render call using <` + g + ">.");
|
|
|
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
|
+
D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
601
|
le(ge, t);
|
|
602
602
|
}
|
|
@@ -606,7 +606,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
606
606
|
}), bt = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
607
|
if (!we[Le + bt]) {
|
|
608
608
|
var _t = de.length > 0 ? "{" + de.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
-
|
|
609
|
+
D(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -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,16 +660,16 @@ 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), u = 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: u, title: n }) : l) : this.addToast({ title: n, ...o, dismissible: u, 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", d],
|
|
671
|
+
let o = e instanceof Promise ? e : e(), s = n !== void 0, c, u = o.then(async (d) => {
|
|
672
|
+
if (c = ["resolve", d], f.isValidElement(d)) s = !1, this.create({ id: n, type: "default", message: d });
|
|
673
673
|
else if (Mr(d) && !d.ok) {
|
|
674
674
|
s = !1;
|
|
675
675
|
let m = typeof a.error == "function" ? await a.error(`HTTP error! status: ${d.status}`) : a.error, v = typeof a.description == "function" ? await a.description(`HTTP error! status: ${d.status}`) : a.description;
|
|
@@ -688,14 +688,14 @@ var r = Dt.exports, vr = (e) => {
|
|
|
688
688
|
}).finally(() => {
|
|
689
689
|
var d;
|
|
690
690
|
s && (this.dismiss(n), n = void 0), (d = a.finally) == null || d.call(a);
|
|
691
|
-
}), l = () => new Promise((d, m) =>
|
|
691
|
+
}), l = () => new Promise((d, m) => u.then(() => c[0] === "reject" ? m(c[1]) : d(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: z, toast: i, unstyled: F, interacting: w, setHeights: M, visibleToasts: X, heights:
|
|
721
|
+
var a, n, o, s, c, u, l, d, m, v, h;
|
|
722
|
+
let { invert: z, toast: i, unstyled: F, interacting: w, setHeights: M, visibleToasts: X, heights: D, index: ee, toasts: R, expanded: k, removeToast: P, defaultRichColors: Q, closeButton: ne, style: W, cancelButtonStyle: oe, actionButtonStyle: te, className: b = "", descriptionClassName: re = "", duration: H, position: p, gap: Y, loadingIcon: S, expandByDefault: fe, classNames: C, icons: J, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: O } = e, [T, N] = 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(() => D.findIndex((y) => y.toastId === i.id) || 0, [D, 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(() => D.reduce((y, G, V) => V >= ke ? y : y + G.height, 0), [D, ke]), Pe = Dr(), _e = i.invert || z, 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
734
|
return ot(G), M((V) => [{ toastId: i.id, height: G, position: i.position }, ...V]), () => M((V) => V.filter((le) => le.toastId !== i.id));
|
|
735
735
|
}
|
|
736
|
-
}, [M, i.id]),
|
|
736
|
+
}, [M, 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
741
|
y.style.height = G, ot(V), M((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
742
|
}, [L, i.title, i.description, M, i.id]);
|
|
743
|
-
let me =
|
|
744
|
-
Ce(!0),
|
|
745
|
-
|
|
743
|
+
let me = f.useCallback(() => {
|
|
744
|
+
Ce(!0), Ye(Oe.current), M((y) => y.filter((G) => G.toastId !== i.id)), setTimeout(() => {
|
|
745
|
+
P(i);
|
|
746
746
|
}, Gr);
|
|
747
|
-
}, [i,
|
|
748
|
-
|
|
747
|
+
}, [i, P, M, 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 || O &&
|
|
751
|
+
return k || w || O && 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,42 +758,42 @@ 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, O,
|
|
761
|
+
}, [k, w, i, ie, O, 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(b, 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), N(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 = T === "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), _(T === "x" ? pe > 0 ? "right" : "left" : be > 0 ? "down" : "up"), me(), ft(!0), Te(!1);
|
|
779
779
|
return;
|
|
780
780
|
}
|
|
781
|
-
|
|
781
|
+
Se(!1), N(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
|
!T && (Math.abs(we) > 1 || Math.abs(be) > 1) && N(Math.abs(we) > Math.abs(be) ? "x" : "y");
|
|
787
787
|
let ye = { x: 0, y: 0 };
|
|
788
788
|
T === "y" ? (ce.includes("top") || ce.includes("bottom")) && (ce.includes("top") && be < 0 || ce.includes("bottom") && be > 0) && (ye.y = be) : T === "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 ?
|
|
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, (u = i == null ? void 0 : i.classNames) == null ? void 0 : u.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, (d = i == null ? void 0 : i.classNames) == null ? void 0 : d.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
799
|
}, className: ve(C == null ? void 0 : C.actionButton, (h = i == null ? void 0 : i.classNames) == null ? void 0 : h.actionButton) }, i.action.label) : null));
|
|
@@ -806,25 +806,25 @@ 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,
|
|
809
|
+
let c = s === 1, u = c ? "--mobile-offset" : "--offset", l = c ? Xr : Rr;
|
|
810
810
|
function d(m) {
|
|
811
811
|
["top", "right", "bottom", "left"].forEach((v) => {
|
|
812
|
-
n[`${
|
|
812
|
+
n[`${u}-${v}`] = typeof m == "number" ? `${m}px` : m;
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
815
|
typeof o == "number" || typeof o == "string" ? d(o) : typeof o == "object" ? ["top", "right", "bottom", "left"].forEach((m) => {
|
|
816
|
-
o[m] === void 0 ? n[`${
|
|
816
|
+
o[m] === void 0 ? n[`${u}-${m}`] = l : n[`${u}-${m}`] = typeof o[m] == "number" ? `${o[m]}px` : o[m];
|
|
817
817
|
}) : d(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:
|
|
821
|
+
let { invert: n, position: o = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton: u, className: l, offset: d, mobileOffset: m, theme: v = "light", richColors: h, duration: z, style: i, visibleToasts: F = zr, toastOptions: w, dir: M = Xt(), gap: X = Hr, loadingIcon: D, icons: ee, containerAriaLabel: R = "Notifications", pauseWhenPageIsHidden: k } = e, [P, Q] = f.useState([]), ne = f.useMemo(() => Array.from(new Set([o].concat(P.filter((O) => O.position).map((O) => O.position)))), [P, o]), [W, oe] = f.useState([]), [te, b] = 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((O) => {
|
|
822
822
|
Q((T) => {
|
|
823
823
|
var N;
|
|
824
|
-
return (N = T.find((
|
|
824
|
+
return (N = T.find((K) => K.id === O.id)) != null && N.delete || ue.dismiss(O.id), T.filter(({ id: K }) => K !== O.id);
|
|
825
825
|
});
|
|
826
826
|
}, []);
|
|
827
|
-
return
|
|
827
|
+
return f.useEffect(() => ue.subscribe((O) => {
|
|
828
828
|
if (O.dismiss) {
|
|
829
829
|
Q((T) => T.map((N) => N.id === O.id ? { ...N, delete: !0 } : N));
|
|
830
830
|
return;
|
|
@@ -832,12 +832,12 @@ var Yr = er(function(e, a) {
|
|
|
832
832
|
setTimeout(() => {
|
|
833
833
|
tr.flushSync(() => {
|
|
834
834
|
Q((T) => {
|
|
835
|
-
let N = T.findIndex((
|
|
835
|
+
let N = T.findIndex((K) => K.id === O.id);
|
|
836
836
|
return N !== -1 ? [...T.slice(0, N), { ...T[N], ...O }, ...T.slice(N + 1)] : [O, ...T];
|
|
837
837
|
});
|
|
838
838
|
});
|
|
839
839
|
});
|
|
840
|
-
}), []),
|
|
840
|
+
}), []), f.useEffect(() => {
|
|
841
841
|
if (v !== "system") {
|
|
842
842
|
Y(v);
|
|
843
843
|
return;
|
|
@@ -852,37 +852,37 @@ var Yr = er(function(e, a) {
|
|
|
852
852
|
O.addListener(({ matches: N }) => {
|
|
853
853
|
try {
|
|
854
854
|
Y(N ? "dark" : "light");
|
|
855
|
-
} catch (
|
|
856
|
-
console.error(
|
|
855
|
+
} catch (K) {
|
|
856
|
+
console.error(K);
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
|
-
}, [v]),
|
|
861
|
-
|
|
862
|
-
}, [
|
|
860
|
+
}, [v]), f.useEffect(() => {
|
|
861
|
+
P.length <= 1 && b(!1);
|
|
862
|
+
}, [P]), f.useEffect(() => {
|
|
863
863
|
let O = (T) => {
|
|
864
|
-
var N,
|
|
865
|
-
s.every((_) => T[_] || T.code === _) && (b(!0), (N = S.current) == null || N.focus()), T.code === "Escape" && (document.activeElement === S.current || (
|
|
864
|
+
var N, K;
|
|
865
|
+
s.every((_) => T[_] || T.code === _) && (b(!0), (N = S.current) == null || N.focus()), T.code === "Escape" && (document.activeElement === S.current || (K = S.current) != null && K.contains(document.activeElement)) && b(!1);
|
|
866
866
|
};
|
|
867
867
|
return document.addEventListener("keydown", O), () => document.removeEventListener("keydown", O);
|
|
868
|
-
}, [s]),
|
|
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]),
|
|
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((O, T) => {
|
|
873
873
|
var N;
|
|
874
|
-
let [
|
|
875
|
-
return
|
|
876
|
-
|
|
874
|
+
let [K, _] = O.split("-");
|
|
875
|
+
return P.length ? f.createElement("ol", { key: O, dir: M === "auto" ? Xt() : M, tabIndex: -1, ref: S, className: l, "data-sonner-toaster": !0, "data-theme": p, "data-y-position": K, "data-lifted": te && P.length > 1 && !c, "data-x-position": _, style: { "--front-toast-height": `${((N = W[0]) == null ? void 0 : N.height) || 0}px`, "--width": `${kr}px`, "--gap": `${X}px`, ...i, ...Qr(d, 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" ||
|
|
878
|
+
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || J.current || (J.current = !0, C.current = L.relatedTarget);
|
|
879
879
|
}, onMouseEnter: () => b(!0), onMouseMove: () => b(!0), onMouseLeave: () => {
|
|
880
880
|
re || b(!1);
|
|
881
881
|
}, onDragEnd: () => b(!1), onPointerDown: (L) => {
|
|
882
882
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || H(!0);
|
|
883
|
-
}, onPointerUp: () => H(!1) },
|
|
883
|
+
}, onPointerUp: () => H(!1) }, P.filter((L) => !L.position && T === 0 || L.position === O).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: h, duration: (xe = w == null ? void 0 : w.duration) != null ? xe : z, 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 : u, interacting: re, position: O, 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: P.filter((Re) => Re.position == L.position), heights: W.filter((Re) => Re.position == L.position), setHeights: oe, expandByDefault: c, gap: X, loadingIcon: D, 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: (u) => {
|
|
933
|
+
const l = u.split(Ot);
|
|
934
|
+
return l[0] === "" && l.length !== 1 && l.shift(), Vt(l, a) || qr(u);
|
|
935
935
|
},
|
|
936
|
-
getConflictingClassGroupIds: (
|
|
937
|
-
const d = n[
|
|
938
|
-
return l && o[
|
|
936
|
+
getConflictingClassGroupIds: (u, l) => {
|
|
937
|
+
const d = n[u] || [];
|
|
938
|
+
return l && o[u] ? [...d, ...o[u]] : d;
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
}, Vt = (e, a) => {
|
|
942
|
-
var
|
|
942
|
+
var u;
|
|
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 (u = a.validators.find(({
|
|
952
952
|
validator: l
|
|
953
|
-
}) => l(c))) == null ? void 0 :
|
|
953
|
+
}) => l(c))) == null ? void 0 : u.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, u]) => {
|
|
969
|
+
Mt(u, 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, u]) => {
|
|
990
|
+
Mt(u, 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(([u, l]) => [a + u, l])) : c);
|
|
1003
1003
|
return [n, s];
|
|
1004
1004
|
}) : e, Kr = (e) => {
|
|
1005
1005
|
if (e < 1)
|
|
@@ -1010,26 +1010,26 @@ 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, u) => {
|
|
1014
|
+
n.set(c, u), 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 u = n.get(c);
|
|
1019
|
+
if (u !== void 0)
|
|
1020
|
+
return u;
|
|
1021
|
+
if ((u = o.get(c)) !== void 0)
|
|
1022
|
+
return s(c, u), u;
|
|
1023
1023
|
},
|
|
1024
|
-
set(c,
|
|
1025
|
-
n.has(c) ? n.set(c,
|
|
1024
|
+
set(c, u) {
|
|
1025
|
+
n.has(c) ? n.set(c, u) : s(c, u);
|
|
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,
|
|
1032
|
+
} = e, o = a.length === 1, s = a[0], c = a.length, u = (l) => {
|
|
1033
1033
|
const d = [];
|
|
1034
1034
|
let m = 0, v = 0, h;
|
|
1035
1035
|
for (let M = 0; M < l.length; M++) {
|
|
@@ -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: u
|
|
1060
|
+
}) : u;
|
|
1061
1061
|
}, $r = (e) => {
|
|
1062
1062
|
if (e.length <= 1)
|
|
1063
1063
|
return e;
|
|
@@ -1075,10 +1075,10 @@ const Ot = "-", Fr = (e) => {
|
|
|
1075
1075
|
parseClassName: n,
|
|
1076
1076
|
getClassGroupId: o,
|
|
1077
1077
|
getConflictingClassGroupIds: s
|
|
1078
|
-
} = a, c = [],
|
|
1078
|
+
} = a, c = [], u = e.trim().split(ta);
|
|
1079
1079
|
let l = "";
|
|
1080
|
-
for (let d =
|
|
1081
|
-
const m =
|
|
1080
|
+
for (let d = u.length - 1; d >= 0; d -= 1) {
|
|
1081
|
+
const m = u[d], {
|
|
1082
1082
|
modifiers: v,
|
|
1083
1083
|
hasImportantModifier: h,
|
|
1084
1084
|
baseClassName: z,
|
|
@@ -1096,10 +1096,10 @@ const Ot = "-", Fr = (e) => {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
F = !1;
|
|
1098
1098
|
}
|
|
1099
|
-
const M = $r(v).join(":"), X = h ? M + Ut : M,
|
|
1100
|
-
if (c.includes(
|
|
1099
|
+
const M = $r(v).join(":"), X = h ? M + Ut : M, D = X + w;
|
|
1100
|
+
if (c.includes(D))
|
|
1101
1101
|
continue;
|
|
1102
|
-
c.push(
|
|
1102
|
+
c.push(D);
|
|
1103
1103
|
const ee = s(w, F);
|
|
1104
1104
|
for (let R = 0; R < ee.length; ++R) {
|
|
1105
1105
|
const k = ee[R];
|
|
@@ -1124,8 +1124,8 @@ const Ft = (e) => {
|
|
|
1124
1124
|
return n;
|
|
1125
1125
|
};
|
|
1126
1126
|
function na(e, ...a) {
|
|
1127
|
-
let n, o, s, c =
|
|
1128
|
-
function
|
|
1127
|
+
let n, o, s, c = u;
|
|
1128
|
+
function u(d) {
|
|
1129
1129
|
const m = a.reduce((v, h) => h(v), e());
|
|
1130
1130
|
return n = ea(m), o = n.cache.get, s = n.cache.set, c = l, l(d);
|
|
1131
1131
|
}
|
|
@@ -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)), B = (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,7 +1152,7 @@ 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"), u = q("borderSpacing"), l = q("borderWidth"), d = q("contrast"), m = q("grayscale"), v = q("hueRotate"), h = q("invert"), z = q("gap"), i = q("gradientColorStops"), F = q("gradientColorStopPositions"), w = q("inset"), M = q("margin"), X = q("opacity"), D = q("padding"), ee = q("saturate"), R = q("scale"), k = q("sepia"), P = q("skew"), Q = q("space"), ne = q("translate"), W = () => ["auto", "contain", "none"], oe = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", B, a], b = () => [B, a], re = () => ["", Ne, Ee], H = () => ["auto", qe, B], 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", B], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Z = () => [qe, B];
|
|
1156
1156
|
return {
|
|
1157
1157
|
cacheSize: 500,
|
|
1158
1158
|
separator: ":",
|
|
@@ -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
|
|
@@ -1620,63 +1620,63 @@ const q = (e) => {
|
|
|
1620
1620
|
* @see https://tailwindcss.com/docs/padding
|
|
1621
1621
|
*/
|
|
1622
1622
|
p: [{
|
|
1623
|
-
p: [
|
|
1623
|
+
p: [D]
|
|
1624
1624
|
}],
|
|
1625
1625
|
/**
|
|
1626
1626
|
* Padding X
|
|
1627
1627
|
* @see https://tailwindcss.com/docs/padding
|
|
1628
1628
|
*/
|
|
1629
1629
|
px: [{
|
|
1630
|
-
px: [
|
|
1630
|
+
px: [D]
|
|
1631
1631
|
}],
|
|
1632
1632
|
/**
|
|
1633
1633
|
* Padding Y
|
|
1634
1634
|
* @see https://tailwindcss.com/docs/padding
|
|
1635
1635
|
*/
|
|
1636
1636
|
py: [{
|
|
1637
|
-
py: [
|
|
1637
|
+
py: [D]
|
|
1638
1638
|
}],
|
|
1639
1639
|
/**
|
|
1640
1640
|
* Padding Start
|
|
1641
1641
|
* @see https://tailwindcss.com/docs/padding
|
|
1642
1642
|
*/
|
|
1643
1643
|
ps: [{
|
|
1644
|
-
ps: [
|
|
1644
|
+
ps: [D]
|
|
1645
1645
|
}],
|
|
1646
1646
|
/**
|
|
1647
1647
|
* Padding End
|
|
1648
1648
|
* @see https://tailwindcss.com/docs/padding
|
|
1649
1649
|
*/
|
|
1650
1650
|
pe: [{
|
|
1651
|
-
pe: [
|
|
1651
|
+
pe: [D]
|
|
1652
1652
|
}],
|
|
1653
1653
|
/**
|
|
1654
1654
|
* Padding Top
|
|
1655
1655
|
* @see https://tailwindcss.com/docs/padding
|
|
1656
1656
|
*/
|
|
1657
1657
|
pt: [{
|
|
1658
|
-
pt: [
|
|
1658
|
+
pt: [D]
|
|
1659
1659
|
}],
|
|
1660
1660
|
/**
|
|
1661
1661
|
* Padding Right
|
|
1662
1662
|
* @see https://tailwindcss.com/docs/padding
|
|
1663
1663
|
*/
|
|
1664
1664
|
pr: [{
|
|
1665
|
-
pr: [
|
|
1665
|
+
pr: [D]
|
|
1666
1666
|
}],
|
|
1667
1667
|
/**
|
|
1668
1668
|
* Padding Bottom
|
|
1669
1669
|
* @see https://tailwindcss.com/docs/padding
|
|
1670
1670
|
*/
|
|
1671
1671
|
pb: [{
|
|
1672
|
-
pb: [
|
|
1672
|
+
pb: [D]
|
|
1673
1673
|
}],
|
|
1674
1674
|
/**
|
|
1675
1675
|
* Padding Left
|
|
1676
1676
|
* @see https://tailwindcss.com/docs/padding
|
|
1677
1677
|
*/
|
|
1678
1678
|
pl: [{
|
|
1679
|
-
pl: [
|
|
1679
|
+
pl: [D]
|
|
1680
1680
|
}],
|
|
1681
1681
|
/**
|
|
1682
1682
|
* Margin
|
|
@@ -1891,7 +1891,7 @@ const q = (e) => {
|
|
|
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
|
|
@@ -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": [u]
|
|
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": [u]
|
|
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": [u]
|
|
2729
2729
|
}],
|
|
2730
2730
|
/**
|
|
2731
2731
|
* Table Layout
|
|
@@ -2832,14 +2832,14 @@ const q = (e) => {
|
|
|
2832
2832
|
* @see https://tailwindcss.com/docs/skew
|
|
2833
2833
|
*/
|
|
2834
2834
|
"skew-x": [{
|
|
2835
|
-
"skew-x": [
|
|
2835
|
+
"skew-x": [P]
|
|
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": [P]
|
|
2843
2843
|
}],
|
|
2844
2844
|
/**
|
|
2845
2845
|
* Transform Origin
|
|
@@ -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, u] = Ae(""), [l, d] = Ae(!1), [m, v] = Ae(n.defaultVariant || "ANALYST"), [h, z] = 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
3796
|
(R) => R.vertical === h.vertical && R.variant === m
|
|
3797
3797
|
), [h.vertical, m]), M = ct((R) => {
|
|
3798
|
-
const k = Lt.find((
|
|
3798
|
+
const k = Lt.find((P) => P.id === R);
|
|
3799
3799
|
if (k) {
|
|
3800
|
-
F(R),
|
|
3801
|
-
let
|
|
3802
|
-
if (
|
|
3800
|
+
F(R), u(k.prompt || "");
|
|
3801
|
+
let P = k.data || null;
|
|
3802
|
+
if (P && typeof P == "string")
|
|
3803
3803
|
try {
|
|
3804
|
-
const Q = JSON.parse(
|
|
3805
|
-
|
|
3804
|
+
const Q = JSON.parse(P);
|
|
3805
|
+
P = JSON.stringify(Q, null, 2);
|
|
3806
3806
|
} catch {
|
|
3807
3807
|
}
|
|
3808
|
-
else
|
|
3808
|
+
else P && typeof P == "object" && (P = JSON.stringify(P, null, 2));
|
|
3809
3809
|
z((Q) => ({
|
|
3810
3810
|
...Q,
|
|
3811
3811
|
focus: k.focus || Q.focus,
|
|
3812
|
-
data:
|
|
3812
|
+
data: P
|
|
3813
3813
|
}));
|
|
3814
3814
|
} else
|
|
3815
|
-
F(""), z((
|
|
3815
|
+
F(""), z((P) => ({ ...P, 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,20 +3826,20 @@ 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
|
-
const
|
|
3832
|
+
const D = ct((R) => {
|
|
3833
3833
|
z((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 P = {
|
|
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, P]), R || u(""), d(!0);
|
|
3843
3843
|
try {
|
|
3844
3844
|
const Q = {
|
|
3845
3845
|
prompt: k,
|
|
@@ -3889,13 +3889,13 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3889
3889
|
return {
|
|
3890
3890
|
messages: o,
|
|
3891
3891
|
input: c,
|
|
3892
|
-
setInput:
|
|
3892
|
+
setInput: u,
|
|
3893
3893
|
isProcessing: l,
|
|
3894
3894
|
activeVariant: m,
|
|
3895
3895
|
setActiveVariant: v,
|
|
3896
3896
|
handleSend: ee,
|
|
3897
3897
|
payloadConfig: h,
|
|
3898
|
-
updatePayloadConfig:
|
|
3898
|
+
updatePayloadConfig: D,
|
|
3899
3899
|
samples: w.map((R) => ({ ...R, isDataDriven: !!R.data })),
|
|
3900
3900
|
selectedSampleId: i,
|
|
3901
3901
|
applySample: M,
|
|
@@ -3904,14 +3904,23 @@ ${b.diagram}`)) : te = String(b);
|
|
|
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 u = document.createElement("style");
|
|
3909
|
+
return u.id = "eva-hide-mermaid-errors", u.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(u), () => {
|
|
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 u = document.createElement("script");
|
|
3922
|
+
u.src = "https://cdn.jsdelivr.net/npm/mermaid@10.2.4/dist/mermaid.min.js", u.async = !0, u.onload = () => {
|
|
3923
|
+
window.__EVA_MERMAID__ = window.mermaid, window.__EVA_MERMAID__.initialize({
|
|
3915
3924
|
startOnLoad: !1,
|
|
3916
3925
|
theme: "dark",
|
|
3917
3926
|
securityLevel: "loose",
|
|
@@ -3924,10 +3933,10 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3924
3933
|
tertiaryColor: "#1e1e38"
|
|
3925
3934
|
}
|
|
3926
3935
|
}), c(!0);
|
|
3927
|
-
}, document.body.appendChild(
|
|
3928
|
-
}, []),
|
|
3936
|
+
}, document.body.appendChild(u);
|
|
3937
|
+
}, []), Ie(() => {
|
|
3929
3938
|
if (s && a.current) {
|
|
3930
|
-
const
|
|
3939
|
+
const u = window.__EVA_MERMAID__, l = `mermaid-render-${Math.random().toString(36).slice(2, 11)}`;
|
|
3931
3940
|
let d = e.trim().replace(/\\n/g, `
|
|
3932
3941
|
`).replace(/^`{3}mermaid\n?/, "").replace(/\n?`{3}$/, "").trim();
|
|
3933
3942
|
const m = /(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)[\s\S]+/i, v = d.match(m);
|
|
@@ -3938,7 +3947,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3938
3947
|
`));
|
|
3939
3948
|
}
|
|
3940
3949
|
try {
|
|
3941
|
-
|
|
3950
|
+
u.render(l, d).then((h) => {
|
|
3942
3951
|
a.current && (a.current.innerHTML = h.svg);
|
|
3943
3952
|
}).catch((h) => {
|
|
3944
3953
|
console.error("Mermaid Render Error:", h), o("Neural Blueprint Syntax Error");
|
|
@@ -3948,7 +3957,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3948
3957
|
}
|
|
3949
3958
|
}
|
|
3950
3959
|
}, [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
|
-
},
|
|
3960
|
+
}, Da = ({ tasks: e, team: a }) => !e && !a ? null : /* @__PURE__ */ r.jsxs("div", { className: "space-y-6 mt-6", children: [
|
|
3952
3961
|
e && e.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: "space-y-3", children: [
|
|
3953
3962
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 text-amber-500", children: [
|
|
3954
3963
|
/* @__PURE__ */ r.jsx(ar, { size: 14 }),
|
|
@@ -3992,7 +4001,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3992
4001
|
/* @__PURE__ */ r.jsx("div", { className: "text-[8px] text-slate-500 uppercase font-black", children: n.role })
|
|
3993
4002
|
] })
|
|
3994
4003
|
] }),
|
|
3995
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex flex-wrap gap-1", children: (s = n.skills) == null ? void 0 : s.slice(0, 2).map((c,
|
|
4004
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex flex-wrap gap-1", children: (s = n.skills) == null ? void 0 : s.slice(0, 2).map((c, u) => /* @__PURE__ */ r.jsx("span", { className: "text-[7px] bg-white/5 text-slate-400 px-1 py-0.5 rounded", children: c }, u)) })
|
|
3996
4005
|
] }, o);
|
|
3997
4006
|
}) })
|
|
3998
4007
|
] })
|
|
@@ -4006,7 +4015,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4006
4015
|
n[s] === "Nominal" ? "bg-emerald-500/20 text-emerald-500" : "bg-amber-500/20 text-amber-500"
|
|
4007
4016
|
), children: n[s] }) : n[s] }, s)) }, o)) })
|
|
4008
4017
|
] }) }) });
|
|
4009
|
-
},
|
|
4018
|
+
}, Pa = ({ usage: e, rawPayload: a }) => {
|
|
4010
4019
|
const [n, o] = Ae(!1), s = () => {
|
|
4011
4020
|
navigator.clipboard.writeText(JSON.stringify(a, null, 2)), o(!0), ut.success("Neural payload copied to clipboard"), setTimeout(() => o(!1), 2e3);
|
|
4012
4021
|
};
|
|
@@ -4034,7 +4043,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4034
4043
|
)
|
|
4035
4044
|
] });
|
|
4036
4045
|
}, Na = ({ onClose: e, onMinimize: a }) => {
|
|
4037
|
-
const n = Gt(Tt), [o, s] = Ae(!1), [c,
|
|
4046
|
+
const n = Gt(Tt), [o, s] = Ae(!1), [c, u] = Ae(!1), l = St(null);
|
|
4038
4047
|
if (!n) return null;
|
|
4039
4048
|
const {
|
|
4040
4049
|
messages: d,
|
|
@@ -4047,16 +4056,16 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4047
4056
|
payloadConfig: w,
|
|
4048
4057
|
updatePayloadConfig: M,
|
|
4049
4058
|
samples: X,
|
|
4050
|
-
selectedSampleId:
|
|
4059
|
+
selectedSampleId: D,
|
|
4051
4060
|
applySample: ee,
|
|
4052
4061
|
clearChat: R,
|
|
4053
4062
|
isAuthorized: k
|
|
4054
|
-
} = Ba(), [
|
|
4055
|
-
|
|
4063
|
+
} = Ba(), [P, Q] = Ae(w), [ne, W] = Ae(z);
|
|
4064
|
+
Ie(() => {
|
|
4056
4065
|
o && (Q(w), W(z));
|
|
4057
4066
|
}, [o]);
|
|
4058
4067
|
const oe = () => {
|
|
4059
|
-
i(ne), M(
|
|
4068
|
+
i(ne), M(P), s(!1);
|
|
4060
4069
|
}, te = [
|
|
4061
4070
|
{ id: "SOFTWARE_DEV", name: "Software & Cloud" },
|
|
4062
4071
|
{ id: "FINANCE", name: "Finance & Quants" },
|
|
@@ -4068,11 +4077,11 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4068
4077
|
var p;
|
|
4069
4078
|
(p = l.current) == null || p.scrollIntoView({ behavior: "smooth" });
|
|
4070
4079
|
};
|
|
4071
|
-
|
|
4080
|
+
Ie(() => {
|
|
4072
4081
|
b();
|
|
4073
4082
|
}, [d, h]);
|
|
4074
4083
|
const re = (p) => p.isDataDriven ? " [DATA]" : " [PROMPT]", H = ({ msg: p }) => {
|
|
4075
|
-
const { content: Y, rawPayload: S, usage: fe } = p, C = Y.split(/(?=### )/g),
|
|
4084
|
+
const { content: Y, rawPayload: S, usage: fe } = p, C = Y.split(/(?=### )/g), J = (Z) => Z.includes("```mermaid") ? Z.split(/```mermaid([\s\S]*?)```/).map((T, N) => N % 2 === 1 ? /* @__PURE__ */ r.jsx(Ct, { chart: T.trim() }, N) : /* @__PURE__ */ r.jsx("div", { children: J(T) }, N)) : Z.split(`
|
|
4076
4085
|
`).map((O, T) => {
|
|
4077
4086
|
const N = O.trim();
|
|
4078
4087
|
if (!N) return /* @__PURE__ */ r.jsx("div", { className: "h-2" }, T);
|
|
@@ -4081,8 +4090,8 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4081
4090
|
/* @__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
4091
|
/* @__PURE__ */ r.jsx("span", { className: "text-[11px] leading-relaxed text-slate-300", children: N.replace(/^- |\* |\d+\. /, "") })
|
|
4083
4092
|
] }, T);
|
|
4084
|
-
const
|
|
4085
|
-
return /* @__PURE__ */ r.jsx("p", { className: "mb-2 leading-relaxed text-slate-300", children:
|
|
4093
|
+
const K = N.split(/(\*\*.*?\*\*)/g);
|
|
4094
|
+
return /* @__PURE__ */ r.jsx("p", { className: "mb-2 leading-relaxed text-slate-300", children: K.map(
|
|
4086
4095
|
(_, L) => _.startsWith("**") && _.endsWith("**") ? /* @__PURE__ */ r.jsx("strong", { className: "text-amber-500/90 font-black", children: _.slice(2, -2) }, L) : _
|
|
4087
4096
|
) }, T);
|
|
4088
4097
|
});
|
|
@@ -4090,8 +4099,8 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4090
4099
|
C.map((Z, O) => {
|
|
4091
4100
|
if (Z.startsWith("### ")) {
|
|
4092
4101
|
const T = Z.split(`
|
|
4093
|
-
`), N = T[0].replace("### ", ""),
|
|
4094
|
-
`), _ = N.toLowerCase().includes("blueprint"), L =
|
|
4102
|
+
`), N = T[0].replace("### ", ""), K = T.slice(1).join(`
|
|
4103
|
+
`), _ = N.toLowerCase().includes("blueprint"), L = /^\s*(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)/i.test(K.trim());
|
|
4095
4104
|
return /* @__PURE__ */ r.jsxs("div", { className: he(
|
|
4096
4105
|
"group relative",
|
|
4097
4106
|
_ ? "p-4 rounded-2xl bg-amber-500/5 border border-amber-500/10 mt-6" : ""
|
|
@@ -4108,19 +4117,19 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4108
4117
|
/* @__PURE__ */ r.jsx("div", { className: he(
|
|
4109
4118
|
"font-sans",
|
|
4110
4119
|
_ ? "font-mono text-[10px] text-amber-500/70" : ""
|
|
4111
|
-
), children: L ? /* @__PURE__ */ r.jsx(Ct, { chart:
|
|
4120
|
+
), children: L ? /* @__PURE__ */ r.jsx(Ct, { chart: K.trim() }) : J(K) })
|
|
4112
4121
|
] }, O);
|
|
4113
4122
|
}
|
|
4114
|
-
return /* @__PURE__ */ r.jsx("div", { children:
|
|
4123
|
+
return /* @__PURE__ */ r.jsx("div", { children: J(Z) }, O);
|
|
4115
4124
|
}),
|
|
4116
4125
|
S && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4117
|
-
S.tasks && /* @__PURE__ */ r.jsx(
|
|
4126
|
+
S.tasks && /* @__PURE__ */ r.jsx(Da, { tasks: S.tasks, team: S.team }),
|
|
4118
4127
|
S.nodes && /* @__PURE__ */ r.jsx(Bt, { data: S.nodes }),
|
|
4119
4128
|
S.metrics && /* @__PURE__ */ r.jsx(Bt, { data: S.metrics }),
|
|
4120
4129
|
Array.isArray(S.data) && /* @__PURE__ */ r.jsx(Bt, { data: S.data }),
|
|
4121
4130
|
S.diagram && /* @__PURE__ */ r.jsx(Ct, { chart: S.diagram })
|
|
4122
4131
|
] }),
|
|
4123
|
-
/* @__PURE__ */ r.jsx(
|
|
4132
|
+
/* @__PURE__ */ r.jsx(Pa, { usage: fe, rawPayload: S })
|
|
4124
4133
|
] });
|
|
4125
4134
|
};
|
|
4126
4135
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -4304,7 +4313,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4304
4313
|
/* @__PURE__ */ r.jsx("h4", { className: "text-sm font-black text-white uppercase tracking-widest", children: "Neural Link Restricted" }),
|
|
4305
4314
|
/* @__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
4315
|
] }) }),
|
|
4307
|
-
/* @__PURE__ */ r.jsx(
|
|
4316
|
+
/* @__PURE__ */ r.jsx(Dt, { children: o && /* @__PURE__ */ r.jsxs(
|
|
4308
4317
|
Ge.div,
|
|
4309
4318
|
{
|
|
4310
4319
|
initial: { y: "100%" },
|
|
@@ -4339,7 +4348,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4339
4348
|
/* @__PURE__ */ r.jsx(
|
|
4340
4349
|
"select",
|
|
4341
4350
|
{
|
|
4342
|
-
value:
|
|
4351
|
+
value: P.vertical,
|
|
4343
4352
|
onChange: (p) => Q((Y) => ({ ...Y, vertical: p.target.value })),
|
|
4344
4353
|
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
4354
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
@@ -4352,7 +4361,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4352
4361
|
/* @__PURE__ */ r.jsxs(
|
|
4353
4362
|
"select",
|
|
4354
4363
|
{
|
|
4355
|
-
value:
|
|
4364
|
+
value: P.focus,
|
|
4356
4365
|
onChange: (p) => Q((Y) => ({ ...Y, focus: p.target.value })),
|
|
4357
4366
|
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
4367
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
@@ -4372,7 +4381,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4372
4381
|
/* @__PURE__ */ r.jsxs(
|
|
4373
4382
|
"select",
|
|
4374
4383
|
{
|
|
4375
|
-
value:
|
|
4384
|
+
value: D,
|
|
4376
4385
|
onChange: (p) => {
|
|
4377
4386
|
ee(p.target.value);
|
|
4378
4387
|
},
|
|
@@ -4393,7 +4402,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4393
4402
|
/* @__PURE__ */ r.jsx(
|
|
4394
4403
|
"textarea",
|
|
4395
4404
|
{
|
|
4396
|
-
value:
|
|
4405
|
+
value: P.data ? typeof P.data == "string" ? P.data : JSON.stringify(P.data, null, 2) : "",
|
|
4397
4406
|
onChange: (p) => {
|
|
4398
4407
|
Q((Y) => ({ ...Y, data: p.target.value }));
|
|
4399
4408
|
},
|
|
@@ -4404,7 +4413,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4404
4413
|
] }),
|
|
4405
4414
|
/* @__PURE__ */ r.jsxs("div", { className: "space-y-2", children: [
|
|
4406
4415
|
/* @__PURE__ */ r.jsx("label", { className: "text-[8px] font-black text-slate-500 uppercase tracking-widest ml-1", children: "Current Neural Prompt (Preview)" }),
|
|
4407
|
-
/* @__PURE__ */ r.jsx("div", { className: "w-full bg-amber-500/5 border border-amber-500/10 rounded-xl p-4 text-[10px] font-medium text-slate-300 min-h-[60px] max-h-[120px] overflow-y-auto italic leading-relaxed", children: m || (
|
|
4416
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full bg-amber-500/5 border border-amber-500/10 rounded-xl p-4 text-[10px] font-medium text-slate-300 min-h-[60px] max-h-[120px] overflow-y-auto italic leading-relaxed", children: m || (D ? "Neural template active. Ready for synthesis." : "Type in chat to preview prompt...") })
|
|
4408
4417
|
] }),
|
|
4409
4418
|
/* @__PURE__ */ r.jsxs("div", { className: "pt-4 pb-8", children: [
|
|
4410
4419
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -4488,7 +4497,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4488
4497
|
environment: o = "PROD",
|
|
4489
4498
|
persist: s = !0,
|
|
4490
4499
|
theme: c = "dark"
|
|
4491
|
-
} = e, [
|
|
4500
|
+
} = e, [u, l] = Ae(!1), [d, m] = Ae(!1), v = It(() => {
|
|
4492
4501
|
if (!a) return null;
|
|
4493
4502
|
const h = n || Ma[o];
|
|
4494
4503
|
return new rr({
|
|
@@ -4499,14 +4508,14 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4499
4508
|
}, [a, n, o]);
|
|
4500
4509
|
return /* @__PURE__ */ r.jsx(Tt.Provider, { value: {
|
|
4501
4510
|
client: v,
|
|
4502
|
-
isOpen:
|
|
4511
|
+
isOpen: u,
|
|
4503
4512
|
setIsOpen: l,
|
|
4504
4513
|
isMinimized: d,
|
|
4505
4514
|
setIsMinimized: m,
|
|
4506
4515
|
config: e
|
|
4507
4516
|
}, children: /* @__PURE__ */ r.jsxs("div", { className: "eva-fusion-agent-root", children: [
|
|
4508
4517
|
/* @__PURE__ */ r.jsx(Yr, { position: "top-center", richColors: !0 }),
|
|
4509
|
-
/* @__PURE__ */ r.jsx(
|
|
4518
|
+
/* @__PURE__ */ r.jsx(Dt, { children: (!u || d) && /* @__PURE__ */ r.jsx(
|
|
4510
4519
|
Vr,
|
|
4511
4520
|
{
|
|
4512
4521
|
onClick: () => {
|
|
@@ -4514,7 +4523,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4514
4523
|
}
|
|
4515
4524
|
}
|
|
4516
4525
|
) }),
|
|
4517
|
-
/* @__PURE__ */ r.jsx(
|
|
4526
|
+
/* @__PURE__ */ r.jsx(Dt, { children: u && !d && /* @__PURE__ */ r.jsx(
|
|
4518
4527
|
Na,
|
|
4519
4528
|
{
|
|
4520
4529
|
onClose: () => l(!1),
|