@factorialco/f0-react 2.61.3 → 2.61.5
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/{F0CanvasPanel-DXcmheE0.js → F0CanvasPanel-CC0-kGJd.js} +2237 -2231
- package/dist/ai.d.ts +5 -18
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +5 -5
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +5 -18
- package/dist/f0.js +6 -6
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/{useChatHistory-8YHb5Opl.js → useChatHistory-BjqR1tKf.js} +947 -977
- package/dist/{useDataCollectionSource-C-GEM2Yx.js → useDataCollectionSource-JnNUQWjt.js} +2 -2
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as ke } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { useInsertionEffect as
|
|
4
|
-
import { cb as
|
|
5
|
-
import { createPortal as
|
|
2
|
+
import * as An from "react";
|
|
3
|
+
import { useInsertionEffect as Hn, forwardRef as C, createElement as _e, useRef as $, useMemo as te, useEffect as K, useState as P, useLayoutEffect as Ot, useCallback as X, createContext as a1, useContext as Ge, useId as Zt } from "react";
|
|
4
|
+
import { cb as Bn, cc as $n, cd as In, ce as Pn, cf as Ut, cg as jn, ch as Dn, ci as _n, cj as On, ck as Zn, cl as zt, cm as Un, cn as zn, co as Gn, cp as Wn, cq as qn, cr as Xn, cs as Yn, ct as r1, cu as Kn, cv as Qn, cw as Jn, cx as eo, cy as to, cz as ro, W as Gt, cA as no, cB as oo, cC as so, cD as io, cE as ao, cF as Wt, cG as co, cH as lo, a3 as T1, cI as uo, aG as fo, cJ as ho, cK as go, cL as po, ad as mo, cM as Co, bJ as vo, a7 as A1, aa as wo, cN as xo, b7 as H1, _ as qt, N as c1, cO as Xt, b6 as ko, cP as bo, cQ as Lo, a$ as yo, bI as Mo, Y as Me, ar as Eo, bb as Yt, cR as Ro, bG as Kt, cS as Ne, bC as No, cT as Fo, cU as Qt, a_ as Jt, cV as So, cW as Vo, cX as To, cY as Ao, cZ as Ho, c_ as er, bu as Bo, bv as $o, c$ as Io, d0 as Po, d1 as jo, d2 as Do, d3 as _o, d4 as Oo, d5 as Zo, d6 as Uo, d7 as zo, d8 as Go, d9 as Wo, da as qo, db as Xo, bH as Yo, a8 as Ko, bq as Qo, dc as Jo, dd as es, de as ts, df as rs, dg as ns, dh as os, di as ss, am as is, dj as tr, J as as, Z as cs, dk as rr, dl as ls, ba as ds, b9 as us, dm as fs, dn as nr, dp as hs, aZ as gs, av as ps, dq as ms, ap as Cs, b4 as vs, dr as or, b3 as ws, ds as xs, bf as B1, dt as ks, du as $1, bE as bs, bD as Ls, bF as sr, dv as ys, z as Ms, y as Es, dw as Rs, dx as Ns, dy as Fs, dz as Ss, dA as Vs, dB as ir, dC as Ts, a9 as As, dD as Hs, H as he, o as Se, m as E, ab as fe, dE as Bs, bk as $s, bx as Is, w as ar, dF as Ps, a2 as l1, bW as js, aq as Ds, M as Ce, C as ce, a5 as cr, ac as lr, bl as dr, dG as _s, dH as Os, dI as Zs, S as ge, u as ee, c9 as ur, s as ve, $ as Us, dJ as zs, aM as Le, A as Fe, n as oe, aA as I1, dK as Gs, aB as P1, aC as j1, b as Ee, dL as Ws, by as qs, O as Xs, aY as Ys, dM as Ks, dN as Qs, dO as Js, dP as Q1, a0 as ei, ah as fr, aP as hr, dQ as ti, bV as ri, dR as ni, dS as oi, aU as gr, dT as si, bP as ii, dU as ai, aR as ze, bd as pr, dV as mr, be as Cr, dW as vr, dX as ci, bh as li, dY as di, b5 as D1, br as ui, dZ as fi, d_ as hi, d$ as gi, e0 as pi, e1 as mi, x as Ci, e2 as wr, e3 as xr, e4 as vi, ag as J1, e5 as wi, af as xi, e6 as ki, e7 as bi } from "./F0CanvasPanel-CC0-kGJd.js";
|
|
5
|
+
import { createPortal as kr } from "react-dom";
|
|
6
6
|
import { defaultTranslations as Li } from "./i18n-provider-defaults.js";
|
|
7
7
|
import { useTrackVolume as yi } from "@livekit/components-react";
|
|
8
8
|
import './useChatHistory.css';function Mi(e, t, n) {
|
|
9
|
-
|
|
9
|
+
Hn(() => e.on(t, n), [e, t, n]);
|
|
10
10
|
}
|
|
11
11
|
function _1(e) {
|
|
12
12
|
return typeof e == "object" && !Array.isArray(e);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return typeof e == "string" && _1(t) ?
|
|
14
|
+
function br(e, t, n, o) {
|
|
15
|
+
return typeof e == "string" && _1(t) ? Bn(e, n, o) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
|
|
16
16
|
}
|
|
17
17
|
function Ei(e, t, n) {
|
|
18
18
|
return e * (t + 1);
|
|
@@ -24,13 +24,13 @@ const Ri = (e, t, n) => {
|
|
|
24
24
|
const o = t - e;
|
|
25
25
|
return ((n - e) % o + o) % o + e;
|
|
26
26
|
};
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function Lr(e, t) {
|
|
28
|
+
return $n(e) ? e[Ri(0, e.length, t)] : e;
|
|
29
29
|
}
|
|
30
30
|
function Ni(e, t, n) {
|
|
31
31
|
for (let o = 0; o < e.length; o++) {
|
|
32
32
|
const s = e[o];
|
|
33
|
-
s.at > t && s.at < n && (
|
|
33
|
+
s.at > t && s.at < n && (Pn(e, s), o--);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
function Fi(e, t, n, o, s, i) {
|
|
@@ -38,8 +38,8 @@ function Fi(e, t, n, o, s, i) {
|
|
|
38
38
|
for (let a = 0; a < t.length; a++)
|
|
39
39
|
e.push({
|
|
40
40
|
value: t[a],
|
|
41
|
-
at:
|
|
42
|
-
easing:
|
|
41
|
+
at: In(s, i, o[a]),
|
|
42
|
+
easing: Lr(n, a)
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
function Si(e, t) {
|
|
@@ -64,65 +64,65 @@ function Hi(e, { defaultTransition: t = {}, ...n } = {}, o, s) {
|
|
|
64
64
|
}
|
|
65
65
|
let [w, v, x = {}] = p;
|
|
66
66
|
x.at !== void 0 && (h = et(h, x.at, u, f));
|
|
67
|
-
let
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
let { ease: q = t.ease || "easeOut", duration: U } =
|
|
71
|
-
const z = typeof k == "function" ? k(
|
|
67
|
+
let A = 0;
|
|
68
|
+
const F = (R, M, L, S = 0, b = 0) => {
|
|
69
|
+
const V = Bi(R), { delay: k = 0, times: y = jn(V), type: T = "keyframes", repeat: j, repeatType: _, repeatDelay: Z = 0, ...G } = M;
|
|
70
|
+
let { ease: q = t.ease || "easeOut", duration: U } = M;
|
|
71
|
+
const z = typeof k == "function" ? k(S, b) : k, O = V.length, J = On(T) ? T : s?.[T];
|
|
72
72
|
if (O <= 2 && J) {
|
|
73
73
|
let se = 100;
|
|
74
|
-
if (O === 2 && Pi(
|
|
75
|
-
const ue =
|
|
74
|
+
if (O === 2 && Pi(V)) {
|
|
75
|
+
const ue = V[1] - V[0];
|
|
76
76
|
se = Math.abs(ue);
|
|
77
77
|
}
|
|
78
78
|
const re = { ...G };
|
|
79
|
-
U !== void 0 && (re.duration =
|
|
80
|
-
const ie =
|
|
79
|
+
U !== void 0 && (re.duration = Zn(U));
|
|
80
|
+
const ie = Dn(re, se, J);
|
|
81
81
|
q = ie.ease, U = ie.duration;
|
|
82
82
|
}
|
|
83
83
|
U ?? (U = i);
|
|
84
84
|
const Y = h + z;
|
|
85
85
|
y.length === 1 && y[0] === 0 && (y[1] = 1);
|
|
86
|
-
const le = y.length -
|
|
87
|
-
if (le > 0 &&
|
|
86
|
+
const le = y.length - V.length;
|
|
87
|
+
if (le > 0 && _n(y, le), V.length === 1 && V.unshift(null), j) {
|
|
88
88
|
zt(j < Ai, "Repeat count too high, must be less than 20"), U = Ei(U, j);
|
|
89
|
-
const se = [...
|
|
89
|
+
const se = [...V], re = [...y];
|
|
90
90
|
q = Array.isArray(q) ? [...q] : [q];
|
|
91
91
|
const ie = [...q];
|
|
92
92
|
for (let ue = 0; ue < j; ue++) {
|
|
93
|
-
|
|
94
|
-
for (let
|
|
95
|
-
y.push(re[
|
|
93
|
+
V.push(...se);
|
|
94
|
+
for (let N = 0; N < se.length; N++)
|
|
95
|
+
y.push(re[N] + (ue + 1)), q.push(N === 0 ? "linear" : Lr(ie, N - 1));
|
|
96
96
|
}
|
|
97
97
|
Si(y, j);
|
|
98
98
|
}
|
|
99
99
|
const de = Y + U;
|
|
100
|
-
Fi(L,
|
|
100
|
+
Fi(L, V, q, y, Y, de), A = Math.max(z + U, A), m = Math.max(de, m);
|
|
101
101
|
};
|
|
102
102
|
if (Ut(w)) {
|
|
103
103
|
const R = tt(w, l);
|
|
104
|
-
|
|
104
|
+
F(v, x, rt("default", R));
|
|
105
105
|
} else {
|
|
106
|
-
const R =
|
|
107
|
-
for (let L = 0; L <
|
|
106
|
+
const R = br(w, v, o, c), M = R.length;
|
|
107
|
+
for (let L = 0; L < M; L++) {
|
|
108
108
|
v = v, x = x;
|
|
109
|
-
const
|
|
110
|
-
for (const
|
|
111
|
-
|
|
109
|
+
const S = R[L], b = tt(S, l);
|
|
110
|
+
for (const V in v)
|
|
111
|
+
F(v[V], $i(x, V), rt(V, b), L, M);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
u = h, h +=
|
|
114
|
+
u = h, h += A;
|
|
115
115
|
}
|
|
116
116
|
return l.forEach((g, p) => {
|
|
117
117
|
for (const w in g) {
|
|
118
118
|
const v = g[w];
|
|
119
119
|
v.sort(Vi);
|
|
120
|
-
const x = [],
|
|
121
|
-
for (let
|
|
122
|
-
const { at: L, value:
|
|
123
|
-
x.push(
|
|
120
|
+
const x = [], A = [], F = [];
|
|
121
|
+
for (let M = 0; M < v.length; M++) {
|
|
122
|
+
const { at: L, value: S, easing: b } = v[M];
|
|
123
|
+
x.push(S), A.push(Un(0, m, L)), F.push(b || "easeOut");
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
A[0] !== 0 && (A.unshift(0), x.unshift(x[0]), F.unshift(Ti)), A[A.length - 1] !== 1 && (A.push(1), x.push(null)), a.has(p) || a.set(p, {
|
|
126
126
|
keyframes: {},
|
|
127
127
|
transition: {}
|
|
128
128
|
});
|
|
@@ -130,8 +130,8 @@ function Hi(e, { defaultTransition: t = {}, ...n } = {}, o, s) {
|
|
|
130
130
|
R.keyframes[w] = x, R.transition[w] = {
|
|
131
131
|
...t,
|
|
132
132
|
duration: m,
|
|
133
|
-
ease:
|
|
134
|
-
times:
|
|
133
|
+
ease: F,
|
|
134
|
+
times: A,
|
|
135
135
|
...n
|
|
136
136
|
};
|
|
137
137
|
}
|
|
@@ -156,7 +156,7 @@ const Ii = (e) => typeof e == "number", Pi = (e) => e.every(Ii);
|
|
|
156
156
|
function ji(e, t) {
|
|
157
157
|
return e in t;
|
|
158
158
|
}
|
|
159
|
-
class Di extends
|
|
159
|
+
class Di extends zn {
|
|
160
160
|
constructor() {
|
|
161
161
|
super(...arguments), this.type = "object";
|
|
162
162
|
}
|
|
@@ -173,7 +173,7 @@ class Di extends Gn {
|
|
|
173
173
|
delete n.output[t];
|
|
174
174
|
}
|
|
175
175
|
measureInstanceViewportBox() {
|
|
176
|
-
return
|
|
176
|
+
return Gn();
|
|
177
177
|
}
|
|
178
178
|
build(t, n) {
|
|
179
179
|
Object.assign(t.output, n);
|
|
@@ -199,7 +199,7 @@ function _i(e) {
|
|
|
199
199
|
},
|
|
200
200
|
latestValues: {}
|
|
201
201
|
}
|
|
202
|
-
}, n =
|
|
202
|
+
}, n = Wn(e) && !qn(e) ? new Xn(t) : new Yn(t);
|
|
203
203
|
n.mount(e), r1.set(e, n);
|
|
204
204
|
}
|
|
205
205
|
function Oi(e) {
|
|
@@ -218,26 +218,26 @@ function Oi(e) {
|
|
|
218
218
|
function Zi(e, t) {
|
|
219
219
|
return Ut(e) || typeof e == "number" || typeof e == "string" && !_1(t);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function yr(e, t, n, o) {
|
|
222
222
|
const s = [];
|
|
223
223
|
if (Zi(e, t))
|
|
224
|
-
s.push(
|
|
224
|
+
s.push(Kn(e, _1(t) && t.default || t, n && (n.default || n)));
|
|
225
225
|
else {
|
|
226
|
-
const i =
|
|
226
|
+
const i = br(e, t, o), a = i.length;
|
|
227
227
|
zt(!!a, "No valid elements provided.");
|
|
228
228
|
for (let l = 0; l < a; l++) {
|
|
229
229
|
const c = i[l], f = c instanceof Element ? _i : Oi;
|
|
230
230
|
r1.has(c) || f(c);
|
|
231
231
|
const u = r1.get(c), h = { ...n };
|
|
232
|
-
"delay" in h && typeof h.delay == "function" && (h.delay = h.delay(l, a)), s.push(...
|
|
232
|
+
"delay" in h && typeof h.delay == "function" && (h.delay = h.delay(l, a)), s.push(...Qn(u, { ...t, transition: h }, {}));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
return s;
|
|
236
236
|
}
|
|
237
237
|
function Ui(e, t, n) {
|
|
238
238
|
const o = [];
|
|
239
|
-
return Hi(e, t, n, { spring:
|
|
240
|
-
o.push(...
|
|
239
|
+
return Hi(e, t, n, { spring: Jn }).forEach(({ keyframes: i, transition: a }, l) => {
|
|
240
|
+
o.push(...yr(l, i, a));
|
|
241
241
|
}), o;
|
|
242
242
|
}
|
|
243
243
|
class zi {
|
|
@@ -317,7 +317,7 @@ function Wi(e) {
|
|
|
317
317
|
function qi(e) {
|
|
318
318
|
function t(n, o, s) {
|
|
319
319
|
let i = [];
|
|
320
|
-
return Wi(n) ? i = Ui(n, o, e) : i =
|
|
320
|
+
return Wi(n) ? i = Ui(n, o, e) : i = yr(n, o, s, e), new Gi(i);
|
|
321
321
|
}
|
|
322
322
|
return t;
|
|
323
323
|
}
|
|
@@ -2767,7 +2767,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
2767
2767
|
)
|
|
2768
2768
|
]
|
|
2769
2769
|
}
|
|
2770
|
-
),
|
|
2770
|
+
), Mr = C(b0), L0 = (e, t) => /* @__PURE__ */ d(
|
|
2771
2771
|
"svg",
|
|
2772
2772
|
{
|
|
2773
2773
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3238,7 +3238,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3238
3238
|
)
|
|
3239
3239
|
]
|
|
3240
3240
|
}
|
|
3241
|
-
),
|
|
3241
|
+
), Er = C(z0), G0 = (e, t) => /* @__PURE__ */ d(
|
|
3242
3242
|
"svg",
|
|
3243
3243
|
{
|
|
3244
3244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3371,7 +3371,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3371
3371
|
)
|
|
3372
3372
|
]
|
|
3373
3373
|
}
|
|
3374
|
-
),
|
|
3374
|
+
), Rr = C(Y0), K0 = (e, t) => /* @__PURE__ */ d(
|
|
3375
3375
|
"svg",
|
|
3376
3376
|
{
|
|
3377
3377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3449,7 +3449,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3449
3449
|
/* @__PURE__ */ r("path", { d: "M8 21h8", vectorEffect: "non-scaling-stroke" })
|
|
3450
3450
|
]
|
|
3451
3451
|
}
|
|
3452
|
-
),
|
|
3452
|
+
), e5 = C(J0), t5 = (e, t) => /* @__PURE__ */ d(
|
|
3453
3453
|
"svg",
|
|
3454
3454
|
{
|
|
3455
3455
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3504,7 +3504,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3504
3504
|
)
|
|
3505
3505
|
]
|
|
3506
3506
|
}
|
|
3507
|
-
),
|
|
3507
|
+
), r5 = C(t5), n5 = (e, t) => /* @__PURE__ */ r(
|
|
3508
3508
|
"svg",
|
|
3509
3509
|
{
|
|
3510
3510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3523,7 +3523,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3523
3523
|
}
|
|
3524
3524
|
)
|
|
3525
3525
|
}
|
|
3526
|
-
),
|
|
3526
|
+
), o5 = C(n5), s5 = (e, t) => /* @__PURE__ */ d(
|
|
3527
3527
|
"svg",
|
|
3528
3528
|
{
|
|
3529
3529
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3551,7 +3551,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3551
3551
|
)
|
|
3552
3552
|
]
|
|
3553
3553
|
}
|
|
3554
|
-
),
|
|
3554
|
+
), i5 = C(s5), a5 = (e, t) => /* @__PURE__ */ d(
|
|
3555
3555
|
"svg",
|
|
3556
3556
|
{
|
|
3557
3557
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3605,7 +3605,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3605
3605
|
)
|
|
3606
3606
|
]
|
|
3607
3607
|
}
|
|
3608
|
-
),
|
|
3608
|
+
), c5 = C(a5), l5 = (e, t) => /* @__PURE__ */ d(
|
|
3609
3609
|
"svg",
|
|
3610
3610
|
{
|
|
3611
3611
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3751,7 +3751,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3751
3751
|
)
|
|
3752
3752
|
]
|
|
3753
3753
|
}
|
|
3754
|
-
),
|
|
3754
|
+
), d5 = C(l5), u5 = (e, t) => /* @__PURE__ */ r(
|
|
3755
3755
|
"svg",
|
|
3756
3756
|
{
|
|
3757
3757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3768,7 +3768,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3768
3768
|
}
|
|
3769
3769
|
)
|
|
3770
3770
|
}
|
|
3771
|
-
), O1 = C(
|
|
3771
|
+
), O1 = C(u5), f5 = (e, t) => /* @__PURE__ */ r(
|
|
3772
3772
|
"svg",
|
|
3773
3773
|
{
|
|
3774
3774
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3787,7 +3787,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3787
3787
|
}
|
|
3788
3788
|
)
|
|
3789
3789
|
}
|
|
3790
|
-
),
|
|
3790
|
+
), h5 = C(f5), g5 = (e, t) => /* @__PURE__ */ d(
|
|
3791
3791
|
"svg",
|
|
3792
3792
|
{
|
|
3793
3793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3846,7 +3846,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3846
3846
|
)
|
|
3847
3847
|
]
|
|
3848
3848
|
}
|
|
3849
|
-
),
|
|
3849
|
+
), p5 = C(g5), m5 = (e, t) => /* @__PURE__ */ d(
|
|
3850
3850
|
"svg",
|
|
3851
3851
|
{
|
|
3852
3852
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3917,7 +3917,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3917
3917
|
)
|
|
3918
3918
|
]
|
|
3919
3919
|
}
|
|
3920
|
-
),
|
|
3920
|
+
), C5 = C(m5), v5 = (e, t) => /* @__PURE__ */ d(
|
|
3921
3921
|
"svg",
|
|
3922
3922
|
{
|
|
3923
3923
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3955,7 +3955,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3955
3955
|
)
|
|
3956
3956
|
]
|
|
3957
3957
|
}
|
|
3958
|
-
),
|
|
3958
|
+
), w5 = C(v5), x5 = (e, t) => /* @__PURE__ */ r(
|
|
3959
3959
|
"svg",
|
|
3960
3960
|
{
|
|
3961
3961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3974,7 +3974,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
3974
3974
|
}
|
|
3975
3975
|
)
|
|
3976
3976
|
}
|
|
3977
|
-
),
|
|
3977
|
+
), k5 = C(x5), b5 = (e, t) => /* @__PURE__ */ d(
|
|
3978
3978
|
"svg",
|
|
3979
3979
|
{
|
|
3980
3980
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4034,7 +4034,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4034
4034
|
)
|
|
4035
4035
|
]
|
|
4036
4036
|
}
|
|
4037
|
-
),
|
|
4037
|
+
), L5 = C(b5), y5 = (e, t) => /* @__PURE__ */ r(
|
|
4038
4038
|
"svg",
|
|
4039
4039
|
{
|
|
4040
4040
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4053,7 +4053,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4053
4053
|
}
|
|
4054
4054
|
)
|
|
4055
4055
|
}
|
|
4056
|
-
),
|
|
4056
|
+
), M5 = C(y5), E5 = (e, t) => /* @__PURE__ */ d(
|
|
4057
4057
|
"svg",
|
|
4058
4058
|
{
|
|
4059
4059
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4103,7 +4103,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4103
4103
|
)
|
|
4104
4104
|
]
|
|
4105
4105
|
}
|
|
4106
|
-
),
|
|
4106
|
+
), R5 = C(E5), N5 = (e, t) => /* @__PURE__ */ r(
|
|
4107
4107
|
"svg",
|
|
4108
4108
|
{
|
|
4109
4109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4120,7 +4120,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4120
4120
|
}
|
|
4121
4121
|
)
|
|
4122
4122
|
}
|
|
4123
|
-
),
|
|
4123
|
+
), F5 = C(N5), S5 = (e, t) => /* @__PURE__ */ r(
|
|
4124
4124
|
"svg",
|
|
4125
4125
|
{
|
|
4126
4126
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4137,7 +4137,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4137
4137
|
}
|
|
4138
4138
|
)
|
|
4139
4139
|
}
|
|
4140
|
-
),
|
|
4140
|
+
), V5 = C(S5), T5 = (e, t) => /* @__PURE__ */ r(
|
|
4141
4141
|
"svg",
|
|
4142
4142
|
{
|
|
4143
4143
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4155,7 +4155,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4155
4155
|
}
|
|
4156
4156
|
)
|
|
4157
4157
|
}
|
|
4158
|
-
),
|
|
4158
|
+
), A5 = C(T5), H5 = (e, t) => /* @__PURE__ */ d(
|
|
4159
4159
|
"svg",
|
|
4160
4160
|
{
|
|
4161
4161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4208,7 +4208,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4208
4208
|
)
|
|
4209
4209
|
]
|
|
4210
4210
|
}
|
|
4211
|
-
),
|
|
4211
|
+
), B5 = C(H5), $5 = (e, t) => /* @__PURE__ */ d(
|
|
4212
4212
|
"svg",
|
|
4213
4213
|
{
|
|
4214
4214
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4241,7 +4241,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4241
4241
|
)
|
|
4242
4242
|
]
|
|
4243
4243
|
}
|
|
4244
|
-
),
|
|
4244
|
+
), I5 = C($5), P5 = (e, t) => /* @__PURE__ */ d(
|
|
4245
4245
|
"svg",
|
|
4246
4246
|
{
|
|
4247
4247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4284,7 +4284,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4284
4284
|
)
|
|
4285
4285
|
]
|
|
4286
4286
|
}
|
|
4287
|
-
),
|
|
4287
|
+
), j5 = C(P5), D5 = (e, t) => /* @__PURE__ */ r(
|
|
4288
4288
|
"svg",
|
|
4289
4289
|
{
|
|
4290
4290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4303,7 +4303,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4303
4303
|
}
|
|
4304
4304
|
)
|
|
4305
4305
|
}
|
|
4306
|
-
),
|
|
4306
|
+
), _5 = C(D5), O5 = (e, t) => /* @__PURE__ */ d(
|
|
4307
4307
|
"svg",
|
|
4308
4308
|
{
|
|
4309
4309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4362,7 +4362,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4362
4362
|
)
|
|
4363
4363
|
]
|
|
4364
4364
|
}
|
|
4365
|
-
),
|
|
4365
|
+
), Z5 = C(O5), U5 = (e, t) => /* @__PURE__ */ d(
|
|
4366
4366
|
"svg",
|
|
4367
4367
|
{
|
|
4368
4368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4410,7 +4410,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4410
4410
|
)
|
|
4411
4411
|
]
|
|
4412
4412
|
}
|
|
4413
|
-
),
|
|
4413
|
+
), z5 = C(U5), G5 = (e, t) => /* @__PURE__ */ d(
|
|
4414
4414
|
"svg",
|
|
4415
4415
|
{
|
|
4416
4416
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4489,7 +4489,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4489
4489
|
)
|
|
4490
4490
|
]
|
|
4491
4491
|
}
|
|
4492
|
-
),
|
|
4492
|
+
), W5 = C(G5), q5 = (e, t) => /* @__PURE__ */ r(
|
|
4493
4493
|
"svg",
|
|
4494
4494
|
{
|
|
4495
4495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4506,7 +4506,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4506
4506
|
}
|
|
4507
4507
|
)
|
|
4508
4508
|
}
|
|
4509
|
-
),
|
|
4509
|
+
), Nr = C(q5), X5 = (e, t) => /* @__PURE__ */ r(
|
|
4510
4510
|
"svg",
|
|
4511
4511
|
{
|
|
4512
4512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4523,7 +4523,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4523
4523
|
}
|
|
4524
4524
|
)
|
|
4525
4525
|
}
|
|
4526
|
-
),
|
|
4526
|
+
), Y5 = C(X5), K5 = (e, t) => /* @__PURE__ */ d(
|
|
4527
4527
|
"svg",
|
|
4528
4528
|
{
|
|
4529
4529
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4561,7 +4561,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4561
4561
|
)
|
|
4562
4562
|
]
|
|
4563
4563
|
}
|
|
4564
|
-
),
|
|
4564
|
+
), Q5 = C(K5), J5 = (e, t) => /* @__PURE__ */ d(
|
|
4565
4565
|
"svg",
|
|
4566
4566
|
{
|
|
4567
4567
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4592,7 +4592,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4592
4592
|
)
|
|
4593
4593
|
]
|
|
4594
4594
|
}
|
|
4595
|
-
),
|
|
4595
|
+
), el = C(J5), tl = (e, t) => /* @__PURE__ */ r(
|
|
4596
4596
|
"svg",
|
|
4597
4597
|
{
|
|
4598
4598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4611,7 +4611,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4611
4611
|
}
|
|
4612
4612
|
)
|
|
4613
4613
|
}
|
|
4614
|
-
),
|
|
4614
|
+
), rl = C(tl), nl = (e, t) => /* @__PURE__ */ d(
|
|
4615
4615
|
"svg",
|
|
4616
4616
|
{
|
|
4617
4617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4662,7 +4662,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4662
4662
|
)
|
|
4663
4663
|
]
|
|
4664
4664
|
}
|
|
4665
|
-
),
|
|
4665
|
+
), ol = C(nl), sl = (e, t) => /* @__PURE__ */ r(
|
|
4666
4666
|
"svg",
|
|
4667
4667
|
{
|
|
4668
4668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4681,7 +4681,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4681
4681
|
}
|
|
4682
4682
|
)
|
|
4683
4683
|
}
|
|
4684
|
-
), Z1 = C(
|
|
4684
|
+
), Z1 = C(sl), il = (e, t) => /* @__PURE__ */ d(
|
|
4685
4685
|
"svg",
|
|
4686
4686
|
{
|
|
4687
4687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4711,7 +4711,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4711
4711
|
)
|
|
4712
4712
|
]
|
|
4713
4713
|
}
|
|
4714
|
-
),
|
|
4714
|
+
), al = C(il), cl = (e, t) => /* @__PURE__ */ r(
|
|
4715
4715
|
"svg",
|
|
4716
4716
|
{
|
|
4717
4717
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4730,7 +4730,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4730
4730
|
}
|
|
4731
4731
|
)
|
|
4732
4732
|
}
|
|
4733
|
-
),
|
|
4733
|
+
), ll = C(cl), dl = (e, t) => /* @__PURE__ */ d(
|
|
4734
4734
|
"svg",
|
|
4735
4735
|
{
|
|
4736
4736
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4761,7 +4761,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4761
4761
|
)
|
|
4762
4762
|
]
|
|
4763
4763
|
}
|
|
4764
|
-
),
|
|
4764
|
+
), ul = C(dl), fl = (e, t) => /* @__PURE__ */ d(
|
|
4765
4765
|
"svg",
|
|
4766
4766
|
{
|
|
4767
4767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4820,7 +4820,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4820
4820
|
)
|
|
4821
4821
|
]
|
|
4822
4822
|
}
|
|
4823
|
-
),
|
|
4823
|
+
), hl = C(fl), gl = (e, t) => /* @__PURE__ */ d(
|
|
4824
4824
|
"svg",
|
|
4825
4825
|
{
|
|
4826
4826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4870,7 +4870,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4870
4870
|
)
|
|
4871
4871
|
]
|
|
4872
4872
|
}
|
|
4873
|
-
),
|
|
4873
|
+
), pl = C(gl), ml = (e, t) => /* @__PURE__ */ d(
|
|
4874
4874
|
"svg",
|
|
4875
4875
|
{
|
|
4876
4876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4899,7 +4899,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4899
4899
|
)
|
|
4900
4900
|
]
|
|
4901
4901
|
}
|
|
4902
|
-
),
|
|
4902
|
+
), Cl = C(ml), vl = (e, t) => /* @__PURE__ */ r(
|
|
4903
4903
|
"svg",
|
|
4904
4904
|
{
|
|
4905
4905
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4917,7 +4917,7 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4917
4917
|
}
|
|
4918
4918
|
)
|
|
4919
4919
|
}
|
|
4920
|
-
),
|
|
4920
|
+
), wl = C(vl), xl = (e, t) => /* @__PURE__ */ d(
|
|
4921
4921
|
"svg",
|
|
4922
4922
|
{
|
|
4923
4923
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4962,9 +4962,9 @@ const Xi = qi(), Yi = (e, t) => /* @__PURE__ */ d(
|
|
|
4962
4962
|
)
|
|
4963
4963
|
]
|
|
4964
4964
|
}
|
|
4965
|
-
),
|
|
4966
|
-
|
|
4967
|
-
const
|
|
4965
|
+
), Fr = C(xl);
|
|
4966
|
+
Fr.displayName = "ShoppingCart";
|
|
4967
|
+
const kl = (e, t) => /* @__PURE__ */ d(
|
|
4968
4968
|
"svg",
|
|
4969
4969
|
{
|
|
4970
4970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5014,7 +5014,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5014
5014
|
)
|
|
5015
5015
|
]
|
|
5016
5016
|
}
|
|
5017
|
-
),
|
|
5017
|
+
), bl = C(kl), Ll = (e, t) => /* @__PURE__ */ d(
|
|
5018
5018
|
"svg",
|
|
5019
5019
|
{
|
|
5020
5020
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5045,7 +5045,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5045
5045
|
)
|
|
5046
5046
|
]
|
|
5047
5047
|
}
|
|
5048
|
-
),
|
|
5048
|
+
), yl = C(Ll), Ml = (e, t) => /* @__PURE__ */ d(
|
|
5049
5049
|
"svg",
|
|
5050
5050
|
{
|
|
5051
5051
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5076,7 +5076,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5076
5076
|
)
|
|
5077
5077
|
]
|
|
5078
5078
|
}
|
|
5079
|
-
),
|
|
5079
|
+
), El = C(Ml), Rl = (e, t) => /* @__PURE__ */ d(
|
|
5080
5080
|
"svg",
|
|
5081
5081
|
{
|
|
5082
5082
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5141,7 +5141,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5141
5141
|
)
|
|
5142
5142
|
]
|
|
5143
5143
|
}
|
|
5144
|
-
),
|
|
5144
|
+
), Nl = C(Rl), Fl = (e, t) => /* @__PURE__ */ d(
|
|
5145
5145
|
"svg",
|
|
5146
5146
|
{
|
|
5147
5147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5172,7 +5172,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5172
5172
|
)
|
|
5173
5173
|
]
|
|
5174
5174
|
}
|
|
5175
|
-
),
|
|
5175
|
+
), Sl = C(Fl), Vl = (e, t) => /* @__PURE__ */ d(
|
|
5176
5176
|
"svg",
|
|
5177
5177
|
{
|
|
5178
5178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5221,7 +5221,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5221
5221
|
)
|
|
5222
5222
|
]
|
|
5223
5223
|
}
|
|
5224
|
-
),
|
|
5224
|
+
), Tl = C(Vl), Al = (e, t) => /* @__PURE__ */ d(
|
|
5225
5225
|
"svg",
|
|
5226
5226
|
{
|
|
5227
5227
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5252,7 +5252,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5252
5252
|
)
|
|
5253
5253
|
]
|
|
5254
5254
|
}
|
|
5255
|
-
),
|
|
5255
|
+
), Hl = C(Al), Bl = (e, t) => /* @__PURE__ */ d(
|
|
5256
5256
|
"svg",
|
|
5257
5257
|
{
|
|
5258
5258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5281,7 +5281,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5281
5281
|
)
|
|
5282
5282
|
]
|
|
5283
5283
|
}
|
|
5284
|
-
), $
|
|
5284
|
+
), $l = C(Bl), Il = (e, t) => /* @__PURE__ */ d(
|
|
5285
5285
|
"svg",
|
|
5286
5286
|
{
|
|
5287
5287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5312,7 +5312,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5312
5312
|
)
|
|
5313
5313
|
]
|
|
5314
5314
|
}
|
|
5315
|
-
),
|
|
5315
|
+
), Pl = C(Il), jl = (e, t) => /* @__PURE__ */ d(
|
|
5316
5316
|
"svg",
|
|
5317
5317
|
{
|
|
5318
5318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5351,7 +5351,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5351
5351
|
)
|
|
5352
5352
|
]
|
|
5353
5353
|
}
|
|
5354
|
-
),
|
|
5354
|
+
), Dl = C(jl), _l = (e, t) => /* @__PURE__ */ d(
|
|
5355
5355
|
"svg",
|
|
5356
5356
|
{
|
|
5357
5357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5382,7 +5382,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5382
5382
|
)
|
|
5383
5383
|
]
|
|
5384
5384
|
}
|
|
5385
|
-
),
|
|
5385
|
+
), Sr = C(_l), Ol = (e, t) => /* @__PURE__ */ d(
|
|
5386
5386
|
"svg",
|
|
5387
5387
|
{
|
|
5388
5388
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5409,7 +5409,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5409
5409
|
)
|
|
5410
5410
|
]
|
|
5411
5411
|
}
|
|
5412
|
-
),
|
|
5412
|
+
), Vr = C(Ol), Zl = (e, t) => /* @__PURE__ */ d(
|
|
5413
5413
|
"svg",
|
|
5414
5414
|
{
|
|
5415
5415
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5440,7 +5440,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5440
5440
|
)
|
|
5441
5441
|
]
|
|
5442
5442
|
}
|
|
5443
|
-
),
|
|
5443
|
+
), Tr = C(Zl), Ul = (e, t) => /* @__PURE__ */ d(
|
|
5444
5444
|
"svg",
|
|
5445
5445
|
{
|
|
5446
5446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5467,7 +5467,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5467
5467
|
)
|
|
5468
5468
|
]
|
|
5469
5469
|
}
|
|
5470
|
-
),
|
|
5470
|
+
), Ar = C(Ul), zl = (e, t) => /* @__PURE__ */ d(
|
|
5471
5471
|
"svg",
|
|
5472
5472
|
{
|
|
5473
5473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5537,7 +5537,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5537
5537
|
)
|
|
5538
5538
|
]
|
|
5539
5539
|
}
|
|
5540
|
-
),
|
|
5540
|
+
), Gl = C(zl), Wl = (e, t) => /* @__PURE__ */ r(
|
|
5541
5541
|
"svg",
|
|
5542
5542
|
{
|
|
5543
5543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5555,7 +5555,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5555
5555
|
}
|
|
5556
5556
|
)
|
|
5557
5557
|
}
|
|
5558
|
-
),
|
|
5558
|
+
), ql = C(Wl), Xl = (e, t) => /* @__PURE__ */ d(
|
|
5559
5559
|
"svg",
|
|
5560
5560
|
{
|
|
5561
5561
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5590,7 +5590,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5590
5590
|
)
|
|
5591
5591
|
]
|
|
5592
5592
|
}
|
|
5593
|
-
),
|
|
5593
|
+
), Yl = C(Xl), Kl = (e, t) => /* @__PURE__ */ d(
|
|
5594
5594
|
"svg",
|
|
5595
5595
|
{
|
|
5596
5596
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5630,7 +5630,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5630
5630
|
)
|
|
5631
5631
|
]
|
|
5632
5632
|
}
|
|
5633
|
-
),
|
|
5633
|
+
), Ql = C(Kl), Jl = (e, t) => /* @__PURE__ */ d(
|
|
5634
5634
|
"svg",
|
|
5635
5635
|
{
|
|
5636
5636
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5669,7 +5669,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5669
5669
|
)
|
|
5670
5670
|
]
|
|
5671
5671
|
}
|
|
5672
|
-
), e2 = C(
|
|
5672
|
+
), e2 = C(Jl), t2 = (e, t) => /* @__PURE__ */ d(
|
|
5673
5673
|
"svg",
|
|
5674
5674
|
{
|
|
5675
5675
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5746,39 +5746,39 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5746
5746
|
), i2 = C(s2), a2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5747
5747
|
__proto__: null,
|
|
5748
5748
|
AcademicCap: Ki,
|
|
5749
|
-
Add:
|
|
5750
|
-
Ai:
|
|
5751
|
-
Alert:
|
|
5749
|
+
Add: eo,
|
|
5750
|
+
Ai: to,
|
|
5751
|
+
Alert: ro,
|
|
5752
5752
|
AlertCircle: Gt,
|
|
5753
|
-
AlertCircleLine:
|
|
5754
|
-
AlignTextCenter:
|
|
5755
|
-
AlignTextJustify:
|
|
5756
|
-
AlignTextLeft:
|
|
5757
|
-
AlignTextRight:
|
|
5753
|
+
AlertCircleLine: no,
|
|
5754
|
+
AlignTextCenter: oo,
|
|
5755
|
+
AlignTextJustify: so,
|
|
5756
|
+
AlignTextLeft: io,
|
|
5757
|
+
AlignTextRight: ao,
|
|
5758
5758
|
Appearance: Ji,
|
|
5759
5759
|
Archive: ta,
|
|
5760
5760
|
ArchiveOpen: na,
|
|
5761
5761
|
ArrowCycle: sa,
|
|
5762
5762
|
ArrowDown: Wt,
|
|
5763
|
-
ArrowLeft:
|
|
5764
|
-
ArrowRight:
|
|
5763
|
+
ArrowLeft: co,
|
|
5764
|
+
ArrowRight: lo,
|
|
5765
5765
|
ArrowUp: T1,
|
|
5766
|
-
Ascending:
|
|
5766
|
+
Ascending: uo,
|
|
5767
5767
|
Balance: aa,
|
|
5768
5768
|
Bank: la,
|
|
5769
5769
|
BarGraph: ua,
|
|
5770
5770
|
Basket: ha,
|
|
5771
|
-
Bell:
|
|
5772
|
-
Bold:
|
|
5771
|
+
Bell: fo,
|
|
5772
|
+
Bold: ho,
|
|
5773
5773
|
BookOpen: pa,
|
|
5774
|
-
Bookmark:
|
|
5775
|
-
BookmarkFilled:
|
|
5774
|
+
Bookmark: go,
|
|
5775
|
+
BookmarkFilled: po,
|
|
5776
5776
|
Briefcase: Ca,
|
|
5777
5777
|
Bucket: wa,
|
|
5778
5778
|
Building: ka,
|
|
5779
|
-
Bullet:
|
|
5780
|
-
Calculator:
|
|
5781
|
-
Calendar:
|
|
5779
|
+
Bullet: mo,
|
|
5780
|
+
Calculator: Co,
|
|
5781
|
+
Calendar: vo,
|
|
5782
5782
|
CalendarArrowDown: La,
|
|
5783
5783
|
CalendarArrowLeft: Ma,
|
|
5784
5784
|
CalendarArrowRight: Ra,
|
|
@@ -5790,218 +5790,218 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
5790
5790
|
ChartPie: ja,
|
|
5791
5791
|
ChartVerticalBars: _a,
|
|
5792
5792
|
Check: A1,
|
|
5793
|
-
CheckCircle:
|
|
5793
|
+
CheckCircle: wo,
|
|
5794
5794
|
CheckCircleLine: Za,
|
|
5795
|
-
CheckDouble:
|
|
5795
|
+
CheckDouble: xo,
|
|
5796
5796
|
ChevronDown: H1,
|
|
5797
5797
|
ChevronLeft: qt,
|
|
5798
5798
|
ChevronRight: c1,
|
|
5799
5799
|
ChevronUp: Xt,
|
|
5800
5800
|
Chip: za,
|
|
5801
|
-
Circle:
|
|
5802
|
-
Clock:
|
|
5801
|
+
Circle: ko,
|
|
5802
|
+
Clock: bo,
|
|
5803
5803
|
ClockBack: Wa,
|
|
5804
5804
|
ClockPlus: Xa,
|
|
5805
5805
|
Cloud: Ka,
|
|
5806
|
-
Code:
|
|
5806
|
+
Code: Lo,
|
|
5807
5807
|
Coffee: Ja,
|
|
5808
5808
|
Command: tc,
|
|
5809
|
-
Comment:
|
|
5810
|
-
Completed:
|
|
5809
|
+
Comment: yo,
|
|
5810
|
+
Completed: Mo,
|
|
5811
5811
|
Computer: nc,
|
|
5812
5812
|
Contactless: sc,
|
|
5813
5813
|
CornerHandle: ac,
|
|
5814
5814
|
CreditCard: lc,
|
|
5815
5815
|
Cross: Me,
|
|
5816
|
-
CrossedCircle:
|
|
5816
|
+
CrossedCircle: Eo,
|
|
5817
5817
|
Crown: hc,
|
|
5818
5818
|
CursorClick: uc,
|
|
5819
5819
|
Delete: Yt,
|
|
5820
5820
|
Deny: pc,
|
|
5821
|
-
Descending:
|
|
5821
|
+
Descending: Ro,
|
|
5822
5822
|
Desktop: Cc,
|
|
5823
5823
|
DollarBill: wc,
|
|
5824
5824
|
DollarReset: kc,
|
|
5825
5825
|
DottedCircle: Kt,
|
|
5826
5826
|
Download: Ne,
|
|
5827
|
-
DropdownDefault:
|
|
5828
|
-
DropdownOpen:
|
|
5827
|
+
DropdownDefault: No,
|
|
5828
|
+
DropdownOpen: Fo,
|
|
5829
5829
|
Ellipsis: Qt,
|
|
5830
5830
|
EllipsisHorizontal: Jt,
|
|
5831
|
-
Envelope:
|
|
5831
|
+
Envelope: So,
|
|
5832
5832
|
EnvelopeOpen: Lc,
|
|
5833
|
-
Equal:
|
|
5834
|
-
EqualApproximately:
|
|
5835
|
-
EqualGreater:
|
|
5836
|
-
EqualLess:
|
|
5833
|
+
Equal: Vo,
|
|
5834
|
+
EqualApproximately: To,
|
|
5835
|
+
EqualGreater: Ao,
|
|
5836
|
+
EqualLess: Ho,
|
|
5837
5837
|
Exit: Mc,
|
|
5838
5838
|
ExternalLink: er,
|
|
5839
|
-
EyeInvisible:
|
|
5840
|
-
EyeVisible:
|
|
5841
|
-
FaceNegative:
|
|
5842
|
-
FaceNeutral:
|
|
5843
|
-
FacePositive:
|
|
5844
|
-
FaceSuperNegative:
|
|
5845
|
-
FaceSuperPositive:
|
|
5839
|
+
EyeInvisible: Bo,
|
|
5840
|
+
EyeVisible: $o,
|
|
5841
|
+
FaceNegative: Io,
|
|
5842
|
+
FaceNeutral: Po,
|
|
5843
|
+
FacePositive: jo,
|
|
5844
|
+
FaceSuperNegative: Do,
|
|
5845
|
+
FaceSuperPositive: _o,
|
|
5846
5846
|
Feed: Rc,
|
|
5847
5847
|
File: Fc,
|
|
5848
5848
|
FileFilled: Vc,
|
|
5849
5849
|
FileSigned: Ac,
|
|
5850
5850
|
Files: Bc,
|
|
5851
|
-
Filter:
|
|
5851
|
+
Filter: Oo,
|
|
5852
5852
|
FitView: Ic,
|
|
5853
5853
|
Flag: jc,
|
|
5854
5854
|
Flask: _c,
|
|
5855
|
-
Folder:
|
|
5855
|
+
Folder: Zo,
|
|
5856
5856
|
Folders: Zc,
|
|
5857
5857
|
Globe: zc,
|
|
5858
5858
|
Graph: Wc,
|
|
5859
|
-
Greater:
|
|
5859
|
+
Greater: Uo,
|
|
5860
5860
|
Group: Xc,
|
|
5861
5861
|
GroupBy: Kc,
|
|
5862
|
-
Handle:
|
|
5862
|
+
Handle: zo,
|
|
5863
5863
|
Handshake: Jc,
|
|
5864
5864
|
HardDrive: t0,
|
|
5865
|
-
Heading1:
|
|
5866
|
-
Heading2:
|
|
5867
|
-
Heading3:
|
|
5865
|
+
Heading1: Go,
|
|
5866
|
+
Heading2: Wo,
|
|
5867
|
+
Heading3: qo,
|
|
5868
5868
|
Headset: n0,
|
|
5869
5869
|
Heart: s0,
|
|
5870
5870
|
HoldHeart: a0,
|
|
5871
5871
|
Home: l0,
|
|
5872
5872
|
Hub: u0,
|
|
5873
|
-
Image:
|
|
5874
|
-
InProgressTask:
|
|
5873
|
+
Image: Xo,
|
|
5874
|
+
InProgressTask: Yo,
|
|
5875
5875
|
Inbox: h0,
|
|
5876
5876
|
Info: p0,
|
|
5877
|
-
InfoCircle:
|
|
5878
|
-
InfoCircleLine:
|
|
5877
|
+
InfoCircle: Ko,
|
|
5878
|
+
InfoCircleLine: Qo,
|
|
5879
5879
|
InputField: C0,
|
|
5880
|
-
Italic:
|
|
5881
|
-
Kanban:
|
|
5880
|
+
Italic: Jo,
|
|
5881
|
+
Kanban: es,
|
|
5882
5882
|
Keyboard: w0,
|
|
5883
5883
|
Laptop: k0,
|
|
5884
|
-
LayersFront:
|
|
5885
|
-
Less:
|
|
5886
|
-
Lightbulb:
|
|
5887
|
-
Link:
|
|
5884
|
+
LayersFront: ts,
|
|
5885
|
+
Less: rs,
|
|
5886
|
+
Lightbulb: Mr,
|
|
5887
|
+
Link: ns,
|
|
5888
5888
|
LinkRemove: y0,
|
|
5889
|
-
List:
|
|
5890
|
-
LockLocked:
|
|
5889
|
+
List: os,
|
|
5890
|
+
LockLocked: ss,
|
|
5891
5891
|
LockUnlocked: E0,
|
|
5892
|
-
LogoAvatar:
|
|
5892
|
+
LogoAvatar: is,
|
|
5893
5893
|
LogoEruditai: N0,
|
|
5894
5894
|
LogoTravelperk: S0,
|
|
5895
5895
|
Marker: T0,
|
|
5896
5896
|
Marketplace: H0,
|
|
5897
5897
|
Masonry: $0,
|
|
5898
5898
|
Maximize: tr,
|
|
5899
|
-
Megaphone:
|
|
5900
|
-
Menu:
|
|
5899
|
+
Megaphone: as,
|
|
5900
|
+
Menu: cs,
|
|
5901
5901
|
MessageFilled: P0,
|
|
5902
5902
|
MessageFrown: D0,
|
|
5903
5903
|
MessageHeart: O0,
|
|
5904
5904
|
Messages: U0,
|
|
5905
|
-
Microphone:
|
|
5905
|
+
Microphone: Er,
|
|
5906
5906
|
MicrophoneNegative: W0,
|
|
5907
5907
|
Minimize: rr,
|
|
5908
|
-
Minus:
|
|
5908
|
+
Minus: ls,
|
|
5909
5909
|
Mobile: X0,
|
|
5910
|
-
Money:
|
|
5910
|
+
Money: Rr,
|
|
5911
5911
|
MoneyBag: Q0,
|
|
5912
|
-
MonitorDot:
|
|
5913
|
-
MonitorSmartphone:
|
|
5914
|
-
Moon:
|
|
5915
|
-
Mouse:
|
|
5916
|
-
MoveDown:
|
|
5917
|
-
MoveTop:
|
|
5918
|
-
MoveUp:
|
|
5919
|
-
Multitask:
|
|
5912
|
+
MonitorDot: e5,
|
|
5913
|
+
MonitorSmartphone: r5,
|
|
5914
|
+
Moon: o5,
|
|
5915
|
+
Mouse: i5,
|
|
5916
|
+
MoveDown: ds,
|
|
5917
|
+
MoveTop: c5,
|
|
5918
|
+
MoveUp: us,
|
|
5919
|
+
Multitask: d5,
|
|
5920
5920
|
New: O1,
|
|
5921
|
-
Numbers:
|
|
5922
|
-
Office:
|
|
5923
|
-
OlList:
|
|
5924
|
-
Organization:
|
|
5925
|
-
PalmTree:
|
|
5921
|
+
Numbers: h5,
|
|
5922
|
+
Office: p5,
|
|
5923
|
+
OlList: fs,
|
|
5924
|
+
Organization: C5,
|
|
5925
|
+
PalmTree: w5,
|
|
5926
5926
|
Paperclip: nr,
|
|
5927
|
-
PartiallyCompleted:
|
|
5928
|
-
Password:
|
|
5929
|
-
PauseCircle:
|
|
5930
|
-
Pencil:
|
|
5931
|
-
People:
|
|
5932
|
-
Person:
|
|
5933
|
-
PersonMinus:
|
|
5934
|
-
PersonNegative:
|
|
5935
|
-
PersonPlus:
|
|
5936
|
-
Phone:
|
|
5937
|
-
Pig:
|
|
5938
|
-
Pin:
|
|
5939
|
-
PixBrazil:
|
|
5940
|
-
Placeholder:
|
|
5941
|
-
Plane:
|
|
5942
|
-
Plus:
|
|
5943
|
-
Present:
|
|
5944
|
-
Printer:
|
|
5945
|
-
Proyector:
|
|
5946
|
-
PushPin:
|
|
5947
|
-
PushPinSolid:
|
|
5948
|
-
Question:
|
|
5927
|
+
PartiallyCompleted: k5,
|
|
5928
|
+
Password: L5,
|
|
5929
|
+
PauseCircle: M5,
|
|
5930
|
+
Pencil: hs,
|
|
5931
|
+
People: R5,
|
|
5932
|
+
Person: gs,
|
|
5933
|
+
PersonMinus: F5,
|
|
5934
|
+
PersonNegative: ps,
|
|
5935
|
+
PersonPlus: V5,
|
|
5936
|
+
Phone: A5,
|
|
5937
|
+
Pig: B5,
|
|
5938
|
+
Pin: I5,
|
|
5939
|
+
PixBrazil: j5,
|
|
5940
|
+
Placeholder: ms,
|
|
5941
|
+
Plane: _5,
|
|
5942
|
+
Plus: Cs,
|
|
5943
|
+
Present: Z5,
|
|
5944
|
+
Printer: z5,
|
|
5945
|
+
Proyector: W5,
|
|
5946
|
+
PushPin: Nr,
|
|
5947
|
+
PushPinSolid: Y5,
|
|
5948
|
+
Question: vs,
|
|
5949
5949
|
Quote: or,
|
|
5950
|
-
Reaction:
|
|
5951
|
-
Receipt:
|
|
5952
|
-
Record:
|
|
5953
|
-
RemoveFavorite:
|
|
5954
|
-
Replace:
|
|
5950
|
+
Reaction: ws,
|
|
5951
|
+
Receipt: Q5,
|
|
5952
|
+
Record: el,
|
|
5953
|
+
RemoveFavorite: rl,
|
|
5954
|
+
Replace: ol,
|
|
5955
5955
|
Reply: Z1,
|
|
5956
|
-
Reset:
|
|
5957
|
-
Rocket:
|
|
5958
|
-
Salad:
|
|
5959
|
-
Save:
|
|
5960
|
-
Schedule:
|
|
5956
|
+
Reset: xs,
|
|
5957
|
+
Rocket: al,
|
|
5958
|
+
Salad: ll,
|
|
5959
|
+
Save: ul,
|
|
5960
|
+
Schedule: hl,
|
|
5961
5961
|
Search: B1,
|
|
5962
|
-
SearchPerson:
|
|
5963
|
-
Settings:
|
|
5964
|
-
Share:
|
|
5965
|
-
Shield:
|
|
5966
|
-
ShoppingCart:
|
|
5967
|
-
SignPost:
|
|
5968
|
-
Sleep:
|
|
5962
|
+
SearchPerson: pl,
|
|
5963
|
+
Settings: Cl,
|
|
5964
|
+
Share: ks,
|
|
5965
|
+
Shield: wl,
|
|
5966
|
+
ShoppingCart: Fr,
|
|
5967
|
+
SignPost: bl,
|
|
5968
|
+
Sleep: yl,
|
|
5969
5969
|
Sliders: $1,
|
|
5970
|
-
SolidPause:
|
|
5971
|
-
SolidPlay:
|
|
5970
|
+
SolidPause: bs,
|
|
5971
|
+
SolidPlay: Ls,
|
|
5972
5972
|
SolidStop: sr,
|
|
5973
|
-
Sort:
|
|
5974
|
-
Sparkles:
|
|
5975
|
-
Spinner:
|
|
5976
|
-
Split:
|
|
5977
|
-
Star:
|
|
5978
|
-
StarFilled:
|
|
5979
|
-
Strikethrough:
|
|
5980
|
-
Suitcase:
|
|
5981
|
-
Swap:
|
|
5982
|
-
Table:
|
|
5983
|
-
Tablet: $
|
|
5984
|
-
Tag:
|
|
5985
|
-
Target:
|
|
5986
|
-
TextSize:
|
|
5987
|
-
ThumbsDown:
|
|
5988
|
-
ThumbsDownFilled:
|
|
5989
|
-
ThumbsUp:
|
|
5990
|
-
ThumbsUpFilled:
|
|
5991
|
-
Timer:
|
|
5992
|
-
Underline:
|
|
5993
|
-
Upload:
|
|
5973
|
+
Sort: El,
|
|
5974
|
+
Sparkles: Nl,
|
|
5975
|
+
Spinner: ys,
|
|
5976
|
+
Split: Sl,
|
|
5977
|
+
Star: Ms,
|
|
5978
|
+
StarFilled: Es,
|
|
5979
|
+
Strikethrough: Rs,
|
|
5980
|
+
Suitcase: Tl,
|
|
5981
|
+
Swap: Hl,
|
|
5982
|
+
Table: Ns,
|
|
5983
|
+
Tablet: $l,
|
|
5984
|
+
Tag: Pl,
|
|
5985
|
+
Target: Dl,
|
|
5986
|
+
TextSize: Fs,
|
|
5987
|
+
ThumbsDown: Sr,
|
|
5988
|
+
ThumbsDownFilled: Vr,
|
|
5989
|
+
ThumbsUp: Tr,
|
|
5990
|
+
ThumbsUpFilled: Ar,
|
|
5991
|
+
Timer: Gl,
|
|
5992
|
+
Underline: Ss,
|
|
5993
|
+
Upload: Vs,
|
|
5994
5994
|
Upsell: ir,
|
|
5995
|
-
UserProtected:
|
|
5996
|
-
Video:
|
|
5997
|
-
VideoRecorder:
|
|
5998
|
-
VideoRecorderNegative:
|
|
5995
|
+
UserProtected: ql,
|
|
5996
|
+
Video: Ts,
|
|
5997
|
+
VideoRecorder: Yl,
|
|
5998
|
+
VideoRecorderNegative: Ql,
|
|
5999
5999
|
Wallet: e2,
|
|
6000
|
-
Warning:
|
|
6000
|
+
Warning: As,
|
|
6001
6001
|
Watch: r2,
|
|
6002
6002
|
WhatsappChat: o2,
|
|
6003
6003
|
Wifi: i2,
|
|
6004
|
-
Windows:
|
|
6004
|
+
Windows: Hs
|
|
6005
6005
|
}, Symbol.toStringTag, { value: "Module" })), c2 = (e, t) => /* @__PURE__ */ r(
|
|
6006
6006
|
"svg",
|
|
6007
6007
|
{
|
|
@@ -6030,7 +6030,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
6030
6030
|
"variant",
|
|
6031
6031
|
"loading",
|
|
6032
6032
|
"emoji"
|
|
6033
|
-
],
|
|
6033
|
+
], Hr = C((e, t) => {
|
|
6034
6034
|
const n = d2.reduce((o, s) => {
|
|
6035
6035
|
const { [s]: i, ...a } = o;
|
|
6036
6036
|
return a;
|
|
@@ -6045,7 +6045,7 @@ const k5 = (e, t) => /* @__PURE__ */ d(
|
|
|
6045
6045
|
}
|
|
6046
6046
|
);
|
|
6047
6047
|
});
|
|
6048
|
-
|
|
6048
|
+
Hr.displayName = "AIButton";
|
|
6049
6049
|
const je = Se({
|
|
6050
6050
|
base: "text-base text-f1-foreground",
|
|
6051
6051
|
variants: {
|
|
@@ -6126,7 +6126,7 @@ const je = Se({
|
|
|
6126
6126
|
h,
|
|
6127
6127
|
{
|
|
6128
6128
|
...f,
|
|
6129
|
-
className:
|
|
6129
|
+
className: E(
|
|
6130
6130
|
je({ variant: t, align: n }),
|
|
6131
6131
|
o,
|
|
6132
6132
|
"inline-flex gap-0.5"
|
|
@@ -6152,7 +6152,7 @@ const je = Se({
|
|
|
6152
6152
|
lines: g,
|
|
6153
6153
|
noTooltip: a,
|
|
6154
6154
|
tag: h,
|
|
6155
|
-
className:
|
|
6155
|
+
className: E(je({ variant: t, align: n }), o),
|
|
6156
6156
|
markdown: l,
|
|
6157
6157
|
...f,
|
|
6158
6158
|
children: e
|
|
@@ -6160,19 +6160,19 @@ const je = Se({
|
|
|
6160
6160
|
);
|
|
6161
6161
|
}
|
|
6162
6162
|
if (l) {
|
|
6163
|
-
const g =
|
|
6163
|
+
const g = Bs(e);
|
|
6164
6164
|
return m ? _e(
|
|
6165
6165
|
h,
|
|
6166
6166
|
{
|
|
6167
6167
|
...f,
|
|
6168
|
-
className:
|
|
6168
|
+
className: E(je({ variant: t, align: n }), o),
|
|
6169
6169
|
ref: u
|
|
6170
6170
|
},
|
|
6171
6171
|
/* @__PURE__ */ r("span", { dangerouslySetInnerHTML: { __html: g } }),
|
|
6172
6172
|
m
|
|
6173
6173
|
) : _e(h, {
|
|
6174
6174
|
...f,
|
|
6175
|
-
className:
|
|
6175
|
+
className: E(je({ variant: t, align: n }), o),
|
|
6176
6176
|
ref: u,
|
|
6177
6177
|
dangerouslySetInnerHTML: { __html: g }
|
|
6178
6178
|
});
|
|
@@ -6181,7 +6181,7 @@ const je = Se({
|
|
|
6181
6181
|
h,
|
|
6182
6182
|
{
|
|
6183
6183
|
...f,
|
|
6184
|
-
className:
|
|
6184
|
+
className: E(je({ variant: t, align: n }), o),
|
|
6185
6185
|
ref: u
|
|
6186
6186
|
},
|
|
6187
6187
|
e,
|
|
@@ -6190,7 +6190,7 @@ const je = Se({
|
|
|
6190
6190
|
}
|
|
6191
6191
|
);
|
|
6192
6192
|
N1.displayName = "Text";
|
|
6193
|
-
const
|
|
6193
|
+
const Br = {
|
|
6194
6194
|
background: {
|
|
6195
6195
|
transparent: "bg-transparent",
|
|
6196
6196
|
primary: "bg-f1-background",
|
|
@@ -6215,7 +6215,7 @@ const $r = {
|
|
|
6215
6215
|
"selected-bold": "bg-f1-background-selected-bold",
|
|
6216
6216
|
overlay: "bg-f1-background-overlay"
|
|
6217
6217
|
}
|
|
6218
|
-
},
|
|
6218
|
+
}, $r = {
|
|
6219
6219
|
// -- Color --
|
|
6220
6220
|
borderColor: {
|
|
6221
6221
|
default: "border-f1-border",
|
|
@@ -6657,14 +6657,14 @@ const $r = {
|
|
|
6657
6657
|
"4/5": "max-h-4/5",
|
|
6658
6658
|
"1/6": "max-h-1/6",
|
|
6659
6659
|
"5/6": "max-h-5/6"
|
|
6660
|
-
},
|
|
6660
|
+
}, Ir = {
|
|
6661
6661
|
width: h2,
|
|
6662
6662
|
height: g2,
|
|
6663
6663
|
minWidth: p2,
|
|
6664
6664
|
minHeight: m2,
|
|
6665
6665
|
maxWidth: C2,
|
|
6666
6666
|
maxHeight: v2
|
|
6667
|
-
},
|
|
6667
|
+
}, Pr = {
|
|
6668
6668
|
display: {
|
|
6669
6669
|
block: "block",
|
|
6670
6670
|
flex: "flex",
|
|
@@ -6680,7 +6680,7 @@ const $r = {
|
|
|
6680
6680
|
fixed: "fixed",
|
|
6681
6681
|
sticky: "sticky"
|
|
6682
6682
|
}
|
|
6683
|
-
},
|
|
6683
|
+
}, jr = {
|
|
6684
6684
|
divider: {
|
|
6685
6685
|
x: "divide-x divide-y-0 divide-solid",
|
|
6686
6686
|
y: "divide-y divide-x-0 divide-solid"
|
|
@@ -6701,7 +6701,7 @@ const $r = {
|
|
|
6701
6701
|
"positive-bold": "divide-f1-border-positive-bold",
|
|
6702
6702
|
promote: "divide-f1-border-promote"
|
|
6703
6703
|
}
|
|
6704
|
-
},
|
|
6704
|
+
}, Dr = {
|
|
6705
6705
|
gap: {
|
|
6706
6706
|
none: "gap-0",
|
|
6707
6707
|
xs: "gap-0.5",
|
|
@@ -6749,7 +6749,7 @@ const $r = {
|
|
|
6749
6749
|
true: "shrink",
|
|
6750
6750
|
false: "shrink-0"
|
|
6751
6751
|
}
|
|
6752
|
-
}, w2 = {},
|
|
6752
|
+
}, w2 = {}, _r = {
|
|
6753
6753
|
columns: {
|
|
6754
6754
|
none: "grid-cols-none",
|
|
6755
6755
|
1: "grid-cols-1",
|
|
@@ -6814,7 +6814,7 @@ const $r = {
|
|
|
6814
6814
|
6: "row-span-6",
|
|
6815
6815
|
full: "row-span-full"
|
|
6816
6816
|
}
|
|
6817
|
-
},
|
|
6817
|
+
}, Or = {
|
|
6818
6818
|
top: {
|
|
6819
6819
|
none: "top-0",
|
|
6820
6820
|
xs: "top-1",
|
|
@@ -6863,7 +6863,7 @@ const $r = {
|
|
|
6863
6863
|
"4xl": "left-12",
|
|
6864
6864
|
"5xl": "left-16"
|
|
6865
6865
|
}
|
|
6866
|
-
},
|
|
6866
|
+
}, Zr = {
|
|
6867
6867
|
margin: {
|
|
6868
6868
|
none: "m-0",
|
|
6869
6869
|
xs: "m-1",
|
|
@@ -6960,7 +6960,7 @@ const $r = {
|
|
|
6960
6960
|
hidden: "overflow-hidden",
|
|
6961
6961
|
auto: "overflow-auto",
|
|
6962
6962
|
scroll: "overflow-scroll"
|
|
6963
|
-
},
|
|
6963
|
+
}, Ur = {
|
|
6964
6964
|
overflow: k2,
|
|
6965
6965
|
overflowX: {
|
|
6966
6966
|
visible: "overflow-x-visible",
|
|
@@ -6974,7 +6974,7 @@ const $r = {
|
|
|
6974
6974
|
auto: "overflow-y-auto",
|
|
6975
6975
|
scroll: "overflow-y-scroll"
|
|
6976
6976
|
}
|
|
6977
|
-
}, b2 = {},
|
|
6977
|
+
}, b2 = {}, zr = {
|
|
6978
6978
|
padding: {
|
|
6979
6979
|
none: "p-0",
|
|
6980
6980
|
xs: "p-1",
|
|
@@ -7067,7 +7067,7 @@ const $r = {
|
|
|
7067
7067
|
lg: "shadow-lg",
|
|
7068
7068
|
xl: "shadow-xl"
|
|
7069
7069
|
}
|
|
7070
|
-
},
|
|
7070
|
+
}, Gr = {
|
|
7071
7071
|
zIndex: {
|
|
7072
7072
|
auto: "z-auto",
|
|
7073
7073
|
0: "z-0",
|
|
@@ -7078,18 +7078,18 @@ const $r = {
|
|
|
7078
7078
|
50: "z-50"
|
|
7079
7079
|
}
|
|
7080
7080
|
}, M2 = {
|
|
7081
|
-
...jr,
|
|
7082
|
-
...Zr,
|
|
7083
|
-
...Gr,
|
|
7084
|
-
...Ur,
|
|
7085
|
-
..._r,
|
|
7086
|
-
...Or,
|
|
7087
7081
|
...Pr,
|
|
7088
|
-
|
|
7089
|
-
...Ir,
|
|
7082
|
+
...Or,
|
|
7090
7083
|
...zr,
|
|
7084
|
+
...Zr,
|
|
7091
7085
|
...Dr,
|
|
7092
|
-
...
|
|
7086
|
+
..._r,
|
|
7087
|
+
...Ir,
|
|
7088
|
+
...Br,
|
|
7089
|
+
...$r,
|
|
7090
|
+
...Ur,
|
|
7091
|
+
...jr,
|
|
7092
|
+
...Gr
|
|
7093
7093
|
};
|
|
7094
7094
|
function E2(e, t) {
|
|
7095
7095
|
return t.split(" ").map((n) => `${e}:${n}`).join(" ");
|
|
@@ -7108,19 +7108,19 @@ function R2(e, t) {
|
|
|
7108
7108
|
const N2 = Se({
|
|
7109
7109
|
base: "",
|
|
7110
7110
|
variants: {
|
|
7111
|
-
...jr,
|
|
7112
|
-
...Zr,
|
|
7113
|
-
...Gr,
|
|
7114
|
-
...Ur,
|
|
7115
|
-
..._r,
|
|
7116
|
-
...Or,
|
|
7117
7111
|
...Pr,
|
|
7118
|
-
|
|
7119
|
-
...Ir,
|
|
7112
|
+
...Or,
|
|
7120
7113
|
...zr,
|
|
7114
|
+
...Zr,
|
|
7121
7115
|
...Dr,
|
|
7116
|
+
..._r,
|
|
7117
|
+
...Ir,
|
|
7118
|
+
...Br,
|
|
7119
|
+
...$r,
|
|
7120
|
+
...Ur,
|
|
7121
|
+
...jr,
|
|
7122
7122
|
...y2,
|
|
7123
|
-
...
|
|
7123
|
+
...Gr
|
|
7124
7124
|
},
|
|
7125
7125
|
defaultVariants: {
|
|
7126
7126
|
...L2,
|
|
@@ -7129,7 +7129,7 @@ const N2 = Se({
|
|
|
7129
7129
|
...f2,
|
|
7130
7130
|
...b2
|
|
7131
7131
|
}
|
|
7132
|
-
}), F2 = ["sm", "md", "lg", "xl"],
|
|
7132
|
+
}), F2 = ["sm", "md", "lg", "xl"], Wr = C(
|
|
7133
7133
|
({
|
|
7134
7134
|
// Display & Position
|
|
7135
7135
|
display: e,
|
|
@@ -7152,20 +7152,20 @@ const N2 = Se({
|
|
|
7152
7152
|
marginX: w,
|
|
7153
7153
|
marginY: v,
|
|
7154
7154
|
marginTop: x,
|
|
7155
|
-
marginBottom:
|
|
7156
|
-
marginLeft:
|
|
7155
|
+
marginBottom: A,
|
|
7156
|
+
marginLeft: F,
|
|
7157
7157
|
marginRight: R,
|
|
7158
7158
|
// Gap
|
|
7159
|
-
gap:
|
|
7159
|
+
gap: M,
|
|
7160
7160
|
// Grid
|
|
7161
7161
|
columns: L,
|
|
7162
|
-
rows:
|
|
7162
|
+
rows: S,
|
|
7163
7163
|
colSpan: b,
|
|
7164
|
-
colStart:
|
|
7164
|
+
colStart: V,
|
|
7165
7165
|
rowSpan: k,
|
|
7166
7166
|
// Dimensions
|
|
7167
7167
|
width: y,
|
|
7168
|
-
height:
|
|
7168
|
+
height: T,
|
|
7169
7169
|
minWidth: j,
|
|
7170
7170
|
minHeight: _,
|
|
7171
7171
|
maxWidth: Z,
|
|
@@ -7184,7 +7184,7 @@ const N2 = Se({
|
|
|
7184
7184
|
borderRadiusTopRight: re,
|
|
7185
7185
|
borderRadiusBottomLeft: ie,
|
|
7186
7186
|
borderRadiusBottomRight: ue,
|
|
7187
|
-
borderStyle:
|
|
7187
|
+
borderStyle: N,
|
|
7188
7188
|
// Overflow
|
|
7189
7189
|
overflow: B,
|
|
7190
7190
|
overflowX: H,
|
|
@@ -7215,7 +7215,7 @@ const N2 = Se({
|
|
|
7215
7215
|
"div",
|
|
7216
7216
|
{
|
|
7217
7217
|
ref: Ae,
|
|
7218
|
-
className:
|
|
7218
|
+
className: E(
|
|
7219
7219
|
Pe && "border-0",
|
|
7220
7220
|
N2({
|
|
7221
7221
|
display: e,
|
|
@@ -7236,17 +7236,17 @@ const N2 = Se({
|
|
|
7236
7236
|
marginX: w,
|
|
7237
7237
|
marginY: v,
|
|
7238
7238
|
marginTop: x,
|
|
7239
|
-
marginBottom:
|
|
7240
|
-
marginLeft:
|
|
7239
|
+
marginBottom: A,
|
|
7240
|
+
marginLeft: F,
|
|
7241
7241
|
marginRight: R,
|
|
7242
|
-
gap:
|
|
7242
|
+
gap: M,
|
|
7243
7243
|
columns: L,
|
|
7244
|
-
rows:
|
|
7244
|
+
rows: S,
|
|
7245
7245
|
colSpan: b,
|
|
7246
|
-
colStart:
|
|
7246
|
+
colStart: V,
|
|
7247
7247
|
rowSpan: k,
|
|
7248
7248
|
width: y,
|
|
7249
|
-
height:
|
|
7249
|
+
height: T,
|
|
7250
7250
|
minWidth: j,
|
|
7251
7251
|
minHeight: _,
|
|
7252
7252
|
maxWidth: Z,
|
|
@@ -7263,7 +7263,7 @@ const N2 = Se({
|
|
|
7263
7263
|
borderRadiusTopRight: re,
|
|
7264
7264
|
borderRadiusBottomLeft: ie,
|
|
7265
7265
|
borderRadiusBottomRight: ue,
|
|
7266
|
-
borderStyle:
|
|
7266
|
+
borderStyle: N,
|
|
7267
7267
|
overflow: B,
|
|
7268
7268
|
overflowX: H,
|
|
7269
7269
|
overflowY: D,
|
|
@@ -7287,13 +7287,13 @@ const N2 = Se({
|
|
|
7287
7287
|
);
|
|
7288
7288
|
}
|
|
7289
7289
|
);
|
|
7290
|
-
|
|
7291
|
-
const C1 =
|
|
7290
|
+
Wr.displayName = "F0Box";
|
|
7291
|
+
const C1 = $s(
|
|
7292
7292
|
{
|
|
7293
7293
|
name: "F0Box",
|
|
7294
7294
|
type: "layout"
|
|
7295
7295
|
},
|
|
7296
|
-
|
|
7296
|
+
Wr
|
|
7297
7297
|
), S2 = Se({
|
|
7298
7298
|
// Gap is a fixed `gap-md` (8px) for every button group — a constant rhythm
|
|
7299
7299
|
// across surfaces, not a per-call knob.
|
|
@@ -7387,7 +7387,7 @@ const C1 = Is(
|
|
|
7387
7387
|
), U1 = (e, t, n) => {
|
|
7388
7388
|
const { id: o, type: s, ...i } = e;
|
|
7389
7389
|
return /* @__PURE__ */ r(
|
|
7390
|
-
|
|
7390
|
+
Ds,
|
|
7391
7391
|
{
|
|
7392
7392
|
...i,
|
|
7393
7393
|
size: t,
|
|
@@ -7395,7 +7395,7 @@ const C1 = Is(
|
|
|
7395
7395
|
},
|
|
7396
7396
|
o
|
|
7397
7397
|
);
|
|
7398
|
-
},
|
|
7398
|
+
}, qr = (e, t) => /* @__PURE__ */ r(
|
|
7399
7399
|
Ce,
|
|
7400
7400
|
{
|
|
7401
7401
|
label: e.label,
|
|
@@ -7406,7 +7406,7 @@ const C1 = Is(
|
|
|
7406
7406
|
target: e.target
|
|
7407
7407
|
},
|
|
7408
7408
|
"secondary-link"
|
|
7409
|
-
),
|
|
7409
|
+
), Xr = (e, t) => n1(e) ? U1(e, t, "default") : o1(e, t, "default");
|
|
7410
7410
|
function nt({
|
|
7411
7411
|
primaryAction: e,
|
|
7412
7412
|
secondaryActions: t,
|
|
@@ -7419,17 +7419,17 @@ function nt({
|
|
|
7419
7419
|
reverseOnStack: c = !1,
|
|
7420
7420
|
className: f
|
|
7421
7421
|
}) {
|
|
7422
|
-
const u = $(null), { width: h = 0 } =
|
|
7422
|
+
const u = $(null), { width: h = 0 } = Is({
|
|
7423
7423
|
ref: u,
|
|
7424
7424
|
box: "border-box"
|
|
7425
7425
|
}), m = a === "sm" || a === "md" ? v1[a] : v1.md, g = ar(`(min-width: ${m}px)`, {
|
|
7426
7426
|
initializeWithValue: !1
|
|
7427
|
-
}), p = a === "none" ? !0 : a === "container-md" ? h >= v1["container-md"] : g, w = typeof o == "string" ? o : o.base, v = typeof o == "string" ? o : o.md, x = p ? v : w,
|
|
7427
|
+
}), p = a === "none" ? !0 : a === "container-md" ? h >= v1["container-md"] : g, w = typeof o == "string" ? o : o.base, v = typeof o == "string" ? o : o.md, x = p ? v : w, A = Array.isArray(
|
|
7428
7428
|
t
|
|
7429
|
-
) ? t : [],
|
|
7429
|
+
) ? t : [], F = t != null && !Array.isArray(t) ? t : void 0, R = {
|
|
7430
7430
|
primaryAction: e,
|
|
7431
|
-
secondaryItems:
|
|
7432
|
-
secondaryLink:
|
|
7431
|
+
secondaryItems: A,
|
|
7432
|
+
secondaryLink: F,
|
|
7433
7433
|
otherActions: n,
|
|
7434
7434
|
size: x,
|
|
7435
7435
|
gap: s,
|
|
@@ -7440,7 +7440,7 @@ function nt({
|
|
|
7440
7440
|
{
|
|
7441
7441
|
ref: u,
|
|
7442
7442
|
role: "group",
|
|
7443
|
-
className:
|
|
7443
|
+
className: E(
|
|
7444
7444
|
p ? "flex w-full items-center" : S2({
|
|
7445
7445
|
align: i,
|
|
7446
7446
|
stack: a,
|
|
@@ -7467,10 +7467,10 @@ function T2({
|
|
|
7467
7467
|
(a) => n1(a) ? U1(a, s, "outline") : o1(a, s, "outline")
|
|
7468
7468
|
);
|
|
7469
7469
|
return /* @__PURE__ */ d(ke, { children: [
|
|
7470
|
-
o.length > 0 && /* @__PURE__ */ r(
|
|
7470
|
+
o.length > 0 && /* @__PURE__ */ r(js, { items: o }),
|
|
7471
7471
|
i,
|
|
7472
|
-
n &&
|
|
7473
|
-
e &&
|
|
7472
|
+
n && qr(n, s),
|
|
7473
|
+
e && Xr(e, s)
|
|
7474
7474
|
] });
|
|
7475
7475
|
}
|
|
7476
7476
|
function A2({
|
|
@@ -7492,26 +7492,26 @@ function A2({
|
|
|
7492
7492
|
visibleItems: h,
|
|
7493
7493
|
overflowItems: m,
|
|
7494
7494
|
isInitialized: g
|
|
7495
|
-
} =
|
|
7495
|
+
} = Ps(l, i);
|
|
7496
7496
|
K(() => {
|
|
7497
7497
|
f.current?.setAttribute("inert", "");
|
|
7498
7498
|
}, [f]);
|
|
7499
|
-
const p = g ? h : l, w = g ? m : [], v = new Set(p.map((b) => b.id)), x = e ?
|
|
7500
|
-
t.forEach((b,
|
|
7499
|
+
const p = g ? h : l, w = g ? m : [], v = new Set(p.map((b) => b.id)), x = e ? Xr(e, s) : null, A = t.filter(n1), F = t[t.length - 1], R = F != null && F1(F) && (A.length > 0 || x != null), M = [];
|
|
7500
|
+
t.forEach((b, V) => {
|
|
7501
7501
|
if (!n1(b)) {
|
|
7502
7502
|
if (F1(b)) {
|
|
7503
|
-
|
|
7503
|
+
M.push({ kind: "sep", key: `sep-${V}` });
|
|
7504
7504
|
return;
|
|
7505
7505
|
}
|
|
7506
|
-
v.has(b.id) &&
|
|
7506
|
+
v.has(b.id) && M.push({
|
|
7507
7507
|
kind: "node",
|
|
7508
7508
|
node: o1(b, s, "outline")
|
|
7509
7509
|
});
|
|
7510
7510
|
}
|
|
7511
7511
|
});
|
|
7512
|
-
const L =
|
|
7513
|
-
(b,
|
|
7514
|
-
),
|
|
7512
|
+
const L = M.filter(
|
|
7513
|
+
(b, V) => b.kind === "node" || M[V - 1]?.kind === "node" && M[V + 1]?.kind === "node"
|
|
7514
|
+
), S = [
|
|
7515
7515
|
...w.map(
|
|
7516
7516
|
(b) => ({
|
|
7517
7517
|
label: b.label,
|
|
@@ -7529,7 +7529,7 @@ function A2({
|
|
|
7529
7529
|
"div",
|
|
7530
7530
|
{
|
|
7531
7531
|
ref: c,
|
|
7532
|
-
className:
|
|
7532
|
+
className: E(
|
|
7533
7533
|
"relative flex min-w-0 flex-1 items-center",
|
|
7534
7534
|
a === "end" && "justify-end"
|
|
7535
7535
|
),
|
|
@@ -7547,15 +7547,15 @@ function A2({
|
|
|
7547
7547
|
)
|
|
7548
7548
|
}
|
|
7549
7549
|
),
|
|
7550
|
-
|
|
7550
|
+
S.length > 0 && /* @__PURE__ */ r("div", { ref: u, children: /* @__PURE__ */ r(l1, { items: S, icon: Qt, size: s }) }),
|
|
7551
7551
|
L.map(
|
|
7552
7552
|
(b) => b.kind === "sep" ? /* @__PURE__ */ r(ot, {}, b.key) : b.node
|
|
7553
7553
|
),
|
|
7554
|
-
n &&
|
|
7554
|
+
n && qr(n, s)
|
|
7555
7555
|
]
|
|
7556
7556
|
}
|
|
7557
7557
|
),
|
|
7558
|
-
|
|
7558
|
+
A.map(
|
|
7559
7559
|
(b) => U1(b, s, "outline")
|
|
7560
7560
|
),
|
|
7561
7561
|
R && /* @__PURE__ */ r(ot, {}),
|
|
@@ -7619,7 +7619,7 @@ function j2({
|
|
|
7619
7619
|
return /* @__PURE__ */ r(
|
|
7620
7620
|
"div",
|
|
7621
7621
|
{
|
|
7622
|
-
className:
|
|
7622
|
+
className: E(
|
|
7623
7623
|
"flex items-center justify-end",
|
|
7624
7624
|
w1[l],
|
|
7625
7625
|
l !== "never" && a && "mt-3 pt-3"
|
|
@@ -7636,15 +7636,11 @@ function j2({
|
|
|
7636
7636
|
)
|
|
7637
7637
|
}
|
|
7638
7638
|
);
|
|
7639
|
-
const f =
|
|
7640
|
-
"relative z-[1]",
|
|
7639
|
+
const f = E(
|
|
7641
7640
|
B2[l],
|
|
7642
7641
|
w1[l],
|
|
7643
7642
|
l !== "never" && a && "mt-3 pt-3"
|
|
7644
|
-
), u = (p) => (
|
|
7645
|
-
// Keep action clicks from bubbling to the row's onClick / overlay link.
|
|
7646
|
-
/* @__PURE__ */ r("div", { className: f, onClick: (w) => w.stopPropagation(), children: p })
|
|
7647
|
-
);
|
|
7643
|
+
), u = (p) => /* @__PURE__ */ r("div", { className: f, children: p });
|
|
7648
7644
|
if (o || s) {
|
|
7649
7645
|
const p = (v) => {
|
|
7650
7646
|
const x = s ? {
|
|
@@ -7654,7 +7650,7 @@ function j2({
|
|
|
7654
7650
|
hideLabel: v,
|
|
7655
7651
|
disabled: s.disabled,
|
|
7656
7652
|
onClick: s.onClick
|
|
7657
|
-
} : void 0,
|
|
7653
|
+
} : void 0, A = o ? {
|
|
7658
7654
|
id: "confirm",
|
|
7659
7655
|
icon: A1,
|
|
7660
7656
|
label: o.label ?? "Confirm",
|
|
@@ -7665,7 +7661,7 @@ function j2({
|
|
|
7665
7661
|
return /* @__PURE__ */ r(
|
|
7666
7662
|
nt,
|
|
7667
7663
|
{
|
|
7668
|
-
primaryAction:
|
|
7664
|
+
primaryAction: A,
|
|
7669
7665
|
secondaryActions: x ? [x] : void 0,
|
|
7670
7666
|
size: c,
|
|
7671
7667
|
gap: st
|
|
@@ -7673,30 +7669,18 @@ function j2({
|
|
|
7673
7669
|
);
|
|
7674
7670
|
}, w = (
|
|
7675
7671
|
// Icon-only, inline at the trailing edge.
|
|
7676
|
-
/* @__PURE__ */ r(
|
|
7677
|
-
"div",
|
|
7678
|
-
{
|
|
7679
|
-
className: M(
|
|
7680
|
-
"relative z-[1] min-w-0 flex-1",
|
|
7681
|
-
$2[l]
|
|
7682
|
-
),
|
|
7683
|
-
onClick: (v) => v.stopPropagation(),
|
|
7684
|
-
children: p(!0)
|
|
7685
|
-
}
|
|
7686
|
-
)
|
|
7672
|
+
/* @__PURE__ */ r("div", { className: E("min-w-0 flex-1", $2[l]), children: p(!0) })
|
|
7687
7673
|
);
|
|
7688
7674
|
return l === "never" ? w : /* @__PURE__ */ d(ke, { children: [
|
|
7689
7675
|
w,
|
|
7690
7676
|
/* @__PURE__ */ r(
|
|
7691
7677
|
"div",
|
|
7692
7678
|
{
|
|
7693
|
-
className:
|
|
7694
|
-
"relative z-[1]",
|
|
7679
|
+
className: E(
|
|
7695
7680
|
I2[l],
|
|
7696
7681
|
w1[l],
|
|
7697
7682
|
a && "mt-3 pt-3"
|
|
7698
7683
|
),
|
|
7699
|
-
onClick: (v) => v.stopPropagation(),
|
|
7700
7684
|
children: p(!1)
|
|
7701
7685
|
}
|
|
7702
7686
|
)
|
|
@@ -7735,7 +7719,7 @@ function j2({
|
|
|
7735
7719
|
)
|
|
7736
7720
|
) : null;
|
|
7737
7721
|
}
|
|
7738
|
-
const
|
|
7722
|
+
const Yr = C(
|
|
7739
7723
|
function({
|
|
7740
7724
|
title: t,
|
|
7741
7725
|
description: n,
|
|
@@ -7748,90 +7732,76 @@ const Kr = C(
|
|
|
7748
7732
|
status: f,
|
|
7749
7733
|
inactive: u = !1,
|
|
7750
7734
|
compact: h = !1,
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
stackAt: x = "never"
|
|
7757
|
-
}, S) {
|
|
7758
|
-
const N = !!p && p.visible !== !1, R = /* @__PURE__ */ d(
|
|
7735
|
+
fullHeight: m = !1,
|
|
7736
|
+
alert: g,
|
|
7737
|
+
stackAt: p = "never"
|
|
7738
|
+
}, w) {
|
|
7739
|
+
const v = !!g && g.visible !== !1, x = /* @__PURE__ */ r(
|
|
7759
7740
|
dr,
|
|
7760
7741
|
{
|
|
7761
|
-
ref:
|
|
7762
|
-
className:
|
|
7763
|
-
|
|
7742
|
+
ref: v ? void 0 : w,
|
|
7743
|
+
className: E(
|
|
7744
|
+
// Hover affordance without making the card a click target: the border
|
|
7745
|
+
// and shadow react to hover, but there's no pointer cursor (the row
|
|
7746
|
+
// isn't clickable — only its actions are).
|
|
7747
|
+
"group @container bg-f1-background shadow-none transition-all hover:border-f1-border-hover hover:shadow-md",
|
|
7764
7748
|
h && "p-3",
|
|
7765
|
-
|
|
7766
|
-
m && "focus-within:border-f1-border-hover focus-within:shadow-md hover:border-f1-border-hover hover:shadow-md"
|
|
7749
|
+
m && "h-full"
|
|
7767
7750
|
),
|
|
7768
|
-
style:
|
|
7769
|
-
borderColor:
|
|
7751
|
+
style: v ? {
|
|
7752
|
+
borderColor: _s[g.variant],
|
|
7770
7753
|
borderWidth: "2px"
|
|
7771
7754
|
} : void 0,
|
|
7772
|
-
onClick: w,
|
|
7773
7755
|
"data-testid": "card",
|
|
7774
|
-
children: [
|
|
7775
|
-
|
|
7776
|
-
|
|
7756
|
+
children: /* @__PURE__ */ d("div", { className: H2[p], children: [
|
|
7757
|
+
/* @__PURE__ */ d("div", { className: "flex min-w-0 flex-row items-center gap-3", children: [
|
|
7758
|
+
o && /* @__PURE__ */ r(Os, { avatar: o, size: "lg" }),
|
|
7759
|
+
/* @__PURE__ */ d("div", { className: "flex min-w-0 flex-col gap-0", children: [
|
|
7760
|
+
/* @__PURE__ */ r(
|
|
7761
|
+
N1,
|
|
7762
|
+
{
|
|
7763
|
+
variant: "body",
|
|
7764
|
+
content: t,
|
|
7765
|
+
className: E(
|
|
7766
|
+
"font-medium",
|
|
7767
|
+
u && "text-f1-foreground-secondary line-through"
|
|
7768
|
+
)
|
|
7769
|
+
}
|
|
7770
|
+
),
|
|
7771
|
+
n && /* @__PURE__ */ r(
|
|
7772
|
+
N1,
|
|
7773
|
+
{
|
|
7774
|
+
variant: "description",
|
|
7775
|
+
content: n,
|
|
7776
|
+
className: E(u && "line-through")
|
|
7777
|
+
}
|
|
7778
|
+
)
|
|
7779
|
+
] })
|
|
7780
|
+
] }),
|
|
7781
|
+
/* @__PURE__ */ r(
|
|
7782
|
+
j2,
|
|
7777
7783
|
{
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7784
|
+
primaryAction: s,
|
|
7785
|
+
secondaryActions: i,
|
|
7786
|
+
otherActions: a,
|
|
7787
|
+
confirmAction: l,
|
|
7788
|
+
rejectAction: c,
|
|
7789
|
+
status: f,
|
|
7790
|
+
compact: h,
|
|
7791
|
+
stackAt: p
|
|
7783
7792
|
}
|
|
7784
|
-
)
|
|
7785
|
-
|
|
7786
|
-
/* @__PURE__ */ d("div", { className: "flex min-w-0 flex-row items-center gap-3", children: [
|
|
7787
|
-
o && /* @__PURE__ */ r(Zs, { avatar: o, size: "lg" }),
|
|
7788
|
-
/* @__PURE__ */ d("div", { className: "flex min-w-0 flex-col gap-0", children: [
|
|
7789
|
-
/* @__PURE__ */ r(
|
|
7790
|
-
N1,
|
|
7791
|
-
{
|
|
7792
|
-
variant: "body",
|
|
7793
|
-
content: t,
|
|
7794
|
-
className: M(
|
|
7795
|
-
"font-medium",
|
|
7796
|
-
u && "text-f1-foreground-secondary line-through"
|
|
7797
|
-
)
|
|
7798
|
-
}
|
|
7799
|
-
),
|
|
7800
|
-
n && /* @__PURE__ */ r(
|
|
7801
|
-
N1,
|
|
7802
|
-
{
|
|
7803
|
-
variant: "description",
|
|
7804
|
-
content: n,
|
|
7805
|
-
className: M(u && "line-through")
|
|
7806
|
-
}
|
|
7807
|
-
)
|
|
7808
|
-
] })
|
|
7809
|
-
] }),
|
|
7810
|
-
/* @__PURE__ */ r(
|
|
7811
|
-
j2,
|
|
7812
|
-
{
|
|
7813
|
-
primaryAction: s,
|
|
7814
|
-
secondaryActions: i,
|
|
7815
|
-
otherActions: a,
|
|
7816
|
-
confirmAction: l,
|
|
7817
|
-
rejectAction: c,
|
|
7818
|
-
status: f,
|
|
7819
|
-
compact: h,
|
|
7820
|
-
stackAt: x
|
|
7821
|
-
}
|
|
7822
|
-
)
|
|
7823
|
-
] })
|
|
7824
|
-
]
|
|
7793
|
+
)
|
|
7794
|
+
] })
|
|
7825
7795
|
}
|
|
7826
7796
|
);
|
|
7827
|
-
return
|
|
7797
|
+
return v ? /* @__PURE__ */ r(Zs, { ref: w, alert: g, fullHeight: m, children: x }) : x;
|
|
7828
7798
|
}
|
|
7829
7799
|
);
|
|
7830
|
-
|
|
7800
|
+
Yr.displayName = "F0CardRow";
|
|
7831
7801
|
const D2 = ({ compact: e = !1 }) => /* @__PURE__ */ r(
|
|
7832
7802
|
dr,
|
|
7833
7803
|
{
|
|
7834
|
-
className:
|
|
7804
|
+
className: E(
|
|
7835
7805
|
"group relative bg-f1-background shadow-none",
|
|
7836
7806
|
e && "p-3"
|
|
7837
7807
|
),
|
|
@@ -7842,7 +7812,7 @@ const D2 = ({ compact: e = !1 }) => /* @__PURE__ */ r(
|
|
|
7842
7812
|
/* @__PURE__ */ r(
|
|
7843
7813
|
ge,
|
|
7844
7814
|
{
|
|
7845
|
-
className:
|
|
7815
|
+
className: E("h-10 w-10 rounded-full", e && "h-8 w-8")
|
|
7846
7816
|
}
|
|
7847
7817
|
),
|
|
7848
7818
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-1", children: [
|
|
@@ -7854,7 +7824,7 @@ const D2 = ({ compact: e = !1 }) => /* @__PURE__ */ r(
|
|
|
7854
7824
|
] })
|
|
7855
7825
|
}
|
|
7856
7826
|
), _2 = cr(
|
|
7857
|
-
lr(
|
|
7827
|
+
lr(Yr, D2)
|
|
7858
7828
|
), f3 = ["xs", "sm", "md", "lg"], O2 = 2, it = 2, Z2 = 70, at = 0.08, U2 = 6, z2 = 0.6, G2 = () => {
|
|
7859
7829
|
if (typeof window > "u") return;
|
|
7860
7830
|
const e = window;
|
|
@@ -7904,7 +7874,7 @@ const D2 = ({ compact: e = !1 }) => /* @__PURE__ */ r(
|
|
|
7904
7874
|
"div",
|
|
7905
7875
|
{
|
|
7906
7876
|
ref: n,
|
|
7907
|
-
className:
|
|
7877
|
+
className: E(
|
|
7908
7878
|
"flex h-6 items-center justify-end overflow-hidden gap-0.5",
|
|
7909
7879
|
t
|
|
7910
7880
|
),
|
|
@@ -8008,7 +7978,7 @@ const D2 = ({ compact: e = !1 }) => /* @__PURE__ */ r(
|
|
|
8008
7978
|
label: w.ai.recordAudio,
|
|
8009
7979
|
hideLabel: !0,
|
|
8010
7980
|
type: "button",
|
|
8011
|
-
icon:
|
|
7981
|
+
icon: Er,
|
|
8012
7982
|
variant: "outline",
|
|
8013
7983
|
size: "md",
|
|
8014
7984
|
disabled: a,
|
|
@@ -8059,7 +8029,7 @@ const D2 = ({ compact: e = !1 }) => /* @__PURE__ */ r(
|
|
|
8059
8029
|
},
|
|
8060
8030
|
s.id
|
|
8061
8031
|
) : /* @__PURE__ */ r(
|
|
8062
|
-
|
|
8032
|
+
ur,
|
|
8063
8033
|
{
|
|
8064
8034
|
file: s.file,
|
|
8065
8035
|
size: "md",
|
|
@@ -8097,7 +8067,7 @@ function Y2({
|
|
|
8097
8067
|
}
|
|
8098
8068
|
)
|
|
8099
8069
|
] });
|
|
8100
|
-
return e.errorMessage ? /* @__PURE__ */ r(
|
|
8070
|
+
return e.errorMessage ? /* @__PURE__ */ r(Us, { label: e.errorMessage, children: o }) : o;
|
|
8101
8071
|
}
|
|
8102
8072
|
const K2 = {
|
|
8103
8073
|
soft: {
|
|
@@ -8119,13 +8089,13 @@ const K2 = {
|
|
|
8119
8089
|
return /* @__PURE__ */ d(
|
|
8120
8090
|
"div",
|
|
8121
8091
|
{
|
|
8122
|
-
className:
|
|
8092
|
+
className: E("flex flex-col rounded-xl", o.bg, o.formBorder),
|
|
8123
8093
|
children: [
|
|
8124
8094
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between gap-2 px-4 pb-1.5 pt-2", children: [
|
|
8125
8095
|
/* @__PURE__ */ r(
|
|
8126
8096
|
"p",
|
|
8127
8097
|
{
|
|
8128
|
-
className:
|
|
8098
|
+
className: E("min-w-0 flex-1 text-sm font-medium", o.fontColor),
|
|
8129
8099
|
children: o.text
|
|
8130
8100
|
}
|
|
8131
8101
|
),
|
|
@@ -8186,7 +8156,7 @@ function J2({
|
|
|
8186
8156
|
bottom: s ? `${s.bottom}px` : "100%",
|
|
8187
8157
|
left: s ? `${s.left}px` : 0
|
|
8188
8158
|
},
|
|
8189
|
-
className:
|
|
8159
|
+
className: E(
|
|
8190
8160
|
"z-50",
|
|
8191
8161
|
"w-64 max-h-60 overflow-y-auto",
|
|
8192
8162
|
"rounded-lg border border-solid border-f1-border-secondary",
|
|
@@ -8203,7 +8173,7 @@ function J2({
|
|
|
8203
8173
|
/* @__PURE__ */ r(
|
|
8204
8174
|
ge,
|
|
8205
8175
|
{
|
|
8206
|
-
className:
|
|
8176
|
+
className: E("h-4 rounded", h === 1 ? "w-24" : "w-32")
|
|
8207
8177
|
}
|
|
8208
8178
|
)
|
|
8209
8179
|
]
|
|
@@ -8217,7 +8187,7 @@ function J2({
|
|
|
8217
8187
|
ref: m ? l : void 0,
|
|
8218
8188
|
role: "option",
|
|
8219
8189
|
"aria-selected": m,
|
|
8220
|
-
className:
|
|
8190
|
+
className: E(
|
|
8221
8191
|
"flex cursor-pointer items-center gap-2 p-2 rounded",
|
|
8222
8192
|
"transition-colors",
|
|
8223
8193
|
m ? "bg-f1-background-secondary" : "hover:bg-f1-background-secondary-hover"
|
|
@@ -8229,7 +8199,7 @@ function J2({
|
|
|
8229
8199
|
},
|
|
8230
8200
|
children: [
|
|
8231
8201
|
/* @__PURE__ */ r(
|
|
8232
|
-
|
|
8202
|
+
zs,
|
|
8233
8203
|
{
|
|
8234
8204
|
firstName: u.firstName,
|
|
8235
8205
|
lastName: u.lastName,
|
|
@@ -8254,7 +8224,7 @@ const e4 = ({
|
|
|
8254
8224
|
return /* @__PURE__ */ r("div", { className: "p-1", children: /* @__PURE__ */ d(
|
|
8255
8225
|
"div",
|
|
8256
8226
|
{
|
|
8257
|
-
className:
|
|
8227
|
+
className: E(
|
|
8258
8228
|
"flex items-start gap-2 justify-center",
|
|
8259
8229
|
"rounded-[10px] bg-f1-background-hover pl-2 py-1.5 pr-1.5"
|
|
8260
8230
|
),
|
|
@@ -8299,23 +8269,23 @@ const e4 = ({
|
|
|
8299
8269
|
}
|
|
8300
8270
|
if (s)
|
|
8301
8271
|
return u(!1), a(p), w(), h.current = setTimeout(() => {
|
|
8302
|
-
const
|
|
8303
|
-
c(
|
|
8272
|
+
const M = (l + 1) % Math.max(e.length, 1);
|
|
8273
|
+
c(M);
|
|
8304
8274
|
}, 4e3), () => {
|
|
8305
8275
|
w();
|
|
8306
8276
|
};
|
|
8307
8277
|
u(!0), a("");
|
|
8308
8278
|
let v = 0;
|
|
8309
|
-
const x = 50,
|
|
8279
|
+
const x = 50, A = 30, F = 2e3, R = 1e3;
|
|
8310
8280
|
return m.current = setInterval(() => {
|
|
8311
8281
|
v < p.length ? (a(p.slice(0, v + 1)), v++) : (m.current && (clearInterval(m.current), m.current = null), h.current = setTimeout(() => {
|
|
8312
8282
|
g.current = setInterval(() => {
|
|
8313
8283
|
v > 0 ? (v--, a(p.slice(0, v))) : (g.current && (clearInterval(g.current), g.current = null), h.current = setTimeout(() => {
|
|
8314
|
-
const
|
|
8315
|
-
c(
|
|
8284
|
+
const M = (l + 1) % Math.max(e.length, 1);
|
|
8285
|
+
c(M);
|
|
8316
8286
|
}, R));
|
|
8317
|
-
},
|
|
8318
|
-
},
|
|
8287
|
+
}, A);
|
|
8288
|
+
}, F));
|
|
8319
8289
|
}, x), () => {
|
|
8320
8290
|
w();
|
|
8321
8291
|
};
|
|
@@ -8333,7 +8303,7 @@ const e4 = ({
|
|
|
8333
8303
|
animate: { opacity: 1 },
|
|
8334
8304
|
exit: { opacity: 0 },
|
|
8335
8305
|
transition: { duration: s ? 0 : 0.4 },
|
|
8336
|
-
className:
|
|
8306
|
+
className: E(
|
|
8337
8307
|
"col-start-1 row-start-1",
|
|
8338
8308
|
"pointer-events-none",
|
|
8339
8309
|
"text-f1-foreground-secondary",
|
|
@@ -8343,7 +8313,7 @@ const e4 = ({
|
|
|
8343
8313
|
children: /* @__PURE__ */ d(
|
|
8344
8314
|
"div",
|
|
8345
8315
|
{
|
|
8346
|
-
className:
|
|
8316
|
+
className: E(
|
|
8347
8317
|
"overflow-hidden text-ellipsis whitespace-nowrap",
|
|
8348
8318
|
"whitespace-pre-wrap break-words overflow-visible"
|
|
8349
8319
|
),
|
|
@@ -8372,13 +8342,13 @@ const e4 = ({
|
|
|
8372
8342
|
}) => /* @__PURE__ */ d(
|
|
8373
8343
|
"div",
|
|
8374
8344
|
{
|
|
8375
|
-
className:
|
|
8345
|
+
className: E("grid flex-1 grid-cols-1 grid-rows-1", "min-h-[20px] py-0"),
|
|
8376
8346
|
children: [
|
|
8377
8347
|
/* @__PURE__ */ r(
|
|
8378
8348
|
"div",
|
|
8379
8349
|
{
|
|
8380
8350
|
"aria-hidden": !0,
|
|
8381
|
-
className:
|
|
8351
|
+
className: E(
|
|
8382
8352
|
"col-start-1 row-start-1",
|
|
8383
8353
|
"pointer-events-none invisible",
|
|
8384
8354
|
"min-h-[20px] max-h-[240px]",
|
|
@@ -8395,7 +8365,7 @@ const e4 = ({
|
|
|
8395
8365
|
{
|
|
8396
8366
|
ref: t,
|
|
8397
8367
|
"aria-hidden": !0,
|
|
8398
|
-
className:
|
|
8368
|
+
className: E(
|
|
8399
8369
|
"col-start-1 row-start-1",
|
|
8400
8370
|
"pointer-events-none",
|
|
8401
8371
|
"min-h-[20px] max-h-[240px]",
|
|
@@ -8419,7 +8389,7 @@ const e4 = ({
|
|
|
8419
8389
|
!n && !f && /* @__PURE__ */ r(
|
|
8420
8390
|
"p",
|
|
8421
8391
|
{
|
|
8422
|
-
className:
|
|
8392
|
+
className: E(
|
|
8423
8393
|
"col-start-1 row-start-1",
|
|
8424
8394
|
"pointer-events-none",
|
|
8425
8395
|
"text-f1-foreground-secondary",
|
|
@@ -8446,7 +8416,7 @@ const e4 = ({
|
|
|
8446
8416
|
onClick: i,
|
|
8447
8417
|
onSelect: i,
|
|
8448
8418
|
onScroll: a,
|
|
8449
|
-
className:
|
|
8419
|
+
className: E(
|
|
8450
8420
|
"col-start-1 row-start-1",
|
|
8451
8421
|
"min-h-[20px] max-h-[240px] h-auto",
|
|
8452
8422
|
"resize-none",
|
|
@@ -8490,7 +8460,7 @@ const s4 = ({
|
|
|
8490
8460
|
l || (i(null), n?.(null));
|
|
8491
8461
|
},
|
|
8492
8462
|
children: [
|
|
8493
|
-
/* @__PURE__ */ r(
|
|
8463
|
+
/* @__PURE__ */ r(Gs, { asChild: !0, children: /* @__PURE__ */ r("div", { className: "flex w-full flex-wrap items-center gap-2", children: e.map((l, c) => /* @__PURE__ */ r(P1, { asChild: !0, children: /* @__PURE__ */ r(
|
|
8494
8464
|
he,
|
|
8495
8465
|
{
|
|
8496
8466
|
variant: "outline",
|
|
@@ -8509,7 +8479,7 @@ const s4 = ({
|
|
|
8509
8479
|
align: "start",
|
|
8510
8480
|
sideOffset: 8,
|
|
8511
8481
|
onOpenAutoFocus: (l) => l.preventDefault(),
|
|
8512
|
-
className:
|
|
8482
|
+
className: E(
|
|
8513
8483
|
"flex flex-col gap-1 rounded-md border border-solid border-f1-border-secondary bg-f1-background p-2",
|
|
8514
8484
|
"w-[var(--radix-popover-trigger-width)]"
|
|
8515
8485
|
),
|
|
@@ -8529,7 +8499,7 @@ const s4 = ({
|
|
|
8529
8499
|
onMouseLeave: () => n?.(null),
|
|
8530
8500
|
onFocus: () => n?.(l),
|
|
8531
8501
|
onBlur: () => n?.(null),
|
|
8532
|
-
className:
|
|
8502
|
+
className: E(
|
|
8533
8503
|
"group flex items-center justify-between gap-2 rounded-sm px-2 py-2 text-left text-base font-medium text-f1-foreground transition-colors hover:bg-f1-background-hover focus-visible:bg-f1-background-hover",
|
|
8534
8504
|
ve()
|
|
8535
8505
|
),
|
|
@@ -8590,12 +8560,12 @@ function d4({
|
|
|
8590
8560
|
onError: o,
|
|
8591
8561
|
maxDurationMs: s = c4
|
|
8592
8562
|
}) {
|
|
8593
|
-
const [i, a] = P("idle"), [l, c] = P(0), [f] = P(l4), [u, h] = P(null), m = $(null), g = $(null), p = $([]), w = $(null), v = $(!1), x = $(null),
|
|
8563
|
+
const [i, a] = P("idle"), [l, c] = P(0), [f] = P(l4), [u, h] = P(null), m = $(null), g = $(null), p = $([]), w = $(null), v = $(!1), x = $(null), A = $(null), F = $(0), R = $({ onTranscribe: e, onPartial: t, onFinal: n, onError: o });
|
|
8594
8564
|
R.current = { onTranscribe: e, onPartial: t, onFinal: n, onError: o };
|
|
8595
|
-
const
|
|
8596
|
-
g.current?.getTracks().forEach((k) => k.stop()), g.current = null, m.current = null, h(null), x.current && (clearInterval(x.current), x.current = null),
|
|
8565
|
+
const M = X(() => {
|
|
8566
|
+
g.current?.getTracks().forEach((k) => k.stop()), g.current = null, m.current = null, h(null), x.current && (clearInterval(x.current), x.current = null), A.current && (clearTimeout(A.current), A.current = null);
|
|
8597
8567
|
}, []), L = X(async () => {
|
|
8598
|
-
const { onTranscribe: k, onPartial: y, onFinal:
|
|
8568
|
+
const { onTranscribe: k, onPartial: y, onFinal: T, onError: j } = R.current, _ = p.current;
|
|
8599
8569
|
if (p.current = [], _.length === 0 || !k) {
|
|
8600
8570
|
a("idle"), c(0);
|
|
8601
8571
|
return;
|
|
@@ -8607,13 +8577,13 @@ function d4({
|
|
|
8607
8577
|
onPartial: y,
|
|
8608
8578
|
signal: G.signal
|
|
8609
8579
|
});
|
|
8610
|
-
G.signal.aborted ||
|
|
8580
|
+
G.signal.aborted || T(q);
|
|
8611
8581
|
} catch {
|
|
8612
8582
|
G.signal.aborted || j("transcription-failed");
|
|
8613
8583
|
} finally {
|
|
8614
8584
|
w.current = null, a("idle"), c(0);
|
|
8615
8585
|
}
|
|
8616
|
-
}, []),
|
|
8586
|
+
}, []), S = X(() => {
|
|
8617
8587
|
const k = m.current;
|
|
8618
8588
|
k && k.state !== "inactive" && k.stop();
|
|
8619
8589
|
}, []), b = X(async () => {
|
|
@@ -8622,45 +8592,45 @@ function d4({
|
|
|
8622
8592
|
let k;
|
|
8623
8593
|
try {
|
|
8624
8594
|
k = await navigator.mediaDevices.getUserMedia({ audio: !0 });
|
|
8625
|
-
} catch (
|
|
8595
|
+
} catch (T) {
|
|
8626
8596
|
o(
|
|
8627
|
-
|
|
8597
|
+
T instanceof DOMException && T.name === "NotAllowedError" ? "permission-denied" : "device-error"
|
|
8628
8598
|
);
|
|
8629
8599
|
return;
|
|
8630
8600
|
}
|
|
8631
8601
|
g.current = k, h(k);
|
|
8632
8602
|
const y = new MediaRecorder(k);
|
|
8633
|
-
m.current = y, y.ondataavailable = (
|
|
8634
|
-
|
|
8603
|
+
m.current = y, y.ondataavailable = (T) => {
|
|
8604
|
+
T.data.size > 0 && p.current.push(T.data);
|
|
8635
8605
|
}, y.onstop = () => {
|
|
8636
|
-
if (
|
|
8606
|
+
if (M(), v.current) {
|
|
8637
8607
|
p.current = [], a("idle"), c(0);
|
|
8638
8608
|
return;
|
|
8639
8609
|
}
|
|
8640
8610
|
L();
|
|
8641
|
-
}, y.start(a4),
|
|
8642
|
-
c(Date.now() -
|
|
8643
|
-
}, 200),
|
|
8611
|
+
}, y.start(a4), F.current = Date.now(), a("recording"), c(0), x.current = setInterval(() => {
|
|
8612
|
+
c(Date.now() - F.current);
|
|
8613
|
+
}, 200), A.current = setTimeout(S, s);
|
|
8644
8614
|
}, [
|
|
8645
8615
|
i,
|
|
8646
8616
|
e,
|
|
8647
8617
|
f,
|
|
8648
8618
|
o,
|
|
8649
|
-
|
|
8619
|
+
M,
|
|
8650
8620
|
L,
|
|
8651
|
-
|
|
8621
|
+
S,
|
|
8652
8622
|
s
|
|
8653
|
-
]),
|
|
8654
|
-
i === "recording" ? (v.current = !0,
|
|
8655
|
-
}, [i,
|
|
8623
|
+
]), V = X(() => {
|
|
8624
|
+
i === "recording" ? (v.current = !0, S()) : i === "transcribing" && (w.current?.abort(), w.current = null, a("idle"), c(0));
|
|
8625
|
+
}, [i, S]);
|
|
8656
8626
|
return K(
|
|
8657
8627
|
() => () => {
|
|
8658
8628
|
v.current = !0, w.current?.abort();
|
|
8659
8629
|
const k = m.current;
|
|
8660
|
-
k && k.state !== "inactive" && k.stop(),
|
|
8630
|
+
k && k.state !== "inactive" && k.stop(), M();
|
|
8661
8631
|
},
|
|
8662
|
-
[
|
|
8663
|
-
), { status: i, durationMs: l, isSupported: f, stream: u, start: b, stop:
|
|
8632
|
+
[M]
|
|
8633
|
+
), { status: i, durationMs: l, isSupported: f, stream: u, start: b, stop: S, cancel: V };
|
|
8664
8634
|
}
|
|
8665
8635
|
function u4(e, t) {
|
|
8666
8636
|
if (t === "*/*") return !0;
|
|
@@ -8688,8 +8658,8 @@ function g4(e) {
|
|
|
8688
8658
|
K(() => {
|
|
8689
8659
|
g.current = t.length;
|
|
8690
8660
|
}, [t]);
|
|
8691
|
-
const p = X((
|
|
8692
|
-
i.current && clearTimeout(i.current), s(
|
|
8661
|
+
const p = X((F) => {
|
|
8662
|
+
i.current && clearTimeout(i.current), s(F), i.current = setTimeout(() => {
|
|
8693
8663
|
s(null), i.current = null;
|
|
8694
8664
|
}, h4);
|
|
8695
8665
|
}, []);
|
|
@@ -8700,9 +8670,9 @@ function g4(e) {
|
|
|
8700
8670
|
[]
|
|
8701
8671
|
);
|
|
8702
8672
|
const w = X(
|
|
8703
|
-
async (
|
|
8704
|
-
if (
|
|
8705
|
-
const R = f4(
|
|
8673
|
+
async (F) => {
|
|
8674
|
+
if (F.length === 0 || !c) return;
|
|
8675
|
+
const R = f4(F, f);
|
|
8706
8676
|
if (R.length === 0) return;
|
|
8707
8677
|
if (u !== void 0 && g.current + R.length > u) {
|
|
8708
8678
|
p(
|
|
@@ -8713,26 +8683,26 @@ function g4(e) {
|
|
|
8713
8683
|
);
|
|
8714
8684
|
return;
|
|
8715
8685
|
}
|
|
8716
|
-
const
|
|
8686
|
+
const M = R.map((b) => ({
|
|
8717
8687
|
id: crypto.randomUUID(),
|
|
8718
8688
|
file: b,
|
|
8719
8689
|
status: "uploading"
|
|
8720
|
-
})), L =
|
|
8721
|
-
n((b) => [...b, ...
|
|
8722
|
-
const
|
|
8723
|
-
(
|
|
8690
|
+
})), L = M.map((b) => b.id);
|
|
8691
|
+
n((b) => [...b, ...M]);
|
|
8692
|
+
const S = (b) => n(
|
|
8693
|
+
(V) => V.map(
|
|
8724
8694
|
(k) => L.includes(k.id) ? { ...k, status: "error", errorMessage: b } : k
|
|
8725
8695
|
)
|
|
8726
8696
|
);
|
|
8727
8697
|
try {
|
|
8728
8698
|
const b = await c(R);
|
|
8729
8699
|
if (!Array.isArray(b) || b.length !== R.length) {
|
|
8730
|
-
|
|
8700
|
+
S(l.ai.fileUploadError);
|
|
8731
8701
|
return;
|
|
8732
8702
|
}
|
|
8733
8703
|
n(
|
|
8734
|
-
(
|
|
8735
|
-
const y =
|
|
8704
|
+
(V) => V.map((k) => {
|
|
8705
|
+
const y = M.findIndex((T) => T.id === k.id);
|
|
8736
8706
|
return y === -1 ? k : b[y] ? {
|
|
8737
8707
|
...k,
|
|
8738
8708
|
status: "uploaded",
|
|
@@ -8745,8 +8715,8 @@ function g4(e) {
|
|
|
8745
8715
|
})
|
|
8746
8716
|
);
|
|
8747
8717
|
} catch (b) {
|
|
8748
|
-
const
|
|
8749
|
-
V
|
|
8718
|
+
const V = b instanceof Error && b.message ? b.message : l.ai.fileUploadError;
|
|
8719
|
+
S(V);
|
|
8750
8720
|
}
|
|
8751
8721
|
},
|
|
8752
8722
|
[
|
|
@@ -8758,13 +8728,13 @@ function g4(e) {
|
|
|
8758
8728
|
p
|
|
8759
8729
|
]
|
|
8760
8730
|
), v = X(
|
|
8761
|
-
async (
|
|
8762
|
-
await w(Array.from(
|
|
8731
|
+
async (F) => {
|
|
8732
|
+
await w(Array.from(F.target.files ?? [])), F.target.value = "";
|
|
8763
8733
|
},
|
|
8764
8734
|
[w]
|
|
8765
|
-
), x = X((
|
|
8766
|
-
n((R) => R.filter((
|
|
8767
|
-
}, []),
|
|
8735
|
+
), x = X((F) => {
|
|
8736
|
+
n((R) => R.filter((M) => M.id !== F));
|
|
8737
|
+
}, []), A = X(() => {
|
|
8768
8738
|
n([]);
|
|
8769
8739
|
}, []);
|
|
8770
8740
|
return {
|
|
@@ -8777,7 +8747,7 @@ function g4(e) {
|
|
|
8777
8747
|
processFiles: w,
|
|
8778
8748
|
handleFileSelect: v,
|
|
8779
8749
|
handleRemoveFile: x,
|
|
8780
|
-
clearFiles:
|
|
8750
|
+
clearFiles: A,
|
|
8781
8751
|
transientError: o,
|
|
8782
8752
|
showTransientError: p
|
|
8783
8753
|
};
|
|
@@ -8860,7 +8830,7 @@ function w4({
|
|
|
8860
8830
|
searchPersons: o,
|
|
8861
8831
|
textareaRef: s
|
|
8862
8832
|
}) {
|
|
8863
|
-
const [i, a] = P(!1), [l, c] = P(""), [f, u] = P([]), [h, m] = P(!1), [g, p] = P(0), [w, v] = P([]), x = $(-1),
|
|
8833
|
+
const [i, a] = P(!1), [l, c] = P(""), [f, u] = P([]), [h, m] = P(!1), [g, p] = P(0), [w, v] = P([]), x = $(-1), A = $(null), F = $(0), R = $(-1);
|
|
8864
8834
|
K(() => {
|
|
8865
8835
|
if (!o) {
|
|
8866
8836
|
a(!1);
|
|
@@ -8873,52 +8843,52 @@ function w4({
|
|
|
8873
8843
|
}
|
|
8874
8844
|
if (y.atIndex === R.current)
|
|
8875
8845
|
return;
|
|
8876
|
-
x.current = y.atIndex, c(y.query), a(!0), p(0), m(!0),
|
|
8877
|
-
const
|
|
8878
|
-
return
|
|
8846
|
+
x.current = y.atIndex, c(y.query), a(!0), p(0), m(!0), A.current && clearTimeout(A.current);
|
|
8847
|
+
const T = ++F.current;
|
|
8848
|
+
return A.current = setTimeout(() => {
|
|
8879
8849
|
o(y.query).then((j) => {
|
|
8880
|
-
|
|
8850
|
+
T === F.current && (u(j), p(0), j.length === 0 && y.query.length > 0 && (R.current = y.atIndex, a(!1)));
|
|
8881
8851
|
}).catch(() => {
|
|
8882
|
-
|
|
8852
|
+
T === F.current && u([]);
|
|
8883
8853
|
}).finally(() => {
|
|
8884
|
-
|
|
8854
|
+
T === F.current && m(!1);
|
|
8885
8855
|
});
|
|
8886
8856
|
}, v4), () => {
|
|
8887
|
-
|
|
8857
|
+
A.current && clearTimeout(A.current);
|
|
8888
8858
|
};
|
|
8889
8859
|
}, [e, n, o, w]);
|
|
8890
|
-
const
|
|
8860
|
+
const M = X(() => {
|
|
8891
8861
|
a(!1), c(""), u([]), p(0), x.current = -1;
|
|
8892
8862
|
}, []), L = X(
|
|
8893
8863
|
(y) => {
|
|
8894
|
-
const
|
|
8895
|
-
if (
|
|
8896
|
-
const j = `${y.firstName} ${y.lastName}`.trim(), _ = String(y.id), Z = e.slice(0,
|
|
8897
|
-
t(U), v((O) => [...O.filter((Y) => !(Y.id === _ && Y.name === j)), { id: _, name: j }]),
|
|
8864
|
+
const T = x.current;
|
|
8865
|
+
if (T === -1) return;
|
|
8866
|
+
const j = `${y.firstName} ${y.lastName}`.trim(), _ = String(y.id), Z = e.slice(0, T), G = e.slice(n), q = `@${j} `, U = Z + q + G, z = Z.length + q.length;
|
|
8867
|
+
t(U), v((O) => [...O.filter((Y) => !(Y.id === _ && Y.name === j)), { id: _, name: j }]), M(), requestAnimationFrame(() => {
|
|
8898
8868
|
const O = s.current;
|
|
8899
8869
|
O && (O.focus(), O.setSelectionRange(z, z));
|
|
8900
8870
|
});
|
|
8901
8871
|
},
|
|
8902
|
-
[e, n, t, s,
|
|
8903
|
-
),
|
|
8872
|
+
[e, n, t, s, M]
|
|
8873
|
+
), S = X(
|
|
8904
8874
|
(y) => {
|
|
8905
8875
|
if (!i) return !1;
|
|
8906
8876
|
if (y.key === "Escape")
|
|
8907
|
-
return y.preventDefault(),
|
|
8877
|
+
return y.preventDefault(), M(), !0;
|
|
8908
8878
|
if (f.length === 0) return !1;
|
|
8909
8879
|
switch (y.key) {
|
|
8910
8880
|
case "ArrowDown":
|
|
8911
|
-
return y.preventDefault(), p((
|
|
8881
|
+
return y.preventDefault(), p((T) => (T + 1) % f.length), !0;
|
|
8912
8882
|
case "ArrowUp":
|
|
8913
8883
|
return y.preventDefault(), p(
|
|
8914
|
-
(
|
|
8884
|
+
(T) => (T + f.length - 1) % f.length
|
|
8915
8885
|
), !0;
|
|
8916
8886
|
case "Tab": {
|
|
8917
|
-
const
|
|
8918
|
-
if (
|
|
8919
|
-
const j = `${
|
|
8887
|
+
const T = f[g];
|
|
8888
|
+
if (T) {
|
|
8889
|
+
const j = `${T.firstName} ${T.lastName}`.trim();
|
|
8920
8890
|
if (l.length === 0 || j.toLowerCase().startsWith(l.toLowerCase()))
|
|
8921
|
-
return y.preventDefault(), L(
|
|
8891
|
+
return y.preventDefault(), L(T), !0;
|
|
8922
8892
|
}
|
|
8923
8893
|
return !1;
|
|
8924
8894
|
}
|
|
@@ -8928,25 +8898,25 @@ function w4({
|
|
|
8928
8898
|
return !1;
|
|
8929
8899
|
}
|
|
8930
8900
|
},
|
|
8931
|
-
[i, f, g, l, L,
|
|
8901
|
+
[i, f, g, l, L, M]
|
|
8932
8902
|
), b = X(
|
|
8933
8903
|
(y) => {
|
|
8934
8904
|
if (w.length === 0) return y;
|
|
8935
|
-
let
|
|
8905
|
+
let T = y;
|
|
8936
8906
|
const j = [...w].sort((_, Z) => Z.name.length - _.name.length);
|
|
8937
8907
|
for (const _ of j) {
|
|
8938
8908
|
const Z = `@${_.name}`, G = `<entity-ref type="person" id="${ct(_.id)}">${ct(_.name)}</entity-ref>`;
|
|
8939
|
-
for (;
|
|
8940
|
-
|
|
8909
|
+
for (; T.includes(Z); )
|
|
8910
|
+
T = T.replace(Z, G);
|
|
8941
8911
|
}
|
|
8942
|
-
return
|
|
8912
|
+
return T;
|
|
8943
8913
|
},
|
|
8944
8914
|
[w]
|
|
8945
8915
|
);
|
|
8946
8916
|
K(() => {
|
|
8947
8917
|
v(
|
|
8948
|
-
(y) => y.filter((
|
|
8949
|
-
const j = `@${
|
|
8918
|
+
(y) => y.filter((T) => {
|
|
8919
|
+
const j = `@${T.name}`, _ = e.indexOf(j);
|
|
8950
8920
|
if (_ === -1) return !1;
|
|
8951
8921
|
const Z = e[_ + j.length];
|
|
8952
8922
|
return Z === " " || Z === `
|
|
@@ -8954,18 +8924,18 @@ function w4({
|
|
|
8954
8924
|
})
|
|
8955
8925
|
);
|
|
8956
8926
|
}, [e]);
|
|
8957
|
-
const
|
|
8927
|
+
const V = te(() => {
|
|
8958
8928
|
if (!i || x.current === -1) return null;
|
|
8959
8929
|
const y = s.current;
|
|
8960
8930
|
if (!y) return null;
|
|
8961
|
-
const
|
|
8931
|
+
const T = C4(y, x.current), j = y.offsetLeft + T.left, Z = (y.offsetParent ? y.offsetParent.offsetHeight : 0) - (y.offsetTop + T.top);
|
|
8962
8932
|
return { left: j, bottom: Z };
|
|
8963
8933
|
}, [i, e, n, s]), k = te(() => {
|
|
8964
8934
|
if (!i || f.length === 0) return null;
|
|
8965
8935
|
const y = f[g];
|
|
8966
8936
|
if (!y) return null;
|
|
8967
|
-
const
|
|
8968
|
-
return l.length === 0 ?
|
|
8937
|
+
const T = `${y.firstName} ${y.lastName}`.trim();
|
|
8938
|
+
return l.length === 0 ? T : T.toLowerCase().startsWith(l.toLowerCase()) ? T.slice(l.length) : null;
|
|
8969
8939
|
}, [i, f, g, l]);
|
|
8970
8940
|
return {
|
|
8971
8941
|
isOpen: i,
|
|
@@ -8974,12 +8944,12 @@ function w4({
|
|
|
8974
8944
|
isLoading: h,
|
|
8975
8945
|
selectedIndex: g,
|
|
8976
8946
|
mentions: w,
|
|
8977
|
-
popoverPosition:
|
|
8947
|
+
popoverPosition: V,
|
|
8978
8948
|
inlineCompletion: k,
|
|
8979
|
-
handleKeyDown:
|
|
8949
|
+
handleKeyDown: S,
|
|
8980
8950
|
selectPerson: L,
|
|
8981
8951
|
transformMentions: b,
|
|
8982
|
-
close:
|
|
8952
|
+
close: M
|
|
8983
8953
|
};
|
|
8984
8954
|
}
|
|
8985
8955
|
const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>[\s\S]*?<\/entity-ref>)/g).map((t, n) => n % 2 === 1 ? t : t.replace(/&/g, "&").replace(/</g, "<").replace(x4, "\\$&")).join(""), h3 = ({
|
|
@@ -9001,12 +8971,12 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9001
8971
|
disclaimer: w,
|
|
9002
8972
|
footer: v,
|
|
9003
8973
|
isWelcomeScreen: x = !1,
|
|
9004
|
-
fullscreen:
|
|
9005
|
-
welcomeScreenSuggestions:
|
|
8974
|
+
fullscreen: A = !1,
|
|
8975
|
+
welcomeScreenSuggestions: F,
|
|
9006
8976
|
onSuggestionClick: R,
|
|
9007
|
-
ref:
|
|
8977
|
+
ref: M
|
|
9008
8978
|
}) => {
|
|
9009
|
-
const L = ee(),
|
|
8979
|
+
const L = ee(), S = Le(), [b, V] = P(""), [k, y] = P(0), [T, j] = P(!1), [_, Z] = P(!1), [G, q] = P(null), U = $(null), z = $(null), O = $(null), J = a != null, { tracking: Y } = Ee(), le = X(
|
|
9010
8980
|
(ne, be) => {
|
|
9011
8981
|
Y?.onWelcomeSuggestionClick?.({
|
|
9012
8982
|
item: ne,
|
|
@@ -9021,7 +8991,7 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9021
8991
|
onUploadFiles: re,
|
|
9022
8992
|
acceptValue: ie,
|
|
9023
8993
|
isAtMaxFiles: ue,
|
|
9024
|
-
maxFiles:
|
|
8994
|
+
maxFiles: N,
|
|
9025
8995
|
processFiles: B,
|
|
9026
8996
|
handleFileSelect: H,
|
|
9027
8997
|
handleRemoveFile: D,
|
|
@@ -9030,13 +9000,13 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9030
9000
|
showTransientError: ae
|
|
9031
9001
|
} = g4(h), Q = w4({
|
|
9032
9002
|
inputValue: b,
|
|
9033
|
-
setInputValue:
|
|
9003
|
+
setInputValue: V,
|
|
9034
9004
|
cursorPosition: k,
|
|
9035
9005
|
searchPersons: g,
|
|
9036
9006
|
textareaRef: z
|
|
9037
9007
|
}), pe = $(""), xe = X((ne) => {
|
|
9038
9008
|
const be = pe.current, m1 = be && !/\s$/.test(be) ? " " : "", Qe = `${be}${m1}${ne}`;
|
|
9039
|
-
|
|
9009
|
+
V(Qe), y(Qe.length);
|
|
9040
9010
|
}, []), Ve = {
|
|
9041
9011
|
"permission-denied": L.ai.micPermissionDenied,
|
|
9042
9012
|
"device-error": L.ai.micError,
|
|
@@ -9083,7 +9053,7 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9083
9053
|
if (ne.preventDefault(), !J) {
|
|
9084
9054
|
if (Q.close(), n)
|
|
9085
9055
|
t?.();
|
|
9086
|
-
else if (qe && !
|
|
9056
|
+
else if (qe && !T) {
|
|
9087
9057
|
if (Ae) {
|
|
9088
9058
|
Z(!0), z.current?.focus();
|
|
9089
9059
|
return;
|
|
@@ -9107,7 +9077,7 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9107
9077
|
files: Qe,
|
|
9108
9078
|
context: X1,
|
|
9109
9079
|
quote: Y1
|
|
9110
|
-
}),
|
|
9080
|
+
}), V(""), I();
|
|
9111
9081
|
}
|
|
9112
9082
|
z.current?.focus();
|
|
9113
9083
|
}
|
|
@@ -9117,18 +9087,18 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9117
9087
|
y(z.current?.selectionStart ?? 0);
|
|
9118
9088
|
}, Ye = () => {
|
|
9119
9089
|
O.current && z.current && (O.current.scrollTop = z.current.scrollTop);
|
|
9120
|
-
}, G1 = G ? G.prompt ?? G.title : null, W1 = We ? [L.ai.listening] : G1 ? [G1] : s ?? [],
|
|
9090
|
+
}, G1 = G ? G.prompt ?? G.title : null, W1 = We ? [L.ai.listening] : G1 ? [G1] : s ?? [], Fn = W1.length > 1, Sn = te(() => i4(b, Q.mentions, {
|
|
9121
9091
|
cursorPosition: k,
|
|
9122
9092
|
inlineCompletion: Q.inlineCompletion
|
|
9123
|
-
}), [b, Q.mentions, k, Q.inlineCompletion]),
|
|
9093
|
+
}), [b, Q.mentions, k, Q.inlineCompletion]), Vn = Q.mentions.length > 0 || Q.inlineCompletion !== null, Ke = x && !!F && F.length > 0 && !!R ? /* @__PURE__ */ r(
|
|
9124
9094
|
s4,
|
|
9125
9095
|
{
|
|
9126
|
-
suggestions:
|
|
9096
|
+
suggestions: F,
|
|
9127
9097
|
onItemClick: le,
|
|
9128
9098
|
onItemHover: q,
|
|
9129
|
-
side:
|
|
9099
|
+
side: A ? "bottom" : "top"
|
|
9130
9100
|
}
|
|
9131
|
-
) : null, q1 =
|
|
9101
|
+
) : null, q1 = A && x, { motionProps: Tn } = Ws(
|
|
9132
9102
|
x,
|
|
9133
9103
|
160,
|
|
9134
9104
|
0.5
|
|
@@ -9136,21 +9106,21 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9136
9106
|
return /* @__PURE__ */ d(
|
|
9137
9107
|
oe.div,
|
|
9138
9108
|
{
|
|
9139
|
-
ref:
|
|
9140
|
-
className:
|
|
9109
|
+
ref: M,
|
|
9110
|
+
className: E(
|
|
9141
9111
|
"flex flex-col items-center gap-2 px-4 pb-3 pt-2",
|
|
9142
9112
|
q1 && "min-h-0 flex-1 justify-start -mt-20"
|
|
9143
9113
|
),
|
|
9144
|
-
...
|
|
9114
|
+
...A ? Tn : {},
|
|
9145
9115
|
children: [
|
|
9146
9116
|
/* @__PURE__ */ d("div", { className: "flex w-full max-w-content flex-col gap-2", children: [
|
|
9147
|
-
Ke && !
|
|
9117
|
+
Ke && !A && /* @__PURE__ */ r("div", { children: Ke }),
|
|
9148
9118
|
/* @__PURE__ */ r(Q2, { creditWarning: i, children: /* @__PURE__ */ d(
|
|
9149
9119
|
oe.form,
|
|
9150
9120
|
{
|
|
9151
9121
|
"aria-busy": n,
|
|
9152
9122
|
ref: U,
|
|
9153
|
-
className:
|
|
9123
|
+
className: E(
|
|
9154
9124
|
"relative isolate z-20",
|
|
9155
9125
|
"flex flex-col items-stretch md:gap-3 gap-2",
|
|
9156
9126
|
"rounded-lg border border-solid border-f1-border has-[textarea:focus]:border-f1-background-tertiary",
|
|
@@ -9204,12 +9174,12 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9204
9174
|
height: 0,
|
|
9205
9175
|
opacity: 0,
|
|
9206
9176
|
transition: {
|
|
9207
|
-
duration:
|
|
9177
|
+
duration: S ? 0 : 0.22,
|
|
9208
9178
|
ease: [0.4, 0, 1, 1]
|
|
9209
9179
|
}
|
|
9210
9180
|
},
|
|
9211
9181
|
transition: {
|
|
9212
|
-
duration:
|
|
9182
|
+
duration: S ? 0 : 0.4,
|
|
9213
9183
|
ease: [0.4, 0, 0.2, 1]
|
|
9214
9184
|
},
|
|
9215
9185
|
children: a
|
|
@@ -9225,12 +9195,12 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9225
9195
|
height: 0,
|
|
9226
9196
|
opacity: 0,
|
|
9227
9197
|
transition: {
|
|
9228
|
-
duration:
|
|
9198
|
+
duration: S ? 0 : 0.15,
|
|
9229
9199
|
ease: [0.55, 0, 1, 0.45]
|
|
9230
9200
|
}
|
|
9231
9201
|
},
|
|
9232
9202
|
transition: {
|
|
9233
|
-
duration:
|
|
9203
|
+
duration: S ? 0 : 0.4,
|
|
9234
9204
|
ease: [0.4, 0, 0.2, 1]
|
|
9235
9205
|
},
|
|
9236
9206
|
children: [
|
|
@@ -9251,18 +9221,18 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9251
9221
|
animate: { opacity: 1, y: 0 },
|
|
9252
9222
|
exit: { opacity: 0, y: -4 },
|
|
9253
9223
|
transition: {
|
|
9254
|
-
duration:
|
|
9224
|
+
duration: S ? 0 : 0.2,
|
|
9255
9225
|
ease: "easeOut"
|
|
9256
9226
|
},
|
|
9257
9227
|
children: /* @__PURE__ */ d(
|
|
9258
9228
|
"div",
|
|
9259
9229
|
{
|
|
9260
|
-
className:
|
|
9230
|
+
className: E(
|
|
9261
9231
|
"flex w-full flex-row items-center gap-2 rounded-md p-2 pr-3",
|
|
9262
9232
|
"bg-f1-background-critical text-f1-foreground"
|
|
9263
9233
|
),
|
|
9264
9234
|
children: [
|
|
9265
|
-
/* @__PURE__ */ r("div", { className: "h-6 w-6 flex-shrink-0", children: /* @__PURE__ */ r(
|
|
9235
|
+
/* @__PURE__ */ r("div", { className: "h-6 w-6 flex-shrink-0", children: /* @__PURE__ */ r(qs, { type: "critical", size: "sm" }) }),
|
|
9266
9236
|
/* @__PURE__ */ r("p", { className: "font-medium text-f1-foreground-critical", children: W })
|
|
9267
9237
|
]
|
|
9268
9238
|
}
|
|
@@ -9286,14 +9256,14 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9286
9256
|
highlightRef: O,
|
|
9287
9257
|
inputValue: b,
|
|
9288
9258
|
onInputChange: (ne, be) => {
|
|
9289
|
-
|
|
9259
|
+
V(ne), y(be);
|
|
9290
9260
|
},
|
|
9291
9261
|
onKeyDown: p1,
|
|
9292
9262
|
onCursorUpdate: Xe,
|
|
9293
9263
|
onScroll: Ye,
|
|
9294
|
-
highlightSegments:
|
|
9295
|
-
hasOverlay:
|
|
9296
|
-
multiplePlaceholders:
|
|
9264
|
+
highlightSegments: Sn,
|
|
9265
|
+
hasOverlay: Vn,
|
|
9266
|
+
multiplePlaceholders: Fn,
|
|
9297
9267
|
placeholders: W1,
|
|
9298
9268
|
resolvedDefaultPlaceholder: f1,
|
|
9299
9269
|
inProgress: n
|
|
@@ -9304,13 +9274,13 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9304
9274
|
{
|
|
9305
9275
|
onUploadFiles: re,
|
|
9306
9276
|
isAtMaxFiles: ue,
|
|
9307
|
-
maxFiles:
|
|
9277
|
+
maxFiles: N,
|
|
9308
9278
|
acceptValue: ie,
|
|
9309
9279
|
fileInputRef: se,
|
|
9310
9280
|
handleFileSelect: H,
|
|
9311
9281
|
inProgress: n,
|
|
9312
9282
|
hasDataToSend: qe,
|
|
9313
|
-
isPreSending:
|
|
9283
|
+
isPreSending: T || _,
|
|
9314
9284
|
canRecord: Te,
|
|
9315
9285
|
recordingStatus: me.status,
|
|
9316
9286
|
recordingStream: me.stream,
|
|
@@ -9327,8 +9297,8 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9327
9297
|
}
|
|
9328
9298
|
) })
|
|
9329
9299
|
] }),
|
|
9330
|
-
Ke &&
|
|
9331
|
-
v && x &&
|
|
9300
|
+
Ke && A && /* @__PURE__ */ r("div", { className: "w-full max-w-content", children: Ke }),
|
|
9301
|
+
v && x && A && /* @__PURE__ */ r("div", { className: "w-full py-4 mx-auto flex max-w-content justify-center", children: v }),
|
|
9332
9302
|
/* @__PURE__ */ r(Fe, { mode: "wait", initial: !1, children: J ? /* @__PURE__ */ d(
|
|
9333
9303
|
oe.div,
|
|
9334
9304
|
{
|
|
@@ -9364,7 +9334,7 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9364
9334
|
animate: { opacity: 1 },
|
|
9365
9335
|
exit: { opacity: 0 },
|
|
9366
9336
|
transition: {
|
|
9367
|
-
duration:
|
|
9337
|
+
duration: S ? 0 : 0.3,
|
|
9368
9338
|
ease: "easeOut"
|
|
9369
9339
|
},
|
|
9370
9340
|
children: [
|
|
@@ -9373,7 +9343,7 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9373
9343
|
{
|
|
9374
9344
|
type: "button",
|
|
9375
9345
|
onClick: w.onClick,
|
|
9376
|
-
className:
|
|
9346
|
+
className: E(
|
|
9377
9347
|
"group min-w-0 cursor-pointer bg-transparent p-0 text-inherit",
|
|
9378
9348
|
"transition-transform duration-700 ease-out",
|
|
9379
9349
|
"hover:scale-[1.02] focus-visible:scale-[1.02]",
|
|
@@ -9382,7 +9352,7 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9382
9352
|
children: /* @__PURE__ */ r(
|
|
9383
9353
|
fe,
|
|
9384
9354
|
{
|
|
9385
|
-
className:
|
|
9355
|
+
className: E(
|
|
9386
9356
|
"text-sm font-medium text-f1-foreground-tertiary transition-colors duration-700 ease-out",
|
|
9387
9357
|
"group-hover:bg-gradient-to-r group-hover:from-[#E55619] group-hover:to-[#A1ADE5] group-hover:bg-clip-text group-hover:text-transparent",
|
|
9388
9358
|
"group-focus-visible:bg-gradient-to-r group-focus-visible:from-[#E55619] group-focus-visible:to-[#A1ADE5] group-focus-visible:bg-clip-text group-focus-visible:text-transparent"
|
|
@@ -9393,7 +9363,7 @@ const x4 = /[\\`*_{}[\]()#+\-.!|~>]/g, k4 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
9393
9363
|
}
|
|
9394
9364
|
) : /* @__PURE__ */ r(fe, { className: "text-sm font-medium text-f1-foreground-tertiary", children: w.text }),
|
|
9395
9365
|
w.link && w.linkText && /* @__PURE__ */ r(
|
|
9396
|
-
|
|
9366
|
+
Xs,
|
|
9397
9367
|
{
|
|
9398
9368
|
href: w.link,
|
|
9399
9369
|
target: "_blank",
|
|
@@ -9418,7 +9388,7 @@ function b4({
|
|
|
9418
9388
|
"pre",
|
|
9419
9389
|
{
|
|
9420
9390
|
...t,
|
|
9421
|
-
className:
|
|
9391
|
+
className: E(
|
|
9422
9392
|
"relative mx-0 overflow-x-auto whitespace-pre-wrap rounded-md bg-f1-background-secondary p-2",
|
|
9423
9393
|
t.className
|
|
9424
9394
|
),
|
|
@@ -9434,7 +9404,7 @@ function L4({
|
|
|
9434
9404
|
"code",
|
|
9435
9405
|
{
|
|
9436
9406
|
...t,
|
|
9437
|
-
className:
|
|
9407
|
+
className: E(
|
|
9438
9408
|
// Inline default
|
|
9439
9409
|
"rounded bg-f1-background-secondary px-1 py-0.5 font-mono text-base text-f1-foreground",
|
|
9440
9410
|
// Reset inside <pre> — let the parent handle the surface
|
|
@@ -9453,7 +9423,7 @@ function y4({
|
|
|
9453
9423
|
"blockquote",
|
|
9454
9424
|
{
|
|
9455
9425
|
...t,
|
|
9456
|
-
className:
|
|
9426
|
+
className: E(
|
|
9457
9427
|
"mr-1 my-2 mb-2.5 border-0 border-l-4 border-solid border-f1-border pl-3 text-base",
|
|
9458
9428
|
t.className
|
|
9459
9429
|
),
|
|
@@ -9466,7 +9436,7 @@ function M4({ ...e }) {
|
|
|
9466
9436
|
"hr",
|
|
9467
9437
|
{
|
|
9468
9438
|
...e,
|
|
9469
|
-
className:
|
|
9439
|
+
className: E("my-3 border-0 border-t border-f1-border", e.className)
|
|
9470
9440
|
}
|
|
9471
9441
|
);
|
|
9472
9442
|
}
|
|
@@ -9488,7 +9458,7 @@ function E4({
|
|
|
9488
9458
|
...n,
|
|
9489
9459
|
src: e,
|
|
9490
9460
|
alt: t,
|
|
9491
|
-
className:
|
|
9461
|
+
className: E("max-w-full rounded-md", n.className)
|
|
9492
9462
|
}
|
|
9493
9463
|
),
|
|
9494
9464
|
/* @__PURE__ */ r("div", { className: "absolute right-2 top-2 rounded", children: /* @__PURE__ */ r(
|
|
@@ -9507,7 +9477,7 @@ function R4({
|
|
|
9507
9477
|
children: e,
|
|
9508
9478
|
...t
|
|
9509
9479
|
}) {
|
|
9510
|
-
return /* @__PURE__ */ r(
|
|
9480
|
+
return /* @__PURE__ */ r(Ys, { ...t, variant: "link", href: t.href, children: e });
|
|
9511
9481
|
}
|
|
9512
9482
|
function N4({
|
|
9513
9483
|
children: e,
|
|
@@ -9517,7 +9487,7 @@ function N4({
|
|
|
9517
9487
|
"ul",
|
|
9518
9488
|
{
|
|
9519
9489
|
...t,
|
|
9520
|
-
className:
|
|
9490
|
+
className: E(
|
|
9521
9491
|
"list-disc pl-5 [&>li>ol]:mt-2 [&>li>ul]:mt-2",
|
|
9522
9492
|
t.className
|
|
9523
9493
|
),
|
|
@@ -9533,7 +9503,7 @@ function F4({
|
|
|
9533
9503
|
"ol",
|
|
9534
9504
|
{
|
|
9535
9505
|
...t,
|
|
9536
|
-
className:
|
|
9506
|
+
className: E(
|
|
9537
9507
|
"list-decimal pl-5 [&>li>ol]:mt-2 [&>li>ul]:mt-2",
|
|
9538
9508
|
t.className
|
|
9539
9509
|
),
|
|
@@ -9545,7 +9515,7 @@ function S4({
|
|
|
9545
9515
|
children: e,
|
|
9546
9516
|
...t
|
|
9547
9517
|
}) {
|
|
9548
|
-
return /* @__PURE__ */ r("li", { ...t, className:
|
|
9518
|
+
return /* @__PURE__ */ r("li", { ...t, className: E("mb-2", t.className), children: e });
|
|
9549
9519
|
}
|
|
9550
9520
|
async function V4(e, t, n) {
|
|
9551
9521
|
const o = await import("./xlsx-Bedf3nwD.js"), s = o.utils.table_to_book(e, { sheet: "Data" });
|
|
@@ -9603,7 +9573,7 @@ function T4({
|
|
|
9603
9573
|
{
|
|
9604
9574
|
ref: s,
|
|
9605
9575
|
...n,
|
|
9606
|
-
className:
|
|
9576
|
+
className: E(
|
|
9607
9577
|
"w-full border-separate border-spacing-0 [&_tbody_tr:last-child_td]:border-b-0",
|
|
9608
9578
|
n.className
|
|
9609
9579
|
),
|
|
@@ -9620,7 +9590,7 @@ function A4({
|
|
|
9620
9590
|
"th",
|
|
9621
9591
|
{
|
|
9622
9592
|
...t,
|
|
9623
|
-
className:
|
|
9593
|
+
className: E(
|
|
9624
9594
|
"sticky top-0 z-10 whitespace-nowrap border-0 border-b border-solid border-f1-border-secondary bg-f1-background px-3 py-2 text-left font-medium text-f1-foreground-secondary",
|
|
9625
9595
|
t.className
|
|
9626
9596
|
),
|
|
@@ -9636,7 +9606,7 @@ function H4({
|
|
|
9636
9606
|
"td",
|
|
9637
9607
|
{
|
|
9638
9608
|
...t,
|
|
9639
|
-
className:
|
|
9609
|
+
className: E(
|
|
9640
9610
|
"max-w-80 truncate border-0 border-b border-solid border-f1-border-secondary px-3 py-2",
|
|
9641
9611
|
t.className
|
|
9642
9612
|
),
|
|
@@ -9648,7 +9618,7 @@ function B4({
|
|
|
9648
9618
|
children: e,
|
|
9649
9619
|
...t
|
|
9650
9620
|
}) {
|
|
9651
|
-
return /* @__PURE__ */ r("p", { ...t, className:
|
|
9621
|
+
return /* @__PURE__ */ r("p", { ...t, className: E("text-base font-normal", t.className), children: e });
|
|
9652
9622
|
}
|
|
9653
9623
|
function $4({
|
|
9654
9624
|
children: e,
|
|
@@ -9658,7 +9628,7 @@ function $4({
|
|
|
9658
9628
|
"h1",
|
|
9659
9629
|
{
|
|
9660
9630
|
...t,
|
|
9661
|
-
className:
|
|
9631
|
+
className: E(
|
|
9662
9632
|
"mb-2.5 mt-4 text-2xl font-medium first:mt-0 last:mb-0",
|
|
9663
9633
|
t.className
|
|
9664
9634
|
),
|
|
@@ -9674,7 +9644,7 @@ function I4({
|
|
|
9674
9644
|
"h2",
|
|
9675
9645
|
{
|
|
9676
9646
|
...t,
|
|
9677
|
-
className:
|
|
9647
|
+
className: E(
|
|
9678
9648
|
"mb-2.5 mt-4 text-lg font-medium leading-6 first:mt-0 last:mb-0",
|
|
9679
9649
|
t.className
|
|
9680
9650
|
),
|
|
@@ -9690,7 +9660,7 @@ function P4({
|
|
|
9690
9660
|
"h3",
|
|
9691
9661
|
{
|
|
9692
9662
|
...t,
|
|
9693
|
-
className:
|
|
9663
|
+
className: E(
|
|
9694
9664
|
"mb-2 mt-3.5 text-base font-semibold first:mt-0 last:mb-0",
|
|
9695
9665
|
t.className
|
|
9696
9666
|
),
|
|
@@ -9702,13 +9672,13 @@ function j4({
|
|
|
9702
9672
|
children: e,
|
|
9703
9673
|
...t
|
|
9704
9674
|
}) {
|
|
9705
|
-
return /* @__PURE__ */ r("strong", { ...t, className:
|
|
9675
|
+
return /* @__PURE__ */ r("strong", { ...t, className: E("font-semibold", t.className), children: e });
|
|
9706
9676
|
}
|
|
9707
9677
|
function D4({
|
|
9708
9678
|
children: e,
|
|
9709
9679
|
...t
|
|
9710
9680
|
}) {
|
|
9711
|
-
return /* @__PURE__ */ r("em", { ...t, className:
|
|
9681
|
+
return /* @__PURE__ */ r("em", { ...t, className: E("italic", t.className), children: e });
|
|
9712
9682
|
}
|
|
9713
9683
|
function Ie({
|
|
9714
9684
|
id: e,
|
|
@@ -9761,13 +9731,13 @@ function Ie({
|
|
|
9761
9731
|
}
|
|
9762
9732
|
);
|
|
9763
9733
|
}
|
|
9764
|
-
const
|
|
9734
|
+
const Kr = C(
|
|
9765
9735
|
({ label: e, ...t }, n) => /* @__PURE__ */ r(
|
|
9766
9736
|
"button",
|
|
9767
9737
|
{
|
|
9768
9738
|
ref: n,
|
|
9769
9739
|
type: "button",
|
|
9770
|
-
className:
|
|
9740
|
+
className: E(
|
|
9771
9741
|
"cursor-pointer font-medium text-f1-foreground-secondary hover:text-f1-foreground",
|
|
9772
9742
|
ve()
|
|
9773
9743
|
),
|
|
@@ -9776,7 +9746,7 @@ const Qr = C(
|
|
|
9776
9746
|
}
|
|
9777
9747
|
)
|
|
9778
9748
|
);
|
|
9779
|
-
|
|
9749
|
+
Kr.displayName = "CandidateTrigger";
|
|
9780
9750
|
function _4({
|
|
9781
9751
|
id: e,
|
|
9782
9752
|
label: t
|
|
@@ -9829,20 +9799,20 @@ function _4({
|
|
|
9829
9799
|
Ie,
|
|
9830
9800
|
{
|
|
9831
9801
|
id: e,
|
|
9832
|
-
trigger: /* @__PURE__ */ r(
|
|
9802
|
+
trigger: /* @__PURE__ */ r(Kr, { label: t }),
|
|
9833
9803
|
resolver: o,
|
|
9834
9804
|
mapToCard: a,
|
|
9835
9805
|
fallbackCard: l
|
|
9836
9806
|
}
|
|
9837
9807
|
) : /* @__PURE__ */ r("span", { children: t });
|
|
9838
9808
|
}
|
|
9839
|
-
const
|
|
9809
|
+
const Qr = C(
|
|
9840
9810
|
({ label: e, ...t }, n) => /* @__PURE__ */ r(
|
|
9841
9811
|
"button",
|
|
9842
9812
|
{
|
|
9843
9813
|
ref: n,
|
|
9844
9814
|
type: "button",
|
|
9845
|
-
className:
|
|
9815
|
+
className: E(
|
|
9846
9816
|
"cursor-pointer font-medium text-f1-foreground-secondary hover:text-f1-foreground",
|
|
9847
9817
|
ve()
|
|
9848
9818
|
),
|
|
@@ -9851,13 +9821,13 @@ const Jr = C(
|
|
|
9851
9821
|
}
|
|
9852
9822
|
)
|
|
9853
9823
|
);
|
|
9854
|
-
|
|
9824
|
+
Qr.displayName = "ExpenseTrigger";
|
|
9855
9825
|
function O4({ id: e, label: t }) {
|
|
9856
9826
|
const { entityRefs: n } = Ee(), o = n?.resolvers?.expense, s = ee(), i = n?.urls?.expense?.(e), a = te(
|
|
9857
9827
|
() => (c) => ({
|
|
9858
9828
|
avatar: {
|
|
9859
9829
|
type: "icon",
|
|
9860
|
-
icon:
|
|
9830
|
+
icon: Rr
|
|
9861
9831
|
},
|
|
9862
9832
|
title: c.description || `Expense #${c.id}`,
|
|
9863
9833
|
description: [c.amount, c.status].filter(Boolean).join(" · "),
|
|
@@ -9885,20 +9855,20 @@ function O4({ id: e, label: t }) {
|
|
|
9885
9855
|
Ie,
|
|
9886
9856
|
{
|
|
9887
9857
|
id: e,
|
|
9888
|
-
trigger: /* @__PURE__ */ r(
|
|
9858
|
+
trigger: /* @__PURE__ */ r(Qr, { label: t }),
|
|
9889
9859
|
resolver: o,
|
|
9890
9860
|
mapToCard: a,
|
|
9891
9861
|
fallbackCard: l
|
|
9892
9862
|
}
|
|
9893
9863
|
) : /* @__PURE__ */ r("span", { children: t });
|
|
9894
9864
|
}
|
|
9895
|
-
const
|
|
9865
|
+
const Jr = C(
|
|
9896
9866
|
({ label: e, ...t }, n) => /* @__PURE__ */ r(
|
|
9897
9867
|
"button",
|
|
9898
9868
|
{
|
|
9899
9869
|
ref: n,
|
|
9900
9870
|
type: "button",
|
|
9901
|
-
className:
|
|
9871
|
+
className: E(
|
|
9902
9872
|
"cursor-pointer font-medium text-f1-foreground-secondary hover:text-f1-foreground",
|
|
9903
9873
|
ve()
|
|
9904
9874
|
),
|
|
@@ -9907,7 +9877,7 @@ const en = C(
|
|
|
9907
9877
|
}
|
|
9908
9878
|
)
|
|
9909
9879
|
);
|
|
9910
|
-
|
|
9880
|
+
Jr.displayName = "JobPostingTrigger";
|
|
9911
9881
|
function Z4({
|
|
9912
9882
|
id: e,
|
|
9913
9883
|
label: t
|
|
@@ -9940,7 +9910,7 @@ function Z4({
|
|
|
9940
9910
|
Ie,
|
|
9941
9911
|
{
|
|
9942
9912
|
id: e,
|
|
9943
|
-
trigger: /* @__PURE__ */ r(
|
|
9913
|
+
trigger: /* @__PURE__ */ r(Jr, { label: t }),
|
|
9944
9914
|
resolver: o,
|
|
9945
9915
|
mapToCard: a,
|
|
9946
9916
|
fallbackCard: l
|
|
@@ -9953,13 +9923,13 @@ function U4({ rows: e }) {
|
|
|
9953
9923
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-1.5 font-medium text-f1-foreground", children: t.value })
|
|
9954
9924
|
] }, t.label ?? n)) });
|
|
9955
9925
|
}
|
|
9956
|
-
const
|
|
9926
|
+
const en = C(
|
|
9957
9927
|
({ label: e, ...t }, n) => /* @__PURE__ */ r(
|
|
9958
9928
|
"button",
|
|
9959
9929
|
{
|
|
9960
9930
|
ref: n,
|
|
9961
9931
|
type: "button",
|
|
9962
|
-
className:
|
|
9932
|
+
className: E(
|
|
9963
9933
|
"cursor-pointer font-medium text-f1-foreground-secondary hover:text-f1-foreground",
|
|
9964
9934
|
ve()
|
|
9965
9935
|
),
|
|
@@ -9968,7 +9938,7 @@ const tn = C(
|
|
|
9968
9938
|
}
|
|
9969
9939
|
)
|
|
9970
9940
|
);
|
|
9971
|
-
|
|
9941
|
+
en.displayName = "RequisitionTrigger";
|
|
9972
9942
|
function z4({
|
|
9973
9943
|
id: e,
|
|
9974
9944
|
label: t
|
|
@@ -9990,7 +9960,7 @@ function z4({
|
|
|
9990
9960
|
label: s.t("ai.entityRef.requisition.lineManager"),
|
|
9991
9961
|
value: /* @__PURE__ */ d("div", { className: "flex items-center gap-1.5 pt-1", children: [
|
|
9992
9962
|
/* @__PURE__ */ r(
|
|
9993
|
-
|
|
9963
|
+
fr,
|
|
9994
9964
|
{
|
|
9995
9965
|
firstName: c.lineManager.firstName,
|
|
9996
9966
|
lastName: c.lineManager.lastName,
|
|
@@ -10039,20 +10009,20 @@ function z4({
|
|
|
10039
10009
|
Ie,
|
|
10040
10010
|
{
|
|
10041
10011
|
id: e,
|
|
10042
|
-
trigger: /* @__PURE__ */ r(
|
|
10012
|
+
trigger: /* @__PURE__ */ r(en, { label: t }),
|
|
10043
10013
|
resolver: o,
|
|
10044
10014
|
mapToCard: a,
|
|
10045
10015
|
fallbackCard: l
|
|
10046
10016
|
}
|
|
10047
10017
|
) : /* @__PURE__ */ r("span", { children: t });
|
|
10048
10018
|
}
|
|
10049
|
-
const
|
|
10019
|
+
const tn = C(
|
|
10050
10020
|
({ label: e, ...t }, n) => /* @__PURE__ */ d(
|
|
10051
10021
|
"button",
|
|
10052
10022
|
{
|
|
10053
10023
|
ref: n,
|
|
10054
10024
|
type: "button",
|
|
10055
|
-
className:
|
|
10025
|
+
className: E(
|
|
10056
10026
|
"cursor-pointer font-medium text-f1-foreground-secondary hover:text-f1-foreground",
|
|
10057
10027
|
ve()
|
|
10058
10028
|
),
|
|
@@ -10064,7 +10034,7 @@ const rn = C(
|
|
|
10064
10034
|
}
|
|
10065
10035
|
)
|
|
10066
10036
|
);
|
|
10067
|
-
|
|
10037
|
+
tn.displayName = "PersonTrigger";
|
|
10068
10038
|
function G4({ id: e, label: t }) {
|
|
10069
10039
|
const { entityRefs: n } = Ee(), o = n?.resolvers?.person, s = ee(), i = n?.urls?.person?.(e), a = te(
|
|
10070
10040
|
() => (c) => ({
|
|
@@ -10100,20 +10070,20 @@ function G4({ id: e, label: t }) {
|
|
|
10100
10070
|
Ie,
|
|
10101
10071
|
{
|
|
10102
10072
|
id: e,
|
|
10103
|
-
trigger: /* @__PURE__ */ r(
|
|
10073
|
+
trigger: /* @__PURE__ */ r(tn, { label: t }),
|
|
10104
10074
|
resolver: o,
|
|
10105
10075
|
mapToCard: a,
|
|
10106
10076
|
fallbackCard: l
|
|
10107
10077
|
}
|
|
10108
10078
|
) : /* @__PURE__ */ r("span", { children: t });
|
|
10109
10079
|
}
|
|
10110
|
-
const
|
|
10080
|
+
const rn = C(
|
|
10111
10081
|
({ label: e, ...t }, n) => /* @__PURE__ */ r(
|
|
10112
10082
|
"button",
|
|
10113
10083
|
{
|
|
10114
10084
|
ref: n,
|
|
10115
10085
|
type: "button",
|
|
10116
|
-
className:
|
|
10086
|
+
className: E(
|
|
10117
10087
|
"cursor-pointer font-medium text-f1-foreground-secondary hover:text-f1-foreground",
|
|
10118
10088
|
ve()
|
|
10119
10089
|
),
|
|
@@ -10122,7 +10092,7 @@ const nn = C(
|
|
|
10122
10092
|
}
|
|
10123
10093
|
)
|
|
10124
10094
|
);
|
|
10125
|
-
|
|
10095
|
+
rn.displayName = "VacancyTrigger";
|
|
10126
10096
|
function W4({ id: e, label: t }) {
|
|
10127
10097
|
const { entityRefs: n } = Ee(), o = n?.resolvers?.vacancy, s = ee(), i = n?.urls?.vacancy?.(e), a = te(
|
|
10128
10098
|
() => (c) => ({
|
|
@@ -10152,7 +10122,7 @@ function W4({ id: e, label: t }) {
|
|
|
10152
10122
|
Ie,
|
|
10153
10123
|
{
|
|
10154
10124
|
id: e,
|
|
10155
|
-
trigger: /* @__PURE__ */ r(
|
|
10125
|
+
trigger: /* @__PURE__ */ r(rn, { label: t }),
|
|
10156
10126
|
resolver: o,
|
|
10157
10127
|
mapToCard: a,
|
|
10158
10128
|
fallbackCard: l
|
|
@@ -10227,7 +10197,7 @@ const g3 = {
|
|
|
10227
10197
|
animate: {
|
|
10228
10198
|
scale: [1, 0.9, 1]
|
|
10229
10199
|
}
|
|
10230
|
-
},
|
|
10200
|
+
}, nn = An.forwardRef(({ animate: e = "normal", ...t }, n) => /* @__PURE__ */ d(
|
|
10231
10201
|
"svg",
|
|
10232
10202
|
{
|
|
10233
10203
|
ref: n,
|
|
@@ -10267,15 +10237,15 @@ const g3 = {
|
|
|
10267
10237
|
]
|
|
10268
10238
|
}
|
|
10269
10239
|
));
|
|
10270
|
-
|
|
10271
|
-
const
|
|
10240
|
+
nn.displayName = "CheckCircleLineAnimated";
|
|
10241
|
+
const on = 60, sn = 40, lt = 2e3, t6 = 500, r6 = 12e3, an = 2, Oe = 40, He = [255, 60, 0], x1 = [160, 140, 220], k1 = { x: -12, y: 0, z: 0 }, b1 = { x: -12, y: 12, z: 90 }, Be = {
|
|
10272
10242
|
20: 0.72,
|
|
10273
10243
|
28: 0.66,
|
|
10274
10244
|
32: 0.72,
|
|
10275
10245
|
60: 0.77,
|
|
10276
10246
|
80: 0.8,
|
|
10277
10247
|
120: 0.85
|
|
10278
|
-
}, L1 = Math.PI / 180, n6 =
|
|
10248
|
+
}, L1 = Math.PI / 180, n6 = an / 8 * Math.PI, o6 = 4 * Math.PI;
|
|
10279
10249
|
function s1(e, t) {
|
|
10280
10250
|
return [
|
|
10281
10251
|
e[0] * t[0] - e[1] * t[1] - e[2] * t[2] - e[3] * t[3],
|
|
@@ -10297,7 +10267,7 @@ function dt(e, t, n, o, s) {
|
|
|
10297
10267
|
const i = e[0], a = e[1], l = e[2], c = e[3], f = 2 * (l * o - c * n), u = 2 * (c * t - a * o), h = 2 * (a * n - l * t);
|
|
10298
10268
|
s[0] = t + i * f + l * h - c * u, s[1] = n + i * u + c * f - a * h, s[2] = o + i * h + a * u - l * f;
|
|
10299
10269
|
}
|
|
10300
|
-
function
|
|
10270
|
+
function cn(e, t, n) {
|
|
10301
10271
|
const o = Ze(1, 0, 0, e * L1), s = Ze(0, 1, 0, t * L1), i = Ze(0, 0, 1, n * L1);
|
|
10302
10272
|
return s6(s1(s1(s, o), i));
|
|
10303
10273
|
}
|
|
@@ -10329,7 +10299,7 @@ function d6(e) {
|
|
|
10329
10299
|
}
|
|
10330
10300
|
return 0.72;
|
|
10331
10301
|
}
|
|
10332
|
-
const ut = Math.sqrt(
|
|
10302
|
+
const ut = Math.sqrt(on ** 2 + sn ** 2), y1 = [on / ut, sn / ut, 0], u6 = cn(k1.x, k1.y, k1.z), f6 = cn(b1.x, b1.y, b1.z), $e = an * 3, t1 = Oe + 1, ft = ($e + 1) * t1, i1 = 4 * $e * Oe, M1 = [
|
|
10333
10303
|
[0, 0, 0, 0],
|
|
10334
10304
|
[0, 0, 0, 0]
|
|
10335
10305
|
], h6 = (e, t) => e.avgZ - t.avgZ;
|
|
@@ -10349,23 +10319,23 @@ function ht(e, t, n, o) {
|
|
|
10349
10319
|
M1[0] = g, M1[1] = p;
|
|
10350
10320
|
let w = 0;
|
|
10351
10321
|
for (let v = 0; v < 4; v++) {
|
|
10352
|
-
const x = M1[v >> 1],
|
|
10353
|
-
for (let
|
|
10354
|
-
const R =
|
|
10355
|
-
for (let
|
|
10356
|
-
const k =
|
|
10357
|
-
dt(x,
|
|
10358
|
-
const y = i[b +
|
|
10359
|
-
y.x = Re[0], y.y = Re[1], y.z = Re[2], y.t =
|
|
10322
|
+
const x = M1[v >> 1], A = v & 1 ? -1 : 1;
|
|
10323
|
+
for (let F = 0; F <= $e; F++) {
|
|
10324
|
+
const R = A * (Math.PI / 2 - F / $e * f), M = Math.cos(R), L = Math.sin(R), S = Math.sin(F / $e * Math.PI), b = F * t1;
|
|
10325
|
+
for (let V = 0; V <= Oe; V++) {
|
|
10326
|
+
const k = V / Oe * Math.PI * 2;
|
|
10327
|
+
dt(x, M * Math.cos(k), L, M * Math.sin(k), Re);
|
|
10328
|
+
const y = i[b + V];
|
|
10329
|
+
y.x = Re[0], y.y = Re[1], y.z = Re[2], y.t = S;
|
|
10360
10330
|
}
|
|
10361
10331
|
}
|
|
10362
|
-
for (let
|
|
10363
|
-
const R =
|
|
10332
|
+
for (let F = 0; F < $e; F++) {
|
|
10333
|
+
const R = F * t1, M = (F + 1) * t1;
|
|
10364
10334
|
for (let L = 0; L < Oe; L++) {
|
|
10365
|
-
const
|
|
10366
|
-
if ((
|
|
10367
|
-
const
|
|
10368
|
-
Te.points = `${J},${Y} ${ie},${ue} ${I},${W} ${Ve},${me}`, Te.color = c6((
|
|
10335
|
+
const S = i[R + L], b = i[R + L + 1], V = i[M + L], k = i[M + L + 1];
|
|
10336
|
+
if ((S.t + b.t + V.t + k.t) * 0.25 < 1e-3) continue;
|
|
10337
|
+
const T = (S.x + b.x + V.x + k.x) * 0.25, j = (S.y + b.y + V.y + k.y) * 0.25, _ = (S.z + b.z + V.z + k.z) * 0.25, Z = T * a, G = j * a, q = S.x * a - Z, U = S.y * a - G, z = Math.sqrt(q * q + U * U), O = z > 0 ? (z + 0.9) / z : 1, J = l + Z + q * O, Y = c - G - U * O, le = b.x * a - Z, de = b.y * a - G, se = Math.sqrt(le * le + de * de), re = se > 0 ? (se + 0.9) / se : 1, ie = l + Z + le * re, ue = c - G - de * re, N = k.x * a - Z, B = k.y * a - G, H = Math.sqrt(N * N + B * B), D = H > 0 ? (H + 0.9) / H : 1, I = l + Z + N * D, W = c - G - B * D, ae = V.x * a - Z, Q = V.y * a - G, pe = Math.sqrt(ae * ae + Q * Q), xe = pe > 0 ? (pe + 0.9) / pe : 1, Ve = l + Z + ae * xe, me = c - G - Q * xe, Te = s[w];
|
|
10338
|
+
Te.points = `${J},${Y} ${ie},${ue} ${I},${W} ${Ve},${me}`, Te.color = c6((T + 1) * 0.5), Te.avgZ = _, w++;
|
|
10369
10339
|
}
|
|
10370
10340
|
}
|
|
10371
10341
|
}
|
|
@@ -10385,48 +10355,48 @@ const p6 = ({ size: e = 20, className: t, style: n, variant: o = "default" }, s)
|
|
|
10385
10355
|
const m = u.querySelectorAll(
|
|
10386
10356
|
"polygon"
|
|
10387
10357
|
), g = l.current;
|
|
10388
|
-
let p = null, w = 0, v = 0, x = 0,
|
|
10358
|
+
let p = null, w = 0, v = 0, x = 0, A = null, F = "spin", R = !0, M = !1;
|
|
10389
10359
|
const L = (y) => {
|
|
10390
|
-
const
|
|
10360
|
+
const T = g.quads;
|
|
10391
10361
|
for (let j = 0; j < m.length; j++) {
|
|
10392
10362
|
const _ = m[j];
|
|
10393
10363
|
if (j < y) {
|
|
10394
|
-
const Z =
|
|
10364
|
+
const Z = T[j];
|
|
10395
10365
|
_.setAttribute("points", Z.points), _.setAttribute("fill", Z.color), _.hasAttribute("display") && _.removeAttribute("display");
|
|
10396
10366
|
} else _.hasAttribute("display") || _.setAttribute("display", "none");
|
|
10397
10367
|
}
|
|
10398
|
-
},
|
|
10399
|
-
|
|
10400
|
-
let
|
|
10368
|
+
}, S = (y) => {
|
|
10369
|
+
M || (w = y, v = y, M = !0);
|
|
10370
|
+
let T = 0, j = !0;
|
|
10401
10371
|
if (o === "continuous") {
|
|
10402
10372
|
const q = lt * 2, U = (y - w) % q / q;
|
|
10403
|
-
|
|
10404
|
-
} else
|
|
10405
|
-
const _ = (y - v) / r6 % 1, Z = j ? i6(
|
|
10406
|
-
L(G), p = requestAnimationFrame(
|
|
10373
|
+
T = U < 0.5 ? U * 2 : (1 - U) * 2, j = !1;
|
|
10374
|
+
} else F === "spin" ? (T = Math.min((y - w) / lt, 1), T >= 1 && (T = 0, F = "pause", x = y)) : (T = 0, y - x >= t6 && (F = "spin", w = y));
|
|
10375
|
+
const _ = (y - v) / r6 % 1, Z = j ? i6(T) : T, G = ht(g, Z, e, _);
|
|
10376
|
+
L(G), p = requestAnimationFrame(S);
|
|
10407
10377
|
}, b = () => {
|
|
10408
|
-
p === null && (p = requestAnimationFrame(
|
|
10409
|
-
},
|
|
10378
|
+
p === null && (p = requestAnimationFrame(S));
|
|
10379
|
+
}, V = () => {
|
|
10410
10380
|
p !== null && (cancelAnimationFrame(p), p = null);
|
|
10411
10381
|
};
|
|
10412
10382
|
L(ht(g, 0, e, 0));
|
|
10413
10383
|
let k = null;
|
|
10414
10384
|
return typeof IntersectionObserver < "u" && (k = new IntersectionObserver(
|
|
10415
10385
|
(y) => {
|
|
10416
|
-
const
|
|
10417
|
-
if (
|
|
10418
|
-
if (R =
|
|
10419
|
-
if (
|
|
10420
|
-
const j = performance.now() -
|
|
10386
|
+
const T = y[0]?.isIntersecting ?? !0;
|
|
10387
|
+
if (T !== R)
|
|
10388
|
+
if (R = T, T) {
|
|
10389
|
+
if (A !== null && M) {
|
|
10390
|
+
const j = performance.now() - A;
|
|
10421
10391
|
w += j, v += j, x += j;
|
|
10422
10392
|
}
|
|
10423
|
-
|
|
10393
|
+
A = null, b();
|
|
10424
10394
|
} else
|
|
10425
|
-
|
|
10395
|
+
A = performance.now(), V();
|
|
10426
10396
|
},
|
|
10427
10397
|
{ threshold: 0 }
|
|
10428
10398
|
), k.observe(h)), b(), () => {
|
|
10429
|
-
|
|
10399
|
+
V(), k?.disconnect();
|
|
10430
10400
|
};
|
|
10431
10401
|
}, [e, o]), /* @__PURE__ */ r(
|
|
10432
10402
|
"div",
|
|
@@ -10434,7 +10404,7 @@ const p6 = ({ size: e = 20, className: t, style: n, variant: o = "default" }, s)
|
|
|
10434
10404
|
ref: f,
|
|
10435
10405
|
role: "progressbar",
|
|
10436
10406
|
"aria-label": "Loading",
|
|
10437
|
-
className:
|
|
10407
|
+
className: E("shrink-0 globe-spin-anim", t),
|
|
10438
10408
|
style: { width: e, height: e, ...n },
|
|
10439
10409
|
children: /* @__PURE__ */ r(
|
|
10440
10410
|
"svg",
|
|
@@ -10451,10 +10421,10 @@ const p6 = ({ size: e = 20, className: t, style: n, variant: o = "default" }, s)
|
|
|
10451
10421
|
)
|
|
10452
10422
|
}
|
|
10453
10423
|
);
|
|
10454
|
-
},
|
|
10424
|
+
}, ln = C(
|
|
10455
10425
|
p6
|
|
10456
10426
|
);
|
|
10457
|
-
|
|
10427
|
+
ln.displayName = "ChatSpinner";
|
|
10458
10428
|
const gt = {
|
|
10459
10429
|
initial: { opacity: 0 },
|
|
10460
10430
|
animate: { opacity: 1 },
|
|
@@ -10483,7 +10453,7 @@ const gt = {
|
|
|
10483
10453
|
},
|
|
10484
10454
|
"inProgress"
|
|
10485
10455
|
),
|
|
10486
|
-
(a || c) && /* @__PURE__ */ r("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ r(
|
|
10456
|
+
(a || c) && /* @__PURE__ */ r("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ r(ln, { variant: a ? "default" : "continuous" }) }),
|
|
10487
10457
|
l && /* @__PURE__ */ r(
|
|
10488
10458
|
oe.div,
|
|
10489
10459
|
{
|
|
@@ -10496,7 +10466,7 @@ const gt = {
|
|
|
10496
10466
|
color: "secondary",
|
|
10497
10467
|
state: "animate",
|
|
10498
10468
|
size: n ? "md" : "lg",
|
|
10499
|
-
icon:
|
|
10469
|
+
icon: nn
|
|
10500
10470
|
}
|
|
10501
10471
|
)
|
|
10502
10472
|
},
|
|
@@ -10506,7 +10476,7 @@ const gt = {
|
|
|
10506
10476
|
e && /* @__PURE__ */ r(
|
|
10507
10477
|
"p",
|
|
10508
10478
|
{
|
|
10509
|
-
className:
|
|
10479
|
+
className: E(
|
|
10510
10480
|
"text-pretty leading-5",
|
|
10511
10481
|
(a || c) && "shine-text"
|
|
10512
10482
|
),
|
|
@@ -10520,7 +10490,7 @@ const gt = {
|
|
|
10520
10490
|
"writing",
|
|
10521
10491
|
"completed"
|
|
10522
10492
|
];
|
|
10523
|
-
function
|
|
10493
|
+
function dn({
|
|
10524
10494
|
avatar: e,
|
|
10525
10495
|
title: t,
|
|
10526
10496
|
description: n,
|
|
@@ -10532,7 +10502,7 @@ function un({
|
|
|
10532
10502
|
return /* @__PURE__ */ d(
|
|
10533
10503
|
"div",
|
|
10534
10504
|
{
|
|
10535
|
-
className:
|
|
10505
|
+
className: E(
|
|
10536
10506
|
"flex flex-col items-center justify-between gap-3 rounded-lg border border-solid px-3 py-2",
|
|
10537
10507
|
l && "cursor-pointer",
|
|
10538
10508
|
o ? "border-f1-border-hover" : "border-f1-border-secondary"
|
|
@@ -10540,7 +10510,7 @@ function un({
|
|
|
10540
10510
|
onClick: c,
|
|
10541
10511
|
children: [
|
|
10542
10512
|
/* @__PURE__ */ d("div", { className: "flex w-full min-w-0 flex-row items-center gap-3", children: [
|
|
10543
|
-
e?.type === "module" && /* @__PURE__ */ r(
|
|
10513
|
+
e?.type === "module" && /* @__PURE__ */ r(hr, { module: e.module, size: "lg" }),
|
|
10544
10514
|
e?.type === "file" && /* @__PURE__ */ r(ti, { file: e.file, size: "lg" }),
|
|
10545
10515
|
/* @__PURE__ */ d("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
10546
10516
|
/* @__PURE__ */ r(fe, { className: "text-lg font-semibold text-f1-foreground", children: t }),
|
|
@@ -10572,7 +10542,7 @@ function un({
|
|
|
10572
10542
|
}
|
|
10573
10543
|
);
|
|
10574
10544
|
}
|
|
10575
|
-
|
|
10545
|
+
dn.displayName = "F0CanvasCard";
|
|
10576
10546
|
const z1 = a1(null);
|
|
10577
10547
|
function m3({
|
|
10578
10548
|
children: e
|
|
@@ -10640,7 +10610,7 @@ function vt(e) {
|
|
|
10640
10610
|
function wt(e) {
|
|
10641
10611
|
return e.type === "item" ? e.text : "";
|
|
10642
10612
|
}
|
|
10643
|
-
function
|
|
10613
|
+
function un(e, t) {
|
|
10644
10614
|
if (e == null || e === "") return { type: "item", text: "—" };
|
|
10645
10615
|
if (t === "duration" && typeof e == "number")
|
|
10646
10616
|
return { type: "item", text: x6(e) };
|
|
@@ -10658,7 +10628,7 @@ function fn(e, t) {
|
|
|
10658
10628
|
return { type: "item", text: e ? "Yes" : "No" };
|
|
10659
10629
|
if (Array.isArray(e))
|
|
10660
10630
|
return { type: "item", text: e.map((o) => {
|
|
10661
|
-
const s =
|
|
10631
|
+
const s = un(o);
|
|
10662
10632
|
return Array.isArray(s) ? s.map(wt).join(", ") : wt(s);
|
|
10663
10633
|
}).filter(Boolean).join(", ") || "—" };
|
|
10664
10634
|
if (typeof e == "object" && e !== null) {
|
|
@@ -10667,7 +10637,7 @@ function fn(e, t) {
|
|
|
10667
10637
|
}
|
|
10668
10638
|
return { type: "item", text: w6(String(e)) };
|
|
10669
10639
|
}
|
|
10670
|
-
function
|
|
10640
|
+
function fn({
|
|
10671
10641
|
formName: e,
|
|
10672
10642
|
formDescription: t,
|
|
10673
10643
|
module: n,
|
|
@@ -10689,26 +10659,26 @@ function hn({
|
|
|
10689
10659
|
g.current = x, K(() => {
|
|
10690
10660
|
typeof window > "u" || window.innerWidth < C6 || mt.has(e) || (mt.add(e), g.current());
|
|
10691
10661
|
}, [e]);
|
|
10692
|
-
const
|
|
10693
|
-
const
|
|
10662
|
+
const A = i && a ? Object.entries(i).map(([M, L]) => {
|
|
10663
|
+
const S = a[M], b = m?.(M, S, {
|
|
10694
10664
|
fieldType: L.fieldType,
|
|
10695
10665
|
customFieldName: L.customFieldName
|
|
10696
10666
|
});
|
|
10697
|
-
if (!b && L.fieldType === "custom" && typeof
|
|
10667
|
+
if (!b && L.fieldType === "custom" && typeof S == "object" && S !== null)
|
|
10698
10668
|
return null;
|
|
10699
|
-
const
|
|
10669
|
+
const V = b ?? un(S, L.fieldType), k = ["richtext", "textarea"];
|
|
10700
10670
|
return {
|
|
10701
10671
|
label: L.label,
|
|
10702
|
-
content:
|
|
10672
|
+
content: V,
|
|
10703
10673
|
verticalLayout: k.includes(L.fieldType ?? "")
|
|
10704
10674
|
};
|
|
10705
|
-
}).filter((
|
|
10706
|
-
if (!
|
|
10707
|
-
const L = Array.isArray(
|
|
10675
|
+
}).filter((M) => {
|
|
10676
|
+
if (!M) return !1;
|
|
10677
|
+
const L = Array.isArray(M.content) ? M.content[0] : M.content;
|
|
10708
10678
|
return !(L?.type === "item" && L.text === "—");
|
|
10709
|
-
}) : [],
|
|
10679
|
+
}) : [], F = A.slice(0, pt), R = A.length > pt;
|
|
10710
10680
|
return /* @__PURE__ */ r(
|
|
10711
|
-
|
|
10681
|
+
dn,
|
|
10712
10682
|
{
|
|
10713
10683
|
avatar: n ? { type: "module", module: n } : void 0,
|
|
10714
10684
|
title: p,
|
|
@@ -10720,13 +10690,13 @@ function hn({
|
|
|
10720
10690
|
onClose: u,
|
|
10721
10691
|
showButton: v
|
|
10722
10692
|
},
|
|
10723
|
-
children:
|
|
10693
|
+
children: F.length > 0 && !v && /* @__PURE__ */ r("div", { className: "-mx-3 flex w-full flex-col overflow-hidden pb-1", children: /* @__PURE__ */ r(
|
|
10724
10694
|
ri,
|
|
10725
10695
|
{
|
|
10726
|
-
details:
|
|
10727
|
-
title:
|
|
10728
|
-
content:
|
|
10729
|
-
...
|
|
10696
|
+
details: F.map((M) => ({
|
|
10697
|
+
title: M.label,
|
|
10698
|
+
content: M.content,
|
|
10699
|
+
...M.verticalLayout && { verticalLayout: !0 }
|
|
10730
10700
|
})),
|
|
10731
10701
|
showSeeMore: R,
|
|
10732
10702
|
onClickSeeMore: x,
|
|
@@ -10736,13 +10706,13 @@ function hn({
|
|
|
10736
10706
|
}
|
|
10737
10707
|
);
|
|
10738
10708
|
}
|
|
10739
|
-
|
|
10709
|
+
fn.displayName = "FormCard";
|
|
10740
10710
|
function k6() {
|
|
10741
10711
|
const e = oi(), t = e?.activeForm;
|
|
10742
10712
|
if (!t) return null;
|
|
10743
10713
|
const n = t.cardTitle, o = t.cardDescription, s = (e?.getFillVersion(t.formName) ?? 0) > 0;
|
|
10744
10714
|
return !n || !o || !s ? null : /* @__PURE__ */ r("div", { className: "mt-2 w-full", children: /* @__PURE__ */ r(
|
|
10745
|
-
|
|
10715
|
+
fn,
|
|
10746
10716
|
{
|
|
10747
10717
|
formName: t.formName,
|
|
10748
10718
|
formDescription: t.description,
|
|
@@ -10766,7 +10736,7 @@ function L6(e, t) {
|
|
|
10766
10736
|
const i = o.getBoundingClientRect();
|
|
10767
10737
|
return { rect: i.width > 0 || i.height > 0 ? i : t.getBoundingClientRect(), text: s };
|
|
10768
10738
|
}
|
|
10769
|
-
function
|
|
10739
|
+
function hn({
|
|
10770
10740
|
containerRef: e,
|
|
10771
10741
|
enabled: t = !0
|
|
10772
10742
|
}) {
|
|
@@ -10794,7 +10764,7 @@ function gn({
|
|
|
10794
10764
|
}, [e, t]), { anchor: n, clear: s };
|
|
10795
10765
|
}
|
|
10796
10766
|
const xt = 8, De = 8;
|
|
10797
|
-
function
|
|
10767
|
+
function gn({ anchor: e, onReply: t }) {
|
|
10798
10768
|
const n = ee(), o = $(null), [s, i] = P(
|
|
10799
10769
|
null
|
|
10800
10770
|
);
|
|
@@ -10818,7 +10788,7 @@ function pn({ anchor: e, onReply: t }) {
|
|
|
10818
10788
|
i({ top: m, left: p });
|
|
10819
10789
|
}, [e]), typeof document > "u" || !e) return null;
|
|
10820
10790
|
const a = n.ai.reply;
|
|
10821
|
-
return
|
|
10791
|
+
return kr(
|
|
10822
10792
|
/* @__PURE__ */ r(
|
|
10823
10793
|
"div",
|
|
10824
10794
|
{
|
|
@@ -10828,7 +10798,7 @@ function pn({ anchor: e, onReply: t }) {
|
|
|
10828
10798
|
left: s?.left ?? -9999,
|
|
10829
10799
|
visibility: s ? "visible" : "hidden"
|
|
10830
10800
|
},
|
|
10831
|
-
className:
|
|
10801
|
+
className: E(
|
|
10832
10802
|
"z-50 rounded-md bg-f1-background p-1 border border-solid border-f1-border-secondary",
|
|
10833
10803
|
"drop-shadow"
|
|
10834
10804
|
),
|
|
@@ -10850,7 +10820,7 @@ function pn({ anchor: e, onReply: t }) {
|
|
|
10850
10820
|
document.body
|
|
10851
10821
|
);
|
|
10852
10822
|
}
|
|
10853
|
-
const
|
|
10823
|
+
const pn = a1(void 0), v3 = () => Ge(pn), y6 = (e) => /* @__PURE__ */ r(gr, { content: e, format: "markdown" }), M6 = ({
|
|
10854
10824
|
isGenerating: e,
|
|
10855
10825
|
isLoading: t,
|
|
10856
10826
|
message: n,
|
|
@@ -10859,13 +10829,13 @@ const mn = a1(void 0), v3 = () => Ge(mn), y6 = (e) => /* @__PURE__ */ r(pr, { co
|
|
|
10859
10829
|
onRendered: i,
|
|
10860
10830
|
renderMarkdown: a
|
|
10861
10831
|
}) => {
|
|
10862
|
-
const l = typeof n?.content == "string" ? n.content : "", c = (n && o?.(n)) ?? n?.generativeUI?.() ?? null, f = n?.toolCalls?.[0]?.id, u = !l && !c, h = $(null), { anchor: m, clear: g } =
|
|
10832
|
+
const l = typeof n?.content == "string" ? n.content : "", c = (n && o?.(n)) ?? n?.generativeUI?.() ?? null, f = n?.toolCalls?.[0]?.id, u = !l && !c, h = $(null), { anchor: m, clear: g } = hn({
|
|
10863
10833
|
containerRef: h,
|
|
10864
10834
|
enabled: !!(n?.id && l)
|
|
10865
10835
|
});
|
|
10866
10836
|
return K(() => {
|
|
10867
10837
|
n?.id && !t && !e && i?.(n);
|
|
10868
|
-
}, [n, t, e, i]), !t && !e && u ? null : /* @__PURE__ */ r(
|
|
10838
|
+
}, [n, t, e, i]), !t && !e && u ? null : /* @__PURE__ */ r(pn.Provider, { value: f, children: /* @__PURE__ */ d("div", { className: "relative isolate flex w-full flex-col items-start justify-center", children: [
|
|
10869
10839
|
n && l && /* @__PURE__ */ r(
|
|
10870
10840
|
"div",
|
|
10871
10841
|
{
|
|
@@ -10876,7 +10846,7 @@ const mn = a1(void 0), v3 = () => Ge(mn), y6 = (e) => /* @__PURE__ */ r(pr, { co
|
|
|
10876
10846
|
),
|
|
10877
10847
|
!!c && /* @__PURE__ */ r("div", { className: "w-full", children: c }),
|
|
10878
10848
|
/* @__PURE__ */ r(
|
|
10879
|
-
|
|
10849
|
+
gn,
|
|
10880
10850
|
{
|
|
10881
10851
|
anchor: m,
|
|
10882
10852
|
onReply: (p) => {
|
|
@@ -10934,7 +10904,7 @@ const mn = a1(void 0), v3 = () => Ge(mn), y6 = (e) => /* @__PURE__ */ r(pr, { co
|
|
|
10934
10904
|
) })
|
|
10935
10905
|
}
|
|
10936
10906
|
);
|
|
10937
|
-
},
|
|
10907
|
+
}, mn = a1(null), R6 = ({ children: e }) => {
|
|
10938
10908
|
const [t, n] = P(null), o = t ? {
|
|
10939
10909
|
isOpen: !0,
|
|
10940
10910
|
currentReaction: t.action,
|
|
@@ -10948,9 +10918,9 @@ const mn = a1(void 0), v3 = () => Ge(mn), y6 = (e) => /* @__PURE__ */ r(pr, { co
|
|
|
10948
10918
|
open: (s, i) => n({ action: s, message: i }),
|
|
10949
10919
|
close: () => n(null)
|
|
10950
10920
|
};
|
|
10951
|
-
return /* @__PURE__ */ r(
|
|
10952
|
-
},
|
|
10953
|
-
const e = Ge(
|
|
10921
|
+
return /* @__PURE__ */ r(mn.Provider, { value: o, children: e });
|
|
10922
|
+
}, Cn = () => {
|
|
10923
|
+
const e = Ge(mn);
|
|
10954
10924
|
if (e === null)
|
|
10955
10925
|
throw new Error(
|
|
10956
10926
|
"useFeedbackModal must be used within a FeedbackModalProvider"
|
|
@@ -10958,7 +10928,7 @@ const mn = a1(void 0), v3 = () => Ge(mn), y6 = (e) => /* @__PURE__ */ r(pr, { co
|
|
|
10958
10928
|
return e;
|
|
10959
10929
|
};
|
|
10960
10930
|
function N6(e) {
|
|
10961
|
-
const t =
|
|
10931
|
+
const t = Cn();
|
|
10962
10932
|
return { modal: t, handleSubmit: (s, i) => {
|
|
10963
10933
|
(t.currentReaction === "like" ? e.onThumbsUp : e.onThumbsDown)?.(s, { threadId: e.threadId, feedback: i }), t.close();
|
|
10964
10934
|
}, handleClose: (s) => {
|
|
@@ -10970,7 +10940,7 @@ const F6 = ({
|
|
|
10970
10940
|
targetMessage: t,
|
|
10971
10941
|
onCopy: n
|
|
10972
10942
|
}) => {
|
|
10973
|
-
const o = ee(), { open: s } =
|
|
10943
|
+
const o = ee(), { open: s } = Cn(), [i, a] = P(null);
|
|
10974
10944
|
return /* @__PURE__ */ d("div", { className: "flex", children: [
|
|
10975
10945
|
/* @__PURE__ */ r(
|
|
10976
10946
|
ai,
|
|
@@ -10998,7 +10968,7 @@ const F6 = ({
|
|
|
10998
10968
|
ce,
|
|
10999
10969
|
{
|
|
11000
10970
|
size: "md",
|
|
11001
|
-
icon: i === "like" ?
|
|
10971
|
+
icon: i === "like" ? Ar : Tr,
|
|
11002
10972
|
color: "default"
|
|
11003
10973
|
}
|
|
11004
10974
|
) })
|
|
@@ -11019,7 +10989,7 @@ const F6 = ({
|
|
|
11019
10989
|
ce,
|
|
11020
10990
|
{
|
|
11021
10991
|
size: "md",
|
|
11022
|
-
icon: i === "dislike" ?
|
|
10992
|
+
icon: i === "dislike" ? Vr : Sr,
|
|
11023
10993
|
color: "default"
|
|
11024
10994
|
}
|
|
11025
10995
|
) })
|
|
@@ -11030,7 +11000,7 @@ const F6 = ({
|
|
|
11030
11000
|
oe.div,
|
|
11031
11001
|
{
|
|
11032
11002
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
11033
|
-
className:
|
|
11003
|
+
className: E(
|
|
11034
11004
|
// Inset 1px on both sides so the gradient and the thin `::after` rule
|
|
11035
11005
|
// never sit flush against the chat panel's left/right edge. Matters in
|
|
11036
11006
|
// canvas mode: the chat has `border-l-0` there and the ResizeHandle
|
|
@@ -11063,7 +11033,7 @@ const F6 = ({
|
|
|
11063
11033
|
}) => {
|
|
11064
11034
|
const [l, c] = P(s), f = Le(), u = o !== void 0, h = u ? o : l;
|
|
11065
11035
|
return /* @__PURE__ */ d(
|
|
11066
|
-
|
|
11036
|
+
pr,
|
|
11067
11037
|
{
|
|
11068
11038
|
className: "mb-1 w-full",
|
|
11069
11039
|
open: h,
|
|
@@ -11072,10 +11042,10 @@ const F6 = ({
|
|
|
11072
11042
|
},
|
|
11073
11043
|
children: [
|
|
11074
11044
|
/* @__PURE__ */ d(
|
|
11075
|
-
|
|
11045
|
+
mr,
|
|
11076
11046
|
{
|
|
11077
11047
|
disabled: a,
|
|
11078
|
-
className:
|
|
11048
|
+
className: E(
|
|
11079
11049
|
"gap-1",
|
|
11080
11050
|
a ? "flex w-full items-center text-base text-f1-foreground-secondary" : "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90"
|
|
11081
11051
|
),
|
|
@@ -11086,7 +11056,7 @@ const F6 = ({
|
|
|
11086
11056
|
]
|
|
11087
11057
|
}
|
|
11088
11058
|
),
|
|
11089
|
-
/* @__PURE__ */ r(
|
|
11059
|
+
/* @__PURE__ */ r(Cr, { forceMount: !0, className: "data-[state=open]:mt-3", children: /* @__PURE__ */ r(
|
|
11090
11060
|
oe.div,
|
|
11091
11061
|
{
|
|
11092
11062
|
initial: !1,
|
|
@@ -11120,7 +11090,7 @@ const F6 = ({
|
|
|
11120
11090
|
return /* @__PURE__ */ r(
|
|
11121
11091
|
S6,
|
|
11122
11092
|
{
|
|
11123
|
-
icon:
|
|
11093
|
+
icon: Mr,
|
|
11124
11094
|
title: c,
|
|
11125
11095
|
open: i,
|
|
11126
11096
|
onOpenChange: a,
|
|
@@ -11164,12 +11134,12 @@ function A6(e, t) {
|
|
|
11164
11134
|
(o) => typeof o?.filename == "string" && typeof o?.mimetype == "string" && typeof o?.url == "string"
|
|
11165
11135
|
);
|
|
11166
11136
|
}
|
|
11167
|
-
const
|
|
11137
|
+
const vn = (e) => /* @__PURE__ */ r(gr, { content: e, format: "markdown" }), H6 = ({
|
|
11168
11138
|
text: e,
|
|
11169
11139
|
renderMarkdown: t
|
|
11170
11140
|
}) => /* @__PURE__ */ d("div", { className: "flex max-w-[90%] items-start gap-2 self-end pb-1 pr-2 text-f1-foreground-tertiary", children: [
|
|
11171
11141
|
/* @__PURE__ */ r("div", { className: "flex h-5 items-center", children: /* @__PURE__ */ r(ce, { icon: Z1 }) }),
|
|
11172
|
-
/* @__PURE__ */ r("div", { className: "min-w-0 whitespace-pre-wrap text-base leading-5 [&>div]:flex [&>div]:flex-col [&>div]:gap-1 [&_p]:m-0", children: (t ??
|
|
11142
|
+
/* @__PURE__ */ r("div", { className: "min-w-0 whitespace-pre-wrap text-base leading-5 [&>div]:flex [&>div]:flex-col [&>div]:gap-1 [&_p]:m-0", children: (t ?? vn)(e) })
|
|
11173
11143
|
] }), B6 = ({
|
|
11174
11144
|
message: e,
|
|
11175
11145
|
onReplyQuote: t,
|
|
@@ -11185,7 +11155,7 @@ const wn = (e) => /* @__PURE__ */ r(pr, { content: e, format: "markdown" }), H6
|
|
|
11185
11155
|
const a = e.rawData, l = A6(
|
|
11186
11156
|
e?.content,
|
|
11187
11157
|
a
|
|
11188
|
-
), c = (T6(e?.content) ?? "").trim(), f = e?.replyQuote ?? null, u = c.length > 0, { anchor: h, clear: m } =
|
|
11158
|
+
), c = (T6(e?.content) ?? "").trim(), f = e?.replyQuote ?? null, u = c.length > 0, { anchor: h, clear: m } = hn({
|
|
11189
11159
|
containerRef: i,
|
|
11190
11160
|
enabled: u
|
|
11191
11161
|
});
|
|
@@ -11197,7 +11167,7 @@ const wn = (e) => /* @__PURE__ */ r(pr, { content: e, format: "markdown" }), H6
|
|
|
11197
11167
|
children: [
|
|
11198
11168
|
f && /* @__PURE__ */ r(H6, { text: f, renderMarkdown: o }),
|
|
11199
11169
|
l.length > 0 && /* @__PURE__ */ r("div", { className: "flex max-w-[90%] flex-wrap justify-end gap-1.5", children: l.map((g, p) => /* @__PURE__ */ r(
|
|
11200
|
-
|
|
11170
|
+
ur,
|
|
11201
11171
|
{
|
|
11202
11172
|
file: { name: g.filename, type: g.mimetype },
|
|
11203
11173
|
size: "lg"
|
|
@@ -11209,11 +11179,11 @@ const wn = (e) => /* @__PURE__ */ r(pr, { content: e, format: "markdown" }), H6
|
|
|
11209
11179
|
{
|
|
11210
11180
|
ref: i,
|
|
11211
11181
|
className: "w-fit max-w-[90%] self-end whitespace-pre-wrap rounded-xl bg-f1-background-tertiary px-4 py-3 [&>div]:flex [&>div]:flex-col [&>div]:gap-1",
|
|
11212
|
-
children: (o ??
|
|
11182
|
+
children: (o ?? vn)(c)
|
|
11213
11183
|
}
|
|
11214
11184
|
),
|
|
11215
11185
|
/* @__PURE__ */ r(
|
|
11216
|
-
|
|
11186
|
+
gn,
|
|
11217
11187
|
{
|
|
11218
11188
|
anchor: h,
|
|
11219
11189
|
onReply: (g) => {
|
|
@@ -11254,7 +11224,7 @@ const wn = (e) => /* @__PURE__ */ r(pr, { content: e, format: "markdown" }), H6
|
|
|
11254
11224
|
return /* @__PURE__ */ r(
|
|
11255
11225
|
"div",
|
|
11256
11226
|
{
|
|
11257
|
-
className:
|
|
11227
|
+
className: E(
|
|
11258
11228
|
"flex w-full flex-1 justify-center px-4",
|
|
11259
11229
|
n ? "items-end pb-24" : "items-center"
|
|
11260
11230
|
),
|
|
@@ -11265,9 +11235,9 @@ const wn = (e) => /* @__PURE__ */ r(pr, { content: e, format: "markdown" }), H6
|
|
|
11265
11235
|
tabIndex: u ? 0 : void 0,
|
|
11266
11236
|
onClick: t,
|
|
11267
11237
|
onKeyDown: h,
|
|
11268
|
-
className:
|
|
11238
|
+
className: E(
|
|
11269
11239
|
"bg-gradient-to-r from-[#E55619] via-[#E51943] to-[#A1ADE5] bg-clip-text text-center text-2xl font-semibold leading-[28px] text-transparent",
|
|
11270
|
-
u &&
|
|
11240
|
+
u && E(
|
|
11271
11241
|
"cursor-pointer transition-transform duration-200",
|
|
11272
11242
|
"hover:scale-[1.02] focus-visible:scale-[1.02]",
|
|
11273
11243
|
"motion-reduce:transition-none motion-reduce:hover:scale-100 motion-reduce:focus-visible:scale-100"
|
|
@@ -11311,8 +11281,8 @@ function O6({
|
|
|
11311
11281
|
const g = X(() => {
|
|
11312
11282
|
const p = e.current;
|
|
11313
11283
|
if (!p) return;
|
|
11314
|
-
const { scrollTop: w, scrollHeight: v, clientHeight: x } = p,
|
|
11315
|
-
f(
|
|
11284
|
+
const { scrollTop: w, scrollHeight: v, clientHeight: x } = p, A = v - w - x;
|
|
11285
|
+
f(A > x);
|
|
11316
11286
|
}, [e]);
|
|
11317
11287
|
return K(() => {
|
|
11318
11288
|
const p = e.current;
|
|
@@ -11323,8 +11293,8 @@ function O6({
|
|
|
11323
11293
|
requestAnimationFrame(() => {
|
|
11324
11294
|
const p = e.current, w = o.current;
|
|
11325
11295
|
if (!p || !w) return;
|
|
11326
|
-
const v = p.getBoundingClientRect(), x = w.getBoundingClientRect(),
|
|
11327
|
-
p.scrollTo({ top:
|
|
11296
|
+
const v = p.getBoundingClientRect(), x = w.getBoundingClientRect(), A = p.scrollTop + (x.top - v.top);
|
|
11297
|
+
p.scrollTo({ top: A, behavior: "smooth" });
|
|
11328
11298
|
});
|
|
11329
11299
|
}), s === 0 && f(!1), u.current = s;
|
|
11330
11300
|
}, [s, o, e]), { showScrollBtn: c, turnMinHeight: a, scrollToBottom: m };
|
|
@@ -11354,16 +11324,16 @@ const Z6 = {
|
|
|
11354
11324
|
AssistantMessage: w,
|
|
11355
11325
|
UserMessage: v,
|
|
11356
11326
|
onRegenerate: x,
|
|
11357
|
-
onCopy:
|
|
11327
|
+
onCopy: A
|
|
11358
11328
|
}) => {
|
|
11359
|
-
const { modal:
|
|
11329
|
+
const { modal: F, handleSubmit: R, handleClose: M } = N6(
|
|
11360
11330
|
u ?? Z6
|
|
11361
|
-
), L = ee(),
|
|
11331
|
+
), L = ee(), S = w ?? M6, b = v ?? B6, V = te(() => {
|
|
11362
11332
|
const O = o ?? L.ai.defaultInitialMessage;
|
|
11363
11333
|
return (Array.isArray(O) ? O : [O]).filter((Y) => typeof Y == "string" && Y.length > 0);
|
|
11364
|
-
}, [o, L.ai.defaultInitialMessage]), k = !t && e.length === 0 &&
|
|
11334
|
+
}, [o, L.ai.defaultInitialMessage]), k = !t && e.length === 0 && V.length > 0, y = $(null), T = $(null), j = $(null), _ = $(null), Z = $(null), { showScrollBtn: G, turnMinHeight: q, scrollToBottom: U } = O6({
|
|
11365
11335
|
viewportRef: y,
|
|
11366
|
-
contentRef:
|
|
11336
|
+
contentRef: T,
|
|
11367
11337
|
endRef: j,
|
|
11368
11338
|
lastTurnRef: Z,
|
|
11369
11339
|
turnsCount: e.length,
|
|
@@ -11381,10 +11351,10 @@ const Z6 = {
|
|
|
11381
11351
|
inProgress: O.isInProgress,
|
|
11382
11352
|
index: ie,
|
|
11383
11353
|
isCurrentMessage: !1,
|
|
11384
|
-
AssistantMessage:
|
|
11354
|
+
AssistantMessage: S,
|
|
11385
11355
|
UserMessage: b,
|
|
11386
11356
|
onRegenerate: x,
|
|
11387
|
-
onCopy:
|
|
11357
|
+
onCopy: A,
|
|
11388
11358
|
rawData: re.rawData || {},
|
|
11389
11359
|
...le
|
|
11390
11360
|
};
|
|
@@ -11396,20 +11366,20 @@ const Z6 = {
|
|
|
11396
11366
|
`${J}-u-${ie}`
|
|
11397
11367
|
);
|
|
11398
11368
|
}, se = (re, ie) => {
|
|
11399
|
-
const ue = Y && ie === O.assistantMessages.length - 1,
|
|
11369
|
+
const ue = Y && ie === O.assistantMessages.length - 1, N = O.userMessages.length + ie, B = {
|
|
11400
11370
|
message: re,
|
|
11401
11371
|
inProgress: O.isInProgress,
|
|
11402
|
-
index:
|
|
11372
|
+
index: N,
|
|
11403
11373
|
isCurrentMessage: ue,
|
|
11404
|
-
AssistantMessage:
|
|
11374
|
+
AssistantMessage: S,
|
|
11405
11375
|
UserMessage: b,
|
|
11406
11376
|
onRegenerate: x,
|
|
11407
|
-
onCopy:
|
|
11377
|
+
onCopy: A,
|
|
11408
11378
|
rawData: re.rawData || {},
|
|
11409
11379
|
...le
|
|
11410
11380
|
};
|
|
11411
11381
|
return /* @__PURE__ */ r(
|
|
11412
|
-
|
|
11382
|
+
S,
|
|
11413
11383
|
{
|
|
11414
11384
|
...B,
|
|
11415
11385
|
isGenerating: O.isInProgress && ue,
|
|
@@ -11422,7 +11392,7 @@ const Z6 = {
|
|
|
11422
11392
|
"div",
|
|
11423
11393
|
{
|
|
11424
11394
|
ref: Y ? Z : void 0,
|
|
11425
|
-
className:
|
|
11395
|
+
className: E(
|
|
11426
11396
|
"flex flex-col items-start justify-start gap-2 px-1",
|
|
11427
11397
|
Y && "pb-5"
|
|
11428
11398
|
),
|
|
@@ -11452,7 +11422,7 @@ const Z6 = {
|
|
|
11452
11422
|
{
|
|
11453
11423
|
content: O.feedback.content,
|
|
11454
11424
|
targetMessage: O.feedback.targetMessage,
|
|
11455
|
-
onCopy:
|
|
11425
|
+
onCopy: A
|
|
11456
11426
|
}
|
|
11457
11427
|
),
|
|
11458
11428
|
Y && /* @__PURE__ */ r(k6, {})
|
|
@@ -11467,7 +11437,7 @@ const Z6 = {
|
|
|
11467
11437
|
"div",
|
|
11468
11438
|
{
|
|
11469
11439
|
ref: y,
|
|
11470
|
-
className:
|
|
11440
|
+
className: E(
|
|
11471
11441
|
"flex-1 overflow-y-scroll",
|
|
11472
11442
|
"[scrollbar-width:thin] [scrollbar-color:transparent_transparent]",
|
|
11473
11443
|
"hover:[scrollbar-color:var(--scrollbar-thumb)_transparent]",
|
|
@@ -11478,13 +11448,13 @@ const Z6 = {
|
|
|
11478
11448
|
children: /* @__PURE__ */ d(
|
|
11479
11449
|
"div",
|
|
11480
11450
|
{
|
|
11481
|
-
ref:
|
|
11482
|
-
className:
|
|
11451
|
+
ref: T,
|
|
11452
|
+
className: E("flex h-full flex-col items-center p-4"),
|
|
11483
11453
|
children: [
|
|
11484
11454
|
/* @__PURE__ */ d(
|
|
11485
11455
|
"div",
|
|
11486
11456
|
{
|
|
11487
|
-
className:
|
|
11457
|
+
className: E(
|
|
11488
11458
|
k ? "flex flex-1" : "flex flex-col gap-6",
|
|
11489
11459
|
"w-full max-w-content"
|
|
11490
11460
|
),
|
|
@@ -11493,7 +11463,7 @@ const Z6 = {
|
|
|
11493
11463
|
k && /* @__PURE__ */ r(
|
|
11494
11464
|
_6,
|
|
11495
11465
|
{
|
|
11496
|
-
messages:
|
|
11466
|
+
messages: V,
|
|
11497
11467
|
onClick: s,
|
|
11498
11468
|
fullscreen: g
|
|
11499
11469
|
}
|
|
@@ -11535,13 +11505,13 @@ const Z6 = {
|
|
|
11535
11505
|
/* @__PURE__ */ r(kt, { position: "bottom" }, "shadow-bottom")
|
|
11536
11506
|
] })
|
|
11537
11507
|
] }),
|
|
11538
|
-
|
|
11508
|
+
F.isOpen && /* @__PURE__ */ r(
|
|
11539
11509
|
E6,
|
|
11540
11510
|
{
|
|
11541
11511
|
onSubmit: R,
|
|
11542
|
-
onClose:
|
|
11543
|
-
reactionType:
|
|
11544
|
-
message:
|
|
11512
|
+
onClose: M,
|
|
11513
|
+
reactionType: F.currentReaction,
|
|
11514
|
+
message: F.currentMessage
|
|
11545
11515
|
}
|
|
11546
11516
|
)
|
|
11547
11517
|
] });
|
|
@@ -11552,15 +11522,15 @@ const Z6 = {
|
|
|
11552
11522
|
/* @__PURE__ */ r(ge, { className: "h-5 w-4/5 rounded-md" })
|
|
11553
11523
|
] }) }), x3 = {
|
|
11554
11524
|
ai: Li.ai
|
|
11555
|
-
},
|
|
11525
|
+
}, wn = a1(null);
|
|
11556
11526
|
function k3({
|
|
11557
11527
|
children: e,
|
|
11558
11528
|
translations: t
|
|
11559
11529
|
}) {
|
|
11560
|
-
return /* @__PURE__ */ r(
|
|
11530
|
+
return /* @__PURE__ */ r(wn.Provider, { value: t, children: e });
|
|
11561
11531
|
}
|
|
11562
11532
|
function b3() {
|
|
11563
|
-
const e = Ge(
|
|
11533
|
+
const e = Ge(wn);
|
|
11564
11534
|
if (e === null)
|
|
11565
11535
|
throw new Error(
|
|
11566
11536
|
"useAiChatTranslations must be used within an AiChatTranslationsProvider"
|
|
@@ -11605,10 +11575,10 @@ const W6 = ({
|
|
|
11605
11575
|
}
|
|
11606
11576
|
)
|
|
11607
11577
|
] });
|
|
11608
|
-
},
|
|
11578
|
+
}, xn = ({ isSelected: e }) => /* @__PURE__ */ r(
|
|
11609
11579
|
"div",
|
|
11610
11580
|
{
|
|
11611
|
-
className:
|
|
11581
|
+
className: E(
|
|
11612
11582
|
"flex h-5 w-5 shrink-0 items-center justify-center rounded-full transition-colors",
|
|
11613
11583
|
e ? "bg-f1-background-selected-bold" : "border-2 border-solid border-f1-border bg-f1-background"
|
|
11614
11584
|
),
|
|
@@ -11627,8 +11597,8 @@ const W6 = ({
|
|
|
11627
11597
|
onToggleActive: f,
|
|
11628
11598
|
onConfirm: u
|
|
11629
11599
|
}) => {
|
|
11630
|
-
const m = ee().ai.clarifyingQuestion.typeYourAnswer, g = e === "single" ? /* @__PURE__ */ r(
|
|
11631
|
-
|
|
11600
|
+
const m = ee().ai.clarifyingQuestion.typeYourAnswer, g = e === "single" ? /* @__PURE__ */ r(xn, { isSelected: n && !t }) : /* @__PURE__ */ r(
|
|
11601
|
+
vr,
|
|
11632
11602
|
{
|
|
11633
11603
|
checked: s,
|
|
11634
11604
|
onCheckedChange: () => f(!s),
|
|
@@ -11639,7 +11609,7 @@ const W6 = ({
|
|
|
11639
11609
|
return /* @__PURE__ */ d(
|
|
11640
11610
|
"div",
|
|
11641
11611
|
{
|
|
11642
|
-
className:
|
|
11612
|
+
className: E(
|
|
11643
11613
|
"flex items-center gap-2 rounded-md px-2 py-2",
|
|
11644
11614
|
"transition-colors hover:bg-f1-background-hover"
|
|
11645
11615
|
),
|
|
@@ -11664,7 +11634,7 @@ const W6 = ({
|
|
|
11664
11634
|
]
|
|
11665
11635
|
}
|
|
11666
11636
|
);
|
|
11667
|
-
},
|
|
11637
|
+
}, kn = C(
|
|
11668
11638
|
({ option: e, isSelected: t, mode: n, isTabStop: o, onToggle: s, onKeyNavigate: i }, a) => n === "single" ? /* @__PURE__ */ d(
|
|
11669
11639
|
"div",
|
|
11670
11640
|
{
|
|
@@ -11672,7 +11642,7 @@ const W6 = ({
|
|
|
11672
11642
|
role: "radio",
|
|
11673
11643
|
"aria-checked": t,
|
|
11674
11644
|
tabIndex: o ? 0 : -1,
|
|
11675
|
-
className:
|
|
11645
|
+
className: E(
|
|
11676
11646
|
"flex cursor-pointer items-center gap-2 rounded-md px-2 py-2 transition-colors hover:bg-f1-background-secondary",
|
|
11677
11647
|
ve()
|
|
11678
11648
|
),
|
|
@@ -11685,7 +11655,7 @@ const W6 = ({
|
|
|
11685
11655
|
i?.(l);
|
|
11686
11656
|
},
|
|
11687
11657
|
children: [
|
|
11688
|
-
/* @__PURE__ */ r(
|
|
11658
|
+
/* @__PURE__ */ r(xn, { isSelected: t }),
|
|
11689
11659
|
/* @__PURE__ */ r("span", { className: "text-base font-medium text-f1-foreground", children: e.label })
|
|
11690
11660
|
]
|
|
11691
11661
|
}
|
|
@@ -11693,12 +11663,12 @@ const W6 = ({
|
|
|
11693
11663
|
"div",
|
|
11694
11664
|
{
|
|
11695
11665
|
ref: a,
|
|
11696
|
-
className:
|
|
11666
|
+
className: E(
|
|
11697
11667
|
"flex cursor-pointer items-center rounded-md pl-2 transition-colors hover:bg-f1-background-secondary"
|
|
11698
11668
|
),
|
|
11699
11669
|
children: [
|
|
11700
11670
|
/* @__PURE__ */ r(
|
|
11701
|
-
|
|
11671
|
+
vr,
|
|
11702
11672
|
{
|
|
11703
11673
|
checked: t,
|
|
11704
11674
|
onCheckedChange: () => s(e.id),
|
|
@@ -11718,7 +11688,7 @@ const W6 = ({
|
|
|
11718
11688
|
}
|
|
11719
11689
|
)
|
|
11720
11690
|
);
|
|
11721
|
-
|
|
11691
|
+
kn.displayName = "OptionRow";
|
|
11722
11692
|
const X6 = ({
|
|
11723
11693
|
mode: e,
|
|
11724
11694
|
question: t,
|
|
@@ -11738,38 +11708,38 @@ const X6 = ({
|
|
|
11738
11708
|
onToggleCustomActive: w,
|
|
11739
11709
|
onConfirm: v
|
|
11740
11710
|
}) => {
|
|
11741
|
-
const x = Le(),
|
|
11711
|
+
const x = Le(), A = (() => {
|
|
11742
11712
|
if (e !== "single") return 0;
|
|
11743
|
-
const
|
|
11744
|
-
return
|
|
11745
|
-
})(), [
|
|
11713
|
+
const S = n.findIndex((b) => o.includes(b.id));
|
|
11714
|
+
return S >= 0 ? S : 0;
|
|
11715
|
+
})(), [F, R] = P(A), M = $([]);
|
|
11746
11716
|
K(() => {
|
|
11747
|
-
h && e === "single" &&
|
|
11717
|
+
h && e === "single" && M.current[F]?.focus();
|
|
11748
11718
|
}, []);
|
|
11749
|
-
const L = (
|
|
11719
|
+
const L = (S) => {
|
|
11750
11720
|
if (e !== "single") return;
|
|
11751
11721
|
const b = n.length - 1;
|
|
11752
11722
|
if (b < 0) return;
|
|
11753
|
-
let
|
|
11754
|
-
switch (
|
|
11723
|
+
let V = F;
|
|
11724
|
+
switch (S.key) {
|
|
11755
11725
|
case "ArrowDown":
|
|
11756
11726
|
case "ArrowRight":
|
|
11757
|
-
|
|
11727
|
+
V = F >= b ? 0 : F + 1;
|
|
11758
11728
|
break;
|
|
11759
11729
|
case "ArrowUp":
|
|
11760
11730
|
case "ArrowLeft":
|
|
11761
|
-
|
|
11731
|
+
V = F <= 0 ? b : F - 1;
|
|
11762
11732
|
break;
|
|
11763
11733
|
case "Home":
|
|
11764
|
-
|
|
11734
|
+
V = 0;
|
|
11765
11735
|
break;
|
|
11766
11736
|
case "End":
|
|
11767
|
-
|
|
11737
|
+
V = b;
|
|
11768
11738
|
break;
|
|
11769
11739
|
default:
|
|
11770
11740
|
return;
|
|
11771
11741
|
}
|
|
11772
|
-
|
|
11742
|
+
S.preventDefault(), R(V), M.current[V]?.focus();
|
|
11773
11743
|
};
|
|
11774
11744
|
return /* @__PURE__ */ d(
|
|
11775
11745
|
"div",
|
|
@@ -11778,7 +11748,7 @@ const X6 = ({
|
|
|
11778
11748
|
role: e === "single" ? "radiogroup" : "group",
|
|
11779
11749
|
"aria-label": t,
|
|
11780
11750
|
children: [
|
|
11781
|
-
n.map((
|
|
11751
|
+
n.map((S, b) => /* @__PURE__ */ r(
|
|
11782
11752
|
oe.div,
|
|
11783
11753
|
{
|
|
11784
11754
|
initial: x ? !1 : { opacity: 0, y: 4 },
|
|
@@ -11789,21 +11759,21 @@ const X6 = ({
|
|
|
11789
11759
|
delay: x ? 0 : 0.12 + b * 0.06
|
|
11790
11760
|
},
|
|
11791
11761
|
children: /* @__PURE__ */ r(
|
|
11792
|
-
|
|
11762
|
+
kn,
|
|
11793
11763
|
{
|
|
11794
|
-
ref: (
|
|
11795
|
-
|
|
11764
|
+
ref: (V) => {
|
|
11765
|
+
M.current[b] = V;
|
|
11796
11766
|
},
|
|
11797
|
-
option:
|
|
11798
|
-
isSelected: o.includes(
|
|
11767
|
+
option: S,
|
|
11768
|
+
isSelected: o.includes(S.id),
|
|
11799
11769
|
mode: e,
|
|
11800
|
-
isTabStop: e === "single" ? b ===
|
|
11770
|
+
isTabStop: e === "single" ? b === F : void 0,
|
|
11801
11771
|
onToggle: m,
|
|
11802
11772
|
onKeyNavigate: L
|
|
11803
11773
|
}
|
|
11804
11774
|
)
|
|
11805
11775
|
},
|
|
11806
|
-
|
|
11776
|
+
S.id
|
|
11807
11777
|
)),
|
|
11808
11778
|
s && /* @__PURE__ */ r(
|
|
11809
11779
|
q6,
|
|
@@ -11912,24 +11882,24 @@ const X6 = ({
|
|
|
11912
11882
|
question: w,
|
|
11913
11883
|
options: v,
|
|
11914
11884
|
selectedOptionIds: x,
|
|
11915
|
-
selectionMode:
|
|
11916
|
-
optional:
|
|
11885
|
+
selectionMode: A,
|
|
11886
|
+
optional: F,
|
|
11917
11887
|
allowCustomAnswer: R,
|
|
11918
|
-
customAnswerText:
|
|
11888
|
+
customAnswerText: M,
|
|
11919
11889
|
isCustomAnswerActive: L
|
|
11920
|
-
} = s,
|
|
11890
|
+
} = s, S = $(null), b = A ?? "single", V = a > 1, k = i === 0, y = i === a - 1, T = V ? n.t("ai.clarifyingQuestion.stepOf", {
|
|
11921
11891
|
current: String(i + 1),
|
|
11922
11892
|
total: String(a)
|
|
11923
|
-
}) : void 0, j = x.length > 0, _ = (
|
|
11893
|
+
}) : void 0, j = x.length > 0, _ = (M ?? "").trim().length > 0, Z = j || L && _ || F === !0, G = t === !0 && y, q = () => {
|
|
11924
11894
|
G || c();
|
|
11925
11895
|
}, U = () => {
|
|
11926
11896
|
G || f();
|
|
11927
11897
|
}, z = (se) => {
|
|
11928
11898
|
const re = b === "single" && x.includes(se);
|
|
11929
11899
|
l(se), b === "single" && !y && !re && Promise.resolve().then(c);
|
|
11930
|
-
}, O = y ? n.ai.clarifyingQuestion.submit : n.ai.clarifyingQuestion.next, J =
|
|
11900
|
+
}, O = y ? n.ai.clarifyingQuestion.submit : n.ai.clarifyingQuestion.next, J = F === !0 && !j && !(L && _), Y = () => {
|
|
11931
11901
|
p(), requestAnimationFrame(() => {
|
|
11932
|
-
|
|
11902
|
+
S.current?.focus();
|
|
11933
11903
|
});
|
|
11934
11904
|
}, le = (se) => {
|
|
11935
11905
|
se.key === "Escape" && (se.preventDefault(), u());
|
|
@@ -11948,7 +11918,7 @@ const X6 = ({
|
|
|
11948
11918
|
Y6,
|
|
11949
11919
|
{
|
|
11950
11920
|
question: w,
|
|
11951
|
-
stepLabel:
|
|
11921
|
+
stepLabel: T,
|
|
11952
11922
|
isFirstStep: k,
|
|
11953
11923
|
isFinalStep: y,
|
|
11954
11924
|
canProceed: Z,
|
|
@@ -11967,10 +11937,10 @@ const X6 = ({
|
|
|
11967
11937
|
allowCustomAnswer: R,
|
|
11968
11938
|
hasSelection: j,
|
|
11969
11939
|
hasCustomText: _,
|
|
11970
|
-
customAnswerText:
|
|
11940
|
+
customAnswerText: M,
|
|
11971
11941
|
isCustomAnswerActive: L,
|
|
11972
11942
|
canProceed: Z,
|
|
11973
|
-
customInputRef:
|
|
11943
|
+
customInputRef: S,
|
|
11974
11944
|
onToggleOption: z,
|
|
11975
11945
|
onActivateCustom: Y,
|
|
11976
11946
|
onChangeCustomText: m,
|
|
@@ -11996,33 +11966,33 @@ const X6 = ({
|
|
|
11996
11966
|
] });
|
|
11997
11967
|
};
|
|
11998
11968
|
function bt(e, t, n, o) {
|
|
11999
|
-
const s = Math.max(1, Math.min(e, t)), i = Math.min(n, 20), l = Math.min(i + o, s), c = Math.min(l, Math.floor(e / 2)), f = Math.min(l, Math.floor(t / 2)), u = (Y) => Y / e * 2 - 1, h = (Y) => Y / t * 2 - 1, m = 0, g = e, p = 0, w = t, v = c, x = e - c,
|
|
11969
|
+
const s = Math.max(1, Math.min(e, t)), i = Math.min(n, 20), l = Math.min(i + o, s), c = Math.min(l, Math.floor(e / 2)), f = Math.min(l, Math.floor(t / 2)), u = (Y) => Y / e * 2 - 1, h = (Y) => Y / t * 2 - 1, m = 0, g = e, p = 0, w = t, v = c, x = e - c, A = f, F = t - f, R = u(m), M = u(g), L = h(p), S = h(w), b = u(v), V = u(x), k = h(A), y = h(F), T = 0, j = 0, _ = 1, Z = 1, G = c / e, q = 1 - c / e, U = f / t, z = 1 - f / t, O = new Float32Array([
|
|
12000
11970
|
// Top strip
|
|
12001
11971
|
R,
|
|
12002
11972
|
L,
|
|
12003
|
-
|
|
11973
|
+
M,
|
|
12004
11974
|
L,
|
|
12005
11975
|
R,
|
|
12006
11976
|
k,
|
|
12007
11977
|
R,
|
|
12008
11978
|
k,
|
|
12009
|
-
|
|
11979
|
+
M,
|
|
12010
11980
|
L,
|
|
12011
|
-
|
|
11981
|
+
M,
|
|
12012
11982
|
k,
|
|
12013
11983
|
// Bottom strip
|
|
12014
11984
|
R,
|
|
12015
11985
|
y,
|
|
12016
|
-
|
|
11986
|
+
M,
|
|
12017
11987
|
y,
|
|
12018
11988
|
R,
|
|
12019
|
-
|
|
11989
|
+
S,
|
|
12020
11990
|
R,
|
|
12021
|
-
|
|
12022
|
-
|
|
11991
|
+
S,
|
|
11992
|
+
M,
|
|
12023
11993
|
y,
|
|
12024
|
-
|
|
12025
|
-
|
|
11994
|
+
M,
|
|
11995
|
+
S,
|
|
12026
11996
|
// Left strip
|
|
12027
11997
|
R,
|
|
12028
11998
|
k,
|
|
@@ -12037,53 +12007,53 @@ function bt(e, t, n, o) {
|
|
|
12037
12007
|
b,
|
|
12038
12008
|
y,
|
|
12039
12009
|
// Right strip
|
|
12040
|
-
|
|
12010
|
+
V,
|
|
12041
12011
|
k,
|
|
12042
|
-
|
|
12012
|
+
M,
|
|
12043
12013
|
k,
|
|
12044
|
-
|
|
12014
|
+
V,
|
|
12045
12015
|
y,
|
|
12046
|
-
|
|
12016
|
+
V,
|
|
12047
12017
|
y,
|
|
12048
|
-
|
|
12018
|
+
M,
|
|
12049
12019
|
k,
|
|
12050
|
-
|
|
12020
|
+
M,
|
|
12051
12021
|
y
|
|
12052
12022
|
]), J = new Float32Array([
|
|
12053
12023
|
// Top strip
|
|
12054
|
-
|
|
12024
|
+
T,
|
|
12055
12025
|
j,
|
|
12056
12026
|
_,
|
|
12057
12027
|
j,
|
|
12058
|
-
|
|
12028
|
+
T,
|
|
12059
12029
|
U,
|
|
12060
|
-
|
|
12030
|
+
T,
|
|
12061
12031
|
U,
|
|
12062
12032
|
_,
|
|
12063
12033
|
j,
|
|
12064
12034
|
_,
|
|
12065
12035
|
U,
|
|
12066
12036
|
// Bottom strip
|
|
12067
|
-
|
|
12037
|
+
T,
|
|
12068
12038
|
z,
|
|
12069
12039
|
_,
|
|
12070
12040
|
z,
|
|
12071
|
-
|
|
12041
|
+
T,
|
|
12072
12042
|
Z,
|
|
12073
|
-
|
|
12043
|
+
T,
|
|
12074
12044
|
Z,
|
|
12075
12045
|
_,
|
|
12076
12046
|
z,
|
|
12077
12047
|
_,
|
|
12078
12048
|
Z,
|
|
12079
12049
|
// Left strip
|
|
12080
|
-
|
|
12050
|
+
T,
|
|
12081
12051
|
U,
|
|
12082
12052
|
G,
|
|
12083
12053
|
U,
|
|
12084
|
-
|
|
12054
|
+
T,
|
|
12085
12055
|
z,
|
|
12086
|
-
|
|
12056
|
+
T,
|
|
12087
12057
|
z,
|
|
12088
12058
|
G,
|
|
12089
12059
|
U,
|
|
@@ -12434,8 +12404,8 @@ class M3 {
|
|
|
12434
12404
|
s.enableVertexAttribArray(v), s.vertexAttribPointer(v, 2, s.FLOAT, !1, 0, 0), this.checkGLError(s, "resize: after UV buffer update"), s.useProgram(i), s.uniform2f(f, this.canvas.width, this.canvas.height), s.uniform1f(this.glr.uBorderWidth, this.options.borderWidth * u), s.uniform1f(this.glr.uGlowWidth, this.options.glowWidth * u), s.uniform1f(this.glr.uBorderRadius, this.options.borderRadius * u), this.checkGLError(s, "resize: after uniform updates");
|
|
12435
12405
|
const x = performance.now();
|
|
12436
12406
|
this.lastTime = x;
|
|
12437
|
-
const
|
|
12438
|
-
this.render(
|
|
12407
|
+
const A = (x - this.startTime) * 1e-3;
|
|
12408
|
+
this.render(A);
|
|
12439
12409
|
}
|
|
12440
12410
|
/**
|
|
12441
12411
|
* Automatically resizes the canvas to match the dimensions of the given element.
|
|
@@ -12523,13 +12493,13 @@ class M3 {
|
|
|
12523
12493
|
t.bindBuffer(t.ARRAY_BUFFER, u), t.bufferData(t.ARRAY_BUFFER, l, t.STATIC_DRAW);
|
|
12524
12494
|
const h = t.getAttribLocation(n, "aUV");
|
|
12525
12495
|
t.enableVertexAttribArray(h), t.vertexAttribPointer(h, 2, t.FLOAT, !1, 0, 0), this.checkGLError(t, "setupGL: after UV buffer setup");
|
|
12526
|
-
const m = t.getUniformLocation(n, "uResolution"), g = t.getUniformLocation(n, "uTime"), p = t.getUniformLocation(n, "uBorderWidth"), w = t.getUniformLocation(n, "uGlowWidth"), v = t.getUniformLocation(n, "uBorderRadius"), x = t.getUniformLocation(n, "uColors"),
|
|
12527
|
-
t.useProgram(n), t.uniform1f(p, this.options.borderWidth), t.uniform1f(w, this.options.glowWidth), t.uniform1f(v, this.options.borderRadius), this.options.mode === "dark" ? (t.uniform1f(
|
|
12496
|
+
const m = t.getUniformLocation(n, "uResolution"), g = t.getUniformLocation(n, "uTime"), p = t.getUniformLocation(n, "uBorderWidth"), w = t.getUniformLocation(n, "uGlowWidth"), v = t.getUniformLocation(n, "uBorderRadius"), x = t.getUniformLocation(n, "uColors"), A = t.getUniformLocation(n, "uGlowExponent"), F = t.getUniformLocation(n, "uGlowFactor");
|
|
12497
|
+
t.useProgram(n), t.uniform1f(p, this.options.borderWidth), t.uniform1f(w, this.options.glowWidth), t.uniform1f(v, this.options.borderRadius), this.options.mode === "dark" ? (t.uniform1f(A, 2), t.uniform1f(F, 1.8)) : (t.uniform1f(A, 1), t.uniform1f(F, 1));
|
|
12528
12498
|
const R = (this.options.colors || n9).map(o9);
|
|
12529
|
-
for (let
|
|
12499
|
+
for (let M = 0; M < R.length; M++)
|
|
12530
12500
|
t.uniform3f(
|
|
12531
|
-
t.getUniformLocation(n, `uColors[${
|
|
12532
|
-
...R[
|
|
12501
|
+
t.getUniformLocation(n, `uColors[${M}]`),
|
|
12502
|
+
...R[M]
|
|
12533
12503
|
);
|
|
12534
12504
|
this.checkGLError(t, "setupGL: after uniform setup"), t.bindVertexArray(null), t.bindBuffer(t.ARRAY_BUFFER, null), this.glr = {
|
|
12535
12505
|
gl: t,
|
|
@@ -12751,8 +12721,8 @@ class g9 {
|
|
|
12751
12721
|
)
|
|
12752
12722
|
);
|
|
12753
12723
|
Object.assign(this, { url: o, wrapS: s, wrapT: i, minFilter: a, magFilter: l, flipY: c });
|
|
12754
|
-
const h = 0, m = n.RGBA, g = 1, p = 1, w = 0, v = n.RGBA, x = n.UNSIGNED_BYTE,
|
|
12755
|
-
if (n.bindTexture(n.TEXTURE_2D,
|
|
12724
|
+
const h = 0, m = n.RGBA, g = 1, p = 1, w = 0, v = n.RGBA, x = n.UNSIGNED_BYTE, A = new Uint8Array([255, 255, 255, 0]), F = n.createTexture();
|
|
12725
|
+
if (n.bindTexture(n.TEXTURE_2D, F), n.texImage2D(
|
|
12756
12726
|
n.TEXTURE_2D,
|
|
12757
12727
|
h,
|
|
12758
12728
|
m,
|
|
@@ -12761,29 +12731,29 @@ class g9 {
|
|
|
12761
12731
|
w,
|
|
12762
12732
|
v,
|
|
12763
12733
|
x,
|
|
12764
|
-
|
|
12734
|
+
A
|
|
12765
12735
|
), u) {
|
|
12766
|
-
const
|
|
12767
|
-
return n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR), this._webglTexture =
|
|
12736
|
+
const S = this.setupVideo(o);
|
|
12737
|
+
return n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR), this._webglTexture = F, this.source = S, this.isVideo = !0, S.play().then(() => this);
|
|
12768
12738
|
}
|
|
12769
12739
|
async function R() {
|
|
12770
|
-
return new Promise((
|
|
12771
|
-
const
|
|
12772
|
-
|
|
12773
|
-
V
|
|
12774
|
-
},
|
|
12740
|
+
return new Promise((S, b) => {
|
|
12741
|
+
const V = new Image();
|
|
12742
|
+
V.crossOrigin = "anonymous", V.onload = () => {
|
|
12743
|
+
S(V);
|
|
12744
|
+
}, V.onerror = () => {
|
|
12775
12745
|
b(new Error(ye(`failed loading url: ${o}`)));
|
|
12776
|
-
},
|
|
12746
|
+
}, V.src = o ?? "";
|
|
12777
12747
|
});
|
|
12778
12748
|
}
|
|
12779
|
-
let
|
|
12780
|
-
return (t.wrapS !== Bt || t.wrapT !== Bt || t.minFilter !== Ht && t.minFilter !== E1) && !L && (
|
|
12749
|
+
let M = await R(), L = (M.width & M.width - 1) === 0 && (M.height & M.height - 1) === 0;
|
|
12750
|
+
return (t.wrapS !== Bt || t.wrapT !== Bt || t.minFilter !== Ht && t.minFilter !== E1) && !L && (M = this.makePowerOf2(M), L = !0), n.bindTexture(n.TEXTURE_2D, F), n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, c), n.texImage2D(
|
|
12781
12751
|
n.TEXTURE_2D,
|
|
12782
12752
|
h,
|
|
12783
12753
|
m,
|
|
12784
12754
|
v,
|
|
12785
12755
|
x,
|
|
12786
|
-
|
|
12756
|
+
M
|
|
12787
12757
|
), L && t.minFilter !== Ht && t.minFilter !== E1 && n.generateMipmap(n.TEXTURE_2D), n.texParameteri(
|
|
12788
12758
|
n.TEXTURE_2D,
|
|
12789
12759
|
n.TEXTURE_WRAP_S,
|
|
@@ -12800,7 +12770,7 @@ class g9 {
|
|
|
12800
12770
|
n.TEXTURE_2D,
|
|
12801
12771
|
n.TEXTURE_MAG_FILTER,
|
|
12802
12772
|
this.magFilter || E1
|
|
12803
|
-
), this._webglTexture =
|
|
12773
|
+
), this._webglTexture = F, this.source = M, this.isVideo = !1, this.isLoaded = !0, this.width = M.width || 0, this.height = M.height || 0, this;
|
|
12804
12774
|
};
|
|
12805
12775
|
}
|
|
12806
12776
|
const ye = (e) => `react-shaders: ${e}`, It = (e) => {
|
|
@@ -12825,7 +12795,7 @@ function m9({
|
|
|
12825
12795
|
onError: h = console.error,
|
|
12826
12796
|
onWarning: m = console.warn
|
|
12827
12797
|
}) {
|
|
12828
|
-
const g = $(null), p = $(null), w = $(null), v = $(null), x = $(void 0),
|
|
12798
|
+
const g = $(null), p = $(null), w = $(null), v = $(null), x = $(void 0), A = $(void 0), F = $(!1), R = $(void 0), M = $(0), L = $([0, 0]), S = $([]), b = $(0), V = $(void 0), k = $({
|
|
12829
12799
|
[Et]: { type: "float", isNeeded: !1, value: 0 },
|
|
12830
12800
|
[Rt]: { type: "float", isNeeded: !1, value: 0 },
|
|
12831
12801
|
[Nt]: { type: "vec4", isNeeded: !1, value: [0, 0, 0, 0] },
|
|
@@ -12837,8 +12807,8 @@ function m9({
|
|
|
12837
12807
|
isNeeded: !1,
|
|
12838
12808
|
value: [0, 0, 0, 0]
|
|
12839
12809
|
}
|
|
12840
|
-
}), y = $(o),
|
|
12841
|
-
const H = "width" in
|
|
12810
|
+
}), y = $(o), T = (N, B) => {
|
|
12811
|
+
const H = "width" in N ? N.width ?? 0 : 0, D = "height" in N ? N.height ?? 0 : 0, I = k.current.iChannelResolution;
|
|
12842
12812
|
if (!I) return;
|
|
12843
12813
|
const W = Array.isArray(I.value) ? I.value : I.value = [];
|
|
12844
12814
|
W[B * 3] = H * f, W[B * 3 + 1] = D * f, W[B * 3 + 2] = 0;
|
|
@@ -12848,8 +12818,8 @@ function m9({
|
|
|
12848
12818
|
l
|
|
12849
12819
|
), p.current?.getExtension("OES_standard_derivatives"), p.current?.getExtension("EXT_shader_texture_lod"));
|
|
12850
12820
|
}, _ = () => {
|
|
12851
|
-
const
|
|
12852
|
-
w.current =
|
|
12821
|
+
const N = p.current;
|
|
12822
|
+
w.current = N?.createBuffer() ?? null, N?.bindBuffer(N.ARRAY_BUFFER, w.current);
|
|
12853
12823
|
const B = [
|
|
12854
12824
|
1,
|
|
12855
12825
|
1,
|
|
@@ -12864,26 +12834,26 @@ function m9({
|
|
|
12864
12834
|
-1,
|
|
12865
12835
|
0
|
|
12866
12836
|
];
|
|
12867
|
-
|
|
12837
|
+
N?.bufferData(N.ARRAY_BUFFER, new Float32Array(B), N.STATIC_DRAW);
|
|
12868
12838
|
}, Z = ({
|
|
12869
|
-
alpha:
|
|
12839
|
+
alpha: N,
|
|
12870
12840
|
beta: B,
|
|
12871
12841
|
gamma: H
|
|
12872
12842
|
}) => {
|
|
12873
12843
|
k.current.iDeviceOrientation.value = [
|
|
12874
|
-
|
|
12844
|
+
N ?? 0,
|
|
12875
12845
|
B ?? 0,
|
|
12876
12846
|
H ?? 0,
|
|
12877
12847
|
window.orientation ?? 0
|
|
12878
12848
|
];
|
|
12879
|
-
}, G = (
|
|
12880
|
-
const [B = 0, H = 0] = It(
|
|
12881
|
-
|
|
12849
|
+
}, G = (N) => {
|
|
12850
|
+
const [B = 0, H = 0] = It(N), D = B - (R.current?.left ?? 0) - window.pageXOffset, I = (R.current?.height ?? 0) - H - (R.current?.top ?? 0) - window.pageYOffset;
|
|
12851
|
+
F.current = !0;
|
|
12882
12852
|
const W = Array.isArray(k.current.iMouse?.value) ? k.current.iMouse.value : void 0;
|
|
12883
12853
|
W && (W[2] = D, W[3] = I), L.current[0] = D, L.current[1] = I;
|
|
12884
|
-
}, q = (
|
|
12854
|
+
}, q = (N) => {
|
|
12885
12855
|
R.current = g.current?.getBoundingClientRect();
|
|
12886
|
-
const [B = 0, H = 0] = It(
|
|
12856
|
+
const [B = 0, H = 0] = It(N), D = B - (R.current?.left ?? 0), I = (R.current?.height ?? 0) - H - (R.current?.top ?? 0);
|
|
12887
12857
|
if (c !== 1)
|
|
12888
12858
|
L.current[0] = D, L.current[1] = I;
|
|
12889
12859
|
else {
|
|
@@ -12891,28 +12861,28 @@ function m9({
|
|
|
12891
12861
|
W && (W[0] = D, W[1] = I);
|
|
12892
12862
|
}
|
|
12893
12863
|
}, U = () => {
|
|
12894
|
-
const
|
|
12895
|
-
|
|
12864
|
+
const N = Array.isArray(k.current.iMouse?.value) ? k.current.iMouse.value : void 0;
|
|
12865
|
+
N && (N[2] = 0, N[3] = 0);
|
|
12896
12866
|
}, z = () => {
|
|
12897
|
-
const
|
|
12898
|
-
if (!
|
|
12867
|
+
const N = p.current;
|
|
12868
|
+
if (!N) return;
|
|
12899
12869
|
R.current = g.current?.getBoundingClientRect();
|
|
12900
12870
|
const B = f, H = Math.floor(
|
|
12901
12871
|
(R.current?.width ?? 1) * B
|
|
12902
12872
|
), D = Math.floor(
|
|
12903
12873
|
(R.current?.height ?? 1) * B
|
|
12904
12874
|
);
|
|
12905
|
-
if (
|
|
12906
|
-
const I =
|
|
12875
|
+
if (N.canvas.width = H, N.canvas.height = D, k.current.iResolution?.isNeeded && v.current) {
|
|
12876
|
+
const I = N.getUniformLocation(
|
|
12907
12877
|
v.current,
|
|
12908
12878
|
Vt
|
|
12909
12879
|
);
|
|
12910
|
-
|
|
12880
|
+
N.uniform2fv(I, [N.canvas.width, N.canvas.height]);
|
|
12911
12881
|
}
|
|
12912
|
-
}, O = (
|
|
12882
|
+
}, O = (N, B) => {
|
|
12913
12883
|
const H = p.current;
|
|
12914
12884
|
if (!H) return null;
|
|
12915
|
-
const D = H.createShader(
|
|
12885
|
+
const D = H.createShader(N);
|
|
12916
12886
|
if (!D) return null;
|
|
12917
12887
|
if (H.shaderSource(D, B), H.compileShader(D), !H.getShaderParameter(D, H.COMPILE_STATUS)) {
|
|
12918
12888
|
m?.(ye(`Error compiling the shader:
|
|
@@ -12921,10 +12891,10 @@ ${B}`));
|
|
|
12921
12891
|
H.deleteShader(D), h?.(ye(`Shader compiler log: ${I}`));
|
|
12922
12892
|
}
|
|
12923
12893
|
return D;
|
|
12924
|
-
}, J = (
|
|
12894
|
+
}, J = (N, B) => {
|
|
12925
12895
|
const H = p.current;
|
|
12926
12896
|
if (!H) return;
|
|
12927
|
-
const D = O(H.FRAGMENT_SHADER,
|
|
12897
|
+
const D = O(H.FRAGMENT_SHADER, N), I = O(H.VERTEX_SHADER, B);
|
|
12928
12898
|
if (v.current = H.createProgram(), !(!v.current || !I || !D)) {
|
|
12929
12899
|
if (H.attachShader(v.current, I), H.attachShader(v.current, D), H.linkProgram(v.current), !H.getProgramParameter(v.current, H.LINK_STATUS)) {
|
|
12930
12900
|
h?.(
|
|
@@ -12943,8 +12913,8 @@ ${B}`));
|
|
|
12943
12913
|
}
|
|
12944
12914
|
}, Y = () => {
|
|
12945
12915
|
if (o)
|
|
12946
|
-
for (const
|
|
12947
|
-
const B = o[
|
|
12916
|
+
for (const N of Object.keys(o)) {
|
|
12917
|
+
const B = o[N];
|
|
12948
12918
|
if (!B) continue;
|
|
12949
12919
|
const { value: H, type: D } = B, I = f9(D);
|
|
12950
12920
|
if (!I) continue;
|
|
@@ -12953,7 +12923,7 @@ ${B}`));
|
|
|
12953
12923
|
const ae = D.length, Q = Number.parseInt(D.charAt(ae - 3)), pe = Math.floor(H.length / (Q * Q));
|
|
12954
12924
|
H.length > Q * Q && (W.arraySize = `[${pe}]`);
|
|
12955
12925
|
} else l9(D, H) && (W.arraySize = `[${Math.floor(H.length / Number.parseInt(D.charAt(0)))}]`);
|
|
12956
|
-
k.current[
|
|
12926
|
+
k.current[N] = {
|
|
12957
12927
|
type: I,
|
|
12958
12928
|
isNeeded: !1,
|
|
12959
12929
|
value: H,
|
|
@@ -12961,8 +12931,8 @@ ${B}`));
|
|
|
12961
12931
|
};
|
|
12962
12932
|
}
|
|
12963
12933
|
}, le = () => {
|
|
12964
|
-
const
|
|
12965
|
-
if (
|
|
12934
|
+
const N = p.current;
|
|
12935
|
+
if (N)
|
|
12966
12936
|
if (n && n.length > 0) {
|
|
12967
12937
|
k.current[`${Tt}`] = {
|
|
12968
12938
|
type: "vec3",
|
|
@@ -12974,8 +12944,8 @@ ${B}`));
|
|
|
12974
12944
|
(H, D) => (k.current[`${a9}${D}`] = {
|
|
12975
12945
|
type: "sampler2D",
|
|
12976
12946
|
isNeeded: !1
|
|
12977
|
-
},
|
|
12978
|
-
|
|
12947
|
+
}, T(H, D), S.current[D] = new g9(N), S.current[D]?.load(H).then((I) => {
|
|
12948
|
+
T(I, D);
|
|
12979
12949
|
}))
|
|
12980
12950
|
);
|
|
12981
12951
|
Promise.all(B).then(() => {
|
|
@@ -12984,7 +12954,7 @@ ${B}`));
|
|
|
12984
12954
|
h?.(H), u && u();
|
|
12985
12955
|
});
|
|
12986
12956
|
} else u && u();
|
|
12987
|
-
}, de = (
|
|
12957
|
+
}, de = (N) => {
|
|
12988
12958
|
const B = yt.includes(i ?? "highp"), H = `precision ${B ? i : yt[1]} float;
|
|
12989
12959
|
`;
|
|
12990
12960
|
B || m?.(
|
|
@@ -12993,9 +12963,9 @@ ${B}`));
|
|
|
12993
12963
|
)
|
|
12994
12964
|
);
|
|
12995
12965
|
let D = H.concat(`#define DPR ${f.toFixed(1)}
|
|
12996
|
-
`).concat(
|
|
12966
|
+
`).concat(N.replace(/texture\(/g, "texture2D("));
|
|
12997
12967
|
for (const W of Object.keys(k.current))
|
|
12998
|
-
if (
|
|
12968
|
+
if (N.includes(W)) {
|
|
12999
12969
|
const ae = k.current[W];
|
|
13000
12970
|
if (!ae) continue;
|
|
13001
12971
|
D = p9(
|
|
@@ -13005,12 +12975,12 @@ ${B}`));
|
|
|
13005
12975
|
D.lastIndexOf(H) + H.length
|
|
13006
12976
|
), ae.isNeeded = !0;
|
|
13007
12977
|
}
|
|
13008
|
-
return
|
|
13009
|
-
}, se = (
|
|
12978
|
+
return N.includes("mainImage") && (D = D.concat(s9)), D;
|
|
12979
|
+
}, se = (N) => {
|
|
13010
12980
|
const B = p.current;
|
|
13011
12981
|
if (!B || !v.current) return;
|
|
13012
|
-
const H = b.current ? (
|
|
13013
|
-
b.current =
|
|
12982
|
+
const H = b.current ? (N - b.current) / 1e3 : 0;
|
|
12983
|
+
b.current = N;
|
|
13014
12984
|
const D = y.current;
|
|
13015
12985
|
if (D)
|
|
13016
12986
|
for (const I of Object.keys(D)) {
|
|
@@ -13062,7 +13032,7 @@ ${B}`));
|
|
|
13062
13032
|
v.current,
|
|
13063
13033
|
Et
|
|
13064
13034
|
);
|
|
13065
|
-
B.uniform1f(I,
|
|
13035
|
+
B.uniform1f(I, M.current += H);
|
|
13066
13036
|
}
|
|
13067
13037
|
if (k.current.iTimeDelta?.isNeeded) {
|
|
13068
13038
|
const I = B.getUniformLocation(
|
|
@@ -13085,9 +13055,9 @@ ${B}`));
|
|
|
13085
13055
|
), W = k.current.iFrame.value;
|
|
13086
13056
|
B.uniform1i(I, W), k.current.iFrame.value = W + 1;
|
|
13087
13057
|
}
|
|
13088
|
-
if (
|
|
13089
|
-
for (let I = 0; I <
|
|
13090
|
-
const W =
|
|
13058
|
+
if (S.current.length > 0)
|
|
13059
|
+
for (let I = 0; I < S.current.length; I++) {
|
|
13060
|
+
const W = S.current[I];
|
|
13091
13061
|
if (!W) return;
|
|
13092
13062
|
const { isVideo: ae, _webglTexture: Q, source: pe, flipY: xe, isLoaded: Ve } = W;
|
|
13093
13063
|
if (!Ve || !Q || !pe) return;
|
|
@@ -13104,7 +13074,7 @@ ${B}`));
|
|
|
13104
13074
|
);
|
|
13105
13075
|
}
|
|
13106
13076
|
}
|
|
13107
|
-
}, re = (
|
|
13077
|
+
}, re = (N) => {
|
|
13108
13078
|
const B = p.current;
|
|
13109
13079
|
if (!B) return;
|
|
13110
13080
|
B.viewport(0, 0, B.drawingBufferWidth, B.drawingBufferHeight), B.clear(B.COLOR_BUFFER_BIT | B.DEPTH_BUFFER_BIT), B.bindBuffer(B.ARRAY_BUFFER, w.current), B.vertexAttribPointer(
|
|
@@ -13114,32 +13084,32 @@ ${B}`));
|
|
|
13114
13084
|
!1,
|
|
13115
13085
|
0,
|
|
13116
13086
|
0
|
|
13117
|
-
), se(
|
|
13087
|
+
), se(N), B.drawArrays(B.TRIANGLE_STRIP, 0, 4);
|
|
13118
13088
|
const H = k.current.iMouse?.value;
|
|
13119
13089
|
if (k.current.iMouse?.isNeeded && c !== 1 && Array.isArray(H)) {
|
|
13120
13090
|
const D = H[0] ?? 0, I = H[1] ?? 0;
|
|
13121
13091
|
H[0] = Pt(D, L.current[0] ?? 0, c), H[1] = Pt(I, L.current[1] ?? 0, c);
|
|
13122
13092
|
}
|
|
13123
|
-
|
|
13093
|
+
A.current = requestAnimationFrame(re);
|
|
13124
13094
|
}, ie = () => {
|
|
13125
|
-
const
|
|
13126
|
-
k.current.iMouse?.isNeeded && g.current && (g.current.addEventListener("mousemove", q,
|
|
13095
|
+
const N = { passive: !0 };
|
|
13096
|
+
k.current.iMouse?.isNeeded && g.current && (g.current.addEventListener("mousemove", q, N), g.current.addEventListener("mouseout", U, N), g.current.addEventListener("mouseup", U, N), g.current.addEventListener("mousedown", G, N), g.current.addEventListener("touchmove", q, N), g.current.addEventListener("touchend", U, N), g.current.addEventListener("touchstart", G, N)), k.current.iDeviceOrientation?.isNeeded && window.addEventListener(
|
|
13127
13097
|
"deviceorientation",
|
|
13128
13098
|
Z,
|
|
13129
|
-
|
|
13130
|
-
), g.current && (
|
|
13099
|
+
N
|
|
13100
|
+
), g.current && (V.current = new ResizeObserver(z), V.current.observe(g.current), window.addEventListener("resize", z, N));
|
|
13131
13101
|
}, ue = () => {
|
|
13132
|
-
const
|
|
13133
|
-
k.current.iMouse?.isNeeded && g.current && (g.current.removeEventListener("mousemove", q,
|
|
13102
|
+
const N = { passive: !0 };
|
|
13103
|
+
k.current.iMouse?.isNeeded && g.current && (g.current.removeEventListener("mousemove", q, N), g.current.removeEventListener("mouseout", U, N), g.current.removeEventListener("mouseup", U, N), g.current.removeEventListener("mousedown", G, N), g.current.removeEventListener("touchmove", q, N), g.current.removeEventListener("touchend", U, N), g.current.removeEventListener("touchstart", G, N)), k.current.iDeviceOrientation?.isNeeded && window.removeEventListener(
|
|
13134
13104
|
"deviceorientation",
|
|
13135
13105
|
Z,
|
|
13136
|
-
|
|
13137
|
-
),
|
|
13106
|
+
N
|
|
13107
|
+
), V.current && (V.current.disconnect(), window.removeEventListener("resize", z, N));
|
|
13138
13108
|
};
|
|
13139
13109
|
return K(() => {
|
|
13140
13110
|
y.current = o;
|
|
13141
13111
|
}, [o]), K(() => {
|
|
13142
|
-
const
|
|
13112
|
+
const N = S.current;
|
|
13143
13113
|
function B() {
|
|
13144
13114
|
j();
|
|
13145
13115
|
const H = p.current;
|
|
@@ -13148,12 +13118,12 @@ ${B}`));
|
|
|
13148
13118
|
return requestAnimationFrame(B), () => {
|
|
13149
13119
|
const H = p.current;
|
|
13150
13120
|
if (H) {
|
|
13151
|
-
if (H.getExtension("WEBGL_lose_context")?.loseContext(), H.useProgram(null), H.deleteProgram(v.current ?? null),
|
|
13152
|
-
for (const D of
|
|
13121
|
+
if (H.getExtension("WEBGL_lose_context")?.loseContext(), H.useProgram(null), H.deleteProgram(v.current ?? null), N.length > 0)
|
|
13122
|
+
for (const D of N)
|
|
13153
13123
|
H.deleteTexture(D._webglTexture);
|
|
13154
13124
|
v.current = null;
|
|
13155
13125
|
}
|
|
13156
|
-
ue(), cancelAnimationFrame(
|
|
13126
|
+
ue(), cancelAnimationFrame(A.current ?? 0);
|
|
13157
13127
|
};
|
|
13158
13128
|
}, []), /* @__PURE__ */ r(
|
|
13159
13129
|
"canvas",
|
|
@@ -13427,7 +13397,7 @@ function M9(e) {
|
|
|
13427
13397
|
return [n, o, s].map((a = "00") => parseInt(a, 16) / 255);
|
|
13428
13398
|
}
|
|
13429
13399
|
}
|
|
13430
|
-
function
|
|
13400
|
+
function bn({
|
|
13431
13401
|
shape: e = 1,
|
|
13432
13402
|
speed: t = 1,
|
|
13433
13403
|
amplitude: n = 0.5,
|
|
@@ -13488,7 +13458,7 @@ function Ln({
|
|
|
13488
13458
|
}
|
|
13489
13459
|
) });
|
|
13490
13460
|
}
|
|
13491
|
-
|
|
13461
|
+
bn.displayName = "AuraShader";
|
|
13492
13462
|
function E3({
|
|
13493
13463
|
size: e = "lg",
|
|
13494
13464
|
state: t,
|
|
@@ -13502,7 +13472,7 @@ function E3({
|
|
|
13502
13472
|
}) {
|
|
13503
13473
|
const { speed: f, scale: u, amplitude: h, frequency: m, brightness: g } = L9(t, s);
|
|
13504
13474
|
return /* @__PURE__ */ r(
|
|
13505
|
-
|
|
13475
|
+
bn,
|
|
13506
13476
|
{
|
|
13507
13477
|
ref: l,
|
|
13508
13478
|
blur: 0.2,
|
|
@@ -13514,7 +13484,7 @@ function E3({
|
|
|
13514
13484
|
amplitude: h,
|
|
13515
13485
|
frequency: m,
|
|
13516
13486
|
brightness: g,
|
|
13517
|
-
className:
|
|
13487
|
+
className: E(
|
|
13518
13488
|
y9({ size: e }),
|
|
13519
13489
|
"overflow-hidden rounded-full",
|
|
13520
13490
|
a
|
|
@@ -13564,7 +13534,7 @@ const R3 = ({
|
|
|
13564
13534
|
defaultVariants: {
|
|
13565
13535
|
selected: !1
|
|
13566
13536
|
}
|
|
13567
|
-
}),
|
|
13537
|
+
}), Ln = Se({
|
|
13568
13538
|
base: "text-lg font-semibold text-f1-foreground line-clamp-3"
|
|
13569
13539
|
}), R9 = Se({
|
|
13570
13540
|
base: "text-sm text-f1-foreground-secondary leading-normal"
|
|
@@ -13577,7 +13547,7 @@ const R3 = ({
|
|
|
13577
13547
|
}) => {
|
|
13578
13548
|
const o = ee(), s = Le();
|
|
13579
13549
|
return /* @__PURE__ */ d(ke, { children: [
|
|
13580
|
-
e && /* @__PURE__ */ r("span", { className:
|
|
13550
|
+
e && /* @__PURE__ */ r("span", { className: E(R9(), "truncate"), children: e }),
|
|
13581
13551
|
/* @__PURE__ */ r(Fe, { children: n && t && /* @__PURE__ */ r(
|
|
13582
13552
|
oe.div,
|
|
13583
13553
|
{
|
|
@@ -13590,7 +13560,7 @@ const R3 = ({
|
|
|
13590
13560
|
ease: [0.33, 1, 0.68, 1]
|
|
13591
13561
|
},
|
|
13592
13562
|
children: /* @__PURE__ */ r(
|
|
13593
|
-
|
|
13563
|
+
Hr,
|
|
13594
13564
|
{
|
|
13595
13565
|
size: "md",
|
|
13596
13566
|
label: o.ai.ask,
|
|
@@ -13626,7 +13596,7 @@ const R3 = ({
|
|
|
13626
13596
|
fadeTransition: i
|
|
13627
13597
|
} = e;
|
|
13628
13598
|
return /* @__PURE__ */ d("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
13629
|
-
/* @__PURE__ */ r("span", { className:
|
|
13599
|
+
/* @__PURE__ */ r("span", { className: E(Ln()), children: t }),
|
|
13630
13600
|
/* @__PURE__ */ d(
|
|
13631
13601
|
oe.div,
|
|
13632
13602
|
{
|
|
@@ -13636,7 +13606,7 @@ const R3 = ({
|
|
|
13636
13606
|
children: [
|
|
13637
13607
|
o === "person" && /* @__PURE__ */ d("div", { className: "flex items-center gap-1", children: [
|
|
13638
13608
|
/* @__PURE__ */ r(
|
|
13639
|
-
|
|
13609
|
+
fr,
|
|
13640
13610
|
{
|
|
13641
13611
|
firstName: e.avatar.firstName,
|
|
13642
13612
|
lastName: e.avatar.lastName,
|
|
@@ -13644,7 +13614,7 @@ const R3 = ({
|
|
|
13644
13614
|
size: "xs"
|
|
13645
13615
|
}
|
|
13646
13616
|
),
|
|
13647
|
-
n && /* @__PURE__ */ r("span", { className:
|
|
13617
|
+
n && /* @__PURE__ */ r("span", { className: E(e1()), children: n })
|
|
13648
13618
|
] }),
|
|
13649
13619
|
o === "people" && /* @__PURE__ */ r(
|
|
13650
13620
|
li,
|
|
@@ -13664,7 +13634,7 @@ const R3 = ({
|
|
|
13664
13634
|
size: "xs"
|
|
13665
13635
|
}
|
|
13666
13636
|
),
|
|
13667
|
-
n && /* @__PURE__ */ r("span", { className:
|
|
13637
|
+
n && /* @__PURE__ */ r("span", { className: E(e1()), children: n })
|
|
13668
13638
|
] }),
|
|
13669
13639
|
o === "company" && /* @__PURE__ */ d("div", { className: "flex items-center gap-1", children: [
|
|
13670
13640
|
/* @__PURE__ */ r(
|
|
@@ -13675,7 +13645,7 @@ const R3 = ({
|
|
|
13675
13645
|
size: "xs"
|
|
13676
13646
|
}
|
|
13677
13647
|
),
|
|
13678
|
-
n && /* @__PURE__ */ r("span", { className:
|
|
13648
|
+
n && /* @__PURE__ */ r("span", { className: E(e1()), children: n })
|
|
13679
13649
|
] }),
|
|
13680
13650
|
o === "alert" && /* @__PURE__ */ r(ui, { text: e.alertLabel, level: e.level }),
|
|
13681
13651
|
o === "balance" && /* @__PURE__ */ r(S9, { balance: e.balance })
|
|
@@ -13685,14 +13655,14 @@ const R3 = ({
|
|
|
13685
13655
|
n && !F9.has(o) && /* @__PURE__ */ r(
|
|
13686
13656
|
oe.span,
|
|
13687
13657
|
{
|
|
13688
|
-
className:
|
|
13658
|
+
className: E(e1()),
|
|
13689
13659
|
animate: { opacity: s ? 0 : 1 },
|
|
13690
13660
|
transition: i,
|
|
13691
13661
|
children: n
|
|
13692
13662
|
}
|
|
13693
13663
|
)
|
|
13694
13664
|
] });
|
|
13695
|
-
},
|
|
13665
|
+
}, yn = {
|
|
13696
13666
|
positive: {
|
|
13697
13667
|
stroke: "hsl(var(--positive-50))",
|
|
13698
13668
|
fill: "hsl(var(--positive-50))",
|
|
@@ -13723,11 +13693,11 @@ const A9 = ({
|
|
|
13723
13693
|
label: e,
|
|
13724
13694
|
direction: t
|
|
13725
13695
|
}) => {
|
|
13726
|
-
const n =
|
|
13696
|
+
const n = yn[t];
|
|
13727
13697
|
return /* @__PURE__ */ r(
|
|
13728
13698
|
"span",
|
|
13729
13699
|
{
|
|
13730
|
-
className:
|
|
13700
|
+
className: E(
|
|
13731
13701
|
"absolute right-0 inline-flex items-center rounded-full border border-solid bg-f1-background px-1.5 py-px text-xs font-medium shadow",
|
|
13732
13702
|
t === "negative" ? "bottom-0 translate-y-full" : "top-0 -translate-y-full",
|
|
13733
13703
|
n.border,
|
|
@@ -13746,7 +13716,7 @@ const A9 = ({
|
|
|
13746
13716
|
label: t,
|
|
13747
13717
|
invertStatus: n
|
|
13748
13718
|
}) => {
|
|
13749
|
-
const s = `sparkline-gradient-${Zt().replace(/:/g, "")}`, i = T9(e, n), a =
|
|
13719
|
+
const s = `sparkline-gradient-${Zt().replace(/:/g, "")}`, i = T9(e, n), a = yn[i];
|
|
13750
13720
|
return /* @__PURE__ */ r("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ d(
|
|
13751
13721
|
"div",
|
|
13752
13722
|
{
|
|
@@ -13794,7 +13764,7 @@ const A9 = ({
|
|
|
13794
13764
|
]
|
|
13795
13765
|
}
|
|
13796
13766
|
) });
|
|
13797
|
-
},
|
|
13767
|
+
}, Mn = C(
|
|
13798
13768
|
(e, t) => {
|
|
13799
13769
|
const {
|
|
13800
13770
|
description: n,
|
|
@@ -13808,9 +13778,9 @@ const A9 = ({
|
|
|
13808
13778
|
} = e, [u, h] = P(!1), [m, g] = P(!1), p = u || m, w = Le(), v = p && !!l, x = {
|
|
13809
13779
|
duration: w ? 0 : 0.2,
|
|
13810
13780
|
ease: [0.33, 1, 0.68, 1]
|
|
13811
|
-
},
|
|
13781
|
+
}, A = () => {
|
|
13812
13782
|
a?.();
|
|
13813
|
-
},
|
|
13783
|
+
}, F = (R) => {
|
|
13814
13784
|
R.currentTarget === R.target && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), a?.());
|
|
13815
13785
|
};
|
|
13816
13786
|
return /* @__PURE__ */ d("div", { className: "relative", children: [
|
|
@@ -13819,7 +13789,7 @@ const A9 = ({
|
|
|
13819
13789
|
"div",
|
|
13820
13790
|
{
|
|
13821
13791
|
"data-testid": "selected-border",
|
|
13822
|
-
className:
|
|
13792
|
+
className: E(
|
|
13823
13793
|
"absolute -inset-px rounded-2xl",
|
|
13824
13794
|
"[--gradient-angle:0deg]",
|
|
13825
13795
|
"bg-[conic-gradient(from_var(--gradient-angle),hsla(229,57%,76%,0.7),hsla(348,80%,50%,0.7),hsla(348,80%,50%,0.7),hsla(18,80%,50%,0.7),hsla(229,57%,76%,0.7),hsla(229,57%,76%,0.7))]",
|
|
@@ -13831,7 +13801,7 @@ const A9 = ({
|
|
|
13831
13801
|
"div",
|
|
13832
13802
|
{
|
|
13833
13803
|
"aria-hidden": !0,
|
|
13834
|
-
className:
|
|
13804
|
+
className: E(
|
|
13835
13805
|
"pointer-events-none absolute -inset-px rounded-2xl",
|
|
13836
13806
|
"[--gradient-angle:0deg]",
|
|
13837
13807
|
"bg-[conic-gradient(from_var(--gradient-angle),hsla(229,57%,76%,0.7),hsla(348,80%,50%,0.7),hsla(348,80%,50%,0.7),hsla(18,80%,50%,0.7),hsla(229,57%,76%,0.7),hsla(229,57%,76%,0.7))]",
|
|
@@ -13846,15 +13816,15 @@ const A9 = ({
|
|
|
13846
13816
|
ref: t,
|
|
13847
13817
|
role: a ? "button" : void 0,
|
|
13848
13818
|
tabIndex: a ? 0 : void 0,
|
|
13849
|
-
className:
|
|
13819
|
+
className: E(
|
|
13850
13820
|
E9({ selected: i }),
|
|
13851
13821
|
i && "relative border-transparent",
|
|
13852
13822
|
a && "cursor-pointer select-none",
|
|
13853
13823
|
a && ve(),
|
|
13854
13824
|
c
|
|
13855
13825
|
),
|
|
13856
|
-
onClick: a ?
|
|
13857
|
-
onKeyDown: a ?
|
|
13826
|
+
onClick: a ? A : void 0,
|
|
13827
|
+
onKeyDown: a ? F : void 0,
|
|
13858
13828
|
onMouseEnter: () => h(!0),
|
|
13859
13829
|
onMouseLeave: () => h(!1),
|
|
13860
13830
|
onFocus: () => g(!0),
|
|
@@ -13869,7 +13839,7 @@ const A9 = ({
|
|
|
13869
13839
|
}
|
|
13870
13840
|
),
|
|
13871
13841
|
f.content === "sparkline" ? /* @__PURE__ */ d("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
13872
|
-
/* @__PURE__ */ r("span", { className:
|
|
13842
|
+
/* @__PURE__ */ r("span", { className: E(Ln()), children: o }),
|
|
13873
13843
|
/* @__PURE__ */ r(
|
|
13874
13844
|
oe.div,
|
|
13875
13845
|
{
|
|
@@ -13902,15 +13872,15 @@ const A9 = ({
|
|
|
13902
13872
|
] });
|
|
13903
13873
|
}
|
|
13904
13874
|
);
|
|
13905
|
-
|
|
13906
|
-
const $9 = ["className"],
|
|
13875
|
+
Mn.displayName = "F0AiInsightCardInternal";
|
|
13876
|
+
const $9 = ["className"], En = C((e, t) => {
|
|
13907
13877
|
const n = $9.reduce((o, s) => {
|
|
13908
13878
|
const { [s]: i, ...a } = o;
|
|
13909
13879
|
return a;
|
|
13910
13880
|
}, e);
|
|
13911
|
-
return /* @__PURE__ */ r(
|
|
13881
|
+
return /* @__PURE__ */ r(Mn, { ref: t, ...n });
|
|
13912
13882
|
});
|
|
13913
|
-
|
|
13883
|
+
En.displayName = "F0AiInsightCard";
|
|
13914
13884
|
const I9 = () => /* @__PURE__ */ d(
|
|
13915
13885
|
"div",
|
|
13916
13886
|
{
|
|
@@ -13932,7 +13902,7 @@ const I9 = () => /* @__PURE__ */ d(
|
|
|
13932
13902
|
]
|
|
13933
13903
|
}
|
|
13934
13904
|
), N3 = cr(
|
|
13935
|
-
lr(
|
|
13905
|
+
lr(En, I9)
|
|
13936
13906
|
), F3 = [
|
|
13937
13907
|
"text",
|
|
13938
13908
|
"person",
|
|
@@ -13942,7 +13912,7 @@ const I9 = () => /* @__PURE__ */ d(
|
|
|
13942
13912
|
"alert",
|
|
13943
13913
|
"balance",
|
|
13944
13914
|
"sparkline"
|
|
13945
|
-
],
|
|
13915
|
+
], Rn = 180, P9 = (e) => Number.isFinite(e) ? Math.max(0, Math.floor(e)) : Rn, j9 = (e, t) => e.length <= t ? e : `${e.slice(0, t).trimEnd()}...`, D9 = (e) => e.showActions !== !1, _9 = (e) => Object.fromEntries(
|
|
13946
13916
|
Object.entries(e).filter(([t]) => t.startsWith("data-"))
|
|
13947
13917
|
);
|
|
13948
13918
|
function O9(e) {
|
|
@@ -13953,7 +13923,7 @@ function O9(e) {
|
|
|
13953
13923
|
subtitle: s,
|
|
13954
13924
|
description: i,
|
|
13955
13925
|
seeMoreLabel: a,
|
|
13956
|
-
maxCollapsedDescriptionLength: l =
|
|
13926
|
+
maxCollapsedDescriptionLength: l = Rn
|
|
13957
13927
|
} = e, [c, f] = P(!1), u = Zt(), h = $(null), m = P9(
|
|
13958
13928
|
l
|
|
13959
13929
|
), g = i.length > m, p = c ? i : j9(i, m), w = D9(e) ? e : null, v = _9(e);
|
|
@@ -13966,7 +13936,7 @@ function O9(e) {
|
|
|
13966
13936
|
...v,
|
|
13967
13937
|
children: [
|
|
13968
13938
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-3 px-4 py-3", children: [
|
|
13969
|
-
t && /* @__PURE__ */ r(
|
|
13939
|
+
t && /* @__PURE__ */ r(hr, { module: t, size: "lg" }),
|
|
13970
13940
|
/* @__PURE__ */ d("div", { className: "min-w-0 flex-1", children: [
|
|
13971
13941
|
/* @__PURE__ */ r("h2", { className: "truncate text-lg font-semibold text-f1-foreground", children: n }),
|
|
13972
13942
|
s && /* @__PURE__ */ r("p", { className: "truncate text-base text-f1-foreground-secondary", children: s })
|
|
@@ -13980,7 +13950,7 @@ function O9(e) {
|
|
|
13980
13950
|
id: u,
|
|
13981
13951
|
ref: h,
|
|
13982
13952
|
tabIndex: c ? -1 : void 0,
|
|
13983
|
-
className:
|
|
13953
|
+
className: E(
|
|
13984
13954
|
"text-base text-f1-foreground whitespace-pre-wrap break-words",
|
|
13985
13955
|
c && ve(),
|
|
13986
13956
|
!c && "inline"
|
|
@@ -13993,7 +13963,7 @@ function O9(e) {
|
|
|
13993
13963
|
"button",
|
|
13994
13964
|
{
|
|
13995
13965
|
type: "button",
|
|
13996
|
-
className:
|
|
13966
|
+
className: E(
|
|
13997
13967
|
"inline cursor-pointer rounded-none border-0 bg-transparent p-0 text-base text-f1-foreground underline underline-offset-2 hover:text-f1-foreground-secondary",
|
|
13998
13968
|
ve()
|
|
13999
13969
|
),
|
|
@@ -14029,13 +13999,13 @@ const Z9 = ({
|
|
|
14029
13999
|
}) => {
|
|
14030
14000
|
const [o, s] = P(!1), i = Le();
|
|
14031
14001
|
return /* @__PURE__ */ d(
|
|
14032
|
-
|
|
14002
|
+
pr,
|
|
14033
14003
|
{
|
|
14034
14004
|
className: "mb-1 w-full",
|
|
14035
14005
|
open: o,
|
|
14036
14006
|
onOpenChange: s,
|
|
14037
14007
|
children: [
|
|
14038
|
-
/* @__PURE__ */ d(
|
|
14008
|
+
/* @__PURE__ */ d(mr, { className: "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90", children: [
|
|
14039
14009
|
/* @__PURE__ */ r("span", { className: "mr-2 *:block", children: /* @__PURE__ */ r(ce, { icon: e, className: "block" }) }),
|
|
14040
14010
|
/* @__PURE__ */ r("span", { className: "mr-[2px]", children: t }),
|
|
14041
14011
|
/* @__PURE__ */ r(
|
|
@@ -14046,7 +14016,7 @@ const Z9 = ({
|
|
|
14046
14016
|
}
|
|
14047
14017
|
)
|
|
14048
14018
|
] }),
|
|
14049
|
-
/* @__PURE__ */ r(
|
|
14019
|
+
/* @__PURE__ */ r(Cr, { forceMount: !0, className: "data-[state=open]:mt-3", children: /* @__PURE__ */ r(
|
|
14050
14020
|
oe.div,
|
|
14051
14021
|
{
|
|
14052
14022
|
initial: !1,
|
|
@@ -14179,7 +14149,7 @@ function q9({
|
|
|
14179
14149
|
"table",
|
|
14180
14150
|
{
|
|
14181
14151
|
ref: s,
|
|
14182
|
-
className:
|
|
14152
|
+
className: E(
|
|
14183
14153
|
"w-full border-separate border-spacing-0 text-md",
|
|
14184
14154
|
"[&_tbody_tr:last-child_td]:border-b-0"
|
|
14185
14155
|
),
|
|
@@ -14492,7 +14462,7 @@ const Dt = ({
|
|
|
14492
14462
|
return e ? /* @__PURE__ */ d(
|
|
14493
14463
|
"header",
|
|
14494
14464
|
{
|
|
14495
|
-
className:
|
|
14465
|
+
className: E(
|
|
14496
14466
|
"flex justify-between pl-2.5 pr-3 py-3 w-full overflow-hidden gap-3"
|
|
14497
14467
|
),
|
|
14498
14468
|
children: [
|
|
@@ -14531,7 +14501,7 @@ const Dt = ({
|
|
|
14531
14501
|
)
|
|
14532
14502
|
]
|
|
14533
14503
|
}
|
|
14534
|
-
) : /* @__PURE__ */ d("header", { className:
|
|
14504
|
+
) : /* @__PURE__ */ d("header", { className: E("flex justify-between px-4 py-3"), children: [
|
|
14535
14505
|
/* @__PURE__ */ r("div", { className: "flex items-center", children: /* @__PURE__ */ r("h2", { className: "text-f1-foreground", children: t ?? "" }) }),
|
|
14536
14506
|
/* @__PURE__ */ d(
|
|
14537
14507
|
oe.div,
|
|
@@ -14571,12 +14541,12 @@ function Q9() {
|
|
|
14571
14541
|
}
|
|
14572
14542
|
function J9(e) {
|
|
14573
14543
|
const t = new Date(e), n = /* @__PURE__ */ new Date();
|
|
14574
|
-
return
|
|
14544
|
+
return wr(t) ? "today" : xr(t) ? "yesterday" : vi(t, n) ? "thisMonth" : "older";
|
|
14575
14545
|
}
|
|
14576
14546
|
function e3(e, t) {
|
|
14577
14547
|
const n = new Date(e), o = Q9(), s = J1(n, "p", { locale: o });
|
|
14578
|
-
if (
|
|
14579
|
-
if (
|
|
14548
|
+
if (wr(n)) return `${t.today}, ${s}`;
|
|
14549
|
+
if (xr(n)) return `${t.yesterday}, ${s}`;
|
|
14580
14550
|
const i = !wi(n, /* @__PURE__ */ new Date());
|
|
14581
14551
|
return `${J1(n, i ? "MMM d yyyy" : "MMM d", {
|
|
14582
14552
|
locale: o
|
|
@@ -14607,7 +14577,7 @@ function r3({
|
|
|
14607
14577
|
() => [
|
|
14608
14578
|
{
|
|
14609
14579
|
label: t ? a.ai.unpinChat : a.ai.pinChat,
|
|
14610
|
-
icon:
|
|
14580
|
+
icon: Nr,
|
|
14611
14581
|
onClick: () => t ? s(e.id) : o(e.id)
|
|
14612
14582
|
},
|
|
14613
14583
|
{
|
|
@@ -14628,7 +14598,7 @@ function r3({
|
|
|
14628
14598
|
return /* @__PURE__ */ d(
|
|
14629
14599
|
"div",
|
|
14630
14600
|
{
|
|
14631
|
-
className:
|
|
14601
|
+
className: E(
|
|
14632
14602
|
"group flex cursor-pointer items-center justify-between rounded-md py-1.5 pl-3 pr-1.5 hover:bg-f1-background-hover",
|
|
14633
14603
|
ve("rounded")
|
|
14634
14604
|
),
|
|
@@ -14652,7 +14622,7 @@ function r3({
|
|
|
14652
14622
|
/* @__PURE__ */ r(
|
|
14653
14623
|
"div",
|
|
14654
14624
|
{
|
|
14655
|
-
className:
|
|
14625
|
+
className: E(
|
|
14656
14626
|
"flex items-center opacity-0 transition-opacity duration-150",
|
|
14657
14627
|
"group-hover:opacity-100 focus-within:opacity-100",
|
|
14658
14628
|
"has-[[aria-expanded=true]]:opacity-100"
|
|
@@ -14698,7 +14668,7 @@ function _t({
|
|
|
14698
14668
|
tabIndex: 0,
|
|
14699
14669
|
onClick: f,
|
|
14700
14670
|
onKeyDown: u,
|
|
14701
|
-
className:
|
|
14671
|
+
className: E(
|
|
14702
14672
|
"flex cursor-pointer items-center p-3 gap-1 hover:bg-f1-background-hover",
|
|
14703
14673
|
ve("rounded")
|
|
14704
14674
|
),
|
|
@@ -14756,8 +14726,8 @@ const V3 = ({
|
|
|
14756
14726
|
}) => {
|
|
14757
14727
|
const u = ee(), [h, m] = P("");
|
|
14758
14728
|
K(() => {
|
|
14759
|
-
const L = (
|
|
14760
|
-
|
|
14729
|
+
const L = (S) => {
|
|
14730
|
+
S.key === "Escape" && e();
|
|
14761
14731
|
};
|
|
14762
14732
|
return document.addEventListener("keydown", L), () => document.removeEventListener("keydown", L);
|
|
14763
14733
|
}, [e]);
|
|
@@ -14777,7 +14747,7 @@ const V3 = ({
|
|
|
14777
14747
|
), p = te(() => {
|
|
14778
14748
|
if (!h.trim()) return o;
|
|
14779
14749
|
const L = h.toLowerCase();
|
|
14780
|
-
return o.filter((
|
|
14750
|
+
return o.filter((S) => S.title.toLowerCase().includes(L));
|
|
14781
14751
|
}, [o, h]), w = te(
|
|
14782
14752
|
() => p.filter((L) => a.has(L.id)),
|
|
14783
14753
|
[p, a]
|
|
@@ -14787,20 +14757,20 @@ const V3 = ({
|
|
|
14787
14757
|
), x = te(
|
|
14788
14758
|
() => t3(v),
|
|
14789
14759
|
[v]
|
|
14790
|
-
),
|
|
14791
|
-
(L,
|
|
14792
|
-
t(L,
|
|
14760
|
+
), A = X(
|
|
14761
|
+
(L, S) => {
|
|
14762
|
+
t(L, S), e();
|
|
14793
14763
|
},
|
|
14794
14764
|
[t, e]
|
|
14795
|
-
),
|
|
14765
|
+
), F = X(() => {
|
|
14796
14766
|
n(), e();
|
|
14797
14767
|
}, [n, e]), R = X(
|
|
14798
14768
|
(L) => {
|
|
14799
14769
|
f(L);
|
|
14800
14770
|
},
|
|
14801
14771
|
[f]
|
|
14802
|
-
),
|
|
14803
|
-
return
|
|
14772
|
+
), M = w.length > 0 || x.length > 0;
|
|
14773
|
+
return kr(
|
|
14804
14774
|
/* @__PURE__ */ d(ke, { children: [
|
|
14805
14775
|
/* @__PURE__ */ r(
|
|
14806
14776
|
"div",
|
|
@@ -14816,7 +14786,7 @@ const V3 = ({
|
|
|
14816
14786
|
role: "dialog",
|
|
14817
14787
|
"aria-modal": "true",
|
|
14818
14788
|
"aria-label": u.ai.chatHistory,
|
|
14819
|
-
className:
|
|
14789
|
+
className: E(
|
|
14820
14790
|
"fixed inset-0 z-50 flex items-center justify-center",
|
|
14821
14791
|
"pointer-events-none",
|
|
14822
14792
|
"animate-in fade-in-0 zoom-in-95"
|
|
@@ -14824,7 +14794,7 @@ const V3 = ({
|
|
|
14824
14794
|
children: /* @__PURE__ */ d(
|
|
14825
14795
|
"div",
|
|
14826
14796
|
{
|
|
14827
|
-
className:
|
|
14797
|
+
className: E(
|
|
14828
14798
|
"pointer-events-auto relative flex w-full max-w-[600px] flex-col",
|
|
14829
14799
|
"rounded-xl bg-f1-background shadow-lg",
|
|
14830
14800
|
"max-h-[min(600px,80vh)]"
|
|
@@ -14839,7 +14809,7 @@ const V3 = ({
|
|
|
14839
14809
|
value: h,
|
|
14840
14810
|
onChange: (L) => m(L.target.value),
|
|
14841
14811
|
placeholder: u.ai.searchChats,
|
|
14842
|
-
className:
|
|
14812
|
+
className: E(
|
|
14843
14813
|
"w-full",
|
|
14844
14814
|
"py-2.5 pr-3",
|
|
14845
14815
|
"text-base text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary focus:outline-none",
|
|
@@ -14855,7 +14825,7 @@ const V3 = ({
|
|
|
14855
14825
|
variant: "ghost",
|
|
14856
14826
|
size: "md",
|
|
14857
14827
|
className: "py-1 [&>div>span>span]:w-full",
|
|
14858
|
-
onClick:
|
|
14828
|
+
onClick: F,
|
|
14859
14829
|
children: /* @__PURE__ */ d("div", { className: "flex w-full items-center gap-2", children: [
|
|
14860
14830
|
/* @__PURE__ */ r(ce, { icon: O1, color: "default", size: "md" }),
|
|
14861
14831
|
/* @__PURE__ */ r(fe, { lines: 1, className: "text-left", children: u.ai.startNewChat })
|
|
@@ -14864,14 +14834,14 @@ const V3 = ({
|
|
|
14864
14834
|
),
|
|
14865
14835
|
s && /* @__PURE__ */ r(n3, {}),
|
|
14866
14836
|
!s && i && /* @__PURE__ */ r("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: i }),
|
|
14867
|
-
!s && !i && !
|
|
14837
|
+
!s && !i && !M && /* @__PURE__ */ r("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: u.ai.noPreviousChats }),
|
|
14868
14838
|
!s && !i && w.length > 0 && /* @__PURE__ */ r(
|
|
14869
14839
|
_t,
|
|
14870
14840
|
{
|
|
14871
14841
|
label: u.ai.pinnedChats,
|
|
14872
14842
|
threads: w,
|
|
14873
14843
|
pinnedIds: a,
|
|
14874
|
-
onSelect:
|
|
14844
|
+
onSelect: A,
|
|
14875
14845
|
onPin: l,
|
|
14876
14846
|
onUnpin: c,
|
|
14877
14847
|
onDelete: R
|
|
@@ -14883,7 +14853,7 @@ const V3 = ({
|
|
|
14883
14853
|
label: g[L.key],
|
|
14884
14854
|
threads: L.threads,
|
|
14885
14855
|
pinnedIds: a,
|
|
14886
|
-
onSelect:
|
|
14856
|
+
onSelect: A,
|
|
14887
14857
|
onPin: l,
|
|
14888
14858
|
onUnpin: c,
|
|
14889
14859
|
onDelete: R
|
|
@@ -14899,13 +14869,13 @@ const V3 = ({
|
|
|
14899
14869
|
] }),
|
|
14900
14870
|
document.body
|
|
14901
14871
|
);
|
|
14902
|
-
},
|
|
14872
|
+
}, Nn = "f0-ai-pinned-threads";
|
|
14903
14873
|
function o3() {
|
|
14904
|
-
const e = ki(
|
|
14874
|
+
const e = ki(Nn, []);
|
|
14905
14875
|
return new Set(Array.isArray(e) ? e : []);
|
|
14906
14876
|
}
|
|
14907
14877
|
function R1(e) {
|
|
14908
|
-
bi(
|
|
14878
|
+
bi(Nn, [...e]);
|
|
14909
14879
|
}
|
|
14910
14880
|
function T3({
|
|
14911
14881
|
enabled: e = !1,
|
|
@@ -14965,12 +14935,12 @@ function T3({
|
|
|
14965
14935
|
export {
|
|
14966
14936
|
k3 as A,
|
|
14967
14937
|
l2 as B,
|
|
14968
|
-
|
|
14938
|
+
ln as C,
|
|
14969
14939
|
Xi as D,
|
|
14970
|
-
|
|
14940
|
+
k5 as E,
|
|
14971
14941
|
m3 as F,
|
|
14972
14942
|
T0 as G,
|
|
14973
|
-
|
|
14943
|
+
h5 as H,
|
|
14974
14944
|
Ki as I,
|
|
14975
14945
|
u0 as J,
|
|
14976
14946
|
Za as K,
|
|
@@ -14986,7 +14956,7 @@ export {
|
|
|
14986
14956
|
b3 as b,
|
|
14987
14957
|
m6 as c,
|
|
14988
14958
|
C3 as d,
|
|
14989
|
-
|
|
14959
|
+
dn as e,
|
|
14990
14960
|
L3 as f,
|
|
14991
14961
|
y3 as g,
|
|
14992
14962
|
V1 as h,
|
|
@@ -15007,5 +14977,5 @@ export {
|
|
|
15007
14977
|
T3 as w,
|
|
15008
14978
|
h3 as x,
|
|
15009
14979
|
w3 as y,
|
|
15010
|
-
|
|
14980
|
+
Hr as z
|
|
15011
14981
|
};
|