teodor-new-chat-ui 3.0.140 → 3.0.141
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 +799 -807
- package/dist/index.umd.js +23 -23
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2367,22 +2367,22 @@ Qe.getAdapter = Kl.getAdapter;
|
|
|
2367
2367
|
Qe.HttpStatusCode = mi;
|
|
2368
2368
|
Qe.default = Qe;
|
|
2369
2369
|
const {
|
|
2370
|
-
Axios:
|
|
2371
|
-
AxiosError:
|
|
2372
|
-
CanceledError:
|
|
2373
|
-
isCancel:
|
|
2374
|
-
CancelToken:
|
|
2375
|
-
VERSION:
|
|
2376
|
-
all:
|
|
2377
|
-
Cancel:
|
|
2378
|
-
isAxiosError:
|
|
2379
|
-
spread:
|
|
2380
|
-
toFormData:
|
|
2381
|
-
AxiosHeaders:
|
|
2382
|
-
HttpStatusCode:
|
|
2383
|
-
formToJSON:
|
|
2384
|
-
getAdapter:
|
|
2385
|
-
mergeConfig:
|
|
2370
|
+
Axios: XT,
|
|
2371
|
+
AxiosError: JT,
|
|
2372
|
+
CanceledError: ZT,
|
|
2373
|
+
isCancel: QT,
|
|
2374
|
+
CancelToken: eR,
|
|
2375
|
+
VERSION: tR,
|
|
2376
|
+
all: nR,
|
|
2377
|
+
Cancel: rR,
|
|
2378
|
+
isAxiosError: oR,
|
|
2379
|
+
spread: sR,
|
|
2380
|
+
toFormData: iR,
|
|
2381
|
+
AxiosHeaders: aR,
|
|
2382
|
+
HttpStatusCode: cR,
|
|
2383
|
+
formToJSON: lR,
|
|
2384
|
+
getAdapter: uR,
|
|
2385
|
+
mergeConfig: dR
|
|
2386
2386
|
} = Qe, gc = typeof window < "u" ? window.__API_BASE_URL__ : void 0, gi = gc ? gc.replace(/\/+$/, "") : void 0;
|
|
2387
2387
|
!gi && typeof window < "u" && console.warn("API base URL is not configured. The API client will need to be configured via apiConfig prop or window.__API_BASE_URL__.");
|
|
2388
2388
|
let Do = null;
|
|
@@ -2729,11 +2729,6 @@ function tv(e, t) {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
case "user_message": {
|
|
2731
2731
|
const r = t.payload.message;
|
|
2732
|
-
if (e.assemblingId) {
|
|
2733
|
-
const o = e.messages.findIndex((s) => s.id === e.assemblingId && s.role === "assistant");
|
|
2734
|
-
if (o >= 0)
|
|
2735
|
-
return { ...e, messages: rv(e.messages, o, r) };
|
|
2736
|
-
}
|
|
2737
2732
|
return { ...e, messages: [...e.messages, r] };
|
|
2738
2733
|
}
|
|
2739
2734
|
case "event":
|
|
@@ -2771,7 +2766,7 @@ function nv(e = []) {
|
|
|
2771
2766
|
function xc(e, t) {
|
|
2772
2767
|
var n;
|
|
2773
2768
|
if (t.type === "message_start" && t.role === "assistant") {
|
|
2774
|
-
const r = t.id, o =
|
|
2769
|
+
const r = t.id, o = av(t.model), s = {
|
|
2775
2770
|
id: r,
|
|
2776
2771
|
role: "assistant",
|
|
2777
2772
|
name: o || void 0,
|
|
@@ -2783,7 +2778,7 @@ function xc(e, t) {
|
|
|
2783
2778
|
}
|
|
2784
2779
|
if (t.type === "token") {
|
|
2785
2780
|
const r = e.assemblingId ?? $s(e.messages);
|
|
2786
|
-
return r ? { ...e, messages:
|
|
2781
|
+
return r ? { ...e, messages: ov(e.messages, r, t.content) } : e;
|
|
2787
2782
|
}
|
|
2788
2783
|
if (t.type === "message_delta") {
|
|
2789
2784
|
const r = e.assemblingId ?? $s(e.messages);
|
|
@@ -2821,7 +2816,7 @@ function xc(e, t) {
|
|
|
2821
2816
|
return { ...e, messages: a };
|
|
2822
2817
|
}
|
|
2823
2818
|
if (t.type === "checkpoint") {
|
|
2824
|
-
const r = t.checkpointNs ?? e.lastCheckpointNs ?? null, o =
|
|
2819
|
+
const r = t.checkpointNs ?? e.lastCheckpointNs ?? null, o = iv(e.messages, t.checkpointId, r);
|
|
2825
2820
|
return { ...e, lastCheckpointId: t.checkpointId, lastCheckpointNs: r, messages: o };
|
|
2826
2821
|
}
|
|
2827
2822
|
if (t.type === "branch") {
|
|
@@ -2852,9 +2847,6 @@ function Bs(e) {
|
|
|
2852
2847
|
});
|
|
2853
2848
|
}
|
|
2854
2849
|
function rv(e, t, n) {
|
|
2855
|
-
return t <= 0 ? [n, ...e] : t >= e.length ? [...e, n] : [...e.slice(0, t), n, ...e.slice(t)];
|
|
2856
|
-
}
|
|
2857
|
-
function ov(e, t, n) {
|
|
2858
2850
|
return t < 0 || t >= e.length ? e : [...e.slice(0, t), n, ...e.slice(t + 1)];
|
|
2859
2851
|
}
|
|
2860
2852
|
function $s(e) {
|
|
@@ -2862,7 +2854,7 @@ function $s(e) {
|
|
|
2862
2854
|
if (e[t].role === "assistant") return e[t].id;
|
|
2863
2855
|
return null;
|
|
2864
2856
|
}
|
|
2865
|
-
function
|
|
2857
|
+
function ov(e, t, n) {
|
|
2866
2858
|
return e.map((r) => {
|
|
2867
2859
|
if (r.id !== t) return r;
|
|
2868
2860
|
const o = r.content.slice(), s = o[o.length - 1];
|
|
@@ -2870,9 +2862,9 @@ function sv(e, t, n) {
|
|
|
2870
2862
|
});
|
|
2871
2863
|
}
|
|
2872
2864
|
function bc(e, t, n) {
|
|
2873
|
-
return e.map((r) => r.id === t ? { ...r, content:
|
|
2865
|
+
return e.map((r) => r.id === t ? { ...r, content: sv(r.content, n) } : r);
|
|
2874
2866
|
}
|
|
2875
|
-
function
|
|
2867
|
+
function sv(e, t) {
|
|
2876
2868
|
const n = e.slice();
|
|
2877
2869
|
for (const r of t)
|
|
2878
2870
|
if (r.type === "text") {
|
|
@@ -2882,20 +2874,20 @@ function iv(e, t) {
|
|
|
2882
2874
|
n.push(r);
|
|
2883
2875
|
return n;
|
|
2884
2876
|
}
|
|
2885
|
-
function
|
|
2877
|
+
function iv(e, t, n) {
|
|
2886
2878
|
for (let r = e.length - 1; r >= 0; r--)
|
|
2887
2879
|
if (e[r].role === "assistant") {
|
|
2888
2880
|
const s = { ...e[r], checkpointId: t, checkpointNs: n ?? void 0 };
|
|
2889
|
-
return
|
|
2881
|
+
return rv(e, r, s);
|
|
2890
2882
|
}
|
|
2891
2883
|
return e;
|
|
2892
2884
|
}
|
|
2893
|
-
function
|
|
2885
|
+
function av(e) {
|
|
2894
2886
|
if (!e) return null;
|
|
2895
2887
|
const t = e.split("/");
|
|
2896
2888
|
return t[t.length - 1] || null;
|
|
2897
2889
|
}
|
|
2898
|
-
function
|
|
2890
|
+
function cv(e, t) {
|
|
2899
2891
|
const n = e == null ? void 0 : e.checkpoints, r = Array.isArray(n) ? n.slice() : n ? Object.values(n) : [], o = (i) => i && typeof i == "object" && typeof i.checkpointId == "string" && typeof i.createdAt == "string", s = r.filter(o).map((i) => ({
|
|
2900
2892
|
checkpointId: i.checkpointId,
|
|
2901
2893
|
checkpointNs: i.checkpointNs ?? "",
|
|
@@ -2914,7 +2906,7 @@ function lv(e, t) {
|
|
|
2914
2906
|
checkpoints: s
|
|
2915
2907
|
};
|
|
2916
2908
|
}
|
|
2917
|
-
async function
|
|
2909
|
+
async function lv(e) {
|
|
2918
2910
|
return await new Promise((t, n) => {
|
|
2919
2911
|
const r = new FileReader();
|
|
2920
2912
|
r.onload = () => {
|
|
@@ -2930,11 +2922,11 @@ async function uv(e) {
|
|
|
2930
2922
|
}, r.onerror = (o) => n(o), r.readAsArrayBuffer(e);
|
|
2931
2923
|
});
|
|
2932
2924
|
}
|
|
2933
|
-
async function
|
|
2925
|
+
async function uv(e, t = [], n, r, o, s) {
|
|
2934
2926
|
const i = [], a = [];
|
|
2935
2927
|
for (const l of t)
|
|
2936
2928
|
try {
|
|
2937
|
-
const u = await
|
|
2929
|
+
const u = await lv(l);
|
|
2938
2930
|
a.push({ filename: l.name, data: u, mime_type: l.type || "application/octet-stream" });
|
|
2939
2931
|
} catch {
|
|
2940
2932
|
}
|
|
@@ -3119,7 +3111,7 @@ function wo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
3119
3111
|
[l, L, ee, b]
|
|
3120
3112
|
), Ne = Ue(async (V) => {
|
|
3121
3113
|
const ne = await l.listCheckpoints(V);
|
|
3122
|
-
return
|
|
3114
|
+
return cv(ne, V);
|
|
3123
3115
|
}, [l]), Se = Ue(async (V, ne) => {
|
|
3124
3116
|
await L(async () => {
|
|
3125
3117
|
if (!B) throw new Error("No active thread");
|
|
@@ -3175,7 +3167,7 @@ function wo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
|
|
|
3175
3167
|
await l.updateThread(V, ne), await H();
|
|
3176
3168
|
}, [l, H]), xt = Ue(async (V, ne) => {
|
|
3177
3169
|
var hn;
|
|
3178
|
-
const $e = (ne == null ? void 0 : ne.attachments) || [], { contentParts: qe, filesInfo: Re } = await
|
|
3170
|
+
const $e = (ne == null ? void 0 : ne.attachments) || [], { contentParts: qe, filesInfo: Re } = await uv(
|
|
3179
3171
|
l,
|
|
3180
3172
|
$e,
|
|
3181
3173
|
t == null ? void 0 : t.uploadPath
|
|
@@ -3286,7 +3278,7 @@ function Yi() {
|
|
|
3286
3278
|
function D(...e) {
|
|
3287
3279
|
return pm(hm(e));
|
|
3288
3280
|
}
|
|
3289
|
-
const
|
|
3281
|
+
const dv = Wr(
|
|
3290
3282
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
3291
3283
|
{
|
|
3292
3284
|
variants: {
|
|
@@ -3316,7 +3308,7 @@ const fv = Wr(
|
|
|
3316
3308
|
return /* @__PURE__ */ c.jsx(
|
|
3317
3309
|
i,
|
|
3318
3310
|
{
|
|
3319
|
-
className: D(
|
|
3311
|
+
className: D(dv({ variant: t, size: n, className: e })),
|
|
3320
3312
|
ref: s,
|
|
3321
3313
|
...o
|
|
3322
3314
|
}
|
|
@@ -3338,7 +3330,7 @@ const Zl = f.forwardRef(
|
|
|
3338
3330
|
)
|
|
3339
3331
|
);
|
|
3340
3332
|
Zl.displayName = "Textarea";
|
|
3341
|
-
function
|
|
3333
|
+
function fv({
|
|
3342
3334
|
initialValue: e = "",
|
|
3343
3335
|
editingMessageId: t = null,
|
|
3344
3336
|
placeholder: n = "Type your message...",
|
|
@@ -3431,11 +3423,11 @@ function hv({
|
|
|
3431
3423
|
) })
|
|
3432
3424
|
] }) });
|
|
3433
3425
|
}
|
|
3434
|
-
const
|
|
3426
|
+
const hv = q.memo(fv), os = 0, yn = 1, hr = 2, Ql = 4;
|
|
3435
3427
|
function wc(e) {
|
|
3436
3428
|
return () => e;
|
|
3437
3429
|
}
|
|
3438
|
-
function
|
|
3430
|
+
function pv(e) {
|
|
3439
3431
|
e();
|
|
3440
3432
|
}
|
|
3441
3433
|
function eu(e, t) {
|
|
@@ -3444,15 +3436,15 @@ function eu(e, t) {
|
|
|
3444
3436
|
function yc(e, t) {
|
|
3445
3437
|
return () => e(t);
|
|
3446
3438
|
}
|
|
3447
|
-
function
|
|
3439
|
+
function mv(e, t) {
|
|
3448
3440
|
return (n) => e(t, n);
|
|
3449
3441
|
}
|
|
3450
3442
|
function qi(e) {
|
|
3451
3443
|
return e !== void 0;
|
|
3452
3444
|
}
|
|
3453
|
-
function
|
|
3445
|
+
function gv(...e) {
|
|
3454
3446
|
return () => {
|
|
3455
|
-
e.map(
|
|
3447
|
+
e.map(pv);
|
|
3456
3448
|
};
|
|
3457
3449
|
}
|
|
3458
3450
|
function pr() {
|
|
@@ -3460,7 +3452,7 @@ function pr() {
|
|
|
3460
3452
|
function ss(e, t) {
|
|
3461
3453
|
return t(e), e;
|
|
3462
3454
|
}
|
|
3463
|
-
function
|
|
3455
|
+
function vv(e, t) {
|
|
3464
3456
|
return t(e);
|
|
3465
3457
|
}
|
|
3466
3458
|
function Ve(...e) {
|
|
@@ -3479,7 +3471,7 @@ function Je(e) {
|
|
|
3479
3471
|
return e(Ql);
|
|
3480
3472
|
}
|
|
3481
3473
|
function de(e, t) {
|
|
3482
|
-
return Fe(e,
|
|
3474
|
+
return Fe(e, mv(t, os));
|
|
3483
3475
|
}
|
|
3484
3476
|
function $t(e, t) {
|
|
3485
3477
|
const n = e(yn, (r) => {
|
|
@@ -3518,7 +3510,7 @@ function Jt(e) {
|
|
|
3518
3510
|
};
|
|
3519
3511
|
}
|
|
3520
3512
|
function $(e, ...t) {
|
|
3521
|
-
const n =
|
|
3513
|
+
const n = xv(...t);
|
|
3522
3514
|
return (r, o) => {
|
|
3523
3515
|
switch (r) {
|
|
3524
3516
|
case hr:
|
|
@@ -3564,10 +3556,10 @@ function Te(...e) {
|
|
|
3564
3556
|
n === o ? a() : r = a;
|
|
3565
3557
|
};
|
|
3566
3558
|
}
|
|
3567
|
-
function
|
|
3568
|
-
return (t) => e.reduceRight(
|
|
3559
|
+
function xv(...e) {
|
|
3560
|
+
return (t) => e.reduceRight(vv, t);
|
|
3569
3561
|
}
|
|
3570
|
-
function
|
|
3562
|
+
function bv(e) {
|
|
3571
3563
|
let t, n;
|
|
3572
3564
|
const r = () => t == null ? void 0 : t();
|
|
3573
3565
|
return function(o, s) {
|
|
@@ -3628,12 +3620,12 @@ function Me(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
|
3628
3620
|
return {
|
|
3629
3621
|
constructor: e,
|
|
3630
3622
|
dependencies: t,
|
|
3631
|
-
id:
|
|
3623
|
+
id: wv(),
|
|
3632
3624
|
singleton: n
|
|
3633
3625
|
};
|
|
3634
3626
|
}
|
|
3635
|
-
const
|
|
3636
|
-
function
|
|
3627
|
+
const wv = () => Symbol();
|
|
3628
|
+
function yv(e) {
|
|
3637
3629
|
const t = /* @__PURE__ */ new Map(), n = ({ constructor: r, dependencies: o, id: s, singleton: i }) => {
|
|
3638
3630
|
if (i && t.has(s))
|
|
3639
3631
|
return t.get(s);
|
|
@@ -3671,17 +3663,17 @@ function xi(...e) {
|
|
|
3671
3663
|
case hr:
|
|
3672
3664
|
return;
|
|
3673
3665
|
case yn:
|
|
3674
|
-
return
|
|
3666
|
+
return gv(...e.map((r) => Fe(r, n)));
|
|
3675
3667
|
}
|
|
3676
3668
|
};
|
|
3677
3669
|
}
|
|
3678
3670
|
var St = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(St || {});
|
|
3679
|
-
const
|
|
3671
|
+
const Sv = {
|
|
3680
3672
|
0: "debug",
|
|
3681
3673
|
3: "error",
|
|
3682
3674
|
1: "log",
|
|
3683
3675
|
2: "warn"
|
|
3684
|
-
},
|
|
3676
|
+
}, Cv = () => typeof globalThis > "u" ? window : globalThis, Sn = Me(
|
|
3685
3677
|
() => {
|
|
3686
3678
|
const e = X(
|
|
3687
3679
|
3
|
|
@@ -3690,8 +3682,8 @@ const Cv = {
|
|
|
3690
3682
|
return {
|
|
3691
3683
|
log: X((t, n, r = 1) => {
|
|
3692
3684
|
var o;
|
|
3693
|
-
const s = (o =
|
|
3694
|
-
r >= s && console[
|
|
3685
|
+
const s = (o = Cv().VIRTUOSO_LOG_LEVEL) != null ? o : Je(e);
|
|
3686
|
+
r >= s && console[Sv[r]](
|
|
3695
3687
|
"%creact-virtuoso: %c%s %o",
|
|
3696
3688
|
"color: #0253b3; font-weight: bold",
|
|
3697
3689
|
"color: initial",
|
|
@@ -3723,10 +3715,10 @@ function Ji(e, t, n) {
|
|
|
3723
3715
|
i && t ? (s == null || s.observe(i), r.current = i) : (r.current && (s == null || s.unobserve(r.current)), r.current = null);
|
|
3724
3716
|
}, { callbackRef: o, ref: r };
|
|
3725
3717
|
}
|
|
3726
|
-
function
|
|
3718
|
+
function Tv(e, t, n, r, o, s, i, a, l) {
|
|
3727
3719
|
const u = q.useCallback(
|
|
3728
3720
|
(d) => {
|
|
3729
|
-
const h =
|
|
3721
|
+
const h = Rv(d.children, t, a ? "offsetWidth" : "offsetHeight", o);
|
|
3730
3722
|
let m = d.parentElement;
|
|
3731
3723
|
for (; !m.dataset.virtuosoScroller; )
|
|
3732
3724
|
m = m.parentElement;
|
|
@@ -3746,7 +3738,7 @@ function Rv(e, t, n, r, o, s, i, a, l) {
|
|
|
3746
3738
|
);
|
|
3747
3739
|
return Ji(u, n, l);
|
|
3748
3740
|
}
|
|
3749
|
-
function
|
|
3741
|
+
function Rv(e, t, n, r) {
|
|
3750
3742
|
const o = e.length;
|
|
3751
3743
|
if (o === 0)
|
|
3752
3744
|
return null;
|
|
@@ -3889,7 +3881,7 @@ function is(e, t, n) {
|
|
|
3889
3881
|
if (ze(e))
|
|
3890
3882
|
return [];
|
|
3891
3883
|
const r = zt(e, t)[0];
|
|
3892
|
-
return
|
|
3884
|
+
return Ev(wi(e, r, n));
|
|
3893
3885
|
}
|
|
3894
3886
|
function bi(e, t) {
|
|
3895
3887
|
if (ze(e)) return _r;
|
|
@@ -3981,7 +3973,7 @@ function yi(e) {
|
|
|
3981
3973
|
const { lvl: t, r: n } = e;
|
|
3982
3974
|
return !ze(n) && !ze(n.r) && n.lvl === t && n.r.lvl === t ? rt(n, { l: rt(e, { r: n.l }), lvl: t + 1 }) : e;
|
|
3983
3975
|
}
|
|
3984
|
-
function
|
|
3976
|
+
function Ev(e) {
|
|
3985
3977
|
return ru(e, ({ k: t, v: n }) => ({ index: t, value: n }));
|
|
3986
3978
|
}
|
|
3987
3979
|
function cu(e, t) {
|
|
@@ -4016,7 +4008,7 @@ function Lo(e, t, n, r = 0) {
|
|
|
4016
4008
|
}
|
|
4017
4009
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
4018
4010
|
}
|
|
4019
|
-
function
|
|
4011
|
+
function Nv(e, t, n, r) {
|
|
4020
4012
|
const o = Lo(e, t, r), s = Lo(e, n, r, o);
|
|
4021
4013
|
return e.slice(o, s + 1);
|
|
4022
4014
|
}
|
|
@@ -4029,7 +4021,7 @@ function as(e) {
|
|
|
4029
4021
|
function Qi({ index: e }, t) {
|
|
4030
4022
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
4031
4023
|
}
|
|
4032
|
-
function
|
|
4024
|
+
function Iv() {
|
|
4033
4025
|
return {
|
|
4034
4026
|
groupIndices: [],
|
|
4035
4027
|
groupOffsetTree: tr(),
|
|
@@ -4040,7 +4032,7 @@ function jv() {
|
|
|
4040
4032
|
sizeTree: tr()
|
|
4041
4033
|
};
|
|
4042
4034
|
}
|
|
4043
|
-
function
|
|
4035
|
+
function jv(e, t) {
|
|
4044
4036
|
let n = ze(e) ? 0 : 1 / 0;
|
|
4045
4037
|
for (const r of t) {
|
|
4046
4038
|
const { endIndex: o, size: s, startIndex: i } = r;
|
|
@@ -4049,7 +4041,7 @@ function kv(e, t) {
|
|
|
4049
4041
|
continue;
|
|
4050
4042
|
}
|
|
4051
4043
|
const a = is(e, i - 1, o + 1);
|
|
4052
|
-
if (a.some(
|
|
4044
|
+
if (a.some(Dv(r)))
|
|
4053
4045
|
continue;
|
|
4054
4046
|
let l = !1, u = !1;
|
|
4055
4047
|
for (const { end: d, start: h, value: m } of a)
|
|
@@ -4058,10 +4050,10 @@ function kv(e, t) {
|
|
|
4058
4050
|
}
|
|
4059
4051
|
return [e, n];
|
|
4060
4052
|
}
|
|
4061
|
-
function
|
|
4053
|
+
function kv(e) {
|
|
4062
4054
|
return typeof e.groupIndex < "u";
|
|
4063
4055
|
}
|
|
4064
|
-
function
|
|
4056
|
+
function Av({ offset: e }, t) {
|
|
4065
4057
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
4066
4058
|
}
|
|
4067
4059
|
function Dr(e, t, n) {
|
|
@@ -4079,7 +4071,7 @@ function uu(e, t) {
|
|
|
4079
4071
|
return e + n;
|
|
4080
4072
|
}
|
|
4081
4073
|
function du(e, t, n) {
|
|
4082
|
-
if (
|
|
4074
|
+
if (kv(e))
|
|
4083
4075
|
return t.groupIndices[e.groupIndex] + 1;
|
|
4084
4076
|
{
|
|
4085
4077
|
const r = e.index === "LAST" ? n : e.index;
|
|
@@ -4087,10 +4079,10 @@ function du(e, t, n) {
|
|
|
4087
4079
|
return o = Math.max(0, o, Math.min(n, o)), o;
|
|
4088
4080
|
}
|
|
4089
4081
|
}
|
|
4090
|
-
function
|
|
4091
|
-
return r > 0 && (t = Math.max(t, lu(e, r, Qi).offset)), ru(
|
|
4082
|
+
function Pv(e, t, n, r = 0) {
|
|
4083
|
+
return r > 0 && (t = Math.max(t, lu(e, r, Qi).offset)), ru(Nv(e, t, n, Av), Mv);
|
|
4092
4084
|
}
|
|
4093
|
-
function
|
|
4085
|
+
function _v(e, [t, n, r, o]) {
|
|
4094
4086
|
t.length > 0 && r("received item sizes", t, St.DEBUG);
|
|
4095
4087
|
const s = e.sizeTree;
|
|
4096
4088
|
let i = s, a = 0;
|
|
@@ -4098,7 +4090,7 @@ function Ov(e, [t, n, r, o]) {
|
|
|
4098
4090
|
const m = t[0].size, w = t[1].size;
|
|
4099
4091
|
i = n.reduce((x, v) => Et(Et(x, v, m), v + 1, w), i);
|
|
4100
4092
|
} else
|
|
4101
|
-
[i, a] =
|
|
4093
|
+
[i, a] = jv(i, t);
|
|
4102
4094
|
if (i === s)
|
|
4103
4095
|
return e;
|
|
4104
4096
|
const { lastIndex: l, lastOffset: u, lastSize: d, offsetTree: h } = Si(e.offsetTree, a, i, o);
|
|
@@ -4112,7 +4104,7 @@ function Ov(e, [t, n, r, o]) {
|
|
|
4112
4104
|
sizeTree: i
|
|
4113
4105
|
};
|
|
4114
4106
|
}
|
|
4115
|
-
function
|
|
4107
|
+
function Ov(e) {
|
|
4116
4108
|
return An(e).map(({ k: t, v: n }, r, o) => {
|
|
4117
4109
|
const s = o[r + 1];
|
|
4118
4110
|
return { endIndex: s ? s.k - 1 : 1 / 0, size: n, startIndex: t };
|
|
@@ -4147,20 +4139,20 @@ function Si(e, t, n, r) {
|
|
|
4147
4139
|
offsetTree: o
|
|
4148
4140
|
};
|
|
4149
4141
|
}
|
|
4150
|
-
function
|
|
4142
|
+
function Mv(e) {
|
|
4151
4143
|
return { index: e.index, value: e };
|
|
4152
4144
|
}
|
|
4153
|
-
function
|
|
4145
|
+
function Dv(e) {
|
|
4154
4146
|
const { endIndex: t, size: n, startIndex: r } = e;
|
|
4155
4147
|
return (o) => o.start === r && (o.end === t || o.end === 1 / 0) && o.value === n;
|
|
4156
4148
|
}
|
|
4157
|
-
const
|
|
4149
|
+
const Lv = {
|
|
4158
4150
|
offsetHeight: "height",
|
|
4159
4151
|
offsetWidth: "width"
|
|
4160
4152
|
}, rn = Me(
|
|
4161
4153
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
4162
|
-
const n = ke(), r = ke(), o = ft(r, 0), s = ke(), i = ke(), a = X(0), l = X([]), u = X(void 0), d = X(void 0), h = X((S, C) => vn(S,
|
|
4163
|
-
$(n, Te(l, e, w), Qt(
|
|
4154
|
+
const n = ke(), r = ke(), o = ft(r, 0), s = ke(), i = ke(), a = X(0), l = X([]), u = X(void 0), d = X(void 0), h = X((S, C) => vn(S, Lv[C])), m = X(void 0), w = X(0), x = Iv(), v = ft(
|
|
4155
|
+
$(n, Te(l, e, w), Qt(_v, x), We()),
|
|
4164
4156
|
x
|
|
4165
4157
|
), p = ft(
|
|
4166
4158
|
$(
|
|
@@ -4393,7 +4385,7 @@ const Fv = {
|
|
|
4393
4385
|
Ve(Sn, Zi),
|
|
4394
4386
|
{ singleton: !0 }
|
|
4395
4387
|
);
|
|
4396
|
-
function
|
|
4388
|
+
function Fv(e) {
|
|
4397
4389
|
return e.reduce(
|
|
4398
4390
|
(t, n) => (t.groupIndices.push(t.totalCount), t.totalCount += n + 1, t),
|
|
4399
4391
|
{
|
|
@@ -4404,7 +4396,7 @@ function Bv(e) {
|
|
|
4404
4396
|
}
|
|
4405
4397
|
const fu = Me(
|
|
4406
4398
|
([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
|
|
4407
|
-
const s = ke(), i = ke(), a = Nt($(s, oe(
|
|
4399
|
+
const s = ke(), i = ke(), a = Nt($(s, oe(Fv)));
|
|
4408
4400
|
return de(
|
|
4409
4401
|
$(
|
|
4410
4402
|
a,
|
|
@@ -4444,10 +4436,10 @@ const fu = Me(
|
|
|
4444
4436
|
},
|
|
4445
4437
|
Ve(Sn),
|
|
4446
4438
|
{ singleton: !0 }
|
|
4447
|
-
),
|
|
4439
|
+
), Bv = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
|
|
4448
4440
|
function hu(e) {
|
|
4449
4441
|
const t = typeof e == "number" ? { index: e } : e;
|
|
4450
|
-
return t.align || (t.align = "start"), (!t.behavior ||
|
|
4442
|
+
return t.align || (t.align = "start"), (!t.behavior || !Bv) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
4451
4443
|
}
|
|
4452
4444
|
const qr = Me(
|
|
4453
4445
|
([
|
|
@@ -4495,7 +4487,7 @@ const qr = Me(
|
|
|
4495
4487
|
ee(L);
|
|
4496
4488
|
});
|
|
4497
4489
|
} else
|
|
4498
|
-
p = $t($(t,
|
|
4490
|
+
p = $t($(t, $v(150)), ee);
|
|
4499
4491
|
return g = setTimeout(() => {
|
|
4500
4492
|
y();
|
|
4501
4493
|
}, 1200), ye(l, !0), P("scrolling from index to", { behavior: se, index: K, top: W }, St.DEBUG), { behavior: se, top: W };
|
|
@@ -4512,7 +4504,7 @@ const qr = Me(
|
|
|
4512
4504
|
Ve(rn, gt, Sn),
|
|
4513
4505
|
{ singleton: !0 }
|
|
4514
4506
|
);
|
|
4515
|
-
function
|
|
4507
|
+
function $v(e) {
|
|
4516
4508
|
return (t) => {
|
|
4517
4509
|
const n = setTimeout(() => {
|
|
4518
4510
|
t(!1);
|
|
@@ -4578,7 +4570,7 @@ const Xr = Me(
|
|
|
4578
4570
|
function pu(e, t) {
|
|
4579
4571
|
return Math.abs(e - t) < 1.01;
|
|
4580
4572
|
}
|
|
4581
|
-
const Lr = "up", Nr = "down",
|
|
4573
|
+
const Lr = "up", Nr = "down", Hv = "none", zv = {
|
|
4582
4574
|
atBottom: !1,
|
|
4583
4575
|
notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
|
|
4584
4576
|
state: {
|
|
@@ -4587,8 +4579,8 @@ const Lr = "up", Nr = "down", zv = "none", Uv = {
|
|
|
4587
4579
|
scrollTop: 0,
|
|
4588
4580
|
viewportHeight: 0
|
|
4589
4581
|
}
|
|
4590
|
-
},
|
|
4591
|
-
const i = X(!1), a = X(!0), l = ke(), u = ke(), d = X(4), h = X(
|
|
4582
|
+
}, Uv = 0, Jr = Me(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
4583
|
+
const i = X(!1), a = X(!0), l = ke(), u = ke(), d = X(4), h = X(Uv), m = ft(
|
|
4592
4584
|
$(
|
|
4593
4585
|
xi($(me(o), Dn(1), Jt(!0)), $(me(o), Dn(1), Jt(!1), Sc(100))),
|
|
4594
4586
|
We()
|
|
@@ -4630,7 +4622,7 @@ const Lr = "up", Nr = "down", zv = "none", Uv = {
|
|
|
4630
4622
|
notAtBottomBecause: P,
|
|
4631
4623
|
state: j
|
|
4632
4624
|
};
|
|
4633
|
-
},
|
|
4625
|
+
}, zv),
|
|
4634
4626
|
We((b, y) => b && b.atBottom === y.atBottom)
|
|
4635
4627
|
)
|
|
4636
4628
|
), v = ft(
|
|
@@ -4687,7 +4679,7 @@ const Lr = "up", Nr = "down", zv = "none", Uv = {
|
|
|
4687
4679
|
oe((b) => b.direction)
|
|
4688
4680
|
),
|
|
4689
4681
|
p
|
|
4690
|
-
), de($(r, un(50), Jt(
|
|
4682
|
+
), de($(r, un(50), Jt(Hv)), p);
|
|
4691
4683
|
const g = X(0);
|
|
4692
4684
|
return de(
|
|
4693
4685
|
$(
|
|
@@ -4781,7 +4773,7 @@ const na = Me(
|
|
|
4781
4773
|
Ve(gt),
|
|
4782
4774
|
{ singleton: !0 }
|
|
4783
4775
|
);
|
|
4784
|
-
function
|
|
4776
|
+
function Wv(e, t, n) {
|
|
4785
4777
|
if (as(t)) {
|
|
4786
4778
|
const r = uu(e, t);
|
|
4787
4779
|
return [
|
|
@@ -4918,7 +4910,7 @@ const zn = Me(
|
|
|
4918
4910
|
return M === 0 ? { ...zs, totalCount: N } : mu(M, j, I, G, _, Y || []);
|
|
4919
4911
|
if (ze(O))
|
|
4920
4912
|
return M > 0 ? null : So(
|
|
4921
|
-
|
|
4913
|
+
Wv(ta(j, N), U, Y),
|
|
4922
4914
|
[],
|
|
4923
4915
|
N,
|
|
4924
4916
|
_,
|
|
@@ -4937,7 +4929,7 @@ const zn = Me(
|
|
|
4937
4929
|
}
|
|
4938
4930
|
if (!P)
|
|
4939
4931
|
return So([], K, N, _, U, G);
|
|
4940
|
-
const W = F.length > 0 ? F[F.length - 1] + 1 : 0, ee =
|
|
4932
|
+
const W = F.length > 0 ? F[F.length - 1] + 1 : 0, ee = Pv(se, C, E, W);
|
|
4941
4933
|
if (ee.length === 0)
|
|
4942
4934
|
return null;
|
|
4943
4935
|
const L = N - 1, Z = ss([], (pe) => {
|
|
@@ -5053,7 +5045,7 @@ const zn = Me(
|
|
|
5053
5045
|
},
|
|
5054
5046
|
Ve(gt, zn),
|
|
5055
5047
|
{ singleton: !0 }
|
|
5056
|
-
),
|
|
5048
|
+
), Vv = Me(
|
|
5057
5049
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
5058
5050
|
const n = X(!1), r = ft(
|
|
5059
5051
|
$(
|
|
@@ -5071,7 +5063,7 @@ const zn = Me(
|
|
|
5071
5063
|
{ singleton: !0 }
|
|
5072
5064
|
), vu = Me(() => ({
|
|
5073
5065
|
context: X(null)
|
|
5074
|
-
})),
|
|
5066
|
+
})), Gv = ({
|
|
5075
5067
|
itemBottom: e,
|
|
5076
5068
|
itemTop: t,
|
|
5077
5069
|
locationParams: { align: n, behavior: r, ...o },
|
|
@@ -5090,7 +5082,7 @@ const zn = Me(
|
|
|
5090
5082
|
Te(t, l, n, s, o, r, a),
|
|
5091
5083
|
Te(e),
|
|
5092
5084
|
oe(([[h, m, w, x, v, p, g, b], y]) => {
|
|
5093
|
-
const { align: R, behavior: S, calculateViewLocation: C =
|
|
5085
|
+
const { align: R, behavior: S, calculateViewLocation: C = Gv, done: E, ...N } = h, I = du(h, m, x - 1), j = Dr(I, m.offsetTree, y) + v + p, P = j + zt(m.sizeTree, I)[1], F = b + p, G = b + w - g, _ = C({
|
|
5094
5086
|
itemBottom: P,
|
|
5095
5087
|
itemTop: j,
|
|
5096
5088
|
locationParams: { align: R, behavior: S, ...N },
|
|
@@ -5121,7 +5113,7 @@ const zn = Me(
|
|
|
5121
5113
|
function kc(e) {
|
|
5122
5114
|
return e ? e === "smooth" ? "smooth" : "auto" : !1;
|
|
5123
5115
|
}
|
|
5124
|
-
const
|
|
5116
|
+
const Kv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Yv = Me(
|
|
5125
5117
|
([
|
|
5126
5118
|
{ listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
|
|
5127
5119
|
{ atBottomState: o, isAtBottom: s },
|
|
@@ -5148,7 +5140,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = Me(
|
|
|
5148
5140
|
Te(me(x), s, a, h),
|
|
5149
5141
|
oe(([[S, C], E, N, I, j]) => {
|
|
5150
5142
|
let P = C && I, F = "auto";
|
|
5151
|
-
return P && (F =
|
|
5143
|
+
return P && (F = Kv(E, N || j), P = P && !!F), { followOutputBehavior: F, shouldFollow: P, totalCount: S };
|
|
5152
5144
|
}),
|
|
5153
5145
|
ge(({ shouldFollow: S }) => S)
|
|
5154
5146
|
),
|
|
@@ -5226,7 +5218,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = Me(
|
|
|
5226
5218
|
vu,
|
|
5227
5219
|
xu
|
|
5228
5220
|
)
|
|
5229
|
-
),
|
|
5221
|
+
), qv = Me(
|
|
5230
5222
|
([{ data: e, firstItemIndex: t, gap: n, sizes: r }, { initialTopMostItemIndex: o }, { initialItemCount: s, listState: i }, { didMount: a }]) => (de(
|
|
5231
5223
|
$(
|
|
5232
5224
|
a,
|
|
@@ -5239,7 +5231,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = Me(
|
|
|
5239
5231
|
), {}),
|
|
5240
5232
|
Ve(rn, Xr, zn, Cn),
|
|
5241
5233
|
{ singleton: !0 }
|
|
5242
|
-
),
|
|
5234
|
+
), Xv = Me(
|
|
5243
5235
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
5244
5236
|
const r = X(0);
|
|
5245
5237
|
return Fe(
|
|
@@ -5330,7 +5322,7 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = Me(
|
|
|
5330
5322
|
windowScrollTo: o,
|
|
5331
5323
|
windowViewportRect: r
|
|
5332
5324
|
};
|
|
5333
|
-
}, Ve(gt)),
|
|
5325
|
+
}, Ve(gt)), Jv = Me(
|
|
5334
5326
|
([
|
|
5335
5327
|
{ sizeRanges: e, sizes: t },
|
|
5336
5328
|
{ headerHeight: n, scrollTop: r },
|
|
@@ -5345,10 +5337,10 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = Me(
|
|
|
5345
5337
|
Te(t, r, i, h, m, n)
|
|
5346
5338
|
),
|
|
5347
5339
|
([w, x, v, p, g, b, y]) => {
|
|
5348
|
-
const R =
|
|
5340
|
+
const R = Ov(x.sizeTree);
|
|
5349
5341
|
p && g !== null && b !== null && (v = g.scrollTop - b.offsetTop), v -= y, w({ ranges: R, scrollTop: v });
|
|
5350
5342
|
}
|
|
5351
|
-
), de($(d, ge(qi), oe(
|
|
5343
|
+
), de($(d, ge(qi), oe(Zv)), o), de(
|
|
5352
5344
|
$(
|
|
5353
5345
|
s,
|
|
5354
5346
|
Te(d),
|
|
@@ -5364,10 +5356,10 @@ const Yv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), qv = Me(
|
|
|
5364
5356
|
},
|
|
5365
5357
|
Ve(rn, gt, Xr, Cn, ra)
|
|
5366
5358
|
);
|
|
5367
|
-
function
|
|
5359
|
+
function Zv(e) {
|
|
5368
5360
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
5369
5361
|
}
|
|
5370
|
-
const
|
|
5362
|
+
const Qv = Me(([{ topItemsIndexes: e }]) => {
|
|
5371
5363
|
const t = X(0);
|
|
5372
5364
|
return de(
|
|
5373
5365
|
$(
|
|
@@ -5382,7 +5374,7 @@ function wu(e) {
|
|
|
5382
5374
|
let t = !1, n;
|
|
5383
5375
|
return () => (t || (t = !0, n = e()), n);
|
|
5384
5376
|
}
|
|
5385
|
-
const
|
|
5377
|
+
const ex = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), tx = Me(
|
|
5386
5378
|
([
|
|
5387
5379
|
{ deviation: e, scrollBy: t, scrollingInProgress: n, scrollTop: r },
|
|
5388
5380
|
{ isAtBottom: o, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: a },
|
|
@@ -5413,7 +5405,7 @@ const tx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
5413
5405
|
g > 0 ? (ye(t, { behavior: "auto", top: -g }), ye(e, 0)) : (ye(e, 0), ye(t, { behavior: "auto", top: -g }));
|
|
5414
5406
|
}
|
|
5415
5407
|
return Fe($(v, Te(e, s)), ([g, b, y]) => {
|
|
5416
|
-
y &&
|
|
5408
|
+
y && ex() ? ye(e, b - g) : p(-g);
|
|
5417
5409
|
}), Fe(
|
|
5418
5410
|
$(
|
|
5419
5411
|
nt(ft(s, !1), e, x),
|
|
@@ -5461,7 +5453,7 @@ const tx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
5461
5453
|
), { deviation: e };
|
|
5462
5454
|
},
|
|
5463
5455
|
Ve(gt, Jr, zn, rn, Sn, Zi)
|
|
5464
|
-
),
|
|
5456
|
+
), nx = Me(
|
|
5465
5457
|
([
|
|
5466
5458
|
e,
|
|
5467
5459
|
t,
|
|
@@ -5489,12 +5481,12 @@ const tx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
5489
5481
|
}),
|
|
5490
5482
|
Ve(
|
|
5491
5483
|
na,
|
|
5492
|
-
|
|
5484
|
+
qv,
|
|
5493
5485
|
Cn,
|
|
5494
5486
|
bu,
|
|
5495
5487
|
gu,
|
|
5496
|
-
|
|
5497
|
-
|
|
5488
|
+
Xv,
|
|
5489
|
+
Vv,
|
|
5498
5490
|
ra,
|
|
5499
5491
|
xu,
|
|
5500
5492
|
Sn,
|
|
@@ -5567,17 +5559,17 @@ const tx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
5567
5559
|
rn,
|
|
5568
5560
|
Xr,
|
|
5569
5561
|
gt,
|
|
5570
|
-
|
|
5571
|
-
|
|
5562
|
+
Jv,
|
|
5563
|
+
Yv,
|
|
5572
5564
|
zn,
|
|
5573
5565
|
qr,
|
|
5574
|
-
|
|
5575
|
-
|
|
5566
|
+
tx,
|
|
5567
|
+
Qv,
|
|
5576
5568
|
fu,
|
|
5577
|
-
|
|
5569
|
+
nx
|
|
5578
5570
|
)
|
|
5579
5571
|
);
|
|
5580
|
-
function
|
|
5572
|
+
function rx(e, t) {
|
|
5581
5573
|
const n = {}, r = {};
|
|
5582
5574
|
let o = 0;
|
|
5583
5575
|
const s = e.length;
|
|
@@ -5610,10 +5602,10 @@ function Su(e, t, n) {
|
|
|
5610
5602
|
}, g), {});
|
|
5611
5603
|
}
|
|
5612
5604
|
function d(p) {
|
|
5613
|
-
return i.reduce((g, b) => (g[b] =
|
|
5605
|
+
return i.reduce((g, b) => (g[b] = bv(p[t.events[b]]), g), {});
|
|
5614
5606
|
}
|
|
5615
5607
|
const h = q.forwardRef((p, g) => {
|
|
5616
|
-
const { children: b, ...y } = p, [R] = q.useState(() => ss(
|
|
5608
|
+
const { children: b, ...y } = p, [R] = q.useState(() => ss(yv(e), (E) => {
|
|
5617
5609
|
l(E, y);
|
|
5618
5610
|
})), [S] = q.useState(yc(d, R));
|
|
5619
5611
|
io(() => {
|
|
@@ -5626,7 +5618,7 @@ function Su(e, t, n) {
|
|
|
5626
5618
|
l(R, y);
|
|
5627
5619
|
}), q.useImperativeHandle(g, wc(u(R)));
|
|
5628
5620
|
const C = n;
|
|
5629
|
-
return /* @__PURE__ */ c.jsx(a.Provider, { value: R, children: n ? /* @__PURE__ */ c.jsx(C, { ...
|
|
5621
|
+
return /* @__PURE__ */ c.jsx(a.Provider, { value: R, children: n ? /* @__PURE__ */ c.jsx(C, { ...rx([...r, ...o, ...i], y), children: b }) : b });
|
|
5630
5622
|
}), m = (p) => {
|
|
5631
5623
|
const g = q.useContext(a);
|
|
5632
5624
|
return q.useCallback(
|
|
@@ -5668,7 +5660,7 @@ const Cu = q.createContext(void 0), Tu = q.createContext(void 0), Ru = typeof do
|
|
|
5668
5660
|
function Us(e) {
|
|
5669
5661
|
return "self" in e;
|
|
5670
5662
|
}
|
|
5671
|
-
function
|
|
5663
|
+
function ox(e) {
|
|
5672
5664
|
return "body" in e;
|
|
5673
5665
|
}
|
|
5674
5666
|
function Eu(e, t, n, r = pr, o, s) {
|
|
@@ -5676,7 +5668,7 @@ function Eu(e, t, n, r = pr, o, s) {
|
|
|
5676
5668
|
(m) => {
|
|
5677
5669
|
let w, x, v;
|
|
5678
5670
|
const p = m.target;
|
|
5679
|
-
if (
|
|
5671
|
+
if (ox(p) || Us(p)) {
|
|
5680
5672
|
const b = Us(p) ? p : p.defaultView;
|
|
5681
5673
|
v = s ? b.scrollX : b.scrollY, w = s ? b.document.documentElement.scrollWidth : b.document.documentElement.scrollHeight, x = s ? b.innerWidth : b.innerHeight;
|
|
5682
5674
|
} else
|
|
@@ -5731,7 +5723,7 @@ const Ws = "-webkit-sticky", Ac = "sticky", oa = wu(() => {
|
|
|
5731
5723
|
function sa(e) {
|
|
5732
5724
|
return e;
|
|
5733
5725
|
}
|
|
5734
|
-
const
|
|
5726
|
+
const sx = /* @__PURE__ */ Me(() => {
|
|
5735
5727
|
const e = X((a) => `Item ${a}`), t = X((a) => `Group ${a}`), n = X({}), r = X(sa), o = X("div"), s = X(pr), i = (a, l = null) => ft(
|
|
5736
5728
|
$(
|
|
5737
5729
|
n,
|
|
@@ -5757,11 +5749,11 @@ const ix = /* @__PURE__ */ Me(() => {
|
|
|
5757
5749
|
ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
|
|
5758
5750
|
TopItemListComponent: i("TopItemList")
|
|
5759
5751
|
};
|
|
5760
|
-
}),
|
|
5752
|
+
}), ix = /* @__PURE__ */ Me(
|
|
5761
5753
|
([e, t]) => ({ ...e, ...t }),
|
|
5762
|
-
Ve(yu,
|
|
5763
|
-
),
|
|
5764
|
-
const t = be("listState"), n = _t("sizeRanges"), r = be("useWindowScroll"), o = be("customScrollParent"), s = _t("windowScrollContainerState"), i = _t("scrollContainerState"), a = o || r ? s : i, l = be("itemContent"), u = be("context"), d = be("groupContent"), h = be("trackItemSizes"), m = be("itemSize"), w = be("log"), x = _t("gap"), v = be("horizontalDirection"), { callbackRef: p } =
|
|
5754
|
+
Ve(yu, sx)
|
|
5755
|
+
), ax = ({ height: e }) => /* @__PURE__ */ c.jsx("div", { style: { height: e } }), cx = { overflowAnchor: "none", position: oa(), zIndex: 1 }, Nu = { overflowAnchor: "none" }, lx = { ...Nu, display: "inline-block", height: "100%" }, Pc = /* @__PURE__ */ q.memo(function({ showTopList: e = !1 }) {
|
|
5756
|
+
const t = be("listState"), n = _t("sizeRanges"), r = be("useWindowScroll"), o = be("customScrollParent"), s = _t("windowScrollContainerState"), i = _t("scrollContainerState"), a = o || r ? s : i, l = be("itemContent"), u = be("context"), d = be("groupContent"), h = be("trackItemSizes"), m = be("itemSize"), w = be("log"), x = _t("gap"), v = be("horizontalDirection"), { callbackRef: p } = Tv(
|
|
5765
5757
|
n,
|
|
5766
5758
|
m,
|
|
5767
5759
|
h,
|
|
@@ -5775,7 +5767,7 @@ const ix = /* @__PURE__ */ Me(() => {
|
|
|
5775
5767
|
ia("deviation", (_) => {
|
|
5776
5768
|
g !== _ && b(_);
|
|
5777
5769
|
});
|
|
5778
|
-
const y = be("EmptyPlaceholder"), R = be("ScrollSeekPlaceholder") ||
|
|
5770
|
+
const y = be("EmptyPlaceholder"), R = be("ScrollSeekPlaceholder") || ax, S = be("ListComponent"), C = be("ItemComponent"), E = be("GroupComponent"), N = be("computeItemKey"), I = be("isSeeking"), j = be("groupIndices").length > 0, P = be("alignToBottom"), F = be("initialItemFinalLocationReached"), G = e ? {} : {
|
|
5779
5771
|
boxSizing: "border-box",
|
|
5780
5772
|
...v ? {
|
|
5781
5773
|
display: "inline-block",
|
|
@@ -5818,33 +5810,33 @@ const ix = /* @__PURE__ */ Me(() => {
|
|
|
5818
5810
|
"data-item-index": _.index,
|
|
5819
5811
|
"data-known-size": _.size,
|
|
5820
5812
|
key: U,
|
|
5821
|
-
style:
|
|
5813
|
+
style: cx
|
|
5822
5814
|
},
|
|
5823
5815
|
d(_.index, u)
|
|
5824
5816
|
) : /* @__PURE__ */ go(
|
|
5825
5817
|
C,
|
|
5826
5818
|
{
|
|
5827
5819
|
...dt(C, u),
|
|
5828
|
-
...
|
|
5820
|
+
...hx(C, _.data),
|
|
5829
5821
|
"data-index": Y,
|
|
5830
5822
|
"data-item-group-index": _.groupIndex,
|
|
5831
5823
|
"data-item-index": _.index,
|
|
5832
5824
|
"data-known-size": _.size,
|
|
5833
5825
|
key: U,
|
|
5834
|
-
style: v ?
|
|
5826
|
+
style: v ? lx : Nu
|
|
5835
5827
|
},
|
|
5836
5828
|
j ? l(_.index, _.groupIndex, _.data, u) : l(_.index, _.data, u)
|
|
5837
5829
|
);
|
|
5838
5830
|
})
|
|
5839
5831
|
}
|
|
5840
5832
|
);
|
|
5841
|
-
}),
|
|
5833
|
+
}), ux = {
|
|
5842
5834
|
height: "100%",
|
|
5843
5835
|
outline: "none",
|
|
5844
5836
|
overflowY: "auto",
|
|
5845
5837
|
position: "relative",
|
|
5846
5838
|
WebkitOverflowScrolling: "touch"
|
|
5847
|
-
},
|
|
5839
|
+
}, dx = {
|
|
5848
5840
|
outline: "none",
|
|
5849
5841
|
overflowX: "auto",
|
|
5850
5842
|
position: "relative"
|
|
@@ -5854,7 +5846,7 @@ const ix = /* @__PURE__ */ Me(() => {
|
|
|
5854
5846
|
top: 0,
|
|
5855
5847
|
width: "100%",
|
|
5856
5848
|
...e ? { display: "flex", flexDirection: "column" } : {}
|
|
5857
|
-
}),
|
|
5849
|
+
}), fx = {
|
|
5858
5850
|
position: oa(),
|
|
5859
5851
|
top: 0,
|
|
5860
5852
|
width: "100%",
|
|
@@ -5864,10 +5856,10 @@ function dt(e, t) {
|
|
|
5864
5856
|
if (typeof e != "string")
|
|
5865
5857
|
return { context: t };
|
|
5866
5858
|
}
|
|
5867
|
-
function
|
|
5859
|
+
function hx(e, t) {
|
|
5868
5860
|
return { item: typeof e == "string" ? void 0 : t };
|
|
5869
5861
|
}
|
|
5870
|
-
const
|
|
5862
|
+
const px = /* @__PURE__ */ q.memo(function() {
|
|
5871
5863
|
const e = be("HeaderComponent"), t = _t("headerHeight"), n = be("HeaderFooterTag"), r = Hn(
|
|
5872
5864
|
q.useMemo(
|
|
5873
5865
|
() => (s) => {
|
|
@@ -5879,7 +5871,7 @@ const mx = /* @__PURE__ */ q.memo(function() {
|
|
|
5879
5871
|
be("skipAnimationFrameInResizeObserver")
|
|
5880
5872
|
), o = be("context");
|
|
5881
5873
|
return e ? /* @__PURE__ */ c.jsx(n, { ref: r, children: /* @__PURE__ */ c.jsx(e, { ...dt(e, o) }) }) : null;
|
|
5882
|
-
}),
|
|
5874
|
+
}), mx = /* @__PURE__ */ q.memo(function() {
|
|
5883
5875
|
const e = be("FooterComponent"), t = _t("footerHeight"), n = be("HeaderFooterTag"), r = Hn(
|
|
5884
5876
|
q.useMemo(
|
|
5885
5877
|
() => (s) => {
|
|
@@ -5908,7 +5900,7 @@ function Iu({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
5908
5900
|
"data-testid": "virtuoso-scroller",
|
|
5909
5901
|
"data-virtuoso-scroller": !0,
|
|
5910
5902
|
ref: w,
|
|
5911
|
-
style: { ...h ?
|
|
5903
|
+
style: { ...h ? dx : ux, ...o },
|
|
5912
5904
|
tabIndex: 0,
|
|
5913
5905
|
...i,
|
|
5914
5906
|
...dt(l, s),
|
|
@@ -5944,7 +5936,7 @@ function ju({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
5944
5936
|
);
|
|
5945
5937
|
});
|
|
5946
5938
|
}
|
|
5947
|
-
const
|
|
5939
|
+
const gx = ({ children: e }) => {
|
|
5948
5940
|
const t = q.useContext(Cu), n = _t("viewportHeight"), r = _t("fixedItemHeight"), o = be("alignToBottom"), s = be("horizontalDirection"), i = q.useMemo(
|
|
5949
5941
|
() => eu(n, (l) => vn(l, s ? "width" : "height")),
|
|
5950
5942
|
[n, s]
|
|
@@ -5952,7 +5944,7 @@ const vx = ({ children: e }) => {
|
|
|
5952
5944
|
return q.useEffect(() => {
|
|
5953
5945
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
5954
5946
|
}, [t, n, r]), /* @__PURE__ */ c.jsx("div", { "data-viewport-type": "element", ref: a, style: cs(o), children: e });
|
|
5955
|
-
},
|
|
5947
|
+
}, vx = ({ children: e }) => {
|
|
5956
5948
|
const t = q.useContext(Cu), n = _t("windowViewportRect"), r = _t("fixedItemHeight"), o = be("customScrollParent"), s = nu(
|
|
5957
5949
|
n,
|
|
5958
5950
|
o,
|
|
@@ -5961,26 +5953,26 @@ const vx = ({ children: e }) => {
|
|
|
5961
5953
|
return q.useEffect(() => {
|
|
5962
5954
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
5963
5955
|
}, [t, n, r]), /* @__PURE__ */ c.jsx("div", { "data-viewport-type": "window", ref: s, style: cs(i), children: e });
|
|
5964
|
-
},
|
|
5965
|
-
const t = be("TopItemListComponent") || "div", n = be("headerHeight"), r = { ...
|
|
5956
|
+
}, xx = ({ children: e }) => {
|
|
5957
|
+
const t = be("TopItemListComponent") || "div", n = be("headerHeight"), r = { ...fx, marginTop: `${n}px` }, o = be("context");
|
|
5966
5958
|
return /* @__PURE__ */ c.jsx(t, { style: r, ...dt(t, o), children: e });
|
|
5967
|
-
},
|
|
5959
|
+
}, bx = /* @__PURE__ */ q.memo(function(e) {
|
|
5968
5960
|
const t = be("useWindowScroll"), n = be("topItemsIndexes").length > 0, r = be("customScrollParent"), o = be("context");
|
|
5969
|
-
return /* @__PURE__ */ c.jsxs(r || t ?
|
|
5970
|
-
n && /* @__PURE__ */ c.jsx(
|
|
5971
|
-
/* @__PURE__ */ c.jsxs(r || t ?
|
|
5972
|
-
/* @__PURE__ */ c.jsx(
|
|
5961
|
+
return /* @__PURE__ */ c.jsxs(r || t ? Sx : yx, { ...e, context: o, children: [
|
|
5962
|
+
n && /* @__PURE__ */ c.jsx(xx, { children: /* @__PURE__ */ c.jsx(Pc, { showTopList: !0 }) }),
|
|
5963
|
+
/* @__PURE__ */ c.jsxs(r || t ? vx : gx, { children: [
|
|
5964
|
+
/* @__PURE__ */ c.jsx(px, {}),
|
|
5973
5965
|
/* @__PURE__ */ c.jsx(Pc, {}),
|
|
5974
|
-
/* @__PURE__ */ c.jsx(
|
|
5966
|
+
/* @__PURE__ */ c.jsx(mx, {})
|
|
5975
5967
|
] })
|
|
5976
5968
|
] });
|
|
5977
5969
|
}), {
|
|
5978
|
-
Component:
|
|
5970
|
+
Component: wx,
|
|
5979
5971
|
useEmitter: ia,
|
|
5980
5972
|
useEmitterValue: be,
|
|
5981
5973
|
usePublisher: _t
|
|
5982
5974
|
} = /* @__PURE__ */ Su(
|
|
5983
|
-
|
|
5975
|
+
ix,
|
|
5984
5976
|
{
|
|
5985
5977
|
required: {},
|
|
5986
5978
|
optional: {
|
|
@@ -6037,8 +6029,8 @@ const vx = ({ children: e }) => {
|
|
|
6037
6029
|
groupIndices: "groupIndices"
|
|
6038
6030
|
}
|
|
6039
6031
|
},
|
|
6040
|
-
|
|
6041
|
-
),
|
|
6032
|
+
bx
|
|
6033
|
+
), yx = /* @__PURE__ */ Iu({ useEmitter: ia, useEmitterValue: be, usePublisher: _t }), Sx = /* @__PURE__ */ ju({ useEmitter: ia, useEmitterValue: be, usePublisher: _t }), Cx = wx, Tx = /* @__PURE__ */ Me(() => {
|
|
6042
6034
|
const e = X((u) => /* @__PURE__ */ c.jsxs("td", { children: [
|
|
6043
6035
|
"Item $",
|
|
6044
6036
|
u
|
|
@@ -6074,7 +6066,7 @@ const vx = ({ children: e }) => {
|
|
|
6074
6066
|
GroupComponent: l("Group", "tr")
|
|
6075
6067
|
};
|
|
6076
6068
|
});
|
|
6077
|
-
Ve(yu,
|
|
6069
|
+
Ve(yu, Tx);
|
|
6078
6070
|
oa();
|
|
6079
6071
|
const _c = {
|
|
6080
6072
|
bottom: 0,
|
|
@@ -6084,7 +6076,7 @@ const _c = {
|
|
|
6084
6076
|
offsetBottom: 0,
|
|
6085
6077
|
offsetTop: 0,
|
|
6086
6078
|
top: 0
|
|
6087
|
-
},
|
|
6079
|
+
}, Rx = {
|
|
6088
6080
|
bottom: 0,
|
|
6089
6081
|
itemHeight: 0,
|
|
6090
6082
|
items: [{ index: 0 }],
|
|
@@ -6096,19 +6088,19 @@ const _c = {
|
|
|
6096
6088
|
function Dc(e, t, n) {
|
|
6097
6089
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
6098
6090
|
}
|
|
6099
|
-
function
|
|
6091
|
+
function Ex(e) {
|
|
6100
6092
|
return {
|
|
6101
|
-
...
|
|
6093
|
+
...Rx,
|
|
6102
6094
|
items: e
|
|
6103
6095
|
};
|
|
6104
6096
|
}
|
|
6105
6097
|
function ao(e, t) {
|
|
6106
6098
|
return e && e.width === t.width && e.height === t.height;
|
|
6107
6099
|
}
|
|
6108
|
-
function
|
|
6100
|
+
function Nx(e, t) {
|
|
6109
6101
|
return e && e.column === t.column && e.row === t.row;
|
|
6110
6102
|
}
|
|
6111
|
-
const
|
|
6103
|
+
const Ix = /* @__PURE__ */ Me(
|
|
6112
6104
|
([
|
|
6113
6105
|
{ increaseViewportBy: e, listBoundary: t, overscan: n, visibleRange: r },
|
|
6114
6106
|
{ footerHeight: o, headerHeight: s, scrollBy: i, scrollContainerState: a, scrollTo: l, scrollTop: u, smoothScrollTargetReached: d, viewportHeight: h },
|
|
@@ -6185,7 +6177,7 @@ const jx = /* @__PURE__ */ Me(
|
|
|
6185
6177
|
nt(
|
|
6186
6178
|
me(C),
|
|
6187
6179
|
r,
|
|
6188
|
-
me(Y,
|
|
6180
|
+
me(Y, Nx),
|
|
6189
6181
|
me(j, ao),
|
|
6190
6182
|
me(I, ao),
|
|
6191
6183
|
me(_),
|
|
@@ -6213,7 +6205,7 @@ const jx = /* @__PURE__ */ Me(
|
|
|
6213
6205
|
return _c;
|
|
6214
6206
|
if (Be === 0) {
|
|
6215
6207
|
const Re = ta(Ne, A), ht = Re + Math.max(je - 1, 0);
|
|
6216
|
-
return
|
|
6208
|
+
return Ex(Dc(Re, ht, _e));
|
|
6217
6209
|
}
|
|
6218
6210
|
const et = ku(ot, Be, Se);
|
|
6219
6211
|
let xt, it;
|
|
@@ -6369,7 +6361,7 @@ function Ci(e, t, n, r) {
|
|
|
6369
6361
|
const o = ku(e.width, n.width, t.column), s = $o(r / o), i = s * n.height + Ir(0, s - 1) * t.row;
|
|
6370
6362
|
return i > 0 ? i + t.row : i;
|
|
6371
6363
|
}
|
|
6372
|
-
const
|
|
6364
|
+
const jx = /* @__PURE__ */ Me(() => {
|
|
6373
6365
|
const e = X((h) => `Item ${h}`), t = X({}), n = X(null), r = X("virtuoso-grid-item"), o = X("virtuoso-grid-list"), s = X(sa), i = X("div"), a = X(pr), l = (h, m = null) => ft(
|
|
6374
6366
|
$(
|
|
6375
6367
|
t,
|
|
@@ -6396,10 +6388,10 @@ const kx = /* @__PURE__ */ Me(() => {
|
|
|
6396
6388
|
scrollerRef: a,
|
|
6397
6389
|
ScrollSeekPlaceholder: l("ScrollSeekPlaceholder", "div")
|
|
6398
6390
|
};
|
|
6399
|
-
}),
|
|
6391
|
+
}), kx = /* @__PURE__ */ Me(
|
|
6400
6392
|
([e, t]) => ({ ...e, ...t }),
|
|
6401
|
-
Ve(
|
|
6402
|
-
),
|
|
6393
|
+
Ve(Ix, jx)
|
|
6394
|
+
), Ax = /* @__PURE__ */ q.memo(function() {
|
|
6403
6395
|
const e = Ge("gridState"), t = Ge("listClassName"), n = Ge("itemClassName"), r = Ge("itemContent"), o = Ge("computeItemKey"), s = Ge("isSeeking"), i = Ot("scrollHeight"), a = Ge("ItemComponent"), l = Ge("ListComponent"), u = Ge("ScrollSeekPlaceholder"), d = Ge("context"), h = Ot("itemDimensions"), m = Ot("gap"), w = Ge("log"), x = Ge("stateRestoreInProgress"), v = Ot("reportReadyState"), p = Hn(
|
|
6404
6396
|
q.useMemo(
|
|
6405
6397
|
() => (g) => {
|
|
@@ -6454,7 +6446,7 @@ const kx = /* @__PURE__ */ Me(() => {
|
|
|
6454
6446
|
})
|
|
6455
6447
|
}
|
|
6456
6448
|
);
|
|
6457
|
-
}),
|
|
6449
|
+
}), Px = q.memo(function() {
|
|
6458
6450
|
const e = Ge("HeaderComponent"), t = Ot("headerHeight"), n = Ge("headerFooterTag"), r = Hn(
|
|
6459
6451
|
q.useMemo(
|
|
6460
6452
|
() => (s) => {
|
|
@@ -6466,7 +6458,7 @@ const kx = /* @__PURE__ */ Me(() => {
|
|
|
6466
6458
|
!1
|
|
6467
6459
|
), o = Ge("context");
|
|
6468
6460
|
return e ? /* @__PURE__ */ c.jsx(n, { ref: r, children: /* @__PURE__ */ c.jsx(e, { ...dt(e, o) }) }) : null;
|
|
6469
|
-
}),
|
|
6461
|
+
}), _x = q.memo(function() {
|
|
6470
6462
|
const e = Ge("FooterComponent"), t = Ot("footerHeight"), n = Ge("headerFooterTag"), r = Hn(
|
|
6471
6463
|
q.useMemo(
|
|
6472
6464
|
() => (s) => {
|
|
@@ -6478,7 +6470,7 @@ const kx = /* @__PURE__ */ Me(() => {
|
|
|
6478
6470
|
!1
|
|
6479
6471
|
), o = Ge("context");
|
|
6480
6472
|
return e ? /* @__PURE__ */ c.jsx(n, { ref: r, children: /* @__PURE__ */ c.jsx(e, { ...dt(e, o) }) }) : null;
|
|
6481
|
-
}),
|
|
6473
|
+
}), Ox = ({ children: e }) => {
|
|
6482
6474
|
const t = q.useContext(Tu), n = Ot("itemDimensions"), r = Ot("viewportDimensions"), o = Hn(
|
|
6483
6475
|
q.useMemo(
|
|
6484
6476
|
() => (s) => {
|
|
@@ -6492,24 +6484,24 @@ const kx = /* @__PURE__ */ Me(() => {
|
|
|
6492
6484
|
return q.useEffect(() => {
|
|
6493
6485
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
6494
6486
|
}, [t, r, n]), /* @__PURE__ */ c.jsx("div", { ref: o, style: cs(!1), children: e });
|
|
6495
|
-
},
|
|
6487
|
+
}, Mx = ({ children: e }) => {
|
|
6496
6488
|
const t = q.useContext(Tu), n = Ot("windowViewportRect"), r = Ot("itemDimensions"), o = Ge("customScrollParent"), s = nu(n, o, !1);
|
|
6497
6489
|
return q.useEffect(() => {
|
|
6498
6490
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
6499
6491
|
}, [t, n, r]), /* @__PURE__ */ c.jsx("div", { ref: s, style: cs(!1), children: e });
|
|
6500
|
-
},
|
|
6501
|
-
const t = Ge("useWindowScroll"), n = Ge("customScrollParent"), r = n || t ?
|
|
6492
|
+
}, Dx = /* @__PURE__ */ q.memo(function({ ...e }) {
|
|
6493
|
+
const t = Ge("useWindowScroll"), n = Ge("customScrollParent"), r = n || t ? Fx : Lx, o = n || t ? Mx : Ox, s = Ge("context");
|
|
6502
6494
|
return /* @__PURE__ */ c.jsx(r, { ...e, ...dt(r, s), children: /* @__PURE__ */ c.jsxs(o, { children: [
|
|
6503
|
-
/* @__PURE__ */ c.jsx(_x, {}),
|
|
6504
6495
|
/* @__PURE__ */ c.jsx(Px, {}),
|
|
6505
|
-
/* @__PURE__ */ c.jsx(
|
|
6496
|
+
/* @__PURE__ */ c.jsx(Ax, {}),
|
|
6497
|
+
/* @__PURE__ */ c.jsx(_x, {})
|
|
6506
6498
|
] }) });
|
|
6507
6499
|
}), {
|
|
6508
6500
|
useEmitter: Au,
|
|
6509
6501
|
useEmitterValue: Ge,
|
|
6510
6502
|
usePublisher: Ot
|
|
6511
6503
|
} = /* @__PURE__ */ Su(
|
|
6512
|
-
|
|
6504
|
+
kx,
|
|
6513
6505
|
{
|
|
6514
6506
|
optional: {
|
|
6515
6507
|
context: "context",
|
|
@@ -6548,12 +6540,12 @@ const kx = /* @__PURE__ */ Me(() => {
|
|
|
6548
6540
|
readyStateChanged: "readyStateChanged"
|
|
6549
6541
|
}
|
|
6550
6542
|
},
|
|
6551
|
-
|
|
6552
|
-
),
|
|
6543
|
+
Dx
|
|
6544
|
+
), Lx = /* @__PURE__ */ Iu({ useEmitter: Au, useEmitterValue: Ge, usePublisher: Ot }), Fx = /* @__PURE__ */ ju({ useEmitter: Au, useEmitterValue: Ge, usePublisher: Ot });
|
|
6553
6545
|
function Fc(e, t, n) {
|
|
6554
6546
|
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, St.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
6555
6547
|
}
|
|
6556
|
-
const
|
|
6548
|
+
const Bx = Wr(
|
|
6557
6549
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
6558
6550
|
{
|
|
6559
6551
|
variants: {
|
|
@@ -6570,7 +6562,7 @@ const $x = Wr(
|
|
|
6570
6562
|
}
|
|
6571
6563
|
);
|
|
6572
6564
|
function Pu({ className: e, variant: t, ...n }) {
|
|
6573
|
-
return /* @__PURE__ */ c.jsx("div", { className: D(
|
|
6565
|
+
return /* @__PURE__ */ c.jsx("div", { className: D(Bx({ variant: t }), e), ...n });
|
|
6574
6566
|
}
|
|
6575
6567
|
function Q(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
6576
6568
|
return function(o) {
|
|
@@ -6578,7 +6570,7 @@ function Q(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
6578
6570
|
return t == null ? void 0 : t(o);
|
|
6579
6571
|
};
|
|
6580
6572
|
}
|
|
6581
|
-
function
|
|
6573
|
+
function $x(e, t) {
|
|
6582
6574
|
const n = f.createContext(t), r = (s) => {
|
|
6583
6575
|
const { children: i, ...a } = s, l = f.useMemo(() => a, Object.values(a));
|
|
6584
6576
|
return /* @__PURE__ */ c.jsx(n.Provider, { value: l, children: i });
|
|
@@ -6622,9 +6614,9 @@ function Gt(e, t = []) {
|
|
|
6622
6614
|
);
|
|
6623
6615
|
};
|
|
6624
6616
|
};
|
|
6625
|
-
return o.scopeName = e, [r,
|
|
6617
|
+
return o.scopeName = e, [r, Hx(o, ...t)];
|
|
6626
6618
|
}
|
|
6627
|
-
function
|
|
6619
|
+
function Hx(...e) {
|
|
6628
6620
|
const t = e[0];
|
|
6629
6621
|
if (e.length === 1) return t;
|
|
6630
6622
|
const n = () => {
|
|
@@ -6643,7 +6635,7 @@ function zx(...e) {
|
|
|
6643
6635
|
return n.scopeName = t.scopeName, n;
|
|
6644
6636
|
}
|
|
6645
6637
|
var st = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
6646
|
-
},
|
|
6638
|
+
}, zx = f[" useInsertionEffect ".trim().toString()] || st;
|
|
6647
6639
|
function xn({
|
|
6648
6640
|
prop: e,
|
|
6649
6641
|
defaultProp: t,
|
|
@@ -6651,7 +6643,7 @@ function xn({
|
|
|
6651
6643
|
},
|
|
6652
6644
|
caller: r
|
|
6653
6645
|
}) {
|
|
6654
|
-
const [o, s, i] =
|
|
6646
|
+
const [o, s, i] = Ux({
|
|
6655
6647
|
defaultProp: t,
|
|
6656
6648
|
onChange: n
|
|
6657
6649
|
}), a = e !== void 0, l = a ? e : o;
|
|
@@ -6668,7 +6660,7 @@ function xn({
|
|
|
6668
6660
|
(d) => {
|
|
6669
6661
|
var h;
|
|
6670
6662
|
if (a) {
|
|
6671
|
-
const m =
|
|
6663
|
+
const m = Wx(d) ? d(e) : d;
|
|
6672
6664
|
m !== e && ((h = i.current) == null || h.call(i, m));
|
|
6673
6665
|
} else
|
|
6674
6666
|
s(d);
|
|
@@ -6677,19 +6669,19 @@ function xn({
|
|
|
6677
6669
|
);
|
|
6678
6670
|
return [l, u];
|
|
6679
6671
|
}
|
|
6680
|
-
function
|
|
6672
|
+
function Ux({
|
|
6681
6673
|
defaultProp: e,
|
|
6682
6674
|
onChange: t
|
|
6683
6675
|
}) {
|
|
6684
6676
|
const [n, r] = f.useState(e), o = f.useRef(n), s = f.useRef(t);
|
|
6685
|
-
return
|
|
6677
|
+
return zx(() => {
|
|
6686
6678
|
s.current = t;
|
|
6687
6679
|
}, [t]), f.useEffect(() => {
|
|
6688
6680
|
var i;
|
|
6689
6681
|
o.current !== n && ((i = s.current) == null || i.call(s, n), o.current = n);
|
|
6690
6682
|
}, [n, o]), [n, r, s];
|
|
6691
6683
|
}
|
|
6692
|
-
function
|
|
6684
|
+
function Wx(e) {
|
|
6693
6685
|
return typeof e == "function";
|
|
6694
6686
|
}
|
|
6695
6687
|
function Bc(e, t) {
|
|
@@ -6716,7 +6708,7 @@ function aa(...e) {
|
|
|
6716
6708
|
function Ee(...e) {
|
|
6717
6709
|
return f.useCallback(aa(...e), e);
|
|
6718
6710
|
}
|
|
6719
|
-
var
|
|
6711
|
+
var Vx = [
|
|
6720
6712
|
"a",
|
|
6721
6713
|
"button",
|
|
6722
6714
|
"div",
|
|
@@ -6734,7 +6726,7 @@ var Gx = [
|
|
|
6734
6726
|
"span",
|
|
6735
6727
|
"svg",
|
|
6736
6728
|
"ul"
|
|
6737
|
-
], ve =
|
|
6729
|
+
], ve = Vx.reduce((e, t) => {
|
|
6738
6730
|
const n = sr(`Primitive.${t}`), r = f.forwardRef((o, s) => {
|
|
6739
6731
|
const { asChild: i, ...a } = o, l = i ? n : t;
|
|
6740
6732
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(l, { ...a, ref: s });
|
|
@@ -6744,16 +6736,16 @@ var Gx = [
|
|
|
6744
6736
|
function _u(e, t) {
|
|
6745
6737
|
e && Zo.flushSync(() => e.dispatchEvent(t));
|
|
6746
6738
|
}
|
|
6747
|
-
function
|
|
6739
|
+
function Gx(e, t) {
|
|
6748
6740
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
6749
6741
|
}
|
|
6750
6742
|
var Ct = (e) => {
|
|
6751
|
-
const { present: t, children: n } = e, r =
|
|
6743
|
+
const { present: t, children: n } = e, r = Kx(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s = Ee(r.ref, Yx(o));
|
|
6752
6744
|
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: s }) : null;
|
|
6753
6745
|
};
|
|
6754
6746
|
Ct.displayName = "Presence";
|
|
6755
|
-
function
|
|
6756
|
-
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] =
|
|
6747
|
+
function Kx(e) {
|
|
6748
|
+
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = Gx(i, {
|
|
6757
6749
|
mounted: {
|
|
6758
6750
|
UNMOUNT: "unmounted",
|
|
6759
6751
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -6804,20 +6796,20 @@ function Yx(e) {
|
|
|
6804
6796
|
function co(e) {
|
|
6805
6797
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
6806
6798
|
}
|
|
6807
|
-
function
|
|
6799
|
+
function Yx(e) {
|
|
6808
6800
|
var r, o;
|
|
6809
6801
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6810
6802
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
6811
6803
|
}
|
|
6812
|
-
var
|
|
6813
|
-
}),
|
|
6804
|
+
var qx = f[" useId ".trim().toString()] || (() => {
|
|
6805
|
+
}), Xx = 0;
|
|
6814
6806
|
function Ht(e) {
|
|
6815
|
-
const [t, n] = f.useState(
|
|
6807
|
+
const [t, n] = f.useState(qx());
|
|
6816
6808
|
return st(() => {
|
|
6817
|
-
n((r) => r ?? String(
|
|
6809
|
+
n((r) => r ?? String(Xx++));
|
|
6818
6810
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
6819
6811
|
}
|
|
6820
|
-
var ls = "Collapsible", [
|
|
6812
|
+
var ls = "Collapsible", [Jx, fR] = Gt(ls), [Zx, ca] = Jx(ls), Ou = f.forwardRef(
|
|
6821
6813
|
(e, t) => {
|
|
6822
6814
|
const {
|
|
6823
6815
|
__scopeCollapsible: n,
|
|
@@ -6833,7 +6825,7 @@ var ls = "Collapsible", [Zx, hR] = Gt(ls), [Qx, ca] = Zx(ls), Ou = f.forwardRef(
|
|
|
6833
6825
|
caller: ls
|
|
6834
6826
|
});
|
|
6835
6827
|
return /* @__PURE__ */ c.jsx(
|
|
6836
|
-
|
|
6828
|
+
Zx,
|
|
6837
6829
|
{
|
|
6838
6830
|
scope: n,
|
|
6839
6831
|
disabled: s,
|
|
@@ -6874,14 +6866,14 @@ var Mu = "CollapsibleTrigger", Du = f.forwardRef(
|
|
|
6874
6866
|
}
|
|
6875
6867
|
);
|
|
6876
6868
|
Du.displayName = Mu;
|
|
6877
|
-
var la = "CollapsibleContent",
|
|
6869
|
+
var la = "CollapsibleContent", Qx = f.forwardRef(
|
|
6878
6870
|
(e, t) => {
|
|
6879
6871
|
const { forceMount: n, ...r } = e, o = ca(la, e.__scopeCollapsible);
|
|
6880
|
-
return /* @__PURE__ */ c.jsx(Ct, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ c.jsx(
|
|
6872
|
+
return /* @__PURE__ */ c.jsx(Ct, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ c.jsx(eb, { ...r, ref: t, present: s }) });
|
|
6881
6873
|
}
|
|
6882
6874
|
);
|
|
6883
|
-
|
|
6884
|
-
var
|
|
6875
|
+
Qx.displayName = la;
|
|
6876
|
+
var eb = f.forwardRef((e, t) => {
|
|
6885
6877
|
const { __scopeCollapsible: n, present: r, children: o, ...s } = e, i = ca(la, n), [a, l] = f.useState(r), u = f.useRef(null), d = Ee(t, u), h = f.useRef(0), m = h.current, w = f.useRef(0), x = w.current, v = i.open || a, p = f.useRef(v), g = f.useRef(void 0);
|
|
6886
6878
|
return f.useEffect(() => {
|
|
6887
6879
|
const b = requestAnimationFrame(() => p.current = !1);
|
|
@@ -6917,8 +6909,8 @@ var tb = f.forwardRef((e, t) => {
|
|
|
6917
6909
|
function ua(e) {
|
|
6918
6910
|
return e ? "open" : "closed";
|
|
6919
6911
|
}
|
|
6920
|
-
var
|
|
6921
|
-
const $c =
|
|
6912
|
+
var tb = Ou;
|
|
6913
|
+
const $c = tb, Hc = Du, Lu = new URL("data:video/mp2t;base64,Ly8vIDxyZWZlcmVuY2UgbGliPSJ3ZWJ3b3JrZXIiIC8+CmltcG9ydCBtYXJrZWQgZnJvbSAnbWFya2VkJzsKCmRlY2xhcmUgY29uc3Qgc2VsZjogRGVkaWNhdGVkV29ya2VyR2xvYmFsU2NvcGU7CmNvbnN0IHNjb3BlOiBEZWRpY2F0ZWRXb3JrZXJHbG9iYWxTY29wZSA9IHNlbGY7CgpzY29wZS5wb3N0TWVzc2FnZT8uKHsgd29ya2VyX3JlYWR5OiB0cnVlIH0pOwoKc2NvcGUuYWRkRXZlbnRMaXN0ZW5lcignbWVzc2FnZScsIChldmVudDogTWVzc2FnZUV2ZW50KSA9PiB7CiAgY29uc3QgcGF5bG9hZDogYW55ID0gZXZlbnQ/LmRhdGEgPz8ge307CiAgY29uc3QgaWQgPSB0eXBlb2YgcGF5bG9hZC5pZCA9PT0gJ3N0cmluZycgPyBwYXlsb2FkLmlkIDogdW5kZWZpbmVkOwogIGNvbnN0IGtleSA9IHR5cGVvZiBwYXlsb2FkLmtleSA9PT0gJ3N0cmluZycgPyBwYXlsb2FkLmtleSA6IHVuZGVmaW5lZDsKICBjb25zdCBzb3VyY2UgPSB0eXBlb2YgcGF5bG9hZC5zb3VyY2UgPT09ICdzdHJpbmcnID8gcGF5bG9hZC5zb3VyY2UgOiB1bmRlZmluZWQ7CiAgaWYgKCFpZCB8fCB0eXBlb2Ygc291cmNlICE9PSAnc3RyaW5nJykgcmV0dXJuOwoKICB0cnkgewogICAgY29uc3QgaHRtbCA9IG1hcmtlZC5wYXJzZShzb3VyY2UpOwogICAgc2NvcGUucG9zdE1lc3NhZ2UoeyBpZCwga2V5LCBodG1sIH0pOwogIH0gY2F0Y2ggKGVycikgewogICAgc2NvcGUucG9zdE1lc3NhZ2UoeyBpZCwga2V5LCBodG1sOiBgPHByZT5FcnJvciByZW5kZXJpbmcgbWFya2Rvd246ICR7U3RyaW5nKGVycil9PC9wcmU+YCB9KTsKICB9Cn0pOwo=", import.meta.url), jr = Lu.toString(), nb = (() => {
|
|
6922
6914
|
try {
|
|
6923
6915
|
if (typeof Worker > "u" || typeof URL > "u" || typeof Blob > "u")
|
|
6924
6916
|
return !1;
|
|
@@ -6927,11 +6919,11 @@ const $c = nb, Hc = Du, Lu = new URL("data:video/mp2t;base64,Ly8vIDxyZWZlcmVuY2U
|
|
|
6927
6919
|
} catch {
|
|
6928
6920
|
return !1;
|
|
6929
6921
|
}
|
|
6930
|
-
})(),
|
|
6922
|
+
})(), rb = jr.includes("data:"), ob = (() => {
|
|
6931
6923
|
if (typeof navigator > "u") return !1;
|
|
6932
6924
|
const e = navigator.userAgent.toLowerCase();
|
|
6933
6925
|
return e.includes("safari") && !e.includes("chrome") && !e.includes("android");
|
|
6934
|
-
})(), da =
|
|
6926
|
+
})(), da = nb && !(rb && ob), fa = (e) => typeof e == "object" && e !== null, Gs = (e) => typeof e == "function" ? e : fa(e) && typeof e.parse == "function" ? e.parse : null;
|
|
6935
6927
|
let lo = null;
|
|
6936
6928
|
async function zc(e) {
|
|
6937
6929
|
try {
|
|
@@ -6942,7 +6934,7 @@ async function zc(e) {
|
|
|
6942
6934
|
throw lo = null, t;
|
|
6943
6935
|
}
|
|
6944
6936
|
}
|
|
6945
|
-
const
|
|
6937
|
+
const sb = (e) => fa(e) && typeof e.highlightElement == "function" ? { highlightElement: e.highlightElement } : null;
|
|
6946
6938
|
console.log("[MarkdownContent] worker url", jr);
|
|
6947
6939
|
const kr = [];
|
|
6948
6940
|
let Tr = !1;
|
|
@@ -6985,7 +6977,7 @@ function Ti(e) {
|
|
|
6985
6977
|
console.warn("[MarkdownContent] markWorkerOnline notify failed", t);
|
|
6986
6978
|
}
|
|
6987
6979
|
}
|
|
6988
|
-
function
|
|
6980
|
+
function ib(e) {
|
|
6989
6981
|
if (!da)
|
|
6990
6982
|
return null;
|
|
6991
6983
|
const t = e.indexOf("data:");
|
|
@@ -7006,7 +6998,7 @@ function ab(e) {
|
|
|
7006
6998
|
return console.warn("[MarkdownContent] failed to decode embedded data URI", o), null;
|
|
7007
6999
|
}
|
|
7008
7000
|
}
|
|
7009
|
-
async function
|
|
7001
|
+
async function ab(e) {
|
|
7010
7002
|
if (da)
|
|
7011
7003
|
try {
|
|
7012
7004
|
let t = "";
|
|
@@ -7032,9 +7024,9 @@ async function cb(e) {
|
|
|
7032
7024
|
console.error("[MarkdownContent] fetch worker failed", t);
|
|
7033
7025
|
}
|
|
7034
7026
|
}
|
|
7035
|
-
function
|
|
7027
|
+
function cb() {
|
|
7036
7028
|
if (jr.includes("data:")) {
|
|
7037
|
-
const e =
|
|
7029
|
+
const e = ib(jr);
|
|
7038
7030
|
if (e) {
|
|
7039
7031
|
Ti(e);
|
|
7040
7032
|
return;
|
|
@@ -7046,12 +7038,12 @@ function lb() {
|
|
|
7046
7038
|
const e = new Worker(Lu, { type: "module" });
|
|
7047
7039
|
Ti(e);
|
|
7048
7040
|
} catch (e) {
|
|
7049
|
-
console.warn("[MarkdownContent] worker constructor failed, will try fetch+blob fallback", e),
|
|
7041
|
+
console.warn("[MarkdownContent] worker constructor failed, will try fetch+blob fallback", e), ab(jr);
|
|
7050
7042
|
}
|
|
7051
7043
|
}
|
|
7052
|
-
da ?
|
|
7044
|
+
da ? cb() : console.warn("[MarkdownContent] module workers not supported; falling back to main-thread markdown parsing");
|
|
7053
7045
|
const Sr = /* @__PURE__ */ new Map();
|
|
7054
|
-
function
|
|
7046
|
+
function lb(e, t = !1) {
|
|
7055
7047
|
if (t) {
|
|
7056
7048
|
const o = e.slice(0, 128);
|
|
7057
7049
|
return `streaming:${Math.floor(e.length / 50) * 50}:${o}`;
|
|
@@ -7059,7 +7051,7 @@ function ub(e, t = !1) {
|
|
|
7059
7051
|
const n = e.slice(0, 64), r = e.length > 64 ? e.slice(-64) : "";
|
|
7060
7052
|
return `${e.length}:${n}:${r}`;
|
|
7061
7053
|
}
|
|
7062
|
-
function
|
|
7054
|
+
function ub(e, t) {
|
|
7063
7055
|
const [n, r] = ue(e), o = Ke(e), s = Ke(null);
|
|
7064
7056
|
return Ze(() => {
|
|
7065
7057
|
if (!t) {
|
|
@@ -7085,7 +7077,7 @@ function Ks({
|
|
|
7085
7077
|
useWorker: i
|
|
7086
7078
|
// NEW: Explicit control over worker usage
|
|
7087
7079
|
}) {
|
|
7088
|
-
const a =
|
|
7080
|
+
const a = ub(e, r), l = lb(a, r), [u, d] = ue(() => {
|
|
7089
7081
|
var x;
|
|
7090
7082
|
return ((x = Sr.get(l)) == null ? void 0 : x.html) ?? null;
|
|
7091
7083
|
}), h = Ke(null), m = Ke([]);
|
|
@@ -7184,7 +7176,7 @@ function Ks({
|
|
|
7184
7176
|
if (!p)
|
|
7185
7177
|
import("./index-BixObhJB.js").then((N) => {
|
|
7186
7178
|
if (g) return;
|
|
7187
|
-
const I =
|
|
7179
|
+
const I = sb(N.default ?? N);
|
|
7188
7180
|
if (I) {
|
|
7189
7181
|
p = I;
|
|
7190
7182
|
try {
|
|
@@ -7225,7 +7217,7 @@ async function Bu(e, t) {
|
|
|
7225
7217
|
async function Wc(e, t) {
|
|
7226
7218
|
return await (await Bu(`/chat/files/${e}/view`, t)).text();
|
|
7227
7219
|
}
|
|
7228
|
-
async function
|
|
7220
|
+
async function db(e, t) {
|
|
7229
7221
|
const n = await Bu(`/chat/files/${e}/download`, t), r = URL.createObjectURL(n);
|
|
7230
7222
|
let o = `file_${e}`;
|
|
7231
7223
|
try {
|
|
@@ -7236,9 +7228,9 @@ async function fb(e, t) {
|
|
|
7236
7228
|
const s = document.createElement("a");
|
|
7237
7229
|
s.href = r, s.download = o, document.body.appendChild(s), s.click(), s.remove(), setTimeout(() => URL.revokeObjectURL(r), 6e4);
|
|
7238
7230
|
}
|
|
7239
|
-
const
|
|
7231
|
+
const fb = 1, hb = 1e6;
|
|
7240
7232
|
let Ys = 0;
|
|
7241
|
-
function
|
|
7233
|
+
function pb() {
|
|
7242
7234
|
return Ys = (Ys + 1) % Number.MAX_SAFE_INTEGER, Ys.toString();
|
|
7243
7235
|
}
|
|
7244
7236
|
const qs = /* @__PURE__ */ new Map(), Vc = (e) => {
|
|
@@ -7249,14 +7241,14 @@ const qs = /* @__PURE__ */ new Map(), Vc = (e) => {
|
|
|
7249
7241
|
type: "REMOVE_TOAST",
|
|
7250
7242
|
toastId: e
|
|
7251
7243
|
});
|
|
7252
|
-
},
|
|
7244
|
+
}, hb);
|
|
7253
7245
|
qs.set(e, t);
|
|
7254
|
-
},
|
|
7246
|
+
}, mb = (e, t) => {
|
|
7255
7247
|
switch (t.type) {
|
|
7256
7248
|
case "ADD_TOAST":
|
|
7257
7249
|
return {
|
|
7258
7250
|
...e,
|
|
7259
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
7251
|
+
toasts: [t.toast, ...e.toasts].slice(0, fb)
|
|
7260
7252
|
};
|
|
7261
7253
|
case "UPDATE_TOAST":
|
|
7262
7254
|
return {
|
|
@@ -7291,12 +7283,12 @@ const qs = /* @__PURE__ */ new Map(), Vc = (e) => {
|
|
|
7291
7283
|
}, Co = [];
|
|
7292
7284
|
let To = { toasts: [] };
|
|
7293
7285
|
function Ar(e) {
|
|
7294
|
-
To =
|
|
7286
|
+
To = mb(To, e), Co.forEach((t) => {
|
|
7295
7287
|
t(To);
|
|
7296
7288
|
});
|
|
7297
7289
|
}
|
|
7298
|
-
function
|
|
7299
|
-
const t =
|
|
7290
|
+
function gb({ ...e }) {
|
|
7291
|
+
const t = pb(), n = (o) => Ar({
|
|
7300
7292
|
type: "UPDATE_TOAST",
|
|
7301
7293
|
toast: { ...o, id: t }
|
|
7302
7294
|
}), r = () => Ar({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -7323,7 +7315,7 @@ function ha() {
|
|
|
7323
7315
|
n > -1 && Co.splice(n, 1);
|
|
7324
7316
|
}), [e]), {
|
|
7325
7317
|
...e,
|
|
7326
|
-
toast:
|
|
7318
|
+
toast: gb,
|
|
7327
7319
|
dismiss: (n) => Ar({ type: "DISMISS_TOAST", toastId: n })
|
|
7328
7320
|
};
|
|
7329
7321
|
}
|
|
@@ -7336,7 +7328,7 @@ function ct(e) {
|
|
|
7336
7328
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
7337
7329
|
}, []);
|
|
7338
7330
|
}
|
|
7339
|
-
function
|
|
7331
|
+
function vb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
7340
7332
|
const n = ct(e);
|
|
7341
7333
|
f.useEffect(() => {
|
|
7342
7334
|
const r = (o) => {
|
|
@@ -7345,7 +7337,7 @@ function xb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
7345
7337
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
7346
7338
|
}, [n, t]);
|
|
7347
7339
|
}
|
|
7348
|
-
var
|
|
7340
|
+
var xb = "DismissableLayer", Ri = "dismissableLayer.update", bb = "dismissableLayer.pointerDownOutside", wb = "dismissableLayer.focusOutside", Gc, $u = f.createContext({
|
|
7349
7341
|
layers: /* @__PURE__ */ new Set(),
|
|
7350
7342
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
7351
7343
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -7359,14 +7351,14 @@ var bb = "DismissableLayer", Ri = "dismissableLayer.update", wb = "dismissableLa
|
|
|
7359
7351
|
onInteractOutside: i,
|
|
7360
7352
|
onDismiss: a,
|
|
7361
7353
|
...l
|
|
7362
|
-
} = e, u = f.useContext($u), [d, h] = f.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, w] = f.useState({}), x = Ee(t, (E) => h(E)), v = Array.from(u.layers), [p] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), g = v.indexOf(p), b = d ? v.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, R = b >= g, S =
|
|
7354
|
+
} = e, u = f.useContext($u), [d, h] = f.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, w] = f.useState({}), x = Ee(t, (E) => h(E)), v = Array.from(u.layers), [p] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), g = v.indexOf(p), b = d ? v.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, R = b >= g, S = Cb((E) => {
|
|
7363
7355
|
const N = E.target, I = [...u.branches].some((j) => j.contains(N));
|
|
7364
7356
|
!R || I || (o == null || o(E), i == null || i(E), E.defaultPrevented || a == null || a());
|
|
7365
|
-
}, m), C =
|
|
7357
|
+
}, m), C = Tb((E) => {
|
|
7366
7358
|
const N = E.target;
|
|
7367
7359
|
[...u.branches].some((j) => j.contains(N)) || (s == null || s(E), i == null || i(E), E.defaultPrevented || a == null || a());
|
|
7368
7360
|
}, m);
|
|
7369
|
-
return
|
|
7361
|
+
return vb((E) => {
|
|
7370
7362
|
b === u.layers.size - 1 && (r == null || r(E), !E.defaultPrevented && a && (E.preventDefault(), a()));
|
|
7371
7363
|
}, m), f.useEffect(() => {
|
|
7372
7364
|
if (d)
|
|
@@ -7397,8 +7389,8 @@ var bb = "DismissableLayer", Ri = "dismissableLayer.update", wb = "dismissableLa
|
|
|
7397
7389
|
);
|
|
7398
7390
|
}
|
|
7399
7391
|
);
|
|
7400
|
-
Zr.displayName =
|
|
7401
|
-
var
|
|
7392
|
+
Zr.displayName = xb;
|
|
7393
|
+
var yb = "DismissableLayerBranch", Sb = f.forwardRef((e, t) => {
|
|
7402
7394
|
const n = f.useContext($u), r = f.useRef(null), o = Ee(t, r);
|
|
7403
7395
|
return f.useEffect(() => {
|
|
7404
7396
|
const s = r.current;
|
|
@@ -7408,8 +7400,8 @@ var Sb = "DismissableLayerBranch", Cb = f.forwardRef((e, t) => {
|
|
|
7408
7400
|
};
|
|
7409
7401
|
}, [n.branches]), /* @__PURE__ */ c.jsx(ve.div, { ...e, ref: o });
|
|
7410
7402
|
});
|
|
7411
|
-
|
|
7412
|
-
function
|
|
7403
|
+
Sb.displayName = yb;
|
|
7404
|
+
function Cb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
7413
7405
|
const n = ct(e), r = f.useRef(!1), o = f.useRef(() => {
|
|
7414
7406
|
});
|
|
7415
7407
|
return f.useEffect(() => {
|
|
@@ -7417,7 +7409,7 @@ function Tb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
7417
7409
|
if (a.target && !r.current) {
|
|
7418
7410
|
let l = function() {
|
|
7419
7411
|
Hu(
|
|
7420
|
-
|
|
7412
|
+
bb,
|
|
7421
7413
|
n,
|
|
7422
7414
|
u,
|
|
7423
7415
|
{ discrete: !0 }
|
|
@@ -7439,11 +7431,11 @@ function Tb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
7439
7431
|
onPointerDownCapture: () => r.current = !0
|
|
7440
7432
|
};
|
|
7441
7433
|
}
|
|
7442
|
-
function
|
|
7434
|
+
function Tb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
7443
7435
|
const n = ct(e), r = f.useRef(!1);
|
|
7444
7436
|
return f.useEffect(() => {
|
|
7445
7437
|
const o = (s) => {
|
|
7446
|
-
s.target && !r.current && Hu(
|
|
7438
|
+
s.target && !r.current && Hu(wb, n, { originalEvent: s }, {
|
|
7447
7439
|
discrete: !1
|
|
7448
7440
|
});
|
|
7449
7441
|
};
|
|
@@ -7461,7 +7453,7 @@ function Hu(e, t, n, { discrete: r }) {
|
|
|
7461
7453
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
7462
7454
|
t && o.addEventListener(e, t, { once: !0 }), r ? _u(o, s) : o.dispatchEvent(s);
|
|
7463
7455
|
}
|
|
7464
|
-
var Xs = "focusScope.autoFocusOnMount", Js = "focusScope.autoFocusOnUnmount", Yc = { bubbles: !1, cancelable: !0 },
|
|
7456
|
+
var Xs = "focusScope.autoFocusOnMount", Js = "focusScope.autoFocusOnUnmount", Yc = { bubbles: !1, cancelable: !0 }, Rb = "FocusScope", us = f.forwardRef((e, t) => {
|
|
7465
7457
|
const {
|
|
7466
7458
|
loop: n = !1,
|
|
7467
7459
|
trapped: r = !1,
|
|
@@ -7504,7 +7496,7 @@ var Xs = "focusScope.autoFocusOnMount", Js = "focusScope.autoFocusOnUnmount", Yc
|
|
|
7504
7496
|
const v = document.activeElement;
|
|
7505
7497
|
if (!a.contains(v)) {
|
|
7506
7498
|
const g = new CustomEvent(Xs, Yc);
|
|
7507
|
-
a.addEventListener(Xs, u), a.dispatchEvent(g), g.defaultPrevented || (
|
|
7499
|
+
a.addEventListener(Xs, u), a.dispatchEvent(g), g.defaultPrevented || (Eb(Ab(zu(a)), { select: !0 }), document.activeElement === v && pn(a));
|
|
7508
7500
|
}
|
|
7509
7501
|
return () => {
|
|
7510
7502
|
a.removeEventListener(Xs, u), setTimeout(() => {
|
|
@@ -7519,7 +7511,7 @@ var Xs = "focusScope.autoFocusOnMount", Js = "focusScope.autoFocusOnUnmount", Yc
|
|
|
7519
7511
|
if (!n && !r || w.paused) return;
|
|
7520
7512
|
const p = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, g = document.activeElement;
|
|
7521
7513
|
if (p && g) {
|
|
7522
|
-
const b = v.currentTarget, [y, R] =
|
|
7514
|
+
const b = v.currentTarget, [y, R] = Nb(b);
|
|
7523
7515
|
y && R ? !v.shiftKey && g === R ? (v.preventDefault(), n && pn(y, { select: !0 })) : v.shiftKey && g === y && (v.preventDefault(), n && pn(R, { select: !0 })) : g === b && v.preventDefault();
|
|
7524
7516
|
}
|
|
7525
7517
|
},
|
|
@@ -7527,13 +7519,13 @@ var Xs = "focusScope.autoFocusOnMount", Js = "focusScope.autoFocusOnUnmount", Yc
|
|
|
7527
7519
|
);
|
|
7528
7520
|
return /* @__PURE__ */ c.jsx(ve.div, { tabIndex: -1, ...i, ref: m, onKeyDown: x });
|
|
7529
7521
|
});
|
|
7530
|
-
us.displayName =
|
|
7531
|
-
function
|
|
7522
|
+
us.displayName = Rb;
|
|
7523
|
+
function Eb(e, { select: t = !1 } = {}) {
|
|
7532
7524
|
const n = document.activeElement;
|
|
7533
7525
|
for (const r of e)
|
|
7534
7526
|
if (pn(r, { select: t }), document.activeElement !== n) return;
|
|
7535
7527
|
}
|
|
7536
|
-
function
|
|
7528
|
+
function Nb(e) {
|
|
7537
7529
|
const t = zu(e), n = qc(t, e), r = qc(t.reverse(), e);
|
|
7538
7530
|
return [n, r];
|
|
7539
7531
|
}
|
|
@@ -7549,9 +7541,9 @@ function zu(e) {
|
|
|
7549
7541
|
}
|
|
7550
7542
|
function qc(e, t) {
|
|
7551
7543
|
for (const n of e)
|
|
7552
|
-
if (!
|
|
7544
|
+
if (!Ib(n, { upTo: t })) return n;
|
|
7553
7545
|
}
|
|
7554
|
-
function
|
|
7546
|
+
function Ib(e, { upTo: t }) {
|
|
7555
7547
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
7556
7548
|
for (; e; ) {
|
|
7557
7549
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -7560,17 +7552,17 @@ function jb(e, { upTo: t }) {
|
|
|
7560
7552
|
}
|
|
7561
7553
|
return !1;
|
|
7562
7554
|
}
|
|
7563
|
-
function
|
|
7555
|
+
function jb(e) {
|
|
7564
7556
|
return e instanceof HTMLInputElement && "select" in e;
|
|
7565
7557
|
}
|
|
7566
7558
|
function pn(e, { select: t = !1 } = {}) {
|
|
7567
7559
|
if (e && e.focus) {
|
|
7568
7560
|
const n = document.activeElement;
|
|
7569
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
7561
|
+
e.focus({ preventScroll: !0 }), e !== n && jb(e) && t && e.select();
|
|
7570
7562
|
}
|
|
7571
7563
|
}
|
|
7572
|
-
var Xc =
|
|
7573
|
-
function
|
|
7564
|
+
var Xc = kb();
|
|
7565
|
+
function kb() {
|
|
7574
7566
|
let e = [];
|
|
7575
7567
|
return {
|
|
7576
7568
|
add(t) {
|
|
@@ -7587,17 +7579,17 @@ function Jc(e, t) {
|
|
|
7587
7579
|
const n = [...e], r = n.indexOf(t);
|
|
7588
7580
|
return r !== -1 && n.splice(r, 1), n;
|
|
7589
7581
|
}
|
|
7590
|
-
function
|
|
7582
|
+
function Ab(e) {
|
|
7591
7583
|
return e.filter((t) => t.tagName !== "A");
|
|
7592
7584
|
}
|
|
7593
|
-
var
|
|
7585
|
+
var Pb = "Portal", ds = f.forwardRef((e, t) => {
|
|
7594
7586
|
var a;
|
|
7595
7587
|
const { container: n, ...r } = e, [o, s] = f.useState(!1);
|
|
7596
7588
|
st(() => s(!0), []);
|
|
7597
7589
|
const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
7598
7590
|
return i ? El.createPortal(/* @__PURE__ */ c.jsx(ve.div, { ...r, ref: t }), i) : null;
|
|
7599
7591
|
});
|
|
7600
|
-
ds.displayName =
|
|
7592
|
+
ds.displayName = Pb;
|
|
7601
7593
|
var Zs = 0;
|
|
7602
7594
|
function pa() {
|
|
7603
7595
|
f.useEffect(() => {
|
|
@@ -7628,16 +7620,16 @@ function Uu(e, t) {
|
|
|
7628
7620
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
7629
7621
|
return n;
|
|
7630
7622
|
}
|
|
7631
|
-
function
|
|
7623
|
+
function _b(e, t, n) {
|
|
7632
7624
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
7633
7625
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
7634
7626
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
7635
7627
|
}
|
|
7636
|
-
var Ro = "right-scroll-bar-position", Eo = "width-before-scroll-bar",
|
|
7628
|
+
var Ro = "right-scroll-bar-position", Eo = "width-before-scroll-bar", Ob = "with-scroll-bars-hidden", Mb = "--removed-body-scroll-bar-size";
|
|
7637
7629
|
function Qs(e, t) {
|
|
7638
7630
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
7639
7631
|
}
|
|
7640
|
-
function
|
|
7632
|
+
function Db(e, t) {
|
|
7641
7633
|
var n = ue(function() {
|
|
7642
7634
|
return {
|
|
7643
7635
|
// value
|
|
@@ -7658,14 +7650,14 @@ function Lb(e, t) {
|
|
|
7658
7650
|
})[0];
|
|
7659
7651
|
return n.callback = t, n.facade;
|
|
7660
7652
|
}
|
|
7661
|
-
var
|
|
7662
|
-
function
|
|
7663
|
-
var n =
|
|
7653
|
+
var Lb = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Qc = /* @__PURE__ */ new WeakMap();
|
|
7654
|
+
function Fb(e, t) {
|
|
7655
|
+
var n = Db(null, function(r) {
|
|
7664
7656
|
return e.forEach(function(o) {
|
|
7665
7657
|
return Qs(o, r);
|
|
7666
7658
|
});
|
|
7667
7659
|
});
|
|
7668
|
-
return
|
|
7660
|
+
return Lb(function() {
|
|
7669
7661
|
var r = Qc.get(n);
|
|
7670
7662
|
if (r) {
|
|
7671
7663
|
var o = new Set(r), s = new Set(e), i = n.current;
|
|
@@ -7678,11 +7670,11 @@ function Bb(e, t) {
|
|
|
7678
7670
|
Qc.set(n, e);
|
|
7679
7671
|
}, [e]), n;
|
|
7680
7672
|
}
|
|
7681
|
-
function
|
|
7673
|
+
function Bb(e) {
|
|
7682
7674
|
return e;
|
|
7683
7675
|
}
|
|
7684
|
-
function
|
|
7685
|
-
t === void 0 && (t =
|
|
7676
|
+
function $b(e, t) {
|
|
7677
|
+
t === void 0 && (t = Bb);
|
|
7686
7678
|
var n = [], r = !1, o = {
|
|
7687
7679
|
read: function() {
|
|
7688
7680
|
if (r)
|
|
@@ -7736,9 +7728,9 @@ function Hb(e, t) {
|
|
|
7736
7728
|
};
|
|
7737
7729
|
return o;
|
|
7738
7730
|
}
|
|
7739
|
-
function
|
|
7731
|
+
function Hb(e) {
|
|
7740
7732
|
e === void 0 && (e = {});
|
|
7741
|
-
var t =
|
|
7733
|
+
var t = $b(null);
|
|
7742
7734
|
return t.options = Zt({ async: !0, ssr: !1 }, e), t;
|
|
7743
7735
|
}
|
|
7744
7736
|
var Wu = function(e) {
|
|
@@ -7751,16 +7743,16 @@ var Wu = function(e) {
|
|
|
7751
7743
|
return f.createElement(r, Zt({}, n));
|
|
7752
7744
|
};
|
|
7753
7745
|
Wu.isSideCarExport = !0;
|
|
7754
|
-
function
|
|
7746
|
+
function zb(e, t) {
|
|
7755
7747
|
return e.useMedium(t), Wu;
|
|
7756
7748
|
}
|
|
7757
|
-
var Vu =
|
|
7749
|
+
var Vu = Hb(), ei = function() {
|
|
7758
7750
|
}, fs = f.forwardRef(function(e, t) {
|
|
7759
7751
|
var n = f.useRef(null), r = f.useState({
|
|
7760
7752
|
onScrollCapture: ei,
|
|
7761
7753
|
onWheelCapture: ei,
|
|
7762
7754
|
onTouchMoveCapture: ei
|
|
7763
|
-
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, h = e.shards, m = e.sideCar, w = e.noRelative, x = e.noIsolation, v = e.inert, p = e.allowPinchZoom, g = e.as, b = g === void 0 ? "div" : g, y = e.gapMode, R = Uu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = m, C =
|
|
7755
|
+
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, h = e.shards, m = e.sideCar, w = e.noRelative, x = e.noIsolation, v = e.inert, p = e.allowPinchZoom, g = e.as, b = g === void 0 ? "div" : g, y = e.gapMode, R = Uu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = m, C = Fb([n, t]), E = Zt(Zt({}, R), o);
|
|
7764
7756
|
return f.createElement(
|
|
7765
7757
|
f.Fragment,
|
|
7766
7758
|
null,
|
|
@@ -7777,37 +7769,37 @@ fs.classNames = {
|
|
|
7777
7769
|
fullWidth: Eo,
|
|
7778
7770
|
zeroRight: Ro
|
|
7779
7771
|
};
|
|
7780
|
-
var
|
|
7772
|
+
var Ub = function() {
|
|
7781
7773
|
if (typeof __webpack_nonce__ < "u")
|
|
7782
7774
|
return __webpack_nonce__;
|
|
7783
7775
|
};
|
|
7784
|
-
function
|
|
7776
|
+
function Wb() {
|
|
7785
7777
|
if (!document)
|
|
7786
7778
|
return null;
|
|
7787
7779
|
var e = document.createElement("style");
|
|
7788
7780
|
e.type = "text/css";
|
|
7789
|
-
var t =
|
|
7781
|
+
var t = Ub();
|
|
7790
7782
|
return t && e.setAttribute("nonce", t), e;
|
|
7791
7783
|
}
|
|
7792
|
-
function
|
|
7784
|
+
function Vb(e, t) {
|
|
7793
7785
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
7794
7786
|
}
|
|
7795
|
-
function
|
|
7787
|
+
function Gb(e) {
|
|
7796
7788
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
7797
7789
|
t.appendChild(e);
|
|
7798
7790
|
}
|
|
7799
|
-
var
|
|
7791
|
+
var Kb = function() {
|
|
7800
7792
|
var e = 0, t = null;
|
|
7801
7793
|
return {
|
|
7802
7794
|
add: function(n) {
|
|
7803
|
-
e == 0 && (t =
|
|
7795
|
+
e == 0 && (t = Wb()) && (Vb(t, n), Gb(t)), e++;
|
|
7804
7796
|
},
|
|
7805
7797
|
remove: function() {
|
|
7806
7798
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
7807
7799
|
}
|
|
7808
7800
|
};
|
|
7809
|
-
},
|
|
7810
|
-
var e =
|
|
7801
|
+
}, Yb = function() {
|
|
7802
|
+
var e = Kb();
|
|
7811
7803
|
return function(t, n) {
|
|
7812
7804
|
f.useEffect(function() {
|
|
7813
7805
|
return e.add(t), function() {
|
|
@@ -7816,35 +7808,35 @@ var Yb = function() {
|
|
|
7816
7808
|
}, [t && n]);
|
|
7817
7809
|
};
|
|
7818
7810
|
}, Gu = function() {
|
|
7819
|
-
var e =
|
|
7811
|
+
var e = Yb(), t = function(n) {
|
|
7820
7812
|
var r = n.styles, o = n.dynamic;
|
|
7821
7813
|
return e(r, o), null;
|
|
7822
7814
|
};
|
|
7823
7815
|
return t;
|
|
7824
|
-
},
|
|
7816
|
+
}, qb = {
|
|
7825
7817
|
left: 0,
|
|
7826
7818
|
top: 0,
|
|
7827
7819
|
right: 0,
|
|
7828
7820
|
gap: 0
|
|
7829
7821
|
}, ti = function(e) {
|
|
7830
7822
|
return parseInt(e || "", 10) || 0;
|
|
7831
|
-
},
|
|
7823
|
+
}, Xb = function(e) {
|
|
7832
7824
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
7833
7825
|
return [ti(n), ti(r), ti(o)];
|
|
7834
|
-
},
|
|
7826
|
+
}, Jb = function(e) {
|
|
7835
7827
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
7836
|
-
return
|
|
7837
|
-
var t =
|
|
7828
|
+
return qb;
|
|
7829
|
+
var t = Xb(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
7838
7830
|
return {
|
|
7839
7831
|
left: t[0],
|
|
7840
7832
|
top: t[1],
|
|
7841
7833
|
right: t[2],
|
|
7842
7834
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
7843
7835
|
};
|
|
7844
|
-
},
|
|
7836
|
+
}, Zb = Gu(), nr = "data-scroll-locked", Qb = function(e, t, n, r) {
|
|
7845
7837
|
var o = e.left, s = e.top, i = e.right, a = e.gap;
|
|
7846
7838
|
return n === void 0 && (n = "margin"), `
|
|
7847
|
-
.`.concat(
|
|
7839
|
+
.`.concat(Ob, ` {
|
|
7848
7840
|
overflow: hidden `).concat(r, `;
|
|
7849
7841
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
7850
7842
|
}
|
|
@@ -7882,26 +7874,26 @@ var Yb = function() {
|
|
|
7882
7874
|
}
|
|
7883
7875
|
|
|
7884
7876
|
body[`).concat(nr, `] {
|
|
7885
|
-
`).concat(
|
|
7877
|
+
`).concat(Mb, ": ").concat(a, `px;
|
|
7886
7878
|
}
|
|
7887
7879
|
`);
|
|
7888
7880
|
}, el = function() {
|
|
7889
7881
|
var e = parseInt(document.body.getAttribute(nr) || "0", 10);
|
|
7890
7882
|
return isFinite(e) ? e : 0;
|
|
7891
|
-
},
|
|
7883
|
+
}, ew = function() {
|
|
7892
7884
|
f.useEffect(function() {
|
|
7893
7885
|
return document.body.setAttribute(nr, (el() + 1).toString()), function() {
|
|
7894
7886
|
var e = el() - 1;
|
|
7895
7887
|
e <= 0 ? document.body.removeAttribute(nr) : document.body.setAttribute(nr, e.toString());
|
|
7896
7888
|
};
|
|
7897
7889
|
}, []);
|
|
7898
|
-
},
|
|
7890
|
+
}, tw = function(e) {
|
|
7899
7891
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
7900
|
-
|
|
7892
|
+
ew();
|
|
7901
7893
|
var s = f.useMemo(function() {
|
|
7902
|
-
return
|
|
7894
|
+
return Jb(o);
|
|
7903
7895
|
}, [o]);
|
|
7904
|
-
return f.createElement(
|
|
7896
|
+
return f.createElement(Zb, { styles: Qb(s, !t, o, n ? "" : "!important") });
|
|
7905
7897
|
}, Ei = !1;
|
|
7906
7898
|
if (typeof window < "u")
|
|
7907
7899
|
try {
|
|
@@ -7914,7 +7906,7 @@ if (typeof window < "u")
|
|
|
7914
7906
|
} catch {
|
|
7915
7907
|
Ei = !1;
|
|
7916
7908
|
}
|
|
7917
|
-
var qn = Ei ? { passive: !1 } : !1,
|
|
7909
|
+
var qn = Ei ? { passive: !1 } : !1, nw = function(e) {
|
|
7918
7910
|
return e.tagName === "TEXTAREA";
|
|
7919
7911
|
}, Ku = function(e, t) {
|
|
7920
7912
|
if (!(e instanceof Element))
|
|
@@ -7923,11 +7915,11 @@ var qn = Ei ? { passive: !1 } : !1, rw = function(e) {
|
|
|
7923
7915
|
return (
|
|
7924
7916
|
// not-not-scrollable
|
|
7925
7917
|
n[t] !== "hidden" && // contains scroll inside self
|
|
7926
|
-
!(n.overflowY === n.overflowX && !
|
|
7918
|
+
!(n.overflowY === n.overflowX && !nw(e) && n[t] === "visible")
|
|
7927
7919
|
);
|
|
7928
|
-
},
|
|
7920
|
+
}, rw = function(e) {
|
|
7929
7921
|
return Ku(e, "overflowY");
|
|
7930
|
-
},
|
|
7922
|
+
}, ow = function(e) {
|
|
7931
7923
|
return Ku(e, "overflowX");
|
|
7932
7924
|
}, tl = function(e, t) {
|
|
7933
7925
|
var n = t.ownerDocument, r = t;
|
|
@@ -7942,14 +7934,14 @@ var qn = Ei ? { passive: !1 } : !1, rw = function(e) {
|
|
|
7942
7934
|
r = r.parentNode;
|
|
7943
7935
|
} while (r && r !== n.body);
|
|
7944
7936
|
return !1;
|
|
7945
|
-
},
|
|
7937
|
+
}, sw = function(e) {
|
|
7946
7938
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
7947
7939
|
return [
|
|
7948
7940
|
t,
|
|
7949
7941
|
n,
|
|
7950
7942
|
r
|
|
7951
7943
|
];
|
|
7952
|
-
},
|
|
7944
|
+
}, iw = function(e) {
|
|
7953
7945
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
7954
7946
|
return [
|
|
7955
7947
|
t,
|
|
@@ -7957,13 +7949,13 @@ var qn = Ei ? { passive: !1 } : !1, rw = function(e) {
|
|
|
7957
7949
|
r
|
|
7958
7950
|
];
|
|
7959
7951
|
}, Yu = function(e, t) {
|
|
7960
|
-
return e === "v" ?
|
|
7952
|
+
return e === "v" ? rw(t) : ow(t);
|
|
7961
7953
|
}, qu = function(e, t) {
|
|
7962
|
-
return e === "v" ?
|
|
7963
|
-
},
|
|
7954
|
+
return e === "v" ? sw(t) : iw(t);
|
|
7955
|
+
}, aw = function(e, t) {
|
|
7964
7956
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
7965
|
-
},
|
|
7966
|
-
var s =
|
|
7957
|
+
}, cw = function(e, t, n, r, o) {
|
|
7958
|
+
var s = aw(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, l = t.contains(a), u = !1, d = i > 0, h = 0, m = 0;
|
|
7967
7959
|
do {
|
|
7968
7960
|
if (!a)
|
|
7969
7961
|
break;
|
|
@@ -7983,22 +7975,22 @@ var qn = Ei ? { passive: !1 } : !1, rw = function(e) {
|
|
|
7983
7975
|
return [e.deltaX, e.deltaY];
|
|
7984
7976
|
}, rl = function(e) {
|
|
7985
7977
|
return e && "current" in e ? e.current : e;
|
|
7986
|
-
},
|
|
7978
|
+
}, lw = function(e, t) {
|
|
7987
7979
|
return e[0] === t[0] && e[1] === t[1];
|
|
7988
|
-
},
|
|
7980
|
+
}, uw = function(e) {
|
|
7989
7981
|
return `
|
|
7990
7982
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
7991
7983
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
7992
7984
|
`);
|
|
7993
|
-
},
|
|
7994
|
-
function
|
|
7995
|
-
var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(
|
|
7985
|
+
}, dw = 0, Xn = [];
|
|
7986
|
+
function fw(e) {
|
|
7987
|
+
var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(dw++)[0], s = f.useState(Gu)[0], i = f.useRef(e);
|
|
7996
7988
|
f.useEffect(function() {
|
|
7997
7989
|
i.current = e;
|
|
7998
7990
|
}, [e]), f.useEffect(function() {
|
|
7999
7991
|
if (e.inert) {
|
|
8000
7992
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
8001
|
-
var v =
|
|
7993
|
+
var v = _b([e.lockRef.current], (e.shards || []).map(rl), !0).filter(Boolean);
|
|
8002
7994
|
return v.forEach(function(p) {
|
|
8003
7995
|
return p.classList.add("allow-interactivity-".concat(o));
|
|
8004
7996
|
}), function() {
|
|
@@ -8022,12 +8014,12 @@ function hw(e) {
|
|
|
8022
8014
|
if (!r.current && "changedTouches" in v && (y || R) && (r.current = S), !S)
|
|
8023
8015
|
return !0;
|
|
8024
8016
|
var I = r.current || S;
|
|
8025
|
-
return
|
|
8017
|
+
return cw(I, p, v, I === "h" ? y : R);
|
|
8026
8018
|
}, []), l = f.useCallback(function(v) {
|
|
8027
8019
|
var p = v;
|
|
8028
8020
|
if (!(!Xn.length || Xn[Xn.length - 1] !== s)) {
|
|
8029
8021
|
var g = "deltaY" in p ? nl(p) : fo(p), b = t.current.filter(function(S) {
|
|
8030
|
-
return S.name === p.type && (S.target === p.target || p.target === S.shadowParent) &&
|
|
8022
|
+
return S.name === p.type && (S.target === p.target || p.target === S.shadowParent) && lw(S.delta, g);
|
|
8031
8023
|
})[0];
|
|
8032
8024
|
if (b && b.should) {
|
|
8033
8025
|
p.cancelable && p.preventDefault();
|
|
@@ -8041,7 +8033,7 @@ function hw(e) {
|
|
|
8041
8033
|
}
|
|
8042
8034
|
}
|
|
8043
8035
|
}, []), u = f.useCallback(function(v, p, g, b) {
|
|
8044
|
-
var y = { name: v, delta: p, target: g, should: b, shadowParent:
|
|
8036
|
+
var y = { name: v, delta: p, target: g, should: b, shadowParent: hw(g) };
|
|
8045
8037
|
t.current.push(y), setTimeout(function() {
|
|
8046
8038
|
t.current = t.current.filter(function(R) {
|
|
8047
8039
|
return R !== y;
|
|
@@ -8069,28 +8061,28 @@ function hw(e) {
|
|
|
8069
8061
|
return f.createElement(
|
|
8070
8062
|
f.Fragment,
|
|
8071
8063
|
null,
|
|
8072
|
-
x ? f.createElement(s, { styles:
|
|
8073
|
-
w ? f.createElement(
|
|
8064
|
+
x ? f.createElement(s, { styles: uw(o) }) : null,
|
|
8065
|
+
w ? f.createElement(tw, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
8074
8066
|
);
|
|
8075
8067
|
}
|
|
8076
|
-
function
|
|
8068
|
+
function hw(e) {
|
|
8077
8069
|
for (var t = null; e !== null; )
|
|
8078
8070
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
8079
8071
|
return t;
|
|
8080
8072
|
}
|
|
8081
|
-
const
|
|
8073
|
+
const pw = zb(Vu, fw);
|
|
8082
8074
|
var hs = f.forwardRef(function(e, t) {
|
|
8083
|
-
return f.createElement(fs, Zt({}, e, { ref: t, sideCar:
|
|
8075
|
+
return f.createElement(fs, Zt({}, e, { ref: t, sideCar: pw }));
|
|
8084
8076
|
});
|
|
8085
8077
|
hs.classNames = fs.classNames;
|
|
8086
|
-
var
|
|
8078
|
+
var mw = function(e) {
|
|
8087
8079
|
if (typeof document > "u")
|
|
8088
8080
|
return null;
|
|
8089
8081
|
var t = Array.isArray(e) ? e[0] : e;
|
|
8090
8082
|
return t.ownerDocument.body;
|
|
8091
8083
|
}, Jn = /* @__PURE__ */ new WeakMap(), ho = /* @__PURE__ */ new WeakMap(), po = {}, ni = 0, Xu = function(e) {
|
|
8092
8084
|
return e && (e.host || Xu(e.parentNode));
|
|
8093
|
-
},
|
|
8085
|
+
}, gw = function(e, t) {
|
|
8094
8086
|
return t.map(function(n) {
|
|
8095
8087
|
if (e.contains(n))
|
|
8096
8088
|
return n;
|
|
@@ -8099,8 +8091,8 @@ var gw = function(e) {
|
|
|
8099
8091
|
}).filter(function(n) {
|
|
8100
8092
|
return !!n;
|
|
8101
8093
|
});
|
|
8102
|
-
},
|
|
8103
|
-
var o =
|
|
8094
|
+
}, vw = function(e, t, n, r) {
|
|
8095
|
+
var o = gw(t, Array.isArray(e) ? e : [e]);
|
|
8104
8096
|
po[n] || (po[n] = /* @__PURE__ */ new WeakMap());
|
|
8105
8097
|
var s = po[n], i = [], a = /* @__PURE__ */ new Set(), l = new Set(o), u = function(h) {
|
|
8106
8098
|
!h || a.has(h) || (a.add(h), u(h.parentNode));
|
|
@@ -8127,11 +8119,11 @@ var gw = function(e) {
|
|
|
8127
8119
|
};
|
|
8128
8120
|
}, ma = function(e, t, n) {
|
|
8129
8121
|
n === void 0 && (n = "data-aria-hidden");
|
|
8130
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
8131
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
8122
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = mw(e);
|
|
8123
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), vw(r, o, n, "aria-hidden")) : function() {
|
|
8132
8124
|
return null;
|
|
8133
8125
|
};
|
|
8134
|
-
}, ps = "Dialog", [Ju,
|
|
8126
|
+
}, ps = "Dialog", [Ju, hR] = Gt(ps), [xw, Kt] = Ju(ps), Zu = (e) => {
|
|
8135
8127
|
const {
|
|
8136
8128
|
__scopeDialog: t,
|
|
8137
8129
|
children: n,
|
|
@@ -8146,7 +8138,7 @@ var gw = function(e) {
|
|
|
8146
8138
|
caller: ps
|
|
8147
8139
|
});
|
|
8148
8140
|
return /* @__PURE__ */ c.jsx(
|
|
8149
|
-
|
|
8141
|
+
xw,
|
|
8150
8142
|
{
|
|
8151
8143
|
scope: t,
|
|
8152
8144
|
triggerRef: a,
|
|
@@ -8182,27 +8174,27 @@ var Qu = "DialogTrigger", ed = f.forwardRef(
|
|
|
8182
8174
|
}
|
|
8183
8175
|
);
|
|
8184
8176
|
ed.displayName = Qu;
|
|
8185
|
-
var ga = "DialogPortal", [
|
|
8177
|
+
var ga = "DialogPortal", [bw, td] = Ju(ga, {
|
|
8186
8178
|
forceMount: void 0
|
|
8187
8179
|
}), nd = (e) => {
|
|
8188
8180
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Kt(ga, t);
|
|
8189
|
-
return /* @__PURE__ */ c.jsx(
|
|
8181
|
+
return /* @__PURE__ */ c.jsx(bw, { scope: t, forceMount: n, children: f.Children.map(r, (i) => /* @__PURE__ */ c.jsx(Ct, { present: n || s.open, children: /* @__PURE__ */ c.jsx(ds, { asChild: !0, container: o, children: i }) })) });
|
|
8190
8182
|
};
|
|
8191
8183
|
nd.displayName = ga;
|
|
8192
8184
|
var Ho = "DialogOverlay", rd = f.forwardRef(
|
|
8193
8185
|
(e, t) => {
|
|
8194
8186
|
const n = td(Ho, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Kt(Ho, e.__scopeDialog);
|
|
8195
|
-
return s.modal ? /* @__PURE__ */ c.jsx(Ct, { present: r || s.open, children: /* @__PURE__ */ c.jsx(
|
|
8187
|
+
return s.modal ? /* @__PURE__ */ c.jsx(Ct, { present: r || s.open, children: /* @__PURE__ */ c.jsx(yw, { ...o, ref: t }) }) : null;
|
|
8196
8188
|
}
|
|
8197
8189
|
);
|
|
8198
8190
|
rd.displayName = Ho;
|
|
8199
|
-
var
|
|
8191
|
+
var ww = sr("DialogOverlay.RemoveScroll"), yw = f.forwardRef(
|
|
8200
8192
|
(e, t) => {
|
|
8201
8193
|
const { __scopeDialog: n, ...r } = e, o = Kt(Ho, n);
|
|
8202
8194
|
return (
|
|
8203
8195
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
8204
8196
|
// ie. when `Overlay` and `Content` are siblings
|
|
8205
|
-
/* @__PURE__ */ c.jsx(hs, { as:
|
|
8197
|
+
/* @__PURE__ */ c.jsx(hs, { as: ww, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ c.jsx(
|
|
8206
8198
|
ve.div,
|
|
8207
8199
|
{
|
|
8208
8200
|
"data-state": xa(o.open),
|
|
@@ -8216,11 +8208,11 @@ var yw = sr("DialogOverlay.RemoveScroll"), Sw = f.forwardRef(
|
|
|
8216
8208
|
), Ln = "DialogContent", od = f.forwardRef(
|
|
8217
8209
|
(e, t) => {
|
|
8218
8210
|
const n = td(Ln, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Kt(Ln, e.__scopeDialog);
|
|
8219
|
-
return /* @__PURE__ */ c.jsx(Ct, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c.jsx(
|
|
8211
|
+
return /* @__PURE__ */ c.jsx(Ct, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c.jsx(Sw, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(Cw, { ...o, ref: t }) });
|
|
8220
8212
|
}
|
|
8221
8213
|
);
|
|
8222
8214
|
od.displayName = Ln;
|
|
8223
|
-
var
|
|
8215
|
+
var Sw = f.forwardRef(
|
|
8224
8216
|
(e, t) => {
|
|
8225
8217
|
const n = Kt(Ln, e.__scopeDialog), r = f.useRef(null), o = Ee(t, n.contentRef, r);
|
|
8226
8218
|
return f.useEffect(() => {
|
|
@@ -8248,7 +8240,7 @@ var Cw = f.forwardRef(
|
|
|
8248
8240
|
}
|
|
8249
8241
|
);
|
|
8250
8242
|
}
|
|
8251
|
-
),
|
|
8243
|
+
), Cw = f.forwardRef(
|
|
8252
8244
|
(e, t) => {
|
|
8253
8245
|
const n = Kt(Ln, e.__scopeDialog), r = f.useRef(!1), o = f.useRef(!1);
|
|
8254
8246
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -8299,8 +8291,8 @@ var Cw = f.forwardRef(
|
|
|
8299
8291
|
}
|
|
8300
8292
|
),
|
|
8301
8293
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
8302
|
-
/* @__PURE__ */ c.jsx(
|
|
8303
|
-
/* @__PURE__ */ c.jsx(
|
|
8294
|
+
/* @__PURE__ */ c.jsx(Tw, { titleId: a.titleId }),
|
|
8295
|
+
/* @__PURE__ */ c.jsx(Ew, { contentRef: l, descriptionId: a.descriptionId })
|
|
8304
8296
|
] })
|
|
8305
8297
|
] });
|
|
8306
8298
|
}
|
|
@@ -8336,11 +8328,11 @@ ud.displayName = ld;
|
|
|
8336
8328
|
function xa(e) {
|
|
8337
8329
|
return e ? "open" : "closed";
|
|
8338
8330
|
}
|
|
8339
|
-
var dd = "DialogTitleWarning", [
|
|
8331
|
+
var dd = "DialogTitleWarning", [pR, fd] = $x(dd, {
|
|
8340
8332
|
contentName: Ln,
|
|
8341
8333
|
titleName: va,
|
|
8342
8334
|
docsSlug: "dialog"
|
|
8343
|
-
}),
|
|
8335
|
+
}), Tw = ({ titleId: e }) => {
|
|
8344
8336
|
const t = fd(dd), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
8345
8337
|
|
|
8346
8338
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -8349,15 +8341,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
8349
8341
|
return f.useEffect(() => {
|
|
8350
8342
|
e && (document.getElementById(e) || console.error(n));
|
|
8351
8343
|
}, [n, e]), null;
|
|
8352
|
-
},
|
|
8353
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fd(
|
|
8344
|
+
}, Rw = "DialogDescriptionWarning", Ew = ({ contentRef: e, descriptionId: t }) => {
|
|
8345
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fd(Rw).contentName}}.`;
|
|
8354
8346
|
return f.useEffect(() => {
|
|
8355
8347
|
var s;
|
|
8356
8348
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
8357
8349
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
8358
8350
|
}, [r, e, t]), null;
|
|
8359
|
-
}, hd = Zu,
|
|
8360
|
-
const
|
|
8351
|
+
}, hd = Zu, Nw = ed, pd = nd, ms = rd, gs = od, _n = id, vs = cd, md = ud;
|
|
8352
|
+
const Iw = hd, jw = pd, gd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
8361
8353
|
ms,
|
|
8362
8354
|
{
|
|
8363
8355
|
ref: n,
|
|
@@ -8385,7 +8377,7 @@ const vd = f.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
8385
8377
|
}
|
|
8386
8378
|
return i(t), s;
|
|
8387
8379
|
}, [t]);
|
|
8388
|
-
return /* @__PURE__ */ c.jsxs(
|
|
8380
|
+
return /* @__PURE__ */ c.jsxs(jw, { children: [
|
|
8389
8381
|
/* @__PURE__ */ c.jsx(gd, {}),
|
|
8390
8382
|
/* @__PURE__ */ c.jsxs(
|
|
8391
8383
|
gs,
|
|
@@ -8435,7 +8427,7 @@ const bd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
8435
8427
|
}
|
|
8436
8428
|
));
|
|
8437
8429
|
bd.displayName = _n.displayName;
|
|
8438
|
-
const
|
|
8430
|
+
const kw = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
8439
8431
|
vs,
|
|
8440
8432
|
{
|
|
8441
8433
|
ref: n,
|
|
@@ -8443,8 +8435,8 @@ const Aw = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
8443
8435
|
...t
|
|
8444
8436
|
}
|
|
8445
8437
|
));
|
|
8446
|
-
|
|
8447
|
-
function
|
|
8438
|
+
kw.displayName = vs.displayName;
|
|
8439
|
+
function Aw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
8448
8440
|
const [s, i] = ue(!1), [a, l] = ue(null), [u, d] = ue(null), { toast: h } = ha();
|
|
8449
8441
|
Ze(() => {
|
|
8450
8442
|
e && n && m();
|
|
@@ -8464,7 +8456,7 @@ function Pw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
8464
8456
|
}, w = async () => {
|
|
8465
8457
|
if (n)
|
|
8466
8458
|
try {
|
|
8467
|
-
await
|
|
8459
|
+
await db(n), h({ title: "Download started", description: `Downloading ${r}` });
|
|
8468
8460
|
} catch (g) {
|
|
8469
8461
|
console.error("Failed to download file:", g), h({ title: "Download failed", description: String(g), variant: "destructive" });
|
|
8470
8462
|
}
|
|
@@ -8508,7 +8500,7 @@ function Pw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
8508
8500
|
] }),
|
|
8509
8501
|
/* @__PURE__ */ c.jsx("p", { className: "text-sm text-muted-foreground", children: "This file type cannot be previewed. Use download or external view." })
|
|
8510
8502
|
] }) : /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ c.jsx("p", { className: "text-muted-foreground", children: "No content to display" }) }), p = () => o.startsWith("image/") ? /* @__PURE__ */ c.jsx(Tl, { className: "h-5 w-5" }) : /* @__PURE__ */ c.jsx(Ya, { className: "h-5 w-5" });
|
|
8511
|
-
return /* @__PURE__ */ c.jsx(
|
|
8503
|
+
return /* @__PURE__ */ c.jsx(Iw, { open: e, onOpenChange: t, children: /* @__PURE__ */ c.jsxs(vd, { className: "max-w-4xl max-h-[90vh] overflow-hidden", children: [
|
|
8512
8504
|
/* @__PURE__ */ c.jsx(xd, { children: /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
8513
8505
|
/* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
8514
8506
|
p(),
|
|
@@ -8553,7 +8545,7 @@ function Pw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
8553
8545
|
] }) });
|
|
8554
8546
|
}
|
|
8555
8547
|
const No = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
|
|
8556
|
-
function
|
|
8548
|
+
function Pw({ className: e }) {
|
|
8557
8549
|
const [t, n] = ue(0);
|
|
8558
8550
|
return Ze(() => {
|
|
8559
8551
|
const r = setInterval(() => n((o) => (o + 1) % 4), 500);
|
|
@@ -8570,7 +8562,7 @@ function _w({ className: e }) {
|
|
|
8570
8562
|
}
|
|
8571
8563
|
);
|
|
8572
8564
|
}
|
|
8573
|
-
const
|
|
8565
|
+
const _w = q.memo(function({
|
|
8574
8566
|
message: t,
|
|
8575
8567
|
messageIndex: n,
|
|
8576
8568
|
isStreamingMessage: r = !1,
|
|
@@ -8606,7 +8598,7 @@ const Ow = q.memo(function({
|
|
|
8606
8598
|
default:
|
|
8607
8599
|
return "text-[hsl(var(--chat-bubble-ai-text))]";
|
|
8608
8600
|
}
|
|
8609
|
-
}, [M]), ee = ln(() =>
|
|
8601
|
+
}, [M]), ee = ln(() => Ow(t.content), [t.content]), L = ln(() => Bw(t.content), [t.content]), Z = ln(() => t.content.filter((ae) => ae.type === "image_url"), [t.content]), pe = ln(() => t.content.filter((ae) => ae.type === "file"), [t.content]), he = Hw(ee, r);
|
|
8610
8602
|
q.useEffect(() => {
|
|
8611
8603
|
r && ee !== he && console.log("[MessageComponent] Streaming update:", {
|
|
8612
8604
|
messageId: t.id,
|
|
@@ -8700,11 +8692,11 @@ const Ow = q.memo(function({
|
|
|
8700
8692
|
if (t.model === "reflection") {
|
|
8701
8693
|
const fe = ee.trim(), Ce = ri(fe);
|
|
8702
8694
|
if (Ce && typeof Ce == "object")
|
|
8703
|
-
return /* @__PURE__ */ c.jsx(
|
|
8695
|
+
return /* @__PURE__ */ c.jsx(zw, { data: Ce });
|
|
8704
8696
|
}
|
|
8705
8697
|
if (K && L.name === "get_issues") {
|
|
8706
8698
|
const fe = t.content.find((ot) => ot.type === "tool_result"), Ce = (fe == null ? void 0 : fe.output) ?? Zn(t.content), Be = yd(Ce);
|
|
8707
|
-
if (Be) return /* @__PURE__ */ c.jsx(
|
|
8699
|
+
if (Be) return /* @__PURE__ */ c.jsx(Uw, { issues: Be });
|
|
8708
8700
|
}
|
|
8709
8701
|
if (K && !E) {
|
|
8710
8702
|
const fe = Zn(t.content).slice(0, 80).replace(/\s+/g, " ");
|
|
@@ -8729,8 +8721,8 @@ const Ow = q.memo(function({
|
|
|
8729
8721
|
] }) });
|
|
8730
8722
|
}
|
|
8731
8723
|
if (K && E && !d) {
|
|
8732
|
-
const fe =
|
|
8733
|
-
if (fe &&
|
|
8724
|
+
const fe = Ww(t.content);
|
|
8725
|
+
if (fe && Mw(fe))
|
|
8734
8726
|
return /* @__PURE__ */ c.jsx(Ks, { content: fe.trim(), hideFallbackDuringStreaming: !0 });
|
|
8735
8727
|
const Ce = Zn(t.content);
|
|
8736
8728
|
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 }) });
|
|
@@ -8755,7 +8747,7 @@ const Ow = q.memo(function({
|
|
|
8755
8747
|
const fe = ri(he);
|
|
8756
8748
|
if (fe !== null)
|
|
8757
8749
|
return /* @__PURE__ */ c.jsx(ol, { data: fe });
|
|
8758
|
-
const Ce =
|
|
8750
|
+
const Ce = Lw(Dw(he)), Be = he.trim().length === 0;
|
|
8759
8751
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: Be ? /* @__PURE__ */ c.jsx("div", { className: "w-full", children: /* @__PURE__ */ c.jsxs("div", { className: "animate-pulse space-y-2", children: [
|
|
8760
8752
|
/* @__PURE__ */ c.jsx("div", { className: "h-3 bg-slate-200 dark:bg-slate-700 rounded w-3/4" }),
|
|
8761
8753
|
/* @__PURE__ */ c.jsx("div", { className: "h-3 bg-slate-200 dark:bg-slate-700 rounded w-5/6" }),
|
|
@@ -8771,7 +8763,7 @@ const Ow = q.memo(function({
|
|
|
8771
8763
|
}
|
|
8772
8764
|
) });
|
|
8773
8765
|
})(),
|
|
8774
|
-
/* @__PURE__ */ c.jsx("div", { className: "mt-2", children: /* @__PURE__ */ c.jsx(
|
|
8766
|
+
/* @__PURE__ */ c.jsx("div", { className: "mt-2", children: /* @__PURE__ */ c.jsx(Pw, { className: D(W, O ? "text-xs" : "text-sm") }) })
|
|
8775
8767
|
]
|
|
8776
8768
|
}
|
|
8777
8769
|
)
|
|
@@ -8845,7 +8837,7 @@ const Ow = q.memo(function({
|
|
|
8845
8837
|
}) }),
|
|
8846
8838
|
Se
|
|
8847
8839
|
] });
|
|
8848
|
-
}, je = ln(() =>
|
|
8840
|
+
}, je = ln(() => $w(t), [t]);
|
|
8849
8841
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
8850
8842
|
/* @__PURE__ */ c.jsx("div", { className: D(ce(), x.container), children: /* @__PURE__ */ c.jsxs("div", { className: D(ie(), x.content), children: [
|
|
8851
8843
|
(a || l || K) && /* @__PURE__ */ c.jsxs(
|
|
@@ -9003,7 +8995,7 @@ const Ow = q.memo(function({
|
|
|
9003
8995
|
)
|
|
9004
8996
|
] }) }),
|
|
9005
8997
|
U && /* @__PURE__ */ c.jsx(
|
|
9006
|
-
|
|
8998
|
+
Aw,
|
|
9007
8999
|
{
|
|
9008
9000
|
isOpen: _,
|
|
9009
9001
|
onClose: () => {
|
|
@@ -9016,15 +9008,15 @@ const Ow = q.memo(function({
|
|
|
9016
9008
|
)
|
|
9017
9009
|
] });
|
|
9018
9010
|
}, (e, t) => t.isStreamingMessage ? !1 : e.message.id === t.message.id && e.message.content === t.message.content && e.isStreamingMessage === t.isStreamingMessage && e.isEditing === t.isEditing);
|
|
9019
|
-
function
|
|
9011
|
+
function Ow(e) {
|
|
9020
9012
|
const t = e.filter((n) => n.type === "text").map((n) => n.text).join("");
|
|
9021
9013
|
return t || JSON.stringify(e);
|
|
9022
9014
|
}
|
|
9023
|
-
function
|
|
9015
|
+
function Mw(e) {
|
|
9024
9016
|
return e.includes(`
|
|
9025
9017
|
`) || e.includes("```") || /[-*] /.test(e) || /#+\s/.test(e);
|
|
9026
9018
|
}
|
|
9027
|
-
function
|
|
9019
|
+
function Dw(e) {
|
|
9028
9020
|
let t = e;
|
|
9029
9021
|
try {
|
|
9030
9022
|
(t.match(/```/g) || []).length % 2 === 1 && (t += "\n```"), (t.replace(/```[\s\S]*?```/g, "").match(new RegExp("(?<!`)`(?!`)", "g")) || []).length % 2 === 1 && (t += "`");
|
|
@@ -9032,7 +9024,7 @@ function Lw(e) {
|
|
|
9032
9024
|
}
|
|
9033
9025
|
return t;
|
|
9034
9026
|
}
|
|
9035
|
-
function
|
|
9027
|
+
function Lw(e) {
|
|
9036
9028
|
let t = e;
|
|
9037
9029
|
try {
|
|
9038
9030
|
const n = [], r = [], o = "\0F", s = "\0I";
|
|
@@ -9078,12 +9070,12 @@ function ol({ data: e }) {
|
|
|
9078
9070
|
s,
|
|
9079
9071
|
":"
|
|
9080
9072
|
] }),
|
|
9081
|
-
/* @__PURE__ */ c.jsx("dd", { className: "inline", children:
|
|
9073
|
+
/* @__PURE__ */ c.jsx("dd", { className: "inline", children: Fw(i) })
|
|
9082
9074
|
] }, s)) }) });
|
|
9083
9075
|
}
|
|
9084
9076
|
return /* @__PURE__ */ c.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Pr(e) });
|
|
9085
9077
|
}
|
|
9086
|
-
function
|
|
9078
|
+
function Fw(e) {
|
|
9087
9079
|
if (e == null) return String(e);
|
|
9088
9080
|
const t = typeof e;
|
|
9089
9081
|
if (t === "string" || t === "number" || t === "boolean") return String(e);
|
|
@@ -9131,17 +9123,17 @@ function Pr(e) {
|
|
|
9131
9123
|
return "";
|
|
9132
9124
|
}
|
|
9133
9125
|
}
|
|
9134
|
-
function
|
|
9126
|
+
function Bw(e) {
|
|
9135
9127
|
const t = e.find((r) => r.type === "tool_call"), n = e.find((r) => r.type === "tool_result");
|
|
9136
9128
|
return {
|
|
9137
9129
|
name: t == null ? void 0 : t.name,
|
|
9138
9130
|
toolCallId: (n == null ? void 0 : n.toolCallId) ?? (t == null ? void 0 : t.id)
|
|
9139
9131
|
};
|
|
9140
9132
|
}
|
|
9141
|
-
function
|
|
9133
|
+
function $w(e) {
|
|
9142
9134
|
return e.name && e.name.trim() ? e.name : e.model && e.model.includes("/") ? e.model.split("/").pop() || null : e.model || null;
|
|
9143
9135
|
}
|
|
9144
|
-
function
|
|
9136
|
+
function Hw(e, t) {
|
|
9145
9137
|
const [n, r] = ue(e), o = Ke(e), s = Ke(null);
|
|
9146
9138
|
return Ze(() => {
|
|
9147
9139
|
if (!t) {
|
|
@@ -9155,7 +9147,7 @@ function zw(e, t) {
|
|
|
9155
9147
|
};
|
|
9156
9148
|
}, [e, t]), n;
|
|
9157
9149
|
}
|
|
9158
|
-
function
|
|
9150
|
+
function zw({ data: e }) {
|
|
9159
9151
|
return /* @__PURE__ */ c.jsx("dl", { className: "grid grid-cols-1 gap-y-2", children: Object.entries(e).map(([t, n]) => /* @__PURE__ */ c.jsxs("div", { className: "flex", children: [
|
|
9160
9152
|
/* @__PURE__ */ c.jsxs("dt", { className: "font-semibold mr-2", children: [
|
|
9161
9153
|
t,
|
|
@@ -9208,7 +9200,7 @@ function yd(e) {
|
|
|
9208
9200
|
}
|
|
9209
9201
|
return Object.values(n).some((i) => i.length > 0) ? n : null;
|
|
9210
9202
|
}
|
|
9211
|
-
function
|
|
9203
|
+
function Uw({ issues: e }) {
|
|
9212
9204
|
const t = [
|
|
9213
9205
|
{ key: "desirability", title: "Desirability" },
|
|
9214
9206
|
{ key: "feasibility", title: "Feasibility" },
|
|
@@ -9240,7 +9232,7 @@ function Zn(e) {
|
|
|
9240
9232
|
}
|
|
9241
9233
|
return Pr(e);
|
|
9242
9234
|
}
|
|
9243
|
-
function
|
|
9235
|
+
function Ww(e) {
|
|
9244
9236
|
const t = e.find((r) => r.type === "tool_result");
|
|
9245
9237
|
if (!t) return null;
|
|
9246
9238
|
const n = t.output;
|
|
@@ -9282,7 +9274,7 @@ const sl = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Sd = q.forwa
|
|
|
9282
9274
|
};
|
|
9283
9275
|
}, [a]), j = ln(() => !x || v ? !1 : t && C ? "smooth" : !1, [t, C, x, v]);
|
|
9284
9276
|
return e.length === 0 ? /* @__PURE__ */ c.jsx("div", { className: h, style: m, children: /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center py-8 text-muted-foreground text-center max-w-md mx-auto", children: w || "No messages yet. Start a conversation!" }) }) : /* @__PURE__ */ c.jsx("div", { className: h, style: m, children: /* @__PURE__ */ c.jsx(
|
|
9285
|
-
|
|
9277
|
+
Cx,
|
|
9286
9278
|
{
|
|
9287
9279
|
ref: (P) => {
|
|
9288
9280
|
y.current = P;
|
|
@@ -9306,7 +9298,7 @@ const sl = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Sd = q.forwa
|
|
|
9306
9298
|
itemContent: (P, F) => {
|
|
9307
9299
|
const G = sl(F, P);
|
|
9308
9300
|
return /* @__PURE__ */ c.jsx("div", { className: "mb-4 last:mb-0", "data-message-id": G, children: /* @__PURE__ */ c.jsx(
|
|
9309
|
-
|
|
9301
|
+
_w,
|
|
9310
9302
|
{
|
|
9311
9303
|
message: F,
|
|
9312
9304
|
messageIndex: P,
|
|
@@ -9331,7 +9323,7 @@ const sl = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Sd = q.forwa
|
|
|
9331
9323
|
});
|
|
9332
9324
|
Sd.displayName = "MessageList";
|
|
9333
9325
|
const Io = 1e4;
|
|
9334
|
-
function
|
|
9326
|
+
function Vw(e) {
|
|
9335
9327
|
if (typeof e != "string")
|
|
9336
9328
|
return String(e);
|
|
9337
9329
|
const t = [
|
|
@@ -9358,16 +9350,16 @@ function Gw(e) {
|
|
|
9358
9350
|
`).replace(/<li>(.*?)<\/li>/gi, `- $1
|
|
9359
9351
|
`).trim() : n.replace(/</g, "<").replace(/>/g, ">").trim();
|
|
9360
9352
|
}
|
|
9361
|
-
function
|
|
9353
|
+
function Gw(e, t = Io) {
|
|
9362
9354
|
if (!e || typeof e != "string")
|
|
9363
9355
|
throw new Error("Invalid content: must be a non-empty string");
|
|
9364
9356
|
if (e.length > t)
|
|
9365
9357
|
throw new Error(`Message exceeds maximum length of ${t} characters`);
|
|
9366
9358
|
return e;
|
|
9367
9359
|
}
|
|
9368
|
-
function
|
|
9360
|
+
function Kw(e) {
|
|
9369
9361
|
let t;
|
|
9370
|
-
return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e),
|
|
9362
|
+
return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), Gw(t), Vw(t);
|
|
9371
9363
|
}
|
|
9372
9364
|
function ba(e) {
|
|
9373
9365
|
const t = e + "CollectionProvider", [n, r] = Gt(t), [o, s] = n(
|
|
@@ -9409,20 +9401,20 @@ function ba(e) {
|
|
|
9409
9401
|
r
|
|
9410
9402
|
];
|
|
9411
9403
|
}
|
|
9412
|
-
var
|
|
9404
|
+
var Yw = f.createContext(void 0);
|
|
9413
9405
|
function xs(e) {
|
|
9414
|
-
const t = f.useContext(
|
|
9406
|
+
const t = f.useContext(Yw);
|
|
9415
9407
|
return e || t || "ltr";
|
|
9416
9408
|
}
|
|
9417
|
-
const
|
|
9409
|
+
const qw = ["top", "right", "bottom", "left"], bn = Math.min, Rt = Math.max, Uo = Math.round, mo = Math.floor, tn = (e) => ({
|
|
9418
9410
|
x: e,
|
|
9419
9411
|
y: e
|
|
9420
|
-
}),
|
|
9412
|
+
}), Xw = {
|
|
9421
9413
|
left: "right",
|
|
9422
9414
|
right: "left",
|
|
9423
9415
|
bottom: "top",
|
|
9424
9416
|
top: "bottom"
|
|
9425
|
-
},
|
|
9417
|
+
}, Jw = {
|
|
9426
9418
|
start: "end",
|
|
9427
9419
|
end: "start"
|
|
9428
9420
|
};
|
|
@@ -9444,48 +9436,48 @@ function wa(e) {
|
|
|
9444
9436
|
function ya(e) {
|
|
9445
9437
|
return e === "y" ? "height" : "width";
|
|
9446
9438
|
}
|
|
9447
|
-
const
|
|
9439
|
+
const Zw = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
9448
9440
|
function en(e) {
|
|
9449
|
-
return
|
|
9441
|
+
return Zw.has(fn(e)) ? "y" : "x";
|
|
9450
9442
|
}
|
|
9451
9443
|
function Sa(e) {
|
|
9452
9444
|
return wa(en(e));
|
|
9453
9445
|
}
|
|
9454
|
-
function
|
|
9446
|
+
function Qw(e, t, n) {
|
|
9455
9447
|
n === void 0 && (n = !1);
|
|
9456
9448
|
const r = mr(e), o = Sa(e), s = ya(o);
|
|
9457
9449
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
9458
9450
|
return t.reference[s] > t.floating[s] && (i = Wo(i)), [i, Wo(i)];
|
|
9459
9451
|
}
|
|
9460
|
-
function
|
|
9452
|
+
function ey(e) {
|
|
9461
9453
|
const t = Wo(e);
|
|
9462
9454
|
return [Ii(e), t, Ii(t)];
|
|
9463
9455
|
}
|
|
9464
9456
|
function Ii(e) {
|
|
9465
|
-
return e.replace(/start|end/g, (t) =>
|
|
9457
|
+
return e.replace(/start|end/g, (t) => Jw[t]);
|
|
9466
9458
|
}
|
|
9467
|
-
const il = ["left", "right"], al = ["right", "left"],
|
|
9468
|
-
function
|
|
9459
|
+
const il = ["left", "right"], al = ["right", "left"], ty = ["top", "bottom"], ny = ["bottom", "top"];
|
|
9460
|
+
function ry(e, t, n) {
|
|
9469
9461
|
switch (e) {
|
|
9470
9462
|
case "top":
|
|
9471
9463
|
case "bottom":
|
|
9472
9464
|
return n ? t ? al : il : t ? il : al;
|
|
9473
9465
|
case "left":
|
|
9474
9466
|
case "right":
|
|
9475
|
-
return t ?
|
|
9467
|
+
return t ? ty : ny;
|
|
9476
9468
|
default:
|
|
9477
9469
|
return [];
|
|
9478
9470
|
}
|
|
9479
9471
|
}
|
|
9480
|
-
function
|
|
9472
|
+
function oy(e, t, n, r) {
|
|
9481
9473
|
const o = mr(e);
|
|
9482
|
-
let s =
|
|
9474
|
+
let s = ry(fn(e), n === "start", r);
|
|
9483
9475
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Ii)))), s;
|
|
9484
9476
|
}
|
|
9485
9477
|
function Wo(e) {
|
|
9486
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
9478
|
+
return e.replace(/left|right|bottom|top/g, (t) => Xw[t]);
|
|
9487
9479
|
}
|
|
9488
|
-
function
|
|
9480
|
+
function sy(e) {
|
|
9489
9481
|
return {
|
|
9490
9482
|
top: 0,
|
|
9491
9483
|
right: 0,
|
|
@@ -9495,7 +9487,7 @@ function iy(e) {
|
|
|
9495
9487
|
};
|
|
9496
9488
|
}
|
|
9497
9489
|
function Cd(e) {
|
|
9498
|
-
return typeof e != "number" ?
|
|
9490
|
+
return typeof e != "number" ? sy(e) : {
|
|
9499
9491
|
top: e,
|
|
9500
9492
|
right: e,
|
|
9501
9493
|
bottom: e,
|
|
@@ -9568,7 +9560,7 @@ function cl(e, t, n) {
|
|
|
9568
9560
|
}
|
|
9569
9561
|
return w;
|
|
9570
9562
|
}
|
|
9571
|
-
const
|
|
9563
|
+
const iy = async (e, t, n) => {
|
|
9572
9564
|
const {
|
|
9573
9565
|
placement: r = "bottom",
|
|
9574
9566
|
strategy: o = "absolute",
|
|
@@ -9674,7 +9666,7 @@ async function Fr(e, t) {
|
|
|
9674
9666
|
right: (S.right - g.right + x.right) / R.x
|
|
9675
9667
|
};
|
|
9676
9668
|
}
|
|
9677
|
-
const
|
|
9669
|
+
const ay = (e) => ({
|
|
9678
9670
|
name: "arrow",
|
|
9679
9671
|
options: e,
|
|
9680
9672
|
async fn(t) {
|
|
@@ -9711,7 +9703,7 @@ const cy = (e) => ({
|
|
|
9711
9703
|
reset: U
|
|
9712
9704
|
};
|
|
9713
9705
|
}
|
|
9714
|
-
}),
|
|
9706
|
+
}), cy = function(e) {
|
|
9715
9707
|
return e === void 0 && (e = {}), {
|
|
9716
9708
|
name: "flip",
|
|
9717
9709
|
options: e,
|
|
@@ -9735,12 +9727,12 @@ const cy = (e) => ({
|
|
|
9735
9727
|
} = dn(e, t);
|
|
9736
9728
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
9737
9729
|
return {};
|
|
9738
|
-
const g = fn(o), b = en(a), y = fn(a) === a, R = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = m || (y || !v ? [Wo(a)] :
|
|
9739
|
-
!m && C && S.push(...
|
|
9730
|
+
const g = fn(o), b = en(a), y = fn(a) === a, R = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = m || (y || !v ? [Wo(a)] : ey(a)), C = x !== "none";
|
|
9731
|
+
!m && C && S.push(...oy(a, v, x, R));
|
|
9740
9732
|
const E = [a, ...S], N = await Fr(t, p), I = [];
|
|
9741
9733
|
let j = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
9742
9734
|
if (d && I.push(N[g]), h) {
|
|
9743
|
-
const _ =
|
|
9735
|
+
const _ = Qw(o, i, R);
|
|
9744
9736
|
I.push(N[_[0]], N[_[1]]);
|
|
9745
9737
|
}
|
|
9746
9738
|
if (j = [...j, {
|
|
@@ -9802,9 +9794,9 @@ function ll(e, t) {
|
|
|
9802
9794
|
};
|
|
9803
9795
|
}
|
|
9804
9796
|
function ul(e) {
|
|
9805
|
-
return
|
|
9797
|
+
return qw.some((t) => e[t] >= 0);
|
|
9806
9798
|
}
|
|
9807
|
-
const
|
|
9799
|
+
const ly = function(e) {
|
|
9808
9800
|
return e === void 0 && (e = {}), {
|
|
9809
9801
|
name: "hide",
|
|
9810
9802
|
options: e,
|
|
@@ -9846,7 +9838,7 @@ const uy = function(e) {
|
|
|
9846
9838
|
}
|
|
9847
9839
|
};
|
|
9848
9840
|
}, Td = /* @__PURE__ */ new Set(["left", "top"]);
|
|
9849
|
-
async function
|
|
9841
|
+
async function uy(e, t) {
|
|
9850
9842
|
const {
|
|
9851
9843
|
placement: n,
|
|
9852
9844
|
platform: r,
|
|
@@ -9873,7 +9865,7 @@ async function dy(e, t) {
|
|
|
9873
9865
|
y: w * d
|
|
9874
9866
|
};
|
|
9875
9867
|
}
|
|
9876
|
-
const
|
|
9868
|
+
const dy = function(e) {
|
|
9877
9869
|
return e === void 0 && (e = 0), {
|
|
9878
9870
|
name: "offset",
|
|
9879
9871
|
options: e,
|
|
@@ -9884,7 +9876,7 @@ const fy = function(e) {
|
|
|
9884
9876
|
y: s,
|
|
9885
9877
|
placement: i,
|
|
9886
9878
|
middlewareData: a
|
|
9887
|
-
} = t, l = await
|
|
9879
|
+
} = t, l = await uy(t, e);
|
|
9888
9880
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
9889
9881
|
x: o + l.x,
|
|
9890
9882
|
y: s + l.y,
|
|
@@ -9895,7 +9887,7 @@ const fy = function(e) {
|
|
|
9895
9887
|
};
|
|
9896
9888
|
}
|
|
9897
9889
|
};
|
|
9898
|
-
},
|
|
9890
|
+
}, fy = function(e) {
|
|
9899
9891
|
return e === void 0 && (e = {}), {
|
|
9900
9892
|
name: "shift",
|
|
9901
9893
|
options: e,
|
|
@@ -9951,7 +9943,7 @@ const fy = function(e) {
|
|
|
9951
9943
|
};
|
|
9952
9944
|
}
|
|
9953
9945
|
};
|
|
9954
|
-
},
|
|
9946
|
+
}, hy = function(e) {
|
|
9955
9947
|
return e === void 0 && (e = {}), {
|
|
9956
9948
|
options: e,
|
|
9957
9949
|
fn(t) {
|
|
@@ -9993,7 +9985,7 @@ const fy = function(e) {
|
|
|
9993
9985
|
};
|
|
9994
9986
|
}
|
|
9995
9987
|
};
|
|
9996
|
-
},
|
|
9988
|
+
}, py = function(e) {
|
|
9997
9989
|
return e === void 0 && (e = {}), {
|
|
9998
9990
|
name: "size",
|
|
9999
9991
|
options: e,
|
|
@@ -10060,7 +10052,7 @@ function nn(e) {
|
|
|
10060
10052
|
function dl(e) {
|
|
10061
10053
|
return !bs() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof It(e).ShadowRoot;
|
|
10062
10054
|
}
|
|
10063
|
-
const
|
|
10055
|
+
const my = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
10064
10056
|
function Qr(e) {
|
|
10065
10057
|
const {
|
|
10066
10058
|
overflow: t,
|
|
@@ -10068,15 +10060,15 @@ function Qr(e) {
|
|
|
10068
10060
|
overflowY: r,
|
|
10069
10061
|
display: o
|
|
10070
10062
|
} = Wt(e);
|
|
10071
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
10063
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !my.has(o);
|
|
10072
10064
|
}
|
|
10073
|
-
const
|
|
10074
|
-
function
|
|
10075
|
-
return
|
|
10065
|
+
const gy = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
10066
|
+
function vy(e) {
|
|
10067
|
+
return gy.has(gr(e));
|
|
10076
10068
|
}
|
|
10077
|
-
const
|
|
10069
|
+
const xy = [":popover-open", ":modal"];
|
|
10078
10070
|
function ws(e) {
|
|
10079
|
-
return
|
|
10071
|
+
return xy.some((t) => {
|
|
10080
10072
|
try {
|
|
10081
10073
|
return e.matches(t);
|
|
10082
10074
|
} catch {
|
|
@@ -10084,12 +10076,12 @@ function ws(e) {
|
|
|
10084
10076
|
}
|
|
10085
10077
|
});
|
|
10086
10078
|
}
|
|
10087
|
-
const
|
|
10079
|
+
const by = ["transform", "translate", "scale", "rotate", "perspective"], wy = ["transform", "translate", "scale", "rotate", "perspective", "filter"], yy = ["paint", "layout", "strict", "content"];
|
|
10088
10080
|
function Ca(e) {
|
|
10089
10081
|
const t = Ta(), n = Ut(e) ? Wt(e) : e;
|
|
10090
|
-
return
|
|
10082
|
+
return by.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || wy.some((r) => (n.willChange || "").includes(r)) || yy.some((r) => (n.contain || "").includes(r));
|
|
10091
10083
|
}
|
|
10092
|
-
function
|
|
10084
|
+
function Sy(e) {
|
|
10093
10085
|
let t = wn(e);
|
|
10094
10086
|
for (; nn(t) && !ar(t); ) {
|
|
10095
10087
|
if (Ca(t))
|
|
@@ -10103,9 +10095,9 @@ function Cy(e) {
|
|
|
10103
10095
|
function Ta() {
|
|
10104
10096
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
10105
10097
|
}
|
|
10106
|
-
const
|
|
10098
|
+
const Cy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
10107
10099
|
function ar(e) {
|
|
10108
|
-
return
|
|
10100
|
+
return Cy.has(gr(e));
|
|
10109
10101
|
}
|
|
10110
10102
|
function Wt(e) {
|
|
10111
10103
|
return It(e).getComputedStyle(e);
|
|
@@ -10176,15 +10168,15 @@ function rr(e) {
|
|
|
10176
10168
|
y: a
|
|
10177
10169
|
};
|
|
10178
10170
|
}
|
|
10179
|
-
const
|
|
10171
|
+
const Ty = /* @__PURE__ */ tn(0);
|
|
10180
10172
|
function Id(e) {
|
|
10181
10173
|
const t = It(e);
|
|
10182
|
-
return !Ta() || !t.visualViewport ?
|
|
10174
|
+
return !Ta() || !t.visualViewport ? Ty : {
|
|
10183
10175
|
x: t.visualViewport.offsetLeft,
|
|
10184
10176
|
y: t.visualViewport.offsetTop
|
|
10185
10177
|
};
|
|
10186
10178
|
}
|
|
10187
|
-
function
|
|
10179
|
+
function Ry(e, t, n) {
|
|
10188
10180
|
return t === void 0 && (t = !1), !n || t && n !== It(e) ? !1 : t;
|
|
10189
10181
|
}
|
|
10190
10182
|
function Fn(e, t, n, r) {
|
|
@@ -10192,7 +10184,7 @@ function Fn(e, t, n, r) {
|
|
|
10192
10184
|
const o = e.getBoundingClientRect(), s = Ra(e);
|
|
10193
10185
|
let i = tn(1);
|
|
10194
10186
|
t && (r ? Ut(r) && (i = rr(r)) : i = rr(e));
|
|
10195
|
-
const a =
|
|
10187
|
+
const a = Ry(s, n, r) ? Id(s) : tn(0);
|
|
10196
10188
|
let l = (o.left + a.x) / i.x, u = (o.top + a.y) / i.y, d = o.width / i.x, h = o.height / i.y;
|
|
10197
10189
|
if (s) {
|
|
10198
10190
|
const m = It(s), w = r && Ut(r) ? It(r) : r;
|
|
@@ -10224,7 +10216,7 @@ function jd(e, t, n) {
|
|
|
10224
10216
|
y: s
|
|
10225
10217
|
};
|
|
10226
10218
|
}
|
|
10227
|
-
function
|
|
10219
|
+
function Ey(e) {
|
|
10228
10220
|
let {
|
|
10229
10221
|
elements: t,
|
|
10230
10222
|
rect: n,
|
|
@@ -10251,10 +10243,10 @@ function Ny(e) {
|
|
|
10251
10243
|
y: n.y * u.y - l.scrollTop * u.y + d.y + m.y
|
|
10252
10244
|
};
|
|
10253
10245
|
}
|
|
10254
|
-
function
|
|
10246
|
+
function Ny(e) {
|
|
10255
10247
|
return Array.from(e.getClientRects());
|
|
10256
10248
|
}
|
|
10257
|
-
function
|
|
10249
|
+
function Iy(e) {
|
|
10258
10250
|
const t = on(e), n = ys(e), r = e.ownerDocument.body, o = Rt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Rt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
10259
10251
|
let i = -n.scrollLeft + Ea(e);
|
|
10260
10252
|
const a = -n.scrollTop;
|
|
@@ -10265,7 +10257,7 @@ function jy(e) {
|
|
|
10265
10257
|
y: a
|
|
10266
10258
|
};
|
|
10267
10259
|
}
|
|
10268
|
-
function
|
|
10260
|
+
function jy(e, t) {
|
|
10269
10261
|
const n = It(e), r = on(e), o = n.visualViewport;
|
|
10270
10262
|
let s = r.clientWidth, i = r.clientHeight, a = 0, l = 0;
|
|
10271
10263
|
if (o) {
|
|
@@ -10280,8 +10272,8 @@ function ky(e, t) {
|
|
|
10280
10272
|
y: l
|
|
10281
10273
|
};
|
|
10282
10274
|
}
|
|
10283
|
-
const
|
|
10284
|
-
function
|
|
10275
|
+
const ky = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
10276
|
+
function Ay(e, t) {
|
|
10285
10277
|
const n = Fn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = nn(e) ? rr(e) : tn(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, u = r * s.y;
|
|
10286
10278
|
return {
|
|
10287
10279
|
width: i,
|
|
@@ -10293,11 +10285,11 @@ function Py(e, t) {
|
|
|
10293
10285
|
function fl(e, t, n) {
|
|
10294
10286
|
let r;
|
|
10295
10287
|
if (t === "viewport")
|
|
10296
|
-
r =
|
|
10288
|
+
r = jy(e, n);
|
|
10297
10289
|
else if (t === "document")
|
|
10298
|
-
r =
|
|
10290
|
+
r = Iy(on(e));
|
|
10299
10291
|
else if (Ut(t))
|
|
10300
|
-
r =
|
|
10292
|
+
r = Ay(t, n);
|
|
10301
10293
|
else {
|
|
10302
10294
|
const o = Id(e);
|
|
10303
10295
|
r = {
|
|
@@ -10313,7 +10305,7 @@ function kd(e, t) {
|
|
|
10313
10305
|
const n = wn(e);
|
|
10314
10306
|
return n === t || !Ut(n) || ar(n) ? !1 : Wt(n).position === "fixed" || kd(n, t);
|
|
10315
10307
|
}
|
|
10316
|
-
function
|
|
10308
|
+
function Py(e, t) {
|
|
10317
10309
|
const n = t.get(e);
|
|
10318
10310
|
if (n)
|
|
10319
10311
|
return n;
|
|
@@ -10322,18 +10314,18 @@ function _y(e, t) {
|
|
|
10322
10314
|
let i = s ? wn(e) : e;
|
|
10323
10315
|
for (; Ut(i) && !ar(i); ) {
|
|
10324
10316
|
const a = Wt(i), l = Ca(i);
|
|
10325
|
-
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o &&
|
|
10317
|
+
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && ky.has(o.position) || Qr(i) && !l && kd(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = wn(i);
|
|
10326
10318
|
}
|
|
10327
10319
|
return t.set(e, r), r;
|
|
10328
10320
|
}
|
|
10329
|
-
function
|
|
10321
|
+
function _y(e) {
|
|
10330
10322
|
let {
|
|
10331
10323
|
element: t,
|
|
10332
10324
|
boundary: n,
|
|
10333
10325
|
rootBoundary: r,
|
|
10334
10326
|
strategy: o
|
|
10335
10327
|
} = e;
|
|
10336
|
-
const i = [...n === "clippingAncestors" ? ws(t) ? [] :
|
|
10328
|
+
const i = [...n === "clippingAncestors" ? ws(t) ? [] : Py(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((u, d) => {
|
|
10337
10329
|
const h = fl(t, d, o);
|
|
10338
10330
|
return u.top = Rt(h.top, u.top), u.right = bn(h.right, u.right), u.bottom = bn(h.bottom, u.bottom), u.left = Rt(h.left, u.left), u;
|
|
10339
10331
|
}, fl(t, a, o));
|
|
@@ -10344,7 +10336,7 @@ function Oy(e) {
|
|
|
10344
10336
|
y: l.top
|
|
10345
10337
|
};
|
|
10346
10338
|
}
|
|
10347
|
-
function
|
|
10339
|
+
function Oy(e) {
|
|
10348
10340
|
const {
|
|
10349
10341
|
width: t,
|
|
10350
10342
|
height: n
|
|
@@ -10354,7 +10346,7 @@ function My(e) {
|
|
|
10354
10346
|
height: n
|
|
10355
10347
|
};
|
|
10356
10348
|
}
|
|
10357
|
-
function
|
|
10349
|
+
function My(e, t, n) {
|
|
10358
10350
|
const r = nn(t), o = on(t), s = n === "fixed", i = Fn(e, !0, s, t);
|
|
10359
10351
|
let a = {
|
|
10360
10352
|
scrollLeft: 0,
|
|
@@ -10403,14 +10395,14 @@ function Ad(e, t) {
|
|
|
10403
10395
|
return n;
|
|
10404
10396
|
}
|
|
10405
10397
|
let r = hl(e, t);
|
|
10406
|
-
for (; r &&
|
|
10398
|
+
for (; r && vy(r) && oi(r); )
|
|
10407
10399
|
r = hl(r, t);
|
|
10408
|
-
return r && ar(r) && oi(r) && !Ca(r) ? n : r ||
|
|
10400
|
+
return r && ar(r) && oi(r) && !Ca(r) ? n : r || Sy(e) || n;
|
|
10409
10401
|
}
|
|
10410
|
-
const
|
|
10402
|
+
const Dy = async function(e) {
|
|
10411
10403
|
const t = this.getOffsetParent || Ad, n = this.getDimensions, r = await n(e.floating);
|
|
10412
10404
|
return {
|
|
10413
|
-
reference:
|
|
10405
|
+
reference: My(e.reference, await t(e.floating), e.strategy),
|
|
10414
10406
|
floating: {
|
|
10415
10407
|
x: 0,
|
|
10416
10408
|
y: 0,
|
|
@@ -10419,25 +10411,25 @@ const Ly = async function(e) {
|
|
|
10419
10411
|
}
|
|
10420
10412
|
};
|
|
10421
10413
|
};
|
|
10422
|
-
function
|
|
10414
|
+
function Ly(e) {
|
|
10423
10415
|
return Wt(e).direction === "rtl";
|
|
10424
10416
|
}
|
|
10425
|
-
const
|
|
10426
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
10417
|
+
const Fy = {
|
|
10418
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ey,
|
|
10427
10419
|
getDocumentElement: on,
|
|
10428
|
-
getClippingRect:
|
|
10420
|
+
getClippingRect: _y,
|
|
10429
10421
|
getOffsetParent: Ad,
|
|
10430
|
-
getElementRects:
|
|
10431
|
-
getClientRects:
|
|
10432
|
-
getDimensions:
|
|
10422
|
+
getElementRects: Dy,
|
|
10423
|
+
getClientRects: Ny,
|
|
10424
|
+
getDimensions: Oy,
|
|
10433
10425
|
getScale: rr,
|
|
10434
10426
|
isElement: Ut,
|
|
10435
|
-
isRTL:
|
|
10427
|
+
isRTL: Ly
|
|
10436
10428
|
};
|
|
10437
10429
|
function Pd(e, t) {
|
|
10438
10430
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
10439
10431
|
}
|
|
10440
|
-
function
|
|
10432
|
+
function By(e, t) {
|
|
10441
10433
|
let n = null, r;
|
|
10442
10434
|
const o = on(e);
|
|
10443
10435
|
function s() {
|
|
@@ -10483,7 +10475,7 @@ function $y(e, t) {
|
|
|
10483
10475
|
}
|
|
10484
10476
|
return i(!0), s;
|
|
10485
10477
|
}
|
|
10486
|
-
function
|
|
10478
|
+
function $y(e, t, n, r) {
|
|
10487
10479
|
r === void 0 && (r = {});
|
|
10488
10480
|
const {
|
|
10489
10481
|
ancestorScroll: o = !0,
|
|
@@ -10497,7 +10489,7 @@ function Hy(e, t, n, r) {
|
|
|
10497
10489
|
passive: !0
|
|
10498
10490
|
}), s && g.addEventListener("resize", n);
|
|
10499
10491
|
});
|
|
10500
|
-
const h = u && a ?
|
|
10492
|
+
const h = u && a ? By(u, n) : null;
|
|
10501
10493
|
let m = -1, w = null;
|
|
10502
10494
|
i && (w = new ResizeObserver((g) => {
|
|
10503
10495
|
let [b] = g;
|
|
@@ -10519,21 +10511,21 @@ function Hy(e, t, n, r) {
|
|
|
10519
10511
|
}), h == null || h(), (g = w) == null || g.disconnect(), w = null, l && cancelAnimationFrame(x);
|
|
10520
10512
|
};
|
|
10521
10513
|
}
|
|
10522
|
-
const zy = fy, Uy =
|
|
10514
|
+
const Hy = dy, zy = fy, Uy = cy, Wy = py, Vy = ly, pl = ay, Gy = hy, Ky = (e, t, n) => {
|
|
10523
10515
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
10524
|
-
platform:
|
|
10516
|
+
platform: Fy,
|
|
10525
10517
|
...n
|
|
10526
10518
|
}, s = {
|
|
10527
10519
|
...o.platform,
|
|
10528
10520
|
_c: r
|
|
10529
10521
|
};
|
|
10530
|
-
return
|
|
10522
|
+
return iy(e, t, {
|
|
10531
10523
|
...o,
|
|
10532
10524
|
platform: s
|
|
10533
10525
|
});
|
|
10534
10526
|
};
|
|
10535
|
-
var
|
|
10536
|
-
}, jo =
|
|
10527
|
+
var Yy = typeof document < "u", qy = function() {
|
|
10528
|
+
}, jo = Yy ? Hp : qy;
|
|
10537
10529
|
function Go(e, t) {
|
|
10538
10530
|
if (e === t)
|
|
10539
10531
|
return !0;
|
|
@@ -10577,7 +10569,7 @@ function si(e) {
|
|
|
10577
10569
|
t.current = e;
|
|
10578
10570
|
}), t;
|
|
10579
10571
|
}
|
|
10580
|
-
function
|
|
10572
|
+
function Xy(e) {
|
|
10581
10573
|
e === void 0 && (e = {});
|
|
10582
10574
|
const {
|
|
10583
10575
|
placement: t = "bottom",
|
|
@@ -10612,7 +10604,7 @@ function Jy(e) {
|
|
|
10612
10604
|
strategy: n,
|
|
10613
10605
|
middleware: m
|
|
10614
10606
|
};
|
|
10615
|
-
P.current && (O.platform = P.current),
|
|
10607
|
+
P.current && (O.platform = P.current), Ky(C.current, E.current, O).then((M) => {
|
|
10616
10608
|
const K = {
|
|
10617
10609
|
...M,
|
|
10618
10610
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -10679,7 +10671,7 @@ function Jy(e) {
|
|
|
10679
10671
|
floatingStyles: se
|
|
10680
10672
|
}), [d, G, Y, U, se]);
|
|
10681
10673
|
}
|
|
10682
|
-
const
|
|
10674
|
+
const Jy = (e) => {
|
|
10683
10675
|
function t(n) {
|
|
10684
10676
|
return {}.hasOwnProperty.call(n, "current");
|
|
10685
10677
|
}
|
|
@@ -10700,14 +10692,17 @@ const Zy = (e) => {
|
|
|
10700
10692
|
}).fn(n) : {};
|
|
10701
10693
|
}
|
|
10702
10694
|
};
|
|
10703
|
-
},
|
|
10695
|
+
}, Zy = (e, t) => ({
|
|
10696
|
+
...Hy(e),
|
|
10697
|
+
options: [e, t]
|
|
10698
|
+
}), Qy = (e, t) => ({
|
|
10704
10699
|
...zy(e),
|
|
10705
10700
|
options: [e, t]
|
|
10706
10701
|
}), e0 = (e, t) => ({
|
|
10707
|
-
...
|
|
10702
|
+
...Gy(e),
|
|
10708
10703
|
options: [e, t]
|
|
10709
10704
|
}), t0 = (e, t) => ({
|
|
10710
|
-
...
|
|
10705
|
+
...Uy(e),
|
|
10711
10706
|
options: [e, t]
|
|
10712
10707
|
}), n0 = (e, t) => ({
|
|
10713
10708
|
...Wy(e),
|
|
@@ -10716,13 +10711,10 @@ const Zy = (e) => {
|
|
|
10716
10711
|
...Vy(e),
|
|
10717
10712
|
options: [e, t]
|
|
10718
10713
|
}), o0 = (e, t) => ({
|
|
10719
|
-
...
|
|
10720
|
-
options: [e, t]
|
|
10721
|
-
}), s0 = (e, t) => ({
|
|
10722
|
-
...Zy(e),
|
|
10714
|
+
...Jy(e),
|
|
10723
10715
|
options: [e, t]
|
|
10724
10716
|
});
|
|
10725
|
-
var
|
|
10717
|
+
var s0 = "Arrow", Od = f.forwardRef((e, t) => {
|
|
10726
10718
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
10727
10719
|
return /* @__PURE__ */ c.jsx(
|
|
10728
10720
|
ve.svg,
|
|
@@ -10737,8 +10729,8 @@ var i0 = "Arrow", Od = f.forwardRef((e, t) => {
|
|
|
10737
10729
|
}
|
|
10738
10730
|
);
|
|
10739
10731
|
});
|
|
10740
|
-
Od.displayName =
|
|
10741
|
-
var
|
|
10732
|
+
Od.displayName = s0;
|
|
10733
|
+
var i0 = Od;
|
|
10742
10734
|
function Md(e) {
|
|
10743
10735
|
const [t, n] = f.useState(void 0);
|
|
10744
10736
|
return st(() => {
|
|
@@ -10761,9 +10753,9 @@ function Md(e) {
|
|
|
10761
10753
|
n(void 0);
|
|
10762
10754
|
}, [e]), t;
|
|
10763
10755
|
}
|
|
10764
|
-
var Na = "Popper", [Dd, vr] = Gt(Na), [
|
|
10756
|
+
var Na = "Popper", [Dd, vr] = Gt(Na), [a0, Ld] = Dd(Na), Fd = (e) => {
|
|
10765
10757
|
const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
|
|
10766
|
-
return /* @__PURE__ */ c.jsx(
|
|
10758
|
+
return /* @__PURE__ */ c.jsx(a0, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
10767
10759
|
};
|
|
10768
10760
|
Fd.displayName = Na;
|
|
10769
10761
|
var Bd = "PopperAnchor", $d = f.forwardRef(
|
|
@@ -10776,7 +10768,7 @@ var Bd = "PopperAnchor", $d = f.forwardRef(
|
|
|
10776
10768
|
}
|
|
10777
10769
|
);
|
|
10778
10770
|
$d.displayName = Bd;
|
|
10779
|
-
var Ia = "PopperContent", [
|
|
10771
|
+
var Ia = "PopperContent", [c0, l0] = Dd(Ia), Hd = f.forwardRef(
|
|
10780
10772
|
(e, t) => {
|
|
10781
10773
|
var B, A, H, J, ce, ie;
|
|
10782
10774
|
const {
|
|
@@ -10796,38 +10788,38 @@ var Ia = "PopperContent", [l0, u0] = Dd(Ia), Hd = f.forwardRef(
|
|
|
10796
10788
|
...v
|
|
10797
10789
|
} = e, p = Ld(Ia, n), [g, b] = f.useState(null), y = Ee(t, (Ae) => b(Ae)), [R, S] = f.useState(null), C = Md(R), E = (C == null ? void 0 : C.width) ?? 0, N = (C == null ? void 0 : C.height) ?? 0, I = r + (s !== "center" ? "-" + s : ""), j = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, P = Array.isArray(u) ? u : [u], F = P.length > 0, G = {
|
|
10798
10790
|
padding: j,
|
|
10799
|
-
boundary: P.filter(
|
|
10791
|
+
boundary: P.filter(d0),
|
|
10800
10792
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
10801
10793
|
altBoundary: F
|
|
10802
|
-
}, { refs: _, floatingStyles: Y, placement: U, isPositioned: se, middlewareData: O } =
|
|
10794
|
+
}, { refs: _, floatingStyles: Y, placement: U, isPositioned: se, middlewareData: O } = Xy({
|
|
10803
10795
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
10804
10796
|
strategy: "fixed",
|
|
10805
10797
|
placement: I,
|
|
10806
|
-
whileElementsMounted: (...Ae) =>
|
|
10798
|
+
whileElementsMounted: (...Ae) => $y(...Ae, {
|
|
10807
10799
|
animationFrame: w === "always"
|
|
10808
10800
|
}),
|
|
10809
10801
|
elements: {
|
|
10810
10802
|
reference: p.anchor
|
|
10811
10803
|
},
|
|
10812
10804
|
middleware: [
|
|
10813
|
-
|
|
10814
|
-
l &&
|
|
10805
|
+
Zy({ mainAxis: o + N, alignmentAxis: i }),
|
|
10806
|
+
l && Qy({
|
|
10815
10807
|
mainAxis: !0,
|
|
10816
10808
|
crossAxis: !1,
|
|
10817
|
-
limiter: h === "partial" ?
|
|
10809
|
+
limiter: h === "partial" ? e0() : void 0,
|
|
10818
10810
|
...G
|
|
10819
10811
|
}),
|
|
10820
|
-
l &&
|
|
10821
|
-
|
|
10812
|
+
l && t0({ ...G }),
|
|
10813
|
+
n0({
|
|
10822
10814
|
...G,
|
|
10823
10815
|
apply: ({ elements: Ae, rects: _e, availableWidth: je, availableHeight: ae }) => {
|
|
10824
10816
|
const { width: Ne, height: Se } = _e.reference, fe = Ae.floating.style;
|
|
10825
10817
|
fe.setProperty("--radix-popper-available-width", `${je}px`), fe.setProperty("--radix-popper-available-height", `${ae}px`), fe.setProperty("--radix-popper-anchor-width", `${Ne}px`), fe.setProperty("--radix-popper-anchor-height", `${Se}px`);
|
|
10826
10818
|
}
|
|
10827
10819
|
}),
|
|
10828
|
-
R &&
|
|
10829
|
-
|
|
10830
|
-
m &&
|
|
10820
|
+
R && o0({ element: R, padding: a }),
|
|
10821
|
+
f0({ arrowWidth: E, arrowHeight: N }),
|
|
10822
|
+
m && r0({ strategy: "referenceHidden", ...G })
|
|
10831
10823
|
]
|
|
10832
10824
|
}), [M, K] = Wd(U), W = ct(x);
|
|
10833
10825
|
st(() => {
|
|
@@ -10861,7 +10853,7 @@ var Ia = "PopperContent", [l0, u0] = Dd(Ia), Hd = f.forwardRef(
|
|
|
10861
10853
|
},
|
|
10862
10854
|
dir: e.dir,
|
|
10863
10855
|
children: /* @__PURE__ */ c.jsx(
|
|
10864
|
-
|
|
10856
|
+
c0,
|
|
10865
10857
|
{
|
|
10866
10858
|
scope: n,
|
|
10867
10859
|
placedSide: M,
|
|
@@ -10891,13 +10883,13 @@ var Ia = "PopperContent", [l0, u0] = Dd(Ia), Hd = f.forwardRef(
|
|
|
10891
10883
|
}
|
|
10892
10884
|
);
|
|
10893
10885
|
Hd.displayName = Ia;
|
|
10894
|
-
var zd = "PopperArrow",
|
|
10886
|
+
var zd = "PopperArrow", u0 = {
|
|
10895
10887
|
top: "bottom",
|
|
10896
10888
|
right: "left",
|
|
10897
10889
|
bottom: "top",
|
|
10898
10890
|
left: "right"
|
|
10899
10891
|
}, Ud = f.forwardRef(function(t, n) {
|
|
10900
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
10892
|
+
const { __scopePopper: r, ...o } = t, s = l0(zd, r), i = u0[s.placedSide];
|
|
10901
10893
|
return (
|
|
10902
10894
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
10903
10895
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -10926,7 +10918,7 @@ var zd = "PopperArrow", d0 = {
|
|
|
10926
10918
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
10927
10919
|
},
|
|
10928
10920
|
children: /* @__PURE__ */ c.jsx(
|
|
10929
|
-
|
|
10921
|
+
i0,
|
|
10930
10922
|
{
|
|
10931
10923
|
...o,
|
|
10932
10924
|
ref: n,
|
|
@@ -10942,10 +10934,10 @@ var zd = "PopperArrow", d0 = {
|
|
|
10942
10934
|
);
|
|
10943
10935
|
});
|
|
10944
10936
|
Ud.displayName = zd;
|
|
10945
|
-
function
|
|
10937
|
+
function d0(e) {
|
|
10946
10938
|
return e !== null;
|
|
10947
10939
|
}
|
|
10948
|
-
var
|
|
10940
|
+
var f0 = (e) => ({
|
|
10949
10941
|
name: "transformOrigin",
|
|
10950
10942
|
options: e,
|
|
10951
10943
|
fn(t) {
|
|
@@ -10959,14 +10951,14 @@ function Wd(e) {
|
|
|
10959
10951
|
const [t, n = "center"] = e.split("-");
|
|
10960
10952
|
return [t, n];
|
|
10961
10953
|
}
|
|
10962
|
-
var ja = Fd, ka = $d, Aa = Hd, Pa = Ud, ii = "rovingFocusGroup.onEntryFocus",
|
|
10954
|
+
var ja = Fd, ka = $d, Aa = Hd, Pa = Ud, ii = "rovingFocusGroup.onEntryFocus", h0 = { bubbles: !1, cancelable: !0 }, eo = "RovingFocusGroup", [ki, Vd, p0] = ba(eo), [m0, Gd] = Gt(
|
|
10963
10955
|
eo,
|
|
10964
|
-
[
|
|
10965
|
-
), [
|
|
10966
|
-
(e, t) => /* @__PURE__ */ c.jsx(ki.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(ki.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(
|
|
10956
|
+
[p0]
|
|
10957
|
+
), [g0, v0] = m0(eo), Kd = f.forwardRef(
|
|
10958
|
+
(e, t) => /* @__PURE__ */ c.jsx(ki.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(ki.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(x0, { ...e, ref: t }) }) })
|
|
10967
10959
|
);
|
|
10968
10960
|
Kd.displayName = eo;
|
|
10969
|
-
var
|
|
10961
|
+
var x0 = f.forwardRef((e, t) => {
|
|
10970
10962
|
const {
|
|
10971
10963
|
__scopeRovingFocusGroup: n,
|
|
10972
10964
|
orientation: r,
|
|
@@ -10989,7 +10981,7 @@ var b0 = f.forwardRef((e, t) => {
|
|
|
10989
10981
|
if (N)
|
|
10990
10982
|
return N.addEventListener(ii, y), () => N.removeEventListener(ii, y);
|
|
10991
10983
|
}, [y]), /* @__PURE__ */ c.jsx(
|
|
10992
|
-
|
|
10984
|
+
g0,
|
|
10993
10985
|
{
|
|
10994
10986
|
scope: n,
|
|
10995
10987
|
orientation: r,
|
|
@@ -11023,7 +11015,7 @@ var b0 = f.forwardRef((e, t) => {
|
|
|
11023
11015
|
onFocus: Q(e.onFocus, (N) => {
|
|
11024
11016
|
const I = !S.current;
|
|
11025
11017
|
if (N.target === N.currentTarget && I && !g) {
|
|
11026
|
-
const j = new CustomEvent(ii,
|
|
11018
|
+
const j = new CustomEvent(ii, h0);
|
|
11027
11019
|
if (N.currentTarget.dispatchEvent(j), !j.defaultPrevented) {
|
|
11028
11020
|
const P = R().filter((U) => U.focusable), F = P.find((U) => U.active), G = P.find((U) => U.id === v), Y = [F, G, ...P].filter(
|
|
11029
11021
|
Boolean
|
|
@@ -11047,7 +11039,7 @@ var b0 = f.forwardRef((e, t) => {
|
|
|
11047
11039
|
tabStopId: s,
|
|
11048
11040
|
children: i,
|
|
11049
11041
|
...a
|
|
11050
|
-
} = e, l = Ht(), u = s || l, d =
|
|
11042
|
+
} = e, l = Ht(), u = s || l, d = v0(Yd, n), h = d.currentTabStopId === u, m = Vd(n), { onFocusableItemAdd: w, onFocusableItemRemove: x, currentTabStopId: v } = d;
|
|
11051
11043
|
return f.useEffect(() => {
|
|
11052
11044
|
if (r)
|
|
11053
11045
|
return w(), () => x();
|
|
@@ -11075,7 +11067,7 @@ var b0 = f.forwardRef((e, t) => {
|
|
|
11075
11067
|
return;
|
|
11076
11068
|
}
|
|
11077
11069
|
if (p.target !== p.currentTarget) return;
|
|
11078
|
-
const g =
|
|
11070
|
+
const g = y0(p, d.orientation, d.dir);
|
|
11079
11071
|
if (g !== void 0) {
|
|
11080
11072
|
if (p.metaKey || p.ctrlKey || p.altKey || p.shiftKey) return;
|
|
11081
11073
|
p.preventDefault();
|
|
@@ -11084,7 +11076,7 @@ var b0 = f.forwardRef((e, t) => {
|
|
|
11084
11076
|
else if (g === "prev" || g === "next") {
|
|
11085
11077
|
g === "prev" && y.reverse();
|
|
11086
11078
|
const R = y.indexOf(p.currentTarget);
|
|
11087
|
-
y = d.loop ?
|
|
11079
|
+
y = d.loop ? S0(y, R + 1) : y.slice(R + 1);
|
|
11088
11080
|
}
|
|
11089
11081
|
setTimeout(() => Xd(y));
|
|
11090
11082
|
}
|
|
@@ -11097,7 +11089,7 @@ var b0 = f.forwardRef((e, t) => {
|
|
|
11097
11089
|
}
|
|
11098
11090
|
);
|
|
11099
11091
|
qd.displayName = Yd;
|
|
11100
|
-
var
|
|
11092
|
+
var b0 = {
|
|
11101
11093
|
ArrowLeft: "prev",
|
|
11102
11094
|
ArrowUp: "prev",
|
|
11103
11095
|
ArrowRight: "next",
|
|
@@ -11107,33 +11099,33 @@ var w0 = {
|
|
|
11107
11099
|
PageDown: "last",
|
|
11108
11100
|
End: "last"
|
|
11109
11101
|
};
|
|
11110
|
-
function
|
|
11102
|
+
function w0(e, t) {
|
|
11111
11103
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
11112
11104
|
}
|
|
11113
|
-
function
|
|
11114
|
-
const r =
|
|
11105
|
+
function y0(e, t, n) {
|
|
11106
|
+
const r = w0(e.key, n);
|
|
11115
11107
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
11116
|
-
return
|
|
11108
|
+
return b0[r];
|
|
11117
11109
|
}
|
|
11118
11110
|
function Xd(e, t = !1) {
|
|
11119
11111
|
const n = document.activeElement;
|
|
11120
11112
|
for (const r of e)
|
|
11121
11113
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
11122
11114
|
}
|
|
11123
|
-
function
|
|
11115
|
+
function S0(e, t) {
|
|
11124
11116
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
11125
11117
|
}
|
|
11126
|
-
var
|
|
11118
|
+
var C0 = Kd, T0 = qd, Ai = ["Enter", " "], R0 = ["ArrowDown", "PageUp", "Home"], Jd = ["ArrowUp", "PageDown", "End"], E0 = [...R0, ...Jd], N0 = {
|
|
11127
11119
|
ltr: [...Ai, "ArrowRight"],
|
|
11128
11120
|
rtl: [...Ai, "ArrowLeft"]
|
|
11129
|
-
},
|
|
11121
|
+
}, I0 = {
|
|
11130
11122
|
ltr: ["ArrowLeft"],
|
|
11131
11123
|
rtl: ["ArrowRight"]
|
|
11132
|
-
}, to = "Menu", [$r,
|
|
11133
|
-
|
|
11124
|
+
}, to = "Menu", [$r, j0, k0] = ba(to), [Un, Zd] = Gt(to, [
|
|
11125
|
+
k0,
|
|
11134
11126
|
vr,
|
|
11135
11127
|
Gd
|
|
11136
|
-
]), Ss = vr(), Qd = Gd(), [
|
|
11128
|
+
]), Ss = vr(), Qd = Gd(), [A0, Wn] = Un(to), [P0, no] = Un(to), ef = (e) => {
|
|
11137
11129
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Ss(t), [l, u] = f.useState(null), d = f.useRef(!1), h = ct(s), m = xs(o);
|
|
11138
11130
|
return f.useEffect(() => {
|
|
11139
11131
|
const w = () => {
|
|
@@ -11143,7 +11135,7 @@ var T0 = Kd, R0 = qd, Ai = ["Enter", " "], E0 = ["ArrowDown", "PageUp", "Home"],
|
|
|
11143
11135
|
document.removeEventListener("keydown", w, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
11144
11136
|
};
|
|
11145
11137
|
}, []), /* @__PURE__ */ c.jsx(ja, { ...a, children: /* @__PURE__ */ c.jsx(
|
|
11146
|
-
|
|
11138
|
+
A0,
|
|
11147
11139
|
{
|
|
11148
11140
|
scope: t,
|
|
11149
11141
|
open: n,
|
|
@@ -11151,7 +11143,7 @@ var T0 = Kd, R0 = qd, Ai = ["Enter", " "], E0 = ["ArrowDown", "PageUp", "Home"],
|
|
|
11151
11143
|
content: l,
|
|
11152
11144
|
onContentChange: u,
|
|
11153
11145
|
children: /* @__PURE__ */ c.jsx(
|
|
11154
|
-
|
|
11146
|
+
P0,
|
|
11155
11147
|
{
|
|
11156
11148
|
scope: t,
|
|
11157
11149
|
onClose: f.useCallback(() => h(!1), [h]),
|
|
@@ -11165,26 +11157,26 @@ var T0 = Kd, R0 = qd, Ai = ["Enter", " "], E0 = ["ArrowDown", "PageUp", "Home"],
|
|
|
11165
11157
|
) });
|
|
11166
11158
|
};
|
|
11167
11159
|
ef.displayName = to;
|
|
11168
|
-
var
|
|
11160
|
+
var _0 = "MenuAnchor", _a = f.forwardRef(
|
|
11169
11161
|
(e, t) => {
|
|
11170
11162
|
const { __scopeMenu: n, ...r } = e, o = Ss(n);
|
|
11171
11163
|
return /* @__PURE__ */ c.jsx(ka, { ...o, ...r, ref: t });
|
|
11172
11164
|
}
|
|
11173
11165
|
);
|
|
11174
|
-
_a.displayName =
|
|
11175
|
-
var Oa = "MenuPortal", [
|
|
11166
|
+
_a.displayName = _0;
|
|
11167
|
+
var Oa = "MenuPortal", [O0, tf] = Un(Oa, {
|
|
11176
11168
|
forceMount: void 0
|
|
11177
11169
|
}), nf = (e) => {
|
|
11178
11170
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Wn(Oa, t);
|
|
11179
|
-
return /* @__PURE__ */ c.jsx(
|
|
11171
|
+
return /* @__PURE__ */ c.jsx(O0, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(Ct, { present: n || s.open, children: /* @__PURE__ */ c.jsx(ds, { asChild: !0, container: o, children: r }) }) });
|
|
11180
11172
|
};
|
|
11181
11173
|
nf.displayName = Oa;
|
|
11182
|
-
var Mt = "MenuContent", [
|
|
11174
|
+
var Mt = "MenuContent", [M0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
11183
11175
|
(e, t) => {
|
|
11184
11176
|
const n = tf(Mt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Wn(Mt, e.__scopeMenu), i = no(Mt, e.__scopeMenu);
|
|
11185
|
-
return /* @__PURE__ */ c.jsx($r.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(Ct, { present: r || s.open, children: /* @__PURE__ */ c.jsx($r.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ c.jsx(
|
|
11177
|
+
return /* @__PURE__ */ c.jsx($r.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(Ct, { present: r || s.open, children: /* @__PURE__ */ c.jsx($r.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ c.jsx(D0, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(L0, { ...o, ref: t }) }) }) });
|
|
11186
11178
|
}
|
|
11187
|
-
),
|
|
11179
|
+
), D0 = f.forwardRef(
|
|
11188
11180
|
(e, t) => {
|
|
11189
11181
|
const n = Wn(Mt, e.__scopeMenu), r = f.useRef(null), o = Ee(t, r);
|
|
11190
11182
|
return f.useEffect(() => {
|
|
@@ -11207,7 +11199,7 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11207
11199
|
}
|
|
11208
11200
|
);
|
|
11209
11201
|
}
|
|
11210
|
-
),
|
|
11202
|
+
), L0 = f.forwardRef((e, t) => {
|
|
11211
11203
|
const n = Wn(Mt, e.__scopeMenu);
|
|
11212
11204
|
return /* @__PURE__ */ c.jsx(
|
|
11213
11205
|
Da,
|
|
@@ -11220,7 +11212,7 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11220
11212
|
onDismiss: () => n.onOpenChange(!1)
|
|
11221
11213
|
}
|
|
11222
11214
|
);
|
|
11223
|
-
}),
|
|
11215
|
+
}), F0 = sr("MenuContent.ScrollLock"), Da = f.forwardRef(
|
|
11224
11216
|
(e, t) => {
|
|
11225
11217
|
const {
|
|
11226
11218
|
__scopeMenu: n,
|
|
@@ -11237,9 +11229,9 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11237
11229
|
onDismiss: w,
|
|
11238
11230
|
disableOutsideScroll: x,
|
|
11239
11231
|
...v
|
|
11240
|
-
} = e, p = Wn(Mt, n), g = no(Mt, n), b = Ss(n), y = Qd(n), R =
|
|
11232
|
+
} = e, p = Wn(Mt, n), g = no(Mt, n), b = Ss(n), y = Qd(n), R = j0(n), [S, C] = f.useState(null), E = f.useRef(null), N = Ee(t, E, p.onContentChange), I = f.useRef(0), j = f.useRef(""), P = f.useRef(0), F = f.useRef(null), G = f.useRef("right"), _ = f.useRef(0), Y = x ? hs : f.Fragment, U = x ? { as: F0, allowPinchZoom: !0 } : void 0, se = (M) => {
|
|
11241
11233
|
var B, A;
|
|
11242
|
-
const K = j.current + M, W = R().filter((H) => !H.disabled), ee = document.activeElement, L = (B = W.find((H) => H.ref.current === ee)) == null ? void 0 : B.textValue, Z = W.map((H) => H.textValue), pe =
|
|
11234
|
+
const K = j.current + M, W = R().filter((H) => !H.disabled), ee = document.activeElement, L = (B = W.find((H) => H.ref.current === ee)) == null ? void 0 : B.textValue, Z = W.map((H) => H.textValue), pe = X0(Z, K, L), he = (A = W.find((H) => H.textValue === pe)) == null ? void 0 : A.ref.current;
|
|
11243
11235
|
(function H(J) {
|
|
11244
11236
|
j.current = J, window.clearTimeout(I.current), J !== "" && (I.current = window.setTimeout(() => H(""), 1e3));
|
|
11245
11237
|
})(K), he && setTimeout(() => he.focus());
|
|
@@ -11247,10 +11239,10 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11247
11239
|
f.useEffect(() => () => window.clearTimeout(I.current), []), pa();
|
|
11248
11240
|
const O = f.useCallback((M) => {
|
|
11249
11241
|
var W, ee;
|
|
11250
|
-
return G.current === ((W = F.current) == null ? void 0 : W.side) &&
|
|
11242
|
+
return G.current === ((W = F.current) == null ? void 0 : W.side) && Z0(M, (ee = F.current) == null ? void 0 : ee.area);
|
|
11251
11243
|
}, []);
|
|
11252
11244
|
return /* @__PURE__ */ c.jsx(
|
|
11253
|
-
|
|
11245
|
+
M0,
|
|
11254
11246
|
{
|
|
11255
11247
|
scope: n,
|
|
11256
11248
|
searchRef: j,
|
|
@@ -11298,7 +11290,7 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11298
11290
|
onInteractOutside: m,
|
|
11299
11291
|
onDismiss: w,
|
|
11300
11292
|
children: /* @__PURE__ */ c.jsx(
|
|
11301
|
-
|
|
11293
|
+
C0,
|
|
11302
11294
|
{
|
|
11303
11295
|
asChild: !0,
|
|
11304
11296
|
...y,
|
|
@@ -11327,10 +11319,10 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11327
11319
|
const W = M.target.closest("[data-radix-menu-content]") === M.currentTarget, ee = M.ctrlKey || M.altKey || M.metaKey, L = M.key.length === 1;
|
|
11328
11320
|
W && (M.key === "Tab" && M.preventDefault(), !ee && L && se(M.key));
|
|
11329
11321
|
const Z = E.current;
|
|
11330
|
-
if (M.target !== Z || !
|
|
11322
|
+
if (M.target !== Z || !E0.includes(M.key)) return;
|
|
11331
11323
|
M.preventDefault();
|
|
11332
11324
|
const he = R().filter((B) => !B.disabled).map((B) => B.ref.current);
|
|
11333
|
-
Jd.includes(M.key) && he.reverse(),
|
|
11325
|
+
Jd.includes(M.key) && he.reverse(), Y0(he);
|
|
11334
11326
|
}),
|
|
11335
11327
|
onBlur: Q(e.onBlur, (M) => {
|
|
11336
11328
|
M.currentTarget.contains(M.target) || (window.clearTimeout(I.current), j.current = "");
|
|
@@ -11358,20 +11350,20 @@ var Mt = "MenuContent", [D0, Ma] = Un(Mt), rf = f.forwardRef(
|
|
|
11358
11350
|
}
|
|
11359
11351
|
);
|
|
11360
11352
|
rf.displayName = Mt;
|
|
11361
|
-
var
|
|
11353
|
+
var B0 = "MenuGroup", La = f.forwardRef(
|
|
11362
11354
|
(e, t) => {
|
|
11363
11355
|
const { __scopeMenu: n, ...r } = e;
|
|
11364
11356
|
return /* @__PURE__ */ c.jsx(ve.div, { role: "group", ...r, ref: t });
|
|
11365
11357
|
}
|
|
11366
11358
|
);
|
|
11367
|
-
La.displayName =
|
|
11368
|
-
var
|
|
11359
|
+
La.displayName = B0;
|
|
11360
|
+
var $0 = "MenuLabel", of = f.forwardRef(
|
|
11369
11361
|
(e, t) => {
|
|
11370
11362
|
const { __scopeMenu: n, ...r } = e;
|
|
11371
11363
|
return /* @__PURE__ */ c.jsx(ve.div, { ...r, ref: t });
|
|
11372
11364
|
}
|
|
11373
11365
|
);
|
|
11374
|
-
of.displayName =
|
|
11366
|
+
of.displayName = $0;
|
|
11375
11367
|
var Ko = "MenuItem", gl = "menu.itemSelect", Cs = f.forwardRef(
|
|
11376
11368
|
(e, t) => {
|
|
11377
11369
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = f.useRef(null), i = no(Ko, e.__scopeMenu), a = Ma(Ko, e.__scopeMenu), l = Ee(t, s), u = f.useRef(!1), d = () => {
|
|
@@ -11417,7 +11409,7 @@ var sf = f.forwardRef(
|
|
|
11417
11409
|
scope: n,
|
|
11418
11410
|
disabled: r,
|
|
11419
11411
|
textValue: o ?? m,
|
|
11420
|
-
children: /* @__PURE__ */ c.jsx(
|
|
11412
|
+
children: /* @__PURE__ */ c.jsx(T0, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ c.jsx(
|
|
11421
11413
|
ve.div,
|
|
11422
11414
|
{
|
|
11423
11415
|
role: "menuitem",
|
|
@@ -11443,7 +11435,7 @@ var sf = f.forwardRef(
|
|
|
11443
11435
|
}
|
|
11444
11436
|
);
|
|
11445
11437
|
}
|
|
11446
|
-
),
|
|
11438
|
+
), H0 = "MenuCheckboxItem", af = f.forwardRef(
|
|
11447
11439
|
(e, t) => {
|
|
11448
11440
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
11449
11441
|
return /* @__PURE__ */ c.jsx(ff, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ c.jsx(
|
|
@@ -11463,21 +11455,21 @@ var sf = f.forwardRef(
|
|
|
11463
11455
|
) });
|
|
11464
11456
|
}
|
|
11465
11457
|
);
|
|
11466
|
-
af.displayName =
|
|
11467
|
-
var cf = "MenuRadioGroup", [
|
|
11458
|
+
af.displayName = H0;
|
|
11459
|
+
var cf = "MenuRadioGroup", [z0, U0] = Un(
|
|
11468
11460
|
cf,
|
|
11469
11461
|
{ value: void 0, onValueChange: () => {
|
|
11470
11462
|
} }
|
|
11471
11463
|
), lf = f.forwardRef(
|
|
11472
11464
|
(e, t) => {
|
|
11473
11465
|
const { value: n, onValueChange: r, ...o } = e, s = ct(r);
|
|
11474
|
-
return /* @__PURE__ */ c.jsx(
|
|
11466
|
+
return /* @__PURE__ */ c.jsx(z0, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ c.jsx(La, { ...o, ref: t }) });
|
|
11475
11467
|
}
|
|
11476
11468
|
);
|
|
11477
11469
|
lf.displayName = cf;
|
|
11478
11470
|
var uf = "MenuRadioItem", df = f.forwardRef(
|
|
11479
11471
|
(e, t) => {
|
|
11480
|
-
const { value: n, ...r } = e, o =
|
|
11472
|
+
const { value: n, ...r } = e, o = U0(uf, e.__scopeMenu), s = n === o.value;
|
|
11481
11473
|
return /* @__PURE__ */ c.jsx(ff, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ c.jsx(
|
|
11482
11474
|
Cs,
|
|
11483
11475
|
{
|
|
@@ -11499,12 +11491,12 @@ var uf = "MenuRadioItem", df = f.forwardRef(
|
|
|
11499
11491
|
}
|
|
11500
11492
|
);
|
|
11501
11493
|
df.displayName = uf;
|
|
11502
|
-
var Fa = "MenuItemIndicator", [ff,
|
|
11494
|
+
var Fa = "MenuItemIndicator", [ff, W0] = Un(
|
|
11503
11495
|
Fa,
|
|
11504
11496
|
{ checked: !1 }
|
|
11505
11497
|
), hf = f.forwardRef(
|
|
11506
11498
|
(e, t) => {
|
|
11507
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
11499
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = W0(Fa, n);
|
|
11508
11500
|
return /* @__PURE__ */ c.jsx(
|
|
11509
11501
|
Ct,
|
|
11510
11502
|
{
|
|
@@ -11522,7 +11514,7 @@ var Fa = "MenuItemIndicator", [ff, V0] = Un(
|
|
|
11522
11514
|
}
|
|
11523
11515
|
);
|
|
11524
11516
|
hf.displayName = Fa;
|
|
11525
|
-
var
|
|
11517
|
+
var V0 = "MenuSeparator", pf = f.forwardRef(
|
|
11526
11518
|
(e, t) => {
|
|
11527
11519
|
const { __scopeMenu: n, ...r } = e;
|
|
11528
11520
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -11536,15 +11528,15 @@ var G0 = "MenuSeparator", pf = f.forwardRef(
|
|
|
11536
11528
|
);
|
|
11537
11529
|
}
|
|
11538
11530
|
);
|
|
11539
|
-
pf.displayName =
|
|
11540
|
-
var
|
|
11531
|
+
pf.displayName = V0;
|
|
11532
|
+
var G0 = "MenuArrow", mf = f.forwardRef(
|
|
11541
11533
|
(e, t) => {
|
|
11542
11534
|
const { __scopeMenu: n, ...r } = e, o = Ss(n);
|
|
11543
11535
|
return /* @__PURE__ */ c.jsx(Pa, { ...o, ...r, ref: t });
|
|
11544
11536
|
}
|
|
11545
11537
|
);
|
|
11546
|
-
mf.displayName =
|
|
11547
|
-
var
|
|
11538
|
+
mf.displayName = G0;
|
|
11539
|
+
var K0 = "MenuSub", [mR, gf] = Un(K0), Rr = "MenuSubTrigger", vf = f.forwardRef(
|
|
11548
11540
|
(e, t) => {
|
|
11549
11541
|
const n = Wn(Rr, e.__scopeMenu), r = no(Rr, e.__scopeMenu), o = gf(Rr, e.__scopeMenu), s = Ma(Rr, e.__scopeMenu), i = f.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, u = { __scopeMenu: e.__scopeMenu }, d = f.useCallback(() => {
|
|
11550
11542
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
@@ -11608,7 +11600,7 @@ var Y0 = "MenuSub", [gR, gf] = Un(Y0), Rr = "MenuSubTrigger", vf = f.forwardRef(
|
|
|
11608
11600
|
onKeyDown: Q(e.onKeyDown, (h) => {
|
|
11609
11601
|
var w;
|
|
11610
11602
|
const m = s.searchRef.current !== "";
|
|
11611
|
-
e.disabled || m && h.key === " " ||
|
|
11603
|
+
e.disabled || m && h.key === " " || N0[r.dir].includes(h.key) && (n.onOpenChange(!0), (w = n.content) == null || w.focus(), h.preventDefault());
|
|
11612
11604
|
})
|
|
11613
11605
|
}
|
|
11614
11606
|
) });
|
|
@@ -11643,7 +11635,7 @@ var xf = "MenuSubContent", bf = f.forwardRef(
|
|
|
11643
11635
|
}),
|
|
11644
11636
|
onKeyDown: Q(e.onKeyDown, (d) => {
|
|
11645
11637
|
var w;
|
|
11646
|
-
const h = d.currentTarget.contains(d.target), m =
|
|
11638
|
+
const h = d.currentTarget.contains(d.target), m = I0[i.dir].includes(d.key);
|
|
11647
11639
|
h && m && (s.onOpenChange(!1), (w = a.trigger) == null || w.focus(), d.preventDefault());
|
|
11648
11640
|
})
|
|
11649
11641
|
}
|
|
@@ -11660,24 +11652,24 @@ function Yo(e) {
|
|
|
11660
11652
|
function Ba(e) {
|
|
11661
11653
|
return Yo(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
11662
11654
|
}
|
|
11663
|
-
function
|
|
11655
|
+
function Y0(e) {
|
|
11664
11656
|
const t = document.activeElement;
|
|
11665
11657
|
for (const n of e)
|
|
11666
11658
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
11667
11659
|
}
|
|
11668
|
-
function
|
|
11660
|
+
function q0(e, t) {
|
|
11669
11661
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
11670
11662
|
}
|
|
11671
|
-
function
|
|
11663
|
+
function X0(e, t, n) {
|
|
11672
11664
|
const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
11673
|
-
let i =
|
|
11665
|
+
let i = q0(e, Math.max(s, 0));
|
|
11674
11666
|
o.length === 1 && (i = i.filter((u) => u !== n));
|
|
11675
11667
|
const l = i.find(
|
|
11676
11668
|
(u) => u.toLowerCase().startsWith(o.toLowerCase())
|
|
11677
11669
|
);
|
|
11678
11670
|
return l !== n ? l : void 0;
|
|
11679
11671
|
}
|
|
11680
|
-
function
|
|
11672
|
+
function J0(e, t) {
|
|
11681
11673
|
const { x: n, y: r } = e;
|
|
11682
11674
|
let o = !1;
|
|
11683
11675
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -11686,18 +11678,18 @@ function Z0(e, t) {
|
|
|
11686
11678
|
}
|
|
11687
11679
|
return o;
|
|
11688
11680
|
}
|
|
11689
|
-
function
|
|
11681
|
+
function Z0(e, t) {
|
|
11690
11682
|
if (!t) return !1;
|
|
11691
11683
|
const n = { x: e.clientX, y: e.clientY };
|
|
11692
|
-
return
|
|
11684
|
+
return J0(n, t);
|
|
11693
11685
|
}
|
|
11694
11686
|
function Hr(e) {
|
|
11695
11687
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
11696
11688
|
}
|
|
11697
|
-
var
|
|
11689
|
+
var Q0 = ef, eS = _a, tS = nf, nS = rf, rS = La, oS = of, sS = Cs, iS = af, aS = lf, cS = df, lS = hf, uS = pf, dS = mf, fS = vf, hS = bf, Ts = "DropdownMenu", [pS, gR] = Gt(
|
|
11698
11690
|
Ts,
|
|
11699
11691
|
[Zd]
|
|
11700
|
-
), vt = Zd(), [
|
|
11692
|
+
), vt = Zd(), [mS, yf] = pS(Ts), Sf = (e) => {
|
|
11701
11693
|
const {
|
|
11702
11694
|
__scopeDropdownMenu: t,
|
|
11703
11695
|
children: n,
|
|
@@ -11713,7 +11705,7 @@ var eS = ef, tS = _a, nS = nf, rS = rf, oS = La, sS = of, iS = Cs, aS = af, cS =
|
|
|
11713
11705
|
caller: Ts
|
|
11714
11706
|
});
|
|
11715
11707
|
return /* @__PURE__ */ c.jsx(
|
|
11716
|
-
|
|
11708
|
+
mS,
|
|
11717
11709
|
{
|
|
11718
11710
|
scope: t,
|
|
11719
11711
|
triggerId: Ht(),
|
|
@@ -11723,7 +11715,7 @@ var eS = ef, tS = _a, nS = nf, rS = rf, oS = La, sS = of, iS = Cs, aS = af, cS =
|
|
|
11723
11715
|
onOpenChange: h,
|
|
11724
11716
|
onOpenToggle: f.useCallback(() => h((m) => !m), [h]),
|
|
11725
11717
|
modal: a,
|
|
11726
|
-
children: /* @__PURE__ */ c.jsx(
|
|
11718
|
+
children: /* @__PURE__ */ c.jsx(Q0, { ...l, open: d, onOpenChange: h, dir: r, modal: a, children: n })
|
|
11727
11719
|
}
|
|
11728
11720
|
);
|
|
11729
11721
|
};
|
|
@@ -11731,7 +11723,7 @@ Sf.displayName = Ts;
|
|
|
11731
11723
|
var Cf = "DropdownMenuTrigger", Tf = f.forwardRef(
|
|
11732
11724
|
(e, t) => {
|
|
11733
11725
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = yf(Cf, n), i = vt(n);
|
|
11734
|
-
return /* @__PURE__ */ c.jsx(
|
|
11726
|
+
return /* @__PURE__ */ c.jsx(eS, { asChild: !0, ...i, children: /* @__PURE__ */ c.jsx(
|
|
11735
11727
|
ve.button,
|
|
11736
11728
|
{
|
|
11737
11729
|
type: "button",
|
|
@@ -11755,16 +11747,16 @@ var Cf = "DropdownMenuTrigger", Tf = f.forwardRef(
|
|
|
11755
11747
|
}
|
|
11756
11748
|
);
|
|
11757
11749
|
Tf.displayName = Cf;
|
|
11758
|
-
var
|
|
11750
|
+
var gS = "DropdownMenuPortal", Rf = (e) => {
|
|
11759
11751
|
const { __scopeDropdownMenu: t, ...n } = e, r = vt(t);
|
|
11760
|
-
return /* @__PURE__ */ c.jsx(
|
|
11752
|
+
return /* @__PURE__ */ c.jsx(tS, { ...r, ...n });
|
|
11761
11753
|
};
|
|
11762
|
-
Rf.displayName =
|
|
11754
|
+
Rf.displayName = gS;
|
|
11763
11755
|
var Ef = "DropdownMenuContent", Nf = f.forwardRef(
|
|
11764
11756
|
(e, t) => {
|
|
11765
11757
|
const { __scopeDropdownMenu: n, ...r } = e, o = yf(Ef, n), s = vt(n), i = f.useRef(!1);
|
|
11766
11758
|
return /* @__PURE__ */ c.jsx(
|
|
11767
|
-
|
|
11759
|
+
nS,
|
|
11768
11760
|
{
|
|
11769
11761
|
id: o.contentId,
|
|
11770
11762
|
"aria-labelledby": o.triggerId,
|
|
@@ -11792,68 +11784,68 @@ var Ef = "DropdownMenuContent", Nf = f.forwardRef(
|
|
|
11792
11784
|
}
|
|
11793
11785
|
);
|
|
11794
11786
|
Nf.displayName = Ef;
|
|
11795
|
-
var
|
|
11787
|
+
var vS = "DropdownMenuGroup", xS = f.forwardRef(
|
|
11796
11788
|
(e, t) => {
|
|
11797
11789
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11798
|
-
return /* @__PURE__ */ c.jsx(
|
|
11790
|
+
return /* @__PURE__ */ c.jsx(rS, { ...o, ...r, ref: t });
|
|
11799
11791
|
}
|
|
11800
11792
|
);
|
|
11801
|
-
|
|
11802
|
-
var
|
|
11793
|
+
xS.displayName = vS;
|
|
11794
|
+
var bS = "DropdownMenuLabel", If = f.forwardRef(
|
|
11803
11795
|
(e, t) => {
|
|
11804
11796
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11805
|
-
return /* @__PURE__ */ c.jsx(
|
|
11797
|
+
return /* @__PURE__ */ c.jsx(oS, { ...o, ...r, ref: t });
|
|
11806
11798
|
}
|
|
11807
11799
|
);
|
|
11808
|
-
If.displayName =
|
|
11809
|
-
var
|
|
11800
|
+
If.displayName = bS;
|
|
11801
|
+
var wS = "DropdownMenuItem", jf = f.forwardRef(
|
|
11810
11802
|
(e, t) => {
|
|
11811
11803
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11812
|
-
return /* @__PURE__ */ c.jsx(
|
|
11804
|
+
return /* @__PURE__ */ c.jsx(sS, { ...o, ...r, ref: t });
|
|
11813
11805
|
}
|
|
11814
11806
|
);
|
|
11815
|
-
jf.displayName =
|
|
11816
|
-
var
|
|
11807
|
+
jf.displayName = wS;
|
|
11808
|
+
var yS = "DropdownMenuCheckboxItem", kf = f.forwardRef((e, t) => {
|
|
11809
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11810
|
+
return /* @__PURE__ */ c.jsx(iS, { ...o, ...r, ref: t });
|
|
11811
|
+
});
|
|
11812
|
+
kf.displayName = yS;
|
|
11813
|
+
var SS = "DropdownMenuRadioGroup", CS = f.forwardRef((e, t) => {
|
|
11817
11814
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11818
11815
|
return /* @__PURE__ */ c.jsx(aS, { ...o, ...r, ref: t });
|
|
11819
11816
|
});
|
|
11820
|
-
|
|
11821
|
-
var
|
|
11817
|
+
CS.displayName = SS;
|
|
11818
|
+
var TS = "DropdownMenuRadioItem", Af = f.forwardRef((e, t) => {
|
|
11822
11819
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11823
11820
|
return /* @__PURE__ */ c.jsx(cS, { ...o, ...r, ref: t });
|
|
11824
11821
|
});
|
|
11825
|
-
|
|
11826
|
-
var RS = "
|
|
11822
|
+
Af.displayName = TS;
|
|
11823
|
+
var RS = "DropdownMenuItemIndicator", Pf = f.forwardRef((e, t) => {
|
|
11827
11824
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11828
11825
|
return /* @__PURE__ */ c.jsx(lS, { ...o, ...r, ref: t });
|
|
11829
11826
|
});
|
|
11830
|
-
|
|
11831
|
-
var ES = "
|
|
11827
|
+
Pf.displayName = RS;
|
|
11828
|
+
var ES = "DropdownMenuSeparator", _f = f.forwardRef((e, t) => {
|
|
11832
11829
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11833
11830
|
return /* @__PURE__ */ c.jsx(uS, { ...o, ...r, ref: t });
|
|
11834
11831
|
});
|
|
11835
|
-
|
|
11836
|
-
var NS = "
|
|
11837
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11838
|
-
return /* @__PURE__ */ c.jsx(dS, { ...o, ...r, ref: t });
|
|
11839
|
-
});
|
|
11840
|
-
_f.displayName = NS;
|
|
11841
|
-
var IS = "DropdownMenuArrow", jS = f.forwardRef(
|
|
11832
|
+
_f.displayName = ES;
|
|
11833
|
+
var NS = "DropdownMenuArrow", IS = f.forwardRef(
|
|
11842
11834
|
(e, t) => {
|
|
11843
11835
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11844
|
-
return /* @__PURE__ */ c.jsx(
|
|
11836
|
+
return /* @__PURE__ */ c.jsx(dS, { ...o, ...r, ref: t });
|
|
11845
11837
|
}
|
|
11846
11838
|
);
|
|
11847
|
-
|
|
11848
|
-
var
|
|
11839
|
+
IS.displayName = NS;
|
|
11840
|
+
var jS = "DropdownMenuSubTrigger", Of = f.forwardRef((e, t) => {
|
|
11849
11841
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11850
|
-
return /* @__PURE__ */ c.jsx(
|
|
11842
|
+
return /* @__PURE__ */ c.jsx(fS, { ...o, ...r, ref: t });
|
|
11851
11843
|
});
|
|
11852
|
-
Of.displayName =
|
|
11853
|
-
var
|
|
11844
|
+
Of.displayName = jS;
|
|
11845
|
+
var kS = "DropdownMenuSubContent", Mf = f.forwardRef((e, t) => {
|
|
11854
11846
|
const { __scopeDropdownMenu: n, ...r } = e, o = vt(n);
|
|
11855
11847
|
return /* @__PURE__ */ c.jsx(
|
|
11856
|
-
|
|
11848
|
+
hS,
|
|
11857
11849
|
{
|
|
11858
11850
|
...o,
|
|
11859
11851
|
...r,
|
|
@@ -11869,9 +11861,9 @@ var AS = "DropdownMenuSubContent", Mf = f.forwardRef((e, t) => {
|
|
|
11869
11861
|
}
|
|
11870
11862
|
);
|
|
11871
11863
|
});
|
|
11872
|
-
Mf.displayName =
|
|
11873
|
-
var
|
|
11874
|
-
const
|
|
11864
|
+
Mf.displayName = kS;
|
|
11865
|
+
var AS = Sf, PS = Tf, _S = Rf, Df = Nf, Lf = If, Ff = jf, Bf = kf, $f = Af, Hf = Pf, zf = _f, Uf = Of, Wf = Mf;
|
|
11866
|
+
const OS = AS, MS = PS, DS = f.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(
|
|
11875
11867
|
Uf,
|
|
11876
11868
|
{
|
|
11877
11869
|
ref: o,
|
|
@@ -11887,8 +11879,8 @@ const MS = PS, DS = _S, LS = f.forwardRef(({ className: e, inset: t, children: n
|
|
|
11887
11879
|
]
|
|
11888
11880
|
}
|
|
11889
11881
|
));
|
|
11890
|
-
|
|
11891
|
-
const
|
|
11882
|
+
DS.displayName = Uf.displayName;
|
|
11883
|
+
const LS = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
11892
11884
|
Wf,
|
|
11893
11885
|
{
|
|
11894
11886
|
ref: n,
|
|
@@ -11899,8 +11891,8 @@ const FS = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
11899
11891
|
...t
|
|
11900
11892
|
}
|
|
11901
11893
|
));
|
|
11902
|
-
|
|
11903
|
-
const Vf = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(
|
|
11894
|
+
LS.displayName = Wf.displayName;
|
|
11895
|
+
const Vf = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(_S, { children: /* @__PURE__ */ c.jsx(
|
|
11904
11896
|
Df,
|
|
11905
11897
|
{
|
|
11906
11898
|
ref: r,
|
|
@@ -11926,7 +11918,7 @@ const Pi = f.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
11926
11918
|
}
|
|
11927
11919
|
));
|
|
11928
11920
|
Pi.displayName = Ff.displayName;
|
|
11929
|
-
const
|
|
11921
|
+
const FS = f.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ c.jsxs(
|
|
11930
11922
|
Bf,
|
|
11931
11923
|
{
|
|
11932
11924
|
ref: o,
|
|
@@ -11942,8 +11934,8 @@ const BS = f.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
11942
11934
|
]
|
|
11943
11935
|
}
|
|
11944
11936
|
));
|
|
11945
|
-
|
|
11946
|
-
const
|
|
11937
|
+
FS.displayName = Bf.displayName;
|
|
11938
|
+
const BS = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ c.jsxs(
|
|
11947
11939
|
$f,
|
|
11948
11940
|
{
|
|
11949
11941
|
ref: r,
|
|
@@ -11958,8 +11950,8 @@ const $S = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
11958
11950
|
]
|
|
11959
11951
|
}
|
|
11960
11952
|
));
|
|
11961
|
-
|
|
11962
|
-
const
|
|
11953
|
+
BS.displayName = $f.displayName;
|
|
11954
|
+
const $S = f.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ c.jsx(
|
|
11963
11955
|
Lf,
|
|
11964
11956
|
{
|
|
11965
11957
|
ref: r,
|
|
@@ -11971,8 +11963,8 @@ const HS = f.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
11971
11963
|
...n
|
|
11972
11964
|
}
|
|
11973
11965
|
));
|
|
11974
|
-
|
|
11975
|
-
const
|
|
11966
|
+
$S.displayName = Lf.displayName;
|
|
11967
|
+
const HS = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
11976
11968
|
zf,
|
|
11977
11969
|
{
|
|
11978
11970
|
ref: n,
|
|
@@ -11980,7 +11972,7 @@ const zS = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
11980
11972
|
...t
|
|
11981
11973
|
}
|
|
11982
11974
|
));
|
|
11983
|
-
|
|
11975
|
+
HS.displayName = zf.displayName;
|
|
11984
11976
|
function ko({
|
|
11985
11977
|
className: e = "",
|
|
11986
11978
|
placeholder: t = "Type your message...",
|
|
@@ -12078,7 +12070,7 @@ function ko({
|
|
|
12078
12070
|
if (te.length > Io)
|
|
12079
12071
|
return `Message too long (${te.length}/${Io} characters)`;
|
|
12080
12072
|
try {
|
|
12081
|
-
return
|
|
12073
|
+
return Kw(te), null;
|
|
12082
12074
|
} catch (le) {
|
|
12083
12075
|
return (le == null ? void 0 : le.message) || "Invalid message";
|
|
12084
12076
|
}
|
|
@@ -12294,8 +12286,8 @@ function ko({
|
|
|
12294
12286
|
] }),
|
|
12295
12287
|
M && /* @__PURE__ */ c.jsx("div", { className: "mb-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded px-3 py-2", children: M }),
|
|
12296
12288
|
/* @__PURE__ */ c.jsxs("div", { className: "flex items-end gap-2", children: [
|
|
12297
|
-
(a || l) && /* @__PURE__ */ c.jsxs(
|
|
12298
|
-
/* @__PURE__ */ c.jsx(
|
|
12289
|
+
(a || l) && /* @__PURE__ */ c.jsxs(OS, { children: [
|
|
12290
|
+
/* @__PURE__ */ c.jsx(MS, { asChild: !0, children: /* @__PURE__ */ c.jsx(
|
|
12299
12291
|
De,
|
|
12300
12292
|
{
|
|
12301
12293
|
type: "button",
|
|
@@ -12332,7 +12324,7 @@ function ko({
|
|
|
12332
12324
|
] })
|
|
12333
12325
|
] }),
|
|
12334
12326
|
/* @__PURE__ */ c.jsx("div", { className: "flex-1", children: /* @__PURE__ */ c.jsx(
|
|
12335
|
-
|
|
12327
|
+
hv,
|
|
12336
12328
|
{
|
|
12337
12329
|
initialValue: se,
|
|
12338
12330
|
editingMessageId: Y,
|
|
@@ -12369,10 +12361,10 @@ zr.displayName = "Input";
|
|
|
12369
12361
|
function _i(e, [t, n]) {
|
|
12370
12362
|
return Math.min(n, Math.max(t, e));
|
|
12371
12363
|
}
|
|
12372
|
-
function
|
|
12364
|
+
function zS(e, t) {
|
|
12373
12365
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
12374
12366
|
}
|
|
12375
|
-
var $a = "ScrollArea", [Gf,
|
|
12367
|
+
var $a = "ScrollArea", [Gf, vR] = Gt($a), [US, Lt] = Gf($a), Kf = f.forwardRef(
|
|
12376
12368
|
(e, t) => {
|
|
12377
12369
|
const {
|
|
12378
12370
|
__scopeScrollArea: n,
|
|
@@ -12382,7 +12374,7 @@ var $a = "ScrollArea", [Gf, xR] = Gt($a), [WS, Lt] = Gf($a), Kf = f.forwardRef(
|
|
|
12382
12374
|
...i
|
|
12383
12375
|
} = e, [a, l] = f.useState(null), [u, d] = f.useState(null), [h, m] = f.useState(null), [w, x] = f.useState(null), [v, p] = f.useState(null), [g, b] = f.useState(0), [y, R] = f.useState(0), [S, C] = f.useState(!1), [E, N] = f.useState(!1), I = Ee(t, (P) => l(P)), j = xs(o);
|
|
12384
12376
|
return /* @__PURE__ */ c.jsx(
|
|
12385
|
-
|
|
12377
|
+
US,
|
|
12386
12378
|
{
|
|
12387
12379
|
scope: n,
|
|
12388
12380
|
type: r,
|
|
@@ -12470,11 +12462,11 @@ var sn = "ScrollAreaScrollbar", Ha = f.forwardRef(
|
|
|
12470
12462
|
const { forceMount: n, ...r } = e, o = Lt(sn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
|
|
12471
12463
|
return f.useEffect(() => (a ? s(!0) : i(!0), () => {
|
|
12472
12464
|
a ? s(!1) : i(!1);
|
|
12473
|
-
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ c.jsx(
|
|
12465
|
+
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ c.jsx(WS, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ c.jsx(VS, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ c.jsx(Xf, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ c.jsx(za, { ...r, ref: t }) : null;
|
|
12474
12466
|
}
|
|
12475
12467
|
);
|
|
12476
12468
|
Ha.displayName = sn;
|
|
12477
|
-
var
|
|
12469
|
+
var WS = f.forwardRef((e, t) => {
|
|
12478
12470
|
const { forceMount: n, ...r } = e, o = Lt(sn, e.__scopeScrollArea), [s, i] = f.useState(!1);
|
|
12479
12471
|
return f.useEffect(() => {
|
|
12480
12472
|
const a = o.scrollArea;
|
|
@@ -12497,8 +12489,8 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12497
12489
|
ref: t
|
|
12498
12490
|
}
|
|
12499
12491
|
) });
|
|
12500
|
-
}),
|
|
12501
|
-
const { forceMount: n, ...r } = e, o = Lt(sn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Es(() => l("SCROLL_END"), 100), [a, l] =
|
|
12492
|
+
}), VS = f.forwardRef((e, t) => {
|
|
12493
|
+
const { forceMount: n, ...r } = e, o = Lt(sn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Es(() => l("SCROLL_END"), 100), [a, l] = zS("hidden", {
|
|
12502
12494
|
hidden: {
|
|
12503
12495
|
SCROLL: "scrolling"
|
|
12504
12496
|
},
|
|
@@ -12571,10 +12563,10 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12571
12563
|
onThumbPointerDown: (m) => i.current = m
|
|
12572
12564
|
};
|
|
12573
12565
|
function h(m, w) {
|
|
12574
|
-
return
|
|
12566
|
+
return JS(m, i.current, a, w);
|
|
12575
12567
|
}
|
|
12576
12568
|
return n === "horizontal" ? /* @__PURE__ */ c.jsx(
|
|
12577
|
-
|
|
12569
|
+
GS,
|
|
12578
12570
|
{
|
|
12579
12571
|
...d,
|
|
12580
12572
|
ref: t,
|
|
@@ -12592,7 +12584,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12592
12584
|
}
|
|
12593
12585
|
}
|
|
12594
12586
|
) : n === "vertical" ? /* @__PURE__ */ c.jsx(
|
|
12595
|
-
|
|
12587
|
+
KS,
|
|
12596
12588
|
{
|
|
12597
12589
|
...d,
|
|
12598
12590
|
ref: t,
|
|
@@ -12610,7 +12602,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12610
12602
|
}
|
|
12611
12603
|
}
|
|
12612
12604
|
) : null;
|
|
12613
|
-
}),
|
|
12605
|
+
}), GS = f.forwardRef((e, t) => {
|
|
12614
12606
|
const { sizes: n, onSizesChange: r, ...o } = e, s = Lt(sn, e.__scopeScrollArea), [i, a] = f.useState(), l = f.useRef(null), u = Ee(t, l, s.onScrollbarXChange);
|
|
12615
12607
|
return f.useEffect(() => {
|
|
12616
12608
|
l.current && a(getComputedStyle(l.current));
|
|
@@ -12649,7 +12641,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12649
12641
|
}
|
|
12650
12642
|
}
|
|
12651
12643
|
);
|
|
12652
|
-
}),
|
|
12644
|
+
}), KS = f.forwardRef((e, t) => {
|
|
12653
12645
|
const { sizes: n, onSizesChange: r, ...o } = e, s = Lt(sn, e.__scopeScrollArea), [i, a] = f.useState(), l = f.useRef(null), u = Ee(t, l, s.onScrollbarYChange);
|
|
12654
12646
|
return f.useEffect(() => {
|
|
12655
12647
|
l.current && a(getComputedStyle(l.current));
|
|
@@ -12689,7 +12681,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12689
12681
|
}
|
|
12690
12682
|
}
|
|
12691
12683
|
);
|
|
12692
|
-
}), [
|
|
12684
|
+
}), [YS, Jf] = Gf(sn), Zf = f.forwardRef((e, t) => {
|
|
12693
12685
|
const {
|
|
12694
12686
|
__scopeScrollArea: n,
|
|
12695
12687
|
sizes: r,
|
|
@@ -12716,7 +12708,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12716
12708
|
};
|
|
12717
12709
|
return document.addEventListener("wheel", I, { passive: !1 }), () => document.removeEventListener("wheel", I, { passive: !1 });
|
|
12718
12710
|
}, [y, x, R, S]), f.useEffect(C, [r, C]), cr(x, E), cr(w.content, E), /* @__PURE__ */ c.jsx(
|
|
12719
|
-
|
|
12711
|
+
YS,
|
|
12720
12712
|
{
|
|
12721
12713
|
scope: n,
|
|
12722
12714
|
scrollbar: x,
|
|
@@ -12746,9 +12738,9 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12746
12738
|
}), qo = "ScrollAreaThumb", Qf = f.forwardRef(
|
|
12747
12739
|
(e, t) => {
|
|
12748
12740
|
const { forceMount: n, ...r } = e, o = Jf(qo, e.__scopeScrollArea);
|
|
12749
|
-
return /* @__PURE__ */ c.jsx(Ct, { present: n || o.hasThumb, children: /* @__PURE__ */ c.jsx(
|
|
12741
|
+
return /* @__PURE__ */ c.jsx(Ct, { present: n || o.hasThumb, children: /* @__PURE__ */ c.jsx(qS, { ref: t, ...r }) });
|
|
12750
12742
|
}
|
|
12751
|
-
),
|
|
12743
|
+
), qS = f.forwardRef(
|
|
12752
12744
|
(e, t) => {
|
|
12753
12745
|
const { __scopeScrollArea: n, style: r, ...o } = e, s = Lt(qo, n), i = Jf(qo, n), { onThumbPositionChange: a } = i, l = Ee(
|
|
12754
12746
|
t,
|
|
@@ -12761,7 +12753,7 @@ var VS = f.forwardRef((e, t) => {
|
|
|
12761
12753
|
if (h) {
|
|
12762
12754
|
const m = () => {
|
|
12763
12755
|
if (d(), !u.current) {
|
|
12764
|
-
const w =
|
|
12756
|
+
const w = ZS(h, a);
|
|
12765
12757
|
u.current = w, a();
|
|
12766
12758
|
}
|
|
12767
12759
|
};
|
|
@@ -12791,11 +12783,11 @@ Qf.displayName = qo;
|
|
|
12791
12783
|
var Ua = "ScrollAreaCorner", eh = f.forwardRef(
|
|
12792
12784
|
(e, t) => {
|
|
12793
12785
|
const n = Lt(Ua, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
12794
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ c.jsx(
|
|
12786
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ c.jsx(XS, { ...e, ref: t }) : null;
|
|
12795
12787
|
}
|
|
12796
12788
|
);
|
|
12797
12789
|
eh.displayName = Ua;
|
|
12798
|
-
var
|
|
12790
|
+
var XS = f.forwardRef((e, t) => {
|
|
12799
12791
|
const { __scopeScrollArea: n, ...r } = e, o = Lt(Ua, n), [s, i] = f.useState(0), [a, l] = f.useState(0), u = !!(s && a);
|
|
12800
12792
|
return cr(o.scrollbarX, () => {
|
|
12801
12793
|
var h;
|
|
@@ -12833,7 +12825,7 @@ function Rs(e) {
|
|
|
12833
12825
|
const t = th(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
12834
12826
|
return Math.max(r, 18);
|
|
12835
12827
|
}
|
|
12836
|
-
function
|
|
12828
|
+
function JS(e, t, n, r = "ltr") {
|
|
12837
12829
|
const o = Rs(n), s = o / 2, i = t || s, a = o - i, l = n.scrollbar.paddingStart + i, u = n.scrollbar.size - n.scrollbar.paddingEnd - a, d = n.content - n.viewport, h = r === "ltr" ? [0, d] : [d * -1, 0];
|
|
12838
12830
|
return nh([l, u], h)(e);
|
|
12839
12831
|
}
|
|
@@ -12851,7 +12843,7 @@ function nh(e, t) {
|
|
|
12851
12843
|
function rh(e, t) {
|
|
12852
12844
|
return e > 0 && e < t;
|
|
12853
12845
|
}
|
|
12854
|
-
var
|
|
12846
|
+
var ZS = (e, t = () => {
|
|
12855
12847
|
}) => {
|
|
12856
12848
|
let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
12857
12849
|
return function o() {
|
|
@@ -12879,7 +12871,7 @@ function cr(e, t) {
|
|
|
12879
12871
|
}
|
|
12880
12872
|
}, [e, n]);
|
|
12881
12873
|
}
|
|
12882
|
-
var oh = Kf,
|
|
12874
|
+
var oh = Kf, QS = qf, eC = eh;
|
|
12883
12875
|
const sh = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ c.jsxs(
|
|
12884
12876
|
oh,
|
|
12885
12877
|
{
|
|
@@ -12887,9 +12879,9 @@ const sh = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
12887
12879
|
className: D("relative overflow-hidden", e),
|
|
12888
12880
|
...n,
|
|
12889
12881
|
children: [
|
|
12890
|
-
/* @__PURE__ */ c.jsx(
|
|
12882
|
+
/* @__PURE__ */ c.jsx(QS, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
|
|
12891
12883
|
/* @__PURE__ */ c.jsx(ih, {}),
|
|
12892
|
-
/* @__PURE__ */ c.jsx(
|
|
12884
|
+
/* @__PURE__ */ c.jsx(eC, {})
|
|
12893
12885
|
]
|
|
12894
12886
|
}
|
|
12895
12887
|
));
|
|
@@ -13044,7 +13036,7 @@ function Oi({
|
|
|
13044
13036
|
] });
|
|
13045
13037
|
}
|
|
13046
13038
|
const ah = Sl(null);
|
|
13047
|
-
function
|
|
13039
|
+
function xR({ children: e, basePath: t = "/chat" }) {
|
|
13048
13040
|
const n = ln(() => t ? t === "/" ? "" : t.endsWith("/") ? t.slice(0, -1) : t : "/chat", [t]), r = {
|
|
13049
13041
|
basePath: n,
|
|
13050
13042
|
buildThreadPath: (o) => `${n}/${o}`,
|
|
@@ -13052,7 +13044,7 @@ function bR({ children: e, basePath: t = "/chat" }) {
|
|
|
13052
13044
|
};
|
|
13053
13045
|
return /* @__PURE__ */ c.jsx(ah.Provider, { value: r, children: e });
|
|
13054
13046
|
}
|
|
13055
|
-
function
|
|
13047
|
+
function bR() {
|
|
13056
13048
|
const e = Cl(ah);
|
|
13057
13049
|
return e || {
|
|
13058
13050
|
basePath: "/chat",
|
|
@@ -13064,7 +13056,7 @@ function or(e) {
|
|
|
13064
13056
|
if (!(typeof globalThis > "u"))
|
|
13065
13057
|
return globalThis[e];
|
|
13066
13058
|
}
|
|
13067
|
-
function
|
|
13059
|
+
function tC(e) {
|
|
13068
13060
|
if (typeof e != "string") return;
|
|
13069
13061
|
const t = e.trim();
|
|
13070
13062
|
if (t)
|
|
@@ -13077,7 +13069,7 @@ function ch() {
|
|
|
13077
13069
|
or("__CHAT_API_URL__")
|
|
13078
13070
|
];
|
|
13079
13071
|
for (const t of e) {
|
|
13080
|
-
const n =
|
|
13072
|
+
const n = tC(t);
|
|
13081
13073
|
if (n) return n;
|
|
13082
13074
|
}
|
|
13083
13075
|
}
|
|
@@ -13091,12 +13083,12 @@ function lh() {
|
|
|
13091
13083
|
if (typeof t == "string" && t.trim())
|
|
13092
13084
|
return t.trim();
|
|
13093
13085
|
}
|
|
13094
|
-
function
|
|
13086
|
+
function nC() {
|
|
13095
13087
|
const e = {}, t = ch(), n = lh();
|
|
13096
13088
|
return t && (e.baseUrl = t), n && (e.apiKey = n), e;
|
|
13097
13089
|
}
|
|
13098
|
-
function
|
|
13099
|
-
const e =
|
|
13090
|
+
function rC() {
|
|
13091
|
+
const e = nC(), t = Mn.getAuthToken(), n = ch();
|
|
13100
13092
|
return {
|
|
13101
13093
|
apiBaseUrl: e.baseUrl || Mn.baseUrl || n || "http://localhost:8000",
|
|
13102
13094
|
apiKey: t || e.apiKey || lh() || "",
|
|
@@ -13114,7 +13106,7 @@ function oC() {
|
|
|
13114
13106
|
};
|
|
13115
13107
|
}
|
|
13116
13108
|
const uh = "chat-settings";
|
|
13117
|
-
function
|
|
13109
|
+
function oC() {
|
|
13118
13110
|
try {
|
|
13119
13111
|
const e = localStorage.getItem(uh);
|
|
13120
13112
|
return e ? JSON.parse(e) : {};
|
|
@@ -13122,15 +13114,15 @@ function sC() {
|
|
|
13122
13114
|
return console.error("Failed to parse stored settings:", e), {};
|
|
13123
13115
|
}
|
|
13124
13116
|
}
|
|
13125
|
-
function
|
|
13117
|
+
function sC(e) {
|
|
13126
13118
|
try {
|
|
13127
13119
|
localStorage.setItem(uh, JSON.stringify(e)), e.apiKey && Mn.setAuthToken(e.apiKey);
|
|
13128
13120
|
} catch (t) {
|
|
13129
13121
|
console.error("Failed to save settings:", t);
|
|
13130
13122
|
}
|
|
13131
13123
|
}
|
|
13132
|
-
function
|
|
13133
|
-
const e =
|
|
13124
|
+
function wR() {
|
|
13125
|
+
const e = rC(), t = oC(), n = Mn.getAuthToken();
|
|
13134
13126
|
return {
|
|
13135
13127
|
...e,
|
|
13136
13128
|
...t,
|
|
@@ -13140,11 +13132,11 @@ function yR() {
|
|
|
13140
13132
|
apiBaseUrl: Mn.baseUrl || t.apiBaseUrl || e.apiBaseUrl
|
|
13141
13133
|
};
|
|
13142
13134
|
}
|
|
13143
|
-
function
|
|
13144
|
-
e.apiKey && Mn.setAuthToken(e.apiKey),
|
|
13135
|
+
function yR(e) {
|
|
13136
|
+
e.apiKey && Mn.setAuthToken(e.apiKey), sC(e);
|
|
13145
13137
|
}
|
|
13146
13138
|
const ai = 768;
|
|
13147
|
-
function
|
|
13139
|
+
function iC() {
|
|
13148
13140
|
const [e, t] = f.useState(void 0);
|
|
13149
13141
|
return f.useEffect(() => {
|
|
13150
13142
|
const n = window.matchMedia(`(max-width: ${ai - 1}px)`), r = () => {
|
|
@@ -13153,8 +13145,8 @@ function aC() {
|
|
|
13153
13145
|
return n.addEventListener("change", r), t(window.innerWidth < ai), () => n.removeEventListener("change", r);
|
|
13154
13146
|
}, []), !!e;
|
|
13155
13147
|
}
|
|
13156
|
-
var
|
|
13157
|
-
const { decorative: n, orientation: r = xl, ...o } = e, s =
|
|
13148
|
+
var aC = "Separator", xl = "horizontal", cC = ["horizontal", "vertical"], dh = f.forwardRef((e, t) => {
|
|
13149
|
+
const { decorative: n, orientation: r = xl, ...o } = e, s = lC(r) ? r : xl, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
13158
13150
|
return /* @__PURE__ */ c.jsx(
|
|
13159
13151
|
ve.div,
|
|
13160
13152
|
{
|
|
@@ -13165,9 +13157,9 @@ var cC = "Separator", xl = "horizontal", lC = ["horizontal", "vertical"], dh = f
|
|
|
13165
13157
|
}
|
|
13166
13158
|
);
|
|
13167
13159
|
});
|
|
13168
|
-
dh.displayName =
|
|
13169
|
-
function
|
|
13170
|
-
return
|
|
13160
|
+
dh.displayName = aC;
|
|
13161
|
+
function lC(e) {
|
|
13162
|
+
return cC.includes(e);
|
|
13171
13163
|
}
|
|
13172
13164
|
var fh = dh;
|
|
13173
13165
|
const Wa = f.forwardRef(
|
|
@@ -13187,7 +13179,7 @@ const Wa = f.forwardRef(
|
|
|
13187
13179
|
)
|
|
13188
13180
|
);
|
|
13189
13181
|
Wa.displayName = fh.displayName;
|
|
13190
|
-
const hh = hd,
|
|
13182
|
+
const hh = hd, uC = Nw, dC = pd, ph = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13191
13183
|
ms,
|
|
13192
13184
|
{
|
|
13193
13185
|
className: D(
|
|
@@ -13199,7 +13191,7 @@ const hh = hd, dC = Iw, fC = pd, ph = f.forwardRef(({ className: e, ...t }, n) =
|
|
|
13199
13191
|
}
|
|
13200
13192
|
));
|
|
13201
13193
|
ph.displayName = ms.displayName;
|
|
13202
|
-
const
|
|
13194
|
+
const fC = Wr(
|
|
13203
13195
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
13204
13196
|
{
|
|
13205
13197
|
variants: {
|
|
@@ -13214,13 +13206,13 @@ const hC = Wr(
|
|
|
13214
13206
|
side: "right"
|
|
13215
13207
|
}
|
|
13216
13208
|
}
|
|
13217
|
-
), Va = f.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(
|
|
13209
|
+
), Va = f.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(dC, { children: [
|
|
13218
13210
|
/* @__PURE__ */ c.jsx(ph, {}),
|
|
13219
13211
|
/* @__PURE__ */ c.jsxs(
|
|
13220
13212
|
gs,
|
|
13221
13213
|
{
|
|
13222
13214
|
ref: o,
|
|
13223
|
-
className: D(
|
|
13215
|
+
className: D(fC({ side: e }), t),
|
|
13224
13216
|
...r,
|
|
13225
13217
|
children: [
|
|
13226
13218
|
n,
|
|
@@ -13289,7 +13281,7 @@ var xh = Object.freeze({
|
|
|
13289
13281
|
clip: "rect(0, 0, 0, 0)",
|
|
13290
13282
|
whiteSpace: "nowrap",
|
|
13291
13283
|
wordWrap: "normal"
|
|
13292
|
-
}),
|
|
13284
|
+
}), hC = "VisuallyHidden", bh = f.forwardRef(
|
|
13293
13285
|
(e, t) => /* @__PURE__ */ c.jsx(
|
|
13294
13286
|
ve.span,
|
|
13295
13287
|
{
|
|
@@ -13299,13 +13291,13 @@ var xh = Object.freeze({
|
|
|
13299
13291
|
}
|
|
13300
13292
|
)
|
|
13301
13293
|
);
|
|
13302
|
-
bh.displayName =
|
|
13303
|
-
var
|
|
13294
|
+
bh.displayName = hC;
|
|
13295
|
+
var pC = bh, [Ns, SR] = Gt("Tooltip", [
|
|
13304
13296
|
vr
|
|
13305
|
-
]), Is = vr(), wh = "TooltipProvider",
|
|
13297
|
+
]), Is = vr(), wh = "TooltipProvider", mC = 700, Mi = "tooltip.open", [gC, Ga] = Ns(wh), yh = (e) => {
|
|
13306
13298
|
const {
|
|
13307
13299
|
__scopeTooltip: t,
|
|
13308
|
-
delayDuration: n =
|
|
13300
|
+
delayDuration: n = mC,
|
|
13309
13301
|
skipDelayDuration: r = 300,
|
|
13310
13302
|
disableHoverableContent: o = !1,
|
|
13311
13303
|
children: s
|
|
@@ -13314,7 +13306,7 @@ var mC = bh, [Ns, CR] = Gt("Tooltip", [
|
|
|
13314
13306
|
const u = l.current;
|
|
13315
13307
|
return () => window.clearTimeout(u);
|
|
13316
13308
|
}, []), /* @__PURE__ */ c.jsx(
|
|
13317
|
-
|
|
13309
|
+
gC,
|
|
13318
13310
|
{
|
|
13319
13311
|
scope: t,
|
|
13320
13312
|
isOpenDelayedRef: i,
|
|
@@ -13338,7 +13330,7 @@ var mC = bh, [Ns, CR] = Gt("Tooltip", [
|
|
|
13338
13330
|
);
|
|
13339
13331
|
};
|
|
13340
13332
|
yh.displayName = wh;
|
|
13341
|
-
var Ur = "Tooltip", [
|
|
13333
|
+
var Ur = "Tooltip", [vC, js] = Ns(Ur), Sh = (e) => {
|
|
13342
13334
|
const {
|
|
13343
13335
|
__scopeTooltip: t,
|
|
13344
13336
|
children: n,
|
|
@@ -13366,7 +13358,7 @@ var Ur = "Tooltip", [xC, js] = Ns(Ur), Sh = (e) => {
|
|
|
13366
13358
|
return f.useEffect(() => () => {
|
|
13367
13359
|
w.current && (window.clearTimeout(w.current), w.current = 0);
|
|
13368
13360
|
}, []), /* @__PURE__ */ c.jsx(ja, { ...u, children: /* @__PURE__ */ c.jsx(
|
|
13369
|
-
|
|
13361
|
+
vC,
|
|
13370
13362
|
{
|
|
13371
13363
|
scope: t,
|
|
13372
13364
|
contentId: m,
|
|
@@ -13417,19 +13409,19 @@ var Di = "TooltipTrigger", Ch = f.forwardRef(
|
|
|
13417
13409
|
}
|
|
13418
13410
|
);
|
|
13419
13411
|
Ch.displayName = Di;
|
|
13420
|
-
var
|
|
13412
|
+
var xC = "TooltipPortal", [CR, bC] = Ns(xC, {
|
|
13421
13413
|
forceMount: void 0
|
|
13422
13414
|
}), lr = "TooltipContent", Th = f.forwardRef(
|
|
13423
13415
|
(e, t) => {
|
|
13424
|
-
const n =
|
|
13425
|
-
return /* @__PURE__ */ c.jsx(Ct, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ c.jsx(Rh, { side: o, ...s, ref: t }) : /* @__PURE__ */ c.jsx(
|
|
13416
|
+
const n = bC(lr, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = js(lr, e.__scopeTooltip);
|
|
13417
|
+
return /* @__PURE__ */ c.jsx(Ct, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ c.jsx(Rh, { side: o, ...s, ref: t }) : /* @__PURE__ */ c.jsx(wC, { side: o, ...s, ref: t }) });
|
|
13426
13418
|
}
|
|
13427
|
-
),
|
|
13419
|
+
), wC = f.forwardRef((e, t) => {
|
|
13428
13420
|
const n = js(lr, e.__scopeTooltip), r = Ga(lr, e.__scopeTooltip), o = f.useRef(null), s = Ee(t, o), [i, a] = f.useState(null), { trigger: l, onClose: u } = n, d = o.current, { onPointerInTransitChange: h } = r, m = f.useCallback(() => {
|
|
13429
13421
|
a(null), h(!1);
|
|
13430
13422
|
}, [h]), w = f.useCallback(
|
|
13431
13423
|
(x, v) => {
|
|
13432
|
-
const p = x.currentTarget, g = { x: x.clientX, y: x.clientY }, b =
|
|
13424
|
+
const p = x.currentTarget, g = { x: x.clientX, y: x.clientY }, b = RC(g, p.getBoundingClientRect()), y = EC(g, b), R = NC(v.getBoundingClientRect()), S = jC([...y, ...R]);
|
|
13433
13425
|
a(S), h(!0);
|
|
13434
13426
|
},
|
|
13435
13427
|
[h]
|
|
@@ -13444,13 +13436,13 @@ var bC = "TooltipPortal", [TR, wC] = Ns(bC, {
|
|
|
13444
13436
|
}, [l, d, w, m]), f.useEffect(() => {
|
|
13445
13437
|
if (i) {
|
|
13446
13438
|
const x = (v) => {
|
|
13447
|
-
const p = v.target, g = { x: v.clientX, y: v.clientY }, b = (l == null ? void 0 : l.contains(p)) || (d == null ? void 0 : d.contains(p)), y = !
|
|
13439
|
+
const p = v.target, g = { x: v.clientX, y: v.clientY }, b = (l == null ? void 0 : l.contains(p)) || (d == null ? void 0 : d.contains(p)), y = !IC(g, i);
|
|
13448
13440
|
b ? m() : y && (m(), u());
|
|
13449
13441
|
};
|
|
13450
13442
|
return document.addEventListener("pointermove", x), () => document.removeEventListener("pointermove", x);
|
|
13451
13443
|
}
|
|
13452
13444
|
}, [l, d, i, u, m]), /* @__PURE__ */ c.jsx(Rh, { ...e, ref: s });
|
|
13453
|
-
}), [
|
|
13445
|
+
}), [yC, SC] = Ns(Ur, { isInside: !1 }), CC = fm("TooltipContent"), Rh = f.forwardRef(
|
|
13454
13446
|
(e, t) => {
|
|
13455
13447
|
const {
|
|
13456
13448
|
__scopeTooltip: n,
|
|
@@ -13493,8 +13485,8 @@ var bC = "TooltipPortal", [TR, wC] = Ns(bC, {
|
|
|
13493
13485
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
13494
13486
|
},
|
|
13495
13487
|
children: [
|
|
13496
|
-
/* @__PURE__ */ c.jsx(
|
|
13497
|
-
/* @__PURE__ */ c.jsx(
|
|
13488
|
+
/* @__PURE__ */ c.jsx(CC, { children: r }),
|
|
13489
|
+
/* @__PURE__ */ c.jsx(yC, { scope: n, isInside: !0, children: /* @__PURE__ */ c.jsx(pC, { id: l.contentId, role: "tooltip", children: o || r }) })
|
|
13498
13490
|
]
|
|
13499
13491
|
}
|
|
13500
13492
|
)
|
|
@@ -13503,17 +13495,17 @@ var bC = "TooltipPortal", [TR, wC] = Ns(bC, {
|
|
|
13503
13495
|
}
|
|
13504
13496
|
);
|
|
13505
13497
|
Th.displayName = lr;
|
|
13506
|
-
var Eh = "TooltipArrow",
|
|
13498
|
+
var Eh = "TooltipArrow", TC = f.forwardRef(
|
|
13507
13499
|
(e, t) => {
|
|
13508
13500
|
const { __scopeTooltip: n, ...r } = e, o = Is(n);
|
|
13509
|
-
return
|
|
13501
|
+
return SC(
|
|
13510
13502
|
Eh,
|
|
13511
13503
|
n
|
|
13512
13504
|
).isInside ? null : /* @__PURE__ */ c.jsx(Pa, { ...o, ...r, ref: t });
|
|
13513
13505
|
}
|
|
13514
13506
|
);
|
|
13515
|
-
|
|
13516
|
-
function
|
|
13507
|
+
TC.displayName = Eh;
|
|
13508
|
+
function RC(e, t) {
|
|
13517
13509
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
|
|
13518
13510
|
switch (Math.min(n, r, o, s)) {
|
|
13519
13511
|
case s:
|
|
@@ -13528,7 +13520,7 @@ function EC(e, t) {
|
|
|
13528
13520
|
throw new Error("unreachable");
|
|
13529
13521
|
}
|
|
13530
13522
|
}
|
|
13531
|
-
function
|
|
13523
|
+
function EC(e, t, n = 5) {
|
|
13532
13524
|
const r = [];
|
|
13533
13525
|
switch (t) {
|
|
13534
13526
|
case "top":
|
|
@@ -13558,7 +13550,7 @@ function NC(e, t, n = 5) {
|
|
|
13558
13550
|
}
|
|
13559
13551
|
return r;
|
|
13560
13552
|
}
|
|
13561
|
-
function
|
|
13553
|
+
function NC(e) {
|
|
13562
13554
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
13563
13555
|
return [
|
|
13564
13556
|
{ x: o, y: t },
|
|
@@ -13567,7 +13559,7 @@ function IC(e) {
|
|
|
13567
13559
|
{ x: o, y: r }
|
|
13568
13560
|
];
|
|
13569
13561
|
}
|
|
13570
|
-
function
|
|
13562
|
+
function IC(e, t) {
|
|
13571
13563
|
const { x: n, y: r } = e;
|
|
13572
13564
|
let o = !1;
|
|
13573
13565
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -13576,11 +13568,11 @@ function jC(e, t) {
|
|
|
13576
13568
|
}
|
|
13577
13569
|
return o;
|
|
13578
13570
|
}
|
|
13579
|
-
function
|
|
13571
|
+
function jC(e) {
|
|
13580
13572
|
const t = e.slice();
|
|
13581
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
13573
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), kC(t);
|
|
13582
13574
|
}
|
|
13583
|
-
function
|
|
13575
|
+
function kC(e) {
|
|
13584
13576
|
if (e.length <= 1) return e.slice();
|
|
13585
13577
|
const t = [];
|
|
13586
13578
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -13605,8 +13597,8 @@ function AC(e) {
|
|
|
13605
13597
|
}
|
|
13606
13598
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
13607
13599
|
}
|
|
13608
|
-
var
|
|
13609
|
-
const
|
|
13600
|
+
var AC = yh, PC = Sh, _C = Ch, Nh = Th;
|
|
13601
|
+
const OC = AC, MC = PC, DC = _C, Ih = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(
|
|
13610
13602
|
Nh,
|
|
13611
13603
|
{
|
|
13612
13604
|
ref: r,
|
|
@@ -13619,7 +13611,7 @@ const MC = PC, DC = _C, LC = OC, Ih = f.forwardRef(({ className: e, sideOffset:
|
|
|
13619
13611
|
}
|
|
13620
13612
|
));
|
|
13621
13613
|
Ih.displayName = Nh.displayName;
|
|
13622
|
-
const
|
|
13614
|
+
const LC = "sidebar:state", FC = 60 * 60 * 24 * 7, BC = "16rem", $C = "18rem", HC = "3rem", zC = "b", jh = f.createContext(null);
|
|
13623
13615
|
function ks() {
|
|
13624
13616
|
const e = f.useContext(jh);
|
|
13625
13617
|
if (!e)
|
|
@@ -13636,16 +13628,16 @@ const kh = f.forwardRef(
|
|
|
13636
13628
|
children: s,
|
|
13637
13629
|
...i
|
|
13638
13630
|
}, a) => {
|
|
13639
|
-
const l =
|
|
13631
|
+
const l = iC(), [u, d] = f.useState(!1), [h, m] = f.useState(e), w = t ?? h, x = f.useCallback(
|
|
13640
13632
|
(b) => {
|
|
13641
13633
|
const y = typeof b == "function" ? b(w) : b;
|
|
13642
|
-
n ? n(y) : m(y), document.cookie = `${
|
|
13634
|
+
n ? n(y) : m(y), document.cookie = `${LC}=${y}; path=/; max-age=${FC}`;
|
|
13643
13635
|
},
|
|
13644
13636
|
[n, w]
|
|
13645
13637
|
), v = f.useCallback(() => l ? d((b) => !b) : x((b) => !b), [l, x, d]);
|
|
13646
13638
|
f.useEffect(() => {
|
|
13647
13639
|
const b = (y) => {
|
|
13648
|
-
y.key ===
|
|
13640
|
+
y.key === zC && (y.metaKey || y.ctrlKey) && (y.preventDefault(), v());
|
|
13649
13641
|
};
|
|
13650
13642
|
return window.addEventListener("keydown", b), () => window.removeEventListener("keydown", b);
|
|
13651
13643
|
}, [v]);
|
|
@@ -13661,12 +13653,12 @@ const kh = f.forwardRef(
|
|
|
13661
13653
|
}),
|
|
13662
13654
|
[p, w, x, l, u, d, v]
|
|
13663
13655
|
);
|
|
13664
|
-
return /* @__PURE__ */ c.jsx(jh.Provider, { value: g, children: /* @__PURE__ */ c.jsx(
|
|
13656
|
+
return /* @__PURE__ */ c.jsx(jh.Provider, { value: g, children: /* @__PURE__ */ c.jsx(OC, { delayDuration: 0, children: /* @__PURE__ */ c.jsx(
|
|
13665
13657
|
"div",
|
|
13666
13658
|
{
|
|
13667
13659
|
style: {
|
|
13668
|
-
"--sidebar-width":
|
|
13669
|
-
"--sidebar-width-icon":
|
|
13660
|
+
"--sidebar-width": BC,
|
|
13661
|
+
"--sidebar-width-icon": HC,
|
|
13670
13662
|
...o
|
|
13671
13663
|
},
|
|
13672
13664
|
className: D(
|
|
@@ -13709,7 +13701,7 @@ const Ah = f.forwardRef(
|
|
|
13709
13701
|
"data-mobile": "true",
|
|
13710
13702
|
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
13711
13703
|
style: {
|
|
13712
|
-
"--sidebar-width":
|
|
13704
|
+
"--sidebar-width": $C
|
|
13713
13705
|
},
|
|
13714
13706
|
side: e,
|
|
13715
13707
|
children: /* @__PURE__ */ c.jsx("div", { className: "flex h-full w-full flex-col", children: o })
|
|
@@ -13784,7 +13776,7 @@ const Ph = f.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
13784
13776
|
);
|
|
13785
13777
|
});
|
|
13786
13778
|
Ph.displayName = "SidebarTrigger";
|
|
13787
|
-
const
|
|
13779
|
+
const UC = f.forwardRef(({ className: e, ...t }, n) => {
|
|
13788
13780
|
const { toggleSidebar: r } = ks();
|
|
13789
13781
|
return /* @__PURE__ */ c.jsx(
|
|
13790
13782
|
"button",
|
|
@@ -13808,7 +13800,7 @@ const WC = f.forwardRef(({ className: e, ...t }, n) => {
|
|
|
13808
13800
|
}
|
|
13809
13801
|
);
|
|
13810
13802
|
});
|
|
13811
|
-
|
|
13803
|
+
UC.displayName = "SidebarRail";
|
|
13812
13804
|
const _h = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13813
13805
|
"main",
|
|
13814
13806
|
{
|
|
@@ -13822,7 +13814,7 @@ const _h = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
13822
13814
|
}
|
|
13823
13815
|
));
|
|
13824
13816
|
_h.displayName = "SidebarInset";
|
|
13825
|
-
const
|
|
13817
|
+
const WC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13826
13818
|
zr,
|
|
13827
13819
|
{
|
|
13828
13820
|
ref: n,
|
|
@@ -13834,7 +13826,7 @@ const VC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
13834
13826
|
...t
|
|
13835
13827
|
}
|
|
13836
13828
|
));
|
|
13837
|
-
|
|
13829
|
+
WC.displayName = "SidebarInput";
|
|
13838
13830
|
const Oh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13839
13831
|
"div",
|
|
13840
13832
|
{
|
|
@@ -13845,7 +13837,7 @@ const Oh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
13845
13837
|
}
|
|
13846
13838
|
));
|
|
13847
13839
|
Oh.displayName = "SidebarHeader";
|
|
13848
|
-
const
|
|
13840
|
+
const VC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13849
13841
|
"div",
|
|
13850
13842
|
{
|
|
13851
13843
|
ref: n,
|
|
@@ -13854,8 +13846,8 @@ const GC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
13854
13846
|
...t
|
|
13855
13847
|
}
|
|
13856
13848
|
));
|
|
13857
|
-
|
|
13858
|
-
const
|
|
13849
|
+
VC.displayName = "SidebarFooter";
|
|
13850
|
+
const GC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13859
13851
|
Wa,
|
|
13860
13852
|
{
|
|
13861
13853
|
ref: n,
|
|
@@ -13864,7 +13856,7 @@ const KC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
13864
13856
|
...t
|
|
13865
13857
|
}
|
|
13866
13858
|
));
|
|
13867
|
-
|
|
13859
|
+
GC.displayName = "SidebarSeparator";
|
|
13868
13860
|
const Mh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13869
13861
|
"div",
|
|
13870
13862
|
{
|
|
@@ -13905,7 +13897,7 @@ const Lh = f.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => {
|
|
|
13905
13897
|
);
|
|
13906
13898
|
});
|
|
13907
13899
|
Lh.displayName = "SidebarGroupLabel";
|
|
13908
|
-
const
|
|
13900
|
+
const KC = f.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => {
|
|
13909
13901
|
const o = t ? ur : "button";
|
|
13910
13902
|
return /* @__PURE__ */ c.jsx(
|
|
13911
13903
|
o,
|
|
@@ -13923,7 +13915,7 @@ const YC = f.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => {
|
|
|
13923
13915
|
}
|
|
13924
13916
|
);
|
|
13925
13917
|
});
|
|
13926
|
-
|
|
13918
|
+
KC.displayName = "SidebarGroupAction";
|
|
13927
13919
|
const Fh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
13928
13920
|
"div",
|
|
13929
13921
|
{
|
|
@@ -13954,7 +13946,7 @@ const $h = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
13954
13946
|
}
|
|
13955
13947
|
));
|
|
13956
13948
|
$h.displayName = "SidebarMenuItem";
|
|
13957
|
-
const
|
|
13949
|
+
const YC = Wr(
|
|
13958
13950
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
13959
13951
|
{
|
|
13960
13952
|
variants: {
|
|
@@ -13990,14 +13982,14 @@ const qC = Wr(
|
|
|
13990
13982
|
"data-sidebar": "menu-button",
|
|
13991
13983
|
"data-size": r,
|
|
13992
13984
|
"data-active": t,
|
|
13993
|
-
className: D(
|
|
13985
|
+
className: D(YC({ variant: n, size: r }), s),
|
|
13994
13986
|
...i
|
|
13995
13987
|
}
|
|
13996
13988
|
);
|
|
13997
13989
|
return o ? (typeof o == "string" && (o = {
|
|
13998
13990
|
children: o
|
|
13999
|
-
}), /* @__PURE__ */ c.jsxs(
|
|
14000
|
-
/* @__PURE__ */ c.jsx(
|
|
13991
|
+
}), /* @__PURE__ */ c.jsxs(MC, { children: [
|
|
13992
|
+
/* @__PURE__ */ c.jsx(DC, { asChild: !0, children: h }),
|
|
14001
13993
|
/* @__PURE__ */ c.jsx(
|
|
14002
13994
|
Ih,
|
|
14003
13995
|
{
|
|
@@ -14011,7 +14003,7 @@ const qC = Wr(
|
|
|
14011
14003
|
}
|
|
14012
14004
|
);
|
|
14013
14005
|
Hh.displayName = "SidebarMenuButton";
|
|
14014
|
-
const
|
|
14006
|
+
const qC = f.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => {
|
|
14015
14007
|
const s = t ? ur : "button";
|
|
14016
14008
|
return /* @__PURE__ */ c.jsx(
|
|
14017
14009
|
s,
|
|
@@ -14033,8 +14025,8 @@ const XC = f.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, .
|
|
|
14033
14025
|
}
|
|
14034
14026
|
);
|
|
14035
14027
|
});
|
|
14036
|
-
|
|
14037
|
-
const
|
|
14028
|
+
qC.displayName = "SidebarMenuAction";
|
|
14029
|
+
const XC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
14038
14030
|
"div",
|
|
14039
14031
|
{
|
|
14040
14032
|
ref: n,
|
|
@@ -14051,8 +14043,8 @@ const JC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
14051
14043
|
...t
|
|
14052
14044
|
}
|
|
14053
14045
|
));
|
|
14054
|
-
|
|
14055
|
-
const
|
|
14046
|
+
XC.displayName = "SidebarMenuBadge";
|
|
14047
|
+
const JC = f.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
14056
14048
|
const o = f.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
14057
14049
|
return /* @__PURE__ */ c.jsxs(
|
|
14058
14050
|
"div",
|
|
@@ -14083,8 +14075,8 @@ const ZC = f.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
|
14083
14075
|
}
|
|
14084
14076
|
);
|
|
14085
14077
|
});
|
|
14086
|
-
|
|
14087
|
-
const
|
|
14078
|
+
JC.displayName = "SidebarMenuSkeleton";
|
|
14079
|
+
const ZC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
14088
14080
|
"ul",
|
|
14089
14081
|
{
|
|
14090
14082
|
ref: n,
|
|
@@ -14097,10 +14089,10 @@ const QC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
14097
14089
|
...t
|
|
14098
14090
|
}
|
|
14099
14091
|
));
|
|
14100
|
-
|
|
14101
|
-
const
|
|
14102
|
-
|
|
14103
|
-
const
|
|
14092
|
+
ZC.displayName = "SidebarMenuSub";
|
|
14093
|
+
const QC = f.forwardRef(({ ...e }, t) => /* @__PURE__ */ c.jsx("li", { ref: t, ...e }));
|
|
14094
|
+
QC.displayName = "SidebarMenuSubItem";
|
|
14095
|
+
const eT = f.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...o }, s) => {
|
|
14104
14096
|
const i = e ? ur : "a";
|
|
14105
14097
|
return /* @__PURE__ */ c.jsx(
|
|
14106
14098
|
i,
|
|
@@ -14121,8 +14113,8 @@ const tT = f.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, classNa
|
|
|
14121
14113
|
}
|
|
14122
14114
|
);
|
|
14123
14115
|
});
|
|
14124
|
-
|
|
14125
|
-
function
|
|
14116
|
+
eT.displayName = "SidebarMenuSubButton";
|
|
14117
|
+
function TR({
|
|
14126
14118
|
header: e,
|
|
14127
14119
|
sidebarTitle: t = "Threads",
|
|
14128
14120
|
showThreads: n = !0,
|
|
@@ -14157,7 +14149,7 @@ function RR({
|
|
|
14157
14149
|
] })
|
|
14158
14150
|
] }) });
|
|
14159
14151
|
}
|
|
14160
|
-
var
|
|
14152
|
+
var tT = "Label", zh = f.forwardRef((e, t) => /* @__PURE__ */ c.jsx(
|
|
14161
14153
|
ve.label,
|
|
14162
14154
|
{
|
|
14163
14155
|
...e,
|
|
@@ -14168,15 +14160,15 @@ var nT = "Label", zh = f.forwardRef((e, t) => /* @__PURE__ */ c.jsx(
|
|
|
14168
14160
|
}
|
|
14169
14161
|
}
|
|
14170
14162
|
));
|
|
14171
|
-
zh.displayName =
|
|
14163
|
+
zh.displayName = tT;
|
|
14172
14164
|
var Uh = zh;
|
|
14173
|
-
const
|
|
14165
|
+
const nT = Wr(
|
|
14174
14166
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
14175
14167
|
), Pt = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
14176
14168
|
Uh,
|
|
14177
14169
|
{
|
|
14178
14170
|
ref: n,
|
|
14179
|
-
className: D(
|
|
14171
|
+
className: D(nT(), e),
|
|
14180
14172
|
...t
|
|
14181
14173
|
}
|
|
14182
14174
|
));
|
|
@@ -14185,7 +14177,7 @@ function Wh(e) {
|
|
|
14185
14177
|
const t = f.useRef({ value: e, previous: e });
|
|
14186
14178
|
return f.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
14187
14179
|
}
|
|
14188
|
-
var As = "Switch", [
|
|
14180
|
+
var As = "Switch", [rT, RR] = Gt(As), [oT, sT] = rT(As), Vh = f.forwardRef(
|
|
14189
14181
|
(e, t) => {
|
|
14190
14182
|
const {
|
|
14191
14183
|
__scopeSwitch: n,
|
|
@@ -14204,7 +14196,7 @@ var As = "Switch", [oT, ER] = Gt(As), [sT, iT] = oT(As), Vh = f.forwardRef(
|
|
|
14204
14196
|
onChange: u,
|
|
14205
14197
|
caller: As
|
|
14206
14198
|
});
|
|
14207
|
-
return /* @__PURE__ */ c.jsxs(
|
|
14199
|
+
return /* @__PURE__ */ c.jsxs(oT, { scope: n, checked: g, disabled: a, children: [
|
|
14208
14200
|
/* @__PURE__ */ c.jsx(
|
|
14209
14201
|
ve.button,
|
|
14210
14202
|
{
|
|
@@ -14243,7 +14235,7 @@ var As = "Switch", [oT, ER] = Gt(As), [sT, iT] = oT(As), Vh = f.forwardRef(
|
|
|
14243
14235
|
Vh.displayName = As;
|
|
14244
14236
|
var Gh = "SwitchThumb", Kh = f.forwardRef(
|
|
14245
14237
|
(e, t) => {
|
|
14246
|
-
const { __scopeSwitch: n, ...r } = e, o =
|
|
14238
|
+
const { __scopeSwitch: n, ...r } = e, o = sT(Gh, n);
|
|
14247
14239
|
return /* @__PURE__ */ c.jsx(
|
|
14248
14240
|
ve.span,
|
|
14249
14241
|
{
|
|
@@ -14256,7 +14248,7 @@ var Gh = "SwitchThumb", Kh = f.forwardRef(
|
|
|
14256
14248
|
}
|
|
14257
14249
|
);
|
|
14258
14250
|
Kh.displayName = Gh;
|
|
14259
|
-
var
|
|
14251
|
+
var iT = "SwitchBubbleInput", Yh = f.forwardRef(
|
|
14260
14252
|
({
|
|
14261
14253
|
__scopeSwitch: e,
|
|
14262
14254
|
control: t,
|
|
@@ -14297,11 +14289,11 @@ var aT = "SwitchBubbleInput", Yh = f.forwardRef(
|
|
|
14297
14289
|
);
|
|
14298
14290
|
}
|
|
14299
14291
|
);
|
|
14300
|
-
Yh.displayName =
|
|
14292
|
+
Yh.displayName = iT;
|
|
14301
14293
|
function qh(e) {
|
|
14302
14294
|
return e ? "checked" : "unchecked";
|
|
14303
14295
|
}
|
|
14304
|
-
var Xh = Vh,
|
|
14296
|
+
var Xh = Vh, aT = Kh;
|
|
14305
14297
|
const mn = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
14306
14298
|
Xh,
|
|
14307
14299
|
{
|
|
@@ -14312,7 +14304,7 @@ const mn = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
14312
14304
|
...t,
|
|
14313
14305
|
ref: n,
|
|
14314
14306
|
children: /* @__PURE__ */ c.jsx(
|
|
14315
|
-
|
|
14307
|
+
aT,
|
|
14316
14308
|
{
|
|
14317
14309
|
className: D(
|
|
14318
14310
|
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
@@ -14322,10 +14314,10 @@ const mn = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
14322
14314
|
}
|
|
14323
14315
|
));
|
|
14324
14316
|
mn.displayName = Xh.displayName;
|
|
14325
|
-
var
|
|
14326
|
-
|
|
14317
|
+
var cT = [" ", "Enter", "ArrowUp", "ArrowDown"], lT = [" ", "Enter"], Bn = "Select", [Ps, _s, uT] = ba(Bn), [xr, ER] = Gt(Bn, [
|
|
14318
|
+
uT,
|
|
14327
14319
|
vr
|
|
14328
|
-
]), Os = vr(), [
|
|
14320
|
+
]), Os = vr(), [dT, Tn] = xr(Bn), [fT, hT] = xr(Bn), Jh = (e) => {
|
|
14329
14321
|
const {
|
|
14330
14322
|
__scopeSelect: t,
|
|
14331
14323
|
children: n,
|
|
@@ -14353,7 +14345,7 @@ var lT = [" ", "Enter", "ArrowUp", "ArrowDown"], uT = [" ", "Enter"], Bn = "Sele
|
|
|
14353
14345
|
caller: Bn
|
|
14354
14346
|
}), P = f.useRef(null), F = p ? x || !!p.closest("form") : !0, [G, _] = f.useState(/* @__PURE__ */ new Set()), Y = Array.from(G).map((U) => U.props.value).join(";");
|
|
14355
14347
|
return /* @__PURE__ */ c.jsx(ja, { ...v, children: /* @__PURE__ */ c.jsxs(
|
|
14356
|
-
|
|
14348
|
+
dT,
|
|
14357
14349
|
{
|
|
14358
14350
|
required: w,
|
|
14359
14351
|
scope: t,
|
|
@@ -14373,7 +14365,7 @@ var lT = [" ", "Enter", "ArrowUp", "ArrowDown"], uT = [" ", "Enter"], Bn = "Sele
|
|
|
14373
14365
|
disabled: m,
|
|
14374
14366
|
children: [
|
|
14375
14367
|
/* @__PURE__ */ c.jsx(Ps.Provider, { scope: t, children: /* @__PURE__ */ c.jsx(
|
|
14376
|
-
|
|
14368
|
+
fT,
|
|
14377
14369
|
{
|
|
14378
14370
|
scope: e.__scopeSelect,
|
|
14379
14371
|
onNativeOptionAdd: f.useCallback((U) => {
|
|
@@ -14449,7 +14441,7 @@ var Zh = "SelectTrigger", Qh = f.forwardRef(
|
|
|
14449
14441
|
}),
|
|
14450
14442
|
onKeyDown: Q(o.onKeyDown, (v) => {
|
|
14451
14443
|
const p = h.current !== "";
|
|
14452
|
-
!(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && m(v.key), !(p && v.key === " ") &&
|
|
14444
|
+
!(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && m(v.key), !(p && v.key === " ") && cT.includes(v.key) && (x(), v.preventDefault());
|
|
14453
14445
|
})
|
|
14454
14446
|
}
|
|
14455
14447
|
) });
|
|
@@ -14473,15 +14465,15 @@ var ep = "SelectValue", tp = f.forwardRef(
|
|
|
14473
14465
|
}
|
|
14474
14466
|
);
|
|
14475
14467
|
tp.displayName = ep;
|
|
14476
|
-
var
|
|
14468
|
+
var pT = "SelectIcon", np = f.forwardRef(
|
|
14477
14469
|
(e, t) => {
|
|
14478
14470
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
14479
14471
|
return /* @__PURE__ */ c.jsx(ve.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
|
|
14480
14472
|
}
|
|
14481
14473
|
);
|
|
14482
|
-
np.displayName =
|
|
14483
|
-
var
|
|
14484
|
-
rp.displayName =
|
|
14474
|
+
np.displayName = pT;
|
|
14475
|
+
var mT = "SelectPortal", rp = (e) => /* @__PURE__ */ c.jsx(ds, { asChild: !0, ...e });
|
|
14476
|
+
rp.displayName = mT;
|
|
14485
14477
|
var $n = "SelectContent", op = f.forwardRef(
|
|
14486
14478
|
(e, t) => {
|
|
14487
14479
|
const n = Tn($n, e.__scopeSelect), [r, o] = f.useState();
|
|
@@ -14498,7 +14490,7 @@ var $n = "SelectContent", op = f.forwardRef(
|
|
|
14498
14490
|
}
|
|
14499
14491
|
);
|
|
14500
14492
|
op.displayName = $n;
|
|
14501
|
-
var Bt = 10, [sp, Rn] = xr($n),
|
|
14493
|
+
var Bt = 10, [sp, Rn] = xr($n), gT = "SelectContentImpl", vT = sr("SelectContent.RemoveScroll"), ip = f.forwardRef(
|
|
14502
14494
|
(e, t) => {
|
|
14503
14495
|
const {
|
|
14504
14496
|
__scopeSelect: n,
|
|
@@ -14606,7 +14598,7 @@ var Bt = 10, [sp, Rn] = xr($n), vT = "SelectContentImpl", xT = sr("SelectContent
|
|
|
14606
14598
|
position: r,
|
|
14607
14599
|
isPositioned: G,
|
|
14608
14600
|
searchRef: K,
|
|
14609
|
-
children: /* @__PURE__ */ c.jsx(hs, { as:
|
|
14601
|
+
children: /* @__PURE__ */ c.jsx(hs, { as: vT, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
|
|
14610
14602
|
us,
|
|
14611
14603
|
{
|
|
14612
14604
|
asChild: !0,
|
|
@@ -14668,8 +14660,8 @@ var Bt = 10, [sp, Rn] = xr($n), vT = "SelectContentImpl", xT = sr("SelectContent
|
|
|
14668
14660
|
);
|
|
14669
14661
|
}
|
|
14670
14662
|
);
|
|
14671
|
-
ip.displayName =
|
|
14672
|
-
var
|
|
14663
|
+
ip.displayName = gT;
|
|
14664
|
+
var xT = "SelectItemAlignedPosition", ap = f.forwardRef((e, t) => {
|
|
14673
14665
|
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Tn($n, n), i = Rn($n, n), [a, l] = f.useState(null), [u, d] = f.useState(null), h = Ee(t, (E) => d(E)), m = _s(n), w = f.useRef(!1), x = f.useRef(!0), { viewport: v, selectedItem: p, selectedItemText: g, focusSelectedItem: b } = i, y = f.useCallback(() => {
|
|
14674
14666
|
if (s.trigger && s.valueNode && a && u && v && p && g) {
|
|
14675
14667
|
const E = s.trigger.getBoundingClientRect(), N = u.getBoundingClientRect(), I = s.valueNode.getBoundingClientRect(), j = g.getBoundingClientRect();
|
|
@@ -14737,7 +14729,7 @@ var bT = "SelectItemAlignedPosition", ap = f.forwardRef((e, t) => {
|
|
|
14737
14729
|
[y, b]
|
|
14738
14730
|
);
|
|
14739
14731
|
return /* @__PURE__ */ c.jsx(
|
|
14740
|
-
|
|
14732
|
+
wT,
|
|
14741
14733
|
{
|
|
14742
14734
|
scope: n,
|
|
14743
14735
|
contentWrapper: a,
|
|
@@ -14773,8 +14765,8 @@ var bT = "SelectItemAlignedPosition", ap = f.forwardRef((e, t) => {
|
|
|
14773
14765
|
}
|
|
14774
14766
|
);
|
|
14775
14767
|
});
|
|
14776
|
-
ap.displayName =
|
|
14777
|
-
var
|
|
14768
|
+
ap.displayName = xT;
|
|
14769
|
+
var bT = "SelectPopperPosition", Li = f.forwardRef((e, t) => {
|
|
14778
14770
|
const {
|
|
14779
14771
|
__scopeSelect: n,
|
|
14780
14772
|
align: r = "start",
|
|
@@ -14802,8 +14794,8 @@ var wT = "SelectPopperPosition", Li = f.forwardRef((e, t) => {
|
|
|
14802
14794
|
}
|
|
14803
14795
|
);
|
|
14804
14796
|
});
|
|
14805
|
-
Li.displayName =
|
|
14806
|
-
var [
|
|
14797
|
+
Li.displayName = bT;
|
|
14798
|
+
var [wT, Ka] = xr($n, {}), Fi = "SelectViewport", cp = f.forwardRef(
|
|
14807
14799
|
(e, t) => {
|
|
14808
14800
|
const { __scopeSelect: n, nonce: r, ...o } = e, s = Rn(Fi, n), i = Ka(Fi, n), a = Ee(t, s.onViewportChange), l = f.useRef(0);
|
|
14809
14801
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -14856,21 +14848,21 @@ var [yT, Ka] = xr($n, {}), Fi = "SelectViewport", cp = f.forwardRef(
|
|
|
14856
14848
|
}
|
|
14857
14849
|
);
|
|
14858
14850
|
cp.displayName = Fi;
|
|
14859
|
-
var lp = "SelectGroup", [
|
|
14851
|
+
var lp = "SelectGroup", [yT, ST] = xr(lp), CT = f.forwardRef(
|
|
14860
14852
|
(e, t) => {
|
|
14861
14853
|
const { __scopeSelect: n, ...r } = e, o = Ht();
|
|
14862
|
-
return /* @__PURE__ */ c.jsx(
|
|
14854
|
+
return /* @__PURE__ */ c.jsx(yT, { scope: n, id: o, children: /* @__PURE__ */ c.jsx(ve.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
14863
14855
|
}
|
|
14864
14856
|
);
|
|
14865
|
-
|
|
14857
|
+
CT.displayName = lp;
|
|
14866
14858
|
var up = "SelectLabel", dp = f.forwardRef(
|
|
14867
14859
|
(e, t) => {
|
|
14868
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
14860
|
+
const { __scopeSelect: n, ...r } = e, o = ST(up, n);
|
|
14869
14861
|
return /* @__PURE__ */ c.jsx(ve.div, { id: o.id, ...r, ref: t });
|
|
14870
14862
|
}
|
|
14871
14863
|
);
|
|
14872
14864
|
dp.displayName = up;
|
|
14873
|
-
var Jo = "SelectItem", [
|
|
14865
|
+
var Jo = "SelectItem", [TT, fp] = xr(Jo), hp = f.forwardRef(
|
|
14874
14866
|
(e, t) => {
|
|
14875
14867
|
const {
|
|
14876
14868
|
__scopeSelect: n,
|
|
@@ -14892,7 +14884,7 @@ var Jo = "SelectItem", [RT, fp] = xr(Jo), hp = f.forwardRef(
|
|
|
14892
14884
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
14893
14885
|
);
|
|
14894
14886
|
return /* @__PURE__ */ c.jsx(
|
|
14895
|
-
|
|
14887
|
+
TT,
|
|
14896
14888
|
{
|
|
14897
14889
|
scope: n,
|
|
14898
14890
|
value: r,
|
|
@@ -14943,7 +14935,7 @@ var Jo = "SelectItem", [RT, fp] = xr(Jo), hp = f.forwardRef(
|
|
|
14943
14935
|
}),
|
|
14944
14936
|
onKeyDown: Q(i.onKeyDown, (b) => {
|
|
14945
14937
|
var R;
|
|
14946
|
-
((R = l.searchRef) == null ? void 0 : R.current) !== "" && b.key === " " || (
|
|
14938
|
+
((R = l.searchRef) == null ? void 0 : R.current) !== "" && b.key === " " || (lT.includes(b.key) && g(), b.key === " " && b.preventDefault());
|
|
14947
14939
|
})
|
|
14948
14940
|
}
|
|
14949
14941
|
)
|
|
@@ -14956,7 +14948,7 @@ var Jo = "SelectItem", [RT, fp] = xr(Jo), hp = f.forwardRef(
|
|
|
14956
14948
|
hp.displayName = Jo;
|
|
14957
14949
|
var Er = "SelectItemText", pp = f.forwardRef(
|
|
14958
14950
|
(e, t) => {
|
|
14959
|
-
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = Tn(Er, n), a = Rn(Er, n), l = fp(Er, n), u =
|
|
14951
|
+
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = Tn(Er, n), a = Rn(Er, n), l = fp(Er, n), u = hT(Er, n), [d, h] = f.useState(null), m = Ee(
|
|
14960
14952
|
t,
|
|
14961
14953
|
(g) => h(g),
|
|
14962
14954
|
l.onItemTextChange,
|
|
@@ -15057,21 +15049,21 @@ var bp = f.forwardRef((e, t) => {
|
|
|
15057
15049
|
})
|
|
15058
15050
|
}
|
|
15059
15051
|
);
|
|
15060
|
-
}),
|
|
15052
|
+
}), RT = "SelectSeparator", wp = f.forwardRef(
|
|
15061
15053
|
(e, t) => {
|
|
15062
15054
|
const { __scopeSelect: n, ...r } = e;
|
|
15063
15055
|
return /* @__PURE__ */ c.jsx(ve.div, { "aria-hidden": !0, ...r, ref: t });
|
|
15064
15056
|
}
|
|
15065
15057
|
);
|
|
15066
|
-
wp.displayName =
|
|
15067
|
-
var Hi = "SelectArrow",
|
|
15058
|
+
wp.displayName = RT;
|
|
15059
|
+
var Hi = "SelectArrow", ET = f.forwardRef(
|
|
15068
15060
|
(e, t) => {
|
|
15069
15061
|
const { __scopeSelect: n, ...r } = e, o = Os(n), s = Tn(Hi, n), i = Rn(Hi, n);
|
|
15070
15062
|
return s.open && i.position === "popper" ? /* @__PURE__ */ c.jsx(Pa, { ...o, ...r, ref: t }) : null;
|
|
15071
15063
|
}
|
|
15072
15064
|
);
|
|
15073
|
-
|
|
15074
|
-
var
|
|
15065
|
+
ET.displayName = Hi;
|
|
15066
|
+
var NT = "SelectBubbleInput", yp = f.forwardRef(
|
|
15075
15067
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
15076
15068
|
const o = f.useRef(null), s = Ee(r, o), i = Wh(t);
|
|
15077
15069
|
return f.useEffect(() => {
|
|
@@ -15096,7 +15088,7 @@ var IT = "SelectBubbleInput", yp = f.forwardRef(
|
|
|
15096
15088
|
);
|
|
15097
15089
|
}
|
|
15098
15090
|
);
|
|
15099
|
-
yp.displayName =
|
|
15091
|
+
yp.displayName = NT;
|
|
15100
15092
|
function Sp(e) {
|
|
15101
15093
|
return e === "" || e === void 0;
|
|
15102
15094
|
}
|
|
@@ -15116,18 +15108,18 @@ function Cp(e) {
|
|
|
15116
15108
|
}
|
|
15117
15109
|
function Tp(e, t, n) {
|
|
15118
15110
|
const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
15119
|
-
let i =
|
|
15111
|
+
let i = IT(e, Math.max(s, 0));
|
|
15120
15112
|
o.length === 1 && (i = i.filter((u) => u !== n));
|
|
15121
15113
|
const l = i.find(
|
|
15122
15114
|
(u) => u.textValue.toLowerCase().startsWith(o.toLowerCase())
|
|
15123
15115
|
);
|
|
15124
15116
|
return l !== n ? l : void 0;
|
|
15125
15117
|
}
|
|
15126
|
-
function
|
|
15118
|
+
function IT(e, t) {
|
|
15127
15119
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
15128
15120
|
}
|
|
15129
|
-
var
|
|
15130
|
-
const wl =
|
|
15121
|
+
var jT = Jh, Rp = Qh, kT = tp, AT = np, PT = rp, Ep = op, _T = cp, Np = dp, Ip = hp, OT = pp, MT = gp, jp = vp, kp = xp, Ap = wp;
|
|
15122
|
+
const wl = jT, yl = kT, zi = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ c.jsxs(
|
|
15131
15123
|
Rp,
|
|
15132
15124
|
{
|
|
15133
15125
|
ref: r,
|
|
@@ -15138,7 +15130,7 @@ const wl = kT, yl = AT, zi = f.forwardRef(({ className: e, children: t, ...n },
|
|
|
15138
15130
|
...n,
|
|
15139
15131
|
children: [
|
|
15140
15132
|
t,
|
|
15141
|
-
/* @__PURE__ */ c.jsx(
|
|
15133
|
+
/* @__PURE__ */ c.jsx(AT, { asChild: !0, children: /* @__PURE__ */ c.jsx(Qn, { className: "h-4 w-4 opacity-50" }) })
|
|
15142
15134
|
]
|
|
15143
15135
|
}
|
|
15144
15136
|
));
|
|
@@ -15169,7 +15161,7 @@ const _p = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
15169
15161
|
}
|
|
15170
15162
|
));
|
|
15171
15163
|
_p.displayName = kp.displayName;
|
|
15172
|
-
const Ui = f.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ c.jsx(
|
|
15164
|
+
const Ui = f.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ c.jsx(PT, { children: /* @__PURE__ */ c.jsxs(
|
|
15173
15165
|
Ep,
|
|
15174
15166
|
{
|
|
15175
15167
|
ref: o,
|
|
@@ -15183,7 +15175,7 @@ const Ui = f.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
15183
15175
|
children: [
|
|
15184
15176
|
/* @__PURE__ */ c.jsx(Pp, {}),
|
|
15185
15177
|
/* @__PURE__ */ c.jsx(
|
|
15186
|
-
|
|
15178
|
+
_T,
|
|
15187
15179
|
{
|
|
15188
15180
|
className: D(
|
|
15189
15181
|
"p-1",
|
|
@@ -15197,7 +15189,7 @@ const Ui = f.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
15197
15189
|
}
|
|
15198
15190
|
) }));
|
|
15199
15191
|
Ui.displayName = Ep.displayName;
|
|
15200
|
-
const
|
|
15192
|
+
const DT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
15201
15193
|
Np,
|
|
15202
15194
|
{
|
|
15203
15195
|
ref: n,
|
|
@@ -15205,7 +15197,7 @@ const LT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
15205
15197
|
...t
|
|
15206
15198
|
}
|
|
15207
15199
|
));
|
|
15208
|
-
|
|
15200
|
+
DT.displayName = Np.displayName;
|
|
15209
15201
|
const jn = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ c.jsxs(
|
|
15210
15202
|
Ip,
|
|
15211
15203
|
{
|
|
@@ -15216,13 +15208,13 @@ const jn = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
15216
15208
|
),
|
|
15217
15209
|
...n,
|
|
15218
15210
|
children: [
|
|
15219
|
-
/* @__PURE__ */ c.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c.jsx(
|
|
15220
|
-
/* @__PURE__ */ c.jsx(
|
|
15211
|
+
/* @__PURE__ */ c.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c.jsx(MT, { children: /* @__PURE__ */ c.jsx(Wi, { className: "h-4 w-4" }) }) }),
|
|
15212
|
+
/* @__PURE__ */ c.jsx(OT, { children: t })
|
|
15221
15213
|
]
|
|
15222
15214
|
}
|
|
15223
15215
|
));
|
|
15224
15216
|
jn.displayName = Ip.displayName;
|
|
15225
|
-
const
|
|
15217
|
+
const LT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
15226
15218
|
Ap,
|
|
15227
15219
|
{
|
|
15228
15220
|
ref: n,
|
|
@@ -15230,7 +15222,7 @@ const FT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
15230
15222
|
...t
|
|
15231
15223
|
}
|
|
15232
15224
|
));
|
|
15233
|
-
|
|
15225
|
+
LT.displayName = Ap.displayName;
|
|
15234
15226
|
const Ao = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
15235
15227
|
"div",
|
|
15236
15228
|
{
|
|
@@ -15264,7 +15256,7 @@ const _o = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
15264
15256
|
}
|
|
15265
15257
|
));
|
|
15266
15258
|
_o.displayName = "CardTitle";
|
|
15267
|
-
const
|
|
15259
|
+
const FT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
15268
15260
|
"p",
|
|
15269
15261
|
{
|
|
15270
15262
|
ref: n,
|
|
@@ -15272,10 +15264,10 @@ const BT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
15272
15264
|
...t
|
|
15273
15265
|
}
|
|
15274
15266
|
));
|
|
15275
|
-
|
|
15267
|
+
FT.displayName = "CardDescription";
|
|
15276
15268
|
const Oo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx("div", { ref: n, className: D("p-6 pt-0", e), ...t }));
|
|
15277
15269
|
Oo.displayName = "CardContent";
|
|
15278
|
-
const
|
|
15270
|
+
const BT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
15279
15271
|
"div",
|
|
15280
15272
|
{
|
|
15281
15273
|
ref: n,
|
|
@@ -15283,8 +15275,8 @@ const $T = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
15283
15275
|
...t
|
|
15284
15276
|
}
|
|
15285
15277
|
));
|
|
15286
|
-
|
|
15287
|
-
const
|
|
15278
|
+
BT.displayName = "CardFooter";
|
|
15279
|
+
const $T = {
|
|
15288
15280
|
api: {
|
|
15289
15281
|
baseUrl: "http://localhost:8000/api",
|
|
15290
15282
|
authToken: "",
|
|
@@ -15303,7 +15295,7 @@ const HT = {
|
|
|
15303
15295
|
showTypingIndicator: !0
|
|
15304
15296
|
}
|
|
15305
15297
|
};
|
|
15306
|
-
function
|
|
15298
|
+
function NR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
15307
15299
|
const [r, o] = ue(!1), [s, i] = ue(!1), [a, l] = ue(e), [u, d] = ue(!1), { toast: h } = ha();
|
|
15308
15300
|
Ze(() => {
|
|
15309
15301
|
const p = JSON.stringify(a) !== JSON.stringify(e);
|
|
@@ -15317,7 +15309,7 @@ function IR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
15317
15309
|
description: "Your chat configuration has been updated successfully."
|
|
15318
15310
|
});
|
|
15319
15311
|
}, w = () => {
|
|
15320
|
-
l(
|
|
15312
|
+
l($T), d(!0), h({
|
|
15321
15313
|
title: "Settings reset",
|
|
15322
15314
|
description: "Configuration has been reset to defaults."
|
|
15323
15315
|
});
|
|
@@ -15339,7 +15331,7 @@ function IR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
15339
15331
|
}
|
|
15340
15332
|
};
|
|
15341
15333
|
return /* @__PURE__ */ c.jsxs(hh, { open: r, onOpenChange: o, children: [
|
|
15342
|
-
/* @__PURE__ */ c.jsx(
|
|
15334
|
+
/* @__PURE__ */ c.jsx(uC, { asChild: !0, children: /* @__PURE__ */ c.jsxs(De, { variant: "outline", size: "sm", className: n, children: [
|
|
15343
15335
|
/* @__PURE__ */ c.jsx(sm, { className: "h-4 w-4 mr-2" }),
|
|
15344
15336
|
"Settings",
|
|
15345
15337
|
u && /* @__PURE__ */ c.jsx(Pu, { variant: "destructive", className: "ml-2 h-4 w-4 p-0" })
|
|
@@ -15588,7 +15580,7 @@ function IR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
15588
15580
|
] })
|
|
15589
15581
|
] });
|
|
15590
15582
|
}
|
|
15591
|
-
function
|
|
15583
|
+
function IR({
|
|
15592
15584
|
layout: e = "sidebar",
|
|
15593
15585
|
layoutSize: t = "desktop",
|
|
15594
15586
|
showThreads: n = !0,
|
|
@@ -15667,30 +15659,30 @@ export {
|
|
|
15667
15659
|
Xg as ApiClient,
|
|
15668
15660
|
Xg as ChatApi,
|
|
15669
15661
|
ko as ChatInterface,
|
|
15670
|
-
|
|
15662
|
+
TR as ChatMainLayout,
|
|
15671
15663
|
wo as ChatProvider,
|
|
15672
|
-
|
|
15673
|
-
|
|
15664
|
+
xR as ChatRoutingProvider,
|
|
15665
|
+
NR as ChatSettings,
|
|
15674
15666
|
Ks as MarkdownContent,
|
|
15675
|
-
|
|
15667
|
+
_w as MessageComponent,
|
|
15676
15668
|
Sd as MessageList,
|
|
15677
15669
|
Oi as ThreadManager,
|
|
15678
15670
|
Mn as apiClient,
|
|
15679
|
-
|
|
15671
|
+
yR as applySettings,
|
|
15680
15672
|
Mn as chatApiClient,
|
|
15681
|
-
|
|
15673
|
+
IR as default,
|
|
15682
15674
|
qg as del,
|
|
15683
15675
|
Ft as get,
|
|
15684
15676
|
Vg as getChatToken,
|
|
15685
|
-
|
|
15686
|
-
|
|
15687
|
-
|
|
15677
|
+
wR as getCurrentSettings,
|
|
15678
|
+
nC as getDefaultApiConfig,
|
|
15679
|
+
rC as getDefaultChatSettings,
|
|
15688
15680
|
Gg as onChatTokenChanged,
|
|
15689
15681
|
Kg as post,
|
|
15690
15682
|
Yg as put,
|
|
15691
15683
|
vc as setChatToken,
|
|
15692
15684
|
Yi as useChat,
|
|
15693
|
-
|
|
15685
|
+
bR as useChatRouting,
|
|
15694
15686
|
Jg as useChatStream,
|
|
15695
15687
|
nv as useMessagesReducer
|
|
15696
15688
|
};
|