@estevia/evafusion-agent 1.6.7 → 1.6.9
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 +19 -19
- package/dist/index.mjs +574 -567
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import u, { 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
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";
|
|
@@ -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
|
-
|
|
24
|
-
for (v in
|
|
25
|
-
if (l && l.defaultProps) for (v in
|
|
26
|
-
return { $$typeof: a, type: l, key:
|
|
20
|
+
var e = u, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = 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, f, p) {
|
|
22
|
+
var v, b = {}, M = null, o = null;
|
|
23
|
+
p !== void 0 && (M = "" + p), f.key !== void 0 && (M = "" + f.key), f.ref !== void 0 && (o = f.ref);
|
|
24
|
+
for (v in f) i.call(f, v) && !c.hasOwnProperty(v) && (b[v] = f[v]);
|
|
25
|
+
if (l && l.defaultProps) for (v in f = l.defaultProps, f) b[v] === void 0 && (b[v] = f[v]);
|
|
26
|
+
return { $$typeof: a, type: l, key: M, ref: o, 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,48 +40,48 @@ 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 = u, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = 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"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), o = Symbol.for("react.offscreen"), Q = Symbol.iterator, w = "@@iterator";
|
|
44
|
+
function T(t) {
|
|
45
45
|
if (t === null || typeof t != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var A =
|
|
47
|
+
var A = Q && t[Q] || t[w];
|
|
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
51
|
function D(t) {
|
|
52
52
|
{
|
|
53
|
-
for (var A = arguments.length,
|
|
54
|
-
|
|
55
|
-
ee("error", t,
|
|
53
|
+
for (var A = arguments.length, m = new Array(A > 1 ? A - 1 : 0), x = 1; x < A; x++)
|
|
54
|
+
m[x - 1] = arguments[x];
|
|
55
|
+
ee("error", t, m);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function ee(t, A,
|
|
58
|
+
function ee(t, A, m) {
|
|
59
59
|
{
|
|
60
60
|
var x = X.ReactDebugCurrentFrame, I = x.getStackAddendum();
|
|
61
|
-
I !== "" && (A += "%s",
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
61
|
+
I !== "" && (A += "%s", m = m.concat([I]));
|
|
62
|
+
var F = m.map(function(z) {
|
|
63
|
+
return String(z);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
F.unshift("Warning: " + A), Function.prototype.apply.call(console[t], console, F);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var R = !1, k = !1, P = !1,
|
|
68
|
+
var R = !1, k = !1, P = !1, Y = !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 ===
|
|
71
|
+
return !!(typeof t == "string" || typeof t == "function" || t === i || t === c || ne || t === s || t === p || t === v || Y || t === o || R || k || P || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === b || t.$$typeof === d || t.$$typeof === l || t.$$typeof === f || // 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.
|
|
75
75
|
t.$$typeof === W || t.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function te(t, A,
|
|
77
|
+
function te(t, A, m) {
|
|
78
78
|
var x = t.displayName;
|
|
79
79
|
if (x)
|
|
80
80
|
return x;
|
|
81
81
|
var I = A.displayName || A.name || "";
|
|
82
|
-
return I !== "" ?
|
|
82
|
+
return I !== "" ? m + "(" + I + ")" : m;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function h(t) {
|
|
85
85
|
return t.displayName || "Context";
|
|
86
86
|
}
|
|
87
87
|
function re(t) {
|
|
@@ -92,7 +92,7 @@ function mr() {
|
|
|
92
92
|
if (typeof t == "string")
|
|
93
93
|
return t;
|
|
94
94
|
switch (t) {
|
|
95
|
-
case
|
|
95
|
+
case i:
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case n:
|
|
98
98
|
return "Portal";
|
|
@@ -100,7 +100,7 @@ function mr() {
|
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case s:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case p:
|
|
104
104
|
return "Suspense";
|
|
105
105
|
case v:
|
|
106
106
|
return "SuspenseList";
|
|
@@ -109,19 +109,19 @@ function mr() {
|
|
|
109
109
|
switch (t.$$typeof) {
|
|
110
110
|
case l:
|
|
111
111
|
var A = t;
|
|
112
|
-
return
|
|
113
|
-
case u:
|
|
114
|
-
var g = t;
|
|
115
|
-
return b(g._context) + ".Provider";
|
|
112
|
+
return h(A) + ".Consumer";
|
|
116
113
|
case d:
|
|
114
|
+
var m = t;
|
|
115
|
+
return h(m._context) + ".Provider";
|
|
116
|
+
case f:
|
|
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,
|
|
121
|
+
case M: {
|
|
122
|
+
var I = t, F = I._payload, z = I._init;
|
|
123
123
|
try {
|
|
124
|
-
return re(
|
|
124
|
+
return re(z(F));
|
|
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,
|
|
133
|
-
function
|
|
132
|
+
var H = Object.assign, g = 0, V, S, fe, C, J, Z, j;
|
|
133
|
+
function O() {
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
O.__reactDisabledLog = !0;
|
|
136
136
|
function N() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (g === 0) {
|
|
139
|
+
V = 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, {
|
|
@@ -153,12 +153,12 @@ function mr() {
|
|
|
153
153
|
groupEnd: t
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
g++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
function K() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (g--, g === 0) {
|
|
162
162
|
var t = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
@@ -166,7 +166,7 @@ function mr() {
|
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
168
|
log: H({}, t, {
|
|
169
|
-
value:
|
|
169
|
+
value: V
|
|
170
170
|
}),
|
|
171
171
|
info: H({}, t, {
|
|
172
172
|
value: S
|
|
@@ -184,15 +184,15 @@ function mr() {
|
|
|
184
184
|
value: Z
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: H({}, t, {
|
|
187
|
-
value:
|
|
187
|
+
value: j
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
g < 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;
|
|
195
|
-
function Me(t, A,
|
|
195
|
+
function Me(t, A, m) {
|
|
196
196
|
{
|
|
197
197
|
if (L === void 0)
|
|
198
198
|
try {
|
|
@@ -214,39 +214,39 @@ function mr() {
|
|
|
214
214
|
if (!t || xe)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
217
|
+
var m = Ce.get(t);
|
|
218
|
+
if (m !== void 0)
|
|
219
|
+
return m;
|
|
220
220
|
}
|
|
221
221
|
var x;
|
|
222
222
|
xe = !0;
|
|
223
223
|
var I = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var F;
|
|
226
|
+
F = _.current, _.current = null, N();
|
|
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,19 +276,19 @@ function mr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
xe = !1, _.current =
|
|
279
|
+
xe = !1, _.current = F, K(), Error.prepareStackTrace = I;
|
|
280
280
|
}
|
|
281
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
|
-
function at(t, A,
|
|
284
|
+
function at(t, A, m) {
|
|
285
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 Qe(t, A,
|
|
291
|
+
function Qe(t, A, m) {
|
|
292
292
|
if (t == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof t == "function")
|
|
@@ -296,21 +296,21 @@ function mr() {
|
|
|
296
296
|
if (typeof t == "string")
|
|
297
297
|
return Me(t);
|
|
298
298
|
switch (t) {
|
|
299
|
-
case
|
|
299
|
+
case p:
|
|
300
300
|
return Me("Suspense");
|
|
301
301
|
case v:
|
|
302
302
|
return Me("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof t == "object")
|
|
305
305
|
switch (t.$$typeof) {
|
|
306
|
-
case
|
|
306
|
+
case f:
|
|
307
307
|
return at(t.render);
|
|
308
|
-
case
|
|
309
|
-
return Qe(t.type, A,
|
|
310
|
-
case
|
|
311
|
-
var x = t, I = x._payload,
|
|
308
|
+
case b:
|
|
309
|
+
return Qe(t.type, A, m);
|
|
310
|
+
case M: {
|
|
311
|
+
var x = t, I = x._payload, F = x._init;
|
|
312
312
|
try {
|
|
313
|
-
return Qe(
|
|
313
|
+
return Qe(F(I), A, m);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -320,27 +320,27 @@ function mr() {
|
|
|
320
320
|
var Te = Object.prototype.hasOwnProperty, nt = {}, Ye = X.ReactDebugCurrentFrame;
|
|
321
321
|
function Ve(t) {
|
|
322
322
|
if (t) {
|
|
323
|
-
var A = t._owner,
|
|
324
|
-
Ye.setExtraStackFrame(
|
|
323
|
+
var A = t._owner, m = Qe(t.type, t._source, A ? A.type : null);
|
|
324
|
+
Ye.setExtraStackFrame(m);
|
|
325
325
|
} else
|
|
326
326
|
Ye.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function ot(t, A,
|
|
328
|
+
function ot(t, A, m, x, I) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
330
|
+
var F = Function.call.bind(Te);
|
|
331
|
+
for (var z in t)
|
|
332
|
+
if (F(t, z)) {
|
|
333
|
+
var E = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof t[
|
|
336
|
-
var se = Error((x || "React class") + ": " +
|
|
335
|
+
if (typeof t[z] != "function") {
|
|
336
|
+
var se = Error((x || "React class") + ": " + m + " 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, m, 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), 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", m, z, typeof E), Ve(null)), E instanceof Error && !(E.message in nt) && (nt[E.message] = !0, Ve(I), D("Failed %s type: %s", m, E.message), Ve(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -350,8 +350,8 @@ function mr() {
|
|
|
350
350
|
}
|
|
351
351
|
function Be(t) {
|
|
352
352
|
{
|
|
353
|
-
var A = typeof Symbol == "function" && Symbol.toStringTag,
|
|
354
|
-
return
|
|
353
|
+
var A = typeof Symbol == "function" && Symbol.toStringTag, m = A && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
354
|
+
return m;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
function pt(t) {
|
|
@@ -395,78 +395,78 @@ function mr() {
|
|
|
395
395
|
}
|
|
396
396
|
function Oe(t, A) {
|
|
397
397
|
{
|
|
398
|
-
var
|
|
398
|
+
var m = function() {
|
|
399
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
|
-
|
|
402
|
-
get:
|
|
401
|
+
m.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
402
|
+
get: m,
|
|
403
403
|
configurable: !0
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function lt(t, A) {
|
|
408
408
|
{
|
|
409
|
-
var
|
|
409
|
+
var m = function() {
|
|
410
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
|
-
|
|
413
|
-
get:
|
|
412
|
+
m.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
413
|
+
get: m,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var je = function(t, A,
|
|
419
|
-
var
|
|
418
|
+
var je = function(t, A, m, x, I, F, 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
|
-
ref:
|
|
426
|
-
props:
|
|
425
|
+
ref: m,
|
|
426
|
+
props: z,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
428
|
+
_owner: F
|
|
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
|
-
function vt(t, A,
|
|
447
|
+
function vt(t, A, m, x, I) {
|
|
448
448
|
{
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
for (
|
|
452
|
-
Te.call(A,
|
|
449
|
+
var F, z = {}, E = null, se = null;
|
|
450
|
+
m !== void 0 && (ie(m), E = "" + m), At(A) && (ie(A.key), E = "" + A.key), mt(A) && (se = A.ref, Ze(A, I));
|
|
451
|
+
for (F in A)
|
|
452
|
+
Te.call(A, F) && !gt.hasOwnProperty(F) && (z[F] = A[F]);
|
|
453
453
|
if (t && t.defaultProps) {
|
|
454
454
|
var $ = t.defaultProps;
|
|
455
|
-
for (
|
|
456
|
-
|
|
455
|
+
for (F in $)
|
|
456
|
+
z[F] === void 0 && (z[F] = $[F]);
|
|
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
466
|
function Pe(t) {
|
|
467
467
|
if (t) {
|
|
468
|
-
var A = t._owner,
|
|
469
|
-
Ke.setExtraStackFrame(
|
|
468
|
+
var A = t._owner, m = Qe(t.type, t._source, A ? A.type : null);
|
|
469
|
+
Ke.setExtraStackFrame(m);
|
|
470
470
|
} else
|
|
471
471
|
Ke.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
@@ -495,25 +495,25 @@ Check the render method of \`` + t + "`.";
|
|
|
495
495
|
{
|
|
496
496
|
var A = me();
|
|
497
497
|
if (!A) {
|
|
498
|
-
var
|
|
499
|
-
|
|
498
|
+
var m = typeof t == "string" ? t : t.displayName || t.name;
|
|
499
|
+
m && (A = `
|
|
500
500
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
501
|
+
Check the top-level render call using <` + m + ">.");
|
|
502
502
|
}
|
|
503
503
|
return A;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function U(t, A) {
|
|
507
507
|
{
|
|
508
508
|
if (!t._store || t._store.validated || t.key != null)
|
|
509
509
|
return;
|
|
510
510
|
t._store.validated = !0;
|
|
511
|
-
var
|
|
512
|
-
if (y[
|
|
511
|
+
var m = G(A);
|
|
512
|
+
if (y[m])
|
|
513
513
|
return;
|
|
514
|
-
y[
|
|
514
|
+
y[m] = !0;
|
|
515
515
|
var x = "";
|
|
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.',
|
|
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.', m, x), Pe(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function le(t, A) {
|
|
@@ -521,17 +521,17 @@ Check the top-level render call using <` + g + ">.");
|
|
|
521
521
|
if (typeof t != "object")
|
|
522
522
|
return;
|
|
523
523
|
if (Ue(t))
|
|
524
|
-
for (var
|
|
525
|
-
var x = t[
|
|
526
|
-
He(x) &&
|
|
524
|
+
for (var m = 0; m < t.length; m++) {
|
|
525
|
+
var x = t[m];
|
|
526
|
+
He(x) && U(x, A);
|
|
527
527
|
}
|
|
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
|
|
534
|
-
He(
|
|
533
|
+
for (var F = I.call(t), z; !(z = F.next()).done; )
|
|
534
|
+
He(z.value) && U(z.value, A);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -540,18 +540,18 @@ Check the top-level render call using <` + g + ">.");
|
|
|
540
540
|
var A = t.type;
|
|
541
541
|
if (A == null || typeof A == "string")
|
|
542
542
|
return;
|
|
543
|
-
var
|
|
543
|
+
var m;
|
|
544
544
|
if (typeof A == "function")
|
|
545
|
-
|
|
546
|
-
else if (typeof A == "object" && (A.$$typeof ===
|
|
545
|
+
m = A.propTypes;
|
|
546
|
+
else if (typeof A == "object" && (A.$$typeof === f || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
A.$$typeof ===
|
|
549
|
-
|
|
548
|
+
A.$$typeof === b))
|
|
549
|
+
m = A.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
|
-
if (
|
|
552
|
+
if (m) {
|
|
553
553
|
var x = re(A);
|
|
554
|
-
ot(
|
|
554
|
+
ot(m, t.props, "prop", x, t);
|
|
555
555
|
} else if (A.PropTypes !== void 0 && !_e) {
|
|
556
556
|
_e = !0;
|
|
557
557
|
var I = re(A);
|
|
@@ -562,8 +562,8 @@ Check the top-level render call using <` + g + ">.");
|
|
|
562
562
|
}
|
|
563
563
|
function be(t) {
|
|
564
564
|
{
|
|
565
|
-
for (var A = Object.keys(t.props),
|
|
566
|
-
var x = A[
|
|
565
|
+
for (var A = Object.keys(t.props), m = 0; m < A.length; m++) {
|
|
566
|
+
var x = A[m];
|
|
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;
|
|
@@ -573,21 +573,21 @@ Check the top-level render call using <` + g + ">.");
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var we = {};
|
|
576
|
-
function ce(t, A,
|
|
576
|
+
function ce(t, A, m, x, I, F) {
|
|
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" : Ue(t) ? $ = "array" : t !== void 0 && t.$$typeof === a ? ($ = "<" + (re(t.type) || "Unknown") + " />",
|
|
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, D("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
|
-
var ae = vt(t, A,
|
|
587
|
+
var ae = vt(t, A, m, I, F);
|
|
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)
|
|
@@ -614,17 +614,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
614
614
|
<%s key={someKey} {...props} />`, bt, Le, _t, Le), we[Le + bt] = !0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return t ===
|
|
617
|
+
return t === i ? be(ae) : pe(ae), ae;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function ye(t, A,
|
|
621
|
-
return ce(t, A,
|
|
620
|
+
function ye(t, A, m) {
|
|
621
|
+
return ce(t, A, m, !0);
|
|
622
622
|
}
|
|
623
|
-
function Zt(t, A,
|
|
624
|
-
return ce(t, A,
|
|
623
|
+
function Zt(t, A, m) {
|
|
624
|
+
return ce(t, A, m, !1);
|
|
625
625
|
}
|
|
626
626
|
var Jt = Zt, Kt = ye;
|
|
627
|
-
et.Fragment =
|
|
627
|
+
et.Fragment = i, et.jsx = Jt, et.jsxs = Kt;
|
|
628
628
|
}()), et;
|
|
629
629
|
}
|
|
630
630
|
process.env.NODE_ENV === "production" ? Pt.exports = gr() : Pt.exports = mr();
|
|
@@ -641,9 +641,9 @@ var r = Pt.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 }) => u.createElement("div", { className: ["sonner-loading-wrapper", a].filter(Boolean).join(" "), "data-visible": e }, u.createElement("div", { className: "sonner-spinner" }, hr.map((n, i) => u.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${i}` })))), wr = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, u.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 = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, u.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 = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, u.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 = u.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, u.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 = u.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" }, u.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), u.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), Dr = () => {
|
|
645
|
+
let [e, a] = u.useState(document.hidden);
|
|
646
|
+
return u.useEffect(() => {
|
|
647
647
|
let n = () => {
|
|
648
648
|
a(document.hidden);
|
|
649
649
|
};
|
|
@@ -660,35 +660,35 @@ var r = Pt.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, ...
|
|
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, ...i } = 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, ...i, 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
|
|
672
|
-
if (c = ["resolve",
|
|
673
|
-
else if (Mr(
|
|
671
|
+
let i = e instanceof Promise ? e : e(), s = n !== void 0, c, d = i.then(async (f) => {
|
|
672
|
+
if (c = ["resolve", f], u.isValidElement(f)) s = !1, this.create({ id: n, type: "default", message: f });
|
|
673
|
+
else if (Mr(f) && !f.ok) {
|
|
674
674
|
s = !1;
|
|
675
|
-
let
|
|
676
|
-
this.create({ id: n, type: "error", message:
|
|
675
|
+
let p = typeof a.error == "function" ? await a.error(`HTTP error! status: ${f.status}`) : a.error, v = typeof a.description == "function" ? await a.description(`HTTP error! status: ${f.status}`) : a.description;
|
|
676
|
+
this.create({ id: n, type: "error", message: p, description: v });
|
|
677
677
|
} else if (a.success !== void 0) {
|
|
678
678
|
s = !1;
|
|
679
|
-
let
|
|
680
|
-
this.create({ id: n, type: "success", message:
|
|
679
|
+
let p = typeof a.success == "function" ? await a.success(f) : a.success, v = typeof a.description == "function" ? await a.description(f) : a.description;
|
|
680
|
+
this.create({ id: n, type: "success", message: p, description: v });
|
|
681
681
|
}
|
|
682
|
-
}).catch(async (
|
|
683
|
-
if (c = ["reject",
|
|
682
|
+
}).catch(async (f) => {
|
|
683
|
+
if (c = ["reject", f], a.error !== void 0) {
|
|
684
684
|
s = !1;
|
|
685
|
-
let
|
|
686
|
-
this.create({ id: n, type: "error", message:
|
|
685
|
+
let p = typeof a.error == "function" ? await a.error(f) : a.error, v = typeof a.description == "function" ? await a.description(f) : a.description;
|
|
686
|
+
this.create({ id: n, type: "error", message: p, description: v });
|
|
687
687
|
}
|
|
688
688
|
}).finally(() => {
|
|
689
|
-
var
|
|
690
|
-
s && (this.dismiss(n), n = void 0), (
|
|
691
|
-
}), l = () => new Promise((
|
|
689
|
+
var f;
|
|
690
|
+
s && (this.dismiss(n), n = void 0), (f = a.finally) == null || f.call(a);
|
|
691
|
+
}), l = () => new Promise((f, p) => d.then(() => c[0] === "reject" ? p(c[1]) : f(c[1])).catch(p));
|
|
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++;
|
|
@@ -701,8 +701,8 @@ var r = Pt.exports, vr = (e) => {
|
|
|
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 });
|
|
702
702
|
function Er(e, { insertAt: a } = {}) {
|
|
703
703
|
if (typeof document > "u") return;
|
|
704
|
-
let n = document.head || document.getElementsByTagName("head")[0],
|
|
705
|
-
|
|
704
|
+
let n = document.head || document.getElementsByTagName("head")[0], i = document.createElement("style");
|
|
705
|
+
i.type = "text/css", a === "top" && n.firstChild ? n.insertBefore(i, n.firstChild) : n.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e));
|
|
706
706
|
}
|
|
707
707
|
Er(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
708
708
|
`);
|
|
@@ -714,41 +714,41 @@ function ve(...e) {
|
|
|
714
714
|
return e.filter(Boolean).join(" ");
|
|
715
715
|
}
|
|
716
716
|
function Ir(e) {
|
|
717
|
-
let [a, n] = e.split("-"),
|
|
718
|
-
return a &&
|
|
717
|
+
let [a, n] = e.split("-"), i = [];
|
|
718
|
+
return a && i.push(a), n && i.push(n), i;
|
|
719
719
|
}
|
|
720
720
|
var Sr = (e) => {
|
|
721
|
-
var a, n,
|
|
722
|
-
let { invert:
|
|
721
|
+
var a, n, i, s, c, d, l, f, p, v, b;
|
|
722
|
+
let { invert: M, toast: o, unstyled: Q, interacting: w, setHeights: T, visibleToasts: X, heights: D, index: ee, toasts: R, expanded: k, removeToast: P, defaultRichColors: Y, closeButton: ne, style: W, cancelButtonStyle: oe, actionButtonStyle: te, className: h = "", descriptionClassName: re = "", duration: H, position: g, gap: V, loadingIcon: S, expandByDefault: fe, classNames: C, icons: J, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: j } = e, [O, N] = u.useState(null), [K, _] = u.useState(null), [L, Me] = u.useState(!1), [xe, Ce] = u.useState(!1), [Re, Se] = u.useState(!1), [at, ft] = u.useState(!1), [Qe, Te] = u.useState(!1), [nt, Ye] = u.useState(0), [Ve, ot] = u.useState(0), Xe = u.useRef(o.duration || H || Rt), Ue = u.useRef(null), Be = u.useRef(null), pt = ee === 0, it = ee + 1 <= X, ie = o.type, De = o.dismissible !== !1, gt = o.className || "", st = o.descriptionClassName || "", ke = u.useMemo(() => D.findIndex((y) => y.toastId === o.id) || 0, [D, o.id]), mt = u.useMemo(() => {
|
|
723
723
|
var y;
|
|
724
|
-
return (y =
|
|
725
|
-
}, [
|
|
726
|
-
Oe.current =
|
|
724
|
+
return (y = o.closeButton) != null ? y : ne;
|
|
725
|
+
}, [o.closeButton, ne]), At = u.useMemo(() => o.duration || H || Rt, [o.duration, H]), Ze = u.useRef(0), Oe = u.useRef(0), lt = u.useRef(0), je = u.useRef(null), [vt, Je] = g.split("-"), Ke = u.useMemo(() => D.reduce((y, G, U) => U >= ke ? y : y + G.height, 0), [D, ke]), Pe = Dr(), _e = o.invert || M, He = ie === "loading";
|
|
726
|
+
Oe.current = u.useMemo(() => ke * V + Ke, [ke, Ke]), u.useEffect(() => {
|
|
727
727
|
Xe.current = At;
|
|
728
|
-
}, [At]),
|
|
728
|
+
}, [At]), u.useEffect(() => {
|
|
729
729
|
Me(!0);
|
|
730
|
-
}, []),
|
|
730
|
+
}, []), u.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((U) => [{ toastId: o.id, height: G, position: o.position }, ...U]), () => T((U) => U.filter((le) => le.toastId !== o.id));
|
|
735
735
|
}
|
|
736
|
-
}, [
|
|
736
|
+
}, [T, o.id]), u.useLayoutEffect(() => {
|
|
737
737
|
if (!L) return;
|
|
738
738
|
let y = Be.current, G = y.style.height;
|
|
739
739
|
y.style.height = "auto";
|
|
740
|
-
let
|
|
741
|
-
y.style.height = G, ot(
|
|
742
|
-
}, [L,
|
|
743
|
-
let me =
|
|
744
|
-
Ce(!0), Ye(Oe.current),
|
|
745
|
-
P(
|
|
740
|
+
let U = y.getBoundingClientRect().height;
|
|
741
|
+
y.style.height = G, ot(U), T((le) => le.find((pe) => pe.toastId === o.id) ? le.map((pe) => pe.toastId === o.id ? { ...pe, height: U } : pe) : [{ toastId: o.id, height: U, position: o.position }, ...le]);
|
|
742
|
+
}, [L, o.title, o.description, T, o.id]);
|
|
743
|
+
let me = u.useCallback(() => {
|
|
744
|
+
Ce(!0), Ye(Oe.current), T((y) => y.filter((G) => G.toastId !== o.id)), setTimeout(() => {
|
|
745
|
+
P(o);
|
|
746
746
|
}, Gr);
|
|
747
|
-
}, [
|
|
748
|
-
|
|
749
|
-
if (
|
|
747
|
+
}, [o, P, T, Oe]);
|
|
748
|
+
u.useEffect(() => {
|
|
749
|
+
if (o.promise && ie === "loading" || o.duration === 1 / 0 || o.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;
|
|
@@ -756,47 +756,47 @@ var Sr = (e) => {
|
|
|
756
756
|
lt.current = (/* @__PURE__ */ new Date()).getTime();
|
|
757
757
|
})() : Xe.current !== 1 / 0 && (Ze.current = (/* @__PURE__ */ new Date()).getTime(), y = setTimeout(() => {
|
|
758
758
|
var G;
|
|
759
|
-
(G =
|
|
759
|
+
(G = o.onAutoClose) == null || G.call(o, o), me();
|
|
760
760
|
}, Xe.current)), () => clearTimeout(y);
|
|
761
|
-
}, [k, w,
|
|
762
|
-
|
|
763
|
-
}, [me,
|
|
761
|
+
}, [k, w, o, ie, j, Pe, me]), u.useEffect(() => {
|
|
762
|
+
o.delete && me();
|
|
763
|
+
}, [me, o.delete]);
|
|
764
764
|
function ht() {
|
|
765
|
-
var y, G,
|
|
766
|
-
return J != null && J.loading ?
|
|
765
|
+
var y, G, U;
|
|
766
|
+
return J != null && J.loading ? u.createElement("div", { className: ve(C == null ? void 0 : C.loader, (y = o == null ? void 0 : o.classNames) == null ? void 0 : y.loader, "sonner-loader"), "data-visible": ie === "loading" }, J.loading) : S ? u.createElement("div", { className: ve(C == null ? void 0 : C.loader, (G = o == null ? void 0 : o.classNames) == null ? void 0 : G.loader, "sonner-loader"), "data-visible": ie === "loading" }, S) : u.createElement(br, { className: ve(C == null ? void 0 : C.loader, (U = o == null ? void 0 : o.classNames) == null ? void 0 : U.loader), visible: ie === "loading" });
|
|
767
767
|
}
|
|
768
|
-
return
|
|
768
|
+
return u.createElement("li", { tabIndex: 0, ref: Be, className: ve(h, gt, C == null ? void 0 : C.toast, (a = o == null ? void 0 : o.classNames) == null ? void 0 : a.toast, C == null ? void 0 : C.default, C == null ? void 0 : C[ie], (n = o == null ? void 0 : o.classNames) == null ? void 0 : n[ie]), "data-sonner-toast": "", "data-rich-colors": (i = o.richColors) != null ? i : Y, "data-styled": !(o.jsx || o.unstyled || Q), "data-mounted": L, "data-promise": !!o.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, ...o.style }, onDragEnd: () => {
|
|
769
769
|
Se(!1), N(null), je.current = null;
|
|
770
770
|
}, onPointerDown: (y) => {
|
|
771
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
|
-
var y, G,
|
|
773
|
+
var y, G, U, le;
|
|
774
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() - ((
|
|
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() - ((U = Ue.current) == null ? void 0 : U.getTime()), ce = O === "x" ? pe : be, ye = Math.abs(ce) / we;
|
|
777
777
|
if (Math.abs(ce) >= Lr || ye > 0.11) {
|
|
778
|
-
Ye(Oe.current), (le =
|
|
778
|
+
Ye(Oe.current), (le = o.onDismiss) == null || le.call(o, o), _(O === "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
|
-
var G,
|
|
783
|
+
var G, U, le, pe;
|
|
784
784
|
if (!je.current || !De || ((G = window.getSelection()) == null ? void 0 : G.toString().length) > 0) return;
|
|
785
|
-
let be = y.clientY - je.current.y, we = y.clientX - je.current.x, ce = (
|
|
786
|
-
!
|
|
785
|
+
let be = y.clientY - je.current.y, we = y.clientX - je.current.x, ce = (U = e.swipeDirections) != null ? U : Ir(g);
|
|
786
|
+
!O && (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
|
-
|
|
789
|
-
} }, mt && !
|
|
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 && !o.jsx ? u.createElement("button", { "aria-label": Z, "data-disabled": He, "data-close-button": !0, onClick: He || !De ? () => {
|
|
790
790
|
} : () => {
|
|
791
791
|
var y;
|
|
792
|
-
me(), (y =
|
|
793
|
-
}, className: ve(C == null ? void 0 : C.closeButton, (s =
|
|
794
|
-
var G,
|
|
795
|
-
dt(
|
|
796
|
-
}, className: ve(C == null ? void 0 : C.cancelButton, (v =
|
|
797
|
-
var G,
|
|
798
|
-
dt(
|
|
799
|
-
}, className: ve(C == null ? void 0 : C.actionButton, (
|
|
792
|
+
me(), (y = o.onDismiss) == null || y.call(o, o);
|
|
793
|
+
}, className: ve(C == null ? void 0 : C.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, (c = J == null ? void 0 : J.close) != null ? c : Br) : null, o.jsx || wt(o.title) ? o.jsx ? o.jsx : typeof o.title == "function" ? o.title() : o.title : u.createElement(u.Fragment, null, ie || o.icon || o.promise ? u.createElement("div", { "data-icon": "", className: ve(C == null ? void 0 : C.icon, (d = o == null ? void 0 : o.classNames) == null ? void 0 : d.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ht() : null, o.type !== "loading" ? o.icon || (J == null ? void 0 : J[ie]) || vr(ie) : null) : null, u.createElement("div", { "data-content": "", className: ve(C == null ? void 0 : C.content, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.content) }, u.createElement("div", { "data-title": "", className: ve(C == null ? void 0 : C.title, (f = o == null ? void 0 : o.classNames) == null ? void 0 : f.title) }, typeof o.title == "function" ? o.title() : o.title), o.description ? u.createElement("div", { "data-description": "", className: ve(re, st, C == null ? void 0 : C.description, (p = o == null ? void 0 : o.classNames) == null ? void 0 : p.description) }, typeof o.description == "function" ? o.description() : o.description) : null), wt(o.cancel) ? o.cancel : o.cancel && dt(o.cancel) ? u.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || oe, onClick: (y) => {
|
|
794
|
+
var G, U;
|
|
795
|
+
dt(o.cancel) && De && ((U = (G = o.cancel).onClick) == null || U.call(G, y), me());
|
|
796
|
+
}, className: ve(C == null ? void 0 : C.cancelButton, (v = o == null ? void 0 : o.classNames) == null ? void 0 : v.cancelButton) }, o.cancel.label) : null, wt(o.action) ? o.action : o.action && dt(o.action) ? u.createElement("button", { "data-button": !0, "data-action": !0, style: o.actionButtonStyle || te, onClick: (y) => {
|
|
797
|
+
var G, U;
|
|
798
|
+
dt(o.action) && ((U = (G = o.action).onClick) == null || U.call(G, y), !y.defaultPrevented && me());
|
|
799
|
+
}, className: ve(C == null ? void 0 : C.actionButton, (b = o == null ? void 0 : o.classNames) == null ? void 0 : b.actionButton) }, o.action.label) : null));
|
|
800
800
|
};
|
|
801
801
|
function Xt() {
|
|
802
802
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
@@ -805,84 +805,84 @@ function Xt() {
|
|
|
805
805
|
}
|
|
806
806
|
function Qr(e, a) {
|
|
807
807
|
let n = {};
|
|
808
|
-
return [e, a].forEach((
|
|
809
|
-
let c = s === 1,
|
|
810
|
-
function
|
|
808
|
+
return [e, a].forEach((i, s) => {
|
|
809
|
+
let c = s === 1, d = c ? "--mobile-offset" : "--offset", l = c ? Xr : Rr;
|
|
810
|
+
function f(p) {
|
|
811
811
|
["top", "right", "bottom", "left"].forEach((v) => {
|
|
812
|
-
n[`${
|
|
812
|
+
n[`${d}-${v}`] = typeof p == "number" ? `${p}px` : p;
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
|
-
typeof
|
|
816
|
-
|
|
817
|
-
}) :
|
|
815
|
+
typeof i == "number" || typeof i == "string" ? f(i) : typeof i == "object" ? ["top", "right", "bottom", "left"].forEach((p) => {
|
|
816
|
+
i[p] === void 0 ? n[`${d}-${p}`] = l : n[`${d}-${p}`] = typeof i[p] == "number" ? `${i[p]}px` : i[p];
|
|
817
|
+
}) : f(l);
|
|
818
818
|
}), n;
|
|
819
819
|
}
|
|
820
820
|
var Yr = er(function(e, a) {
|
|
821
|
-
let { invert: n, position:
|
|
822
|
-
|
|
821
|
+
let { invert: n, position: i = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton: d, className: l, offset: f, mobileOffset: p, theme: v = "light", richColors: b, duration: M, style: o, visibleToasts: Q = zr, toastOptions: w, dir: T = Xt(), gap: X = Hr, loadingIcon: D, icons: ee, containerAriaLabel: R = "Notifications", pauseWhenPageIsHidden: k } = e, [P, Y] = u.useState([]), ne = u.useMemo(() => Array.from(new Set([i].concat(P.filter((j) => j.position).map((j) => j.position)))), [P, i]), [W, oe] = u.useState([]), [te, h] = u.useState(!1), [re, H] = u.useState(!1), [g, V] = u.useState(v !== "system" ? v : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), S = u.useRef(null), fe = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), C = u.useRef(null), J = u.useRef(!1), Z = u.useCallback((j) => {
|
|
822
|
+
Y((O) => {
|
|
823
823
|
var N;
|
|
824
|
-
return (N =
|
|
824
|
+
return (N = O.find((K) => K.id === j.id)) != null && N.delete || ue.dismiss(j.id), O.filter(({ id: K }) => K !== j.id);
|
|
825
825
|
});
|
|
826
826
|
}, []);
|
|
827
|
-
return
|
|
828
|
-
if (
|
|
829
|
-
|
|
827
|
+
return u.useEffect(() => ue.subscribe((j) => {
|
|
828
|
+
if (j.dismiss) {
|
|
829
|
+
Y((O) => O.map((N) => N.id === j.id ? { ...N, delete: !0 } : N));
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
setTimeout(() => {
|
|
833
833
|
tr.flushSync(() => {
|
|
834
|
-
|
|
835
|
-
let N =
|
|
836
|
-
return N !== -1 ? [...
|
|
834
|
+
Y((O) => {
|
|
835
|
+
let N = O.findIndex((K) => K.id === j.id);
|
|
836
|
+
return N !== -1 ? [...O.slice(0, N), { ...O[N], ...j }, ...O.slice(N + 1)] : [j, ...O];
|
|
837
837
|
});
|
|
838
838
|
});
|
|
839
839
|
});
|
|
840
|
-
}), []),
|
|
840
|
+
}), []), u.useEffect(() => {
|
|
841
841
|
if (v !== "system") {
|
|
842
|
-
|
|
842
|
+
V(v);
|
|
843
843
|
return;
|
|
844
844
|
}
|
|
845
|
-
if (v === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ?
|
|
846
|
-
let
|
|
845
|
+
if (v === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? V("dark") : V("light")), typeof window > "u") return;
|
|
846
|
+
let j = window.matchMedia("(prefers-color-scheme: dark)");
|
|
847
847
|
try {
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
j.addEventListener("change", ({ matches: O }) => {
|
|
849
|
+
V(O ? "dark" : "light");
|
|
850
850
|
});
|
|
851
851
|
} catch {
|
|
852
|
-
|
|
852
|
+
j.addListener(({ matches: N }) => {
|
|
853
853
|
try {
|
|
854
|
-
|
|
854
|
+
V(N ? "dark" : "light");
|
|
855
855
|
} catch (K) {
|
|
856
856
|
console.error(K);
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
|
-
}, [v]),
|
|
861
|
-
P.length <= 1 &&
|
|
862
|
-
}, [P]),
|
|
863
|
-
let
|
|
860
|
+
}, [v]), u.useEffect(() => {
|
|
861
|
+
P.length <= 1 && h(!1);
|
|
862
|
+
}, [P]), u.useEffect(() => {
|
|
863
|
+
let j = (O) => {
|
|
864
864
|
var N, K;
|
|
865
|
-
s.every((_) =>
|
|
865
|
+
s.every((_) => O[_] || O.code === _) && (h(!0), (N = S.current) == null || N.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]), u.useEffect(() => {
|
|
869
869
|
if (S.current) return () => {
|
|
870
870
|
C.current && (C.current.focus({ preventScroll: !0 }), C.current = null, J.current = !1);
|
|
871
871
|
};
|
|
872
|
-
}, [S.current]),
|
|
872
|
+
}, [S.current]), u.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
873
|
var N;
|
|
874
|
-
let [K, _] =
|
|
875
|
-
return P.length ?
|
|
874
|
+
let [K, _] = j.split("-");
|
|
875
|
+
return P.length ? u.createElement("ol", { key: j, dir: T === "auto" ? Xt() : T, tabIndex: -1, ref: S, className: l, "data-sonner-toaster": !0, "data-theme": g, "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`, ...o, ...Qr(f, p) }, onBlur: (L) => {
|
|
876
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
878
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || J.current || (J.current = !0, C.current = L.relatedTarget);
|
|
879
|
-
}, onMouseEnter: () =>
|
|
880
|
-
re ||
|
|
881
|
-
}, onDragEnd: () =>
|
|
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) }, P.filter((L) => !L.position &&
|
|
883
|
+
}, onPointerUp: () => H(!1) }, P.filter((L) => !L.position && O === 0 || L.position === j).map((L, Me) => {
|
|
884
884
|
var xe, Ce;
|
|
885
|
-
return
|
|
885
|
+
return u.createElement(Sr, { key: L.id, icons: ee, index: Me, toast: L, defaultRichColors: b, duration: (xe = w == null ? void 0 : w.duration) != null ? xe : M, className: w == null ? void 0 : w.className, descriptionClassName: w == null ? void 0 : w.descriptionClassName, invert: n, visibleToasts: Q, 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: 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,48 +909,48 @@ const Qt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAKqCAYAAACkSiwxAA
|
|
|
909
909
|
)
|
|
910
910
|
]
|
|
911
911
|
}
|
|
912
|
-
), Tt =
|
|
912
|
+
), Tt = u.createContext(null);
|
|
913
913
|
function Yt(e) {
|
|
914
|
-
var a, n,
|
|
915
|
-
if (typeof e == "string" || typeof e == "number")
|
|
914
|
+
var a, n, i = "";
|
|
915
|
+
if (typeof e == "string" || typeof e == "number") i += e;
|
|
916
916
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
917
917
|
var s = e.length;
|
|
918
|
-
for (a = 0; a < s; a++) e[a] && (n = Yt(e[a])) && (
|
|
919
|
-
} else for (n in e) e[n] && (
|
|
920
|
-
return
|
|
918
|
+
for (a = 0; a < s; a++) e[a] && (n = Yt(e[a])) && (i && (i += " "), i += n);
|
|
919
|
+
} else for (n in e) e[n] && (i && (i += " "), i += n);
|
|
920
|
+
return i;
|
|
921
921
|
}
|
|
922
922
|
function Ur() {
|
|
923
|
-
for (var e, a, n = 0,
|
|
924
|
-
return
|
|
923
|
+
for (var e, a, n = 0, i = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (a = Yt(e)) && (i && (i += " "), i += a);
|
|
924
|
+
return i;
|
|
925
925
|
}
|
|
926
926
|
const Ot = "-", Fr = (e) => {
|
|
927
927
|
const a = Wr(e), {
|
|
928
928
|
conflictingClassGroups: n,
|
|
929
|
-
conflictingClassGroupModifiers:
|
|
929
|
+
conflictingClassGroupModifiers: i
|
|
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 &&
|
|
936
|
+
getConflictingClassGroupIds: (d, l) => {
|
|
937
|
+
const f = n[d] || [];
|
|
938
|
+
return l && i[d] ? [...f, ...i[d]] : f;
|
|
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
|
-
const n = e[0],
|
|
945
|
+
const n = e[0], i = a.nextPart.get(n), s = i ? Vt(e.slice(1), i) : void 0;
|
|
946
946
|
if (s)
|
|
947
947
|
return s;
|
|
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(":"));
|
|
@@ -961,14 +961,14 @@ const Ot = "-", Fr = (e) => {
|
|
|
961
961
|
const {
|
|
962
962
|
theme: a,
|
|
963
963
|
prefix: n
|
|
964
|
-
} = e,
|
|
964
|
+
} = e, i = {
|
|
965
965
|
nextPart: /* @__PURE__ */ new Map(),
|
|
966
966
|
validators: []
|
|
967
967
|
};
|
|
968
|
-
return Jr(Object.entries(e.classGroups), n).forEach(([c,
|
|
969
|
-
Mt(
|
|
970
|
-
}),
|
|
971
|
-
}, Mt = (e, a, n,
|
|
968
|
+
return Jr(Object.entries(e.classGroups), n).forEach(([c, d]) => {
|
|
969
|
+
Mt(d, i, c, a);
|
|
970
|
+
}), i;
|
|
971
|
+
}, Mt = (e, a, n, i) => {
|
|
972
972
|
e.forEach((s) => {
|
|
973
973
|
if (typeof s == "string") {
|
|
974
974
|
const c = s === "" ? a : Ht(a, s);
|
|
@@ -977,7 +977,7 @@ const Ot = "-", Fr = (e) => {
|
|
|
977
977
|
}
|
|
978
978
|
if (typeof s == "function") {
|
|
979
979
|
if (Zr(s)) {
|
|
980
|
-
Mt(s(
|
|
980
|
+
Mt(s(i), a, n, i);
|
|
981
981
|
return;
|
|
982
982
|
}
|
|
983
983
|
a.validators.push({
|
|
@@ -986,20 +986,20 @@ 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, i);
|
|
991
991
|
});
|
|
992
992
|
});
|
|
993
993
|
}, Ht = (e, a) => {
|
|
994
994
|
let n = e;
|
|
995
|
-
return a.split(Ot).forEach((
|
|
996
|
-
n.nextPart.has(
|
|
995
|
+
return a.split(Ot).forEach((i) => {
|
|
996
|
+
n.nextPart.has(i) || n.nextPart.set(i, {
|
|
997
997
|
nextPart: /* @__PURE__ */ new Map(),
|
|
998
998
|
validators: []
|
|
999
|
-
}), n = n.nextPart.get(
|
|
999
|
+
}), n = n.nextPart.get(i);
|
|
1000
1000
|
}), n;
|
|
1001
|
-
}, Zr = (e) => e.isThemeGetter, Jr = (e, a) => a ? e.map(([n,
|
|
1002
|
-
const s =
|
|
1001
|
+
}, Zr = (e) => e.isThemeGetter, Jr = (e, a) => a ? e.map(([n, i]) => {
|
|
1002
|
+
const s = i.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)
|
|
@@ -1009,62 +1009,62 @@ const Ot = "-", Fr = (e) => {
|
|
|
1009
1009
|
set: () => {
|
|
1010
1010
|
}
|
|
1011
1011
|
};
|
|
1012
|
-
let a = 0, n = /* @__PURE__ */ new Map(),
|
|
1013
|
-
const s = (c,
|
|
1014
|
-
n.set(c,
|
|
1012
|
+
let a = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
1013
|
+
const s = (c, d) => {
|
|
1014
|
+
n.set(c, d), a++, a > e && (a = 0, i = 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 = i.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,
|
|
1033
|
-
const
|
|
1034
|
-
let
|
|
1035
|
-
for (let
|
|
1036
|
-
let X = l[
|
|
1037
|
-
if (
|
|
1038
|
-
if (X === s && (
|
|
1039
|
-
|
|
1032
|
+
} = e, i = a.length === 1, s = a[0], c = a.length, d = (l) => {
|
|
1033
|
+
const f = [];
|
|
1034
|
+
let p = 0, v = 0, b;
|
|
1035
|
+
for (let T = 0; T < l.length; T++) {
|
|
1036
|
+
let X = l[T];
|
|
1037
|
+
if (p === 0) {
|
|
1038
|
+
if (X === s && (i || l.slice(T, T + c) === a)) {
|
|
1039
|
+
f.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
|
-
X === "[" ?
|
|
1047
|
+
X === "[" ? p++ : X === "]" && p--;
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1049
|
+
const M = f.length === 0 ? l : l.substring(v), o = M.startsWith(Ut), Q = o ? M.substring(1) : M, w = b && b > v ? b - v : void 0;
|
|
1050
1050
|
return {
|
|
1051
|
-
modifiers:
|
|
1052
|
-
hasImportantModifier:
|
|
1053
|
-
baseClassName:
|
|
1051
|
+
modifiers: f,
|
|
1052
|
+
hasImportantModifier: o,
|
|
1053
|
+
baseClassName: Q,
|
|
1054
1054
|
maybePostfixModifierPosition: w
|
|
1055
1055
|
};
|
|
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;
|
|
1064
1064
|
const a = [];
|
|
1065
1065
|
let n = [];
|
|
1066
|
-
return e.forEach((
|
|
1067
|
-
|
|
1066
|
+
return e.forEach((i) => {
|
|
1067
|
+
i[0] === "[" ? (a.push(...n.sort(), i), n = []) : n.push(i);
|
|
1068
1068
|
}), a.push(...n.sort()), a;
|
|
1069
1069
|
}, ea = (e) => ({
|
|
1070
1070
|
cache: Kr(e.cacheSize),
|
|
@@ -1073,68 +1073,68 @@ const Ot = "-", Fr = (e) => {
|
|
|
1073
1073
|
}), ta = /\s+/, ra = (e, a) => {
|
|
1074
1074
|
const {
|
|
1075
1075
|
parseClassName: n,
|
|
1076
|
-
getClassGroupId:
|
|
1076
|
+
getClassGroupId: i,
|
|
1077
1077
|
getConflictingClassGroupIds: s
|
|
1078
|
-
} = a, c = [],
|
|
1078
|
+
} = a, c = [], d = e.trim().split(ta);
|
|
1079
1079
|
let l = "";
|
|
1080
|
-
for (let
|
|
1081
|
-
const
|
|
1080
|
+
for (let f = d.length - 1; f >= 0; f -= 1) {
|
|
1081
|
+
const p = d[f], {
|
|
1082
1082
|
modifiers: v,
|
|
1083
|
-
hasImportantModifier:
|
|
1084
|
-
baseClassName:
|
|
1085
|
-
maybePostfixModifierPosition:
|
|
1086
|
-
} = n(
|
|
1087
|
-
let
|
|
1083
|
+
hasImportantModifier: b,
|
|
1084
|
+
baseClassName: M,
|
|
1085
|
+
maybePostfixModifierPosition: o
|
|
1086
|
+
} = n(p);
|
|
1087
|
+
let Q = !!o, w = i(Q ? M.substring(0, o) : M);
|
|
1088
1088
|
if (!w) {
|
|
1089
|
-
if (!
|
|
1090
|
-
l =
|
|
1089
|
+
if (!Q) {
|
|
1090
|
+
l = p + (l.length > 0 ? " " + l : l);
|
|
1091
1091
|
continue;
|
|
1092
1092
|
}
|
|
1093
|
-
if (w =
|
|
1094
|
-
l =
|
|
1093
|
+
if (w = i(M), !w) {
|
|
1094
|
+
l = p + (l.length > 0 ? " " + l : l);
|
|
1095
1095
|
continue;
|
|
1096
1096
|
}
|
|
1097
|
-
|
|
1097
|
+
Q = !1;
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1099
|
+
const T = $r(v).join(":"), X = b ? T + Ut : T, D = X + w;
|
|
1100
1100
|
if (c.includes(D))
|
|
1101
1101
|
continue;
|
|
1102
1102
|
c.push(D);
|
|
1103
|
-
const ee = s(w,
|
|
1103
|
+
const ee = s(w, Q);
|
|
1104
1104
|
for (let R = 0; R < ee.length; ++R) {
|
|
1105
1105
|
const k = ee[R];
|
|
1106
1106
|
c.push(X + k);
|
|
1107
1107
|
}
|
|
1108
|
-
l =
|
|
1108
|
+
l = p + (l.length > 0 ? " " + l : l);
|
|
1109
1109
|
}
|
|
1110
1110
|
return l;
|
|
1111
1111
|
};
|
|
1112
1112
|
function aa() {
|
|
1113
|
-
let e = 0, a, n,
|
|
1113
|
+
let e = 0, a, n, i = "";
|
|
1114
1114
|
for (; e < arguments.length; )
|
|
1115
|
-
(a = arguments[e++]) && (n = Ft(a)) && (
|
|
1116
|
-
return
|
|
1115
|
+
(a = arguments[e++]) && (n = Ft(a)) && (i && (i += " "), i += n);
|
|
1116
|
+
return i;
|
|
1117
1117
|
}
|
|
1118
1118
|
const Ft = (e) => {
|
|
1119
1119
|
if (typeof e == "string")
|
|
1120
1120
|
return e;
|
|
1121
1121
|
let a, n = "";
|
|
1122
|
-
for (let
|
|
1123
|
-
e[
|
|
1122
|
+
for (let i = 0; i < e.length; i++)
|
|
1123
|
+
e[i] && (a = Ft(e[i])) && (n && (n += " "), n += a);
|
|
1124
1124
|
return n;
|
|
1125
1125
|
};
|
|
1126
1126
|
function na(e, ...a) {
|
|
1127
|
-
let n,
|
|
1128
|
-
function
|
|
1129
|
-
const
|
|
1130
|
-
return n = ea(
|
|
1127
|
+
let n, i, s, c = d;
|
|
1128
|
+
function d(f) {
|
|
1129
|
+
const p = a.reduce((v, b) => b(v), e());
|
|
1130
|
+
return n = ea(p), i = n.cache.get, s = n.cache.set, c = l, l(f);
|
|
1131
1131
|
}
|
|
1132
|
-
function l(
|
|
1133
|
-
const
|
|
1134
|
-
if (
|
|
1135
|
-
return
|
|
1136
|
-
const v = ra(
|
|
1137
|
-
return s(
|
|
1132
|
+
function l(f) {
|
|
1133
|
+
const p = i(f);
|
|
1134
|
+
if (p)
|
|
1135
|
+
return p;
|
|
1136
|
+
const v = ra(f, n);
|
|
1137
|
+
return s(f, v), v;
|
|
1138
1138
|
}
|
|
1139
1139
|
return function() {
|
|
1140
1140
|
return c(aa.apply(null, arguments));
|
|
@@ -1144,15 +1144,15 @@ const q = (e) => {
|
|
|
1144
1144
|
const a = (n) => n[e] || [];
|
|
1145
1145
|
return a.isThemeGetter = !0, a;
|
|
1146
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
|
-
const
|
|
1148
|
-
return
|
|
1147
|
+
const i = qt.exec(e);
|
|
1148
|
+
return i ? i[1] ? typeof a == "string" ? i[1] === a : a.has(i[1]) : n(i[2]) : !1;
|
|
1149
1149
|
}, ba = (e) => (
|
|
1150
1150
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1151
1151
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
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"),
|
|
1155
|
+
const e = q("colors"), a = q("spacing"), n = q("blur"), i = q("brightness"), s = q("borderColor"), c = q("borderRadius"), d = q("borderSpacing"), l = q("borderWidth"), f = q("contrast"), p = q("grayscale"), v = q("hueRotate"), b = q("invert"), M = q("gap"), o = q("gradientColorStops"), Q = q("gradientColorStopPositions"), w = q("inset"), T = q("margin"), X = q("opacity"), D = q("padding"), ee = q("saturate"), R = q("scale"), k = q("sepia"), P = q("skew"), Y = q("space"), ne = q("translate"), W = () => ["auto", "contain", "none"], oe = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", B, a], h = () => [B, a], re = () => ["", Ne, Ee], H = () => ["auto", qe, B], g = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["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: ":",
|
|
@@ -1163,25 +1163,25 @@ const q = (e) => {
|
|
|
1163
1163
|
brightness: Z(),
|
|
1164
1164
|
borderColor: [e],
|
|
1165
1165
|
borderRadius: ["none", "", "full", ze, B],
|
|
1166
|
-
borderSpacing:
|
|
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
|
|
@@ -1275,7 +1275,7 @@ const q = (e) => {
|
|
|
1275
1275
|
* @see https://tailwindcss.com/docs/object-position
|
|
1276
1276
|
*/
|
|
1277
1277
|
"object-position": [{
|
|
1278
|
-
object: [...
|
|
1278
|
+
object: [...g(), B]
|
|
1279
1279
|
}],
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Overflow
|
|
@@ -1535,21 +1535,21 @@ const q = (e) => {
|
|
|
1535
1535
|
* @see https://tailwindcss.com/docs/gap
|
|
1536
1536
|
*/
|
|
1537
1537
|
gap: [{
|
|
1538
|
-
gap: [
|
|
1538
|
+
gap: [M]
|
|
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": [M]
|
|
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": [M]
|
|
1553
1553
|
}],
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Justify Content
|
|
@@ -1683,70 +1683,70 @@ 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
|
|
1746
1746
|
* @see https://tailwindcss.com/docs/space
|
|
1747
1747
|
*/
|
|
1748
1748
|
"space-x": [{
|
|
1749
|
-
"space-x": [
|
|
1749
|
+
"space-x": [Y]
|
|
1750
1750
|
}],
|
|
1751
1751
|
/**
|
|
1752
1752
|
* Space Between X Reverse
|
|
@@ -1758,7 +1758,7 @@ const q = (e) => {
|
|
|
1758
1758
|
* @see https://tailwindcss.com/docs/space
|
|
1759
1759
|
*/
|
|
1760
1760
|
"space-y": [{
|
|
1761
|
-
"space-y": [
|
|
1761
|
+
"space-y": [Y]
|
|
1762
1762
|
}],
|
|
1763
1763
|
/**
|
|
1764
1764
|
* Space Between Y Reverse
|
|
@@ -1967,7 +1967,7 @@ const q = (e) => {
|
|
|
1967
1967
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1968
1968
|
*/
|
|
1969
1969
|
"text-decoration-style": [{
|
|
1970
|
-
decoration: [...
|
|
1970
|
+
decoration: [...V(), "wavy"]
|
|
1971
1971
|
}],
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Text Decoration Thickness
|
|
@@ -2012,7 +2012,7 @@ 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
|
|
@@ -2084,7 +2084,7 @@ const q = (e) => {
|
|
|
2084
2084
|
* @see https://tailwindcss.com/docs/background-position
|
|
2085
2085
|
*/
|
|
2086
2086
|
"bg-position": [{
|
|
2087
|
-
bg: [...
|
|
2087
|
+
bg: [...g(), ga]
|
|
2088
2088
|
}],
|
|
2089
2089
|
/**
|
|
2090
2090
|
* Background Repeat
|
|
@@ -2123,42 +2123,42 @@ const q = (e) => {
|
|
|
2123
2123
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2124
2124
|
*/
|
|
2125
2125
|
"gradient-from-pos": [{
|
|
2126
|
-
from: [
|
|
2126
|
+
from: [Q]
|
|
2127
2127
|
}],
|
|
2128
2128
|
/**
|
|
2129
2129
|
* Gradient Color Stops Via Position
|
|
2130
2130
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2131
2131
|
*/
|
|
2132
2132
|
"gradient-via-pos": [{
|
|
2133
|
-
via: [
|
|
2133
|
+
via: [Q]
|
|
2134
2134
|
}],
|
|
2135
2135
|
/**
|
|
2136
2136
|
* Gradient Color Stops To Position
|
|
2137
2137
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2138
2138
|
*/
|
|
2139
2139
|
"gradient-to-pos": [{
|
|
2140
|
-
to: [
|
|
2140
|
+
to: [Q]
|
|
2141
2141
|
}],
|
|
2142
2142
|
/**
|
|
2143
2143
|
* Gradient Color Stops From
|
|
2144
2144
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2145
2145
|
*/
|
|
2146
2146
|
"gradient-from": [{
|
|
2147
|
-
from: [
|
|
2147
|
+
from: [o]
|
|
2148
2148
|
}],
|
|
2149
2149
|
/**
|
|
2150
2150
|
* Gradient Color Stops Via
|
|
2151
2151
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2152
2152
|
*/
|
|
2153
2153
|
"gradient-via": [{
|
|
2154
|
-
via: [
|
|
2154
|
+
via: [o]
|
|
2155
2155
|
}],
|
|
2156
2156
|
/**
|
|
2157
2157
|
* Gradient Color Stops To
|
|
2158
2158
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2159
2159
|
*/
|
|
2160
2160
|
"gradient-to": [{
|
|
2161
|
-
to: [
|
|
2161
|
+
to: [o]
|
|
2162
2162
|
}],
|
|
2163
2163
|
// Borders
|
|
2164
2164
|
/**
|
|
@@ -2341,7 +2341,7 @@ const q = (e) => {
|
|
|
2341
2341
|
* @see https://tailwindcss.com/docs/border-style
|
|
2342
2342
|
*/
|
|
2343
2343
|
"border-style": [{
|
|
2344
|
-
border: [...
|
|
2344
|
+
border: [...V(), "hidden"]
|
|
2345
2345
|
}],
|
|
2346
2346
|
/**
|
|
2347
2347
|
* Divide Width X
|
|
@@ -2379,7 +2379,7 @@ const q = (e) => {
|
|
|
2379
2379
|
* @see https://tailwindcss.com/docs/divide-style
|
|
2380
2380
|
*/
|
|
2381
2381
|
"divide-style": [{
|
|
2382
|
-
divide:
|
|
2382
|
+
divide: V()
|
|
2383
2383
|
}],
|
|
2384
2384
|
/**
|
|
2385
2385
|
* Border Color
|
|
@@ -2456,7 +2456,7 @@ const q = (e) => {
|
|
|
2456
2456
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2457
2457
|
*/
|
|
2458
2458
|
"outline-style": [{
|
|
2459
|
-
outline: ["", ...
|
|
2459
|
+
outline: ["", ...V()]
|
|
2460
2460
|
}],
|
|
2461
2461
|
/**
|
|
2462
2462
|
* Outline Offset
|
|
@@ -2576,14 +2576,14 @@ const q = (e) => {
|
|
|
2576
2576
|
* @see https://tailwindcss.com/docs/brightness
|
|
2577
2577
|
*/
|
|
2578
2578
|
brightness: [{
|
|
2579
|
-
brightness: [
|
|
2579
|
+
brightness: [i]
|
|
2580
2580
|
}],
|
|
2581
2581
|
/**
|
|
2582
2582
|
* Contrast
|
|
2583
2583
|
* @see https://tailwindcss.com/docs/contrast
|
|
2584
2584
|
*/
|
|
2585
2585
|
contrast: [{
|
|
2586
|
-
contrast: [
|
|
2586
|
+
contrast: [f]
|
|
2587
2587
|
}],
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Drop Shadow
|
|
@@ -2597,7 +2597,7 @@ const q = (e) => {
|
|
|
2597
2597
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2598
2598
|
*/
|
|
2599
2599
|
grayscale: [{
|
|
2600
|
-
grayscale: [
|
|
2600
|
+
grayscale: [p]
|
|
2601
2601
|
}],
|
|
2602
2602
|
/**
|
|
2603
2603
|
* Hue Rotate
|
|
@@ -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
|
|
@@ -2647,21 +2647,21 @@ const q = (e) => {
|
|
|
2647
2647
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2648
2648
|
*/
|
|
2649
2649
|
"backdrop-brightness": [{
|
|
2650
|
-
"backdrop-brightness": [
|
|
2650
|
+
"backdrop-brightness": [i]
|
|
2651
2651
|
}],
|
|
2652
2652
|
/**
|
|
2653
2653
|
* Backdrop Contrast
|
|
2654
2654
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2655
2655
|
*/
|
|
2656
2656
|
"backdrop-contrast": [{
|
|
2657
|
-
"backdrop-contrast": [
|
|
2657
|
+
"backdrop-contrast": [f]
|
|
2658
2658
|
}],
|
|
2659
2659
|
/**
|
|
2660
2660
|
* Backdrop Grayscale
|
|
2661
2661
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2662
2662
|
*/
|
|
2663
2663
|
"backdrop-grayscale": [{
|
|
2664
|
-
"backdrop-grayscale": [
|
|
2664
|
+
"backdrop-grayscale": [p]
|
|
2665
2665
|
}],
|
|
2666
2666
|
/**
|
|
2667
2667
|
* Backdrop Hue Rotate
|
|
@@ -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
|
|
@@ -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
|
|
@@ -3788,31 +3788,31 @@ 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, [
|
|
3791
|
+
const { client: a, config: n } = e, [i, s] = Ae([]), [c, d] = Ae(""), [l, f] = Ae(!1), [p, v] = Ae(n.defaultVariant || "ANALYST"), [b, M] = Ae({
|
|
3792
3792
|
vertical: "SOFTWARE_DEV",
|
|
3793
3793
|
focus: "DISCOVERY",
|
|
3794
3794
|
data: n.initialData || null
|
|
3795
|
-
}), [
|
|
3796
|
-
(R) => R.vertical ===
|
|
3797
|
-
), [
|
|
3795
|
+
}), [o, Q] = Ae(""), w = It(() => Lt.filter(
|
|
3796
|
+
(R) => R.vertical === b.vertical && R.variant === p
|
|
3797
|
+
), [b.vertical, p]), T = ct((R) => {
|
|
3798
3798
|
const k = Lt.find((P) => P.id === R);
|
|
3799
3799
|
if (k) {
|
|
3800
|
-
|
|
3800
|
+
Q(R), d(k.prompt || "");
|
|
3801
3801
|
let P = k.data || null;
|
|
3802
3802
|
if (P && typeof P == "string")
|
|
3803
3803
|
try {
|
|
3804
|
-
const
|
|
3805
|
-
P = JSON.stringify(
|
|
3804
|
+
const Y = JSON.parse(P);
|
|
3805
|
+
P = JSON.stringify(Y, null, 2);
|
|
3806
3806
|
} catch {
|
|
3807
3807
|
}
|
|
3808
3808
|
else P && typeof P == "object" && (P = JSON.stringify(P, null, 2));
|
|
3809
|
-
|
|
3810
|
-
...
|
|
3811
|
-
focus: k.focus ||
|
|
3809
|
+
M((Y) => ({
|
|
3810
|
+
...Y,
|
|
3811
|
+
focus: k.focus || Y.focus,
|
|
3812
3812
|
data: P
|
|
3813
3813
|
}));
|
|
3814
3814
|
} else
|
|
3815
|
-
|
|
3815
|
+
Q(""), M((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]);
|
|
@@ -3827,10 +3827,10 @@ const Lt = [
|
|
|
3827
3827
|
}
|
|
3828
3828
|
}
|
|
3829
3829
|
}, [n.apiKey, n.persist]), Ie(() => {
|
|
3830
|
-
n.persist &&
|
|
3831
|
-
}, [
|
|
3830
|
+
n.persist && i.length > 0 && localStorage.setItem(`eva_agent_chat_${n.apiKey}`, JSON.stringify(i));
|
|
3831
|
+
}, [i, n.apiKey, n.persist]);
|
|
3832
3832
|
const D = ct((R) => {
|
|
3833
|
-
|
|
3833
|
+
M((k) => ({ ...k, ...R })), R.vertical && Q("");
|
|
3834
3834
|
}, []), ee = ct(async (R) => {
|
|
3835
3835
|
const k = R || c;
|
|
3836
3836
|
if (!k.trim() || !a || l) return;
|
|
@@ -3839,36 +3839,36 @@ const Lt = [
|
|
|
3839
3839
|
content: k,
|
|
3840
3840
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
3841
3841
|
};
|
|
3842
|
-
s((
|
|
3842
|
+
s((Y) => [...Y, P]), R || d(""), f(!0);
|
|
3843
3843
|
try {
|
|
3844
|
-
const
|
|
3844
|
+
const Y = {
|
|
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
|
-
let ne =
|
|
3851
|
+
let ne = p;
|
|
3852
3852
|
const W = k.toLowerCase();
|
|
3853
3853
|
W.includes("security") || W.includes("threat") || W.includes("risk") ? ne = "SENTINEL" : W.includes("blueprint") || W.includes("architecture") || W.includes("code") ? ne = "ARCHITECT" : (W.includes("roadmap") || W.includes("strategy") || W.includes("future")) && (ne = "STRATEGIST");
|
|
3854
|
-
const oe = await a.query(ne,
|
|
3854
|
+
const oe = await a.query(ne, Y);
|
|
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,
|
|
@@ -3880,36 +3880,36 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3880
3880
|
s((H) => [...H, re]);
|
|
3881
3881
|
} else
|
|
3882
3882
|
ut.error("Neural synthesis failed. Please check payload integrity.");
|
|
3883
|
-
} catch (
|
|
3884
|
-
ut.error(`API Error: ${
|
|
3883
|
+
} catch (Y) {
|
|
3884
|
+
ut.error(`API Error: ${Y.message || "Failed to reach EvaFusion"}`);
|
|
3885
3885
|
} finally {
|
|
3886
|
-
|
|
3886
|
+
f(!1);
|
|
3887
3887
|
}
|
|
3888
|
-
}, [c, a, l,
|
|
3888
|
+
}, [c, a, l, p, b]);
|
|
3889
3889
|
return {
|
|
3890
|
-
messages:
|
|
3890
|
+
messages: i,
|
|
3891
3891
|
input: c,
|
|
3892
|
-
setInput:
|
|
3892
|
+
setInput: d,
|
|
3893
3893
|
isProcessing: l,
|
|
3894
|
-
activeVariant:
|
|
3894
|
+
activeVariant: p,
|
|
3895
3895
|
setActiveVariant: v,
|
|
3896
3896
|
handleSend: ee,
|
|
3897
|
-
payloadConfig:
|
|
3897
|
+
payloadConfig: b,
|
|
3898
3898
|
updatePayloadConfig: D,
|
|
3899
3899
|
samples: w.map((R) => ({ ...R, isDataDriven: !!R.data })),
|
|
3900
|
-
selectedSampleId:
|
|
3901
|
-
applySample:
|
|
3900
|
+
selectedSampleId: o,
|
|
3901
|
+
applySample: T,
|
|
3902
3902
|
clearChat: X,
|
|
3903
3903
|
isAuthorized: !!a
|
|
3904
3904
|
};
|
|
3905
3905
|
}, Ct = ({ chart: e }) => {
|
|
3906
|
-
const a = St(null), [n,
|
|
3906
|
+
const a = St(null), [n, i] = Ae(null), [s, c] = Ae(!1);
|
|
3907
3907
|
return Ie(() => {
|
|
3908
|
-
const
|
|
3909
|
-
return
|
|
3908
|
+
const d = document.createElement("style");
|
|
3909
|
+
return d.id = "eva-hide-mermaid-errors", d.innerHTML = `
|
|
3910
3910
|
.mermaidTip, #dmermaid, [id^="dmermaid"], .mermaid-error { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
|
|
3911
3911
|
#mermaid-error-container { display: none !important; }
|
|
3912
|
-
`, document.head.appendChild(
|
|
3912
|
+
`, document.head.appendChild(d), () => {
|
|
3913
3913
|
var l;
|
|
3914
3914
|
(l = document.getElementById("eva-hide-mermaid-errors")) == null || l.remove();
|
|
3915
3915
|
};
|
|
@@ -3918,8 +3918,8 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3918
3918
|
c(!0);
|
|
3919
3919
|
return;
|
|
3920
3920
|
}
|
|
3921
|
-
const
|
|
3922
|
-
|
|
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
3923
|
window.__EVA_MERMAID__ = window.mermaid, window.__EVA_MERMAID__.initialize({
|
|
3924
3924
|
startOnLoad: !1,
|
|
3925
3925
|
theme: "dark",
|
|
@@ -3933,27 +3933,34 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3933
3933
|
tertiaryColor: "#1e1e38"
|
|
3934
3934
|
}
|
|
3935
3935
|
}), c(!0);
|
|
3936
|
-
}, document.body.appendChild(
|
|
3936
|
+
}, document.body.appendChild(d);
|
|
3937
3937
|
}, []), Ie(() => {
|
|
3938
|
+
var d;
|
|
3938
3939
|
if (s && a.current) {
|
|
3939
|
-
const
|
|
3940
|
-
let
|
|
3940
|
+
const l = window.__EVA_MERMAID__, f = `mermaid-render-${Math.random().toString(36).slice(2, 11)}`;
|
|
3941
|
+
let p = e.trim().replace(/\\n/g, `
|
|
3941
3942
|
`).replace(/^`{3}mermaid\n?/, "").replace(/\n?`{3}$/, "").trim();
|
|
3942
|
-
const
|
|
3943
|
-
|
|
3944
|
-
|
|
3943
|
+
const v = /(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)[\s\S]+/i, b = p.match(v);
|
|
3944
|
+
b && (p = b[0].trim());
|
|
3945
|
+
let M = p.split(`
|
|
3946
|
+
`);
|
|
3947
|
+
if (M.length > 0) {
|
|
3948
|
+
const o = M[0].toLowerCase();
|
|
3949
|
+
if (o.startsWith("graph ") || o.startsWith("flowchart ")) {
|
|
3950
|
+
const Q = ((d = o.match(/\s(td|lr|bt|rl)/i)) == null ? void 0 : d[0]) || " TD";
|
|
3951
|
+
M[0] = `flowchart${Q}`, p = M.join(`
|
|
3945
3952
|
`);
|
|
3946
|
-
|
|
3947
|
-
`));
|
|
3953
|
+
}
|
|
3948
3954
|
}
|
|
3955
|
+
p = p.replace(/;/g, "");
|
|
3949
3956
|
try {
|
|
3950
|
-
|
|
3951
|
-
a.current && (a.current.innerHTML =
|
|
3952
|
-
}).catch((
|
|
3953
|
-
console.error("Mermaid Render Error:",
|
|
3957
|
+
l.render(f, p).then((o) => {
|
|
3958
|
+
a.current && (a.current.innerHTML = o.svg);
|
|
3959
|
+
}).catch((o) => {
|
|
3960
|
+
console.error("Mermaid Render Error:", o), i("Neural Blueprint Syntax Error");
|
|
3954
3961
|
});
|
|
3955
3962
|
} catch {
|
|
3956
|
-
|
|
3963
|
+
i("Neural Blueprint Sync Failed");
|
|
3957
3964
|
}
|
|
3958
3965
|
}
|
|
3959
3966
|
}, [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" }) });
|
|
@@ -3963,7 +3970,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3963
3970
|
/* @__PURE__ */ r.jsx(ar, { size: 14 }),
|
|
3964
3971
|
/* @__PURE__ */ r.jsx("h5", { className: "text-[10px] font-black uppercase tracking-widest", children: "Maestro Orchestration Board" })
|
|
3965
3972
|
] }),
|
|
3966
|
-
/* @__PURE__ */ r.jsx("div", { className: "grid gap-2", children: e.map((n,
|
|
3973
|
+
/* @__PURE__ */ r.jsx("div", { className: "grid gap-2", children: e.map((n, i) => /* @__PURE__ */ r.jsxs("div", { className: "bg-white/5 border border-white/10 p-3 rounded-xl flex items-center justify-between group hover:bg-white/[0.08] transition-all", children: [
|
|
3967
3974
|
/* @__PURE__ */ r.jsxs("div", { className: "space-y-1", children: [
|
|
3968
3975
|
/* @__PURE__ */ r.jsx("div", { className: "text-[11px] font-bold text-white group-hover:text-amber-500 transition-colors", children: n.task }),
|
|
3969
3976
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -3984,14 +3991,14 @@ ${b.diagram}`)) : te = String(b);
|
|
|
3984
3991
|
" pts"
|
|
3985
3992
|
] })
|
|
3986
3993
|
] })
|
|
3987
|
-
] },
|
|
3994
|
+
] }, i)) })
|
|
3988
3995
|
] }),
|
|
3989
3996
|
a && a.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: "space-y-3", children: [
|
|
3990
3997
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 text-indigo-400", children: [
|
|
3991
3998
|
/* @__PURE__ */ r.jsx(nr, { size: 14 }),
|
|
3992
3999
|
/* @__PURE__ */ r.jsx("h5", { className: "text-[10px] font-black uppercase tracking-widest", children: "Team Resonance Map" })
|
|
3993
4000
|
] }),
|
|
3994
|
-
/* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-2 gap-2", children: a.map((n,
|
|
4001
|
+
/* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-2 gap-2", children: a.map((n, i) => {
|
|
3995
4002
|
var s;
|
|
3996
4003
|
return /* @__PURE__ */ r.jsxs("div", { className: "bg-white/5 border border-white/5 p-3 rounded-xl space-y-2", children: [
|
|
3997
4004
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -4001,8 +4008,8 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4001
4008
|
/* @__PURE__ */ r.jsx("div", { className: "text-[8px] text-slate-500 uppercase font-black", children: n.role })
|
|
4002
4009
|
] })
|
|
4003
4010
|
] }),
|
|
4004
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex flex-wrap gap-1", children: (s = n.skills) == null ? void 0 : s.slice(0, 2).map((c,
|
|
4005
|
-
] },
|
|
4011
|
+
/* @__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)) })
|
|
4012
|
+
] }, i);
|
|
4006
4013
|
}) })
|
|
4007
4014
|
] })
|
|
4008
4015
|
] }), Bt = ({ data: e }) => {
|
|
@@ -4010,14 +4017,14 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4010
4017
|
const a = Object.keys(e[0] || {}).filter((n) => n !== "id");
|
|
4011
4018
|
return /* @__PURE__ */ r.jsx("div", { className: "w-full overflow-hidden rounded-2xl border border-white/5 bg-slate-900/40 my-4", children: /* @__PURE__ */ r.jsx("div", { className: "overflow-x-auto no-scrollbar", children: /* @__PURE__ */ r.jsxs("table", { className: "w-full text-left border-collapse", children: [
|
|
4012
4019
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsx("tr", { className: "bg-white/5 border-b border-white/5", children: a.map((n) => /* @__PURE__ */ r.jsx("th", { className: "p-3 text-[8px] font-black text-slate-500 uppercase tracking-widest", children: n }, n)) }) }),
|
|
4013
|
-
/* @__PURE__ */ r.jsx("tbody", { className: "divide-y divide-white/5", children: e.map((n,
|
|
4020
|
+
/* @__PURE__ */ r.jsx("tbody", { className: "divide-y divide-white/5", children: e.map((n, i) => /* @__PURE__ */ r.jsx("tr", { className: "hover:bg-white/[0.02] transition-colors", children: a.map((s) => /* @__PURE__ */ r.jsx("td", { className: "p-3 text-[10px] font-medium text-slate-300", children: s.toLowerCase() === "status" ? /* @__PURE__ */ r.jsx("span", { className: he(
|
|
4014
4021
|
"px-1.5 py-0.5 rounded-full text-[8px] font-black uppercase tracking-widest",
|
|
4015
4022
|
n[s] === "Nominal" ? "bg-emerald-500/20 text-emerald-500" : "bg-amber-500/20 text-amber-500"
|
|
4016
|
-
), children: n[s] }) : n[s] }, s)) },
|
|
4023
|
+
), children: n[s] }) : n[s] }, s)) }, i)) })
|
|
4017
4024
|
] }) }) });
|
|
4018
4025
|
}, Pa = ({ usage: e, rawPayload: a }) => {
|
|
4019
|
-
const [n,
|
|
4020
|
-
navigator.clipboard.writeText(JSON.stringify(a, null, 2)),
|
|
4026
|
+
const [n, i] = Ae(!1), s = () => {
|
|
4027
|
+
navigator.clipboard.writeText(JSON.stringify(a, null, 2)), i(!0), ut.success("Neural payload copied to clipboard"), setTimeout(() => i(!1), 2e3);
|
|
4021
4028
|
};
|
|
4022
4029
|
return /* @__PURE__ */ r.jsxs("div", { className: "mt-8 pt-6 border-t border-white/5 flex items-center justify-between", children: [
|
|
4023
4030
|
e ? /* @__PURE__ */ r.jsxs("div", { className: "flex gap-4", children: [
|
|
@@ -4043,29 +4050,29 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4043
4050
|
)
|
|
4044
4051
|
] });
|
|
4045
4052
|
}, Na = ({ onClose: e, onMinimize: a }) => {
|
|
4046
|
-
const n = Gt(Tt), [
|
|
4053
|
+
const n = Gt(Tt), [i, s] = Ae(!1), [c, d] = Ae(!1), l = St(null);
|
|
4047
4054
|
if (!n) return null;
|
|
4048
4055
|
const {
|
|
4049
|
-
messages:
|
|
4050
|
-
input:
|
|
4056
|
+
messages: f,
|
|
4057
|
+
input: p,
|
|
4051
4058
|
setInput: v,
|
|
4052
|
-
isProcessing:
|
|
4053
|
-
activeVariant:
|
|
4054
|
-
setActiveVariant:
|
|
4055
|
-
handleSend:
|
|
4059
|
+
isProcessing: b,
|
|
4060
|
+
activeVariant: M,
|
|
4061
|
+
setActiveVariant: o,
|
|
4062
|
+
handleSend: Q,
|
|
4056
4063
|
payloadConfig: w,
|
|
4057
|
-
updatePayloadConfig:
|
|
4064
|
+
updatePayloadConfig: T,
|
|
4058
4065
|
samples: X,
|
|
4059
4066
|
selectedSampleId: D,
|
|
4060
4067
|
applySample: ee,
|
|
4061
4068
|
clearChat: R,
|
|
4062
4069
|
isAuthorized: k
|
|
4063
|
-
} = Ba(), [P,
|
|
4070
|
+
} = Ba(), [P, Y] = Ae(w), [ne, W] = Ae(M);
|
|
4064
4071
|
Ie(() => {
|
|
4065
|
-
|
|
4066
|
-
}, [
|
|
4072
|
+
i && (Y(w), W(M));
|
|
4073
|
+
}, [i]);
|
|
4067
4074
|
const oe = () => {
|
|
4068
|
-
|
|
4075
|
+
o(ne), T(P), s(!1);
|
|
4069
4076
|
}, te = [
|
|
4070
4077
|
{ id: "SOFTWARE_DEV", name: "Software & Cloud" },
|
|
4071
4078
|
{ id: "FINANCE", name: "Finance & Quants" },
|
|
@@ -4073,33 +4080,33 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4073
4080
|
{ id: "MANUFACTURING", name: "Industrial & MFG" },
|
|
4074
4081
|
{ id: "REAL_ESTATE", name: "Real Estate & Const." },
|
|
4075
4082
|
{ id: "RETAIL", name: "Retail & Commerce" }
|
|
4076
|
-
],
|
|
4077
|
-
var
|
|
4078
|
-
(
|
|
4083
|
+
], h = () => {
|
|
4084
|
+
var g;
|
|
4085
|
+
(g = l.current) == null || g.scrollIntoView({ behavior: "smooth" });
|
|
4079
4086
|
};
|
|
4080
4087
|
Ie(() => {
|
|
4081
|
-
|
|
4082
|
-
}, [
|
|
4083
|
-
const re = (
|
|
4084
|
-
const { content:
|
|
4085
|
-
`).map((
|
|
4086
|
-
const N =
|
|
4087
|
-
if (!N) return /* @__PURE__ */ r.jsx("div", { className: "h-2" },
|
|
4088
|
+
h();
|
|
4089
|
+
}, [f, b]);
|
|
4090
|
+
const re = (g) => g.isDataDriven ? " [DATA]" : " [PROMPT]", H = ({ msg: g }) => {
|
|
4091
|
+
const { content: V, rawPayload: S, usage: fe } = g, C = V.split(/(?=### )/g), J = (Z) => Z.includes("```mermaid") ? Z.split(/```mermaid([\s\S]*?)```/).map((O, N) => N % 2 === 1 ? /* @__PURE__ */ r.jsx(Ct, { chart: O.trim() }, N) : /* @__PURE__ */ r.jsx("div", { children: J(O) }, N)) : Z.split(`
|
|
4092
|
+
`).map((j, O) => {
|
|
4093
|
+
const N = j.trim();
|
|
4094
|
+
if (!N) return /* @__PURE__ */ r.jsx("div", { className: "h-2" }, O);
|
|
4088
4095
|
if (N.startsWith("- ") || N.startsWith("* ") || N.match(/^\d+\. /))
|
|
4089
4096
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex gap-2 items-start mb-1.5 pl-2 group", children: [
|
|
4090
4097
|
/* @__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" }),
|
|
4091
4098
|
/* @__PURE__ */ r.jsx("span", { className: "text-[11px] leading-relaxed text-slate-300", children: N.replace(/^- |\* |\d+\. /, "") })
|
|
4092
|
-
] },
|
|
4099
|
+
] }, O);
|
|
4093
4100
|
const K = N.split(/(\*\*.*?\*\*)/g);
|
|
4094
4101
|
return /* @__PURE__ */ r.jsx("p", { className: "mb-2 leading-relaxed text-slate-300", children: K.map(
|
|
4095
4102
|
(_, L) => _.startsWith("**") && _.endsWith("**") ? /* @__PURE__ */ r.jsx("strong", { className: "text-amber-500/90 font-black", children: _.slice(2, -2) }, L) : _
|
|
4096
|
-
) },
|
|
4103
|
+
) }, O);
|
|
4097
4104
|
});
|
|
4098
4105
|
return /* @__PURE__ */ r.jsxs("div", { className: "space-y-4", children: [
|
|
4099
|
-
C.map((Z,
|
|
4106
|
+
C.map((Z, j) => {
|
|
4100
4107
|
if (Z.startsWith("### ")) {
|
|
4101
|
-
const
|
|
4102
|
-
`), N =
|
|
4108
|
+
const O = Z.split(`
|
|
4109
|
+
`), N = O[0].replace("### ", ""), K = O.slice(1).join(`
|
|
4103
4110
|
`), _ = N.toLowerCase().includes("blueprint"), L = /^\s*(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)/i.test(K.trim());
|
|
4104
4111
|
return /* @__PURE__ */ r.jsxs("div", { className: he(
|
|
4105
4112
|
"group relative",
|
|
@@ -4118,9 +4125,9 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4118
4125
|
"font-sans",
|
|
4119
4126
|
_ ? "font-mono text-[10px] text-amber-500/70" : ""
|
|
4120
4127
|
), children: L ? /* @__PURE__ */ r.jsx(Ct, { chart: K.trim() }) : J(K) })
|
|
4121
|
-
] },
|
|
4128
|
+
] }, j);
|
|
4122
4129
|
}
|
|
4123
|
-
return /* @__PURE__ */ r.jsx("div", { children: J(Z) },
|
|
4130
|
+
return /* @__PURE__ */ r.jsx("div", { children: J(Z) }, j);
|
|
4124
4131
|
}),
|
|
4125
4132
|
S && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4126
4133
|
S.tasks && /* @__PURE__ */ r.jsx(Da, { tasks: S.tasks, team: S.team }),
|
|
@@ -4152,7 +4159,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4152
4159
|
transition: { type: "spring", damping: 25, stiffness: 200 },
|
|
4153
4160
|
className: he(
|
|
4154
4161
|
"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",
|
|
4155
|
-
|
|
4162
|
+
b ? "eva-glow-thinking" : "eva-glow-listening"
|
|
4156
4163
|
),
|
|
4157
4164
|
children: [
|
|
4158
4165
|
/* @__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: [
|
|
@@ -4185,10 +4192,10 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4185
4192
|
/* @__PURE__ */ r.jsx(
|
|
4186
4193
|
"button",
|
|
4187
4194
|
{
|
|
4188
|
-
onClick: () => s(!
|
|
4195
|
+
onClick: () => s(!i),
|
|
4189
4196
|
className: he(
|
|
4190
4197
|
"p-2 rounded-lg transition-all",
|
|
4191
|
-
|
|
4198
|
+
i ? "bg-amber-500/20 text-amber-500" : "text-slate-400 hover:text-white hover:bg-white/5"
|
|
4192
4199
|
),
|
|
4193
4200
|
children: /* @__PURE__ */ r.jsx(Ar, { size: 16 })
|
|
4194
4201
|
}
|
|
@@ -4211,23 +4218,23 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4211
4218
|
)
|
|
4212
4219
|
] })
|
|
4213
4220
|
] }),
|
|
4214
|
-
/* @__PURE__ */ r.jsx("div", { className: "px-6 py-2 flex items-center gap-2 overflow-x-auto eva-agent-scrollbar bg-black/20 border-b border-white/5 no-scrollbar", children: ["ARCHITECT", "STRATEGIST", "MAESTRO", "ANALYST", "PULSE", "RECRUITER", "SENTINEL", "COMPLIANCE"].map((
|
|
4221
|
+
/* @__PURE__ */ r.jsx("div", { className: "px-6 py-2 flex items-center gap-2 overflow-x-auto eva-agent-scrollbar bg-black/20 border-b border-white/5 no-scrollbar", children: ["ARCHITECT", "STRATEGIST", "MAESTRO", "ANALYST", "PULSE", "RECRUITER", "SENTINEL", "COMPLIANCE"].map((g) => /* @__PURE__ */ r.jsx(
|
|
4215
4222
|
"button",
|
|
4216
4223
|
{
|
|
4217
|
-
onClick: () =>
|
|
4224
|
+
onClick: () => o(g),
|
|
4218
4225
|
className: he(
|
|
4219
4226
|
"px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest transition-all whitespace-nowrap border",
|
|
4220
|
-
|
|
4227
|
+
M === g ? "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"
|
|
4221
4228
|
),
|
|
4222
4229
|
style: {
|
|
4223
|
-
backgroundColor:
|
|
4224
|
-
color:
|
|
4230
|
+
backgroundColor: M === g ? "#d4af37" : "transparent",
|
|
4231
|
+
color: M === g ? "black" : void 0
|
|
4225
4232
|
},
|
|
4226
|
-
children:
|
|
4233
|
+
children: g
|
|
4227
4234
|
},
|
|
4228
|
-
|
|
4235
|
+
g
|
|
4229
4236
|
)) }),
|
|
4230
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex-1 overflow-y-auto eva-agent-scrollbar p-6 space-y-6 relative", children: k ?
|
|
4237
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex-1 overflow-y-auto eva-agent-scrollbar p-6 space-y-6 relative", children: k ? f.length === 0 ? /* @__PURE__ */ r.jsxs("div", { className: "h-full flex flex-col items-center justify-center text-center p-8 space-y-8", children: [
|
|
4231
4238
|
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
4232
4239
|
/* @__PURE__ */ r.jsx("div", { className: "absolute inset-0 bg-amber-500/5 rounded-full blur-3xl animate-pulse" }),
|
|
4233
4240
|
/* @__PURE__ */ r.jsx(yt, { size: 64, className: "text-amber-500/20 relative z-10" })
|
|
@@ -4240,34 +4247,34 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4240
4247
|
"Analyze data for anomalies",
|
|
4241
4248
|
"Synthesize architecture blueprint",
|
|
4242
4249
|
"Forecast operational trajectory"
|
|
4243
|
-
].map((
|
|
4250
|
+
].map((g, V) => /* @__PURE__ */ r.jsx(
|
|
4244
4251
|
"button",
|
|
4245
4252
|
{
|
|
4246
|
-
onClick: () =>
|
|
4253
|
+
onClick: () => Q(g),
|
|
4247
4254
|
className: "p-3 rounded-xl bg-white/5 border border-white/5 text-[9px] font-black uppercase tracking-widest text-slate-400 hover:text-amber-500 hover:bg-amber-500/5 hover:border-amber-500/20 transition-all text-left",
|
|
4248
|
-
children:
|
|
4255
|
+
children: g
|
|
4249
4256
|
},
|
|
4250
|
-
|
|
4257
|
+
V
|
|
4251
4258
|
)) })
|
|
4252
4259
|
] }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4253
|
-
|
|
4260
|
+
f.map((g, V) => /* @__PURE__ */ r.jsxs("div", { className: he(
|
|
4254
4261
|
"flex flex-col space-y-2",
|
|
4255
|
-
|
|
4262
|
+
g.role === "user" ? "items-end" : "items-start"
|
|
4256
4263
|
), children: [
|
|
4257
4264
|
/* @__PURE__ */ r.jsx(
|
|
4258
4265
|
"div",
|
|
4259
4266
|
{
|
|
4260
4267
|
className: he(
|
|
4261
4268
|
"max-w-[90%] px-5 py-4 rounded-3xl text-[11px] font-medium leading-relaxed whitespace-pre-wrap break-words shadow-xl",
|
|
4262
|
-
|
|
4269
|
+
g.role === "user" ? "bg-gradient-to-br from-amber-500 to-amber-600 text-white rounded-tr-none" : "bg-slate-900/80 text-indigo-100/90 border border-white/5 rounded-tl-none backdrop-blur-xl"
|
|
4263
4270
|
),
|
|
4264
|
-
style: { color:
|
|
4265
|
-
children:
|
|
4271
|
+
style: { color: g.role === "user" ? "white" : void 0 },
|
|
4272
|
+
children: g.role === "user" ? g.content : /* @__PURE__ */ r.jsx(H, { msg: g })
|
|
4266
4273
|
}
|
|
4267
4274
|
),
|
|
4268
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-[7px] font-black text-slate-500 uppercase tracking-widest px-2", children:
|
|
4269
|
-
] },
|
|
4270
|
-
|
|
4275
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-[7px] font-black text-slate-500 uppercase tracking-widest px-2", children: g.role === "user" ? "Direct Input" : `Eva ${g.variant || "Neural"}` })
|
|
4276
|
+
] }, V)),
|
|
4277
|
+
b && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center justify-center py-12 space-y-6", children: [
|
|
4271
4278
|
/* @__PURE__ */ r.jsxs("div", { className: "relative w-24 h-24", children: [
|
|
4272
4279
|
/* @__PURE__ */ r.jsx(
|
|
4273
4280
|
Ge.div,
|
|
@@ -4313,7 +4320,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4313
4320
|
/* @__PURE__ */ r.jsx("h4", { className: "text-sm font-black text-white uppercase tracking-widest", children: "Neural Link Restricted" }),
|
|
4314
4321
|
/* @__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." })
|
|
4315
4322
|
] }) }),
|
|
4316
|
-
/* @__PURE__ */ r.jsx(Dt, { children:
|
|
4323
|
+
/* @__PURE__ */ r.jsx(Dt, { children: i && /* @__PURE__ */ r.jsxs(
|
|
4317
4324
|
Ge.div,
|
|
4318
4325
|
{
|
|
4319
4326
|
initial: { y: "100%" },
|
|
@@ -4335,10 +4342,10 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4335
4342
|
"select",
|
|
4336
4343
|
{
|
|
4337
4344
|
value: ne,
|
|
4338
|
-
onChange: (
|
|
4345
|
+
onChange: (g) => W(g.target.value),
|
|
4339
4346
|
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",
|
|
4340
4347
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
4341
|
-
children: ["ARCHITECT", "STRATEGIST", "MAESTRO", "ANALYST", "PULSE", "RECRUITER", "SENTINEL", "COMPLIANCE"].map((
|
|
4348
|
+
children: ["ARCHITECT", "STRATEGIST", "MAESTRO", "ANALYST", "PULSE", "RECRUITER", "SENTINEL", "COMPLIANCE"].map((g) => /* @__PURE__ */ r.jsx("option", { value: g, style: { color: "white", backgroundColor: "#0a0a20" }, children: g }, g))
|
|
4342
4349
|
}
|
|
4343
4350
|
)
|
|
4344
4351
|
] }),
|
|
@@ -4349,10 +4356,10 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4349
4356
|
"select",
|
|
4350
4357
|
{
|
|
4351
4358
|
value: P.vertical,
|
|
4352
|
-
onChange: (
|
|
4359
|
+
onChange: (g) => Y((V) => ({ ...V, vertical: g.target.value })),
|
|
4353
4360
|
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",
|
|
4354
4361
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
4355
|
-
children: te.map((
|
|
4362
|
+
children: te.map((g) => /* @__PURE__ */ r.jsx("option", { value: g.id, style: { color: "white", backgroundColor: "#0a0a20" }, children: g.name }, g.id))
|
|
4356
4363
|
}
|
|
4357
4364
|
)
|
|
4358
4365
|
] }),
|
|
@@ -4362,7 +4369,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4362
4369
|
"select",
|
|
4363
4370
|
{
|
|
4364
4371
|
value: P.focus,
|
|
4365
|
-
onChange: (
|
|
4372
|
+
onChange: (g) => Y((V) => ({ ...V, focus: g.target.value })),
|
|
4366
4373
|
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",
|
|
4367
4374
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
4368
4375
|
children: [
|
|
@@ -4382,17 +4389,17 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4382
4389
|
"select",
|
|
4383
4390
|
{
|
|
4384
4391
|
value: D,
|
|
4385
|
-
onChange: (
|
|
4386
|
-
ee(
|
|
4392
|
+
onChange: (g) => {
|
|
4393
|
+
ee(g.target.value);
|
|
4387
4394
|
},
|
|
4388
4395
|
className: "w-full bg-[#0a0a20] border border-white/10 rounded-xl p-3 text-[10px] font-bold text-amber-500 outline-none focus:border-amber-500/40 transition-all appearance-none cursor-pointer",
|
|
4389
4396
|
style: { backgroundColor: "#0a0a20" },
|
|
4390
4397
|
children: [
|
|
4391
4398
|
/* @__PURE__ */ r.jsx("option", { value: "", style: { color: "#64748b", backgroundColor: "#0a0a20" }, children: "Manual Input (No Template)" }),
|
|
4392
|
-
X.map((
|
|
4393
|
-
|
|
4394
|
-
re(
|
|
4395
|
-
] },
|
|
4399
|
+
X.map((g) => /* @__PURE__ */ r.jsxs("option", { value: g.id, style: { color: "white", backgroundColor: "#0a0a20" }, children: [
|
|
4400
|
+
g.name,
|
|
4401
|
+
re(g)
|
|
4402
|
+
] }, g.id))
|
|
4396
4403
|
]
|
|
4397
4404
|
}
|
|
4398
4405
|
)
|
|
@@ -4403,8 +4410,8 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4403
4410
|
"textarea",
|
|
4404
4411
|
{
|
|
4405
4412
|
value: P.data ? typeof P.data == "string" ? P.data : JSON.stringify(P.data, null, 2) : "",
|
|
4406
|
-
onChange: (
|
|
4407
|
-
|
|
4413
|
+
onChange: (g) => {
|
|
4414
|
+
Y((V) => ({ ...V, data: g.target.value }));
|
|
4408
4415
|
},
|
|
4409
4416
|
placeholder: '[{"key": "value"}]',
|
|
4410
4417
|
className: "w-full bg-black/40 border border-white/10 rounded-xl p-4 text-[10px] font-mono text-indigo-200/60 outline-none h-32 resize-none focus:border-amber-500/40 transition-all"
|
|
@@ -4413,7 +4420,7 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4413
4420
|
] }),
|
|
4414
4421
|
/* @__PURE__ */ r.jsxs("div", { className: "space-y-2", children: [
|
|
4415
4422
|
/* @__PURE__ */ r.jsx("label", { className: "text-[8px] font-black text-slate-500 uppercase tracking-widest ml-1", children: "Current Neural Prompt (Preview)" }),
|
|
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:
|
|
4423
|
+
/* @__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: p || (D ? "Neural template active. Ready for synthesis." : "Type in chat to preview prompt...") })
|
|
4417
4424
|
] }),
|
|
4418
4425
|
/* @__PURE__ */ r.jsxs("div", { className: "pt-4 pb-8", children: [
|
|
4419
4426
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -4445,29 +4452,29 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4445
4452
|
/* @__PURE__ */ r.jsxs(
|
|
4446
4453
|
"form",
|
|
4447
4454
|
{
|
|
4448
|
-
onSubmit: (
|
|
4449
|
-
|
|
4455
|
+
onSubmit: (g) => {
|
|
4456
|
+
g.preventDefault(), Q();
|
|
4450
4457
|
},
|
|
4451
4458
|
className: "relative flex items-center gap-3 p-2 rounded-2xl bg-white/5 border border-white/10 group focus-within:border-amber-500/40 focus-within:shadow-[0_0_30px_rgba(212,175,55,0.1)] transition-all duration-500",
|
|
4452
4459
|
children: [
|
|
4453
4460
|
/* @__PURE__ */ r.jsx(
|
|
4454
4461
|
"textarea",
|
|
4455
4462
|
{
|
|
4456
|
-
value:
|
|
4457
|
-
onChange: (
|
|
4458
|
-
onKeyDown: (
|
|
4459
|
-
|
|
4463
|
+
value: p,
|
|
4464
|
+
onChange: (g) => v(g.target.value),
|
|
4465
|
+
onKeyDown: (g) => {
|
|
4466
|
+
g.key === "Enter" && !g.shiftKey && (g.preventDefault(), Q());
|
|
4460
4467
|
},
|
|
4461
4468
|
placeholder: "Invoke neural command...",
|
|
4462
4469
|
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",
|
|
4463
|
-
disabled:
|
|
4470
|
+
disabled: b || !k
|
|
4464
4471
|
}
|
|
4465
4472
|
),
|
|
4466
4473
|
/* @__PURE__ */ r.jsx(
|
|
4467
4474
|
"button",
|
|
4468
4475
|
{
|
|
4469
4476
|
type: "submit",
|
|
4470
|
-
disabled: !
|
|
4477
|
+
disabled: !p.trim() || b || !k,
|
|
4471
4478
|
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",
|
|
4472
4479
|
children: /* @__PURE__ */ r.jsx(fr, { size: 18, className: "text-white" })
|
|
4473
4480
|
}
|
|
@@ -4494,40 +4501,40 @@ ${b.diagram}`)) : te = String(b);
|
|
|
4494
4501
|
const {
|
|
4495
4502
|
apiKey: a,
|
|
4496
4503
|
baseUrl: n,
|
|
4497
|
-
environment:
|
|
4504
|
+
environment: i = "PROD",
|
|
4498
4505
|
persist: s = !0,
|
|
4499
4506
|
theme: c = "dark"
|
|
4500
|
-
} = e, [
|
|
4507
|
+
} = e, [d, l] = Ae(!1), [f, p] = Ae(!1), v = It(() => {
|
|
4501
4508
|
if (!a) return null;
|
|
4502
|
-
const
|
|
4509
|
+
const b = n || Ma[i];
|
|
4503
4510
|
return new rr({
|
|
4504
4511
|
apiKey: a,
|
|
4505
|
-
baseUrl:
|
|
4506
|
-
environment:
|
|
4512
|
+
baseUrl: b,
|
|
4513
|
+
environment: i
|
|
4507
4514
|
});
|
|
4508
|
-
}, [a, n,
|
|
4515
|
+
}, [a, n, i]);
|
|
4509
4516
|
return /* @__PURE__ */ r.jsx(Tt.Provider, { value: {
|
|
4510
4517
|
client: v,
|
|
4511
|
-
isOpen:
|
|
4518
|
+
isOpen: d,
|
|
4512
4519
|
setIsOpen: l,
|
|
4513
|
-
isMinimized:
|
|
4514
|
-
setIsMinimized:
|
|
4520
|
+
isMinimized: f,
|
|
4521
|
+
setIsMinimized: p,
|
|
4515
4522
|
config: e
|
|
4516
4523
|
}, children: /* @__PURE__ */ r.jsxs("div", { className: "eva-fusion-agent-root", children: [
|
|
4517
4524
|
/* @__PURE__ */ r.jsx(Yr, { position: "top-center", richColors: !0 }),
|
|
4518
|
-
/* @__PURE__ */ r.jsx(Dt, { children: (!
|
|
4525
|
+
/* @__PURE__ */ r.jsx(Dt, { children: (!d || f) && /* @__PURE__ */ r.jsx(
|
|
4519
4526
|
Vr,
|
|
4520
4527
|
{
|
|
4521
4528
|
onClick: () => {
|
|
4522
|
-
l(!0),
|
|
4529
|
+
l(!0), p(!1);
|
|
4523
4530
|
}
|
|
4524
4531
|
}
|
|
4525
4532
|
) }),
|
|
4526
|
-
/* @__PURE__ */ r.jsx(Dt, { children:
|
|
4533
|
+
/* @__PURE__ */ r.jsx(Dt, { children: d && !f && /* @__PURE__ */ r.jsx(
|
|
4527
4534
|
Na,
|
|
4528
4535
|
{
|
|
4529
4536
|
onClose: () => l(!1),
|
|
4530
|
-
onMinimize: () =>
|
|
4537
|
+
onMinimize: () => p(!0)
|
|
4531
4538
|
}
|
|
4532
4539
|
) })
|
|
4533
4540
|
] }) });
|