@factorialco/f0-react 4.47.2 → 4.49.1
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/{ChatDocxThumbnail-Dv_RJfHi.js → ChatDocxThumbnail-0UzuQ7VD.js} +1 -1
- package/dist/{ChatPdfThumbnail-Cz-NbQ1w.js → ChatPdfThumbnail-950d7Iex.js} +1 -1
- package/dist/{DocumentToolbar-Ct_Et9Ep.js → DocumentToolbar-BsYEN9Hc.js} +2 -2
- package/dist/{DocxViewer-FDYl7a9o.js → DocxViewer-Cq9oG9UA.js} +3 -3
- package/dist/{F0AiProcessingOverlay-B32hzXK2.js → F0AiProcessingOverlay-s63zo8tZ.js} +1 -1
- package/dist/{F0CanvasPanel-CUlu2cJa.js → F0CanvasPanel-DrV1MNII.js} +16705 -16686
- package/dist/{LocationMap-D5rQKDbn.js → LocationMap-FSCZLFpn.js} +1 -1
- package/dist/{SheetViewer-CcUI_Cm_.js → SheetViewer-Cu2W94YV.js} +2 -2
- package/dist/{TextViewer-DOYwJUHI.js → TextViewer-BWLjSEeq.js} +2 -2
- package/dist/ai.d.ts +6 -6
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +6 -6
- package/dist/component-status.js +1 -1
- package/dist/{docx-preview-BjeY0ez5.js → docx-preview-BVnwcaR_.js} +1 -1
- package/dist/experimental.d.ts +38 -8
- package/dist/experimental.js +677 -674
- package/dist/f0.d.ts +15 -8
- package/dist/f0.js +8 -8
- package/dist/i18n-provider-defaults.d.ts +6 -6
- package/dist/{index-8Z3dRSwW.js → index-CDKvU3T5.js} +15056 -14947
- package/dist/{index-CAXEmnmo.js → index-CMLPPa_1.js} +3 -3
- package/dist/{pdfWorker-B1n2TrgP.js → pdfWorker-XmSJhi79.js} +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/tailwind.config.ts +6 -0
package/dist/experimental.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { B as Sl, E as kl, G as Tl, H as Rl, J as Vo, K as Tn, L as ln, M as El, q as S, N as ue, O as zt, u as pe, Q as Ll, R as zl, U as
|
|
2
|
-
import { cU as S0, cT as k0, d4 as T0, cQ as R0, cR as E0, cL as L0, cM as z0, cM as
|
|
1
|
+
import { B as Sl, E as kl, G as Tl, H as Rl, J as Vo, K as Tn, L as ln, M as El, q as S, N as ue, O as zt, u as pe, Q as Ll, R as zl, U as Al, V as Fl, W as Pl, X as Qe, Y as Ml, Z as so, _ as Hn, $ as mn, a0 as Ve, a1 as Ol, a2 as Dl, a3 as ve, a4 as Bl, a5 as _l, a6 as Ie, a7 as ea, a8 as Hl, a9 as $l, o as Me, aa as er, S as ie, ab as Vt, ac as Wl, ad as jl, ae as Vl, af as Ul, ag as Gl, ah as ct, ai as ta, aj as na, ak as At, al as $n, am as Kl, e as ra, an as Wt, ao as oa, ap as tr, w as tt, v as We, aq as Wn, ar as ia, as as ql, at as aa, au as Ue, x as Je, av as Yl, aw as Xl, ax as Ql, ay as Jl, az as Zl, aA as Et, aB as nr, aC as ec, aD as tc, aE as nc, aF as rc, aG as rr, aH as sa, j as la, aI as oc, aJ as ic, k as jn, aK as ac, aL as ca, aM as sc, aN as lc, aO as cc, aP as dc, aQ as uc, aR as da, aS as ua, aT as fa, aU as Br, aV as ha, aW as _r, aX as ma, aY as fc, aZ as hc, a_ as mc, a$ as pa, b0 as pc, b1 as nt, b2 as Zt, b3 as Hr, b4 as ga, b5 as gc, b6 as or, b7 as bc, b8 as vc, b9 as xc, ba as Jt, bb as yc, bc as wc, bd as dn, be as Uo, bf as $r, bg as Nc, bh as Cc, b as ba, bi as Ic, a as Sc, bj as ir, bk as kc, g as Tc, F as Rc, bl as Ec, bm as va, bn as Lc, s as lo, bo as zc, bp as co, bq as en, br as Ac, bs as Fc, bt as Pc, bu as Mc, bv as xa, bw as Oc, bx as Dc, by as Bc, bz as Wr, bA as _c, bB as Hc, bC as $c, bD as uo, bE as Wc, bF as jc, bG as Vc, bH as Uc, bI as Gc, bJ as Kc, bK as qc, bL as ya, bM as wa, bN as Na, bO as Yc, bP as Xc, bQ as Qc, bR as Jc, bS as Zc, bT as Ca, bU as ed, bV as td, bW as Ia, bX as fo, bY as nd, bZ as rd, b_ as od, r as id, b$ as ad, c0 as Sa, c1 as sd, c2 as ld, c3 as ka, c4 as Ta, c5 as Ra, l as Vn, c6 as cd, c7 as Go, c8 as Ea, c9 as dd, ca as ud, cb as fd, cc as jr, cd as Vr, ce as hd, cf as md, cg as pd, ch as gd, ci as bd, cj as vd, ck as xd, cl as St, cm as ho, cn as mo, co as po, cp as La, cq as go, cr as za, cs as Aa, ct as yd, cu as wd, cv as Nd, cw as Cd, cx as Id, cy as Sd, cz as kd, cA as Ko, cB as Td, cC as Rd, cD as qo, cE as Ed, cF as Ld, cG as zd, cH as Ad, cI as Fa, cJ as Fd, cK as Pd } from "./F0CanvasPanel-DrV1MNII.js";
|
|
2
|
+
import { cU as S0, cT as k0, d4 as T0, cQ as R0, cR as E0, cL as L0, cM as z0, cM as A0, cN as F0, d7 as P0, cS as M0, d0 as O0, d1 as D0, d5 as B0, cO as _0, cW as H0, cV as $0, T as W0, h as j0, d2 as V0, d8 as U0, d3 as G0, d6 as K0, c$ as q0, cY as Y0, c_ as X0, cX as Q0, cP as J0, cZ as Z0 } from "./F0CanvasPanel-DrV1MNII.js";
|
|
3
3
|
import { jsx as n, jsxs as m, Fragment as De } from "react/jsx-runtime";
|
|
4
|
-
import Q, { forwardRef as
|
|
5
|
-
import { C as Dd, P as Bd, a as Nn, M as _d, p as
|
|
6
|
-
import {
|
|
4
|
+
import Q, { forwardRef as Ae, useRef as _, useTransition as Md, useState as $, useLayoutEffect as ar, useId as Ur, useContext as Nt, createContext as st, useEffect as te, useCallback as K, useMemo as he, Fragment as Rt, isValidElement as Od, cloneElement as Pa, Suspense as bo, lazy as tn, createElement as Mn, memo as Ma, Children as Oa } from "react";
|
|
5
|
+
import { C as Dd, P as Bd, a as Nn, M as _d, p as Hd, b as $d, R as Yo, c as Da, u as Wd, e as jd, f as Vd, g as Ud, h as Gd, i as Kd, O as Ba, j as _a, S as qd, A as Yd, B as Xd, L as Qd, k as Jd, V as Zd, l as eu, m as tu, n as nu } from "./index-CDKvU3T5.js";
|
|
6
|
+
import { a3 as tx, a4 as nx, t as rx, v as ox, r as ix, J as ax, w as sx, E as lx, ae as cx, I as dx, s as ux, a1 as fx, ag as hx, af as mx, U as px, aj as gx, F as bx, _ as vx, X as xx, N as yx, al as wx, Q as Nx, $ as Cx, a0 as Ix, x as Sx, ah as kx, ai as Tx, T as Rx, a2 as Ex, ab as Lx, ad as zx, y as Ax, D as Fx, G as Px, Y as Mx, ak as Ox, Z as Dx, W as Bx, am as _x, z as Hx, H as $x, o as Wx, q as jx, a7 as Vx, a8 as Ux, a5 as Gx, ac as Kx, K as qx, a9 as Yx, a6 as Xx, aa as Qx } from "./index-CDKvU3T5.js";
|
|
7
7
|
import ru from "react-dom";
|
|
8
8
|
const ou = Sl("Search", [
|
|
9
9
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
10
10
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
11
|
-
]),
|
|
11
|
+
]), Ha = Ae(({ className: e, items: t }, r) => /* @__PURE__ */ n(kl, { ref: r, className: e, children: /* @__PURE__ */ m("div", { className: "flex items-center", children: [
|
|
12
12
|
/* @__PURE__ */ n(Tl, {}),
|
|
13
13
|
/* @__PURE__ */ n(Rl, { items: t, children: /* @__PURE__ */ n("button", { className: "rounded-sm px-1.5 py-0.5 font-medium text-f1-foreground no-underline transition-colors hover:bg-f1-background-secondary", children: "..." }) })
|
|
14
14
|
] }) }));
|
|
15
|
-
|
|
15
|
+
Ha.displayName = "CollapsedBreadcrumbItem";
|
|
16
16
|
const vo = 50, iu = 120, Un = 8;
|
|
17
17
|
function au(e, t) {
|
|
18
18
|
const r = t.length;
|
|
@@ -84,7 +84,7 @@ function lu(e, t, r = []) {
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
function cu({ breadcrumbs: e, append: t }) {
|
|
87
|
-
const r = _(null), o = _(null), [, i] = Md(), [a, s] =
|
|
87
|
+
const r = _(null), o = _(null), [, i] = Md(), [a, s] = $(null), l = (a?.collapsedItems || []).length > 0;
|
|
88
88
|
return ar(() => {
|
|
89
89
|
const c = r.current, u = o.current;
|
|
90
90
|
if (!c || !u || u.children.length < e.length) return;
|
|
@@ -140,7 +140,7 @@ function cu({ breadcrumbs: e, append: t }) {
|
|
|
140
140
|
),
|
|
141
141
|
l && /* @__PURE__ */ m(De, { children: [
|
|
142
142
|
/* @__PURE__ */ n(
|
|
143
|
-
|
|
143
|
+
Ha,
|
|
144
144
|
{
|
|
145
145
|
items: a.collapsedItems
|
|
146
146
|
},
|
|
@@ -331,8 +331,8 @@ const du = zt({
|
|
|
331
331
|
)
|
|
332
332
|
}
|
|
333
333
|
);
|
|
334
|
-
},
|
|
335
|
-
const [i, a] =
|
|
334
|
+
}, $a = Ae(uu), Wa = st(null), fu = 15, hu = ({ children: e, enabled: t, onShow: r, ...o }) => {
|
|
335
|
+
const [i, a] = $(t), [s, l] = $(!1), [c, u] = $(!0), [d, f] = $(
|
|
336
336
|
fu
|
|
337
337
|
), h = _(null), p = (v) => {
|
|
338
338
|
h.current = v;
|
|
@@ -388,9 +388,9 @@ const ja = ({
|
|
|
388
388
|
className: e,
|
|
389
389
|
disabled: t
|
|
390
390
|
}) => {
|
|
391
|
-
const { enabled: r, setOpen: o, open: i } = sr(), a = pe(), [s, l] =
|
|
391
|
+
const { enabled: r, setOpen: o, open: i } = sr(), a = pe(), [s, l] = $(!1);
|
|
392
392
|
return r ? /* @__PURE__ */ n("div", { className: "flex items-center", children: /* @__PURE__ */ n(Ll, { children: /* @__PURE__ */ m(zl, { delayDuration: 850, disableHoverableContent: !0, children: [
|
|
393
|
-
/* @__PURE__ */ n(
|
|
393
|
+
/* @__PURE__ */ n(Al, { asChild: !0, children: /* @__PURE__ */ n(
|
|
394
394
|
ue.div,
|
|
395
395
|
{
|
|
396
396
|
animate: {
|
|
@@ -407,7 +407,7 @@ const ja = ({
|
|
|
407
407
|
"--gradient-angle": "180deg"
|
|
408
408
|
},
|
|
409
409
|
children: /* @__PURE__ */ n(
|
|
410
|
-
|
|
410
|
+
Fl,
|
|
411
411
|
{
|
|
412
412
|
onCheckedChange: (c) => {
|
|
413
413
|
o(c);
|
|
@@ -436,7 +436,7 @@ const ja = ({
|
|
|
436
436
|
transitionTimingFunction: "cubic-bezier(0.175,0.885,0.32,1.5)"
|
|
437
437
|
},
|
|
438
438
|
children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
439
|
-
|
|
439
|
+
$a,
|
|
440
440
|
{
|
|
441
441
|
size: "sm",
|
|
442
442
|
background: i ? "white" : void 0,
|
|
@@ -466,12 +466,12 @@ function nn() {
|
|
|
466
466
|
} : e;
|
|
467
467
|
}
|
|
468
468
|
function mu({ children: e }) {
|
|
469
|
-
const { currentPath: t } = so(), [r, o] =
|
|
469
|
+
const { currentPath: t } = so(), [r, o] = $(!1), [i, a] = $(!1), s = r ? mn.xl : mn.md, l = Hn(`(max-width: ${s}px)`, {
|
|
470
470
|
initializeWithValue: !0
|
|
471
|
-
}), [c, u] =
|
|
471
|
+
}), [c, u] = $(() => {
|
|
472
472
|
const w = localStorage.getItem(Jo);
|
|
473
473
|
return w !== null ? !!w : !0;
|
|
474
|
-
}), [d, f] =
|
|
474
|
+
}), [d, f] = $(!1), [h, p] = $(
|
|
475
475
|
null
|
|
476
476
|
), b = K(
|
|
477
477
|
({ isInvokedByUser: w } = {
|
|
@@ -519,7 +519,7 @@ const Zo = ue.create(ve), ei = {
|
|
|
519
519
|
onChange: t,
|
|
520
520
|
label: r
|
|
521
521
|
}) => {
|
|
522
|
-
const [o, i] =
|
|
522
|
+
const [o, i] = $(!1), a = () => {
|
|
523
523
|
i(!0), t(!e);
|
|
524
524
|
};
|
|
525
525
|
return /* @__PURE__ */ n(Ve, { mode: "wait", children: /* @__PURE__ */ n(
|
|
@@ -587,15 +587,15 @@ const Zo = ue.create(ve), ei = {
|
|
|
587
587
|
hasUnread: u = !1,
|
|
588
588
|
crossSelling: d
|
|
589
589
|
}) => {
|
|
590
|
-
const [f, h] =
|
|
590
|
+
const [f, h] = $("idle"), [p, b] = $(null), [v, ...g] = p ?? [], [w, x] = $(!1);
|
|
591
591
|
te(() => {
|
|
592
592
|
b(null), h("idle");
|
|
593
593
|
}, [e]);
|
|
594
594
|
const N = K(async () => {
|
|
595
595
|
try {
|
|
596
596
|
h("fetching");
|
|
597
|
-
const
|
|
598
|
-
h("idle"), b(
|
|
597
|
+
const A = await r();
|
|
598
|
+
h("idle"), b(A);
|
|
599
599
|
} catch {
|
|
600
600
|
h("error");
|
|
601
601
|
}
|
|
@@ -604,8 +604,8 @@ const Zo = ue.create(ve), ei = {
|
|
|
604
604
|
Bl,
|
|
605
605
|
{
|
|
606
606
|
open: w,
|
|
607
|
-
onOpenChange: async (
|
|
608
|
-
x(
|
|
607
|
+
onOpenChange: async (A) => {
|
|
608
|
+
x(A), A && p === null && N(), s(A);
|
|
609
609
|
},
|
|
610
610
|
children: [
|
|
611
611
|
/* @__PURE__ */ n(_l, { asChild: !0, children: /* @__PURE__ */ n(
|
|
@@ -619,8 +619,8 @@ const Zo = ue.create(ve), ei = {
|
|
|
619
619
|
append: u && /* @__PURE__ */ n(xo, { className: "absolute -right-0.5 -top-[1px]" })
|
|
620
620
|
}
|
|
621
621
|
) }),
|
|
622
|
-
/* @__PURE__ */ n(
|
|
623
|
-
|
|
622
|
+
/* @__PURE__ */ n(Hl, { children: /* @__PURE__ */ m(
|
|
623
|
+
$l,
|
|
624
624
|
{
|
|
625
625
|
sideOffset: 8,
|
|
626
626
|
collisionPadding: 20,
|
|
@@ -641,10 +641,10 @@ const Zo = ue.create(ve), ei = {
|
|
|
641
641
|
onClick: c
|
|
642
642
|
}
|
|
643
643
|
),
|
|
644
|
-
p.length > 1 && /* @__PURE__ */ n(De, { children: /* @__PURE__ */ n("div", { className: "pb-1", children: g.map((
|
|
644
|
+
p.length > 1 && /* @__PURE__ */ n(De, { children: /* @__PURE__ */ n("div", { className: "pb-1", children: g.map((A, E) => /* @__PURE__ */ n(
|
|
645
645
|
vu,
|
|
646
646
|
{
|
|
647
|
-
...
|
|
647
|
+
...A,
|
|
648
648
|
onClick: c
|
|
649
649
|
},
|
|
650
650
|
E
|
|
@@ -861,7 +861,7 @@ const Zo = ue.create(ve), ei = {
|
|
|
861
861
|
crossSelling: r,
|
|
862
862
|
onDropdownClose: o
|
|
863
863
|
}) => {
|
|
864
|
-
const [i, a] =
|
|
864
|
+
const [i, a] = $(e);
|
|
865
865
|
te(() => {
|
|
866
866
|
a(e);
|
|
867
867
|
}, [e]);
|
|
@@ -917,7 +917,7 @@ function Iu(e, t) {
|
|
|
917
917
|
const r = t?.getItemTitle, o = t?.mode ?? "url", i = e !== null, a = e?.previousItem ?? null, s = e?.nextItem ?? null, l = e?.previousItemUrl ?? null, c = e?.nextItemUrl ?? null, u = e?.absoluteIndex ?? null, d = e?.totalItems, f = e?.hasPrevious ?? !1, h = e?.hasNext ?? !1, p = e?.goToPrevious, b = e?.goToNext;
|
|
918
918
|
return he(() => {
|
|
919
919
|
if (!i) return null;
|
|
920
|
-
const v = u !== null && d !== void 0 ? { current: u + 1, total: d } : void 0, g = (N,
|
|
920
|
+
const v = u !== null && d !== void 0 ? { current: u + 1, total: d } : void 0, g = (N, A) => (N !== null ? r?.(N) : void 0) ?? A, w = o === "callback" ? f ? { onClick: p, title: g(a, "Previous") } : void 0 : l !== null ? { url: l, title: g(a, "Previous") } : void 0, x = o === "callback" ? h ? { onClick: b, title: g(s, "Next") } : void 0 : c !== null ? { url: c, title: g(s, "Next") } : void 0;
|
|
921
921
|
return !w && !x && !v ? null : { previous: w, next: x, counter: v };
|
|
922
922
|
}, [
|
|
923
923
|
i,
|
|
@@ -956,7 +956,7 @@ function Cv({
|
|
|
956
956
|
module: e.id
|
|
957
957
|
},
|
|
958
958
|
...r
|
|
959
|
-
], g = t && Object.keys(t).length !== 0, w = i && r.length > 0, x = !i && o.length > 0, N = !i && !!s?.isVisible,
|
|
959
|
+
], g = t && Object.keys(t).length !== 0, w = i && r.length > 0, x = !i && o.length > 0, N = !i && !!s?.isVisible, A = v[v.length - 1], E = "navigation" in window ? window.navigation : null, k = i && (E ? !!E.canGoBack : window.history.length > 1);
|
|
960
960
|
return /* @__PURE__ */ m(
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
@@ -1002,7 +1002,7 @@ function Cv({
|
|
|
1002
1002
|
onClick: () => window.history.back()
|
|
1003
1003
|
}
|
|
1004
1004
|
) }),
|
|
1005
|
-
k || w ? /* @__PURE__ */ n("div", { className: "text-lg font-semibold text-f1-foreground", children: "loading" in
|
|
1005
|
+
k || w ? /* @__PURE__ */ n("div", { className: "text-lg font-semibold text-f1-foreground", children: "loading" in A ? /* @__PURE__ */ n(ie, { className: "h-4 w-24" }) : A.label }) : /* @__PURE__ */ n(
|
|
1006
1006
|
cu,
|
|
1007
1007
|
{
|
|
1008
1008
|
breadcrumbs: v,
|
|
@@ -1022,14 +1022,14 @@ function Cv({
|
|
|
1022
1022
|
)
|
|
1023
1023
|
] }),
|
|
1024
1024
|
/* @__PURE__ */ m("div", { className: "flex items-center gap-3", children: [
|
|
1025
|
-
!i && g && /* @__PURE__ */ n("div", { children: t.tooltip ? /* @__PURE__ */ n(
|
|
1026
|
-
|
|
1025
|
+
!i && g && /* @__PURE__ */ n("div", { children: t.tooltip ? /* @__PURE__ */ n(At, { label: t.tooltip, children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
1026
|
+
$n,
|
|
1027
1027
|
{
|
|
1028
1028
|
text: t.text,
|
|
1029
1029
|
variant: t.variant,
|
|
1030
1030
|
additionalAccessibleText: t.tooltip
|
|
1031
1031
|
}
|
|
1032
|
-
) }) }) : /* @__PURE__ */ n(
|
|
1032
|
+
) }) }) : /* @__PURE__ */ n($n, { text: t.text, variant: t.variant }) }),
|
|
1033
1033
|
!i && g && (b || x || N) && /* @__PURE__ */ n("div", { className: "h-4 w-px bg-f1-border-secondary" }),
|
|
1034
1034
|
b && /* @__PURE__ */ n(Kl, { ...b }),
|
|
1035
1035
|
b && x && /* @__PURE__ */ n("div", { className: "h-4 w-px bg-f1-border-secondary" }),
|
|
@@ -1059,7 +1059,7 @@ function Cv({
|
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
1061
1061
|
function Su({ action: e }) {
|
|
1062
|
-
const t = _(null), [r, o] =
|
|
1062
|
+
const t = _(null), [r, o] = $(!1), i = e.variant ?? "outline";
|
|
1063
1063
|
return "actions" in e ? /* @__PURE__ */ n(Wt, { items: e.actions, open: r, onOpenChange: o, children: /* @__PURE__ */ n(
|
|
1064
1064
|
Ie,
|
|
1065
1065
|
{
|
|
@@ -1309,7 +1309,7 @@ const ku = () => {
|
|
|
1309
1309
|
) }),
|
|
1310
1310
|
/* @__PURE__ */ n("div", { className: "flex-1 content-center overflow-y-auto", children: /* @__PURE__ */ m("div", { className: "flex flex-col gap-4 p-6 pt-3", children: [
|
|
1311
1311
|
/* @__PURE__ */ m("div", { className: "flex flex-col gap-4", children: [
|
|
1312
|
-
/* @__PURE__ */ n(
|
|
1312
|
+
/* @__PURE__ */ n($a, { spin: !0, size: "lg" }),
|
|
1313
1313
|
/* @__PURE__ */ m("div", { children: [
|
|
1314
1314
|
/* @__PURE__ */ n("p", { className: "text-lg font-medium text-f1-foreground-secondary", children: t }),
|
|
1315
1315
|
/* @__PURE__ */ n("h1", { className: "text-2xl font-semibold text-f1-foreground", children: r })
|
|
@@ -1335,9 +1335,9 @@ const ku = () => {
|
|
|
1335
1335
|
] }) }),
|
|
1336
1336
|
/* @__PURE__ */ n("div", { className: "m-3 mt-2 flex-shrink-0", children: /* @__PURE__ */ n(ku, {}) })
|
|
1337
1337
|
] }) : null;
|
|
1338
|
-
},
|
|
1338
|
+
}, Au = tt(
|
|
1339
1339
|
We("AiPromotionChat", zu)
|
|
1340
|
-
),
|
|
1340
|
+
), Fu = tt(
|
|
1341
1341
|
We("AiPromotionChatProvider", Lu)
|
|
1342
1342
|
), Ga = zt({
|
|
1343
1343
|
base: "flex w-full flex-col rounded-lg p-[1px]",
|
|
@@ -1361,7 +1361,7 @@ const ku = () => {
|
|
|
1361
1361
|
positive: "text-f1-foreground-positive font-medium",
|
|
1362
1362
|
warning: "text-f1-foreground-warning font-medium",
|
|
1363
1363
|
info: "text-f1-foreground-info font-medium"
|
|
1364
|
-
}, Pu =
|
|
1364
|
+
}, Pu = Ae(
|
|
1365
1365
|
function({ title: t, onClose: r, children: o, actions: i = [], variant: a }, s) {
|
|
1366
1366
|
if (i.length > 2)
|
|
1367
1367
|
throw new Error(
|
|
@@ -1465,14 +1465,14 @@ const ku = () => {
|
|
|
1465
1465
|
] })
|
|
1466
1466
|
]
|
|
1467
1467
|
}
|
|
1468
|
-
), Ka =
|
|
1468
|
+
), Ka = Ae(
|
|
1469
1469
|
(e, t) => /* @__PURE__ */ n(Pu, { ref: t, ...e })
|
|
1470
1470
|
), Ou = ({ compact: e, variant: t }) => /* @__PURE__ */ n(Mu, { compact: e, variant: t });
|
|
1471
1471
|
Ka.displayName = "F0Callout";
|
|
1472
1472
|
const Iv = Je(
|
|
1473
1473
|
tt(Ka),
|
|
1474
1474
|
Ou
|
|
1475
|
-
), qa =
|
|
1475
|
+
), qa = Ae(
|
|
1476
1476
|
({ value: e, max: t, color: r = "categorical-1", label: o }, i) => {
|
|
1477
1477
|
const a = pe(), s = Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0, l = Number.isFinite(e) ? Math.max(0, Math.min(Math.floor(e), s)) : 0, c = Array.from({ length: s }, (d, f) => f < l), u = Yl(r);
|
|
1478
1478
|
return /* @__PURE__ */ n(
|
|
@@ -1634,7 +1634,7 @@ function _u({
|
|
|
1634
1634
|
}
|
|
1635
1635
|
const kv = tt(
|
|
1636
1636
|
We("F0VersionHistory", _u)
|
|
1637
|
-
), Ya =
|
|
1637
|
+
), Ya = Ae(
|
|
1638
1638
|
({ height: e, itemCount: t, itemSize: r, className: o, renderer: i }, a) => {
|
|
1639
1639
|
const s = Q.useRef(null);
|
|
1640
1640
|
Q.useImperativeHandle(
|
|
@@ -1728,7 +1728,7 @@ function cr(e, t) {
|
|
|
1728
1728
|
), i = o.indexOf(e);
|
|
1729
1729
|
i > 0 ? o[i - 1].focus() : o.length > 0 && t?.();
|
|
1730
1730
|
}
|
|
1731
|
-
const
|
|
1731
|
+
const Hu = ({
|
|
1732
1732
|
entity: e,
|
|
1733
1733
|
selected: t,
|
|
1734
1734
|
onSelect: r,
|
|
@@ -1831,10 +1831,10 @@ const $u = ({
|
|
|
1831
1831
|
disabled: v = !1,
|
|
1832
1832
|
hiddenAvatar: g = !1
|
|
1833
1833
|
}) => {
|
|
1834
|
-
const [w, x] =
|
|
1834
|
+
const [w, x] = $(!1);
|
|
1835
1835
|
if (!e)
|
|
1836
1836
|
return /* @__PURE__ */ n(
|
|
1837
|
-
|
|
1837
|
+
Hu,
|
|
1838
1838
|
{
|
|
1839
1839
|
marginLeft: f ? "ml-6" : "ml-0",
|
|
1840
1840
|
entity: o,
|
|
@@ -1858,7 +1858,7 @@ const $u = ({
|
|
|
1858
1858
|
if (v) return;
|
|
1859
1859
|
!i || a ? s(o) : i && l(o);
|
|
1860
1860
|
} else k.key === "ArrowDown" ? lr(k.currentTarget, u) : k.key === "ArrowUp" && cr(k.currentTarget, d);
|
|
1861
|
-
},
|
|
1861
|
+
}, A = () => {
|
|
1862
1862
|
if (w)
|
|
1863
1863
|
c(!t), x(!1);
|
|
1864
1864
|
else {
|
|
@@ -1915,7 +1915,7 @@ const $u = ({
|
|
|
1915
1915
|
{
|
|
1916
1916
|
checked: E,
|
|
1917
1917
|
disabled: v,
|
|
1918
|
-
onClick:
|
|
1918
|
+
onClick: A,
|
|
1919
1919
|
onKeyDown: N,
|
|
1920
1920
|
indeterminate: a,
|
|
1921
1921
|
onPointerDown: (k) => {
|
|
@@ -1997,7 +1997,7 @@ const ri = ({
|
|
|
1997
1997
|
size: "sm"
|
|
1998
1998
|
}
|
|
1999
1999
|
);
|
|
2000
|
-
},
|
|
2000
|
+
}, $u = ({
|
|
2001
2001
|
actions: e,
|
|
2002
2002
|
selectAllLabel: t,
|
|
2003
2003
|
clearLabel: r,
|
|
@@ -2097,7 +2097,7 @@ const ri = ({
|
|
|
2097
2097
|
clearLabel: w,
|
|
2098
2098
|
notFoundTitle: x,
|
|
2099
2099
|
notFoundSubtitle: N,
|
|
2100
|
-
className:
|
|
2100
|
+
className: A,
|
|
2101
2101
|
actions: E,
|
|
2102
2102
|
onCreate: k,
|
|
2103
2103
|
onCreateLabel: y,
|
|
@@ -2108,7 +2108,7 @@ const ri = ({
|
|
|
2108
2108
|
}) => {
|
|
2109
2109
|
const D = Q.useRef(null), P = he(
|
|
2110
2110
|
() => e ? t.reduce(
|
|
2111
|
-
(V,
|
|
2111
|
+
(V, F) => V + (F.subItems?.length ?? 0),
|
|
2112
2112
|
0
|
|
2113
2113
|
) : t.length,
|
|
2114
2114
|
[t, e]
|
|
@@ -2134,14 +2134,14 @@ const ri = ({
|
|
|
2134
2134
|
[h]
|
|
2135
2135
|
), M = K(
|
|
2136
2136
|
(V) => {
|
|
2137
|
-
const
|
|
2137
|
+
const F = T.get(V.id);
|
|
2138
2138
|
if (!e)
|
|
2139
2139
|
return {
|
|
2140
|
-
selected: !!
|
|
2141
|
-
partialSelected: !!
|
|
2140
|
+
selected: !!F,
|
|
2141
|
+
partialSelected: !!F
|
|
2142
2142
|
};
|
|
2143
2143
|
const j = (V.subItems ?? []).filter(
|
|
2144
|
-
(U) =>
|
|
2144
|
+
(U) => F?.subItems?.some(
|
|
2145
2145
|
(Z) => Z.subId === U.subId
|
|
2146
2146
|
)
|
|
2147
2147
|
), G = (V.subItems?.length ?? 0) === j.length, ae = !G && j.length > 0;
|
|
@@ -2160,7 +2160,7 @@ const ri = ({
|
|
|
2160
2160
|
goToLast: B
|
|
2161
2161
|
}
|
|
2162
2162
|
);
|
|
2163
|
-
const
|
|
2163
|
+
const F = k ? V.index - 1 : V.index, j = t[F], { selected: G, partialSelected: ae } = M(j);
|
|
2164
2164
|
return /* @__PURE__ */ n(
|
|
2165
2165
|
On,
|
|
2166
2166
|
{
|
|
@@ -2202,7 +2202,7 @@ const ri = ({
|
|
|
2202
2202
|
C
|
|
2203
2203
|
]
|
|
2204
2204
|
), re = he(() => e ? t.flatMap((V) => {
|
|
2205
|
-
const
|
|
2205
|
+
const F = Rn(
|
|
2206
2206
|
h ?? [],
|
|
2207
2207
|
V.id
|
|
2208
2208
|
);
|
|
@@ -2213,7 +2213,7 @@ const ri = ({
|
|
|
2213
2213
|
subId: V.id,
|
|
2214
2214
|
subName: V.name,
|
|
2215
2215
|
subAvatar: V.avatar,
|
|
2216
|
-
expanded: V.expanded ??
|
|
2216
|
+
expanded: V.expanded ?? F?.expanded ?? !1,
|
|
2217
2217
|
subItems: V.subItems,
|
|
2218
2218
|
subSearchKeys: V.searchKeys
|
|
2219
2219
|
}
|
|
@@ -2221,7 +2221,7 @@ const ri = ({
|
|
|
2221
2221
|
...(V.subItems ?? []).map((j) => ({
|
|
2222
2222
|
parent: {
|
|
2223
2223
|
...V,
|
|
2224
|
-
expanded: V.expanded ??
|
|
2224
|
+
expanded: V.expanded ?? F?.expanded ?? !1
|
|
2225
2225
|
},
|
|
2226
2226
|
subItem: j
|
|
2227
2227
|
}))
|
|
@@ -2248,7 +2248,7 @@ const ri = ({
|
|
|
2248
2248
|
goToLast: B
|
|
2249
2249
|
}
|
|
2250
2250
|
);
|
|
2251
|
-
const
|
|
2251
|
+
const F = k ? V.index - 1 : V.index, j = re[F].parent, G = re[F].subItem;
|
|
2252
2252
|
if (!j) {
|
|
2253
2253
|
const U = {
|
|
2254
2254
|
id: G.subId,
|
|
@@ -2281,7 +2281,7 @@ const ri = ({
|
|
|
2281
2281
|
singleSelector: C,
|
|
2282
2282
|
goToFirst: R,
|
|
2283
2283
|
goToLast: B,
|
|
2284
|
-
hideLine:
|
|
2284
|
+
hideLine: F === re.length - 1,
|
|
2285
2285
|
disabled: z,
|
|
2286
2286
|
hiddenAvatar: L
|
|
2287
2287
|
}
|
|
@@ -2348,9 +2348,9 @@ const ri = ({
|
|
|
2348
2348
|
), [se, ne] = he(() => {
|
|
2349
2349
|
if (!t.length)
|
|
2350
2350
|
return [!1, !1];
|
|
2351
|
-
let V = 0,
|
|
2351
|
+
let V = 0, F = 0;
|
|
2352
2352
|
if (!e)
|
|
2353
|
-
V = t.length,
|
|
2353
|
+
V = t.length, F = t.reduce(
|
|
2354
2354
|
(ae, { id: U }) => ae + (T.has(U) ? 1 : 0),
|
|
2355
2355
|
0
|
|
2356
2356
|
);
|
|
@@ -2362,21 +2362,21 @@ const ri = ({
|
|
|
2362
2362
|
);
|
|
2363
2363
|
t.forEach((U) => {
|
|
2364
2364
|
const Z = U.subItems ?? [];
|
|
2365
|
-
V += Z.length,
|
|
2365
|
+
V += Z.length, F += Z.filter(
|
|
2366
2366
|
(fe) => ae.has(fe.subId)
|
|
2367
2367
|
).length;
|
|
2368
2368
|
});
|
|
2369
2369
|
}
|
|
2370
|
-
const j = V > 0 &&
|
|
2370
|
+
const j = V > 0 && F === V, G = F > 0;
|
|
2371
2371
|
return [j, G];
|
|
2372
|
-
}, [t, T, e]), xe = re.length, ye = !C && (g || w),
|
|
2372
|
+
}, [t, T, e]), xe = re.length, ye = !C && (g || w), Fe = E && E.length > 0, we = !I && (!C && ye || Fe);
|
|
2373
2373
|
return /* @__PURE__ */ m(
|
|
2374
2374
|
"div",
|
|
2375
2375
|
{
|
|
2376
2376
|
className: S(
|
|
2377
2377
|
"flex w-full flex-col rounded-l-xl border-0",
|
|
2378
2378
|
C || I ? "rounded-r-xl" : "",
|
|
2379
|
-
|
|
2379
|
+
A
|
|
2380
2380
|
),
|
|
2381
2381
|
children: [
|
|
2382
2382
|
/* @__PURE__ */ m(
|
|
@@ -2444,8 +2444,8 @@ const ri = ({
|
|
|
2444
2444
|
itemCount: xe + (k ? 1 : 0),
|
|
2445
2445
|
itemSize: (V) => {
|
|
2446
2446
|
if (V === 0 && k) return yr;
|
|
2447
|
-
const
|
|
2448
|
-
return re[
|
|
2447
|
+
const F = k ? V - 1 : V;
|
|
2448
|
+
return re[F]?.parent === null ? ju : yr;
|
|
2449
2449
|
},
|
|
2450
2450
|
renderer: Y,
|
|
2451
2451
|
ref: D
|
|
@@ -2464,7 +2464,7 @@ const ri = ({
|
|
|
2464
2464
|
}
|
|
2465
2465
|
),
|
|
2466
2466
|
/* @__PURE__ */ n(
|
|
2467
|
-
|
|
2467
|
+
$u,
|
|
2468
2468
|
{
|
|
2469
2469
|
onSelectAll: d,
|
|
2470
2470
|
onClear: u,
|
|
@@ -2674,12 +2674,12 @@ const ri = ({
|
|
|
2674
2674
|
size: x = "sm",
|
|
2675
2675
|
open: N
|
|
2676
2676
|
}) => {
|
|
2677
|
-
const
|
|
2677
|
+
const A = he(
|
|
2678
2678
|
() => r.some(
|
|
2679
2679
|
(C) => C.subItems && C.subItems.length > 0
|
|
2680
2680
|
),
|
|
2681
2681
|
[r]
|
|
2682
|
-
), E = he(() =>
|
|
2682
|
+
), E = he(() => A ? r.flatMap(
|
|
2683
2683
|
(C) => (C.subItems ?? []).map((I) => ({
|
|
2684
2684
|
parent: C,
|
|
2685
2685
|
subItem: I
|
|
@@ -2692,7 +2692,7 @@ const ri = ({
|
|
|
2692
2692
|
subAvatar: C.avatar,
|
|
2693
2693
|
subDeactivated: C.deactivated
|
|
2694
2694
|
}
|
|
2695
|
-
})), [
|
|
2695
|
+
})), [A, r]), k = E.length === 0 ? void 0 : E.length === 1 ? E[0].subItem.subName : E.length + " " + t, y = E.length === 1 ? E[0].subItem.subName : void 0;
|
|
2696
2696
|
return /* @__PURE__ */ n(
|
|
2697
2697
|
lc,
|
|
2698
2698
|
{
|
|
@@ -2746,7 +2746,7 @@ const ri = ({
|
|
|
2746
2746
|
}
|
|
2747
2747
|
);
|
|
2748
2748
|
}, Tv = (e) => {
|
|
2749
|
-
const [t, r] =
|
|
2749
|
+
const [t, r] = $(
|
|
2750
2750
|
(e.alwaysOpen || e.defaultOpen) ?? !1
|
|
2751
2751
|
), o = (I) => {
|
|
2752
2752
|
r(I), e.onOpenChange?.(I);
|
|
@@ -2754,7 +2754,7 @@ const ri = ({
|
|
|
2754
2754
|
te(() => {
|
|
2755
2755
|
e.defaultOpen && t && e.onOpenChange?.(!0);
|
|
2756
2756
|
}, [e.defaultOpen]);
|
|
2757
|
-
const [i, a] =
|
|
2757
|
+
const [i, a] = $(e.entities), [s, l] = $(""), [c, u] = dc("", 300), d = he(
|
|
2758
2758
|
() => e.entities.some(
|
|
2759
2759
|
(I) => I.subItems && I.subItems.length > 0
|
|
2760
2760
|
),
|
|
@@ -2931,7 +2931,7 @@ const ri = ({
|
|
|
2931
2931
|
}
|
|
2932
2932
|
}), e.singleSelector || e.onSelect(I);
|
|
2933
2933
|
}
|
|
2934
|
-
const
|
|
2934
|
+
const A = (I) => {
|
|
2935
2935
|
l(I), u(I);
|
|
2936
2936
|
}, E = (I, z) => {
|
|
2937
2937
|
e.onItemExpandedChange(I.id, z), a(
|
|
@@ -2979,7 +2979,7 @@ const ri = ({
|
|
|
2979
2979
|
d,
|
|
2980
2980
|
a
|
|
2981
2981
|
]);
|
|
2982
|
-
const k = _(null), [y, C] =
|
|
2982
|
+
const k = _(null), [y, C] = $(0);
|
|
2983
2983
|
return ar(() => {
|
|
2984
2984
|
const I = () => {
|
|
2985
2985
|
k.current && C(k.current.offsetWidth);
|
|
@@ -3009,7 +3009,7 @@ const ri = ({
|
|
|
3009
3009
|
onSelectAll: N,
|
|
3010
3010
|
selectedEntities: e.selectedEntities ?? [],
|
|
3011
3011
|
search: s,
|
|
3012
|
-
onSearch:
|
|
3012
|
+
onSearch: A,
|
|
3013
3013
|
onToggleExpand: E,
|
|
3014
3014
|
searchPlaceholder: e.searchPlaceholder,
|
|
3015
3015
|
selectAllLabel: e.selectAllLabel,
|
|
@@ -3084,7 +3084,7 @@ const ri = ({
|
|
|
3084
3084
|
onSelectAll: N,
|
|
3085
3085
|
selectedEntities: e.selectedEntities ?? [],
|
|
3086
3086
|
search: s,
|
|
3087
|
-
onSearch:
|
|
3087
|
+
onSearch: A,
|
|
3088
3088
|
onToggleExpand: E,
|
|
3089
3089
|
searchPlaceholder: e.searchPlaceholder,
|
|
3090
3090
|
selectAllLabel: e.selectAllLabel,
|
|
@@ -3405,12 +3405,12 @@ const uf = ({
|
|
|
3405
3405
|
typeLabel: u,
|
|
3406
3406
|
date: d
|
|
3407
3407
|
}) => {
|
|
3408
|
-
const [f, h] =
|
|
3408
|
+
const [f, h] = $(s), p = _(null);
|
|
3409
3409
|
te(() => {
|
|
3410
3410
|
h(s);
|
|
3411
3411
|
}, [s]);
|
|
3412
|
-
const b = (
|
|
3413
|
-
h(
|
|
3412
|
+
const b = (A) => {
|
|
3413
|
+
h(A), l?.(A);
|
|
3414
3414
|
}, v = nt(), { canvasRef: g, handleMouseEnter: w, handleMouseLeave: x } = df(v), N = Zt({
|
|
3415
3415
|
emoji: sf[c],
|
|
3416
3416
|
size: "sm"
|
|
@@ -3458,7 +3458,7 @@ const uf = ({
|
|
|
3458
3458
|
/* @__PURE__ */ n("span", { className: "shrink-0 leading-none", children: N })
|
|
3459
3459
|
] })
|
|
3460
3460
|
] }),
|
|
3461
|
-
/* @__PURE__ */ n("div", { className: "shrink-0", children: /* @__PURE__ */ n(
|
|
3461
|
+
/* @__PURE__ */ n("div", { className: "shrink-0", children: /* @__PURE__ */ n(Hr, { date: d }) })
|
|
3462
3462
|
] })
|
|
3463
3463
|
]
|
|
3464
3464
|
}
|
|
@@ -3501,7 +3501,7 @@ function Ja({
|
|
|
3501
3501
|
onInteraction: i,
|
|
3502
3502
|
size: a = "md"
|
|
3503
3503
|
}) {
|
|
3504
|
-
const [s, l] =
|
|
3504
|
+
const [s, l] = $(r), [c, u] = $(t), d = _(null), { fireEmojiConfetti: f } = gc(), h = (v, g) => {
|
|
3505
3505
|
v.stopPropagation(), u(c + (s ? -1 : 1)), l(!s), i?.(g), s || f(g, d);
|
|
3506
3506
|
}, p = o?.map((v) => v.name).join(", ") || "", b = /* @__PURE__ */ n(
|
|
3507
3507
|
or,
|
|
@@ -3535,7 +3535,7 @@ function Ja({
|
|
|
3535
3535
|
)
|
|
3536
3536
|
}
|
|
3537
3537
|
);
|
|
3538
|
-
return p ? /* @__PURE__ */ n(
|
|
3538
|
+
return p ? /* @__PURE__ */ n(At, { label: p, children: b }) : b;
|
|
3539
3539
|
}
|
|
3540
3540
|
function hf({ items: e, onInteraction: t, locale: r, action: o }) {
|
|
3541
3541
|
return /* @__PURE__ */ m("div", { className: "flex flex-wrap gap-2", children: [
|
|
@@ -3563,7 +3563,7 @@ function hf({ items: e, onInteraction: t, locale: r, action: o }) {
|
|
|
3563
3563
|
))
|
|
3564
3564
|
] });
|
|
3565
3565
|
}
|
|
3566
|
-
const mf = We("Reactions", hf), Za =
|
|
3566
|
+
const mf = We("Reactions", hf), Za = Ae(function({ content: t, collapsed: r, id: o, className: i, tabIndex: a }, s) {
|
|
3567
3567
|
return /* @__PURE__ */ n(
|
|
3568
3568
|
xc,
|
|
3569
3569
|
{
|
|
@@ -3604,7 +3604,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
3604
3604
|
}
|
|
3605
3605
|
) });
|
|
3606
3606
|
return r.label || r.description ? /* @__PURE__ */ n(
|
|
3607
|
-
|
|
3607
|
+
At,
|
|
3608
3608
|
{
|
|
3609
3609
|
label: r.label,
|
|
3610
3610
|
description: r.description,
|
|
@@ -3614,7 +3614,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
3614
3614
|
) : o;
|
|
3615
3615
|
})
|
|
3616
3616
|
}
|
|
3617
|
-
), Yr =
|
|
3617
|
+
), Yr = Ae(
|
|
3618
3618
|
function({
|
|
3619
3619
|
label: t,
|
|
3620
3620
|
title: r,
|
|
@@ -3683,7 +3683,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
3683
3683
|
] }),
|
|
3684
3684
|
/* @__PURE__ */ m("div", { className: "flex flex-row items-center", children: [
|
|
3685
3685
|
u && /* @__PURE__ */ m(De, { children: [
|
|
3686
|
-
/* @__PURE__ */ n(
|
|
3686
|
+
/* @__PURE__ */ n(Hr, { date: u }),
|
|
3687
3687
|
/* @__PURE__ */ n(
|
|
3688
3688
|
ve,
|
|
3689
3689
|
{
|
|
@@ -3693,7 +3693,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
3693
3693
|
}
|
|
3694
3694
|
)
|
|
3695
3695
|
] }),
|
|
3696
|
-
d && /* @__PURE__ */ n(
|
|
3696
|
+
d && /* @__PURE__ */ n(Hr, { date: d })
|
|
3697
3697
|
] })
|
|
3698
3698
|
] }),
|
|
3699
3699
|
(l || c) && /* @__PURE__ */ m("div", { className: "flex flex-row items-center justify-between", children: [
|
|
@@ -3813,7 +3813,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
3813
3813
|
noReactionsButton: v = !1,
|
|
3814
3814
|
descriptionExpandable: g = !1
|
|
3815
3815
|
}) => {
|
|
3816
|
-
const w = Ur(), x = Ur(), N = _(null), [
|
|
3816
|
+
const w = Ur(), x = Ur(), N = _(null), [A, E] = $(null), [k, y] = $(!1), C = [u.views, u.comments].filter(Boolean).join(" · "), I = g && A?.id === e && A.description === a, z = !I, L = ha(o), D = () => {
|
|
3817
3817
|
s(e);
|
|
3818
3818
|
}, P = (T) => {
|
|
3819
3819
|
T.stopPropagation();
|
|
@@ -3936,7 +3936,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
3936
3936
|
Wt,
|
|
3937
3937
|
{
|
|
3938
3938
|
items: b,
|
|
3939
|
-
icon:
|
|
3939
|
+
icon: $r,
|
|
3940
3940
|
size: "sm"
|
|
3941
3941
|
}
|
|
3942
3942
|
)
|
|
@@ -3951,7 +3951,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
3951
3951
|
},
|
|
3952
3952
|
...b ?? []
|
|
3953
3953
|
],
|
|
3954
|
-
icon:
|
|
3954
|
+
icon: $r,
|
|
3955
3955
|
size: "sm"
|
|
3956
3956
|
}
|
|
3957
3957
|
) })
|
|
@@ -4081,7 +4081,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
4081
4081
|
/* @__PURE__ */ m("div", { className: "flex flex-1 flex-col", children: [
|
|
4082
4082
|
/* @__PURE__ */ m("div", { className: "flex flex-1 flex-row items-center gap-1", children: [
|
|
4083
4083
|
/* @__PURE__ */ n("span", { className: "truncate font-medium", children: `${e.firstName} ${e.lastName}` }),
|
|
4084
|
-
r.info && /* @__PURE__ */ n(
|
|
4084
|
+
r.info && /* @__PURE__ */ n(At, { label: r.info, children: /* @__PURE__ */ n(
|
|
4085
4085
|
ve,
|
|
4086
4086
|
{
|
|
4087
4087
|
icon: ia,
|
|
@@ -4131,7 +4131,7 @@ const pf = () => /* @__PURE__ */ m("div", { className: "flex flex-col justify-ar
|
|
|
4131
4131
|
] })
|
|
4132
4132
|
] });
|
|
4133
4133
|
rs.displayName = "OnePersonListItem";
|
|
4134
|
-
const
|
|
4134
|
+
const Av = tt(
|
|
4135
4135
|
We(
|
|
4136
4136
|
"OnePersonListItem",
|
|
4137
4137
|
Je(rs, Nf)
|
|
@@ -4196,7 +4196,7 @@ function Sf({
|
|
|
4196
4196
|
ai: o,
|
|
4197
4197
|
aiPromotion: i
|
|
4198
4198
|
}) {
|
|
4199
|
-
const a = o?.enabled ? Sc : i?.enabled ?
|
|
4199
|
+
const a = o?.enabled ? Sc : i?.enabled ? Fu : Rt, s = o?.enabled ? o : i?.enabled ? i : void 0;
|
|
4200
4200
|
return /* @__PURE__ */ n(a, { ...s, children: /* @__PURE__ */ n(
|
|
4201
4201
|
Ef,
|
|
4202
4202
|
{
|
|
@@ -4208,7 +4208,7 @@ function Sf({
|
|
|
4208
4208
|
}
|
|
4209
4209
|
) });
|
|
4210
4210
|
}
|
|
4211
|
-
const
|
|
4211
|
+
const Fv = We(
|
|
4212
4212
|
"ApplicationFrame",
|
|
4213
4213
|
If
|
|
4214
4214
|
), kf = ({ contentId: e }) => {
|
|
@@ -4255,18 +4255,18 @@ function Ef({
|
|
|
4255
4255
|
panelSide: w,
|
|
4256
4256
|
panelContent: x,
|
|
4257
4257
|
panelContentSide: N,
|
|
4258
|
-
restoringPanelContentId:
|
|
4259
|
-
} = ba(), E = f === "fullscreen", k = f === "canvas", { open: y } = sr(), C = g ? v : kc, I = w === "left", z = N !== w, L = !!(x ||
|
|
4258
|
+
restoringPanelContentId: A
|
|
4259
|
+
} = ba(), E = f === "fullscreen", k = f === "canvas", { open: y } = sr(), C = g ? v : kc, I = w === "left", z = N !== w, L = !!(x || A), P = (L ? N : w) === "left", R = _(E), B = E && !R.current, T = !E && R.current, [
|
|
4260
4260
|
M,
|
|
4261
4261
|
q
|
|
4262
|
-
] =
|
|
4262
|
+
] = $(!1);
|
|
4263
4263
|
te(() => {
|
|
4264
4264
|
!E && R.current && q(!0), R.current = E;
|
|
4265
4265
|
}, [E]);
|
|
4266
|
-
const re = E || M || T, Y = he(() => B ? { duration: 0.15, ease: "easeOut" } : T ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [B, T]), se =
|
|
4266
|
+
const re = E || M || T, Y = he(() => B ? { duration: 0.15, ease: "easeOut" } : T ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [B, T]), se = Hn(
|
|
4267
4267
|
`(max-width: ${mn.xl}px)`,
|
|
4268
4268
|
{ initializeWithValue: !0 }
|
|
4269
|
-
), ne =
|
|
4269
|
+
), ne = Hn(`(max-width: ${mn.md}px)`, {
|
|
4270
4270
|
initializeWithValue: !0
|
|
4271
4271
|
}), xe = d && !P;
|
|
4272
4272
|
return te(() => {
|
|
@@ -4389,7 +4389,7 @@ function Ef({
|
|
|
4389
4389
|
}
|
|
4390
4390
|
),
|
|
4391
4391
|
e?.enabled && (() => {
|
|
4392
|
-
const ye = (
|
|
4392
|
+
const ye = (Fe, we, V) => /* @__PURE__ */ n(
|
|
4393
4393
|
ue.div,
|
|
4394
4394
|
{
|
|
4395
4395
|
className: S(
|
|
@@ -4397,7 +4397,7 @@ function Ef({
|
|
|
4397
4397
|
"[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full",
|
|
4398
4398
|
ne ? "fixed inset-0 z-[30]" : S(
|
|
4399
4399
|
"absolute top-0 bottom-0",
|
|
4400
|
-
|
|
4400
|
+
Fe === "left" ? "left-0" : "right-0",
|
|
4401
4401
|
// In canvas mode the chat wrapper must sit above
|
|
4402
4402
|
// the CanvasPanel (z-[15]) so the ResizeHandle's
|
|
4403
4403
|
// hit-area (which extends a few pixels over the
|
|
@@ -4411,7 +4411,7 @@ function Ef({
|
|
|
4411
4411
|
// and never when the sidebar is active (locked), since
|
|
4412
4412
|
// the sidebar already provides the gap (same rule as the
|
|
4413
4413
|
// main content). md:-gated so mobile fullscreen is full-bleed.
|
|
4414
|
-
a !== "locked" && (
|
|
4414
|
+
a !== "locked" && (Fe === "left" || re) && "md:pl-1"
|
|
4415
4415
|
)
|
|
4416
4416
|
),
|
|
4417
4417
|
animate: {
|
|
@@ -4423,7 +4423,7 @@ function Ef({
|
|
|
4423
4423
|
},
|
|
4424
4424
|
children: V
|
|
4425
4425
|
},
|
|
4426
|
-
`panel-${
|
|
4426
|
+
`panel-${Fe}`
|
|
4427
4427
|
);
|
|
4428
4428
|
return /* @__PURE__ */ m(De, { children: [
|
|
4429
4429
|
ye(
|
|
@@ -4441,7 +4441,7 @@ function Ef({
|
|
|
4441
4441
|
]
|
|
4442
4442
|
}
|
|
4443
4443
|
),
|
|
4444
|
-
t?.enabled && /* @__PURE__ */ n(
|
|
4444
|
+
t?.enabled && /* @__PURE__ */ n(Au, {})
|
|
4445
4445
|
] }) })
|
|
4446
4446
|
] })
|
|
4447
4447
|
}
|
|
@@ -4456,7 +4456,7 @@ const os = ({
|
|
|
4456
4456
|
pulse: a,
|
|
4457
4457
|
onPulseClick: s
|
|
4458
4458
|
}) => {
|
|
4459
|
-
const l = pe(), [c, u] =
|
|
4459
|
+
const l = pe(), [c, u] = $(!a);
|
|
4460
4460
|
return /* @__PURE__ */ n("div", { className: "relative h-10 w-10", children: /* @__PURE__ */ n(Ve, { mode: "popLayout", initial: !!c, children: c ? /* @__PURE__ */ n(
|
|
4461
4461
|
ue.div,
|
|
4462
4462
|
{
|
|
@@ -4546,8 +4546,8 @@ const os = ({
|
|
|
4546
4546
|
children: /* @__PURE__ */ n(
|
|
4547
4547
|
ve,
|
|
4548
4548
|
{
|
|
4549
|
-
icon:
|
|
4550
|
-
color:
|
|
4549
|
+
icon: $d[a],
|
|
4550
|
+
color: Hd[a],
|
|
4551
4551
|
size: "sm"
|
|
4552
4552
|
}
|
|
4553
4553
|
)
|
|
@@ -4708,7 +4708,7 @@ function zf(e) {
|
|
|
4708
4708
|
onClick: i ? () => i(void 0) : void 0
|
|
4709
4709
|
}));
|
|
4710
4710
|
}
|
|
4711
|
-
function
|
|
4711
|
+
function Af({ label: e, options: t, hasNewUpdate: r }) {
|
|
4712
4712
|
return /* @__PURE__ */ n(
|
|
4713
4713
|
"div",
|
|
4714
4714
|
{
|
|
@@ -4735,7 +4735,7 @@ function Ff({ label: e, options: t, hasNewUpdate: r }) {
|
|
|
4735
4735
|
);
|
|
4736
4736
|
}
|
|
4737
4737
|
const Mv = tt(
|
|
4738
|
-
We("OmniButton",
|
|
4738
|
+
We("OmniButton", Af)
|
|
4739
4739
|
);
|
|
4740
4740
|
function as({ children: e, header: t, embedded: r = !1 }) {
|
|
4741
4741
|
return /* @__PURE__ */ m(
|
|
@@ -4753,7 +4753,7 @@ function as({ children: e, header: t, embedded: r = !1 }) {
|
|
|
4753
4753
|
);
|
|
4754
4754
|
}
|
|
4755
4755
|
as.displayName = "Page";
|
|
4756
|
-
const Ov = tt(We("Page", as)),
|
|
4756
|
+
const Ov = tt(We("Page", as)), Ff = (e) => e.reduce(
|
|
4757
4757
|
(t, r) => t + r.chats.filter((o) => (o.unreadCount ?? 0) > 0).length,
|
|
4758
4758
|
0
|
|
4759
4759
|
), ss = st(null), ls = st(null), hi = (e, t, r) => e.map((o) => o.id === t ? r(o) : o), En = (e, t) => e.map((r) => ({ ...r, chats: t(r.chats) })), Dv = ({
|
|
@@ -4761,7 +4761,7 @@ const Ov = tt(We("Page", as)), Af = (e) => e.reduce(
|
|
|
4761
4761
|
initialGroups: t = [],
|
|
4762
4762
|
initialActiveChatId: r
|
|
4763
4763
|
}) => {
|
|
4764
|
-
const [o, i] =
|
|
4764
|
+
const [o, i] = $(t), [a, s] = $(
|
|
4765
4765
|
r
|
|
4766
4766
|
), l = he(
|
|
4767
4767
|
() => ({
|
|
@@ -4803,7 +4803,7 @@ const Ov = tt(We("Page", as)), Af = (e) => e.reduce(
|
|
|
4803
4803
|
() => ({
|
|
4804
4804
|
groups: o,
|
|
4805
4805
|
activeChatId: a,
|
|
4806
|
-
unreadChatsCount:
|
|
4806
|
+
unreadChatsCount: Ff(o)
|
|
4807
4807
|
}),
|
|
4808
4808
|
[o, a]
|
|
4809
4809
|
);
|
|
@@ -4842,7 +4842,7 @@ const Ov = tt(We("Page", as)), Af = (e) => e.reduce(
|
|
|
4842
4842
|
isDragging: l,
|
|
4843
4843
|
wasDragging: c
|
|
4844
4844
|
}) => {
|
|
4845
|
-
const [u, d] =
|
|
4845
|
+
const [u, d] = $(t), f = nt(), h = a && !u, p = () => {
|
|
4846
4846
|
if (l || c?.current) return;
|
|
4847
4847
|
const b = !u;
|
|
4848
4848
|
d(b), o?.(b);
|
|
@@ -4958,7 +4958,7 @@ const Ov = tt(We("Page", as)), Af = (e) => e.reduce(
|
|
|
4958
4958
|
animateItems: l = !0,
|
|
4959
4959
|
className: c
|
|
4960
4960
|
}) => {
|
|
4961
|
-
const u = nt(), [d, f] =
|
|
4961
|
+
const u = nt(), [d, f] = $(""), p = r !== void 0 && d.trim().length > 0, b = e.some((x) => x.items.length > 0), v = o && !b, g = e.map((x) => ({
|
|
4962
4962
|
...x,
|
|
4963
4963
|
items: p ? x.items.filter((N) => Of(d, N.searchText ?? "")) : x.items
|
|
4964
4964
|
})).filter((x) => x.items.length > 0), w = p && b && g.length === 0;
|
|
@@ -5048,7 +5048,7 @@ const Ov = tt(We("Page", as)), Af = (e) => e.reduce(
|
|
|
5048
5048
|
)))
|
|
5049
5049
|
] });
|
|
5050
5050
|
};
|
|
5051
|
-
function
|
|
5051
|
+
function Hf({
|
|
5052
5052
|
title: e,
|
|
5053
5053
|
description: t,
|
|
5054
5054
|
actions: r,
|
|
@@ -5079,7 +5079,7 @@ function $f({
|
|
|
5079
5079
|
}
|
|
5080
5080
|
);
|
|
5081
5081
|
}
|
|
5082
|
-
const
|
|
5082
|
+
const $f = tt(Hf), ds = ({
|
|
5083
5083
|
className: e
|
|
5084
5084
|
}) => /* @__PURE__ */ m(
|
|
5085
5085
|
"div",
|
|
@@ -5205,7 +5205,7 @@ const Hf = tt($f), ds = ({
|
|
|
5205
5205
|
),
|
|
5206
5206
|
children: [
|
|
5207
5207
|
s && /* @__PURE__ */ n("div", { className: "flex h-5 w-5 items-center justify-center", children: /* @__PURE__ */ n(
|
|
5208
|
-
|
|
5208
|
+
Ac,
|
|
5209
5209
|
{
|
|
5210
5210
|
icon: s.icon,
|
|
5211
5211
|
size: "sm",
|
|
@@ -5247,7 +5247,7 @@ const Hf = tt($f), ds = ({
|
|
|
5247
5247
|
size: "sm",
|
|
5248
5248
|
hideLabel: !0,
|
|
5249
5249
|
label: e.pinned ? o.chat.unpin : o.chat.pin,
|
|
5250
|
-
icon: e.pinned ?
|
|
5250
|
+
icon: e.pinned ? Fc : Pc,
|
|
5251
5251
|
onClick: (l) => {
|
|
5252
5252
|
l.stopPropagation(), e.onTogglePin?.();
|
|
5253
5253
|
}
|
|
@@ -5301,7 +5301,7 @@ const Hf = tt($f), ds = ({
|
|
|
5301
5301
|
skeleton: /* @__PURE__ */ n(jf, {}),
|
|
5302
5302
|
noResultsLabel: s.chat.noResults,
|
|
5303
5303
|
emptyState: /* @__PURE__ */ n(
|
|
5304
|
-
|
|
5304
|
+
$f,
|
|
5305
5305
|
{
|
|
5306
5306
|
title: t.title,
|
|
5307
5307
|
description: t.description,
|
|
@@ -5356,7 +5356,7 @@ const qf = ({
|
|
|
5356
5356
|
children: o,
|
|
5357
5357
|
additionalOptions: i = []
|
|
5358
5358
|
}) => {
|
|
5359
|
-
const a = pe(), [s, l] =
|
|
5359
|
+
const a = pe(), [s, l] = $(!1), c = he(
|
|
5360
5360
|
() => [
|
|
5361
5361
|
...e.map((d) => ({
|
|
5362
5362
|
value: d.id,
|
|
@@ -5440,7 +5440,7 @@ const qf = ({
|
|
|
5440
5440
|
]
|
|
5441
5441
|
}
|
|
5442
5442
|
);
|
|
5443
|
-
function
|
|
5443
|
+
function Hv({
|
|
5444
5444
|
user: e,
|
|
5445
5445
|
options: t,
|
|
5446
5446
|
showActivityButton: r = !1,
|
|
@@ -5473,7 +5473,7 @@ function $v({
|
|
|
5473
5473
|
]
|
|
5474
5474
|
}
|
|
5475
5475
|
) }) }),
|
|
5476
|
-
r && /* @__PURE__ */ n(
|
|
5476
|
+
r && /* @__PURE__ */ n(At, { label: l.notifications, shortcut: o, children: /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
5477
5477
|
/* @__PURE__ */ n(
|
|
5478
5478
|
Me,
|
|
5479
5479
|
{
|
|
@@ -5565,7 +5565,7 @@ function Xf() {
|
|
|
5565
5565
|
}
|
|
5566
5566
|
);
|
|
5567
5567
|
}
|
|
5568
|
-
function
|
|
5568
|
+
function $v({
|
|
5569
5569
|
companies: e,
|
|
5570
5570
|
selected: t,
|
|
5571
5571
|
onChange: r,
|
|
@@ -5589,14 +5589,14 @@ function Hv({
|
|
|
5589
5589
|
] });
|
|
5590
5590
|
}
|
|
5591
5591
|
function Qf() {
|
|
5592
|
-
const [e, t] =
|
|
5592
|
+
const [e, t] = $(!1);
|
|
5593
5593
|
return te(() => {
|
|
5594
5594
|
t(window.matchMedia("(pointer: coarse)").matches);
|
|
5595
5595
|
}, []), e;
|
|
5596
5596
|
}
|
|
5597
5597
|
const fs = st(void 0);
|
|
5598
5598
|
function Jf({ children: e }) {
|
|
5599
|
-
const [t, r] =
|
|
5599
|
+
const [t, r] = $(!1), [o, i] = $(null);
|
|
5600
5600
|
return /* @__PURE__ */ n(
|
|
5601
5601
|
fs.Provider,
|
|
5602
5602
|
{
|
|
@@ -5658,13 +5658,13 @@ const Zf = ({
|
|
|
5658
5658
|
onReorderFinish: l,
|
|
5659
5659
|
isSortable: c = !0
|
|
5660
5660
|
}) => {
|
|
5661
|
-
const u = pe(), { isDragging: d, setIsDragging: f, draggedItemId: h, setDraggedItemId: p } = No(), { isActive: b } = so(), v = b(e.href, { exact: e.exactMatch }), g = _(!1), [w, x] =
|
|
5661
|
+
const u = pe(), { isDragging: d, setIsDragging: f, draggedItemId: h, setDraggedItemId: p } = No(), { isActive: b } = so(), v = b(e.href, { exact: e.exactMatch }), g = _(!1), [w, x] = $(!1), N = i === 0, A = i === a - 1, E = a === 1, k = he(() => {
|
|
5662
5662
|
const D = [];
|
|
5663
5663
|
return !E && !N && D.push({
|
|
5664
5664
|
label: u.actions.moveUp,
|
|
5665
5665
|
onClick: () => s?.(i, i - 1),
|
|
5666
5666
|
icon: Dc
|
|
5667
|
-
}), !E && !
|
|
5667
|
+
}), !E && !A && D.push({
|
|
5668
5668
|
label: u.actions.moveDown,
|
|
5669
5669
|
onClick: () => s?.(i, i + 1),
|
|
5670
5670
|
icon: Bc
|
|
@@ -5674,7 +5674,7 @@ const Zf = ({
|
|
|
5674
5674
|
icon: Wr,
|
|
5675
5675
|
critical: !0
|
|
5676
5676
|
}), D;
|
|
5677
|
-
}, [E, N,
|
|
5677
|
+
}, [E, N, A, u, s, i, o, e]), y = () => {
|
|
5678
5678
|
f(!0), x(!1), p(e.href || null), g.current = !0;
|
|
5679
5679
|
}, C = () => {
|
|
5680
5680
|
f(!1), p(null), l(), setTimeout(() => {
|
|
@@ -5741,7 +5741,7 @@ const Zf = ({
|
|
|
5741
5741
|
open: w,
|
|
5742
5742
|
onOpenChange: x,
|
|
5743
5743
|
items: k,
|
|
5744
|
-
children: /* @__PURE__ */ n("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ n(ve, { icon:
|
|
5744
|
+
children: /* @__PURE__ */ n("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ n(ve, { icon: $r, size: "sm" }) })
|
|
5745
5745
|
}
|
|
5746
5746
|
)
|
|
5747
5747
|
}
|
|
@@ -5848,9 +5848,9 @@ function Wv({
|
|
|
5848
5848
|
}) {
|
|
5849
5849
|
const a = _(null), s = e.filter(
|
|
5850
5850
|
(b) => b.isSortable === !1
|
|
5851
|
-
), [l, c] =
|
|
5851
|
+
), [l, c] = $(
|
|
5852
5852
|
e.filter((b) => b.isSortable !== !1)
|
|
5853
|
-
), [u, d] =
|
|
5853
|
+
), [u, d] = $(0), f = K((b) => {
|
|
5854
5854
|
c(b);
|
|
5855
5855
|
}, []), h = K(
|
|
5856
5856
|
(b) => {
|
|
@@ -5887,13 +5887,13 @@ function nh({
|
|
|
5887
5887
|
forceUpdate: c,
|
|
5888
5888
|
disableDragging: u = !1
|
|
5889
5889
|
}) {
|
|
5890
|
-
const d = pe(), { isDragging: f } = No(), h = e.some((R) => R.isRoot), p = e.filter((R) => !R.isRoot).length > 0, b = t.length > 0, v = _(null), [g, w] =
|
|
5890
|
+
const d = pe(), { isDragging: f } = No(), h = e.some((R) => R.isRoot), p = e.filter((R) => !R.isRoot).length > 0, b = t.length > 0, v = _(null), [g, w] = $(s), x = s.length > 0;
|
|
5891
5891
|
te(() => {
|
|
5892
5892
|
JSON.stringify(s) !== JSON.stringify(g) && w(s);
|
|
5893
5893
|
}, [s]);
|
|
5894
5894
|
const N = (R) => {
|
|
5895
5895
|
w(R);
|
|
5896
|
-
},
|
|
5896
|
+
}, A = K(
|
|
5897
5897
|
(R) => {
|
|
5898
5898
|
const B = g.filter((T) => T.href !== R.href);
|
|
5899
5899
|
w(B), l?.(B);
|
|
@@ -5906,7 +5906,7 @@ function nh({
|
|
|
5906
5906
|
T.splice(B, 0, M), w(T), l?.(T);
|
|
5907
5907
|
},
|
|
5908
5908
|
[g, l]
|
|
5909
|
-
), [k, y] =
|
|
5909
|
+
), [k, y] = $(!1), C = _(null);
|
|
5910
5910
|
te(() => {
|
|
5911
5911
|
t.length > 0 && !k && (r([...t]), y(!0));
|
|
5912
5912
|
}, [t, r, k]), te(() => {
|
|
@@ -5933,7 +5933,7 @@ function nh({
|
|
|
5933
5933
|
tooltip: (z[R.label] ?? []).length > 1 ? R.tooltip : void 0,
|
|
5934
5934
|
item: R,
|
|
5935
5935
|
dragConstraints: v,
|
|
5936
|
-
onRemove:
|
|
5936
|
+
onRemove: A,
|
|
5937
5937
|
index: B,
|
|
5938
5938
|
total: g.length,
|
|
5939
5939
|
onMove: E,
|
|
@@ -5947,7 +5947,7 @@ function nh({
|
|
|
5947
5947
|
x,
|
|
5948
5948
|
g,
|
|
5949
5949
|
z,
|
|
5950
|
-
|
|
5950
|
+
A,
|
|
5951
5951
|
E,
|
|
5952
5952
|
l,
|
|
5953
5953
|
u
|
|
@@ -6025,7 +6025,7 @@ function nh({
|
|
|
6025
6025
|
const rh = ({
|
|
6026
6026
|
tooltip: e,
|
|
6027
6027
|
children: t
|
|
6028
|
-
}) => e ? /* @__PURE__ */ n(
|
|
6028
|
+
}) => e ? /* @__PURE__ */ n(At, { description: e, children: t }) : t;
|
|
6029
6029
|
function jv({
|
|
6030
6030
|
onClick: e,
|
|
6031
6031
|
placeholder: t,
|
|
@@ -6156,7 +6156,7 @@ const Vv = tt(oh), ih = () => /* @__PURE__ */ n("div", { className: "absolute -r
|
|
|
6156
6156
|
probe: i = !1,
|
|
6157
6157
|
onClick: a
|
|
6158
6158
|
}) => {
|
|
6159
|
-
const s = nt(), l = s ? { duration: 0 } : { type: "spring", duration: 0.35, bounce: 0 }, c = e.variant === "ai", [u, d] =
|
|
6159
|
+
const s = nt(), l = s ? { duration: 0 } : { type: "spring", duration: 0.35, bounce: 0 }, c = e.variant === "ai", [u, d] = $(!1);
|
|
6160
6160
|
return te(() => {
|
|
6161
6161
|
if (!(c && t)) {
|
|
6162
6162
|
d(!1);
|
|
@@ -6180,8 +6180,8 @@ const Vv = tt(oh), ih = () => /* @__PURE__ */ n("div", { className: "absolute -r
|
|
|
6180
6180
|
// visible) and the icon-only tabs share the rest. The probe twin
|
|
6181
6181
|
// always hugs its natural width.
|
|
6182
6182
|
o && !i ? "flex-1" : "shrink-0",
|
|
6183
|
-
|
|
6184
|
-
|
|
6183
|
+
$c({ variant: "ghost" }),
|
|
6184
|
+
Hc({ size: "md" }),
|
|
6185
6185
|
Qe(),
|
|
6186
6186
|
// The sliding pill is the only selection affordance, so suppress the
|
|
6187
6187
|
// ghost variant's grey backgrounds entirely — on hover, press, and
|
|
@@ -6260,7 +6260,7 @@ const Vv = tt(oh), ih = () => /* @__PURE__ */ n("div", { className: "absolute -r
|
|
|
6260
6260
|
onTabChange: r,
|
|
6261
6261
|
persistKey: o
|
|
6262
6262
|
}) => {
|
|
6263
|
-
const i = pe(), a = _(null), s = _(null), [l, c] =
|
|
6263
|
+
const i = pe(), a = _(null), s = _(null), [l, c] = $(!1), u = o ? `f0-sidebar-tab:${o}` : null, d = _(!1);
|
|
6264
6264
|
te(() => {
|
|
6265
6265
|
if (!u || d.current) return;
|
|
6266
6266
|
d.current = !0;
|
|
@@ -6383,7 +6383,7 @@ const dh = ({
|
|
|
6383
6383
|
/* @__PURE__ */ n("p", { className: "font-medium text-f1-foreground", children: e }),
|
|
6384
6384
|
/* @__PURE__ */ n("p", { className: "text-f1-foreground-secondary", children: a })
|
|
6385
6385
|
] }),
|
|
6386
|
-
/* @__PURE__ */ n(
|
|
6386
|
+
/* @__PURE__ */ n($n, { text: s, variant: ah[r] })
|
|
6387
6387
|
] }),
|
|
6388
6388
|
/* @__PURE__ */ n("div", { className: "w-full", children: /* @__PURE__ */ n(uo, { avatars: l, layout: "fill", type: "person", size: "md" }) })
|
|
6389
6389
|
] });
|
|
@@ -6471,10 +6471,10 @@ function Kv(e) {
|
|
|
6471
6471
|
currentFilters: f,
|
|
6472
6472
|
navigationMode: h = "url",
|
|
6473
6473
|
deps: p = []
|
|
6474
|
-
} = e, b = jc(), v = jd(t, p), [g, w] =
|
|
6474
|
+
} = e, b = jc(), v = jd(t, p), [g, w] = $(null), x = g?.key === r && g.settled, N = _(v);
|
|
6475
6475
|
N.current = v;
|
|
6476
|
-
const
|
|
6477
|
-
|
|
6476
|
+
const A = _(b);
|
|
6477
|
+
A.current = b;
|
|
6478
6478
|
const E = _(null), k = f === void 0 ? null : JSON.stringify(f), y = _(f);
|
|
6479
6479
|
y.current = f;
|
|
6480
6480
|
const C = _(null), I = () => {
|
|
@@ -6491,7 +6491,7 @@ function Kv(e) {
|
|
|
6491
6491
|
return (async () => {
|
|
6492
6492
|
let fe = null;
|
|
6493
6493
|
try {
|
|
6494
|
-
const Se = await
|
|
6494
|
+
const Se = await A.current.get(
|
|
6495
6495
|
r
|
|
6496
6496
|
);
|
|
6497
6497
|
Se && !U && (fe = yi(
|
|
@@ -6511,7 +6511,7 @@ function Kv(e) {
|
|
|
6511
6511
|
if (!(!u || !d))
|
|
6512
6512
|
return Vc(r, async () => {
|
|
6513
6513
|
try {
|
|
6514
|
-
const U = await
|
|
6514
|
+
const U = await A.current.get(
|
|
6515
6515
|
r
|
|
6516
6516
|
);
|
|
6517
6517
|
if (!U) return;
|
|
@@ -6580,7 +6580,7 @@ function Kv(e) {
|
|
|
6580
6580
|
order: v.currentGrouping.order ?? "asc"
|
|
6581
6581
|
}
|
|
6582
6582
|
] : []
|
|
6583
|
-
], { neighbors: ye, isSupported:
|
|
6583
|
+
], { neighbors: ye, isSupported: Fe } = Ud({
|
|
6584
6584
|
dataAdapter: v.dataAdapter,
|
|
6585
6585
|
id: q,
|
|
6586
6586
|
filters: v.currentFilters,
|
|
@@ -6626,13 +6626,13 @@ function Kv(e) {
|
|
|
6626
6626
|
re,
|
|
6627
6627
|
T,
|
|
6628
6628
|
we
|
|
6629
|
-
]),
|
|
6629
|
+
]), F = Iu(V, {
|
|
6630
6630
|
getItemTitle: c,
|
|
6631
6631
|
mode: h
|
|
6632
|
-
}), j = u && x &&
|
|
6632
|
+
}), j = u && x && Fe && ne && ye === null, G = _(null), ae = F ?? (j ? G.current : null);
|
|
6633
6633
|
return te(() => {
|
|
6634
|
-
|
|
6635
|
-
}, [
|
|
6634
|
+
F !== null && (G.current = F);
|
|
6635
|
+
}, [F]), {
|
|
6636
6636
|
...V,
|
|
6637
6637
|
isNavigating: V.isNavigating || j,
|
|
6638
6638
|
isReady: x && !B,
|
|
@@ -6725,7 +6725,7 @@ function gh({
|
|
|
6725
6725
|
searchMembers: a,
|
|
6726
6726
|
everyoneLabel: s
|
|
6727
6727
|
}) {
|
|
6728
|
-
const [l, c] =
|
|
6728
|
+
const [l, c] = $(!1), [u, d] = $(""), [f, h] = $([]), [p, b] = $(!1), [v, g] = $(0), [w, x] = $([]), N = _(-1), A = _(null), E = _(0), k = _(-1), y = K(
|
|
6729
6729
|
(T) => !!s && (T.length === 0 || s.toLowerCase().startsWith(T.toLowerCase())),
|
|
6730
6730
|
[s]
|
|
6731
6731
|
), C = he(() => {
|
|
@@ -6745,9 +6745,9 @@ function gh({
|
|
|
6745
6745
|
return;
|
|
6746
6746
|
}
|
|
6747
6747
|
if (T.atIndex === k.current) return;
|
|
6748
|
-
N.current = T.atIndex, d(T.query), c(!0), g(0), b(!0),
|
|
6748
|
+
N.current = T.atIndex, d(T.query), c(!0), g(0), b(!0), A.current && clearTimeout(A.current);
|
|
6749
6749
|
const M = ++E.current;
|
|
6750
|
-
return
|
|
6750
|
+
return A.current = setTimeout(() => {
|
|
6751
6751
|
a(T.query).then((q) => {
|
|
6752
6752
|
M === E.current && (h(q), g(0), q.length === 0 && !y(T.query) && T.query.length > 0 && (k.current = T.atIndex, c(!1)));
|
|
6753
6753
|
}).catch(() => {
|
|
@@ -6756,7 +6756,7 @@ function gh({
|
|
|
6756
6756
|
M === E.current && b(!1);
|
|
6757
6757
|
});
|
|
6758
6758
|
}, ph), () => {
|
|
6759
|
-
|
|
6759
|
+
A.current && clearTimeout(A.current);
|
|
6760
6760
|
};
|
|
6761
6761
|
}, [
|
|
6762
6762
|
e,
|
|
@@ -6774,14 +6774,14 @@ function gh({
|
|
|
6774
6774
|
if (M === -1) return;
|
|
6775
6775
|
const q = T.kind === "everyone" ? T.label : T.user.name, re = T.kind === "everyone" ? un : T.user.id, Y = e.slice(0, M), se = e.slice(r), ne = `@${q} `, xe = Y + ne + se, ye = Y.length + ne.length;
|
|
6776
6776
|
t(xe);
|
|
6777
|
-
const
|
|
6777
|
+
const Fe = T.kind === "everyone" ? { id: re, name: q } : {
|
|
6778
6778
|
id: re,
|
|
6779
6779
|
name: q,
|
|
6780
6780
|
avatar: T.user.avatar,
|
|
6781
6781
|
subtitle: T.user.subtitle,
|
|
6782
6782
|
profileHref: T.user.profileHref
|
|
6783
6783
|
};
|
|
6784
|
-
x((we) => [...we.filter((
|
|
6784
|
+
x((we) => [...we.filter((F) => !(F.id === re && F.name === q)), Fe]), I(), requestAnimationFrame(() => {
|
|
6785
6785
|
const we = o.current;
|
|
6786
6786
|
we && (we.focus(), we.setSelectionRange(ye, ye));
|
|
6787
6787
|
});
|
|
@@ -6894,7 +6894,7 @@ function vh(e, t, r) {
|
|
|
6894
6894
|
}
|
|
6895
6895
|
const xh = 4e3;
|
|
6896
6896
|
function yh(e = xh) {
|
|
6897
|
-
const [t, r] =
|
|
6897
|
+
const [t, r] = $(null), o = _(null), i = K(
|
|
6898
6898
|
(a) => {
|
|
6899
6899
|
o.current && clearTimeout(o.current), r(a), o.current = setTimeout(() => {
|
|
6900
6900
|
r(null), o.current = null;
|
|
@@ -7006,9 +7006,9 @@ function dr() {
|
|
|
7006
7006
|
const Th = 200, Rh = 1600, gs = st(null), bs = st(null), vs = st(null), xs = st(null), ys = st(null), ws = st(null), Ns = st(null), Cs = st(null), Eh = ({
|
|
7007
7007
|
children: e
|
|
7008
7008
|
}) => {
|
|
7009
|
-
const { messages: t, searchMessages: r, loadMessageContext: o } = rn(), [i, a] =
|
|
7009
|
+
const { messages: t, searchMessages: r, loadMessageContext: o } = rn(), [i, a] = $(null), [s, l] = $(
|
|
7010
7010
|
null
|
|
7011
|
-
), [c, u] =
|
|
7011
|
+
), [c, u] = $(null), d = _(null), f = _(null), h = _(null), [p, b] = $(null), [v, g] = $(null), [w, x] = $(!1), [N, A] = $(""), [E, k] = $([]), [y, C] = $(-1), [I, z] = $(!1), L = _(t);
|
|
7012
7012
|
L.current = t;
|
|
7013
7013
|
const D = _(r);
|
|
7014
7014
|
D.current = r;
|
|
@@ -7040,7 +7040,7 @@ const Th = 200, Rh = 1600, gs = st(null), bs = st(null), vs = st(null), xs = st(
|
|
|
7040
7040
|
), ye = K((le) => {
|
|
7041
7041
|
const Ee = hs(le);
|
|
7042
7042
|
Ee && g({ file: le, kind: Ee });
|
|
7043
|
-
}, []),
|
|
7043
|
+
}, []), Fe = K(() => g(null), []), we = K((le, Ee) => {
|
|
7044
7044
|
d.current?.(le), u(le), h.current && clearTimeout(h.current), Ee || (h.current = setTimeout(
|
|
7045
7045
|
() => u(null),
|
|
7046
7046
|
Rh
|
|
@@ -7051,7 +7051,7 @@ const Th = 200, Rh = 1600, gs = st(null), bs = st(null), vs = st(null), xs = st(
|
|
|
7051
7051
|
!Ee && Pe ? Pe(le).then(() => we(le, !1)) : we(le, !1);
|
|
7052
7052
|
},
|
|
7053
7053
|
[we]
|
|
7054
|
-
),
|
|
7054
|
+
), F = K(
|
|
7055
7055
|
(le, Ee = R.current) => {
|
|
7056
7056
|
const Pe = Ee[le];
|
|
7057
7057
|
if (Pe == null) return;
|
|
@@ -7071,7 +7071,7 @@ const Th = 200, Rh = 1600, gs = st(null), bs = st(null), vs = st(null), xs = st(
|
|
|
7071
7071
|
z(!0);
|
|
7072
7072
|
const Ee = ++T.current, Pe = setTimeout(() => {
|
|
7073
7073
|
const ot = (O) => {
|
|
7074
|
-
Ee === T.current && (k(O), z(!1), O.length > 0 ?
|
|
7074
|
+
Ee === T.current && (k(O), z(!1), O.length > 0 ? F(O.length - 1, O) : (C(-1), u(null)));
|
|
7075
7075
|
}, ee = D.current;
|
|
7076
7076
|
if (ee)
|
|
7077
7077
|
ee(le).then((O) => ot(O.map((X) => X.id)));
|
|
@@ -7087,16 +7087,16 @@ const Th = 200, Rh = 1600, gs = st(null), bs = st(null), vs = st(null), xs = st(
|
|
|
7087
7087
|
}
|
|
7088
7088
|
}, Th);
|
|
7089
7089
|
return () => clearTimeout(Pe);
|
|
7090
|
-
}, [N, w,
|
|
7090
|
+
}, [N, w, F]);
|
|
7091
7091
|
const j = K(() => x(!0), []), G = K(() => {
|
|
7092
|
-
T.current++, x(!1),
|
|
7092
|
+
T.current++, x(!1), A(""), k([]), C(-1), z(!1), u(null);
|
|
7093
7093
|
}, []), ae = K(() => {
|
|
7094
7094
|
const le = R.current;
|
|
7095
|
-
le.length !== 0 &&
|
|
7096
|
-
}, [
|
|
7095
|
+
le.length !== 0 && F((B.current + 1) % le.length, le);
|
|
7096
|
+
}, [F]), U = K(() => {
|
|
7097
7097
|
const le = R.current;
|
|
7098
|
-
le.length !== 0 &&
|
|
7099
|
-
}, [
|
|
7098
|
+
le.length !== 0 && F((B.current - 1 + le.length) % le.length, le);
|
|
7099
|
+
}, [F]), Z = E.length, fe = y >= 0 ? y + 1 : 0, Se = he(
|
|
7100
7100
|
() => ({ jumpToMessage: V, registerScrollToMessage: q }),
|
|
7101
7101
|
[V, q]
|
|
7102
7102
|
), ke = he(
|
|
@@ -7120,15 +7120,15 @@ const Th = 200, Rh = 1600, gs = st(null), bs = st(null), vs = st(null), xs = st(
|
|
|
7120
7120
|
}),
|
|
7121
7121
|
[p, se, ne, xe]
|
|
7122
7122
|
), Ze = he(
|
|
7123
|
-
() => ({ documentPreview: v, openDocumentPreview: ye, closeDocumentPreview:
|
|
7124
|
-
[v, ye,
|
|
7123
|
+
() => ({ documentPreview: v, openDocumentPreview: ye, closeDocumentPreview: Fe }),
|
|
7124
|
+
[v, ye, Fe]
|
|
7125
7125
|
), rt = he(
|
|
7126
7126
|
() => ({
|
|
7127
7127
|
searchOpen: w,
|
|
7128
7128
|
openSearch: j,
|
|
7129
7129
|
closeSearch: G,
|
|
7130
7130
|
searchQuery: N,
|
|
7131
|
-
setSearchQuery:
|
|
7131
|
+
setSearchQuery: A,
|
|
7132
7132
|
searching: I,
|
|
7133
7133
|
matchCurrent: fe,
|
|
7134
7134
|
matchTotal: Z,
|
|
@@ -7155,13 +7155,13 @@ const Th = 200, Rh = 1600, gs = st(null), bs = st(null), vs = st(null), xs = st(
|
|
|
7155
7155
|
}
|
|
7156
7156
|
) }) }) }) }) }) });
|
|
7157
7157
|
};
|
|
7158
|
-
function
|
|
7158
|
+
function Ft(e, t) {
|
|
7159
7159
|
const r = Nt(e);
|
|
7160
7160
|
if (!r)
|
|
7161
7161
|
throw new Error(`${t} must be used within a ChatUIProvider`);
|
|
7162
7162
|
return r;
|
|
7163
7163
|
}
|
|
7164
|
-
const Is = () =>
|
|
7164
|
+
const Is = () => Ft(gs, "useChatJump"), Lh = () => Ft(bs, "useChatHighlightedId"), Ss = () => Ft(vs, "useChatReply"), ks = () => Ft(xs, "useChatEdit"), Ts = () => Ft(ys, "useChatDrop"), Rs = () => Ft(ws, "useChatImagePreview"), Es = () => Ft(Ns, "useChatDocumentPreview"), Ls = () => Ft(Cs, "useChatSearch"), zh = 35, Ah = 210, Fh = (e) => Math.min(e * zh, Ah) / 1e3, xt = [
|
|
7165
7165
|
0.05,
|
|
7166
7166
|
0.7,
|
|
7167
7167
|
0.1,
|
|
@@ -7169,14 +7169,14 @@ const Is = () => At(gs, "useChatJump"), Lh = () => At(bs, "useChatHighlightedId"
|
|
|
7169
7169
|
], Ni = (e) => ({
|
|
7170
7170
|
duration: 0.14,
|
|
7171
7171
|
ease: xt,
|
|
7172
|
-
delay:
|
|
7172
|
+
delay: Fh(e)
|
|
7173
7173
|
}), Co = {
|
|
7174
7174
|
duration: 0.16,
|
|
7175
7175
|
ease: xt
|
|
7176
7176
|
}, zs = {
|
|
7177
7177
|
duration: 0.12,
|
|
7178
7178
|
ease: "easeIn"
|
|
7179
|
-
},
|
|
7179
|
+
}, As = {
|
|
7180
7180
|
duration: 0.15,
|
|
7181
7181
|
ease: xt
|
|
7182
7182
|
}, Ph = (e) => e?.find((t) => t.kind === "image"), Mh = (e) => {
|
|
@@ -7247,7 +7247,7 @@ const Is = () => At(gs, "useChatJump"), Lh = () => At(bs, "useChatHighlightedId"
|
|
|
7247
7247
|
) })
|
|
7248
7248
|
] }) });
|
|
7249
7249
|
};
|
|
7250
|
-
function
|
|
7250
|
+
function Hh({
|
|
7251
7251
|
isOpen: e,
|
|
7252
7252
|
results: t,
|
|
7253
7253
|
isLoading: r,
|
|
@@ -7345,7 +7345,7 @@ function $h({
|
|
|
7345
7345
|
}
|
|
7346
7346
|
);
|
|
7347
7347
|
}
|
|
7348
|
-
const
|
|
7348
|
+
const $h = {
|
|
7349
7349
|
viridian: "text-[hsl(theme(colors.viridian.70))] dark:text-[color-mix(in_srgb,hsl(theme(colors.viridian.50)),white_35%)]",
|
|
7350
7350
|
malibu: "text-[hsl(theme(colors.malibu.70))] dark:text-[color-mix(in_srgb,hsl(theme(colors.malibu.50)),white_35%)]",
|
|
7351
7351
|
yellow: "text-[hsl(theme(colors.yellow.70))] dark:text-[color-mix(in_srgb,hsl(theme(colors.yellow.50)),white_35%)]",
|
|
@@ -7357,7 +7357,7 @@ const Hh = {
|
|
|
7357
7357
|
flubber: "text-[hsl(theme(colors.flubber.70))] dark:text-[color-mix(in_srgb,hsl(theme(colors.flubber.50)),white_35%)]",
|
|
7358
7358
|
indigo: "text-[hsl(theme(colors.indigo.70))] dark:text-[color-mix(in_srgb,hsl(theme(colors.indigo.50)),white_35%)]",
|
|
7359
7359
|
camel: "text-[hsl(theme(colors.camel.70))] dark:text-[color-mix(in_srgb,hsl(theme(colors.camel.50)),white_35%)]"
|
|
7360
|
-
}, Wh = (e) => e.avatar?.type === "person" ? `${e.avatar.firstName}${e.avatar.lastName ?? ""}` : e.name, ko = (e) =>
|
|
7360
|
+
}, Wh = (e) => e.avatar?.type === "person" ? `${e.avatar.firstName}${e.avatar.lastName ?? ""}` : e.name, ko = (e) => $h[pa(Wh(e)) ?? "viridian"], jh = ({
|
|
7361
7361
|
message: e,
|
|
7362
7362
|
onRemove: t
|
|
7363
7363
|
}) => {
|
|
@@ -7427,8 +7427,8 @@ const Hh = {
|
|
|
7427
7427
|
}
|
|
7428
7428
|
)
|
|
7429
7429
|
] });
|
|
7430
|
-
}, Vh = /(https?:\/\/[^\s]+)/g,
|
|
7431
|
-
const t = Ca.parse(e, { buildUrl:
|
|
7430
|
+
}, Vh = /(https?:\/\/[^\s]+)/g, Fs = (e) => `https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/${e}.svg`, Ci = (e) => {
|
|
7431
|
+
const t = Ca.parse(e, { buildUrl: Fs });
|
|
7432
7432
|
if (t.length === 0) return e;
|
|
7433
7433
|
const r = [];
|
|
7434
7434
|
let o = 0;
|
|
@@ -7513,7 +7513,7 @@ const Hh = {
|
|
|
7513
7513
|
/* @__PURE__ */ n(Rt, { children: Ln(o.slice(u), r) }, "t-last")
|
|
7514
7514
|
), c;
|
|
7515
7515
|
}, Cr = (e) => {
|
|
7516
|
-
const t = Ca.parse(e, { buildUrl:
|
|
7516
|
+
const t = Ca.parse(e, { buildUrl: Fs });
|
|
7517
7517
|
if (t.length === 0) return e;
|
|
7518
7518
|
const r = [];
|
|
7519
7519
|
let o = 0;
|
|
@@ -7628,7 +7628,7 @@ const Hh = {
|
|
|
7628
7628
|
onLoad: t,
|
|
7629
7629
|
...r
|
|
7630
7630
|
}) => {
|
|
7631
|
-
const o = nt(), [i, a] =
|
|
7631
|
+
const o = nt(), [i, a] = $(!1);
|
|
7632
7632
|
return /* @__PURE__ */ n(
|
|
7633
7633
|
"img",
|
|
7634
7634
|
{
|
|
@@ -7659,9 +7659,9 @@ const Hh = {
|
|
|
7659
7659
|
searchMembers: u,
|
|
7660
7660
|
currentUserId: d,
|
|
7661
7661
|
capabilities: f
|
|
7662
|
-
} = rn(), h = !!a && f?.canUpload !== !1, { replyTo: p, setReplyTo: b } = Ss(), { editingMessage: v, setEditingMessage: g } = ks(), { registerFileDropHandler: w } = Ts(), x = nt(), [N,
|
|
7662
|
+
} = rn(), h = !!a && f?.canUpload !== !1, { replyTo: p, setReplyTo: b } = Ss(), { editingMessage: v, setEditingMessage: g } = ks(), { registerFileDropHandler: w } = Ts(), x = nt(), [N, A] = $(""), [E, k] = $(0), [y, C] = $([]), I = _(null), z = _(null), L = _(null), P = gh({
|
|
7663
7663
|
inputValue: N,
|
|
7664
|
-
setInputValue:
|
|
7664
|
+
setInputValue: A,
|
|
7665
7665
|
cursorPosition: E,
|
|
7666
7666
|
textareaRef: I,
|
|
7667
7667
|
enabled: !!u,
|
|
@@ -7692,12 +7692,12 @@ const Hh = {
|
|
|
7692
7692
|
}, [y]);
|
|
7693
7693
|
const ne = _(""), xe = K((O) => {
|
|
7694
7694
|
const X = ne.current, be = X ? `${X} ${O}` : O;
|
|
7695
|
-
|
|
7695
|
+
A(be), k(be.length);
|
|
7696
7696
|
}, []), ye = {
|
|
7697
7697
|
"permission-denied": e.chat.micPermissionDenied,
|
|
7698
7698
|
"device-error": e.chat.micError,
|
|
7699
7699
|
"transcription-failed": e.chat.transcriptionError
|
|
7700
|
-
},
|
|
7700
|
+
}, Fe = h, [we, V] = $(!1), F = K(
|
|
7701
7701
|
async (O, X) => {
|
|
7702
7702
|
if (!a) return;
|
|
7703
7703
|
V(!0);
|
|
@@ -7728,14 +7728,14 @@ const Hh = {
|
|
|
7728
7728
|
onPartial: xe,
|
|
7729
7729
|
onFinal: xe,
|
|
7730
7730
|
onError: (O) => Y(ye[O]),
|
|
7731
|
-
onAudio:
|
|
7732
|
-
|
|
7731
|
+
onAudio: Fe ? (O, X) => {
|
|
7732
|
+
F(O, X);
|
|
7733
7733
|
} : void 0
|
|
7734
|
-
}), G = j.status === "transcribing", ae = j.status === "recording", U = (
|
|
7734
|
+
}), G = j.status === "transcribing", ae = j.status === "recording", U = (Fe || !!s) && j.isSupported, Z = (N.trim().length > 0 || y.length > 0) && !G && !M && !we, [fe, Se] = $(0), ke = _(Z);
|
|
7735
7735
|
ke.current !== Z && (ke.current = Z, Z && Se((O) => O + 1));
|
|
7736
7736
|
const je = K(
|
|
7737
7737
|
(O, X) => {
|
|
7738
|
-
|
|
7738
|
+
A(O), k(X), o(), O.trim().length === 0 && i?.();
|
|
7739
7739
|
},
|
|
7740
7740
|
[o, i]
|
|
7741
7741
|
);
|
|
@@ -7795,11 +7795,11 @@ const Hh = {
|
|
|
7795
7795
|
});
|
|
7796
7796
|
}, [w, ut]);
|
|
7797
7797
|
const Ze = v !== null, rt = K(() => {
|
|
7798
|
-
g(null), P.close(), P.seedMentions([]),
|
|
7798
|
+
g(null), P.close(), P.seedMentions([]), A(""), k(0), C([]);
|
|
7799
7799
|
}, [g, P.close, P.seedMentions]);
|
|
7800
7800
|
te(() => {
|
|
7801
7801
|
if (!v) return;
|
|
7802
|
-
|
|
7802
|
+
A(v.body), k(v.body.length), C(
|
|
7803
7803
|
(v.attachments ?? []).map((X) => ({
|
|
7804
7804
|
id: `att-${T.current++}`,
|
|
7805
7805
|
status: "ready",
|
|
@@ -7851,7 +7851,7 @@ const Hh = {
|
|
|
7851
7851
|
replyToId: p?.id,
|
|
7852
7852
|
mentions: X.length > 0 ? X : void 0,
|
|
7853
7853
|
mentionedEveryone: be || void 0
|
|
7854
|
-
}), P.close(),
|
|
7854
|
+
}), P.close(), A(""), k(0), C([]), b(null);
|
|
7855
7855
|
}, [
|
|
7856
7856
|
y,
|
|
7857
7857
|
Z,
|
|
@@ -7867,7 +7867,7 @@ const Hh = {
|
|
|
7867
7867
|
]), Ee = K(
|
|
7868
7868
|
(O) => {
|
|
7869
7869
|
const X = I.current, be = X?.selectionStart ?? X?.value.length ?? 0, Le = X?.selectionEnd ?? X?.value.length ?? 0, et = be + O.length;
|
|
7870
|
-
|
|
7870
|
+
A((qe) => qe.slice(0, be) + O + qe.slice(Le)), k(et), o(), requestAnimationFrame(() => {
|
|
7871
7871
|
const qe = I.current;
|
|
7872
7872
|
qe && (qe.focus(), qe.setSelectionRange(et, et));
|
|
7873
7873
|
});
|
|
@@ -7889,7 +7889,7 @@ const Hh = {
|
|
|
7889
7889
|
}, [j, N]), ee = e.chat.placeholder;
|
|
7890
7890
|
return /* @__PURE__ */ n("div", { className: "shrink-0 p-4 pt-0", children: /* @__PURE__ */ n("div", { className: "mx-auto w-full max-w-content", children: /* @__PURE__ */ m("div", { className: "relative flex flex-col rounded-lg border border-solid border-f1-border bg-f1-background", children: [
|
|
7891
7891
|
/* @__PURE__ */ n(
|
|
7892
|
-
|
|
7892
|
+
Hh,
|
|
7893
7893
|
{
|
|
7894
7894
|
isOpen: P.isOpen,
|
|
7895
7895
|
results: P.results,
|
|
@@ -7995,7 +7995,7 @@ const Hh = {
|
|
|
7995
7995
|
},
|
|
7996
7996
|
transition: {
|
|
7997
7997
|
...Co,
|
|
7998
|
-
layout:
|
|
7998
|
+
layout: As
|
|
7999
7999
|
},
|
|
8000
8000
|
children: /* @__PURE__ */ n(
|
|
8001
8001
|
ue.div,
|
|
@@ -8119,7 +8119,7 @@ const Hh = {
|
|
|
8119
8119
|
variant: "default",
|
|
8120
8120
|
size: "md",
|
|
8121
8121
|
hideLabel: !0,
|
|
8122
|
-
label:
|
|
8122
|
+
label: Fe ? e.chat.sendVoiceNote : e.chat.stopRecording,
|
|
8123
8123
|
icon: Wn,
|
|
8124
8124
|
onClick: j.stop
|
|
8125
8125
|
}
|
|
@@ -8322,7 +8322,7 @@ const Hh = {
|
|
|
8322
8322
|
onClose: o,
|
|
8323
8323
|
actions: i
|
|
8324
8324
|
}) => {
|
|
8325
|
-
const a = pe(), { searchOpen: s, openSearch: l } = Ls(), c =
|
|
8325
|
+
const a = pe(), { searchOpen: s, openSearch: l } = Ls(), c = Hn(`(max-width: ${mn.md}px)`, {
|
|
8326
8326
|
initializeWithValue: !0
|
|
8327
8327
|
}), u = e.type === "dm" && e.presence !== void 0, d = (i ?? []).filter(
|
|
8328
8328
|
(g) => !g.channelTypes || g.channelTypes.includes(e.type)
|
|
@@ -8412,11 +8412,11 @@ const Hh = {
|
|
|
8412
8412
|
] })
|
|
8413
8413
|
] }) });
|
|
8414
8414
|
}, Jh = tn(
|
|
8415
|
-
() => import("./index-
|
|
8415
|
+
() => import("./index-CMLPPa_1.js").then((e) => e.i).then((e) => ({
|
|
8416
8416
|
default: e.F0PdfViewer
|
|
8417
8417
|
}))
|
|
8418
8418
|
), Zh = () => {
|
|
8419
|
-
const e = pe(), { documentPreview: t, closeDocumentPreview: r } = Es(), [o, i] =
|
|
8419
|
+
const e = pe(), { documentPreview: t, closeDocumentPreview: r } = Es(), [o, i] = $(null);
|
|
8420
8420
|
te(() => i(document.body), []);
|
|
8421
8421
|
const a = t?.file, s = t?.kind;
|
|
8422
8422
|
return /* @__PURE__ */ n(
|
|
@@ -8485,7 +8485,7 @@ const Hh = {
|
|
|
8485
8485
|
onClick: r
|
|
8486
8486
|
}
|
|
8487
8487
|
) }), em = () => {
|
|
8488
|
-
const e = pe(), t = nt(), { imagePreview: r, closeImagePreview: o, setImagePreviewIndex: i } = Rs(), [a, s] =
|
|
8488
|
+
const e = pe(), t = nt(), { imagePreview: r, closeImagePreview: o, setImagePreviewIndex: i } = Rs(), [a, s] = $(null);
|
|
8489
8489
|
te(() => s(document.body), []);
|
|
8490
8490
|
const l = r !== null, c = r?.images ?? [], u = c.length, d = r?.index ?? 0, f = c[d], h = u > 1, p = K(
|
|
8491
8491
|
(b) => {
|
|
@@ -8622,7 +8622,7 @@ function hr(e, t) {
|
|
|
8622
8622
|
function om(e, t) {
|
|
8623
8623
|
return t(e);
|
|
8624
8624
|
}
|
|
8625
|
-
function
|
|
8625
|
+
function He(...e) {
|
|
8626
8626
|
return e;
|
|
8627
8627
|
}
|
|
8628
8628
|
function ze(e, t) {
|
|
@@ -8634,7 +8634,7 @@ function ge(e, t) {
|
|
|
8634
8634
|
function Ro(e) {
|
|
8635
8635
|
e(on);
|
|
8636
8636
|
}
|
|
8637
|
-
function
|
|
8637
|
+
function $e(e) {
|
|
8638
8638
|
return e(Ps);
|
|
8639
8639
|
}
|
|
8640
8640
|
function oe(e, t) {
|
|
@@ -8676,7 +8676,7 @@ function Ct(e) {
|
|
|
8676
8676
|
t(e);
|
|
8677
8677
|
};
|
|
8678
8678
|
}
|
|
8679
|
-
function
|
|
8679
|
+
function H(e, ...t) {
|
|
8680
8680
|
const r = im(...t);
|
|
8681
8681
|
return ((o, i) => {
|
|
8682
8682
|
switch (o) {
|
|
@@ -8824,7 +8824,7 @@ function Ke(...e) {
|
|
|
8824
8824
|
};
|
|
8825
8825
|
}
|
|
8826
8826
|
function ce(e, t = Os) {
|
|
8827
|
-
return
|
|
8827
|
+
return H(e, _e(t));
|
|
8828
8828
|
}
|
|
8829
8829
|
function Xr(...e) {
|
|
8830
8830
|
return function(t, r) {
|
|
@@ -8855,7 +8855,7 @@ const Xe = {
|
|
|
8855
8855
|
const e = W(Xe.ERROR);
|
|
8856
8856
|
return {
|
|
8857
8857
|
log: W((t, r, o = Xe.INFO) => {
|
|
8858
|
-
const i = um().VIRTUOSO_LOG_LEVEL ??
|
|
8858
|
+
const i = um().VIRTUOSO_LOG_LEVEL ?? $e(e);
|
|
8859
8859
|
o >= i && console[dm[o]](
|
|
8860
8860
|
"%creact-virtuoso: %c%s %o",
|
|
8861
8861
|
"color: #0253b3; font-weight: bold",
|
|
@@ -8990,13 +8990,13 @@ const dt = Te(
|
|
|
8990
8990
|
() => {
|
|
8991
8991
|
const e = Ce(), t = Ce(), r = W(0), o = Ce(), i = W(0), a = Ce(), s = Ce(), l = W(0), c = W(0), u = W(0), d = W(0), f = Ce(), h = Ce(), p = W(!1), b = W(!1), v = W(!1);
|
|
8992
8992
|
return oe(
|
|
8993
|
-
|
|
8993
|
+
H(
|
|
8994
8994
|
e,
|
|
8995
8995
|
J(({ scrollTop: g }) => g)
|
|
8996
8996
|
),
|
|
8997
8997
|
t
|
|
8998
8998
|
), oe(
|
|
8999
|
-
|
|
8999
|
+
H(
|
|
9000
9000
|
e,
|
|
9001
9001
|
J(({ scrollHeight: g }) => g)
|
|
9002
9002
|
),
|
|
@@ -9077,13 +9077,13 @@ function Qr(e, t) {
|
|
|
9077
9077
|
return i;
|
|
9078
9078
|
if (Oe(i))
|
|
9079
9079
|
return o;
|
|
9080
|
-
const [a, s] =
|
|
9081
|
-
return Bn(Ye(e, { k: a, l:
|
|
9080
|
+
const [a, s] = $s(o);
|
|
9081
|
+
return Bn(Ye(e, { k: a, l: Hs(o), v: s }));
|
|
9082
9082
|
}
|
|
9083
9083
|
return t < r ? Bn(Ye(e, { l: Qr(o, t) })) : Bn(Ye(e, { r: Qr(i, t) }));
|
|
9084
9084
|
}
|
|
9085
|
-
function
|
|
9086
|
-
return Oe(e) ? [] : [
|
|
9085
|
+
function Ht(e) {
|
|
9086
|
+
return Oe(e) ? [] : [...Ht(e.l), { k: e.k, v: e.v }, ...Ht(e.r)];
|
|
9087
9087
|
}
|
|
9088
9088
|
function Jr(e, t, r) {
|
|
9089
9089
|
if (Oe(e))
|
|
@@ -9134,14 +9134,14 @@ function Ye(e, t) {
|
|
|
9134
9134
|
t.r === void 0 ? e.r : t.r
|
|
9135
9135
|
);
|
|
9136
9136
|
}
|
|
9137
|
-
function
|
|
9138
|
-
return Oe(e.r) ? e.l : Bn(Ye(e, { r:
|
|
9137
|
+
function Hs(e) {
|
|
9138
|
+
return Oe(e.r) ? e.l : Bn(Ye(e, { r: Hs(e.r) }));
|
|
9139
9139
|
}
|
|
9140
9140
|
function kr(e) {
|
|
9141
9141
|
return Oe(e) || e.lvl > e.r.lvl;
|
|
9142
9142
|
}
|
|
9143
|
-
function
|
|
9144
|
-
return Oe(e.r) ? [e.k, e.v] :
|
|
9143
|
+
function $s(e) {
|
|
9144
|
+
return Oe(e.r) ? [e.k, e.v] : $s(e.r);
|
|
9145
9145
|
}
|
|
9146
9146
|
function Ws(e, t, r, o = pn, i = pn) {
|
|
9147
9147
|
return { k: e, l: o, lvl: r, r: i, v: t };
|
|
@@ -9287,7 +9287,7 @@ function Nm(e, [t, r, o, i]) {
|
|
|
9287
9287
|
};
|
|
9288
9288
|
}
|
|
9289
9289
|
function Cm(e) {
|
|
9290
|
-
return
|
|
9290
|
+
return Ht(e).map(({ k: t, v: r }, o, i) => {
|
|
9291
9291
|
const a = i[o + 1];
|
|
9292
9292
|
return { endIndex: a === void 0 ? 1 / 0 : a.k - 1, size: r, startIndex: t };
|
|
9293
9293
|
});
|
|
@@ -9335,10 +9335,10 @@ const km = {
|
|
|
9335
9335
|
}, kt = Te(
|
|
9336
9336
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
9337
9337
|
const r = Ce(), o = Ce(), i = at(o, 0), a = Ce(), s = Ce(), l = W(0), c = W([]), u = W(void 0), d = W(void 0), f = W(void 0), h = W(void 0), p = W((y, C) => Lt(y, km[C])), b = W(void 0), v = W(0), g = bm(), w = at(
|
|
9338
|
-
|
|
9338
|
+
H(r, Ne(c, e, v), It(Nm, g), _e()),
|
|
9339
9339
|
g
|
|
9340
9340
|
), x = at(
|
|
9341
|
-
|
|
9341
|
+
H(
|
|
9342
9342
|
c,
|
|
9343
9343
|
_e(),
|
|
9344
9344
|
It((y, C) => ({ current: C, prev: y.current }), {
|
|
@@ -9350,7 +9350,7 @@ const km = {
|
|
|
9350
9350
|
[]
|
|
9351
9351
|
);
|
|
9352
9352
|
oe(
|
|
9353
|
-
|
|
9353
|
+
H(
|
|
9354
9354
|
c,
|
|
9355
9355
|
de((y) => y.length > 0),
|
|
9356
9356
|
Ne(w, v),
|
|
@@ -9365,7 +9365,7 @@ const km = {
|
|
|
9365
9365
|
),
|
|
9366
9366
|
w
|
|
9367
9367
|
), oe(
|
|
9368
|
-
|
|
9368
|
+
H(
|
|
9369
9369
|
o,
|
|
9370
9370
|
Ne(w),
|
|
9371
9371
|
de(([y, { lastIndex: C }]) => y < C),
|
|
@@ -9380,18 +9380,18 @@ const km = {
|
|
|
9380
9380
|
r
|
|
9381
9381
|
), oe(u, d);
|
|
9382
9382
|
const N = at(
|
|
9383
|
-
|
|
9383
|
+
H(
|
|
9384
9384
|
u,
|
|
9385
9385
|
J((y) => y === void 0)
|
|
9386
9386
|
),
|
|
9387
9387
|
!0
|
|
9388
9388
|
);
|
|
9389
9389
|
oe(
|
|
9390
|
-
|
|
9390
|
+
H(
|
|
9391
9391
|
d,
|
|
9392
|
-
de((y) => y !== void 0 && Oe(
|
|
9392
|
+
de((y) => y !== void 0 && Oe($e(w).sizeTree)),
|
|
9393
9393
|
J((y) => {
|
|
9394
|
-
const C =
|
|
9394
|
+
const C = $e(f), I = $e(c).length > 0;
|
|
9395
9395
|
return C !== void 0 && C !== 0 ? I ? [
|
|
9396
9396
|
{ endIndex: 0, size: C, startIndex: 0 },
|
|
9397
9397
|
{ endIndex: 1, size: y, startIndex: 1 }
|
|
@@ -9400,9 +9400,9 @@ const km = {
|
|
|
9400
9400
|
),
|
|
9401
9401
|
r
|
|
9402
9402
|
), oe(
|
|
9403
|
-
|
|
9403
|
+
H(
|
|
9404
9404
|
h,
|
|
9405
|
-
de((y) => y !== void 0 && y.length > 0 && Oe(
|
|
9405
|
+
de((y) => y !== void 0 && y.length > 0 && Oe($e(w).sizeTree)),
|
|
9406
9406
|
J((y) => {
|
|
9407
9407
|
const C = [];
|
|
9408
9408
|
let I = y[0], z = 0;
|
|
@@ -9423,7 +9423,7 @@ const km = {
|
|
|
9423
9423
|
),
|
|
9424
9424
|
r
|
|
9425
9425
|
), oe(
|
|
9426
|
-
|
|
9426
|
+
H(
|
|
9427
9427
|
c,
|
|
9428
9428
|
Ne(f, d),
|
|
9429
9429
|
de(([, y, C]) => y !== void 0 && C !== void 0),
|
|
@@ -9446,8 +9446,8 @@ const km = {
|
|
|
9446
9446
|
),
|
|
9447
9447
|
r
|
|
9448
9448
|
);
|
|
9449
|
-
const
|
|
9450
|
-
|
|
9449
|
+
const A = ht(
|
|
9450
|
+
H(
|
|
9451
9451
|
r,
|
|
9452
9452
|
Ne(w),
|
|
9453
9453
|
It(
|
|
@@ -9461,7 +9461,7 @@ const km = {
|
|
|
9461
9461
|
)
|
|
9462
9462
|
);
|
|
9463
9463
|
ze(
|
|
9464
|
-
|
|
9464
|
+
H(
|
|
9465
9465
|
l,
|
|
9466
9466
|
It(
|
|
9467
9467
|
(y, C) => ({ diff: y.prev - C, prev: C }),
|
|
@@ -9470,15 +9470,15 @@ const km = {
|
|
|
9470
9470
|
J((y) => y.diff)
|
|
9471
9471
|
),
|
|
9472
9472
|
(y) => {
|
|
9473
|
-
const { groupIndices: C } =
|
|
9473
|
+
const { groupIndices: C } = $e(w);
|
|
9474
9474
|
if (y > 0)
|
|
9475
9475
|
ge(t, !0), ge(a, y + zi(y, C));
|
|
9476
9476
|
else if (y < 0) {
|
|
9477
|
-
const I =
|
|
9477
|
+
const I = $e(x);
|
|
9478
9478
|
I.length > 0 && (y -= zi(-y, I)), ge(s, y);
|
|
9479
9479
|
}
|
|
9480
9480
|
}
|
|
9481
|
-
), ze(
|
|
9481
|
+
), ze(H(l, Ne(e)), ([y, C]) => {
|
|
9482
9482
|
y < 0 && C(
|
|
9483
9483
|
"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
|
|
9484
9484
|
{ firstItemIndex: l },
|
|
@@ -9487,7 +9487,7 @@ const km = {
|
|
|
9487
9487
|
});
|
|
9488
9488
|
const E = ht(a);
|
|
9489
9489
|
oe(
|
|
9490
|
-
|
|
9490
|
+
H(
|
|
9491
9491
|
a,
|
|
9492
9492
|
Ne(w),
|
|
9493
9493
|
J(([y, C]) => {
|
|
@@ -9507,7 +9507,7 @@ const km = {
|
|
|
9507
9507
|
startIndex: T + 1
|
|
9508
9508
|
}), R++, P += M + 1;
|
|
9509
9509
|
}
|
|
9510
|
-
const B =
|
|
9510
|
+
const B = Ht(C.sizeTree);
|
|
9511
9511
|
return P !== y && B.shift(), B.reduce(
|
|
9512
9512
|
(T, { k: M, v: q }) => {
|
|
9513
9513
|
let re = T.ranges;
|
|
@@ -9531,7 +9531,7 @@ const km = {
|
|
|
9531
9531
|
}
|
|
9532
9532
|
).ranges;
|
|
9533
9533
|
}
|
|
9534
|
-
return
|
|
9534
|
+
return Ht(C.sizeTree).reduce(
|
|
9535
9535
|
(D, { k: P, v: R }) => ({
|
|
9536
9536
|
prevIndex: P + y,
|
|
9537
9537
|
prevSize: R,
|
|
@@ -9548,7 +9548,7 @@ const km = {
|
|
|
9548
9548
|
r
|
|
9549
9549
|
);
|
|
9550
9550
|
const k = ht(
|
|
9551
|
-
|
|
9551
|
+
H(
|
|
9552
9552
|
s,
|
|
9553
9553
|
Ne(w, v),
|
|
9554
9554
|
J(([y, { offsetTree: C }, I]) => {
|
|
@@ -9558,7 +9558,7 @@ const km = {
|
|
|
9558
9558
|
)
|
|
9559
9559
|
);
|
|
9560
9560
|
return oe(
|
|
9561
|
-
|
|
9561
|
+
H(
|
|
9562
9562
|
s,
|
|
9563
9563
|
Ne(w, v),
|
|
9564
9564
|
J(([y, C, I]) => {
|
|
@@ -9566,14 +9566,14 @@ const km = {
|
|
|
9566
9566
|
if (Oe(C.sizeTree))
|
|
9567
9567
|
return C;
|
|
9568
9568
|
let L = Yt();
|
|
9569
|
-
const D =
|
|
9569
|
+
const D = $e(x);
|
|
9570
9570
|
let P = 0, R = 0, B = 0;
|
|
9571
9571
|
for (; P < -y; ) {
|
|
9572
9572
|
B = D[R];
|
|
9573
9573
|
const T = D[R + 1] - B - 1;
|
|
9574
9574
|
R++, P += T + 1;
|
|
9575
9575
|
}
|
|
9576
|
-
if (L =
|
|
9576
|
+
if (L = Ht(C.sizeTree).reduce((T, { k: M, v: q }) => ft(T, Math.max(0, M + y), q), L), P !== -y) {
|
|
9577
9577
|
const T = gn(C.sizeTree, B);
|
|
9578
9578
|
L = ft(L, 0, T);
|
|
9579
9579
|
const M = wt(C.sizeTree, -y + 1)[1];
|
|
@@ -9585,7 +9585,7 @@ const km = {
|
|
|
9585
9585
|
...eo(C.offsetTree, 0, L, I)
|
|
9586
9586
|
};
|
|
9587
9587
|
}
|
|
9588
|
-
const z =
|
|
9588
|
+
const z = Ht(C.sizeTree).reduce((L, { k: D, v: P }) => ft(L, Math.max(0, D + y), P), Yt());
|
|
9589
9589
|
return {
|
|
9590
9590
|
...C,
|
|
9591
9591
|
sizeTree: z,
|
|
@@ -9606,7 +9606,7 @@ const km = {
|
|
|
9606
9606
|
groupIndices: c,
|
|
9607
9607
|
heightEstimates: h,
|
|
9608
9608
|
itemSize: p,
|
|
9609
|
-
listRefresh:
|
|
9609
|
+
listRefresh: A,
|
|
9610
9610
|
shiftWith: s,
|
|
9611
9611
|
shiftWithOffset: k,
|
|
9612
9612
|
sizeRanges: r,
|
|
@@ -9618,7 +9618,7 @@ const km = {
|
|
|
9618
9618
|
unshiftWith: a
|
|
9619
9619
|
};
|
|
9620
9620
|
},
|
|
9621
|
-
|
|
9621
|
+
He(Mt, Lo),
|
|
9622
9622
|
{ singleton: !0 }
|
|
9623
9623
|
);
|
|
9624
9624
|
function Tm(e) {
|
|
@@ -9632,21 +9632,21 @@ function Tm(e) {
|
|
|
9632
9632
|
}
|
|
9633
9633
|
const qs = Te(
|
|
9634
9634
|
([{ groupIndices: e, sizes: t, totalCount: r }, { headerHeight: o, scrollTop: i }]) => {
|
|
9635
|
-
const a = Ce(), s = Ce(), l = ht(
|
|
9635
|
+
const a = Ce(), s = Ce(), l = ht(H(a, J(Tm)));
|
|
9636
9636
|
return oe(
|
|
9637
|
-
|
|
9637
|
+
H(
|
|
9638
9638
|
l,
|
|
9639
9639
|
J((c) => c.totalCount)
|
|
9640
9640
|
),
|
|
9641
9641
|
r
|
|
9642
9642
|
), oe(
|
|
9643
|
-
|
|
9643
|
+
H(
|
|
9644
9644
|
l,
|
|
9645
9645
|
J((c) => c.groupIndices)
|
|
9646
9646
|
),
|
|
9647
9647
|
e
|
|
9648
9648
|
), oe(
|
|
9649
|
-
|
|
9649
|
+
H(
|
|
9650
9650
|
Ke(i, t, o),
|
|
9651
9651
|
de(([c, u]) => mr(u)),
|
|
9652
9652
|
J(([c, u, d]) => wt(u.groupOffsetTree, Math.max(c - d, 0), "v")[0]),
|
|
@@ -9656,21 +9656,21 @@ const qs = Te(
|
|
|
9656
9656
|
s
|
|
9657
9657
|
), { groupCounts: a, topItemsIndexes: s };
|
|
9658
9658
|
},
|
|
9659
|
-
|
|
9659
|
+
He(kt, dt)
|
|
9660
9660
|
), Ot = Te(
|
|
9661
9661
|
([{ log: e }]) => {
|
|
9662
9662
|
const t = W(!1), r = ht(
|
|
9663
|
-
|
|
9663
|
+
H(
|
|
9664
9664
|
t,
|
|
9665
9665
|
de((o) => o),
|
|
9666
9666
|
_e()
|
|
9667
9667
|
)
|
|
9668
9668
|
);
|
|
9669
9669
|
return ze(t, (o) => {
|
|
9670
|
-
o &&
|
|
9670
|
+
o && $e(e)("props updated", {}, Xe.DEBUG);
|
|
9671
9671
|
}), { didMount: r, propsReady: t };
|
|
9672
9672
|
},
|
|
9673
|
-
|
|
9673
|
+
He(Mt),
|
|
9674
9674
|
{ singleton: !0 }
|
|
9675
9675
|
), Rm = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
|
|
9676
9676
|
function Ys(e) {
|
|
@@ -9698,22 +9698,22 @@ const In = Te(
|
|
|
9698
9698
|
g !== null && (g(), g = null), x !== null && (x(), x = null), w && (clearTimeout(w), w = null), ge(c, !1);
|
|
9699
9699
|
}
|
|
9700
9700
|
return oe(
|
|
9701
|
-
|
|
9701
|
+
H(
|
|
9702
9702
|
p,
|
|
9703
9703
|
Ne(r, f, o, v, l, s, h),
|
|
9704
9704
|
Ne(e, a, i),
|
|
9705
9705
|
J(
|
|
9706
9706
|
([
|
|
9707
|
-
[
|
|
9707
|
+
[A, E, k, y, C, I, z, L],
|
|
9708
9708
|
D,
|
|
9709
9709
|
P,
|
|
9710
9710
|
R
|
|
9711
9711
|
]) => {
|
|
9712
|
-
const B = Ys(
|
|
9712
|
+
const B = Ys(A), { align: T, behavior: M, offset: q } = B, re = y - 1, Y = Ks(B, E, re);
|
|
9713
9713
|
let se = vn(Y, E.offsetTree, D) + I;
|
|
9714
9714
|
T === "end" ? (se += P + wt(E.sizeTree, Y)[1] - k + R, Y === re && (se += z)) : T === "center" ? se += (P + wt(E.sizeTree, Y)[1] - k + R) / 2 : se -= C, q !== void 0 && q !== 0 && (se += q);
|
|
9715
9715
|
const ne = (xe) => {
|
|
9716
|
-
N(), xe ? (L("retrying to scroll to", { location:
|
|
9716
|
+
N(), xe ? (L("retrying to scroll to", { location: A }, Xe.DEBUG), ge(p, A)) : (ge(b, !0), L("list did not change, scroll successful", {}, Xe.DEBUG));
|
|
9717
9717
|
};
|
|
9718
9718
|
if (N(), M === "smooth") {
|
|
9719
9719
|
let xe = !1;
|
|
@@ -9723,7 +9723,7 @@ const In = Te(
|
|
|
9723
9723
|
ne(xe);
|
|
9724
9724
|
});
|
|
9725
9725
|
} else
|
|
9726
|
-
g = yt(
|
|
9726
|
+
g = yt(H(t, Em(150)), ne);
|
|
9727
9727
|
return w = setTimeout(() => {
|
|
9728
9728
|
N();
|
|
9729
9729
|
}, 1200), ge(c, !0), L("scrolling from index to", { behavior: M, index: Y, top: se }, Xe.DEBUG), { behavior: M, top: se };
|
|
@@ -9737,7 +9737,7 @@ const In = Te(
|
|
|
9737
9737
|
topListHeight: v
|
|
9738
9738
|
};
|
|
9739
9739
|
},
|
|
9740
|
-
|
|
9740
|
+
He(kt, dt, Mt),
|
|
9741
9741
|
{ singleton: !0 }
|
|
9742
9742
|
);
|
|
9743
9743
|
function Em(e) {
|
|
@@ -9750,12 +9750,12 @@ function Em(e) {
|
|
|
9750
9750
|
};
|
|
9751
9751
|
};
|
|
9752
9752
|
}
|
|
9753
|
-
function
|
|
9753
|
+
function Ao(e, t) {
|
|
9754
9754
|
e === 0 ? t() : requestAnimationFrame(() => {
|
|
9755
|
-
|
|
9755
|
+
Ao(e - 1, t);
|
|
9756
9756
|
});
|
|
9757
9757
|
}
|
|
9758
|
-
function
|
|
9758
|
+
function Fo(e, t) {
|
|
9759
9759
|
if (e === void 0)
|
|
9760
9760
|
return 0;
|
|
9761
9761
|
const r = t - 1, o = typeof e == "number" ? e : e.index === "LAST" ? r : e.index;
|
|
@@ -9768,7 +9768,7 @@ const Sn = Te(
|
|
|
9768
9768
|
([{ defaultItemSize: e, listRefresh: t, sizes: r }, { scrollTop: o }, { scrollTargetReached: i, scrollToIndex: a }, { didMount: s }]) => {
|
|
9769
9769
|
const l = W(!0), c = W(0), u = W(!0);
|
|
9770
9770
|
return oe(
|
|
9771
|
-
|
|
9771
|
+
H(
|
|
9772
9772
|
s,
|
|
9773
9773
|
Ne(c),
|
|
9774
9774
|
de(([d, f]) => !to(f)),
|
|
@@ -9776,7 +9776,7 @@ const Sn = Te(
|
|
|
9776
9776
|
),
|
|
9777
9777
|
l
|
|
9778
9778
|
), oe(
|
|
9779
|
-
|
|
9779
|
+
H(
|
|
9780
9780
|
s,
|
|
9781
9781
|
Ne(c),
|
|
9782
9782
|
de(([d, f]) => !to(f)),
|
|
@@ -9784,7 +9784,7 @@ const Sn = Te(
|
|
|
9784
9784
|
),
|
|
9785
9785
|
u
|
|
9786
9786
|
), ze(
|
|
9787
|
-
|
|
9787
|
+
H(
|
|
9788
9788
|
Ke(t, s),
|
|
9789
9789
|
Ne(l, r, e, u),
|
|
9790
9790
|
de(([[, d], f, { sizeTree: h }, p, b]) => d && (!Oe(h) || To(p)) && !f && !b),
|
|
@@ -9797,7 +9797,7 @@ const Sn = Te(
|
|
|
9797
9797
|
}
|
|
9798
9798
|
yt(i, () => {
|
|
9799
9799
|
ge(u, !0);
|
|
9800
|
-
}),
|
|
9800
|
+
}), Ao(4, () => {
|
|
9801
9801
|
yt(o, () => {
|
|
9802
9802
|
ge(l, !0);
|
|
9803
9803
|
}), ge(a, d);
|
|
@@ -9809,7 +9809,7 @@ const Sn = Te(
|
|
|
9809
9809
|
scrolledToInitialItem: l
|
|
9810
9810
|
};
|
|
9811
9811
|
},
|
|
9812
|
-
|
|
9812
|
+
He(kt, dt, In, Ot),
|
|
9813
9813
|
{ singleton: !0 }
|
|
9814
9814
|
);
|
|
9815
9815
|
function Xs(e, t) {
|
|
@@ -9824,37 +9824,37 @@ const xn = "up", fn = "down", Lm = "none", zm = {
|
|
|
9824
9824
|
scrollTop: 0,
|
|
9825
9825
|
viewportHeight: 0
|
|
9826
9826
|
}
|
|
9827
|
-
},
|
|
9828
|
-
const s = W(!1), l = W(!0), c = Ce(), u = Ce(), d = W(4), f = W(
|
|
9829
|
-
|
|
9830
|
-
Xr(
|
|
9827
|
+
}, Am = 0, kn = Te(([{ footerHeight: e, headerHeight: t, scrollBy: r, scrollContainerState: o, scrollTop: i, viewportHeight: a }]) => {
|
|
9828
|
+
const s = W(!1), l = W(!0), c = Ce(), u = Ce(), d = W(4), f = W(Am), h = at(
|
|
9829
|
+
H(
|
|
9830
|
+
Xr(H(ce(i), jt(1), Ct(!0)), H(ce(i), jt(1), Ct(!1), Ti(100))),
|
|
9831
9831
|
_e()
|
|
9832
9832
|
),
|
|
9833
9833
|
!1
|
|
9834
9834
|
), p = at(
|
|
9835
|
-
|
|
9835
|
+
H(Xr(H(r, Ct(!0)), H(r, Ct(!1), Ti(200))), _e()),
|
|
9836
9836
|
!1
|
|
9837
9837
|
);
|
|
9838
9838
|
oe(
|
|
9839
|
-
|
|
9839
|
+
H(
|
|
9840
9840
|
Ke(ce(i), ce(f)),
|
|
9841
9841
|
J(([x, N]) => x <= N),
|
|
9842
9842
|
_e()
|
|
9843
9843
|
),
|
|
9844
9844
|
l
|
|
9845
|
-
), oe(
|
|
9845
|
+
), oe(H(l, Tt(50)), u);
|
|
9846
9846
|
const b = ht(
|
|
9847
|
-
|
|
9847
|
+
H(
|
|
9848
9848
|
Ke(o, ce(a), ce(t), ce(e), ce(d)),
|
|
9849
|
-
It((x, [{ scrollHeight: N, scrollTop:
|
|
9850
|
-
const I =
|
|
9849
|
+
It((x, [{ scrollHeight: N, scrollTop: A }, E, k, y, C]) => {
|
|
9850
|
+
const I = A + E - N > -C, z = {
|
|
9851
9851
|
scrollHeight: N,
|
|
9852
|
-
scrollTop:
|
|
9852
|
+
scrollTop: A,
|
|
9853
9853
|
viewportHeight: E
|
|
9854
9854
|
};
|
|
9855
9855
|
if (I) {
|
|
9856
9856
|
let D, P;
|
|
9857
|
-
return
|
|
9857
|
+
return A > x.state.scrollTop ? (D = "SCROLLED_DOWN", P = x.state.scrollTop - A) : (D = "SIZE_DECREASED", P = x.state.scrollTop - A || x.scrollTopDelta), {
|
|
9858
9858
|
atBottom: !0,
|
|
9859
9859
|
atBottomBecause: D,
|
|
9860
9860
|
scrollTopDelta: P,
|
|
@@ -9862,7 +9862,7 @@ const xn = "up", fn = "down", Lm = "none", zm = {
|
|
|
9862
9862
|
};
|
|
9863
9863
|
}
|
|
9864
9864
|
let L;
|
|
9865
|
-
return z.scrollHeight > x.state.scrollHeight ? L = "SIZE_INCREASED" : E < x.state.viewportHeight ? L = "VIEWPORT_HEIGHT_DECREASING" :
|
|
9865
|
+
return z.scrollHeight > x.state.scrollHeight ? L = "SIZE_INCREASED" : E < x.state.viewportHeight ? L = "VIEWPORT_HEIGHT_DECREASING" : A < x.state.scrollTop ? L = "SCROLLING_UPWARDS" : L = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
|
|
9866
9866
|
atBottom: !1,
|
|
9867
9867
|
notAtBottomBecause: L,
|
|
9868
9868
|
state: z
|
|
@@ -9871,29 +9871,29 @@ const xn = "up", fn = "down", Lm = "none", zm = {
|
|
|
9871
9871
|
_e((x, N) => x !== void 0 && x.atBottom === N.atBottom)
|
|
9872
9872
|
)
|
|
9873
9873
|
), v = at(
|
|
9874
|
-
|
|
9874
|
+
H(
|
|
9875
9875
|
o,
|
|
9876
9876
|
It(
|
|
9877
|
-
(x, { scrollHeight: N, scrollTop:
|
|
9877
|
+
(x, { scrollHeight: N, scrollTop: A, viewportHeight: E }) => {
|
|
9878
9878
|
if (!Xs(x.scrollHeight, N)) {
|
|
9879
|
-
const k = N - (
|
|
9880
|
-
return x.scrollTop !==
|
|
9879
|
+
const k = N - (A + E) < 1;
|
|
9880
|
+
return x.scrollTop !== A && k ? {
|
|
9881
9881
|
changed: !0,
|
|
9882
|
-
jump: x.scrollTop -
|
|
9882
|
+
jump: x.scrollTop - A,
|
|
9883
9883
|
scrollHeight: N,
|
|
9884
|
-
scrollTop:
|
|
9884
|
+
scrollTop: A
|
|
9885
9885
|
} : {
|
|
9886
9886
|
changed: !0,
|
|
9887
9887
|
jump: 0,
|
|
9888
9888
|
scrollHeight: N,
|
|
9889
|
-
scrollTop:
|
|
9889
|
+
scrollTop: A
|
|
9890
9890
|
};
|
|
9891
9891
|
}
|
|
9892
9892
|
return {
|
|
9893
9893
|
changed: !1,
|
|
9894
9894
|
jump: 0,
|
|
9895
9895
|
scrollHeight: N,
|
|
9896
|
-
scrollTop:
|
|
9896
|
+
scrollTop: A
|
|
9897
9897
|
};
|
|
9898
9898
|
},
|
|
9899
9899
|
{ changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
|
|
@@ -9904,41 +9904,41 @@ const xn = "up", fn = "down", Lm = "none", zm = {
|
|
|
9904
9904
|
0
|
|
9905
9905
|
);
|
|
9906
9906
|
oe(
|
|
9907
|
-
|
|
9907
|
+
H(
|
|
9908
9908
|
b,
|
|
9909
9909
|
J((x) => x.atBottom)
|
|
9910
9910
|
),
|
|
9911
9911
|
s
|
|
9912
|
-
), oe(
|
|
9912
|
+
), oe(H(s, Tt(50)), c);
|
|
9913
9913
|
const g = W(fn);
|
|
9914
9914
|
oe(
|
|
9915
|
-
|
|
9915
|
+
H(
|
|
9916
9916
|
o,
|
|
9917
9917
|
J(({ scrollTop: x }) => x),
|
|
9918
9918
|
_e(),
|
|
9919
9919
|
It(
|
|
9920
|
-
(x, N) =>
|
|
9920
|
+
(x, N) => $e(p) ? { direction: x.direction, prevScrollTop: N } : { direction: N < x.prevScrollTop ? xn : fn, prevScrollTop: N },
|
|
9921
9921
|
{ direction: fn, prevScrollTop: 0 }
|
|
9922
9922
|
),
|
|
9923
9923
|
J((x) => x.direction)
|
|
9924
9924
|
),
|
|
9925
9925
|
g
|
|
9926
|
-
), oe(
|
|
9926
|
+
), oe(H(o, Tt(50), Ct(Lm)), g);
|
|
9927
9927
|
const w = W(0);
|
|
9928
9928
|
return oe(
|
|
9929
|
-
|
|
9929
|
+
H(
|
|
9930
9930
|
h,
|
|
9931
9931
|
de((x) => !x),
|
|
9932
9932
|
Ct(0)
|
|
9933
9933
|
),
|
|
9934
9934
|
w
|
|
9935
9935
|
), oe(
|
|
9936
|
-
|
|
9936
|
+
H(
|
|
9937
9937
|
i,
|
|
9938
9938
|
Tt(100),
|
|
9939
9939
|
Ne(h),
|
|
9940
9940
|
de(([x, N]) => N),
|
|
9941
|
-
It(([x, N], [
|
|
9941
|
+
It(([x, N], [A]) => [N, A], [0, 0]),
|
|
9942
9942
|
J(([x, N]) => N - x)
|
|
9943
9943
|
),
|
|
9944
9944
|
w
|
|
@@ -9955,8 +9955,8 @@ const xn = "up", fn = "down", Lm = "none", zm = {
|
|
|
9955
9955
|
scrollDirection: g,
|
|
9956
9956
|
scrollVelocity: w
|
|
9957
9957
|
};
|
|
9958
|
-
},
|
|
9959
|
-
function
|
|
9958
|
+
}, He(dt)), yn = "top", wn = "bottom", Ai = "none";
|
|
9959
|
+
function Fi(e, t, r) {
|
|
9960
9960
|
return typeof e == "number" ? r === xn && t === yn || r === fn && t === wn ? e : 0 : r === xn ? t === yn ? e.main : e.reverse : t === wn ? e.main : e.reverse;
|
|
9961
9961
|
}
|
|
9962
9962
|
function Pi(e, t) {
|
|
@@ -9965,7 +9965,7 @@ function Pi(e, t) {
|
|
|
9965
9965
|
const Po = Te(
|
|
9966
9966
|
([{ deviation: e, fixedHeaderHeight: t, headerHeight: r, scrollTop: o, viewportHeight: i }]) => {
|
|
9967
9967
|
const a = Ce(), s = W(0), l = W(0), c = W(0), u = at(
|
|
9968
|
-
|
|
9968
|
+
H(
|
|
9969
9969
|
Ke(
|
|
9970
9970
|
ce(o),
|
|
9971
9971
|
ce(i),
|
|
@@ -9989,12 +9989,12 @@ const Po = Te(
|
|
|
9989
9989
|
x,
|
|
9990
9990
|
N
|
|
9991
9991
|
]) => {
|
|
9992
|
-
const
|
|
9993
|
-
let y =
|
|
9992
|
+
const A = d - x, E = g + w, k = Math.max(h - A, 0);
|
|
9993
|
+
let y = Ai;
|
|
9994
9994
|
const C = Pi(N, yn), I = Pi(N, wn);
|
|
9995
|
-
return p -= x, p += h + w, b += h + w, b -= x, p > d + E - C && (y = xn), b < d - k + f + I && (y = fn), y !==
|
|
9996
|
-
Math.max(
|
|
9997
|
-
|
|
9995
|
+
return p -= x, p += h + w, b += h + w, b -= x, p > d + E - C && (y = xn), b < d - k + f + I && (y = fn), y !== Ai ? [
|
|
9996
|
+
Math.max(A - h - Fi(v, yn, y) - C, 0),
|
|
9997
|
+
A - k - w + f + Fi(v, wn, y) + I
|
|
9998
9998
|
] : null;
|
|
9999
9999
|
}
|
|
10000
10000
|
),
|
|
@@ -10013,10 +10013,10 @@ const Po = Te(
|
|
|
10013
10013
|
visibleRange: u
|
|
10014
10014
|
};
|
|
10015
10015
|
},
|
|
10016
|
-
|
|
10016
|
+
He(dt),
|
|
10017
10017
|
{ singleton: !0 }
|
|
10018
10018
|
);
|
|
10019
|
-
function
|
|
10019
|
+
function Fm(e, t, r) {
|
|
10020
10020
|
if (mr(t)) {
|
|
10021
10021
|
const o = Gs(e, t);
|
|
10022
10022
|
return [
|
|
@@ -10066,7 +10066,7 @@ function Qs(e, t, r, o, i, a) {
|
|
|
10066
10066
|
break;
|
|
10067
10067
|
s++;
|
|
10068
10068
|
}
|
|
10069
|
-
const l = e + s, c =
|
|
10069
|
+
const l = e + s, c = Fo(t, l), u = Array.from({ length: l }).map((d, f) => ({
|
|
10070
10070
|
data: a[f + c],
|
|
10071
10071
|
index: f + c,
|
|
10072
10072
|
offset: 0,
|
|
@@ -10117,7 +10117,7 @@ const Gt = Te(
|
|
|
10117
10117
|
const v = W([]), g = W(0), w = Ce(), x = W(0);
|
|
10118
10118
|
oe(a.topItemsIndexes, v);
|
|
10119
10119
|
const N = at(
|
|
10120
|
-
|
|
10120
|
+
H(
|
|
10121
10121
|
Ke(
|
|
10122
10122
|
p,
|
|
10123
10123
|
b,
|
|
@@ -10151,14 +10151,14 @@ const Gt = Te(
|
|
|
10151
10151
|
T,
|
|
10152
10152
|
M
|
|
10153
10153
|
]) => {
|
|
10154
|
-
const q = z, { offsetTree: re, sizeTree: Y } = q, se =
|
|
10154
|
+
const q = z, { offsetTree: re, sizeTree: Y } = q, se = $e(g);
|
|
10155
10155
|
if (I === 0)
|
|
10156
10156
|
return { ...Tr, totalCount: I };
|
|
10157
10157
|
if (y === 0 && C === 0)
|
|
10158
10158
|
return se === 0 ? { ...Tr, totalCount: I } : Qs(se, L, z, R, B, M || []);
|
|
10159
10159
|
if (Oe(Y))
|
|
10160
10160
|
return se > 0 ? null : _n(
|
|
10161
|
-
|
|
10161
|
+
Fm(Fo(L, I), q, M),
|
|
10162
10162
|
[],
|
|
10163
10163
|
I,
|
|
10164
10164
|
B,
|
|
@@ -10180,7 +10180,7 @@ const Gt = Te(
|
|
|
10180
10180
|
const xe = P.length > 0 ? P[P.length - 1] + 1 : 0, ye = wm(re, y, C, xe);
|
|
10181
10181
|
if (ye.length === 0)
|
|
10182
10182
|
return null;
|
|
10183
|
-
const
|
|
10183
|
+
const Fe = I - 1, we = hr([], (j) => {
|
|
10184
10184
|
for (const G of ye) {
|
|
10185
10185
|
const ae = G.value;
|
|
10186
10186
|
let U = ae.offset, Z = G.start;
|
|
@@ -10191,12 +10191,12 @@ const Gt = Te(
|
|
|
10191
10191
|
U += ke * fe + ke * B;
|
|
10192
10192
|
}
|
|
10193
10193
|
Z < xe && (U += (xe - Z) * fe, Z = xe);
|
|
10194
|
-
const Se = Math.min(G.end,
|
|
10194
|
+
const Se = Math.min(G.end, Fe);
|
|
10195
10195
|
for (let ke = Z; ke <= Se && !(U >= C); ke++)
|
|
10196
10196
|
j.push({ data: M?.[ke], index: ke, offset: U, size: fe }), U += fe + B;
|
|
10197
10197
|
}
|
|
10198
|
-
}), V = Oi(T, yn),
|
|
10199
|
-
if (we.length > 0 && (V > 0 ||
|
|
10198
|
+
}), V = Oi(T, yn), F = Oi(T, wn);
|
|
10199
|
+
if (we.length > 0 && (V > 0 || F > 0)) {
|
|
10200
10200
|
const j = we[0], G = we[we.length - 1];
|
|
10201
10201
|
if (V > 0 && j.index > xe) {
|
|
10202
10202
|
const ae = Math.min(V, j.index - xe), U = [];
|
|
@@ -10207,8 +10207,8 @@ const Gt = Te(
|
|
|
10207
10207
|
}
|
|
10208
10208
|
we.unshift(...U);
|
|
10209
10209
|
}
|
|
10210
|
-
if (
|
|
10211
|
-
const ae = Math.min(
|
|
10210
|
+
if (F > 0 && G.index < Fe) {
|
|
10211
|
+
const ae = Math.min(F, Fe - G.index);
|
|
10212
10212
|
let U = G.offset + G.size + B;
|
|
10213
10213
|
for (let Z = G.index + 1; Z <= G.index + ae; Z++) {
|
|
10214
10214
|
const fe = Xt(Y, Z, Z)[0]?.value ?? G.size;
|
|
@@ -10226,33 +10226,33 @@ const Gt = Te(
|
|
|
10226
10226
|
Tr
|
|
10227
10227
|
);
|
|
10228
10228
|
oe(
|
|
10229
|
-
|
|
10229
|
+
H(
|
|
10230
10230
|
e,
|
|
10231
10231
|
de(To),
|
|
10232
10232
|
J((y) => y?.length)
|
|
10233
10233
|
),
|
|
10234
10234
|
i
|
|
10235
10235
|
), oe(
|
|
10236
|
-
|
|
10236
|
+
H(
|
|
10237
10237
|
N,
|
|
10238
10238
|
J((y) => y.topListHeight)
|
|
10239
10239
|
),
|
|
10240
10240
|
f
|
|
10241
10241
|
), oe(f, l), oe(
|
|
10242
|
-
|
|
10242
|
+
H(
|
|
10243
10243
|
N,
|
|
10244
10244
|
J((y) => [y.top, y.bottom])
|
|
10245
10245
|
),
|
|
10246
10246
|
s
|
|
10247
10247
|
), oe(
|
|
10248
|
-
|
|
10248
|
+
H(
|
|
10249
10249
|
N,
|
|
10250
10250
|
J((y) => y.items)
|
|
10251
10251
|
),
|
|
10252
10252
|
w
|
|
10253
10253
|
);
|
|
10254
|
-
const
|
|
10255
|
-
|
|
10254
|
+
const A = ht(
|
|
10255
|
+
H(
|
|
10256
10256
|
N,
|
|
10257
10257
|
de(({ items: y }) => y.length > 0),
|
|
10258
10258
|
Ne(i, e),
|
|
@@ -10262,7 +10262,7 @@ const Gt = Te(
|
|
|
10262
10262
|
J(([y]) => y)
|
|
10263
10263
|
)
|
|
10264
10264
|
), E = ht(
|
|
10265
|
-
|
|
10265
|
+
H(
|
|
10266
10266
|
N,
|
|
10267
10267
|
Tt(200),
|
|
10268
10268
|
de(({ items: y, topItems: C }) => y.length > 0 && y[0].originalIndex === C.length),
|
|
@@ -10270,7 +10270,7 @@ const Gt = Te(
|
|
|
10270
10270
|
_e()
|
|
10271
10271
|
)
|
|
10272
10272
|
), k = ht(
|
|
10273
|
-
|
|
10273
|
+
H(
|
|
10274
10274
|
N,
|
|
10275
10275
|
de(({ items: y }) => y.length > 0),
|
|
10276
10276
|
// oxlint-disable-next-line array-callback-return -- callback always returns after trimming group sentinels
|
|
@@ -10289,7 +10289,7 @@ const Gt = Te(
|
|
|
10289
10289
|
)
|
|
10290
10290
|
);
|
|
10291
10291
|
return {
|
|
10292
|
-
endReached:
|
|
10292
|
+
endReached: A,
|
|
10293
10293
|
initialItemCount: g,
|
|
10294
10294
|
itemsRendered: w,
|
|
10295
10295
|
listState: N,
|
|
@@ -10300,7 +10300,7 @@ const Gt = Te(
|
|
|
10300
10300
|
...h
|
|
10301
10301
|
};
|
|
10302
10302
|
},
|
|
10303
|
-
|
|
10303
|
+
He(
|
|
10304
10304
|
kt,
|
|
10305
10305
|
qs,
|
|
10306
10306
|
Po,
|
|
@@ -10314,7 +10314,7 @@ const Gt = Te(
|
|
|
10314
10314
|
), Js = Te(
|
|
10315
10315
|
([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: r, headerHeight: o }, { listState: i }]) => {
|
|
10316
10316
|
const a = Ce(), s = at(
|
|
10317
|
-
|
|
10317
|
+
H(
|
|
10318
10318
|
Ke(r, e, o, t, i),
|
|
10319
10319
|
J(([l, c, u, d, f]) => l + c + u + d + f.offsetBottom + f.bottom)
|
|
10320
10320
|
),
|
|
@@ -10322,12 +10322,12 @@ const Gt = Te(
|
|
|
10322
10322
|
);
|
|
10323
10323
|
return oe(ce(s), a), { totalListHeight: s, totalListHeightChanged: a };
|
|
10324
10324
|
},
|
|
10325
|
-
|
|
10325
|
+
He(dt, Gt),
|
|
10326
10326
|
{ singleton: !0 }
|
|
10327
10327
|
), Pm = Te(
|
|
10328
10328
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
10329
10329
|
const r = W(!1), o = at(
|
|
10330
|
-
|
|
10330
|
+
H(
|
|
10331
10331
|
Ke(r, e, t),
|
|
10332
10332
|
de(([i]) => i),
|
|
10333
10333
|
J(([, i, a]) => Math.max(0, i - a)),
|
|
@@ -10338,7 +10338,7 @@ const Gt = Te(
|
|
|
10338
10338
|
);
|
|
10339
10339
|
return { alignToBottom: r, paddingTopAddition: o };
|
|
10340
10340
|
},
|
|
10341
|
-
|
|
10341
|
+
He(dt, Js),
|
|
10342
10342
|
{ singleton: !0 }
|
|
10343
10343
|
), Zs = Te(() => ({
|
|
10344
10344
|
context: W(null)
|
|
@@ -10356,12 +10356,12 @@ const Gt = Te(
|
|
|
10356
10356
|
]) => {
|
|
10357
10357
|
const d = Ce();
|
|
10358
10358
|
return oe(
|
|
10359
|
-
|
|
10359
|
+
H(
|
|
10360
10360
|
d,
|
|
10361
10361
|
Ne(t, c, r, a, i, o, l),
|
|
10362
10362
|
Ne(e),
|
|
10363
10363
|
J(([[f, h, p, b, v, g, w, x], N]) => {
|
|
10364
|
-
const { calculateViewLocation:
|
|
10364
|
+
const { calculateViewLocation: A = Mm, done: E, ...k } = f, y = Ks(f, h, b - 1), C = vn(y, h.offsetTree, N) + v + g, I = C + wt(h.sizeTree, y)[1], z = x + g, L = x + p - w, D = A({
|
|
10365
10365
|
itemBottom: I,
|
|
10366
10366
|
itemTop: C,
|
|
10367
10367
|
locationParams: k,
|
|
@@ -10369,12 +10369,12 @@ const Gt = Te(
|
|
|
10369
10369
|
viewportTop: z
|
|
10370
10370
|
});
|
|
10371
10371
|
return D === null ? E?.() : E && yt(
|
|
10372
|
-
|
|
10372
|
+
H(
|
|
10373
10373
|
s,
|
|
10374
10374
|
de((P) => !P),
|
|
10375
10375
|
// skips the initial publish of false, and the cleanup call.
|
|
10376
10376
|
// but if scrollingInProgress is true, we skip the initial publish.
|
|
10377
|
-
jt(
|
|
10377
|
+
jt($e(s) ? 1 : 2)
|
|
10378
10378
|
),
|
|
10379
10379
|
E
|
|
10380
10380
|
), D;
|
|
@@ -10386,7 +10386,7 @@ const Gt = Te(
|
|
|
10386
10386
|
scrollIntoView: d
|
|
10387
10387
|
};
|
|
10388
10388
|
},
|
|
10389
|
-
|
|
10389
|
+
He(kt, dt, In, Gt, Mt),
|
|
10390
10390
|
{ singleton: !0 }
|
|
10391
10391
|
);
|
|
10392
10392
|
function Di(e) {
|
|
@@ -10414,8 +10414,8 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10414
10414
|
});
|
|
10415
10415
|
}
|
|
10416
10416
|
ze(
|
|
10417
|
-
|
|
10418
|
-
Ke(
|
|
10417
|
+
H(
|
|
10418
|
+
Ke(H(ce(t), jt(1)), c),
|
|
10419
10419
|
Ne(ce(b), a, l, f),
|
|
10420
10420
|
J(([[E, k], y, C, I, z]) => {
|
|
10421
10421
|
let L = k && I, D = "auto";
|
|
@@ -10424,21 +10424,21 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10424
10424
|
de(({ shouldFollow: E }) => E)
|
|
10425
10425
|
),
|
|
10426
10426
|
({ followOutputBehavior: E, totalCount: k }) => {
|
|
10427
|
-
g !== null && (g(), g = null),
|
|
10428
|
-
|
|
10427
|
+
g !== null && (g(), g = null), $e(r) === void 0 ? g = yt(e, () => {
|
|
10428
|
+
$e(d)("following output to ", { totalCount: k }, Xe.DEBUG), w(E), g = null;
|
|
10429
10429
|
}) : requestAnimationFrame(() => {
|
|
10430
|
-
|
|
10430
|
+
$e(d)("following output to ", { totalCount: k }, Xe.DEBUG), w(E);
|
|
10431
10431
|
});
|
|
10432
10432
|
}
|
|
10433
10433
|
);
|
|
10434
10434
|
function x(E) {
|
|
10435
10435
|
const k = yt(i, (y) => {
|
|
10436
|
-
E && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && g === null && (
|
|
10436
|
+
E && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && g === null && ($e(d)("scrolling to bottom due to increased size", {}, Xe.DEBUG), w("auto"));
|
|
10437
10437
|
});
|
|
10438
10438
|
setTimeout(k, 100);
|
|
10439
10439
|
}
|
|
10440
10440
|
ze(
|
|
10441
|
-
|
|
10441
|
+
H(
|
|
10442
10442
|
Ke(ce(b), t, u),
|
|
10443
10443
|
de(([E, , k]) => E !== !1 && k),
|
|
10444
10444
|
It(
|
|
@@ -10449,41 +10449,41 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10449
10449
|
Ne(b, t)
|
|
10450
10450
|
),
|
|
10451
10451
|
([, E]) => {
|
|
10452
|
-
|
|
10452
|
+
$e(l) && x(E !== !1);
|
|
10453
10453
|
}
|
|
10454
10454
|
), ze(v, () => {
|
|
10455
|
-
x(
|
|
10455
|
+
x($e(b) !== !1);
|
|
10456
10456
|
}), ze(Ke(ce(b), i), ([E, k]) => {
|
|
10457
10457
|
E !== !1 && !k.atBottom && k.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && w("auto");
|
|
10458
10458
|
});
|
|
10459
|
-
const N = W(null),
|
|
10459
|
+
const N = W(null), A = Ce();
|
|
10460
10460
|
return oe(
|
|
10461
10461
|
Xr(
|
|
10462
|
-
|
|
10462
|
+
H(
|
|
10463
10463
|
ce(o),
|
|
10464
10464
|
J((E) => E?.length ?? 0)
|
|
10465
10465
|
),
|
|
10466
|
-
|
|
10466
|
+
H(ce(t))
|
|
10467
10467
|
),
|
|
10468
|
-
|
|
10468
|
+
A
|
|
10469
10469
|
), ze(
|
|
10470
|
-
|
|
10471
|
-
Ke(
|
|
10470
|
+
H(
|
|
10471
|
+
Ke(H(A, jt(1)), c),
|
|
10472
10472
|
Ne(ce(N), l, f, h),
|
|
10473
10473
|
J(([[E, k], y, C, I, z]) => k && C && y?.({ context: z, totalCount: E, scrollingInProgress: I })),
|
|
10474
10474
|
de((E) => !!E),
|
|
10475
10475
|
Tt(0)
|
|
10476
10476
|
),
|
|
10477
10477
|
(E) => {
|
|
10478
|
-
g !== null && (g(), g = null),
|
|
10479
|
-
|
|
10478
|
+
g !== null && (g(), g = null), $e(r) === void 0 ? g = yt(e, () => {
|
|
10479
|
+
$e(d)("scrolling into view", {}), ge(p, E), g = null;
|
|
10480
10480
|
}) : requestAnimationFrame(() => {
|
|
10481
|
-
|
|
10481
|
+
$e(d)("scrolling into view", {}), ge(p, E);
|
|
10482
10482
|
});
|
|
10483
10483
|
}
|
|
10484
10484
|
), { autoscrollToBottom: v, followOutput: b, scrollIntoViewOnChange: N };
|
|
10485
10485
|
},
|
|
10486
|
-
|
|
10486
|
+
He(
|
|
10487
10487
|
kt,
|
|
10488
10488
|
kn,
|
|
10489
10489
|
In,
|
|
@@ -10496,7 +10496,7 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10496
10496
|
)
|
|
10497
10497
|
), Bm = Te(
|
|
10498
10498
|
([{ data: e, firstItemIndex: t, gap: r, sizes: o }, { initialTopMostItemIndex: i }, { initialItemCount: a, listState: s }, { didMount: l }]) => (oe(
|
|
10499
|
-
|
|
10499
|
+
H(
|
|
10500
10500
|
l,
|
|
10501
10501
|
Ne(a),
|
|
10502
10502
|
de(([, c]) => c !== 0),
|
|
@@ -10505,13 +10505,13 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10505
10505
|
),
|
|
10506
10506
|
s
|
|
10507
10507
|
), {}),
|
|
10508
|
-
|
|
10508
|
+
He(kt, Sn, Gt, Ot),
|
|
10509
10509
|
{ singleton: !0 }
|
|
10510
10510
|
), _m = Te(
|
|
10511
10511
|
([{ didMount: e }, { scrollTo: t }, { listState: r }]) => {
|
|
10512
10512
|
const o = W(0);
|
|
10513
10513
|
return ze(
|
|
10514
|
-
|
|
10514
|
+
H(
|
|
10515
10515
|
e,
|
|
10516
10516
|
Ne(o),
|
|
10517
10517
|
de(([, i]) => i !== 0),
|
|
@@ -10519,7 +10519,7 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10519
10519
|
),
|
|
10520
10520
|
(i) => {
|
|
10521
10521
|
yt(
|
|
10522
|
-
|
|
10522
|
+
H(
|
|
10523
10523
|
r,
|
|
10524
10524
|
jt(1),
|
|
10525
10525
|
de((a) => a.items.length > 1)
|
|
@@ -10535,13 +10535,13 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10535
10535
|
initialScrollTop: o
|
|
10536
10536
|
};
|
|
10537
10537
|
},
|
|
10538
|
-
|
|
10538
|
+
He(Ot, dt, Gt),
|
|
10539
10539
|
{ singleton: !0 }
|
|
10540
10540
|
), tl = Te(
|
|
10541
10541
|
([{ scrollVelocity: e }]) => {
|
|
10542
10542
|
const t = W(!1), r = Ce(), o = W(!1);
|
|
10543
10543
|
return oe(
|
|
10544
|
-
|
|
10544
|
+
H(
|
|
10545
10545
|
e,
|
|
10546
10546
|
Ne(o, t, r),
|
|
10547
10547
|
de(([i, a]) => a !== !1 && a !== void 0),
|
|
@@ -10558,18 +10558,18 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10558
10558
|
),
|
|
10559
10559
|
t
|
|
10560
10560
|
), ze(
|
|
10561
|
-
|
|
10561
|
+
H(Ke(t, e, r), Ne(o)),
|
|
10562
10562
|
([[i, a, s], l]) => {
|
|
10563
10563
|
i && l !== !1 && l !== void 0 && l.change && l.change(a, s);
|
|
10564
10564
|
}
|
|
10565
10565
|
), { isSeeking: t, scrollSeekConfiguration: o, scrollSeekRangeChanged: r, scrollVelocity: e };
|
|
10566
10566
|
},
|
|
10567
|
-
|
|
10567
|
+
He(kn),
|
|
10568
10568
|
{ singleton: !0 }
|
|
10569
10569
|
), Mo = Te(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
10570
10570
|
const r = Ce(), o = Ce(), i = Ce(), a = W(!1), s = W(void 0);
|
|
10571
10571
|
return oe(
|
|
10572
|
-
|
|
10572
|
+
H(
|
|
10573
10573
|
Ke(r, o),
|
|
10574
10574
|
J(([{ scrollTop: l, viewportHeight: c }, { offsetTop: u, listHeight: d }]) => ({
|
|
10575
10575
|
scrollHeight: d,
|
|
@@ -10579,7 +10579,7 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10579
10579
|
),
|
|
10580
10580
|
e
|
|
10581
10581
|
), oe(
|
|
10582
|
-
|
|
10582
|
+
H(
|
|
10583
10583
|
t,
|
|
10584
10584
|
Ne(o),
|
|
10585
10585
|
J(([l, { offsetTop: c }]) => ({
|
|
@@ -10598,7 +10598,7 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10598
10598
|
windowScrollTo: i,
|
|
10599
10599
|
windowViewportRect: o
|
|
10600
10600
|
};
|
|
10601
|
-
},
|
|
10601
|
+
}, He(dt)), Hm = Te(
|
|
10602
10602
|
([
|
|
10603
10603
|
{ sizeRanges: e, sizes: t },
|
|
10604
10604
|
{ headerHeight: r, scrollTop: o },
|
|
@@ -10608,16 +10608,16 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10608
10608
|
]) => {
|
|
10609
10609
|
const u = Ce(), d = W(void 0), f = W(null), h = W(null);
|
|
10610
10610
|
return oe(l, f), oe(c, h), ze(
|
|
10611
|
-
|
|
10611
|
+
H(
|
|
10612
10612
|
u,
|
|
10613
10613
|
Ne(t, o, s, f, h, r)
|
|
10614
10614
|
),
|
|
10615
10615
|
([p, b, v, g, w, x, N]) => {
|
|
10616
|
-
const
|
|
10617
|
-
g && w !== null && x !== null && (v = w.scrollTop - x.offsetTop), v -= N, p({ ranges:
|
|
10616
|
+
const A = Cm(b.sizeTree);
|
|
10617
|
+
g && w !== null && x !== null && (v = w.scrollTop - x.offsetTop), v -= N, p({ ranges: A, scrollTop: v });
|
|
10618
10618
|
}
|
|
10619
|
-
), oe(
|
|
10620
|
-
|
|
10619
|
+
), oe(H(d, de(To), J($m)), i), oe(
|
|
10620
|
+
H(
|
|
10621
10621
|
a,
|
|
10622
10622
|
Ne(d),
|
|
10623
10623
|
de(([, p]) => p !== void 0),
|
|
@@ -10630,22 +10630,22 @@ const Om = (e, t) => typeof e == "function" ? Di(e(t)) : t && Di(e), Dm = Te(
|
|
|
10630
10630
|
restoreStateFrom: d
|
|
10631
10631
|
};
|
|
10632
10632
|
},
|
|
10633
|
-
|
|
10633
|
+
He(kt, dt, Sn, Ot, Mo)
|
|
10634
10634
|
);
|
|
10635
|
-
function
|
|
10635
|
+
function $m(e) {
|
|
10636
10636
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
10637
10637
|
}
|
|
10638
10638
|
const Wm = Te(([{ topItemsIndexes: e }]) => {
|
|
10639
10639
|
const t = W(0);
|
|
10640
10640
|
return oe(
|
|
10641
|
-
|
|
10641
|
+
H(
|
|
10642
10642
|
t,
|
|
10643
10643
|
de((r) => r >= 0),
|
|
10644
10644
|
J((r) => Array.from({ length: r }).map((o, i) => i))
|
|
10645
10645
|
),
|
|
10646
10646
|
e
|
|
10647
10647
|
), { topItemCount: t };
|
|
10648
|
-
},
|
|
10648
|
+
}, He(Gt));
|
|
10649
10649
|
function nl(e) {
|
|
10650
10650
|
let t = !1, r;
|
|
10651
10651
|
return (() => (t || (t = !0, r = e()), r));
|
|
@@ -10660,12 +10660,12 @@ const jm = nl(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10660
10660
|
{ recalcInProgress: b }
|
|
10661
10661
|
]) => {
|
|
10662
10662
|
const v = ht(
|
|
10663
|
-
|
|
10663
|
+
H(
|
|
10664
10664
|
c,
|
|
10665
10665
|
Ne(s),
|
|
10666
10666
|
It(
|
|
10667
|
-
([, w, x, N], [{ bottom:
|
|
10668
|
-
const I =
|
|
10667
|
+
([, w, x, N], [{ bottom: A, items: E, offsetBottom: k, totalCount: y }, C]) => {
|
|
10668
|
+
const I = A + k;
|
|
10669
10669
|
let z = 0;
|
|
10670
10670
|
return x === y && w.length > 0 && E.length > 0 && (E[0].originalIndex === 0 && w[0].originalIndex === 0 || (z = I - N, z !== 0 && (z += C))), [z, E, y, I];
|
|
10671
10671
|
},
|
|
@@ -10673,17 +10673,17 @@ const jm = nl(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10673
10673
|
),
|
|
10674
10674
|
de(([w]) => w !== 0),
|
|
10675
10675
|
Ne(o, l, r, i, p, b),
|
|
10676
|
-
de(([, w, x, N, , ,
|
|
10676
|
+
de(([, w, x, N, , , A]) => !A && !N && w !== 0 && x === xn),
|
|
10677
10677
|
J(([[w], , , , , x]) => (x("Upward scrolling compensation", { amount: w }, Xe.DEBUG), w))
|
|
10678
10678
|
)
|
|
10679
10679
|
);
|
|
10680
10680
|
function g(w) {
|
|
10681
10681
|
w > 0 ? (ge(t, { behavior: "auto", top: -w }), ge(e, 0)) : (ge(e, 0), ge(t, { behavior: "auto", top: -w }));
|
|
10682
10682
|
}
|
|
10683
|
-
return ze(
|
|
10683
|
+
return ze(H(v, Ne(e, a)), ([w, x, N]) => {
|
|
10684
10684
|
N && jm() ? ge(e, x - w) : g(-w);
|
|
10685
10685
|
}), ze(
|
|
10686
|
-
|
|
10686
|
+
H(
|
|
10687
10687
|
Ke(at(a, !1), e, b),
|
|
10688
10688
|
de(([w, x, N]) => !w && !N && x !== 0),
|
|
10689
10689
|
J(([w, x]) => x),
|
|
@@ -10691,23 +10691,23 @@ const jm = nl(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10691
10691
|
),
|
|
10692
10692
|
g
|
|
10693
10693
|
), oe(
|
|
10694
|
-
|
|
10694
|
+
H(
|
|
10695
10695
|
f,
|
|
10696
10696
|
J((w) => ({ top: -w }))
|
|
10697
10697
|
),
|
|
10698
10698
|
t
|
|
10699
10699
|
), ze(
|
|
10700
|
-
|
|
10700
|
+
H(
|
|
10701
10701
|
u,
|
|
10702
10702
|
Ne(h, d),
|
|
10703
|
-
J(([w, { groupIndices: x, lastSize: N, sizeTree:
|
|
10703
|
+
J(([w, { groupIndices: x, lastSize: N, sizeTree: A }, E]) => {
|
|
10704
10704
|
function k(L) {
|
|
10705
10705
|
return L * (N + E);
|
|
10706
10706
|
}
|
|
10707
10707
|
if (x.length === 0)
|
|
10708
10708
|
return k(w);
|
|
10709
10709
|
let y = 0;
|
|
10710
|
-
const C = gn(
|
|
10710
|
+
const C = gn(A, 0);
|
|
10711
10711
|
let I = 0, z = 0;
|
|
10712
10712
|
for (; I < w; ) {
|
|
10713
10713
|
I++, y += C;
|
|
@@ -10726,7 +10726,7 @@ const jm = nl(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10726
10726
|
}
|
|
10727
10727
|
), { deviation: e };
|
|
10728
10728
|
},
|
|
10729
|
-
|
|
10729
|
+
He(dt, kn, Gt, kt, Mt, Lo)
|
|
10730
10730
|
), Um = Te(
|
|
10731
10731
|
([
|
|
10732
10732
|
e,
|
|
@@ -10753,7 +10753,7 @@ const jm = nl(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10753
10753
|
...u,
|
|
10754
10754
|
...d
|
|
10755
10755
|
}),
|
|
10756
|
-
|
|
10756
|
+
He(
|
|
10757
10757
|
Po,
|
|
10758
10758
|
Bm,
|
|
10759
10759
|
Ot,
|
|
@@ -10788,16 +10788,16 @@ const jm = nl(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10788
10788
|
w,
|
|
10789
10789
|
x,
|
|
10790
10790
|
N,
|
|
10791
|
-
|
|
10791
|
+
A,
|
|
10792
10792
|
{ scrollToIndex: E },
|
|
10793
10793
|
k,
|
|
10794
10794
|
{ topItemCount: y },
|
|
10795
10795
|
{ groupCounts: C },
|
|
10796
10796
|
I
|
|
10797
10797
|
]) => {
|
|
10798
|
-
const { listState: z, minOverscanItemCount: L, topItemsIndexes: D, rangeChanged: P, ...R } =
|
|
10798
|
+
const { listState: z, minOverscanItemCount: L, topItemsIndexes: D, rangeChanged: P, ...R } = A;
|
|
10799
10799
|
return oe(P, I.scrollSeekRangeChanged), oe(
|
|
10800
|
-
|
|
10800
|
+
H(
|
|
10801
10801
|
I.windowViewportRect,
|
|
10802
10802
|
J((B) => B.visibleHeight)
|
|
10803
10803
|
),
|
|
@@ -10838,11 +10838,11 @@ const jm = nl(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10838
10838
|
...x
|
|
10839
10839
|
};
|
|
10840
10840
|
},
|
|
10841
|
-
|
|
10841
|
+
He(
|
|
10842
10842
|
kt,
|
|
10843
10843
|
Sn,
|
|
10844
10844
|
dt,
|
|
10845
|
-
|
|
10845
|
+
Hm,
|
|
10846
10846
|
Dm,
|
|
10847
10847
|
Gt,
|
|
10848
10848
|
In,
|
|
@@ -10862,7 +10862,7 @@ function Gm(e, t) {
|
|
|
10862
10862
|
Object.hasOwn(o, s) || (r[s] = t[s]);
|
|
10863
10863
|
return r;
|
|
10864
10864
|
}
|
|
10865
|
-
const
|
|
10865
|
+
const An = typeof document > "u" ? Q.useEffect : Q.useLayoutEffect;
|
|
10866
10866
|
function ol(e, t, r) {
|
|
10867
10867
|
const o = Object.keys(t.required || {}), i = Object.keys(t.optional || {}), a = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), l = Q.createContext({});
|
|
10868
10868
|
function c(g, w) {
|
|
@@ -10880,28 +10880,28 @@ function ol(e, t, r) {
|
|
|
10880
10880
|
}
|
|
10881
10881
|
function u(g) {
|
|
10882
10882
|
return a.reduce((w, x) => (w[x] = (N) => {
|
|
10883
|
-
const
|
|
10884
|
-
ge(
|
|
10883
|
+
const A = g[t.methods[x]];
|
|
10884
|
+
ge(A, N);
|
|
10885
10885
|
}, w), {});
|
|
10886
10886
|
}
|
|
10887
10887
|
function d(g) {
|
|
10888
10888
|
return s.reduce((w, x) => (w[x] = am(g[t.events[x]]), w), {});
|
|
10889
10889
|
}
|
|
10890
10890
|
const f = Q.forwardRef(function(g, w) {
|
|
10891
|
-
const { children: x, ...N } = g, [
|
|
10891
|
+
const { children: x, ...N } = g, [A] = Q.useState(() => hr(cm(e), (y) => {
|
|
10892
10892
|
c(y, N);
|
|
10893
|
-
})), [E] = Q.useState(ki(d,
|
|
10894
|
-
|
|
10893
|
+
})), [E] = Q.useState(ki(d, A));
|
|
10894
|
+
An(() => {
|
|
10895
10895
|
for (const y of s)
|
|
10896
10896
|
y in N && ze(E[y], N[y]);
|
|
10897
10897
|
return () => {
|
|
10898
10898
|
Object.values(E).map(Ro);
|
|
10899
10899
|
};
|
|
10900
|
-
}, [N, E,
|
|
10901
|
-
c(
|
|
10902
|
-
}), Q.useImperativeHandle(w, Si(u(
|
|
10900
|
+
}, [N, E, A]), An(() => {
|
|
10901
|
+
c(A, N);
|
|
10902
|
+
}), Q.useImperativeHandle(w, Si(u(A)));
|
|
10903
10903
|
const k = r;
|
|
10904
|
-
return /* @__PURE__ */ n(l.Provider, { value:
|
|
10904
|
+
return /* @__PURE__ */ n(l.Provider, { value: A, children: r === void 0 ? x : /* @__PURE__ */ n(k, { ...Gm([...o, ...i, ...s], N), children: x }) });
|
|
10905
10905
|
}), h = (g) => {
|
|
10906
10906
|
const w = Q.useContext(l);
|
|
10907
10907
|
return Q.useCallback(
|
|
@@ -10917,14 +10917,14 @@ function ol(e, t, r) {
|
|
|
10917
10917
|
);
|
|
10918
10918
|
return Q.useSyncExternalStore(
|
|
10919
10919
|
x,
|
|
10920
|
-
() =>
|
|
10921
|
-
() =>
|
|
10920
|
+
() => $e(w),
|
|
10921
|
+
() => $e(w)
|
|
10922
10922
|
);
|
|
10923
10923
|
}, b = (g) => {
|
|
10924
|
-
const w = Q.useContext(l)[g], [x, N] = Q.useState(ki(
|
|
10925
|
-
return
|
|
10926
|
-
() => ze(w, (
|
|
10927
|
-
|
|
10924
|
+
const w = Q.useContext(l)[g], [x, N] = Q.useState(ki($e, w));
|
|
10925
|
+
return An(
|
|
10926
|
+
() => ze(w, (A) => {
|
|
10927
|
+
A !== x && N(Si(A));
|
|
10928
10928
|
}),
|
|
10929
10929
|
[w, x]
|
|
10930
10930
|
), x;
|
|
@@ -10933,7 +10933,7 @@ function ol(e, t, r) {
|
|
|
10933
10933
|
Component: f,
|
|
10934
10934
|
useEmitter: (g, w) => {
|
|
10935
10935
|
const x = Q.useContext(l)[g];
|
|
10936
|
-
|
|
10936
|
+
An(() => ze(x, w), [w, x]);
|
|
10937
10937
|
},
|
|
10938
10938
|
useEmitterValue: v,
|
|
10939
10939
|
usePublisher: h
|
|
@@ -11018,7 +11018,7 @@ function Do(e) {
|
|
|
11018
11018
|
}
|
|
11019
11019
|
const qm = /* @__PURE__ */ Te(() => {
|
|
11020
11020
|
const e = W((l) => `Item ${l}`), t = W((l) => `Group ${l}`), r = W({}), o = W(Do), i = W("div"), a = W(an), s = (l, c = null) => at(
|
|
11021
|
-
|
|
11021
|
+
H(
|
|
11022
11022
|
r,
|
|
11023
11023
|
J((u) => u[l]),
|
|
11024
11024
|
_e()
|
|
@@ -11044,7 +11044,7 @@ const qm = /* @__PURE__ */ Te(() => {
|
|
|
11044
11044
|
};
|
|
11045
11045
|
}), Ym = /* @__PURE__ */ Te(
|
|
11046
11046
|
([e, t]) => ({ ...e, ...t }),
|
|
11047
|
-
|
|
11047
|
+
He(rl, qm)
|
|
11048
11048
|
), Xm = ({ height: e }) => /* @__PURE__ */ n("div", { style: { height: e } }), Qm = { overflowAnchor: "none", position: Oo(), zIndex: 1 }, cl = { overflowAnchor: "none" }, Jm = { ...cl, display: "inline-block", height: "100%" }, _i = /* @__PURE__ */ Q.memo(function({ showTopList: e = !1 }) {
|
|
11049
11049
|
const t = me("listState"), r = pt("sizeRanges"), o = me("useWindowScroll"), i = me("customScrollParent"), a = pt("windowScrollContainerState"), s = pt("scrollContainerState"), l = i || o ? a : s, c = me("itemContent"), u = me("context"), d = me("groupContent"), f = me("trackItemSizes"), h = me("itemSize"), p = me("log"), b = pt("gap"), v = me("horizontalDirection"), { callbackRef: g } = hm(
|
|
11050
11050
|
r,
|
|
@@ -11060,7 +11060,7 @@ const qm = /* @__PURE__ */ Te(() => {
|
|
|
11060
11060
|
_o("deviation", (R) => {
|
|
11061
11061
|
w !== R && x(R);
|
|
11062
11062
|
});
|
|
11063
|
-
const N = me("EmptyPlaceholder"),
|
|
11063
|
+
const N = me("EmptyPlaceholder"), A = me("ScrollSeekPlaceholder") ?? Xm, E = me("ListComponent"), k = me("ItemComponent"), y = me("GroupComponent"), C = me("computeItemKey"), I = me("isSeeking"), z = me("groupIndices").length > 0, L = me("alignToBottom"), D = me("initialItemFinalLocationReached"), P = e ? {} : {
|
|
11064
11064
|
boxSizing: "border-box",
|
|
11065
11065
|
...v ? {
|
|
11066
11066
|
display: "inline-block",
|
|
@@ -11086,9 +11086,9 @@ const qm = /* @__PURE__ */ Te(() => {
|
|
|
11086
11086
|
children: (e ? t.topItems : t.items).map((R) => {
|
|
11087
11087
|
const B = R.originalIndex, T = C(B + t.firstItemIndex, R.data, u);
|
|
11088
11088
|
return I ? /* @__PURE__ */ Mn(
|
|
11089
|
-
|
|
11089
|
+
A,
|
|
11090
11090
|
{
|
|
11091
|
-
...it(
|
|
11091
|
+
...it(A, u),
|
|
11092
11092
|
height: R.size,
|
|
11093
11093
|
index: R.index,
|
|
11094
11094
|
key: T,
|
|
@@ -11335,7 +11335,7 @@ const ip = ({ children: e }) => {
|
|
|
11335
11335
|
"Group ",
|
|
11336
11336
|
u
|
|
11337
11337
|
] })), o = W(null), i = W(null), a = W({}), s = W(Do), l = W(an), c = (u, d = null) => at(
|
|
11338
|
-
|
|
11338
|
+
H(
|
|
11339
11339
|
a,
|
|
11340
11340
|
J((f) => f[u]),
|
|
11341
11341
|
_e()
|
|
@@ -11363,9 +11363,9 @@ const ip = ({ children: e }) => {
|
|
|
11363
11363
|
GroupComponent: c("Group", "tr")
|
|
11364
11364
|
};
|
|
11365
11365
|
});
|
|
11366
|
-
|
|
11366
|
+
He(rl, hp);
|
|
11367
11367
|
Oo();
|
|
11368
|
-
const
|
|
11368
|
+
const Hi = {
|
|
11369
11369
|
bottom: 0,
|
|
11370
11370
|
itemHeight: 0,
|
|
11371
11371
|
items: [],
|
|
@@ -11381,7 +11381,7 @@ const $i = {
|
|
|
11381
11381
|
offsetBottom: 0,
|
|
11382
11382
|
offsetTop: 0,
|
|
11383
11383
|
top: 0
|
|
11384
|
-
}, { ceil:
|
|
11384
|
+
}, { ceil: $i, floor: Qn, max: hn, min: Lr, round: Wi } = Math;
|
|
11385
11385
|
function ji(e, t, r) {
|
|
11386
11386
|
return Array.from({ length: t - e + 1 }).map((o, i) => ({ data: r === null ? null : r[i + e], index: i + e }));
|
|
11387
11387
|
}
|
|
@@ -11391,7 +11391,7 @@ function pp(e) {
|
|
|
11391
11391
|
items: e
|
|
11392
11392
|
};
|
|
11393
11393
|
}
|
|
11394
|
-
function
|
|
11394
|
+
function Fn(e, t) {
|
|
11395
11395
|
return e !== void 0 && e.width === t.width && e.height === t.height;
|
|
11396
11396
|
}
|
|
11397
11397
|
function gp(e, t) {
|
|
@@ -11404,93 +11404,93 @@ const bp = /* @__PURE__ */ Te(
|
|
|
11404
11404
|
h,
|
|
11405
11405
|
p,
|
|
11406
11406
|
{ didMount: b, propsReady: v },
|
|
11407
|
-
{ customScrollParent: g, useWindowScroll: w, windowScrollContainerState: x, windowScrollTo: N, windowViewportRect:
|
|
11407
|
+
{ customScrollParent: g, useWindowScroll: w, windowScrollContainerState: x, windowScrollTo: N, windowViewportRect: A },
|
|
11408
11408
|
E
|
|
11409
11409
|
]) => {
|
|
11410
|
-
const k = W(0), y = W(0), C = W(
|
|
11410
|
+
const k = W(0), y = W(0), C = W(Hi), I = W({ height: 0, width: 0 }), z = W({ height: 0, width: 0 }), L = Ce(), D = Ce(), P = W(0), R = W(null), B = W({ column: 0, row: 0 }), T = Ce(), M = Ce(), q = W(!1), re = W(0), Y = W(!0), se = W(!1), ne = W(!1);
|
|
11411
11411
|
ze(
|
|
11412
|
-
|
|
11412
|
+
H(
|
|
11413
11413
|
b,
|
|
11414
11414
|
Ne(re),
|
|
11415
|
-
de(([
|
|
11415
|
+
de(([F, j]) => !to(j))
|
|
11416
11416
|
),
|
|
11417
11417
|
() => {
|
|
11418
11418
|
ge(Y, !1);
|
|
11419
11419
|
}
|
|
11420
11420
|
), ze(
|
|
11421
|
-
|
|
11421
|
+
H(
|
|
11422
11422
|
Ke(b, Y, z, I, re, se),
|
|
11423
|
-
de(([
|
|
11423
|
+
de(([F, j, G, ae, , U]) => F && !j && G.height !== 0 && ae.height !== 0 && !U)
|
|
11424
11424
|
),
|
|
11425
|
-
([, , , ,
|
|
11426
|
-
if (
|
|
11425
|
+
([, , , , F]) => {
|
|
11426
|
+
if (F === void 0) {
|
|
11427
11427
|
ge(Y, !0);
|
|
11428
11428
|
return;
|
|
11429
11429
|
}
|
|
11430
|
-
ge(se, !0),
|
|
11431
|
-
ge(L,
|
|
11432
|
-
}), yt(
|
|
11430
|
+
ge(se, !0), Ao(1, () => {
|
|
11431
|
+
ge(L, F);
|
|
11432
|
+
}), yt(H(u), () => {
|
|
11433
11433
|
ge(t, [0, 0]), ge(Y, !0);
|
|
11434
11434
|
});
|
|
11435
11435
|
}
|
|
11436
11436
|
), oe(
|
|
11437
|
-
|
|
11437
|
+
H(
|
|
11438
11438
|
M,
|
|
11439
|
-
de((
|
|
11439
|
+
de((F) => F != null && F.scrollTop > 0),
|
|
11440
11440
|
Ct(0)
|
|
11441
11441
|
),
|
|
11442
11442
|
y
|
|
11443
11443
|
), ze(
|
|
11444
|
-
|
|
11444
|
+
H(
|
|
11445
11445
|
b,
|
|
11446
11446
|
Ne(M),
|
|
11447
|
-
de(([,
|
|
11447
|
+
de(([, F]) => F != null)
|
|
11448
11448
|
),
|
|
11449
|
-
([,
|
|
11450
|
-
|
|
11449
|
+
([, F]) => {
|
|
11450
|
+
F && (ge(I, F.viewport), ge(z, F.item), ge(B, F.gap), F.scrollTop > 0 && (ge(q, !0), yt(H(u, jt(1)), (j) => {
|
|
11451
11451
|
ge(q, !1);
|
|
11452
|
-
}), ge(c, { top:
|
|
11452
|
+
}), ge(c, { top: F.scrollTop })));
|
|
11453
11453
|
}
|
|
11454
11454
|
), oe(
|
|
11455
|
-
|
|
11455
|
+
H(
|
|
11456
11456
|
I,
|
|
11457
|
-
J(({ height:
|
|
11457
|
+
J(({ height: F }) => F)
|
|
11458
11458
|
),
|
|
11459
11459
|
f
|
|
11460
11460
|
), oe(
|
|
11461
|
-
|
|
11461
|
+
H(
|
|
11462
11462
|
Ke(
|
|
11463
|
-
ce(I,
|
|
11464
|
-
ce(z,
|
|
11465
|
-
ce(B, (
|
|
11463
|
+
ce(I, Fn),
|
|
11464
|
+
ce(z, Fn),
|
|
11465
|
+
ce(B, (F, j) => F !== void 0 && F.column === j.column && F.row === j.row),
|
|
11466
11466
|
ce(u)
|
|
11467
11467
|
),
|
|
11468
|
-
J(([
|
|
11468
|
+
J(([F, j, G, ae]) => ({
|
|
11469
11469
|
gap: G,
|
|
11470
11470
|
item: j,
|
|
11471
11471
|
scrollTop: ae,
|
|
11472
|
-
viewport:
|
|
11472
|
+
viewport: F
|
|
11473
11473
|
}))
|
|
11474
11474
|
),
|
|
11475
11475
|
T
|
|
11476
11476
|
), oe(
|
|
11477
|
-
|
|
11477
|
+
H(
|
|
11478
11478
|
Ke(
|
|
11479
11479
|
ce(k),
|
|
11480
11480
|
o,
|
|
11481
11481
|
ce(B, gp),
|
|
11482
|
-
ce(z,
|
|
11483
|
-
ce(I,
|
|
11482
|
+
ce(z, Fn),
|
|
11483
|
+
ce(I, Fn),
|
|
11484
11484
|
ce(R),
|
|
11485
11485
|
ce(y),
|
|
11486
11486
|
ce(q),
|
|
11487
11487
|
ce(Y),
|
|
11488
11488
|
ce(re)
|
|
11489
11489
|
),
|
|
11490
|
-
de(([, , , , , , ,
|
|
11490
|
+
de(([, , , , , , , F]) => !F),
|
|
11491
11491
|
J(
|
|
11492
11492
|
([
|
|
11493
|
-
|
|
11493
|
+
F,
|
|
11494
11494
|
[j, G],
|
|
11495
11495
|
ae,
|
|
11496
11496
|
U,
|
|
@@ -11502,34 +11502,34 @@ const bp = /* @__PURE__ */ Te(
|
|
|
11502
11502
|
je
|
|
11503
11503
|
]) => {
|
|
11504
11504
|
const { column: Ge, row: lt } = ae, { height: ut, width: Ze } = U, { width: rt } = Z;
|
|
11505
|
-
if (Se === 0 && (
|
|
11506
|
-
return
|
|
11505
|
+
if (Se === 0 && (F === 0 || rt === 0))
|
|
11506
|
+
return Hi;
|
|
11507
11507
|
if (Ze === 0) {
|
|
11508
|
-
const Le =
|
|
11508
|
+
const Le = Fo(je, F), et = Le + Math.max(Se - 1, 0);
|
|
11509
11509
|
return pp(ji(Le, et, fe));
|
|
11510
11510
|
}
|
|
11511
11511
|
const le = hl(rt, Ze, Ge);
|
|
11512
11512
|
let Ee, Pe;
|
|
11513
|
-
ke ? j === 0 && G === 0 && Se > 0 ? (Ee = 0, Pe = Se - 1) : (Ee = le * Qn((j + lt) / (ut + lt)), Pe = le *
|
|
11514
|
-
const ot = ji(Ee, Pe, fe), { bottom: ee, top: O } = Vi(Z, ae, U, ot), X =
|
|
11513
|
+
ke ? j === 0 && G === 0 && Se > 0 ? (Ee = 0, Pe = Se - 1) : (Ee = le * Qn((j + lt) / (ut + lt)), Pe = le * $i((G + lt) / (ut + lt)) - 1, Pe = Lr(F - 1, hn(Pe, le - 1)), Ee = Lr(Pe, hn(0, Ee))) : (Ee = 0, Pe = -1);
|
|
11514
|
+
const ot = ji(Ee, Pe, fe), { bottom: ee, top: O } = Vi(Z, ae, U, ot), X = $i(F / le), be = X * ut + (X - 1) * lt - ee;
|
|
11515
11515
|
return { bottom: ee, itemHeight: ut, items: ot, itemWidth: Ze, offsetBottom: be, offsetTop: O, top: O };
|
|
11516
11516
|
}
|
|
11517
11517
|
)
|
|
11518
11518
|
),
|
|
11519
11519
|
C
|
|
11520
11520
|
), oe(
|
|
11521
|
-
|
|
11521
|
+
H(
|
|
11522
11522
|
R,
|
|
11523
|
-
de((
|
|
11524
|
-
J((
|
|
11523
|
+
de((F) => F !== null),
|
|
11524
|
+
J((F) => F.length)
|
|
11525
11525
|
),
|
|
11526
11526
|
k
|
|
11527
11527
|
), oe(
|
|
11528
|
-
|
|
11528
|
+
H(
|
|
11529
11529
|
Ke(I, z, C, B),
|
|
11530
|
-
de(([
|
|
11531
|
-
J(([
|
|
11532
|
-
const { bottom: U, top: Z } = Vi(
|
|
11530
|
+
de(([F, j, { items: G }]) => G.length > 0 && j.height !== 0 && F.height !== 0),
|
|
11531
|
+
J(([F, j, { items: G }, ae]) => {
|
|
11532
|
+
const { bottom: U, top: Z } = Vi(F, ae, j, G);
|
|
11533
11533
|
return [Z, U];
|
|
11534
11534
|
}),
|
|
11535
11535
|
_e(bn)
|
|
@@ -11538,51 +11538,51 @@ const bp = /* @__PURE__ */ Te(
|
|
|
11538
11538
|
);
|
|
11539
11539
|
const xe = W(!1);
|
|
11540
11540
|
oe(
|
|
11541
|
-
|
|
11541
|
+
H(
|
|
11542
11542
|
u,
|
|
11543
11543
|
Ne(xe),
|
|
11544
|
-
J(([
|
|
11544
|
+
J(([F, j]) => j || F !== 0)
|
|
11545
11545
|
),
|
|
11546
11546
|
xe
|
|
11547
11547
|
);
|
|
11548
11548
|
const ye = ht(
|
|
11549
|
-
|
|
11549
|
+
H(
|
|
11550
11550
|
Ke(C, k),
|
|
11551
|
-
de(([{ items:
|
|
11551
|
+
de(([{ items: F }]) => F.length > 0),
|
|
11552
11552
|
Ne(xe),
|
|
11553
|
-
de(([[
|
|
11554
|
-
const ae =
|
|
11555
|
-
return (G ||
|
|
11553
|
+
de(([[F, j], G]) => {
|
|
11554
|
+
const ae = F.items[F.items.length - 1].index === j - 1;
|
|
11555
|
+
return (G || F.bottom > 0 && F.itemHeight > 0 && F.offsetBottom === 0 && F.items.length === j) && ae;
|
|
11556
11556
|
}),
|
|
11557
|
-
J(([[,
|
|
11557
|
+
J(([[, F]]) => F - 1),
|
|
11558
11558
|
_e()
|
|
11559
11559
|
)
|
|
11560
|
-
),
|
|
11561
|
-
|
|
11560
|
+
), Fe = ht(
|
|
11561
|
+
H(
|
|
11562
11562
|
ce(C),
|
|
11563
|
-
de(({ items:
|
|
11563
|
+
de(({ items: F }) => F.length > 0 && F[0].index === 0),
|
|
11564
11564
|
Ct(0),
|
|
11565
11565
|
_e()
|
|
11566
11566
|
)
|
|
11567
11567
|
), we = ht(
|
|
11568
|
-
|
|
11568
|
+
H(
|
|
11569
11569
|
ce(C),
|
|
11570
11570
|
Ne(q),
|
|
11571
|
-
de(([{ items:
|
|
11572
|
-
J(([{ items:
|
|
11573
|
-
endIndex:
|
|
11574
|
-
startIndex:
|
|
11571
|
+
de(([{ items: F }, j]) => F.length > 0 && !j),
|
|
11572
|
+
J(([{ items: F }]) => ({
|
|
11573
|
+
endIndex: F[F.length - 1].index,
|
|
11574
|
+
startIndex: F[0].index
|
|
11575
11575
|
})),
|
|
11576
11576
|
_e(Vs),
|
|
11577
11577
|
Tt(0)
|
|
11578
11578
|
)
|
|
11579
11579
|
);
|
|
11580
11580
|
oe(we, p.scrollSeekRangeChanged), oe(
|
|
11581
|
-
|
|
11581
|
+
H(
|
|
11582
11582
|
L,
|
|
11583
11583
|
Ne(I, z, k, B),
|
|
11584
|
-
J(([
|
|
11585
|
-
const Z = Ys(
|
|
11584
|
+
J(([F, j, G, ae, U]) => {
|
|
11585
|
+
const Z = Ys(F), { align: fe, behavior: Se, offset: ke } = Z;
|
|
11586
11586
|
let je = Z.index;
|
|
11587
11587
|
je === "LAST" && (je = ae - 1), je = hn(0, je, Lr(ae - 1, je));
|
|
11588
11588
|
let Ge = no(j, U, G, je);
|
|
@@ -11592,16 +11592,16 @@ const bp = /* @__PURE__ */ Te(
|
|
|
11592
11592
|
c
|
|
11593
11593
|
);
|
|
11594
11594
|
const V = at(
|
|
11595
|
-
|
|
11595
|
+
H(
|
|
11596
11596
|
C,
|
|
11597
|
-
J((
|
|
11597
|
+
J((F) => F.offsetBottom + F.bottom)
|
|
11598
11598
|
),
|
|
11599
11599
|
0
|
|
11600
11600
|
);
|
|
11601
11601
|
return oe(
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
J((
|
|
11602
|
+
H(
|
|
11603
|
+
A,
|
|
11604
|
+
J((F) => ({ height: F.visibleHeight, width: F.visibleWidth }))
|
|
11605
11605
|
),
|
|
11606
11606
|
I
|
|
11607
11607
|
), {
|
|
@@ -11629,7 +11629,7 @@ const bp = /* @__PURE__ */ Te(
|
|
|
11629
11629
|
viewportDimensions: I,
|
|
11630
11630
|
windowScrollContainerState: x,
|
|
11631
11631
|
windowScrollTo: N,
|
|
11632
|
-
windowViewportRect:
|
|
11632
|
+
windowViewportRect: A,
|
|
11633
11633
|
...p,
|
|
11634
11634
|
// output
|
|
11635
11635
|
gridState: C,
|
|
@@ -11640,13 +11640,13 @@ const bp = /* @__PURE__ */ Te(
|
|
|
11640
11640
|
endReached: ye,
|
|
11641
11641
|
propsReady: v,
|
|
11642
11642
|
rangeChanged: we,
|
|
11643
|
-
startReached:
|
|
11643
|
+
startReached: Fe,
|
|
11644
11644
|
stateChanged: T,
|
|
11645
11645
|
stateRestoreInProgress: q,
|
|
11646
11646
|
...E
|
|
11647
11647
|
};
|
|
11648
11648
|
},
|
|
11649
|
-
|
|
11649
|
+
He(Po, dt, kn, tl, Ot, Mo, Mt)
|
|
11650
11650
|
);
|
|
11651
11651
|
function hl(e, t, r) {
|
|
11652
11652
|
return hn(1, Qn((e + r) / (Qn(t) + r)));
|
|
@@ -11664,7 +11664,7 @@ function no(e, t, r, o) {
|
|
|
11664
11664
|
}
|
|
11665
11665
|
const vp = /* @__PURE__ */ Te(() => {
|
|
11666
11666
|
const e = W((f) => `Item ${f}`), t = W({}), r = W(null), o = W("virtuoso-grid-item"), i = W("virtuoso-grid-list"), a = W(Do), s = W("div"), l = W(an), c = (f, h = null) => at(
|
|
11667
|
-
|
|
11667
|
+
H(
|
|
11668
11668
|
t,
|
|
11669
11669
|
J((p) => p[f]),
|
|
11670
11670
|
_e()
|
|
@@ -11691,7 +11691,7 @@ const vp = /* @__PURE__ */ Te(() => {
|
|
|
11691
11691
|
};
|
|
11692
11692
|
}), xp = /* @__PURE__ */ Te(
|
|
11693
11693
|
([e, t]) => ({ ...e, ...t }),
|
|
11694
|
-
|
|
11694
|
+
He(bp, vp)
|
|
11695
11695
|
), yp = /* @__PURE__ */ Q.memo(function() {
|
|
11696
11696
|
const e = Be("gridState"), t = Be("listClassName"), r = Be("itemClassName"), o = Be("itemContent"), i = Be("computeItemKey"), a = Be("isSeeking"), s = gt("scrollHeight"), l = Be("ItemComponent"), c = Be("ListComponent"), u = Be("ScrollSeekPlaceholder"), d = Be("context"), f = gt("itemDimensions"), h = gt("gap"), p = Be("log"), b = Be("stateRestoreInProgress"), v = gt("reportReadyState"), g = Ut(
|
|
11697
11697
|
Q.useMemo(
|
|
@@ -11700,8 +11700,8 @@ const vp = /* @__PURE__ */ Te(() => {
|
|
|
11700
11700
|
s(x);
|
|
11701
11701
|
const N = w.firstChild;
|
|
11702
11702
|
if (N !== null) {
|
|
11703
|
-
const { height:
|
|
11704
|
-
f({ height:
|
|
11703
|
+
const { height: A, width: E } = N.getBoundingClientRect();
|
|
11704
|
+
f({ height: A, width: E });
|
|
11705
11705
|
}
|
|
11706
11706
|
h({
|
|
11707
11707
|
column: Ui("column-gap", getComputedStyle(w).columnGap, p),
|
|
@@ -11878,7 +11878,7 @@ const zp = ({
|
|
|
11878
11878
|
prevCount: r,
|
|
11879
11879
|
count: o,
|
|
11880
11880
|
atBottom: i
|
|
11881
|
-
}) => i && o === r && t > e,
|
|
11881
|
+
}) => i && o === r && t > e, Ap = (e, t) => e ? t ? "auto" : "smooth" : !1, oo = 80, Fp = 0.5, Pp = 1.5;
|
|
11882
11882
|
function Mp({
|
|
11883
11883
|
rows: e,
|
|
11884
11884
|
indexById: t,
|
|
@@ -11893,11 +11893,11 @@ function Mp({
|
|
|
11893
11893
|
conversationKey: d,
|
|
11894
11894
|
reducedMotion: f
|
|
11895
11895
|
}) {
|
|
11896
|
-
const h = _(null), p = _(null), b = _(null), v = _(e.length), g = _(ro), w = _(0), x = _(d), N = _(null),
|
|
11896
|
+
const h = _(null), p = _(null), b = _(null), v = _(e.length), g = _(ro), w = _(0), x = _(d), N = _(null), A = _(!1);
|
|
11897
11897
|
if (b.current === null)
|
|
11898
11898
|
b.current = zr(o);
|
|
11899
11899
|
else if (x.current !== d)
|
|
11900
|
-
x.current = d, w.current += 1, g.current = ro, b.current = zr(o), N.current = null,
|
|
11900
|
+
x.current = d, w.current += 1, g.current = ro, b.current = zr(o), N.current = null, A.current = !1;
|
|
11901
11901
|
else {
|
|
11902
11902
|
const ee = zr(o), O = Rp(b.current, ee);
|
|
11903
11903
|
O !== "none" && (g.current = Ep(
|
|
@@ -11905,7 +11905,7 @@ function Mp({
|
|
|
11905
11905
|
O,
|
|
11906
11906
|
v.current,
|
|
11907
11907
|
e.length
|
|
11908
|
-
), (O === "replace" || O === "initial") && (w.current += 1), O === "append" && !l && o[o.length - 1]?.isMine && (
|
|
11908
|
+
), (O === "replace" || O === "initial") && (w.current += 1), O === "append" && !l && o[o.length - 1]?.isMine && (A.current = !0), b.current = ee);
|
|
11909
11909
|
}
|
|
11910
11910
|
v.current = e.length;
|
|
11911
11911
|
const E = `${d}:${w.current}`, k = _(
|
|
@@ -11926,7 +11926,7 @@ function Mp({
|
|
|
11926
11926
|
}
|
|
11927
11927
|
k.current = { key: E, location: O };
|
|
11928
11928
|
}
|
|
11929
|
-
const y = k.current.location, C = y.index === "LAST", [I, z] =
|
|
11929
|
+
const y = k.current.location, C = y.index === "LAST", [I, z] = $(C), [L, D] = $(!0), [P, R] = $(!1), [B, T] = $(!1), [M, q] = $(null), re = _(C), Y = _(!1), se = _(
|
|
11930
11930
|
C ? 0 : Number.POSITIVE_INFINITY
|
|
11931
11931
|
), ne = _(E);
|
|
11932
11932
|
ne.current !== E && (ne.current = E, re.current = C, Y.current = !1, se.current = C ? 0 : Number.POSITIVE_INFINITY, z(C), D(!0), R(!1), T(!1), q(null));
|
|
@@ -11934,12 +11934,12 @@ function Mp({
|
|
|
11934
11934
|
re.current = ee, z(ee);
|
|
11935
11935
|
}, []), ye = K((ee) => {
|
|
11936
11936
|
D(ee);
|
|
11937
|
-
}, []),
|
|
11938
|
-
(ee) =>
|
|
11937
|
+
}, []), Fe = K(
|
|
11938
|
+
(ee) => Ap(ee, f),
|
|
11939
11939
|
[f]
|
|
11940
|
-
), we = I && !l ?
|
|
11940
|
+
), we = I && !l ? Fe : !1, V = K(() => {
|
|
11941
11941
|
i && !a && s();
|
|
11942
|
-
}, [i, a, s]),
|
|
11942
|
+
}, [i, a, s]), F = K(() => {
|
|
11943
11943
|
l && !c && u?.();
|
|
11944
11944
|
}, [l, c, u]), j = _(null), G = K(() => {
|
|
11945
11945
|
const ee = p.current;
|
|
@@ -11949,7 +11949,7 @@ function Mp({
|
|
|
11949
11949
|
if (!O) return;
|
|
11950
11950
|
const X = O.scrollHeight - O.scrollTop - O.clientHeight;
|
|
11951
11951
|
se.current = X, R(
|
|
11952
|
-
X > O.clientHeight *
|
|
11952
|
+
X > O.clientHeight * Fp
|
|
11953
11953
|
);
|
|
11954
11954
|
const be = O.getBoundingClientRect().top;
|
|
11955
11955
|
let Le = null;
|
|
@@ -12031,7 +12031,7 @@ function Mp({
|
|
|
12031
12031
|
const O = t.get(ee.id);
|
|
12032
12032
|
O != null && (N.current = null, h.current?.scrollToIndex({ index: O, align: "center" }));
|
|
12033
12033
|
}, [t]), ar(() => {
|
|
12034
|
-
|
|
12034
|
+
A.current && (A.current = !1, !re.current && Ze());
|
|
12035
12035
|
});
|
|
12036
12036
|
const Pe = _(null), ot = K(
|
|
12037
12037
|
(ee) => {
|
|
@@ -12060,7 +12060,7 @@ function Mp({
|
|
|
12060
12060
|
handleAtBottomChange: xe,
|
|
12061
12061
|
handleAtTopChange: ye,
|
|
12062
12062
|
handleStartReached: V,
|
|
12063
|
-
handleEndReached:
|
|
12063
|
+
handleEndReached: F,
|
|
12064
12064
|
handleItemsRendered: ot,
|
|
12065
12065
|
handleTotalListHeightChanged: Se,
|
|
12066
12066
|
atBottom: I,
|
|
@@ -12074,7 +12074,7 @@ function Mp({
|
|
|
12074
12074
|
};
|
|
12075
12075
|
}
|
|
12076
12076
|
const Op = 1440 * 60 * 1e3, Gi = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime();
|
|
12077
|
-
function
|
|
12077
|
+
function Ho(e, t) {
|
|
12078
12078
|
return Math.round((Gi(t) - Gi(e)) / Op);
|
|
12079
12079
|
}
|
|
12080
12080
|
function pr(e, t) {
|
|
@@ -12084,7 +12084,7 @@ function pr(e, t) {
|
|
|
12084
12084
|
}).format(e);
|
|
12085
12085
|
}
|
|
12086
12086
|
function pl(e, t, r, o) {
|
|
12087
|
-
const i =
|
|
12087
|
+
const i = Ho(e, t);
|
|
12088
12088
|
if (i <= 0) return r.today;
|
|
12089
12089
|
if (i === 1) return r.yesterday;
|
|
12090
12090
|
if (i < 7)
|
|
@@ -12100,13 +12100,13 @@ function Jn(e, t, r, o) {
|
|
|
12100
12100
|
return `${pl(e, t, r, o)} ${pr(e, o)}`;
|
|
12101
12101
|
}
|
|
12102
12102
|
function Dp(e, t, r, o) {
|
|
12103
|
-
return
|
|
12103
|
+
return Ho(e, t) <= 0 ? pr(e, o) : Jn(e, t, r, o);
|
|
12104
12104
|
}
|
|
12105
|
-
const Bp = (e, t) => t ?
|
|
12105
|
+
const Bp = (e, t) => t ? Ho(
|
|
12106
12106
|
new Date(t.createdAt),
|
|
12107
12107
|
new Date(e.createdAt)
|
|
12108
12108
|
) !== 0 : !0, _p = (e, t) => e.type !== t.type ? !1 : e.type === "separator" && t.type === "separator" ? e.at === t.at : e.type === "system" && t.type === "system" ? e.message === t.message : e.type === "message" && t.type === "message" ? e.message === t.message && e.isFirstOfRun === t.isFirstOfRun && e.isLastOfRun === t.isLastOfRun && e.isLastMessage === t.isLastMessage : e.type === "divider";
|
|
12109
|
-
function
|
|
12109
|
+
function Hp(e, t = {}) {
|
|
12110
12110
|
const { dividerId: r = null, previousRows: o } = t, i = [], a = /* @__PURE__ */ new Map();
|
|
12111
12111
|
let s = -1, l, c = -1;
|
|
12112
12112
|
for (let d = e.length - 1; d >= 0; d--)
|
|
@@ -12148,7 +12148,7 @@ function $p(e, t = {}) {
|
|
|
12148
12148
|
}
|
|
12149
12149
|
return { rows: i, indexById: a, rowCache: u };
|
|
12150
12150
|
}
|
|
12151
|
-
function
|
|
12151
|
+
function $p(e, t) {
|
|
12152
12152
|
if (t === null) return [];
|
|
12153
12153
|
const r = [];
|
|
12154
12154
|
for (let o = e.length - 1; o >= 0; o--) {
|
|
@@ -12374,7 +12374,7 @@ const Wp = (e) => {
|
|
|
12374
12374
|
]
|
|
12375
12375
|
}
|
|
12376
12376
|
) });
|
|
12377
|
-
}, qp = Ma(Kp),
|
|
12377
|
+
}, qp = Ma(Kp), Ar = ({
|
|
12378
12378
|
label: e,
|
|
12379
12379
|
value: t
|
|
12380
12380
|
}) => /* @__PURE__ */ m("div", { className: "flex flex-col items-start", children: [
|
|
@@ -12405,7 +12405,7 @@ const Wp = (e) => {
|
|
|
12405
12405
|
] }),
|
|
12406
12406
|
/* @__PURE__ */ m("div", { className: "flex flex-col gap-4 px-3 py-3", children: [
|
|
12407
12407
|
e.isMine && (s ? /* @__PURE__ */ n(
|
|
12408
|
-
|
|
12408
|
+
Ar,
|
|
12409
12409
|
{
|
|
12410
12410
|
label: r.t(
|
|
12411
12411
|
(e.readByCount ?? 0) === 1 ? "chat.readBy.one" : "chat.readBy.other",
|
|
@@ -12413,14 +12413,14 @@ const Wp = (e) => {
|
|
|
12413
12413
|
)
|
|
12414
12414
|
}
|
|
12415
12415
|
) : e.readAt && /* @__PURE__ */ n(
|
|
12416
|
-
|
|
12416
|
+
Ar,
|
|
12417
12417
|
{
|
|
12418
12418
|
label: r.chat.read,
|
|
12419
12419
|
value: Jn(new Date(e.readAt), a, i)
|
|
12420
12420
|
}
|
|
12421
12421
|
)),
|
|
12422
12422
|
/* @__PURE__ */ n(
|
|
12423
|
-
|
|
12423
|
+
Ar,
|
|
12424
12424
|
{
|
|
12425
12425
|
label: r.chat.delivered,
|
|
12426
12426
|
value: Jn(new Date(e.createdAt), a, i)
|
|
@@ -12459,9 +12459,9 @@ const Wp = (e) => {
|
|
|
12459
12459
|
editWindowMs: u,
|
|
12460
12460
|
retryMessage: d,
|
|
12461
12461
|
capabilities: f
|
|
12462
|
-
} = dr(), { setReplyTo: h } = Ss(), { setEditingMessage: p } = ks(), [b, v] =
|
|
12462
|
+
} = dr(), { setReplyTo: h } = Ss(), { setEditingMessage: p } = ks(), [b, v] = $("menu"), g = u == null || Date.now() - new Date(e.createdAt).getTime() <= u, w = (e.attachments ?? []).some(
|
|
12463
12463
|
(L) => L.kind === "voice"
|
|
12464
|
-
), x = !e.deleted && !w && !!c && (f?.canEditMessage ? f.canEditMessage(e) : t && g), N = f?.canDeleteMessage ? f.canDeleteMessage(e) : t,
|
|
12464
|
+
), x = !e.deleted && !w && !!c && (f?.canEditMessage ? f.canEditMessage(e) : t && g), N = f?.canDeleteMessage ? f.canDeleteMessage(e) : t, A = f?.canReact !== !1, E = (L) => {
|
|
12465
12465
|
o(L), L || v("menu");
|
|
12466
12466
|
}, k = (L) => {
|
|
12467
12467
|
a(e.id, L), E(!1);
|
|
@@ -12532,7 +12532,7 @@ const Wp = (e) => {
|
|
|
12532
12532
|
onBack: () => v("menu")
|
|
12533
12533
|
}
|
|
12534
12534
|
) : /* @__PURE__ */ m(De, { children: [
|
|
12535
|
-
|
|
12535
|
+
A && /* @__PURE__ */ m(De, { children: [
|
|
12536
12536
|
/* @__PURE__ */ m("div", { className: "flex items-center justify-between p-2", children: [
|
|
12537
12537
|
Xp.map((L) => /* @__PURE__ */ n(
|
|
12538
12538
|
Ie,
|
|
@@ -12628,8 +12628,8 @@ const Wp = (e) => {
|
|
|
12628
12628
|
}
|
|
12629
12629
|
)
|
|
12630
12630
|
] });
|
|
12631
|
-
}, Jp = tn(() => import("./ChatPdfThumbnail-
|
|
12632
|
-
const [t, r] =
|
|
12631
|
+
}, Jp = tn(() => import("./ChatPdfThumbnail-950d7Iex.js")), Zp = tn(() => import("./ChatSheetThumbnail-BvnxT-4A.js")), eg = tn(() => import("./ChatDocxThumbnail-0UzuQ7VD.js")), tg = tn(() => import("./ChatTextThumbnail-yVt_iYi7.js")), Fr = 288, ng = 160, rg = (e) => {
|
|
12632
|
+
const [t, r] = $(!1);
|
|
12633
12633
|
return te(() => {
|
|
12634
12634
|
const o = e.current;
|
|
12635
12635
|
if (!o || t) return;
|
|
@@ -12646,7 +12646,7 @@ const Wp = (e) => {
|
|
|
12646
12646
|
kind: t,
|
|
12647
12647
|
cornerClass: r = "rounded-xl"
|
|
12648
12648
|
}) => {
|
|
12649
|
-
const o = pe(), i = nt(), { openDocumentPreview: a } = Es(), s = _(null), l = rg(s), [c, u] =
|
|
12649
|
+
const o = pe(), i = nt(), { openDocumentPreview: a } = Es(), s = _(null), l = rg(s), [c, u] = $(!1), [d, f] = $(!1);
|
|
12650
12650
|
return c ? /* @__PURE__ */ n(
|
|
12651
12651
|
fo,
|
|
12652
12652
|
{
|
|
@@ -12668,7 +12668,7 @@ const Wp = (e) => {
|
|
|
12668
12668
|
"flex max-w-full flex-col overflow-hidden border border-solid border-f1-border-secondary bg-f1-background",
|
|
12669
12669
|
r
|
|
12670
12670
|
),
|
|
12671
|
-
style: { width:
|
|
12671
|
+
style: { width: Fr },
|
|
12672
12672
|
"data-testid": "chat-document-attachment",
|
|
12673
12673
|
children: [
|
|
12674
12674
|
/* @__PURE__ */ m("div", { className: "flex items-center gap-2 py-2 px-2", children: [
|
|
@@ -12716,7 +12716,7 @@ const Wp = (e) => {
|
|
|
12716
12716
|
Jp,
|
|
12717
12717
|
{
|
|
12718
12718
|
url: e.url,
|
|
12719
|
-
width:
|
|
12719
|
+
width: Fr - 2,
|
|
12720
12720
|
onError: () => u(!0),
|
|
12721
12721
|
onRendered: () => f(!0)
|
|
12722
12722
|
}
|
|
@@ -12733,7 +12733,7 @@ const Wp = (e) => {
|
|
|
12733
12733
|
eg,
|
|
12734
12734
|
{
|
|
12735
12735
|
url: e.url,
|
|
12736
|
-
width:
|
|
12736
|
+
width: Fr - 2,
|
|
12737
12737
|
onError: () => u(!0),
|
|
12738
12738
|
onRendered: () => f(!0)
|
|
12739
12739
|
}
|
|
@@ -12755,7 +12755,7 @@ const Wp = (e) => {
|
|
|
12755
12755
|
]
|
|
12756
12756
|
}
|
|
12757
12757
|
);
|
|
12758
|
-
}, ig = tn(() => import("./LocationMap-
|
|
12758
|
+
}, ig = tn(() => import("./LocationMap-FSCZLFpn.js")), ag = 200, sg = ({ latitude: e, longitude: t }) => `https://www.google.com/maps?q=${e},${t}`, lg = ({
|
|
12759
12759
|
location: e,
|
|
12760
12760
|
cornerClass: t = "rounded-xl"
|
|
12761
12761
|
}) => {
|
|
@@ -12824,7 +12824,7 @@ const Wp = (e) => {
|
|
|
12824
12824
|
{ length: io },
|
|
12825
12825
|
(e, t) => 0.3 + 0.25 * Math.abs(Math.sin(t / 2.4))
|
|
12826
12826
|
), fg = (e) => {
|
|
12827
|
-
const [t, r] =
|
|
12827
|
+
const [t, r] = $(ug);
|
|
12828
12828
|
return te(() => {
|
|
12829
12829
|
const o = typeof window < "u" ? window.AudioContext ?? window.webkitAudioContext : void 0;
|
|
12830
12830
|
if (!o) return;
|
|
@@ -12855,7 +12855,7 @@ const Wp = (e) => {
|
|
|
12855
12855
|
cornerClass: r = "rounded-xl",
|
|
12856
12856
|
className: o
|
|
12857
12857
|
}) => {
|
|
12858
|
-
const i = pe(), a = _(null), s = Kd(a), l = fg(e.url), [c, u] =
|
|
12858
|
+
const i = pe(), a = _(null), s = Kd(a), l = fg(e.url), [c, u] = $(0), d = _(null), f = s.duration > 0 ? s.duration : e.durationSeconds ?? 0, h = f > 0 ? Math.min(1, s.currentTime / f) : 0, p = K(() => {
|
|
12859
12859
|
if (s.isPlaying) {
|
|
12860
12860
|
s.pause();
|
|
12861
12861
|
return;
|
|
@@ -12991,10 +12991,10 @@ const Wp = (e) => {
|
|
|
12991
12991
|
t,
|
|
12992
12992
|
r && l.length === 0 && f.length === 0 && k === 0,
|
|
12993
12993
|
k === h.length - 1 && !x
|
|
12994
|
-
),
|
|
12994
|
+
), A = d.length > 0 || b || !o, E = (k) => qt(
|
|
12995
12995
|
t,
|
|
12996
12996
|
r && l.length === 0 && f.length === 0 && h.length === 0 && k === 0,
|
|
12997
|
-
k === u.length - 1 && !
|
|
12997
|
+
k === u.length - 1 && !A
|
|
12998
12998
|
);
|
|
12999
12999
|
return /* @__PURE__ */ m(
|
|
13000
13000
|
"div",
|
|
@@ -13106,7 +13106,7 @@ const Wp = (e) => {
|
|
|
13106
13106
|
initial: o ? !1 : { scale: 0.9, opacity: 0 },
|
|
13107
13107
|
animate: { scale: 1, opacity: 1 },
|
|
13108
13108
|
exit: o ? void 0 : { scale: 0.9, opacity: 0, transition: zs },
|
|
13109
|
-
transition: { ...Co, layout:
|
|
13109
|
+
transition: { ...Co, layout: As },
|
|
13110
13110
|
children: /* @__PURE__ */ n(
|
|
13111
13111
|
Ja,
|
|
13112
13112
|
{
|
|
@@ -13139,7 +13139,7 @@ const Wp = (e) => {
|
|
|
13139
13139
|
}
|
|
13140
13140
|
);
|
|
13141
13141
|
}, gg = 500, bg = ({ sentAt: e }) => {
|
|
13142
|
-
const [t, r] =
|
|
13142
|
+
const [t, r] = $(!1);
|
|
13143
13143
|
return te(() => {
|
|
13144
13144
|
const o = setTimeout(() => r(!0), gg);
|
|
13145
13145
|
return () => clearTimeout(o);
|
|
@@ -13172,7 +13172,7 @@ const Wp = (e) => {
|
|
|
13172
13172
|
isFirstOfRun: a = !0,
|
|
13173
13173
|
isLastOfRun: s = !0
|
|
13174
13174
|
}) => {
|
|
13175
|
-
const l = pe(), c = nt(), [u, d] =
|
|
13175
|
+
const l = pe(), c = nt(), [u, d] = $(!1), { highlightedId: f } = Lh(), { currentUserId: h } = dr(), p = f === e.id, b = !e.deleted && (e.reactions?.length ?? 0) > 0, v = _(b), g = _(e.status === "failed");
|
|
13176
13176
|
te(() => {
|
|
13177
13177
|
v.current = !1;
|
|
13178
13178
|
}, []);
|
|
@@ -13380,7 +13380,7 @@ const Wp = (e) => {
|
|
|
13380
13380
|
spacingClass: o,
|
|
13381
13381
|
entryState: i
|
|
13382
13382
|
}) => {
|
|
13383
|
-
const a = pe(), s = nt(), [l] =
|
|
13383
|
+
const a = pe(), s = nt(), [l] = $(() => i?.fresh ?? !0);
|
|
13384
13384
|
if (te(() => {
|
|
13385
13385
|
i && (i.fresh = !1);
|
|
13386
13386
|
}, [i]), e.length === 0) return null;
|
|
@@ -13498,7 +13498,7 @@ const Wp = (e) => {
|
|
|
13498
13498
|
typingLeaving: s = !1,
|
|
13499
13499
|
typingEntry: l
|
|
13500
13500
|
}) => {
|
|
13501
|
-
const c = Tg(e, r), [u] =
|
|
13501
|
+
const c = Tg(e, r), [u] = $(() => {
|
|
13502
13502
|
if (!o) return null;
|
|
13503
13503
|
if (e.type === "message" || e.type === "system") {
|
|
13504
13504
|
const N = a.get(e.message.id);
|
|
@@ -13584,7 +13584,7 @@ const Wp = (e) => {
|
|
|
13584
13584
|
if (o.type === "separator") return o.at;
|
|
13585
13585
|
}
|
|
13586
13586
|
return null;
|
|
13587
|
-
},
|
|
13587
|
+
}, Ag = Ae(function({ style: t, children: r, className: o, context: i, ...a }, s) {
|
|
13588
13588
|
return /* @__PURE__ */ m(
|
|
13589
13589
|
gd,
|
|
13590
13590
|
{
|
|
@@ -13609,7 +13609,7 @@ const Wp = (e) => {
|
|
|
13609
13609
|
]
|
|
13610
13610
|
}
|
|
13611
13611
|
);
|
|
13612
|
-
}),
|
|
13612
|
+
}), Fg = Ae(function(t, r) {
|
|
13613
13613
|
return /* @__PURE__ */ n(
|
|
13614
13614
|
"div",
|
|
13615
13615
|
{
|
|
@@ -13633,10 +13633,10 @@ const Wp = (e) => {
|
|
|
13633
13633
|
unreadCount: f,
|
|
13634
13634
|
firstUnreadId: h,
|
|
13635
13635
|
markRead: p
|
|
13636
|
-
} = rn(), b = nt(), v = r.type === "group", { registerScrollToMessage: g } = Is(), [w, x] =
|
|
13637
|
-
E.current !== r.id && (E.current = r.id,
|
|
13636
|
+
} = rn(), b = nt(), v = r.type === "group", { registerScrollToMessage: g } = Is(), [w, x] = $(!1), [N, A] = $(h), E = _(r.id);
|
|
13637
|
+
E.current !== r.id && (E.current = r.id, A(h));
|
|
13638
13638
|
const k = _(void 0), { rows: y, indexById: C } = he(() => {
|
|
13639
|
-
const Re =
|
|
13639
|
+
const Re = Hp(t, {
|
|
13640
13640
|
dividerId: N,
|
|
13641
13641
|
previousRows: k.current
|
|
13642
13642
|
});
|
|
@@ -13645,7 +13645,7 @@ const Wp = (e) => {
|
|
|
13645
13645
|
L.current !== r.id && (L.current = r.id, I.current.clear(), z.current = null);
|
|
13646
13646
|
const D = t[t.length - 1]?.id ?? null;
|
|
13647
13647
|
if (z.current !== D) {
|
|
13648
|
-
const Re =
|
|
13648
|
+
const Re = $p(t, z.current);
|
|
13649
13649
|
Re.length > 0 && (I.current.clear(), Re.forEach((mt, Il) => I.current.set(mt, Il))), z.current = D;
|
|
13650
13650
|
}
|
|
13651
13651
|
const P = t[t.length - 1], R = P && qn(P) ? P : void 0, B = _(P?.id ?? null), T = _(/* @__PURE__ */ new Set());
|
|
@@ -13658,22 +13658,22 @@ const Wp = (e) => {
|
|
|
13658
13658
|
users: M
|
|
13659
13659
|
});
|
|
13660
13660
|
re.current.key !== q && (re.current = { key: q, users: M });
|
|
13661
|
-
const Y = re.current.users, se = Y.length > 0, [ne, xe] =
|
|
13662
|
-
se && (
|
|
13663
|
-
const we = R != null && R.id !== B.current && !R.isMine &&
|
|
13661
|
+
const Y = re.current.users, se = Y.length > 0, [ne, xe] = $(!1), ye = _(se), Fe = _(Y);
|
|
13662
|
+
se && (Fe.current = Y);
|
|
13663
|
+
const we = R != null && R.id !== B.current && !R.isMine && Fe.current.some((Re) => Re.id === R.author.id);
|
|
13664
13664
|
ye.current !== se ? (ye.current = se, xe(!se && !b && !we)) : ne && we && xe(!1), B.current = P?.id ?? null, te(() => {
|
|
13665
13665
|
if (!ne) return;
|
|
13666
13666
|
const Re = setTimeout(() => xe(!1), Lg);
|
|
13667
13667
|
return () => clearTimeout(Re);
|
|
13668
13668
|
}, [ne]);
|
|
13669
|
-
const V = se || ne,
|
|
13670
|
-
j.current !== V && (j.current = V, V && (
|
|
13669
|
+
const V = se || ne, F = _({ fresh: !1 }), j = _(V);
|
|
13670
|
+
j.current !== V && (j.current = V, V && (F.current.fresh = !0));
|
|
13671
13671
|
const G = he(() => {
|
|
13672
13672
|
const Re = [...y];
|
|
13673
13673
|
return R && Re.push({ type: "footer", key: "status-footer", message: R }), V && Re.push({
|
|
13674
13674
|
type: "typing",
|
|
13675
13675
|
key: "typing",
|
|
13676
|
-
users: se ? Y :
|
|
13676
|
+
users: se ? Y : Fe.current
|
|
13677
13677
|
}), Re;
|
|
13678
13678
|
}, [y, R, Y, se, V]), {
|
|
13679
13679
|
virtuosoRef: ae,
|
|
@@ -13752,7 +13752,7 @@ const Wp = (e) => {
|
|
|
13752
13752
|
animatedIds: Nl,
|
|
13753
13753
|
freshIds: I.current,
|
|
13754
13754
|
typingLeaving: mt.type === "typing" ? ne : !1,
|
|
13755
|
-
typingEntry:
|
|
13755
|
+
typingEntry: F.current
|
|
13756
13756
|
}
|
|
13757
13757
|
) : null,
|
|
13758
13758
|
firstItemIndex: Z,
|
|
@@ -13769,8 +13769,8 @@ const Wp = (e) => {
|
|
|
13769
13769
|
defaultItemHeight: 48,
|
|
13770
13770
|
context: et,
|
|
13771
13771
|
components: {
|
|
13772
|
-
Scroller:
|
|
13773
|
-
List:
|
|
13772
|
+
Scroller: Ag,
|
|
13773
|
+
List: Fg,
|
|
13774
13774
|
Footer: Pg
|
|
13775
13775
|
},
|
|
13776
13776
|
className: S(
|
|
@@ -13900,7 +13900,7 @@ const Wp = (e) => {
|
|
|
13900
13900
|
}
|
|
13901
13901
|
)
|
|
13902
13902
|
] }) });
|
|
13903
|
-
},
|
|
13903
|
+
}, Hg = () => {
|
|
13904
13904
|
const e = pe();
|
|
13905
13905
|
return /* @__PURE__ */ n("div", { className: "flex h-full flex-1 items-center justify-center p-6", children: /* @__PURE__ */ n(
|
|
13906
13906
|
Ba,
|
|
@@ -13910,13 +13910,13 @@ const Wp = (e) => {
|
|
|
13910
13910
|
description: e.chat.emptyConversationDescription
|
|
13911
13911
|
}
|
|
13912
13912
|
) });
|
|
13913
|
-
}, Pn = (e) => e.dataTransfer?.types?.includes("Files"),
|
|
13913
|
+
}, Pn = (e) => e.dataTransfer?.types?.includes("Files"), $g = ({
|
|
13914
13914
|
isFullscreen: e,
|
|
13915
13915
|
onToggleFullscreen: t,
|
|
13916
13916
|
onClose: r,
|
|
13917
13917
|
headerActions: o
|
|
13918
13918
|
}) => {
|
|
13919
|
-
const { channel: i, status: a, messages: s, capabilities: l } = rn(), { dropFiles: c } = Ts(), u = _(0), [d, f] =
|
|
13919
|
+
const { channel: i, status: a, messages: s, capabilities: l } = rn(), { dropFiles: c } = Ts(), u = _(0), [d, f] = $(!1);
|
|
13920
13920
|
return /* @__PURE__ */ m(
|
|
13921
13921
|
"div",
|
|
13922
13922
|
{
|
|
@@ -13951,7 +13951,7 @@ const Wp = (e) => {
|
|
|
13951
13951
|
// `reconnecting` / `offline` render the transcript exactly like
|
|
13952
13952
|
// `ready` — per-message states communicate connectivity, no banner.
|
|
13953
13953
|
/* @__PURE__ */ n(Mg, {})
|
|
13954
|
-
) : a === "ready" ? /* @__PURE__ */ n(
|
|
13954
|
+
) : a === "ready" ? /* @__PURE__ */ n(Hg, {}) : (
|
|
13955
13955
|
// reconnecting/offline with nothing loaded yet: can't tell "empty"
|
|
13956
13956
|
// from "not loaded" — show the skeleton until the transport settles.
|
|
13957
13957
|
/* @__PURE__ */ n(Yi, {})
|
|
@@ -13963,7 +13963,7 @@ const Wp = (e) => {
|
|
|
13963
13963
|
]
|
|
13964
13964
|
}
|
|
13965
13965
|
);
|
|
13966
|
-
}, Xv = (e) => /* @__PURE__ */ n(Eh, { children: /* @__PURE__ */ n(
|
|
13966
|
+
}, Xv = (e) => /* @__PURE__ */ n(Eh, { children: /* @__PURE__ */ n($g, { ...e }) }), $o = {
|
|
13967
13967
|
0: "gap-0",
|
|
13968
13968
|
px: "gap-px",
|
|
13969
13969
|
"0.5": "gap-0.5",
|
|
@@ -14002,7 +14002,7 @@ const Wp = (e) => {
|
|
|
14002
14002
|
lg: "@3xl:grid-cols-2 @7xl:grid-cols-3 @9xl:grid-cols-4 @10xl:grid-cols-6 @12xl:grid-cols-8"
|
|
14003
14003
|
},
|
|
14004
14004
|
gap: {
|
|
14005
|
-
|
|
14005
|
+
...$o
|
|
14006
14006
|
}
|
|
14007
14007
|
},
|
|
14008
14008
|
defaultVariants: {
|
|
@@ -14096,7 +14096,7 @@ const Wp = (e) => {
|
|
|
14096
14096
|
paddingY: "none",
|
|
14097
14097
|
inline: !1
|
|
14098
14098
|
}
|
|
14099
|
-
}), bl =
|
|
14099
|
+
}), bl = Ae(function({
|
|
14100
14100
|
className: t,
|
|
14101
14101
|
grow: r,
|
|
14102
14102
|
basis: o,
|
|
@@ -14140,7 +14140,7 @@ const Wp = (e) => {
|
|
|
14140
14140
|
base: "flex-row",
|
|
14141
14141
|
variants: {
|
|
14142
14142
|
gap: {
|
|
14143
|
-
|
|
14143
|
+
...$o
|
|
14144
14144
|
},
|
|
14145
14145
|
wrap: {
|
|
14146
14146
|
true: "flex-wrap"
|
|
@@ -14162,11 +14162,11 @@ const Wp = (e) => {
|
|
|
14162
14162
|
base: "flex-col",
|
|
14163
14163
|
variants: {
|
|
14164
14164
|
gap: {
|
|
14165
|
-
|
|
14165
|
+
...$o
|
|
14166
14166
|
}
|
|
14167
14167
|
},
|
|
14168
14168
|
defaultVariants: {}
|
|
14169
|
-
}), qg =
|
|
14169
|
+
}), qg = Ae(function({ className: t, gap: r, children: o, ...i }, a) {
|
|
14170
14170
|
return /* @__PURE__ */ n(
|
|
14171
14171
|
bl,
|
|
14172
14172
|
{
|
|
@@ -14218,7 +14218,7 @@ const Wp = (e) => {
|
|
|
14218
14218
|
)
|
|
14219
14219
|
}
|
|
14220
14220
|
);
|
|
14221
|
-
}, Xg = () => /* @__PURE__ */ n("div", { className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary" }), Qg =
|
|
14221
|
+
}, Xg = () => /* @__PURE__ */ n("div", { className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary" }), Qg = Ae(function({ header: t, children: r, action: o, summaries: i, alert: a, status: s, fullHeight: l = !1 }, c) {
|
|
14222
14222
|
const { enabled: u, toggle: d } = _a();
|
|
14223
14223
|
te(() => {
|
|
14224
14224
|
if (a && s)
|
|
@@ -14246,7 +14246,7 @@ const Wp = (e) => {
|
|
|
14246
14246
|
/* @__PURE__ */ n(Xg, {}),
|
|
14247
14247
|
/* @__PURE__ */ n(La, { className: "truncate", children: t.subtitle })
|
|
14248
14248
|
] }),
|
|
14249
|
-
t.info && /* @__PURE__ */ n(
|
|
14249
|
+
t.info && /* @__PURE__ */ n(At, { label: t.info, children: /* @__PURE__ */ n(
|
|
14250
14250
|
ve,
|
|
14251
14251
|
{
|
|
14252
14252
|
icon: za,
|
|
@@ -14257,8 +14257,8 @@ const Wp = (e) => {
|
|
|
14257
14257
|
t.count && /* @__PURE__ */ n("div", { className: "ml-0.5", children: /* @__PURE__ */ n(rr, { value: t.count }) })
|
|
14258
14258
|
] }),
|
|
14259
14259
|
/* @__PURE__ */ m("div", { className: "flex flex-row items-center gap-3", children: [
|
|
14260
|
-
a && /* @__PURE__ */ n(
|
|
14261
|
-
s && /* @__PURE__ */ n(
|
|
14260
|
+
a && /* @__PURE__ */ n(Aa, { text: a, level: "critical" }),
|
|
14261
|
+
s && /* @__PURE__ */ n($n, { text: s.text, variant: s.variant }),
|
|
14262
14262
|
t.link && /* @__PURE__ */ n(
|
|
14263
14263
|
yd,
|
|
14264
14264
|
{
|
|
@@ -14311,7 +14311,7 @@ const Wp = (e) => {
|
|
|
14311
14311
|
lg: "h-60"
|
|
14312
14312
|
}
|
|
14313
14313
|
}
|
|
14314
|
-
}), Zg =
|
|
14314
|
+
}), Zg = Ae(
|
|
14315
14315
|
function({ header: t, height: r }, o) {
|
|
14316
14316
|
return /* @__PURE__ */ m(
|
|
14317
14317
|
ho,
|
|
@@ -14356,14 +14356,14 @@ const Wp = (e) => {
|
|
|
14356
14356
|
), Qt = tt(
|
|
14357
14357
|
We("Widget", Je(Qg, Zg))
|
|
14358
14358
|
), vt = Object.assign(
|
|
14359
|
-
|
|
14359
|
+
Ae(function({ chart: t, summaries: r, ...o }, i) {
|
|
14360
14360
|
return /* @__PURE__ */ n(Qt, { ref: i, ...o, summaries: r, children: t && /* @__PURE__ */ n("div", { className: "min-h-52 min-w-52 grow pt-2", children: t }) });
|
|
14361
14361
|
}),
|
|
14362
14362
|
{
|
|
14363
14363
|
Skeleton: Qt.Skeleton
|
|
14364
14364
|
}
|
|
14365
14365
|
), eb = Je(
|
|
14366
|
-
|
|
14366
|
+
Ae(function({ canBeBlurred: t, ...r }, o) {
|
|
14367
14367
|
const i = {
|
|
14368
14368
|
...r,
|
|
14369
14369
|
header: {
|
|
@@ -14387,7 +14387,7 @@ const Wp = (e) => {
|
|
|
14387
14387
|
), tb = We(
|
|
14388
14388
|
"AreaChartWidget",
|
|
14389
14389
|
eb
|
|
14390
|
-
), nb =
|
|
14390
|
+
), nb = Ae(function(t, r) {
|
|
14391
14391
|
return /* @__PURE__ */ n(
|
|
14392
14392
|
vt,
|
|
14393
14393
|
{
|
|
@@ -14400,7 +14400,7 @@ const Wp = (e) => {
|
|
|
14400
14400
|
"BarChartWidget",
|
|
14401
14401
|
Je(nb, vt.Skeleton)
|
|
14402
14402
|
), ob = Je(
|
|
14403
|
-
|
|
14403
|
+
Ae(
|
|
14404
14404
|
function(t, r) {
|
|
14405
14405
|
return /* @__PURE__ */ n(
|
|
14406
14406
|
vt,
|
|
@@ -14417,7 +14417,7 @@ const Wp = (e) => {
|
|
|
14417
14417
|
"LineChartWidget",
|
|
14418
14418
|
ob
|
|
14419
14419
|
), ab = Je(
|
|
14420
|
-
|
|
14420
|
+
Ae(
|
|
14421
14421
|
function(t, r) {
|
|
14422
14422
|
return /* @__PURE__ */ n(
|
|
14423
14423
|
vt,
|
|
@@ -14434,7 +14434,7 @@ const Wp = (e) => {
|
|
|
14434
14434
|
"PieChartWidget",
|
|
14435
14435
|
ab
|
|
14436
14436
|
), lb = Je(
|
|
14437
|
-
|
|
14437
|
+
Ae(
|
|
14438
14438
|
function(t, r) {
|
|
14439
14439
|
return /* @__PURE__ */ n(vt, { ref: r, ...t, chart: null });
|
|
14440
14440
|
}
|
|
@@ -14444,7 +14444,7 @@ const Wp = (e) => {
|
|
|
14444
14444
|
"SummariesWidget",
|
|
14445
14445
|
lb
|
|
14446
14446
|
), db = Je(
|
|
14447
|
-
|
|
14447
|
+
Ae(
|
|
14448
14448
|
function(t, r) {
|
|
14449
14449
|
return /* @__PURE__ */ n(
|
|
14450
14450
|
vt,
|
|
@@ -14734,7 +14734,7 @@ const Wp = (e) => {
|
|
|
14734
14734
|
] })
|
|
14735
14735
|
]
|
|
14736
14736
|
}
|
|
14737
|
-
), hb =
|
|
14737
|
+
), hb = Ae(fb), mb = (e, t) => /* @__PURE__ */ m(
|
|
14738
14738
|
"svg",
|
|
14739
14739
|
{
|
|
14740
14740
|
width: "406",
|
|
@@ -14779,7 +14779,7 @@ const Wp = (e) => {
|
|
|
14779
14779
|
) })
|
|
14780
14780
|
]
|
|
14781
14781
|
}
|
|
14782
|
-
), pb =
|
|
14782
|
+
), pb = Ae(mb), gb = {
|
|
14783
14783
|
"line-chart": "border-f1-border",
|
|
14784
14784
|
"bar-chart": "border-f1-border-promote"
|
|
14785
14785
|
}, bb = {
|
|
@@ -14791,7 +14791,7 @@ const Wp = (e) => {
|
|
|
14791
14791
|
}, xb = {
|
|
14792
14792
|
"line-chart": "default",
|
|
14793
14793
|
"bar-chart": "promote"
|
|
14794
|
-
}, yb =
|
|
14794
|
+
}, yb = Ae(
|
|
14795
14795
|
function({ title: t, content: r, buttonLabel: o, buttonIcon: i, buttonAction: a, type: s }, l) {
|
|
14796
14796
|
const c = gb[s], u = bb[s], d = vb[s], f = xb[s];
|
|
14797
14797
|
return /* @__PURE__ */ m(
|
|
@@ -14839,7 +14839,7 @@ const Wp = (e) => {
|
|
|
14839
14839
|
We("ChartWidgetEmptyState", yb)
|
|
14840
14840
|
);
|
|
14841
14841
|
function wb(e, t) {
|
|
14842
|
-
const r = _(null), o = _(null), [i, a] =
|
|
14842
|
+
const r = _(null), o = _(null), [i, a] = $({
|
|
14843
14843
|
visibleItems: [],
|
|
14844
14844
|
overflowItems: []
|
|
14845
14845
|
});
|
|
@@ -15003,7 +15003,7 @@ function l0({
|
|
|
15003
15003
|
}
|
|
15004
15004
|
) });
|
|
15005
15005
|
}
|
|
15006
|
-
const Cb =
|
|
15006
|
+
const Cb = Ae(
|
|
15007
15007
|
function({ content: t, label: r, color: o, ...i }, a) {
|
|
15008
15008
|
return /* @__PURE__ */ m("div", { className: "flex flex-col gap-1", ref: a, children: [
|
|
15009
15009
|
/* @__PURE__ */ n("p", { className: "text-3xl font-semibold", children: t }),
|
|
@@ -15021,7 +15021,7 @@ const Cb = Fe(
|
|
|
15021
15021
|
] })
|
|
15022
15022
|
] }, r);
|
|
15023
15023
|
}
|
|
15024
|
-
), c0 =
|
|
15024
|
+
), c0 = Ae(
|
|
15025
15025
|
function({ items: t }, r) {
|
|
15026
15026
|
return /* @__PURE__ */ n(
|
|
15027
15027
|
"div",
|
|
@@ -15155,7 +15155,7 @@ function ao({
|
|
|
15155
15155
|
)
|
|
15156
15156
|
] }),
|
|
15157
15157
|
/* @__PURE__ */ m("div", { className: "flex flex-row items-center gap-2", children: [
|
|
15158
|
-
r && /* @__PURE__ */ n(
|
|
15158
|
+
r && /* @__PURE__ */ n(Aa, { ...r }),
|
|
15159
15159
|
o && /* @__PURE__ */ n(Jt, { ...o }),
|
|
15160
15160
|
!!i && /* @__PURE__ */ n(rr, { value: i })
|
|
15161
15161
|
] })
|
|
@@ -15199,14 +15199,14 @@ function f0({
|
|
|
15199
15199
|
const Tb = ({ title: e, info: t }) => /* @__PURE__ */ m("div", { className: "flex items-center justify-between", children: [
|
|
15200
15200
|
/* @__PURE__ */ n("p", { className: "flex text-f1-foreground-secondary", children: e }),
|
|
15201
15201
|
/* @__PURE__ */ n("div", { className: "max-w-32 flex-shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-right font-medium", children: t })
|
|
15202
|
-
] }), h0 =
|
|
15202
|
+
] }), h0 = Ae(
|
|
15203
15203
|
function({ title: t, titleValue: r, titleTooltip: o, list: i }, a) {
|
|
15204
15204
|
return /* @__PURE__ */ m("div", { ref: a, className: "flex flex-col gap-2", children: [
|
|
15205
15205
|
t && /* @__PURE__ */ m("div", { className: "flex items-center justify-between gap-2 font-medium", children: [
|
|
15206
15206
|
/* @__PURE__ */ m("div", { className: "flex items-center gap-1", children: [
|
|
15207
15207
|
/* @__PURE__ */ n("div", { children: t }),
|
|
15208
15208
|
o && /* @__PURE__ */ n("div", { className: "flex h-4 w-4 items-center text-f1-foreground-tertiary hover:cursor-help", children: /* @__PURE__ */ n(
|
|
15209
|
-
|
|
15209
|
+
At,
|
|
15210
15210
|
{
|
|
15211
15211
|
label: o.label,
|
|
15212
15212
|
description: o.description,
|
|
@@ -15271,7 +15271,7 @@ const vl = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, Rb = ({
|
|
|
15271
15271
|
o
|
|
15272
15272
|
), f = Math.abs(d), h = Math.floor(f / 60), p = Math.floor(f % 60), b = `${h.toString().padStart(2, "0")}:${p.toString().padStart(2, "0")}`;
|
|
15273
15273
|
return o >= 0 ? `${t.remainingTime} ${b}` : `${t.overtime} ${b}`;
|
|
15274
|
-
})(), u =
|
|
15274
|
+
})(), u = $t[s];
|
|
15275
15275
|
return {
|
|
15276
15276
|
status: s,
|
|
15277
15277
|
statusText: l,
|
|
@@ -15282,12 +15282,12 @@ const vl = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, Rb = ({
|
|
|
15282
15282
|
if (e && e > 0)
|
|
15283
15283
|
return {
|
|
15284
15284
|
value: e * 60 / t,
|
|
15285
|
-
color:
|
|
15285
|
+
color: $t.empty
|
|
15286
15286
|
};
|
|
15287
15287
|
if (!t)
|
|
15288
15288
|
return {
|
|
15289
15289
|
value: 1,
|
|
15290
|
-
color:
|
|
15290
|
+
color: $t.empty
|
|
15291
15291
|
};
|
|
15292
15292
|
}, Lb = ({
|
|
15293
15293
|
data: e = [],
|
|
@@ -15312,17 +15312,17 @@ const vl = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, Rb = ({
|
|
|
15312
15312
|
...d,
|
|
15313
15313
|
{
|
|
15314
15314
|
value: p / a + v,
|
|
15315
|
-
color:
|
|
15315
|
+
color: $t.overtime
|
|
15316
15316
|
}
|
|
15317
15317
|
] : [
|
|
15318
15318
|
...d,
|
|
15319
15319
|
{
|
|
15320
15320
|
value: p / a,
|
|
15321
|
-
color:
|
|
15321
|
+
color: $t.overtime
|
|
15322
15322
|
},
|
|
15323
15323
|
{
|
|
15324
15324
|
value: v,
|
|
15325
|
-
color:
|
|
15325
|
+
color: $t[f.variant]
|
|
15326
15326
|
}
|
|
15327
15327
|
];
|
|
15328
15328
|
},
|
|
@@ -15332,7 +15332,7 @@ const vl = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, Rb = ({
|
|
|
15332
15332
|
];
|
|
15333
15333
|
return u = u.filter((d) => d.value > 0), u.length || u.push({
|
|
15334
15334
|
value: 1,
|
|
15335
|
-
color:
|
|
15335
|
+
color: $t.empty
|
|
15336
15336
|
}), u;
|
|
15337
15337
|
}, zb = ({
|
|
15338
15338
|
data: e = [],
|
|
@@ -15345,14 +15345,14 @@ const vl = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, Rb = ({
|
|
|
15345
15345
|
secondaryLabel: s,
|
|
15346
15346
|
time: f
|
|
15347
15347
|
};
|
|
15348
|
-
},
|
|
15348
|
+
}, $t = {
|
|
15349
15349
|
"clocked-in": "hsl(var(--positive-50))",
|
|
15350
15350
|
break: "hsl(var(--promote-50))",
|
|
15351
15351
|
empty: "hsl(var(--neutral-10))",
|
|
15352
15352
|
"clocked-out": "hsl(var(--neutral-10))",
|
|
15353
15353
|
overtime: "hsl(var(--warning-50))"
|
|
15354
15354
|
};
|
|
15355
|
-
function
|
|
15355
|
+
function Ab({
|
|
15356
15356
|
data: e = [],
|
|
15357
15357
|
trackedMinutes: t = 0,
|
|
15358
15358
|
remainingMinutes: r
|
|
@@ -15400,7 +15400,7 @@ function Fb({
|
|
|
15400
15400
|
] })
|
|
15401
15401
|
] });
|
|
15402
15402
|
}
|
|
15403
|
-
function
|
|
15403
|
+
function Fb({
|
|
15404
15404
|
text: e,
|
|
15405
15405
|
placeholder: t,
|
|
15406
15406
|
icon: r,
|
|
@@ -15450,7 +15450,7 @@ function p0({
|
|
|
15450
15450
|
canShowProject: w = !0,
|
|
15451
15451
|
projectSelectorElement: x,
|
|
15452
15452
|
locationSelectorElement: N,
|
|
15453
|
-
breakTypeName:
|
|
15453
|
+
breakTypeName: A
|
|
15454
15454
|
}) {
|
|
15455
15455
|
const { status: E, statusText: k, subtitle: y, statusColor: C } = Rb({
|
|
15456
15456
|
data: r,
|
|
@@ -15463,7 +15463,7 @@ function p0({
|
|
|
15463
15463
|
label: ne.duration ? `${ne.name} · ${ne.duration}` : ne.name,
|
|
15464
15464
|
description: ne.description,
|
|
15465
15465
|
tag: ne.isPaid ? o.paid : o.unpaid
|
|
15466
|
-
})) ?? [], [L, D] =
|
|
15466
|
+
})) ?? [], [L, D] = $(!1), P = () => {
|
|
15467
15467
|
if (z.length > 1)
|
|
15468
15468
|
L || D(!0);
|
|
15469
15469
|
else {
|
|
@@ -15476,7 +15476,7 @@ function p0({
|
|
|
15476
15476
|
value: ne.id,
|
|
15477
15477
|
label: ne.name,
|
|
15478
15478
|
icon: ne.icon
|
|
15479
|
-
})), q = E === "break", [re, Y] =
|
|
15479
|
+
})), q = E === "break", [re, Y] = $(!1), se = B ? /* @__PURE__ */ n(
|
|
15480
15480
|
jn,
|
|
15481
15481
|
{
|
|
15482
15482
|
label: o.selectLocation,
|
|
@@ -15488,7 +15488,7 @@ function p0({
|
|
|
15488
15488
|
onOpenChange: Y,
|
|
15489
15489
|
disabled: l,
|
|
15490
15490
|
children: /* @__PURE__ */ n("div", { "aria-label": "Select location", children: /* @__PURE__ */ n(
|
|
15491
|
-
|
|
15491
|
+
Fb,
|
|
15492
15492
|
{
|
|
15493
15493
|
text: T?.name,
|
|
15494
15494
|
placeholder: o.selectLocation,
|
|
@@ -15606,7 +15606,7 @@ function p0({
|
|
|
15606
15606
|
] })
|
|
15607
15607
|
] }),
|
|
15608
15608
|
b && /* @__PURE__ */ n(
|
|
15609
|
-
|
|
15609
|
+
Ab,
|
|
15610
15610
|
{
|
|
15611
15611
|
data: r,
|
|
15612
15612
|
trackedMinutes: e,
|
|
@@ -15617,7 +15617,7 @@ function p0({
|
|
|
15617
15617
|
/* @__PURE__ */ m("div", { className: "mt-6 flex flex-row flex-wrap items-center justify-center gap-2 @xs:justify-start", children: [
|
|
15618
15618
|
s && (N ?? se),
|
|
15619
15619
|
w && x,
|
|
15620
|
-
q &&
|
|
15620
|
+
q && A && /* @__PURE__ */ n(Jt, { text: A })
|
|
15621
15621
|
] })
|
|
15622
15622
|
] }) });
|
|
15623
15623
|
}
|
|
@@ -15655,7 +15655,7 @@ function Ob({
|
|
|
15655
15655
|
} : void 0,
|
|
15656
15656
|
rawTag: e.badge && !e.badge.isPastDue ? {
|
|
15657
15657
|
text: e.badge.text,
|
|
15658
|
-
icon:
|
|
15658
|
+
icon: Ad
|
|
15659
15659
|
} : void 0,
|
|
15660
15660
|
count: e.counter,
|
|
15661
15661
|
onClick: i
|
|
@@ -15702,12 +15702,12 @@ var Db = Object.defineProperty, Bb = Object.defineProperties, _b = Object.getOwn
|
|
|
15702
15702
|
for (var r in t || (t = {})) xl.call(t, r) && Qi(e, r, t[r]);
|
|
15703
15703
|
if (Zn) for (var r of Zn(t)) yl.call(t, r) && Qi(e, r, t[r]);
|
|
15704
15704
|
return e;
|
|
15705
|
-
}, br = (e, t) => Bb(e, _b(t)),
|
|
15705
|
+
}, br = (e, t) => Bb(e, _b(t)), Hb = (e, t) => {
|
|
15706
15706
|
var r = {};
|
|
15707
15707
|
for (var o in e) xl.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
|
|
15708
15708
|
if (e != null && Zn) for (var o of Zn(e)) t.indexOf(o) < 0 && yl.call(e, o) && (r[o] = e[o]);
|
|
15709
15709
|
return r;
|
|
15710
|
-
},
|
|
15710
|
+
}, $b = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, Wb = ({ spotsList: e, usedSpot: t }) => e.some((r) => r !== t && t.left === r.left), jb = ({ position: e, spot: t, stone: r }) => {
|
|
15711
15711
|
if (e.left > t.left && t.right >= e.left && e.top + r.height > t.top) {
|
|
15712
15712
|
if (t.bottom && t.bottom < e.top) return t;
|
|
15713
15713
|
let o = bt({}, t);
|
|
@@ -15723,7 +15723,7 @@ var Db = Object.defineProperty, Bb = Object.defineProperties, _b = Object.getOwn
|
|
|
15723
15723
|
return null;
|
|
15724
15724
|
}, Ub = ({ stone: e, position: t, spotsList: r, optimalSpot: o }) => {
|
|
15725
15725
|
let i = bt({}, o);
|
|
15726
|
-
return i.left = t.left + e.width,
|
|
15726
|
+
return i.left = t.left + e.width, $b(i) || Wb({ usedSpot: i, spotsList: r }) ? null : i;
|
|
15727
15727
|
}, Gb = ({ spots: e, position: t, optimalSpot: r, stone: o }) => e.map((i, a, s) => {
|
|
15728
15728
|
if (i === r) return Ub({ stone: o, position: t, optimalSpot: r, spotsList: s });
|
|
15729
15729
|
let l = jb({ position: t, spot: i, stone: o });
|
|
@@ -15771,7 +15771,7 @@ var nv = ({ stones: e, containerSize: t }) => {
|
|
|
15771
15771
|
let o = r.getBoundingClientRect();
|
|
15772
15772
|
return t.push({ width: o.width, height: o.height }), t;
|
|
15773
15773
|
}, []), ov = ({ boxesRefs: e, wrapperRef: t, children: r, windowWidth: o, wrapperWidth: i }) => {
|
|
15774
|
-
let [{ positions: a, containerHeight: s, stones: l, availableSpots: c }, u] =
|
|
15774
|
+
let [{ positions: a, containerHeight: s, stones: l, availableSpots: c }, u] = $({ positions: [], containerHeight: null, stones: [], availableSpots: [] });
|
|
15775
15775
|
return te(() => {
|
|
15776
15776
|
var d, f;
|
|
15777
15777
|
let h = rv(e.current), p = (f = (d = t.current) == null ? void 0 : d.offsetWidth) != null ? f : 0;
|
|
@@ -15796,7 +15796,7 @@ function cv(e, t, r) {
|
|
|
15796
15796
|
};
|
|
15797
15797
|
}
|
|
15798
15798
|
var dv = () => {
|
|
15799
|
-
let [e, t] =
|
|
15799
|
+
let [e, t] = $(), r = _(cv(t, 300));
|
|
15800
15800
|
return te(() => {
|
|
15801
15801
|
let o = () => {
|
|
15802
15802
|
r.current(window.innerWidth);
|
|
@@ -15806,7 +15806,7 @@ var dv = () => {
|
|
|
15806
15806
|
};
|
|
15807
15807
|
}, []), e;
|
|
15808
15808
|
}, uv = (e) => {
|
|
15809
|
-
let [t, r] =
|
|
15809
|
+
let [t, r] = $(null);
|
|
15810
15810
|
return te(() => {
|
|
15811
15811
|
let o = new ResizeObserver((i) => {
|
|
15812
15812
|
for (let a of i) r(a.contentRect.width);
|
|
@@ -15816,7 +15816,7 @@ var dv = () => {
|
|
|
15816
15816
|
};
|
|
15817
15817
|
}, [e]), t;
|
|
15818
15818
|
}, fv = (e) => {
|
|
15819
|
-
var t = e, { children: r, style: o, transition: i = !1, transitionDuration: a = 500, transitionStep: s = 50 } = t, l =
|
|
15819
|
+
var t = e, { children: r, style: o, transition: i = !1, transitionDuration: a = 500, transitionStep: s = 50 } = t, l = Hb(t, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
|
|
15820
15820
|
let c = _([]), u = _(null), d = dv(), f = uv(u), { positions: h, containerHeight: p } = ov({ boxesRefs: c, wrapperRef: u, children: r, windowWidth: d, wrapperWidth: f }), b = bt({ minHeight: p ?? 0, position: "relative" }, o);
|
|
15821
15821
|
return n("div", br(bt({ ref: u, style: b }, l), { children: Oa.map(r, (v, g) => {
|
|
15822
15822
|
if (typeof v != "object" || !v || !("type" in v)) return v;
|
|
@@ -15824,9 +15824,9 @@ var dv = () => {
|
|
|
15824
15824
|
return Pa(v, bt(bt({}, v.props), w));
|
|
15825
15825
|
}) }));
|
|
15826
15826
|
};
|
|
15827
|
-
const hv = { sm: 340, md: 480, lg: 640 }, Ji =
|
|
15827
|
+
const hv = { sm: 340, md: 480, lg: 640 }, Ji = Ae(
|
|
15828
15828
|
function({ children: t, widgetWidth: r = "sm" }, o) {
|
|
15829
|
-
const i = hv[r], [a, s] =
|
|
15829
|
+
const i = hv[r], [a, s] = $(), l = Oa.toArray(t), c = _(null);
|
|
15830
15830
|
return te(() => {
|
|
15831
15831
|
const u = () => {
|
|
15832
15832
|
const d = c.current?.offsetWidth;
|
|
@@ -15847,11 +15847,11 @@ const hv = { sm: 340, md: 480, lg: 640 }, Ji = Fe(
|
|
|
15847
15847
|
d
|
|
15848
15848
|
)) }, a) }) }) });
|
|
15849
15849
|
}
|
|
15850
|
-
), mv = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], b0 = Je(Ji, () => /* @__PURE__ */ n(
|
|
15851
|
-
|
|
15850
|
+
), mv = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], b0 = Je(Ji, () => /* @__PURE__ */ n(Fa, { children: /* @__PURE__ */ n(Ji, { children: mv.map((e, t) => /* @__PURE__ */ n(Qt.Skeleton, { height: e }, t)) }) })), Zi = ({ children: e }) => /* @__PURE__ */ n("div", { className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]", children: e }), v0 = Je(
|
|
15851
|
+
Ae(function({ children: t }, r) {
|
|
15852
15852
|
return /* @__PURE__ */ n(nr, { ref: r, showBar: !1, children: /* @__PURE__ */ n(Zi, { children: t }) });
|
|
15853
15853
|
}),
|
|
15854
|
-
() => /* @__PURE__ */ n(
|
|
15854
|
+
() => /* @__PURE__ */ n(Fa, { orientation: "horizontal", children: /* @__PURE__ */ m(Zi, { children: [
|
|
15855
15855
|
/* @__PURE__ */ n(Qt.Skeleton, {}),
|
|
15856
15856
|
/* @__PURE__ */ n(Qt.Skeleton, {}),
|
|
15857
15857
|
/* @__PURE__ */ n(Qt.Skeleton, {})
|
|
@@ -15879,8 +15879,8 @@ function pv({
|
|
|
15879
15879
|
}
|
|
15880
15880
|
const x0 = tt(
|
|
15881
15881
|
We("WidgetEmptyState", pv)
|
|
15882
|
-
), wl =
|
|
15883
|
-
({ title: e, children: t }, r) => (
|
|
15882
|
+
), wl = Ae(
|
|
15883
|
+
({ title: e, children: t }, r) => (Fd(
|
|
15884
15884
|
e,
|
|
15885
15885
|
{ disallowEmpty: !0 },
|
|
15886
15886
|
{ componentName: "WidgetSection" }
|
|
@@ -15913,19 +15913,21 @@ const y0 = tt(
|
|
|
15913
15913
|
)
|
|
15914
15914
|
);
|
|
15915
15915
|
export {
|
|
15916
|
+
tx as AUTO_PER_PAGE_MAX,
|
|
15917
|
+
nx as AUTO_PER_PAGE_MIN_RESERVED_ROWS,
|
|
15916
15918
|
Rv as ActivityItemList,
|
|
15917
15919
|
af as ActivityItemListSkeleton,
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15920
|
+
Au as AiPromotionChat,
|
|
15921
|
+
Fu as AiPromotionChatProvider,
|
|
15922
|
+
Fv as ApplicationFrame,
|
|
15923
|
+
rx as AreaChart,
|
|
15922
15924
|
e0 as AreaChartWidget,
|
|
15923
15925
|
Zv as AutoGrid,
|
|
15924
15926
|
Oc as Badge,
|
|
15925
|
-
|
|
15927
|
+
ox as BarChart,
|
|
15926
15928
|
t0 as BarChartWidget,
|
|
15927
15929
|
of as BaseActivityItemList,
|
|
15928
|
-
|
|
15930
|
+
ix as BaseBanner,
|
|
15929
15931
|
uf as BaseCelebration,
|
|
15930
15932
|
yf as BaseCommunityPost,
|
|
15931
15933
|
S0 as BaseTabs,
|
|
@@ -15933,16 +15935,16 @@ export {
|
|
|
15933
15935
|
cu as Breadcrumbs,
|
|
15934
15936
|
Yr as CalendarEvent,
|
|
15935
15937
|
s0 as CalendarEventList,
|
|
15936
|
-
|
|
15938
|
+
ax as CardSelectableContainer,
|
|
15937
15939
|
Dd as Carousel,
|
|
15938
|
-
|
|
15940
|
+
sx as CategoryBarChart,
|
|
15939
15941
|
m0 as CategoryBarSection,
|
|
15940
15942
|
Ev as Celebration,
|
|
15941
15943
|
ff as CelebrationSkeleton,
|
|
15942
15944
|
a0 as ChartWidgetEmptyState,
|
|
15943
15945
|
T0 as Chip,
|
|
15944
15946
|
p0 as ClockInControls,
|
|
15945
|
-
|
|
15947
|
+
lx as ComboChart,
|
|
15946
15948
|
zv as CommunityPost,
|
|
15947
15949
|
wf as CommunityPostSkeleton,
|
|
15948
15950
|
Kf as CompanySelector,
|
|
@@ -15951,87 +15953,87 @@ export {
|
|
|
15951
15953
|
Pv as DaytimePage,
|
|
15952
15954
|
R0 as DetailsItem,
|
|
15953
15955
|
E0 as DetailsItemsList,
|
|
15954
|
-
|
|
15956
|
+
cx as Dialog,
|
|
15955
15957
|
Wt as Dropdown,
|
|
15956
15958
|
Tv as EntitySelect,
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
+
dx as F0ActionBar,
|
|
15960
|
+
ux as F0AiBanner,
|
|
15959
15961
|
ga as F0AvatarModule,
|
|
15960
15962
|
L0 as F0ButtonToggle,
|
|
15961
15963
|
Iv as F0Callout,
|
|
15962
15964
|
z0 as F0CardHorizontal,
|
|
15963
|
-
|
|
15965
|
+
A0 as F0CardRow,
|
|
15964
15966
|
Xv as F0Chat,
|
|
15965
15967
|
Yv as F0ChatProvider,
|
|
15966
15968
|
fo as F0FileItem,
|
|
15967
|
-
|
|
15968
|
-
|
|
15969
|
-
|
|
15970
|
-
|
|
15969
|
+
fx as F0FormEditableTable,
|
|
15970
|
+
hx as F0NotesTextEditor,
|
|
15971
|
+
mx as F0NotesTextEditorSkeleton,
|
|
15972
|
+
px as F0NumberInput,
|
|
15971
15973
|
xc as F0RichTextDisplay,
|
|
15972
|
-
|
|
15974
|
+
gx as F0RichTextEditor,
|
|
15973
15975
|
od as F0SearchInput,
|
|
15974
15976
|
Sv as F0SegmentedBar,
|
|
15975
|
-
|
|
15976
|
-
|
|
15977
|
-
|
|
15978
|
-
|
|
15977
|
+
bx as F0SegmentedControl,
|
|
15978
|
+
vx as F0TableOfContent,
|
|
15979
|
+
xx as F0TextAreaInput,
|
|
15980
|
+
F0 as F0TextInput,
|
|
15979
15981
|
kv as F0VersionHistory,
|
|
15980
|
-
|
|
15981
|
-
|
|
15982
|
+
yx as F1SearchBox,
|
|
15983
|
+
wx as FILE_TYPES,
|
|
15982
15984
|
P0 as FileItem,
|
|
15983
15985
|
Lv as HighlightBanner,
|
|
15984
15986
|
c0 as IndicatorsList,
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15987
|
+
Nx as Input,
|
|
15988
|
+
Cx as Item,
|
|
15989
|
+
Ix as ItemSectionHeader,
|
|
15988
15990
|
wh as LATEST,
|
|
15989
|
-
|
|
15991
|
+
Sx as LineChart,
|
|
15990
15992
|
n0 as LineChartWidget,
|
|
15991
15993
|
Wv as Menu,
|
|
15992
15994
|
M0 as MobileDropdown,
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
|
|
15995
|
+
kx as NotesTextEditor,
|
|
15996
|
+
Tx as NotesTextEditorSkeleton,
|
|
15997
|
+
Rx as NumberInput,
|
|
15996
15998
|
Mv as OmniButton,
|
|
15997
15999
|
Gv as OneApprovalHistory,
|
|
15998
16000
|
O0 as OneCalendar,
|
|
15999
16001
|
D0 as OneCalendarInternal,
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
+
Ex as OneDataCollection,
|
|
16003
|
+
Lx as OneDateNavigator,
|
|
16002
16004
|
Ba as OneEmptyState,
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
+
zx as OnePagination,
|
|
16006
|
+
Av as OnePersonListItem,
|
|
16005
16007
|
w0 as OneRestrictComponent,
|
|
16006
16008
|
Ov as Page,
|
|
16007
16009
|
Cv as PageHeader,
|
|
16008
16010
|
yo as PageHeaderNavigationContext,
|
|
16009
16011
|
wv as PageHeaderNavigationProvider,
|
|
16010
16012
|
Kl as PageNavigation,
|
|
16011
|
-
|
|
16013
|
+
Ax as PieChart,
|
|
16012
16014
|
r0 as PieChartWidget,
|
|
16013
16015
|
Yg as PrivateBox,
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
+
Fx as ProgressBarChart,
|
|
16017
|
+
Px as RadarChart,
|
|
16016
16018
|
mf as Reactions,
|
|
16017
|
-
|
|
16019
|
+
Mx as ResourceHeader,
|
|
16018
16020
|
B0 as RichTextDisplay,
|
|
16019
|
-
|
|
16021
|
+
Ox as RichTextEditor,
|
|
16020
16022
|
N0 as ScrollArea,
|
|
16021
16023
|
jv as SearchBar,
|
|
16022
|
-
|
|
16024
|
+
Dx as SectionHeader,
|
|
16023
16025
|
jn as Select,
|
|
16024
16026
|
_c as Shortcut,
|
|
16025
16027
|
Vv as Sidebar,
|
|
16026
|
-
|
|
16028
|
+
$f as SidebarChatBlankState,
|
|
16027
16029
|
Gf as SidebarChatItem,
|
|
16028
16030
|
ds as SidebarChatItemSkeleton,
|
|
16029
16031
|
_v as SidebarChatList,
|
|
16030
16032
|
jf as SidebarChatListSkeleton,
|
|
16031
16033
|
Dv as SidebarChatProvider,
|
|
16032
16034
|
Kn as SidebarCollapsibleSection,
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
+
Hv as SidebarFooter,
|
|
16036
|
+
$v as SidebarHeader,
|
|
16035
16037
|
_f as SidebarTabPanel,
|
|
16036
16038
|
Uv as SidebarTabs,
|
|
16037
16039
|
tr as Spinner,
|
|
@@ -16039,16 +16041,16 @@ export {
|
|
|
16039
16041
|
Qv as Stack,
|
|
16040
16042
|
i0 as SummariesWidget,
|
|
16041
16043
|
_0 as Switch,
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
+
H0 as Tabs,
|
|
16045
|
+
$0 as TabsSkeleton,
|
|
16044
16046
|
g0 as TasksList,
|
|
16045
|
-
|
|
16047
|
+
Bx as Textarea,
|
|
16046
16048
|
W0 as ToggleGroup,
|
|
16047
16049
|
j0 as ToggleGroupItem,
|
|
16048
|
-
|
|
16050
|
+
At as Tooltip,
|
|
16049
16051
|
h0 as TwoColumnsList,
|
|
16050
|
-
|
|
16051
|
-
|
|
16052
|
+
_x as UPLOAD_INPUT_ID,
|
|
16053
|
+
Hx as VerticalBarChart,
|
|
16052
16054
|
o0 as VerticalBarChartWidget,
|
|
16053
16055
|
Gr as VirtualList,
|
|
16054
16056
|
V0 as WeekStartDay,
|
|
@@ -16063,13 +16065,14 @@ export {
|
|
|
16063
16065
|
f0 as WidgetSimpleList,
|
|
16064
16066
|
ao as WidgetSimpleListItem,
|
|
16065
16067
|
v0 as WidgetStrip,
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16068
|
+
$x as actionBarStatuses,
|
|
16069
|
+
Wx as buttonToggleSizes,
|
|
16070
|
+
jx as buttonToggleVariants,
|
|
16069
16071
|
G0 as chipVariants,
|
|
16070
|
-
|
|
16072
|
+
Vx as downloadAsCSV,
|
|
16071
16073
|
K0 as f0FileItemSizes,
|
|
16072
|
-
|
|
16074
|
+
Ux as generateCSVContent,
|
|
16075
|
+
Gx as getAutoPerPageMinHeight,
|
|
16073
16076
|
q0 as getGranularityDefinition,
|
|
16074
16077
|
Y0 as getGranularityDefinitions,
|
|
16075
16078
|
X0 as getGranularitySimpleDefinition,
|
|
@@ -16077,17 +16080,17 @@ export {
|
|
|
16077
16080
|
qv as isSystemMessage,
|
|
16078
16081
|
qn as isUserMessage,
|
|
16079
16082
|
J0 as modules,
|
|
16080
|
-
|
|
16083
|
+
Kx as predefinedPresets,
|
|
16081
16084
|
Z0 as rangeSeparator,
|
|
16082
16085
|
yi as seedFromStorage,
|
|
16083
|
-
|
|
16086
|
+
qx as selectSizes,
|
|
16084
16087
|
sr as useAiPromotionChat,
|
|
16085
|
-
|
|
16088
|
+
Yx as useDataCollectionData,
|
|
16086
16089
|
Kv as useDataCollectionItemNavigation,
|
|
16087
16090
|
jd as useDataCollectionSource,
|
|
16088
|
-
|
|
16091
|
+
Xx as useExportAction,
|
|
16089
16092
|
rn as useF0Chat,
|
|
16090
|
-
|
|
16093
|
+
Qx as useInfiniteScrollPagination,
|
|
16091
16094
|
Iu as usePageHeaderItemNavigation,
|
|
16092
16095
|
Nv as usePageHeaderNavigation,
|
|
16093
16096
|
nn as useSidebar,
|