teodor-new-chat-ui 3.0.132 → 3.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +139 -139
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -321,15 +321,15 @@ function gm() {
|
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var ae = Object.prototype.hasOwnProperty, Ee = {},
|
|
324
|
+
var ae = Object.prototype.hasOwnProperty, Ee = {}, Se = x.ReactDebugCurrentFrame;
|
|
325
325
|
function he(R) {
|
|
326
326
|
if (R) {
|
|
327
327
|
var z = R._owner, oe = Ie(R.type, R._source, z ? z.type : null);
|
|
328
|
-
|
|
328
|
+
Se.setExtraStackFrame(oe);
|
|
329
329
|
} else
|
|
330
|
-
|
|
330
|
+
Se.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Ce(R, z, oe, xe, Fe) {
|
|
333
333
|
{
|
|
334
334
|
var He = Function.call.bind(ae);
|
|
335
335
|
for (var Ae in R)
|
|
@@ -555,7 +555,7 @@ Check the top-level render call using <` + oe + ">.");
|
|
|
555
555
|
return;
|
|
556
556
|
if (oe) {
|
|
557
557
|
var xe = W(z);
|
|
558
|
-
|
|
558
|
+
Ce(oe, R.props, "prop", xe, R);
|
|
559
559
|
} else if (z.PropTypes !== void 0 && !pn) {
|
|
560
560
|
pn = !0;
|
|
561
561
|
var Fe = W(z);
|
|
@@ -2610,24 +2610,24 @@ function Jg(e = {}) {
|
|
|
2610
2610
|
H && console.debug("[use-chat] skip malformed SSE data:", ae == null ? void 0 : ae.slice(0, 200));
|
|
2611
2611
|
continue;
|
|
2612
2612
|
}
|
|
2613
|
-
const
|
|
2614
|
-
H && console.debug("[use-chat] event:",
|
|
2615
|
-
const he =
|
|
2613
|
+
const Se = Zg(Ee) ? Ee.data : Ee;
|
|
2614
|
+
H && console.debug("[use-chat] event:", Se == null ? void 0 : Se.type, Se);
|
|
2615
|
+
const he = Se.seq;
|
|
2616
2616
|
if (he !== void 0 && (ce > 0 && he > ce + 1 && console.warn(`[use-chat] Gap detected: expected ${ce + 1}, got ${he}`), ce = he, y.current = he, g(he)), he !== void 0 && he <= y.current) {
|
|
2617
2617
|
H && console.debug("[use-chat] Duplicate event ignored:", he);
|
|
2618
2618
|
continue;
|
|
2619
2619
|
}
|
|
2620
|
-
if (
|
|
2621
|
-
U +=
|
|
2622
|
-
U && (h((
|
|
2623
|
-
}, 50));
|
|
2624
|
-
else if (
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2620
|
+
if (Se.type === "token" && e.autoAppendAssistant !== !1)
|
|
2621
|
+
U += Se.content, Q || (Q = window.setTimeout(() => {
|
|
2622
|
+
U && (h((Ce) => Ce + U), U = ""), Q = null;
|
|
2623
|
+
}, 50)), I == null || I(Se);
|
|
2624
|
+
else if (Se.type === "message_delta") {
|
|
2625
|
+
const Ce = Se.delta.filter(($e) => $e.type === "text").map(($e) => $e.text).join("");
|
|
2626
|
+
Ce && e.autoAppendAssistant !== !1 && (U += Ce, Q || (Q = window.setTimeout(() => {
|
|
2627
2627
|
U && (h(($e) => $e + U), U = ""), Q = null;
|
|
2628
|
-
}, 50)));
|
|
2628
|
+
}, 50))), I == null || I(Se);
|
|
2629
2629
|
} else
|
|
2630
|
-
Q && (window.clearTimeout(Q), Q = null), U && (h((
|
|
2630
|
+
Q && (window.clearTimeout(Q), Q = null), U && (h((Ce) => Ce + U), U = ""), Se.type === "checkpoint" ? v(Se.checkpointId) : Se.type === "error" && u(Se.message);
|
|
2631
2631
|
}
|
|
2632
2632
|
}
|
|
2633
2633
|
U && h((ie) => ie + U);
|
|
@@ -2790,7 +2790,7 @@ function xc(e, t) {
|
|
|
2790
2790
|
const l = [...o.slice(0, s), ...o.slice(s + 1)];
|
|
2791
2791
|
return { ...e, assemblingId: null, messages: l };
|
|
2792
2792
|
}
|
|
2793
|
-
return
|
|
2793
|
+
return e;
|
|
2794
2794
|
}
|
|
2795
2795
|
if (t.type === "tool_start") {
|
|
2796
2796
|
const r = `tool-${t.id}`, o = { type: "tool_call", id: t.id, name: t.name, args: t.args }, s = {
|
|
@@ -3131,7 +3131,7 @@ function bo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
3131
3131
|
), Ee = ze(async (B) => {
|
|
3132
3132
|
const ee = await l.listCheckpoints(B);
|
|
3133
3133
|
return lv(ee, B);
|
|
3134
|
-
}, [l]),
|
|
3134
|
+
}, [l]), Se = ze(async (B, ee) => {
|
|
3135
3135
|
await F(async () => {
|
|
3136
3136
|
if (!j) throw new Error("No active thread");
|
|
3137
3137
|
ne({
|
|
@@ -3151,10 +3151,10 @@ function bo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
3151
3151
|
}, [l, j, ue, F, ne]), he = ze(async () => {
|
|
3152
3152
|
if (!j) throw new Error("No active thread");
|
|
3153
3153
|
await ae(j);
|
|
3154
|
-
}, [j, ae]),
|
|
3154
|
+
}, [j, ae]), Ce = We(!1);
|
|
3155
3155
|
Xe(() => {
|
|
3156
|
-
const B =
|
|
3157
|
-
|
|
3156
|
+
const B = Ce.current;
|
|
3157
|
+
Ce.current = u, B && !u && j && F(async () => {
|
|
3158
3158
|
M(!0);
|
|
3159
3159
|
try {
|
|
3160
3160
|
const ee = await l.getMessages({
|
|
@@ -3277,7 +3277,7 @@ function bo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
3277
3277
|
loadOlderMessages: ct,
|
|
3278
3278
|
historyPageSize: C,
|
|
3279
3279
|
listCheckpoints: Ee,
|
|
3280
|
-
navigateToCheckpoint:
|
|
3280
|
+
navigateToCheckpoint: Se,
|
|
3281
3281
|
returnToLatest: he,
|
|
3282
3282
|
refreshThreads: U,
|
|
3283
3283
|
createThread: $e,
|
|
@@ -3558,7 +3558,7 @@ function dn(e) {
|
|
|
3558
3558
|
}, e));
|
|
3559
3559
|
};
|
|
3560
3560
|
}
|
|
3561
|
-
function
|
|
3561
|
+
function Te(...e) {
|
|
3562
3562
|
const t = new Array(e.length);
|
|
3563
3563
|
let n = 0, r = null;
|
|
3564
3564
|
const o = Math.pow(2, e.length) - 1;
|
|
@@ -4171,7 +4171,7 @@ const Fv = {
|
|
|
4171
4171
|
}, sn = _e(
|
|
4172
4172
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
4173
4173
|
const n = je(), r = je(), o = pt(r, 0), s = je(), i = je(), a = X(0), l = X([]), u = X(void 0), d = X(void 0), h = X((S, T) => xn(S, Fv[T])), m = X(void 0), v = X(0), b = jv(), g = pt(
|
|
4174
|
-
$(n,
|
|
4174
|
+
$(n, Te(l, e, v), tn(Ov, b), Ge()),
|
|
4175
4175
|
b
|
|
4176
4176
|
), p = pt(
|
|
4177
4177
|
$(
|
|
@@ -4189,7 +4189,7 @@ const Fv = {
|
|
|
4189
4189
|
$(
|
|
4190
4190
|
l,
|
|
4191
4191
|
ge((S) => S.length > 0),
|
|
4192
|
-
|
|
4192
|
+
Te(g, v),
|
|
4193
4193
|
se(([S, T, C]) => {
|
|
4194
4194
|
const N = S.reduce((I, k, L) => Nt(I, k, Mr(k, T.offsetTree, C) || L), tr());
|
|
4195
4195
|
return {
|
|
@@ -4203,7 +4203,7 @@ const Fv = {
|
|
|
4203
4203
|
), de(
|
|
4204
4204
|
$(
|
|
4205
4205
|
r,
|
|
4206
|
-
|
|
4206
|
+
Te(g),
|
|
4207
4207
|
ge(([S, { lastIndex: T }]) => S < T),
|
|
4208
4208
|
se(([S, { lastIndex: T, lastSize: C }]) => [
|
|
4209
4209
|
{
|
|
@@ -4233,7 +4233,7 @@ const Fv = {
|
|
|
4233
4233
|
const w = It(
|
|
4234
4234
|
$(
|
|
4235
4235
|
n,
|
|
4236
|
-
|
|
4236
|
+
Te(g),
|
|
4237
4237
|
tn(
|
|
4238
4238
|
({ sizes: S }, [T, C]) => ({
|
|
4239
4239
|
changed: C !== S,
|
|
@@ -4262,7 +4262,7 @@ const Fv = {
|
|
|
4262
4262
|
C.length > 0 && (S -= Rc(-S, C)), ye(i, S);
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
|
-
), Be($(a,
|
|
4265
|
+
), Be($(a, Te(e)), ([S, T]) => {
|
|
4266
4266
|
S < 0 && T(
|
|
4267
4267
|
"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
|
|
4268
4268
|
{ firstItemIndex: a },
|
|
@@ -4273,7 +4273,7 @@ const Fv = {
|
|
|
4273
4273
|
de(
|
|
4274
4274
|
$(
|
|
4275
4275
|
s,
|
|
4276
|
-
|
|
4276
|
+
Te(g),
|
|
4277
4277
|
se(([S, T]) => {
|
|
4278
4278
|
const C = T.groupIndices.length > 0, N = [], I = T.lastSize;
|
|
4279
4279
|
if (C) {
|
|
@@ -4334,7 +4334,7 @@ const Fv = {
|
|
|
4334
4334
|
const E = It(
|
|
4335
4335
|
$(
|
|
4336
4336
|
i,
|
|
4337
|
-
|
|
4337
|
+
Te(g, v),
|
|
4338
4338
|
se(([S, { offsetTree: T }, C]) => {
|
|
4339
4339
|
const N = -S;
|
|
4340
4340
|
return Mr(N, T, C);
|
|
@@ -4344,7 +4344,7 @@ const Fv = {
|
|
|
4344
4344
|
return de(
|
|
4345
4345
|
$(
|
|
4346
4346
|
i,
|
|
4347
|
-
|
|
4347
|
+
Te(g, v),
|
|
4348
4348
|
se(([S, T, C]) => {
|
|
4349
4349
|
if (T.groupIndices.length > 0) {
|
|
4350
4350
|
if (Ue(T.sizeTree))
|
|
@@ -4483,8 +4483,8 @@ const Yr = _e(
|
|
|
4483
4483
|
return de(
|
|
4484
4484
|
$(
|
|
4485
4485
|
v,
|
|
4486
|
-
|
|
4487
|
-
|
|
4486
|
+
Te(n, h, r, g, a, i, m),
|
|
4487
|
+
Te(e, s, o),
|
|
4488
4488
|
se(
|
|
4489
4489
|
([
|
|
4490
4490
|
[E, S, T, C, N, I, k, L],
|
|
@@ -4548,7 +4548,7 @@ const qr = _e(
|
|
|
4548
4548
|
return de(
|
|
4549
4549
|
$(
|
|
4550
4550
|
i,
|
|
4551
|
-
|
|
4551
|
+
Te(l),
|
|
4552
4552
|
ge(([d, h]) => !!h),
|
|
4553
4553
|
Zt(!1)
|
|
4554
4554
|
),
|
|
@@ -4556,7 +4556,7 @@ const qr = _e(
|
|
|
4556
4556
|
), de(
|
|
4557
4557
|
$(
|
|
4558
4558
|
i,
|
|
4559
|
-
|
|
4559
|
+
Te(l),
|
|
4560
4560
|
ge(([d, h]) => !!h),
|
|
4561
4561
|
Zt(!1)
|
|
4562
4562
|
),
|
|
@@ -4564,9 +4564,9 @@ const qr = _e(
|
|
|
4564
4564
|
), Be(
|
|
4565
4565
|
$(
|
|
4566
4566
|
rt(t, i),
|
|
4567
|
-
|
|
4567
|
+
Te(a, n, e, u),
|
|
4568
4568
|
ge(([[, d], h, { sizeTree: m }, v, b]) => d && (!Ue(m) || Xi(v)) && !h && !b),
|
|
4569
|
-
|
|
4569
|
+
Te(l)
|
|
4570
4570
|
),
|
|
4571
4571
|
([, d]) => {
|
|
4572
4572
|
$t(o, () => {
|
|
@@ -4711,7 +4711,7 @@ const Dr = "up", Er = "down", zv = "none", Uv = {
|
|
|
4711
4711
|
$(
|
|
4712
4712
|
o,
|
|
4713
4713
|
dn(100),
|
|
4714
|
-
|
|
4714
|
+
Te(m),
|
|
4715
4715
|
ge(([w, y]) => !!y),
|
|
4716
4716
|
tn(([w, y], [E]) => [y, E], [0, 0]),
|
|
4717
4717
|
se(([w, y]) => y - w)
|
|
@@ -5006,7 +5006,7 @@ const zn = _e(
|
|
|
5006
5006
|
$(
|
|
5007
5007
|
w,
|
|
5008
5008
|
ge(({ items: T }) => T.length > 0),
|
|
5009
|
-
|
|
5009
|
+
Te(o, e),
|
|
5010
5010
|
ge(([{ items: T }, C]) => T[T.length - 1].originalIndex === C - 1),
|
|
5011
5011
|
se(([, T, C]) => [T - 1, C]),
|
|
5012
5012
|
Ge(Or),
|
|
@@ -5098,8 +5098,8 @@ const zn = _e(
|
|
|
5098
5098
|
return de(
|
|
5099
5099
|
$(
|
|
5100
5100
|
d,
|
|
5101
|
-
|
|
5102
|
-
|
|
5101
|
+
Te(t, l, n, s, o, r, a),
|
|
5102
|
+
Te(e),
|
|
5103
5103
|
se(([[h, m, v, b, g, p, x, w], y]) => {
|
|
5104
5104
|
const { align: E, behavior: S, calculateViewLocation: T = Kv, done: C, ...N } = h, I = du(h, m, b - 1), k = Mr(I, m.offsetTree, y) + g + p, L = k + zt(m.sizeTree, I)[1], H = w + p, W = w + v - x, P = T({
|
|
5105
5105
|
itemBottom: L,
|
|
@@ -5156,7 +5156,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5156
5156
|
Be(
|
|
5157
5157
|
$(
|
|
5158
5158
|
rt($(me(t), Dn(1)), l),
|
|
5159
|
-
|
|
5159
|
+
Te(me(b), s, a, h),
|
|
5160
5160
|
se(([[S, T], C, N, I, k]) => {
|
|
5161
5161
|
let L = T && I, H = "auto";
|
|
5162
5162
|
return L && (H = Yv(C, N || k), L = L && !!H), { followOutputBehavior: H, shouldFollow: L, totalCount: S };
|
|
@@ -5186,7 +5186,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5186
5186
|
{ refreshed: !1, value: 0 }
|
|
5187
5187
|
),
|
|
5188
5188
|
ge(({ refreshed: S }) => S),
|
|
5189
|
-
|
|
5189
|
+
Te(b, t)
|
|
5190
5190
|
),
|
|
5191
5191
|
([, S]) => {
|
|
5192
5192
|
Qe(a) && w(S !== !1);
|
|
@@ -5212,7 +5212,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5212
5212
|
), Be(
|
|
5213
5213
|
$(
|
|
5214
5214
|
rt($(E, Dn(1)), l),
|
|
5215
|
-
|
|
5215
|
+
Te(me(y), a, h, m),
|
|
5216
5216
|
se(([[S, T], C, N, I, k]) => T && N && (C == null ? void 0 : C({ context: k, totalCount: S, scrollingInProgress: I }))),
|
|
5217
5217
|
ge((S) => !!S),
|
|
5218
5218
|
dn(0)
|
|
@@ -5241,9 +5241,9 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5241
5241
|
([{ data: e, firstItemIndex: t, gap: n, sizes: r }, { initialTopMostItemIndex: o }, { initialItemCount: s, listState: i }, { didMount: a }]) => (de(
|
|
5242
5242
|
$(
|
|
5243
5243
|
a,
|
|
5244
|
-
|
|
5244
|
+
Te(s),
|
|
5245
5245
|
ge(([, l]) => l !== 0),
|
|
5246
|
-
|
|
5246
|
+
Te(o, r, t, n, e),
|
|
5247
5247
|
se(([[, l], u, d, h, m, v = []]) => mu(l, u, d, h, m, v))
|
|
5248
5248
|
),
|
|
5249
5249
|
i
|
|
@@ -5256,7 +5256,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5256
5256
|
return Be(
|
|
5257
5257
|
$(
|
|
5258
5258
|
e,
|
|
5259
|
-
|
|
5259
|
+
Te(r),
|
|
5260
5260
|
ge(([, o]) => o !== 0),
|
|
5261
5261
|
se(([, o]) => ({ top: o }))
|
|
5262
5262
|
),
|
|
@@ -5286,7 +5286,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5286
5286
|
return de(
|
|
5287
5287
|
$(
|
|
5288
5288
|
e,
|
|
5289
|
-
|
|
5289
|
+
Te(r, t, n),
|
|
5290
5290
|
ge(([o, s]) => !!s),
|
|
5291
5291
|
se(([o, s, i, a]) => {
|
|
5292
5292
|
const { enter: l, exit: u } = s;
|
|
@@ -5301,7 +5301,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5301
5301
|
),
|
|
5302
5302
|
t
|
|
5303
5303
|
), Be(
|
|
5304
|
-
$(rt(t, e, n),
|
|
5304
|
+
$(rt(t, e, n), Te(r)),
|
|
5305
5305
|
([[o, s, i], a]) => {
|
|
5306
5306
|
o && a && a.change && a.change(s, i);
|
|
5307
5307
|
}
|
|
@@ -5324,7 +5324,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5324
5324
|
), de(
|
|
5325
5325
|
$(
|
|
5326
5326
|
t,
|
|
5327
|
-
|
|
5327
|
+
Te(r),
|
|
5328
5328
|
se(([a, { offsetTop: l }]) => ({
|
|
5329
5329
|
...a,
|
|
5330
5330
|
top: a.top + l
|
|
@@ -5353,7 +5353,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5353
5353
|
return de(a, h), de(l, m), Be(
|
|
5354
5354
|
$(
|
|
5355
5355
|
u,
|
|
5356
|
-
|
|
5356
|
+
Te(t, r, i, h, m, n)
|
|
5357
5357
|
),
|
|
5358
5358
|
([v, b, g, p, x, w, y]) => {
|
|
5359
5359
|
const E = Mv(b.sizeTree);
|
|
@@ -5362,7 +5362,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = _e(
|
|
|
5362
5362
|
), de($(d, ge(Xi), se(Qv)), o), de(
|
|
5363
5363
|
$(
|
|
5364
5364
|
s,
|
|
5365
|
-
|
|
5365
|
+
Te(d),
|
|
5366
5366
|
ge(([, v]) => v !== void 0),
|
|
5367
5367
|
Ge(),
|
|
5368
5368
|
se(([, v]) => v.ranges)
|
|
@@ -5405,7 +5405,7 @@ const tx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
5405
5405
|
const g = It(
|
|
5406
5406
|
$(
|
|
5407
5407
|
l,
|
|
5408
|
-
|
|
5408
|
+
Te(i),
|
|
5409
5409
|
tn(
|
|
5410
5410
|
([, x, w, y], [{ bottom: E, items: S, offsetBottom: T, totalCount: C }, N]) => {
|
|
5411
5411
|
const I = E + T;
|
|
@@ -5415,7 +5415,7 @@ const tx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
5415
5415
|
[0, [], 0, 0]
|
|
5416
5416
|
),
|
|
5417
5417
|
ge(([x]) => x !== 0),
|
|
5418
|
-
|
|
5418
|
+
Te(r, a, n, o, v, b),
|
|
5419
5419
|
ge(([, x, w, y, , , E]) => !E && !y && x !== 0 && w === Dr),
|
|
5420
5420
|
se(([[x], , , , , w]) => (w("Upward scrolling compensation", { amount: x }, Tt.DEBUG), x))
|
|
5421
5421
|
)
|
|
@@ -5423,7 +5423,7 @@ const tx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
5423
5423
|
function p(x) {
|
|
5424
5424
|
x > 0 ? (ye(t, { behavior: "auto", top: -x }), ye(e, 0)) : (ye(e, 0), ye(t, { behavior: "auto", top: -x }));
|
|
5425
5425
|
}
|
|
5426
|
-
return Be($(g,
|
|
5426
|
+
return Be($(g, Te(e, s)), ([x, w, y]) => {
|
|
5427
5427
|
y && tx() ? ye(e, w - x) : p(-x);
|
|
5428
5428
|
}), Be(
|
|
5429
5429
|
$(
|
|
@@ -5442,7 +5442,7 @@ const tx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
5442
5442
|
), Be(
|
|
5443
5443
|
$(
|
|
5444
5444
|
u,
|
|
5445
|
-
|
|
5445
|
+
Te(m, d),
|
|
5446
5446
|
se(([x, { groupIndices: w, lastSize: y, sizeTree: E }, S]) => {
|
|
5447
5447
|
function T(C) {
|
|
5448
5448
|
return C * (y + S);
|
|
@@ -6133,7 +6133,7 @@ const jx = /* @__PURE__ */ _e(
|
|
|
6133
6133
|
Be(
|
|
6134
6134
|
$(
|
|
6135
6135
|
b,
|
|
6136
|
-
|
|
6136
|
+
Te(M),
|
|
6137
6137
|
ge(([j, K]) => !!K)
|
|
6138
6138
|
),
|
|
6139
6139
|
() => {
|
|
@@ -6161,7 +6161,7 @@ const jx = /* @__PURE__ */ _e(
|
|
|
6161
6161
|
), Be(
|
|
6162
6162
|
$(
|
|
6163
6163
|
b,
|
|
6164
|
-
|
|
6164
|
+
Te(J),
|
|
6165
6165
|
ge(([, j]) => j != null)
|
|
6166
6166
|
),
|
|
6167
6167
|
([, j]) => {
|
|
@@ -6219,18 +6219,18 @@ const jx = /* @__PURE__ */ _e(
|
|
|
6219
6219
|
ae,
|
|
6220
6220
|
Ee
|
|
6221
6221
|
]) => {
|
|
6222
|
-
const { column:
|
|
6222
|
+
const { column: Se, row: he } = ce, { height: Ce, width: $e } = ie, { width: it } = ke;
|
|
6223
6223
|
if (Ie === 0 && (j === 0 || it === 0))
|
|
6224
6224
|
return _c;
|
|
6225
6225
|
if ($e === 0) {
|
|
6226
6226
|
const Ve = na(Ee, j), mt = Ve + Math.max(Ie - 1, 0);
|
|
6227
6227
|
return Nx(Dc(Ve, mt, Oe));
|
|
6228
6228
|
}
|
|
6229
|
-
const tt = ku(it, $e,
|
|
6229
|
+
const tt = ku(it, $e, Se);
|
|
6230
6230
|
let wt, ct;
|
|
6231
|
-
ae ? K === 0 && U === 0 && Ie > 0 ? (wt = 0, ct = Ie - 1) : (wt = tt * $o((K + he) / (
|
|
6232
|
-
const ln = Dc(wt, ct, Oe), { bottom: B, top: ee } = Lc(ke, ce, ie, ln), De = Oc(j / tt), Le = De *
|
|
6233
|
-
return { bottom: B, itemHeight:
|
|
6231
|
+
ae ? K === 0 && U === 0 && Ie > 0 ? (wt = 0, ct = Ie - 1) : (wt = tt * $o((K + he) / (Ce + he)), ct = tt * Oc((U + he) / (Ce + he)) - 1, ct = Gs(j - 1, Nr(ct, tt - 1)), wt = Gs(ct, Nr(0, wt))) : (wt = 0, ct = -1);
|
|
6232
|
+
const ln = Dc(wt, ct, Oe), { bottom: B, top: ee } = Lc(ke, ce, ie, ln), De = Oc(j / tt), Le = De * Ce + (De - 1) * he - B;
|
|
6233
|
+
return { bottom: B, itemHeight: Ce, items: ln, itemWidth: $e, offsetBottom: Le, offsetTop: ee, top: ee };
|
|
6234
6234
|
}
|
|
6235
6235
|
)
|
|
6236
6236
|
),
|
|
@@ -6258,7 +6258,7 @@ const jx = /* @__PURE__ */ _e(
|
|
|
6258
6258
|
de(
|
|
6259
6259
|
$(
|
|
6260
6260
|
u,
|
|
6261
|
-
|
|
6261
|
+
Te(F),
|
|
6262
6262
|
se(([j, K]) => K || j !== 0)
|
|
6263
6263
|
),
|
|
6264
6264
|
F
|
|
@@ -6267,7 +6267,7 @@ const jx = /* @__PURE__ */ _e(
|
|
|
6267
6267
|
$(
|
|
6268
6268
|
rt(N, T),
|
|
6269
6269
|
ge(([{ items: j }]) => j.length > 0),
|
|
6270
|
-
|
|
6270
|
+
Te(F),
|
|
6271
6271
|
ge(([[j, K], U]) => {
|
|
6272
6272
|
const ce = j.items[j.items.length - 1].index === K - 1;
|
|
6273
6273
|
return (U || j.bottom > 0 && j.itemHeight > 0 && j.offsetBottom === 0 && j.items.length === K) && ce;
|
|
@@ -6285,7 +6285,7 @@ const jx = /* @__PURE__ */ _e(
|
|
|
6285
6285
|
), pe = It(
|
|
6286
6286
|
$(
|
|
6287
6287
|
me(N),
|
|
6288
|
-
|
|
6288
|
+
Te(O),
|
|
6289
6289
|
ge(([{ items: j }, K]) => j.length > 0 && !K),
|
|
6290
6290
|
se(([{ items: j }]) => ({
|
|
6291
6291
|
endIndex: j[j.length - 1].index,
|
|
@@ -6298,13 +6298,13 @@ const jx = /* @__PURE__ */ _e(
|
|
|
6298
6298
|
de(pe, v.scrollSeekRangeChanged), de(
|
|
6299
6299
|
$(
|
|
6300
6300
|
L,
|
|
6301
|
-
|
|
6301
|
+
Te(I, k, T, Y),
|
|
6302
6302
|
se(([j, K, U, ce, ie]) => {
|
|
6303
6303
|
const ke = hu(j), { align: Oe, behavior: Ie, offset: ae } = ke;
|
|
6304
6304
|
let Ee = ke.index;
|
|
6305
6305
|
Ee === "LAST" && (Ee = ce - 1), Ee = Nr(0, Ee, Gs(ce - 1, Ee));
|
|
6306
|
-
let
|
|
6307
|
-
return Oe === "end" ?
|
|
6306
|
+
let Se = Ti(K, ie, U, Ee);
|
|
6307
|
+
return Oe === "end" ? Se = Mc(Se - K.height + U.height) : Oe === "center" && (Se = Mc(Se - K.height / 2 + U.height / 2)), ae && (Se += ae), { behavior: Ie, top: Se };
|
|
6308
6308
|
})
|
|
6309
6309
|
),
|
|
6310
6310
|
l
|
|
@@ -6724,7 +6724,7 @@ function ca(...e) {
|
|
|
6724
6724
|
};
|
|
6725
6725
|
};
|
|
6726
6726
|
}
|
|
6727
|
-
function
|
|
6727
|
+
function Re(...e) {
|
|
6728
6728
|
return f.useCallback(ca(...e), e);
|
|
6729
6729
|
}
|
|
6730
6730
|
var Gx = [
|
|
@@ -6759,7 +6759,7 @@ function Kx(e, t) {
|
|
|
6759
6759
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
6760
6760
|
}
|
|
6761
6761
|
var Rt = (e) => {
|
|
6762
|
-
const { present: t, children: n } = e, r = Yx(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s =
|
|
6762
|
+
const { present: t, children: n } = e, r = Yx(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s = Re(r.ref, qx(o));
|
|
6763
6763
|
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: s }) : null;
|
|
6764
6764
|
};
|
|
6765
6765
|
Rt.displayName = "Presence";
|
|
@@ -6893,7 +6893,7 @@ var ua = "CollapsibleContent", eb = f.forwardRef(
|
|
|
6893
6893
|
);
|
|
6894
6894
|
eb.displayName = ua;
|
|
6895
6895
|
var tb = f.forwardRef((e, t) => {
|
|
6896
|
-
const { __scopeCollapsible: n, present: r, children: o, ...s } = e, i = la(ua, n), [a, l] = f.useState(r), u = f.useRef(null), d =
|
|
6896
|
+
const { __scopeCollapsible: n, present: r, children: o, ...s } = e, i = la(ua, n), [a, l] = f.useState(r), u = f.useRef(null), d = Re(t, u), h = f.useRef(0), m = h.current, v = f.useRef(0), b = v.current, g = i.open || a, p = f.useRef(g), x = f.useRef(void 0);
|
|
6897
6897
|
return f.useEffect(() => {
|
|
6898
6898
|
const w = requestAnimationFrame(() => p.current = !1);
|
|
6899
6899
|
return () => cancelAnimationFrame(w);
|
|
@@ -7367,7 +7367,7 @@ var bb = "DismissableLayer", Ei = "dismissableLayer.update", wb = "dismissableLa
|
|
|
7367
7367
|
onInteractOutside: i,
|
|
7368
7368
|
onDismiss: a,
|
|
7369
7369
|
...l
|
|
7370
|
-
} = e, u = f.useContext($u), [d, h] = f.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = f.useState({}), b =
|
|
7370
|
+
} = e, u = f.useContext($u), [d, h] = f.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = f.useState({}), b = Re(t, (C) => h(C)), g = Array.from(u.layers), [p] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = g.indexOf(p), w = d ? g.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, E = w >= x, S = Tb((C) => {
|
|
7371
7371
|
const N = C.target, I = [...u.branches].some((k) => k.contains(N));
|
|
7372
7372
|
!E || I || (o == null || o(C), i == null || i(C), C.defaultPrevented || a == null || a());
|
|
7373
7373
|
}, m), T = Rb((C) => {
|
|
@@ -7407,7 +7407,7 @@ var bb = "DismissableLayer", Ei = "dismissableLayer.update", wb = "dismissableLa
|
|
|
7407
7407
|
);
|
|
7408
7408
|
Jr.displayName = bb;
|
|
7409
7409
|
var Sb = "DismissableLayerBranch", Cb = f.forwardRef((e, t) => {
|
|
7410
|
-
const n = f.useContext($u), r = f.useRef(null), o =
|
|
7410
|
+
const n = f.useContext($u), r = f.useRef(null), o = Re(t, r);
|
|
7411
7411
|
return f.useEffect(() => {
|
|
7412
7412
|
const s = r.current;
|
|
7413
7413
|
if (s)
|
|
@@ -7476,7 +7476,7 @@ var Js = "focusScope.autoFocusOnMount", Zs = "focusScope.autoFocusOnUnmount", Yc
|
|
|
7476
7476
|
onMountAutoFocus: o,
|
|
7477
7477
|
onUnmountAutoFocus: s,
|
|
7478
7478
|
...i
|
|
7479
|
-
} = e, [a, l] = f.useState(null), u = ut(o), d = ut(s), h = f.useRef(null), m =
|
|
7479
|
+
} = e, [a, l] = f.useState(null), u = ut(o), d = ut(s), h = f.useRef(null), m = Re(t, (g) => l(g)), v = f.useRef({
|
|
7480
7480
|
paused: !1,
|
|
7481
7481
|
pause() {
|
|
7482
7482
|
this.paused = !0;
|
|
@@ -8173,7 +8173,7 @@ var gw = function(e) {
|
|
|
8173
8173
|
Zu.displayName = ms;
|
|
8174
8174
|
var Qu = "DialogTrigger", ed = f.forwardRef(
|
|
8175
8175
|
(e, t) => {
|
|
8176
|
-
const { __scopeDialog: n, ...r } = e, o = Kt(Qu, n), s =
|
|
8176
|
+
const { __scopeDialog: n, ...r } = e, o = Kt(Qu, n), s = Re(t, o.triggerRef);
|
|
8177
8177
|
return /* @__PURE__ */ c.jsx(
|
|
8178
8178
|
ve.button,
|
|
8179
8179
|
{
|
|
@@ -8230,7 +8230,7 @@ var yw = sr("DialogOverlay.RemoveScroll"), Sw = f.forwardRef(
|
|
|
8230
8230
|
od.displayName = Ln;
|
|
8231
8231
|
var Cw = f.forwardRef(
|
|
8232
8232
|
(e, t) => {
|
|
8233
|
-
const n = Kt(Ln, e.__scopeDialog), r = f.useRef(null), o =
|
|
8233
|
+
const n = Kt(Ln, e.__scopeDialog), r = f.useRef(null), o = Re(t, n.contentRef, r);
|
|
8234
8234
|
return f.useEffect(() => {
|
|
8235
8235
|
const s = r.current;
|
|
8236
8236
|
if (s) return ma(s);
|
|
@@ -8281,7 +8281,7 @@ var Cw = f.forwardRef(
|
|
|
8281
8281
|
}
|
|
8282
8282
|
), sd = f.forwardRef(
|
|
8283
8283
|
(e, t) => {
|
|
8284
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Kt(Ln, n), l = f.useRef(null), u =
|
|
8284
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Kt(Ln, n), l = f.useRef(null), u = Re(t, l);
|
|
8285
8285
|
return pa(), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
8286
8286
|
/* @__PURE__ */ c.jsx(
|
|
8287
8287
|
ds,
|
|
@@ -8706,12 +8706,12 @@ const Ow = q.memo(function({
|
|
|
8706
8706
|
/* @__PURE__ */ c.jsx("span", { className: "text-sm text-muted-foreground", children: "File upload" })
|
|
8707
8707
|
] });
|
|
8708
8708
|
if (t.model === "reflection") {
|
|
8709
|
-
const he = ne.trim(),
|
|
8710
|
-
if (
|
|
8711
|
-
return /* @__PURE__ */ c.jsx(Uw, { data:
|
|
8709
|
+
const he = ne.trim(), Ce = oi(he);
|
|
8710
|
+
if (Ce && typeof Ce == "object")
|
|
8711
|
+
return /* @__PURE__ */ c.jsx(Uw, { data: Ce });
|
|
8712
8712
|
}
|
|
8713
8713
|
if (V && F.name === "get_issues") {
|
|
8714
|
-
const he = t.content.find((it) => it.type === "tool_result"),
|
|
8714
|
+
const he = t.content.find((it) => it.type === "tool_result"), Ce = (he == null ? void 0 : he.output) ?? Zn(t.content), $e = yd(Ce);
|
|
8715
8715
|
if ($e) return /* @__PURE__ */ c.jsx(Ww, { issues: $e });
|
|
8716
8716
|
}
|
|
8717
8717
|
if (V && !C) {
|
|
@@ -8722,10 +8722,10 @@ const Ow = q.memo(function({
|
|
|
8722
8722
|
] }) });
|
|
8723
8723
|
}
|
|
8724
8724
|
if (V && d) {
|
|
8725
|
-
const he = Zn(t.content),
|
|
8725
|
+
const he = Zn(t.content), Ce = he.length > h;
|
|
8726
8726
|
return /* @__PURE__ */ c.jsx($c, { open: S, onOpenChange: T, children: /* @__PURE__ */ c.jsxs("div", { className: "font-mono text-sm text-current", children: [
|
|
8727
|
-
/* @__PURE__ */ c.jsx("pre", { className: D("whitespace-pre-wrap break-words text-current", O && "text-xs"), children:
|
|
8728
|
-
|
|
8727
|
+
/* @__PURE__ */ c.jsx("pre", { className: D("whitespace-pre-wrap break-words text-current", O && "text-xs"), children: Ce && !S ? he.substring(0, h) + "..." : he }),
|
|
8728
|
+
Ce && /* @__PURE__ */ c.jsx(Hc, { asChild: !0, children: /* @__PURE__ */ c.jsx(Me, { variant: "ghost", size: "sm", className: "h-6 text-xs text-current", children: S ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
8729
8729
|
/* @__PURE__ */ c.jsx(Cr, { className: "h-3 w-3 mr-1" }),
|
|
8730
8730
|
"Show less"
|
|
8731
8731
|
] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -8740,10 +8740,10 @@ const Ow = q.memo(function({
|
|
|
8740
8740
|
const he = Vw(t.content);
|
|
8741
8741
|
if (he && Dw(he))
|
|
8742
8742
|
return /* @__PURE__ */ c.jsx(Ys, { content: he.trim(), hideFallbackDuringStreaming: !0 });
|
|
8743
|
-
const
|
|
8744
|
-
return /* @__PURE__ */ c.jsx("div", { className: "font-mono text-sm text-current", children: /* @__PURE__ */ c.jsx("pre", { className: D("whitespace-pre-wrap break-words text-current", O && "text-xs"), children:
|
|
8743
|
+
const Ce = Zn(t.content);
|
|
8744
|
+
return /* @__PURE__ */ c.jsx("div", { className: "font-mono text-sm text-current", children: /* @__PURE__ */ c.jsx("pre", { className: D("whitespace-pre-wrap break-words text-current", O && "text-xs"), children: Ce }) });
|
|
8745
8745
|
}
|
|
8746
|
-
const Ee = Q.length > 0 && M !== "tool",
|
|
8746
|
+
const Ee = Q.length > 0 && M !== "tool", Se = ue.length > 0 && M !== "tool" && !1;
|
|
8747
8747
|
return /* @__PURE__ */ c.jsxs("div", { children: [
|
|
8748
8748
|
r ? (
|
|
8749
8749
|
// Streaming container: reserve space and show a skeleton until we have text,
|
|
@@ -8763,7 +8763,7 @@ const Ow = q.memo(function({
|
|
|
8763
8763
|
const he = oi(pe);
|
|
8764
8764
|
if (he !== null)
|
|
8765
8765
|
return /* @__PURE__ */ c.jsx(ol, { data: he });
|
|
8766
|
-
const
|
|
8766
|
+
const Ce = Fw(Lw(pe)), $e = pe.trim().length === 0;
|
|
8767
8767
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: $e ? /* @__PURE__ */ c.jsx("div", { className: "w-full", children: /* @__PURE__ */ c.jsxs("div", { className: "animate-pulse space-y-2", children: [
|
|
8768
8768
|
/* @__PURE__ */ c.jsx("div", { className: "h-3 bg-slate-200 dark:bg-slate-700 rounded w-3/4" }),
|
|
8769
8769
|
/* @__PURE__ */ c.jsx("div", { className: "h-3 bg-slate-200 dark:bg-slate-700 rounded w-5/6" }),
|
|
@@ -8775,7 +8775,7 @@ const Ow = q.memo(function({
|
|
|
8775
8775
|
"whitespace-pre-wrap break-words font-sans leading-relaxed transition-opacity duration-200",
|
|
8776
8776
|
O && "text-xs"
|
|
8777
8777
|
),
|
|
8778
|
-
children:
|
|
8778
|
+
children: Ce
|
|
8779
8779
|
}
|
|
8780
8780
|
) });
|
|
8781
8781
|
})(),
|
|
@@ -8787,11 +8787,11 @@ const Ow = q.memo(function({
|
|
|
8787
8787
|
const he = oi(ne.trim());
|
|
8788
8788
|
if (he !== null) return /* @__PURE__ */ c.jsx(ol, { data: he });
|
|
8789
8789
|
if (M === "user" && m) {
|
|
8790
|
-
const
|
|
8791
|
-
if (
|
|
8790
|
+
const Ce = ne.trim();
|
|
8791
|
+
if (Ce.length > v)
|
|
8792
8792
|
return /* @__PURE__ */ c.jsxs($c, { open: I, onOpenChange: k, children: [
|
|
8793
|
-
/* @__PURE__ */ c.jsx("div", { className: D("text-sm text-[hsl(var(--chat-bubble-user-text))]", O && "text-xs"), children: I ? /* @__PURE__ */ c.jsx(Ys, { content:
|
|
8794
|
-
|
|
8793
|
+
/* @__PURE__ */ c.jsx("div", { className: D("text-sm text-[hsl(var(--chat-bubble-user-text))]", O && "text-xs"), children: I ? /* @__PURE__ */ c.jsx(Ys, { content: Ce, hideFallbackDuringStreaming: !0 }) : /* @__PURE__ */ c.jsxs("pre", { className: D("font-sans whitespace-pre-wrap break-words bg-transparent p-0 m-0 text-[hsl(var(--chat-bubble-user-text))]", O && "text-xs"), children: [
|
|
8794
|
+
Ce.substring(0, v),
|
|
8795
8795
|
"..."
|
|
8796
8796
|
] }) }),
|
|
8797
8797
|
/* @__PURE__ */ c.jsx(Hc, { asChild: !0, children: /* @__PURE__ */ c.jsx(
|
|
@@ -8806,7 +8806,7 @@ const Ow = q.memo(function({
|
|
|
8806
8806
|
] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
8807
8807
|
/* @__PURE__ */ c.jsx(Qn, { className: "h-3 w-3 mr-1" }),
|
|
8808
8808
|
" Show more (",
|
|
8809
|
-
|
|
8809
|
+
Ce.length - v,
|
|
8810
8810
|
" chars)"
|
|
8811
8811
|
] })
|
|
8812
8812
|
}
|
|
@@ -8823,7 +8823,7 @@ const Ow = q.memo(function({
|
|
|
8823
8823
|
}
|
|
8824
8824
|
);
|
|
8825
8825
|
})(),
|
|
8826
|
-
Ee && /* @__PURE__ */ c.jsx("div", { className: "mt-2 grid grid-cols-2 gap-2", children: Q.map((he,
|
|
8826
|
+
Ee && /* @__PURE__ */ c.jsx("div", { className: "mt-2 grid grid-cols-2 gap-2", children: Q.map((he, Ce) => {
|
|
8827
8827
|
const $e = he, it = typeof $e.width == "number" ? $e.width : void 0, tt = typeof $e.height == "number" ? $e.height : void 0, wt = it && tt && tt > 0 ? `${it} / ${tt}` : "4 / 3", ct = it && tt && tt > 0 ? Math.max(120, Math.round(tt / it * 140)) : 160;
|
|
8828
8828
|
return /* @__PURE__ */ c.jsxs(
|
|
8829
8829
|
"div",
|
|
@@ -8847,10 +8847,10 @@ const Ow = q.memo(function({
|
|
|
8847
8847
|
] })
|
|
8848
8848
|
]
|
|
8849
8849
|
},
|
|
8850
|
-
|
|
8850
|
+
Ce
|
|
8851
8851
|
);
|
|
8852
8852
|
}) }),
|
|
8853
|
-
|
|
8853
|
+
Se
|
|
8854
8854
|
] });
|
|
8855
8855
|
}, Ie = Qt(() => Hw(t), [t]);
|
|
8856
8856
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -9467,14 +9467,14 @@ function ba(e) {
|
|
|
9467
9467
|
i.displayName = t;
|
|
9468
9468
|
const a = e + "CollectionSlot", l = sr(a), u = q.forwardRef(
|
|
9469
9469
|
(g, p) => {
|
|
9470
|
-
const { scope: x, children: w } = g, y = s(a, x), E =
|
|
9470
|
+
const { scope: x, children: w } = g, y = s(a, x), E = Re(p, y.collectionRef);
|
|
9471
9471
|
return /* @__PURE__ */ c.jsx(l, { ref: E, children: w });
|
|
9472
9472
|
}
|
|
9473
9473
|
);
|
|
9474
9474
|
u.displayName = a;
|
|
9475
9475
|
const d = e + "CollectionItemSlot", h = "data-radix-collection-item", m = sr(d), v = q.forwardRef(
|
|
9476
9476
|
(g, p) => {
|
|
9477
|
-
const { scope: x, children: w, ...y } = g, E = q.useRef(null), S =
|
|
9477
|
+
const { scope: x, children: w, ...y } = g, E = q.useRef(null), S = Re(p, E), T = s(d, x);
|
|
9478
9478
|
return q.useEffect(() => (T.itemMap.set(E, { ref: E, ...y }), () => void T.itemMap.delete(E))), /* @__PURE__ */ c.jsx(m, { [h]: "", ref: S, children: w });
|
|
9479
9479
|
}
|
|
9480
9480
|
);
|
|
@@ -10855,7 +10855,7 @@ var Na = "Popper", [Dd, vr] = Gt(Na), [c0, Ld] = Dd(Na), Fd = (e) => {
|
|
|
10855
10855
|
Fd.displayName = Na;
|
|
10856
10856
|
var Bd = "PopperAnchor", $d = f.forwardRef(
|
|
10857
10857
|
(e, t) => {
|
|
10858
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s = Ld(Bd, n), i = f.useRef(null), a =
|
|
10858
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = Ld(Bd, n), i = f.useRef(null), a = Re(t, i), l = f.useRef(null);
|
|
10859
10859
|
return f.useEffect(() => {
|
|
10860
10860
|
const u = l.current;
|
|
10861
10861
|
l.current = (r == null ? void 0 : r.current) || i.current, u !== l.current && s.onAnchorChange(l.current);
|
|
@@ -10881,7 +10881,7 @@ var Ia = "PopperContent", [l0, u0] = Dd(Ia), Hd = f.forwardRef(
|
|
|
10881
10881
|
updatePositionStrategy: v = "optimized",
|
|
10882
10882
|
onPlaced: b,
|
|
10883
10883
|
...g
|
|
10884
|
-
} = e, p = Ld(Ia, n), [x, w] = f.useState(null), y =
|
|
10884
|
+
} = e, p = Ld(Ia, n), [x, w] = f.useState(null), y = Re(t, (ke) => w(ke)), [E, S] = f.useState(null), T = Md(E), C = (T == null ? void 0 : T.width) ?? 0, N = (T == null ? void 0 : T.height) ?? 0, I = r + (s !== "center" ? "-" + s : ""), k = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, L = Array.isArray(u) ? u : [u], H = L.length > 0, W = {
|
|
10885
10885
|
padding: k,
|
|
10886
10886
|
boundary: L.filter(f0),
|
|
10887
10887
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -10908,8 +10908,8 @@ var Ia = "PopperContent", [l0, u0] = Dd(Ia), Hd = f.forwardRef(
|
|
|
10908
10908
|
r0({
|
|
10909
10909
|
...W,
|
|
10910
10910
|
apply: ({ elements: ke, rects: Oe, availableWidth: Ie, availableHeight: ae }) => {
|
|
10911
|
-
const { width: Ee, height:
|
|
10912
|
-
he.setProperty("--radix-popper-available-width", `${Ie}px`), he.setProperty("--radix-popper-available-height", `${ae}px`), he.setProperty("--radix-popper-anchor-width", `${Ee}px`), he.setProperty("--radix-popper-anchor-height", `${
|
|
10911
|
+
const { width: Ee, height: Se } = Oe.reference, he = ke.floating.style;
|
|
10912
|
+
he.setProperty("--radix-popper-available-width", `${Ie}px`), he.setProperty("--radix-popper-available-height", `${ae}px`), he.setProperty("--radix-popper-anchor-width", `${Ee}px`), he.setProperty("--radix-popper-anchor-height", `${Se}px`);
|
|
10913
10913
|
}
|
|
10914
10914
|
}),
|
|
10915
10915
|
E && s0({ element: E, padding: a }),
|
|
@@ -11065,7 +11065,7 @@ var b0 = f.forwardRef((e, t) => {
|
|
|
11065
11065
|
onEntryFocus: u,
|
|
11066
11066
|
preventScrollOnEntryFocus: d = !1,
|
|
11067
11067
|
...h
|
|
11068
|
-
} = e, m = f.useRef(null), v =
|
|
11068
|
+
} = e, m = f.useRef(null), v = Re(t, m), b = bs(s), [g, p] = bn({
|
|
11069
11069
|
prop: i,
|
|
11070
11070
|
defaultProp: a ?? null,
|
|
11071
11071
|
onChange: l,
|
|
@@ -11273,7 +11273,7 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11273
11273
|
}
|
|
11274
11274
|
), L0 = f.forwardRef(
|
|
11275
11275
|
(e, t) => {
|
|
11276
|
-
const n = Wn(Mt, e.__scopeMenu), r = f.useRef(null), o =
|
|
11276
|
+
const n = Wn(Mt, e.__scopeMenu), r = f.useRef(null), o = Re(t, r);
|
|
11277
11277
|
return f.useEffect(() => {
|
|
11278
11278
|
const s = r.current;
|
|
11279
11279
|
if (s) return ma(s);
|
|
@@ -11324,7 +11324,7 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11324
11324
|
onDismiss: v,
|
|
11325
11325
|
disableOutsideScroll: b,
|
|
11326
11326
|
...g
|
|
11327
|
-
} = e, p = Wn(Mt, n), x = to(Mt, n), w = Cs(n), y = Qd(n), E = k0(n), [S, T] = f.useState(null), C = f.useRef(null), N =
|
|
11327
|
+
} = e, p = Wn(Mt, n), x = to(Mt, n), w = Cs(n), y = Qd(n), E = k0(n), [S, T] = f.useState(null), C = f.useRef(null), N = Re(t, C, p.onContentChange), I = f.useRef(0), k = f.useRef(""), L = f.useRef(0), H = f.useRef(null), W = f.useRef("right"), P = f.useRef(0), Y = b ? ps : f.Fragment, _ = b ? { as: B0, allowPinchZoom: !0 } : void 0, J = (M) => {
|
|
11328
11328
|
var Z, j;
|
|
11329
11329
|
const V = k.current + M, G = E().filter((K) => !K.disabled), ne = document.activeElement, F = (Z = G.find((K) => K.ref.current === ne)) == null ? void 0 : Z.textValue, Q = G.map((K) => K.textValue), ue = J0(Q, V, F), pe = (j = G.find((K) => K.textValue === ue)) == null ? void 0 : j.ref.current;
|
|
11330
11330
|
(function K(U) {
|
|
@@ -11461,7 +11461,7 @@ var H0 = "MenuLabel", of = f.forwardRef(
|
|
|
11461
11461
|
of.displayName = H0;
|
|
11462
11462
|
var Ko = "MenuItem", gl = "menu.itemSelect", Ts = f.forwardRef(
|
|
11463
11463
|
(e, t) => {
|
|
11464
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = f.useRef(null), i = to(Ko, e.__scopeMenu), a = Ma(Ko, e.__scopeMenu), l =
|
|
11464
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = f.useRef(null), i = to(Ko, e.__scopeMenu), a = Ma(Ko, e.__scopeMenu), l = Re(t, s), u = f.useRef(!1), d = () => {
|
|
11465
11465
|
const h = s.current;
|
|
11466
11466
|
if (!n && h) {
|
|
11467
11467
|
const m = new CustomEvent(gl, { bubbles: !0, cancelable: !0 });
|
|
@@ -11494,7 +11494,7 @@ var Ko = "MenuItem", gl = "menu.itemSelect", Ts = f.forwardRef(
|
|
|
11494
11494
|
Ts.displayName = Ko;
|
|
11495
11495
|
var sf = f.forwardRef(
|
|
11496
11496
|
(e, t) => {
|
|
11497
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ma(Ko, n), a = Qd(n), l = f.useRef(null), u =
|
|
11497
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ma(Ko, n), a = Qd(n), l = f.useRef(null), u = Re(t, l), [d, h] = f.useState(!1), [m, v] = f.useState("");
|
|
11498
11498
|
return f.useEffect(() => {
|
|
11499
11499
|
const b = l.current;
|
|
11500
11500
|
b && v((b.textContent ?? "").trim());
|
|
@@ -11704,7 +11704,7 @@ var Y0 = "MenuSub", [gR, gf] = Un(Y0), Tr = "MenuSubTrigger", vf = f.forwardRef(
|
|
|
11704
11704
|
vf.displayName = Tr;
|
|
11705
11705
|
var xf = "MenuSubContent", bf = f.forwardRef(
|
|
11706
11706
|
(e, t) => {
|
|
11707
|
-
const n = tf(Mt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Wn(Mt, e.__scopeMenu), i = to(Mt, e.__scopeMenu), a = gf(xf, e.__scopeMenu), l = f.useRef(null), u =
|
|
11707
|
+
const n = tf(Mt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Wn(Mt, e.__scopeMenu), i = to(Mt, e.__scopeMenu), a = gf(xf, e.__scopeMenu), l = f.useRef(null), u = Re(t, l);
|
|
11708
11708
|
return /* @__PURE__ */ c.jsx(Br.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(Rt, { present: r || s.open, children: /* @__PURE__ */ c.jsx(Br.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(
|
|
11709
11709
|
Da,
|
|
11710
11710
|
{
|
|
@@ -12102,7 +12102,7 @@ function ko({
|
|
|
12102
12102
|
loadOlderMessages: H,
|
|
12103
12103
|
isPostStreamFetch: W,
|
|
12104
12104
|
api: P
|
|
12105
|
-
} = qi(), [Y, _] = fe(null), [J, O] = fe(""), [M, V] = fe(null), [G, ne] = fe([]), [F, Q] = fe(!1), [ue, pe] = fe(null), [Z, j] = fe(null), [K, U] = fe(!1), [ce, ie] = fe(null), [ke, Oe] = fe([]), [Ie, ae] = fe(null), [Ee,
|
|
12105
|
+
} = qi(), [Y, _] = fe(null), [J, O] = fe(""), [M, V] = fe(null), [G, ne] = fe([]), [F, Q] = fe(!1), [ue, pe] = fe(null), [Z, j] = fe(null), [K, U] = fe(!1), [ce, ie] = fe(null), [ke, Oe] = fe([]), [Ie, ae] = fe(null), [Ee, Se] = fe(null), [he, Ce] = fe(!1), $e = We(null), it = We(null), tt = We(null), [wt, ct] = fe("desktop");
|
|
12106
12106
|
Xe(() => {
|
|
12107
12107
|
const re = () => {
|
|
12108
12108
|
const le = window.innerWidth;
|
|
@@ -12112,7 +12112,7 @@ function ko({
|
|
|
12112
12112
|
}, []), Xe(() => {
|
|
12113
12113
|
let re = !1;
|
|
12114
12114
|
if (!b) {
|
|
12115
|
-
Oe([]), ae(null),
|
|
12115
|
+
Oe([]), ae(null), Se(null), tt.current = null;
|
|
12116
12116
|
return;
|
|
12117
12117
|
}
|
|
12118
12118
|
const le = {
|
|
@@ -12132,14 +12132,14 @@ function ko({
|
|
|
12132
12132
|
const Xt = Nn.find((Kn) => Kn.checkpointId === Gn);
|
|
12133
12133
|
no = (Xt == null ? void 0 : Xt.checkpointNs) ?? null;
|
|
12134
12134
|
}
|
|
12135
|
-
ae(Gn),
|
|
12135
|
+
ae(Gn), Se(no), tt.current = le;
|
|
12136
12136
|
}).catch((qe) => {
|
|
12137
12137
|
console.error("ChatInterface - listCheckpoints error:", qe), re || (Oe([]), tt.current = null);
|
|
12138
12138
|
}), () => {
|
|
12139
12139
|
re = !0;
|
|
12140
12140
|
};
|
|
12141
12141
|
}, [b, S, T, Ie, C]), Xe(() => {
|
|
12142
|
-
S && (ae(S),
|
|
12142
|
+
S && (ae(S), Se(T ?? null));
|
|
12143
12143
|
}, [S, T]);
|
|
12144
12144
|
const ln = ze(async () => {
|
|
12145
12145
|
if (!(!k || L))
|
|
@@ -12243,16 +12243,16 @@ function ko({
|
|
|
12243
12243
|
return Number.isNaN(le) ? re : new Date(le).toLocaleString();
|
|
12244
12244
|
}, gt = async (re) => {
|
|
12245
12245
|
if (b) {
|
|
12246
|
-
|
|
12246
|
+
Ce(!0);
|
|
12247
12247
|
try {
|
|
12248
12248
|
if (!re) {
|
|
12249
|
-
await I(), ae(null),
|
|
12249
|
+
await I(), ae(null), Se(null);
|
|
12250
12250
|
return;
|
|
12251
12251
|
}
|
|
12252
12252
|
const le = ke.find((qe) => qe.checkpointId === re), Pe = (le == null ? void 0 : le.checkpointNs) ?? null;
|
|
12253
|
-
await N(re, Pe), ae(re),
|
|
12253
|
+
await N(re, Pe), ae(re), Se(Pe);
|
|
12254
12254
|
} finally {
|
|
12255
|
-
|
|
12255
|
+
Ce(!1);
|
|
12256
12256
|
}
|
|
12257
12257
|
}
|
|
12258
12258
|
}, un = `flex flex-1 w-full flex-col min-h-0 min-w-0 max-h-full overflow-hidden bg-transparent ${e} ${d.container || ""}`, qt = `flex-1 min-h-0 min-w-0 max-h-full w-full overflow-y-auto overflow-x-auto overscroll-contain break-words break-anywhere p-4 bg-transparent ${d.messagesArea || ""}`, pn = `flex-shrink-0 w-full border-t p-4 bg-transparent ${d.inputArea || ""}`;
|
|
@@ -12467,7 +12467,7 @@ var $a = "ScrollArea", [Gf, xR] = Gt($a), [WS, Lt] = Gf($a), Kf = f.forwardRef(
|
|
|
12467
12467
|
dir: o,
|
|
12468
12468
|
scrollHideDelay: s = 600,
|
|
12469
12469
|
...i
|
|
12470
|
-
} = e, [a, l] = f.useState(null), [u, d] = f.useState(null), [h, m] = f.useState(null), [v, b] = f.useState(null), [g, p] = f.useState(null), [x, w] = f.useState(0), [y, E] = f.useState(0), [S, T] = f.useState(!1), [C, N] = f.useState(!1), I =
|
|
12470
|
+
} = e, [a, l] = f.useState(null), [u, d] = f.useState(null), [h, m] = f.useState(null), [v, b] = f.useState(null), [g, p] = f.useState(null), [x, w] = f.useState(0), [y, E] = f.useState(0), [S, T] = f.useState(!1), [C, N] = f.useState(!1), I = Re(t, (L) => l(L)), k = bs(o);
|
|
12471
12471
|
return /* @__PURE__ */ c.jsx(
|
|
12472
12472
|
WS,
|
|
12473
12473
|
{
|
|
@@ -12512,7 +12512,7 @@ var $a = "ScrollArea", [Gf, xR] = Gt($a), [WS, Lt] = Gf($a), Kf = f.forwardRef(
|
|
|
12512
12512
|
Kf.displayName = $a;
|
|
12513
12513
|
var Yf = "ScrollAreaViewport", qf = f.forwardRef(
|
|
12514
12514
|
(e, t) => {
|
|
12515
|
-
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, i = Lt(Yf, n), a = f.useRef(null), l =
|
|
12515
|
+
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, i = Lt(Yf, n), a = f.useRef(null), l = Re(t, a, i.onViewportChange);
|
|
12516
12516
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
12517
12517
|
/* @__PURE__ */ c.jsx(
|
|
12518
12518
|
"style",
|
|
@@ -12698,7 +12698,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12698
12698
|
}
|
|
12699
12699
|
) : null;
|
|
12700
12700
|
}), KS = f.forwardRef((e, t) => {
|
|
12701
|
-
const { sizes: n, onSizesChange: r, ...o } = e, s = Lt(cn, e.__scopeScrollArea), [i, a] = f.useState(), l = f.useRef(null), u =
|
|
12701
|
+
const { sizes: n, onSizesChange: r, ...o } = e, s = Lt(cn, e.__scopeScrollArea), [i, a] = f.useState(), l = f.useRef(null), u = Re(t, l, s.onScrollbarXChange);
|
|
12702
12702
|
return f.useEffect(() => {
|
|
12703
12703
|
l.current && a(getComputedStyle(l.current));
|
|
12704
12704
|
}, [l]), /* @__PURE__ */ c.jsx(
|
|
@@ -12737,7 +12737,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12737
12737
|
}
|
|
12738
12738
|
);
|
|
12739
12739
|
}), YS = f.forwardRef((e, t) => {
|
|
12740
|
-
const { sizes: n, onSizesChange: r, ...o } = e, s = Lt(cn, e.__scopeScrollArea), [i, a] = f.useState(), l = f.useRef(null), u =
|
|
12740
|
+
const { sizes: n, onSizesChange: r, ...o } = e, s = Lt(cn, e.__scopeScrollArea), [i, a] = f.useState(), l = f.useRef(null), u = Re(t, l, s.onScrollbarYChange);
|
|
12741
12741
|
return f.useEffect(() => {
|
|
12742
12742
|
l.current && a(getComputedStyle(l.current));
|
|
12743
12743
|
}, [l]), /* @__PURE__ */ c.jsx(
|
|
@@ -12789,7 +12789,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12789
12789
|
onWheelScroll: d,
|
|
12790
12790
|
onResize: h,
|
|
12791
12791
|
...m
|
|
12792
|
-
} = e, v = Lt(cn, n), [b, g] = f.useState(null), p =
|
|
12792
|
+
} = e, v = Lt(cn, n), [b, g] = f.useState(null), p = Re(t, (I) => g(I)), x = f.useRef(null), w = f.useRef(""), y = v.viewport, E = r.content - r.viewport, S = ut(d), T = ut(l), C = Ns(h, 10);
|
|
12793
12793
|
function N(I) {
|
|
12794
12794
|
if (x.current) {
|
|
12795
12795
|
const k = I.clientX - x.current.left, L = I.clientY - x.current.top;
|
|
@@ -12837,7 +12837,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12837
12837
|
}
|
|
12838
12838
|
), XS = f.forwardRef(
|
|
12839
12839
|
(e, t) => {
|
|
12840
|
-
const { __scopeScrollArea: n, style: r, ...o } = e, s = Lt(qo, n), i = Jf(qo, n), { onThumbPositionChange: a } = i, l =
|
|
12840
|
+
const { __scopeScrollArea: n, style: r, ...o } = e, s = Lt(qo, n), i = Jf(qo, n), { onThumbPositionChange: a } = i, l = Re(
|
|
12841
12841
|
t,
|
|
12842
12842
|
(h) => i.onThumbChange(h)
|
|
12843
12843
|
), u = f.useRef(void 0), d = Ns(() => {
|
|
@@ -13477,7 +13477,7 @@ var zr = "Tooltip", [xC, ks] = Is(zr), Sh = (e) => {
|
|
|
13477
13477
|
Sh.displayName = zr;
|
|
13478
13478
|
var Li = "TooltipTrigger", Ch = f.forwardRef(
|
|
13479
13479
|
(e, t) => {
|
|
13480
|
-
const { __scopeTooltip: n, ...r } = e, o = ks(Li, n), s = Ga(Li, n), i = js(n), a = f.useRef(null), l =
|
|
13480
|
+
const { __scopeTooltip: n, ...r } = e, o = ks(Li, n), s = Ga(Li, n), i = js(n), a = f.useRef(null), l = Re(t, a, o.onTriggerChange), u = f.useRef(!1), d = f.useRef(!1), h = f.useCallback(() => u.current = !1, []);
|
|
13481
13481
|
return f.useEffect(() => () => document.removeEventListener("pointerup", h), [h]), /* @__PURE__ */ c.jsx(ka, { asChild: !0, ...i, children: /* @__PURE__ */ c.jsx(
|
|
13482
13482
|
ve.button,
|
|
13483
13483
|
{
|
|
@@ -13512,7 +13512,7 @@ var bC = "TooltipPortal", [TR, wC] = Is(bC, {
|
|
|
13512
13512
|
return /* @__PURE__ */ c.jsx(Rt, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ c.jsx(Rh, { side: o, ...s, ref: t }) : /* @__PURE__ */ c.jsx(yC, { side: o, ...s, ref: t }) });
|
|
13513
13513
|
}
|
|
13514
13514
|
), yC = f.forwardRef((e, t) => {
|
|
13515
|
-
const n = ks(lr, e.__scopeTooltip), r = Ga(lr, e.__scopeTooltip), o = f.useRef(null), s =
|
|
13515
|
+
const n = ks(lr, e.__scopeTooltip), r = Ga(lr, e.__scopeTooltip), o = f.useRef(null), s = Re(t, o), [i, a] = f.useState(null), { trigger: l, onClose: u } = n, d = o.current, { onPointerInTransitChange: h } = r, m = f.useCallback(() => {
|
|
13516
13516
|
a(null), h(!1);
|
|
13517
13517
|
}, [h]), v = f.useCallback(
|
|
13518
13518
|
(b, g) => {
|
|
@@ -14285,7 +14285,7 @@ var Ps = "Switch", [oT, ER] = Gt(Ps), [sT, iT] = oT(Ps), Vh = f.forwardRef(
|
|
|
14285
14285
|
onCheckedChange: u,
|
|
14286
14286
|
form: d,
|
|
14287
14287
|
...h
|
|
14288
|
-
} = e, [m, v] = f.useState(null), b =
|
|
14288
|
+
} = e, [m, v] = f.useState(null), b = Re(t, (y) => v(y)), g = f.useRef(!1), p = m ? d || !!m.closest("form") : !0, [x, w] = bn({
|
|
14289
14289
|
prop: o,
|
|
14290
14290
|
defaultProp: s ?? !1,
|
|
14291
14291
|
onChange: u,
|
|
@@ -14351,7 +14351,7 @@ var aT = "SwitchBubbleInput", Yh = f.forwardRef(
|
|
|
14351
14351
|
bubbles: r = !0,
|
|
14352
14352
|
...o
|
|
14353
14353
|
}, s) => {
|
|
14354
|
-
const i = f.useRef(null), a =
|
|
14354
|
+
const i = f.useRef(null), a = Re(i, s), l = Wh(n), u = Md(t);
|
|
14355
14355
|
return f.useEffect(() => {
|
|
14356
14356
|
const d = i.current;
|
|
14357
14357
|
if (!d) return;
|
|
@@ -14501,7 +14501,7 @@ var lT = [" ", "Enter", "ArrowUp", "ArrowDown"], uT = [" ", "Enter"], Bn = "Sele
|
|
|
14501
14501
|
Jh.displayName = Bn;
|
|
14502
14502
|
var Zh = "SelectTrigger", Qh = f.forwardRef(
|
|
14503
14503
|
(e, t) => {
|
|
14504
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = Ms(n), i = Rn(Zh, n), a = i.disabled || r, l =
|
|
14504
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = Ms(n), i = Rn(Zh, n), a = i.disabled || r, l = Re(t, i.onTriggerChange), u = Os(n), d = f.useRef("touch"), [h, m, v] = Cp((g) => {
|
|
14505
14505
|
const p = u().filter((y) => !y.disabled), x = p.find((y) => y.value === i.value), w = Tp(p, g, x);
|
|
14506
14506
|
w !== void 0 && i.onValueChange(w.value);
|
|
14507
14507
|
}), b = (g) => {
|
|
@@ -14545,7 +14545,7 @@ var Zh = "SelectTrigger", Qh = f.forwardRef(
|
|
|
14545
14545
|
Qh.displayName = Zh;
|
|
14546
14546
|
var ep = "SelectValue", tp = f.forwardRef(
|
|
14547
14547
|
(e, t) => {
|
|
14548
|
-
const { __scopeSelect: n, className: r, style: o, children: s, placeholder: i = "", ...a } = e, l = Rn(ep, n), { onValueNodeHasChildrenChange: u } = l, d = s !== void 0, h =
|
|
14548
|
+
const { __scopeSelect: n, className: r, style: o, children: s, placeholder: i = "", ...a } = e, l = Rn(ep, n), { onValueNodeHasChildrenChange: u } = l, d = s !== void 0, h = Re(t, l.onValueNodeChange);
|
|
14549
14549
|
return at(() => {
|
|
14550
14550
|
u(d);
|
|
14551
14551
|
}, [u, d]), /* @__PURE__ */ c.jsx(
|
|
@@ -14607,7 +14607,7 @@ var Bt = 10, [sp, En] = xr($n), vT = "SelectContentImpl", xT = sr("SelectContent
|
|
|
14607
14607
|
avoidCollisions: p,
|
|
14608
14608
|
//
|
|
14609
14609
|
...x
|
|
14610
|
-
} = e, w = Rn($n, n), [y, E] = f.useState(null), [S, T] = f.useState(null), C =
|
|
14610
|
+
} = e, w = Rn($n, n), [y, E] = f.useState(null), [S, T] = f.useState(null), C = Re(t, (Z) => E(Z)), [N, I] = f.useState(null), [k, L] = f.useState(
|
|
14611
14611
|
null
|
|
14612
14612
|
), H = Os(n), [W, P] = f.useState(!1), Y = f.useRef(!1);
|
|
14613
14613
|
f.useEffect(() => {
|
|
@@ -14757,7 +14757,7 @@ var Bt = 10, [sp, En] = xr($n), vT = "SelectContentImpl", xT = sr("SelectContent
|
|
|
14757
14757
|
);
|
|
14758
14758
|
ip.displayName = vT;
|
|
14759
14759
|
var bT = "SelectItemAlignedPosition", ap = f.forwardRef((e, t) => {
|
|
14760
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Rn($n, n), i = En($n, n), [a, l] = f.useState(null), [u, d] = f.useState(null), h =
|
|
14760
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Rn($n, n), i = En($n, n), [a, l] = f.useState(null), [u, d] = f.useState(null), h = Re(t, (C) => d(C)), m = Os(n), v = f.useRef(!1), b = f.useRef(!0), { viewport: g, selectedItem: p, selectedItemText: x, focusSelectedItem: w } = i, y = f.useCallback(() => {
|
|
14761
14761
|
if (s.trigger && s.valueNode && a && u && g && p && x) {
|
|
14762
14762
|
const C = s.trigger.getBoundingClientRect(), N = u.getBoundingClientRect(), I = s.valueNode.getBoundingClientRect(), k = x.getBoundingClientRect();
|
|
14763
14763
|
if (s.dir !== "rtl") {
|
|
@@ -14892,7 +14892,7 @@ var wT = "SelectPopperPosition", Fi = f.forwardRef((e, t) => {
|
|
|
14892
14892
|
Fi.displayName = wT;
|
|
14893
14893
|
var [yT, Ka] = xr($n, {}), Bi = "SelectViewport", cp = f.forwardRef(
|
|
14894
14894
|
(e, t) => {
|
|
14895
|
-
const { __scopeSelect: n, nonce: r, ...o } = e, s = En(Bi, n), i = Ka(Bi, n), a =
|
|
14895
|
+
const { __scopeSelect: n, nonce: r, ...o } = e, s = En(Bi, n), i = Ka(Bi, n), a = Re(t, s.onViewportChange), l = f.useRef(0);
|
|
14896
14896
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
14897
14897
|
/* @__PURE__ */ c.jsx(
|
|
14898
14898
|
"style",
|
|
@@ -14965,7 +14965,7 @@ var Jo = "SelectItem", [RT, fp] = xr(Jo), hp = f.forwardRef(
|
|
|
14965
14965
|
disabled: o = !1,
|
|
14966
14966
|
textValue: s,
|
|
14967
14967
|
...i
|
|
14968
|
-
} = e, a = Rn(Jo, n), l = En(Jo, n), u = a.value === r, [d, h] = f.useState(s ?? ""), [m, v] = f.useState(!1), b =
|
|
14968
|
+
} = e, a = Rn(Jo, n), l = En(Jo, n), u = a.value === r, [d, h] = f.useState(s ?? ""), [m, v] = f.useState(!1), b = Re(
|
|
14969
14969
|
t,
|
|
14970
14970
|
(w) => {
|
|
14971
14971
|
var y;
|
|
@@ -15043,7 +15043,7 @@ var Jo = "SelectItem", [RT, fp] = xr(Jo), hp = f.forwardRef(
|
|
|
15043
15043
|
hp.displayName = Jo;
|
|
15044
15044
|
var Rr = "SelectItemText", pp = f.forwardRef(
|
|
15045
15045
|
(e, t) => {
|
|
15046
|
-
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = Rn(Rr, n), a = En(Rr, n), l = fp(Rr, n), u = pT(Rr, n), [d, h] = f.useState(null), m =
|
|
15046
|
+
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = Rn(Rr, n), a = En(Rr, n), l = fp(Rr, n), u = pT(Rr, n), [d, h] = f.useState(null), m = Re(
|
|
15047
15047
|
t,
|
|
15048
15048
|
(x) => h(x),
|
|
15049
15049
|
l.onItemTextChange,
|
|
@@ -15070,7 +15070,7 @@ var mp = "SelectItemIndicator", gp = f.forwardRef(
|
|
|
15070
15070
|
);
|
|
15071
15071
|
gp.displayName = mp;
|
|
15072
15072
|
var $i = "SelectScrollUpButton", vp = f.forwardRef((e, t) => {
|
|
15073
|
-
const n = En($i, e.__scopeSelect), r = Ka($i, e.__scopeSelect), [o, s] = f.useState(!1), i =
|
|
15073
|
+
const n = En($i, e.__scopeSelect), r = Ka($i, e.__scopeSelect), [o, s] = f.useState(!1), i = Re(t, r.onScrollButtonChange);
|
|
15074
15074
|
return at(() => {
|
|
15075
15075
|
if (n.viewport && n.isPositioned) {
|
|
15076
15076
|
let a = function() {
|
|
@@ -15094,7 +15094,7 @@ var $i = "SelectScrollUpButton", vp = f.forwardRef((e, t) => {
|
|
|
15094
15094
|
});
|
|
15095
15095
|
vp.displayName = $i;
|
|
15096
15096
|
var Hi = "SelectScrollDownButton", xp = f.forwardRef((e, t) => {
|
|
15097
|
-
const n = En(Hi, e.__scopeSelect), r = Ka(Hi, e.__scopeSelect), [o, s] = f.useState(!1), i =
|
|
15097
|
+
const n = En(Hi, e.__scopeSelect), r = Ka(Hi, e.__scopeSelect), [o, s] = f.useState(!1), i = Re(t, r.onScrollButtonChange);
|
|
15098
15098
|
return at(() => {
|
|
15099
15099
|
if (n.viewport && n.isPositioned) {
|
|
15100
15100
|
let a = function() {
|
|
@@ -15160,7 +15160,7 @@ var zi = "SelectArrow", NT = f.forwardRef(
|
|
|
15160
15160
|
NT.displayName = zi;
|
|
15161
15161
|
var IT = "SelectBubbleInput", yp = f.forwardRef(
|
|
15162
15162
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
15163
|
-
const o = f.useRef(null), s =
|
|
15163
|
+
const o = f.useRef(null), s = Re(r, o), i = Wh(t);
|
|
15164
15164
|
return f.useEffect(() => {
|
|
15165
15165
|
const a = o.current;
|
|
15166
15166
|
if (!a) return;
|