@factorialco/f0-react 7.28.1 → 7.28.3
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/{ChatPdfThumbnail-53_MddwE.js → ChatPdfThumbnail-DWyXQ0lG.js} +1 -1
- package/dist/{ChatPostComposerDialog-DXOOaRoX.js → ChatPostComposerDialog-DrinGoio.js} +2 -2
- package/dist/{DocumentToolbar-Bf5SCuTi.js → DocumentToolbar-1oZRVL2Q.js} +1 -1
- package/dist/{DocxViewer-B46x2Tij.js → DocxViewer-CCmMwhTT.js} +1 -1
- package/dist/{F0Map-DrwCoNOE.js → F0Map-nUAvlmV5.js} +2 -2
- package/dist/{MapProvider-DzPbwkDE.js → MapProvider--z8CotMd.js} +2047 -2038
- package/dist/{SheetViewer-DJ1RiRnR.js → SheetViewer-DgcdQs0_.js} +1 -1
- package/dist/{TextViewer--C1B9QFp.js → TextViewer-NnEj_qjq.js} +1 -1
- package/dist/ai.d.ts +8 -8
- package/dist/component-status.d.ts +8 -8
- package/dist/component-status.js +1 -1
- package/dist/{experimental-Boy_OMyB.js → experimental-Dad8wE-y.js} +355 -364
- package/dist/experimental.d.ts +8 -8
- package/dist/experimental.js +3 -3
- package/dist/f0.d.ts +8 -8
- package/dist/f0.js +4 -4
- package/dist/i18n-provider-defaults.d.ts +8 -8
- package/dist/{index-vqmGg9GN.js → index-BTWEN7j6.js} +1 -1
- package/dist/{index-YMTefoxC.js → index-C_KIskp7.js} +2 -2
- package/dist/{index-BhyZ9gB4.js → index-Cnkmokj1.js} +2 -2
- package/dist/{pdfWorker-BAmFwu_I.js → pdfWorker-IC8J3SdJ.js} +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { d5 as $v, d6 as Vl, d7 as qv, d8 as Gv, d9 as Pt, da as Uv, db as Vv, d
|
|
|
2
2
|
import { jsxs as g, jsx as t, Fragment as Ae } from "react/jsx-runtime";
|
|
3
3
|
import ve, { useRef as E, useEffect as V, useContext as kn, createContext as pn, useState as D, forwardRef as en, useId as Li, useMemo as ne, useCallback as O, useLayoutEffect as hn, Fragment as Bn, useSyncExternalStore as ku, memo as _t, useTransition as Hp, isValidElement as As, cloneElement as yu, Suspense as ra, lazy as Oi, createElement as Ea, Children as Ps } from "react";
|
|
4
4
|
import { d as S, u as wu, f as Ye, P as Wp, T as jp, a as $p, b as qp, c as Gp } from "./tooltip-CrXp1Uaz.js";
|
|
5
|
-
import { f as wo, n as _u, r as Up, E as Vp, g as Kp, p as Mt, P as xu, C as Yp, h as Jp, i as Xp, j as Qp, k as Jl, a as Xl, M as Zp, l as e0, m as Cu, o as n0, q as i0, R as Ql, s as Su, t as t0, v as a0, w as o0, x as r0, y as s0, z as Nu, A as Iu, B as l0, O as Tu, D as Ru, G as d0, W as Ki, H as f0, I as c0, L as u0, J as m0, V as h0, K as v0, N as g0, Q as p0, T as Ls, U as b0, X as k0, Y as Eu, Z as Mu, _ as y0, $ as w0, a0 as _0, a1 as x0, a2 as C0, a3 as S0, a4 as N0, a5 as I0, a6 as T0, a7 as Zl, a8 as R0, a9 as E0 } from "./MapProvider
|
|
6
|
-
import { c as M0, u as xt, S as Fu, d as F0 } from "./F0Map-
|
|
5
|
+
import { f as wo, n as _u, r as Up, E as Vp, g as Kp, p as Mt, P as xu, C as Yp, h as Jp, i as Xp, j as Qp, k as Jl, a as Xl, M as Zp, l as e0, m as Cu, o as n0, q as i0, R as Ql, s as Su, t as t0, v as a0, w as o0, x as r0, y as s0, z as Nu, A as Iu, B as l0, O as Tu, D as Ru, G as d0, W as Ki, H as f0, I as c0, L as u0, J as m0, V as h0, K as v0, N as g0, Q as p0, T as Ls, U as b0, X as k0, Y as Eu, Z as Mu, _ as y0, $ as w0, a0 as _0, a1 as x0, a2 as C0, a3 as S0, a4 as N0, a5 as I0, a6 as T0, a7 as Zl, a8 as R0, a9 as E0 } from "./MapProvider--z8CotMd.js";
|
|
6
|
+
import { c as M0, u as xt, S as Fu, d as F0 } from "./F0Map-nUAvlmV5.js";
|
|
7
7
|
import A0, { createPortal as Dt } from "react-dom";
|
|
8
8
|
import './maplibre-gl.css';/* empty css */
|
|
9
9
|
const P0 = $v("Search", [
|
|
@@ -1060,15 +1060,15 @@ const FR = ["sm", "md", "lg"], AR = Rn(
|
|
|
1060
1060
|
}, h) {
|
|
1061
1061
|
const y = En(), w = f !== void 0, [b, k] = D(
|
|
1062
1062
|
m ?? w
|
|
1063
|
-
), _ = u ?? b, [C, ...I] = f ?? [], x = (c?.items.length ?? 0) > 0, N = c?.kind === "steps", T = I.length > 0 || x, M = w && I.length > 0 && !_, F = cb(I.length), z = r ?? lb[n],
|
|
1063
|
+
), _ = u ?? b, [C, ...I] = f ?? [], x = (c?.items.length ?? 0) > 0, N = c?.kind === "steps", T = I.length > 0 || x, M = w && I.length > 0 && !_, F = cb(I.length), z = r ?? lb[n], P = !!(s || l), A = !!C;
|
|
1064
1064
|
if (ub({
|
|
1065
1065
|
status: n,
|
|
1066
1066
|
icon: r,
|
|
1067
1067
|
stacked: w,
|
|
1068
|
-
hasAction:
|
|
1069
|
-
hasHeadline:
|
|
1068
|
+
hasAction: P,
|
|
1069
|
+
hasHeadline: A,
|
|
1070
1070
|
evidenceEmpty: !!c && !x
|
|
1071
|
-
}), w && !
|
|
1071
|
+
}), w && !A)
|
|
1072
1072
|
return null;
|
|
1073
1073
|
const B = /* @__PURE__ */ t(
|
|
1074
1074
|
mb,
|
|
@@ -1568,21 +1568,21 @@ const zR = Fn(
|
|
|
1568
1568
|
windowMinutes: m?.windowMinutes,
|
|
1569
1569
|
invitedCount: b,
|
|
1570
1570
|
presentCount: d
|
|
1571
|
-
}), N = Eb(f, n), T = N === "avatars" && s.length > 0, M = N === "count" ? x : void 0, F = i ?? (n === "inProgress" ? y.inProgressTitle : void 0), z = !i && n === "inProgress",
|
|
1571
|
+
}), N = Eb(f, n), T = N === "avatars" && s.length > 0, M = N === "count" ? x : void 0, F = i ?? (n === "inProgress" ? y.inProgressTitle : void 0), z = !i && n === "inProgress", P = v ? [
|
|
1572
1572
|
// No footer band in compact, so the countdown has to ride along the
|
|
1573
1573
|
// headline as text. The clock time is dropped while the meeting runs —
|
|
1574
1574
|
// "started 4 mins ago" is the useful fact then, not when it began.
|
|
1575
1575
|
I ?? k,
|
|
1576
1576
|
n === "inProgress" ? void 0 : _,
|
|
1577
1577
|
M
|
|
1578
|
-
].filter(Boolean) : [k, _, C, M].filter(Boolean),
|
|
1578
|
+
].filter(Boolean) : [k, _, C, M].filter(Boolean), A = Nb(n) && !!m, L = m?.disabled ?? !Sb({
|
|
1579
1579
|
state: n,
|
|
1580
1580
|
startsAt: a,
|
|
1581
1581
|
now: w,
|
|
1582
1582
|
windowMinutes: m?.windowMinutes
|
|
1583
1583
|
}), B = Tb({ state: n, hasCountdown: !!I }) && // In compact the state travels with the headline: the countdown became
|
|
1584
1584
|
// text above, and an in-progress row without a title already says so.
|
|
1585
|
-
!(v && (n === "scheduled" || z)), R =
|
|
1585
|
+
!(v && (n === "scheduled" || z)), R = A || !!p?.length, H = /* @__PURE__ */ g(Ae, { children: [
|
|
1586
1586
|
F ? /* @__PURE__ */ t(
|
|
1587
1587
|
Sr,
|
|
1588
1588
|
{
|
|
@@ -1597,7 +1597,7 @@ const zR = Fn(
|
|
|
1597
1597
|
)
|
|
1598
1598
|
}
|
|
1599
1599
|
) : null,
|
|
1600
|
-
|
|
1600
|
+
P.length > 0 ? /* @__PURE__ */ t(Sr, { variant: "description", content: P.join(" · ") }) : null
|
|
1601
1601
|
] }), $ = T && /* @__PURE__ */ t(
|
|
1602
1602
|
Lb,
|
|
1603
1603
|
{
|
|
@@ -1617,7 +1617,7 @@ const zR = Fn(
|
|
|
1617
1617
|
},
|
|
1618
1618
|
Y.label
|
|
1619
1619
|
)),
|
|
1620
|
-
|
|
1620
|
+
A && m ? /* @__PURE__ */ t(zb, { join: m, disabled: L }) : null
|
|
1621
1621
|
] });
|
|
1622
1622
|
return /* @__PURE__ */ t(
|
|
1623
1623
|
hs,
|
|
@@ -1736,10 +1736,10 @@ const Wb = ({ compact: e = !1 }) => /* @__PURE__ */ t(
|
|
|
1736
1736
|
return;
|
|
1737
1737
|
}
|
|
1738
1738
|
m || !w || !r || (T(!0), F());
|
|
1739
|
-
}, [I, i, m, w, r, F]),
|
|
1739
|
+
}, [I, i, m, w, r, F]), P = E(b);
|
|
1740
1740
|
V(() => {
|
|
1741
|
-
const K =
|
|
1742
|
-
if (
|
|
1741
|
+
const K = P.current && !b;
|
|
1742
|
+
if (P.current = b, !!N) {
|
|
1743
1743
|
if (I) {
|
|
1744
1744
|
T(!1), i(I);
|
|
1745
1745
|
return;
|
|
@@ -1757,7 +1757,7 @@ const Wb = ({ compact: e = !1 }) => /* @__PURE__ */ t(
|
|
|
1757
1757
|
};
|
|
1758
1758
|
return document.addEventListener("keydown", K), () => document.removeEventListener("keydown", K);
|
|
1759
1759
|
}, [l, x, z]);
|
|
1760
|
-
const
|
|
1760
|
+
const A = ne(
|
|
1761
1761
|
() => ({
|
|
1762
1762
|
// BOTH ARROWS ALWAYS, disabled at the ends rather than removed: an arrow
|
|
1763
1763
|
// that vanishes takes the reader's aim with it, and on the first page the
|
|
@@ -1819,7 +1819,7 @@ const Wb = ({ compact: e = !1 }) => /* @__PURE__ */ t(
|
|
|
1819
1819
|
onClose: d,
|
|
1820
1820
|
title: J.title,
|
|
1821
1821
|
headerStatus: J.status,
|
|
1822
|
-
sideControls: m || h > 1 || w ?
|
|
1822
|
+
sideControls: m || h > 1 || w ? A : void 0,
|
|
1823
1823
|
children: J.content
|
|
1824
1824
|
}
|
|
1825
1825
|
);
|
|
@@ -2464,13 +2464,13 @@ const fd = ({
|
|
|
2464
2464
|
disabled: M = !1,
|
|
2465
2465
|
hiddenAvatar: F = !1
|
|
2466
2466
|
}) => {
|
|
2467
|
-
const z = ve.useRef(null),
|
|
2467
|
+
const z = ve.useRef(null), P = ne(
|
|
2468
2468
|
() => e ? n.reduce(
|
|
2469
2469
|
(q, j) => q + (j.subItems?.length ?? 0),
|
|
2470
2470
|
0
|
|
2471
2471
|
) : n.length,
|
|
2472
2472
|
[n, e]
|
|
2473
|
-
),
|
|
2473
|
+
), A = O(() => {
|
|
2474
2474
|
setTimeout(() => {
|
|
2475
2475
|
z.current?.scrollTo({ top: 0 });
|
|
2476
2476
|
}, cd), setTimeout(() => {
|
|
@@ -2514,7 +2514,7 @@ const fd = ({
|
|
|
2514
2514
|
{
|
|
2515
2515
|
label: x ?? "",
|
|
2516
2516
|
onCreate: () => I?.(o),
|
|
2517
|
-
goToFirst:
|
|
2517
|
+
goToFirst: A,
|
|
2518
2518
|
goToLast: L
|
|
2519
2519
|
}
|
|
2520
2520
|
);
|
|
@@ -2533,7 +2533,7 @@ const fd = ({
|
|
|
2533
2533
|
partialSelected: oe,
|
|
2534
2534
|
showGroupIcon: Zb(i, a),
|
|
2535
2535
|
singleSelector: N,
|
|
2536
|
-
goToFirst:
|
|
2536
|
+
goToFirst: A,
|
|
2537
2537
|
goToLast: L,
|
|
2538
2538
|
disabled: M,
|
|
2539
2539
|
hiddenAvatar: F
|
|
@@ -2547,7 +2547,7 @@ const fd = ({
|
|
|
2547
2547
|
M,
|
|
2548
2548
|
n,
|
|
2549
2549
|
R,
|
|
2550
|
-
|
|
2550
|
+
A,
|
|
2551
2551
|
L,
|
|
2552
2552
|
e,
|
|
2553
2553
|
i,
|
|
@@ -2602,7 +2602,7 @@ const fd = ({
|
|
|
2602
2602
|
{
|
|
2603
2603
|
label: x ?? "",
|
|
2604
2604
|
onCreate: () => I?.(o),
|
|
2605
|
-
goToFirst:
|
|
2605
|
+
goToFirst: A,
|
|
2606
2606
|
goToLast: L
|
|
2607
2607
|
}
|
|
2608
2608
|
);
|
|
@@ -2637,7 +2637,7 @@ const fd = ({
|
|
|
2637
2637
|
partialSelected: Pe,
|
|
2638
2638
|
showGroupIcon: i.find((ke) => ke.value === a)?.groupType === "team",
|
|
2639
2639
|
singleSelector: N,
|
|
2640
|
-
goToFirst:
|
|
2640
|
+
goToFirst: A,
|
|
2641
2641
|
goToLast: L,
|
|
2642
2642
|
hideLine: j === $.length - 1,
|
|
2643
2643
|
disabled: M,
|
|
@@ -2677,7 +2677,7 @@ const fd = ({
|
|
|
2677
2677
|
selected: !!oe,
|
|
2678
2678
|
partialSelected: !1,
|
|
2679
2679
|
singleSelector: N,
|
|
2680
|
-
goToFirst:
|
|
2680
|
+
goToFirst: A,
|
|
2681
2681
|
goToLast: L,
|
|
2682
2682
|
isChild: !0,
|
|
2683
2683
|
hiddenAvatar: F
|
|
@@ -2689,7 +2689,7 @@ const fd = ({
|
|
|
2689
2689
|
m,
|
|
2690
2690
|
o,
|
|
2691
2691
|
N,
|
|
2692
|
-
|
|
2692
|
+
A,
|
|
2693
2693
|
L,
|
|
2694
2694
|
r,
|
|
2695
2695
|
s,
|
|
@@ -2751,7 +2751,7 @@ const fd = ({
|
|
|
2751
2751
|
search: o,
|
|
2752
2752
|
onSearch: u,
|
|
2753
2753
|
searchPlaceholder: h,
|
|
2754
|
-
goToFirst:
|
|
2754
|
+
goToFirst: A,
|
|
2755
2755
|
goToLast: L
|
|
2756
2756
|
}
|
|
2757
2757
|
) }),
|
|
@@ -2782,7 +2782,7 @@ const fd = ({
|
|
|
2782
2782
|
),
|
|
2783
2783
|
children: [
|
|
2784
2784
|
T ? /* @__PURE__ */ t("div", { className: "flex h-full w-full flex-row items-center justify-center", children: /* @__PURE__ */ t(Zt, {}) }) : null,
|
|
2785
|
-
!T && !
|
|
2785
|
+
!T && !P ? /* @__PURE__ */ g(
|
|
2786
2786
|
"div",
|
|
2787
2787
|
{
|
|
2788
2788
|
className: "absolute flex w-full flex-col items-center justify-center gap-0.5 p-5",
|
|
@@ -2795,7 +2795,7 @@ const fd = ({
|
|
|
2795
2795
|
]
|
|
2796
2796
|
}
|
|
2797
2797
|
) : null,
|
|
2798
|
-
!T && (
|
|
2798
|
+
!T && (P || I) ? /* @__PURE__ */ t("div", { className: "h-full", children: e ? /* @__PURE__ */ t(
|
|
2799
2799
|
Fr,
|
|
2800
2800
|
{
|
|
2801
2801
|
height: Jo,
|
|
@@ -2828,7 +2828,7 @@ const fd = ({
|
|
|
2828
2828
|
onSelectAll: c,
|
|
2829
2829
|
onClear: f,
|
|
2830
2830
|
singleSelector: N,
|
|
2831
|
-
totalFilteredEntities:
|
|
2831
|
+
totalFilteredEntities: P,
|
|
2832
2832
|
allVisibleSelected: K,
|
|
2833
2833
|
anyVisibleSelected: te,
|
|
2834
2834
|
selectAllLabel: y,
|
|
@@ -3129,26 +3129,26 @@ const fd = ({
|
|
|
3129
3129
|
return;
|
|
3130
3130
|
const z = new Set(
|
|
3131
3131
|
(F.subItems ?? []).map((B) => B.subId)
|
|
3132
|
-
),
|
|
3132
|
+
), P = /* @__PURE__ */ new Set([F.id]);
|
|
3133
3133
|
o.forEach((B) => {
|
|
3134
3134
|
B.id !== F.id && (B.subItems ?? []).some(
|
|
3135
3135
|
(H) => z.has(H.subId)
|
|
3136
|
-
) &&
|
|
3136
|
+
) && P.add(B.id);
|
|
3137
3137
|
});
|
|
3138
|
-
const
|
|
3138
|
+
const A = [...M];
|
|
3139
3139
|
function L(B) {
|
|
3140
|
-
const R =
|
|
3141
|
-
R >= 0 ?
|
|
3140
|
+
const R = A.findIndex((H) => H.id === B.id);
|
|
3141
|
+
R >= 0 ? A[R] = B : A.push(B);
|
|
3142
3142
|
}
|
|
3143
|
-
|
|
3143
|
+
P.forEach((B) => {
|
|
3144
3144
|
const R = o.find((J) => J.id === B);
|
|
3145
3145
|
if (!R)
|
|
3146
3146
|
return;
|
|
3147
3147
|
const H = R.subItems?.filter(
|
|
3148
3148
|
(J) => z.has(J.subId)
|
|
3149
|
-
) ?? [], $ =
|
|
3149
|
+
) ?? [], $ = A.findIndex((J) => J.id === B);
|
|
3150
3150
|
if ($ >= 0) {
|
|
3151
|
-
const J =
|
|
3151
|
+
const J = A[$].subItems ?? [], K = new Set(J.map((Y) => Y.subId)), te = [
|
|
3152
3152
|
...J,
|
|
3153
3153
|
...H.filter((Y) => !K.has(Y.subId))
|
|
3154
3154
|
];
|
|
@@ -3161,13 +3161,13 @@ const fd = ({
|
|
|
3161
3161
|
...R,
|
|
3162
3162
|
subItems: H
|
|
3163
3163
|
});
|
|
3164
|
-
}), e.onSelect(
|
|
3164
|
+
}), e.onSelect(A);
|
|
3165
3165
|
}
|
|
3166
3166
|
function h(T, M) {
|
|
3167
3167
|
if (e.singleSelector)
|
|
3168
3168
|
e.onSelect({ ...T, subItems: [{ ...M }] }), i(!1);
|
|
3169
3169
|
else {
|
|
3170
|
-
const F = e.selectedEntities ?? [], z = new Set(F.map((L) => L.id)),
|
|
3170
|
+
const F = e.selectedEntities ?? [], z = new Set(F.map((L) => L.id)), P = new Map(
|
|
3171
3171
|
F.map((L) => [L.id, L.subItems ?? []])
|
|
3172
3172
|
);
|
|
3173
3173
|
z.add(T.id), e.entities.forEach((L) => {
|
|
@@ -3175,10 +3175,10 @@ const fd = ({
|
|
|
3175
3175
|
(R) => R.subId === M.subId
|
|
3176
3176
|
) && z.add(L.id);
|
|
3177
3177
|
});
|
|
3178
|
-
const
|
|
3178
|
+
const A = [];
|
|
3179
3179
|
e.entities.forEach((L) => {
|
|
3180
3180
|
if (z.has(L.id)) {
|
|
3181
|
-
let R = [...
|
|
3181
|
+
let R = [...P.get(L.id) ?? []];
|
|
3182
3182
|
L.subItems?.some(
|
|
3183
3183
|
(J) => J.subId === M.subId
|
|
3184
3184
|
) && (R.some(
|
|
@@ -3189,12 +3189,12 @@ const fd = ({
|
|
|
3189
3189
|
);
|
|
3190
3190
|
R = R.filter(
|
|
3191
3191
|
(J) => $.has(J.subId)
|
|
3192
|
-
),
|
|
3192
|
+
), A.push({
|
|
3193
3193
|
...L,
|
|
3194
3194
|
subItems: R
|
|
3195
3195
|
});
|
|
3196
3196
|
}
|
|
3197
|
-
}), e.onSelect(
|
|
3197
|
+
}), e.onSelect(A);
|
|
3198
3198
|
}
|
|
3199
3199
|
}
|
|
3200
3200
|
function y(T) {
|
|
@@ -3206,19 +3206,19 @@ const fd = ({
|
|
|
3206
3206
|
const F = e.selectedEntities ?? [];
|
|
3207
3207
|
if (c) {
|
|
3208
3208
|
const z = o.find(
|
|
3209
|
-
(
|
|
3209
|
+
(A) => A.id === T.id
|
|
3210
3210
|
);
|
|
3211
3211
|
if (!z)
|
|
3212
3212
|
return;
|
|
3213
|
-
const
|
|
3214
|
-
(z.subItems ?? []).map((
|
|
3213
|
+
const P = new Set(
|
|
3214
|
+
(z.subItems ?? []).map((A) => A.subId)
|
|
3215
3215
|
);
|
|
3216
|
-
for (const
|
|
3217
|
-
const L = (
|
|
3218
|
-
(B) => !
|
|
3216
|
+
for (const A of F) {
|
|
3217
|
+
const L = (A.subItems ?? []).filter(
|
|
3218
|
+
(B) => !P.has(B.subId)
|
|
3219
3219
|
);
|
|
3220
3220
|
L.length > 0 && M.push({
|
|
3221
|
-
...
|
|
3221
|
+
...A,
|
|
3222
3222
|
subItems: L
|
|
3223
3223
|
});
|
|
3224
3224
|
}
|
|
@@ -3231,15 +3231,15 @@ const fd = ({
|
|
|
3231
3231
|
e.onSelect(null);
|
|
3232
3232
|
return;
|
|
3233
3233
|
}
|
|
3234
|
-
const F = e.selectedEntities ?? [], z = M.subId,
|
|
3235
|
-
for (const
|
|
3236
|
-
const L =
|
|
3237
|
-
L.length > 0 &&
|
|
3238
|
-
...
|
|
3234
|
+
const F = e.selectedEntities ?? [], z = M.subId, P = [];
|
|
3235
|
+
for (const A of F) {
|
|
3236
|
+
const L = A.subItems?.filter((B) => B.subId !== z) ?? [];
|
|
3237
|
+
L.length > 0 && P.push({
|
|
3238
|
+
...A,
|
|
3239
3239
|
subItems: L
|
|
3240
3240
|
});
|
|
3241
3241
|
}
|
|
3242
|
-
e.onSelect(
|
|
3242
|
+
e.onSelect(P);
|
|
3243
3243
|
}
|
|
3244
3244
|
function b() {
|
|
3245
3245
|
if (e.singleSelector) {
|
|
@@ -3251,16 +3251,16 @@ const fd = ({
|
|
|
3251
3251
|
if (c) {
|
|
3252
3252
|
const F = new Set(
|
|
3253
3253
|
o.flatMap(
|
|
3254
|
-
(z) => (z.subItems ?? []).map((
|
|
3254
|
+
(z) => (z.subItems ?? []).map((P) => P.subId)
|
|
3255
3255
|
)
|
|
3256
3256
|
);
|
|
3257
3257
|
for (const z of T) {
|
|
3258
|
-
const
|
|
3259
|
-
(
|
|
3258
|
+
const P = (z.subItems ?? []).filter(
|
|
3259
|
+
(A) => !F.has(A.subId)
|
|
3260
3260
|
);
|
|
3261
|
-
|
|
3261
|
+
P.length > 0 && M.push({
|
|
3262
3262
|
...z,
|
|
3263
|
-
subItems:
|
|
3263
|
+
subItems: P
|
|
3264
3264
|
});
|
|
3265
3265
|
}
|
|
3266
3266
|
} else {
|
|
@@ -3307,18 +3307,18 @@ const fd = ({
|
|
|
3307
3307
|
}
|
|
3308
3308
|
if (c && !e.applySearchToGroup) {
|
|
3309
3309
|
const M = e.entities.map((F) => {
|
|
3310
|
-
const z = ak(F, d),
|
|
3311
|
-
...
|
|
3310
|
+
const z = ak(F, d), P = F.subItems?.map((A) => ({
|
|
3311
|
+
...A,
|
|
3312
3312
|
score: Ua(
|
|
3313
3313
|
d,
|
|
3314
|
-
|
|
3314
|
+
A.subSearchKeys ?? [A.subName]
|
|
3315
3315
|
)
|
|
3316
|
-
})).filter((
|
|
3316
|
+
})).filter((A) => A.score < 1 / 0).sort((A, L) => A.score - L.score);
|
|
3317
3317
|
return {
|
|
3318
3318
|
...F,
|
|
3319
3319
|
score: z,
|
|
3320
|
-
expanded: F.expanded ?? (
|
|
3321
|
-
subItems:
|
|
3320
|
+
expanded: F.expanded ?? (P?.length ?? 0) > 0,
|
|
3321
|
+
subItems: P
|
|
3322
3322
|
};
|
|
3323
3323
|
}).filter((F) => F.score < 1 / 0).sort((F, z) => F.score - z.score);
|
|
3324
3324
|
r(M);
|
|
@@ -4209,7 +4209,7 @@ const xk = () => /* @__PURE__ */ g("div", { className: "flex flex-col justify-ar
|
|
|
4209
4209
|
pinnedLabel: C,
|
|
4210
4210
|
relativeDate: I = !1
|
|
4211
4211
|
}) => {
|
|
4212
|
-
const x = Li(), N = Li(), T = Ti(), M = E(null), [F, z] = D(null), [
|
|
4212
|
+
const x = Li(), N = Li(), T = Ti(), M = E(null), [F, z] = D(null), [P, A] = D(!1), L = [f.views, f.comments].filter(Boolean).join(" · "), B = y && F?.id === e && F.description === r, R = !B && !w, H = I ? gg(a, T) : Lc(a, { locale: T }), $ = !!s, J = s ? () => s(e) : void 0, K = (ae) => {
|
|
4213
4213
|
ae.stopPropagation();
|
|
4214
4214
|
}, te = n ? `${n.firstName} ${n.lastName}` : void 0, Y = (ae) => {
|
|
4215
4215
|
ae.preventDefault(), ae.stopPropagation(), r && z({ id: e, description: r });
|
|
@@ -4221,11 +4221,11 @@ const xk = () => /* @__PURE__ */ g("div", { className: "flex flex-col justify-ar
|
|
|
4221
4221
|
}, [y]), V(() => {
|
|
4222
4222
|
const ae = M.current;
|
|
4223
4223
|
if (!y || !ae || B) {
|
|
4224
|
-
|
|
4224
|
+
A(!1);
|
|
4225
4225
|
return;
|
|
4226
4226
|
}
|
|
4227
4227
|
const ue = () => {
|
|
4228
|
-
|
|
4228
|
+
A(
|
|
4229
4229
|
ae.scrollHeight > ae.clientHeight
|
|
4230
4230
|
);
|
|
4231
4231
|
};
|
|
@@ -4385,7 +4385,7 @@ const xk = () => /* @__PURE__ */ g("div", { className: "flex flex-col justify-ar
|
|
|
4385
4385
|
className: S(B && Ye())
|
|
4386
4386
|
}
|
|
4387
4387
|
),
|
|
4388
|
-
y && !w &&
|
|
4388
|
+
y && !w && P && !B ? /* @__PURE__ */ t(
|
|
4389
4389
|
Ik,
|
|
4390
4390
|
{
|
|
4391
4391
|
describedBy: x,
|
|
@@ -5339,12 +5339,12 @@ const KR = Rn(
|
|
|
5339
5339
|
ee ? M.current.set(oe, ee) : M.current.delete(oe);
|
|
5340
5340
|
},
|
|
5341
5341
|
[]
|
|
5342
|
-
), z = $k(),
|
|
5343
|
-
|
|
5344
|
-
const
|
|
5345
|
-
|
|
5342
|
+
), z = $k(), P = E({ focusIntent: h, roster: z });
|
|
5343
|
+
P.current = { focusIntent: h, roster: z };
|
|
5344
|
+
const A = E(x);
|
|
5345
|
+
A.current = x;
|
|
5346
5346
|
const L = O(() => {
|
|
5347
|
-
const oe =
|
|
5347
|
+
const oe = A.current;
|
|
5348
5348
|
if (N === "document") {
|
|
5349
5349
|
if (oe.pipWindow)
|
|
5350
5350
|
return;
|
|
@@ -5353,20 +5353,20 @@ const KR = Rn(
|
|
|
5353
5353
|
return;
|
|
5354
5354
|
}
|
|
5355
5355
|
if (N === "video" && !oe.pipVideo) {
|
|
5356
|
-
const { focusIntent: ee, roster: ce } =
|
|
5356
|
+
const { focusIntent: ee, roster: ce } = P.current, he = vy(M.current, ee, ce);
|
|
5357
5357
|
he && oe.openVideo(he).catch(() => {
|
|
5358
5358
|
});
|
|
5359
5359
|
}
|
|
5360
5360
|
}, [N]), B = O(() => {
|
|
5361
|
-
const oe =
|
|
5361
|
+
const oe = A.current;
|
|
5362
5362
|
oe.pipWindow ? oe.close() : oe.pipVideo && oe.closeVideo();
|
|
5363
5363
|
}, []), R = z?.status, H = z !== null;
|
|
5364
5364
|
V(() => {
|
|
5365
|
-
T && (!H || R === "disconnected" || R === "error") && (
|
|
5365
|
+
T && (!H || R === "disconnected" || R === "error") && (A.current.pipWindow?.close(), window.focus());
|
|
5366
5366
|
}, [R, H, T]);
|
|
5367
5367
|
const $ = O(
|
|
5368
5368
|
(oe) => {
|
|
5369
|
-
|
|
5369
|
+
A.current.pipWindow?.close(), r({ roomId: n, mode: oe });
|
|
5370
5370
|
},
|
|
5371
5371
|
[r, n]
|
|
5372
5372
|
), {
|
|
@@ -7005,7 +7005,7 @@ const Mw = () => {
|
|
|
7005
7005
|
) : void 0, M = m.focusKey ?? (N ? (T ?? f[0])?.key ?? null : null), F = M ? f.find((te) => te.key === M) : void 0;
|
|
7006
7006
|
if (!F || !M)
|
|
7007
7007
|
return null;
|
|
7008
|
-
const z = f.filter((te) => te.key !== F.key),
|
|
7008
|
+
const z = f.filter((te) => te.key !== F.key), P = (te) => Iw({
|
|
7009
7009
|
stripCount: z.length,
|
|
7010
7010
|
width: d.width,
|
|
7011
7011
|
height: d.height,
|
|
@@ -7019,9 +7019,9 @@ const Mw = () => {
|
|
|
7019
7019
|
// and letterboxes inside its own tile, so only the missing part of
|
|
7020
7020
|
// the picture goes black.
|
|
7021
7021
|
spotlightRange: F.kind === "screenShare" || F.participant.preventCrop ? void 0 : { min: Dr, max: Hr }
|
|
7022
|
-
}),
|
|
7022
|
+
}), A = Tm(d.width), L = P(A), B = Rm(
|
|
7023
7023
|
L.strip[0]?.width ?? L.spotlight.width
|
|
7024
|
-
), R = B ===
|
|
7024
|
+
), R = B === A ? L : P(B);
|
|
7025
7025
|
if (R.strip.length === 0 && z.length === 1)
|
|
7026
7026
|
return null;
|
|
7027
7027
|
const H = R.stripOverflow > 0, $ = H ? Math.max(0, R.strip.length - 1) : R.strip.length, J = [
|
|
@@ -7458,31 +7458,31 @@ const Mw = () => {
|
|
|
7458
7458
|
(N) => {
|
|
7459
7459
|
if (!h || N.target !== N.currentTarget)
|
|
7460
7460
|
return;
|
|
7461
|
-
const T = N.shiftKey ? ey : Zk, M = N.metaKey || N.ctrlKey, F = v.current, z = { width: window.innerWidth, height: window.innerHeight },
|
|
7461
|
+
const T = N.shiftKey ? ey : Zk, M = N.metaKey || N.ctrlKey, F = v.current, z = { width: window.innerWidth, height: window.innerHeight }, A = {
|
|
7462
7462
|
ArrowUp: [0, -T],
|
|
7463
7463
|
ArrowDown: [0, T],
|
|
7464
7464
|
ArrowLeft: [-T, 0],
|
|
7465
7465
|
ArrowRight: [T, 0]
|
|
7466
7466
|
}[N.key];
|
|
7467
|
-
if (!
|
|
7467
|
+
if (!A)
|
|
7468
7468
|
return;
|
|
7469
7469
|
N.preventDefault();
|
|
7470
7470
|
const L = M ? {
|
|
7471
7471
|
...F,
|
|
7472
7472
|
width: zn(
|
|
7473
|
-
F.width +
|
|
7473
|
+
F.width + A[0],
|
|
7474
7474
|
la,
|
|
7475
7475
|
z.width - Qe * 2
|
|
7476
7476
|
),
|
|
7477
7477
|
height: zn(
|
|
7478
|
-
F.height +
|
|
7478
|
+
F.height + A[1],
|
|
7479
7479
|
Io,
|
|
7480
7480
|
z.height - Qe * 2
|
|
7481
7481
|
)
|
|
7482
7482
|
} : {
|
|
7483
7483
|
...F,
|
|
7484
7484
|
x: zn(
|
|
7485
|
-
F.x +
|
|
7485
|
+
F.x + A[0],
|
|
7486
7486
|
Qe,
|
|
7487
7487
|
Math.max(
|
|
7488
7488
|
Qe,
|
|
@@ -7490,7 +7490,7 @@ const Mw = () => {
|
|
|
7490
7490
|
)
|
|
7491
7491
|
),
|
|
7492
7492
|
y: zn(
|
|
7493
|
-
F.y +
|
|
7493
|
+
F.y + A[1],
|
|
7494
7494
|
Qe,
|
|
7495
7495
|
Math.max(
|
|
7496
7496
|
Qe,
|
|
@@ -8180,7 +8180,7 @@ function $_({
|
|
|
8180
8180
|
contentSide: C,
|
|
8181
8181
|
restoringViewId: I,
|
|
8182
8182
|
isResizing: x
|
|
8183
|
-
} = oa(), { canvasContent: N, canvasEntities: T, closeCanvas: M } = Ag(), F = p === "fullscreen", z = N !== null, { open:
|
|
8183
|
+
} = oa(), { canvasContent: N, canvasEntities: T, closeCanvas: M } = Ag(), F = p === "fullscreen", z = N !== null, { open: P } = _o(), A = b ? v ?? Ko : Math.min(Ko, h?.max ?? Ko), B = N?.coversChat === !0 ? 0 : A, R = k === "left", H = C !== k, $ = !!(_ || I), J = E($);
|
|
8184
8184
|
V(() => {
|
|
8185
8185
|
J.current = $;
|
|
8186
8186
|
});
|
|
@@ -8265,8 +8265,8 @@ function $_({
|
|
|
8265
8265
|
ue && xe && Me,
|
|
8266
8266
|
c
|
|
8267
8267
|
), Ne = y ?? !1, Z = m && F, _e = {
|
|
8268
|
-
left: m && !Ne && ee ?
|
|
8269
|
-
right: m && !Ne && !ee ?
|
|
8268
|
+
left: m && !Ne && ee ? A : 0,
|
|
8269
|
+
right: m && !Ne && !ee ? A : 0
|
|
8270
8270
|
}, Ve = E(_e);
|
|
8271
8271
|
Z || (Ve.current = _e);
|
|
8272
8272
|
const Ue = Z ? Ve.current : _e, qe = Vd(
|
|
@@ -8274,8 +8274,8 @@ function $_({
|
|
|
8274
8274
|
c
|
|
8275
8275
|
), me = m && (!ee || $e);
|
|
8276
8276
|
return V(() => {
|
|
8277
|
-
d(me ||
|
|
8278
|
-
}, [me,
|
|
8277
|
+
d(me || P);
|
|
8278
|
+
}, [me, P, d]), j_(me, ke), /* @__PURE__ */ t(
|
|
8279
8279
|
Zp,
|
|
8280
8280
|
{
|
|
8281
8281
|
reducedMotion: c ? "always" : "never",
|
|
@@ -8340,7 +8340,7 @@ function $_({
|
|
|
8340
8340
|
className: S(
|
|
8341
8341
|
"relative z-10 flex h-full max-w-full flex-1 xs:py-1",
|
|
8342
8342
|
ue ? "overflow-hidden" : "overflow-x-hidden overflow-y-auto",
|
|
8343
|
-
!m && !
|
|
8343
|
+
!m && !P && "xs:pr-1",
|
|
8344
8344
|
// Left seam so the content never sticks to the viewport edge:
|
|
8345
8345
|
// none when the sidebar is active (it provides the gap) or when
|
|
8346
8346
|
// a left-docked panel is OPEN (it reserves the space); otherwise
|
|
@@ -8425,7 +8425,7 @@ function $_({
|
|
|
8425
8425
|
isFullscreen: F,
|
|
8426
8426
|
isClosingFromFullscreen: X,
|
|
8427
8427
|
isActivePanel: Je,
|
|
8428
|
-
reservedWidth:
|
|
8428
|
+
reservedWidth: A
|
|
8429
8429
|
})
|
|
8430
8430
|
},
|
|
8431
8431
|
transition: Nn(
|
|
@@ -10271,7 +10271,7 @@ const w2 = Rn(y2), Zm = ({
|
|
|
10271
10271
|
"[data-sidebar-tab-panel-searching='true']"
|
|
10272
10272
|
))
|
|
10273
10273
|
return "searching";
|
|
10274
|
-
const { byChatId:
|
|
10274
|
+
const { byChatId: P, byGroupId: A } = d.current;
|
|
10275
10275
|
return Array.from(
|
|
10276
10276
|
v.querySelectorAll("[data-sidebar-panel-group-id]")
|
|
10277
10277
|
).map((L) => {
|
|
@@ -10279,10 +10279,10 @@ const w2 = Rn(y2), Zm = ({
|
|
|
10279
10279
|
if (!!L.querySelector(
|
|
10280
10280
|
"[data-sidebar-collapsible-open='false']"
|
|
10281
10281
|
))
|
|
10282
|
-
return `${B}:closed:${
|
|
10282
|
+
return `${B}:closed:${A.get(B) ?? 0}`;
|
|
10283
10283
|
const H = Array.from(
|
|
10284
10284
|
L.querySelectorAll("[data-sidebar-chat-id]")
|
|
10285
|
-
).map(($) => $.dataset.sidebarChatId ?? "").filter(($) =>
|
|
10285
|
+
).map(($) => $.dataset.sidebarChatId ?? "").filter(($) => P.has($));
|
|
10286
10286
|
return `${B}:open:${H.join(",")}`;
|
|
10287
10287
|
}).join("|");
|
|
10288
10288
|
}, T = () => {
|
|
@@ -10290,14 +10290,14 @@ const w2 = Rn(y2), Zm = ({
|
|
|
10290
10290
|
if (k && x === z)
|
|
10291
10291
|
return;
|
|
10292
10292
|
x = z, k?.disconnect();
|
|
10293
|
-
const
|
|
10293
|
+
const P = /* @__PURE__ */ new Map();
|
|
10294
10294
|
if (s({
|
|
10295
10295
|
above: Fi,
|
|
10296
10296
|
below: Fi
|
|
10297
10297
|
}), v.querySelector("[data-sidebar-tab-panel-searching='true']"))
|
|
10298
10298
|
return;
|
|
10299
|
-
const
|
|
10300
|
-
const R = T2(
|
|
10299
|
+
const A = () => {
|
|
10300
|
+
const R = T2(P);
|
|
10301
10301
|
s(
|
|
10302
10302
|
(H) => H.above.count === R.above.count && H.above.target === R.above.target && H.below.count === R.below.count && H.below.target === R.below.target ? H : R
|
|
10303
10303
|
);
|
|
@@ -10305,7 +10305,7 @@ const w2 = Rn(y2), Zm = ({
|
|
|
10305
10305
|
k = new IntersectionObserver(
|
|
10306
10306
|
(R) => {
|
|
10307
10307
|
R.forEach((H) => {
|
|
10308
|
-
const $ = H.target, J =
|
|
10308
|
+
const $ = H.target, J = P.get($);
|
|
10309
10309
|
if (!J)
|
|
10310
10310
|
return;
|
|
10311
10311
|
const K = l.current;
|
|
@@ -10313,13 +10313,13 @@ const w2 = Rn(y2), Zm = ({
|
|
|
10313
10313
|
const te = $.ownerDocument.activeElement === K.origin;
|
|
10314
10314
|
f(), te && Qd($);
|
|
10315
10315
|
}
|
|
10316
|
-
|
|
10316
|
+
P.set($, {
|
|
10317
10317
|
...J,
|
|
10318
10318
|
direction: I2(H),
|
|
10319
10319
|
top: H.boundingClientRect.top,
|
|
10320
10320
|
bottom: H.boundingClientRect.bottom
|
|
10321
10321
|
});
|
|
10322
|
-
}),
|
|
10322
|
+
}), A();
|
|
10323
10323
|
},
|
|
10324
10324
|
{ root: h, threshold: 0 }
|
|
10325
10325
|
);
|
|
@@ -10331,7 +10331,7 @@ const w2 = Rn(y2), Zm = ({
|
|
|
10331
10331
|
if (R.querySelector(
|
|
10332
10332
|
"[data-sidebar-collapsible-open='false']"
|
|
10333
10333
|
)) {
|
|
10334
|
-
|
|
10334
|
+
P.set(R, {
|
|
10335
10335
|
count: $,
|
|
10336
10336
|
direction: null,
|
|
10337
10337
|
top: 0,
|
|
@@ -10341,14 +10341,14 @@ const w2 = Rn(y2), Zm = ({
|
|
|
10341
10341
|
}
|
|
10342
10342
|
R.querySelectorAll("[data-sidebar-chat-id]").forEach((K) => {
|
|
10343
10343
|
const te = K.dataset.sidebarChatId;
|
|
10344
|
-
!te || !L.has(te) || (
|
|
10344
|
+
!te || !L.has(te) || (P.set(K, {
|
|
10345
10345
|
count: 1,
|
|
10346
10346
|
direction: null,
|
|
10347
10347
|
top: 0,
|
|
10348
10348
|
bottom: 0
|
|
10349
10349
|
}), k?.observe(K));
|
|
10350
10350
|
});
|
|
10351
|
-
}),
|
|
10351
|
+
}), P.size === 0 && A();
|
|
10352
10352
|
}, M = () => {
|
|
10353
10353
|
!I || _ !== null || (_ = requestAnimationFrame(() => {
|
|
10354
10354
|
_ = null, T();
|
|
@@ -11066,23 +11066,23 @@ function z2({
|
|
|
11066
11066
|
forceUpdate: d,
|
|
11067
11067
|
disableDragging: f = !1
|
|
11068
11068
|
}) {
|
|
11069
|
-
const c = se(), { isDragging: u } = sl(), m = e.some((
|
|
11069
|
+
const c = se(), { isDragging: u } = sl(), m = e.some((A) => A.isRoot), p = e.filter((A) => !A.isRoot).length > 0, v = n.length > 0, h = E(null), [y, w] = D(s), b = s.length > 0;
|
|
11070
11070
|
V(() => {
|
|
11071
11071
|
JSON.stringify(s) !== JSON.stringify(y) && w(s);
|
|
11072
11072
|
}, [s]);
|
|
11073
|
-
const k = (
|
|
11074
|
-
w(
|
|
11073
|
+
const k = (A) => {
|
|
11074
|
+
w(A);
|
|
11075
11075
|
}, _ = O(
|
|
11076
|
-
(
|
|
11077
|
-
const L = y.filter((B) => B.href !==
|
|
11076
|
+
(A) => {
|
|
11077
|
+
const L = y.filter((B) => B.href !== A.href);
|
|
11078
11078
|
w(L), l?.(L);
|
|
11079
11079
|
},
|
|
11080
11080
|
[y, l]
|
|
11081
11081
|
), C = O(
|
|
11082
|
-
(
|
|
11082
|
+
(A, L) => {
|
|
11083
11083
|
if (L < 0 || L >= y.length)
|
|
11084
11084
|
return;
|
|
11085
|
-
const B = [...y], [R] = B.splice(
|
|
11085
|
+
const B = [...y], [R] = B.splice(A, 1);
|
|
11086
11086
|
B.splice(L, 0, R), w(B), l?.(B);
|
|
11087
11087
|
},
|
|
11088
11088
|
[y, l]
|
|
@@ -11090,25 +11090,25 @@ function z2({
|
|
|
11090
11090
|
V(() => {
|
|
11091
11091
|
n.length > 0 && !I && (i([...n]), x(!0));
|
|
11092
11092
|
}, [n, i, I]), V(() => {
|
|
11093
|
-
const
|
|
11093
|
+
const A = () => {
|
|
11094
11094
|
N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
|
|
11095
11095
|
a.current && n.length > 0 && d();
|
|
11096
11096
|
}, 50);
|
|
11097
11097
|
};
|
|
11098
|
-
return window.addEventListener("resize",
|
|
11099
|
-
window.removeEventListener("resize",
|
|
11098
|
+
return window.addEventListener("resize", A), () => {
|
|
11099
|
+
window.removeEventListener("resize", A), N.current !== null && window.clearTimeout(N.current);
|
|
11100
11100
|
};
|
|
11101
11101
|
}, [a, n, d]);
|
|
11102
11102
|
const T = "flex flex-col gap-0.5", M = ne(
|
|
11103
|
-
() => y.reduce((
|
|
11103
|
+
() => y.reduce((A, L, B) => (L.label in A || (A[L.label] = []), A[L.label].push(B), A), {}),
|
|
11104
11104
|
[y]
|
|
11105
11105
|
), F = ne(
|
|
11106
|
-
() => b && y.map((
|
|
11106
|
+
() => b && y.map((A, L) => /* @__PURE__ */ t(
|
|
11107
11107
|
L2,
|
|
11108
11108
|
{
|
|
11109
11109
|
isSortable: !f,
|
|
11110
|
-
tooltip: (M[
|
|
11111
|
-
item:
|
|
11110
|
+
tooltip: (M[A.label] ?? []).length > 1 ? A.tooltip : void 0,
|
|
11111
|
+
item: A,
|
|
11112
11112
|
dragConstraints: h,
|
|
11113
11113
|
onRemove: _,
|
|
11114
11114
|
index: L,
|
|
@@ -11118,7 +11118,7 @@ function z2({
|
|
|
11118
11118
|
l?.(y);
|
|
11119
11119
|
}
|
|
11120
11120
|
},
|
|
11121
|
-
`${
|
|
11121
|
+
`${A.href}-${A.label}`
|
|
11122
11122
|
)),
|
|
11123
11123
|
[
|
|
11124
11124
|
b,
|
|
@@ -11129,17 +11129,17 @@ function z2({
|
|
|
11129
11129
|
l,
|
|
11130
11130
|
f
|
|
11131
11131
|
]
|
|
11132
|
-
), z = "flex flex-col gap-3",
|
|
11132
|
+
), z = "flex flex-col gap-3", P = ne(() => n.map((A) => /* @__PURE__ */ t(
|
|
11133
11133
|
er,
|
|
11134
11134
|
{
|
|
11135
|
-
category:
|
|
11135
|
+
category: A,
|
|
11136
11136
|
isSortable: !f,
|
|
11137
11137
|
dragConstraints: a,
|
|
11138
11138
|
onCollapse: o,
|
|
11139
11139
|
onDragEnd: r,
|
|
11140
11140
|
currentOrder: n
|
|
11141
11141
|
},
|
|
11142
|
-
|
|
11142
|
+
A.id
|
|
11143
11143
|
)), [n, f, a, o, r]);
|
|
11144
11144
|
return /* @__PURE__ */ g(
|
|
11145
11145
|
"div",
|
|
@@ -11149,10 +11149,10 @@ function z2({
|
|
|
11149
11149
|
u && "cursor-grabbing [&_*]:cursor-grabbing"
|
|
11150
11150
|
),
|
|
11151
11151
|
children: [
|
|
11152
|
-
m ? /* @__PURE__ */ t("div", { className: "flex w-full flex-col gap-3 bg-transparent px-3", children: e.filter((
|
|
11152
|
+
m ? /* @__PURE__ */ t("div", { className: "flex w-full flex-col gap-3 bg-transparent px-3", children: e.filter((A) => A.isRoot).map((A, L) => /* @__PURE__ */ t(
|
|
11153
11153
|
er,
|
|
11154
11154
|
{
|
|
11155
|
-
category:
|
|
11155
|
+
category: A,
|
|
11156
11156
|
onCollapse: o
|
|
11157
11157
|
},
|
|
11158
11158
|
`fixed-${L}`
|
|
@@ -11167,10 +11167,10 @@ function z2({
|
|
|
11167
11167
|
children: F
|
|
11168
11168
|
}
|
|
11169
11169
|
) }) }) }) : null,
|
|
11170
|
-
p ? /* @__PURE__ */ t("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: e.filter((
|
|
11170
|
+
p ? /* @__PURE__ */ t("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: e.filter((A) => !A.isRoot).map((A, L) => /* @__PURE__ */ t(
|
|
11171
11171
|
er,
|
|
11172
11172
|
{
|
|
11173
|
-
category:
|
|
11173
|
+
category: A,
|
|
11174
11174
|
onCollapse: o
|
|
11175
11175
|
},
|
|
11176
11176
|
`fixed-${L}`
|
|
@@ -11182,7 +11182,7 @@ function z2({
|
|
|
11182
11182
|
"mt-3 flex w-full flex-col gap-3 bg-transparent px-3 [&_li]:list-none"
|
|
11183
11183
|
),
|
|
11184
11184
|
ref: a,
|
|
11185
|
-
children: f ? /* @__PURE__ */ t("div", { className: z, children:
|
|
11185
|
+
children: f ? /* @__PURE__ */ t("div", { className: z, children: P }) : /* @__PURE__ */ t(
|
|
11186
11186
|
Ql,
|
|
11187
11187
|
{
|
|
11188
11188
|
axis: "y",
|
|
@@ -11190,7 +11190,7 @@ function z2({
|
|
|
11190
11190
|
onReorder: i,
|
|
11191
11191
|
layoutScroll: !0,
|
|
11192
11192
|
className: z,
|
|
11193
|
-
children:
|
|
11193
|
+
children: P
|
|
11194
11194
|
}
|
|
11195
11195
|
)
|
|
11196
11196
|
}
|
|
@@ -11945,8 +11945,8 @@ function TE(e) {
|
|
|
11945
11945
|
data: M,
|
|
11946
11946
|
paginationInfo: F,
|
|
11947
11947
|
setPage: z,
|
|
11948
|
-
loadMore:
|
|
11949
|
-
isLoading:
|
|
11948
|
+
loadMore: P,
|
|
11949
|
+
isLoading: A,
|
|
11950
11950
|
isInitialLoading: L
|
|
11951
11951
|
} = ip(
|
|
11952
11952
|
h,
|
|
@@ -11971,8 +11971,8 @@ function TE(e) {
|
|
|
11971
11971
|
data: M,
|
|
11972
11972
|
paginationInfo: F,
|
|
11973
11973
|
setPage: z,
|
|
11974
|
-
loadMore:
|
|
11975
|
-
isLoading:
|
|
11974
|
+
loadMore: P,
|
|
11975
|
+
isLoading: A,
|
|
11976
11976
|
idProvider: s,
|
|
11977
11977
|
itemUrl: B,
|
|
11978
11978
|
activeItemId: a,
|
|
@@ -11999,7 +11999,7 @@ function TE(e) {
|
|
|
11999
11999
|
search: h.debouncedCurrentSearch,
|
|
12000
12000
|
// Loading gates: while the window is (initially or re)fetching it may
|
|
12001
12001
|
// still answer; resolve id-relatively only once it conclusively can't.
|
|
12002
|
-
enabled: f && b && !L && !
|
|
12002
|
+
enabled: f && b && !L && !A && te,
|
|
12003
12003
|
fetchParamsProvider: (ee) => ({
|
|
12004
12004
|
...ee,
|
|
12005
12005
|
navigationFilters: h.currentNavigationFilters
|
|
@@ -12053,7 +12053,7 @@ function TE(e) {
|
|
|
12053
12053
|
dataSource: h,
|
|
12054
12054
|
data: M,
|
|
12055
12055
|
paginationInfo: F,
|
|
12056
|
-
isLoading:
|
|
12056
|
+
isLoading: A
|
|
12057
12057
|
};
|
|
12058
12058
|
}
|
|
12059
12059
|
const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "inline-flex items-center gap-1", children: [
|
|
@@ -12667,68 +12667,59 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
12667
12667
|
canDrill: w
|
|
12668
12668
|
}) => {
|
|
12669
12669
|
const b = e.trim(), k = O(
|
|
12670
|
-
(
|
|
12671
|
-
if (
|
|
12672
|
-
|
|
12670
|
+
(P) => () => {
|
|
12671
|
+
if (P.run) {
|
|
12672
|
+
P.run(f);
|
|
12673
12673
|
return;
|
|
12674
12674
|
}
|
|
12675
|
-
|
|
12675
|
+
P.href && f.navigate(P.href);
|
|
12676
12676
|
},
|
|
12677
12677
|
[f]
|
|
12678
12678
|
), _ = ne(
|
|
12679
12679
|
() => a.flatMap(
|
|
12680
|
-
(
|
|
12680
|
+
(P) => P.provider ? [] : [
|
|
12681
12681
|
{
|
|
12682
|
-
label:
|
|
12683
|
-
rows:
|
|
12684
|
-
id:
|
|
12685
|
-
group:
|
|
12686
|
-
label:
|
|
12687
|
-
hint:
|
|
12688
|
-
avatar:
|
|
12689
|
-
icon:
|
|
12690
|
-
color:
|
|
12691
|
-
keywords:
|
|
12692
|
-
run: k(
|
|
12682
|
+
label: P.label,
|
|
12683
|
+
rows: P.items.map((A) => ({
|
|
12684
|
+
id: A.id,
|
|
12685
|
+
group: P.label,
|
|
12686
|
+
label: A.label,
|
|
12687
|
+
hint: A.description,
|
|
12688
|
+
avatar: A.avatar,
|
|
12689
|
+
icon: A.icon ?? Rr,
|
|
12690
|
+
color: A.color,
|
|
12691
|
+
keywords: A.keywords,
|
|
12692
|
+
run: k(A)
|
|
12693
12693
|
}))
|
|
12694
12694
|
}
|
|
12695
12695
|
]
|
|
12696
12696
|
),
|
|
12697
12697
|
[a, k]
|
|
12698
12698
|
), C = ne(
|
|
12699
|
-
() => _.flatMap((
|
|
12699
|
+
() => _.flatMap((P) => P.rows),
|
|
12700
12700
|
[_]
|
|
12701
12701
|
), I = O(
|
|
12702
|
-
(
|
|
12703
|
-
const
|
|
12704
|
-
return !!(
|
|
12702
|
+
(P) => {
|
|
12703
|
+
const A = o.find((L) => L.type === P.type);
|
|
12704
|
+
return !!(A?.actions || A?.inside);
|
|
12705
12705
|
},
|
|
12706
12706
|
[o]
|
|
12707
12707
|
), x = O(
|
|
12708
|
-
(
|
|
12709
|
-
const B =
|
|
12710
|
-
...d ? [
|
|
12711
|
-
{
|
|
12712
|
-
key: "ask",
|
|
12713
|
-
label: `${d.label}: ${A.label}`,
|
|
12714
|
-
icon: d.icon,
|
|
12715
|
-
text: d.label,
|
|
12716
|
-
run: () => c(A.label, A)
|
|
12717
|
-
}
|
|
12718
|
-
] : [],
|
|
12708
|
+
(P, A, L) => {
|
|
12709
|
+
const B = P.kind === "one" ? P.href : void 0, R = [
|
|
12719
12710
|
...L ? [
|
|
12720
12711
|
{
|
|
12721
12712
|
key: "actions",
|
|
12722
|
-
label: p.rowActions.actionsFor(
|
|
12713
|
+
label: p.rowActions.actionsFor(P.label),
|
|
12723
12714
|
tip: p.rowActions.actions,
|
|
12724
12715
|
icon: Zi,
|
|
12725
|
-
run: () => y(
|
|
12716
|
+
run: () => y(P)
|
|
12726
12717
|
}
|
|
12727
12718
|
] : [],
|
|
12728
12719
|
...B ? [
|
|
12729
12720
|
{
|
|
12730
12721
|
key: "copy",
|
|
12731
|
-
label: p.rowActions.copyLinkTo(
|
|
12722
|
+
label: p.rowActions.copyLinkTo(P.label),
|
|
12732
12723
|
tip: p.rowActions.copyLink,
|
|
12733
12724
|
icon: tp,
|
|
12734
12725
|
run: () => m(B)
|
|
@@ -12736,48 +12727,48 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
12736
12727
|
] : []
|
|
12737
12728
|
];
|
|
12738
12729
|
return {
|
|
12739
|
-
id: `${
|
|
12740
|
-
group:
|
|
12741
|
-
label:
|
|
12742
|
-
hint:
|
|
12743
|
-
icon:
|
|
12744
|
-
color:
|
|
12745
|
-
avatar:
|
|
12746
|
-
scopeRef: L ?
|
|
12730
|
+
id: `${P.type}-${P.kind === "one" ? P.id : P.ids.join(",")}`,
|
|
12731
|
+
group: A,
|
|
12732
|
+
label: P.label,
|
|
12733
|
+
hint: P.kind === "one" ? P.sublabel : void 0,
|
|
12734
|
+
icon: P.icon ?? Rr,
|
|
12735
|
+
color: P.color,
|
|
12736
|
+
avatar: P.kind === "one" ? P.avatar : void 0,
|
|
12737
|
+
scopeRef: L ? P : void 0,
|
|
12747
12738
|
rowActions: R,
|
|
12748
12739
|
run: () => {
|
|
12749
12740
|
B && f.navigate(B);
|
|
12750
12741
|
}
|
|
12751
12742
|
};
|
|
12752
12743
|
},
|
|
12753
|
-
[
|
|
12744
|
+
[f, p, m, y]
|
|
12754
12745
|
), N = O(
|
|
12755
|
-
(
|
|
12756
|
-
id: `${
|
|
12757
|
-
group:
|
|
12746
|
+
(P) => v.pending.includes(P.type) ? Array.from({ length: ir }, (A, L) => ({
|
|
12747
|
+
id: `${P.type}-skeleton-${L}`,
|
|
12748
|
+
group: P.label,
|
|
12758
12749
|
label: "",
|
|
12759
12750
|
skeleton: !0,
|
|
12760
12751
|
run: () => {
|
|
12761
12752
|
}
|
|
12762
|
-
})) : v.failed.includes(
|
|
12753
|
+
})) : v.failed.includes(P.type) ? [
|
|
12763
12754
|
{
|
|
12764
|
-
id: `${
|
|
12765
|
-
group:
|
|
12766
|
-
label:
|
|
12755
|
+
id: `${P.type}-failed`,
|
|
12756
|
+
group: P.label,
|
|
12757
|
+
label: P.label,
|
|
12767
12758
|
hint: p.row.searchFailed,
|
|
12768
12759
|
disabledReason: p.row.searchFailed,
|
|
12769
12760
|
run: () => {
|
|
12770
12761
|
}
|
|
12771
12762
|
}
|
|
12772
|
-
] : (v.refs[
|
|
12773
|
-
(
|
|
12763
|
+
] : (v.refs[P.type] ?? []).map(
|
|
12764
|
+
(A) => x(A, P.label, I(A))
|
|
12774
12765
|
),
|
|
12775
12766
|
[I, p, x, v]
|
|
12776
12767
|
), T = ne(() => {
|
|
12777
12768
|
if (!n || !w)
|
|
12778
12769
|
return [];
|
|
12779
|
-
const
|
|
12780
|
-
return h.pending ? Array.from({ length: ir }, (
|
|
12770
|
+
const P = (A) => o.find((L) => L.type === A.type)?.label ?? n.label;
|
|
12771
|
+
return h.pending ? Array.from({ length: ir }, (A, L) => ({
|
|
12781
12772
|
id: `inside-skeleton-${L}`,
|
|
12782
12773
|
group: n.label,
|
|
12783
12774
|
label: "",
|
|
@@ -12795,7 +12786,7 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
12795
12786
|
}
|
|
12796
12787
|
}
|
|
12797
12788
|
] : h.refs.map(
|
|
12798
|
-
(
|
|
12789
|
+
(A) => x(A, P(A), I(A))
|
|
12799
12790
|
);
|
|
12800
12791
|
}, [w, I, h, p, o, x, n]), M = ne(() => {
|
|
12801
12792
|
if (!n)
|
|
@@ -12835,23 +12826,23 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
12835
12826
|
}, [T, p, u, o, b, n]), F = ne(() => {
|
|
12836
12827
|
if (i.kind !== "param" || !n)
|
|
12837
12828
|
return [];
|
|
12838
|
-
const
|
|
12839
|
-
if (!
|
|
12829
|
+
const P = (i.action.params ?? [])[i.step];
|
|
12830
|
+
if (!P)
|
|
12840
12831
|
return [];
|
|
12841
|
-
const
|
|
12832
|
+
const A = new Set(i.values[P.key] ?? []), L = P.options(n);
|
|
12842
12833
|
return (b ? L.filter((R) => rl(b, R.label) !== null) : L).map(
|
|
12843
12834
|
(R) => ({
|
|
12844
|
-
id: `option-${
|
|
12845
|
-
group:
|
|
12835
|
+
id: `option-${P.key}-${R.value}`,
|
|
12836
|
+
group: P.label,
|
|
12846
12837
|
label: R.label,
|
|
12847
12838
|
hint: R.sublabel,
|
|
12848
|
-
icon: R.icon ?? (
|
|
12839
|
+
icon: R.icon ?? (A.has(R.value) ? ap : void 0),
|
|
12849
12840
|
color: R.color,
|
|
12850
12841
|
avatar: R.avatar,
|
|
12851
12842
|
run: () => {
|
|
12852
12843
|
const H = {
|
|
12853
12844
|
...i.values,
|
|
12854
|
-
[
|
|
12845
|
+
[P.key]: P.multiple ? [...i.values[P.key] ?? [], R.value] : [R.value]
|
|
12855
12846
|
};
|
|
12856
12847
|
u(i.action, H, i.step + 1);
|
|
12857
12848
|
}
|
|
@@ -12860,14 +12851,14 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
12860
12851
|
}, [u, b, n, i]), z = ne(() => {
|
|
12861
12852
|
if (!d)
|
|
12862
12853
|
return null;
|
|
12863
|
-
const
|
|
12854
|
+
const P = e.trim();
|
|
12864
12855
|
return {
|
|
12865
12856
|
id: "assistant",
|
|
12866
12857
|
group: d.label,
|
|
12867
|
-
label: n ? `${d.label}: ${n.label}` : `${d.label}: ${
|
|
12858
|
+
label: n ? `${d.label}: ${n.label}` : `${d.label}: ${P}`,
|
|
12868
12859
|
icon: d.icon,
|
|
12869
12860
|
assistant: !0,
|
|
12870
|
-
run: () => c(
|
|
12861
|
+
run: () => c(P)
|
|
12871
12862
|
};
|
|
12872
12863
|
}, [d, c, e, n]);
|
|
12873
12864
|
return ne(() => {
|
|
@@ -12905,20 +12896,20 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
12905
12896
|
run: () => {
|
|
12906
12897
|
}
|
|
12907
12898
|
}));
|
|
12908
|
-
let
|
|
12909
|
-
const
|
|
12899
|
+
let P = s ?? 1 / 0;
|
|
12900
|
+
const A = (L) => {
|
|
12910
12901
|
if (L.provider)
|
|
12911
12902
|
return N(L.provider);
|
|
12912
|
-
if (
|
|
12903
|
+
if (P <= 0)
|
|
12913
12904
|
return [];
|
|
12914
12905
|
const B = kx(
|
|
12915
12906
|
_.find((R) => R.label === L.label)?.rows ?? [],
|
|
12916
12907
|
b,
|
|
12917
12908
|
L.limit
|
|
12918
|
-
).slice(0,
|
|
12919
|
-
return
|
|
12909
|
+
).slice(0, P);
|
|
12910
|
+
return P -= B.length, B;
|
|
12920
12911
|
};
|
|
12921
|
-
return [...a.flatMap(
|
|
12912
|
+
return [...a.flatMap(A), ...z ? [z] : []];
|
|
12922
12913
|
}, [
|
|
12923
12914
|
C,
|
|
12924
12915
|
z,
|
|
@@ -13058,7 +13049,7 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
13058
13049
|
initializeWithValue: !1
|
|
13059
13050
|
}), [y, w] = D(""), [b, k] = D([""]), [_, C] = D(
|
|
13060
13051
|
i ? [i] : []
|
|
13061
|
-
), I = _[_.length - 1] ?? null, [x, N] = D({ kind: "browse" }), [T, M] = D(0), [F, z] = D(null), [
|
|
13052
|
+
), I = _[_.length - 1] ?? null, [x, N] = D({ kind: "browse" }), [T, M] = D(0), [F, z] = D(null), [P, A] = D(""), L = E(null), B = E("field"), R = E(null), [H, $] = D(null), J = O((W) => {
|
|
13062
13053
|
R.current = W, W && $((le) => le === W ? le : W);
|
|
13063
13054
|
}, []), K = E(null), te = O(() => n(!1), [n]);
|
|
13064
13055
|
V(() => {
|
|
@@ -13070,8 +13061,8 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
13070
13061
|
},
|
|
13071
13062
|
[te, c]
|
|
13072
13063
|
), ae = O(
|
|
13073
|
-
(W
|
|
13074
|
-
d?.onAsk(W,
|
|
13064
|
+
(W) => {
|
|
13065
|
+
d?.onAsk(W, I ?? void 0), te();
|
|
13075
13066
|
},
|
|
13076
13067
|
[d, te, I]
|
|
13077
13068
|
), ue = O((W) => {
|
|
@@ -13094,7 +13085,7 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
13094
13085
|
navigator.clipboard?.writeText(le), Iu.open({
|
|
13095
13086
|
title: u.rowActions.linkCopied,
|
|
13096
13087
|
variant: "success"
|
|
13097
|
-
}),
|
|
13088
|
+
}), A(u.announce.linkCopied(le));
|
|
13098
13089
|
},
|
|
13099
13090
|
[u]
|
|
13100
13091
|
), oe = O(
|
|
@@ -13106,12 +13097,12 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
13106
13097
|
(tn, bn) => tn + bn.items.length,
|
|
13107
13098
|
0
|
|
13108
13099
|
);
|
|
13109
|
-
|
|
13100
|
+
A(u.announce.scoped(W.label, Fe));
|
|
13110
13101
|
},
|
|
13111
13102
|
[u, p]
|
|
13112
13103
|
), ee = O(
|
|
13113
13104
|
(W, le) => {
|
|
13114
|
-
C((Fe) => Fe.slice(0, W)), N({ kind: "browse" }), w(le), k([le]),
|
|
13105
|
+
C((Fe) => Fe.slice(0, W)), N({ kind: "browse" }), w(le), k([le]), A(u.announce.cleared), L.current?.focus(), st(L.current);
|
|
13115
13106
|
},
|
|
13116
13107
|
[u]
|
|
13117
13108
|
), ce = O(() => x.kind === "param" ? (N(
|
|
@@ -13202,7 +13193,7 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
13202
13193
|
const le = ke[W];
|
|
13203
13194
|
if (le) {
|
|
13204
13195
|
if (le.disabledReason) {
|
|
13205
|
-
|
|
13196
|
+
A(
|
|
13206
13197
|
u.announce.unavailable(le.label, le.disabledReason)
|
|
13207
13198
|
);
|
|
13208
13199
|
return;
|
|
@@ -13430,7 +13421,7 @@ const Y2 = ({ keys: e, label: n }) => /* @__PURE__ */ g("span", { className: "in
|
|
|
13430
13421
|
activeOptionId: ke[T] ? `f0-command-option-${T}` : void 0
|
|
13431
13422
|
}
|
|
13432
13423
|
),
|
|
13433
|
-
/* @__PURE__ */ t("div", { className: "sr-only", role: "status", "aria-live": "polite", children:
|
|
13424
|
+
/* @__PURE__ */ t("div", { className: "sr-only", role: "status", "aria-live": "polite", children: P }),
|
|
13434
13425
|
/* @__PURE__ */ g("div", { ref: K, className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
13435
13426
|
/* @__PURE__ */ t(
|
|
13436
13427
|
"div",
|
|
@@ -13901,7 +13892,7 @@ const $x = 200, qx = 1600, k1 = pn(null), y1 = pn(null), w1 = pn(null), _1 = pn(
|
|
|
13901
13892
|
v.current = l;
|
|
13902
13893
|
const h = E(r?.canSend);
|
|
13903
13894
|
h.current = r?.canSend;
|
|
13904
|
-
const y = E(null), [w, b] = D(null), [k, _] = D(null), [C, I] = D(!1), [x, N] = D(""), [T, M] = D([]), [F, z] = D(-1), [
|
|
13895
|
+
const y = E(null), [w, b] = D(null), [k, _] = D(null), [C, I] = D(!1), [x, N] = D(""), [T, M] = D([]), [F, z] = D(-1), [P, A] = D(!1), L = E(n);
|
|
13905
13896
|
L.current = n;
|
|
13906
13897
|
const B = E(i);
|
|
13907
13898
|
B.current = i;
|
|
@@ -13991,13 +13982,13 @@ const $x = 200, qx = 1600, k1 = pn(null), y1 = pn(null), w1 = pn(null), _1 = pn(
|
|
|
13991
13982
|
return;
|
|
13992
13983
|
const me = x.trim();
|
|
13993
13984
|
if (me === "") {
|
|
13994
|
-
M([]), z(-1),
|
|
13985
|
+
M([]), z(-1), A(!1), c(null);
|
|
13995
13986
|
return;
|
|
13996
13987
|
}
|
|
13997
|
-
|
|
13988
|
+
A(!0);
|
|
13998
13989
|
const xe = ++J.current, Me = setTimeout(() => {
|
|
13999
13990
|
const Je = (He) => {
|
|
14000
|
-
xe === J.current && (M(He),
|
|
13991
|
+
xe === J.current && (M(He), A(!1), He.length > 0 ? $e(He.length - 1, He) : (z(-1), c(null)));
|
|
14001
13992
|
}, De = B.current;
|
|
14002
13993
|
if (De)
|
|
14003
13994
|
De(me).then((He) => Je(He.map((Xe) => Xe.id)));
|
|
@@ -14018,7 +14009,7 @@ const $x = 200, qx = 1600, k1 = pn(null), y1 = pn(null), w1 = pn(null), _1 = pn(
|
|
|
14018
14009
|
const sn = O(() => {
|
|
14019
14010
|
I(!0), s.onSearchOpened();
|
|
14020
14011
|
}, [s]), ln = O(() => {
|
|
14021
|
-
J.current++, I(!1), N(""), M([]), z(-1),
|
|
14012
|
+
J.current++, I(!1), N(""), M([]), z(-1), A(!1), c(null);
|
|
14022
14013
|
}, []), dn = O(() => {
|
|
14023
14014
|
const me = H.current;
|
|
14024
14015
|
me.length !== 0 && (s.onSearchResultNavigated({ direction: "next" }), $e(($.current + 1) % me.length, me));
|
|
@@ -14063,7 +14054,7 @@ const $x = 200, qx = 1600, k1 = pn(null), y1 = pn(null), w1 = pn(null), _1 = pn(
|
|
|
14063
14054
|
closeSearch: ln,
|
|
14064
14055
|
searchQuery: x,
|
|
14065
14056
|
setSearchQuery: N,
|
|
14066
|
-
searching:
|
|
14057
|
+
searching: P,
|
|
14067
14058
|
matchCurrent: an,
|
|
14068
14059
|
matchTotal: Be,
|
|
14069
14060
|
goToNextMatch: dn,
|
|
@@ -14074,7 +14065,7 @@ const $x = 200, qx = 1600, k1 = pn(null), y1 = pn(null), w1 = pn(null), _1 = pn(
|
|
|
14074
14065
|
sn,
|
|
14075
14066
|
ln,
|
|
14076
14067
|
x,
|
|
14077
|
-
|
|
14068
|
+
P,
|
|
14078
14069
|
an,
|
|
14079
14070
|
Be,
|
|
14080
14071
|
dn,
|
|
@@ -14589,7 +14580,7 @@ function d3({
|
|
|
14589
14580
|
}) || (x.current = U, I(U));
|
|
14590
14581
|
}, []), T = E(e), M = E(e);
|
|
14591
14582
|
M.current = e;
|
|
14592
|
-
const F = E(-1), z = E(null),
|
|
14583
|
+
const F = E(-1), z = E(null), P = E(0), A = E(-1), L = O(
|
|
14593
14584
|
(U) => !!f && (U.length === 0 || f.toLowerCase().startsWith(U.toLowerCase())),
|
|
14594
14585
|
[f]
|
|
14595
14586
|
), B = ne(() => {
|
|
@@ -14606,20 +14597,20 @@ function d3({
|
|
|
14606
14597
|
}
|
|
14607
14598
|
const U = a3(e, i, C);
|
|
14608
14599
|
if (!U) {
|
|
14609
|
-
m(!1), v(""), y([]), _(0), F.current = -1,
|
|
14600
|
+
m(!1), v(""), y([]), _(0), F.current = -1, A.current = -1;
|
|
14610
14601
|
return;
|
|
14611
14602
|
}
|
|
14612
|
-
if (U.atIndex ===
|
|
14603
|
+
if (U.atIndex === A.current)
|
|
14613
14604
|
return;
|
|
14614
14605
|
F.current = U.atIndex, v(U.query), m(!0), _(0), b(!0), z.current && clearTimeout(z.current);
|
|
14615
|
-
const q = ++
|
|
14606
|
+
const q = ++P.current;
|
|
14616
14607
|
return z.current = setTimeout(() => {
|
|
14617
14608
|
d(U.query).then((j) => {
|
|
14618
|
-
q ===
|
|
14609
|
+
q === P.current && (y(j), _(0), j.length === 0 && !L(U.query) && U.query.length > 0 && (A.current = U.atIndex, m(!1)));
|
|
14619
14610
|
}).catch(() => {
|
|
14620
|
-
q ===
|
|
14611
|
+
q === P.current && (y([]), m(!1));
|
|
14621
14612
|
}).finally(() => {
|
|
14622
|
-
q ===
|
|
14613
|
+
q === P.current && b(!1);
|
|
14623
14614
|
});
|
|
14624
14615
|
}, l3), () => {
|
|
14625
14616
|
z.current && clearTimeout(z.current);
|
|
@@ -14635,7 +14626,7 @@ function d3({
|
|
|
14635
14626
|
const R = O(() => {
|
|
14636
14627
|
m(!1), v(""), y([]), _(0), F.current = -1;
|
|
14637
14628
|
}, []), H = O(() => {
|
|
14638
|
-
|
|
14629
|
+
A.current = F.current, R();
|
|
14639
14630
|
}, [R]), $ = O(
|
|
14640
14631
|
(U) => {
|
|
14641
14632
|
const q = F.current;
|
|
@@ -15141,8 +15132,8 @@ function H3({
|
|
|
15141
15132
|
(M) => {
|
|
15142
15133
|
if (!h)
|
|
15143
15134
|
return;
|
|
15144
|
-
const F = e.slice(0, h.colonIndex), z = e.slice(i),
|
|
15145
|
-
n(
|
|
15135
|
+
const F = e.slice(0, h.colonIndex), z = e.slice(i), P = /^\s/.test(z), A = F + M.native + (P ? "" : " ") + z, L = F.length + M.native.length + (P ? 0 : 1);
|
|
15136
|
+
n(A), a(L), k(), r.onEmojiInserted({ emoji: M.native, source: "autocomplete" }), requestAnimationFrame(() => {
|
|
15146
15137
|
const B = o.current;
|
|
15147
15138
|
B && (B.focus(), B.setSelectionRange(L, L));
|
|
15148
15139
|
});
|
|
@@ -15200,8 +15191,8 @@ function H3({
|
|
|
15200
15191
|
const F = L1(
|
|
15201
15192
|
M,
|
|
15202
15193
|
h.colonIndex
|
|
15203
|
-
), z = M.offsetLeft + F.left,
|
|
15204
|
-
return { left: z, bottom:
|
|
15194
|
+
), z = M.offsetLeft + F.left, A = (M.offsetParent ? M.offsetParent.offsetHeight : 0) - (M.offsetTop + F.top);
|
|
15195
|
+
return { left: z, bottom: A };
|
|
15205
15196
|
}, [w, h, e, i, o]), T = y[b] ?? y[0];
|
|
15206
15197
|
return {
|
|
15207
15198
|
isOpen: w,
|
|
@@ -15356,7 +15347,7 @@ const K3 = /* @__PURE__ */ new Set(["blob:", "data:"]), Y3 = /* @__PURE__ */ new
|
|
|
15356
15347
|
),
|
|
15357
15348
|
children: e
|
|
15358
15349
|
}
|
|
15359
|
-
), e4 = () => import("./ChatPdfThumbnail-
|
|
15350
|
+
), e4 = () => import("./ChatPdfThumbnail-DWyXQ0lG.js"), n4 = () => import("./ChatSheetThumbnail-D8aN1W_0.js"), i4 = () => import("./ChatDocxThumbnail-D5hDwmp7.js"), t4 = () => import("./ChatTextThumbnail-B53pSYUy.js"), a4 = Oi(e4), o4 = Oi(n4), r4 = Oi(i4), s4 = Oi(t4), l4 = 384, d4 = 160, f4 = ({
|
|
15360
15351
|
kind: e,
|
|
15361
15352
|
url: n,
|
|
15362
15353
|
width: i,
|
|
@@ -17086,7 +17077,7 @@ const f6 = {
|
|
|
17086
17077
|
ze((x) => x.length > 0),
|
|
17087
17078
|
Ke(w, h),
|
|
17088
17079
|
pe(([x, N, T]) => {
|
|
17089
|
-
const M = x.reduce((F, z,
|
|
17080
|
+
const M = x.reduce((F, z, P) => Qn(F, z, Kt(z, N.offsetTree, T) || P), ut());
|
|
17090
17081
|
return {
|
|
17091
17082
|
...N,
|
|
17092
17083
|
groupIndices: x,
|
|
@@ -17161,14 +17152,14 @@ const f6 = {
|
|
|
17161
17152
|
pe(([x, N, T]) => {
|
|
17162
17153
|
const M = [];
|
|
17163
17154
|
for (let F = 0; F < x.length; F++) {
|
|
17164
|
-
const z = x[F],
|
|
17155
|
+
const z = x[F], P = x[F + 1];
|
|
17165
17156
|
M.push({
|
|
17166
17157
|
startIndex: z,
|
|
17167
17158
|
endIndex: z,
|
|
17168
17159
|
size: N
|
|
17169
|
-
}),
|
|
17160
|
+
}), P !== void 0 && M.push({
|
|
17170
17161
|
startIndex: z + 1,
|
|
17171
|
-
endIndex:
|
|
17162
|
+
endIndex: P - 1,
|
|
17172
17163
|
size: T
|
|
17173
17164
|
});
|
|
17174
17165
|
}
|
|
@@ -17225,9 +17216,9 @@ const f6 = {
|
|
|
17225
17216
|
const T = N.groupIndices.length > 0, M = [], F = N.lastSize;
|
|
17226
17217
|
if (T) {
|
|
17227
17218
|
const z = Ut(N.sizeTree, 0);
|
|
17228
|
-
let
|
|
17229
|
-
for (;
|
|
17230
|
-
const B = N.groupIndices[
|
|
17219
|
+
let P = 0, A = 0;
|
|
17220
|
+
for (; P < x; ) {
|
|
17221
|
+
const B = N.groupIndices[A], R = N.groupIndices.length === A + 1 ? 1 / 0 : N.groupIndices[A + 1] - B - 1;
|
|
17231
17222
|
M.push({
|
|
17232
17223
|
endIndex: B,
|
|
17233
17224
|
size: z,
|
|
@@ -17236,10 +17227,10 @@ const f6 = {
|
|
|
17236
17227
|
endIndex: B + 1 + R - 1,
|
|
17237
17228
|
size: F,
|
|
17238
17229
|
startIndex: B + 1
|
|
17239
|
-
}),
|
|
17230
|
+
}), A++, P += R + 1;
|
|
17240
17231
|
}
|
|
17241
17232
|
const L = Ui(N.sizeTree);
|
|
17242
|
-
return
|
|
17233
|
+
return P !== x && L.shift(), L.reduce(
|
|
17243
17234
|
(B, { k: R, v: H }) => {
|
|
17244
17235
|
let $ = B.ranges;
|
|
17245
17236
|
return B.prevSize !== 0 && ($ = [
|
|
@@ -17263,10 +17254,10 @@ const f6 = {
|
|
|
17263
17254
|
).ranges;
|
|
17264
17255
|
}
|
|
17265
17256
|
return Ui(N.sizeTree).reduce(
|
|
17266
|
-
(z, { k:
|
|
17267
|
-
prevIndex:
|
|
17268
|
-
prevSize:
|
|
17269
|
-
ranges: [...z.ranges, { endIndex:
|
|
17257
|
+
(z, { k: P, v: A }) => ({
|
|
17258
|
+
prevIndex: P + x,
|
|
17259
|
+
prevSize: A,
|
|
17260
|
+
ranges: [...z.ranges, { endIndex: P + x - 1, size: z.prevSize, startIndex: z.prevIndex }]
|
|
17270
17261
|
}),
|
|
17271
17262
|
{
|
|
17272
17263
|
prevIndex: 0,
|
|
@@ -17298,13 +17289,13 @@ const f6 = {
|
|
|
17298
17289
|
return N;
|
|
17299
17290
|
let F = ut();
|
|
17300
17291
|
const z = xn(b);
|
|
17301
|
-
let
|
|
17302
|
-
for (;
|
|
17303
|
-
L = z[
|
|
17304
|
-
const B = z[
|
|
17305
|
-
|
|
17292
|
+
let P = 0, A = 0, L = 0;
|
|
17293
|
+
for (; P < -x; ) {
|
|
17294
|
+
L = z[A];
|
|
17295
|
+
const B = z[A + 1] - L - 1;
|
|
17296
|
+
A++, P += B + 1;
|
|
17306
17297
|
}
|
|
17307
|
-
if (F = Ui(N.sizeTree).reduce((B, { k: R, v: H }) => Qn(B, Math.max(0, R + x), H), F),
|
|
17298
|
+
if (F = Ui(N.sizeTree).reduce((B, { k: R, v: H }) => Qn(B, Math.max(0, R + x), H), F), P !== -x) {
|
|
17308
17299
|
const B = Ut(N.sizeTree, L);
|
|
17309
17300
|
F = Qn(F, 0, B);
|
|
17310
17301
|
const R = di(N.sizeTree, -x + 1)[1];
|
|
@@ -17316,7 +17307,7 @@ const f6 = {
|
|
|
17316
17307
|
...ns(N.offsetTree, 0, F, T)
|
|
17317
17308
|
};
|
|
17318
17309
|
}
|
|
17319
|
-
const M = Ui(N.sizeTree).reduce((F, { k: z, v:
|
|
17310
|
+
const M = Ui(N.sizeTree).reduce((F, { k: z, v: P }) => Qn(F, Math.max(0, z + x), P), ut());
|
|
17320
17311
|
return {
|
|
17321
17312
|
...N,
|
|
17322
17313
|
sizeTree: M,
|
|
@@ -17437,12 +17428,12 @@ const ua = rn(
|
|
|
17437
17428
|
([
|
|
17438
17429
|
[_, C, I, x, N, T, M, F],
|
|
17439
17430
|
z,
|
|
17440
|
-
|
|
17441
|
-
|
|
17431
|
+
P,
|
|
17432
|
+
A
|
|
17442
17433
|
]) => {
|
|
17443
17434
|
const L = ch(_), { align: B, behavior: R, offset: H } = L, $ = x - 1, J = dh(L, C, $);
|
|
17444
17435
|
let K = Kt(J, C.offsetTree, z) + T;
|
|
17445
|
-
B === "end" ? (K +=
|
|
17436
|
+
B === "end" ? (K += P + di(C.sizeTree, J)[1] - I + A, J === $ && (K += M)) : B === "center" ? K += (P + di(C.sizeTree, J)[1] - I + A) / 2 : K -= N, H !== void 0 && H !== 0 && (K += H);
|
|
17446
17437
|
const te = (Y) => {
|
|
17447
17438
|
k(), Y ? (F("retrying to scroll to", { location: _ }, On.DEBUG), Ge(p, _)) : (Ge(v, !0), F("list did not change, scroll successful", {}, On.DEBUG));
|
|
17448
17439
|
};
|
|
@@ -17584,11 +17575,11 @@ const Yt = "up", Ot = "down", h6 = "none", v6 = {
|
|
|
17584
17575
|
viewportHeight: C
|
|
17585
17576
|
};
|
|
17586
17577
|
if (T) {
|
|
17587
|
-
let z,
|
|
17588
|
-
return _ > b.state.scrollTop ? (z = "SCROLLED_DOWN",
|
|
17578
|
+
let z, P;
|
|
17579
|
+
return _ > b.state.scrollTop ? (z = "SCROLLED_DOWN", P = b.state.scrollTop - _) : (z = "SIZE_DECREASED", P = b.state.scrollTop - _ || b.scrollTopDelta), {
|
|
17589
17580
|
atBottom: !0,
|
|
17590
17581
|
atBottomBecause: z,
|
|
17591
|
-
scrollTopDelta:
|
|
17582
|
+
scrollTopDelta: P,
|
|
17592
17583
|
state: M
|
|
17593
17584
|
};
|
|
17594
17585
|
}
|
|
@@ -17876,8 +17867,8 @@ const nt = rn(
|
|
|
17876
17867
|
M,
|
|
17877
17868
|
F,
|
|
17878
17869
|
z,
|
|
17879
|
-
A,
|
|
17880
17870
|
P,
|
|
17871
|
+
A,
|
|
17881
17872
|
L,
|
|
17882
17873
|
B,
|
|
17883
17874
|
R
|
|
@@ -17886,7 +17877,7 @@ const nt = rn(
|
|
|
17886
17877
|
if (T === 0)
|
|
17887
17878
|
return { ...sr, totalCount: T };
|
|
17888
17879
|
if (x === 0 && N === 0)
|
|
17889
|
-
return K === 0 ? { ...sr, totalCount: T } : mh(K, F, M,
|
|
17880
|
+
return K === 0 ? { ...sr, totalCount: T } : mh(K, F, M, A, L, R || []);
|
|
17890
17881
|
if (gn(J))
|
|
17891
17882
|
return K > 0 ? null : Ba(
|
|
17892
17883
|
p6(Sl(F, T), H, R),
|
|
@@ -17894,11 +17885,11 @@ const nt = rn(
|
|
|
17894
17885
|
T,
|
|
17895
17886
|
L,
|
|
17896
17887
|
H,
|
|
17897
|
-
|
|
17888
|
+
A
|
|
17898
17889
|
);
|
|
17899
17890
|
const te = [];
|
|
17900
|
-
if (
|
|
17901
|
-
const X =
|
|
17891
|
+
if (P.length > 0) {
|
|
17892
|
+
const X = P[0], G = P[P.length - 1];
|
|
17902
17893
|
let oe = 0;
|
|
17903
17894
|
for (const ee of mt(J, X, G)) {
|
|
17904
17895
|
const ce = ee.value, he = Math.max(ee.start, X), ye = Math.min(ee.end, G);
|
|
@@ -17907,8 +17898,8 @@ const nt = rn(
|
|
|
17907
17898
|
}
|
|
17908
17899
|
}
|
|
17909
17900
|
if (!z)
|
|
17910
|
-
return Ba([], te, T, L, H,
|
|
17911
|
-
const Y =
|
|
17901
|
+
return Ba([], te, T, L, H, A);
|
|
17902
|
+
const Y = P.length > 0 ? P[P.length - 1] + 1 : 0, ae = o6($, x, N, Y);
|
|
17912
17903
|
if (ae.length === 0)
|
|
17913
17904
|
return null;
|
|
17914
17905
|
const ue = T - 1, U = Lo([], (X) => {
|
|
@@ -17947,7 +17938,7 @@ const nt = rn(
|
|
|
17947
17938
|
}
|
|
17948
17939
|
}
|
|
17949
17940
|
}
|
|
17950
|
-
return Ba(U, te, T, L, H,
|
|
17941
|
+
return Ba(U, te, T, L, H, A);
|
|
17951
17942
|
}
|
|
17952
17943
|
),
|
|
17953
17944
|
//@ts-expect-error filter needs to be fixed
|
|
@@ -18102,7 +18093,7 @@ const nt = rn(
|
|
|
18102
18093
|
return z === null ? C?.() : C && li(
|
|
18103
18094
|
re(
|
|
18104
18095
|
s,
|
|
18105
|
-
ze((
|
|
18096
|
+
ze((P) => !P),
|
|
18106
18097
|
// skips the initial publish of false, and the cleanup call.
|
|
18107
18098
|
// but if scrollingInProgress is true, we skip the initial publish.
|
|
18108
18099
|
Xi(xn(s) ? 1 : 2)
|
|
@@ -18397,8 +18388,8 @@ const I6 = bh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
18397
18388
|
gi(
|
|
18398
18389
|
([, _, C, I], [{ bottom: x, items: N, offsetBottom: T, totalCount: M }, F]) => {
|
|
18399
18390
|
const z = x + T;
|
|
18400
|
-
let
|
|
18401
|
-
return C === M && _.length > 0 && N.length > 0 && (N[0].originalIndex === 0 && _[0].originalIndex === 0 || (
|
|
18391
|
+
let P = 0;
|
|
18392
|
+
return C === M && _.length > 0 && N.length > 0 && (N[0].originalIndex === 0 && _[0].originalIndex === 0 || (P = z - I, P !== 0 && (P += F))), [P, N, M, z];
|
|
18402
18393
|
},
|
|
18403
18394
|
[0, [], 0, 0]
|
|
18404
18395
|
),
|
|
@@ -18444,18 +18435,18 @@ const I6 = bh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
18444
18435
|
c,
|
|
18445
18436
|
Ke(p, u),
|
|
18446
18437
|
pe(([_, { groupIndices: C, lastSize: I, sizeTree: x }, N]) => {
|
|
18447
|
-
function T(
|
|
18448
|
-
return
|
|
18438
|
+
function T(A) {
|
|
18439
|
+
return A * (I + N);
|
|
18449
18440
|
}
|
|
18450
18441
|
if (C.length === 0)
|
|
18451
18442
|
return T(_);
|
|
18452
18443
|
let M = 0;
|
|
18453
18444
|
const F = Ut(x, 0);
|
|
18454
|
-
let z = 0,
|
|
18445
|
+
let z = 0, P = 0;
|
|
18455
18446
|
for (; z < _; ) {
|
|
18456
18447
|
z++, M += F;
|
|
18457
|
-
let
|
|
18458
|
-
z +
|
|
18448
|
+
let A = C.length === P + 1 ? 1 / 0 : C[P + 1] - C[P] - 1;
|
|
18449
|
+
z + A > _ && (M -= F, A = _ - z + 1), z += A, M += T(A), P++;
|
|
18459
18450
|
}
|
|
18460
18451
|
return M;
|
|
18461
18452
|
})
|
|
@@ -18534,8 +18525,8 @@ const I6 = bh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
18534
18525
|
{ groupCounts: N },
|
|
18535
18526
|
T
|
|
18536
18527
|
]) => {
|
|
18537
|
-
const { listState: M, minOverscanItemCount: F, topItemsIndexes: z, rangeChanged:
|
|
18538
|
-
return Ie(
|
|
18528
|
+
const { listState: M, minOverscanItemCount: F, topItemsIndexes: z, rangeChanged: P, ...A } = _;
|
|
18529
|
+
return Ie(P, T.scrollSeekRangeChanged), Ie(
|
|
18539
18530
|
re(
|
|
18540
18531
|
Mn(T.windowViewportRect, w.headerHeight, w.fixedHeaderHeight),
|
|
18541
18532
|
// Keep a measurement range active when a window-scrolling list starts below the viewport.
|
|
@@ -18570,8 +18561,8 @@ const I6 = bh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
18570
18561
|
statefulTotalCount: u,
|
|
18571
18562
|
trackItemSizes: p,
|
|
18572
18563
|
// exported from stateFlagsSystem
|
|
18573
|
-
rangeChanged:
|
|
18574
|
-
...
|
|
18564
|
+
rangeChanged: P,
|
|
18565
|
+
...A,
|
|
18575
18566
|
// the bag of IO from featureGroup1System
|
|
18576
18567
|
...T,
|
|
18577
18568
|
...w,
|
|
@@ -18807,7 +18798,7 @@ const F6 = /* @__PURE__ */ rn(() => {
|
|
|
18807
18798
|
wl(() => {
|
|
18808
18799
|
k(w);
|
|
18809
18800
|
}, [w, k]);
|
|
18810
|
-
const _ = je("EmptyPlaceholder"), C = je("ScrollSeekPlaceholder") ?? P6, I = je("ListComponent"), x = je("ItemComponent"), N = je("GroupComponent"), T = je("computeItemKey"), M = je("isSeeking"), F = je("groupIndices").length > 0, z = je("alignToBottom"),
|
|
18801
|
+
const _ = je("EmptyPlaceholder"), C = je("ScrollSeekPlaceholder") ?? P6, I = je("ListComponent"), x = je("ItemComponent"), N = je("GroupComponent"), T = je("computeItemKey"), M = je("isSeeking"), F = je("groupIndices").length > 0, z = je("alignToBottom"), P = je("initialItemFinalLocationReached"), A = e ? {} : {
|
|
18811
18802
|
boxSizing: "border-box",
|
|
18812
18803
|
...h ? {
|
|
18813
18804
|
display: "inline-block",
|
|
@@ -18821,7 +18812,7 @@ const F6 = /* @__PURE__ */ rn(() => {
|
|
|
18821
18812
|
paddingBottom: n.offsetBottom,
|
|
18822
18813
|
paddingTop: n.offsetTop
|
|
18823
18814
|
},
|
|
18824
|
-
...
|
|
18815
|
+
...P ? {} : { visibility: "hidden" }
|
|
18825
18816
|
};
|
|
18826
18817
|
return !e && n.totalCount === 0 && _ !== null && _ !== void 0 ? /* @__PURE__ */ t(_, { ...Wn(_, f) }) : /* @__PURE__ */ t(
|
|
18827
18818
|
I,
|
|
@@ -18829,7 +18820,7 @@ const F6 = /* @__PURE__ */ rn(() => {
|
|
|
18829
18820
|
...Wn(I, f),
|
|
18830
18821
|
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
|
18831
18822
|
ref: y,
|
|
18832
|
-
style:
|
|
18823
|
+
style: A,
|
|
18833
18824
|
children: (e ? n.topItems : n.items).map((L) => {
|
|
18834
18825
|
const B = L.originalIndex, R = T(B + n.firstItemIndex, L.data, f);
|
|
18835
18826
|
return M ? /* @__PURE__ */ Ea(
|
|
@@ -19154,7 +19145,7 @@ const nC = /* @__PURE__ */ rn(
|
|
|
19154
19145
|
{ customScrollParent: y, useWindowScroll: w, windowScrollContainerState: b, windowScrollTo: k, windowViewportRect: _ },
|
|
19155
19146
|
C
|
|
19156
19147
|
]) => {
|
|
19157
|
-
const I = fe(0), x = fe(0), N = fe(Ff), T = fe({ height: 0, width: 0 }), M = fe({ height: 0, width: 0 }), F = Ze(), z = Ze(),
|
|
19148
|
+
const I = fe(0), x = fe(0), N = fe(Ff), T = fe({ height: 0, width: 0 }), M = fe({ height: 0, width: 0 }), F = Ze(), z = Ze(), P = fe(0), A = fe(null), L = fe({ column: 0, row: 0 }), B = Ze(), R = Ze(), H = fe(!1), $ = fe(0), J = fe(!0), K = fe(!1), te = fe(!1);
|
|
19158
19149
|
un(
|
|
19159
19150
|
re(
|
|
19160
19151
|
v,
|
|
@@ -19228,7 +19219,7 @@ const nC = /* @__PURE__ */ rn(
|
|
|
19228
19219
|
Le(L, eC),
|
|
19229
19220
|
Le(M, Na),
|
|
19230
19221
|
Le(T, Na),
|
|
19231
|
-
Le(
|
|
19222
|
+
Le(A),
|
|
19232
19223
|
Le(x),
|
|
19233
19224
|
Le(H),
|
|
19234
19225
|
Le(J),
|
|
@@ -19266,7 +19257,7 @@ const nC = /* @__PURE__ */ rn(
|
|
|
19266
19257
|
N
|
|
19267
19258
|
), Ie(
|
|
19268
19259
|
re(
|
|
19269
|
-
|
|
19260
|
+
A,
|
|
19270
19261
|
ze((j) => j !== null),
|
|
19271
19262
|
pe((j) => j.length)
|
|
19272
19263
|
),
|
|
@@ -19354,8 +19345,8 @@ const nC = /* @__PURE__ */ rn(
|
|
|
19354
19345
|
), {
|
|
19355
19346
|
customScrollParent: y,
|
|
19356
19347
|
// input
|
|
19357
|
-
data:
|
|
19358
|
-
deviation:
|
|
19348
|
+
data: A,
|
|
19349
|
+
deviation: P,
|
|
19359
19350
|
footerHeight: o,
|
|
19360
19351
|
gap: L,
|
|
19361
19352
|
headerHeight: r,
|
|
@@ -19834,12 +19825,12 @@ const Bf = 9, Df = qt, Hf = () => /* @__PURE__ */ t("div", { className: "h-2" })
|
|
|
19834
19825
|
H !== void 0 && f.current?.scrollIntoView({ index: H });
|
|
19835
19826
|
},
|
|
19836
19827
|
[M]
|
|
19837
|
-
),
|
|
19828
|
+
), P = O(
|
|
19838
19829
|
(R) => {
|
|
19839
19830
|
k(R), e(R.native);
|
|
19840
19831
|
},
|
|
19841
19832
|
[k, e]
|
|
19842
|
-
),
|
|
19833
|
+
), A = O(
|
|
19843
19834
|
(R) => {
|
|
19844
19835
|
if (!R.nativeEvent.isComposing) {
|
|
19845
19836
|
if (yC(R.key)) {
|
|
@@ -19854,13 +19845,13 @@ const Bf = 9, Df = qt, Hf = () => /* @__PURE__ */ t("div", { className: "h-2" })
|
|
|
19854
19845
|
const H = M.flat[F];
|
|
19855
19846
|
if (!H)
|
|
19856
19847
|
return;
|
|
19857
|
-
R.preventDefault(),
|
|
19848
|
+
R.preventDefault(), P(H);
|
|
19858
19849
|
return;
|
|
19859
19850
|
}
|
|
19860
19851
|
R.key === "Escape" && u.length > 0 && (R.preventDefault(), R.stopPropagation(), m(""), v(0));
|
|
19861
19852
|
}
|
|
19862
19853
|
},
|
|
19863
|
-
[M, F, z,
|
|
19854
|
+
[M, F, z, P, u]
|
|
19864
19855
|
), L = O(
|
|
19865
19856
|
(R) => {
|
|
19866
19857
|
const H = x.findIndex(
|
|
@@ -19884,7 +19875,7 @@ const Bf = 9, Df = qt, Hf = () => /* @__PURE__ */ t("div", { className: "h-2" })
|
|
|
19884
19875
|
return /* @__PURE__ */ g(
|
|
19885
19876
|
"div",
|
|
19886
19877
|
{
|
|
19887
|
-
onKeyDown:
|
|
19878
|
+
onKeyDown: A,
|
|
19888
19879
|
className: S(
|
|
19889
19880
|
"flex w-[304px] flex-col overflow-hidden",
|
|
19890
19881
|
// No border, surface or shadow of its own — the popover around it owns
|
|
@@ -19926,7 +19917,7 @@ const Bf = 9, Df = qt, Hf = () => /* @__PURE__ */ t("div", { className: "h-2" })
|
|
|
19926
19917
|
layout: M,
|
|
19927
19918
|
activeIndex: F,
|
|
19928
19919
|
onActivate: v,
|
|
19929
|
-
onSelect:
|
|
19920
|
+
onSelect: P,
|
|
19930
19921
|
listboxId: l,
|
|
19931
19922
|
label: r.chat.emojiPicker.grid,
|
|
19932
19923
|
optionId: d,
|
|
@@ -20355,7 +20346,7 @@ const NC = {
|
|
|
20355
20346
|
channel: c,
|
|
20356
20347
|
searchMembers: u,
|
|
20357
20348
|
capabilities: m
|
|
20358
|
-
} = Jn(), p = !!r && ci("canUpload", c.type, m), { target: v } = Ux(), { clearComposeTarget: h, registerComposerHandle: y } = Mo(), w = p3(), { registerFileDropHandler: b } = T1(), k = An(), { reducedMotion: _ } = fi(), [C, I] = D(""), [x, N] = D(0), [T, M] = D([]), [F, z] = D(!1), [
|
|
20349
|
+
} = Jn(), p = !!r && ci("canUpload", c.type, m), { target: v } = Ux(), { clearComposeTarget: h, registerComposerHandle: y } = Mo(), w = p3(), { registerFileDropHandler: b } = T1(), k = An(), { reducedMotion: _ } = fi(), [C, I] = D(""), [x, N] = D(0), [T, M] = D([]), [F, z] = D(!1), [P, A] = D(!1), L = E(null), B = E(null), R = E(null), H = E(null), $ = E(/* @__PURE__ */ new Set()), J = E(null), K = h3(), te = E({
|
|
20359
20350
|
value: "",
|
|
20360
20351
|
caret: 0,
|
|
20361
20352
|
mentions: []
|
|
@@ -20420,12 +20411,12 @@ const NC = {
|
|
|
20420
20411
|
error: Nn,
|
|
20421
20412
|
show: Ne,
|
|
20422
20413
|
clear: Z
|
|
20423
|
-
} = j3(), _e = f !== void 0 && C.trim().length > f, Ve =
|
|
20414
|
+
} = j3(), _e = f !== void 0 && C.trim().length > f, Ve = P && _e && f !== void 0 ? e.chat.messageTooLongError.replace(
|
|
20424
20415
|
"{{maxCharacters}}",
|
|
20425
20416
|
f.toLocaleString()
|
|
20426
20417
|
) : null, Ue = Ve ?? Nn;
|
|
20427
20418
|
V(() => {
|
|
20428
|
-
_e ||
|
|
20419
|
+
_e || A(!1);
|
|
20429
20420
|
}, [_e]);
|
|
20430
20421
|
const qe = E(0);
|
|
20431
20422
|
V(() => {
|
|
@@ -20642,7 +20633,7 @@ const NC = {
|
|
|
20642
20633
|
},
|
|
20643
20634
|
[p, cn]
|
|
20644
20635
|
), Ei = v.kind === "edit", hi = v.kind === "edit" ? v.message : null, de = v.kind === "reply" ? v.message : null, we = O(() => {
|
|
20645
|
-
G.close(), G.seedMentions([], ""), I(""), N(0),
|
|
20636
|
+
G.close(), G.seedMentions([], ""), I(""), N(0), A(!1);
|
|
20646
20637
|
}, [G.close, G.seedMentions]), Ee = O(() => {
|
|
20647
20638
|
we(), mi(T), M([]), ue.current = !0;
|
|
20648
20639
|
}, [we, mi, T]), Tn = O(
|
|
@@ -20704,7 +20695,7 @@ const NC = {
|
|
|
20704
20695
|
return;
|
|
20705
20696
|
const Q = C.trim();
|
|
20706
20697
|
if (_e) {
|
|
20707
|
-
|
|
20698
|
+
A(!0);
|
|
20708
20699
|
return;
|
|
20709
20700
|
}
|
|
20710
20701
|
o?.();
|
|
@@ -21148,7 +21139,7 @@ const NC = {
|
|
|
21148
21139
|
}
|
|
21149
21140
|
) }) });
|
|
21150
21141
|
}, PC = Oi(
|
|
21151
|
-
() => import("./index-
|
|
21142
|
+
() => import("./index-Cnkmokj1.js").then((e) => e.i).then((e) => ({
|
|
21152
21143
|
default: e.F0PdfViewer
|
|
21153
21144
|
}))
|
|
21154
21145
|
), LC = () => {
|
|
@@ -21845,7 +21836,7 @@ function jS({
|
|
|
21845
21836
|
align: k.align,
|
|
21846
21837
|
behavior: J
|
|
21847
21838
|
});
|
|
21848
|
-
}, z = ($) => $.scrollHeight - $.scrollTop - $.clientHeight,
|
|
21839
|
+
}, z = ($) => $.scrollHeight - $.scrollTop - $.clientHeight, P = ({
|
|
21849
21840
|
maxFrames: $,
|
|
21850
21841
|
minFrames: J,
|
|
21851
21842
|
isSettled: K
|
|
@@ -21862,8 +21853,8 @@ function jS({
|
|
|
21862
21853
|
N = requestAnimationFrame(U);
|
|
21863
21854
|
};
|
|
21864
21855
|
N = requestAnimationFrame(U);
|
|
21865
|
-
},
|
|
21866
|
-
|
|
21856
|
+
}, A = ($ = 0) => {
|
|
21857
|
+
P(
|
|
21867
21858
|
{
|
|
21868
21859
|
maxFrames: OS,
|
|
21869
21860
|
minFrames: BS,
|
|
@@ -21874,7 +21865,7 @@ function jS({
|
|
|
21874
21865
|
const K = z(J);
|
|
21875
21866
|
if (K > Yf) {
|
|
21876
21867
|
if ($ === 0 && !n && K <= J.clientHeight) {
|
|
21877
|
-
F("LAST", "smooth"),
|
|
21868
|
+
F("LAST", "smooth"), A(1);
|
|
21878
21869
|
return;
|
|
21879
21870
|
}
|
|
21880
21871
|
F("LAST", "auto");
|
|
@@ -21885,7 +21876,7 @@ function jS({
|
|
|
21885
21876
|
}
|
|
21886
21877
|
);
|
|
21887
21878
|
}, L = ($) => {
|
|
21888
|
-
c(!1), F(k.scrollIndex($), "smooth"),
|
|
21879
|
+
c(!1), F(k.scrollIndex($), "smooth"), A();
|
|
21889
21880
|
}, B = ($, J) => {
|
|
21890
21881
|
const K = k.resolveIndex();
|
|
21891
21882
|
if (K === null) {
|
|
@@ -21900,12 +21891,12 @@ function jS({
|
|
|
21900
21891
|
Math.min(Y, K + Uf)
|
|
21901
21892
|
), ue = $.clientHeight, U = ae !== null && ae > 0 ? Math.min(ae, ue * DS) : Math.round(ue * HS), q = te === "up" ? $.scrollTop : z($), j = Math.min(U, Math.max(0, q));
|
|
21902
21893
|
if (j < WS) {
|
|
21903
|
-
c(!1),
|
|
21894
|
+
c(!1), A();
|
|
21904
21895
|
return;
|
|
21905
21896
|
}
|
|
21906
21897
|
e.current?.scrollBy({
|
|
21907
21898
|
top: te === "up" ? -j : j
|
|
21908
|
-
}),
|
|
21899
|
+
}), P(
|
|
21909
21900
|
{
|
|
21910
21901
|
maxFrames: Kf,
|
|
21911
21902
|
minFrames: 1,
|
|
@@ -21929,7 +21920,7 @@ function jS({
|
|
|
21929
21920
|
F(
|
|
21930
21921
|
k.scrollIndex(H.index),
|
|
21931
21922
|
!n && H.kind === "smooth" ? "smooth" : "auto"
|
|
21932
|
-
),
|
|
21923
|
+
), A();
|
|
21933
21924
|
return;
|
|
21934
21925
|
}
|
|
21935
21926
|
c(!0), x.push(
|
|
@@ -21950,10 +21941,10 @@ function jS({
|
|
|
21950
21941
|
c(!1), F(
|
|
21951
21942
|
k.scrollIndex(J.index),
|
|
21952
21943
|
J.kind === "smooth" ? "smooth" : "auto"
|
|
21953
|
-
),
|
|
21944
|
+
), A();
|
|
21954
21945
|
return;
|
|
21955
21946
|
}
|
|
21956
|
-
F(k.scrollIndex($), "auto"),
|
|
21947
|
+
F(k.scrollIndex($), "auto"), P(
|
|
21957
21948
|
{
|
|
21958
21949
|
maxFrames: Kf,
|
|
21959
21950
|
minFrames: 2,
|
|
@@ -22088,11 +22079,11 @@ function YS({
|
|
|
22088
22079
|
}
|
|
22089
22080
|
T.current = { key: I, location: de };
|
|
22090
22081
|
}
|
|
22091
|
-
const M = T.current.location, F = M.index === "LAST", [z,
|
|
22082
|
+
const M = T.current.location, F = M.index === "LAST", [z, P] = D(F), [A, L] = D(!0), [B, R] = D(!1), [H, $] = D(!1), [J, K] = D(null), te = E(F), Y = E(
|
|
22092
22083
|
F ? 0 : Number.POSITIVE_INFINITY
|
|
22093
22084
|
), ae = E(!1), ue = E(null), U = E(null), q = U.current !== I;
|
|
22094
22085
|
hn(() => {
|
|
22095
|
-
U.current !== I && (U.current = I, te.current = F, Y.current = F ? 0 : Number.POSITIVE_INFINITY, ae.current = !1,
|
|
22086
|
+
U.current !== I && (U.current = I, te.current = F, Y.current = F ? 0 : Number.POSITIVE_INFINITY, ae.current = !1, P(F), L(!0), R(!1), $(!1), K(null));
|
|
22096
22087
|
}, [F, I]);
|
|
22097
22088
|
const j = E(null), X = E(!1), G = E(() => {
|
|
22098
22089
|
}), oe = O(() => {
|
|
@@ -22122,7 +22113,7 @@ function YS({
|
|
|
22122
22113
|
ae.current = !1, $(!1);
|
|
22123
22114
|
}, []), Pe = O(
|
|
22124
22115
|
(de) => {
|
|
22125
|
-
if (te.current = de,
|
|
22116
|
+
if (te.current = de, P(de), !de || ce.current)
|
|
22126
22117
|
return;
|
|
22127
22118
|
const we = h.current;
|
|
22128
22119
|
we && we.scrollHeight - we.scrollTop - we.clientHeight <= Ta && ye();
|
|
@@ -22383,7 +22374,7 @@ function YS({
|
|
|
22383
22374
|
handleItemsRendered: hi,
|
|
22384
22375
|
handleTotalListHeightChanged: Xe,
|
|
22385
22376
|
atBottom: sn,
|
|
22386
|
-
atTop: q ? !0 :
|
|
22377
|
+
atTop: q ? !0 : A,
|
|
22387
22378
|
scrolledUp: q ? !1 : B,
|
|
22388
22379
|
stickyIndex: q ? null : J,
|
|
22389
22380
|
scrollToBottom: cn,
|
|
@@ -23342,12 +23333,12 @@ const aN = 1e3, oN = ({
|
|
|
23342
23333
|
Qh(h, e, B, R), r(e.id, B), M(!1);
|
|
23343
23334
|
}, z = (B) => () => {
|
|
23344
23335
|
B(), M(!1);
|
|
23345
|
-
},
|
|
23336
|
+
}, P = e.status === "failed", A = [
|
|
23346
23337
|
`${o.chat.notSent} · ${Oo(new Date(e.createdAt))}`,
|
|
23347
23338
|
...e.failureReason ? [e.failureReason] : []
|
|
23348
23339
|
].join(" — "), L = l ?? s;
|
|
23349
23340
|
return /* @__PURE__ */ g(ea, { open: i, onOpenChange: M, children: [
|
|
23350
|
-
/* @__PURE__ */ t(lo, { asChild: !0, children:
|
|
23341
|
+
/* @__PURE__ */ t(lo, { asChild: !0, children: P ? (
|
|
23351
23342
|
// The Action primitive directly (not ButtonInternal): its children
|
|
23352
23343
|
// are ours, so the icon can carry the critical color itself.
|
|
23353
23344
|
/* @__PURE__ */ t(
|
|
@@ -23358,8 +23349,8 @@ const aN = 1e3, oN = ({
|
|
|
23358
23349
|
mode: "only",
|
|
23359
23350
|
compact: !0,
|
|
23360
23351
|
pressed: i,
|
|
23361
|
-
"aria-label":
|
|
23362
|
-
tooltip:
|
|
23352
|
+
"aria-label": A,
|
|
23353
|
+
tooltip: A,
|
|
23363
23354
|
"data-testid": "chat-failed-indicator",
|
|
23364
23355
|
children: /* @__PURE__ */ t(be, { icon: Yl, size: "md", color: "critical-bold" })
|
|
23365
23356
|
}
|
|
@@ -23382,7 +23373,7 @@ const aN = 1e3, oN = ({
|
|
|
23382
23373
|
onCloseAutoFocus: (B) => {
|
|
23383
23374
|
b.current && (b.current = !1, B.preventDefault());
|
|
23384
23375
|
},
|
|
23385
|
-
children:
|
|
23376
|
+
children: P ? /* @__PURE__ */ g("div", { className: "flex flex-col gap-0 p-1", children: [
|
|
23386
23377
|
/* @__PURE__ */ t(
|
|
23387
23378
|
ji,
|
|
23388
23379
|
{
|
|
@@ -23827,16 +23818,16 @@ const aN = 1e3, oN = ({
|
|
|
23827
23818
|
hasAvatar: o,
|
|
23828
23819
|
isFirstOfRun: i && m.length === 0 && H === 0,
|
|
23829
23820
|
isLastOfRun: H === p.length - 1 && !M
|
|
23830
|
-
}), z = w.length > 0 || k > 0 || x || I || !a,
|
|
23821
|
+
}), z = w.length > 0 || k > 0 || x || I || !a, P = (H) => qi({
|
|
23831
23822
|
isMine: n,
|
|
23832
23823
|
hasAvatar: o,
|
|
23833
23824
|
isFirstOfRun: i && m.length === 0 && p.length === 0 && H === 0,
|
|
23834
23825
|
isLastOfRun: H === y.length - 1 && !z
|
|
23835
|
-
}),
|
|
23826
|
+
}), A = k > 0 || x || I || !a, L = (H) => qi({
|
|
23836
23827
|
isMine: n,
|
|
23837
23828
|
hasAvatar: o,
|
|
23838
23829
|
isFirstOfRun: i && m.length === 0 && p.length === 0 && y.length === 0 && H === 0,
|
|
23839
|
-
isLastOfRun: H === w.length - 1 && !
|
|
23830
|
+
isLastOfRun: H === w.length - 1 && !A
|
|
23840
23831
|
}), B = h.length > 0 || x || I || !a, R = (H) => qi({
|
|
23841
23832
|
isMine: n,
|
|
23842
23833
|
hasAvatar: o,
|
|
@@ -23923,7 +23914,7 @@ const aN = 1e3, oN = ({
|
|
|
23923
23914
|
U1,
|
|
23924
23915
|
{
|
|
23925
23916
|
location: H,
|
|
23926
|
-
cornerClass:
|
|
23917
|
+
cornerClass: P($),
|
|
23927
23918
|
surfaceClassName: u,
|
|
23928
23919
|
meta: C === "location" && $ === y.length - 1 ? /* @__PURE__ */ t(dt, { message: e, placement: "overlay" }) : void 0
|
|
23929
23920
|
},
|
|
@@ -24171,9 +24162,9 @@ const aN = 1e3, oN = ({
|
|
|
24171
24162
|
capabilities: x,
|
|
24172
24163
|
hasEditMessage: !!N,
|
|
24173
24164
|
editWindowMs: T
|
|
24174
|
-
}), F = k === e.id, z = !e.deleted && (e.reactions?.length ?? 0) > 0,
|
|
24165
|
+
}), F = k === e.id, z = !e.deleted && (e.reactions?.length ?? 0) > 0, P = E(z), A = E(e.status === "failed");
|
|
24175
24166
|
V(() => {
|
|
24176
|
-
|
|
24167
|
+
P.current = !1;
|
|
24177
24168
|
}, []);
|
|
24178
24169
|
const L = !e.deleted && (e.attachments?.length ?? 0) > 0, B = e.deleted || e.body.trim().length > 0 || !!e.replyTo, R = B || L, H = !e.deleted && e.status !== "sending" && e.status !== "failed", $ = O(
|
|
24179
24170
|
(J) => {
|
|
@@ -24282,7 +24273,7 @@ const aN = 1e3, oN = ({
|
|
|
24282
24273
|
/* @__PURE__ */ t(
|
|
24283
24274
|
Se.div,
|
|
24284
24275
|
{
|
|
24285
|
-
initial:
|
|
24276
|
+
initial: A.current || f ? !1 : { opacity: 0, scale: 0.9 },
|
|
24286
24277
|
animate: { opacity: 1, scale: 1 },
|
|
24287
24278
|
transition: el,
|
|
24288
24279
|
children: /* @__PURE__ */ t(
|
|
@@ -24342,7 +24333,7 @@ const aN = 1e3, oN = ({
|
|
|
24342
24333
|
Se.div,
|
|
24343
24334
|
{
|
|
24344
24335
|
className: "flex w-full gap-1.5 overflow-hidden",
|
|
24345
|
-
initial:
|
|
24336
|
+
initial: P.current || f ? !1 : { height: 0, opacity: 0 },
|
|
24346
24337
|
animate: { height: "auto", opacity: 1 },
|
|
24347
24338
|
exit: f ? void 0 : { height: 0, opacity: 0 },
|
|
24348
24339
|
transition: { duration: 0.18, ease: "easeOut" },
|
|
@@ -25032,11 +25023,11 @@ const aN = 1e3, oN = ({
|
|
|
25032
25023
|
const Te = tN(e, M.current);
|
|
25033
25024
|
Te.length > 0 && (T.current.clear(), Te.forEach((cn, Dn) => T.current.set(cn, Dn))), M.current = F;
|
|
25034
25025
|
}
|
|
25035
|
-
const z = e[e.length - 1],
|
|
25026
|
+
const z = e[e.length - 1], P = z && jt(z) ? z : void 0, A = E(z?.id ?? null), L = E(/* @__PURE__ */ new Set());
|
|
25036
25027
|
if (L.current.size > 0)
|
|
25037
25028
|
for (const Te of L.current)
|
|
25038
25029
|
i.some((cn) => cn.id === Te) || L.current.delete(Te);
|
|
25039
|
-
|
|
25030
|
+
P != null && P.id !== A.current && !P.isMine && i.some((Te) => Te.id === P.author.id) && L.current.add(P.author.id);
|
|
25040
25031
|
const B = L.current.size > 0 ? i.filter((Te) => !L.current.has(Te.id)) : i, R = B.map((Te) => Te.id).join("|"), H = E({
|
|
25041
25032
|
key: R,
|
|
25042
25033
|
users: B
|
|
@@ -25044,9 +25035,9 @@ const aN = 1e3, oN = ({
|
|
|
25044
25035
|
H.current.key !== R && (H.current = { key: R, users: B });
|
|
25045
25036
|
const $ = H.current.users, J = $.length > 0, [K, te] = D(!1), Y = E(J), ae = E($);
|
|
25046
25037
|
J && (ae.current = $);
|
|
25047
|
-
const ue =
|
|
25038
|
+
const ue = P != null && P.id !== A.current && !P.isMine && ae.current.some((Te) => Te.id === P.author.id), q = Y.current && !J && !v && !ue ? !0 : K && !ue;
|
|
25048
25039
|
hn(() => {
|
|
25049
|
-
Y.current = J,
|
|
25040
|
+
Y.current = J, A.current = z?.id ?? null, K !== q && te(q);
|
|
25050
25041
|
}, [q, z?.id, J, K]), V(() => {
|
|
25051
25042
|
if (!K)
|
|
25052
25043
|
return;
|
|
@@ -25057,17 +25048,17 @@ const aN = 1e3, oN = ({
|
|
|
25057
25048
|
G.current !== j && (G.current = j, j && (X.current.fresh = !0));
|
|
25058
25049
|
const oe = ne(() => {
|
|
25059
25050
|
const Te = [...x];
|
|
25060
|
-
return
|
|
25051
|
+
return P && jh(P, {
|
|
25061
25052
|
isGroup: h,
|
|
25062
25053
|
memberCount: n.memberCount
|
|
25063
|
-
}) && Te.push({ type: "footer", key: "status-footer", message:
|
|
25054
|
+
}) && Te.push({ type: "footer", key: "status-footer", message: P }), j && Te.push({
|
|
25064
25055
|
type: "typing",
|
|
25065
25056
|
key: "typing",
|
|
25066
25057
|
users: J ? $ : ae.current
|
|
25067
25058
|
}), Te;
|
|
25068
25059
|
}, [
|
|
25069
25060
|
x,
|
|
25070
|
-
|
|
25061
|
+
P,
|
|
25071
25062
|
h,
|
|
25072
25063
|
n.memberCount,
|
|
25073
25064
|
$,
|
|
@@ -25243,7 +25234,7 @@ const aN = 1e3, oN = ({
|
|
|
25243
25234
|
}
|
|
25244
25235
|
);
|
|
25245
25236
|
}, P9 = /* @__PURE__ */ new Set(), L9 = Oi(
|
|
25246
|
-
() => import("./ChatPostComposerDialog-
|
|
25237
|
+
() => import("./ChatPostComposerDialog-DrinGoio.js").then((e) => ({
|
|
25247
25238
|
default: e.ChatPostComposerDialog
|
|
25248
25239
|
}))
|
|
25249
25240
|
), z9 = () => {
|
|
@@ -27284,15 +27275,15 @@ function eM({
|
|
|
27284
27275
|
breakTypeName: M,
|
|
27285
27276
|
onBreakPromote: F,
|
|
27286
27277
|
variant: z = "default",
|
|
27287
|
-
loading:
|
|
27278
|
+
loading: P = !1
|
|
27288
27279
|
}) {
|
|
27289
|
-
const { status:
|
|
27280
|
+
const { status: A, statusText: L, subtitle: B, statusColor: R } = OI({
|
|
27290
27281
|
data: i,
|
|
27291
27282
|
labels: a,
|
|
27292
27283
|
trackedMinutes: e,
|
|
27293
27284
|
remainingMinutes: n,
|
|
27294
27285
|
canSeeRemainingTime: h
|
|
27295
|
-
}), H =
|
|
27286
|
+
}), H = A === "clocked-out", $ = u?.map((Ne) => ({
|
|
27296
27287
|
value: Ne.id,
|
|
27297
27288
|
label: Ne.duration ? `${Ne.name} · ${Ne.duration}` : Ne.name,
|
|
27298
27289
|
description: Ne.description,
|
|
@@ -27310,7 +27301,7 @@ function eM({
|
|
|
27310
27301
|
value: Ne.id,
|
|
27311
27302
|
label: Ne.name,
|
|
27312
27303
|
icon: Ne.icon
|
|
27313
|
-
})), j =
|
|
27304
|
+
})), j = A === "break", [X, G] = D(!1), oe = ae ? /* @__PURE__ */ t(
|
|
27314
27305
|
vt,
|
|
27315
27306
|
{
|
|
27316
27307
|
label: a.selectLocation,
|
|
@@ -27353,7 +27344,7 @@ function eM({
|
|
|
27353
27344
|
disabled: !ue
|
|
27354
27345
|
}
|
|
27355
27346
|
) : null, he = F ?? ((n ?? 0) < 0 ? "clock-out" : "resume"), ye = /* @__PURE__ */ g(Ae, { children: [
|
|
27356
|
-
|
|
27347
|
+
A === "clocked-out" ? (
|
|
27357
27348
|
// The nudge off the right edge is the DEFAULT layout's: it balances the
|
|
27358
27349
|
// lone button against the ring beside it. The bar variant pins its
|
|
27359
27350
|
// controls to the tile's edge, where that margin would be a gap.
|
|
@@ -27366,7 +27357,7 @@ function eM({
|
|
|
27366
27357
|
}
|
|
27367
27358
|
) })
|
|
27368
27359
|
) : null,
|
|
27369
|
-
|
|
27360
|
+
A === "clocked-in" ? /* @__PURE__ */ g(Ae, { children: [
|
|
27370
27361
|
p ? /* @__PURE__ */ t(Ae, { children: $.length > 1 && m ? /* @__PURE__ */ t(
|
|
27371
27362
|
vt,
|
|
27372
27363
|
{
|
|
@@ -27407,7 +27398,7 @@ function eM({
|
|
|
27407
27398
|
}
|
|
27408
27399
|
)
|
|
27409
27400
|
] }) : null,
|
|
27410
|
-
|
|
27401
|
+
A === "break" ? (
|
|
27411
27402
|
// The PROMOTED action is the primary button, labelled; the other is an
|
|
27412
27403
|
// icon-only outline beside it. Which one is promoted depends on where the
|
|
27413
27404
|
// day stands — see `promotedOnBreak`.
|
|
@@ -27471,7 +27462,7 @@ function eM({
|
|
|
27471
27462
|
children: ke
|
|
27472
27463
|
}
|
|
27473
27464
|
) : null, an = ln && dn, mn = an ? Be : null, Nn = an ? fn : fn ?? Be;
|
|
27474
|
-
if (
|
|
27465
|
+
if (P)
|
|
27475
27466
|
return /* @__PURE__ */ t(
|
|
27476
27467
|
XI,
|
|
27477
27468
|
{
|
|
@@ -28251,17 +28242,17 @@ function Mv({
|
|
|
28251
28242
|
}
|
|
28252
28243
|
) : null,
|
|
28253
28244
|
r
|
|
28254
|
-
] }) : r, { reportAction:
|
|
28245
|
+
] }) : r, { reportAction: P } = Sv(), { info: A, ...L } = Do(e, n) ?? {}, B = Object.values(L).some((K) => K !== void 0) || p && p.length > 0 || z ? L : void 0, R = B?.link === void 0 ? B : {
|
|
28255
28246
|
...B,
|
|
28256
28247
|
link: {
|
|
28257
28248
|
...B.link,
|
|
28258
28249
|
onClick: () => {
|
|
28259
|
-
|
|
28250
|
+
P("header-link"), B.link?.onClick?.();
|
|
28260
28251
|
}
|
|
28261
28252
|
}
|
|
28262
28253
|
}, H = (K) => ({
|
|
28263
28254
|
...K,
|
|
28264
|
-
onClick: (te) => (
|
|
28255
|
+
onClick: (te) => (P("footer-action"), K.onClick?.(te))
|
|
28265
28256
|
}), $ = Array.isArray(a) ? a.map(H) : a && H(a), J = /* @__PURE__ */ t(
|
|
28266
28257
|
Ki,
|
|
28267
28258
|
{
|
|
@@ -28289,7 +28280,7 @@ function Mv({
|
|
|
28289
28280
|
)
|
|
28290
28281
|
}
|
|
28291
28282
|
);
|
|
28292
|
-
return
|
|
28283
|
+
return A ? (
|
|
28293
28284
|
// The scene. `perspective` is what makes the turn a TURN — without it the
|
|
28294
28285
|
// rotation is a flat squeeze — and it lives on the parent so the faces share
|
|
28295
28286
|
// one vanishing point.
|
|
@@ -28343,7 +28334,7 @@ function Mv({
|
|
|
28343
28334
|
children: [
|
|
28344
28335
|
B?.title ? /* @__PURE__ */ t("div", { className: "min-h-6 truncate font-medium text-f1-foreground", children: B.title }) : null,
|
|
28345
28336
|
/* @__PURE__ */ g("div", { className: "flex flex-1 flex-col items-center justify-center gap-4 text-center", children: [
|
|
28346
|
-
/* @__PURE__ */ t("p", { className: "m-0 text-lg font-medium text-f1-foreground-secondary", children:
|
|
28337
|
+
/* @__PURE__ */ t("p", { className: "m-0 text-lg font-medium text-f1-foreground-secondary", children: A }),
|
|
28347
28338
|
/* @__PURE__ */ t(
|
|
28348
28339
|
Re,
|
|
28349
28340
|
{
|
|
@@ -28789,7 +28780,7 @@ function pc({
|
|
|
28789
28780
|
className: M,
|
|
28790
28781
|
style: F
|
|
28791
28782
|
}) {
|
|
28792
|
-
const z = se(),
|
|
28783
|
+
const z = se(), P = !s, A = (Z) => v !== void 0 && Z.id !== v, L = P && p != null, B = e.filter((Z) => !Z.locked).length > 1, [R, H] = D(null), $ = _0(
|
|
28793
28784
|
x0(p5, { activationConstraint: { distance: 4 } })
|
|
28794
28785
|
), [J, K] = D(null), te = e.find((Z) => Z.id === J), [Y, ae] = D(null), ue = E(null), U = E(null), q = E(null), j = E(null), X = ne(
|
|
28795
28786
|
() => [m5, o5(() => j.current)],
|
|
@@ -28847,7 +28838,7 @@ function pc({
|
|
|
28847
28838
|
label: N ?? z.widgets.editParams,
|
|
28848
28839
|
icon: Pp,
|
|
28849
28840
|
onClick: () => K(Z.id)
|
|
28850
|
-
}),
|
|
28841
|
+
}), P && !Z.locked && u && (_e.length > 0 && _e.push({ type: "separator" }), _e.push({
|
|
28851
28842
|
label: x ?? z.widgets.removeWidget,
|
|
28852
28843
|
icon: qa,
|
|
28853
28844
|
critical: !0,
|
|
@@ -28942,7 +28933,7 @@ function pc({
|
|
|
28942
28933
|
}, Nn = (Z, _e, Ve) => /* @__PURE__ */ t(
|
|
28943
28934
|
y5,
|
|
28944
28935
|
{
|
|
28945
|
-
hidden:
|
|
28936
|
+
hidden: A(Z),
|
|
28946
28937
|
placement: Ve,
|
|
28947
28938
|
measureRef: ye.measureRef,
|
|
28948
28939
|
children: /* @__PURE__ */ t(v5, { host: d?.(Z), children: L ? /* @__PURE__ */ t(
|
|
@@ -29396,8 +29387,8 @@ const _5 = ({
|
|
|
29396
29387
|
oneSwitchTooltip: M,
|
|
29397
29388
|
oneSwitchAutoOpen: F,
|
|
29398
29389
|
hideOneSwitch: z = !1
|
|
29399
|
-
},
|
|
29400
|
-
const
|
|
29390
|
+
}, P) {
|
|
29391
|
+
const A = se(), { sidebarState: L, toggleSidebar: B, isSmallScreen: R, hasRail: H } = xt(), $ = En(), J = E(null), [K, te] = D(0), [Y, ae] = D(!1), [ue, U] = D(null), [q, j] = D(0), [X, G] = D(!1), oe = E(null), ee = E(null);
|
|
29401
29392
|
hn(() => {
|
|
29402
29393
|
const Ce = J.current;
|
|
29403
29394
|
if (!Ce)
|
|
@@ -29542,7 +29533,7 @@ const _5 = ({
|
|
|
29542
29533
|
Se.div,
|
|
29543
29534
|
{
|
|
29544
29535
|
ref: (Ce) => {
|
|
29545
|
-
J.current = Ce, typeof
|
|
29536
|
+
J.current = Ce, typeof P == "function" ? P(Ce) : P && (P.current = Ce);
|
|
29546
29537
|
},
|
|
29547
29538
|
className: S(
|
|
29548
29539
|
// `isolate` so the surface layer's -z-10 stays INSIDE this layout
|
|
@@ -29795,11 +29786,11 @@ const _5 = ({
|
|
|
29795
29786
|
Pe("right") && y ? (
|
|
29796
29787
|
// The same control the column's placeholder is — a dashed box
|
|
29797
29788
|
// around one glyph, named only on hover — at the strip's size.
|
|
29798
|
-
/* @__PURE__ */ t(ii, { label:
|
|
29789
|
+
/* @__PURE__ */ t(ii, { label: A.widgets.addWidget, children: /* @__PURE__ */ t(
|
|
29799
29790
|
Se.button,
|
|
29800
29791
|
{
|
|
29801
29792
|
type: "button",
|
|
29802
|
-
"aria-label":
|
|
29793
|
+
"aria-label": A.widgets.addWidget,
|
|
29803
29794
|
"data-add-widget": "right",
|
|
29804
29795
|
onClick: () => y("right"),
|
|
29805
29796
|
className: "pointer-events-auto flex h-10 w-10 items-center justify-center rounded-lg border border-dashed border-f1-border text-f1-foreground-secondary hover:border-f1-border-hover hover:text-f1-foreground",
|
|
@@ -29935,8 +29926,8 @@ function sM({
|
|
|
29935
29926
|
}) {
|
|
29936
29927
|
const c = se(), { position: u, width: m, bodyClassName: p, asideClassName: v } = Fv(), [h, y] = D(""), [w, b] = D(null), [k, _] = D("pick"), [C, I] = D(!1), x = (Y) => {
|
|
29937
29928
|
I(!0), _(Y);
|
|
29938
|
-
}, [N, T] = D(null), { formRef: M, getValues: F, trigger: z } = Eu(),
|
|
29939
|
-
const Y = r ? i.filter((X) => !X.areas || X.areas.includes(r)) : i, ae =
|
|
29929
|
+
}, [N, T] = D(null), { formRef: M, getValues: F, trigger: z } = Eu(), P = h.trim().toLowerCase(), A = s ?? (r ? wc[r] : wc.right), L = ne(() => {
|
|
29930
|
+
const Y = r ? i.filter((X) => !X.areas || X.areas.includes(r)) : i, ae = P ? Y.filter((X) => X.title.toLowerCase().includes(P)) : Y, ue = ae.filter((X) => X.recommended), U = ae.filter((X) => !X.recommended), q = new Set((o ?? []).map((X) => X.id)), j = U.filter((X) => !X.group || !q.has(X.group));
|
|
29940
29931
|
return [
|
|
29941
29932
|
...ue.length ? [
|
|
29942
29933
|
{
|
|
@@ -29955,7 +29946,7 @@ function sM({
|
|
|
29955
29946
|
// for them would claim they do.
|
|
29956
29947
|
...j.length ? [{ id: "ungrouped", items: j }] : []
|
|
29957
29948
|
];
|
|
29958
|
-
}, [i, o,
|
|
29949
|
+
}, [i, o, P, r, c]), B = L.flatMap((Y) => Y.items), R = B.find((Y) => Y.id === w) ?? B[0] ?? null, H = R ? O5(R) : void 0, $ = H !== void 0 && !(R?.addWithDefaults && IT(H, _c(R))), J = k === "configure" && $, K = R && N?.id === R.id ? N.params : R ? _c(R) : {}, te = J && R && d ? d(R, K) : R?.preview;
|
|
29959
29950
|
return V(() => {
|
|
29960
29951
|
e && (_("pick"), I(!1), T(null));
|
|
29961
29952
|
}, [e]), V(() => {
|
|
@@ -30048,7 +30039,7 @@ function sM({
|
|
|
30048
30039
|
ae.id
|
|
30049
30040
|
))
|
|
30050
30041
|
] }, Y.id)),
|
|
30051
|
-
B.length === 0 ? /* @__PURE__ */ t("div", { className: "p-2 text-f1-foreground-secondary", children:
|
|
30042
|
+
B.length === 0 ? /* @__PURE__ */ t("div", { className: "p-2 text-f1-foreground-secondary", children: P ? "No widgets match your search." : "No widgets to add here." }) : null
|
|
30052
30043
|
] })
|
|
30053
30044
|
] })
|
|
30054
30045
|
},
|
|
@@ -30063,7 +30054,7 @@ function sM({
|
|
|
30063
30054
|
te,
|
|
30064
30055
|
J ? K : void 0
|
|
30065
30056
|
) : void 0,
|
|
30066
|
-
previewWidth:
|
|
30057
|
+
previewWidth: A,
|
|
30067
30058
|
children: R ? /* @__PURE__ */ t(
|
|
30068
30059
|
L5,
|
|
30069
30060
|
{
|