@factorialco/f0-react 13.11.1 → 13.12.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/{ArchiveThumbnail-BKLyYbOq.js → ArchiveThumbnail-DmnSGwhP.js} +1 -1
- package/dist/{ArchiveViewer-Cz5T16vE.js → ArchiveViewer-RNMB3M36.js} +2 -2
- package/dist/{ChatPostComposerDialog-C67F4elc.js → ChatPostComposerDialog-Z8gG_J2L.js} +2 -2
- package/dist/{CoachmarkProvider-BuWFPpmG.js → CoachmarkProvider-fehx7Q_o.js} +23651 -23539
- package/dist/{CodeThumbnail-D-wJheIP.js → CodeThumbnail-C6HoRhcZ.js} +1 -1
- package/dist/{CodeViewer-gDQOS6iI.js → CodeViewer-BZRBu6at.js} +4 -4
- package/dist/{DocumentToolbar-DLK2n_-s.js → DocumentToolbar-BHrbd-HZ.js} +4 -4
- package/dist/{DocxViewer-9hhmeMbJ.js → DocxViewer-V8WC-PWo.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CbHR_I3P.js → F0AiProcessingOverlay-ReygG6pE.js} +172 -172
- package/dist/{F0Alert-BibfCJRG.js → F0Alert-D4m2sucP.js} +3 -3
- package/dist/F0AudioPlayer-Wj-PKKtF.js +2 -0
- package/dist/{F0Button-Cql35ZB4.js → F0Button-DliApWoo.js} +5764 -5335
- package/dist/{F0CanvasPanel-DjbzJ4if.js → F0CanvasPanel-BKvyk32z.js} +9616 -9564
- package/dist/{F0DocumentViewer-DdQaLXAs.js → F0DocumentViewer-B2vIyYsn.js} +2 -2
- package/dist/{F0DocumentViewer-Biac8pVX.js → F0DocumentViewer-CSJh6Ed7.js} +1 -1
- package/dist/{F0Map-BgIwfjqD.js → F0Map-DClia8fc.js} +56 -56
- package/dist/{F0Select-qyqqfXH7.js → F0Select-DLK87Tv6.js} +187 -187
- package/dist/{F0Text-DulwHmaW.js → F0Text-Cb-FVBzx.js} +1 -1
- package/dist/F0VideoPlayer-CsCI9jzU.js +1 -0
- package/dist/{F0VideoPlayer-BbmoKHh4.js → F0VideoPlayer-WyWePBV8.js} +2 -2
- package/dist/{HtmlThumbnail-lVNYvRe4.js → HtmlThumbnail-B_9tldlm.js} +1 -1
- package/dist/{HtmlViewer-DTorB5Ni.js → HtmlViewer-BVkwk56S.js} +6 -6
- package/dist/LayoutGroup-gwem4ADm.js +57 -0
- package/dist/{Map-B6eQeS3P.js → Map-BDMz636c.js} +7 -7
- package/dist/{PdfThumbnail-Ds_9D-7B.js → PdfThumbnail-CHPvHqdQ.js} +1 -1
- package/dist/{PdfViewer-e2eSdSp-.js → PdfViewer-CBs15JQG.js} +6 -6
- package/dist/{SandboxedHtmlFrame-C6RrQ2yQ.js → SandboxedHtmlFrame-CWcJ_fWA.js} +1 -1
- package/dist/{SheetViewer-CSkVsC3-.js → SheetViewer-BaqxWzpW.js} +3 -3
- package/dist/{TextViewer-10UG7pXL.js → TextViewer-DdEtdDZH.js} +2 -2
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/{dist-BJcZ_X3W.js → dist-2k-bLufS.js} +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +502 -502
- package/dist/f0.d.ts +1 -1
- package/dist/f0.js +202 -202
- package/dist/{highlight-CKsTraEJ.js → highlight-BFih_ytR.js} +1 -1
- package/dist/{maplibre-DZrUxuUr.js → maplibre-DYSBHNua.js} +1 -1
- package/dist/{pdfWorker-Dhn7-lDq.js → pdfWorker-C4oRZ-W-.js} +1 -1
- package/dist/{scrollarea-NoqKFiLU.js → scrollarea-B6RGaKme.js} +1 -1
- package/dist/{toolbarStyles-BgK2AYri.js → toolbarStyles-Bm2pq-KH.js} +1 -1
- package/dist/{types-BD4eJ3Ek.d.ts → types-Dp-ibo8p.d.ts} +2 -17
- package/dist/{useData-DPmbJ0Mf.js → useData-CuyhVJ87.js} +2 -2
- package/icons/animated/PalmTree.js +2 -2
- package/package.json +3 -2
- package/dist/F0AudioPlayer-CWwt7LV6.js +0 -2
- package/dist/F0VideoPlayer-y0zqezdL.js +0 -1
- package/dist/LayoutGroup-OL4BUDqc.js +0 -57
package/dist/experimental.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $ as t, $n as n, Ar as r, At as i, B as a, Br as o, C as s, Ci as c, Cn as l, Cr as u, Ct as d, Dr as f, Dt as p, Er as m, Et as h, F as g, Fn as _, Fr as v, G as y, Gr as b, H as x, Hr as S, I as C, In as w, Ir as T, It as E, J as D, K as O, Kr as k, L as A, Ln as j, Lr as M, Lt as N, M as P, Mr as F, Mt as I, N as L, Nn as ee, Nr as te, Nt as ne, Or as re, Ot as ie, P as ae, Pn as oe, Pr as se, Q as ce, Qn as le, Qr as ue, R as de, Rn as fe, Rr as pe, S as me, Sr as he, T as ge, Tr as _e, Tt as ve, U as ye, Ur as be, V as xe, Vr as Se, Vt as Ce, W as we, Wr as Te, X as Ee, Xn as De, Xr as Oe, Y as ke, Yr as Ae, Z as je, Zn as Me, Zr as Ne, Zt as Pe, _ as Fe, _i as Ie, _n as Le, _r as Re, ai as ze, an as Be, ar as Ve, at as He, b as Ue, bi as We, bn as Ge, br as Ke, ci as qe, cr as Je, ct as Ye, d as Xe, dr as Ze, dt as Qe, ei as $e, en as et, er as tt, et as nt, fi as rt, fn as it, ft as at, g as ot, gi as st, gn as ct, gr as lt, h as ut, hi as dt, hn as ft, ii as pt, in as mt, ir as ht, it as gt, j as _t, jr as vt, jt as yt, kr as bt, li as xt, lr as St, lt as Ct, m as wt, mi as Tt, mn as Et, mt as Dt, n as Ot, ni as kt, nr as At, nt as jt, oi as Mt, on as Nt, or as Pt, ot as Ft, p as It, pi as Lt, pn as Rt, pt as zt, q as Bt, qr as Vt, qt as Ht, r as Ut, ri as Wt, rt as Gt, s as Kt, si as qt, sr as Jt, st as Yt, t as Xt, ti as Zt, tt as Qt, ui as $t, ur as en, ut as tn, v as nn, vi as rn, vn as an, vr as on, w as sn, wi as cn, wt as ln, x as un, xi as dn, xn as fn, xr as pn, y as mn, yi as hn, yn as gn, yr as _n, z as vn, zn as yn, zr as bn, zt as xn } from "./CoachmarkProvider-
|
|
2
|
+
import { $ as t, $n as n, Ar as r, At as i, B as a, Br as o, C as s, Ci as c, Cn as l, Cr as u, Ct as d, Dr as f, Dt as p, Er as m, Et as h, F as g, Fn as _, Fr as v, G as y, Gr as b, H as x, Hr as S, I as C, In as w, Ir as T, It as E, J as D, K as O, Kr as k, L as A, Ln as j, Lr as M, Lt as N, M as P, Mr as F, Mt as I, N as L, Nn as ee, Nr as te, Nt as ne, Or as re, Ot as ie, P as ae, Pn as oe, Pr as se, Q as ce, Qn as le, Qr as ue, R as de, Rn as fe, Rr as pe, S as me, Sr as he, T as ge, Tr as _e, Tt as ve, U as ye, Ur as be, V as xe, Vr as Se, Vt as Ce, W as we, Wr as Te, X as Ee, Xn as De, Xr as Oe, Y as ke, Yr as Ae, Z as je, Zn as Me, Zr as Ne, Zt as Pe, _ as Fe, _i as Ie, _n as Le, _r as Re, ai as ze, an as Be, ar as Ve, at as He, b as Ue, bi as We, bn as Ge, br as Ke, ci as qe, cr as Je, ct as Ye, d as Xe, dr as Ze, dt as Qe, ei as $e, en as et, er as tt, et as nt, fi as rt, fn as it, ft as at, g as ot, gi as st, gn as ct, gr as lt, h as ut, hi as dt, hn as ft, ii as pt, in as mt, ir as ht, it as gt, j as _t, jr as vt, jt as yt, kr as bt, li as xt, lr as St, lt as Ct, m as wt, mi as Tt, mn as Et, mt as Dt, n as Ot, ni as kt, nr as At, nt as jt, oi as Mt, on as Nt, or as Pt, ot as Ft, p as It, pi as Lt, pn as Rt, pt as zt, q as Bt, qr as Vt, qt as Ht, r as Ut, ri as Wt, rt as Gt, s as Kt, si as qt, sr as Jt, st as Yt, t as Xt, ti as Zt, tt as Qt, ui as $t, ur as en, ut as tn, v as nn, vi as rn, vn as an, vr as on, w as sn, wi as cn, wt as ln, x as un, xi as dn, xn as fn, xr as pn, y as mn, yi as hn, yn as gn, yr as _n, z as vn, zn as yn, zr as bn, zt as xn } from "./CoachmarkProvider-fehx7Q_o.js";
|
|
3
3
|
import { a as Sn, c as Cn, i as wn, r as R, u as Tn } from "./i18n-provider-C_jciu_6.js";
|
|
4
4
|
import { n as En, t as z } from "./skeleton-BEiQvWC1.js";
|
|
5
5
|
import { L as B, R as Dn, a as On, i as kn, o as An, r as jn, t as Mn } from "./tooltip-BX4dSfeL.js";
|
|
6
|
-
import { B as Nn, C as Pn, D as Fn, E as In, F as Ln, H as Rn, I as zn,
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { B as Nn, C as Pn, D as Fn, E as In, F as Ln, H as Rn, I as zn, K as Bn, N as Vn, P as Hn, R as Un, S as Wn, T as Gn, U as V, V as Kn, _ as qn, b as Jn, c as Yn, d as Xn, f as Zn, h as Qn, m as $n, n as H, o as er, p as tr, q as nr, r as rr, t as U, v as ir, w as ar } from "./F0Button-DliApWoo.js";
|
|
7
|
+
import { $ as or, $a as sr, $c as cr, $r as lr, $t as ur, Ac as dr, At as fr, B as pr, Bc as mr, Bi as hr, Bs as gr, C as _r, Cc as vr, Co as yr, Ct as br, D as xr, Dc as Sr, Di as Cr, Do as wr, Dt as Tr, E as Er, Ei as Dr, Et as Or, Fs as kr, Ft as Ar, G as jr, Gc as Mr, Gr as Nr, Gt as Pr, H as Fr, Hc as Ir, Hn as Lr, Ho as Rr, Hr as zr, Ht as Br, Is as Vr, It as Hr, J as Ur, Js as Wr, Jt as Gr, Kc as Kr, Ls as qr, Lt as Jr, M as Yr, Mc as Xr, Mi as Zr, Mr as Qr, Ms as $r, N as ei, Ns as ti, Nt as ni, O as ri, Oc as ii, Oi as ai, Os as oi, P as si, Pa as ci, Po as li, Ps as ui, Q as di, Qa as fi, Qo as pi, Qr as mi, Rc as hi, Ri as gi, Ro as _i, Rt as vi, Sc as yi, So as bi, Ss as xi, T as Si, Tc as Ci, To as wi, Tt as Ti, U as Ei, Ur as Di, Us as Oi, V as ki, Vn as Ai, Vo as ji, Vr as Mi, Vs as Ni, Vt as Pi, W as Fi, Wc as Ii, Wo as Li, Wr as Ri, Wt as zi, X as Bi, Y as Vi, Ys as Hi, Z as Ui, Zc as Wi, Zr as Gi, _ as Ki, _c as qi, _s as Ji, _t as Yi, ac as Xi, ai as Zi, as as Qi, at as $i, b as ea, bc as ta, bo as na, bs as ra, bt as ia, c as aa, cc as oa, co as sa, cs as ca, ct as la, d as ua, di as da, ds as fa, dt as pa, ec as ma, ei as ha, en as ga, eo as _a, es as va, et as ya, f as ba, fi as xa, fn as Sa, fs as Ca, ft as wa, g as Ta, gi as Ea, gs as Da, gt as Oa, h as ka, hc as Aa, hi as ja, hn as Ma, hs as Na, ht as Pa, i as Fa, ic as Ia, ii as La, it as Ra, ja as za, jo as Ba, jr as Va, ka as Ha, kc as Ua, ki as Wa, ko as Ga, ks as Ka, kt as qa, l as Ja, lc as Ya, li as Xa, lo as Za, lt as Qa, m as $a, mi as eo, mn as to, mt as no, n as ro, nc as io, nl as ao, no as oo, ns as so, nt as co, o as lo, on as uo, oo as fo, ot as po, p as mo, pi as ho, pn as go, pt as _o, qt as vo, rc as yo, rn as bo, ro as xo, rs as So, rt as Co, s as wo, sc as To, si as Eo, sn as Do, so as Oo, ss as ko, st as Ao, t as jo, ti as Mo, tl as No, tn as Po, to as Fo, ts as Io, tt as Lo, u as Ro, ui as zo, un as Bo, uo as Vo, us as Ho, ut as Uo, v as Wo, vc as Go, vn as Ko, vs as qo, vt as Jo, w as Yo, wc as Xo, wi as Zo, wt as Qo, x as $o, xo as es, xs as ts, xt as ns, y as rs, yc as is, yi as as, yo as os, zc as ss, zo as cs, zs as ls } from "./F0CanvasPanel-BKvyk32z.js";
|
|
8
|
+
import { t as us } from "./LayoutGroup-gwem4ADm.js";
|
|
9
9
|
import { n as ds, o as fs, r as ps, t as W } from "./F0Icon-Dw-YD4Mz.js";
|
|
10
|
-
import { A as ms, B as hs, C as gs, D as _s, F as vs, H as ys, I as bs, L as xs, M as Ss, N as Cs, O as ws, S as Ts, T as Es, V as Ds, f as Os, g as ks, h as As, i as js, j as Ms, k as Ns, l as Ps, w as Fs, x as Is, y as Ls, z as Rs } from "./useData-
|
|
11
|
-
import { $ as zs, $t as Bs, Cr as Vs, Ct as Hs, Dn as Us, Dr as Ws, En as Gs, Er as Ks, Et as qs, K as Js, M as Ys, Mn as Xs, N as Zs, Nn as Qs, On as $s, Or as ec, P as tc, Sn as nc, Sr as rc, St as ic, Tn as ac, Tr as oc, Tt as sc, X as cc, Y as lc, Z as uc, _ as dc, _n as fc, _t as pc, cn as mc, cr as hc, ct as gc, dr as _c, en as vc, et as yc, fn as bc, g as xc, gt as Sc, h as Cc, jn as wc, jt as Tc, k as Ec, m as Dc, nn as Oc, nt as kc, p as Ac, rn as jc, rt as Mc, sr as Nc, t as Pc, tt as Fc, ur as Ic, ut as Lc, v as Rc, vt as zc, wn as Bc, wt as Vc, xr as Hc, yt as Uc } from "./F0Select-
|
|
10
|
+
import { A as ms, B as hs, C as gs, D as _s, F as vs, H as ys, I as bs, L as xs, M as Ss, N as Cs, O as ws, S as Ts, T as Es, V as Ds, f as Os, g as ks, h as As, i as js, j as Ms, k as Ns, l as Ps, w as Fs, x as Is, y as Ls, z as Rs } from "./useData-CuyhVJ87.js";
|
|
11
|
+
import { $ as zs, $t as Bs, Cr as Vs, Ct as Hs, Dn as Us, Dr as Ws, En as Gs, Er as Ks, Et as qs, K as Js, M as Ys, Mn as Xs, N as Zs, Nn as Qs, On as $s, Or as ec, P as tc, Sn as nc, Sr as rc, St as ic, Tn as ac, Tr as oc, Tt as sc, X as cc, Y as lc, Z as uc, _ as dc, _n as fc, _t as pc, cn as mc, cr as hc, ct as gc, dr as _c, en as vc, et as yc, fn as bc, g as xc, gt as Sc, h as Cc, jn as wc, jt as Tc, k as Ec, m as Dc, nn as Oc, nt as kc, p as Ac, rn as jc, rt as Mc, sr as Nc, t as Pc, tt as Fc, ur as Ic, ut as Lc, v as Rc, vt as zc, wn as Bc, wt as Vc, xr as Hc, yt as Uc } from "./F0Select-DLK87Tv6.js";
|
|
12
12
|
import { t as Wc } from "./Check-DAp9gCRh.js";
|
|
13
13
|
import { a as Gc } from "./dist-DJwNiwmx.js";
|
|
14
14
|
import { t as Kc } from "./Ellipsis-CBouJQYY.js";
|
|
@@ -16,12 +16,12 @@ import { t as qc } from "./ExternalLink-RdKU698E.js";
|
|
|
16
16
|
import { n as Jc, t as Yc } from "./LockLocked-gdodYvT_.js";
|
|
17
17
|
import { a as Xc, o as Zc } from "./localized-CnKvEJya.js";
|
|
18
18
|
import { A as Qc, G as $c, H as el, L as tl, M as nl, N as rl, W as il, a as al, ft as ol, gt as sl, i as cl, j as ll, k as ul, n as dl, t as fl } from "./popover-Cd6ZZfjD.js";
|
|
19
|
-
import { a as pl, c as ml, i as hl, n as gl, o as _l, r as vl, t as yl } from "./scrollarea-
|
|
20
|
-
import { t as bl } from "./F0Text-
|
|
19
|
+
import { a as pl, c as ml, i as hl, n as gl, o as _l, r as vl, t as yl } from "./scrollarea-B6RGaKme.js";
|
|
20
|
+
import { t as bl } from "./F0Text-Cb-FVBzx.js";
|
|
21
21
|
import { a as xl, i as Sl, n as Cl, r as wl, s as Tl } from "./dist-Cuwaibqg.js";
|
|
22
22
|
import './maplibre-gl.css';import './RichText.css';/* empty css */
|
|
23
23
|
import { t as El } from "./useFullscreen-CNwpzjpz.js";
|
|
24
|
-
import { S as Dl, _ as Ol, a as kl, b as Al, c as jl, d as Ml, f as Nl, g as Pl, h as Fl, i as Il, l as Ll, m as Rl, n as zl, o as Bl, p as Vl, r as Hl, t as Ul, u as Wl, v as Gl, x as Kl, y as ql } from "./F0Map-
|
|
24
|
+
import { S as Dl, _ as Ol, a as kl, b as Al, c as jl, d as Ml, f as Nl, g as Pl, h as Fl, i as Il, l as Ll, m as Rl, n as zl, o as Bl, p as Vl, r as Hl, t as Ul, u as Wl, v as Gl, x as Kl, y as ql } from "./F0Map-DClia8fc.js";
|
|
25
25
|
import { _ as Jl, a as Yl, c as Xl, d as Zl, f as Ql, g as $l, h as eu, i as tu, l as nu, m as ru, n as iu, o as au, p as ou, r as su, s as cu, t as lu, u as uu } from "./posts-BBvCiBdi.js";
|
|
26
26
|
/* empty css */
|
|
27
27
|
import du, { Children as fu, Fragment as pu, Suspense as mu, cloneElement as hu, createContext as gu, forwardRef as _u, isValidElement as vu, lazy as yu, memo as bu, useCallback as G, useContext as xu, useEffect as K, useId as Su, useImperativeHandle as Cu, useInsertionEffect as wu, useLayoutEffect as q, useMemo as J, useReducer as Tu, useRef as Y, useState as X, useSyncExternalStore as Eu, useTransition as Du } from "react";
|
|
@@ -46,12 +46,12 @@ function ju(e, t) {
|
|
|
46
46
|
//#region ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/differenceInMinutes.mjs
|
|
47
47
|
function Mu(e, t, n) {
|
|
48
48
|
let r = ju(e, t) / fc;
|
|
49
|
-
return
|
|
49
|
+
return fo(n?.roundingMethod)(r);
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/isTomorrow.mjs
|
|
53
53
|
function Nu(e) {
|
|
54
|
-
return bc(e, nc(
|
|
54
|
+
return bc(e, nc(Oo(e), 1));
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region src/elements/F0ProgressSeries/types.ts
|
|
@@ -237,7 +237,7 @@ var ed = ({ children: e }) => {
|
|
|
237
237
|
reset: () => {},
|
|
238
238
|
isOpen: t,
|
|
239
239
|
autoClearMinutes: i
|
|
240
|
-
}), /* @__PURE__ */ Q(
|
|
240
|
+
}), /* @__PURE__ */ Q(Bn, { children: t ? /* @__PURE__ */ Q(V.div, {
|
|
241
241
|
"aria-hidden": !t,
|
|
242
242
|
className: "relative p-1 pl-1.5 w-[360px] flex h-full flex-col overflow-hidden ",
|
|
243
243
|
initial: n ? {
|
|
@@ -493,7 +493,7 @@ var ed = ({ children: e }) => {
|
|
|
493
493
|
variant: "ghost",
|
|
494
494
|
hideLabel: !0,
|
|
495
495
|
label: "",
|
|
496
|
-
icon:
|
|
496
|
+
icon: vr,
|
|
497
497
|
onClick: () => {
|
|
498
498
|
o(!1), s?.();
|
|
499
499
|
}
|
|
@@ -599,7 +599,7 @@ var ed = ({ children: e }) => {
|
|
|
599
599
|
size: s,
|
|
600
600
|
hideLabel: !0,
|
|
601
601
|
disabled: a,
|
|
602
|
-
icon: l ? void 0 :
|
|
602
|
+
icon: l ? void 0 : ca
|
|
603
603
|
})
|
|
604
604
|
}), /* @__PURE__ */ $(cl, {
|
|
605
605
|
side: "bottom",
|
|
@@ -680,7 +680,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
680
680
|
return /* @__PURE__ */ $("span", {
|
|
681
681
|
className: "flex min-w-0 flex-row items-center gap-1 text-base font-normal text-f1-foreground-secondary",
|
|
682
682
|
children: [/* @__PURE__ */ Q(W, {
|
|
683
|
-
icon:
|
|
683
|
+
icon: Ba,
|
|
684
684
|
size: "md",
|
|
685
685
|
color: "currentColor",
|
|
686
686
|
"aria-hidden": !0
|
|
@@ -742,7 +742,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
742
742
|
color: Sd[e],
|
|
743
743
|
"aria-hidden": !0
|
|
744
744
|
}) : null,
|
|
745
|
-
/* @__PURE__ */ Q(
|
|
745
|
+
/* @__PURE__ */ Q(rr, {
|
|
746
746
|
className: B("text-base font-medium", bd({ status: e })),
|
|
747
747
|
children: t
|
|
748
748
|
}),
|
|
@@ -758,7 +758,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
758
758
|
}) : null
|
|
759
759
|
]
|
|
760
760
|
}),
|
|
761
|
-
r && i ? /* @__PURE__ */ Q(
|
|
761
|
+
r && i ? /* @__PURE__ */ Q(ai, {
|
|
762
762
|
asChild: !0,
|
|
763
763
|
children: /* @__PURE__ */ Q(U, {
|
|
764
764
|
variant: "ghost",
|
|
@@ -771,7 +771,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
771
771
|
o ? /* @__PURE__ */ Q(U, {
|
|
772
772
|
variant: "ghost",
|
|
773
773
|
size: "sm",
|
|
774
|
-
icon:
|
|
774
|
+
icon: vr,
|
|
775
775
|
hideLabel: !0,
|
|
776
776
|
label: c.close,
|
|
777
777
|
onClick: o
|
|
@@ -785,7 +785,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
785
785
|
status: e,
|
|
786
786
|
first: !0,
|
|
787
787
|
last: !r || !i
|
|
788
|
-
}), /* @__PURE__ */ Q(
|
|
788
|
+
}), /* @__PURE__ */ Q(Bn, {
|
|
789
789
|
initial: !1,
|
|
790
790
|
children: r && i ? /* @__PURE__ */ Q(V.div, {
|
|
791
791
|
initial: {
|
|
@@ -802,7 +802,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
802
802
|
},
|
|
803
803
|
transition: { duration: a ? 0 : .2 },
|
|
804
804
|
className: "overflow-hidden",
|
|
805
|
-
children: /* @__PURE__ */ Q(
|
|
805
|
+
children: /* @__PURE__ */ Q(Cr, {
|
|
806
806
|
forceMount: !0,
|
|
807
807
|
asChild: !0,
|
|
808
808
|
children: /* @__PURE__ */ Q("div", { children: n.map((t, r) => /* @__PURE__ */ Q(Dd, {
|
|
@@ -843,7 +843,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
843
843
|
})]
|
|
844
844
|
}), s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("div", {
|
|
845
845
|
className: "-ml-2",
|
|
846
|
-
children: /* @__PURE__ */ Q(
|
|
846
|
+
children: /* @__PURE__ */ Q(ai, {
|
|
847
847
|
asChild: !0,
|
|
848
848
|
children: /* @__PURE__ */ Q(U, {
|
|
849
849
|
variant: "ghost",
|
|
@@ -853,7 +853,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
853
853
|
iconPosition: "right"
|
|
854
854
|
})
|
|
855
855
|
})
|
|
856
|
-
}), /* @__PURE__ */ Q(
|
|
856
|
+
}), /* @__PURE__ */ Q(Bn, {
|
|
857
857
|
initial: !1,
|
|
858
858
|
children: c ? /* @__PURE__ */ Q(V.div, {
|
|
859
859
|
initial: {
|
|
@@ -870,7 +870,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
870
870
|
},
|
|
871
871
|
transition: { duration: l ? 0 : .2 },
|
|
872
872
|
className: "w-full overflow-hidden",
|
|
873
|
-
children: /* @__PURE__ */ Q(
|
|
873
|
+
children: /* @__PURE__ */ Q(Cr, {
|
|
874
874
|
forceMount: !0,
|
|
875
875
|
asChild: !0,
|
|
876
876
|
children: /* @__PURE__ */ Q(d, {
|
|
@@ -937,7 +937,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
937
937
|
children: [A, j]
|
|
938
938
|
})]
|
|
939
939
|
});
|
|
940
|
-
return w ? /* @__PURE__ */ Q(
|
|
940
|
+
return w ? /* @__PURE__ */ Q(Dr, {
|
|
941
941
|
open: y,
|
|
942
942
|
onOpenChange: (e) => {
|
|
943
943
|
v(e), f?.(e);
|
|
@@ -970,7 +970,7 @@ var gd = Sn(En("F0EmojiPicker", hd)), _d = [
|
|
|
970
970
|
compact: t
|
|
971
971
|
});
|
|
972
972
|
Ld.displayName = "F0AiCallout";
|
|
973
|
-
var zd =
|
|
973
|
+
var zd = na(Sn(Ld), Rd), Bd = fs({
|
|
974
974
|
base: "flex w-full flex-col rounded-lg p-[1px]",
|
|
975
975
|
variants: { variant: {
|
|
976
976
|
ai: "bg-gradient-to-l from-[#A1ADE51F] via-[#E519431F] to-[#E556191F]",
|
|
@@ -1003,13 +1003,13 @@ var zd = ra(Sn(Ld), Rd), Bd = fs({
|
|
|
1003
1003
|
icon: Vd[i],
|
|
1004
1004
|
size: "sm",
|
|
1005
1005
|
"aria-hidden": !0
|
|
1006
|
-
}) : null, /* @__PURE__ */ Q(
|
|
1006
|
+
}) : null, /* @__PURE__ */ Q(rr, {
|
|
1007
1007
|
className: Hd[i] || "font-medium",
|
|
1008
1008
|
children: e
|
|
1009
1009
|
})]
|
|
1010
1010
|
}), t ? /* @__PURE__ */ Q(U, {
|
|
1011
1011
|
variant: "ghost",
|
|
1012
|
-
icon:
|
|
1012
|
+
icon: vr,
|
|
1013
1013
|
size: "sm",
|
|
1014
1014
|
hideLabel: !0,
|
|
1015
1015
|
onClick: t,
|
|
@@ -1063,7 +1063,7 @@ var zd = ra(Sn(Ld), Rd), Bd = fs({
|
|
|
1063
1063
|
variant: t
|
|
1064
1064
|
});
|
|
1065
1065
|
Gd.displayName = "F0Callout";
|
|
1066
|
-
var qd =
|
|
1066
|
+
var qd = na(Sn(Gd), Kd), Jd = [
|
|
1067
1067
|
"#EE4B8E",
|
|
1068
1068
|
"#2E7FF0",
|
|
1069
1069
|
"#4CAF3E",
|
|
@@ -1186,12 +1186,12 @@ var of = Sn(En("F0Confetti", af)), sf = (e, t) => {
|
|
|
1186
1186
|
let { meetingCard: n } = R(), r = e.label ?? n.join;
|
|
1187
1187
|
return e.href && !t ? /* @__PURE__ */ Q(U, {
|
|
1188
1188
|
label: r,
|
|
1189
|
-
icon:
|
|
1189
|
+
icon: cs,
|
|
1190
1190
|
variant: "default",
|
|
1191
1191
|
href: e.href
|
|
1192
1192
|
}) : /* @__PURE__ */ Q(U, {
|
|
1193
1193
|
label: r,
|
|
1194
|
-
icon:
|
|
1194
|
+
icon: cs,
|
|
1195
1195
|
variant: "default",
|
|
1196
1196
|
disabled: t,
|
|
1197
1197
|
onClick: e.onJoin
|
|
@@ -1221,7 +1221,7 @@ var of = Sn(En("F0Confetti", af)), sf = (e, t) => {
|
|
|
1221
1221
|
case "summarizing": return /* @__PURE__ */ Q(ac, {
|
|
1222
1222
|
text: n.summarizing,
|
|
1223
1223
|
variant: "neutral",
|
|
1224
|
-
icon:
|
|
1224
|
+
icon: cr
|
|
1225
1225
|
});
|
|
1226
1226
|
case "finished": return /* @__PURE__ */ Q(ac, {
|
|
1227
1227
|
text: n.finished,
|
|
@@ -1334,7 +1334,7 @@ var of = Sn(En("F0Confetti", af)), sf = (e, t) => {
|
|
|
1334
1334
|
join: d,
|
|
1335
1335
|
disabled: A
|
|
1336
1336
|
}) : null] });
|
|
1337
|
-
return /* @__PURE__ */ Q(
|
|
1337
|
+
return /* @__PURE__ */ Q(yr, {
|
|
1338
1338
|
ref: m,
|
|
1339
1339
|
className: B("rounded-2xl border-f1-border-secondary bg-f1-background p-3 shadow-none", p ? "gap-1.5" : "gap-2.5"),
|
|
1340
1340
|
"data-testid": "meeting-card",
|
|
@@ -1375,7 +1375,7 @@ var of = Sn(En("F0Confetti", af)), sf = (e, t) => {
|
|
|
1375
1375
|
});
|
|
1376
1376
|
});
|
|
1377
1377
|
Df.displayName = "F0MeetingCard";
|
|
1378
|
-
var Of = Sn(En("F0MeetingCard",
|
|
1378
|
+
var Of = Sn(En("F0MeetingCard", na(Df, ({ compact: e = !1 }) => /* @__PURE__ */ Q(yr, {
|
|
1379
1379
|
className: B("rounded-2xl border-f1-border-secondary bg-f1-background p-3 shadow-none", e ? "gap-1.5" : "gap-2.5"),
|
|
1380
1380
|
"aria-busy": "true",
|
|
1381
1381
|
"aria-live": "polite",
|
|
@@ -1450,7 +1450,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1450
1450
|
let n = !e.shiftKey && !e.altKey && !e.metaKey && !e.ctrlKey;
|
|
1451
1451
|
return e.key !== "ArrowUp" || !n || t.editor.value !== "" || !t.isVoiceIdle || !t.onArrowUpWhenEmpty?.() ? !1 : (e.preventDefault(), !0);
|
|
1452
1452
|
}, Lf = (e, t) => {
|
|
1453
|
-
t.isReplaced ||
|
|
1453
|
+
t.isReplaced || Uo(e) || t.editor.handleUndoRedoKeyDown(e) || t.autocomplete?.handleKeyDown(e) || t.editor.mentions.handleKeyDown(e) || Ff(e, t) || If(e, t) || e.key !== "Enter" || e.shiftKey || (e.preventDefault(), t.inProgress ? t.queue?.() : t.send());
|
|
1454
1454
|
}, Rf = ({ handleRef: e, editor: t, valueRef: n, mentionsRef: r, isReplaced: i, onTextChange: a, onDraftReplaced: o, cancelRecording: s }) => {
|
|
1455
1455
|
let { textareaRef: c, setValue: l, setCursorPosition: u, clearText: d, loadDraft: f, requestSelection: p, breakHistory: m } = t;
|
|
1456
1456
|
Cu(e, () => ({
|
|
@@ -1597,14 +1597,14 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1597
1597
|
canSend: p
|
|
1598
1598
|
};
|
|
1599
1599
|
}, Vf = ({ voice: e, labels: t, valueRef: n, writeTextRef: r, focusRef: i }) => {
|
|
1600
|
-
let { error: a, show: o, clear: s } =
|
|
1600
|
+
let { error: a, show: o, clear: s } = la(), c = Y(""), l = G((e) => {
|
|
1601
1601
|
let t = c.current, n = t && !/\s$/.test(t) ? " " : "";
|
|
1602
1602
|
r.current(`${t}${n}${e}`);
|
|
1603
1603
|
}, [r]), u = {
|
|
1604
1604
|
"permission-denied": t.micPermissionDenied,
|
|
1605
1605
|
"device-error": t.micError,
|
|
1606
1606
|
"transcription-failed": t.transcriptionError
|
|
1607
|
-
}, d =
|
|
1607
|
+
}, d = Ko({
|
|
1608
1608
|
onTranscribe: e?.onTranscribe,
|
|
1609
1609
|
onPartial: l,
|
|
1610
1610
|
onFinal: (e) => {
|
|
@@ -1681,7 +1681,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1681
1681
|
let [r, i] = X(!1), { panel: a } = e, o = /* @__PURE__ */ Q("div", {
|
|
1682
1682
|
className: "flex",
|
|
1683
1683
|
onClick: (e) => e.stopPropagation(),
|
|
1684
|
-
children: /* @__PURE__ */ Q(
|
|
1684
|
+
children: /* @__PURE__ */ Q(Za, {
|
|
1685
1685
|
items: e.items,
|
|
1686
1686
|
align: "start",
|
|
1687
1687
|
disabled: n,
|
|
@@ -1721,17 +1721,17 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1721
1721
|
"data-composer-chrome": "",
|
|
1722
1722
|
className: "flex w-full flex-col gap-2",
|
|
1723
1723
|
children: [
|
|
1724
|
-
c ? /* @__PURE__ */ Q(
|
|
1724
|
+
c ? /* @__PURE__ */ Q(Yi, {
|
|
1725
1725
|
suggestions: e.groups,
|
|
1726
1726
|
onItemClick: e.onSelect,
|
|
1727
1727
|
onItemHover: (e) => a(e ? e.prompt ?? e.title : null)
|
|
1728
1728
|
}) : null,
|
|
1729
|
-
/* @__PURE__ */ Q(
|
|
1729
|
+
/* @__PURE__ */ Q(Fr, {
|
|
1730
1730
|
notice: t,
|
|
1731
1731
|
dismissLabel: r.dismissNotice,
|
|
1732
1732
|
children: s
|
|
1733
1733
|
}),
|
|
1734
|
-
/* @__PURE__ */ Q(
|
|
1734
|
+
/* @__PURE__ */ Q(Jo, {
|
|
1735
1735
|
hint: i ? {
|
|
1736
1736
|
navigate: r.hintNavigate,
|
|
1737
1737
|
select: r.hintSelect,
|
|
@@ -1762,14 +1762,14 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1762
1762
|
size: "md",
|
|
1763
1763
|
hideLabel: !0,
|
|
1764
1764
|
label: n?.busy ? t.sendingVoice : t.recordAudio,
|
|
1765
|
-
icon:
|
|
1765
|
+
icon: ui,
|
|
1766
1766
|
onClick: e.onRecord,
|
|
1767
1767
|
disabled: n?.disabled,
|
|
1768
1768
|
loading: e.micLoading
|
|
1769
1769
|
}), /* @__PURE__ */ Q(qf, { ...e })] });
|
|
1770
1770
|
}, Yf = ({ actions: e, disabled: t }) => /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("div", {
|
|
1771
1771
|
className: "flex px-1",
|
|
1772
|
-
children: /* @__PURE__ */ Q(
|
|
1772
|
+
children: /* @__PURE__ */ Q(ki, {})
|
|
1773
1773
|
}), e.map((e) => /* @__PURE__ */ Q(H, {
|
|
1774
1774
|
type: "button",
|
|
1775
1775
|
variant: "ghost",
|
|
@@ -1795,14 +1795,14 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1795
1795
|
size: "md",
|
|
1796
1796
|
hideLabel: !0,
|
|
1797
1797
|
label: n.stop,
|
|
1798
|
-
icon:
|
|
1798
|
+
icon: so,
|
|
1799
1799
|
onClick: r ? void 0 : t.onStop
|
|
1800
1800
|
}) : t.hasRecorder ? /* @__PURE__ */ Q(Jf, { ...t }) : /* @__PURE__ */ Q(qf, { ...t });
|
|
1801
1801
|
}, Qf = (e) => {
|
|
1802
1802
|
let { reducedMotion: t, actions: n } = e, r = Xf(e);
|
|
1803
1803
|
return /* @__PURE__ */ $("div", {
|
|
1804
1804
|
className: "flex shrink-0 items-center gap-1 pb-1.5",
|
|
1805
|
-
children: [/* @__PURE__ */ Q(
|
|
1805
|
+
children: [/* @__PURE__ */ Q(Bn, {
|
|
1806
1806
|
initial: !1,
|
|
1807
1807
|
mode: "popLayout",
|
|
1808
1808
|
children: /* @__PURE__ */ Q(V.div, {
|
|
@@ -1821,7 +1821,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1821
1821
|
},
|
|
1822
1822
|
transition: {
|
|
1823
1823
|
duration: .15,
|
|
1824
|
-
ease:
|
|
1824
|
+
ease: ga
|
|
1825
1825
|
},
|
|
1826
1826
|
children: /* @__PURE__ */ Q(Zf, {
|
|
1827
1827
|
mode: r,
|
|
@@ -1843,11 +1843,11 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1843
1843
|
children: [/* @__PURE__ */ $("span", {
|
|
1844
1844
|
className: "flex items-center gap-1 text-sm font-medium text-f1-foreground-secondary",
|
|
1845
1845
|
children: [/* @__PURE__ */ Q(W, {
|
|
1846
|
-
icon:
|
|
1846
|
+
icon: Ua,
|
|
1847
1847
|
size: "xs",
|
|
1848
1848
|
color: "default"
|
|
1849
1849
|
}), t.queued]
|
|
1850
|
-
}), /* @__PURE__ */ Q(
|
|
1850
|
+
}), /* @__PURE__ */ Q(rr, {
|
|
1851
1851
|
className: "min-w-0 text-base text-f1-foreground",
|
|
1852
1852
|
lines: 1,
|
|
1853
1853
|
children: e
|
|
@@ -1860,7 +1860,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1860
1860
|
size: "sm",
|
|
1861
1861
|
hideLabel: !0,
|
|
1862
1862
|
label: t.removeQueued,
|
|
1863
|
-
icon:
|
|
1863
|
+
icon: vr,
|
|
1864
1864
|
onClick: n
|
|
1865
1865
|
})
|
|
1866
1866
|
})]
|
|
@@ -1872,7 +1872,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1872
1872
|
"aria-hidden": n || void 0,
|
|
1873
1873
|
className: B("flex min-w-0 items-end [grid-area:1/1]", !u && "transition-opacity duration-150", n && "pointer-events-none opacity-0", r),
|
|
1874
1874
|
children: e
|
|
1875
|
-
}), /* @__PURE__ */ Q(
|
|
1875
|
+
}), /* @__PURE__ */ Q(Bn, {
|
|
1876
1876
|
initial: !1,
|
|
1877
1877
|
children: n ? /* @__PURE__ */ $(V.div, {
|
|
1878
1878
|
className: "flex min-w-0 items-end gap-2 pb-1.5 pl-3 [grid-area:1/1]",
|
|
@@ -1885,7 +1885,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1885
1885
|
transition: { duration: u ? 0 : .15 },
|
|
1886
1886
|
children: [/* @__PURE__ */ Q("div", {
|
|
1887
1887
|
className: "flex h-8 min-w-0 flex-1 items-center",
|
|
1888
|
-
children: /* @__PURE__ */ Q(
|
|
1888
|
+
children: /* @__PURE__ */ Q(Sa, {
|
|
1889
1889
|
stream: i,
|
|
1890
1890
|
className: "min-w-0 flex-1"
|
|
1891
1891
|
})
|
|
@@ -1897,7 +1897,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1897
1897
|
size: "md",
|
|
1898
1898
|
hideLabel: !0,
|
|
1899
1899
|
label: a.cancelRecording,
|
|
1900
|
-
icon:
|
|
1900
|
+
icon: vr,
|
|
1901
1901
|
onClick: s
|
|
1902
1902
|
}), /* @__PURE__ */ Q(H, {
|
|
1903
1903
|
ref: o,
|
|
@@ -1920,7 +1920,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1920
1920
|
], np = ({ replacement: e, children: t, reducedMotion: n }) => {
|
|
1921
1921
|
if (e === void 0) return t;
|
|
1922
1922
|
let r = (e) => n ? 0 : e, i = e != null;
|
|
1923
|
-
return /* @__PURE__ */ Q(
|
|
1923
|
+
return /* @__PURE__ */ Q(Bn, {
|
|
1924
1924
|
initial: !1,
|
|
1925
1925
|
children: /* @__PURE__ */ Q(V.div, {
|
|
1926
1926
|
"data-composer-swap": "",
|
|
@@ -1976,7 +1976,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
1976
1976
|
text: i
|
|
1977
1977
|
};
|
|
1978
1978
|
}, dp = (e, t, n) => {
|
|
1979
|
-
let { mentions: r } = e, i = `composer-mentions-${Su().replace(/:/g, "")}`, a = t?.isOpen ?? !1, o = r.isOpen && !a && !n && (r.isLoading || r.rows.length > 0), s = r.rows[r.selectedIndex] ?? r.rows[0], c = o && s ?
|
|
1979
|
+
let { mentions: r } = e, i = `composer-mentions-${Su().replace(/:/g, "")}`, a = t?.isOpen ?? !1, o = r.isOpen && !a && !n && (r.isLoading || r.rows.length > 0), s = r.rows[r.selectedIndex] ?? r.rows[0], c = o && s ? Ao(i, s.item) : void 0;
|
|
1980
1980
|
return a ? {
|
|
1981
1981
|
mentionListboxId: i,
|
|
1982
1982
|
mentionsVisible: o,
|
|
@@ -2007,7 +2007,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
2007
2007
|
n
|
|
2008
2008
|
]), r;
|
|
2009
2009
|
}, hp = ({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r = !1, maxQueued: i = 1, sendKind: a = "send", hasAttachments: o = !1, sendBlocked: s = !1, maxLength: c, maxLengthError: l, error: u = null, labels: d, placeholders: f, placeholdersPaused: p, role: m = "combobox", name: h, mentions: g, autocomplete: _, voice: v, onTextChange: y, onCleared: b, onEscape: x, onArrowUpWhenEmpty: S, onPasteFiles: C, pastePreferText: w = !1, onStateChange: T, header: E, tray: D, leading: O, actions: k, replacement: A, variant: j = "default", suggestions: M, notice: N, disclaimer: P, replacementHint: F = !1, addMenu: I, asForm: L = !1, className: ee, surfaceRef: te, onSurfaceFocus: ne, onSurfaceBlur: re, handleRef: ie, reducedMotion: ae = !1, "data-testid": oe }) => {
|
|
2010
|
-
let se =
|
|
2010
|
+
let se = Qa(d, v), ce = A != null, le = Y(""), ue = Y(() => {}), de = Y(() => {}), fe = Vf({
|
|
2011
2011
|
voice: v,
|
|
2012
2012
|
labels: se,
|
|
2013
2013
|
valueRef: le,
|
|
@@ -2015,7 +2015,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
2015
2015
|
focusRef: de
|
|
2016
2016
|
}), { recorder: pe, isRecording: me, isDictating: he } = fe, [ge, _e] = X(!1), ve = G(() => _e(!0), []), ye = G(() => _e(!1), []), be = G((e) => {
|
|
2017
2017
|
(c === void 0 || e.trim().length <= c) && _e(!1), y?.(e);
|
|
2018
|
-
}, [c, y]), [xe, Se] = X(!1), Ce =
|
|
2018
|
+
}, [c, y]), [xe, Se] = X(!1), Ce = pa({
|
|
2019
2019
|
mentions: {
|
|
2020
2020
|
enabled: cp(g) && !xe && !ce,
|
|
2021
2021
|
sources: g?.sources ?? rp,
|
|
@@ -2032,7 +2032,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
2032
2032
|
Te(e), Ee(e.length), be(e);
|
|
2033
2033
|
}, de.current = () => De.current?.focus();
|
|
2034
2034
|
});
|
|
2035
|
-
let Ae = mp(_, Ce, Se), je = dp(Ce, Ae, ce), { highlightSegments: Me, hasOverlay: Ne } =
|
|
2035
|
+
let Ae = mp(_, Ce, Se), je = dp(Ce, Ae, ce), { highlightSegments: Me, hasOverlay: Ne } = wa(Ce, { suppressGhost: Ae?.isOpen ?? !1 }), Pe = Oe.close;
|
|
2036
2036
|
K(() => {
|
|
2037
2037
|
ce && Pe();
|
|
2038
2038
|
}, [ce, Pe]);
|
|
@@ -2077,7 +2077,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
2077
2077
|
onDraftReplaced: ye,
|
|
2078
2078
|
cancelRecording: pe.cancel
|
|
2079
2079
|
});
|
|
2080
|
-
let Ue =
|
|
2080
|
+
let Ue = Ra({
|
|
2081
2081
|
enabled: !!C && !ce,
|
|
2082
2082
|
onFiles: C ?? (() => {}),
|
|
2083
2083
|
preferText: w
|
|
@@ -2111,7 +2111,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
2111
2111
|
onConfirm: pe.stop,
|
|
2112
2112
|
onEscape: x,
|
|
2113
2113
|
reducedMotion: ae
|
|
2114
|
-
}, $e = /* @__PURE__ */ Q(
|
|
2114
|
+
}, $e = /* @__PURE__ */ Q(Oa, {
|
|
2115
2115
|
inset: "icon",
|
|
2116
2116
|
className: "min-w-0 flex-1",
|
|
2117
2117
|
textareaRef: De,
|
|
@@ -2161,7 +2161,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
2161
2161
|
}, e.id))
|
|
2162
2162
|
}) : null,
|
|
2163
2163
|
E,
|
|
2164
|
-
/* @__PURE__ */ Q(
|
|
2164
|
+
/* @__PURE__ */ Q($i, {
|
|
2165
2165
|
message: Re,
|
|
2166
2166
|
id: We,
|
|
2167
2167
|
reducedMotion: ae
|
|
@@ -2202,7 +2202,7 @@ var Nf = Sn(En("F0PulseDot", Mf)), Pf = [
|
|
|
2202
2202
|
onBlur: re
|
|
2203
2203
|
}, nt = /* @__PURE__ */ $(Z, { children: [
|
|
2204
2204
|
Ae?.popover,
|
|
2205
|
-
/* @__PURE__ */ Q(
|
|
2205
|
+
/* @__PURE__ */ Q(po, {
|
|
2206
2206
|
isOpen: je.mentionsVisible,
|
|
2207
2207
|
listboxId: je.mentionListboxId,
|
|
2208
2208
|
label: se.mentionSuggestions,
|
|
@@ -2381,7 +2381,7 @@ var Tp = 30, Ep = 50, Dp = (e, t, n) => Math.min(Math.max(e, t), n), Op = (e) =>
|
|
|
2381
2381
|
defaultSize: Dp(i, n, r)
|
|
2382
2382
|
};
|
|
2383
2383
|
}, Mp = Object.assign(Sn(En("F0Resizable", ({ direction: e = "horizontal", children: t }) => {
|
|
2384
|
-
let n = R(), r = Y(null), i = Y(null), a =
|
|
2384
|
+
let n = R(), r = Y(null), i = Y(null), a = Wn({ ref: r }), o = Op(t), [s, c, l] = o;
|
|
2385
2385
|
if (o.length !== 3 || !kp(s) || !Ap(c) || !kp(l)) throw Error("F0Resizable: children must be exactly F0Resizable.Panel, F0Resizable.Handle and F0Resizable.Panel, in this order.");
|
|
2386
2386
|
let u = s.props, d = l.props, f = c.props, { min: p, max: m, defaultSize: h } = jp(u, d), g = e === "horizontal", _ = (g ? a.width : a.height) ?? 0, [v, y] = X(h), b = Dp(v, p, m), x = (e) => Math.round(_ * e / 100), S = G((e) => _ > 0 ? Dp(e / _ * 100, p, m) : b, [
|
|
2387
2387
|
b,
|
|
@@ -2434,7 +2434,7 @@ var Tp = 30, Ep = 50, Dp = (e, t, n) => Math.min(Math.max(e, t), n), Op = (e) =>
|
|
|
2434
2434
|
Panel: wp,
|
|
2435
2435
|
Handle: Cp
|
|
2436
2436
|
}), Np = "Previous", Pp = "bg-f1-background", Fp = Sn(En("F0CarouselDialog", ({ items: e, currentId: t, onNavigate: n, labels: r, loop: i = !1, pagination: a, placeholder: o, isOpen: s, onClose: c, ...l }) => {
|
|
2437
|
-
let u =
|
|
2437
|
+
let u = zr(), d = e.findIndex((e) => e.id === t), f = d < 0, p = f ? 0 : d, m = e[p], h = e.length, g = a?.total ?? h, _ = a?.hasMore ?? !1, v = a?.isLoading ?? !1, y = i && !_, b = (t) => y ? e[(p + t + h) % h]?.id : e[p + t]?.id, x = f ? void 0 : b(-1), S = f ? void 0 : b(1), C = G(() => {
|
|
2438
2438
|
x && n(x);
|
|
2439
2439
|
}, [x, n]), [w, T] = X(!1), E = Y(-1), D = G(() => {
|
|
2440
2440
|
a && !v && E.current !== h && (E.current = h, a.onLoadMore());
|
|
@@ -2519,7 +2519,7 @@ var Tp = 30, Ep = 50, Dp = (e, t, n) => Math.min(Math.max(e, t), n), Op = (e) =>
|
|
|
2519
2519
|
}, P = Y(N);
|
|
2520
2520
|
s && (P.current = N);
|
|
2521
2521
|
let F = s ? N : P.current;
|
|
2522
|
-
return !F.content && !F.title ? null : /* @__PURE__ */ Q(
|
|
2522
|
+
return !F.content && !F.title ? null : /* @__PURE__ */ Q(Mi, {
|
|
2523
2523
|
...l,
|
|
2524
2524
|
width: u ? void 0 : l.width,
|
|
2525
2525
|
position: u ? "fullscreen" : l.position,
|
|
@@ -2560,7 +2560,7 @@ var Lp = Sn(En("F0SegmentedBar", Ip)), Rp = ({ labels: e, canUndo: t, undoLabel:
|
|
|
2560
2560
|
/* @__PURE__ */ Q(U, {
|
|
2561
2561
|
variant: "neutral",
|
|
2562
2562
|
size: "lg",
|
|
2563
|
-
icon:
|
|
2563
|
+
icon: vr,
|
|
2564
2564
|
label: e.left,
|
|
2565
2565
|
hideLabel: !0,
|
|
2566
2566
|
onClick: () => i("left")
|
|
@@ -2568,7 +2568,7 @@ var Lp = Sn(En("F0SegmentedBar", Ip)), Rp = ({ labels: e, canUndo: t, undoLabel:
|
|
|
2568
2568
|
/* @__PURE__ */ Q(U, {
|
|
2569
2569
|
variant: "outline",
|
|
2570
2570
|
size: "md",
|
|
2571
|
-
icon:
|
|
2571
|
+
icon: Mr,
|
|
2572
2572
|
label: n,
|
|
2573
2573
|
hideLabel: !0,
|
|
2574
2574
|
disabled: !t,
|
|
@@ -2615,7 +2615,7 @@ var Lp = Sn(En("F0SegmentedBar", Ip)), Rp = ({ labels: e, canUndo: t, undoLabel:
|
|
|
2615
2615
|
zIndex: 1
|
|
2616
2616
|
}
|
|
2617
2617
|
}, Up = _u(function({ riseFromStack: e, onCommit: t, offsetThreshold: n, velocityThreshold: r, reduceMotion: i, children: a }, o) {
|
|
2618
|
-
let s = dn(), l =
|
|
2618
|
+
let s = dn(), l = ao(0), u = c(l, [
|
|
2619
2619
|
-480,
|
|
2620
2620
|
0,
|
|
2621
2621
|
Bp
|
|
@@ -2669,7 +2669,7 @@ var Lp = Sn(En("F0SegmentedBar", Ip)), Rp = ({ labels: e, canUndo: t, undoLabel:
|
|
|
2669
2669
|
id: 0,
|
|
2670
2670
|
text: ""
|
|
2671
2671
|
}), D = Y(null), O = Y(null), [k, A] = X();
|
|
2672
|
-
|
|
2672
|
+
Wn({
|
|
2673
2673
|
ref: O,
|
|
2674
2674
|
box: "border-box",
|
|
2675
2675
|
onResize: ({ height: e }) => {
|
|
@@ -2733,7 +2733,7 @@ var Lp = Sn(En("F0SegmentedBar", Ip)), Rp = ({ labels: e, canUndo: t, undoLabel:
|
|
|
2733
2733
|
"data-testid": "swipe-deck-peek",
|
|
2734
2734
|
children: t(e.item)
|
|
2735
2735
|
}, e.id)),
|
|
2736
|
-
/* @__PURE__ */ Q(
|
|
2736
|
+
/* @__PURE__ */ Q(Bn, {
|
|
2737
2737
|
custom: b,
|
|
2738
2738
|
initial: !1,
|
|
2739
2739
|
mode: "popLayout",
|
|
@@ -2921,10 +2921,10 @@ function tm({ title: e, isActive: t = !1, onClick: n }) {
|
|
|
2921
2921
|
"aria-label": `${e}${t ? " (selected)" : ""}`,
|
|
2922
2922
|
"aria-pressed": n ? t : void 0,
|
|
2923
2923
|
children: [/* @__PURE__ */ Q(W, {
|
|
2924
|
-
icon:
|
|
2924
|
+
icon: mr,
|
|
2925
2925
|
size: "md",
|
|
2926
2926
|
color: "selected"
|
|
2927
|
-
}), /* @__PURE__ */ Q(
|
|
2927
|
+
}), /* @__PURE__ */ Q(rr, {
|
|
2928
2928
|
lines: 1,
|
|
2929
2929
|
className: "text-[13px] font-semibold leading-5 text-f1-foreground-selected",
|
|
2930
2930
|
children: e
|
|
@@ -2942,7 +2942,7 @@ function nm({ author: e, timestamp: t, onClick: n, isActive: r }) {
|
|
|
2942
2942
|
disabled: !n,
|
|
2943
2943
|
"aria-label": `Version ${a} by ${o}${r ? " (selected)" : ""}`,
|
|
2944
2944
|
"aria-pressed": n ? r : void 0,
|
|
2945
|
-
children: [/* @__PURE__ */ Q(
|
|
2945
|
+
children: [/* @__PURE__ */ Q(rr, {
|
|
2946
2946
|
lines: 1,
|
|
2947
2947
|
className: "font-medium text-f1-foreground",
|
|
2948
2948
|
children: a
|
|
@@ -2953,7 +2953,7 @@ function nm({ author: e, timestamp: t, onClick: n, isActive: r }) {
|
|
|
2953
2953
|
lastName: e.lastName,
|
|
2954
2954
|
src: e.src,
|
|
2955
2955
|
size: "xs"
|
|
2956
|
-
}), /* @__PURE__ */ Q(
|
|
2956
|
+
}), /* @__PURE__ */ Q(rr, {
|
|
2957
2957
|
lines: 1,
|
|
2958
2958
|
className: "font-medium text-f1-foreground-secondary",
|
|
2959
2959
|
children: o
|
|
@@ -2967,7 +2967,7 @@ function rm({ title: e, versions: t, currentVersion: n, activeVersionId: r }) {
|
|
|
2967
2967
|
return /* @__PURE__ */ $("nav", {
|
|
2968
2968
|
className: "flex h-full w-full min-w-[320px] max-w-[380px] flex-col overflow-hidden px-3 pb-3 pt-[6px]",
|
|
2969
2969
|
"aria-label": e,
|
|
2970
|
-
children: [/* @__PURE__ */ Q(
|
|
2970
|
+
children: [/* @__PURE__ */ Q(rr, {
|
|
2971
2971
|
tag: "h2",
|
|
2972
2972
|
lines: 1,
|
|
2973
2973
|
className: "flex-shrink-0 px-2 pb-3 pt-4 text-lg font-semibold text-f1-foreground",
|
|
@@ -3163,7 +3163,7 @@ var fm = ({ entity: e, selected: t, onSelect: n, onRemove: r, marginLeft: i, sea
|
|
|
3163
3163
|
className: "flex flex-1 flex-row items-center gap-2 rounded border px-2 py-1.5 focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:cursor-pointer hover:bg-f1-background-hover",
|
|
3164
3164
|
children: [
|
|
3165
3165
|
p ? /* @__PURE__ */ Q(W, {
|
|
3166
|
-
icon:
|
|
3166
|
+
icon: Ni,
|
|
3167
3167
|
className: "rounded-xs bg-f1-foreground-secondary text-f1-foreground-inverse"
|
|
3168
3168
|
}) : null,
|
|
3169
3169
|
/* @__PURE__ */ $("div", {
|
|
@@ -3173,7 +3173,7 @@ var fm = ({ entity: e, selected: t, onSelect: n, onRemove: r, marginLeft: i, sea
|
|
|
3173
3173
|
text: r.name,
|
|
3174
3174
|
search: n,
|
|
3175
3175
|
searchKeys: r.searchKeys
|
|
3176
|
-
}), /* @__PURE__ */ Q(
|
|
3176
|
+
}), /* @__PURE__ */ Q(ar, { value: r.subItems?.length ?? 0 })]
|
|
3177
3177
|
}),
|
|
3178
3178
|
/* @__PURE__ */ Q(Lc, {
|
|
3179
3179
|
checked: x,
|
|
@@ -3238,7 +3238,7 @@ var mm = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
3238
3238
|
let t = n.find((t) => t.label === e);
|
|
3239
3239
|
t && !t.disabled && t.onClick?.();
|
|
3240
3240
|
}, a = n.every((e) => e.disabled);
|
|
3241
|
-
return /* @__PURE__ */ Q(
|
|
3241
|
+
return /* @__PURE__ */ Q(hr, {
|
|
3242
3242
|
items: r,
|
|
3243
3243
|
value: e.label,
|
|
3244
3244
|
disabled: a,
|
|
@@ -3600,7 +3600,7 @@ var mm = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
3600
3600
|
} : void 0
|
|
3601
3601
|
}),
|
|
3602
3602
|
right: !n && /* @__PURE__ */ Q(W, {
|
|
3603
|
-
icon:
|
|
3603
|
+
icon: vr,
|
|
3604
3604
|
size: "sm",
|
|
3605
3605
|
className: "cursor-pointer text-f1-icon-secondary",
|
|
3606
3606
|
onClick: () => t?.(e)
|
|
@@ -3754,7 +3754,7 @@ var mm = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
3754
3754
|
type: "button",
|
|
3755
3755
|
...S,
|
|
3756
3756
|
className: B("my-auto flex items-center pr-1 text-left", e && "text-f1-foreground-secondary", O && "text-f1-foreground", D.length === 1 && !i || s && !O ? "pl-8" : "pl-2"),
|
|
3757
|
-
children: /* @__PURE__ */ Q(
|
|
3757
|
+
children: /* @__PURE__ */ Q(rr, {
|
|
3758
3758
|
tag: "span",
|
|
3759
3759
|
className: D.length === 1 && D[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
|
|
3760
3760
|
children: D.length === 0 ? e ?? "" : D.length === 1 ? D[0].subItem.subName : `${D.length} ${t}`
|
|
@@ -4284,13 +4284,13 @@ var zm = zs, Bm = [
|
|
|
4284
4284
|
nh.displayName = "F0TemplateTextInput";
|
|
4285
4285
|
//#endregion
|
|
4286
4286
|
//#region src/blocks/F0TemplateTextInput/index.tsx
|
|
4287
|
-
var rh = En("F0TemplateTextInput", nh), ih = En("ActivityItem",
|
|
4288
|
-
let { ref: l } =
|
|
4287
|
+
var rh = En("F0TemplateTextInput", nh), ih = En("ActivityItem", na(({ id: e, createdAt: t, title: n, description: r, icon: i, category: a, isUnread: o = !1, onClick: s, onVisible: c }) => {
|
|
4288
|
+
let { ref: l } = ir({
|
|
4289
4289
|
threshold: .1,
|
|
4290
4290
|
onChange(t) {
|
|
4291
4291
|
t && c?.(e);
|
|
4292
4292
|
}
|
|
4293
|
-
}), u = vc(), d =
|
|
4293
|
+
}), u = vc(), d = xo(t, {
|
|
4294
4294
|
yesterdayRelative: !1,
|
|
4295
4295
|
locale: u
|
|
4296
4296
|
});
|
|
@@ -4301,7 +4301,7 @@ var rh = En("F0TemplateTextInput", nh), ih = En("ActivityItem", ra(({ id: e, cre
|
|
|
4301
4301
|
s(e);
|
|
4302
4302
|
},
|
|
4303
4303
|
children: [
|
|
4304
|
-
/* @__PURE__ */ Q(ks, { icon: i ??
|
|
4304
|
+
/* @__PURE__ */ Q(ks, { icon: i ?? Ir }),
|
|
4305
4305
|
/* @__PURE__ */ $("div", {
|
|
4306
4306
|
className: "flex-1",
|
|
4307
4307
|
children: [
|
|
@@ -4350,7 +4350,7 @@ var rh = En("F0TemplateTextInput", nh), ih = En("ActivityItem", ra(({ id: e, cre
|
|
|
4350
4350
|
}), /* @__PURE__ */ Q("div", {
|
|
4351
4351
|
className: "flex flex-col gap-1",
|
|
4352
4352
|
children: t
|
|
4353
|
-
})] }), oh =
|
|
4353
|
+
})] }), oh = na(({ title: e, items: t, onClickItem: n, onItemVisible: r }) => /* @__PURE__ */ Q(ah, {
|
|
4354
4354
|
title: e,
|
|
4355
4355
|
children: t.map((e) => /* @__PURE__ */ Q(ih, {
|
|
4356
4356
|
...e,
|
|
@@ -4360,7 +4360,7 @@ var rh = En("F0TemplateTextInput", nh), ih = En("ActivityItem", ra(({ id: e, cre
|
|
|
4360
4360
|
}), ({ title: e, numItems: t }) => /* @__PURE__ */ Q(ah, {
|
|
4361
4361
|
title: e,
|
|
4362
4362
|
children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ Q(ih.Skeleton, {}, t))
|
|
4363
|
-
})), sh = /* @__PURE__ */ e(
|
|
4363
|
+
})), sh = /* @__PURE__ */ e(ci(), 1), ch = /* @__PURE__ */ e(za(), 1), lh = 3, uh = [
|
|
4364
4364
|
"today",
|
|
4365
4365
|
"yesterday",
|
|
4366
4366
|
"lastWeek",
|
|
@@ -4369,7 +4369,7 @@ var rh = En("F0TemplateTextInput", nh), ih = En("ActivityItem", ra(({ id: e, cre
|
|
|
4369
4369
|
let t = uh.indexOf(e);
|
|
4370
4370
|
return t === -1 ? -Number(e) : t - 4e3;
|
|
4371
4371
|
}), fh = () => /* @__PURE__ */ Q("div", { className: "-mx-2 h-px bg-f1-background-secondary" }), ph = ({ items: e, loadingMoreItems: t = !1, onClickItem: n, onEndReached: r, onEndReachedItemsThreshold: i = 5 }) => {
|
|
4372
|
-
let a = R(), o =
|
|
4372
|
+
let a = R(), o = sr(e, "createdAt"), s = new Set(Object.values(o).slice().flatMap((e) => e.map((e) => e.id)).slice(-i)), c = (0, ch.default)((e) => {
|
|
4373
4373
|
s.has(e) && r?.();
|
|
4374
4374
|
}, 1e3), l = dh(Object.entries(o).filter(([e, t]) => !!t.length));
|
|
4375
4375
|
return /* @__PURE__ */ $("div", {
|
|
@@ -4402,7 +4402,7 @@ var rh = En("F0TemplateTextInput", nh), ih = En("ActivityItem", ra(({ id: e, cre
|
|
|
4402
4402
|
})
|
|
4403
4403
|
]
|
|
4404
4404
|
});
|
|
4405
|
-
}, hh = En("ActivityItemList",
|
|
4405
|
+
}, hh = En("ActivityItemList", na(ph, mh));
|
|
4406
4406
|
//#endregion
|
|
4407
4407
|
//#region src/blocks/F0ResourceHeader/useCompactOnScroll.ts
|
|
4408
4408
|
function gh({ threshold: e = 24, container: t }) {
|
|
@@ -4521,7 +4521,7 @@ var xh = ({ link: e, firstName: t, lastName: n, src: r, onClick: i, canReact: a
|
|
|
4521
4521
|
emoji: _h[c],
|
|
4522
4522
|
size: "sm"
|
|
4523
4523
|
});
|
|
4524
|
-
return /* @__PURE__ */ $(
|
|
4524
|
+
return /* @__PURE__ */ $(Un, {
|
|
4525
4525
|
href: e,
|
|
4526
4526
|
onClick: i,
|
|
4527
4527
|
className: B("relative flex flex-col rounded-xl border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary no-underline transition-shadow hover:shadow", Dn()),
|
|
@@ -4567,7 +4567,7 @@ var xh = ({ link: e, firstName: t, lastName: n, src: r, onClick: i, canReact: a
|
|
|
4567
4567
|
})]
|
|
4568
4568
|
}), /* @__PURE__ */ Q("div", {
|
|
4569
4569
|
className: "shrink-0",
|
|
4570
|
-
children: /* @__PURE__ */ Q(
|
|
4570
|
+
children: /* @__PURE__ */ Q(fi, { date: u })
|
|
4571
4571
|
})]
|
|
4572
4572
|
})
|
|
4573
4573
|
]
|
|
@@ -4590,7 +4590,7 @@ var xh = ({ link: e, firstName: t, lastName: n, src: r, onClick: i, canReact: a
|
|
|
4590
4590
|
})
|
|
4591
4591
|
})
|
|
4592
4592
|
})]
|
|
4593
|
-
}), Ch =
|
|
4593
|
+
}), Ch = na(xh, Sh), wh = ({ title: e, subtitle: t, buttonLabel: n, onClick: r }) => /* @__PURE__ */ $("div", {
|
|
4594
4594
|
className: "flex w-full flex-col items-start justify-between gap-4 rounded-md bg-gradient-to-r from-[#F5A51C]/30 via-[#E51943]/30 to-[#5596F6]/30 px-3 py-3 ring-1 ring-inset ring-f1-border-secondary sm:flex-row sm:items-center sm:px-4",
|
|
4595
4595
|
children: [/* @__PURE__ */ $("div", {
|
|
4596
4596
|
className: "flex flex-col items-start gap-3 sm:flex-row sm:items-center",
|
|
@@ -4637,7 +4637,7 @@ function Th({ emoji: e, initialCount: t, hasReacted: n = !1, users: r, loadUsers
|
|
|
4637
4637
|
});
|
|
4638
4638
|
}, v = (e, t) => {
|
|
4639
4639
|
e.stopPropagation(), u(l + (s ? -1 : 1)), c(!s), a?.(t), s || g(t, p);
|
|
4640
|
-
}, y = d?.map((e) => e.name).join(", ") || "", b = /* @__PURE__ */ Q(
|
|
4640
|
+
}, y = d?.map((e) => e.name).join(", ") || "", b = /* @__PURE__ */ Q(Gn, {
|
|
4641
4641
|
ref: p,
|
|
4642
4642
|
variant: "outline",
|
|
4643
4643
|
size: "md",
|
|
@@ -4696,7 +4696,7 @@ function Eh({ items: e, onInteraction: t, locale: n, action: r }) {
|
|
|
4696
4696
|
});
|
|
4697
4697
|
}
|
|
4698
4698
|
var Dh = En("Reactions", Eh), Oh = _u(function({ content: e, collapsed: t, id: n, className: r, tabIndex: i }, a) {
|
|
4699
|
-
return /* @__PURE__ */ Q(
|
|
4699
|
+
return /* @__PURE__ */ Q(Gi, {
|
|
4700
4700
|
ref: a,
|
|
4701
4701
|
id: n,
|
|
4702
4702
|
content: e,
|
|
@@ -4705,7 +4705,7 @@ var Dh = En("Reactions", Eh), Oh = _u(function({ content: e, collapsed: t, id: n
|
|
|
4705
4705
|
});
|
|
4706
4706
|
});
|
|
4707
4707
|
Oh.displayName = "BasePostDescription";
|
|
4708
|
-
var kh =
|
|
4708
|
+
var kh = na(Oh, () => /* @__PURE__ */ $("div", {
|
|
4709
4709
|
className: "flex flex-col justify-around gap-3 py-2",
|
|
4710
4710
|
children: [/* @__PURE__ */ Q(z, { className: "h-2.5 w-1/2 rounded-2xs" }), /* @__PURE__ */ Q(z, { className: "h-2.5 w-2/3 rounded-2xs" })]
|
|
4711
4711
|
})), Ah = ({ tags: e, right: t }) => /* @__PURE__ */ Q("div", {
|
|
@@ -4717,7 +4717,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4717
4717
|
onlyIcon: !0,
|
|
4718
4718
|
additionalAccessibleText: `${e.label}: ${e.description}`
|
|
4719
4719
|
}) });
|
|
4720
|
-
return e.label || e.description ? /* @__PURE__ */ Q(
|
|
4720
|
+
return e.label || e.description ? /* @__PURE__ */ Q(Vn, {
|
|
4721
4721
|
label: e.label,
|
|
4722
4722
|
description: e.description,
|
|
4723
4723
|
children: t
|
|
@@ -4728,7 +4728,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4728
4728
|
return /* @__PURE__ */ $("div", {
|
|
4729
4729
|
className: "flex flex-row items-center",
|
|
4730
4730
|
children: [
|
|
4731
|
-
e ? /* @__PURE__ */ Q(
|
|
4731
|
+
e ? /* @__PURE__ */ Q(fi, {
|
|
4732
4732
|
date: e,
|
|
4733
4733
|
size: r
|
|
4734
4734
|
}) : null,
|
|
@@ -4737,7 +4737,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4737
4737
|
size: "sm",
|
|
4738
4738
|
className: "text-f1-foreground-tertiary"
|
|
4739
4739
|
}) : null,
|
|
4740
|
-
t ? /* @__PURE__ */ Q(
|
|
4740
|
+
t ? /* @__PURE__ */ Q(fi, {
|
|
4741
4741
|
date: t,
|
|
4742
4742
|
size: r
|
|
4743
4743
|
}) : null
|
|
@@ -4803,7 +4803,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4803
4803
|
})
|
|
4804
4804
|
]
|
|
4805
4805
|
}), _ = "block rounded-sm text-f1-foreground no-underline hover:bg-f1-background-tertiary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-f1-special-ring";
|
|
4806
|
-
return d ? /* @__PURE__ */ Q(
|
|
4806
|
+
return d ? /* @__PURE__ */ Q(Un, {
|
|
4807
4807
|
href: d,
|
|
4808
4808
|
onClick: f,
|
|
4809
4809
|
className: _,
|
|
@@ -4831,8 +4831,8 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4831
4831
|
if (e.includes("//s3.")) return e.includes("response-content-type=video");
|
|
4832
4832
|
let t = (e?.split(".")).at(-1);
|
|
4833
4833
|
return !!t && Ph.has(t);
|
|
4834
|
-
}, Ih =
|
|
4835
|
-
let i = vc(), a =
|
|
4834
|
+
}, Ih = na(({ title: e, mediaUrl: t, place: n, date: r }) => {
|
|
4835
|
+
let i = vc(), a = _a(r, i);
|
|
4836
4836
|
return n && (a = `${a} · ${n}`), /* @__PURE__ */ $("div", {
|
|
4837
4837
|
className: "flex w-full flex-col gap-1 rounded-xl border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary p-1 shadow dark:bg-f1-background-tertiary",
|
|
4838
4838
|
children: [t ? /* @__PURE__ */ Q("div", {
|
|
@@ -4886,7 +4886,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4886
4886
|
})
|
|
4887
4887
|
});
|
|
4888
4888
|
}, Rh = ({ id: e, author: t, group: n, createdAt: r, title: i, description: a, onClick: o, mediaUrl: s, event: c, counters: l, reactions: u, inLabel: d, comment: f, actions: p, dropdownItems: m, noReactionsButton: h = !1, descriptionExpandable: g = !1, noDescriptionClamp: _ = !1, hideTitle: v = !1, hideGroup: y = !1, pinned: b = !1, pinnedLabel: x, relativeDate: S = !1, noVideoPreload: C = !1, reserveCountersLine: w = !1 }) => {
|
|
4889
|
-
let T = Su(), E = Su(), D = vc(), O = Y(null), [k, A] = X(null), [j, M] = X(!1), N = [l.views, l.comments].filter(Boolean).join(" · "), P = g && k?.id === e && k.description === a, F = !P && !_, I = S ?
|
|
4889
|
+
let T = Su(), E = Su(), D = vc(), O = Y(null), [k, A] = X(null), [j, M] = X(!1), N = [l.views, l.comments].filter(Boolean).join(" · "), P = g && k?.id === e && k.description === a, F = !P && !_, I = S ? oo(r, D) : xo(r, { locale: D }), L = !!o, ee = o ? () => o(e) : void 0, te = (e) => {
|
|
4890
4890
|
e.stopPropagation();
|
|
4891
4891
|
}, ne = t ? `${t.firstName} ${t.lastName}` : void 0, re = (t) => {
|
|
4892
4892
|
t.preventDefault(), t.stopPropagation(), a && A({
|
|
@@ -4922,7 +4922,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4922
4922
|
/* @__PURE__ */ $("div", {
|
|
4923
4923
|
className: "flex min-w-0 flex-row items-center gap-3",
|
|
4924
4924
|
children: [
|
|
4925
|
-
t ? /* @__PURE__ */ Q(
|
|
4925
|
+
t ? /* @__PURE__ */ Q(Wa, {
|
|
4926
4926
|
href: t.url || "#",
|
|
4927
4927
|
title: ne,
|
|
4928
4928
|
className: "flex items-center leading-[0]",
|
|
@@ -4932,12 +4932,12 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4932
4932
|
lastName: t.lastName,
|
|
4933
4933
|
src: t.avatarUrl
|
|
4934
4934
|
})
|
|
4935
|
-
}) : /* @__PURE__ */ Q(ks, { icon:
|
|
4935
|
+
}) : /* @__PURE__ */ Q(ks, { icon: Ji }),
|
|
4936
4936
|
/* @__PURE__ */ $("div", {
|
|
4937
4937
|
className: "flex min-w-0 flex-1 flex-col",
|
|
4938
4938
|
children: [/* @__PURE__ */ $("div", {
|
|
4939
4939
|
className: "flex min-w-0 flex-1 flex-row flex-wrap items-center gap-1",
|
|
4940
|
-
children: [t ? /* @__PURE__ */ Q(
|
|
4940
|
+
children: [t ? /* @__PURE__ */ Q(Wa, {
|
|
4941
4941
|
href: t.url,
|
|
4942
4942
|
title: ne,
|
|
4943
4943
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
@@ -4946,7 +4946,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4946
4946
|
}) : null, y ? null : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
4947
4947
|
className: B("text-f1-foreground-secondary", !t && "capitalize"),
|
|
4948
4948
|
children: d
|
|
4949
|
-
}), /* @__PURE__ */ Q(
|
|
4949
|
+
}), /* @__PURE__ */ Q(Wa, {
|
|
4950
4950
|
onClick: n.onClick,
|
|
4951
4951
|
title: n.title,
|
|
4952
4952
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
@@ -4957,7 +4957,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4957
4957
|
}), /* @__PURE__ */ $("span", {
|
|
4958
4958
|
className: "flex flex-row items-center gap-1.5 text-base text-f1-foreground-secondary",
|
|
4959
4959
|
children: [I, b ? /* @__PURE__ */ Q(W, {
|
|
4960
|
-
icon:
|
|
4960
|
+
icon: fa,
|
|
4961
4961
|
size: "xs",
|
|
4962
4962
|
"aria-label": x,
|
|
4963
4963
|
role: x ? "img" : void 0
|
|
@@ -4976,14 +4976,14 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
4976
4976
|
onClick: e.onClick,
|
|
4977
4977
|
label: e.label ?? "",
|
|
4978
4978
|
title: e.label ?? ""
|
|
4979
|
-
}, e.label)), m?.length ? /* @__PURE__ */ Q(
|
|
4979
|
+
}, e.label)), m?.length ? /* @__PURE__ */ Q(Za, {
|
|
4980
4980
|
items: m,
|
|
4981
4981
|
icon: Rs,
|
|
4982
4982
|
size: "sm"
|
|
4983
4983
|
}) : null]
|
|
4984
4984
|
}), /* @__PURE__ */ Q("div", {
|
|
4985
4985
|
className: "md:hidden",
|
|
4986
|
-
children: /* @__PURE__ */ Q(
|
|
4986
|
+
children: /* @__PURE__ */ Q(Za, {
|
|
4987
4987
|
items: [{
|
|
4988
4988
|
label: f.label,
|
|
4989
4989
|
onClick: f.onClick
|
|
@@ -5044,7 +5044,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
5044
5044
|
action: {
|
|
5045
5045
|
label: f.label,
|
|
5046
5046
|
onClick: f.onClick,
|
|
5047
|
-
icon:
|
|
5047
|
+
icon: Ci
|
|
5048
5048
|
}
|
|
5049
5049
|
})
|
|
5050
5050
|
]
|
|
@@ -5087,7 +5087,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
5087
5087
|
})
|
|
5088
5088
|
]
|
|
5089
5089
|
})]
|
|
5090
|
-
}), Bh =
|
|
5090
|
+
}), Bh = na(Rh, zh), Vh = "aspect-video", Hh = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", Uh = "h-96", Wh = (e, t) => t > 0 ? Math.max(1, Math.floor(e / t)) : 1, Gh = (e) => {
|
|
5091
5091
|
let t = Number.parseFloat(window.getComputedStyle(e).lineHeight);
|
|
5092
5092
|
if (t > 0) return t;
|
|
5093
5093
|
let n = e.firstElementChild, r = n ? Number.parseFloat(window.getComputedStyle(n).lineHeight) : NaN;
|
|
@@ -5134,7 +5134,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
5134
5134
|
mc(e.createdAt, "MMM d", { locale: n }),
|
|
5135
5135
|
e.counters?.visits,
|
|
5136
5136
|
e.counters?.comments
|
|
5137
|
-
].filter(Boolean).join(" · "), i = e.href ? /* @__PURE__ */ Q(
|
|
5137
|
+
].filter(Boolean).join(" · "), i = e.href ? /* @__PURE__ */ Q(Un, {
|
|
5138
5138
|
href: e.href,
|
|
5139
5139
|
onClick: e.onClick,
|
|
5140
5140
|
className: B("no-underline visited:text-f1-foreground", Hh, Dn()),
|
|
@@ -5278,7 +5278,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
5278
5278
|
variant: "label",
|
|
5279
5279
|
content: t,
|
|
5280
5280
|
ellipsis: !0
|
|
5281
|
-
}), c ? /* @__PURE__ */ Q(
|
|
5281
|
+
}), c ? /* @__PURE__ */ Q(Vn, {
|
|
5282
5282
|
label: c,
|
|
5283
5283
|
children: /* @__PURE__ */ Q(W, {
|
|
5284
5284
|
icon: _c,
|
|
@@ -5298,14 +5298,14 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
5298
5298
|
}) : null,
|
|
5299
5299
|
i && i.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
5300
5300
|
className: "flex flex-col gap-0.5",
|
|
5301
|
-
children: i.map((e, t) => /* @__PURE__ */ Q(
|
|
5301
|
+
children: i.map((e, t) => /* @__PURE__ */ Q(Zo, { metadata: e }, t))
|
|
5302
5302
|
}) : null
|
|
5303
5303
|
]
|
|
5304
5304
|
}),
|
|
5305
5305
|
/* @__PURE__ */ $("div", {
|
|
5306
5306
|
className: "flex flex-row items-center justify-between gap-2",
|
|
5307
5307
|
children: [
|
|
5308
|
-
o ? /* @__PURE__ */ Q(
|
|
5308
|
+
o ? /* @__PURE__ */ Q(Vn, {
|
|
5309
5309
|
label: o.tooltip,
|
|
5310
5310
|
description: o.tooltipDescription,
|
|
5311
5311
|
children: /* @__PURE__ */ Q(W, {
|
|
@@ -5327,7 +5327,7 @@ var kh = ra(Oh, () => /* @__PURE__ */ $("div", {
|
|
|
5327
5327
|
})]
|
|
5328
5328
|
});
|
|
5329
5329
|
rg.displayName = "OneListItem";
|
|
5330
|
-
var ag = Sn(En("OneListItem",
|
|
5330
|
+
var ag = Sn(En("OneListItem", na(rg, ig))), og = du.forwardRef(({ person: e, onClick: t, ...n }, r) => /* @__PURE__ */ $("div", {
|
|
5331
5331
|
ref: r,
|
|
5332
5332
|
className: B("flex w-full flex-row flex-wrap items-center gap-2 rounded-md border p-2 hover:bg-f1-background-hover focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold", n.withPointerCursor && "cursor-pointer"),
|
|
5333
5333
|
onClick: () => {
|
|
@@ -5348,7 +5348,7 @@ var ag = Sn(En("OneListItem", ra(rg, ig))), og = du.forwardRef(({ person: e, onC
|
|
|
5348
5348
|
children: [/* @__PURE__ */ Q("span", {
|
|
5349
5349
|
className: "truncate font-medium",
|
|
5350
5350
|
children: `${e.firstName} ${e.lastName}`
|
|
5351
|
-
}), n.info ? /* @__PURE__ */ Q(
|
|
5351
|
+
}), n.info ? /* @__PURE__ */ Q(Vn, {
|
|
5352
5352
|
label: n.info,
|
|
5353
5353
|
children: /* @__PURE__ */ Q(W, {
|
|
5354
5354
|
icon: _c,
|
|
@@ -5394,8 +5394,8 @@ var ag = Sn(En("OneListItem", ra(rg, ig))), og = du.forwardRef(({ person: e, onC
|
|
|
5394
5394
|
})]
|
|
5395
5395
|
});
|
|
5396
5396
|
og.displayName = "OnePersonListItem";
|
|
5397
|
-
var cg = Sn(En("OnePersonListItem",
|
|
5398
|
-
let { open: e, activeContent: t, contentSide: n, restoringViewId: r } =
|
|
5397
|
+
var cg = Sn(En("OnePersonListItem", na(og, sg))), lg = () => {
|
|
5398
|
+
let { open: e, activeContent: t, contentSide: n, restoringViewId: r } = Or(), i = Qn(), a = Y(t);
|
|
5399
5399
|
t && (a.current = t);
|
|
5400
5400
|
let o = !t && r ? {
|
|
5401
5401
|
id: r,
|
|
@@ -5405,11 +5405,11 @@ var cg = Sn(En("OnePersonListItem", ra(og, sg))), lg = () => {
|
|
|
5405
5405
|
className: "h-full w-full rounded-none"
|
|
5406
5406
|
})
|
|
5407
5407
|
} : null, s = t ?? o ?? a.current;
|
|
5408
|
-
return /* @__PURE__ */ Q(
|
|
5408
|
+
return /* @__PURE__ */ Q(br, {
|
|
5409
5409
|
visible: e && (t !== null || o !== null),
|
|
5410
5410
|
side: n,
|
|
5411
5411
|
exitStyle: e ? "hold" : "shrink",
|
|
5412
|
-
children: /* @__PURE__ */ Q(
|
|
5412
|
+
children: /* @__PURE__ */ Q(Bn, {
|
|
5413
5413
|
initial: !1,
|
|
5414
5414
|
children: /* @__PURE__ */ Q(V.div, {
|
|
5415
5415
|
className: "absolute inset-0 flex flex-col overflow-hidden",
|
|
@@ -5427,7 +5427,7 @@ var cg = Sn(En("OnePersonListItem", ra(og, sg))), lg = () => {
|
|
|
5427
5427
|
};
|
|
5428
5428
|
//#endregion
|
|
5429
5429
|
//#region src/blocks/ApplicationFrame/useWindowResizing.ts
|
|
5430
|
-
function ug(e =
|
|
5430
|
+
function ug(e = aa) {
|
|
5431
5431
|
let [t, n] = X(!1);
|
|
5432
5432
|
return K(() => {
|
|
5433
5433
|
let t = 0, r = () => {
|
|
@@ -5443,7 +5443,7 @@ function ug(e = oa) {
|
|
|
5443
5443
|
var dg = 8, fg = 8, pg = (e, t) => e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || t.target !== "" && t.target !== "_self" || t.hasAttribute("download"), mg = ({ shellRef: e, overlays: t, isOpen: n, animates: r, width: i, topBarHeight: a, onLinkClickOverPage: o, children: s }) => /* @__PURE__ */ Q("div", {
|
|
5444
5444
|
ref: e,
|
|
5445
5445
|
"data-testid": "secondary-sidebar-shell",
|
|
5446
|
-
className: B("z-0 shrink-0", n ? "opacity-100" : "pointer-events-none opacity-0", r ? B("transition-[width,margin,opacity]",
|
|
5446
|
+
className: B("z-0 shrink-0", n ? "opacity-100" : "pointer-events-none opacity-0", r ? B("transition-[width,margin,opacity]", Ja) : "transition-none", t ? "absolute bottom-[11px] left-full top-[11px] overflow-hidden rounded-md bg-f1-background/60 shadow-lg ring-1 ring-f1-border-secondary backdrop-blur-2xl" : "relative overflow-hidden"),
|
|
5447
5447
|
style: {
|
|
5448
5448
|
"--ds-sidebar-width": `${i}px`,
|
|
5449
5449
|
width: t || n ? i : 0,
|
|
@@ -5465,7 +5465,7 @@ function hg({ primarySidebar: e, secondarySidebar: t }) {
|
|
|
5465
5465
|
if (!n) throw Error("NavigationLayout must be rendered by ApplicationFrame with a primarySidebar");
|
|
5466
5466
|
return /* @__PURE__ */ Q(Nl, {
|
|
5467
5467
|
value: "two-level",
|
|
5468
|
-
children: /* @__PURE__ */ Q(
|
|
5468
|
+
children: /* @__PURE__ */ Q(bi, {
|
|
5469
5469
|
value: !0,
|
|
5470
5470
|
children: /* @__PURE__ */ Q(gg, {
|
|
5471
5471
|
navigation: n,
|
|
@@ -5503,7 +5503,7 @@ function gg({ navigation: e, primarySidebar: t, secondarySidebar: n }) {
|
|
|
5503
5503
|
className: "relative z-10 h-full shrink-0",
|
|
5504
5504
|
children: [t, /* @__PURE__ */ Q("span", {
|
|
5505
5505
|
"aria-hidden": "true",
|
|
5506
|
-
className: B("pointer-events-none absolute inset-y-0 right-0 w-px bg-f1-border-secondary", v && C ? "opacity-100" : "opacity-0", x ? B("transition-opacity",
|
|
5506
|
+
className: B("pointer-events-none absolute inset-y-0 right-0 w-px bg-f1-border-secondary", v && C ? "opacity-100" : "opacity-0", x ? B("transition-opacity", Ja) : "transition-none", "[mask-image:linear-gradient(to_bottom,transparent_0,transparent_6px,#000_24px,#000_calc(100%-24px),transparent_calc(100%-6px),transparent_100%)]")
|
|
5507
5507
|
})]
|
|
5508
5508
|
}),
|
|
5509
5509
|
v ? /* @__PURE__ */ Q(mg, {
|
|
@@ -6253,7 +6253,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6253
6253
|
width: window.innerWidth,
|
|
6254
6254
|
height: window.innerHeight
|
|
6255
6255
|
}, Hv = () => {
|
|
6256
|
-
let [e, t] =
|
|
6256
|
+
let [e, t] = Tr({
|
|
6257
6257
|
key: V_,
|
|
6258
6258
|
fallback: Bv,
|
|
6259
6259
|
validate: Mv
|
|
@@ -6309,7 +6309,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6309
6309
|
}
|
|
6310
6310
|
return e.values().next().value ?? null;
|
|
6311
6311
|
}, qv = gu(null), Jv = ({ defaultMode: e = "fullscreen", roomId: t = "", pictureInPicture: n = !0, children: r }) => {
|
|
6312
|
-
let [i, a] =
|
|
6312
|
+
let [i, a] = Tr({
|
|
6313
6313
|
key: H_,
|
|
6314
6314
|
fallback: {
|
|
6315
6315
|
roomId: t,
|
|
@@ -6331,12 +6331,12 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6331
6331
|
...n,
|
|
6332
6332
|
[t]: e
|
|
6333
6333
|
});
|
|
6334
|
-
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, L] =
|
|
6334
|
+
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, L] = Tr({
|
|
6335
6335
|
key: U_,
|
|
6336
6336
|
fallback: 420,
|
|
6337
6337
|
validate: (e) => typeof e == "number" && Number.isFinite(e) && e >= 320,
|
|
6338
6338
|
debounceMs: 150
|
|
6339
|
-
}), ee = G(() => L(420), [L]), [te, ne] =
|
|
6339
|
+
}), ee = G(() => L(420), [L]), [te, ne] = Tr({
|
|
6340
6340
|
key: G_,
|
|
6341
6341
|
fallback: K_,
|
|
6342
6342
|
validate: $_,
|
|
@@ -6578,7 +6578,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6578
6578
|
...t,
|
|
6579
6579
|
id: "chat",
|
|
6580
6580
|
label: n,
|
|
6581
|
-
icon:
|
|
6581
|
+
icon: kr
|
|
6582
6582
|
}] : [])).filter((e) => e.tabs.length > 0), iy = () => {
|
|
6583
6583
|
let e = R(), { sidePanels: t, sidePanel: n } = $v();
|
|
6584
6584
|
return J(() => ry(t, n, e.meeting.chatPanel), [
|
|
@@ -6591,10 +6591,10 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6591
6591
|
left: "[@media(pointer:coarse)]:before:-inset-y-[6px] [@media(pointer:coarse)]:before:-left-[6px] [@media(pointer:coarse)]:before:right-0",
|
|
6592
6592
|
right: "[@media(pointer:coarse)]:before:-inset-y-[6px] [@media(pointer:coarse)]:before:left-0 [@media(pointer:coarse)]:before:-right-[6px]"
|
|
6593
6593
|
}, cy = (e = "all") => B("relative", oy, sy[e]), ly = () => "[@media(pointer:coarse)]:[&>button]:before:absolute [@media(pointer:coarse)]:[&>button]:before:content-[''] [@media(pointer:coarse)]:[&>button]:before:-inset-[6px]", uy = () => {
|
|
6594
|
-
let e = R(), { effectiveMode: t, setMode: n, hasPanelSlot: r, panelSide: i } = Yv(), a = i === "left" ?
|
|
6594
|
+
let e = R(), { effectiveMode: t, setMode: n, hasPanelSlot: r, panelSide: i } = Yv(), a = i === "left" ? xi : ts, o = [
|
|
6595
6595
|
{
|
|
6596
6596
|
mode: "floating",
|
|
6597
|
-
icon:
|
|
6597
|
+
icon: Xi,
|
|
6598
6598
|
label: e.meeting.modeFloating
|
|
6599
6599
|
},
|
|
6600
6600
|
{
|
|
@@ -6604,7 +6604,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6604
6604
|
},
|
|
6605
6605
|
{
|
|
6606
6606
|
mode: "fullscreen",
|
|
6607
|
-
icon:
|
|
6607
|
+
icon: yo,
|
|
6608
6608
|
label: e.meeting.modeFullscreen
|
|
6609
6609
|
}
|
|
6610
6610
|
], s = (t === "minimized" ? o.filter((e) => e.mode === "floating") : o).filter((e) => e.mode !== "panel" && e.mode !== "fullscreen" || r);
|
|
@@ -6654,7 +6654,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6654
6654
|
text: c,
|
|
6655
6655
|
variant: s ? "positive" : "neutral"
|
|
6656
6656
|
});
|
|
6657
|
-
if (!r) return /* @__PURE__ */ Q(
|
|
6657
|
+
if (!r) return /* @__PURE__ */ Q(Vn, {
|
|
6658
6658
|
label: c,
|
|
6659
6659
|
children: /* @__PURE__ */ $("span", {
|
|
6660
6660
|
className: "flex shrink-0 items-center",
|
|
@@ -6692,7 +6692,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6692
6692
|
}
|
|
6693
6693
|
}
|
|
6694
6694
|
};
|
|
6695
|
-
return /* @__PURE__ */ Q(
|
|
6695
|
+
return /* @__PURE__ */ Q(Vn, {
|
|
6696
6696
|
label: l,
|
|
6697
6697
|
children: /* @__PURE__ */ Q("button", {
|
|
6698
6698
|
ref: a,
|
|
@@ -6711,7 +6711,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6711
6711
|
variant: "ghost",
|
|
6712
6712
|
size: "md",
|
|
6713
6713
|
hideLabel: !0,
|
|
6714
|
-
icon:
|
|
6714
|
+
icon: $r,
|
|
6715
6715
|
label: e.meeting.exitPictureInPicture,
|
|
6716
6716
|
onClick: () => {
|
|
6717
6717
|
t(), window.focus();
|
|
@@ -6750,7 +6750,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6750
6750
|
"aria-hidden": !0,
|
|
6751
6751
|
className: "h-5 w-px shrink-0 bg-f1-border-secondary"
|
|
6752
6752
|
}),
|
|
6753
|
-
/* @__PURE__ */ Q(
|
|
6753
|
+
/* @__PURE__ */ Q(rr, {
|
|
6754
6754
|
tag: "span",
|
|
6755
6755
|
delay: hy,
|
|
6756
6756
|
className: "text-md font-semibold",
|
|
@@ -6769,7 +6769,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
6769
6769
|
size: "xs"
|
|
6770
6770
|
})
|
|
6771
6771
|
}) : null,
|
|
6772
|
-
/* @__PURE__ */ Q(
|
|
6772
|
+
/* @__PURE__ */ Q(rr, {
|
|
6773
6773
|
tag: "span",
|
|
6774
6774
|
delay: hy,
|
|
6775
6775
|
className: "text-base font-medium",
|
|
@@ -7070,7 +7070,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
7070
7070
|
height: 32
|
|
7071
7071
|
},
|
|
7072
7072
|
children: e.id === "frequent" ? /* @__PURE__ */ Q(W, {
|
|
7073
|
-
icon:
|
|
7073
|
+
icon: ii,
|
|
7074
7074
|
size: "md"
|
|
7075
7075
|
}) : /* @__PURE__ */ Q(Zn, {
|
|
7076
7076
|
emoji: eb[e.id],
|
|
@@ -7270,7 +7270,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
7270
7270
|
hb.delete(e), hb.size === 0 && window.removeEventListener("storage", gb);
|
|
7271
7271
|
}), vb = () => null, yb = (e) => {
|
|
7272
7272
|
let t = pb(fb());
|
|
7273
|
-
|
|
7273
|
+
qa(lb, {
|
|
7274
7274
|
...t,
|
|
7275
7275
|
[e.id]: Math.min((t[e.id] ?? 0) + 1, db)
|
|
7276
7276
|
}), gb();
|
|
@@ -7434,7 +7434,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
7434
7434
|
noAutoTooltip: s,
|
|
7435
7435
|
label: t,
|
|
7436
7436
|
size: n,
|
|
7437
|
-
icon: i ??
|
|
7437
|
+
icon: i ?? ca,
|
|
7438
7438
|
pressed: d,
|
|
7439
7439
|
onClick: (e) => {
|
|
7440
7440
|
e.preventDefault(), e.stopPropagation(), f(!d);
|
|
@@ -7663,7 +7663,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
7663
7663
|
return t;
|
|
7664
7664
|
}, cx = (e) => {
|
|
7665
7665
|
let t = nx(Qb());
|
|
7666
|
-
t.v > Zb || (
|
|
7666
|
+
t.v > Zb || (qa(W_, {
|
|
7667
7667
|
...t,
|
|
7668
7668
|
...e,
|
|
7669
7669
|
v: Zb
|
|
@@ -7817,7 +7817,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
7817
7817
|
});
|
|
7818
7818
|
}, Nx = ({ actions: e }) => {
|
|
7819
7819
|
let t = R(), n = e.reduce((e, t) => e + (typeof t.badge == "number" ? t.badge : 0), 0), r = n > 0 ? `${t.meeting.moreActions} · ${t.t("meeting.unreadCount", { count: n })}` : t.meeting.moreActions;
|
|
7820
|
-
return /* @__PURE__ */ Q(
|
|
7820
|
+
return /* @__PURE__ */ Q(Za, {
|
|
7821
7821
|
items: e.map(kx),
|
|
7822
7822
|
align: "end",
|
|
7823
7823
|
children: /* @__PURE__ */ $("span", {
|
|
@@ -7995,8 +7995,8 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
7995
7995
|
i.push({
|
|
7996
7996
|
id: "core:microphone",
|
|
7997
7997
|
label: r.microphone.enabled ? t.meeting.turnOffMicrophone : t.meeting.turnOnMicrophone,
|
|
7998
|
-
icon:
|
|
7999
|
-
activeIcon:
|
|
7998
|
+
icon: ui,
|
|
7999
|
+
activeIcon: ti,
|
|
8000
8000
|
pressed: !r.microphone.enabled,
|
|
8001
8001
|
pending: r.microphone.pending,
|
|
8002
8002
|
disabled: l?.canPublishAudio === !1 || !!u,
|
|
@@ -8014,7 +8014,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
8014
8014
|
source: r.microphone,
|
|
8015
8015
|
output: r.speaker,
|
|
8016
8016
|
label: t.meeting.selectMicrophone,
|
|
8017
|
-
icon:
|
|
8017
|
+
icon: Qi,
|
|
8018
8018
|
priority: 70
|
|
8019
8019
|
});
|
|
8020
8020
|
d && i.push(d);
|
|
@@ -8026,8 +8026,8 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
8026
8026
|
i.push({
|
|
8027
8027
|
id: "core:camera",
|
|
8028
8028
|
label: r.camera.enabled ? t.meeting.turnOffCamera : t.meeting.turnOnCamera,
|
|
8029
|
-
icon:
|
|
8030
|
-
activeIcon:
|
|
8029
|
+
icon: cs,
|
|
8030
|
+
activeIcon: _i,
|
|
8031
8031
|
pressed: !r.camera.enabled,
|
|
8032
8032
|
pending: r.camera.pending,
|
|
8033
8033
|
disabled: l?.canPublishVideo === !1 || !!f,
|
|
@@ -8044,7 +8044,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
8044
8044
|
id: "core:cameraSettings",
|
|
8045
8045
|
source: r.camera,
|
|
8046
8046
|
label: t.meeting.selectCamera,
|
|
8047
|
-
icon:
|
|
8047
|
+
icon: hi,
|
|
8048
8048
|
priority: 65
|
|
8049
8049
|
});
|
|
8050
8050
|
if (p && i.push(p), n.hasScreenShare) {
|
|
@@ -8052,7 +8052,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
8052
8052
|
i.push({
|
|
8053
8053
|
id: "core:screenShare",
|
|
8054
8054
|
label: e ? t.meeting.stopSharing : t.meeting.shareScreen,
|
|
8055
|
-
icon:
|
|
8055
|
+
icon: ta,
|
|
8056
8056
|
pressed: e,
|
|
8057
8057
|
pending: r.screenShare?.pending,
|
|
8058
8058
|
disabled: l?.canShareScreen === !1,
|
|
@@ -8064,7 +8064,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
8064
8064
|
return n.hasReactions && i.push({
|
|
8065
8065
|
id: "core:reactions",
|
|
8066
8066
|
label: t.meeting.reactions,
|
|
8067
|
-
icon:
|
|
8067
|
+
icon: ca,
|
|
8068
8068
|
priority: 41,
|
|
8069
8069
|
group: "reactions",
|
|
8070
8070
|
modes: [
|
|
@@ -8076,7 +8076,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
8076
8076
|
}), n.hasRaiseHand && i.push({
|
|
8077
8077
|
id: "core:raiseHand",
|
|
8078
8078
|
label: c ? t.meeting.lowerHand : t.meeting.raiseHand,
|
|
8079
|
-
icon:
|
|
8079
|
+
icon: ma,
|
|
8080
8080
|
emoji: "✋",
|
|
8081
8081
|
pressed: c,
|
|
8082
8082
|
onClick: () => n.setHandRaised(!c),
|
|
@@ -8103,7 +8103,7 @@ var Jg = Vg.categories.flatMap((e) => Hg.includes(e.id) ? [{
|
|
|
8103
8103
|
}), i.push({
|
|
8104
8104
|
id: "core:leave",
|
|
8105
8105
|
label: t.meeting.leave,
|
|
8106
|
-
icon:
|
|
8106
|
+
icon: Da,
|
|
8107
8107
|
variant: "critical",
|
|
8108
8108
|
onClick: () => n.leave(),
|
|
8109
8109
|
pinned: !0,
|
|
@@ -8649,24 +8649,24 @@ var AS = () => {
|
|
|
8649
8649
|
return Eu(t, n, n);
|
|
8650
8650
|
}, jS = {
|
|
8651
8651
|
duration: xl.duration.base,
|
|
8652
|
-
ease:
|
|
8652
|
+
ease: ga
|
|
8653
8653
|
}, MS = [
|
|
8654
8654
|
"left",
|
|
8655
8655
|
"top",
|
|
8656
8656
|
"width",
|
|
8657
8657
|
"height"
|
|
8658
|
-
].map((e) => `${e} ${Math.round(jS.duration * 1e3)}ms cubic-bezier(${
|
|
8658
|
+
].map((e) => `${e} ${Math.round(jS.duration * 1e3)}ms cubic-bezier(${ga.join(",")})`).join(", "), NS = {
|
|
8659
8659
|
duration: xl.duration.base,
|
|
8660
|
-
ease:
|
|
8660
|
+
ease: ga
|
|
8661
8661
|
}, PS = {
|
|
8662
8662
|
duration: xl.duration.fast,
|
|
8663
|
-
ease:
|
|
8663
|
+
ease: ga
|
|
8664
8664
|
}, FS = {
|
|
8665
8665
|
duration: xl.duration.micro,
|
|
8666
8666
|
ease: "easeIn"
|
|
8667
8667
|
}, IS = {
|
|
8668
8668
|
duration: xl.duration.fast,
|
|
8669
|
-
ease:
|
|
8669
|
+
ease: ga
|
|
8670
8670
|
}, LS = {
|
|
8671
8671
|
duration: xl.duration.micro,
|
|
8672
8672
|
ease: "easeIn"
|
|
@@ -8743,7 +8743,7 @@ var AS = () => {
|
|
|
8743
8743
|
hideLabel: !0,
|
|
8744
8744
|
size: "sm",
|
|
8745
8745
|
variant: "neutral",
|
|
8746
|
-
icon:
|
|
8746
|
+
icon: ui,
|
|
8747
8747
|
label: n.t("meeting.muteParticipant", { name: e.name }),
|
|
8748
8748
|
onClick: () => r?.muteParticipant?.(e)
|
|
8749
8749
|
})
|
|
@@ -8764,7 +8764,7 @@ var AS = () => {
|
|
|
8764
8764
|
!i && (a || o) ? /* @__PURE__ */ Q("span", {
|
|
8765
8765
|
className: B("absolute -bottom-0.5 -end-0.5 flex h-4 w-4 items-center justify-center rounded-full", "border border-solid border-f1-border-secondary bg-f1-background text-f1-foreground-secondary"),
|
|
8766
8766
|
children: /* @__PURE__ */ Q(W, {
|
|
8767
|
-
icon: a ?
|
|
8767
|
+
icon: a ? ta : ti,
|
|
8768
8768
|
size: "xs",
|
|
8769
8769
|
"aria-label": a ? n.meeting.sharingScreen : n.meeting.muted
|
|
8770
8770
|
})
|
|
@@ -8777,7 +8777,7 @@ var AS = () => {
|
|
|
8777
8777
|
}), t.showNames ? /* @__PURE__ */ Q("span", {
|
|
8778
8778
|
className: "max-w-full",
|
|
8779
8779
|
style: { width: t.cellWidth },
|
|
8780
|
-
children: /* @__PURE__ */ Q(
|
|
8780
|
+
children: /* @__PURE__ */ Q(rr, {
|
|
8781
8781
|
tag: "span",
|
|
8782
8782
|
className: "text-sm text-f1-foreground-secondary",
|
|
8783
8783
|
lines: 1,
|
|
@@ -8865,12 +8865,12 @@ var AS = () => {
|
|
|
8865
8865
|
children: e.participant.name
|
|
8866
8866
|
}),
|
|
8867
8867
|
uv(e.participant) ? /* @__PURE__ */ Q(W, {
|
|
8868
|
-
icon:
|
|
8868
|
+
icon: ti,
|
|
8869
8869
|
size: "sm",
|
|
8870
8870
|
color: "secondary"
|
|
8871
8871
|
}) : null,
|
|
8872
8872
|
dv(e) ? null : /* @__PURE__ */ Q(W, {
|
|
8873
|
-
icon:
|
|
8873
|
+
icon: _i,
|
|
8874
8874
|
size: "sm",
|
|
8875
8875
|
color: "secondary"
|
|
8876
8876
|
})
|
|
@@ -8948,7 +8948,7 @@ var AS = () => {
|
|
|
8948
8948
|
}, [e]), !e || t;
|
|
8949
8949
|
}, fC = ({ participant: e, width: t, isScreenShare: n }) => {
|
|
8950
8950
|
let r = R(), i = e.isLocal ? `${e.name} (${r.meeting.you})` : e.name;
|
|
8951
|
-
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(
|
|
8951
|
+
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(rr, {
|
|
8952
8952
|
tag: "span",
|
|
8953
8953
|
delay: 300,
|
|
8954
8954
|
className: "min-w-0 text-sm",
|
|
@@ -8970,10 +8970,10 @@ var AS = () => {
|
|
|
8970
8970
|
className: B("flex shrink-0 items-center justify-center", n ? "h-4 w-[23px]" : "h-6 w-7"),
|
|
8971
8971
|
"data-testid": "meeting-tile-label-state",
|
|
8972
8972
|
children: o ? /* @__PURE__ */ Q(W, {
|
|
8973
|
-
icon:
|
|
8973
|
+
icon: ta,
|
|
8974
8974
|
size: "sm"
|
|
8975
8975
|
}) : s ? /* @__PURE__ */ Q(W, {
|
|
8976
|
-
icon:
|
|
8976
|
+
icon: ti,
|
|
8977
8977
|
size: "sm"
|
|
8978
8978
|
}) : /* @__PURE__ */ Q(sC, {
|
|
8979
8979
|
participantId: i.id,
|
|
@@ -8990,7 +8990,7 @@ var AS = () => {
|
|
|
8990
8990
|
hideLabel: !0,
|
|
8991
8991
|
size: "sm",
|
|
8992
8992
|
variant: "neutral",
|
|
8993
|
-
icon:
|
|
8993
|
+
icon: ui,
|
|
8994
8994
|
loading: r,
|
|
8995
8995
|
onClick: () => {
|
|
8996
8996
|
i(!0), t(), window.setTimeout(() => i(!1), hC);
|
|
@@ -9060,7 +9060,7 @@ var AS = () => {
|
|
|
9060
9060
|
hideLabel: !0,
|
|
9061
9061
|
size: "sm",
|
|
9062
9062
|
variant: "neutral",
|
|
9063
|
-
icon: l ?
|
|
9063
|
+
icon: l ? $r : ls,
|
|
9064
9064
|
onClick: u,
|
|
9065
9065
|
label: l ? s.meeting.exitFullscreen : s.meeting.enterFullscreen
|
|
9066
9066
|
}) }) : null,
|
|
@@ -9069,7 +9069,7 @@ var AS = () => {
|
|
|
9069
9069
|
size: "sm",
|
|
9070
9070
|
variant: "neutral",
|
|
9071
9071
|
onClick: () => a?.(e.key),
|
|
9072
|
-
icon: r ?
|
|
9072
|
+
icon: r ? fa : Ca,
|
|
9073
9073
|
label: r ? s.meeting.unpinParticipant : s.meeting.pinParticipant
|
|
9074
9074
|
}) }) : null
|
|
9075
9075
|
]
|
|
@@ -9331,7 +9331,7 @@ var AS = () => {
|
|
|
9331
9331
|
ref: l,
|
|
9332
9332
|
className: "relative h-full w-full",
|
|
9333
9333
|
"data-testid": "meeting-grid",
|
|
9334
|
-
children: /* @__PURE__ */ $(
|
|
9334
|
+
children: /* @__PURE__ */ $(Bn, {
|
|
9335
9335
|
initial: !1,
|
|
9336
9336
|
children: [
|
|
9337
9337
|
O && D.plan && D.people ? /* @__PURE__ */ Q(V.div, {
|
|
@@ -9526,7 +9526,7 @@ var AS = () => {
|
|
|
9526
9526
|
}) : null,
|
|
9527
9527
|
/* @__PURE__ */ $("div", {
|
|
9528
9528
|
className: "flex shrink-0 items-center",
|
|
9529
|
-
children: [/* @__PURE__ */ Q(
|
|
9529
|
+
children: [/* @__PURE__ */ Q(Ri, {
|
|
9530
9530
|
tabs: v,
|
|
9531
9531
|
activeTabId: g,
|
|
9532
9532
|
setActiveTabId: c
|
|
@@ -9537,7 +9537,7 @@ var AS = () => {
|
|
|
9537
9537
|
variant: "outline",
|
|
9538
9538
|
size: "md",
|
|
9539
9539
|
hideLabel: !0,
|
|
9540
|
-
icon:
|
|
9540
|
+
icon: vr,
|
|
9541
9541
|
label: i.meeting.closePanel,
|
|
9542
9542
|
onClick: o
|
|
9543
9543
|
})
|
|
@@ -10507,7 +10507,7 @@ var AS = () => {
|
|
|
10507
10507
|
hideLabel: !0,
|
|
10508
10508
|
size: "sm",
|
|
10509
10509
|
variant: "ghost",
|
|
10510
|
-
icon:
|
|
10510
|
+
icon: ui,
|
|
10511
10511
|
label: i.t("meeting.muteParticipant", { name: e.name }),
|
|
10512
10512
|
onClick: r
|
|
10513
10513
|
}) : null,
|
|
@@ -10516,7 +10516,7 @@ var AS = () => {
|
|
|
10516
10516
|
"aria-label": i.meeting.muted,
|
|
10517
10517
|
className: "text-f1-foreground-secondary",
|
|
10518
10518
|
children: /* @__PURE__ */ Q(W, {
|
|
10519
|
-
icon:
|
|
10519
|
+
icon: ti,
|
|
10520
10520
|
size: "sm"
|
|
10521
10521
|
})
|
|
10522
10522
|
}) : null
|
|
@@ -10620,7 +10620,7 @@ var AS = () => {
|
|
|
10620
10620
|
opacity: 1,
|
|
10621
10621
|
x: 0,
|
|
10622
10622
|
y: 0,
|
|
10623
|
-
transition: e.kind === "seam" ?
|
|
10623
|
+
transition: e.kind === "seam" ? Ro : e.kind === "instant" || e.kind === "under" ? { duration: 0 } : kw
|
|
10624
10624
|
}),
|
|
10625
10625
|
leaving: (e) => {
|
|
10626
10626
|
let t = e.leave?.() ?? e;
|
|
@@ -10639,7 +10639,7 @@ var AS = () => {
|
|
|
10639
10639
|
};
|
|
10640
10640
|
case "panel": return {
|
|
10641
10641
|
opacity: 0,
|
|
10642
|
-
transition:
|
|
10642
|
+
transition: lo
|
|
10643
10643
|
};
|
|
10644
10644
|
case "sheet":
|
|
10645
10645
|
case "fade": return {
|
|
@@ -10717,7 +10717,7 @@ var AS = () => {
|
|
|
10717
10717
|
className: B("pointer-events-none flex", f ? "justify-start" : "justify-end", a ? "fixed inset-0 z-[50]" : B("absolute bottom-0 top-0", f ? "right-0" : "left-0", E ? "z-[15]" : "z-[21]"), s ? "invisible transition-[visibility] delay-300 duration-0 motion-reduce:delay-0" : "visible"),
|
|
10718
10718
|
animate: r,
|
|
10719
10719
|
transition: i,
|
|
10720
|
-
children: /* @__PURE__ */ Q(
|
|
10720
|
+
children: /* @__PURE__ */ Q(Bn, {
|
|
10721
10721
|
onExitComplete: () => d(!1),
|
|
10722
10722
|
children: e ? /* @__PURE__ */ Q(Pw, {
|
|
10723
10723
|
content: e,
|
|
@@ -10732,7 +10732,7 @@ var AS = () => {
|
|
|
10732
10732
|
})
|
|
10733
10733
|
});
|
|
10734
10734
|
}, Nw = (e) => e instanceof HTMLElement && (e.isContentEditable || e.closest("input, textarea, select, [role=menu], [role=listbox], [role=combobox], [role=dialog], [role=alertdialog]") !== null), Pw = ({ content: e, entities: t, side: n, enterKind: r, custom: i, readExit: a, onEnter: o, onClose: s }) => {
|
|
10735
|
-
let [c] = X(r), l =
|
|
10735
|
+
let [c] = X(r), l = nr(), u = Y(null);
|
|
10736
10736
|
wu(() => {
|
|
10737
10737
|
l && (u.current = null);
|
|
10738
10738
|
}, [l]);
|
|
@@ -10756,7 +10756,7 @@ var AS = () => {
|
|
|
10756
10756
|
},
|
|
10757
10757
|
children: /* @__PURE__ */ Q("div", {
|
|
10758
10758
|
className: "h-full w-full",
|
|
10759
|
-
children: /* @__PURE__ */ Q(
|
|
10759
|
+
children: /* @__PURE__ */ Q(jo, {
|
|
10760
10760
|
content: e,
|
|
10761
10761
|
onClose: s,
|
|
10762
10762
|
entities: t,
|
|
@@ -10773,7 +10773,7 @@ var AS = () => {
|
|
|
10773
10773
|
...Lw,
|
|
10774
10774
|
side: Iw
|
|
10775
10775
|
}, zw = () => {
|
|
10776
|
-
let e = Xv(), t = Cg(), n =
|
|
10776
|
+
let e = Xv(), t = Cg(), n = Ti(), { activeContent: r, present: i, clear: a, open: o, setOpen: s, layout: c, setLayout: l, contentSide: u, effectiveWidth: d } = Or(), { currentPath: f } = Kn(), { hasPrimarySidebar: p } = Pl(), m = p ? Iw : u, h = p ? Rw : Lw, g = t ? e?.mode : void 0, _ = t ? e?.effectiveMode : void 0, v = e?.setMode, y = e?.setPanelSlot, b = e?.setPanelSlotWidth, x = r?.id === Fw, S = _ === "panel" || _ === "fullscreen", C = g === "panel" || g === "fullscreen";
|
|
10777
10777
|
K(function() {
|
|
10778
10778
|
if (y) return y(n ? m : null), () => y(null);
|
|
10779
10779
|
}, [
|
|
@@ -10862,7 +10862,7 @@ function Uw({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, t
|
|
|
10862
10862
|
enabled: p,
|
|
10863
10863
|
hasSecondarySidebar: !!r,
|
|
10864
10864
|
topBarHeight: p && i ? Yw : 0,
|
|
10865
|
-
children: /* @__PURE__ */ Q(Rl, { children: /* @__PURE__ */ Q(
|
|
10865
|
+
children: /* @__PURE__ */ Q(Rl, { children: /* @__PURE__ */ Q(Qo, {
|
|
10866
10866
|
views: d,
|
|
10867
10867
|
side: o?.side ?? c?.side,
|
|
10868
10868
|
contentSide: o?.panelContentSide ?? f,
|
|
@@ -10888,7 +10888,7 @@ function Uw({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, t
|
|
|
10888
10888
|
});
|
|
10889
10889
|
}
|
|
10890
10890
|
function Ww({ children: e, navigation: t, topBar: n, banner: r, ai: i, aiPromotion: a, onNavigationPointerEnter: o }) {
|
|
10891
|
-
let s = i?.enabled ?
|
|
10891
|
+
let s = i?.enabled ? si : a?.enabled ? sd : pu, c = i?.enabled ? i : a?.enabled ? a : void 0;
|
|
10892
10892
|
return /* @__PURE__ */ Q(s, {
|
|
10893
10893
|
...c,
|
|
10894
10894
|
children: /* @__PURE__ */ Q(Xw, {
|
|
@@ -10927,10 +10927,10 @@ function Jw(e, t) {
|
|
|
10927
10927
|
}
|
|
10928
10928
|
var Yw = 42;
|
|
10929
10929
|
function Xw({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, banner: a, onNavigationPointerEnter: o }) {
|
|
10930
|
-
let { sidebarState: s, toggleSidebar: c, isSmallScreen: l, setForceFloat: u, hasPrimarySidebar: d } = Pl(), f = Gl(), p = f?.primarySidebarWidth ?? 0, m = Qn(), { hasAvailableView: h, open: g, layout: _, effectiveWidth: v, widthBounds: y, panelOverlays: b, setFrameWidth: x, resizable: S, side: C, activeContent: w, contentSide: T, restoringViewId: E, isResizing: D } =
|
|
10931
|
-
file:
|
|
10930
|
+
let { sidebarState: s, toggleSidebar: c, isSmallScreen: l, setForceFloat: u, hasPrimarySidebar: d } = Pl(), f = Gl(), p = f?.primarySidebarWidth ?? 0, m = Qn(), { hasAvailableView: h, open: g, layout: _, effectiveWidth: v, widthBounds: y, panelOverlays: b, setFrameWidth: x, resizable: S, side: C, activeContent: w, contentSide: T, restoringViewId: E, isResizing: D } = Or(), { canvasContent: O, canvasEntities: k, closeCanvas: A, dismissCanvas: j, isCanvasCovered: M } = Co(), [N, P] = X(!1), F = J(() => ({
|
|
10931
|
+
file: Fa,
|
|
10932
10932
|
...k
|
|
10933
|
-
}), [k]), I = _ === "fullscreen", L = O !== null && !M, { open: ee } = $u(), te = S ? v ??
|
|
10933
|
+
}), [k]), I = _ === "fullscreen", L = O !== null && !M, { open: ee } = $u(), te = S ? v ?? fr : Math.min(fr, y?.max ?? fr), ne = O?.coversChat === !0 ? 0 : te, re = C === "left", ie = T !== C, ae = !!(w || E), oe = Y(ae);
|
|
10934
10934
|
K(function() {
|
|
10935
10935
|
oe.current = ae;
|
|
10936
10936
|
});
|
|
@@ -10977,21 +10977,21 @@ function Xw({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
10977
10977
|
d,
|
|
10978
10978
|
Oe
|
|
10979
10979
|
]);
|
|
10980
|
-
let Ne = !!D || je || !!f?.isInstant, Pe =
|
|
10980
|
+
let Ne = !!D || je || !!f?.isInstant, Pe = ua(Ne, m), Fe = (e, t) => ba(Ne, de && e && t, m), Ie = b ?? !1, Le = m ? "instant" : Ie ? "sheet" : O?.coversChat === !0 ? "fade" : de ? "under" : "seam", Re = m ? "instant" : ve ? Ie ? "sheet" : I ? "under" : "seam" : g ? "instant" : "panel", ze = g && I, Be = be && !Ie, Ve = {
|
|
10981
10981
|
left: Be && _e ? te : 0,
|
|
10982
10982
|
right: Be && !_e ? te : 0
|
|
10983
10983
|
}, He = Y(Ve);
|
|
10984
10984
|
ze || (He.current = Ve);
|
|
10985
|
-
let Ue = ze ? He.current : Ve, We = !(Ne || de || he) && !m, Ge = We ?
|
|
10985
|
+
let Ue = ze ? He.current : Ve, We = !(Ne || de || he) && !m, Ge = We ? lo : wo, Ke = be && (!_e || we);
|
|
10986
10986
|
return K(function() {
|
|
10987
10987
|
u(Ke || ee);
|
|
10988
10988
|
}, [
|
|
10989
10989
|
Ke,
|
|
10990
10990
|
ee,
|
|
10991
10991
|
u
|
|
10992
|
-
]), Jw(Ke, Ce), /* @__PURE__ */ Q(
|
|
10992
|
+
]), Jw(Ke, Ce), /* @__PURE__ */ Q(ia.Provider, {
|
|
10993
10993
|
value: !!e?.enabled,
|
|
10994
|
-
children: /* @__PURE__ */ Q(
|
|
10994
|
+
children: /* @__PURE__ */ Q(ns.Provider, {
|
|
10995
10995
|
value: N,
|
|
10996
10996
|
children: /* @__PURE__ */ Q(cn, {
|
|
10997
10997
|
reducedMotion: m ? "always" : "never",
|
|
@@ -11004,12 +11004,12 @@ function Xw({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
11004
11004
|
children: [/* @__PURE__ */ Q("div", {
|
|
11005
11005
|
className: "col-[1/-1]",
|
|
11006
11006
|
children: a
|
|
11007
|
-
}), /* @__PURE__ */ Q(
|
|
11007
|
+
}), /* @__PURE__ */ Q(us, {
|
|
11008
11008
|
id: "ai-chat-group",
|
|
11009
11009
|
children: /* @__PURE__ */ $("div", {
|
|
11010
11010
|
className: "relative isolate flex h-full",
|
|
11011
11011
|
children: [
|
|
11012
|
-
d ? null : /* @__PURE__ */ Q(
|
|
11012
|
+
d ? null : /* @__PURE__ */ Q(Bn, { children: s === "unlocked" ? /* @__PURE__ */ Q(V.nav, {
|
|
11013
11013
|
className: B("fixed inset-0 z-20 bg-f1-background-inverse", !l && "hidden"),
|
|
11014
11014
|
initial: { opacity: 0 },
|
|
11015
11015
|
animate: { opacity: .1 },
|
|
@@ -11043,7 +11043,7 @@ function Xw({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
11043
11043
|
},
|
|
11044
11044
|
children: [
|
|
11045
11045
|
i ? /* @__PURE__ */ Q("div", {
|
|
11046
|
-
className: B("relative z-10 flex shrink-0 items-center pb-0.5 pr-4 pt-2", We ? B("transition-[margin]",
|
|
11046
|
+
className: B("relative z-10 flex shrink-0 items-center pb-0.5 pr-4 pt-2", We ? B("transition-[margin]", Ja) : "transition-none"),
|
|
11047
11047
|
style: { marginLeft: d ? p - De : 0 },
|
|
11048
11048
|
children: i
|
|
11049
11049
|
}) : null,
|
|
@@ -11087,7 +11087,7 @@ function Xw({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
11087
11087
|
width: ke,
|
|
11088
11088
|
left: e === "left" ? -De : "auto"
|
|
11089
11089
|
} : {
|
|
11090
|
-
width:
|
|
11090
|
+
width: mo({
|
|
11091
11091
|
coversFrame: Ie,
|
|
11092
11092
|
isFullscreen: I,
|
|
11093
11093
|
isClosingFromFullscreen: he,
|
|
@@ -11099,7 +11099,7 @@ function Xw({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
11099
11099
|
transition: Fe(t, n),
|
|
11100
11100
|
children: r
|
|
11101
11101
|
}, `panel-${e}`);
|
|
11102
|
-
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(C, !ie || !ge, xe.current, /* @__PURE__ */ Q(
|
|
11102
|
+
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(C, !ie || !ge, xe.current, /* @__PURE__ */ Q(ei, {})) : null, !e?.enabled || ie ? t(T, ge || !e?.enabled, Se.current, /* @__PURE__ */ Q(lg, {})) : null] });
|
|
11103
11103
|
})() : null
|
|
11104
11104
|
]
|
|
11105
11105
|
}),
|
|
@@ -11178,7 +11178,7 @@ var eT = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
11178
11178
|
let s = R(), [c, l] = X(!a);
|
|
11179
11179
|
return /* @__PURE__ */ Q("div", {
|
|
11180
11180
|
className: "relative h-10 w-10",
|
|
11181
|
-
children: /* @__PURE__ */ Q(
|
|
11181
|
+
children: /* @__PURE__ */ Q(Bn, {
|
|
11182
11182
|
mode: "popLayout",
|
|
11183
11183
|
initial: c,
|
|
11184
11184
|
children: c ? /* @__PURE__ */ Q(V.div, {
|
|
@@ -11203,7 +11203,7 @@ var eT = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
11203
11203
|
mass: 1.4
|
|
11204
11204
|
},
|
|
11205
11205
|
opacity: {
|
|
11206
|
-
|
|
11206
|
+
ease: "linear",
|
|
11207
11207
|
duration: .2
|
|
11208
11208
|
}
|
|
11209
11209
|
},
|
|
@@ -11269,7 +11269,7 @@ var eT = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
11269
11269
|
mass: 1.4
|
|
11270
11270
|
},
|
|
11271
11271
|
opacity: {
|
|
11272
|
-
|
|
11272
|
+
ease: "linear",
|
|
11273
11273
|
duration: .2
|
|
11274
11274
|
}
|
|
11275
11275
|
},
|
|
@@ -11283,7 +11283,7 @@ var eT = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
11283
11283
|
"aria-labelledby": i
|
|
11284
11284
|
}), a ? /* @__PURE__ */ Q("div", {
|
|
11285
11285
|
className: "absolute -bottom-1.5 -right-1.5 inline-flex rounded-sm bg-f1-background",
|
|
11286
|
-
children: /* @__PURE__ */ Q(
|
|
11286
|
+
children: /* @__PURE__ */ Q(Gn, {
|
|
11287
11287
|
variant: "neutral",
|
|
11288
11288
|
size: "sm",
|
|
11289
11289
|
compact: !0,
|
|
@@ -11320,7 +11320,7 @@ var eT = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
11320
11320
|
label: s.actions.add,
|
|
11321
11321
|
variant: "neutral",
|
|
11322
11322
|
size: "sm",
|
|
11323
|
-
icon:
|
|
11323
|
+
icon: ca,
|
|
11324
11324
|
onClick: (e) => {
|
|
11325
11325
|
e.preventDefault(), e.stopPropagation(), o();
|
|
11326
11326
|
},
|
|
@@ -11359,7 +11359,7 @@ function nT({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
11359
11359
|
variant: "ghost",
|
|
11360
11360
|
onClick: () => o(),
|
|
11361
11361
|
label: "Open main menu",
|
|
11362
|
-
icon:
|
|
11362
|
+
icon: Vr,
|
|
11363
11363
|
hideLabel: !0
|
|
11364
11364
|
}) : null,
|
|
11365
11365
|
/* @__PURE__ */ $("div", {
|
|
@@ -11387,7 +11387,7 @@ function nT({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
11387
11387
|
})]
|
|
11388
11388
|
})
|
|
11389
11389
|
]
|
|
11390
|
-
}), /* @__PURE__ */ $("div", { children: [i ? null : /* @__PURE__ */ Q(
|
|
11390
|
+
}), /* @__PURE__ */ $("div", { children: [i ? null : /* @__PURE__ */ Q(ro, {}), /* @__PURE__ */ Q(Zw, {})] })]
|
|
11391
11391
|
}) : null,
|
|
11392
11392
|
/* @__PURE__ */ Q("div", {
|
|
11393
11393
|
className: B("isolate flex w-full flex-1 flex-col overflow-y-auto overflow-x-hidden [&>*]:flex-1", s && "-mt-3"),
|
|
@@ -11397,12 +11397,12 @@ function nT({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
11397
11397
|
});
|
|
11398
11398
|
}
|
|
11399
11399
|
nT.displayName = "DaytimePage";
|
|
11400
|
-
var rT = Sn(En("DaytimePage", nT)), iT = _u(({ className: e, items: t }, n) => /* @__PURE__ */ Q(
|
|
11400
|
+
var rT = Sn(En("DaytimePage", nT)), iT = _u(({ className: e, items: t }, n) => /* @__PURE__ */ Q(zo, {
|
|
11401
11401
|
ref: n,
|
|
11402
11402
|
className: e,
|
|
11403
11403
|
children: /* @__PURE__ */ $("div", {
|
|
11404
11404
|
className: "flex items-center",
|
|
11405
|
-
children: [/* @__PURE__ */ Q(
|
|
11405
|
+
children: [/* @__PURE__ */ Q(Mo, {}), /* @__PURE__ */ Q(es, {
|
|
11406
11406
|
items: t,
|
|
11407
11407
|
children: /* @__PURE__ */ Q("button", {
|
|
11408
11408
|
className: "rounded-sm px-1.5 py-0.5 font-medium text-f1-foreground no-underline transition-colors hover:bg-f1-background-secondary",
|
|
@@ -11483,10 +11483,10 @@ function fT({ breadcrumbs: e, append: t }) {
|
|
|
11483
11483
|
});
|
|
11484
11484
|
}, c = new ResizeObserver(s);
|
|
11485
11485
|
return c.observe(t), s(), () => c.disconnect();
|
|
11486
|
-
}, [e, t]), !e.length || a && !a.headItem ? /* @__PURE__ */ Q(
|
|
11486
|
+
}, [e, t]), !e.length || a && !a.headItem ? /* @__PURE__ */ Q(Xa, {
|
|
11487
11487
|
ref: n,
|
|
11488
11488
|
className: "w-full"
|
|
11489
|
-
}) : /* @__PURE__ */ $(
|
|
11489
|
+
}) : /* @__PURE__ */ $(Xa, {
|
|
11490
11490
|
ref: n,
|
|
11491
11491
|
className: "w-full overflow-x-hidden",
|
|
11492
11492
|
style: { minWidth: a?.minWidth },
|
|
@@ -11494,33 +11494,33 @@ function fT({ breadcrumbs: e, append: t }) {
|
|
|
11494
11494
|
className: "invisible absolute -left-full",
|
|
11495
11495
|
"aria-hidden": "true",
|
|
11496
11496
|
ref: r,
|
|
11497
|
-
children: e.map((n, r) => /* @__PURE__ */ Q(
|
|
11497
|
+
children: e.map((n, r) => /* @__PURE__ */ Q(ha, {
|
|
11498
11498
|
item: n,
|
|
11499
11499
|
isLast: r === e.length - 1,
|
|
11500
11500
|
isFirst: r === 0,
|
|
11501
11501
|
children: r === e.length - 1 ? t : void 0
|
|
11502
|
-
},
|
|
11503
|
-
}), a && a.headItem ? /* @__PURE__ */ $(
|
|
11504
|
-
/* @__PURE__ */ Q(
|
|
11502
|
+
}, ho(n)))
|
|
11503
|
+
}), a && a.headItem ? /* @__PURE__ */ $(da, { children: [
|
|
11504
|
+
/* @__PURE__ */ Q(ha, {
|
|
11505
11505
|
isOnly: a.isOnly,
|
|
11506
11506
|
isFirst: !0,
|
|
11507
11507
|
item: a.headItem,
|
|
11508
11508
|
isLast: !1
|
|
11509
|
-
}, `first-item-${
|
|
11510
|
-
s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(iT, { items: a.collapsedItems }, "collapsed-items"), a.tailItems.map((e, n) => /* @__PURE__ */ Q(
|
|
11509
|
+
}, `first-item-${ho(a.headItem)}`),
|
|
11510
|
+
s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(iT, { items: a.collapsedItems }, "collapsed-items"), a.tailItems.map((e, n) => /* @__PURE__ */ Q(ha, {
|
|
11511
11511
|
item: e,
|
|
11512
11512
|
isLast: n === a.tailItems.length - 1,
|
|
11513
11513
|
isFirst: !1,
|
|
11514
11514
|
children: n === a.tailItems.length - 1 ? t : void 0
|
|
11515
|
-
},
|
|
11516
|
-
s ? null : /* @__PURE__ */ Q(Z, { children: a.tailItems.map((e, n) => /* @__PURE__ */ Q(
|
|
11515
|
+
}, ho(e)))] }) : null,
|
|
11516
|
+
s ? null : /* @__PURE__ */ Q(Z, { children: a.tailItems.map((e, n) => /* @__PURE__ */ Q(ha, {
|
|
11517
11517
|
item: e,
|
|
11518
11518
|
isLast: n === a.tailItems.length - 1,
|
|
11519
11519
|
isFirst: !1,
|
|
11520
11520
|
children: n === a.tailItems.length - 1 ? t : void 0
|
|
11521
|
-
},
|
|
11521
|
+
}, ho(e))) })
|
|
11522
11522
|
] }) : null]
|
|
11523
|
-
}, `breadcrumb-${
|
|
11523
|
+
}, `breadcrumb-${ho(e.at(-1)) ?? 0}`);
|
|
11524
11524
|
}
|
|
11525
11525
|
//#endregion
|
|
11526
11526
|
//#region src/blocks/Header/PageHeader/PageHeaderNavigationContext.ts
|
|
@@ -11581,7 +11581,7 @@ var _T = V.create(W), vT = {
|
|
|
11581
11581
|
enterFromFavorite: { scale: .8 }
|
|
11582
11582
|
}, yT = ({ isMarked: e, onChange: t, label: n }) => {
|
|
11583
11583
|
let [r, i] = X(!1);
|
|
11584
|
-
return /* @__PURE__ */ Q(
|
|
11584
|
+
return /* @__PURE__ */ Q(Bn, {
|
|
11585
11585
|
mode: "wait",
|
|
11586
11586
|
children: /* @__PURE__ */ Q("button", {
|
|
11587
11587
|
className: B("flex h-6 w-6 items-center justify-center rounded", Dn()),
|
|
@@ -11591,7 +11591,7 @@ var _T = V.create(W), vT = {
|
|
|
11591
11591
|
"aria-label": n,
|
|
11592
11592
|
children: e ? /* @__PURE__ */ Q(_T, {
|
|
11593
11593
|
size: "sm",
|
|
11594
|
-
icon:
|
|
11594
|
+
icon: va,
|
|
11595
11595
|
className: "text-[hsl(var(--promote-50))] outline-none",
|
|
11596
11596
|
variants: vT,
|
|
11597
11597
|
initial: r ? "enterFromUnfavorite" : "initial",
|
|
@@ -11609,7 +11609,7 @@ var _T = V.create(W), vT = {
|
|
|
11609
11609
|
}, "favorite") : /* @__PURE__ */ Q(_T, {
|
|
11610
11610
|
size: "sm",
|
|
11611
11611
|
whileTap: { scale: .8 },
|
|
11612
|
-
icon:
|
|
11612
|
+
icon: Io,
|
|
11613
11613
|
className: "outline-none",
|
|
11614
11614
|
variants: vT,
|
|
11615
11615
|
initial: r ? "enterFromFavorite" : "initial",
|
|
@@ -11670,13 +11670,13 @@ var _T = V.create(W), vT = {
|
|
|
11670
11670
|
};
|
|
11671
11671
|
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(H, {
|
|
11672
11672
|
variant: "outline",
|
|
11673
|
-
icon:
|
|
11673
|
+
icon: qr,
|
|
11674
11674
|
hideLabel: !0,
|
|
11675
11675
|
label: t,
|
|
11676
11676
|
pressed: p,
|
|
11677
11677
|
onClick: () => y(!0),
|
|
11678
11678
|
append: d && /* @__PURE__ */ Q(MT, { className: "absolute -right-0.5 -top-[1px]" })
|
|
11679
|
-
}), /* @__PURE__ */ Q(
|
|
11679
|
+
}), /* @__PURE__ */ Q(Mi, {
|
|
11680
11680
|
isOpen: p,
|
|
11681
11681
|
onClose: () => y(!1),
|
|
11682
11682
|
position: "center",
|
|
@@ -11762,7 +11762,7 @@ var _T = V.create(W), vT = {
|
|
|
11762
11762
|
}, TT = ({ content: e }) => /* @__PURE__ */ $("div", {
|
|
11763
11763
|
className: "flex flex-row items-center gap-2",
|
|
11764
11764
|
children: [/* @__PURE__ */ Q(W, {
|
|
11765
|
-
icon:
|
|
11765
|
+
icon: qr,
|
|
11766
11766
|
size: "sm",
|
|
11767
11767
|
className: "text-f1-icon-secondary"
|
|
11768
11768
|
}), /* @__PURE__ */ Q(sn, {
|
|
@@ -11773,14 +11773,14 @@ var _T = V.create(W), vT = {
|
|
|
11773
11773
|
className: "mt-auto isolate border border-x-0 border-b-0 border-t border-solid border-f1-border-secondary py-3 pl-4 pr-7",
|
|
11774
11774
|
children: /* @__PURE__ */ Q(U, {
|
|
11775
11775
|
variant: "outline",
|
|
11776
|
-
icon:
|
|
11776
|
+
icon: qr,
|
|
11777
11777
|
label: e,
|
|
11778
11778
|
href: t,
|
|
11779
11779
|
onClick: n
|
|
11780
11780
|
})
|
|
11781
11781
|
}), DT = ({ title: e, href: t, mediaUrl: n, unread: r, updated: i, description: a, onClick: o }) => {
|
|
11782
11782
|
let s = n?.includes(".mp4");
|
|
11783
|
-
return /* @__PURE__ */ $(
|
|
11783
|
+
return /* @__PURE__ */ $(Un, {
|
|
11784
11784
|
href: t,
|
|
11785
11785
|
target: "_blank",
|
|
11786
11786
|
referrerPolicy: "no-referrer",
|
|
@@ -11847,11 +11847,11 @@ var _T = V.create(W), vT = {
|
|
|
11847
11847
|
title: e,
|
|
11848
11848
|
description: r,
|
|
11849
11849
|
icon: /* @__PURE__ */ Q(W, {
|
|
11850
|
-
icon:
|
|
11850
|
+
icon: qr,
|
|
11851
11851
|
size: "lg",
|
|
11852
11852
|
className: "block"
|
|
11853
11853
|
}),
|
|
11854
|
-
button: /* @__PURE__ */ Q(
|
|
11854
|
+
button: /* @__PURE__ */ Q(Un, {
|
|
11855
11855
|
href: n,
|
|
11856
11856
|
children: /* @__PURE__ */ Q(U, { label: t })
|
|
11857
11857
|
})
|
|
@@ -11913,7 +11913,7 @@ var _T = V.create(W), vT = {
|
|
|
11913
11913
|
className: "relative z-10 h-6 w-6",
|
|
11914
11914
|
children: /* @__PURE__ */ Q(U, {
|
|
11915
11915
|
variant: "ghost",
|
|
11916
|
-
icon:
|
|
11916
|
+
icon: vr,
|
|
11917
11917
|
size: "sm",
|
|
11918
11918
|
hideLabel: !0,
|
|
11919
11919
|
onClick: () => {
|
|
@@ -11949,7 +11949,7 @@ function PT({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
11949
11949
|
children: [/* @__PURE__ */ $("div", {
|
|
11950
11950
|
className: "flex flex-grow items-center",
|
|
11951
11951
|
children: [
|
|
11952
|
-
/* @__PURE__ */ Q(
|
|
11952
|
+
/* @__PURE__ */ Q(Bn, { children: !i && !p && d !== "locked" ? /* @__PURE__ */ Q(V.div, {
|
|
11953
11953
|
initial: {
|
|
11954
11954
|
opacity: 0,
|
|
11955
11955
|
width: 0
|
|
@@ -11969,7 +11969,7 @@ function PT({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
11969
11969
|
hideLabel: !0,
|
|
11970
11970
|
onClick: () => f(),
|
|
11971
11971
|
label: "Open main menu",
|
|
11972
|
-
icon:
|
|
11972
|
+
icon: Vr
|
|
11973
11973
|
})
|
|
11974
11974
|
})
|
|
11975
11975
|
}, "menu") : null }),
|
|
@@ -12001,7 +12001,7 @@ function PT({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
12001
12001
|
}), /* @__PURE__ */ $("div", {
|
|
12002
12002
|
className: "flex items-center gap-3",
|
|
12003
12003
|
children: [
|
|
12004
|
-
!i && _ ? /* @__PURE__ */ Q("div", { children: t.tooltip ? /* @__PURE__ */ Q(
|
|
12004
|
+
!i && _ ? /* @__PURE__ */ Q("div", { children: t.tooltip ? /* @__PURE__ */ Q(Vn, {
|
|
12005
12005
|
label: t.tooltip,
|
|
12006
12006
|
children: /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(ac, {
|
|
12007
12007
|
text: t.text,
|
|
@@ -12013,7 +12013,7 @@ function PT({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
12013
12013
|
variant: t.variant
|
|
12014
12014
|
}) }) : null,
|
|
12015
12015
|
!i && _ && (h || y || b) ? /* @__PURE__ */ Q("div", { className: "h-4 w-px bg-f1-border-secondary" }) : null,
|
|
12016
|
-
h ? /* @__PURE__ */ Q(
|
|
12016
|
+
h ? /* @__PURE__ */ Q(lr, { ...h }) : null,
|
|
12017
12017
|
h && y ? /* @__PURE__ */ Q("div", { className: "h-4 w-px bg-f1-border-secondary" }) : null,
|
|
12018
12018
|
b || y ? /* @__PURE__ */ $("div", {
|
|
12019
12019
|
className: "flex items-center gap-2",
|
|
@@ -12030,7 +12030,7 @@ function PT({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
12030
12030
|
}) : null,
|
|
12031
12031
|
/* @__PURE__ */ $("div", {
|
|
12032
12032
|
className: "flex items-center gap-3",
|
|
12033
|
-
children: [u ? null : /* @__PURE__ */ Q(
|
|
12033
|
+
children: [u ? null : /* @__PURE__ */ Q(ro, {
|
|
12034
12034
|
tooltip: c,
|
|
12035
12035
|
autoOpen: l
|
|
12036
12036
|
}), /* @__PURE__ */ Q(Zw, {})]
|
|
@@ -12041,7 +12041,7 @@ function PT({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
12041
12041
|
}
|
|
12042
12042
|
function FT({ action: e }) {
|
|
12043
12043
|
let t = Y(null), [n, r] = X(!1), i = e.variant ?? "outline";
|
|
12044
|
-
return "actions" in e ? /* @__PURE__ */ Q(
|
|
12044
|
+
return "actions" in e ? /* @__PURE__ */ Q(Za, {
|
|
12045
12045
|
items: e.actions,
|
|
12046
12046
|
open: n,
|
|
12047
12047
|
onOpenChange: r,
|
|
@@ -12060,7 +12060,7 @@ function FT({ action: e }) {
|
|
|
12060
12060
|
icon: e.icon,
|
|
12061
12061
|
hideLabel: !0,
|
|
12062
12062
|
onClick: e.onClick
|
|
12063
|
-
}) : /* @__PURE__ */ Q(
|
|
12063
|
+
}) : /* @__PURE__ */ Q(Un, {
|
|
12064
12064
|
href: e.href,
|
|
12065
12065
|
title: e.label,
|
|
12066
12066
|
"aria-label": e.label,
|
|
@@ -12094,13 +12094,13 @@ function LT({ label: e, options: t, hasNewUpdate: n }) {
|
|
|
12094
12094
|
bottom: "calc(8px + env(safe-area-inset-bottom))",
|
|
12095
12095
|
right: "calc(8px + env(safe-area-inset-right))"
|
|
12096
12096
|
},
|
|
12097
|
-
children: /* @__PURE__ */ Q(
|
|
12097
|
+
children: /* @__PURE__ */ Q(Za, {
|
|
12098
12098
|
items: IT(t),
|
|
12099
12099
|
children: /* @__PURE__ */ $("button", {
|
|
12100
12100
|
className: B("relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all", Dn()),
|
|
12101
12101
|
"aria-label": e,
|
|
12102
12102
|
children: [/* @__PURE__ */ Q(W, {
|
|
12103
|
-
icon:
|
|
12103
|
+
icon: Ho,
|
|
12104
12104
|
size: "sm"
|
|
12105
12105
|
}), n ? /* @__PURE__ */ Q("div", { className: "absolute right-0.5 top-0.5 h-1.5 w-1.5 rounded-full bg-f1-background-critical-bold ring-2 ring-f1-background-critical" }) : null]
|
|
12106
12106
|
})
|
|
@@ -12262,7 +12262,7 @@ var nE = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
12262
12262
|
let d = Vl() === "two-level", [f, p] = X(t), m = Qn(), h = a && !f;
|
|
12263
12263
|
return /* @__PURE__ */ Q("div", {
|
|
12264
12264
|
"data-sidebar-collapsible-open": f,
|
|
12265
|
-
children: /* @__PURE__ */ $(
|
|
12265
|
+
children: /* @__PURE__ */ $(Dr, {
|
|
12266
12266
|
open: f,
|
|
12267
12267
|
children: [/* @__PURE__ */ $("div", {
|
|
12268
12268
|
className: "group/section group relative flex items-center",
|
|
@@ -12305,7 +12305,7 @@ var nE = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
12305
12305
|
}
|
|
12306
12306
|
}) : null]
|
|
12307
12307
|
}) : null]
|
|
12308
|
-
}), /* @__PURE__ */ Q(
|
|
12308
|
+
}), /* @__PURE__ */ Q(Cr, {
|
|
12309
12309
|
forceMount: !0,
|
|
12310
12310
|
className: "mt-0.5 flex flex-col gap-1",
|
|
12311
12311
|
children: /* @__PURE__ */ Q(cE, {
|
|
@@ -12423,7 +12423,7 @@ var nE = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
12423
12423
|
});
|
|
12424
12424
|
}, CE = (e, t) => e.decorate ? e.decorate(t) : t, wE = ({ groups: e, isSearching: t, animateItems: n }) => {
|
|
12425
12425
|
let r = Qn();
|
|
12426
|
-
return n ? /* @__PURE__ */ Q(
|
|
12426
|
+
return n ? /* @__PURE__ */ Q(us, { children: /* @__PURE__ */ Q(Bn, {
|
|
12427
12427
|
mode: "popLayout",
|
|
12428
12428
|
initial: !1,
|
|
12429
12429
|
children: e.map((e) => /* @__PURE__ */ Q(V.div, {
|
|
@@ -12456,7 +12456,7 @@ var nE = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
12456
12456
|
collapsedBadge: e.collapsedBadge,
|
|
12457
12457
|
action: e.action,
|
|
12458
12458
|
headerAccessory: e.headerAccessory,
|
|
12459
|
-
children: [e.items.length === 0 ? e.emptyContent : null, /* @__PURE__ */ Q(
|
|
12459
|
+
children: [e.items.length === 0 ? e.emptyContent : null, /* @__PURE__ */ Q(Bn, {
|
|
12460
12460
|
mode: "popLayout",
|
|
12461
12461
|
initial: !1,
|
|
12462
12462
|
children: e.items.map((e) => /* @__PURE__ */ Q(V.div, {
|
|
@@ -12517,7 +12517,7 @@ var nE = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
12517
12517
|
prop: r,
|
|
12518
12518
|
defaultProp: "",
|
|
12519
12519
|
onChange: i
|
|
12520
|
-
}), h = fE() === "scrolls-itself", g = Vl() === "classic", [_, v] =
|
|
12520
|
+
}), h = fE() === "scrolls-itself", g = Vl() === "classic", [_, v] = ir({ threshold: 1 }), [y, b] = ir({ threshold: 1 }), x = n !== void 0 && p.trim().length > 0, S = x ? void 0 : t, C = e.some((e) => e.items.length > 0), w = s && !C, T = e.map((e) => ({
|
|
12521
12521
|
...e,
|
|
12522
12522
|
items: x ? e.items.filter((e) => iE(p, e.searchText ?? "")) : e.items.filter((e) => !e.hiddenUnlessSearching)
|
|
12523
12523
|
})).filter((e) => e.items.length > 0 || !x && C && e.keepWhenEmpty === !0), E = x ? a.filter((e) => e.items.length > 0 || (e.status ?? "idle") !== "idle") : [], D = x && (C || a.length > 0) && T.length === 0 && E.length === 0, O = /* @__PURE__ */ $(Z, { children: [
|
|
@@ -12846,7 +12846,7 @@ var ME = (e) => e.type === "sidebar-chat", NE = (e) => e.type === "sidebar-group
|
|
|
12846
12846
|
let { organize: i, groups: a, openDialog: o, announce: s } = n, c = [];
|
|
12847
12847
|
e.onTogglePin && c.push({
|
|
12848
12848
|
label: e.pinned ? r.chat.unpin : r.chat.pin,
|
|
12849
|
-
icon: e.pinned ?
|
|
12849
|
+
icon: e.pinned ? fa : Ca,
|
|
12850
12850
|
onClick: e.onTogglePin
|
|
12851
12851
|
});
|
|
12852
12852
|
for (let t of i.chatMenuItems?.(e) ?? []) c.push(t);
|
|
@@ -12882,7 +12882,7 @@ var ME = (e) => e.type === "sidebar-chat", NE = (e) => e.type === "sidebar-group
|
|
|
12882
12882
|
let n = i.onRemoveChat;
|
|
12883
12883
|
c.push({ type: "separator" }, {
|
|
12884
12884
|
label: r.t("chat.organize.removeFrom", { section: u.title }),
|
|
12885
|
-
icon:
|
|
12885
|
+
icon: Aa,
|
|
12886
12886
|
onClick: () => {
|
|
12887
12887
|
n({
|
|
12888
12888
|
chatId: e.id,
|
|
@@ -12922,7 +12922,7 @@ var ME = (e) => e.type === "sidebar-chat", NE = (e) => e.type === "sidebar-group
|
|
|
12922
12922
|
groupId: t,
|
|
12923
12923
|
context: i,
|
|
12924
12924
|
i18n: r
|
|
12925
|
-
}), p = f.length > 0, m = p ? /* @__PURE__ */ Q(
|
|
12925
|
+
}), p = f.length > 0, m = p ? /* @__PURE__ */ Q(Za, {
|
|
12926
12926
|
items: f,
|
|
12927
12927
|
open: u,
|
|
12928
12928
|
onOpenChange: d,
|
|
@@ -12970,7 +12970,7 @@ var ME = (e) => e.type === "sidebar-chat", NE = (e) => e.type === "sidebar-group
|
|
|
12970
12970
|
disabled: l === null,
|
|
12971
12971
|
onClick: () => d(l)
|
|
12972
12972
|
}] : []];
|
|
12973
|
-
return /* @__PURE__ */ Q(
|
|
12973
|
+
return /* @__PURE__ */ Q(Za, {
|
|
12974
12974
|
items: f,
|
|
12975
12975
|
open: o,
|
|
12976
12976
|
onOpenChange: s,
|
|
@@ -12994,7 +12994,7 @@ var ME = (e) => e.type === "sidebar-chat", NE = (e) => e.type === "sidebar-group
|
|
|
12994
12994
|
let r = R(), [i, a] = X(e.kind === "rename" ? e.group.title : ""), o = i.trim(), s = () => {
|
|
12995
12995
|
o && (n(o), t());
|
|
12996
12996
|
};
|
|
12997
|
-
return /* @__PURE__ */ Q(
|
|
12997
|
+
return /* @__PURE__ */ Q(Mi, {
|
|
12998
12998
|
isOpen: !0,
|
|
12999
12999
|
onClose: t,
|
|
13000
13000
|
position: "center",
|
|
@@ -13013,7 +13013,7 @@ var ME = (e) => e.type === "sidebar-chat", NE = (e) => e.type === "sidebar-group
|
|
|
13013
13013
|
onSubmit: (e) => {
|
|
13014
13014
|
e.preventDefault(), s();
|
|
13015
13015
|
},
|
|
13016
|
-
children: /* @__PURE__ */ Q(
|
|
13016
|
+
children: /* @__PURE__ */ Q(Va, {
|
|
13017
13017
|
label: r.chat.organize.nameLabel,
|
|
13018
13018
|
placeholder: r.chat.organize.namePlaceholder,
|
|
13019
13019
|
value: i,
|
|
@@ -13074,7 +13074,7 @@ var aD = Sn(iD), oD = (e, t) => e.type === "emoji" ? {
|
|
|
13074
13074
|
avatar: e
|
|
13075
13075
|
} : t && !e.src ? {
|
|
13076
13076
|
kind: "icon",
|
|
13077
|
-
icon:
|
|
13077
|
+
icon: qr
|
|
13078
13078
|
} : {
|
|
13079
13079
|
kind: "avatar",
|
|
13080
13080
|
avatar: {
|
|
@@ -13153,7 +13153,7 @@ var aD = Sn(iD), oD = (e, t) => e.type === "emoji" ? {
|
|
|
13153
13153
|
label: i.chat.online
|
|
13154
13154
|
}) : null]
|
|
13155
13155
|
}) : null,
|
|
13156
|
-
/* @__PURE__ */ Q(
|
|
13156
|
+
/* @__PURE__ */ Q(rr, {
|
|
13157
13157
|
tag: "span",
|
|
13158
13158
|
className: B("line-clamp-1 flex-1 py-0.5", a ? "text-f1-foreground font-semibold" : e.avatar ? "text-f1-foreground-secondary font-medium" : "text-f1-foreground font-medium"),
|
|
13159
13159
|
lines: 1,
|
|
@@ -13179,7 +13179,7 @@ var aD = Sn(iD), oD = (e, t) => e.type === "emoji" ? {
|
|
|
13179
13179
|
return /* @__PURE__ */ $("div", {
|
|
13180
13180
|
className: "group/row relative",
|
|
13181
13181
|
"data-sidebar-chat-id": e.id,
|
|
13182
|
-
children: [e.href ? /* @__PURE__ */ Q(
|
|
13182
|
+
children: [e.href ? /* @__PURE__ */ Q(Un, {
|
|
13183
13183
|
href: e.href,
|
|
13184
13184
|
exactMatch: e.exactMatch,
|
|
13185
13185
|
onClick: n,
|
|
@@ -13209,7 +13209,7 @@ var aD = Sn(iD), oD = (e, t) => e.type === "emoji" ? {
|
|
|
13209
13209
|
size: "sm",
|
|
13210
13210
|
hideLabel: !0,
|
|
13211
13211
|
label: e.pinned ? i.chat.unpin : i.chat.pin,
|
|
13212
|
-
icon: e.pinned ?
|
|
13212
|
+
icon: e.pinned ? fa : Ca,
|
|
13213
13213
|
onClick: (t) => {
|
|
13214
13214
|
t.stopPropagation(), e.onTogglePin?.();
|
|
13215
13215
|
}
|
|
@@ -13503,7 +13503,7 @@ var aD = Sn(iD), oD = (e, t) => e.type === "emoji" ? {
|
|
|
13503
13503
|
className: "flex min-w-0 flex-1 flex-col",
|
|
13504
13504
|
children: [/* @__PURE__ */ $("span", {
|
|
13505
13505
|
className: "flex min-w-0 items-baseline gap-2",
|
|
13506
|
-
children: [/* @__PURE__ */ Q(
|
|
13506
|
+
children: [/* @__PURE__ */ Q(rr, {
|
|
13507
13507
|
tag: "span",
|
|
13508
13508
|
lines: 1,
|
|
13509
13509
|
className: "min-w-0 flex-1 font-medium text-f1-foreground-secondary",
|
|
@@ -14180,7 +14180,7 @@ var cO = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
14180
14180
|
a,
|
|
14181
14181
|
n,
|
|
14182
14182
|
t.id
|
|
14183
|
-
]), d = /* @__PURE__ */ Q(
|
|
14183
|
+
]), d = /* @__PURE__ */ Q(Za, {
|
|
14184
14184
|
items: u,
|
|
14185
14185
|
label: a.navigation.sidebar.companySelector.label,
|
|
14186
14186
|
side: "right",
|
|
@@ -14263,7 +14263,7 @@ var cO = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
14263
14263
|
src: e?.logo,
|
|
14264
14264
|
size: n,
|
|
14265
14265
|
badge: t ? {
|
|
14266
|
-
icon:
|
|
14266
|
+
icon: dr,
|
|
14267
14267
|
type: "highlight"
|
|
14268
14268
|
} : void 0
|
|
14269
14269
|
}), dO = ({ company: e, withNotification: t = !1 }) => /* @__PURE__ */ $("div", {
|
|
@@ -14271,7 +14271,7 @@ var cO = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
14271
14271
|
children: [/* @__PURE__ */ Q(uO, {
|
|
14272
14272
|
company: e,
|
|
14273
14273
|
withNotification: t
|
|
14274
|
-
}), /* @__PURE__ */ Q(
|
|
14274
|
+
}), /* @__PURE__ */ Q(rr, {
|
|
14275
14275
|
tag: "span",
|
|
14276
14276
|
children: e?.name ?? ""
|
|
14277
14277
|
})]
|
|
@@ -14291,7 +14291,7 @@ function fO({ user: e, profile: t, options: n, onDropdownClick: r, compact: i =
|
|
|
14291
14291
|
}] : [], ...n], d = /* @__PURE__ */ Q(Ss, {
|
|
14292
14292
|
minWidth: "0",
|
|
14293
14293
|
onPointerMove: Fl,
|
|
14294
|
-
children: /* @__PURE__ */ Q(
|
|
14294
|
+
children: /* @__PURE__ */ Q(es, {
|
|
14295
14295
|
items: u,
|
|
14296
14296
|
side: i ? "right" : void 0,
|
|
14297
14297
|
align: i ? "end" : "start",
|
|
@@ -14322,7 +14322,7 @@ function fO({ user: e, profile: t, options: n, onDropdownClick: r, compact: i =
|
|
|
14322
14322
|
firstName: e.firstName,
|
|
14323
14323
|
lastName: e.lastName,
|
|
14324
14324
|
size: "xs"
|
|
14325
|
-
}), /* @__PURE__ */ Q(
|
|
14325
|
+
}), /* @__PURE__ */ Q(rr, {
|
|
14326
14326
|
className: "text-f1-foreground",
|
|
14327
14327
|
children: l
|
|
14328
14328
|
})] })
|
|
@@ -14356,13 +14356,13 @@ function pO({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
14356
14356
|
gap: "sm",
|
|
14357
14357
|
children: s.map((e) => /* @__PURE__ */ Q(mO, { action: e }, e.label))
|
|
14358
14358
|
}) : null,
|
|
14359
|
-
n ? /* @__PURE__ */ Q(
|
|
14359
|
+
n ? /* @__PURE__ */ Q(Vn, {
|
|
14360
14360
|
label: c.notifications,
|
|
14361
14361
|
shortcut: r,
|
|
14362
14362
|
children: /* @__PURE__ */ $("div", {
|
|
14363
14363
|
className: "relative",
|
|
14364
14364
|
children: [/* @__PURE__ */ Q(U, {
|
|
14365
|
-
icon:
|
|
14365
|
+
icon: Ir,
|
|
14366
14366
|
label: c.notifications,
|
|
14367
14367
|
onClick: i,
|
|
14368
14368
|
variant: "ghost",
|
|
@@ -14372,7 +14372,7 @@ function pO({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
14372
14372
|
children: /* @__PURE__ */ Q(_s, {
|
|
14373
14373
|
type: "highlight",
|
|
14374
14374
|
size: "sm",
|
|
14375
|
-
icon:
|
|
14375
|
+
icon: dr
|
|
14376
14376
|
})
|
|
14377
14377
|
}) : null]
|
|
14378
14378
|
})
|
|
@@ -14381,7 +14381,7 @@ function pO({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
14381
14381
|
});
|
|
14382
14382
|
}
|
|
14383
14383
|
function mO({ action: e }) {
|
|
14384
|
-
return e.items ? /* @__PURE__ */ Q(
|
|
14384
|
+
return e.items ? /* @__PURE__ */ Q(Za, {
|
|
14385
14385
|
modal: !1,
|
|
14386
14386
|
items: e.items,
|
|
14387
14387
|
open: e.open,
|
|
@@ -14457,7 +14457,7 @@ var yO = ({ item: e, active: t }) => {
|
|
|
14457
14457
|
}), /* @__PURE__ */ Q("span", { children: e.label })]
|
|
14458
14458
|
}), e.tag || e.badge ? /* @__PURE__ */ $("div", {
|
|
14459
14459
|
className: "flex flex-shrink-0 items-center gap-1.5",
|
|
14460
|
-
children: [e.tag ? /* @__PURE__ */ Q(Us, { text: e.tag }) : null, e.badge ? /* @__PURE__ */ Q(
|
|
14460
|
+
children: [e.tag ? /* @__PURE__ */ Q(Us, { text: e.tag }) : null, e.badge ? /* @__PURE__ */ Q(ar, {
|
|
14461
14461
|
value: e.badge,
|
|
14462
14462
|
size: "sm",
|
|
14463
14463
|
type: "bold"
|
|
@@ -14471,11 +14471,11 @@ var yO = ({ item: e, active: t }) => {
|
|
|
14471
14471
|
onClick: () => e.onChange(!e.pinned),
|
|
14472
14472
|
className: B("mr-1 flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-f1-icon", "hover:bg-f1-background-tertiary hover:text-f1-icon-bold", Dn(), !e.pinned && "opacity-0 focus-visible:opacity-100 group-hover/item:opacity-100"),
|
|
14473
14473
|
children: /* @__PURE__ */ Q(W, {
|
|
14474
|
-
icon: e.pinned ?
|
|
14474
|
+
icon: e.pinned ? fa : Ca,
|
|
14475
14475
|
size: "sm"
|
|
14476
14476
|
})
|
|
14477
14477
|
}), xO = ({ item: e }) => {
|
|
14478
|
-
let t = Vl() === "two-level", { isActive: n } = Rn(), { label: r, icon: i, pin: a, ...o } = e, s = n(o.href, { exact: o.exactMatch }), c = /* @__PURE__ */ Q(
|
|
14478
|
+
let t = Vl() === "two-level", { isActive: n } = Rn(), { label: r, icon: i, pin: a, ...o } = e, s = n(o.href, { exact: o.exactMatch }), c = /* @__PURE__ */ Q(Un, {
|
|
14479
14479
|
...o,
|
|
14480
14480
|
className: B("flex cursor-pointer items-center rounded py-1.5 pl-1.5 pr-2 no-underline", a && "min-w-0 flex-1", !t && "transition-colors", Dn("focus-visible:ring-inset"), s && "text-f1-foreground", !a && (s ? "bg-f1-background-secondary" : "hover:bg-f1-background-secondary")),
|
|
14481
14481
|
children: /* @__PURE__ */ Q(yO, {
|
|
@@ -14493,15 +14493,15 @@ var yO = ({ item: e, active: t }) => {
|
|
|
14493
14493
|
return !S && !b && t.push({
|
|
14494
14494
|
label: u.actions.moveUp,
|
|
14495
14495
|
onClick: () => o?.(i, i - 1),
|
|
14496
|
-
icon:
|
|
14496
|
+
icon: oi
|
|
14497
14497
|
}), !S && !x && t.push({
|
|
14498
14498
|
label: u.actions.moveDown,
|
|
14499
14499
|
onClick: () => o?.(i, i + 1),
|
|
14500
|
-
icon:
|
|
14500
|
+
icon: Ka
|
|
14501
14501
|
}), t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
14502
14502
|
label: u.favorites.remove,
|
|
14503
14503
|
onClick: () => r?.(e),
|
|
14504
|
-
icon:
|
|
14504
|
+
icon: yi,
|
|
14505
14505
|
critical: !0
|
|
14506
14506
|
}), t;
|
|
14507
14507
|
}, [
|
|
@@ -14531,7 +14531,7 @@ var yO = ({ item: e, active: t }) => {
|
|
|
14531
14531
|
className: "flex w-full items-center justify-between px-1.5 py-1.5",
|
|
14532
14532
|
children: /* @__PURE__ */ Q(EO, {
|
|
14533
14533
|
tooltip: t,
|
|
14534
|
-
children: /* @__PURE__ */ $(
|
|
14534
|
+
children: /* @__PURE__ */ $(Un, {
|
|
14535
14535
|
onClick: e.onClick,
|
|
14536
14536
|
href: e.href,
|
|
14537
14537
|
exactMatch: e.exactMatch,
|
|
@@ -14544,7 +14544,7 @@ var yO = ({ item: e, active: t }) => {
|
|
|
14544
14544
|
}) : e.avatar ? /* @__PURE__ */ Q(Os, {
|
|
14545
14545
|
size: "xs",
|
|
14546
14546
|
avatar: e.avatar
|
|
14547
|
-
}) : null, /* @__PURE__ */ Q(
|
|
14547
|
+
}) : null, /* @__PURE__ */ Q(rr, {
|
|
14548
14548
|
tag: "span",
|
|
14549
14549
|
className: "line-clamp-1 font-medium text-f1-foreground",
|
|
14550
14550
|
lines: 1,
|
|
@@ -14555,7 +14555,7 @@ var yO = ({ item: e, active: t }) => {
|
|
|
14555
14555
|
})
|
|
14556
14556
|
}), /* @__PURE__ */ Q("div", {
|
|
14557
14557
|
className: B("absolute inset-y-1 right-1 z-10 flex h-6 w-6 items-center justify-center rounded-sm opacity-0 transition-opacity duration-100 hover:bg-f1-background-secondary group-hover:opacity-100", v && "bg-f1-background-secondary opacity-100", E && "opacity-100"),
|
|
14558
|
-
children: /* @__PURE__ */ Q(
|
|
14558
|
+
children: /* @__PURE__ */ Q(Za, {
|
|
14559
14559
|
open: v,
|
|
14560
14560
|
onOpenChange: y,
|
|
14561
14561
|
items: C,
|
|
@@ -14678,7 +14678,7 @@ function wO({ tree: e, onCollapse: t, onSort: n, onFavoritesChange: r, favorites
|
|
|
14678
14678
|
}, []), m = G(function(e) {
|
|
14679
14679
|
n?.(e);
|
|
14680
14680
|
}, [n]), h = tE();
|
|
14681
|
-
return /* @__PURE__ */ Q(_O, { children: /* @__PURE__ */ Q(
|
|
14681
|
+
return /* @__PURE__ */ Q(_O, { children: /* @__PURE__ */ Q(us, {
|
|
14682
14682
|
id: "sidebar-menu",
|
|
14683
14683
|
children: /* @__PURE__ */ Q(TO, {
|
|
14684
14684
|
disableDragging: h,
|
|
@@ -14823,7 +14823,7 @@ function TO({ nonSortableItems: e, sortableItems: t, setSortableItems: n, contai
|
|
|
14823
14823
|
]
|
|
14824
14824
|
});
|
|
14825
14825
|
}
|
|
14826
|
-
var EO = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ Q(
|
|
14826
|
+
var EO = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ Q(Vn, {
|
|
14827
14827
|
description: e,
|
|
14828
14828
|
children: t
|
|
14829
14829
|
}) : t;
|
|
@@ -14832,7 +14832,7 @@ var EO = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ Q(Bn, {
|
|
|
14832
14832
|
function DO({ title: e, actions: t }) {
|
|
14833
14833
|
return /* @__PURE__ */ $("div", {
|
|
14834
14834
|
className: "flex h-[60px] w-full shrink-0 items-center justify-between gap-2 pl-3 pr-2 pt-3",
|
|
14835
|
-
children: [/* @__PURE__ */ Q(
|
|
14835
|
+
children: [/* @__PURE__ */ Q(rr, {
|
|
14836
14836
|
tag: "h2",
|
|
14837
14837
|
className: "min-w-0 text-base font-medium text-f1-foreground",
|
|
14838
14838
|
children: e
|
|
@@ -15188,7 +15188,7 @@ var GO = 350, KO = (e = !0) => {
|
|
|
15188
15188
|
});
|
|
15189
15189
|
return /* @__PURE__ */ Q("div", {
|
|
15190
15190
|
className: B("group relative flex w-full items-center justify-center", n),
|
|
15191
|
-
children: e.options ? /* @__PURE__ */ Q(
|
|
15191
|
+
children: e.options ? /* @__PURE__ */ Q(Za, {
|
|
15192
15192
|
items: e.options,
|
|
15193
15193
|
side: "right",
|
|
15194
15194
|
align: "end",
|
|
@@ -15319,7 +15319,7 @@ var ok = 140, sk = 200, ck = (e, t, n) => {
|
|
|
15319
15319
|
t.current = e.pointerType, !(n || e.pointerType === "touch" || e.button !== 0) && r();
|
|
15320
15320
|
}, uk = _u(function({ tab: e, href: t, isActive: n, isFocusable: r, onSelect: i, ...a }, o) {
|
|
15321
15321
|
let s = qO(e);
|
|
15322
|
-
return /* @__PURE__ */ Q(
|
|
15322
|
+
return /* @__PURE__ */ Q(Un, {
|
|
15323
15323
|
ref: o,
|
|
15324
15324
|
href: t,
|
|
15325
15325
|
exactMatch: e.exactMatch,
|
|
@@ -15621,7 +15621,7 @@ function wk({ header: e, body: t, footer: n, scrollBody: r = !0, width: i = Tl.p
|
|
|
15621
15621
|
q(function() {
|
|
15622
15622
|
o?.(i);
|
|
15623
15623
|
}, [o, i]);
|
|
15624
|
-
let [s, c] =
|
|
15624
|
+
let [s, c] = ir({ threshold: 1 }), [l, u] = ir({ threshold: 1 }), [d, f] = X(null), p = vu(n) && a ? hu(n, { onDropdownClick: a }) : n;
|
|
15625
15625
|
return /* @__PURE__ */ Q(hE.Provider, {
|
|
15626
15626
|
value: d,
|
|
15627
15627
|
children: /* @__PURE__ */ $(dE, {
|
|
@@ -15716,7 +15716,7 @@ function Dk({ header: e, body: t, footer: n, onFooterDropdownClick: r }) {
|
|
|
15716
15716
|
a,
|
|
15717
15717
|
o
|
|
15718
15718
|
]);
|
|
15719
|
-
let l = Qn(), [u, d] =
|
|
15719
|
+
let l = Qn(), [u, d] = ir({ threshold: 1 }), [f, p] = ir({ threshold: 1 }), m = R(), h = {
|
|
15720
15720
|
x: {
|
|
15721
15721
|
ease: xl.ease.outSwift,
|
|
15722
15722
|
duration: l ? 0 : xl.duration.base
|
|
@@ -15771,7 +15771,7 @@ function Dk({ header: e, body: t, footer: n, onFooterDropdownClick: r }) {
|
|
|
15771
15771
|
"aria-hidden": "true"
|
|
15772
15772
|
}, "bottom-ref")
|
|
15773
15773
|
]
|
|
15774
|
-
}), /* @__PURE__ */ $(
|
|
15774
|
+
}), /* @__PURE__ */ $(Bn, { children: [d ? null : /* @__PURE__ */ Q(Ek, { position: "top" }, "shadow-scroll-top"), p ? null : /* @__PURE__ */ Q(Ek, { position: "bottom" }, "shadow-scroll-bottom")] })]
|
|
15775
15775
|
}) : null,
|
|
15776
15776
|
/* @__PURE__ */ Q("footer", {
|
|
15777
15777
|
className: "flex-shrink-0",
|
|
@@ -15838,7 +15838,7 @@ var Ok = Sn(Dk), kk = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
15838
15838
|
})]
|
|
15839
15839
|
})
|
|
15840
15840
|
] });
|
|
15841
|
-
return e.href && !i ? /* @__PURE__ */ Q(
|
|
15841
|
+
return e.href && !i ? /* @__PURE__ */ Q(Un, {
|
|
15842
15842
|
href: e.href,
|
|
15843
15843
|
exactMatch: e.exactMatch,
|
|
15844
15844
|
"aria-label": e.label,
|
|
@@ -15889,7 +15889,7 @@ var Ok = Sn(Dk), kk = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
15889
15889
|
showLabel: !0,
|
|
15890
15890
|
probe: !0
|
|
15891
15891
|
}, e.id))
|
|
15892
|
-
}), /* @__PURE__ */ Q(
|
|
15892
|
+
}), /* @__PURE__ */ Q(us, { children: e.map((e) => /* @__PURE__ */ Q(Ak, {
|
|
15893
15893
|
tab: e,
|
|
15894
15894
|
isActive: e.id === t,
|
|
15895
15895
|
showLabel: e.id === t || s,
|
|
@@ -15910,12 +15910,12 @@ var Ok = Sn(Dk), kk = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
15910
15910
|
size: "sm"
|
|
15911
15911
|
},
|
|
15912
15912
|
rejected: {
|
|
15913
|
-
icon:
|
|
15913
|
+
icon: vr,
|
|
15914
15914
|
type: "critical",
|
|
15915
15915
|
size: "sm"
|
|
15916
15916
|
}
|
|
15917
15917
|
}, Pk = {
|
|
15918
|
-
icon:
|
|
15918
|
+
icon: Ho,
|
|
15919
15919
|
type: "neutral",
|
|
15920
15920
|
size: "sm"
|
|
15921
15921
|
}, Fk = {
|
|
@@ -16001,7 +16001,7 @@ var Rk = ({ title: e, approvalsRequired: t = 1, status: n, approvers: r, approva
|
|
|
16001
16001
|
});
|
|
16002
16002
|
})), Bk = (e, t) => typeof t == "string" && t in e;
|
|
16003
16003
|
function Vk(e, t, n) {
|
|
16004
|
-
let r = {}, i = !1, a =
|
|
16004
|
+
let r = {}, i = !1, a = La(e);
|
|
16005
16005
|
if (a !== void 0 && t.filters) {
|
|
16006
16006
|
let e = t.filters, o = Object.fromEntries(Object.entries(a).filter(([t]) => Bk(e, t)));
|
|
16007
16007
|
(Object.keys(o).length > 0 || Object.keys(a).length === 0) && (n.setCurrentFilters(o), r.filters = o, i = !0);
|
|
@@ -16029,7 +16029,7 @@ function Vk(e, t, n) {
|
|
|
16029
16029
|
//#endregion
|
|
16030
16030
|
//#region src/addons/data-collection/OneDataCollection/hooks/useDataCollectionItemNavigation/useDataCollectionItemNavigation.ts
|
|
16031
16031
|
function Hk(e) {
|
|
16032
|
-
let { source: t, collectionId: r, activeItemId: i, defaultActiveItemId: a, onActiveItemChange: o, idProvider: s, itemUrl: c, getItemTitle: l, enabled: u = !0, restorePersistedState: d = !0, currentFilters: f, navigationMode: p = "url", deps: m = [] } = e, h =
|
|
16032
|
+
let { source: t, collectionId: r, activeItemId: i, defaultActiveItemId: a, onActiveItemChange: o, idProvider: s, itemUrl: c, getItemTitle: l, enabled: u = !0, restorePersistedState: d = !0, currentFilters: f, navigationMode: p = "url", deps: m = [] } = e, h = Eo(), g = xn(t, m), [_, v] = X(null), y = _?.key === r && _.settled, b = Y(g);
|
|
16033
16033
|
b.current = g;
|
|
16034
16034
|
let x = Y(h);
|
|
16035
16035
|
x.current = h;
|
|
@@ -16085,7 +16085,7 @@ function Hk(e) {
|
|
|
16085
16085
|
}, t);
|
|
16086
16086
|
} catch {}
|
|
16087
16087
|
};
|
|
16088
|
-
return
|
|
16088
|
+
return Zi(r, () => {
|
|
16089
16089
|
e();
|
|
16090
16090
|
});
|
|
16091
16091
|
}, [
|
|
@@ -16201,7 +16201,7 @@ function Kk(e, t) {
|
|
|
16201
16201
|
async function qk(e, t, n) {
|
|
16202
16202
|
if (!e || e.length === 0) throw Error("No data available for export");
|
|
16203
16203
|
let r = zt(e, t, n), i = [...n?.includeHeaders === !1 ? [] : [r.map((e) => e.label)], ...e.map((e) => r.map((t) => Kk(e, t)))];
|
|
16204
|
-
Ct(await
|
|
16204
|
+
Ct(await Yr([{
|
|
16205
16205
|
name: "Data",
|
|
16206
16206
|
rows: i
|
|
16207
16207
|
}]), at(n?.filename || "data_collection", "xlsx"));
|
|
@@ -16330,7 +16330,7 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
16330
16330
|
src: e.avatar.src,
|
|
16331
16331
|
size: a ? "sm" : "xs"
|
|
16332
16332
|
}) : /* @__PURE__ */ Q(W, {
|
|
16333
|
-
icon: e.icon ??
|
|
16333
|
+
icon: e.icon ?? Ii,
|
|
16334
16334
|
size: d
|
|
16335
16335
|
})
|
|
16336
16336
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -16634,7 +16634,7 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
16634
16634
|
label: t.label,
|
|
16635
16635
|
hint: t.description,
|
|
16636
16636
|
avatar: t.avatar,
|
|
16637
|
-
icon: t.icon ??
|
|
16637
|
+
icon: t.icon ?? Ii,
|
|
16638
16638
|
color: t.color,
|
|
16639
16639
|
keywords: t.keywords,
|
|
16640
16640
|
run: y(t)
|
|
@@ -16653,7 +16653,7 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
16653
16653
|
key: "copy",
|
|
16654
16654
|
label: p.rowActions.copyLinkTo(e.label),
|
|
16655
16655
|
tip: p.rowActions.copyLink,
|
|
16656
|
-
icon:
|
|
16656
|
+
icon: Oi,
|
|
16657
16657
|
run: () => f(r)
|
|
16658
16658
|
}] : []];
|
|
16659
16659
|
return {
|
|
@@ -16661,7 +16661,7 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
16661
16661
|
group: t,
|
|
16662
16662
|
label: e.label,
|
|
16663
16663
|
hint: e.kind === "one" ? e.sublabel : void 0,
|
|
16664
|
-
icon: e.icon ??
|
|
16664
|
+
icon: e.icon ?? Ii,
|
|
16665
16665
|
color: e.color,
|
|
16666
16666
|
avatar: e.kind === "one" ? e.avatar : void 0,
|
|
16667
16667
|
scopeRef: n ? e : void 0,
|
|
@@ -16768,7 +16768,7 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
16768
16768
|
group: e.label,
|
|
16769
16769
|
label: t.label,
|
|
16770
16770
|
hint: t.sublabel,
|
|
16771
|
-
icon: t.icon ?? (r.has(t.value) ?
|
|
16771
|
+
icon: t.icon ?? (r.has(t.value) ? Xr : void 0),
|
|
16772
16772
|
color: t.color,
|
|
16773
16773
|
avatar: t.avatar,
|
|
16774
16774
|
run: () => {
|
|
@@ -16810,7 +16810,7 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
16810
16810
|
...e,
|
|
16811
16811
|
id: `recent-${e.id}`,
|
|
16812
16812
|
group: p.groups.recent,
|
|
16813
|
-
icon:
|
|
16813
|
+
icon: Ua,
|
|
16814
16814
|
color: void 0,
|
|
16815
16815
|
hint: void 0
|
|
16816
16816
|
})), ...r.flatMap((e) => e.provider ? [] : (b.find((t) => t.label === e.label)?.rows ?? []).slice(0, e.openLimit ?? Infinity))];
|
|
@@ -17174,10 +17174,10 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
17174
17174
|
be(t), oe(t);
|
|
17175
17175
|
} else e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (r(), ae(), _((t) => t + e.key));
|
|
17176
17176
|
}, Fe = (e) => e && e.kind === "one" && e.sublabel ? `${e.label} · ${e.sublabel}` : e?.label ?? "", Ie = Fe(S ?? void 0), Le = S ? void 0 : h ? d.placeholderPhone : d.placeholder, Re = C.kind === "param" ? (C.action.params ?? [])[C.step]?.label ?? d.placeholderScoped : S ? d.fieldLabelScoped(Ie) : d.placeholder, ze = v.flatMap((e, t) => [e.trim(), b[t]?.label ?? ""]).filter(Boolean).join(" "), Be = S ? g.trim() ? ze : b.map((e) => e.label).join(" ") : g.trim();
|
|
17177
|
-
return /* @__PURE__ */ Q(
|
|
17177
|
+
return /* @__PURE__ */ Q(eo, {
|
|
17178
17178
|
open: e,
|
|
17179
17179
|
onOpenChange: t,
|
|
17180
|
-
children: /* @__PURE__ */ $(
|
|
17180
|
+
children: /* @__PURE__ */ $(Ea, {
|
|
17181
17181
|
"aria-label": d.label,
|
|
17182
17182
|
"aria-describedby": void 0,
|
|
17183
17183
|
withTranslateAnimation: !1,
|
|
@@ -17193,7 +17193,7 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
17193
17193
|
e.target === e.currentTarget && ee();
|
|
17194
17194
|
},
|
|
17195
17195
|
children: [
|
|
17196
|
-
/* @__PURE__ */ Q(
|
|
17196
|
+
/* @__PURE__ */ Q(ja, {
|
|
17197
17197
|
className: "sr-only",
|
|
17198
17198
|
children: d.label
|
|
17199
17199
|
}),
|
|
@@ -17372,7 +17372,7 @@ var Jk = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
17372
17372
|
e.setAttribute("target", "_blank"), e.setAttribute("rel", "noopener noreferrer");
|
|
17373
17373
|
});
|
|
17374
17374
|
let n = t.ownerDocument.createTreeWalker(t, NodeFilter.SHOW_TEXT);
|
|
17375
|
-
for (let e = n.nextNode(); e; e = n.nextNode()) e.textContent =
|
|
17375
|
+
for (let e = n.nextNode(); e; e = n.nextNode()) e.textContent = no(e.textContent ?? "");
|
|
17376
17376
|
return pj(t), t.innerHTML;
|
|
17377
17377
|
}, hj = () => {}, gj = gu({
|
|
17378
17378
|
tabs: [],
|
|
@@ -17653,9 +17653,9 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
17653
17653
|
scheduled: c.length,
|
|
17654
17654
|
draft: l.length
|
|
17655
17655
|
}, f = {
|
|
17656
|
-
pinned:
|
|
17657
|
-
scheduled:
|
|
17658
|
-
draft:
|
|
17656
|
+
pinned: fa,
|
|
17657
|
+
scheduled: Ua,
|
|
17658
|
+
draft: oa
|
|
17659
17659
|
}, p = {
|
|
17660
17660
|
pinned: e.t("chat.community.pinnedPosts"),
|
|
17661
17661
|
scheduled: e.t("chat.community.scheduledPosts"),
|
|
@@ -17734,7 +17734,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
17734
17734
|
}
|
|
17735
17735
|
}, ...i ? [{
|
|
17736
17736
|
label: n.t("chat.community.unpinPost"),
|
|
17737
|
-
icon:
|
|
17737
|
+
icon: fa,
|
|
17738
17738
|
onClick: () => void i(e.id)
|
|
17739
17739
|
}] : []]
|
|
17740
17740
|
}, e.id))
|
|
@@ -17753,11 +17753,11 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
17753
17753
|
meta: /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ $("span", {
|
|
17754
17754
|
className: "flex items-center gap-1.5 text-f1-foreground-secondary",
|
|
17755
17755
|
children: [/* @__PURE__ */ Q(W, {
|
|
17756
|
-
icon:
|
|
17756
|
+
icon: Ua,
|
|
17757
17757
|
size: "sm"
|
|
17758
17758
|
}), Bj(e.scheduledFor, r)]
|
|
17759
17759
|
}), e.event ? /* @__PURE__ */ Q(Us, {
|
|
17760
|
-
icon:
|
|
17760
|
+
icon: ss,
|
|
17761
17761
|
text: n.t("chat.community.scheduledEvent")
|
|
17762
17762
|
}) : null] }),
|
|
17763
17763
|
onClick: a ? () => {
|
|
@@ -17787,7 +17787,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
17787
17787
|
meta: /* @__PURE__ */ $("span", {
|
|
17788
17788
|
className: "flex items-center gap-1.5 text-f1-foreground-secondary",
|
|
17789
17789
|
children: [/* @__PURE__ */ Q(W, {
|
|
17790
|
-
icon:
|
|
17790
|
+
icon: oa,
|
|
17791
17791
|
size: "sm"
|
|
17792
17792
|
}), n.t("chat.community.draftSavedAt", { when: Bj(e.savedAt, r) })]
|
|
17793
17793
|
}),
|
|
@@ -17830,7 +17830,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
17830
17830
|
})
|
|
17831
17831
|
}), o.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
17832
17832
|
className: "shrink-0",
|
|
17833
|
-
children: /* @__PURE__ */ Q(
|
|
17833
|
+
children: /* @__PURE__ */ Q(Za, {
|
|
17834
17834
|
items: o,
|
|
17835
17835
|
icon: Rs,
|
|
17836
17836
|
size: "sm"
|
|
@@ -17894,7 +17894,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
17894
17894
|
"aria-hidden": !e,
|
|
17895
17895
|
className: B("pointer-events-none absolute inset-1 z-50 flex flex-col items-center justify-center gap-2 rounded-xl", "border border-dashed border-f1-border bg-f1-background-tertiary/80 backdrop-blur", "transition-[opacity,visibility] duration-150 ease-out motion-reduce:transition-none", e ? "visible opacity-100" : "invisible opacity-0"),
|
|
17896
17896
|
children: [/* @__PURE__ */ Q(W, {
|
|
17897
|
-
icon:
|
|
17897
|
+
icon: Rr,
|
|
17898
17898
|
size: "lg",
|
|
17899
17899
|
color: "bold"
|
|
17900
17900
|
}), /* @__PURE__ */ Q("p", {
|
|
@@ -17918,7 +17918,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
17918
17918
|
]);
|
|
17919
17919
|
return /* @__PURE__ */ Q(Kj.Provider, {
|
|
17920
17920
|
value: o,
|
|
17921
|
-
children: /* @__PURE__ */ Q(
|
|
17921
|
+
children: /* @__PURE__ */ Q(Do, {
|
|
17922
17922
|
reducedMotion: t,
|
|
17923
17923
|
htmlSandbox: i,
|
|
17924
17924
|
htmlExecution: a,
|
|
@@ -17987,7 +17987,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
17987
17987
|
variant: "ghost",
|
|
17988
17988
|
hideLabel: !0,
|
|
17989
17989
|
label: e.chat.closeSearch,
|
|
17990
|
-
icon:
|
|
17990
|
+
icon: vr,
|
|
17991
17991
|
onClick: u
|
|
17992
17992
|
})]
|
|
17993
17993
|
})
|
|
@@ -18026,7 +18026,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18026
18026
|
}), /* @__PURE__ */ Q(pc, {
|
|
18027
18027
|
align: "start",
|
|
18028
18028
|
className: "w-72 border-none bg-f1-background p-0 text-f1-foreground shadow-none",
|
|
18029
|
-
children: /* @__PURE__ */ Q(
|
|
18029
|
+
children: /* @__PURE__ */ Q(ri, {
|
|
18030
18030
|
name: e.name,
|
|
18031
18031
|
avatar: e.avatar,
|
|
18032
18032
|
subtitle: e.subtitle,
|
|
@@ -18055,8 +18055,8 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18055
18055
|
});
|
|
18056
18056
|
}, [t, e]), null;
|
|
18057
18057
|
}, sM = ({ channel: e, isFullscreen: t, onToggleFullscreen: n, onClose: r, actions: i, content: a, tabs: o }) => {
|
|
18058
|
-
let s = R(), { searchOpen: c, openSearch: l } = Fj(), { panelOverlays: u } =
|
|
18059
|
-
icon:
|
|
18058
|
+
let s = R(), { searchOpen: c, openSearch: l } = Fj(), { panelOverlays: u } = Or(), { surface: d } = Jj(), f = d === "page", p = vj().tabs.length > 0, { sidebarState: m, toggleSidebar: h, hasPrimarySidebar: g } = Pl(), _ = f && !g && m !== "locked", v = e.type === "dm" && e.presence !== void 0, y = e.type === "group" ? e.visibility === "global" ? {
|
|
18059
|
+
icon: io,
|
|
18060
18060
|
label: s.chat.visibility.global,
|
|
18061
18061
|
hint: s.chat.visibility.globalHint
|
|
18062
18062
|
} : e.visibility === "private" ? {
|
|
@@ -18119,7 +18119,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18119
18119
|
"data-testid": "chat-header-title-skeleton",
|
|
18120
18120
|
className: "h-3.5 w-32 rounded-2xs"
|
|
18121
18121
|
}),
|
|
18122
|
-
y ? /* @__PURE__ */ Q(
|
|
18122
|
+
y ? /* @__PURE__ */ Q(Vn, {
|
|
18123
18123
|
description: y.hint,
|
|
18124
18124
|
children: /* @__PURE__ */ Q(Us, {
|
|
18125
18125
|
size: "sm",
|
|
@@ -18145,7 +18145,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18145
18145
|
variant: "ghost",
|
|
18146
18146
|
hideLabel: !0,
|
|
18147
18147
|
label: s.navigation.sidebar.label,
|
|
18148
|
-
icon:
|
|
18148
|
+
icon: Vr,
|
|
18149
18149
|
onClick: () => h()
|
|
18150
18150
|
}) : null,
|
|
18151
18151
|
e.user ? /* @__PURE__ */ Q(rM, {
|
|
@@ -18174,7 +18174,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18174
18174
|
label: t.label,
|
|
18175
18175
|
tooltip: t.label
|
|
18176
18176
|
}, t.id)),
|
|
18177
|
-
E.length > 0 ? /* @__PURE__ */ Q(
|
|
18177
|
+
E.length > 0 ? /* @__PURE__ */ Q(Za, {
|
|
18178
18178
|
items: E,
|
|
18179
18179
|
align: "end",
|
|
18180
18180
|
label: s.chat.options,
|
|
@@ -18189,14 +18189,14 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18189
18189
|
variant: "ghost",
|
|
18190
18190
|
hideLabel: !0,
|
|
18191
18191
|
label: t ? s.actions.collapse : s.actions.expand,
|
|
18192
|
-
icon: t ?
|
|
18192
|
+
icon: t ? $r : ls,
|
|
18193
18193
|
onClick: n
|
|
18194
18194
|
}) : null,
|
|
18195
18195
|
r ? /* @__PURE__ */ Q(H, {
|
|
18196
18196
|
variant: "ghost",
|
|
18197
18197
|
hideLabel: !0,
|
|
18198
18198
|
label: s.actions.close,
|
|
18199
|
-
icon:
|
|
18199
|
+
icon: vr,
|
|
18200
18200
|
onClick: r
|
|
18201
18201
|
}) : null,
|
|
18202
18202
|
a ? /* @__PURE__ */ Q("div", {
|
|
@@ -18219,7 +18219,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18219
18219
|
let t = R(), { tabs: n, activeTabId: r, selectTab: i } = vj(), a = [{
|
|
18220
18220
|
id: ej,
|
|
18221
18221
|
label: t.chat.tabs.messages,
|
|
18222
|
-
icon:
|
|
18222
|
+
icon: Ci,
|
|
18223
18223
|
badge: e
|
|
18224
18224
|
}, ...n.map(({ id: e, label: t, icon: n, badge: r }) => ({
|
|
18225
18225
|
id: e,
|
|
@@ -18233,7 +18233,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18233
18233
|
s.current && (s.current = !1, o.current?.querySelector("[aria-current=true]")?.focus());
|
|
18234
18234
|
}, [c]), /* @__PURE__ */ Q("div", {
|
|
18235
18235
|
ref: o,
|
|
18236
|
-
children: /* @__PURE__ */ Q(
|
|
18236
|
+
children: /* @__PURE__ */ Q(Ri, {
|
|
18237
18237
|
tabs: a,
|
|
18238
18238
|
activeTabId: r,
|
|
18239
18239
|
setActiveTabId: f,
|
|
@@ -18255,7 +18255,7 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18255
18255
|
n && i.onUpsellShown({ source: "history_limit" });
|
|
18256
18256
|
}, [n, i]), /* @__PURE__ */ Q("div", {
|
|
18257
18257
|
className: "rounded-xl bg-f1-background",
|
|
18258
|
-
children: /* @__PURE__ */ $(
|
|
18258
|
+
children: /* @__PURE__ */ $(as, {
|
|
18259
18259
|
title: e.title,
|
|
18260
18260
|
description: e.description,
|
|
18261
18261
|
children: [r ? /* @__PURE__ */ $("div", {
|
|
@@ -18292,12 +18292,12 @@ var Aj = () => kj(Sj, "useChatJump"), jj = (e) => {
|
|
|
18292
18292
|
let [n] = t;
|
|
18293
18293
|
if (!n || n.width && n.height) return [];
|
|
18294
18294
|
let r = n.thumbnailUrl ?? n.url;
|
|
18295
|
-
return
|
|
18295
|
+
return Ki(r) === void 0 ? [r] : [];
|
|
18296
18296
|
}, mM = (e) => {
|
|
18297
18297
|
let t = e.linkPreviews ?? [];
|
|
18298
18298
|
if (t.length !== 1) return [];
|
|
18299
18299
|
let n = t[0]?.imageUrl;
|
|
18300
|
-
return n &&
|
|
18300
|
+
return n && Ki(n) === void 0 ? [n] : [];
|
|
18301
18301
|
};
|
|
18302
18302
|
function hM(e, { enabled: t }) {
|
|
18303
18303
|
let [, n] = Tu((e) => e + 1, 0), r = Y(null);
|
|
@@ -18343,7 +18343,7 @@ function hM(e, { enabled: t }) {
|
|
|
18343
18343
|
let r = () => {
|
|
18344
18344
|
i.current.has(t) || (i.current.add(t), n());
|
|
18345
18345
|
}, o = window.setTimeout(r, e.ms);
|
|
18346
|
-
Promise.all(e.urls.map(
|
|
18346
|
+
Promise.all(e.urls.map(Wo)).then(() => {
|
|
18347
18347
|
window.clearTimeout(o), r();
|
|
18348
18348
|
});
|
|
18349
18349
|
});
|
|
@@ -18775,7 +18775,7 @@ var XM = (e, t, n) => {
|
|
|
18775
18775
|
})} ${a}`;
|
|
18776
18776
|
}, AN = ({ message: e, onConfirm: t, onClose: n }) => {
|
|
18777
18777
|
let r = R(), [i, a] = X(() => /* @__PURE__ */ new Date()), o = e.reminder ? new Date(e.reminder.remindAt) : new Date(i.getTime() + 36e5), [s, c] = X(o), [l, u] = X(CN(o)), d = s ? new Date(wN(s, l)) : void 0, f = !!d && d.getTime() <= i.getTime(), p = !!d && !!l && !f;
|
|
18778
|
-
return /* @__PURE__ */ Q(
|
|
18778
|
+
return /* @__PURE__ */ Q(Mi, {
|
|
18779
18779
|
isOpen: !0,
|
|
18780
18780
|
onClose: n,
|
|
18781
18781
|
width: "sm",
|
|
@@ -18819,7 +18819,7 @@ var XM = (e, t, n) => {
|
|
|
18819
18819
|
})
|
|
18820
18820
|
}), /* @__PURE__ */ Q("div", {
|
|
18821
18821
|
className: "w-32",
|
|
18822
|
-
children: /* @__PURE__ */ Q(
|
|
18822
|
+
children: /* @__PURE__ */ Q(Va, {
|
|
18823
18823
|
type: "time",
|
|
18824
18824
|
label: r.chat.remind.time,
|
|
18825
18825
|
value: l,
|
|
@@ -18967,7 +18967,7 @@ var XM = (e, t, n) => {
|
|
|
18967
18967
|
};
|
|
18968
18968
|
}, UN = ({ message: e, onOpen: t }) => {
|
|
18969
18969
|
let n = R(), { channelType: r } = ru(), i = e.readBy?.length ?? e.readByCount ?? 0, a = e.readBy?.slice(0, VN) ?? [], o = Math.max(0, i - a.length), s = n.chat.info, c = Ic;
|
|
18970
|
-
return e.isMine && r === "group" && i > 0 ? (s = n.t(i === 1 ? "chat.readBy.one" : "chat.readBy.other", { count: i }), c =
|
|
18970
|
+
return e.isMine && r === "group" && i > 0 ? (s = n.t(i === 1 ? "chat.readBy.one" : "chat.readBy.other", { count: i }), c = qo) : e.isMine && e.readAt ? (s = `${n.chat.read} · ${TM(new Date(e.readAt))}`, c = qo) : e.isMine && r === "dm" && e.status === "delivered" && (s = n.chat.delivered, c = qo), /* @__PURE__ */ Q(zN, {
|
|
18971
18971
|
icon: c,
|
|
18972
18972
|
label: s,
|
|
18973
18973
|
onClick: t,
|
|
@@ -19013,7 +19013,7 @@ var XM = (e, t, n) => {
|
|
|
19013
19013
|
l ? /* @__PURE__ */ $("p", {
|
|
19014
19014
|
className: "flex items-center gap-1.5 border-0 border-b border-solid border-f1-border-secondary px-3 py-2 text-sm font-medium text-f1-foreground",
|
|
19015
19015
|
"data-testid": "chat-remind-current",
|
|
19016
|
-
children: [/* @__PURE__ */ Q(
|
|
19016
|
+
children: [/* @__PURE__ */ Q(Ir, {
|
|
19017
19017
|
className: "size-4 shrink-0",
|
|
19018
19018
|
"aria-hidden": !0
|
|
19019
19019
|
}), a.t("chat.remind.current", { when: c(l) })]
|
|
@@ -19026,7 +19026,7 @@ var XM = (e, t, n) => {
|
|
|
19026
19026
|
relativeDay: !1
|
|
19027
19027
|
}) : c(t);
|
|
19028
19028
|
return /* @__PURE__ */ Q(zN, {
|
|
19029
|
-
icon:
|
|
19029
|
+
icon: Ua,
|
|
19030
19030
|
label: a.chat.remind[e],
|
|
19031
19031
|
onClick: () => n(t),
|
|
19032
19032
|
trailing: /* @__PURE__ */ Q("span", {
|
|
@@ -19043,12 +19043,12 @@ var XM = (e, t, n) => {
|
|
|
19043
19043
|
/* @__PURE__ */ $("div", {
|
|
19044
19044
|
className: "flex flex-col p-1",
|
|
19045
19045
|
children: [/* @__PURE__ */ Q(zN, {
|
|
19046
|
-
icon:
|
|
19046
|
+
icon: ss,
|
|
19047
19047
|
label: a.chat.remind.custom,
|
|
19048
19048
|
onClick: r
|
|
19049
19049
|
}), e.reminder ? /* @__PURE__ */ Q(zN, {
|
|
19050
19050
|
critical: !0,
|
|
19051
|
-
icon:
|
|
19051
|
+
icon: yi,
|
|
19052
19052
|
label: a.chat.remind.remove,
|
|
19053
19053
|
onClick: i
|
|
19054
19054
|
}) : null]
|
|
@@ -19098,13 +19098,13 @@ var XM = (e, t, n) => {
|
|
|
19098
19098
|
className: `${KN} flex w-64 flex-col rounded-lg p-1`,
|
|
19099
19099
|
onKeyDown: BN,
|
|
19100
19100
|
children: [/* @__PURE__ */ Q(zN, {
|
|
19101
|
-
icon:
|
|
19101
|
+
icon: Mr,
|
|
19102
19102
|
label: n.chat.retry,
|
|
19103
19103
|
onClick: (n) => {
|
|
19104
19104
|
r(e.live.id), t(qN(n));
|
|
19105
19105
|
}
|
|
19106
19106
|
}), /* @__PURE__ */ Q(zN, {
|
|
19107
|
-
icon:
|
|
19107
|
+
icon: yi,
|
|
19108
19108
|
label: n.actions.delete,
|
|
19109
19109
|
onClick: (n) => {
|
|
19110
19110
|
o(e.live.id), t(qN(n));
|
|
@@ -19120,48 +19120,48 @@ var XM = (e, t, n) => {
|
|
|
19120
19120
|
className: "flex flex-col p-1",
|
|
19121
19121
|
children: [
|
|
19122
19122
|
cN(e) ? /* @__PURE__ */ Q(zN, {
|
|
19123
|
-
icon:
|
|
19123
|
+
icon: ko,
|
|
19124
19124
|
label: i.chat.reply,
|
|
19125
19125
|
onClick: t(cN, () => d(n))
|
|
19126
19126
|
}) : null,
|
|
19127
19127
|
oN(e) ? /* @__PURE__ */ Q(zN, {
|
|
19128
|
-
icon:
|
|
19128
|
+
icon: To,
|
|
19129
19129
|
label: i.actions.copy,
|
|
19130
19130
|
onClick: t(oN, () => vN(a, n))
|
|
19131
19131
|
}) : null,
|
|
19132
19132
|
f ? /* @__PURE__ */ Q(zN, {
|
|
19133
|
-
icon:
|
|
19133
|
+
icon: io,
|
|
19134
19134
|
label: i.chat.hideTranslation,
|
|
19135
19135
|
onClick: t(gN, () => c?.(n.id))
|
|
19136
19136
|
}) : mN(e) ? /* @__PURE__ */ Q(zN, {
|
|
19137
|
-
icon:
|
|
19137
|
+
icon: io,
|
|
19138
19138
|
label: i.chat.translate,
|
|
19139
19139
|
onClick: t(mN, () => u?.(n.id))
|
|
19140
19140
|
}) : null,
|
|
19141
19141
|
hN(e) ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(GN, {}), /* @__PURE__ */ Q(zN, {
|
|
19142
|
-
icon:
|
|
19142
|
+
icon: io,
|
|
19143
19143
|
label: i.chat.translate,
|
|
19144
19144
|
onClick: t(hN, () => l?.()),
|
|
19145
19145
|
trailing: /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
19146
19146
|
className: "sr-only",
|
|
19147
19147
|
children: ", "
|
|
19148
19148
|
}), /* @__PURE__ */ Q(Us, {
|
|
19149
|
-
icon:
|
|
19149
|
+
icon: ji,
|
|
19150
19150
|
text: i.chat.upgrade
|
|
19151
19151
|
})] })
|
|
19152
19152
|
})] }) : null,
|
|
19153
19153
|
dN(e) ? /* @__PURE__ */ Q(zN, {
|
|
19154
|
-
icon:
|
|
19154
|
+
icon: Ia,
|
|
19155
19155
|
label: i.chat.forward,
|
|
19156
19156
|
onClick: t(dN, () => o?.(n))
|
|
19157
19157
|
}) : null,
|
|
19158
19158
|
fN(e) ? /* @__PURE__ */ Q(zN, {
|
|
19159
|
-
icon: n.pinnedAt ?
|
|
19159
|
+
icon: n.pinnedAt ? fa : Ca,
|
|
19160
19160
|
label: n.pinnedAt ? i.chat.unpinMessage : i.chat.pinMessage,
|
|
19161
19161
|
onClick: t(fN, () => s?.(n.id, !n.pinnedAt))
|
|
19162
19162
|
}) : null,
|
|
19163
19163
|
pN(e) && r ? /* @__PURE__ */ Q(zN, {
|
|
19164
|
-
icon:
|
|
19164
|
+
icon: Sr,
|
|
19165
19165
|
label: i.chat.remind.menu,
|
|
19166
19166
|
onClick: r,
|
|
19167
19167
|
testId: "chat-message-menu-remind",
|
|
@@ -19182,7 +19182,7 @@ var XM = (e, t, n) => {
|
|
|
19182
19182
|
onClick: t(uN, () => a(n))
|
|
19183
19183
|
}) : null, lN(e) ? /* @__PURE__ */ Q(zN, {
|
|
19184
19184
|
critical: !0,
|
|
19185
|
-
icon:
|
|
19185
|
+
icon: yi,
|
|
19186
19186
|
label: r.actions.delete,
|
|
19187
19187
|
onClick: t(lN, () => i(n.id))
|
|
19188
19188
|
}) : null]
|
|
@@ -19543,14 +19543,14 @@ var XM = (e, t, n) => {
|
|
|
19543
19543
|
for (let { segment: e } of OP.segment(t)) if (!DP.test(e) && (n += 1, n > 3 || !EP.test(e))) return 0;
|
|
19544
19544
|
return n;
|
|
19545
19545
|
}, MP = (e) => e.deleted || uj(e) || e.replyTo || (e.linkPreviews?.length ?? 0) > 0 || (e.attachments?.length ?? 0) > 0 || e.translation || (e.mentions?.length ?? 0) > 0 || e.mentionedEveryone ? 0 : jP(e.body), NP = /(https?:\/\/[^\s]+)/g, PP = (e, t) => {
|
|
19546
|
-
let n =
|
|
19546
|
+
let n = no(e), r = n.split(NP);
|
|
19547
19547
|
if (r.length === 1) return n;
|
|
19548
19548
|
let i = new Map((t ?? []).filter((e) => e.title).map((e) => [e.url, e.title]));
|
|
19549
19549
|
return r.map((e, t) => {
|
|
19550
19550
|
if (e.length === 0) return null;
|
|
19551
19551
|
if (t % 2 == 0) return /* @__PURE__ */ Q(pu, { children: e }, `text-${t}`);
|
|
19552
19552
|
let n = i.get(e);
|
|
19553
|
-
return /* @__PURE__ */ Q(
|
|
19553
|
+
return /* @__PURE__ */ Q(Wa, {
|
|
19554
19554
|
href: e,
|
|
19555
19555
|
target: "_blank",
|
|
19556
19556
|
stopPropagation: !0,
|
|
@@ -19561,12 +19561,12 @@ var XM = (e, t, n) => {
|
|
|
19561
19561
|
});
|
|
19562
19562
|
}, FP = (e, t, n) => {
|
|
19563
19563
|
if (t.length === 0) return PP(e, n);
|
|
19564
|
-
let r =
|
|
19564
|
+
let r = _o(e, t);
|
|
19565
19565
|
if (r.length === 0) return PP(e, n);
|
|
19566
19566
|
let i = [], a = 0;
|
|
19567
19567
|
return r.forEach((t, r) => {
|
|
19568
19568
|
t.start > a && i.push(/* @__PURE__ */ Q(pu, { children: PP(e.slice(a, t.start), n) }, `t-${r}`));
|
|
19569
|
-
let o = t.entry, s =
|
|
19569
|
+
let o = t.entry, s = no(e.slice(t.start, t.end)), c = o.user?.subtitle ? `${s}, ${o.user.subtitle}` : s, l = B("cursor-pointer rounded-sm border-0 bg-transparent p-0 text-f1-foreground-secondary hover:text-f1-foreground", Dn()), u = o.user?.profileHref ? /* @__PURE__ */ Q(Wa, {
|
|
19570
19570
|
href: o.user.profileHref,
|
|
19571
19571
|
variant: "unstyled",
|
|
19572
19572
|
stopPropagation: !0,
|
|
@@ -19647,7 +19647,7 @@ var XM = (e, t, n) => {
|
|
|
19647
19647
|
}, GP = (e, t, n, r) => B("flex w-full overflow-hidden rounded-xl text-left no-underline", "bg-f1-background-secondary", "transition-shadow hover:ring-1 hover:ring-inset hover:ring-f1-border-secondary", Dn("focus-visible:ring-inset"), !n && "rounded-t-sm", !r && "rounded-b-sm", n && !t && (e ? "rounded-tr-xs" : "rounded-tl-xs")), KP = ({ preview: e, host: t, compact: n }) => /* @__PURE__ */ $("div", {
|
|
19648
19648
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 p-2.5",
|
|
19649
19649
|
children: [
|
|
19650
|
-
e.title ? /* @__PURE__ */ Q(
|
|
19650
|
+
e.title ? /* @__PURE__ */ Q(co, {
|
|
19651
19651
|
className: "text-base font-medium text-f1-foreground",
|
|
19652
19652
|
children: e.title
|
|
19653
19653
|
}) : null,
|
|
@@ -19655,13 +19655,13 @@ var XM = (e, t, n) => {
|
|
|
19655
19655
|
className: B("text-sm text-f1-foreground-secondary", n ? "line-clamp-1" : "line-clamp-2"),
|
|
19656
19656
|
children: e.description
|
|
19657
19657
|
}) : null,
|
|
19658
|
-
/* @__PURE__ */ Q(
|
|
19658
|
+
/* @__PURE__ */ Q(co, {
|
|
19659
19659
|
className: "text-sm text-f1-foreground",
|
|
19660
19660
|
children: t
|
|
19661
19661
|
})
|
|
19662
19662
|
]
|
|
19663
19663
|
}), qP = ({ preview: e, host: t, compact: n, className: r, onOpen: i }) => {
|
|
19664
|
-
let a =
|
|
19664
|
+
let a = Ta(e.imageUrl), o = UP(e.imageUrl, a, n);
|
|
19665
19665
|
return /* @__PURE__ */ $("a", {
|
|
19666
19666
|
href: e.url,
|
|
19667
19667
|
onClick: i,
|
|
@@ -19682,7 +19682,7 @@ var XM = (e, t, n) => {
|
|
|
19682
19682
|
alt: "",
|
|
19683
19683
|
"aria-hidden": !0,
|
|
19684
19684
|
className: "absolute inset-0 h-full w-full scale-110 object-cover opacity-60 blur-xl"
|
|
19685
|
-
}), /* @__PURE__ */ Q(
|
|
19685
|
+
}), /* @__PURE__ */ Q(ur, {
|
|
19686
19686
|
src: e.imageUrl,
|
|
19687
19687
|
alt: "",
|
|
19688
19688
|
className: "relative h-full w-full object-contain"
|
|
@@ -19693,7 +19693,7 @@ var XM = (e, t, n) => {
|
|
|
19693
19693
|
host: t,
|
|
19694
19694
|
compact: n
|
|
19695
19695
|
}),
|
|
19696
|
-
o.kind === "thumb" ? /* @__PURE__ */ Q(
|
|
19696
|
+
o.kind === "thumb" ? /* @__PURE__ */ Q(ur, {
|
|
19697
19697
|
src: e.imageUrl,
|
|
19698
19698
|
alt: "",
|
|
19699
19699
|
style: {
|
|
@@ -19732,7 +19732,7 @@ var XM = (e, t, n) => {
|
|
|
19732
19732
|
size: "sm",
|
|
19733
19733
|
hideLabel: !0,
|
|
19734
19734
|
label: a.chat.removeLinkPreview,
|
|
19735
|
-
icon:
|
|
19735
|
+
icon: vr,
|
|
19736
19736
|
onClick: () => r(e.url)
|
|
19737
19737
|
})
|
|
19738
19738
|
}) : null]
|
|
@@ -19742,7 +19742,7 @@ var XM = (e, t, n) => {
|
|
|
19742
19742
|
let n = R(), r = Zl(), i = /* @__PURE__ */ Q($P, { parts: ZP(e, n.chat) });
|
|
19743
19743
|
return r === "announcement" ? null : t === "overlay" ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
19744
19744
|
"aria-hidden": !0,
|
|
19745
|
-
className:
|
|
19745
|
+
className: Bi
|
|
19746
19746
|
}), /* @__PURE__ */ Q("span", {
|
|
19747
19747
|
"aria-hidden": !0,
|
|
19748
19748
|
className: "pointer-events-none absolute bottom-1.5 right-2.5 text-xs leading-none text-f1-foreground-inverse [text-shadow:0_1px_2px_hsl(0_0%_0%/0.45)]",
|
|
@@ -19835,25 +19835,25 @@ var XM = (e, t, n) => {
|
|
|
19835
19835
|
name: n.length === 1 ? n[0].name : void 0
|
|
19836
19836
|
} : r.length > 0 ? { kind: "location" } : i.length > 0 ? { kind: "voice" } : null;
|
|
19837
19837
|
}, aF = (e) => {
|
|
19838
|
-
let t = R(), n =
|
|
19838
|
+
let t = R(), n = no(e.body?.trim() ?? ""), r = rF(e.attachments), i = iF(e.attachments);
|
|
19839
19839
|
if (!i) return {
|
|
19840
19840
|
label: n,
|
|
19841
19841
|
thumbnailUrl: r
|
|
19842
19842
|
};
|
|
19843
19843
|
let a = i.kind === "photo" ? {
|
|
19844
|
-
icon:
|
|
19844
|
+
icon: Hi,
|
|
19845
19845
|
label: i.count === 1 ? t.chat.photo : t.t("chat.photoCount.other", { count: i.count })
|
|
19846
19846
|
} : i.kind === "file" ? {
|
|
19847
|
-
icon:
|
|
19847
|
+
icon: Ya,
|
|
19848
19848
|
label: i.name ?? t.t("chat.fileCount.other", { count: i.count })
|
|
19849
19849
|
} : i.kind === "location" ? {
|
|
19850
|
-
icon:
|
|
19850
|
+
icon: gr,
|
|
19851
19851
|
label: t.chat.location
|
|
19852
19852
|
} : i.kind === "voice" ? {
|
|
19853
|
-
icon:
|
|
19853
|
+
icon: ui,
|
|
19854
19854
|
label: t.chat.voiceNote
|
|
19855
19855
|
} : {
|
|
19856
|
-
icon:
|
|
19856
|
+
icon: ra,
|
|
19857
19857
|
label: t.t("chat.attachmentCount.other", { count: i.count })
|
|
19858
19858
|
};
|
|
19859
19859
|
return {
|
|
@@ -19879,7 +19879,7 @@ var XM = (e, t, n) => {
|
|
|
19879
19879
|
className: "ml-2.5 h-9 w-9 shrink-0 self-center rounded-sm object-cover"
|
|
19880
19880
|
}) : null, /* @__PURE__ */ $("div", {
|
|
19881
19881
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 p-2.5",
|
|
19882
|
-
children: [/* @__PURE__ */ Q(
|
|
19882
|
+
children: [/* @__PURE__ */ Q(co, {
|
|
19883
19883
|
className: B("text-sm font-medium", BP(e.author)),
|
|
19884
19884
|
children: u
|
|
19885
19885
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -19888,7 +19888,7 @@ var XM = (e, t, n) => {
|
|
|
19888
19888
|
icon: s,
|
|
19889
19889
|
size: "sm",
|
|
19890
19890
|
color: "default"
|
|
19891
|
-
}) : null, /* @__PURE__ */ Q(
|
|
19891
|
+
}) : null, /* @__PURE__ */ Q(co, {
|
|
19892
19892
|
className: "min-w-0 text-base",
|
|
19893
19893
|
children: c
|
|
19894
19894
|
})]
|
|
@@ -20020,7 +20020,7 @@ var XM = (e, t, n) => {
|
|
|
20020
20020
|
className: "relative px-3.5 py-2.5",
|
|
20021
20021
|
children: [
|
|
20022
20022
|
n ? /* @__PURE__ */ Q(lF, { author: n }) : null,
|
|
20023
|
-
/* @__PURE__ */ Q(
|
|
20023
|
+
/* @__PURE__ */ Q(Gi, {
|
|
20024
20024
|
"data-chat-message-text": !0,
|
|
20025
20025
|
content: o,
|
|
20026
20026
|
format: "html",
|
|
@@ -20035,12 +20035,12 @@ var XM = (e, t, n) => {
|
|
|
20035
20035
|
})]
|
|
20036
20036
|
})
|
|
20037
20037
|
});
|
|
20038
|
-
}), fF = (e) => e.kind === "image" ? "image" :
|
|
20038
|
+
}), fF = (e) => e.kind === "image" ? "image" : Gr(e) ? "video" : Pi(e) ? "document" : "file", pF = (e) => {
|
|
20039
20039
|
let t = (e ?? []).filter((e) => e.kind === "image");
|
|
20040
20040
|
return t.length === 1 ? t[0] : void 0;
|
|
20041
20041
|
}, mF = (e) => {
|
|
20042
20042
|
if (e.progress !== void 0) return { bucket: "files" };
|
|
20043
|
-
let t =
|
|
20043
|
+
let t = Br(e, { inferImages: !1 });
|
|
20044
20044
|
switch (t.bucket) {
|
|
20045
20045
|
case "video": return { bucket: "videos" };
|
|
20046
20046
|
case "audio": return { bucket: "audios" };
|
|
@@ -20087,7 +20087,7 @@ var XM = (e, t, n) => {
|
|
|
20087
20087
|
let t = [];
|
|
20088
20088
|
for (let n of e.images) t.push({
|
|
20089
20089
|
file: n,
|
|
20090
|
-
item:
|
|
20090
|
+
item: Hr(n, Jr(t.length, n.url))
|
|
20091
20091
|
});
|
|
20092
20092
|
let n = [
|
|
20093
20093
|
...e.videos,
|
|
@@ -20096,7 +20096,7 @@ var XM = (e, t, n) => {
|
|
|
20096
20096
|
];
|
|
20097
20097
|
for (let e of n) t.push({
|
|
20098
20098
|
file: e,
|
|
20099
|
-
item:
|
|
20099
|
+
item: Ar(e, Jr(t.length, e.url), { inferImages: !1 })
|
|
20100
20100
|
});
|
|
20101
20101
|
return t;
|
|
20102
20102
|
}, _F = (e, t) => e + t > 1, vF = [
|
|
@@ -20106,7 +20106,7 @@ var XM = (e, t, n) => {
|
|
|
20106
20106
|
"text"
|
|
20107
20107
|
], yF = (e) => e !== null && vF.includes(e), bF = (e) => {
|
|
20108
20108
|
if (e.kind !== "document") return null;
|
|
20109
|
-
let t =
|
|
20109
|
+
let t = Pi(e.file);
|
|
20110
20110
|
return yF(t) ? t : !e.rendering && yF(e.documentKind) ? e.documentKind : null;
|
|
20111
20111
|
}, xF = (e) => e.kind === "document" ? e.documentKind : e.kind, SF = (e) => e.kind === "image" ? "image" : fF({
|
|
20112
20112
|
kind: "file",
|
|
@@ -20155,7 +20155,7 @@ var XM = (e, t, n) => {
|
|
|
20155
20155
|
}, OF = () => document.activeElement === null || document.activeElement === document.body, kF = () => {
|
|
20156
20156
|
OF() && document.querySelector("[data-chat-viewport]")?.focus({ preventScroll: !0 });
|
|
20157
20157
|
}, AF = ({ children: e, noteOpener: t, showsDraft: n }) => {
|
|
20158
|
-
let r =
|
|
20158
|
+
let r = Po(), { channel: i } = uu(), a = Y(i.id);
|
|
20159
20159
|
q(function() {
|
|
20160
20160
|
a.current !== i.id && (a.current = i.id, r.close());
|
|
20161
20161
|
}, [i.id, r]);
|
|
@@ -20182,7 +20182,7 @@ var XM = (e, t, n) => {
|
|
|
20182
20182
|
a.current = { messageId: e };
|
|
20183
20183
|
}, []), l = G((e) => {
|
|
20184
20184
|
let t = i.current;
|
|
20185
|
-
return t?.origin !== "composer" || !t.items.some((t) =>
|
|
20185
|
+
return t?.origin !== "composer" || !t.items.some((t) => vi(t) === e) ? !1 : (i.current = null, !0);
|
|
20186
20186
|
}, []), u = G((e) => {
|
|
20187
20187
|
e.type === "opened" && (i.current = {
|
|
20188
20188
|
origin: e.origin,
|
|
@@ -20205,7 +20205,7 @@ var XM = (e, t, n) => {
|
|
|
20205
20205
|
}, [r]);
|
|
20206
20206
|
return K(() => () => {
|
|
20207
20207
|
o.current !== null && cancelAnimationFrame(o.current);
|
|
20208
|
-
}, []), /* @__PURE__ */ Q(
|
|
20208
|
+
}, []), /* @__PURE__ */ Q(ni, {
|
|
20209
20209
|
onEvent: u,
|
|
20210
20210
|
onFocusFallback: d,
|
|
20211
20211
|
children: /* @__PURE__ */ Q(AF, {
|
|
@@ -20232,13 +20232,13 @@ var XM = (e, t, n) => {
|
|
|
20232
20232
|
isLastOfRun: t === f && !d
|
|
20233
20233
|
});
|
|
20234
20234
|
}, PF = (e) => {
|
|
20235
|
-
let { image: t } = e, n =
|
|
20236
|
-
return n && r === t.url ? /* @__PURE__ */ Q(FF, { ...e }) : /* @__PURE__ */ Q(
|
|
20235
|
+
let { image: t } = e, n = vo(t), [r, i] = X(null);
|
|
20236
|
+
return n && r === t.url ? /* @__PURE__ */ Q(FF, { ...e }) : /* @__PURE__ */ Q(ea, {
|
|
20237
20237
|
...e,
|
|
20238
20238
|
onImageError: n ? () => i(t.url) : void 0
|
|
20239
20239
|
});
|
|
20240
20240
|
}, FF = ({ image: e, aspectRatio: t, spanFull: n, surfaceClassName: r, overlay: i }) => {
|
|
20241
|
-
let a = R(), o = Ql(), s =
|
|
20241
|
+
let a = R(), o = Ql(), s = bo();
|
|
20242
20242
|
return /* @__PURE__ */ $("div", {
|
|
20243
20243
|
style: { aspectRatio: t },
|
|
20244
20244
|
className: B("relative flex min-w-0 flex-col items-center justify-center gap-2 overflow-hidden p-3", n && "col-span-2", r),
|
|
@@ -20254,7 +20254,7 @@ var XM = (e, t, n) => {
|
|
|
20254
20254
|
/* @__PURE__ */ Q("bdi", {
|
|
20255
20255
|
dir: "auto",
|
|
20256
20256
|
className: "min-w-0 max-w-full text-center",
|
|
20257
|
-
children: /* @__PURE__ */ Q(
|
|
20257
|
+
children: /* @__PURE__ */ Q(co, {
|
|
20258
20258
|
className: "text-sm font-medium text-f1-foreground",
|
|
20259
20259
|
children: e.name
|
|
20260
20260
|
})
|
|
@@ -20264,7 +20264,7 @@ var XM = (e, t, n) => {
|
|
|
20264
20264
|
variant: "outline",
|
|
20265
20265
|
size: "sm",
|
|
20266
20266
|
hideLabel: !0,
|
|
20267
|
-
icon:
|
|
20267
|
+
icon: Go,
|
|
20268
20268
|
label: a.t("chat.downloadNamedFile", { name: e.name }),
|
|
20269
20269
|
onClick: () => {
|
|
20270
20270
|
s(e.url, e.name), o.onAttachmentDownloaded({ kind: "image" });
|
|
@@ -20275,16 +20275,16 @@ var XM = (e, t, n) => {
|
|
|
20275
20275
|
});
|
|
20276
20276
|
}, IF = (e) => {
|
|
20277
20277
|
let t = Ql();
|
|
20278
|
-
return /* @__PURE__ */ Q(
|
|
20278
|
+
return /* @__PURE__ */ Q($o, {
|
|
20279
20279
|
...e,
|
|
20280
20280
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: fF(e.file) })
|
|
20281
20281
|
});
|
|
20282
20282
|
}, LF = ({ card: e }) => {
|
|
20283
20283
|
let t = Ql(), { action: n } = e;
|
|
20284
20284
|
return /* @__PURE__ */ Q("div", {
|
|
20285
|
-
className:
|
|
20285
|
+
className: di,
|
|
20286
20286
|
"data-testid": "chat-card-attachment",
|
|
20287
|
-
children: /* @__PURE__ */ Q(
|
|
20287
|
+
children: /* @__PURE__ */ Q(as, {
|
|
20288
20288
|
avatar: e.avatar,
|
|
20289
20289
|
title: e.title,
|
|
20290
20290
|
description: e.description,
|
|
@@ -20306,7 +20306,7 @@ var XM = (e, t, n) => {
|
|
|
20306
20306
|
});
|
|
20307
20307
|
}, RF = (e) => {
|
|
20308
20308
|
let t = Ql();
|
|
20309
|
-
return /* @__PURE__ */ Q(
|
|
20309
|
+
return /* @__PURE__ */ Q(or, {
|
|
20310
20310
|
...e,
|
|
20311
20311
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: fF(e.file) })
|
|
20312
20312
|
});
|
|
@@ -20318,7 +20318,7 @@ function VF() {
|
|
|
20318
20318
|
return xu(zF);
|
|
20319
20319
|
}
|
|
20320
20320
|
var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ latitude: e, longitude: t }) => `https://www.google.com/maps?q=${e},${t}`, GF = ({ location: e, cornerClass: t = "rounded-xl", surfaceClassName: n, meta: r }) => {
|
|
20321
|
-
let i = R(), a = Ql(), o = VF(), { ref: s, shouldMount: c } =
|
|
20321
|
+
let i = R(), a = Ql(), o = VF(), { ref: s, shouldMount: c } = ya();
|
|
20322
20322
|
return /* @__PURE__ */ Q("a", {
|
|
20323
20323
|
ref: s,
|
|
20324
20324
|
href: WF(e),
|
|
@@ -20328,7 +20328,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20328
20328
|
target: "_blank",
|
|
20329
20329
|
rel: "noopener noreferrer",
|
|
20330
20330
|
"aria-label": e.name ?? i.chat.location,
|
|
20331
|
-
className: B("flex min-w-0 max-w-full flex-col overflow-hidden no-underline",
|
|
20331
|
+
className: B("flex min-w-0 max-w-full flex-col overflow-hidden no-underline", Ui, "bg-f1-background-tertiary", "transition-shadow hover:ring-1 hover:ring-inset hover:ring-f1-border-secondary", Dn("focus-visible:ring-inset"), t, n),
|
|
20332
20332
|
"data-testid": "chat-location-attachment",
|
|
20333
20333
|
children: /* @__PURE__ */ $("div", {
|
|
20334
20334
|
className: "pointer-events-none relative w-full",
|
|
@@ -20369,7 +20369,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20369
20369
|
});
|
|
20370
20370
|
}, KF = ({ surface: e }) => /* @__PURE__ */ Q(z, { className: B("h-full w-full rounded-none motion-reduce:animate-none", e) }), qF = (e) => {
|
|
20371
20371
|
let t = Ql();
|
|
20372
|
-
return /* @__PURE__ */ Q(
|
|
20372
|
+
return /* @__PURE__ */ Q(rs, {
|
|
20373
20373
|
...e,
|
|
20374
20374
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: "video" })
|
|
20375
20375
|
});
|
|
@@ -20426,7 +20426,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20426
20426
|
};
|
|
20427
20427
|
}, [e]), t;
|
|
20428
20428
|
}, aI = ({ voice: e, isMine: t = !1, cornerClass: n = "rounded-xl", className: r, surfaceClassName: i }) => {
|
|
20429
|
-
let a = R(), o = Y(null), s =
|
|
20429
|
+
let a = R(), o = Y(null), s = gi(o), c = iI(e.url), [l, u] = X(0), d = Y(null), f = Ql(), p = VF(), m = eu(), h = s.duration > 0 ? s.duration : e.durationSeconds ?? 0, g = h > 0 ? Math.min(1, s.currentTime / h) : 0, _ = G(() => {
|
|
20430
20430
|
s.isPlaying ? s.pause() : (p === "transcript" && !m.hasReported(e.url) && (m.markReported(e.url), f.onVoiceNotePlayed({ durationSeconds: e.durationSeconds })), h > 0 && s.currentTime >= h && s.seek(0), s.play());
|
|
20431
20431
|
}, [
|
|
20432
20432
|
s,
|
|
@@ -20472,7 +20472,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20472
20472
|
e.preventDefault(), s.seek(Math.min(h, Math.max(0, n)));
|
|
20473
20473
|
}, [h, s]);
|
|
20474
20474
|
return /* @__PURE__ */ $("div", {
|
|
20475
|
-
className: B("group/voice flex h-[58px] min-w-0 items-center gap-2 p-3",
|
|
20475
|
+
className: B("group/voice flex h-[58px] min-w-0 items-center gap-2 p-3", di, t ? "bg-f1-background-tertiary" : "bg-f1-background", n, r, i),
|
|
20476
20476
|
"data-testid": "chat-voice-attachment",
|
|
20477
20477
|
children: [
|
|
20478
20478
|
/* @__PURE__ */ Q("audio", {
|
|
@@ -20541,11 +20541,11 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20541
20541
|
surfaceClassName: i
|
|
20542
20542
|
})
|
|
20543
20543
|
}), sI = ({ message: e, isMine: t, isFirstOfRun: n = !0, isLastOfRun: r = !0, hasAvatar: i = !1 }) => {
|
|
20544
|
-
let a = R(), o = Ql(), { noteOpener: s } = TF(), c = e.attachments, l = J(() => hF(c ?? []), [c]), u = J(() => gF(l), [l]), d =
|
|
20544
|
+
let a = R(), o = Ql(), { noteOpener: s } = TF(), c = e.attachments, l = J(() => hF(c ?? []), [c]), u = J(() => gF(l), [l]), d = Ei(u, "transcript", { sender: t ? void 0 : e.author.name }), f = (t) => {
|
|
20545
20545
|
s(e.id), d.openFile(t);
|
|
20546
|
-
}, p = pF(c), m =
|
|
20546
|
+
}, p = pF(c), m = Ta(p ? p.thumbnailUrl ?? p.url : void 0, p) ?? void 0;
|
|
20547
20547
|
if (!c || c.length === 0) return null;
|
|
20548
|
-
let h = VP(t), g = "bg-f1-background-tertiary", { images: _, videos: v, documents: y, audios: b, files: x, locations: S, voices: C, cards: w } = l, T = p ?
|
|
20548
|
+
let h = VP(t), g = "bg-f1-background-tertiary", { images: _, videos: v, documents: y, audios: b, files: x, locations: S, voices: C, cards: w } = l, T = p ? ka(m?.width, m?.height) : null, E = fj(e) || e.replyTo || e.deleted ? null : y.length > 0 || x.length > 0 || C.length > 0 || b.length > 0 || w.length > 0 ? "below" : S.length > 0 ? "location" : v.length > 0 ? "video" : _.length > 0 ? "image" : null, D = _F(y.length, x.length), O = {
|
|
20549
20549
|
counts: {
|
|
20550
20550
|
images: _.length,
|
|
20551
20551
|
videos: v.length,
|
|
@@ -20568,9 +20568,9 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20568
20568
|
children: [
|
|
20569
20569
|
_.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
20570
20570
|
style: T ? { width: T.width } : void 0,
|
|
20571
|
-
className: B("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", T ? "max-w-full" :
|
|
20571
|
+
className: B("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", T ? "max-w-full" : di, Ur, k("images")),
|
|
20572
20572
|
"data-testid": "chat-image-album",
|
|
20573
|
-
children:
|
|
20573
|
+
children: $a(m ? [m] : _).map((t, n, r) => {
|
|
20574
20574
|
let i = _[t.index];
|
|
20575
20575
|
if (!i) return null;
|
|
20576
20576
|
let o = E === "image" && n === r.length - 1;
|
|
@@ -20584,7 +20584,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20584
20584
|
onOpen: () => f(i),
|
|
20585
20585
|
overlay: t.hiddenCount > 0 ? /* @__PURE__ */ Q("span", {
|
|
20586
20586
|
"aria-hidden": !0,
|
|
20587
|
-
className: B("pointer-events-none absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse",
|
|
20587
|
+
className: B("pointer-events-none absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse", Vi),
|
|
20588
20588
|
"data-testid": "chat-image-album-more",
|
|
20589
20589
|
children: `+${t.hiddenCount}`
|
|
20590
20590
|
}) : o ? /* @__PURE__ */ Q(YP, {
|
|
@@ -20641,19 +20641,19 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20641
20641
|
cornerClass: "rounded-xl",
|
|
20642
20642
|
onOpen: d.hasViewer ? () => f(e) : void 0
|
|
20643
20643
|
}, `${e.url}-${n}`)) : null, x.map((e, t) => {
|
|
20644
|
-
let n =
|
|
20645
|
-
return /* @__PURE__ */ Q(
|
|
20644
|
+
let n = Pr(e) ?? "";
|
|
20645
|
+
return /* @__PURE__ */ Q(Lo, {
|
|
20646
20646
|
file: {
|
|
20647
20647
|
...e,
|
|
20648
20648
|
mimeType: n
|
|
20649
20649
|
},
|
|
20650
|
-
icon: n === "application/zip" ?
|
|
20650
|
+
icon: n === "application/zip" ? Kr : void 0,
|
|
20651
20651
|
testId: "chat-file-tile",
|
|
20652
20652
|
action: {
|
|
20653
20653
|
label: a.t("chat.downloadNamedFile", { name: e.name }),
|
|
20654
|
-
icon:
|
|
20654
|
+
icon: Go,
|
|
20655
20655
|
onClick: () => {
|
|
20656
|
-
|
|
20656
|
+
uo(e.url, e.name), o.onAttachmentDownloaded({ kind: fF(e) });
|
|
20657
20657
|
}
|
|
20658
20658
|
}
|
|
20659
20659
|
}, `${e.url}-${t}`);
|
|
@@ -20689,7 +20689,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20689
20689
|
});
|
|
20690
20690
|
}, lI = ({ message: e, expanded: t, onOpen: n }) => {
|
|
20691
20691
|
let r = [`${R().chat.notSent} · ${TM(new Date(e.createdAt))}`, ...e.failureReason ? [e.failureReason] : []].join(" — ");
|
|
20692
|
-
return /* @__PURE__ */ Q(
|
|
20692
|
+
return /* @__PURE__ */ Q(Gn, {
|
|
20693
20693
|
variant: "ghost",
|
|
20694
20694
|
size: "sm",
|
|
20695
20695
|
mode: "only",
|
|
@@ -20702,7 +20702,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20702
20702
|
"data-testid": "chat-failed-indicator",
|
|
20703
20703
|
onClick: (e) => n(e.currentTarget),
|
|
20704
20704
|
children: /* @__PURE__ */ Q(W, {
|
|
20705
|
-
icon:
|
|
20705
|
+
icon: Wi,
|
|
20706
20706
|
size: "sm",
|
|
20707
20707
|
color: "critical-bold"
|
|
20708
20708
|
})
|
|
@@ -20736,7 +20736,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20736
20736
|
});
|
|
20737
20737
|
}, v = (t) => {
|
|
20738
20738
|
t.stopPropagation(), u(l + (s ? -1 : 1)), c(!s), a?.(e), s || g(e, p);
|
|
20739
|
-
}, y = d?.map((e) => e.name).join(", ") || "", b = /* @__PURE__ */ Q(
|
|
20739
|
+
}, y = d?.map((e) => e.name).join(", ") || "", b = /* @__PURE__ */ Q(Gn, {
|
|
20740
20740
|
ref: p,
|
|
20741
20741
|
variant: "outline",
|
|
20742
20742
|
size: "md",
|
|
@@ -20798,7 +20798,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20798
20798
|
variant: "ghost",
|
|
20799
20799
|
hideLabel: !0,
|
|
20800
20800
|
label: TM(new Date(e)),
|
|
20801
|
-
icon:
|
|
20801
|
+
icon: Ua
|
|
20802
20802
|
}) : null
|
|
20803
20803
|
});
|
|
20804
20804
|
}, vI = ({ icon: e, children: t, testId: n }) => /* @__PURE__ */ $("span", {
|
|
@@ -20811,7 +20811,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20811
20811
|
}), yI = ({ forwardedFrom: e }) => {
|
|
20812
20812
|
let t = R(), n = e.channelTitle ? t.t("chat.forwardedFrom", { channel: e.channelTitle }) : t.chat.forwarded;
|
|
20813
20813
|
return /* @__PURE__ */ Q(vI, {
|
|
20814
|
-
icon:
|
|
20814
|
+
icon: Ia,
|
|
20815
20815
|
testId: "chat-forwarded-tag",
|
|
20816
20816
|
children: n
|
|
20817
20817
|
});
|
|
@@ -20821,12 +20821,12 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20821
20821
|
let r = /* @__PURE__ */ new Date(), i = e.reminder ? new Date(e.reminder.remindAt) : null, a = i && i > r ? kN(i, r, { tomorrow: n.chat.remind.tomorrow }) : null, o = e.pinnedBy, s = e.pinnedAt ? o ? o.id === t ? n.chat.pinnedByYou : n.t("chat.pinnedBy", { name: o.name }) : n.chat.pinned : null;
|
|
20822
20822
|
return !s && !a && !e.forwardedFrom ? null : /* @__PURE__ */ $(Z, { children: [
|
|
20823
20823
|
s ? /* @__PURE__ */ Q(vI, {
|
|
20824
|
-
icon:
|
|
20824
|
+
icon: fa,
|
|
20825
20825
|
testId: "chat-pinned-tag",
|
|
20826
20826
|
children: s
|
|
20827
20827
|
}) : null,
|
|
20828
20828
|
a ? /* @__PURE__ */ Q(vI, {
|
|
20829
|
-
icon:
|
|
20829
|
+
icon: Ir,
|
|
20830
20830
|
testId: "chat-reminder-tag",
|
|
20831
20831
|
children: n.t("chat.remind.current", { when: a })
|
|
20832
20832
|
}) : null,
|
|
@@ -20936,7 +20936,7 @@ var HF = yu(() => import("./LocationMap-Ds0SgBMO.js")), UF = 3 / 2, WF = ({ lati
|
|
|
20936
20936
|
}) : null]
|
|
20937
20937
|
}) : null]
|
|
20938
20938
|
})]
|
|
20939
|
-
}) : null, /* @__PURE__ */ Q(
|
|
20939
|
+
}) : null, /* @__PURE__ */ Q(Bn, {
|
|
20940
20940
|
initial: !1,
|
|
20941
20941
|
children: y ? /* @__PURE__ */ $(V.div, {
|
|
20942
20942
|
className: "flex w-full gap-1.5 overflow-hidden",
|
|
@@ -21926,7 +21926,7 @@ var iR = ({ channel: e }) => {
|
|
|
21926
21926
|
return null;
|
|
21927
21927
|
}, cR = ({ visible: e, unreadCount: t, hasMoreNewer: n, transitionDuration: r, reducedMotion: i, onJumpToBottom: a }) => {
|
|
21928
21928
|
let o = R(), s = Ql(), c = Zl() === "community" ? t === 1 ? "chat.newPostsCount.one" : "chat.newPostsCount.other" : t === 1 ? "chat.unreadCount.one" : "chat.unreadCount.other", l = t > 0 ? o.t(c, { count: t }) : n ? o.chat.backToLatest : o.chat.scrollToBottom;
|
|
21929
|
-
return /* @__PURE__ */ Q(
|
|
21929
|
+
return /* @__PURE__ */ Q(Bn, { children: e ? /* @__PURE__ */ Q(V.div, {
|
|
21930
21930
|
"data-testid": "chat-jump-overlay",
|
|
21931
21931
|
className: "pointer-events-none absolute inset-x-0 flex justify-center",
|
|
21932
21932
|
style: { bottom: `calc(${KI} + 0.75rem)` },
|
|
@@ -21944,7 +21944,7 @@ var iR = ({ channel: e }) => {
|
|
|
21944
21944
|
},
|
|
21945
21945
|
transition: {
|
|
21946
21946
|
duration: r,
|
|
21947
|
-
ease:
|
|
21947
|
+
ease: ga
|
|
21948
21948
|
},
|
|
21949
21949
|
children: /* @__PURE__ */ Q(V.div, {
|
|
21950
21950
|
className: "pointer-events-auto",
|
|
@@ -21952,7 +21952,7 @@ var iR = ({ channel: e }) => {
|
|
|
21952
21952
|
animate: { scale: 1 },
|
|
21953
21953
|
transition: {
|
|
21954
21954
|
duration: r,
|
|
21955
|
-
ease:
|
|
21955
|
+
ease: ga
|
|
21956
21956
|
},
|
|
21957
21957
|
children: /* @__PURE__ */ Q(H, {
|
|
21958
21958
|
onClick: () => {
|
|
@@ -21967,7 +21967,7 @@ var iR = ({ channel: e }) => {
|
|
|
21967
21967
|
}) : null });
|
|
21968
21968
|
}, lR = bu(function({ atTop: e, viewportStore: t, rows: n, isCommunity: r, hasMoreOlder: i, loadingOlder: a, unreadCount: o, hasMoreNewer: s, reducedMotion: c, onJumpToBottom: l }) {
|
|
21969
21969
|
let u = R(), d = c ? 0 : .15, { scrolledUp: f, stickyIndex: p } = Eu(t.subscribe, t.get), m = p != null && !r ? sR(n, p) : null, h = f || s;
|
|
21970
|
-
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(
|
|
21970
|
+
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(Bn, { children: f && (!e || i || a) && m ? /* @__PURE__ */ Q(V.div, {
|
|
21971
21971
|
className: B("pointer-events-none absolute inset-x-0 flex justify-center", JI),
|
|
21972
21972
|
initial: {
|
|
21973
21973
|
opacity: 0,
|
|
@@ -22000,7 +22000,7 @@ var iR = ({ channel: e }) => {
|
|
|
22000
22000
|
onJumpToBottom: l
|
|
22001
22001
|
})] });
|
|
22002
22002
|
}), uR = gu(null), dR = uR.Provider, fR = ({ children: e }) => {
|
|
22003
|
-
let t = xu(uR), [n, r] =
|
|
22003
|
+
let t = xu(uR), [n, r] = ir({ threshold: .25 });
|
|
22004
22004
|
return K(function() {
|
|
22005
22005
|
t?.(r);
|
|
22006
22006
|
}, [r, t]), K(function() {
|
|
@@ -22256,7 +22256,7 @@ var iR = ({ channel: e }) => {
|
|
|
22256
22256
|
onJumpToBottom: Te
|
|
22257
22257
|
}) : null]
|
|
22258
22258
|
});
|
|
22259
|
-
}, _R = yu(() => import("./ChatPostComposerDialog-
|
|
22259
|
+
}, _R = yu(() => import("./ChatPostComposerDialog-Z8gG_J2L.js").then((e) => ({ default: e.ChatPostComposerDialog }))), vR = () => {
|
|
22260
22260
|
let e = R(), { createPost: t, composePost: n, searchMembers: r } = uu(), i = Ql(), [a, o] = X(!1);
|
|
22261
22261
|
return !t && !n ? null : /* @__PURE__ */ $("div", {
|
|
22262
22262
|
className: "pointer-events-none shrink-0 p-4 pt-0",
|
|
@@ -22398,7 +22398,7 @@ var iR = ({ channel: e }) => {
|
|
|
22398
22398
|
variant: "outline",
|
|
22399
22399
|
size: "sm",
|
|
22400
22400
|
label: e.chat.retry,
|
|
22401
|
-
icon:
|
|
22401
|
+
icon: Mr,
|
|
22402
22402
|
onClick: () => void t()
|
|
22403
22403
|
}) : null]
|
|
22404
22404
|
}) });
|
|
@@ -22419,10 +22419,10 @@ var iR = ({ channel: e }) => {
|
|
|
22419
22419
|
}), kR = ({ attachment: e, uploading: t, onRemove: n, onOpen: r }) => {
|
|
22420
22420
|
let i = R(), a = {
|
|
22421
22421
|
label: i.t("chat.removeNamedFile", { name: e.kind === "location" ? e.name ?? i.chat.location : e.kind === "voice" ? i.chat.voiceNote : e.name }),
|
|
22422
|
-
icon:
|
|
22422
|
+
icon: vr,
|
|
22423
22423
|
onClick: n
|
|
22424
22424
|
};
|
|
22425
|
-
return e.kind === "image" || e.kind === "file" ? /* @__PURE__ */ Q(
|
|
22425
|
+
return e.kind === "image" || e.kind === "file" ? /* @__PURE__ */ Q(jr, {
|
|
22426
22426
|
attachment: e,
|
|
22427
22427
|
status: t ? "uploading" : "ready",
|
|
22428
22428
|
removeLabel: a.label,
|
|
@@ -22485,7 +22485,7 @@ var iR = ({ channel: e }) => {
|
|
|
22485
22485
|
size: "md",
|
|
22486
22486
|
hideLabel: !0,
|
|
22487
22487
|
label: r.chat.attachFile,
|
|
22488
|
-
icon:
|
|
22488
|
+
icon: ra,
|
|
22489
22489
|
onClick: e,
|
|
22490
22490
|
disabled: !t
|
|
22491
22491
|
}), /* @__PURE__ */ $(fl, {
|
|
@@ -22499,7 +22499,7 @@ var iR = ({ channel: e }) => {
|
|
|
22499
22499
|
size: "md",
|
|
22500
22500
|
hideLabel: !0,
|
|
22501
22501
|
label: r.chat.addEmoji,
|
|
22502
|
-
icon:
|
|
22502
|
+
icon: ca,
|
|
22503
22503
|
pressed: i
|
|
22504
22504
|
})
|
|
22505
22505
|
}), /* @__PURE__ */ Q(cl, {
|
|
@@ -22539,7 +22539,7 @@ var iR = ({ channel: e }) => {
|
|
|
22539
22539
|
icon: r,
|
|
22540
22540
|
size: "xs",
|
|
22541
22541
|
color: "default"
|
|
22542
|
-
}) : null, /* @__PURE__ */ Q(
|
|
22542
|
+
}) : null, /* @__PURE__ */ Q(rr, {
|
|
22543
22543
|
className: "min-w-0 text-base",
|
|
22544
22544
|
lines: 1,
|
|
22545
22545
|
children: i
|
|
@@ -22553,7 +22553,7 @@ var iR = ({ channel: e }) => {
|
|
|
22553
22553
|
size: "sm",
|
|
22554
22554
|
hideLabel: !0,
|
|
22555
22555
|
label: n.chat.cancelEdit,
|
|
22556
|
-
icon:
|
|
22556
|
+
icon: vr,
|
|
22557
22557
|
onClick: t
|
|
22558
22558
|
})
|
|
22559
22559
|
})
|
|
@@ -22576,7 +22576,7 @@ var iR = ({ channel: e }) => {
|
|
|
22576
22576
|
}) : null,
|
|
22577
22577
|
/* @__PURE__ */ $("div", {
|
|
22578
22578
|
className: "min-w-0 flex-1 gap-0.5 p-1",
|
|
22579
|
-
children: [/* @__PURE__ */ Q(
|
|
22579
|
+
children: [/* @__PURE__ */ Q(rr, {
|
|
22580
22580
|
className: B("text-sm font-medium", BP(e.author)),
|
|
22581
22581
|
children: e.isMine ? n.chat.you : e.author.name
|
|
22582
22582
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -22585,7 +22585,7 @@ var iR = ({ channel: e }) => {
|
|
|
22585
22585
|
icon: r,
|
|
22586
22586
|
size: "xs",
|
|
22587
22587
|
color: "default"
|
|
22588
|
-
}) : null, /* @__PURE__ */ Q(
|
|
22588
|
+
}) : null, /* @__PURE__ */ Q(rr, {
|
|
22589
22589
|
className: "min-w-0 text-base",
|
|
22590
22590
|
lines: 1,
|
|
22591
22591
|
children: i
|
|
@@ -22599,7 +22599,7 @@ var iR = ({ channel: e }) => {
|
|
|
22599
22599
|
size: "sm",
|
|
22600
22600
|
hideLabel: !0,
|
|
22601
22601
|
label: n.chat.removeQuote,
|
|
22602
|
-
icon:
|
|
22602
|
+
icon: vr,
|
|
22603
22603
|
onClick: t
|
|
22604
22604
|
})
|
|
22605
22605
|
})
|
|
@@ -22749,7 +22749,7 @@ function qR({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
|
|
|
22749
22749
|
if (!g || !m) return null;
|
|
22750
22750
|
let e = i.current;
|
|
22751
22751
|
if (!e) return null;
|
|
22752
|
-
let t =
|
|
22752
|
+
let t = Pa(e, m.colonIndex);
|
|
22753
22753
|
return {
|
|
22754
22754
|
left: e.offsetLeft + t.left,
|
|
22755
22755
|
bottom: (e.offsetParent ? e.offsetParent.offsetHeight : 0) - (e.offsetTop + t.top)
|
|
@@ -22820,10 +22820,10 @@ function JR({ isOpen: e, results: t, selectedIndex: n, position: r, listboxId: i
|
|
|
22820
22820
|
})
|
|
22821
22821
|
}), /* @__PURE__ */ $("div", {
|
|
22822
22822
|
className: "flex min-w-0 flex-1 items-baseline gap-2",
|
|
22823
|
-
children: [/* @__PURE__ */ Q(
|
|
22823
|
+
children: [/* @__PURE__ */ Q(rr, {
|
|
22824
22824
|
className: "shrink-0 font-medium text-f1-foreground",
|
|
22825
22825
|
children: `:${e.id}:`
|
|
22826
|
-
}), /* @__PURE__ */ Q(
|
|
22826
|
+
}), /* @__PURE__ */ Q(rr, {
|
|
22827
22827
|
className: "text-sm text-f1-foreground-secondary",
|
|
22828
22828
|
children: e.name
|
|
22829
22829
|
})]
|
|
@@ -22978,7 +22978,7 @@ var YR = {
|
|
|
22978
22978
|
size: e.size,
|
|
22979
22979
|
mimeType: e.type
|
|
22980
22980
|
}, rz = (e, t) => e && t, iz = (e, { maxFileSizeBytes: t, maxFiles: n, attached: r, labels: i }) => {
|
|
22981
|
-
let a = t === void 0 ? [] : e.filter((e) => e.size > t), o = t !== void 0 && a.length > 0 ? i.fileTooLargeError.replace("{{maxFileSize}}",
|
|
22981
|
+
let a = t === void 0 ? [] : e.filter((e) => e.size > t), o = t !== void 0 && a.length > 0 ? i.fileTooLargeError.replace("{{maxFileSize}}", zi(t)) : null, s = e.filter((e) => !a.includes(e));
|
|
22982
22982
|
if (n === void 0 || r + s.length <= n) return {
|
|
22983
22983
|
tooLarge: a,
|
|
22984
22984
|
accepted: s,
|
|
@@ -22991,7 +22991,7 @@ var YR = {
|
|
|
22991
22991
|
error: o === null ? c : `${o}. ${c}`
|
|
22992
22992
|
};
|
|
22993
22993
|
}, az = () => {
|
|
22994
|
-
let e = R(), { sendMessage: t, editMessage: n, onInputActivity: r, stopTyping: i, uploadFiles: a, transcribe: o, maxFiles: s, maxFileSizeBytes: c, onFileTooLarge: l, maxMessageCharacters: u, channel: d, searchMembers: f, capabilities: p } = uu(), m = !!a && iN("canUpload", d.type, p), { target: h } = Mj(), { clearComposeTarget: g, registerComposerHandle: _ } = Nj(), v = ez(), { registerFileDropHandler: y } = Pj(), b = Ql(), { reducedMotion: x, composerVariant: S } = Jj(), C = !!x, w = Y(null), [T, E] = X([]), D = Y(null), O = Y(null), k = Y(/* @__PURE__ */ new Set()), A = Y(0), { error: j, show: M, clear: N } =
|
|
22994
|
+
let e = R(), { sendMessage: t, editMessage: n, onInputActivity: r, stopTyping: i, uploadFiles: a, transcribe: o, maxFiles: s, maxFileSizeBytes: c, onFileTooLarge: l, maxMessageCharacters: u, channel: d, searchMembers: f, capabilities: p } = uu(), m = !!a && iN("canUpload", d.type, p), { target: h } = Mj(), { clearComposeTarget: g, registerComposerHandle: _ } = Nj(), v = ez(), { registerFileDropHandler: y } = Pj(), b = Ql(), { reducedMotion: x, composerVariant: S } = Jj(), C = !!x, w = Y(null), [T, E] = X([]), D = Y(null), O = Y(null), k = Y(/* @__PURE__ */ new Set()), A = Y(0), { error: j, show: M, clear: N } = la(), P = h.kind === "edit", F = h.kind === "edit" ? h.message : null, I = h.kind === "reply" ? h.message : null, L = m, [ee, te] = X(!1), ne = Y({ channelId: d.id });
|
|
22995
22995
|
ne.current = {
|
|
22996
22996
|
channelId: d.id,
|
|
22997
22997
|
replyToId: I?.id
|
|
@@ -23071,21 +23071,21 @@ var YR = {
|
|
|
23071
23071
|
let e = [];
|
|
23072
23072
|
for (let { status: t, attachment: n } of de) if (t === "ready") {
|
|
23073
23073
|
if (n.kind === "image") {
|
|
23074
|
-
let t =
|
|
23074
|
+
let t = Jr(e.length, n.url);
|
|
23075
23075
|
e.push({
|
|
23076
23076
|
file: n,
|
|
23077
|
-
item:
|
|
23077
|
+
item: Hr(n, t)
|
|
23078
23078
|
});
|
|
23079
23079
|
} else if (n.kind === "file") {
|
|
23080
|
-
let t =
|
|
23080
|
+
let t = Jr(e.length, n.url);
|
|
23081
23081
|
e.push({
|
|
23082
23082
|
file: n,
|
|
23083
|
-
item:
|
|
23083
|
+
item: Ar(n, t, { inferImages: !1 })
|
|
23084
23084
|
});
|
|
23085
23085
|
}
|
|
23086
23086
|
}
|
|
23087
23087
|
return e;
|
|
23088
|
-
}, [de]), pe =
|
|
23088
|
+
}, [de]), pe = Ei(fe, "composer"), { closeDraft: me } = TF(), he = Y(0);
|
|
23089
23089
|
K(() => {
|
|
23090
23090
|
he.current = T.length;
|
|
23091
23091
|
}, [T]);
|
|
@@ -23250,8 +23250,8 @@ var YR = {
|
|
|
23250
23250
|
});
|
|
23251
23251
|
}, [b]), Ae = {
|
|
23252
23252
|
duration: C ? 0 : .18,
|
|
23253
|
-
ease:
|
|
23254
|
-
}, je = /* @__PURE__ */ Q(
|
|
23253
|
+
ease: ga
|
|
23254
|
+
}, je = /* @__PURE__ */ Q(Bn, {
|
|
23255
23255
|
initial: !1,
|
|
23256
23256
|
mode: "popLayout",
|
|
23257
23257
|
children: P && F ? /* @__PURE__ */ Q(V.div, {
|
|
@@ -23295,7 +23295,7 @@ var YR = {
|
|
|
23295
23295
|
}, "reply-chip") : null
|
|
23296
23296
|
}), Me = (e) => fe.some((t) => t.file === e && t.item !== null) ? () => {
|
|
23297
23297
|
pe.openFile(e);
|
|
23298
|
-
} : void 0, Ne = /* @__PURE__ */ Q(
|
|
23298
|
+
} : void 0, Ne = /* @__PURE__ */ Q(Fi, {
|
|
23299
23299
|
items: de.map((e) => ({
|
|
23300
23300
|
id: e.id,
|
|
23301
23301
|
content: /* @__PURE__ */ Q(AR, {
|
|
@@ -23475,7 +23475,7 @@ var pz = 1e3, mz = (e, t, n) => {
|
|
|
23475
23475
|
let e = az(), { channel: t, messages: n } = uu(), r = n.length > 0;
|
|
23476
23476
|
return /* @__PURE__ */ $("div", {
|
|
23477
23477
|
className: "pointer-events-none relative shrink-0 px-4 pt-0",
|
|
23478
|
-
children: [/* @__PURE__ */ Q(
|
|
23478
|
+
children: [/* @__PURE__ */ Q(Bo, { tone: "page" }), /* @__PURE__ */ $("div", {
|
|
23479
23479
|
className: "pointer-events-auto relative mx-auto w-full max-w-content",
|
|
23480
23480
|
children: [/* @__PURE__ */ Q(hp, { ...e }), /* @__PURE__ */ Q(vz, { reducedMotion: !!e.reducedMotion }, `${t.id}:${r}`)]
|
|
23481
23481
|
})]
|
|
@@ -23545,7 +23545,7 @@ var pz = 1e3, mz = (e, t, n) => {
|
|
|
23545
23545
|
_ ? /* @__PURE__ */ Q(Ij, {}) : null,
|
|
23546
23546
|
/* @__PURE__ */ $("div", {
|
|
23547
23547
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
23548
|
-
children: [/* @__PURE__ */ Q(
|
|
23548
|
+
children: [/* @__PURE__ */ Q(Bn, { children: h ? /* @__PURE__ */ Q(V.div, {
|
|
23549
23549
|
ref: x,
|
|
23550
23550
|
"data-testid": "chat-notice",
|
|
23551
23551
|
className: B("pointer-events-none absolute inset-x-0 top-0 z-30 pt-3", YI),
|
|
@@ -23864,7 +23864,7 @@ var Az = Sn(En("F0ENPSButton", kz)), jz = {
|
|
|
23864
23864
|
children: e
|
|
23865
23865
|
}) : null
|
|
23866
23866
|
});
|
|
23867
|
-
}), { Skeleton: ze.Skeleton }), Wz =
|
|
23867
|
+
}), { Skeleton: ze.Skeleton }), Wz = na(_u(function({ canBeBlurred: e, ...t }, n) {
|
|
23868
23868
|
let r = {
|
|
23869
23869
|
...t,
|
|
23870
23870
|
header: {
|
|
@@ -23892,7 +23892,7 @@ var Az = Sn(En("F0ENPSButton", kz)), jz = {
|
|
|
23892
23892
|
...e.chart
|
|
23893
23893
|
})
|
|
23894
23894
|
});
|
|
23895
|
-
}), qz = En("BarChartWidget",
|
|
23895
|
+
}), qz = En("BarChartWidget", na(Kz, Uz.Skeleton)), Jz = na(_u(function(e, t) {
|
|
23896
23896
|
return /* @__PURE__ */ Q(Uz, {
|
|
23897
23897
|
ref: t,
|
|
23898
23898
|
...e,
|
|
@@ -23901,19 +23901,19 @@ var Az = Sn(En("F0ENPSButton", kz)), jz = {
|
|
|
23901
23901
|
...e.chart
|
|
23902
23902
|
})
|
|
23903
23903
|
});
|
|
23904
|
-
}), Uz.Skeleton), Yz = En("LineChartWidget", Jz), Xz =
|
|
23904
|
+
}), Uz.Skeleton), Yz = En("LineChartWidget", Jz), Xz = na(_u(function(e, t) {
|
|
23905
23905
|
return /* @__PURE__ */ Q(Uz, {
|
|
23906
23906
|
ref: t,
|
|
23907
23907
|
...e,
|
|
23908
23908
|
chart: /* @__PURE__ */ Q(T, { ...e.chart })
|
|
23909
23909
|
});
|
|
23910
|
-
}), Uz.Skeleton), Zz = En("PieChartWidget", Xz), Qz =
|
|
23910
|
+
}), Uz.Skeleton), Zz = En("PieChartWidget", Xz), Qz = na(_u(function(e, t) {
|
|
23911
23911
|
return /* @__PURE__ */ Q(Uz, {
|
|
23912
23912
|
ref: t,
|
|
23913
23913
|
...e,
|
|
23914
23914
|
chart: null
|
|
23915
23915
|
});
|
|
23916
|
-
}), Uz.Skeleton), $z = En("SummariesWidget", Qz), eB =
|
|
23916
|
+
}), Uz.Skeleton), $z = En("SummariesWidget", Qz), eB = na(_u(function(e, t) {
|
|
23917
23917
|
return /* @__PURE__ */ Q(Uz, {
|
|
23918
23918
|
ref: t,
|
|
23919
23919
|
...e,
|
|
@@ -24211,13 +24211,13 @@ var Az = Sn(En("F0ENPSButton", kz)), jz = {
|
|
|
24211
24211
|
"bar-chart": "promote"
|
|
24212
24212
|
}, mB = _u(function({ title: e, content: t, buttonLabel: n, buttonIcon: r, buttonAction: i, type: a }, o) {
|
|
24213
24213
|
let s = uB[a], c = dB[a], l = fB[a], u = pB[a];
|
|
24214
|
-
return /* @__PURE__ */ $(
|
|
24214
|
+
return /* @__PURE__ */ $(yr, {
|
|
24215
24215
|
className: B("relative flex gap-4 overflow-hidden border-dashed", s),
|
|
24216
24216
|
ref: o,
|
|
24217
|
-
children: [/* @__PURE__ */ Q(
|
|
24217
|
+
children: [/* @__PURE__ */ Q(wr, {
|
|
24218
24218
|
className: "-mt-0.5",
|
|
24219
|
-
children: /* @__PURE__ */ Q(
|
|
24220
|
-
}), /* @__PURE__ */ $(
|
|
24219
|
+
children: /* @__PURE__ */ Q(Ga, { children: e })
|
|
24220
|
+
}), /* @__PURE__ */ $(wi, {
|
|
24221
24221
|
className: B("flex flex-col gap-4", c),
|
|
24222
24222
|
children: [/* @__PURE__ */ $("div", {
|
|
24223
24223
|
className: B("absolute -top-12 bottom-0 left-0 right-0 flex flex-col justify-end bg-gradient-to-b to-transparent opacity-30", l),
|
|
@@ -24247,7 +24247,7 @@ function gB(e, t) {
|
|
|
24247
24247
|
visibleItems: [],
|
|
24248
24248
|
overflowItems: []
|
|
24249
24249
|
});
|
|
24250
|
-
|
|
24250
|
+
Wn({
|
|
24251
24251
|
ref: n,
|
|
24252
24252
|
onResize: () => {
|
|
24253
24253
|
l();
|
|
@@ -24428,7 +24428,7 @@ function TB({ id: e, title: t, subtitle: n, avatars: r, remainingCount: i, withP
|
|
|
24428
24428
|
withEmoji: "emoji" in s && !!s.emoji,
|
|
24429
24429
|
withPointerCursor: a,
|
|
24430
24430
|
children: [
|
|
24431
|
-
"alert" in s && s.alert ? /* @__PURE__ */ Q(
|
|
24431
|
+
"alert" in s && s.alert ? /* @__PURE__ */ Q(sa, { type: s.alert }) : null,
|
|
24432
24432
|
"emoji" in s && s.emoji ? /* @__PURE__ */ Q(Is, { emoji: s.emoji }) : null,
|
|
24433
24433
|
/* @__PURE__ */ $("div", {
|
|
24434
24434
|
className: "flex-1",
|
|
@@ -24528,7 +24528,7 @@ function jB({ id: e, title: t, alert: n, rawTag: r, count: i, icon: a, rightIcon
|
|
|
24528
24528
|
children: [
|
|
24529
24529
|
n ? /* @__PURE__ */ Q(Gs, { ...n }) : null,
|
|
24530
24530
|
r ? /* @__PURE__ */ Q(Us, { ...r }) : null,
|
|
24531
|
-
i ? /* @__PURE__ */ Q(
|
|
24531
|
+
i ? /* @__PURE__ */ Q(ar, { value: i }) : null
|
|
24532
24532
|
]
|
|
24533
24533
|
})]
|
|
24534
24534
|
});
|
|
@@ -24600,7 +24600,7 @@ var IB = FB, LB = ({ title: e, info: t }) => /* @__PURE__ */ $("div", {
|
|
|
24600
24600
|
className: "flex items-center gap-1",
|
|
24601
24601
|
children: [/* @__PURE__ */ Q("div", { children: e }), n ? /* @__PURE__ */ Q("div", {
|
|
24602
24602
|
className: "flex h-4 w-4 items-center text-f1-foreground-tertiary hover:cursor-help",
|
|
24603
|
-
children: /* @__PURE__ */ Q(
|
|
24603
|
+
children: /* @__PURE__ */ Q(Vn, {
|
|
24604
24604
|
label: n.label,
|
|
24605
24605
|
description: n.description,
|
|
24606
24606
|
children: /* @__PURE__ */ Q(W, {
|
|
@@ -24692,7 +24692,7 @@ var BB = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, VB = {
|
|
|
24692
24692
|
color: VB.empty
|
|
24693
24693
|
}), c;
|
|
24694
24694
|
}, GB = ({ data: e = [], remainingMinutes: t, trackedMinutes: n = 0 }) => {
|
|
24695
|
-
let r = e.find((e) => e.variant === "clocked-in")?.from, i = e.at(-1), a = r ?
|
|
24695
|
+
let r = e.find((e) => e.variant === "clocked-in")?.from, i = e.at(-1), a = r ? Fo(r) : HB, o = t === void 0 || t > 0 ? HB : i ? Fo(i.to) : HB, s = i?.variant === "break" ? i?.to.getTime() - i?.from.getTime() || 0 : n * 60 * 1e3, c = Math.floor(s / 36e5), l = Math.floor(s % 36e5 / 6e4);
|
|
24696
24696
|
return {
|
|
24697
24697
|
primaryLabel: a,
|
|
24698
24698
|
secondaryLabel: o,
|
|
@@ -24704,7 +24704,7 @@ var BB = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, VB = {
|
|
|
24704
24704
|
}, JB = (e) => {
|
|
24705
24705
|
if (!e.from || !e.to) return;
|
|
24706
24706
|
let t = Math.round((e.to.getTime() - e.from.getTime()) / 6e4);
|
|
24707
|
-
return [`${
|
|
24707
|
+
return [`${Fo(e.from)} – ${Fo(e.to)} (${qB(t)})`, e.label].filter(Boolean).join(KB);
|
|
24708
24708
|
};
|
|
24709
24709
|
function YB({ segments: e }) {
|
|
24710
24710
|
let t = e.map(JB);
|
|
@@ -24762,7 +24762,7 @@ function XB({ data: e = [], trackedMinutes: t = 0, remainingMinutes: n, variant:
|
|
|
24762
24762
|
dataKey: "value",
|
|
24763
24763
|
strokeWidth: 0,
|
|
24764
24764
|
isAnimationActive: !1,
|
|
24765
|
-
children: i.map((e, t) => /* @__PURE__ */ Q(
|
|
24765
|
+
children: i.map((e, t) => /* @__PURE__ */ Q(Ha, {
|
|
24766
24766
|
fill: e.color,
|
|
24767
24767
|
role: "presentation",
|
|
24768
24768
|
"aria-label": `${e.value} minutes`
|
|
@@ -24922,7 +24922,7 @@ function sV({ locations: e, locationId: t, onChangeLocationId: n, label: r, sear
|
|
|
24922
24922
|
onChange: n,
|
|
24923
24923
|
label: r,
|
|
24924
24924
|
searchPlaceholder: i,
|
|
24925
|
-
fieldIcon:
|
|
24925
|
+
fieldIcon: Na,
|
|
24926
24926
|
required: a,
|
|
24927
24927
|
disabled: o
|
|
24928
24928
|
});
|
|
@@ -24942,7 +24942,7 @@ function lV({ projects: e, projectId: t, onChangeProjectId: n, label: r, searchP
|
|
|
24942
24942
|
onChange: n,
|
|
24943
24943
|
label: r,
|
|
24944
24944
|
searchPlaceholder: i,
|
|
24945
|
-
fieldIcon:
|
|
24945
|
+
fieldIcon: pi,
|
|
24946
24946
|
required: a,
|
|
24947
24947
|
disabled: o
|
|
24948
24948
|
});
|
|
@@ -24962,7 +24962,7 @@ function uV({ text: e, placeholder: t, icon: n, onClick: r }) {
|
|
|
24962
24962
|
className: B("font-medium", e ? "text-f1-foreground" : "text-f1-foreground-secondary"),
|
|
24963
24963
|
children: e ?? t
|
|
24964
24964
|
}),
|
|
24965
|
-
/* @__PURE__ */ Q(W, { icon:
|
|
24965
|
+
/* @__PURE__ */ Q(W, { icon: qi })
|
|
24966
24966
|
]
|
|
24967
24967
|
});
|
|
24968
24968
|
}
|
|
@@ -25124,7 +25124,7 @@ function mV({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
25124
25124
|
onClick: l,
|
|
25125
25125
|
label: r.clockOut,
|
|
25126
25126
|
variant: "outline",
|
|
25127
|
-
icon:
|
|
25127
|
+
icon: so
|
|
25128
25128
|
})] }) : null,
|
|
25129
25129
|
A === "break" ? de === "clock-out" ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(U, {
|
|
25130
25130
|
onClick: c,
|
|
@@ -25135,12 +25135,12 @@ function mV({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
25135
25135
|
}), /* @__PURE__ */ Q(U, {
|
|
25136
25136
|
onClick: l,
|
|
25137
25137
|
label: r.clockOut,
|
|
25138
|
-
icon:
|
|
25138
|
+
icon: so
|
|
25139
25139
|
})] }) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(U, {
|
|
25140
25140
|
onClick: l,
|
|
25141
25141
|
label: r.clockOut,
|
|
25142
25142
|
variant: "outline",
|
|
25143
|
-
icon:
|
|
25143
|
+
icon: so,
|
|
25144
25144
|
hideLabel: !0
|
|
25145
25145
|
}), /* @__PURE__ */ Q(U, {
|
|
25146
25146
|
onClick: c,
|
|
@@ -25187,7 +25187,7 @@ function mV({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
25187
25187
|
"aria-hidden": !0,
|
|
25188
25188
|
className: "shrink-0 text-f1-foreground-secondary",
|
|
25189
25189
|
children: "·"
|
|
25190
|
-
}), /* @__PURE__ */ Q(
|
|
25190
|
+
}), /* @__PURE__ */ Q(rr, {
|
|
25191
25191
|
tag: "span",
|
|
25192
25192
|
className: "min-w-0 flex-1 text-f1-foreground-secondary",
|
|
25193
25193
|
children: E
|
|
@@ -25266,9 +25266,9 @@ function mV({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
25266
25266
|
//#endregion
|
|
25267
25267
|
//#region src/domains/employee-lifecycle/profile/Profile/TasksList/TaskItem/TaskItem.tsx
|
|
25268
25268
|
var hV = {
|
|
25269
|
-
done:
|
|
25270
|
-
"in-progress":
|
|
25271
|
-
todo:
|
|
25269
|
+
done: Xo,
|
|
25270
|
+
"in-progress": Wr,
|
|
25271
|
+
todo: is
|
|
25272
25272
|
}, gV = {
|
|
25273
25273
|
done: "text-f1-icon-success",
|
|
25274
25274
|
"in-progress": "text-f1-icon-info",
|
|
@@ -25291,7 +25291,7 @@ function _V({ task: e, status: t, onClick: n, hideIcon: r = !1 }) {
|
|
|
25291
25291
|
} : void 0,
|
|
25292
25292
|
rawTag: e.badge && !e.badge.isPastDue ? {
|
|
25293
25293
|
text: e.badge.text,
|
|
25294
|
-
icon:
|
|
25294
|
+
icon: ss
|
|
25295
25295
|
} : void 0,
|
|
25296
25296
|
count: e.counter,
|
|
25297
25297
|
onClick: i
|
|
@@ -25411,7 +25411,7 @@ var yV = [
|
|
|
25411
25411
|
return K(() => {
|
|
25412
25412
|
n.current = e;
|
|
25413
25413
|
}), r;
|
|
25414
|
-
}, VV = ({ children: e }) => /* @__PURE__ */ Q(
|
|
25414
|
+
}, VV = ({ children: e }) => /* @__PURE__ */ Q(Bn, {
|
|
25415
25415
|
initial: !1,
|
|
25416
25416
|
children: e
|
|
25417
25417
|
}), HV = ({ className: e, animated: t = !0, children: n }) => {
|
|
@@ -25467,7 +25467,7 @@ function WV() {
|
|
|
25467
25467
|
variant: "ghost",
|
|
25468
25468
|
onClick: () => t(),
|
|
25469
25469
|
label: "Open main menu",
|
|
25470
|
-
icon:
|
|
25470
|
+
icon: Vr,
|
|
25471
25471
|
hideLabel: !0
|
|
25472
25472
|
}) : null] });
|
|
25473
25473
|
}
|
|
@@ -25665,7 +25665,7 @@ function dH({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
25665
25665
|
}) : null
|
|
25666
25666
|
] }), T = !!(p || _), E = () => {
|
|
25667
25667
|
g?.(), _?.();
|
|
25668
|
-
}, D = B("flex w-full items-center gap-3 rounded-md p-2 text-left", T && "cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-f1-special-ring", v ? "group-hover/row:bg-f1-background-tertiary group-has-[:focus-visible]/row:bg-f1-background-tertiary" : T && "hover:bg-f1-background-tertiary", b && "bg-f1-background-tertiary"), O = p ? /* @__PURE__ */ Q(
|
|
25668
|
+
}, D = B("flex w-full items-center gap-3 rounded-md p-2 text-left", T && "cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-f1-special-ring", v ? "group-hover/row:bg-f1-background-tertiary group-has-[:focus-visible]/row:bg-f1-background-tertiary" : T && "hover:bg-f1-background-tertiary", b && "bg-f1-background-tertiary"), O = p ? /* @__PURE__ */ Q(Un, {
|
|
25669
25669
|
href: p,
|
|
25670
25670
|
"data-list-row": "",
|
|
25671
25671
|
onClick: E,
|
|
@@ -25699,7 +25699,7 @@ function dH({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
25699
25699
|
size: y ? "md" : "sm",
|
|
25700
25700
|
onClick: e.onClick
|
|
25701
25701
|
});
|
|
25702
|
-
return e.items ? /* @__PURE__ */ Q(
|
|
25702
|
+
return e.items ? /* @__PURE__ */ Q(es, {
|
|
25703
25703
|
items: e.items,
|
|
25704
25704
|
align: "end",
|
|
25705
25705
|
open: b === e.label,
|
|
@@ -25781,7 +25781,7 @@ var fH = du.createContext(void 0), pH = ({ tracking: e, children: t }) => /* @__
|
|
|
25781
25781
|
module: t.module,
|
|
25782
25782
|
size: n
|
|
25783
25783
|
}) };
|
|
25784
|
-
if (e === "alert" && t.alert) return { left: /* @__PURE__ */ Q(
|
|
25784
|
+
if (e === "alert" && t.alert) return { left: /* @__PURE__ */ Q(sa, {
|
|
25785
25785
|
type: t.alert,
|
|
25786
25786
|
size: n
|
|
25787
25787
|
}) };
|
|
@@ -25801,7 +25801,7 @@ var fH = du.createContext(void 0), pH = ({ tracking: e, children: t }) => /* @__
|
|
|
25801
25801
|
avatarSize: r ? NH : n
|
|
25802
25802
|
} : {};
|
|
25803
25803
|
}, FH = (e, t, n, r) => {
|
|
25804
|
-
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(
|
|
25804
|
+
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(ar, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(fi, {
|
|
25805
25805
|
date: b(t.date),
|
|
25806
25806
|
size: r ? "lg" : "md"
|
|
25807
25807
|
}) : void 0 : e.endsWith("-list") ? t.avatars && t.avatars.length > 0 ? /* @__PURE__ */ Q(Ps, {
|
|
@@ -25870,7 +25870,7 @@ function zH({ params: e, ctx: t }) {
|
|
|
25870
25870
|
},
|
|
25871
25871
|
onClick: s.length > 0 ? () => u(e) : o.onClick
|
|
25872
25872
|
});
|
|
25873
|
-
return c ? /* @__PURE__ */ Q(
|
|
25873
|
+
return c ? /* @__PURE__ */ Q(Vn, {
|
|
25874
25874
|
label: c,
|
|
25875
25875
|
children: /* @__PURE__ */ Q("span", {
|
|
25876
25876
|
className: "block",
|
|
@@ -25896,7 +25896,7 @@ function zH({ params: e, ctx: t }) {
|
|
|
25896
25896
|
}
|
|
25897
25897
|
})
|
|
25898
25898
|
}) : null,
|
|
25899
|
-
/* @__PURE__ */ Q(
|
|
25899
|
+
/* @__PURE__ */ Q(Mi, {
|
|
25900
25900
|
isOpen: l,
|
|
25901
25901
|
onClose: d,
|
|
25902
25902
|
title: s?.title,
|
|
@@ -26110,7 +26110,7 @@ var VH = 3, HH = "slot-skeleton-item", UH = [
|
|
|
26110
26110
|
hover: !1,
|
|
26111
26111
|
focus: !1
|
|
26112
26112
|
}), u = c.hover || c.focus || r, d = t.text && !r ? t.text : void 0, f = eU[t.tone ?? "neutral"];
|
|
26113
|
-
return /* @__PURE__ */ Q(
|
|
26113
|
+
return /* @__PURE__ */ Q(Vn, {
|
|
26114
26114
|
label: t.label,
|
|
26115
26115
|
instant: !0,
|
|
26116
26116
|
children: /* @__PURE__ */ $(V.div, {
|
|
@@ -26144,7 +26144,7 @@ var VH = 3, HH = "slot-skeleton-item", UH = [
|
|
|
26144
26144
|
text: d,
|
|
26145
26145
|
ticking: !!t.ticking
|
|
26146
26146
|
}) : null,
|
|
26147
|
-
/* @__PURE__ */ Q(
|
|
26147
|
+
/* @__PURE__ */ Q(Gn, {
|
|
26148
26148
|
type: "button",
|
|
26149
26149
|
variant: "ghost",
|
|
26150
26150
|
size: "lg",
|
|
@@ -26296,7 +26296,7 @@ function dU({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
26296
26296
|
size: "sm",
|
|
26297
26297
|
...e
|
|
26298
26298
|
}, t)),
|
|
26299
|
-
s ? /* @__PURE__ */ Q(
|
|
26299
|
+
s ? /* @__PURE__ */ Q(Za, {
|
|
26300
26300
|
items: s.options.map((e) => ({
|
|
26301
26301
|
label: e.label,
|
|
26302
26302
|
...e.value === E ? { icon: Wc } : e.icon ? { icon: e.icon } : {},
|
|
@@ -26429,7 +26429,7 @@ function vU({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
26429
26429
|
let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } = pU(), { formRef: g, getValues: _, trigger: v } = l(), [y, b] = X(r ?? {});
|
|
26430
26430
|
return K(() => {
|
|
26431
26431
|
e && b(r ?? {});
|
|
26432
|
-
}, [e, r]), /* @__PURE__ */ Q(
|
|
26432
|
+
}, [e, r]), /* @__PURE__ */ Q(Mi, {
|
|
26433
26433
|
isOpen: e,
|
|
26434
26434
|
onClose: t,
|
|
26435
26435
|
title: c ?? d.widgets.editParamsTitle,
|
|
@@ -26511,7 +26511,7 @@ var yU = (e) => {
|
|
|
26511
26511
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
26512
26512
|
}, OU = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
26513
26513
|
className: "text-center text-f1-foreground-secondary",
|
|
26514
|
-
children: DU(e).map((e, t) => /* @__PURE__ */ Q(pu, { children: "href" in e ? /* @__PURE__ */ Q(
|
|
26514
|
+
children: DU(e).map((e, t) => /* @__PURE__ */ Q(pu, { children: "href" in e ? /* @__PURE__ */ Q(Wa, {
|
|
26515
26515
|
href: e.href,
|
|
26516
26516
|
children: e.label
|
|
26517
26517
|
}) : e.text }, t))
|
|
@@ -26728,7 +26728,7 @@ var WU = ({ transform: e }) => ({
|
|
|
26728
26728
|
width: "100%"
|
|
26729
26729
|
} : { display: e ? void 0 : "contents" },
|
|
26730
26730
|
children: r
|
|
26731
|
-
}), $U = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(
|
|
26731
|
+
}), $U = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(Vn, {
|
|
26732
26732
|
label: t,
|
|
26733
26733
|
children: /* @__PURE__ */ Q("button", {
|
|
26734
26734
|
type: "button",
|
|
@@ -26791,11 +26791,11 @@ function eW({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26791
26791
|
onClick: () => le(e.id)
|
|
26792
26792
|
}), e.paramsSchema && y && t.push({
|
|
26793
26793
|
label: w ?? O.widgets.editParams,
|
|
26794
|
-
icon:
|
|
26794
|
+
icon: So,
|
|
26795
26795
|
onClick: () => oe(e.id)
|
|
26796
26796
|
}), A && !e.locked && d && (t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
26797
26797
|
label: C ?? O.widgets.removeWidget,
|
|
26798
|
-
icon:
|
|
26798
|
+
icon: yi,
|
|
26799
26799
|
critical: !0,
|
|
26800
26800
|
onClick: () => d(e.id)
|
|
26801
26801
|
})), t;
|
|
@@ -26834,7 +26834,7 @@ function eW({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26834
26834
|
className: "relative",
|
|
26835
26835
|
children: [o, /* @__PURE__ */ Q("div", {
|
|
26836
26836
|
className: "absolute right-3 top-3 z-10",
|
|
26837
|
-
children: /* @__PURE__ */ Q(
|
|
26837
|
+
children: /* @__PURE__ */ Q(es, {
|
|
26838
26838
|
items: r,
|
|
26839
26839
|
align: "end",
|
|
26840
26840
|
children: /* @__PURE__ */ Q(U, {
|
|
@@ -26958,14 +26958,14 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26958
26958
|
K(() => {
|
|
26959
26959
|
r && s(!0);
|
|
26960
26960
|
}, [r]);
|
|
26961
|
-
let l = o && !a, u = PV(e, l ? 180 : 0), d = e ? u || t ? "panel" : "retracting" : "column", f = d === "panel", p = !f || t, m =
|
|
26961
|
+
let l = o && !a, u = PV(e, l ? 180 : 0), d = e ? u || t ? "panel" : "retracting" : "column", f = d === "panel", p = !f || t, m = ao(i), h = c(m, (e) => `${e}px`);
|
|
26962
26962
|
return q(() => {
|
|
26963
26963
|
if (!r) return;
|
|
26964
26964
|
if (!l) {
|
|
26965
26965
|
m.jump(i);
|
|
26966
26966
|
return;
|
|
26967
26967
|
}
|
|
26968
|
-
let e =
|
|
26968
|
+
let e = No(m, i, MV);
|
|
26969
26969
|
return () => e.stop();
|
|
26970
26970
|
}, [
|
|
26971
26971
|
r,
|
|
@@ -27112,9 +27112,9 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27112
27112
|
children: /* @__PURE__ */ Q(WV, {})
|
|
27113
27113
|
}), /* @__PURE__ */ $("div", {
|
|
27114
27114
|
className: "flex flex-row items-center gap-2",
|
|
27115
|
-
children: [ge && r.length > 0 && !_e ? /* @__PURE__ */ Q(
|
|
27115
|
+
children: [ge && r.length > 0 && !_e ? /* @__PURE__ */ Q(Vn, {
|
|
27116
27116
|
label: be,
|
|
27117
|
-
children: /* @__PURE__ */ Q(
|
|
27117
|
+
children: /* @__PURE__ */ Q(Gn, {
|
|
27118
27118
|
variant: "ghost",
|
|
27119
27119
|
size: "md",
|
|
27120
27120
|
compact: !0,
|
|
@@ -27122,7 +27122,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27122
27122
|
"aria-label": be,
|
|
27123
27123
|
children: /* @__PURE__ */ Q(Ml, { isExpanded: !ve })
|
|
27124
27124
|
})
|
|
27125
|
-
}) : null, O ? null : /* @__PURE__ */ Q(
|
|
27125
|
+
}) : null, O ? null : /* @__PURE__ */ Q(ro, {
|
|
27126
27126
|
tooltip: E,
|
|
27127
27127
|
autoOpen: D
|
|
27128
27128
|
})]
|
|
@@ -27172,7 +27172,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27172
27172
|
children: Me
|
|
27173
27173
|
})
|
|
27174
27174
|
}),
|
|
27175
|
-
/* @__PURE__ */ Q(
|
|
27175
|
+
/* @__PURE__ */ Q(Bn, { children: Se || !xe || !ve ? null : /* @__PURE__ */ $(V.aside, {
|
|
27176
27176
|
ref: me.ref,
|
|
27177
27177
|
className: B("-m-1 -ml-3 flex min-h-0 flex-col items-end gap-2 overflow-y-auto p-1 pl-3", "pointer-events-none z-20", oW),
|
|
27178
27178
|
style: {
|
|
@@ -27196,7 +27196,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27196
27196
|
onOpen: We,
|
|
27197
27197
|
onCancelOpen: Ve,
|
|
27198
27198
|
onClose: () => ee(null)
|
|
27199
|
-
}, e.id)), ue("right") && g ? /* @__PURE__ */ Q(
|
|
27199
|
+
}, e.id)), ue("right") && g ? /* @__PURE__ */ Q(Vn, {
|
|
27200
27200
|
label: A.widgets.addWidget,
|
|
27201
27201
|
children: /* @__PURE__ */ Q(V.button, {
|
|
27202
27202
|
type: "button",
|
|
@@ -27273,9 +27273,9 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27273
27273
|
tracking: v,
|
|
27274
27274
|
children: Ge
|
|
27275
27275
|
});
|
|
27276
|
-
}), pW = (e) => e ?
|
|
27276
|
+
}), pW = (e) => e ? li[e] : void 0, mW = (e) => e.type === "icon" ? {
|
|
27277
27277
|
...e,
|
|
27278
|
-
icon: pW(e.icon) ??
|
|
27278
|
+
icon: pW(e.icon) ?? dr
|
|
27279
27279
|
} : e, hW = (e, t, n) => ({
|
|
27280
27280
|
...e.type === "navigate" && wU(e.href) ? { href: e.href } : {},
|
|
27281
27281
|
onClick: () => n(e, t)
|
|
@@ -27585,7 +27585,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27585
27585
|
content: e
|
|
27586
27586
|
});
|
|
27587
27587
|
let n = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", eG, Dn());
|
|
27588
|
-
return t.href ? /* @__PURE__ */ Q(
|
|
27588
|
+
return t.href ? /* @__PURE__ */ Q(Un, {
|
|
27589
27589
|
href: t.href,
|
|
27590
27590
|
onClick: t.onClick,
|
|
27591
27591
|
className: n,
|
|
@@ -27872,7 +27872,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27872
27872
|
let n = Math.max(1, Math.floor(t / 160)), r = Math.ceil(Math.max(1, e) / n);
|
|
27873
27873
|
return Math.ceil(Math.max(1, e) / r);
|
|
27874
27874
|
}, PG = ({ stats: e }) => {
|
|
27875
|
-
let t = Y(null), { width: n } =
|
|
27875
|
+
let t = Y(null), { width: n } = Wn({
|
|
27876
27876
|
ref: t,
|
|
27877
27877
|
box: "border-box"
|
|
27878
27878
|
}), r = NG(e.length, n || 712);
|
|
@@ -27936,7 +27936,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27936
27936
|
content: e.value ?? ""
|
|
27937
27937
|
})
|
|
27938
27938
|
}, t);
|
|
27939
|
-
case "link": return e.url && EU(e.url) ? /* @__PURE__ */ Q(
|
|
27939
|
+
case "link": return e.url && EU(e.url) ? /* @__PURE__ */ Q(Wa, {
|
|
27940
27940
|
href: e.url,
|
|
27941
27941
|
children: zG(e)
|
|
27942
27942
|
}, t) : zG(e);
|
|
@@ -28261,7 +28261,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28261
28261
|
});
|
|
28262
28262
|
}, kK = ({ items: e, onAction: t }) => {
|
|
28263
28263
|
let n = R();
|
|
28264
|
-
return /* @__PURE__ */ Q(
|
|
28264
|
+
return /* @__PURE__ */ Q(Za, {
|
|
28265
28265
|
items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
|
|
28266
28266
|
label: e.label,
|
|
28267
28267
|
icon: pW(e.icon),
|
|
@@ -28290,7 +28290,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28290
28290
|
} }), n = c + i.length;
|
|
28291
28291
|
}
|
|
28292
28292
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
28293
|
-
}, LK = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: DU(e).map((e, t) => /* @__PURE__ */ Q(pu, { children: "href" in e ? /* @__PURE__ */ Q(
|
|
28293
|
+
}, LK = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: DU(e).map((e, t) => /* @__PURE__ */ Q(pu, { children: "href" in e ? /* @__PURE__ */ Q(Wa, {
|
|
28294
28294
|
href: e.href,
|
|
28295
28295
|
children: e.label
|
|
28296
28296
|
}) : /* @__PURE__ */ Q(PK, { text: e.text }) }, t)) }), RK = ({ text: e }) => {
|
|
@@ -28438,7 +28438,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28438
28438
|
}), d = ZK(e.actions, (e) => {
|
|
28439
28439
|
o(), u(e.action, {});
|
|
28440
28440
|
});
|
|
28441
|
-
return /* @__PURE__ */ Q(
|
|
28441
|
+
return /* @__PURE__ */ Q(Mi, {
|
|
28442
28442
|
isOpen: a,
|
|
28443
28443
|
onClose: o,
|
|
28444
28444
|
position: n === "drawer" ? "right" : "center",
|
|
@@ -28527,7 +28527,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28527
28527
|
initial: !1,
|
|
28528
28528
|
animate: o,
|
|
28529
28529
|
transition: s ? NV(EV, n) : bV
|
|
28530
|
-
}), /* @__PURE__ */ Q(
|
|
28530
|
+
}), /* @__PURE__ */ Q(Bn, {
|
|
28531
28531
|
initial: !1,
|
|
28532
28532
|
children: /* @__PURE__ */ Q(dq, { children: t ? /* @__PURE__ */ Q(fq, { clockIn: e }) : /* @__PURE__ */ Q(pq, {
|
|
28533
28533
|
clockIn: e,
|
|
@@ -28540,7 +28540,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28540
28540
|
duration: .16,
|
|
28541
28541
|
ease: "easeOut"
|
|
28542
28542
|
}, dq = ({ children: e }) => {
|
|
28543
|
-
let t = Qn(), n =
|
|
28543
|
+
let t = Qn(), n = nr();
|
|
28544
28544
|
return /* @__PURE__ */ Q(V.div, {
|
|
28545
28545
|
className: B(!n && "pointer-events-none absolute right-0 top-0"),
|
|
28546
28546
|
initial: { opacity: 0 },
|
|
@@ -28595,10 +28595,10 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28595
28595
|
ticking: !!a,
|
|
28596
28596
|
className: "text-base font-medium text-f1-foreground"
|
|
28597
28597
|
})]
|
|
28598
|
-
}), /* @__PURE__ */ Q(
|
|
28598
|
+
}), /* @__PURE__ */ Q(Vn, {
|
|
28599
28599
|
label: s.label,
|
|
28600
28600
|
instant: !0,
|
|
28601
|
-
children: /* @__PURE__ */ Q(
|
|
28601
|
+
children: /* @__PURE__ */ Q(Gn, {
|
|
28602
28602
|
ref: p,
|
|
28603
28603
|
type: "button",
|
|
28604
28604
|
variant: "ghost",
|
|
@@ -28610,11 +28610,11 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28610
28610
|
children: /* @__PURE__ */ Q(W, {
|
|
28611
28611
|
size: "lg",
|
|
28612
28612
|
color: oq,
|
|
28613
|
-
icon: t || g ? s.icon : o ??
|
|
28613
|
+
icon: t || g ? s.icon : o ?? Li
|
|
28614
28614
|
})
|
|
28615
28615
|
})
|
|
28616
28616
|
})]
|
|
28617
|
-
}), /* @__PURE__ */ Q(
|
|
28617
|
+
}), /* @__PURE__ */ Q(Bn, { children: t ? /* @__PURE__ */ Q(V.div, {
|
|
28618
28618
|
id: h,
|
|
28619
28619
|
role: "group",
|
|
28620
28620
|
"aria-label": l,
|
|
@@ -28667,9 +28667,9 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28667
28667
|
}, t)
|
|
28668
28668
|
}), xq = ({ collapsed: e, onToggle: t }) => {
|
|
28669
28669
|
let n = R(), r = e ? n.actions.expand : n.actions.collapse;
|
|
28670
|
-
return /* @__PURE__ */ Q(
|
|
28670
|
+
return /* @__PURE__ */ Q(Vn, {
|
|
28671
28671
|
label: r,
|
|
28672
|
-
children: /* @__PURE__ */ Q(
|
|
28672
|
+
children: /* @__PURE__ */ Q(Gn, {
|
|
28673
28673
|
variant: "ghost",
|
|
28674
28674
|
size: "md",
|
|
28675
28675
|
compact: !0,
|
|
@@ -28711,7 +28711,7 @@ var tW = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28711
28711
|
"aria-hidden": !0,
|
|
28712
28712
|
className: "flex h-4 w-10 items-center justify-center",
|
|
28713
28713
|
children: /* @__PURE__ */ Q("span", { className: "h-px w-6 bg-f1-border-secondary" })
|
|
28714
|
-
}) : null, /* @__PURE__ */ Q(
|
|
28714
|
+
}) : null, /* @__PURE__ */ Q(Vn, {
|
|
28715
28715
|
label: o.widgets.addWidget,
|
|
28716
28716
|
instant: !0,
|
|
28717
28717
|
children: /* @__PURE__ */ Q("button", {
|
|
@@ -29236,7 +29236,7 @@ function uJ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
29236
29236
|
...r.length ? [{
|
|
29237
29237
|
id: "recommended",
|
|
29238
29238
|
label: d.widgets.recommended,
|
|
29239
|
-
icon:
|
|
29239
|
+
icon: Io,
|
|
29240
29240
|
items: r
|
|
29241
29241
|
}] : [],
|
|
29242
29242
|
...(i ?? []).map((e) => ({
|
|
@@ -29260,7 +29260,7 @@ function uJ({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
29260
29260
|
e && (x("pick"), C(!1), E(null));
|
|
29261
29261
|
}, [e]), K(() => {
|
|
29262
29262
|
b === "configure" && !I && x("pick");
|
|
29263
|
-
}, [b, I]), /* @__PURE__ */ Q(
|
|
29263
|
+
}, [b, I]), /* @__PURE__ */ Q(Mi, {
|
|
29264
29264
|
isOpen: e,
|
|
29265
29265
|
onClose: t,
|
|
29266
29266
|
title: L && P ? d.widgets.configureWidget.replace("{{title}}", P.title) : u,
|
|
@@ -29635,16 +29635,16 @@ var WJ = () => {
|
|
|
29635
29635
|
"sm",
|
|
29636
29636
|
"md",
|
|
29637
29637
|
"md"
|
|
29638
|
-
], XJ =
|
|
29638
|
+
], XJ = na(JJ, () => /* @__PURE__ */ Q(os, { children: /* @__PURE__ */ Q(JJ, { children: YJ.map((e, t) => /* @__PURE__ */ Q(ze.Skeleton, { height: e }, t)) }) })), ZJ = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
29639
29639
|
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)]",
|
|
29640
29640
|
children: e
|
|
29641
|
-
}), QJ =
|
|
29641
|
+
}), QJ = na(_u(function({ children: e }, t) {
|
|
29642
29642
|
return /* @__PURE__ */ Q(gl, {
|
|
29643
29643
|
ref: t,
|
|
29644
29644
|
showBar: !1,
|
|
29645
29645
|
children: /* @__PURE__ */ Q(ZJ, { children: e })
|
|
29646
29646
|
});
|
|
29647
|
-
}), () => /* @__PURE__ */ Q(
|
|
29647
|
+
}), () => /* @__PURE__ */ Q(os, {
|
|
29648
29648
|
orientation: "horizontal",
|
|
29649
29649
|
children: /* @__PURE__ */ $(ZJ, { children: [
|
|
29650
29650
|
/* @__PURE__ */ Q(ze.Skeleton, {}),
|
|
@@ -29684,4 +29684,4 @@ var tY = Sn(En("WidgetEmptyState", eY)), nY = ({ identifier: e, allowedRoutes: t
|
|
|
29684
29684
|
type: "layout"
|
|
29685
29685
|
}, gl));
|
|
29686
29686
|
//#endregion
|
|
29687
|
-
export { tJ as AGENTIC_HOME_SPEC_VERSION, d as AUTO_PER_PAGE_MAX, ln as AUTO_PER_PAGE_MIN_RESERVED_ROWS, hh as ActivityItemList, mh as ActivityItemListSkeleton, od as AiPromotionChat, sd as AiPromotionChatProvider, Gw as ApplicationFrame, _e as AreaChart, nB as AreaChartWidget, Hz as AutoGrid, _s as Badge, m as BarChart, rB as BarChartWidget, ph as BaseActivityItemList, ut as BaseBanner, xh as BaseCelebration, Rh as BaseCommunityPost,
|
|
29687
|
+
export { tJ as AGENTIC_HOME_SPEC_VERSION, d as AUTO_PER_PAGE_MAX, ln as AUTO_PER_PAGE_MIN_RESERVED_ROWS, hh as ActivityItemList, mh as ActivityItemListSkeleton, od as AiPromotionChat, sd as AiPromotionChatProvider, Gw as ApplicationFrame, _e as AreaChart, nB as AreaChartWidget, Hz as AutoGrid, _s as Badge, m as BarChart, rB as BarChartWidget, ph as BaseActivityItemList, ut as BaseBanner, xh as BaseCelebration, Rh as BaseCommunityPost, Di as BaseTabs, xa as BreadcrumbSelect, fT as Breadcrumbs, Nh as CalendarEvent, vB as CalendarEventList, Je as CardSelectableContainer, Lt as Carousel, f as CategoryBarChart, zB as CategoryBarSection, Ch as Celebration, Sh as CelebrationSkeleton, hB as ChartWidgetEmptyState, Vc as Chip, mV as ClockInControls, Xt as CoachmarkProvider, re as ComboChart, Bh as CommunityPost, Yh as CommunityPostCard, Xh as CommunityPostCardSkeleton, zh as CommunityPostSkeleton, sO as CompanySelector, ar as Counter, VH as DEFAULT_EXPECTED_ITEMS_COUNT, XJ as Dashboard, rT as DaytimePage, Yo as DetailsItem, _r as DetailsItemsList, nn as Dialog, Za as Dropdown, MH as EVENT_LIST_GAP, Pm as EntitySelect, St as F0ActionBar, Zq as F0AgenticHome, $q as F0AgenticHomeBlock, de as F0AiBanner, zd as F0AiCallout, Ms as F0AvatarColor, ms as F0AvatarColorList, ws as F0AvatarModule, ic as F0ButtonToggle, qd as F0Callout, pr as F0CardHorizontal, pr as F0CardRow, Fp as F0CarouselDialog, Cz as F0Chat, uM as F0ChatHistoryLimitCard, Xl as F0ChatProvider, JA as F0CommandPaletteProvider, eg as F0CommunityPostsCarousel, hp as F0Composer, of as F0Confetti, Az as F0ENPSButton, gd as F0EmojiPicker, go as F0FileItem, Pe as F0FormEditableTable, He as F0LocationInput, Ul as F0Map, Dl as F0MapControls, Kl as F0MapList, ql as F0MapSidebar, Ll as F0MapSidebarToggle, Bl as F0MapSkeleton, uw as F0Meeting, Of as F0MeetingCard, Sg as F0MeetingProvider, KC as F0MeetingRoom, dw as F0MeetingSlot, lw as F0MeetingSurface, mn as F0NotesTextEditor, Ue as F0NotesTextEditorSkeleton, fe as F0NumberInput, j as F0NumberInputInline, ri as F0PersonCard, gt as F0PhoneInput, Sk as F0PrimarySidebar, Uc as F0ProgressSeries, Nf as F0PulseDot, Mp as F0Resizable, Fe as F0ResourceHeader, Fe as ResourceHeader, Gi as F0RichTextDisplay, _t as F0RichTextEditor, Dc as F0SearchInput, Tk as F0SecondarySidebar, Lp as F0SegmentedBar, Zr as F0SegmentedControl, Jp as F0SwipeDeck, mt as F0TableOfContent, rh as F0TemplateTextInput, _ as F0TextAreaInput, oe as F0TextAreaInputInline, Va as F0TextInput, ee as F0TextInputInline, om as F0Timeline, im as F0VersionHistory, aM as F0_CHAT_HEADER_TITLE_SELECTOR, ej as F0_CHAT_MESSAGES_TAB_ID, Cc as F1SearchBox, L as FILE_TYPES, to as FileItem, wh as HighlightBanner, HV as HomeSlotItem, VV as HomeSlotItems, CB as IndicatorsList, Qr as Input, Nt as Item, Be as ItemSectionHeader, tj as LATEST, vH as LIST_COMPACT_AFTER, AH as LIST_MORE_BUTTON_CLASS, bt as LineChart, iB as LineChartWidget, ww as MeetingNotes, pw as MeetingPanelContent, Cw as MeetingParticipants, hw as MeetingRoomChat, kC as MeetingSidePanel, Jv as MeetingSurfaceProvider, vw as MeetingTranscript, wO as Menu, Vo as MobileDropdown, fW as NewHomeLayout, un as NotesTextEditor, me as NotesTextEditorSkeleton, yn as NumberInput, RT as OmniButton, zk as OneApprovalHistory, xc as OneCalendar, Ft as OneDataCollection, Ce as OneDateNavigator, E as OneEmptyState, ag as OneListItem, ig as OneListItemSkeleton, I as OnePagination, cg as OnePersonListItem, nY as OneRestrictComponent, BT as Page, PT as PageHeader, pT as PageHeaderNavigationContext, mT as PageHeaderNavigationProvider, lr as PageNavigation, r as PieChart, aB as PieChartWidget, $t as PrivateBox, vt as ProgressBarChart, eJ as RECOMMENDED_AGENTIC_HOME_RULES, jl as RECOMMENDED_MAX_MARKERS, F as RadarChart, Dh as Reactions, mi as RichTextDisplay, P as RichTextEditor, OH as SLOT_ROW_BLEED, HH as SLOT_SKELETON_ITEM_TESTID, rY as ScrollArea, Ck as SearchBar, et as SectionHeader, Pc as Select, zn as Shortcut, Ok as Sidebar, aD as SidebarChatBlankState, pD as SidebarChatItem, sD as SidebarChatItemSkeleton, UD as SidebarChatList, lD as SidebarChatListSkeleton, XT as SidebarChatProvider, lE as SidebarCollapsibleSection, pO as SidebarFooter, hO as SidebarHeader, DO as SidebarPanelHeader, EE as SidebarTabPanel, _E as SidebarTabPanelSearch, jk as SidebarTabs, fO as SidebarUserMenu, dU as SlotWidget, uU as SlotWidgetContent, qs as Spinner, Vz as Split, Bz as Stack, sB as SummariesWidget, Ac as Switch, Ri as Tabs, Nr as TabsSkeleton, vV as TasksList, w as Textarea, Er as ToggleGroup, xr as ToggleGroupItem, Vn as Tooltip, Hn as TooltipGroup, RB as TwoColumnsList, ae as UPLOAD_INPUT_ID, te as VerticalBarChart, oB as VerticalBarChartWidget, cm as VirtualList, jc as WeekStartDay, Si as Weekdays, $J as Widget, EB as WidgetAvatarsListItem, uJ as WidgetCatalog, tY as WidgetEmptyState, xB as WidgetHighlightButton, PB as WidgetInboxList, kB as WidgetInboxListItem, qV as WidgetSection, IB as WidgetSimpleList, MB as WidgetSimpleListItem, QJ as WidgetStrip, en as actionBarStatuses, _d as aiCalloutStatuses, Af as attendeesDisplays, lv as buildTiles, Ve as buttonToggleColors, Pt as buttonToggleSizes, Jt as buttonToggleVariants, jh as calendarEventVariants, sc as chipVariants, Vu as coachmarks, DA as commandActionRisks, Jh as communityPostCardVariants, gp as composerVariants, Jd as confettiPalette, TS as createMeetingSignalStore, zl as defaultMapStyle, ZH as defaultSlotRenderers, XH as defaultSlotSkeleton, Ku as defineStepByStepCoachmarkGuidance, Ye as downloadAsCSV, qk as downloadAsExcel, YA as f0ChatSenderColors, cd as f0EmojiPickerSizes, Ma as f0FileItemSizes, Al as f0MapMarkerVariants, Hl as f0MapStyles, vv as f0MeetingConnectionQualities, Sv as f0MeetingCoreActionIds, gv as f0MeetingDisconnectReasons, _v as f0MeetingPermissions, mv as f0MeetingPresences, hv as f0MeetingStatuses, yv as f0MeetingSurfaceDestinations, bv as f0MeetingSurfaceModes, pv as f0MeetingTrackKinds, Fu as f0ProgressSeriesColors, Pu as f0ProgressSeriesSizes, xv as f0WindowCorners, SH as fromParams, Qe as generateCSVContent, ve as getAutoPerPageMinHeight, dc as getGranularityDefinition, yc as getGranularityDefinitions, Rc as getGranularitySimpleDefinition, Il as googleMapStyles, kl as googlePinlessMapStyles, Fc as granularityDefinitions, LH as heldDialogActions, bH as homeSlot, Ai as isPossiblePhoneValue, $A as isPost, XA as isSystemMessage, QA as isUserMessage, Lr as isValidPhoneValue, hS as layoutGrid, p as listIconColors, jH as listMoreButtonClass, xH as listSlot, zm as locationInputSizes, Bm as locationParts, px as matchDevice, kf as meetingStates, Ns as modules, Av as nearestCorner, tg as oneListItemRowClassName, Vm as phoneInputSizes, kv as placementFromRect, ht as predefinedPresets, Pf as pulseDotVariants, EH as railActionTones, gc as rangeSeparator, sx as readMeetingMediaPreferences, vS as reorderForSpeakers, _p as resizableDirections, rS as resolveAutoFocus, kc as resolveGranularityDefinition, Ov as resolvePlacement, _H as resolveSlotRenderer, CH as resolveWidgetHeader, o_ as sanitizeMeetingReaction, Vk as seedFromStorage, Me as selectSizes, le as selectVariants, jv as settlePlacement, kH as slotRowBleed, mS as solveGrid, yS as solveSpotlight, em as swipeDirections, fv as tileAspectRatio, sv as tileKey, cx as updateMeetingMediaPreferences, $u as useAiPromotionChat, KA as useCommandPalette, gh as useCompactOnScroll, rf as useConfetti, ne as useDataCollectionData, Hk as useDataCollectionItemNavigation, xn as useDataCollectionSource, Yt as useExportAction, uu as useF0Chat, wg as useF0Meeting, Eg as useF0MeetingRoster, Tg as useF0MeetingStable, Cg as useHasF0Meeting, yt as useInfiniteScrollPagination, BV as useIsBulkChange, lx as useMeetingMediaPreferences, kS as useMeetingSignal, AS as useMeetingSpeakers, Yv as useMeetingSurface, Xv as useMeetingSurfaceOptional, gT as usePageHeaderItemNavigation, hT as usePageHeaderNavigation, Or as useSidePanel, Pl as useSidebar, eE as useSidebarChatActions, $T as useSidebarChats, $p as useSwipeDeck, Fg as useTrackBinding, qe as useWidgetIsWide, Tw as viewportRect, DH as widgetChrome, TH as widgetParamsAreComplete, wH as widgetTitle };
|