@factorialco/f0-react 16.9.0 → 16.11.0
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-CHD3Iy6h.js → ArchiveThumbnail-DJweQgX7.js} +1 -1
- package/dist/{ArchiveViewer-BruLPfRd.js → ArchiveViewer-Km1TKgFb.js} +2 -2
- package/dist/{ChatPostComposerDialog-D2VInjpJ.js → ChatPostComposerDialog-CCC7YKUD.js} +2 -2
- package/dist/{CoachmarkProvider-BkKNhwDS.js → CoachmarkProvider-BcEZ_QWn.js} +14459 -14455
- package/dist/{CodeThumbnail-DPdOdeGw.js → CodeThumbnail-Chb0ieho.js} +1 -1
- package/dist/{CodeViewer-Md1vIG7A.js → CodeViewer-WLo5D_RK.js} +6 -6
- package/dist/{DocumentToolbar-DZKEtgXN.js → DocumentToolbar-lmyD37ld.js} +2 -2
- package/dist/{DocxViewer-DfzXVrsy.js → DocxViewer-BlqUv7RG.js} +1 -1
- package/dist/{F0AiProcessingOverlay-Kv1fBtEQ.js → F0AiProcessingOverlay-N5Ksi59G.js} +1493 -1493
- package/dist/{F0Alert-CPw8WeK2.js → F0Alert-E_q63x7K.js} +1 -1
- package/dist/F0AudioPlayer-BJB9yshW.js +2 -0
- package/dist/{F0CanvasPanel-CHlrtxyn.js → F0CanvasPanel-BA3Mt1E-.js} +6386 -6386
- package/dist/{F0DocumentViewer-DAmgyUac.js → F0DocumentViewer-Ci5emCop.js} +2 -2
- package/dist/{F0DocumentViewer-DPPUxead.js → F0DocumentViewer-pjbU0u6F.js} +1 -1
- package/dist/{F0Map-BqlTQf2y.js → F0Map-DoaIix0D.js} +11 -11
- package/dist/{F0Select-BysweEOJ.js → F0Select-L8ZodaA4.js} +3 -0
- package/dist/{F0VideoPlayer-C4ntJknK.js → F0VideoPlayer-JnUz6Unm.js} +17 -17
- package/dist/F0VideoPlayer-Wq4GqCKm.js +1 -0
- package/dist/{HtmlViewer-BtPzkwnP.js → HtmlViewer-Ia6kpATq.js} +4 -4
- package/dist/{Map-C30TPih9.js → Map-CKsBbgc9.js} +3 -3
- package/dist/{PdfThumbnail-BEZgcOCH.js → PdfThumbnail-BFjLupts.js} +1 -1
- package/dist/{PdfViewer-BB7mpQE1.js → PdfViewer-DbIa5mSo.js} +5 -5
- package/dist/{SheetViewer-7Dbh6Qlw.js → SheetViewer-CrbAJuUQ.js} +2 -2
- package/dist/{TextViewer-DhU8VF7y.js → TextViewer-kmTbiEeQ.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +2 -2
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.js +408 -408
- package/dist/f0.d.ts +5 -3
- package/dist/f0.js +1490 -1489
- package/dist/{highlight-D_yybAIe.js → highlight-BmsUBNJ7.js} +1 -1
- package/dist/{maplibre-CRK6U5yl.js → maplibre-B7l-aZmn.js} +1 -1
- package/dist/{pdfWorker-DM-jcBYr.js → pdfWorker-CR7OMtno.js} +1 -1
- package/dist/{types-kaUL7GRh.d.ts → types-BsDbQl1T.d.ts} +5 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-DBErWDAZ.js +0 -2
- package/dist/F0VideoPlayer-BNMgdgRq.js +0 -1
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, $t as r, Ar as i, At as a, B as o, Br as s, Bt as c, C as l, Ci as u, Cr as d, Ct as f, D as p, Dr as m, Dt as h, E as g, Er as _, Et as v, F as y, Fn as b, Fr as x, Ft as S, G as C, Gr as w, H as T, Hr as E, I as D, In as O, Ir as k, It as A, J as j, K as M, Kr as N, Kt as P, L as F, Ln as I, Lr as L, Mn as ee, Mr as te, Mt as ne, N as re, Nn as ie, Nr as ae, Or as oe, P as se, Pn as ce, Pr as le, Q as ue, Qn as de, Qr as fe, R as pe, Rn as me, Rr as he, Rt as ge, S as _e, Sn as R, Sr as ve, St as ye, T as be, Tr as xe, Tt as Se, U as Ce, Ur as we, V as Te, Vr as Ee, W as De, Wr as Oe, X as ke, Xn as Ae, Xr as je, Xt as Me, Y as Ne, Yn as Pe, Yr as Fe, Z as Ie, Zn as Le, Zr as Re, Zt as ze, _ as Be, _i as Ve, _n as He, _r as Ue, ai as We, an as Ge, ar as Ke, at as qe, b as Je, bi as Ye, bn as Xe, br as Ze, ci as Qe, cr as $e, ct as et, d as tt, dn as nt, dt as rt, ei as it, et as at, fi as ot, fn as st, g as ct, gi as lt, gn as ut, gr as dt, h as ft, hi as pt, hn as mt, ii as ht, in as gt, ir as _t, it as vt, jr as yt, jt as bt, kr as xt, kt as St, li as Ct, lr as wt, lt as Tt, mi as Et, mn as Dt, n as Ot, ni as kt, nt as At, oi as jt, or as Mt, ot as Nt, p as Pt, pi as Ft, pn as It, pt as Lt, q as Rt, qr as zt, r as Bt, ri as Vt, rn as Ht, rr as Ut, rt as Wt, s as Gt, si as Kt, sr as qt, st as Jt, t as Yt, ti as Xt, tr 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, xr as fn, y as pn, yi as mn, yn as hn, yr as gn, z as _n, zr as vn } from "./CoachmarkProvider-
|
|
2
|
+
import { $ as t, $n as n, $t as r, Ar as i, At as a, B as o, Br as s, Bt as c, C as l, Ci as u, Cr as d, Ct as f, D as p, Dr as m, Dt as h, E as g, Er as _, Et as v, F as y, Fn as b, Fr as x, Ft as S, G as C, Gr as w, H as T, Hr as E, I as D, In as O, Ir as k, It as A, J as j, K as M, Kr as N, Kt as P, L as F, Ln as I, Lr as L, Mn as ee, Mr as te, Mt as ne, N as re, Nn as ie, Nr as ae, Or as oe, P as se, Pn as ce, Pr as le, Q as ue, Qn as de, Qr as fe, R as pe, Rn as me, Rr as he, Rt as ge, S as _e, Sn as R, Sr as ve, St as ye, T as be, Tr as xe, Tt as Se, U as Ce, Ur as we, V as Te, Vr as Ee, W as De, Wr as Oe, X as ke, Xn as Ae, Xr as je, Xt as Me, Y as Ne, Yn as Pe, Yr as Fe, Z as Ie, Zn as Le, Zr as Re, Zt as ze, _ as Be, _i as Ve, _n as He, _r as Ue, ai as We, an as Ge, ar as Ke, at as qe, b as Je, bi as Ye, bn as Xe, br as Ze, ci as Qe, cr as $e, ct as et, d as tt, dn as nt, dt as rt, ei as it, et as at, fi as ot, fn as st, g as ct, gi as lt, gn as ut, gr as dt, h as ft, hi as pt, hn as mt, ii as ht, in as gt, ir as _t, it as vt, jr as yt, jt as bt, kr as xt, kt as St, li as Ct, lr as wt, lt as Tt, mi as Et, mn as Dt, n as Ot, ni as kt, nt as At, oi as jt, or as Mt, ot as Nt, p as Pt, pi as Ft, pn as It, pt as Lt, q as Rt, qr as zt, r as Bt, ri as Vt, rn as Ht, rr as Ut, rt as Wt, s as Gt, si as Kt, sr as qt, st as Jt, t as Yt, ti as Xt, tr 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, xr as fn, y as pn, yi as mn, yn as hn, yr as gn, z as _n, zr as vn } from "./CoachmarkProvider-BcEZ_QWn.js";
|
|
3
3
|
import { a as yn, c as bn, d as xn, i as Sn, l as Cn, r as z } from "./i18n-provider-C-057er8.js";
|
|
4
4
|
import { n as wn, t as B } from "./skeleton-C__vPA8D.js";
|
|
5
5
|
import { L as V, R as Tn, a as En, i as Dn, o as On, r as kn, t as An } from "./tooltip-NXXT56H4.js";
|
|
6
6
|
import { C as jn, D as Mn, E as Nn, G as Pn, I as Fn, K as In, L as Ln, O as Rn, R as zn, T as Bn, U as Vn, V as Hn, W as Un, X as Wn, Y as Gn, _ as Kn, c as qn, d as Jn, f as Yn, h as Xn, k as Zn, l as Qn, m as $n, n as er, o as tr, p as nr, r as rr, t as H, v as ir, w as ar, x as or, y as sr, z as cr } from "./F0Button-CfK_6Dfx.js";
|
|
7
|
-
import { $ as lr, $
|
|
7
|
+
import { $ as lr, $c as ur, $t as dr, A as fr, Ac as pr, Ai as mr, An as hr, Ao as gr, As as _r, Bc as vr, Bs as yr, Bt as br, Ci as xr, Cn as Sr, Cs as Cr, Ct as wr, D as Tr, Dc as Er, Di as Dr, Dn as Or, Do as kr, E as Ar, Ec as jr, Ei as Mr, Eo as Nr, Es as Pr, Et as Fr, Fi as Ir, Fo as Lr, Ft as Rr, G as zr, Gc as Br, Gi as Vr, Gt as Hr, Hc as Ur, Ho as Wr, Hs as Gr, Ht as Kr, I as qr, Io as Jr, J as Yr, Jc as Xr, Jo as Zr, Jr as Qr, K as $r, Kc as ei, Ki as ti, Ko as ni, Kt as ri, L as ii, Ls as ai, Lt as oi, Mc as si, Mi as ci, Mo as li, Ms as ui, Mt as di, Ns as fi, Nt as pi, O as mi, Oi as hi, On as gi, Oo as _i, Pn as vi, Ps as yi, Pt as bi, Q as xi, Qa as Si, Qc as Ci, Qo as wi, Qt as Ti, Rc as Ei, Rs as Di, Rt as Oi, S as ki, Sc as Ai, Sl as ji, Sn as Mi, Ss as Ni, St as Pi, T as Fi, Tc as Ii, Ti as Li, Tl as Ri, To as zi, Ts as Bi, U as Vi, Uc as Hi, Ui, Uo as Wi, Us as Gi, Vc as Ki, Vi as qi, Vo as Ji, Vt as Yi, W as Xi, Wi as Zi, Wo as Qi, Ws as $i, Wt as ea, Xc as ta, Xo as na, Xs as ra, Y as ia, Ya as aa, Yi as oa, Yt as sa, Zc as ca, Zs as la, Zt as ua, _ as da, _c as fa, _i as pa, _n as ma, _o as ha, _t as ga, a as _a, ac as va, ai as ya, al as ba, as as xa, at as Sa, b as Ca, bi as wa, bl as Ta, bo as Ea, bt as Da, c as Oa, cc as ka, cl as Aa, cn as ja, cs as Ma, ct as Na, d as Pa, dc as Fa, dl as Ia, ds as La, dt as Ra, ec as za, en as Ba, et as Va, f as Ha, ft as Ua, g as Wa, gc as Ga, gi as Ka, gn as qa, go as Ja, gt as Ya, h as Xa, hi as Za, hl as Qa, hn as $a, ht as eo, ic as to, ii as no, in as ro, ir as io, it as ao, jc as oo, ji as so, jo as co, k as lo, kc as uo, ki as fo, kn as po, ko as mo, ks as ho, l as go, lc as _o, ll as vo, ln as yo, ls as bo, lt as xo, m as So, mi as Co, ml as wo, mt as To, n as Eo, nc as Do, nt as Oo, oi as ko, on as Ao, os as jo, ot as Mo, p as No, pi as Po, pl as Fo, pt as Io, q as Lo, qa as Ro, qc as zo, qr as Bo, r as Vo, ra as Ho, rc as Uo, ri as Wo, rn as Go, rr as Ko, rt as qo, s as Jo, sc as Yo, si as Xo, sl as Zo, sn as Qo, ss as $o, st as es, t as ts, ta as ns, tc as rs, tl as is, ts as as, tt as os, u as ss, un as cs, ut as ls, v as us, vo as ds, vt as fs, w as ps, wc as ms, wl as hs, ws as gs, x as _s, xi as vs, xo as ys, xs as bs, xt as xs, y as Ss, yn as Cs, yo as ws, ys as Ts, yt as Es, zs as Ds, zt as Os } from "./F0CanvasPanel-BA3Mt1E-.js";
|
|
8
8
|
import { t as ks } from "./LayoutGroup-CAwOHvO6.js";
|
|
9
9
|
import { n as As, o as js, r as Ms, t as U } from "./F0Icon-BPx-9kOK.js";
|
|
10
10
|
import { A as Ns, B as Ps, C as Fs, F as W, G as Is, H as Ls, I as Rs, M as zs, N as Bs, O as Vs, P as Hs, R as Us, S as Ws, U as Gs, W as Ks, f as qs, g as Js, h as Ys, i as Xs, j as Zs, l as Qs, w as $s, x as ec, y as tc, z as nc } from "./useData-CaY41foq.js";
|
|
11
|
-
import { $ as rc, A as ic, An as ac, Ar as oc, Dn as sc, Dt as cc, En as lc, Er as uc, Et as dc, F as fc, In as pc, J as mc, N as hc, Nn as gc, Nt as _c, On as vc, Or as yc, Ot as bc, P as xc, Q as Sc, Tr as Cc, Tt as wc, X as Tc, Yt as Ec, Z as Dc, _ as Oc, an as kc, at as Ac, bt as jc, dr as Mc, dt as Nc, ft as Pc, g as Fc, h as Ic, in as Lc, it as Rc, jn as zc, jr as Bc, kr as Vc, m as Hc, mn as Uc, mr as Wc, nn as Gc, nt as Kc, pr as qc, rt as Jc, t as Yc, tn as Xc, tt as Zc, un as Qc, ur as $c, ut as el, v as tl, vt as nl, wn as rl, wr as il, wt as al, xt as ol, y as sl, yn as cl, yt as ll } from "./F0Select-
|
|
11
|
+
import { $ as rc, A as ic, An as ac, Ar as oc, Dn as sc, Dt as cc, En as lc, Er as uc, Et as dc, F as fc, In as pc, J as mc, N as hc, Nn as gc, Nt as _c, On as vc, Or as yc, Ot as bc, P as xc, Q as Sc, Tr as Cc, Tt as wc, X as Tc, Yt as Ec, Z as Dc, _ as Oc, an as kc, at as Ac, bt as jc, dr as Mc, dt as Nc, ft as Pc, g as Fc, h as Ic, in as Lc, it as Rc, jn as zc, jr as Bc, kr as Vc, m as Hc, mn as Uc, mr as Wc, nn as Gc, nt as Kc, pr as qc, rt as Jc, t as Yc, tn as Xc, tt as Zc, un as Qc, ur as $c, ut as el, v as tl, vt as nl, wn as rl, wr as il, wt as al, xt as ol, y as sl, yn as cl, yt as ll } from "./F0Select-L8ZodaA4.js";
|
|
12
12
|
import { t as ul } from "./Check-DAp9gCRh.js";
|
|
13
13
|
import { a as dl } from "./dist-CCGn12Jl.js";
|
|
14
14
|
import { t as fl } from "./Ellipsis-CBouJQYY.js";
|
|
@@ -21,7 +21,7 @@ import { t as Bl } from "./F0Text-1893f70w.js";
|
|
|
21
21
|
import { a as Vl, i as Hl, n as Ul, r as Wl, s as Gl, t as Kl } from "./dist-BCNVh6y5.js";
|
|
22
22
|
import './maplibre-gl.css';import './RichText.css';/* empty css */
|
|
23
23
|
import { t as ql } from "./useFullscreen-CNwpzjpz.js";
|
|
24
|
-
import { S as Jl, _ as Yl, a as Xl, b as Zl, c as Ql, d as $l, f as eu, g as tu, h as nu, i as ru, l as iu, m as au, n as ou, o as su, p as cu, r as lu, t as uu, u as du, v as fu, x as pu, y as mu } from "./F0Map-
|
|
24
|
+
import { S as Jl, _ as Yl, a as Xl, b as Zl, c as Ql, d as $l, f as eu, g as tu, h as nu, i as ru, l as iu, m as au, n as ou, o as su, p as cu, r as lu, t as uu, u as du, v as fu, x as pu, y as mu } from "./F0Map-DoaIix0D.js";
|
|
25
25
|
import { _ as hu, a as gu, c as _u, d as vu, f as yu, g as bu, h as xu, i as Su, l as Cu, m as wu, n as Tu, o as Eu, p as Du, r as Ou, s as ku, t as Au, u as ju } from "./posts-CIRw6PMn.js";
|
|
26
26
|
/* empty css */
|
|
27
27
|
import Mu, { Children as Nu, Fragment as Pu, Suspense as Fu, cloneElement as Iu, createContext as Lu, forwardRef as Ru, isValidElement as zu, lazy as Bu, memo as Vu, useCallback as G, useContext as Hu, useEffect as K, useId as Uu, useImperativeHandle as Wu, useInsertionEffect as Gu, useLayoutEffect as q, useMemo as J, useReducer as Ku, useRef as Y, useState as X, useSyncExternalStore as qu, useTransition as Ju } from "react";
|
|
@@ -46,12 +46,12 @@ function Qu(e, t) {
|
|
|
46
46
|
//#region ../../node_modules/.bun/date-fns@3.6.0/node_modules/date-fns/differenceInMinutes.mjs
|
|
47
47
|
function $u(e, t, n) {
|
|
48
48
|
let r = Qu(e, t) / cl;
|
|
49
|
-
return
|
|
49
|
+
return zi(n?.roundingMethod)(r);
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region ../../node_modules/.bun/date-fns@3.6.0/node_modules/date-fns/isTomorrow.mjs
|
|
53
53
|
function ed(e) {
|
|
54
|
-
return Uc(e, rl(
|
|
54
|
+
return Uc(e, rl(Nr(e), 1));
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region src/elements/F0ProgressSeries/types.ts
|
|
@@ -199,7 +199,7 @@ var td = [
|
|
|
199
199
|
size: c,
|
|
200
200
|
hideLabel: !0,
|
|
201
201
|
disabled: o,
|
|
202
|
-
icon: u ? void 0 :
|
|
202
|
+
icon: u ? void 0 : _r
|
|
203
203
|
})
|
|
204
204
|
}), /* @__PURE__ */ $(El, {
|
|
205
205
|
side: "bottom",
|
|
@@ -358,7 +358,7 @@ var Sd = yn(wn("F0EmojiPicker", xd)), Cd = [
|
|
|
358
358
|
}) : null
|
|
359
359
|
]
|
|
360
360
|
}),
|
|
361
|
-
r && i ? /* @__PURE__ */ Q(
|
|
361
|
+
r && i ? /* @__PURE__ */ Q(Vr, {
|
|
362
362
|
asChild: !0,
|
|
363
363
|
children: /* @__PURE__ */ Q(H, {
|
|
364
364
|
variant: "ghost",
|
|
@@ -371,7 +371,7 @@ var Sd = yn(wn("F0EmojiPicker", xd)), Cd = [
|
|
|
371
371
|
o ? /* @__PURE__ */ Q(H, {
|
|
372
372
|
variant: "ghost",
|
|
373
373
|
size: "sm",
|
|
374
|
-
icon:
|
|
374
|
+
icon: ei,
|
|
375
375
|
hideLabel: !0,
|
|
376
376
|
label: c.close,
|
|
377
377
|
onClick: o
|
|
@@ -402,7 +402,7 @@ var Sd = yn(wn("F0EmojiPicker", xd)), Cd = [
|
|
|
402
402
|
},
|
|
403
403
|
transition: { duration: a ? 0 : .2 },
|
|
404
404
|
className: "overflow-hidden",
|
|
405
|
-
children: /* @__PURE__ */ Q(
|
|
405
|
+
children: /* @__PURE__ */ Q(Zi, {
|
|
406
406
|
forceMount: !0,
|
|
407
407
|
asChild: !0,
|
|
408
408
|
children: /* @__PURE__ */ Q("div", { children: n.map((t, r) => /* @__PURE__ */ Q(Nd, {
|
|
@@ -443,7 +443,7 @@ var Sd = yn(wn("F0EmojiPicker", xd)), Cd = [
|
|
|
443
443
|
})]
|
|
444
444
|
}), s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("div", {
|
|
445
445
|
className: "-ml-2",
|
|
446
|
-
children: /* @__PURE__ */ Q(
|
|
446
|
+
children: /* @__PURE__ */ Q(Vr, {
|
|
447
447
|
asChild: !0,
|
|
448
448
|
children: /* @__PURE__ */ Q(H, {
|
|
449
449
|
variant: "ghost",
|
|
@@ -470,7 +470,7 @@ var Sd = yn(wn("F0EmojiPicker", xd)), Cd = [
|
|
|
470
470
|
},
|
|
471
471
|
transition: { duration: l ? 0 : .2 },
|
|
472
472
|
className: "w-full overflow-hidden",
|
|
473
|
-
children: /* @__PURE__ */ Q(
|
|
473
|
+
children: /* @__PURE__ */ Q(Zi, {
|
|
474
474
|
forceMount: !0,
|
|
475
475
|
asChild: !0,
|
|
476
476
|
children: /* @__PURE__ */ Q(d, {
|
|
@@ -537,7 +537,7 @@ var Sd = yn(wn("F0EmojiPicker", xd)), Cd = [
|
|
|
537
537
|
children: [A, j]
|
|
538
538
|
})]
|
|
539
539
|
});
|
|
540
|
-
return w ? /* @__PURE__ */ Q(
|
|
540
|
+
return w ? /* @__PURE__ */ Q(Ui, {
|
|
541
541
|
open: y,
|
|
542
542
|
onOpenChange: (e) => {
|
|
543
543
|
v(e), f?.(e);
|
|
@@ -570,7 +570,7 @@ var Sd = yn(wn("F0EmojiPicker", xd)), Cd = [
|
|
|
570
570
|
compact: t
|
|
571
571
|
});
|
|
572
572
|
Ud.displayName = "F0AiCallout";
|
|
573
|
-
var Gd =
|
|
573
|
+
var Gd = Wr(yn(Ud), Wd), Kd = js({
|
|
574
574
|
base: "flex w-full flex-col rounded-lg p-[1px]",
|
|
575
575
|
variants: { variant: {
|
|
576
576
|
ai: "bg-gradient-to-l from-[#A1ADE51F] via-[#E519431F] to-[#E556191F]",
|
|
@@ -609,7 +609,7 @@ var Gd = Ur(yn(Ud), Wd), Kd = js({
|
|
|
609
609
|
})]
|
|
610
610
|
}), t ? /* @__PURE__ */ Q(H, {
|
|
611
611
|
variant: "ghost",
|
|
612
|
-
icon:
|
|
612
|
+
icon: ei,
|
|
613
613
|
size: "sm",
|
|
614
614
|
hideLabel: !0,
|
|
615
615
|
onClick: t,
|
|
@@ -663,7 +663,7 @@ var Gd = Ur(yn(Ud), Wd), Kd = js({
|
|
|
663
663
|
variant: t
|
|
664
664
|
});
|
|
665
665
|
Zd.displayName = "F0Callout";
|
|
666
|
-
var $d =
|
|
666
|
+
var $d = Wr(yn(Zd), Qd), ef = [
|
|
667
667
|
"#EE4B8E",
|
|
668
668
|
"#2E7FF0",
|
|
669
669
|
"#4CAF3E",
|
|
@@ -786,12 +786,12 @@ var ff = yn(wn("F0Confetti", df)), pf = (e, t) => {
|
|
|
786
786
|
let { meetingCard: n } = z(), r = e.label ?? n.join;
|
|
787
787
|
return e.href && !t ? /* @__PURE__ */ Q(H, {
|
|
788
788
|
label: r,
|
|
789
|
-
icon:
|
|
789
|
+
icon: jo,
|
|
790
790
|
variant: "default",
|
|
791
791
|
href: e.href
|
|
792
792
|
}) : /* @__PURE__ */ Q(H, {
|
|
793
793
|
label: r,
|
|
794
|
-
icon:
|
|
794
|
+
icon: jo,
|
|
795
795
|
variant: "default",
|
|
796
796
|
disabled: t,
|
|
797
797
|
onClick: e.onJoin
|
|
@@ -821,7 +821,7 @@ var ff = yn(wn("F0Confetti", df)), pf = (e, t) => {
|
|
|
821
821
|
case "summarizing": return /* @__PURE__ */ Q(sc, {
|
|
822
822
|
text: r.summarizing,
|
|
823
823
|
variant: "neutral",
|
|
824
|
-
icon:
|
|
824
|
+
icon: ji
|
|
825
825
|
});
|
|
826
826
|
case "finished": return /* @__PURE__ */ Q(sc, {
|
|
827
827
|
text: r.finished,
|
|
@@ -942,7 +942,7 @@ var ff = yn(wn("F0Confetti", df)), pf = (e, t) => {
|
|
|
942
942
|
join: p,
|
|
943
943
|
disabled: N
|
|
944
944
|
}) : null] });
|
|
945
|
-
return /* @__PURE__ */ Q(
|
|
945
|
+
return /* @__PURE__ */ Q(ni, {
|
|
946
946
|
ref: g,
|
|
947
947
|
className: V("rounded-2xl border-f1-border-secondary bg-f1-background p-3 shadow-none", h ? "gap-1.5" : "gap-2.5"),
|
|
948
948
|
"data-testid": "meeting-card",
|
|
@@ -983,7 +983,7 @@ var ff = yn(wn("F0Confetti", df)), pf = (e, t) => {
|
|
|
983
983
|
});
|
|
984
984
|
});
|
|
985
985
|
Nf.displayName = "F0MeetingCard";
|
|
986
|
-
var Pf = yn(wn("F0MeetingCard",
|
|
986
|
+
var Pf = yn(wn("F0MeetingCard", Wr(Nf, ({ compact: e = !1 }) => /* @__PURE__ */ Q(ni, {
|
|
987
987
|
className: V("rounded-2xl border-f1-border-secondary bg-f1-background p-3 shadow-none", e ? "gap-1.5" : "gap-2.5"),
|
|
988
988
|
"aria-busy": "true",
|
|
989
989
|
"aria-live": "polite",
|
|
@@ -1112,7 +1112,7 @@ function Bf({ content: e, position: t, viewReport: n }) {
|
|
|
1112
1112
|
top: "md",
|
|
1113
1113
|
zIndex: "10",
|
|
1114
1114
|
children: /* @__PURE__ */ Q(ze, {
|
|
1115
|
-
icon:
|
|
1115
|
+
icon: ji,
|
|
1116
1116
|
label: e.autoMapped.label,
|
|
1117
1117
|
info: {
|
|
1118
1118
|
title: e.autoMapped.label,
|
|
@@ -1205,7 +1205,7 @@ function Vf({ content: e, viewReport: t }) {
|
|
|
1205
1205
|
paddingLeft: "md",
|
|
1206
1206
|
paddingRight: "lg",
|
|
1207
1207
|
children: [/* @__PURE__ */ Q(U, {
|
|
1208
|
-
icon:
|
|
1208
|
+
icon: si,
|
|
1209
1209
|
size: "lg",
|
|
1210
1210
|
color: "secondary"
|
|
1211
1211
|
}), /* @__PURE__ */ Q(Bl, { content: e.description })]
|
|
@@ -1338,14 +1338,14 @@ function Qf({ position: e, title: t, settings: n, onClose: r }) {
|
|
|
1338
1338
|
label: n.label,
|
|
1339
1339
|
variant: "ghost",
|
|
1340
1340
|
size: "sm",
|
|
1341
|
-
icon:
|
|
1341
|
+
icon: gs,
|
|
1342
1342
|
hideLabel: !0,
|
|
1343
1343
|
onClick: n.onClick
|
|
1344
1344
|
}) : null, r ? /* @__PURE__ */ Q(H, {
|
|
1345
1345
|
label: i.close,
|
|
1346
1346
|
variant: "ghost",
|
|
1347
1347
|
size: "sm",
|
|
1348
|
-
icon:
|
|
1348
|
+
icon: ei,
|
|
1349
1349
|
hideLabel: !0,
|
|
1350
1350
|
onClick: r
|
|
1351
1351
|
}) : null]
|
|
@@ -1497,7 +1497,7 @@ var lp = yn(wn("F0PulseDot", cp)), up = [
|
|
|
1497
1497
|
let n = !e.shiftKey && !e.altKey && !e.metaKey && !e.ctrlKey;
|
|
1498
1498
|
return e.key !== "ArrowUp" || !n || t.editor.value !== "" || !t.isVoiceIdle || !t.onArrowUpWhenEmpty?.() ? !1 : (e.preventDefault(), !0);
|
|
1499
1499
|
}, pp = (e, t) => {
|
|
1500
|
-
t.isReplaced ||
|
|
1500
|
+
t.isReplaced || eo(e) || t.editor.handleUndoRedoKeyDown(e) || t.autocomplete?.handleKeyDown(e) || t.editor.mentions.handleKeyDown(e) || dp(e, t) || fp(e, t) || e.key !== "Enter" || e.shiftKey || (e.preventDefault(), t.inProgress ? t.queue?.() : t.send());
|
|
1501
1501
|
}, mp = (e, t) => t === "*/*" ? !0 : t.endsWith("/*") ? e.startsWith(t.slice(0, t.indexOf("/") + 1)) : e === t, hp = (e) => e === void 0 ? [] : (Array.isArray(e) ? e : e.split(",")).map((e) => e.trim()).filter(Boolean), gp = (e, t, n) => {
|
|
1502
1502
|
let [r, i] = X([]), a = Y(null), o = e?.upload, s = e?.maxFiles, c = J(() => hp(e?.accept), [e?.accept]), l = Y(0);
|
|
1503
1503
|
K(() => {
|
|
@@ -1579,10 +1579,10 @@ var lp = yn(wn("F0PulseDot", cp)), up = [
|
|
|
1579
1579
|
disabledTooltip: e.maxFiles === void 0 ? void 0 : t.tooManyFiles.replace("{{maxFiles}}", String(e.maxFiles)),
|
|
1580
1580
|
onClick: () => e.inputRef.current?.click()
|
|
1581
1581
|
}, vp = ({ onSend: e, attachments: t, hasAttachments: n, sendBlocked: r, onPasteFiles: i, labels: a }) => {
|
|
1582
|
-
let o =
|
|
1582
|
+
let o = Io(), s = o.show, c = gp(t, a, s), { hasFailed: l, files: u, removeSent: d } = c, f = G((t) => {
|
|
1583
1583
|
if (l) return s(a.uploadFailedBlocksSend), !1;
|
|
1584
1584
|
let n = u.filter((e) => e.status === "uploaded"), r = e(t, {
|
|
1585
|
-
serialised:
|
|
1585
|
+
serialised: Fr(t.text, t.mentions),
|
|
1586
1586
|
files: n.flatMap((e) => e.uploaded ? [e.uploaded] : [])
|
|
1587
1587
|
});
|
|
1588
1588
|
if (n.length === 0) return r;
|
|
@@ -1598,7 +1598,7 @@ var lp = yn(wn("F0PulseDot", cp)), up = [
|
|
|
1598
1598
|
a,
|
|
1599
1599
|
e
|
|
1600
1600
|
]), p = G((t) => e(t, {
|
|
1601
|
-
serialised:
|
|
1601
|
+
serialised: Fr(t.text, t.mentions),
|
|
1602
1602
|
files: []
|
|
1603
1603
|
}), [e]);
|
|
1604
1604
|
return {
|
|
@@ -1762,14 +1762,14 @@ var lp = yn(wn("F0PulseDot", cp)), up = [
|
|
|
1762
1762
|
canSend: p
|
|
1763
1763
|
};
|
|
1764
1764
|
}, Sp = ({ voice: e, labels: t, valueRef: n, writeTextRef: r, focusRef: i }) => {
|
|
1765
|
-
let { error: a, show: o, clear: s } =
|
|
1765
|
+
let { error: a, show: o, clear: s } = Io(), c = Y(""), l = G((e) => {
|
|
1766
1766
|
let t = c.current, n = t && !/\s$/.test(t) ? " " : "";
|
|
1767
1767
|
r.current(`${t}${n}${e}`);
|
|
1768
1768
|
}, [r]), u = {
|
|
1769
1769
|
"permission-denied": t.micPermissionDenied,
|
|
1770
1770
|
"device-error": t.micError,
|
|
1771
1771
|
"transcription-failed": t.transcriptionError
|
|
1772
|
-
}, d =
|
|
1772
|
+
}, d = vi({
|
|
1773
1773
|
onTranscribe: e?.onTranscribe,
|
|
1774
1774
|
onPartial: l,
|
|
1775
1775
|
onFinal: (e) => {
|
|
@@ -1844,9 +1844,9 @@ var lp = yn(wn("F0PulseDot", cp)), up = [
|
|
|
1844
1844
|
};
|
|
1845
1845
|
}, Ep = (e, t) => {
|
|
1846
1846
|
if (!t && !e?.actions) return e && (e.items?.length || e.panel) ? e : void 0;
|
|
1847
|
-
let n = [...e?.items ?? [],
|
|
1847
|
+
let n = [...e?.items ?? [], ...$r(e?.actions ?? [])], r = [...t ? [{
|
|
1848
1848
|
label: t.label,
|
|
1849
|
-
icon:
|
|
1849
|
+
icon: Gr,
|
|
1850
1850
|
onClick: t.onClick,
|
|
1851
1851
|
disabled: t.disabled,
|
|
1852
1852
|
disabledTooltip: t.disabledTooltip
|
|
@@ -1949,13 +1949,13 @@ var Rp = (e) => {
|
|
|
1949
1949
|
let i = z(), a = Rp(e), o = J(() => e.flatMap((e) => {
|
|
1950
1950
|
let t = a.get(e.id);
|
|
1951
1951
|
if (!t) return [];
|
|
1952
|
-
let n = e.file.name, r = e.file.type ||
|
|
1952
|
+
let n = e.file.name, r = e.file.type || Qo({
|
|
1953
1953
|
name: n,
|
|
1954
1954
|
url: t
|
|
1955
1955
|
});
|
|
1956
1956
|
return [{
|
|
1957
1957
|
entry: e,
|
|
1958
|
-
attachment:
|
|
1958
|
+
attachment: ja({
|
|
1959
1959
|
name: n,
|
|
1960
1960
|
url: t,
|
|
1961
1961
|
mimeType: r
|
|
@@ -1974,12 +1974,12 @@ var Rp = (e) => {
|
|
|
1974
1974
|
}];
|
|
1975
1975
|
}), [e, a]), s = J(() => o.map(({ entry: e, attachment: t }, n) => ({
|
|
1976
1976
|
file: t,
|
|
1977
|
-
item: e.status === "uploaded" ?
|
|
1978
|
-
})), [o]), c =
|
|
1977
|
+
item: e.status === "uploaded" ? ua(t, dr(n, t.url)) : null
|
|
1978
|
+
})), [o]), c = Lo(s, "composer");
|
|
1979
1979
|
return /* @__PURE__ */ Q(Yr, {
|
|
1980
1980
|
items: o.map(({ entry: e, attachment: r }) => ({
|
|
1981
1981
|
id: e.id,
|
|
1982
|
-
content: /* @__PURE__ */ Q(
|
|
1982
|
+
content: /* @__PURE__ */ Q(ia, {
|
|
1983
1983
|
attachment: r,
|
|
1984
1984
|
status: e.status === "uploaded" ? "ready" : e.status === "error" ? "error" : "uploading",
|
|
1985
1985
|
errorMessage: e.errorMessage,
|
|
@@ -2015,12 +2015,12 @@ var Rp = (e) => {
|
|
|
2015
2015
|
"data-composer-chrome": "",
|
|
2016
2016
|
className: "flex w-full flex-col gap-2",
|
|
2017
2017
|
children: [
|
|
2018
|
-
c ? /* @__PURE__ */ Q(
|
|
2018
|
+
c ? /* @__PURE__ */ Q(Pi, {
|
|
2019
2019
|
suggestions: e.groups,
|
|
2020
2020
|
onItemClick: e.onSelect,
|
|
2021
2021
|
onItemHover: (e) => a(e ? e.prompt ?? e.title : null)
|
|
2022
2022
|
}) : null,
|
|
2023
|
-
/* @__PURE__ */ Q(
|
|
2023
|
+
/* @__PURE__ */ Q(zr, {
|
|
2024
2024
|
notice: t,
|
|
2025
2025
|
dismissLabel: r.dismissNotice,
|
|
2026
2026
|
children: s
|
|
@@ -2040,8 +2040,8 @@ var Rp = (e) => {
|
|
|
2040
2040
|
//#endregion
|
|
2041
2041
|
//#region src/elements/F0Composer/parts/ComposerControls.tsx
|
|
2042
2042
|
function Hp({ labels: e, sendKind: t, asForm: n, hasDataToSend: r, canSend: i, onSend: a, onStop: o, rest: s, streaming: c = !1 }) {
|
|
2043
|
-
let l = /* @__PURE__ */ Q(
|
|
2044
|
-
action:
|
|
2043
|
+
let l = /* @__PURE__ */ Q(Na, {
|
|
2044
|
+
action: xo({
|
|
2045
2045
|
streaming: c,
|
|
2046
2046
|
hasDataToSend: r,
|
|
2047
2047
|
canSend: i
|
|
@@ -2066,7 +2066,7 @@ function Up(e) {
|
|
|
2066
2066
|
size: "md",
|
|
2067
2067
|
hideLabel: !0,
|
|
2068
2068
|
label: n?.busy ? t.sendingVoice : t.recordAudio,
|
|
2069
|
-
icon:
|
|
2069
|
+
icon: Do,
|
|
2070
2070
|
onClick: e.onRecord,
|
|
2071
2071
|
disabled: n?.disabled,
|
|
2072
2072
|
loading: e.micLoading
|
|
@@ -2080,7 +2080,7 @@ var Wp = (e, t) => e ? t ? "now" : "atRest" : "never";
|
|
|
2080
2080
|
function Gp({ actions: e, disabled: t, separator: n }) {
|
|
2081
2081
|
let r = /* @__PURE__ */ Q("div", {
|
|
2082
2082
|
className: "flex px-1",
|
|
2083
|
-
children: /* @__PURE__ */ Q(
|
|
2083
|
+
children: /* @__PURE__ */ Q(Xi, {})
|
|
2084
2084
|
});
|
|
2085
2085
|
return /* @__PURE__ */ $(Z, { children: [n === "never" ? r : /* @__PURE__ */ Q("span", {
|
|
2086
2086
|
className: V(Mp, n === "now" ? Np : Pp),
|
|
@@ -2133,7 +2133,7 @@ function Jp(e) {
|
|
|
2133
2133
|
},
|
|
2134
2134
|
transition: {
|
|
2135
2135
|
duration: .15,
|
|
2136
|
-
ease:
|
|
2136
|
+
ease: qa
|
|
2137
2137
|
},
|
|
2138
2138
|
children: /* @__PURE__ */ Q(qp, {
|
|
2139
2139
|
mode: i,
|
|
@@ -2165,7 +2165,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2165
2165
|
children: [/* @__PURE__ */ $("span", {
|
|
2166
2166
|
className: "flex items-center gap-1 text-sm font-medium text-f1-foreground-secondary",
|
|
2167
2167
|
children: [/* @__PURE__ */ Q(U, {
|
|
2168
|
-
icon:
|
|
2168
|
+
icon: Ci,
|
|
2169
2169
|
size: "xs",
|
|
2170
2170
|
color: "default"
|
|
2171
2171
|
}), t.queued]
|
|
@@ -2182,7 +2182,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2182
2182
|
size: "sm",
|
|
2183
2183
|
hideLabel: !0,
|
|
2184
2184
|
label: t.removeQueued,
|
|
2185
|
-
icon:
|
|
2185
|
+
icon: ei,
|
|
2186
2186
|
onClick: n
|
|
2187
2187
|
})
|
|
2188
2188
|
})]
|
|
@@ -2207,7 +2207,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2207
2207
|
transition: { duration: u ? 0 : .15 },
|
|
2208
2208
|
children: [/* @__PURE__ */ Q("div", {
|
|
2209
2209
|
className: "flex h-8 min-w-0 flex-1 items-center",
|
|
2210
|
-
children: /* @__PURE__ */ Q(
|
|
2210
|
+
children: /* @__PURE__ */ Q(Or, {
|
|
2211
2211
|
stream: i,
|
|
2212
2212
|
className: "min-w-0 flex-1"
|
|
2213
2213
|
})
|
|
@@ -2219,7 +2219,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2219
2219
|
size: "md",
|
|
2220
2220
|
hideLabel: !0,
|
|
2221
2221
|
label: a.cancelRecording,
|
|
2222
|
-
icon:
|
|
2222
|
+
icon: ei,
|
|
2223
2223
|
onClick: s
|
|
2224
2224
|
}), /* @__PURE__ */ Q(er, {
|
|
2225
2225
|
ref: o,
|
|
@@ -2254,7 +2254,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2254
2254
|
},
|
|
2255
2255
|
transition: {
|
|
2256
2256
|
duration: n ? 0 : .18,
|
|
2257
|
-
ease:
|
|
2257
|
+
ease: qa
|
|
2258
2258
|
},
|
|
2259
2259
|
children: /* @__PURE__ */ Q("div", {
|
|
2260
2260
|
className: "p-1",
|
|
@@ -2297,7 +2297,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2297
2297
|
size: "sm",
|
|
2298
2298
|
hideLabel: !0,
|
|
2299
2299
|
label: t,
|
|
2300
|
-
icon:
|
|
2300
|
+
icon: ei,
|
|
2301
2301
|
onClick: e.onRemove
|
|
2302
2302
|
})
|
|
2303
2303
|
})
|
|
@@ -2369,7 +2369,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2369
2369
|
text: i
|
|
2370
2370
|
};
|
|
2371
2371
|
}, cm = (e, t, n) => {
|
|
2372
|
-
let { mentions: r } = e, i = `composer-mentions-${Uu().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 ?
|
|
2372
|
+
let { mentions: r } = e, i = `composer-mentions-${Uu().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 ? Ua(i, s.item) : void 0;
|
|
2373
2373
|
return a ? {
|
|
2374
2374
|
mentionListboxId: i,
|
|
2375
2375
|
mentionsVisible: o,
|
|
@@ -2401,7 +2401,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2401
2401
|
n
|
|
2402
2402
|
]), r;
|
|
2403
2403
|
}, mm = ({ 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, reference: D, attachments: O, tray: k, leading: A, actions: j, replacement: M, variant: N = "default", suggestions: P, notice: F, disclaimer: I, replacementHint: L = !1, addMenu: ee, rest: te, asForm: ne = !1, className: re, surfaceRef: ie, onSurfaceFocus: ae, onSurfaceBlur: oe, handleRef: se, reducedMotion: ce = !1, "data-testid": le }) => {
|
|
2404
|
-
let ue =
|
|
2404
|
+
let ue = To(d, v), de = M != null, fe = vp({
|
|
2405
2405
|
onSend: e,
|
|
2406
2406
|
attachments: O,
|
|
2407
2407
|
hasAttachments: o,
|
|
@@ -2416,7 +2416,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2416
2416
|
focusRef: R
|
|
2417
2417
|
}), { recorder: ye, isRecording: be, isDictating: xe } = ve, [Se, Ce] = X(!1), we = G(() => Ce(!0), []), Te = G(() => Ce(!1), []), Ee = G((e) => {
|
|
2418
2418
|
(c === void 0 || e.trim().length <= c) && Ce(!1), y?.(e);
|
|
2419
|
-
}, [c, y]), [De, Oe] = X(!1), ke =
|
|
2419
|
+
}, [c, y]), [De, Oe] = X(!1), ke = Ya({
|
|
2420
2420
|
mentions: {
|
|
2421
2421
|
enabled: am(g) && !De && !de,
|
|
2422
2422
|
sources: g?.sources ?? em,
|
|
@@ -2433,7 +2433,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2433
2433
|
je(e), Me(e.length), Ee(e);
|
|
2434
2434
|
}, R.current = () => Ne.current?.focus();
|
|
2435
2435
|
});
|
|
2436
|
-
let Ie = pm(_, ke, Oe), Le = cm(ke, Ie, de), { highlightSegments: Re, hasOverlay: ze } =
|
|
2436
|
+
let Ie = pm(_, ke, Oe), Le = cm(ke, Ie, de), { highlightSegments: Re, hasOverlay: ze } = ga(ke, { suppressGhost: Ie?.isOpen ?? !1 }), Be = Pe.close;
|
|
2437
2437
|
K(() => {
|
|
2438
2438
|
de && Be();
|
|
2439
2439
|
}, [de, Be]);
|
|
@@ -2479,7 +2479,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2479
2479
|
cancelRecording: ye.cancel,
|
|
2480
2480
|
addFiles: pe.add
|
|
2481
2481
|
});
|
|
2482
|
-
let Xe =
|
|
2482
|
+
let Xe = es({
|
|
2483
2483
|
enabled: !!fe.pasteFiles && !de,
|
|
2484
2484
|
onFiles: fe.pasteFiles ?? (() => {}),
|
|
2485
2485
|
preferText: w
|
|
@@ -2521,7 +2521,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2521
2521
|
onConfirm: ye.stop,
|
|
2522
2522
|
onEscape: x,
|
|
2523
2523
|
reducedMotion: ce
|
|
2524
|
-
}, ft = /* @__PURE__ */ Q(
|
|
2524
|
+
}, ft = /* @__PURE__ */ Q(xs, {
|
|
2525
2525
|
inset: "icon",
|
|
2526
2526
|
className: "min-w-0 flex-1",
|
|
2527
2527
|
textareaRef: Ne,
|
|
@@ -2576,7 +2576,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2576
2576
|
reducedMotion: ce
|
|
2577
2577
|
}),
|
|
2578
2578
|
E,
|
|
2579
|
-
/* @__PURE__ */ Q(
|
|
2579
|
+
/* @__PURE__ */ Q(ls, {
|
|
2580
2580
|
message: We,
|
|
2581
2581
|
id: Ze,
|
|
2582
2582
|
reducedMotion: ce
|
|
@@ -2624,7 +2624,7 @@ var Yp = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2624
2624
|
onBlur: oe
|
|
2625
2625
|
}, ht = /* @__PURE__ */ $(Z, { children: [
|
|
2626
2626
|
Ie?.popover,
|
|
2627
|
-
/* @__PURE__ */ Q(
|
|
2627
|
+
/* @__PURE__ */ Q(Ra, {
|
|
2628
2628
|
isOpen: Le.mentionsVisible,
|
|
2629
2629
|
listboxId: Le.mentionListboxId,
|
|
2630
2630
|
label: ue.mentionSuggestions,
|
|
@@ -2858,7 +2858,7 @@ var wm = 30, Tm = 50, Em = (e, t, n) => Math.min(Math.max(e, t), n), Dm = (e) =>
|
|
|
2858
2858
|
Panel: Cm,
|
|
2859
2859
|
Handle: Sm
|
|
2860
2860
|
}), Mm = "Previous", Nm = "bg-f1-background", Pm = yn(wn("F0CarouselDialog", ({ items: e, currentId: t, onNavigate: n, labels: r, loop: i = !1, pagination: a, placeholder: o, isOpen: s, onClose: c, ...l }) => {
|
|
2861
|
-
let u =
|
|
2861
|
+
let u = no(), 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(() => {
|
|
2862
2862
|
x && n(x);
|
|
2863
2863
|
}, [x, n]), [w, T] = X(!1), E = Y(-1), D = G(() => {
|
|
2864
2864
|
a && !v && E.current !== h && (E.current = h, a.onLoadMore());
|
|
@@ -2943,7 +2943,7 @@ var wm = 30, Tm = 50, Em = (e, t, n) => Math.min(Math.max(e, t), n), Dm = (e) =>
|
|
|
2943
2943
|
}, P = Y(N);
|
|
2944
2944
|
s && (P.current = N);
|
|
2945
2945
|
let F = s ? N : P.current;
|
|
2946
|
-
return !F.content && !F.title ? null : /* @__PURE__ */ Q(
|
|
2946
|
+
return !F.content && !F.title ? null : /* @__PURE__ */ Q(Wo, {
|
|
2947
2947
|
...l,
|
|
2948
2948
|
width: u ? void 0 : l.width,
|
|
2949
2949
|
position: u ? "fullscreen" : l.position,
|
|
@@ -3096,7 +3096,7 @@ var Km = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3096
3096
|
}) : null,
|
|
3097
3097
|
i && i.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
3098
3098
|
className: "flex flex-col gap-0.5",
|
|
3099
|
-
children: i.map((e, t) => /* @__PURE__ */ Q(
|
|
3099
|
+
children: i.map((e, t) => /* @__PURE__ */ Q(qi, { metadata: e }, t))
|
|
3100
3100
|
}) : null
|
|
3101
3101
|
]
|
|
3102
3102
|
}),
|
|
@@ -3125,7 +3125,7 @@ var Km = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3125
3125
|
})]
|
|
3126
3126
|
});
|
|
3127
3127
|
Jm.displayName = "OneListItem";
|
|
3128
|
-
var Xm = yn(wn("OneListItem",
|
|
3128
|
+
var Xm = yn(wn("OneListItem", Wr(Jm, Ym)));
|
|
3129
3129
|
//#endregion
|
|
3130
3130
|
//#region src/blocks/F0SharingDialog/hooks/useReportAccessShape.ts
|
|
3131
3131
|
function Zm(e, t) {
|
|
@@ -3192,7 +3192,7 @@ function $m({ disabled: e, label: t, onClick: n }) {
|
|
|
3192
3192
|
return /* @__PURE__ */ Q(H, {
|
|
3193
3193
|
disabled: e,
|
|
3194
3194
|
hideLabel: !0,
|
|
3195
|
-
icon:
|
|
3195
|
+
icon: Br,
|
|
3196
3196
|
label: t,
|
|
3197
3197
|
onClick: n,
|
|
3198
3198
|
variant: "ghost"
|
|
@@ -3234,7 +3234,7 @@ function th({ access: e, roles: t, personLabel: n, disabled: r, portalContainer:
|
|
|
3234
3234
|
children: [/* @__PURE__ */ Q(Yc, {
|
|
3235
3235
|
variant: "inline",
|
|
3236
3236
|
actions: e.canChangeRole ? [{
|
|
3237
|
-
icon:
|
|
3237
|
+
icon: Br,
|
|
3238
3238
|
label: s.sharingDialog.removeAccess,
|
|
3239
3239
|
onClick: () => void o(),
|
|
3240
3240
|
variant: "critical",
|
|
@@ -3498,7 +3498,7 @@ function oh(e) {
|
|
|
3498
3498
|
shrink: !1,
|
|
3499
3499
|
children: /* @__PURE__ */ Q(H, {
|
|
3500
3500
|
disabled: !O || !E || k,
|
|
3501
|
-
icon:
|
|
3501
|
+
icon: Bi,
|
|
3502
3502
|
label: u.sharingDialog.share,
|
|
3503
3503
|
loading: r,
|
|
3504
3504
|
onClick: async () => {
|
|
@@ -3546,7 +3546,7 @@ function oh(e) {
|
|
|
3546
3546
|
//#region src/blocks/F0SharingDialog/F0SharingDialog.tsx
|
|
3547
3547
|
function sh(e) {
|
|
3548
3548
|
let { isOpen: t, title: n, description: r, onClose: i, dataTestId: a } = e;
|
|
3549
|
-
return /* @__PURE__ */ Q(
|
|
3549
|
+
return /* @__PURE__ */ Q(Wo, {
|
|
3550
3550
|
description: r,
|
|
3551
3551
|
isOpen: t,
|
|
3552
3552
|
onClose: i,
|
|
@@ -3569,7 +3569,7 @@ var ch = wn("F0SharingDialog", sh), lh = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
3569
3569
|
/* @__PURE__ */ Q(H, {
|
|
3570
3570
|
variant: "neutral",
|
|
3571
3571
|
size: "lg",
|
|
3572
|
-
icon:
|
|
3572
|
+
icon: ei,
|
|
3573
3573
|
label: e.left,
|
|
3574
3574
|
hideLabel: !0,
|
|
3575
3575
|
onClick: () => i("left")
|
|
@@ -3577,7 +3577,7 @@ var ch = wn("F0SharingDialog", sh), lh = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
3577
3577
|
/* @__PURE__ */ Q(H, {
|
|
3578
3578
|
variant: "outline",
|
|
3579
3579
|
size: "md",
|
|
3580
|
-
icon:
|
|
3580
|
+
icon: wo,
|
|
3581
3581
|
label: n,
|
|
3582
3582
|
hideLabel: !0,
|
|
3583
3583
|
disabled: !t,
|
|
@@ -3624,7 +3624,7 @@ var ch = wn("F0SharingDialog", sh), lh = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
3624
3624
|
zIndex: 1
|
|
3625
3625
|
}
|
|
3626
3626
|
}, mh = Ru(function({ riseFromStack: e, onCommit: t, offsetThreshold: n, velocityThreshold: r, reduceMotion: i, children: a }, o) {
|
|
3627
|
-
let s = dn(), c =
|
|
3627
|
+
let s = dn(), c = Ri(0), l = u(c, [
|
|
3628
3628
|
-480,
|
|
3629
3629
|
0,
|
|
3630
3630
|
dh
|
|
@@ -3930,7 +3930,7 @@ function Eh({ title: e, isActive: t = !1, onClick: n }) {
|
|
|
3930
3930
|
"aria-label": `${e}${t ? " (selected)" : ""}`,
|
|
3931
3931
|
"aria-pressed": n ? t : void 0,
|
|
3932
3932
|
children: [/* @__PURE__ */ Q(U, {
|
|
3933
|
-
icon:
|
|
3933
|
+
icon: vo,
|
|
3934
3934
|
size: "md",
|
|
3935
3935
|
color: "selected"
|
|
3936
3936
|
}), /* @__PURE__ */ Q(rr, {
|
|
@@ -4172,7 +4172,7 @@ var Lh = ({ entity: e, selected: t, onSelect: n, onRemove: r, marginLeft: i, sea
|
|
|
4172
4172
|
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",
|
|
4173
4173
|
children: [
|
|
4174
4174
|
p ? /* @__PURE__ */ Q(U, {
|
|
4175
|
-
icon:
|
|
4175
|
+
icon: _o,
|
|
4176
4176
|
className: "rounded-xs bg-f1-foreground-secondary text-f1-foreground-inverse"
|
|
4177
4177
|
}) : null,
|
|
4178
4178
|
/* @__PURE__ */ $("div", {
|
|
@@ -4247,7 +4247,7 @@ var zh = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
4247
4247
|
let t = n.find((t) => t.label === e);
|
|
4248
4248
|
t && !t.disabled && t.onClick?.();
|
|
4249
4249
|
}, a = n.every((e) => e.disabled);
|
|
4250
|
-
return /* @__PURE__ */ Q(
|
|
4250
|
+
return /* @__PURE__ */ Q(Ho, {
|
|
4251
4251
|
items: r,
|
|
4252
4252
|
value: e.label,
|
|
4253
4253
|
disabled: a,
|
|
@@ -4609,7 +4609,7 @@ var zh = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
4609
4609
|
} : void 0
|
|
4610
4610
|
}),
|
|
4611
4611
|
right: !n && /* @__PURE__ */ Q(U, {
|
|
4612
|
-
icon:
|
|
4612
|
+
icon: ei,
|
|
4613
4613
|
size: "sm",
|
|
4614
4614
|
className: "cursor-pointer text-f1-icon-secondary",
|
|
4615
4615
|
onClick: () => t?.(e)
|
|
@@ -5293,13 +5293,13 @@ var ug = Zc, dg = [
|
|
|
5293
5293
|
Dg.displayName = "F0TemplateTextInput";
|
|
5294
5294
|
//#endregion
|
|
5295
5295
|
//#region src/blocks/F0TemplateTextInput/index.tsx
|
|
5296
|
-
var Og = wn("F0TemplateTextInput", Dg), kg = wn("ActivityItem",
|
|
5296
|
+
var Og = wn("F0TemplateTextInput", Dg), kg = wn("ActivityItem", Wr(({ id: e, createdAt: t, title: n, description: r, icon: i, category: a, isUnread: o = !1, onClick: s, onVisible: c }) => {
|
|
5297
5297
|
let { ref: l } = sr({
|
|
5298
5298
|
threshold: .1,
|
|
5299
5299
|
onChange(t) {
|
|
5300
5300
|
t && c?.(e);
|
|
5301
5301
|
}
|
|
5302
|
-
}), u = Gc(), d =
|
|
5302
|
+
}), u = Gc(), d = ys(t, {
|
|
5303
5303
|
yesterdayRelative: !1,
|
|
5304
5304
|
locale: u
|
|
5305
5305
|
});
|
|
@@ -5310,7 +5310,7 @@ var Og = wn("F0TemplateTextInput", Dg), kg = wn("ActivityItem", Ur(({ id: e, cre
|
|
|
5310
5310
|
s(e);
|
|
5311
5311
|
},
|
|
5312
5312
|
children: [
|
|
5313
|
-
/* @__PURE__ */ Q(Js, { icon: i ??
|
|
5313
|
+
/* @__PURE__ */ Q(Js, { icon: i ?? Ia }),
|
|
5314
5314
|
/* @__PURE__ */ $("div", {
|
|
5315
5315
|
className: "flex-1",
|
|
5316
5316
|
children: [
|
|
@@ -5359,7 +5359,7 @@ var Og = wn("F0TemplateTextInput", Dg), kg = wn("ActivityItem", Ur(({ id: e, cre
|
|
|
5359
5359
|
}), /* @__PURE__ */ Q("div", {
|
|
5360
5360
|
className: "flex flex-col gap-1",
|
|
5361
5361
|
children: t
|
|
5362
|
-
})] }), jg =
|
|
5362
|
+
})] }), jg = Wr(({ title: e, items: t, onClickItem: n, onItemVisible: r }) => /* @__PURE__ */ Q(Ag, {
|
|
5363
5363
|
title: e,
|
|
5364
5364
|
children: t.map((e) => /* @__PURE__ */ Q(kg, {
|
|
5365
5365
|
...e,
|
|
@@ -5369,7 +5369,7 @@ var Og = wn("F0TemplateTextInput", Dg), kg = wn("ActivityItem", Ur(({ id: e, cre
|
|
|
5369
5369
|
}), ({ title: e, numItems: t }) => /* @__PURE__ */ Q(Ag, {
|
|
5370
5370
|
title: e,
|
|
5371
5371
|
children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ Q(kg.Skeleton, {}, t))
|
|
5372
|
-
})), Mg = /* @__PURE__ */ e(Si(), 1), Ng = /* @__PURE__ */ e(
|
|
5372
|
+
})), Mg = /* @__PURE__ */ e(Si(), 1), Ng = /* @__PURE__ */ e(aa(), 1), Pg = 3, Fg = [
|
|
5373
5373
|
"today",
|
|
5374
5374
|
"yesterday",
|
|
5375
5375
|
"lastWeek",
|
|
@@ -5378,7 +5378,7 @@ var Og = wn("F0TemplateTextInput", Dg), kg = wn("ActivityItem", Ur(({ id: e, cre
|
|
|
5378
5378
|
let t = Fg.indexOf(e);
|
|
5379
5379
|
return t === -1 ? -Number(e) : t - 4e3;
|
|
5380
5380
|
}), Lg = () => /* @__PURE__ */ Q("div", { className: "-mx-2 h-px bg-f1-background-secondary" }), Rg = ({ items: e, loadingMoreItems: t = !1, onClickItem: n, onEndReached: r, onEndReachedItemsThreshold: i = 5 }) => {
|
|
5381
|
-
let a = z(), o =
|
|
5381
|
+
let a = z(), o = ha(e, "createdAt"), s = new Set(Object.values(o).slice().flatMap((e) => e.map((e) => e.id)).slice(-i)), c = (0, Ng.default)((e) => {
|
|
5382
5382
|
s.has(e) && r?.();
|
|
5383
5383
|
}, 1e3), l = Ig(Object.entries(o).filter(([e, t]) => !!t.length));
|
|
5384
5384
|
return /* @__PURE__ */ $("div", {
|
|
@@ -5411,7 +5411,7 @@ var Og = wn("F0TemplateTextInput", Dg), kg = wn("ActivityItem", Ur(({ id: e, cre
|
|
|
5411
5411
|
})
|
|
5412
5412
|
]
|
|
5413
5413
|
});
|
|
5414
|
-
}, Bg = wn("ActivityItemList",
|
|
5414
|
+
}, Bg = wn("ActivityItemList", Wr(Rg, zg));
|
|
5415
5415
|
//#endregion
|
|
5416
5416
|
//#region src/blocks/F0ResourceHeader/useCompactOnScroll.ts
|
|
5417
5417
|
function Vg({ threshold: e = 24, container: t }) {
|
|
@@ -5466,7 +5466,7 @@ var Ug = [
|
|
|
5466
5466
|
critical: Bc,
|
|
5467
5467
|
warning: $c,
|
|
5468
5468
|
info: Wc,
|
|
5469
|
-
promote:
|
|
5469
|
+
promote: va,
|
|
5470
5470
|
context: Wc
|
|
5471
5471
|
}, Yg = /* @__PURE__ */ new Set(["promote", "context"]), Xg = "promote", Zg = /^\p{Emoji}\uFE0F?$/u, Qg = (e) => e.variant === Xg && e.emoji !== void 0 && Zg.test(e.emoji), $g = (e) => Qg(e) ? {
|
|
5472
5472
|
kind: "emoji",
|
|
@@ -5615,7 +5615,7 @@ function T_({ notices: e, controlSize: t, onActionClick: n, onDismiss: r }) {
|
|
|
5615
5615
|
e.variant === "critical" || e.variant === "warning" || e.variant === "info" ? /* @__PURE__ */ Q(W, {
|
|
5616
5616
|
shrink: !1,
|
|
5617
5617
|
"aria-hidden": "true",
|
|
5618
|
-
children: /* @__PURE__ */ Q(
|
|
5618
|
+
children: /* @__PURE__ */ Q(kr, {
|
|
5619
5619
|
type: e.variant,
|
|
5620
5620
|
size: "sm"
|
|
5621
5621
|
})
|
|
@@ -5668,7 +5668,7 @@ function T_({ notices: e, controlSize: t, onActionClick: n, onDismiss: r }) {
|
|
|
5668
5668
|
r_(e) ? /* @__PURE__ */ Q("div", {
|
|
5669
5669
|
className: "shrink-0 self-start",
|
|
5670
5670
|
children: /* @__PURE__ */ Q(H, {
|
|
5671
|
-
icon:
|
|
5671
|
+
icon: ei,
|
|
5672
5672
|
label: a("systemBanner.dismissNotice", { title: e.title }),
|
|
5673
5673
|
hideLabel: !0,
|
|
5674
5674
|
tooltip: i.dismiss,
|
|
@@ -5878,7 +5878,7 @@ function N_({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
5878
5878
|
onOpenChange: y,
|
|
5879
5879
|
shouldScaleBackground: !1,
|
|
5880
5880
|
autoFocus: !0,
|
|
5881
|
-
children: [/* @__PURE__ */ Q(
|
|
5881
|
+
children: [/* @__PURE__ */ Q(Jr, {
|
|
5882
5882
|
asChild: !0,
|
|
5883
5883
|
children: /* @__PURE__ */ $("button", {
|
|
5884
5884
|
ref: x,
|
|
@@ -5899,7 +5899,7 @@ function N_({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
5899
5899
|
})
|
|
5900
5900
|
]
|
|
5901
5901
|
})
|
|
5902
|
-
}), /* @__PURE__ */ $(
|
|
5902
|
+
}), /* @__PURE__ */ $(li, {
|
|
5903
5903
|
overlayClassName: "bg-f1-background-overlay",
|
|
5904
5904
|
className: "max-h-system-banner-sheet bg-f1-background text-f1-foreground",
|
|
5905
5905
|
ref: S,
|
|
@@ -5907,7 +5907,7 @@ function N_({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
5907
5907
|
onOpenAutoFocus: P,
|
|
5908
5908
|
onCloseAutoFocus: N,
|
|
5909
5909
|
children: [
|
|
5910
|
-
/* @__PURE__ */ Q(
|
|
5910
|
+
/* @__PURE__ */ Q(Lr, {
|
|
5911
5911
|
className: "sr-only",
|
|
5912
5912
|
children: i.listTitle
|
|
5913
5913
|
}),
|
|
@@ -5921,7 +5921,7 @@ function N_({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
5921
5921
|
paddingX: "md",
|
|
5922
5922
|
paddingBottom: "lg",
|
|
5923
5923
|
paddingTop: "sm",
|
|
5924
|
-
children: /* @__PURE__ */ Q(
|
|
5924
|
+
children: /* @__PURE__ */ Q(co, {
|
|
5925
5925
|
asChild: !0,
|
|
5926
5926
|
children: /* @__PURE__ */ Q(er, {
|
|
5927
5927
|
label: a.close,
|
|
@@ -6001,7 +6001,7 @@ function N_({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6001
6001
|
}) : null,
|
|
6002
6002
|
h ? L : null,
|
|
6003
6003
|
r_(l) ? /* @__PURE__ */ Q(H, {
|
|
6004
|
-
icon:
|
|
6004
|
+
icon: ei,
|
|
6005
6005
|
label: o("systemBanner.dismissNotice", { title: l.title }),
|
|
6006
6006
|
hideLabel: !0,
|
|
6007
6007
|
tooltip: i.dismiss,
|
|
@@ -6188,7 +6188,7 @@ var z_ = ({ link: e, firstName: t, lastName: n, src: r, onClick: i, canReact: a
|
|
|
6188
6188
|
})]
|
|
6189
6189
|
}), /* @__PURE__ */ Q("div", {
|
|
6190
6190
|
className: "shrink-0",
|
|
6191
|
-
children: /* @__PURE__ */ Q(
|
|
6191
|
+
children: /* @__PURE__ */ Q(Ja, { date: u })
|
|
6192
6192
|
})]
|
|
6193
6193
|
})
|
|
6194
6194
|
]
|
|
@@ -6211,7 +6211,7 @@ var z_ = ({ link: e, firstName: t, lastName: n, src: r, onClick: i, canReact: a
|
|
|
6211
6211
|
})
|
|
6212
6212
|
})
|
|
6213
6213
|
})]
|
|
6214
|
-
}), V_ =
|
|
6214
|
+
}), V_ = Wr(z_, B_), H_ = ({ title: e, subtitle: t, buttonLabel: n, onClick: r }) => /* @__PURE__ */ $("div", {
|
|
6215
6215
|
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",
|
|
6216
6216
|
children: [/* @__PURE__ */ $("div", {
|
|
6217
6217
|
className: "flex flex-col items-start gap-3 sm:flex-row sm:items-center",
|
|
@@ -6317,7 +6317,7 @@ function W_({ items: e, onInteraction: t, locale: n, action: r }) {
|
|
|
6317
6317
|
});
|
|
6318
6318
|
}
|
|
6319
6319
|
var G_ = wn("Reactions", W_), K_ = Ru(function({ content: e, collapsed: t, id: n, className: r, tabIndex: i }, a) {
|
|
6320
|
-
return /* @__PURE__ */ Q(
|
|
6320
|
+
return /* @__PURE__ */ Q(Po, {
|
|
6321
6321
|
ref: a,
|
|
6322
6322
|
id: n,
|
|
6323
6323
|
content: e,
|
|
@@ -6326,7 +6326,7 @@ var G_ = wn("Reactions", W_), K_ = Ru(function({ content: e, collapsed: t, id: n
|
|
|
6326
6326
|
});
|
|
6327
6327
|
});
|
|
6328
6328
|
K_.displayName = "BasePostDescription";
|
|
6329
|
-
var q_ =
|
|
6329
|
+
var q_ = Wr(K_, () => /* @__PURE__ */ $("div", {
|
|
6330
6330
|
className: "flex flex-col justify-around gap-3 py-2",
|
|
6331
6331
|
children: [/* @__PURE__ */ Q(B, { className: "h-2.5 w-1/2 rounded-2xs" }), /* @__PURE__ */ Q(B, { className: "h-2.5 w-2/3 rounded-2xs" })]
|
|
6332
6332
|
})), J_ = ({ tags: e, right: t }) => /* @__PURE__ */ Q("div", {
|
|
@@ -6349,7 +6349,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6349
6349
|
return /* @__PURE__ */ $("div", {
|
|
6350
6350
|
className: "flex flex-row items-center",
|
|
6351
6351
|
children: [
|
|
6352
|
-
e ? /* @__PURE__ */ Q(
|
|
6352
|
+
e ? /* @__PURE__ */ Q(Ja, {
|
|
6353
6353
|
date: e,
|
|
6354
6354
|
size: r
|
|
6355
6355
|
}) : null,
|
|
@@ -6358,7 +6358,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6358
6358
|
size: "sm",
|
|
6359
6359
|
className: "text-f1-foreground-tertiary"
|
|
6360
6360
|
}) : null,
|
|
6361
|
-
t ? /* @__PURE__ */ Q(
|
|
6361
|
+
t ? /* @__PURE__ */ Q(Ja, {
|
|
6362
6362
|
date: t,
|
|
6363
6363
|
size: r
|
|
6364
6364
|
}) : null
|
|
@@ -6452,8 +6452,8 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6452
6452
|
if (e.includes("//s3.")) return e.includes("response-content-type=video");
|
|
6453
6453
|
let t = (e?.split(".")).at(-1);
|
|
6454
6454
|
return !!t && Q_.has(t);
|
|
6455
|
-
}, ev =
|
|
6456
|
-
let i = Gc(), a =
|
|
6455
|
+
}, ev = Wr(({ title: e, mediaUrl: t, place: n, date: r }) => {
|
|
6456
|
+
let i = Gc(), a = ds(r, i);
|
|
6457
6457
|
return n && (a = `${a} · ${n}`), /* @__PURE__ */ $("div", {
|
|
6458
6458
|
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",
|
|
6459
6459
|
children: [t ? /* @__PURE__ */ Q("div", {
|
|
@@ -6507,7 +6507,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6507
6507
|
})
|
|
6508
6508
|
});
|
|
6509
6509
|
}, nv = ({ 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 }) => {
|
|
6510
|
-
let T = Uu(), E = Uu(), D = Gc(), 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 ?
|
|
6510
|
+
let T = Uu(), E = Uu(), D = Gc(), 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 ? Ea(r, D) : ys(r, { locale: D }), L = !!o, ee = o ? () => o(e) : void 0, te = (e) => {
|
|
6511
6511
|
e.stopPropagation();
|
|
6512
6512
|
}, ne = t ? `${t.firstName} ${t.lastName}` : void 0, re = (t) => {
|
|
6513
6513
|
t.preventDefault(), t.stopPropagation(), a && A({
|
|
@@ -6543,7 +6543,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6543
6543
|
/* @__PURE__ */ $("div", {
|
|
6544
6544
|
className: "flex min-w-0 flex-row items-center gap-3",
|
|
6545
6545
|
children: [
|
|
6546
|
-
t ? /* @__PURE__ */ Q(
|
|
6546
|
+
t ? /* @__PURE__ */ Q(ti, {
|
|
6547
6547
|
href: t.url || "#",
|
|
6548
6548
|
title: ne,
|
|
6549
6549
|
className: "flex items-center leading-[0]",
|
|
@@ -6553,12 +6553,12 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6553
6553
|
lastName: t.lastName,
|
|
6554
6554
|
src: t.avatarUrl
|
|
6555
6555
|
})
|
|
6556
|
-
}) : /* @__PURE__ */ Q(Js, { icon:
|
|
6556
|
+
}) : /* @__PURE__ */ Q(Js, { icon: Ds }),
|
|
6557
6557
|
/* @__PURE__ */ $("div", {
|
|
6558
6558
|
className: "flex min-w-0 flex-1 flex-col",
|
|
6559
6559
|
children: [/* @__PURE__ */ $("div", {
|
|
6560
6560
|
className: "flex min-w-0 flex-1 flex-row flex-wrap items-center gap-1",
|
|
6561
|
-
children: [t ? /* @__PURE__ */ Q(
|
|
6561
|
+
children: [t ? /* @__PURE__ */ Q(ti, {
|
|
6562
6562
|
href: t.url,
|
|
6563
6563
|
title: ne,
|
|
6564
6564
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
@@ -6567,7 +6567,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6567
6567
|
}) : null, y ? null : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
6568
6568
|
className: V("text-f1-foreground-secondary", !t && "capitalize"),
|
|
6569
6569
|
children: d
|
|
6570
|
-
}), /* @__PURE__ */ Q(
|
|
6570
|
+
}), /* @__PURE__ */ Q(ti, {
|
|
6571
6571
|
onClick: n.onClick,
|
|
6572
6572
|
title: n.title,
|
|
6573
6573
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
@@ -6578,7 +6578,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6578
6578
|
}), /* @__PURE__ */ $("span", {
|
|
6579
6579
|
className: "flex flex-row items-center gap-1.5 text-base text-f1-foreground-secondary",
|
|
6580
6580
|
children: [I, b ? /* @__PURE__ */ Q(U, {
|
|
6581
|
-
icon:
|
|
6581
|
+
icon: fi,
|
|
6582
6582
|
size: "xs",
|
|
6583
6583
|
"aria-label": x,
|
|
6584
6584
|
role: x ? "img" : void 0
|
|
@@ -6665,7 +6665,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6665
6665
|
action: {
|
|
6666
6666
|
label: f.label,
|
|
6667
6667
|
onClick: f.onClick,
|
|
6668
|
-
icon:
|
|
6668
|
+
icon: Xr
|
|
6669
6669
|
}
|
|
6670
6670
|
})
|
|
6671
6671
|
]
|
|
@@ -6708,7 +6708,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6708
6708
|
})
|
|
6709
6709
|
]
|
|
6710
6710
|
})]
|
|
6711
|
-
}), iv =
|
|
6711
|
+
}), iv = Wr(nv, rv), av = "aspect-video", ov = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", sv = "h-96", cv = (e, t) => t > 0 ? Math.max(1, Math.floor(e / t)) : 1, lv = (e) => {
|
|
6712
6712
|
let t = Number.parseFloat(window.getComputedStyle(e).lineHeight);
|
|
6713
6713
|
if (t > 0) return t;
|
|
6714
6714
|
let n = e.firstElementChild, r = n ? Number.parseFloat(window.getComputedStyle(n).lineHeight) : NaN;
|
|
@@ -6933,7 +6933,7 @@ var q_ = Ur(K_, () => /* @__PURE__ */ $("div", {
|
|
|
6933
6933
|
})]
|
|
6934
6934
|
});
|
|
6935
6935
|
yv.displayName = "OnePersonListItem";
|
|
6936
|
-
var xv = yn(wn("OnePersonListItem",
|
|
6936
|
+
var xv = yn(wn("OnePersonListItem", Wr(yv, bv))), Sv = "[anchor-name:--f0-composer-column]";
|
|
6937
6937
|
function Cv({ composer: e, away: t, reserveComposerSpace: n = !1, children: r }) {
|
|
6938
6938
|
if (!e) return /* @__PURE__ */ Q("div", {
|
|
6939
6939
|
className: "contents",
|
|
@@ -6963,7 +6963,7 @@ function Cv({ composer: e, away: t, reserveComposerSpace: n = !1, children: r })
|
|
|
6963
6963
|
//#endregion
|
|
6964
6964
|
//#region src/blocks/ApplicationFrame/SidePanel/SidePanelContentWindow.tsx
|
|
6965
6965
|
var wv = () => {
|
|
6966
|
-
let { open: e, activeContent: t, contentSide: n, restoringViewId: r } =
|
|
6966
|
+
let { open: e, activeContent: t, contentSide: n, restoringViewId: r } = br(), i = Xn(), a = Y(t);
|
|
6967
6967
|
t && (a.current = t);
|
|
6968
6968
|
let o = !t && r ? {
|
|
6969
6969
|
id: r,
|
|
@@ -6995,7 +6995,7 @@ var wv = () => {
|
|
|
6995
6995
|
};
|
|
6996
6996
|
//#endregion
|
|
6997
6997
|
//#region src/blocks/ApplicationFrame/useWindowResizing.ts
|
|
6998
|
-
function Tv(e =
|
|
6998
|
+
function Tv(e = go) {
|
|
6999
6999
|
let [t, n] = X(!1);
|
|
7000
7000
|
return K(() => {
|
|
7001
7001
|
let t = 0, r = () => {
|
|
@@ -7011,7 +7011,7 @@ function Tv(e = uo) {
|
|
|
7011
7011
|
var Ev = 8, Dv = 8, Ov = (e, t) => e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || t.target !== "" && t.target !== "_self" || t.hasAttribute("download"), kv = ({ shellRef: e, overlays: t, isOpen: n, animates: r, width: i, topBarHeight: a, onLinkClickOverPage: o, children: s }) => /* @__PURE__ */ Q("div", {
|
|
7012
7012
|
ref: e,
|
|
7013
7013
|
"data-testid": "secondary-sidebar-shell",
|
|
7014
|
-
className: V("z-0 shrink-0", n ? "opacity-100" : "pointer-events-none opacity-0", r ? V("transition-[width,margin,opacity]",
|
|
7014
|
+
className: V("z-0 shrink-0", n ? "opacity-100" : "pointer-events-none opacity-0", r ? V("transition-[width,margin,opacity]", ss) : "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"),
|
|
7015
7015
|
style: {
|
|
7016
7016
|
"--ds-sidebar-width": `${i}px`,
|
|
7017
7017
|
width: t || n ? i : 0,
|
|
@@ -7033,7 +7033,7 @@ function Av({ primarySidebar: e, secondarySidebar: t }) {
|
|
|
7033
7033
|
if (!n) throw Error("NavigationLayout must be rendered by ApplicationFrame with a primarySidebar");
|
|
7034
7034
|
return /* @__PURE__ */ Q(eu, {
|
|
7035
7035
|
value: "two-level",
|
|
7036
|
-
children: /* @__PURE__ */ Q(
|
|
7036
|
+
children: /* @__PURE__ */ Q(Qi, {
|
|
7037
7037
|
value: !0,
|
|
7038
7038
|
children: /* @__PURE__ */ Q(jv, {
|
|
7039
7039
|
navigation: n,
|
|
@@ -7071,7 +7071,7 @@ function jv({ navigation: e, primarySidebar: t, secondarySidebar: n }) {
|
|
|
7071
7071
|
className: "relative z-10 h-full shrink-0",
|
|
7072
7072
|
children: [t, /* @__PURE__ */ Q("span", {
|
|
7073
7073
|
"aria-hidden": "true",
|
|
7074
|
-
className: V("pointer-events-none absolute inset-y-0 right-0 w-px bg-f1-border-secondary", v && C ? "opacity-100" : "opacity-0", x ? V("transition-opacity",
|
|
7074
|
+
className: V("pointer-events-none absolute inset-y-0 right-0 w-px bg-f1-border-secondary", v && C ? "opacity-100" : "opacity-0", x ? V("transition-opacity", ss) : "transition-none", "[mask-image:linear-gradient(to_bottom,transparent_0,transparent_6px,#000_24px,#000_calc(100%-24px),transparent_calc(100%-6px),transparent_100%)]")
|
|
7075
7075
|
})]
|
|
7076
7076
|
}),
|
|
7077
7077
|
v ? /* @__PURE__ */ Q(kv, {
|
|
@@ -7840,7 +7840,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
7840
7840
|
width: window.innerWidth,
|
|
7841
7841
|
height: window.innerHeight
|
|
7842
7842
|
}, lx = () => {
|
|
7843
|
-
let [e, t] =
|
|
7843
|
+
let [e, t] = Kr({
|
|
7844
7844
|
key: ob,
|
|
7845
7845
|
fallback: sx,
|
|
7846
7846
|
validate: $b
|
|
@@ -7896,7 +7896,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
7896
7896
|
}
|
|
7897
7897
|
return e.values().next().value ?? null;
|
|
7898
7898
|
}, mx = Lu(null), hx = ({ defaultMode: e = "fullscreen", roomId: t = "", pictureInPicture: n = !0, children: r }) => {
|
|
7899
|
-
let [i, a] =
|
|
7899
|
+
let [i, a] = Kr({
|
|
7900
7900
|
key: sb,
|
|
7901
7901
|
fallback: {
|
|
7902
7902
|
roomId: t,
|
|
@@ -7918,12 +7918,12 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
7918
7918
|
...n,
|
|
7919
7919
|
[t]: e
|
|
7920
7920
|
});
|
|
7921
|
-
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, L] =
|
|
7921
|
+
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, L] = Kr({
|
|
7922
7922
|
key: cb,
|
|
7923
7923
|
fallback: 420,
|
|
7924
7924
|
validate: (e) => typeof e == "number" && Number.isFinite(e) && e >= 320,
|
|
7925
7925
|
debounceMs: 150
|
|
7926
|
-
}), ee = G(() => L(420), [L]), [te, ne] =
|
|
7926
|
+
}), ee = G(() => L(420), [L]), [te, ne] = Kr({
|
|
7927
7927
|
key: ub,
|
|
7928
7928
|
fallback: db,
|
|
7929
7929
|
validate: vb,
|
|
@@ -8173,7 +8173,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
8173
8173
|
...t,
|
|
8174
8174
|
id: "chat",
|
|
8175
8175
|
label: n,
|
|
8176
|
-
icon:
|
|
8176
|
+
icon: Uo
|
|
8177
8177
|
}] : [])).filter((e) => e.tabs.length > 0), Tx = () => {
|
|
8178
8178
|
let e = z(), { sidePanels: t, sidePanel: n } = bx();
|
|
8179
8179
|
return J(() => wx(t, n, e.meeting.chatPanel), [
|
|
@@ -8186,10 +8186,10 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
8186
8186
|
left: "[@media(pointer:coarse)]:before:-inset-y-[6px] [@media(pointer:coarse)]:before:-left-[6px] [@media(pointer:coarse)]:before:right-0",
|
|
8187
8187
|
right: "[@media(pointer:coarse)]:before:-inset-y-[6px] [@media(pointer:coarse)]:before:left-0 [@media(pointer:coarse)]:before:-right-[6px]"
|
|
8188
8188
|
}, kx = (e = "all") => V("relative", Dx, Ox[e]), Ax = () => "[@media(pointer:coarse)]:[&>button]:before:absolute [@media(pointer:coarse)]:[&>button]:before:content-[''] [@media(pointer:coarse)]:[&>button]:before:-inset-[6px]", jx = () => {
|
|
8189
|
-
let e = z(), { effectiveMode: t, setMode: n, hasPanelSlot: r, panelSide: i } = gx(), a = i === "left" ?
|
|
8189
|
+
let e = z(), { effectiveMode: t, setMode: n, hasPanelSlot: r, panelSide: i } = gx(), a = i === "left" ? $i : Gi, o = [
|
|
8190
8190
|
{
|
|
8191
8191
|
mode: "floating",
|
|
8192
|
-
icon:
|
|
8192
|
+
icon: Er,
|
|
8193
8193
|
label: e.meeting.modeFloating
|
|
8194
8194
|
},
|
|
8195
8195
|
{
|
|
@@ -8199,7 +8199,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
8199
8199
|
},
|
|
8200
8200
|
{
|
|
8201
8201
|
mode: "fullscreen",
|
|
8202
|
-
icon:
|
|
8202
|
+
icon: Ii,
|
|
8203
8203
|
label: e.meeting.modeFullscreen
|
|
8204
8204
|
}
|
|
8205
8205
|
], s = (t === "minimized" ? o.filter((e) => e.mode === "floating") : o).filter((e) => e.mode !== "panel" && e.mode !== "fullscreen" || r);
|
|
@@ -8306,7 +8306,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
8306
8306
|
variant: "ghost",
|
|
8307
8307
|
size: "md",
|
|
8308
8308
|
hideLabel: !0,
|
|
8309
|
-
icon:
|
|
8309
|
+
icon: za,
|
|
8310
8310
|
label: e.meeting.exitPictureInPicture,
|
|
8311
8311
|
onClick: () => {
|
|
8312
8312
|
t(), window.focus();
|
|
@@ -8665,7 +8665,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
8665
8665
|
height: 32
|
|
8666
8666
|
},
|
|
8667
8667
|
children: e.id === "frequent" ? /* @__PURE__ */ Q(U, {
|
|
8668
|
-
icon:
|
|
8668
|
+
icon: ca,
|
|
8669
8669
|
size: "md"
|
|
8670
8670
|
}) : /* @__PURE__ */ Q(Yn, {
|
|
8671
8671
|
emoji: xS[e.id],
|
|
@@ -8865,7 +8865,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
8865
8865
|
IS.delete(e), IS.size === 0 && window.removeEventListener("storage", LS);
|
|
8866
8866
|
}), zS = () => null, BS = (e) => {
|
|
8867
8867
|
let t = PS(NS());
|
|
8868
|
-
|
|
8868
|
+
ea(AS, {
|
|
8869
8869
|
...t,
|
|
8870
8870
|
[e.id]: Math.min((t[e.id] ?? 0) + 1, MS)
|
|
8871
8871
|
}), LS();
|
|
@@ -9029,7 +9029,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9029
9029
|
noAutoTooltip: s,
|
|
9030
9030
|
label: t,
|
|
9031
9031
|
size: n,
|
|
9032
|
-
icon: i ??
|
|
9032
|
+
icon: i ?? _r,
|
|
9033
9033
|
pressed: d,
|
|
9034
9034
|
onClick: (e) => {
|
|
9035
9035
|
e.preventDefault(), e.stopPropagation(), f(!d);
|
|
@@ -9262,7 +9262,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9262
9262
|
return t;
|
|
9263
9263
|
}, kC = (e) => {
|
|
9264
9264
|
let t = CC(yC());
|
|
9265
|
-
t.v > vC || (
|
|
9265
|
+
t.v > vC || (ea(lb, {
|
|
9266
9266
|
...t,
|
|
9267
9267
|
...e,
|
|
9268
9268
|
v: vC
|
|
@@ -9626,8 +9626,8 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9626
9626
|
i.push({
|
|
9627
9627
|
id: "core:microphone",
|
|
9628
9628
|
label: r.microphone.enabled ? t.meeting.turnOffMicrophone : t.meeting.turnOnMicrophone,
|
|
9629
|
-
icon:
|
|
9630
|
-
activeIcon:
|
|
9629
|
+
icon: Do,
|
|
9630
|
+
activeIcon: rs,
|
|
9631
9631
|
pressed: !r.microphone.enabled,
|
|
9632
9632
|
pending: r.microphone.pending,
|
|
9633
9633
|
disabled: u?.canPublishAudio === !1 || !!d,
|
|
@@ -9645,7 +9645,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9645
9645
|
source: r.microphone,
|
|
9646
9646
|
output: r.speaker,
|
|
9647
9647
|
label: t.meeting.selectMicrophone,
|
|
9648
|
-
icon:
|
|
9648
|
+
icon: Pr,
|
|
9649
9649
|
priority: 70
|
|
9650
9650
|
});
|
|
9651
9651
|
f && i.push(f);
|
|
@@ -9657,8 +9657,8 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9657
9657
|
i.push({
|
|
9658
9658
|
id: "core:camera",
|
|
9659
9659
|
label: r.camera.enabled ? t.meeting.turnOffCamera : t.meeting.turnOnCamera,
|
|
9660
|
-
icon:
|
|
9661
|
-
activeIcon:
|
|
9660
|
+
icon: jo,
|
|
9661
|
+
activeIcon: xa,
|
|
9662
9662
|
pressed: !r.camera.enabled,
|
|
9663
9663
|
pending: r.camera.pending,
|
|
9664
9664
|
disabled: u?.canPublishVideo === !1 || !!p,
|
|
@@ -9675,7 +9675,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9675
9675
|
id: "core:cameraSettings",
|
|
9676
9676
|
source: r.camera,
|
|
9677
9677
|
label: t.meeting.selectCamera,
|
|
9678
|
-
icon:
|
|
9678
|
+
icon: Zo,
|
|
9679
9679
|
priority: 65
|
|
9680
9680
|
});
|
|
9681
9681
|
if (m && i.push(m), n.hasScreenShare) {
|
|
@@ -9683,7 +9683,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9683
9683
|
i.push({
|
|
9684
9684
|
id: "core:screenShare",
|
|
9685
9685
|
label: e ? t.meeting.stopSharing : t.meeting.shareScreen,
|
|
9686
|
-
icon:
|
|
9686
|
+
icon: Hi,
|
|
9687
9687
|
pressed: e,
|
|
9688
9688
|
pending: r.screenShare?.pending,
|
|
9689
9689
|
disabled: u?.canShareScreen === !1,
|
|
@@ -9695,7 +9695,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9695
9695
|
return n.hasReactions && i.push({
|
|
9696
9696
|
id: "core:reactions",
|
|
9697
9697
|
label: t.meeting.reactions,
|
|
9698
|
-
icon:
|
|
9698
|
+
icon: _r,
|
|
9699
9699
|
priority: 41,
|
|
9700
9700
|
group: "reactions",
|
|
9701
9701
|
modes: [
|
|
@@ -9707,7 +9707,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9707
9707
|
}), n.hasRaiseHand && i.push({
|
|
9708
9708
|
id: "core:raiseHand",
|
|
9709
9709
|
label: l ? t.meeting.lowerHand : t.meeting.raiseHand,
|
|
9710
|
-
icon:
|
|
9710
|
+
icon: Ai,
|
|
9711
9711
|
emoji: "✋",
|
|
9712
9712
|
pressed: l,
|
|
9713
9713
|
onClick: () => n.setHandRaised(!l),
|
|
@@ -9734,7 +9734,7 @@ var py = oy.categories.flatMap((e) => sy.includes(e.id) ? [{
|
|
|
9734
9734
|
}), i.push({
|
|
9735
9735
|
id: "core:leave",
|
|
9736
9736
|
label: t.meeting.leave,
|
|
9737
|
-
icon:
|
|
9737
|
+
icon: Di,
|
|
9738
9738
|
variant: "critical",
|
|
9739
9739
|
onClick: () => void c(),
|
|
9740
9740
|
pinned: !0,
|
|
@@ -10312,24 +10312,24 @@ var eT = () => {
|
|
|
10312
10312
|
return qu(t, n, n);
|
|
10313
10313
|
}, tT = {
|
|
10314
10314
|
duration: Vl.duration.base,
|
|
10315
|
-
ease:
|
|
10315
|
+
ease: qa
|
|
10316
10316
|
}, nT = [
|
|
10317
10317
|
"left",
|
|
10318
10318
|
"top",
|
|
10319
10319
|
"width",
|
|
10320
10320
|
"height"
|
|
10321
|
-
].map((e) => `${e} ${Math.round(tT.duration * 1e3)}ms cubic-bezier(${
|
|
10321
|
+
].map((e) => `${e} ${Math.round(tT.duration * 1e3)}ms cubic-bezier(${qa.join(",")})`).join(", "), rT = {
|
|
10322
10322
|
duration: Vl.duration.base,
|
|
10323
|
-
ease:
|
|
10323
|
+
ease: qa
|
|
10324
10324
|
}, iT = {
|
|
10325
10325
|
duration: Vl.duration.fast,
|
|
10326
|
-
ease:
|
|
10326
|
+
ease: qa
|
|
10327
10327
|
}, aT = {
|
|
10328
10328
|
duration: Vl.duration.micro,
|
|
10329
10329
|
ease: "easeIn"
|
|
10330
10330
|
}, oT = {
|
|
10331
10331
|
duration: Vl.duration.fast,
|
|
10332
|
-
ease:
|
|
10332
|
+
ease: qa
|
|
10333
10333
|
}, sT = {
|
|
10334
10334
|
duration: Vl.duration.micro,
|
|
10335
10335
|
ease: "easeIn"
|
|
@@ -10406,7 +10406,7 @@ var eT = () => {
|
|
|
10406
10406
|
hideLabel: !0,
|
|
10407
10407
|
size: "sm",
|
|
10408
10408
|
variant: "neutral",
|
|
10409
|
-
icon:
|
|
10409
|
+
icon: Do,
|
|
10410
10410
|
label: n.t("meeting.muteParticipant", { name: e.name }),
|
|
10411
10411
|
onClick: () => r?.muteParticipant?.(e)
|
|
10412
10412
|
})
|
|
@@ -10433,7 +10433,7 @@ var eT = () => {
|
|
|
10433
10433
|
!i && (a || o) ? /* @__PURE__ */ Q("span", {
|
|
10434
10434
|
className: V("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"),
|
|
10435
10435
|
children: /* @__PURE__ */ Q(U, {
|
|
10436
|
-
icon: a ?
|
|
10436
|
+
icon: a ? Hi : rs,
|
|
10437
10437
|
size: "xs",
|
|
10438
10438
|
"aria-label": a ? n.meeting.sharingScreen : n.meeting.muted
|
|
10439
10439
|
})
|
|
@@ -10534,12 +10534,12 @@ var eT = () => {
|
|
|
10534
10534
|
children: e.participant.name
|
|
10535
10535
|
}),
|
|
10536
10536
|
kb(e.participant) ? /* @__PURE__ */ Q(U, {
|
|
10537
|
-
icon:
|
|
10537
|
+
icon: rs,
|
|
10538
10538
|
size: "sm",
|
|
10539
10539
|
color: "secondary"
|
|
10540
10540
|
}) : null,
|
|
10541
10541
|
Ab(e) ? null : /* @__PURE__ */ Q(U, {
|
|
10542
|
-
icon:
|
|
10542
|
+
icon: xa,
|
|
10543
10543
|
size: "sm",
|
|
10544
10544
|
color: "secondary"
|
|
10545
10545
|
})
|
|
@@ -10651,10 +10651,10 @@ var eT = () => {
|
|
|
10651
10651
|
className: V("flex shrink-0 items-center justify-center", n ? "h-4 w-[23px]" : "h-6 w-7"),
|
|
10652
10652
|
"data-testid": "meeting-tile-label-state",
|
|
10653
10653
|
children: o ? /* @__PURE__ */ Q(U, {
|
|
10654
|
-
icon:
|
|
10654
|
+
icon: Hi,
|
|
10655
10655
|
size: "sm"
|
|
10656
10656
|
}) : s ? /* @__PURE__ */ Q(U, {
|
|
10657
|
-
icon:
|
|
10657
|
+
icon: rs,
|
|
10658
10658
|
size: "sm"
|
|
10659
10659
|
}) : /* @__PURE__ */ Q(MT, {
|
|
10660
10660
|
participantId: i.id,
|
|
@@ -10671,7 +10671,7 @@ var eT = () => {
|
|
|
10671
10671
|
hideLabel: !0,
|
|
10672
10672
|
size: "sm",
|
|
10673
10673
|
variant: "neutral",
|
|
10674
|
-
icon:
|
|
10674
|
+
icon: Do,
|
|
10675
10675
|
loading: r,
|
|
10676
10676
|
onClick: () => {
|
|
10677
10677
|
i(!0), t(), window.setTimeout(() => i(!1), BT);
|
|
@@ -10741,7 +10741,7 @@ var eT = () => {
|
|
|
10741
10741
|
hideLabel: !0,
|
|
10742
10742
|
size: "sm",
|
|
10743
10743
|
variant: "neutral",
|
|
10744
|
-
icon: l ?
|
|
10744
|
+
icon: l ? za : Yo,
|
|
10745
10745
|
onClick: u,
|
|
10746
10746
|
label: l ? s.meeting.exitFullscreen : s.meeting.enterFullscreen
|
|
10747
10747
|
}) }) : null,
|
|
@@ -10750,7 +10750,7 @@ var eT = () => {
|
|
|
10750
10750
|
size: "sm",
|
|
10751
10751
|
variant: "neutral",
|
|
10752
10752
|
onClick: () => a?.(e.key),
|
|
10753
|
-
icon: r ?
|
|
10753
|
+
icon: r ? fi : yi,
|
|
10754
10754
|
label: r ? s.meeting.unpinParticipant : s.meeting.pinParticipant
|
|
10755
10755
|
}) }) : null
|
|
10756
10756
|
]
|
|
@@ -11207,7 +11207,7 @@ var eT = () => {
|
|
|
11207
11207
|
}) : null,
|
|
11208
11208
|
/* @__PURE__ */ $("div", {
|
|
11209
11209
|
className: "flex shrink-0 items-center",
|
|
11210
|
-
children: [/* @__PURE__ */ Q(
|
|
11210
|
+
children: [/* @__PURE__ */ Q(ko, {
|
|
11211
11211
|
tabs: v,
|
|
11212
11212
|
activeTabId: g,
|
|
11213
11213
|
setActiveTabId: c
|
|
@@ -11218,7 +11218,7 @@ var eT = () => {
|
|
|
11218
11218
|
variant: "outline",
|
|
11219
11219
|
size: "md",
|
|
11220
11220
|
hideLabel: !0,
|
|
11221
|
-
icon:
|
|
11221
|
+
icon: ei,
|
|
11222
11222
|
label: i.meeting.closePanel,
|
|
11223
11223
|
onClick: o
|
|
11224
11224
|
})
|
|
@@ -12204,7 +12204,7 @@ var eT = () => {
|
|
|
12204
12204
|
hideLabel: !0,
|
|
12205
12205
|
size: "sm",
|
|
12206
12206
|
variant: "ghost",
|
|
12207
|
-
icon:
|
|
12207
|
+
icon: Do,
|
|
12208
12208
|
label: a.t("meeting.muteParticipant", { name: e.name }),
|
|
12209
12209
|
onClick: r
|
|
12210
12210
|
}) : null,
|
|
@@ -12213,7 +12213,7 @@ var eT = () => {
|
|
|
12213
12213
|
"aria-label": a.meeting.muted,
|
|
12214
12214
|
className: "text-f1-foreground-secondary",
|
|
12215
12215
|
children: /* @__PURE__ */ Q(U, {
|
|
12216
|
-
icon:
|
|
12216
|
+
icon: rs,
|
|
12217
12217
|
size: "sm"
|
|
12218
12218
|
})
|
|
12219
12219
|
}) : null,
|
|
@@ -12419,7 +12419,7 @@ var eT = () => {
|
|
|
12419
12419
|
opacity: 1,
|
|
12420
12420
|
x: 0,
|
|
12421
12421
|
y: 0,
|
|
12422
|
-
transition: e.kind === "seam" ?
|
|
12422
|
+
transition: e.kind === "seam" ? Pa : e.kind === "instant" || e.kind === "under" ? { duration: 0 } : iD
|
|
12423
12423
|
}),
|
|
12424
12424
|
leaving: (e) => {
|
|
12425
12425
|
let t = e.leave?.() ?? e;
|
|
@@ -12438,7 +12438,7 @@ var eT = () => {
|
|
|
12438
12438
|
};
|
|
12439
12439
|
case "panel": return {
|
|
12440
12440
|
opacity: 0,
|
|
12441
|
-
transition:
|
|
12441
|
+
transition: Jo
|
|
12442
12442
|
};
|
|
12443
12443
|
case "sheet":
|
|
12444
12444
|
case "fade": return {
|
|
@@ -12555,7 +12555,7 @@ var eT = () => {
|
|
|
12555
12555
|
},
|
|
12556
12556
|
children: /* @__PURE__ */ Q("div", {
|
|
12557
12557
|
className: "h-full w-full",
|
|
12558
|
-
children: /* @__PURE__ */ Q(
|
|
12558
|
+
children: /* @__PURE__ */ Q(ts, {
|
|
12559
12559
|
content: e,
|
|
12560
12560
|
onClose: s,
|
|
12561
12561
|
entities: t,
|
|
@@ -12572,7 +12572,7 @@ var eT = () => {
|
|
|
12572
12572
|
...fD,
|
|
12573
12573
|
side: dD
|
|
12574
12574
|
}, mD = () => {
|
|
12575
|
-
let e = _x(), t = Vv(), n = Os(), { activeContent: r, present: i, clear: a, open: o, setOpen: s, layout: c, setLayout: l, contentSide: u, presentedWidth: d } =
|
|
12575
|
+
let e = _x(), t = Vv(), n = Os(), { activeContent: r, present: i, clear: a, open: o, setOpen: s, layout: c, setLayout: l, contentSide: u, presentedWidth: d } = br(), { currentPath: f } = Un(), { hasPrimarySidebar: p } = tu(), m = p ? dD : u, h = p ? pD : fD, g = t ? e?.mode : void 0, _ = t ? e?.effectiveMode : void 0, v = e?.setMode, y = e?.setPanelSlot, b = e?.setPanelSlotWidth, x = r?.id === uD, S = _ === "panel" || _ === "fullscreen", C = g === "panel" || g === "fullscreen";
|
|
12576
12576
|
K(function() {
|
|
12577
12577
|
if (y) return y(n ? m : null), () => y(null);
|
|
12578
12578
|
}, [
|
|
@@ -12646,7 +12646,7 @@ var eT = () => {
|
|
|
12646
12646
|
function _D({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, topBar: i, banner: a, ai: o, sidePanel: s, meeting: c, composer: l, reserveComposerSpace: u, composerHidden: d, onNavigationPointerEnter: f }) {
|
|
12647
12647
|
let p = J(function() {
|
|
12648
12648
|
return [...o?.enabled ? [{
|
|
12649
|
-
...
|
|
12649
|
+
...pi,
|
|
12650
12650
|
side: s?.side ?? "right"
|
|
12651
12651
|
}] : [], ...s?.views ?? []];
|
|
12652
12652
|
}, [
|
|
@@ -12660,7 +12660,7 @@ function _D({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, t
|
|
|
12660
12660
|
enabled: h,
|
|
12661
12661
|
hasSecondarySidebar: !!r,
|
|
12662
12662
|
topBarHeight: h && i ? CD : 0,
|
|
12663
|
-
children: /* @__PURE__ */ Q(au, { children: /* @__PURE__ */ Q(
|
|
12663
|
+
children: /* @__PURE__ */ Q(au, { children: /* @__PURE__ */ Q(Oi, {
|
|
12664
12664
|
views: p,
|
|
12665
12665
|
side: s?.side,
|
|
12666
12666
|
contentSide: m,
|
|
@@ -12687,7 +12687,7 @@ function _D({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, t
|
|
|
12687
12687
|
});
|
|
12688
12688
|
}
|
|
12689
12689
|
function vD({ children: e, navigation: t, topBar: n, banner: r, ai: i, composer: a, reserveComposerSpace: o, composerHidden: s, onNavigationPointerEnter: c }) {
|
|
12690
|
-
let l = i?.enabled ?
|
|
12690
|
+
let l = i?.enabled ? ii : Pu;
|
|
12691
12691
|
return /* @__PURE__ */ Q(l, {
|
|
12692
12692
|
...i?.enabled ? i : void 0,
|
|
12693
12693
|
children: /* @__PURE__ */ Q(TD, {
|
|
@@ -12728,10 +12728,10 @@ function SD(e) {
|
|
|
12728
12728
|
}
|
|
12729
12729
|
var CD = 42, wD = (e) => e ? { inert: "" } : {};
|
|
12730
12730
|
function TD({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer: a, reserveComposerSpace: o, composerHidden: s = !1, onNavigationPointerEnter: c }) {
|
|
12731
|
-
let { sidebarState: l, toggleSidebar: u, isSmallScreen: d, setForceFloat: f, floatsWhenForced: p, hasPrimarySidebar: m } = tu(), h = fu(), g = h?.primarySidebarWidth ?? 0, _ = Xn(), { hasAvailableView: v, open: y, layout: b, effectiveWidth: x, widthBounds: S, panelOverlays: C, setFrameWidth: w, resizable: T, side: E, activeContent: D, contentSide: O, restoringViewId: k, isResizing: A, width: j } =
|
|
12732
|
-
file:
|
|
12731
|
+
let { sidebarState: l, toggleSidebar: u, isSmallScreen: d, setForceFloat: f, floatsWhenForced: p, hasPrimarySidebar: m } = tu(), h = fu(), g = h?.primarySidebarWidth ?? 0, _ = Xn(), { hasAvailableView: v, open: y, layout: b, effectiveWidth: x, widthBounds: S, panelOverlays: C, setFrameWidth: w, resizable: T, side: E, activeContent: D, contentSide: O, restoringViewId: k, isResizing: A, width: j } = br(), M = Yi(), { canvasContent: N, canvasEntities: P, dismissCanvas: F, isCanvasCovered: I } = di(), [L, ee] = X(!1), te = J(() => ({
|
|
12732
|
+
file: _a,
|
|
12733
12733
|
...P
|
|
12734
|
-
}), [P]), ne = b === "fullscreen", re = N !== null && !I, ie = T ? x : Math.min(
|
|
12734
|
+
}), [P]), ne = b === "fullscreen", re = N !== null && !I, ie = T ? x : Math.min(ri, S.max), ae = N?.coversChat === !0 ? 0 : ie, oe = E === "left", se = O !== E, ce = !!(D || k), le = Y(ce);
|
|
12735
12735
|
K(function() {
|
|
12736
12736
|
le.current = ce;
|
|
12737
12737
|
});
|
|
@@ -12753,7 +12753,7 @@ function TD({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
12753
12753
|
K(function() {
|
|
12754
12754
|
Ce.current = be, we.current = xe;
|
|
12755
12755
|
});
|
|
12756
|
-
let Te = or(`(max-width: ${Ul.lg}px)`, { initializeWithValue: !0 }), Ee = Y(null), De = h ? h.hasSecondarySidebar ? h.secondarySidebarWidth : 0 : Gl.panel, Oe = g + (l === "locked" ? De : 0), { width: ke } = ar(), Ae =
|
|
12756
|
+
let Te = or(`(max-width: ${Ul.lg}px)`, { initializeWithValue: !0 }), Ee = Y(null), De = h ? h.hasSecondarySidebar ? h.secondarySidebarWidth : 0 : Gl.panel, Oe = g + (l === "locked" ? De : 0), { width: ke } = ar(), Ae = Hr({
|
|
12757
12757
|
dockedLeft: ye,
|
|
12758
12758
|
narrowForLeftPanel: Te,
|
|
12759
12759
|
fit: M,
|
|
@@ -12786,17 +12786,17 @@ function TD({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
12786
12786
|
Me,
|
|
12787
12787
|
Ie
|
|
12788
12788
|
]);
|
|
12789
|
-
let ze = A || Fe || !!h?.isInstant, Be =
|
|
12789
|
+
let ze = A || Fe || !!h?.isInstant, Be = Ha(ze, _), Ve = (e, t) => No(ze, me && e && t, _), He = _ ? "instant" : C ? "sheet" : N?.coversChat === !0 ? "fade" : me ? "under" : "seam", Ue = _ ? "instant" : be ? C ? "sheet" : ne ? "under" : "seam" : y ? "instant" : "panel", We = y && ne, Ge = Se && !C, Ke = {
|
|
12790
12790
|
left: Ge && ye ? ie : 0,
|
|
12791
12791
|
right: Ge && !ye ? ie : 0
|
|
12792
12792
|
}, qe = Y(Ke);
|
|
12793
12793
|
We || (qe.current = Ke);
|
|
12794
|
-
let Je = We ? qe.current : Ke, Ye = !(ze || me || R) && !_, Xe = Ye ?
|
|
12794
|
+
let Je = We ? qe.current : Ke, Ye = !(ze || me || R) && !_, Xe = Ye ? Jo : Oa, Ze = Se && Ae;
|
|
12795
12795
|
return q(function() {
|
|
12796
12796
|
f(Ze);
|
|
12797
12797
|
}, [Ze, f]), SD(Ze), /* @__PURE__ */ Q(bi.Provider, {
|
|
12798
12798
|
value: !!e?.enabled,
|
|
12799
|
-
children: /* @__PURE__ */ Q(
|
|
12799
|
+
children: /* @__PURE__ */ Q(Rr.Provider, {
|
|
12800
12800
|
value: L,
|
|
12801
12801
|
children: /* @__PURE__ */ Q(cn, {
|
|
12802
12802
|
reducedMotion: _ ? "always" : "never",
|
|
@@ -12851,7 +12851,7 @@ function TD({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
12851
12851
|
children: [
|
|
12852
12852
|
r ? /* @__PURE__ */ Q("div", {
|
|
12853
12853
|
...wD(Le),
|
|
12854
|
-
className: V("relative z-10 flex shrink-0 items-center pb-0.5 pr-4 pt-2", Ye ? V("transition-[margin]",
|
|
12854
|
+
className: V("relative z-10 flex shrink-0 items-center pb-0.5 pr-4 pt-2", Ye ? V("transition-[margin]", ss) : "transition-none"),
|
|
12855
12855
|
style: { marginLeft: m ? g - Oe : 0 },
|
|
12856
12856
|
children: r
|
|
12857
12857
|
}) : null,
|
|
@@ -12903,7 +12903,7 @@ function TD({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
12903
12903
|
width: Ne,
|
|
12904
12904
|
left: e === "left" ? -Oe : "auto"
|
|
12905
12905
|
} : {
|
|
12906
|
-
width:
|
|
12906
|
+
width: So({
|
|
12907
12907
|
coversFrame: C,
|
|
12908
12908
|
isFullscreen: ne,
|
|
12909
12909
|
isClosingFromFullscreen: R,
|
|
@@ -12915,7 +12915,7 @@ function TD({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
12915
12915
|
transition: Ve(t, n),
|
|
12916
12916
|
children: r
|
|
12917
12917
|
}, `panel-${e}`);
|
|
12918
|
-
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(E, !se || !ve, Ce.current, /* @__PURE__ */ Q(
|
|
12918
|
+
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(E, !se || !ve, Ce.current, /* @__PURE__ */ Q(qr, {})) : null, !e?.enabled || se ? t(O, ve || !e?.enabled, we.current, /* @__PURE__ */ Q(wv, {})) : null] });
|
|
12919
12919
|
})() : null
|
|
12920
12920
|
]
|
|
12921
12921
|
})
|
|
@@ -13096,7 +13096,7 @@ var OD = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
13096
13096
|
label: s.actions.add,
|
|
13097
13097
|
variant: "neutral",
|
|
13098
13098
|
size: "sm",
|
|
13099
|
-
icon:
|
|
13099
|
+
icon: _r,
|
|
13100
13100
|
onClick: (e) => {
|
|
13101
13101
|
e.preventDefault(), e.stopPropagation(), o();
|
|
13102
13102
|
},
|
|
@@ -13135,7 +13135,7 @@ function AD({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
13135
13135
|
variant: "ghost",
|
|
13136
13136
|
onClick: () => o(),
|
|
13137
13137
|
label: "Open main menu",
|
|
13138
|
-
icon:
|
|
13138
|
+
icon: to,
|
|
13139
13139
|
hideLabel: !0
|
|
13140
13140
|
}) : null,
|
|
13141
13141
|
/* @__PURE__ */ $("div", {
|
|
@@ -13163,7 +13163,7 @@ function AD({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
13163
13163
|
})]
|
|
13164
13164
|
})
|
|
13165
13165
|
]
|
|
13166
|
-
}), /* @__PURE__ */ Q("div", { children: i ? null : /* @__PURE__ */ Q(
|
|
13166
|
+
}), /* @__PURE__ */ Q("div", { children: i ? null : /* @__PURE__ */ Q(Eo, {}) })]
|
|
13167
13167
|
}) : null,
|
|
13168
13168
|
/* @__PURE__ */ Q("div", {
|
|
13169
13169
|
className: V("isolate flex w-full flex-1 flex-col overflow-y-auto overflow-x-hidden [&>*]:flex-1", s && "-mt-3"),
|
|
@@ -13173,12 +13173,12 @@ function AD({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
13173
13173
|
});
|
|
13174
13174
|
}
|
|
13175
13175
|
AD.displayName = "DaytimePage";
|
|
13176
|
-
var jD = yn(wn("DaytimePage", AD)), MD = Ru(({ className: e, items: t }, n) => /* @__PURE__ */ Q(
|
|
13176
|
+
var jD = yn(wn("DaytimePage", AD)), MD = Ru(({ className: e, items: t }, n) => /* @__PURE__ */ Q(Mr, {
|
|
13177
13177
|
ref: n,
|
|
13178
13178
|
className: e,
|
|
13179
13179
|
children: /* @__PURE__ */ $("div", {
|
|
13180
13180
|
className: "flex items-center",
|
|
13181
|
-
children: [/* @__PURE__ */ Q(
|
|
13181
|
+
children: [/* @__PURE__ */ Q(pa, {}), /* @__PURE__ */ Q(Wi, {
|
|
13182
13182
|
items: t,
|
|
13183
13183
|
children: /* @__PURE__ */ Q("button", {
|
|
13184
13184
|
className: "rounded-sm px-1.5 py-0.5 font-medium text-f1-foreground no-underline transition-colors hover:bg-f1-background-secondary",
|
|
@@ -13259,10 +13259,10 @@ function BD({ breadcrumbs: e, append: t }) {
|
|
|
13259
13259
|
});
|
|
13260
13260
|
}, c = new ResizeObserver(s);
|
|
13261
13261
|
return c.observe(t), s(), () => c.disconnect();
|
|
13262
|
-
}, [e, t]), !e.length || a && !a.headItem ? /* @__PURE__ */ Q(
|
|
13262
|
+
}, [e, t]), !e.length || a && !a.headItem ? /* @__PURE__ */ Q(Li, {
|
|
13263
13263
|
ref: n,
|
|
13264
13264
|
className: "w-full"
|
|
13265
|
-
}) : /* @__PURE__ */ $(
|
|
13265
|
+
}) : /* @__PURE__ */ $(Li, {
|
|
13266
13266
|
ref: n,
|
|
13267
13267
|
className: "w-full overflow-x-hidden",
|
|
13268
13268
|
style: { minWidth: a?.minWidth },
|
|
@@ -13270,33 +13270,33 @@ function BD({ breadcrumbs: e, append: t }) {
|
|
|
13270
13270
|
className: "invisible absolute -left-full",
|
|
13271
13271
|
"aria-hidden": "true",
|
|
13272
13272
|
ref: r,
|
|
13273
|
-
children: e.map((n, r) => /* @__PURE__ */ Q(
|
|
13273
|
+
children: e.map((n, r) => /* @__PURE__ */ Q(Ka, {
|
|
13274
13274
|
item: n,
|
|
13275
13275
|
isLast: r === e.length - 1,
|
|
13276
13276
|
isFirst: r === 0,
|
|
13277
13277
|
children: r === e.length - 1 ? t : void 0
|
|
13278
|
-
},
|
|
13279
|
-
}), a && a.headItem ? /* @__PURE__ */ $(
|
|
13280
|
-
/* @__PURE__ */ Q(
|
|
13278
|
+
}, fo(n)))
|
|
13279
|
+
}), a && a.headItem ? /* @__PURE__ */ $(Dr, { children: [
|
|
13280
|
+
/* @__PURE__ */ Q(Ka, {
|
|
13281
13281
|
isOnly: a.isOnly,
|
|
13282
13282
|
isFirst: !0,
|
|
13283
13283
|
item: a.headItem,
|
|
13284
13284
|
isLast: !1
|
|
13285
|
-
}, `first-item-${
|
|
13286
|
-
s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(MD, { items: a.collapsedItems }, "collapsed-items"), a.tailItems.map((e, n) => /* @__PURE__ */ Q(
|
|
13285
|
+
}, `first-item-${fo(a.headItem)}`),
|
|
13286
|
+
s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(MD, { items: a.collapsedItems }, "collapsed-items"), a.tailItems.map((e, n) => /* @__PURE__ */ Q(Ka, {
|
|
13287
13287
|
item: e,
|
|
13288
13288
|
isLast: n === a.tailItems.length - 1,
|
|
13289
13289
|
isFirst: !1,
|
|
13290
13290
|
children: n === a.tailItems.length - 1 ? t : void 0
|
|
13291
|
-
},
|
|
13292
|
-
s ? null : /* @__PURE__ */ Q(Z, { children: a.tailItems.map((e, n) => /* @__PURE__ */ Q(
|
|
13291
|
+
}, fo(e)))] }) : null,
|
|
13292
|
+
s ? null : /* @__PURE__ */ Q(Z, { children: a.tailItems.map((e, n) => /* @__PURE__ */ Q(Ka, {
|
|
13293
13293
|
item: e,
|
|
13294
13294
|
isLast: n === a.tailItems.length - 1,
|
|
13295
13295
|
isFirst: !1,
|
|
13296
13296
|
children: n === a.tailItems.length - 1 ? t : void 0
|
|
13297
|
-
},
|
|
13297
|
+
}, fo(e))) })
|
|
13298
13298
|
] }) : null]
|
|
13299
|
-
}, `breadcrumb-${
|
|
13299
|
+
}, `breadcrumb-${fo(e.at(-1)) ?? 0}`);
|
|
13300
13300
|
}
|
|
13301
13301
|
//#endregion
|
|
13302
13302
|
//#region src/blocks/Header/PageHeader/PageHeaderNavigationContext.ts
|
|
@@ -13367,7 +13367,7 @@ var GD = In.create(U), KD = {
|
|
|
13367
13367
|
"aria-label": n,
|
|
13368
13368
|
children: e ? /* @__PURE__ */ Q(GD, {
|
|
13369
13369
|
size: "sm",
|
|
13370
|
-
icon:
|
|
13370
|
+
icon: bs,
|
|
13371
13371
|
className: "text-[hsl(var(--promote-50))] outline-none",
|
|
13372
13372
|
variants: KD,
|
|
13373
13373
|
initial: r ? "enterFromUnfavorite" : "initial",
|
|
@@ -13385,7 +13385,7 @@ var GD = In.create(U), KD = {
|
|
|
13385
13385
|
}, "favorite") : /* @__PURE__ */ Q(GD, {
|
|
13386
13386
|
size: "sm",
|
|
13387
13387
|
whileTap: { scale: .8 },
|
|
13388
|
-
icon:
|
|
13388
|
+
icon: Ni,
|
|
13389
13389
|
className: "outline-none",
|
|
13390
13390
|
variants: KD,
|
|
13391
13391
|
initial: r ? "enterFromFavorite" : "initial",
|
|
@@ -13446,13 +13446,13 @@ var GD = In.create(U), KD = {
|
|
|
13446
13446
|
};
|
|
13447
13447
|
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(er, {
|
|
13448
13448
|
variant: "outline",
|
|
13449
|
-
icon:
|
|
13449
|
+
icon: va,
|
|
13450
13450
|
hideLabel: !0,
|
|
13451
13451
|
label: t,
|
|
13452
13452
|
pressed: p,
|
|
13453
13453
|
onClick: () => y(!0),
|
|
13454
13454
|
append: d && /* @__PURE__ */ Q(oO, { className: "absolute -right-0.5 -top-[1px]" })
|
|
13455
|
-
}), /* @__PURE__ */ Q(
|
|
13455
|
+
}), /* @__PURE__ */ Q(Wo, {
|
|
13456
13456
|
isOpen: p,
|
|
13457
13457
|
onClose: () => y(!1),
|
|
13458
13458
|
position: "center",
|
|
@@ -13538,7 +13538,7 @@ var GD = In.create(U), KD = {
|
|
|
13538
13538
|
}, $D = ({ content: e }) => /* @__PURE__ */ $("div", {
|
|
13539
13539
|
className: "flex flex-row items-center gap-2",
|
|
13540
13540
|
children: [/* @__PURE__ */ Q(U, {
|
|
13541
|
-
icon:
|
|
13541
|
+
icon: va,
|
|
13542
13542
|
size: "sm",
|
|
13543
13543
|
className: "text-f1-icon-secondary"
|
|
13544
13544
|
}), /* @__PURE__ */ Q(g, {
|
|
@@ -13549,7 +13549,7 @@ var GD = In.create(U), KD = {
|
|
|
13549
13549
|
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",
|
|
13550
13550
|
children: /* @__PURE__ */ Q(H, {
|
|
13551
13551
|
variant: "outline",
|
|
13552
|
-
icon:
|
|
13552
|
+
icon: va,
|
|
13553
13553
|
label: e,
|
|
13554
13554
|
href: t,
|
|
13555
13555
|
onClick: n
|
|
@@ -13623,7 +13623,7 @@ var GD = In.create(U), KD = {
|
|
|
13623
13623
|
title: e,
|
|
13624
13624
|
description: r,
|
|
13625
13625
|
icon: /* @__PURE__ */ Q(U, {
|
|
13626
|
-
icon:
|
|
13626
|
+
icon: va,
|
|
13627
13627
|
size: "lg",
|
|
13628
13628
|
className: "block"
|
|
13629
13629
|
}),
|
|
@@ -13689,7 +13689,7 @@ var GD = In.create(U), KD = {
|
|
|
13689
13689
|
className: "relative z-10 h-6 w-6",
|
|
13690
13690
|
children: /* @__PURE__ */ Q(H, {
|
|
13691
13691
|
variant: "ghost",
|
|
13692
|
-
icon:
|
|
13692
|
+
icon: ei,
|
|
13693
13693
|
size: "sm",
|
|
13694
13694
|
hideLabel: !0,
|
|
13695
13695
|
onClick: () => {
|
|
@@ -13745,7 +13745,7 @@ function cO({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
13745
13745
|
hideLabel: !0,
|
|
13746
13746
|
onClick: () => f(),
|
|
13747
13747
|
label: "Open main menu",
|
|
13748
|
-
icon:
|
|
13748
|
+
icon: to
|
|
13749
13749
|
})
|
|
13750
13750
|
})
|
|
13751
13751
|
}, "menu") : null }),
|
|
@@ -13789,7 +13789,7 @@ function cO({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
13789
13789
|
variant: t.variant
|
|
13790
13790
|
}) }) : null,
|
|
13791
13791
|
!i && _ && (h || y || b) ? /* @__PURE__ */ Q("div", { className: "h-4 w-px bg-f1-border-secondary" }) : null,
|
|
13792
|
-
h ? /* @__PURE__ */ Q(
|
|
13792
|
+
h ? /* @__PURE__ */ Q(Za, { ...h }) : null,
|
|
13793
13793
|
h && y ? /* @__PURE__ */ Q("div", { className: "h-4 w-px bg-f1-border-secondary" }) : null,
|
|
13794
13794
|
b || y ? /* @__PURE__ */ $("div", {
|
|
13795
13795
|
className: "flex items-center gap-2",
|
|
@@ -13806,7 +13806,7 @@ function cO({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
13806
13806
|
}) : null,
|
|
13807
13807
|
/* @__PURE__ */ Q("div", {
|
|
13808
13808
|
className: "flex items-center gap-3",
|
|
13809
|
-
children: u ? null : /* @__PURE__ */ Q(
|
|
13809
|
+
children: u ? null : /* @__PURE__ */ Q(Eo, {
|
|
13810
13810
|
tooltip: c,
|
|
13811
13811
|
autoOpen: l
|
|
13812
13812
|
})
|
|
@@ -13876,7 +13876,7 @@ function dO({ label: e, options: t, hasNewUpdate: n }) {
|
|
|
13876
13876
|
className: V("relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all", Tn()),
|
|
13877
13877
|
"aria-label": e,
|
|
13878
13878
|
children: [/* @__PURE__ */ Q(U, {
|
|
13879
|
-
icon:
|
|
13879
|
+
icon: ui,
|
|
13880
13880
|
size: "sm"
|
|
13881
13881
|
}), 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]
|
|
13882
13882
|
})
|
|
@@ -14038,7 +14038,7 @@ var AO = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
14038
14038
|
let d = cu() === "two-level", [f, p] = X(t), m = Xn(), h = a && !f;
|
|
14039
14039
|
return /* @__PURE__ */ Q("div", {
|
|
14040
14040
|
"data-sidebar-collapsible-open": f,
|
|
14041
|
-
children: /* @__PURE__ */ $(
|
|
14041
|
+
children: /* @__PURE__ */ $(Ui, {
|
|
14042
14042
|
open: f,
|
|
14043
14043
|
children: [/* @__PURE__ */ $("div", {
|
|
14044
14044
|
className: "group/section group relative flex items-center",
|
|
@@ -14081,7 +14081,7 @@ var AO = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
14081
14081
|
}
|
|
14082
14082
|
}) : null]
|
|
14083
14083
|
}) : null]
|
|
14084
|
-
}), /* @__PURE__ */ Q(
|
|
14084
|
+
}), /* @__PURE__ */ Q(Zi, {
|
|
14085
14085
|
forceMount: !0,
|
|
14086
14086
|
className: "mt-0.5 flex flex-col gap-1",
|
|
14087
14087
|
children: /* @__PURE__ */ Q(IO, {
|
|
@@ -14641,7 +14641,7 @@ var sk = (e) => e.type === "sidebar-chat", ck = (e) => e.type === "sidebar-group
|
|
|
14641
14641
|
let { organize: i, groups: a, openDialog: o, announce: s } = n, c = [];
|
|
14642
14642
|
e.onTogglePin && c.push({
|
|
14643
14643
|
label: e.pinned ? r.chat.unpin : r.chat.pin,
|
|
14644
|
-
icon: e.pinned ?
|
|
14644
|
+
icon: e.pinned ? fi : yi,
|
|
14645
14645
|
onClick: e.onTogglePin
|
|
14646
14646
|
});
|
|
14647
14647
|
for (let t of i.chatMenuItems?.(e) ?? []) c.push(t);
|
|
@@ -14677,7 +14677,7 @@ var sk = (e) => e.type === "sidebar-chat", ck = (e) => e.type === "sidebar-group
|
|
|
14677
14677
|
let n = i.onRemoveChat;
|
|
14678
14678
|
c.push({ type: "separator" }, {
|
|
14679
14679
|
label: r.t("chat.organize.removeFrom", { section: u.title }),
|
|
14680
|
-
icon:
|
|
14680
|
+
icon: Ei,
|
|
14681
14681
|
onClick: () => {
|
|
14682
14682
|
n({
|
|
14683
14683
|
chatId: e.id,
|
|
@@ -14789,7 +14789,7 @@ var sk = (e) => e.type === "sidebar-chat", ck = (e) => e.type === "sidebar-group
|
|
|
14789
14789
|
let r = z(), [i, a] = X(e.kind === "rename" ? e.group.title : ""), o = i.trim(), s = () => {
|
|
14790
14790
|
o && (n(o), t());
|
|
14791
14791
|
};
|
|
14792
|
-
return /* @__PURE__ */ Q(
|
|
14792
|
+
return /* @__PURE__ */ Q(Wo, {
|
|
14793
14793
|
isOpen: !0,
|
|
14794
14794
|
onClose: t,
|
|
14795
14795
|
position: "center",
|
|
@@ -14808,7 +14808,7 @@ var sk = (e) => e.type === "sidebar-chat", ck = (e) => e.type === "sidebar-group
|
|
|
14808
14808
|
onSubmit: (e) => {
|
|
14809
14809
|
e.preventDefault(), s();
|
|
14810
14810
|
},
|
|
14811
|
-
children: /* @__PURE__ */ Q(
|
|
14811
|
+
children: /* @__PURE__ */ Q(Bo, {
|
|
14812
14812
|
label: r.chat.organize.nameLabel,
|
|
14813
14813
|
placeholder: r.chat.organize.namePlaceholder,
|
|
14814
14814
|
value: i,
|
|
@@ -14869,7 +14869,7 @@ var Pk = yn(Nk), Fk = (e, t) => e.type === "emoji" ? {
|
|
|
14869
14869
|
avatar: e
|
|
14870
14870
|
} : t && !e.src ? {
|
|
14871
14871
|
kind: "icon",
|
|
14872
|
-
icon:
|
|
14872
|
+
icon: va
|
|
14873
14873
|
} : {
|
|
14874
14874
|
kind: "avatar",
|
|
14875
14875
|
avatar: {
|
|
@@ -15004,7 +15004,7 @@ var Pk = yn(Nk), Fk = (e, t) => e.type === "emoji" ? {
|
|
|
15004
15004
|
size: "sm",
|
|
15005
15005
|
hideLabel: !0,
|
|
15006
15006
|
label: e.pinned ? i.chat.unpin : i.chat.pin,
|
|
15007
|
-
icon: e.pinned ?
|
|
15007
|
+
icon: e.pinned ? fi : yi,
|
|
15008
15008
|
onClick: (t) => {
|
|
15009
15009
|
t.stopPropagation(), e.onTogglePin?.();
|
|
15010
15010
|
}
|
|
@@ -15326,7 +15326,7 @@ var Pk = yn(Nk), Fk = (e, t) => e.type === "emoji" ? {
|
|
|
15326
15326
|
children: /* @__PURE__ */ Q("span", {
|
|
15327
15327
|
className: "flex size-7 items-center justify-center rounded-full bg-f1-background-inverse/60 text-f1-foreground-inverse",
|
|
15328
15328
|
children: /* @__PURE__ */ Q(As, {
|
|
15329
|
-
icon:
|
|
15329
|
+
icon: $o,
|
|
15330
15330
|
size: "sm"
|
|
15331
15331
|
})
|
|
15332
15332
|
})
|
|
@@ -15356,21 +15356,21 @@ var Pk = yn(Nk), Fk = (e, t) => e.type === "emoji" ? {
|
|
|
15356
15356
|
children: e.name
|
|
15357
15357
|
}), e.size === void 0 ? null : /* @__PURE__ */ Q("span", {
|
|
15358
15358
|
className: "text-xs text-f1-foreground-secondary",
|
|
15359
|
-
children:
|
|
15359
|
+
children: Ao(e.size)
|
|
15360
15360
|
})]
|
|
15361
15361
|
})]
|
|
15362
15362
|
});
|
|
15363
15363
|
case "voice": return /* @__PURE__ */ $("span", {
|
|
15364
15364
|
className: "flex items-center gap-1.5 text-sm",
|
|
15365
15365
|
children: [/* @__PURE__ */ Q(As, {
|
|
15366
|
-
icon:
|
|
15366
|
+
icon: Do,
|
|
15367
15367
|
size: "sm"
|
|
15368
15368
|
}), e.durationSeconds === void 0 ? t.chat.voiceNote : `${t.chat.voiceNote} · ${cA(e.durationSeconds)}`]
|
|
15369
15369
|
});
|
|
15370
15370
|
case "location": return /* @__PURE__ */ $("span", {
|
|
15371
15371
|
className: "flex min-w-0 items-center gap-1.5 text-sm",
|
|
15372
15372
|
children: [/* @__PURE__ */ Q(As, {
|
|
15373
|
-
icon:
|
|
15373
|
+
icon: ai,
|
|
15374
15374
|
size: "sm"
|
|
15375
15375
|
}), /* @__PURE__ */ Q("span", {
|
|
15376
15376
|
className: "truncate",
|
|
@@ -16198,7 +16198,7 @@ var zA = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
16198
16198
|
src: e?.logo,
|
|
16199
16199
|
size: n,
|
|
16200
16200
|
badge: t ? {
|
|
16201
|
-
icon:
|
|
16201
|
+
icon: ur,
|
|
16202
16202
|
type: "highlight"
|
|
16203
16203
|
} : void 0
|
|
16204
16204
|
}), HA = ({ company: e, withNotification: t = !1 }) => /* @__PURE__ */ $("div", {
|
|
@@ -16226,7 +16226,7 @@ function UA({ user: e, profile: t, options: n, onDropdownClick: r, compact: i =
|
|
|
16226
16226
|
}] : [], ...n], d = /* @__PURE__ */ Q(W, {
|
|
16227
16227
|
minWidth: "0",
|
|
16228
16228
|
onPointerMove: nu,
|
|
16229
|
-
children: /* @__PURE__ */ Q(
|
|
16229
|
+
children: /* @__PURE__ */ Q(Wi, {
|
|
16230
16230
|
items: u,
|
|
16231
16231
|
side: i ? "right" : void 0,
|
|
16232
16232
|
align: i ? "end" : "start",
|
|
@@ -16297,7 +16297,7 @@ function WA({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
16297
16297
|
children: /* @__PURE__ */ $("div", {
|
|
16298
16298
|
className: "relative",
|
|
16299
16299
|
children: [/* @__PURE__ */ Q(H, {
|
|
16300
|
-
icon:
|
|
16300
|
+
icon: Ia,
|
|
16301
16301
|
label: c.notifications,
|
|
16302
16302
|
onClick: i,
|
|
16303
16303
|
variant: "ghost",
|
|
@@ -16307,7 +16307,7 @@ function WA({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
16307
16307
|
children: /* @__PURE__ */ Q(Ns, {
|
|
16308
16308
|
type: "highlight",
|
|
16309
16309
|
size: "sm",
|
|
16310
|
-
icon:
|
|
16310
|
+
icon: ur
|
|
16311
16311
|
})
|
|
16312
16312
|
}) : null]
|
|
16313
16313
|
})
|
|
@@ -16406,7 +16406,7 @@ var XA = ({ item: e, active: t }) => {
|
|
|
16406
16406
|
onClick: () => e.onChange(!e.pinned),
|
|
16407
16407
|
className: V("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", Tn(), !e.pinned && "opacity-0 focus-visible:opacity-100 group-hover/item:opacity-100"),
|
|
16408
16408
|
children: /* @__PURE__ */ Q(U, {
|
|
16409
|
-
icon: e.pinned ?
|
|
16409
|
+
icon: e.pinned ? fi : yi,
|
|
16410
16410
|
size: "sm"
|
|
16411
16411
|
})
|
|
16412
16412
|
}), QA = ({ item: e }) => {
|
|
@@ -16428,15 +16428,15 @@ var XA = ({ item: e, active: t }) => {
|
|
|
16428
16428
|
return !x && !y && t.push({
|
|
16429
16429
|
label: l.actions.moveUp,
|
|
16430
16430
|
onClick: () => a?.(r, r - 1),
|
|
16431
|
-
icon:
|
|
16431
|
+
icon: ra
|
|
16432
16432
|
}), !x && !b && t.push({
|
|
16433
16433
|
label: l.actions.moveDown,
|
|
16434
16434
|
onClick: () => a?.(r, r + 1),
|
|
16435
|
-
icon:
|
|
16435
|
+
icon: la
|
|
16436
16436
|
}), t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
16437
16437
|
label: l.favorites.remove,
|
|
16438
16438
|
onClick: () => n?.(e),
|
|
16439
|
-
icon:
|
|
16439
|
+
icon: Br,
|
|
16440
16440
|
critical: !0
|
|
16441
16441
|
}), t;
|
|
16442
16442
|
}, [
|
|
@@ -17764,7 +17764,7 @@ var Qj = yn(Zj), $j = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
17764
17764
|
"aria-hidden": "true",
|
|
17765
17765
|
className: "flex text-f1-icon [&_circle]:![stroke-width:1.68px] [&_path]:![stroke-width:1.68px] [&_rect]:![stroke-width:1.68px]",
|
|
17766
17766
|
children: /* @__PURE__ */ Q(U, {
|
|
17767
|
-
icon:
|
|
17767
|
+
icon: Ci,
|
|
17768
17768
|
size: "md"
|
|
17769
17769
|
})
|
|
17770
17770
|
}), lM = (e, t, n) => e.isCompleted ? null : e.status ? {
|
|
@@ -18103,7 +18103,7 @@ var Qj = yn(Zj), $j = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18103
18103
|
variant: "outline",
|
|
18104
18104
|
size: n,
|
|
18105
18105
|
hideLabel: !0,
|
|
18106
|
-
icon: e === "approve" ? ul :
|
|
18106
|
+
icon: e === "approve" ? ul : ei,
|
|
18107
18107
|
label: t.label,
|
|
18108
18108
|
tooltip: t.tooltip ?? i(`actions.${e}`),
|
|
18109
18109
|
loading: a === e,
|
|
@@ -18264,12 +18264,12 @@ var Qj = yn(Zj), $j = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18264
18264
|
size: "sm"
|
|
18265
18265
|
},
|
|
18266
18266
|
rejected: {
|
|
18267
|
-
icon:
|
|
18267
|
+
icon: ei,
|
|
18268
18268
|
type: "critical",
|
|
18269
18269
|
size: "sm"
|
|
18270
18270
|
}
|
|
18271
18271
|
}, uN = {
|
|
18272
|
-
icon:
|
|
18272
|
+
icon: ui,
|
|
18273
18273
|
type: "neutral",
|
|
18274
18274
|
size: "sm"
|
|
18275
18275
|
}, dN = {
|
|
@@ -18355,7 +18355,7 @@ var mN = ({ title: e, approvalsRequired: t = 1, status: n, approvers: r, approva
|
|
|
18355
18355
|
});
|
|
18356
18356
|
})), gN = (e, t) => typeof t == "string" && t in e;
|
|
18357
18357
|
function _N(e, t, n) {
|
|
18358
|
-
let r = {}, i = !1, a =
|
|
18358
|
+
let r = {}, i = !1, a = wa(e);
|
|
18359
18359
|
if (a !== void 0 && t.filters) {
|
|
18360
18360
|
let e = t.filters, o = Object.fromEntries(Object.entries(a).filter(([t]) => gN(e, t)));
|
|
18361
18361
|
(Object.keys(o).length > 0 || Object.keys(a).length === 0) && (n.setCurrentFilters(o), r.filters = o, i = !0);
|
|
@@ -18383,7 +18383,7 @@ function _N(e, t, n) {
|
|
|
18383
18383
|
//#endregion
|
|
18384
18384
|
//#region src/addons/data-collection/OneDataCollection/hooks/useDataCollectionItemNavigation/useDataCollectionItemNavigation.ts
|
|
18385
18385
|
function vN(e) {
|
|
18386
|
-
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 =
|
|
18386
|
+
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 = xr(), g = ge(t, m), [_, v] = X(null), y = _?.key === r && _.settled, b = Y(g);
|
|
18387
18387
|
b.current = g;
|
|
18388
18388
|
let x = Y(h);
|
|
18389
18389
|
x.current = h;
|
|
@@ -18439,7 +18439,7 @@ function vN(e) {
|
|
|
18439
18439
|
}, t);
|
|
18440
18440
|
} catch {}
|
|
18441
18441
|
};
|
|
18442
|
-
return
|
|
18442
|
+
return vs(r, () => {
|
|
18443
18443
|
e();
|
|
18444
18444
|
});
|
|
18445
18445
|
}, [
|
|
@@ -18665,7 +18665,7 @@ var yN = (e) => e, bN = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
18665
18665
|
src: e.avatar.src,
|
|
18666
18666
|
size: a ? "sm" : "xs"
|
|
18667
18667
|
}) : /* @__PURE__ */ Q(U, {
|
|
18668
|
-
icon: e.icon ??
|
|
18668
|
+
icon: e.icon ?? Fo,
|
|
18669
18669
|
size: d
|
|
18670
18670
|
})
|
|
18671
18671
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -18969,7 +18969,7 @@ var yN = (e) => e, bN = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
18969
18969
|
label: t.label,
|
|
18970
18970
|
hint: t.description,
|
|
18971
18971
|
avatar: t.avatar,
|
|
18972
|
-
icon: t.icon ??
|
|
18972
|
+
icon: t.icon ?? Fo,
|
|
18973
18973
|
color: t.color,
|
|
18974
18974
|
keywords: t.keywords,
|
|
18975
18975
|
rowActions: t.rowActions,
|
|
@@ -18989,7 +18989,7 @@ var yN = (e) => e, bN = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
18989
18989
|
key: "copy",
|
|
18990
18990
|
label: p.rowActions.copyLinkTo(e.label),
|
|
18991
18991
|
tip: p.rowActions.copyLink,
|
|
18992
|
-
icon:
|
|
18992
|
+
icon: Fa,
|
|
18993
18993
|
run: () => f(r)
|
|
18994
18994
|
}] : []];
|
|
18995
18995
|
return {
|
|
@@ -18997,7 +18997,7 @@ var yN = (e) => e, bN = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
18997
18997
|
group: t,
|
|
18998
18998
|
label: e.label,
|
|
18999
18999
|
hint: e.kind === "one" ? e.sublabel : void 0,
|
|
19000
|
-
icon: e.icon ??
|
|
19000
|
+
icon: e.icon ?? Fo,
|
|
19001
19001
|
color: e.color,
|
|
19002
19002
|
avatar: e.kind === "one" ? e.avatar : void 0,
|
|
19003
19003
|
scopeRef: n ? e : void 0,
|
|
@@ -19104,7 +19104,7 @@ var yN = (e) => e, bN = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19104
19104
|
group: e.label,
|
|
19105
19105
|
label: t.label,
|
|
19106
19106
|
hint: t.sublabel,
|
|
19107
|
-
icon: t.icon ?? (r.has(t.value) ?
|
|
19107
|
+
icon: t.icon ?? (r.has(t.value) ? is : void 0),
|
|
19108
19108
|
color: t.color,
|
|
19109
19109
|
avatar: t.avatar,
|
|
19110
19110
|
run: () => {
|
|
@@ -19146,7 +19146,7 @@ var yN = (e) => e, bN = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19146
19146
|
...e,
|
|
19147
19147
|
id: `recent-${e.id}`,
|
|
19148
19148
|
group: p.groups.recent,
|
|
19149
|
-
icon:
|
|
19149
|
+
icon: Ci,
|
|
19150
19150
|
color: void 0,
|
|
19151
19151
|
hint: void 0
|
|
19152
19152
|
})), ...r.flatMap((e) => e.provider ? [] : (b.find((t) => t.label === e.label)?.rows ?? []).slice(0, e.openLimit ?? Infinity))];
|
|
@@ -19503,7 +19503,7 @@ var _P = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
19503
19503
|
return /* @__PURE__ */ Q(mr, {
|
|
19504
19504
|
open: e,
|
|
19505
19505
|
onOpenChange: t,
|
|
19506
|
-
children: /* @__PURE__ */ $(
|
|
19506
|
+
children: /* @__PURE__ */ $(ci, {
|
|
19507
19507
|
"aria-label": d.label,
|
|
19508
19508
|
"aria-describedby": void 0,
|
|
19509
19509
|
withTranslateAnimation: !1,
|
|
@@ -19522,7 +19522,7 @@ var _P = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
19522
19522
|
je(e, be);
|
|
19523
19523
|
},
|
|
19524
19524
|
children: [
|
|
19525
|
-
/* @__PURE__ */ Q(
|
|
19525
|
+
/* @__PURE__ */ Q(so, {
|
|
19526
19526
|
className: "sr-only",
|
|
19527
19527
|
children: d.label
|
|
19528
19528
|
}),
|
|
@@ -19787,7 +19787,7 @@ var _P = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
19787
19787
|
e.setAttribute("target", "_blank"), e.setAttribute("rel", "noopener noreferrer");
|
|
19788
19788
|
});
|
|
19789
19789
|
let n = t.ownerDocument.createTreeWalker(t, NodeFilter.SHOW_TEXT);
|
|
19790
|
-
for (let e = n.nextNode(); e; e = n.nextNode()) e.textContent =
|
|
19790
|
+
for (let e = n.nextNode(); e; e = n.nextNode()) e.textContent = Es(e.textContent ?? "");
|
|
19791
19791
|
return _F(t), t.innerHTML;
|
|
19792
19792
|
}, yF = () => {}, bF = Lu({
|
|
19793
19793
|
tabs: [],
|
|
@@ -20068,9 +20068,9 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20068
20068
|
scheduled: c.length,
|
|
20069
20069
|
draft: l.length
|
|
20070
20070
|
}, f = {
|
|
20071
|
-
pinned:
|
|
20072
|
-
scheduled:
|
|
20073
|
-
draft:
|
|
20071
|
+
pinned: fi,
|
|
20072
|
+
scheduled: Ci,
|
|
20073
|
+
draft: pr
|
|
20074
20074
|
}, p = {
|
|
20075
20075
|
pinned: e.t("chat.community.pinnedPosts"),
|
|
20076
20076
|
scheduled: e.t("chat.community.scheduledPosts"),
|
|
@@ -20149,7 +20149,7 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20149
20149
|
}
|
|
20150
20150
|
}, ...i ? [{
|
|
20151
20151
|
label: n.t("chat.community.unpinPost"),
|
|
20152
|
-
icon:
|
|
20152
|
+
icon: fi,
|
|
20153
20153
|
onClick: () => void i(e.id)
|
|
20154
20154
|
}] : []]
|
|
20155
20155
|
}, e.id))
|
|
@@ -20168,11 +20168,11 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20168
20168
|
meta: /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ $("span", {
|
|
20169
20169
|
className: "flex items-center gap-1.5 text-f1-foreground-secondary",
|
|
20170
20170
|
children: [/* @__PURE__ */ Q(U, {
|
|
20171
|
-
icon:
|
|
20171
|
+
icon: Ci,
|
|
20172
20172
|
size: "sm"
|
|
20173
20173
|
}), WF(e.scheduledFor, r)]
|
|
20174
20174
|
}), e.event ? /* @__PURE__ */ Q(ac, {
|
|
20175
|
-
icon:
|
|
20175
|
+
icon: Aa,
|
|
20176
20176
|
text: n.t("chat.community.scheduledEvent")
|
|
20177
20177
|
}) : null] }),
|
|
20178
20178
|
onClick: a ? () => {
|
|
@@ -20202,7 +20202,7 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20202
20202
|
meta: /* @__PURE__ */ $("span", {
|
|
20203
20203
|
className: "flex items-center gap-1.5 text-f1-foreground-secondary",
|
|
20204
20204
|
children: [/* @__PURE__ */ Q(U, {
|
|
20205
|
-
icon:
|
|
20205
|
+
icon: pr,
|
|
20206
20206
|
size: "sm"
|
|
20207
20207
|
}), n.t("chat.community.draftSavedAt", { when: WF(e.savedAt, r) })]
|
|
20208
20208
|
}),
|
|
@@ -20309,7 +20309,7 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20309
20309
|
"aria-hidden": !e,
|
|
20310
20310
|
className: V("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"),
|
|
20311
20311
|
children: [/* @__PURE__ */ Q(U, {
|
|
20312
|
-
icon:
|
|
20312
|
+
icon: bo,
|
|
20313
20313
|
size: "lg",
|
|
20314
20314
|
color: "bold"
|
|
20315
20315
|
}), /* @__PURE__ */ Q("p", {
|
|
@@ -20402,7 +20402,7 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20402
20402
|
variant: "ghost",
|
|
20403
20403
|
hideLabel: !0,
|
|
20404
20404
|
label: e.chat.closeSearch,
|
|
20405
|
-
icon:
|
|
20405
|
+
icon: ei,
|
|
20406
20406
|
onClick: u
|
|
20407
20407
|
})]
|
|
20408
20408
|
})
|
|
@@ -20470,8 +20470,8 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20470
20470
|
});
|
|
20471
20471
|
}, [t, e]), null;
|
|
20472
20472
|
}, dI = ({ channel: e, isFullscreen: t, onToggleFullscreen: n, onClose: r, actions: i, content: a, tabs: o }) => {
|
|
20473
|
-
let s = z(), { searchOpen: c, openSearch: l } = zF(), { panelOverlays: u } =
|
|
20474
|
-
icon:
|
|
20473
|
+
let s = z(), { searchOpen: c, openSearch: l } = zF(), { panelOverlays: u } = br(), { surface: d } = QF(), f = d === "page", p = SF().tabs.length > 0, { sidebarState: m, toggleSidebar: h, hasPrimarySidebar: g } = tu(), _ = f && !g && m !== "locked", v = e.type === "dm" && e.presence !== void 0, y = e.type === "group" ? e.visibility === "global" ? {
|
|
20474
|
+
icon: ms,
|
|
20475
20475
|
label: s.chat.visibility.global,
|
|
20476
20476
|
hint: s.chat.visibility.globalHint
|
|
20477
20477
|
} : e.visibility === "private" ? {
|
|
@@ -20560,7 +20560,7 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20560
20560
|
variant: "ghost",
|
|
20561
20561
|
hideLabel: !0,
|
|
20562
20562
|
label: s.navigation.sidebar.label,
|
|
20563
|
-
icon:
|
|
20563
|
+
icon: to,
|
|
20564
20564
|
onClick: () => h()
|
|
20565
20565
|
}) : null,
|
|
20566
20566
|
e.user ? /* @__PURE__ */ Q(sI, {
|
|
@@ -20604,14 +20604,14 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20604
20604
|
variant: "ghost",
|
|
20605
20605
|
hideLabel: !0,
|
|
20606
20606
|
label: t ? s.actions.collapse : s.actions.expand,
|
|
20607
|
-
icon: t ?
|
|
20607
|
+
icon: t ? za : Yo,
|
|
20608
20608
|
onClick: n
|
|
20609
20609
|
}) : null,
|
|
20610
20610
|
r ? /* @__PURE__ */ Q(er, {
|
|
20611
20611
|
variant: "ghost",
|
|
20612
20612
|
hideLabel: !0,
|
|
20613
20613
|
label: s.actions.close,
|
|
20614
|
-
icon:
|
|
20614
|
+
icon: ei,
|
|
20615
20615
|
onClick: r
|
|
20616
20616
|
}) : null,
|
|
20617
20617
|
a ? /* @__PURE__ */ Q("div", {
|
|
@@ -20634,7 +20634,7 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20634
20634
|
let t = z(), { tabs: n, activeTabId: r, selectTab: i } = SF(), a = [{
|
|
20635
20635
|
id: kP,
|
|
20636
20636
|
label: t.chat.tabs.messages,
|
|
20637
|
-
icon:
|
|
20637
|
+
icon: Xr,
|
|
20638
20638
|
badge: e
|
|
20639
20639
|
}, ...n.map(({ id: e, label: t, icon: n, badge: r }) => ({
|
|
20640
20640
|
id: e,
|
|
@@ -20648,7 +20648,7 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20648
20648
|
s.current && (s.current = !1, o.current?.querySelector("[aria-current=true]")?.focus());
|
|
20649
20649
|
}, [c]), /* @__PURE__ */ Q("div", {
|
|
20650
20650
|
ref: o,
|
|
20651
|
-
children: /* @__PURE__ */ Q(
|
|
20651
|
+
children: /* @__PURE__ */ Q(ko, {
|
|
20652
20652
|
tabs: a,
|
|
20653
20653
|
activeTabId: r,
|
|
20654
20654
|
setActiveTabId: f,
|
|
@@ -20670,7 +20670,7 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20670
20670
|
n && i.onUpsellShown({ source: "history_limit" });
|
|
20671
20671
|
}, [n, i]), /* @__PURE__ */ Q("div", {
|
|
20672
20672
|
className: "rounded-xl bg-f1-background",
|
|
20673
|
-
children: /* @__PURE__ */ $(
|
|
20673
|
+
children: /* @__PURE__ */ $(Ir, {
|
|
20674
20674
|
title: e.title,
|
|
20675
20675
|
description: e.description,
|
|
20676
20676
|
children: [r ? /* @__PURE__ */ $("div", {
|
|
@@ -20707,12 +20707,12 @@ var PF = () => NF(EF, "useChatJump"), FF = (e) => {
|
|
|
20707
20707
|
let [n] = t;
|
|
20708
20708
|
if (!n || n.width && n.height) return [];
|
|
20709
20709
|
let r = n.thumbnailUrl ?? n.url;
|
|
20710
|
-
return
|
|
20710
|
+
return us(r) === void 0 ? [r] : [];
|
|
20711
20711
|
}, vI = (e) => {
|
|
20712
20712
|
let t = e.linkPreviews ?? [];
|
|
20713
20713
|
if (t.length !== 1) return [];
|
|
20714
20714
|
let n = t[0]?.imageUrl;
|
|
20715
|
-
return n &&
|
|
20715
|
+
return n && us(n) === void 0 ? [n] : [];
|
|
20716
20716
|
};
|
|
20717
20717
|
function yI(e, { enabled: t }) {
|
|
20718
20718
|
let [, n] = Ku((e) => e + 1, 0), r = Y(null);
|
|
@@ -20758,7 +20758,7 @@ function yI(e, { enabled: t }) {
|
|
|
20758
20758
|
let r = () => {
|
|
20759
20759
|
i.current.has(t) || (i.current.add(t), n());
|
|
20760
20760
|
}, o = window.setTimeout(r, e.ms);
|
|
20761
|
-
Promise.all(e.urls.map(
|
|
20761
|
+
Promise.all(e.urls.map(Ss)).then(() => {
|
|
20762
20762
|
window.clearTimeout(o), r();
|
|
20763
20763
|
});
|
|
20764
20764
|
});
|
|
@@ -21192,7 +21192,7 @@ var eL = (e, t, n) => {
|
|
|
21192
21192
|
})} ${a}`;
|
|
21193
21193
|
}, PL = ({ message: e, onConfirm: t, onClose: n }) => {
|
|
21194
21194
|
let r = z(), [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(DL(o)), d = s ? new Date(OL(s, l)) : void 0, f = !!d && d.getTime() <= i.getTime(), p = !!d && !!l && !f, m = mF(e).trim();
|
|
21195
|
-
return /* @__PURE__ */ Q(
|
|
21195
|
+
return /* @__PURE__ */ Q(Wo, {
|
|
21196
21196
|
isOpen: !0,
|
|
21197
21197
|
onClose: n,
|
|
21198
21198
|
width: "sm",
|
|
@@ -21236,7 +21236,7 @@ var eL = (e, t, n) => {
|
|
|
21236
21236
|
})
|
|
21237
21237
|
}), /* @__PURE__ */ Q("div", {
|
|
21238
21238
|
className: "w-32",
|
|
21239
|
-
children: /* @__PURE__ */ Q(
|
|
21239
|
+
children: /* @__PURE__ */ Q(Bo, {
|
|
21240
21240
|
type: "time",
|
|
21241
21241
|
label: r.chat.remind.time,
|
|
21242
21242
|
value: l,
|
|
@@ -21384,7 +21384,7 @@ var eL = (e, t, n) => {
|
|
|
21384
21384
|
};
|
|
21385
21385
|
}, qL = ({ message: e, onOpen: t }) => {
|
|
21386
21386
|
let n = z(), { channelType: r } = wu(), i = e.readBy?.length ?? e.readByCount ?? 0, a = e.readBy?.slice(0, GL) ?? [], o = Math.max(0, i - a.length), s = n.chat.info, c = qc;
|
|
21387
|
-
return e.isMine && r === "group" && i > 0 ? (s = n.t(i === 1 ? "chat.readBy.one" : "chat.readBy.other", { count: i }), c =
|
|
21387
|
+
return e.isMine && r === "group" && i > 0 ? (s = n.t(i === 1 ? "chat.readBy.one" : "chat.readBy.other", { count: i }), c = yr) : e.isMine && e.readAt ? (s = `${n.chat.read} · ${kI(new Date(e.readAt))}`, c = yr) : e.isMine && r === "dm" && e.status === "delivered" && (s = n.chat.delivered, c = yr), /* @__PURE__ */ Q(UL, {
|
|
21388
21388
|
icon: c,
|
|
21389
21389
|
label: s,
|
|
21390
21390
|
onClick: t,
|
|
@@ -21430,7 +21430,7 @@ var eL = (e, t, n) => {
|
|
|
21430
21430
|
l ? /* @__PURE__ */ $("p", {
|
|
21431
21431
|
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",
|
|
21432
21432
|
"data-testid": "chat-remind-current",
|
|
21433
|
-
children: [/* @__PURE__ */ Q(
|
|
21433
|
+
children: [/* @__PURE__ */ Q(Ia, {
|
|
21434
21434
|
className: "size-4 shrink-0",
|
|
21435
21435
|
"aria-hidden": !0
|
|
21436
21436
|
}), a.t("chat.remind.current", { when: c(l) })]
|
|
@@ -21443,7 +21443,7 @@ var eL = (e, t, n) => {
|
|
|
21443
21443
|
relativeDay: !1
|
|
21444
21444
|
}) : c(t);
|
|
21445
21445
|
return /* @__PURE__ */ Q(UL, {
|
|
21446
|
-
icon:
|
|
21446
|
+
icon: Ci,
|
|
21447
21447
|
label: a.chat.remind[e],
|
|
21448
21448
|
onClick: () => n(t),
|
|
21449
21449
|
trailing: /* @__PURE__ */ Q("span", {
|
|
@@ -21460,12 +21460,12 @@ var eL = (e, t, n) => {
|
|
|
21460
21460
|
/* @__PURE__ */ $("div", {
|
|
21461
21461
|
className: "flex flex-col p-1",
|
|
21462
21462
|
children: [/* @__PURE__ */ Q(UL, {
|
|
21463
|
-
icon:
|
|
21463
|
+
icon: Aa,
|
|
21464
21464
|
label: a.chat.remind.custom,
|
|
21465
21465
|
onClick: r
|
|
21466
21466
|
}), e.reminder ? /* @__PURE__ */ Q(UL, {
|
|
21467
21467
|
critical: !0,
|
|
21468
|
-
icon:
|
|
21468
|
+
icon: Br,
|
|
21469
21469
|
label: a.chat.remind.remove,
|
|
21470
21470
|
onClick: i
|
|
21471
21471
|
}) : null]
|
|
@@ -21515,13 +21515,13 @@ var eL = (e, t, n) => {
|
|
|
21515
21515
|
className: `${XL} flex w-64 flex-col rounded-lg p-1`,
|
|
21516
21516
|
onKeyDown: WL,
|
|
21517
21517
|
children: [/* @__PURE__ */ Q(UL, {
|
|
21518
|
-
icon:
|
|
21518
|
+
icon: wo,
|
|
21519
21519
|
label: n.chat.retry,
|
|
21520
21520
|
onClick: (n) => {
|
|
21521
21521
|
r(e.live.id), t(ZL(n));
|
|
21522
21522
|
}
|
|
21523
21523
|
}), /* @__PURE__ */ Q(UL, {
|
|
21524
|
-
icon:
|
|
21524
|
+
icon: Br,
|
|
21525
21525
|
label: n.actions.delete,
|
|
21526
21526
|
onClick: (n) => {
|
|
21527
21527
|
o(e.live.id), t(ZL(n));
|
|
@@ -21537,48 +21537,48 @@ var eL = (e, t, n) => {
|
|
|
21537
21537
|
className: "flex flex-col p-1",
|
|
21538
21538
|
children: [
|
|
21539
21539
|
fL(e) ? /* @__PURE__ */ Q(UL, {
|
|
21540
|
-
icon:
|
|
21540
|
+
icon: ho,
|
|
21541
21541
|
label: i.chat.reply,
|
|
21542
21542
|
onClick: t(fL, () => d(n))
|
|
21543
21543
|
}) : null,
|
|
21544
21544
|
uL(e) ? /* @__PURE__ */ Q(UL, {
|
|
21545
|
-
icon:
|
|
21545
|
+
icon: uo,
|
|
21546
21546
|
label: i.actions.copy,
|
|
21547
21547
|
onClick: t(uL, () => SL(a, n))
|
|
21548
21548
|
}) : null,
|
|
21549
21549
|
f ? /* @__PURE__ */ Q(UL, {
|
|
21550
|
-
icon:
|
|
21550
|
+
icon: ms,
|
|
21551
21551
|
label: i.chat.hideTranslation,
|
|
21552
21552
|
onClick: t(bL, () => c?.(n.id))
|
|
21553
21553
|
}) : vL(e) ? /* @__PURE__ */ Q(UL, {
|
|
21554
|
-
icon:
|
|
21554
|
+
icon: ms,
|
|
21555
21555
|
label: i.chat.translate,
|
|
21556
21556
|
onClick: t(vL, () => u?.(n.id))
|
|
21557
21557
|
}) : null,
|
|
21558
21558
|
yL(e) ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(YL, {}), /* @__PURE__ */ Q(UL, {
|
|
21559
|
-
icon:
|
|
21559
|
+
icon: ms,
|
|
21560
21560
|
label: i.chat.translate,
|
|
21561
21561
|
onClick: t(yL, () => l?.()),
|
|
21562
21562
|
trailing: /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
21563
21563
|
className: "sr-only",
|
|
21564
21564
|
children: ", "
|
|
21565
21565
|
}), /* @__PURE__ */ Q(ac, {
|
|
21566
|
-
icon:
|
|
21566
|
+
icon: Ma,
|
|
21567
21567
|
text: i.chat.upgrade
|
|
21568
21568
|
})] })
|
|
21569
21569
|
})] }) : null,
|
|
21570
21570
|
hL(e) ? /* @__PURE__ */ Q(UL, {
|
|
21571
|
-
icon:
|
|
21571
|
+
icon: jr,
|
|
21572
21572
|
label: i.chat.forward,
|
|
21573
21573
|
onClick: t(hL, () => o?.(n))
|
|
21574
21574
|
}) : null,
|
|
21575
21575
|
gL(e) ? /* @__PURE__ */ Q(UL, {
|
|
21576
|
-
icon: n.pinnedAt ?
|
|
21576
|
+
icon: n.pinnedAt ? fi : yi,
|
|
21577
21577
|
label: n.pinnedAt ? i.chat.unpinMessage : i.chat.pinMessage,
|
|
21578
21578
|
onClick: t(gL, () => s?.(n.id, !n.pinnedAt))
|
|
21579
21579
|
}) : null,
|
|
21580
21580
|
_L(e) && r ? /* @__PURE__ */ Q(UL, {
|
|
21581
|
-
icon:
|
|
21581
|
+
icon: ta,
|
|
21582
21582
|
label: i.chat.remind.menu,
|
|
21583
21583
|
onClick: r,
|
|
21584
21584
|
testId: "chat-message-menu-remind",
|
|
@@ -21599,7 +21599,7 @@ var eL = (e, t, n) => {
|
|
|
21599
21599
|
onClick: t(mL, () => a(n))
|
|
21600
21600
|
}) : null, pL(e) ? /* @__PURE__ */ Q(UL, {
|
|
21601
21601
|
critical: !0,
|
|
21602
|
-
icon:
|
|
21602
|
+
icon: Br,
|
|
21603
21603
|
label: r.actions.delete,
|
|
21604
21604
|
onClick: t(pL, () => i(n.id))
|
|
21605
21605
|
}) : null]
|
|
@@ -21977,7 +21977,7 @@ var eL = (e, t, n) => {
|
|
|
21977
21977
|
let t = 0;
|
|
21978
21978
|
return e.map((e) => {
|
|
21979
21979
|
let n = "";
|
|
21980
|
-
for (let r of
|
|
21980
|
+
for (let r of Es(e.text)) t = MR.test(r) ? t + 1 : 0, t <= jR && (n += r);
|
|
21981
21981
|
return {
|
|
21982
21982
|
...e,
|
|
21983
21983
|
text: n
|
|
@@ -22003,7 +22003,7 @@ var eL = (e, t, n) => {
|
|
|
22003
22003
|
let n = BR(e).map((e) => ({
|
|
22004
22004
|
paragraph: e,
|
|
22005
22005
|
text: PR(e.runs)
|
|
22006
|
-
})), r = t.length > 0 ?
|
|
22006
|
+
})), r = t.length > 0 ? fs(n.map(({ text: e }) => e).join(AR), t) : [], i = 0;
|
|
22007
22007
|
n.forEach(({ paragraph: e, text: t }) => {
|
|
22008
22008
|
let n = i, a = n + t.length;
|
|
22009
22009
|
i = a + 2;
|
|
@@ -22021,7 +22021,7 @@ var eL = (e, t, n) => {
|
|
|
22021
22021
|
//#endregion
|
|
22022
22022
|
//#region src/domains/platform/communications/chat/F0Chat/components/ChatMentionChip.tsx
|
|
22023
22023
|
function UR({ token: e, label: t }) {
|
|
22024
|
-
let n = e.user?.subtitle ? `${t}, ${e.user.subtitle}` : t, r = V("cursor-pointer rounded-sm border-0 bg-transparent p-0 text-f1-foreground-secondary hover:text-f1-foreground", Tn()), i = e.user?.profileHref ? /* @__PURE__ */ Q(
|
|
22024
|
+
let n = e.user?.subtitle ? `${t}, ${e.user.subtitle}` : t, r = V("cursor-pointer rounded-sm border-0 bg-transparent p-0 text-f1-foreground-secondary hover:text-f1-foreground", Tn()), i = e.user?.profileHref ? /* @__PURE__ */ Q(ti, {
|
|
22025
22025
|
href: e.user.profileHref,
|
|
22026
22026
|
variant: "unstyled",
|
|
22027
22027
|
stopPropagation: !0,
|
|
@@ -22046,14 +22046,14 @@ function UR({ token: e, label: t }) {
|
|
|
22046
22046
|
//#endregion
|
|
22047
22047
|
//#region src/domains/platform/communications/chat/F0Chat/utils/render-body.tsx
|
|
22048
22048
|
var WR = /(https?:\/\/[^\s]+)/g, GR = (e, t) => {
|
|
22049
|
-
let n =
|
|
22049
|
+
let n = Es(e), r = n.split(WR);
|
|
22050
22050
|
if (r.length === 1) return n;
|
|
22051
22051
|
let i = new Map((t ?? []).filter((e) => e.title).map((e) => [e.url, e.title]));
|
|
22052
22052
|
return r.map((e, t) => {
|
|
22053
22053
|
if (e.length === 0) return null;
|
|
22054
22054
|
if (t % 2 == 0) return /* @__PURE__ */ Q(Pu, { children: e }, `text-${t}`);
|
|
22055
22055
|
let n = i.get(e);
|
|
22056
|
-
return /* @__PURE__ */ Q(
|
|
22056
|
+
return /* @__PURE__ */ Q(ti, {
|
|
22057
22057
|
href: e,
|
|
22058
22058
|
target: "_blank",
|
|
22059
22059
|
stopPropagation: !0,
|
|
@@ -22064,12 +22064,12 @@ var WR = /(https?:\/\/[^\s]+)/g, GR = (e, t) => {
|
|
|
22064
22064
|
});
|
|
22065
22065
|
}, KR = (e, t, n) => {
|
|
22066
22066
|
if (t.length === 0) return GR(e, n);
|
|
22067
|
-
let r =
|
|
22067
|
+
let r = fs(e, t);
|
|
22068
22068
|
if (r.length === 0) return GR(e, n);
|
|
22069
22069
|
let i = [], a = 0;
|
|
22070
22070
|
return r.forEach((t, r) => {
|
|
22071
22071
|
t.start > a && i.push(/* @__PURE__ */ Q(Pu, { children: GR(e.slice(a, t.start), n) }, `t-${r}`));
|
|
22072
|
-
let o =
|
|
22072
|
+
let o = Es(e.slice(t.start, t.end));
|
|
22073
22073
|
i.push(/* @__PURE__ */ Q(Pu, { children: /* @__PURE__ */ Q(UR, {
|
|
22074
22074
|
token: t.entry,
|
|
22075
22075
|
label: o
|
|
@@ -22182,12 +22182,12 @@ function fz({ marks: e, children: t }) {
|
|
|
22182
22182
|
//#endregion
|
|
22183
22183
|
//#region src/domains/platform/communications/chat/F0Chat/components/ChatMarkdownLink.tsx
|
|
22184
22184
|
function pz({ link: e, runs: t, previews: n }) {
|
|
22185
|
-
let r = JP(PR(t), e.url), i = r ? n?.find((t) => t.url === e.url && t.title) : void 0, a =
|
|
22186
|
-
return /* @__PURE__ */ Q(
|
|
22185
|
+
let r = JP(PR(t), e.url), i = r ? n?.find((t) => t.url === e.url && t.title) : void 0, a = Es(i?.title ?? "") || void 0, o = r && !a;
|
|
22186
|
+
return /* @__PURE__ */ Q(ti, {
|
|
22187
22187
|
href: e.url,
|
|
22188
22188
|
target: "_blank",
|
|
22189
22189
|
stopPropagation: !0,
|
|
22190
|
-
title: o ? void 0 :
|
|
22190
|
+
title: o ? void 0 : Es(e.url),
|
|
22191
22191
|
className: V("whitespace-normal", o ? "break-all" : "break-words"),
|
|
22192
22192
|
children: a ? /* @__PURE__ */ Q(fz, {
|
|
22193
22193
|
marks: FR(t),
|
|
@@ -22306,7 +22306,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22306
22306
|
}, Ez = (e, t, n, r) => V("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", Tn("focus-visible:ring-inset"), !n && "rounded-t-sm", !r && "rounded-b-sm", n && !t && (e ? "rounded-tr-xs" : "rounded-tl-xs")), Dz = ({ preview: e, host: t, compact: n }) => /* @__PURE__ */ $("div", {
|
|
22307
22307
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 p-2.5",
|
|
22308
22308
|
children: [
|
|
22309
|
-
e.title ? /* @__PURE__ */ Q(
|
|
22309
|
+
e.title ? /* @__PURE__ */ Q(Mo, {
|
|
22310
22310
|
className: "text-base font-medium text-f1-foreground",
|
|
22311
22311
|
children: e.title
|
|
22312
22312
|
}) : null,
|
|
@@ -22314,13 +22314,13 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22314
22314
|
className: V("text-sm text-f1-foreground-secondary", n ? "line-clamp-1" : "line-clamp-2"),
|
|
22315
22315
|
children: e.description
|
|
22316
22316
|
}) : null,
|
|
22317
|
-
/* @__PURE__ */ Q(
|
|
22317
|
+
/* @__PURE__ */ Q(Mo, {
|
|
22318
22318
|
className: "text-sm text-f1-foreground",
|
|
22319
22319
|
children: t
|
|
22320
22320
|
})
|
|
22321
22321
|
]
|
|
22322
22322
|
}), Oz = ({ preview: e, host: t, compact: n, className: r, onOpen: i }) => {
|
|
22323
|
-
let a =
|
|
22323
|
+
let a = da(e.imageUrl), o = wz(e.imageUrl, a, n);
|
|
22324
22324
|
return /* @__PURE__ */ $("a", {
|
|
22325
22325
|
href: e.url,
|
|
22326
22326
|
onClick: i,
|
|
@@ -22341,7 +22341,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22341
22341
|
alt: "",
|
|
22342
22342
|
"aria-hidden": !0,
|
|
22343
22343
|
className: "absolute inset-0 h-full w-full scale-110 object-cover opacity-60 blur-xl"
|
|
22344
|
-
}), /* @__PURE__ */ Q(
|
|
22344
|
+
}), /* @__PURE__ */ Q($a, {
|
|
22345
22345
|
src: e.imageUrl,
|
|
22346
22346
|
alt: "",
|
|
22347
22347
|
className: "relative h-full w-full object-contain"
|
|
@@ -22352,7 +22352,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22352
22352
|
host: t,
|
|
22353
22353
|
compact: n
|
|
22354
22354
|
}),
|
|
22355
|
-
o.kind === "thumb" ? /* @__PURE__ */ Q(
|
|
22355
|
+
o.kind === "thumb" ? /* @__PURE__ */ Q($a, {
|
|
22356
22356
|
src: e.imageUrl,
|
|
22357
22357
|
alt: "",
|
|
22358
22358
|
style: {
|
|
@@ -22391,7 +22391,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22391
22391
|
size: "sm",
|
|
22392
22392
|
hideLabel: !0,
|
|
22393
22393
|
label: a.chat.removeLinkPreview,
|
|
22394
|
-
icon:
|
|
22394
|
+
icon: ei,
|
|
22395
22395
|
onClick: () => r(e.url)
|
|
22396
22396
|
})
|
|
22397
22397
|
}) : null]
|
|
@@ -22401,7 +22401,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22401
22401
|
let n = z(), r = vu(), i = /* @__PURE__ */ Q(Pz, { parts: Mz(e, n.chat) });
|
|
22402
22402
|
return r === "announcement" ? null : t === "overlay" ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
22403
22403
|
"aria-hidden": !0,
|
|
22404
|
-
className:
|
|
22404
|
+
className: Va
|
|
22405
22405
|
}), /* @__PURE__ */ Q("span", {
|
|
22406
22406
|
"aria-hidden": !0,
|
|
22407
22407
|
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)]",
|
|
@@ -22466,7 +22466,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22466
22466
|
lastName: e.name.split(" ").slice(1).join(" ")
|
|
22467
22467
|
}, Bz = 5, Vz = ({ messageId: e, poll: t, onClose: n }) => {
|
|
22468
22468
|
let r = Math.max(0, ...t.options.map(Iz));
|
|
22469
|
-
return /* @__PURE__ */ Q(
|
|
22469
|
+
return /* @__PURE__ */ Q(Wo, {
|
|
22470
22470
|
isOpen: !0,
|
|
22471
22471
|
onClose: n,
|
|
22472
22472
|
width: "sm",
|
|
@@ -22506,7 +22506,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22506
22506
|
}), n ? /* @__PURE__ */ Q("span", {
|
|
22507
22507
|
className: "flex text-f1-icon-warning",
|
|
22508
22508
|
children: /* @__PURE__ */ Q(U, {
|
|
22509
|
-
icon:
|
|
22509
|
+
icon: bs,
|
|
22510
22510
|
size: "md"
|
|
22511
22511
|
})
|
|
22512
22512
|
}) : null]
|
|
@@ -22712,7 +22712,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22712
22712
|
name: n.length === 1 ? n[0].name : void 0
|
|
22713
22713
|
} : r.length > 0 ? { kind: "location" } : i.length > 0 ? { kind: "voice" } : null;
|
|
22714
22714
|
}, Zz = (e) => {
|
|
22715
|
-
let t = z(), { body: n = "", bodyFormat: r } = e, i = J(() =>
|
|
22715
|
+
let t = z(), { body: n = "", bodyFormat: r } = e, i = J(() => Es(mF({
|
|
22716
22716
|
body: n,
|
|
22717
22717
|
bodyFormat: r
|
|
22718
22718
|
}).trim()), [n, r]), a = Yz(e.attachments), o = Xz(e.attachments);
|
|
@@ -22721,19 +22721,19 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22721
22721
|
thumbnailUrl: a
|
|
22722
22722
|
};
|
|
22723
22723
|
let s = o.kind === "photo" ? {
|
|
22724
|
-
icon:
|
|
22724
|
+
icon: fa,
|
|
22725
22725
|
label: o.count === 1 ? t.chat.photo : t.t("chat.photoCount.other", { count: o.count })
|
|
22726
22726
|
} : o.kind === "file" ? {
|
|
22727
|
-
icon:
|
|
22727
|
+
icon: oo,
|
|
22728
22728
|
label: o.name ?? t.t("chat.fileCount.other", { count: o.count })
|
|
22729
22729
|
} : o.kind === "location" ? {
|
|
22730
|
-
icon:
|
|
22730
|
+
icon: ka,
|
|
22731
22731
|
label: t.chat.location
|
|
22732
22732
|
} : o.kind === "voice" ? {
|
|
22733
|
-
icon:
|
|
22733
|
+
icon: Do,
|
|
22734
22734
|
label: t.chat.voiceNote
|
|
22735
22735
|
} : {
|
|
22736
|
-
icon:
|
|
22736
|
+
icon: Gr,
|
|
22737
22737
|
label: t.t("chat.attachmentCount.other", { count: o.count })
|
|
22738
22738
|
};
|
|
22739
22739
|
return {
|
|
@@ -22759,7 +22759,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22759
22759
|
className: "ml-2.5 h-9 w-9 shrink-0 self-center rounded-sm object-cover"
|
|
22760
22760
|
}) : null, /* @__PURE__ */ $("div", {
|
|
22761
22761
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 p-2.5",
|
|
22762
|
-
children: [/* @__PURE__ */ Q(
|
|
22762
|
+
children: [/* @__PURE__ */ Q(Mo, {
|
|
22763
22763
|
className: V("text-sm font-medium", oz(e.author)),
|
|
22764
22764
|
children: u
|
|
22765
22765
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -22768,7 +22768,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22768
22768
|
icon: s,
|
|
22769
22769
|
size: "sm",
|
|
22770
22770
|
color: "default"
|
|
22771
|
-
}) : null, /* @__PURE__ */ Q(
|
|
22771
|
+
}) : null, /* @__PURE__ */ Q(Mo, {
|
|
22772
22772
|
className: "min-w-0 text-base",
|
|
22773
22773
|
children: c
|
|
22774
22774
|
})]
|
|
@@ -22936,7 +22936,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22936
22936
|
className: "relative px-3.5 py-2.5",
|
|
22937
22937
|
children: [
|
|
22938
22938
|
n ? /* @__PURE__ */ Q(tB, { author: n }) : null,
|
|
22939
|
-
/* @__PURE__ */ Q(
|
|
22939
|
+
/* @__PURE__ */ Q(Po, {
|
|
22940
22940
|
"data-chat-message-text": !0,
|
|
22941
22941
|
content: o,
|
|
22942
22942
|
format: "html",
|
|
@@ -22951,12 +22951,12 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
22951
22951
|
})]
|
|
22952
22952
|
})
|
|
22953
22953
|
});
|
|
22954
|
-
}), oB = (e) => e.kind === "image" ? "image" :
|
|
22954
|
+
}), oB = (e) => e.kind === "image" ? "image" : cs(e) ? "video" : Go(e) ? "document" : "file", sB = (e) => {
|
|
22955
22955
|
let t = (e ?? []).filter((e) => e.kind === "image");
|
|
22956
22956
|
return t.length === 1 ? t[0] : void 0;
|
|
22957
22957
|
}, cB = (e) => {
|
|
22958
22958
|
if (e.progress !== void 0) return { bucket: "files" };
|
|
22959
|
-
let t =
|
|
22959
|
+
let t = ro(e, { inferImages: !1 });
|
|
22960
22960
|
switch (t.bucket) {
|
|
22961
22961
|
case "video": return { bucket: "videos" };
|
|
22962
22962
|
case "audio": return { bucket: "audios" };
|
|
@@ -23012,7 +23012,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23012
23012
|
];
|
|
23013
23013
|
for (let e of n) t.push({
|
|
23014
23014
|
file: e,
|
|
23015
|
-
item:
|
|
23015
|
+
item: ua(e, dr(t.length, e.url), { inferImages: !1 })
|
|
23016
23016
|
});
|
|
23017
23017
|
return t;
|
|
23018
23018
|
}, dB = (e, t) => e + t > 1, fB = [
|
|
@@ -23022,7 +23022,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23022
23022
|
"text"
|
|
23023
23023
|
], pB = (e) => e !== null && fB.includes(e), mB = (e) => {
|
|
23024
23024
|
if (e.kind !== "document") return null;
|
|
23025
|
-
let t =
|
|
23025
|
+
let t = Go(e.file);
|
|
23026
23026
|
return pB(t) ? t : !e.rendering && pB(e.documentKind) ? e.documentKind : null;
|
|
23027
23027
|
}, hB = (e) => e.kind === "document" ? e.documentKind : e.kind, gB = (e) => e.kind === "image" ? "image" : oB({
|
|
23028
23028
|
kind: "file",
|
|
@@ -23071,7 +23071,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23071
23071
|
}, SB = () => document.activeElement === null || document.activeElement === document.body, CB = () => {
|
|
23072
23072
|
SB() && document.querySelector("[data-chat-viewport]")?.focus({ preventScroll: !0 });
|
|
23073
23073
|
}, wB = ({ children: e, noteOpener: t, showsDraft: n }) => {
|
|
23074
|
-
let r =
|
|
23074
|
+
let r = ma(), { channel: i } = ju(), a = Y(i.id);
|
|
23075
23075
|
q(function() {
|
|
23076
23076
|
a.current !== i.id && (a.current = i.id, r.close());
|
|
23077
23077
|
}, [i.id, r]);
|
|
@@ -23098,7 +23098,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23098
23098
|
a.current = { messageId: e };
|
|
23099
23099
|
}, []), l = G((e) => {
|
|
23100
23100
|
let t = i.current;
|
|
23101
|
-
return t?.origin !== "composer" || !t.items.some((t) =>
|
|
23101
|
+
return t?.origin !== "composer" || !t.items.some((t) => Ba(t) === e) ? !1 : (i.current = null, !0);
|
|
23102
23102
|
}, []), u = G((e) => {
|
|
23103
23103
|
e.type === "opened" && (i.current = {
|
|
23104
23104
|
origin: e.origin,
|
|
@@ -23121,7 +23121,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23121
23121
|
}, [r]);
|
|
23122
23122
|
return K(() => () => {
|
|
23123
23123
|
o.current !== null && cancelAnimationFrame(o.current);
|
|
23124
|
-
}, []), /* @__PURE__ */ Q(
|
|
23124
|
+
}, []), /* @__PURE__ */ Q(sa, {
|
|
23125
23125
|
onEvent: u,
|
|
23126
23126
|
onFocusFallback: d,
|
|
23127
23127
|
children: /* @__PURE__ */ Q(wB, {
|
|
@@ -23148,13 +23148,13 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23148
23148
|
isLastOfRun: t === f && !d
|
|
23149
23149
|
});
|
|
23150
23150
|
}, OB = (e) => {
|
|
23151
|
-
let { image: t } = e, n =
|
|
23152
|
-
return n && r === t.url ? /* @__PURE__ */ Q(kB, { ...e }) : /* @__PURE__ */ Q(
|
|
23151
|
+
let { image: t } = e, n = yo(t), [r, i] = X(null);
|
|
23152
|
+
return n && r === t.url ? /* @__PURE__ */ Q(kB, { ...e }) : /* @__PURE__ */ Q(_s, {
|
|
23153
23153
|
...e,
|
|
23154
23154
|
onImageError: n ? () => i(t.url) : void 0
|
|
23155
23155
|
});
|
|
23156
23156
|
}, kB = ({ image: e, aspectRatio: t, spanFull: n, surfaceClassName: r, overlay: i }) => {
|
|
23157
|
-
let a = z(), o = yu(), s =
|
|
23157
|
+
let a = z(), o = yu(), s = Cs();
|
|
23158
23158
|
return /* @__PURE__ */ $("div", {
|
|
23159
23159
|
style: { aspectRatio: t },
|
|
23160
23160
|
className: V("relative flex min-w-0 flex-col items-center justify-center gap-2 overflow-hidden p-3", n && "col-span-2", r),
|
|
@@ -23170,7 +23170,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23170
23170
|
/* @__PURE__ */ Q("bdi", {
|
|
23171
23171
|
dir: "auto",
|
|
23172
23172
|
className: "min-w-0 max-w-full text-center",
|
|
23173
|
-
children: /* @__PURE__ */ Q(
|
|
23173
|
+
children: /* @__PURE__ */ Q(Mo, {
|
|
23174
23174
|
className: "text-sm font-medium text-f1-foreground",
|
|
23175
23175
|
children: e.name
|
|
23176
23176
|
})
|
|
@@ -23180,7 +23180,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23180
23180
|
variant: "outline",
|
|
23181
23181
|
size: "sm",
|
|
23182
23182
|
hideLabel: !0,
|
|
23183
|
-
icon:
|
|
23183
|
+
icon: Ki,
|
|
23184
23184
|
label: a.t("chat.downloadNamedFile", { name: e.name }),
|
|
23185
23185
|
onClick: () => {
|
|
23186
23186
|
s(e.url, e.name), o.onAttachmentDownloaded({ kind: "image" });
|
|
@@ -23191,16 +23191,16 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23191
23191
|
});
|
|
23192
23192
|
}, AB = (e) => {
|
|
23193
23193
|
let t = yu();
|
|
23194
|
-
return /* @__PURE__ */ Q(
|
|
23194
|
+
return /* @__PURE__ */ Q(ki, {
|
|
23195
23195
|
...e,
|
|
23196
23196
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: oB(e.file) })
|
|
23197
23197
|
});
|
|
23198
23198
|
}, jB = ({ card: e }) => {
|
|
23199
23199
|
let t = yu(), { action: n } = e;
|
|
23200
23200
|
return /* @__PURE__ */ Q("div", {
|
|
23201
|
-
className:
|
|
23201
|
+
className: Oo,
|
|
23202
23202
|
"data-testid": "chat-card-attachment",
|
|
23203
|
-
children: /* @__PURE__ */ Q(
|
|
23203
|
+
children: /* @__PURE__ */ Q(Ir, {
|
|
23204
23204
|
avatar: e.avatar,
|
|
23205
23205
|
title: e.title,
|
|
23206
23206
|
description: e.description,
|
|
@@ -23222,7 +23222,7 @@ var Cz = 1.91, wz = (e, t, n) => {
|
|
|
23222
23222
|
});
|
|
23223
23223
|
}, MB = (e) => {
|
|
23224
23224
|
let t = yu();
|
|
23225
|
-
return /* @__PURE__ */ Q(
|
|
23225
|
+
return /* @__PURE__ */ Q(qo, {
|
|
23226
23226
|
...e,
|
|
23227
23227
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: oB(e.file) })
|
|
23228
23228
|
});
|
|
@@ -23234,7 +23234,7 @@ function FB() {
|
|
|
23234
23234
|
return Hu(NB);
|
|
23235
23235
|
}
|
|
23236
23236
|
var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ latitude: e, longitude: t }) => `https://www.google.com/maps?q=${e},${t}`, zB = ({ location: e, cornerClass: t = "rounded-xl", surfaceClassName: n, meta: r }) => {
|
|
23237
|
-
let i = z(), a = yu(), o = FB(), { ref: s, shouldMount: c } =
|
|
23237
|
+
let i = z(), a = yu(), o = FB(), { ref: s, shouldMount: c } = ao();
|
|
23238
23238
|
return /* @__PURE__ */ Q("a", {
|
|
23239
23239
|
ref: s,
|
|
23240
23240
|
href: RB(e),
|
|
@@ -23244,7 +23244,7 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23244
23244
|
target: "_blank",
|
|
23245
23245
|
rel: "noopener noreferrer",
|
|
23246
23246
|
"aria-label": e.name ?? i.chat.location,
|
|
23247
|
-
className: V("flex min-w-0 max-w-full flex-col overflow-hidden no-underline",
|
|
23247
|
+
className: V("flex min-w-0 max-w-full flex-col overflow-hidden no-underline", os, "bg-f1-background-tertiary", "transition-shadow hover:ring-1 hover:ring-inset hover:ring-f1-border-secondary", Tn("focus-visible:ring-inset"), t, n),
|
|
23248
23248
|
"data-testid": "chat-location-attachment",
|
|
23249
23249
|
children: /* @__PURE__ */ $("div", {
|
|
23250
23250
|
className: "pointer-events-none relative w-full",
|
|
@@ -23285,7 +23285,7 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23285
23285
|
});
|
|
23286
23286
|
}, BB = ({ surface: e }) => /* @__PURE__ */ Q(B, { className: V("h-full w-full rounded-none motion-reduce:animate-none", e) }), VB = (e) => {
|
|
23287
23287
|
let t = yu();
|
|
23288
|
-
return /* @__PURE__ */ Q(
|
|
23288
|
+
return /* @__PURE__ */ Q(Ca, {
|
|
23289
23289
|
...e,
|
|
23290
23290
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: "video" })
|
|
23291
23291
|
});
|
|
@@ -23342,7 +23342,7 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23342
23342
|
};
|
|
23343
23343
|
}, [e]), t;
|
|
23344
23344
|
}, $B = ({ voice: e, isMine: t = !1, cornerClass: n = "rounded-xl", className: r, surfaceClassName: i }) => {
|
|
23345
|
-
let a = z(), o = Y(null), s =
|
|
23345
|
+
let a = z(), o = Y(null), s = ns(o), c = QB(e.url), [l, u] = X(0), d = Y(null), f = yu(), p = FB(), m = xu(), h = s.duration > 0 ? s.duration : e.durationSeconds ?? 0, g = h > 0 ? Math.min(1, s.currentTime / h) : 0, _ = G(() => {
|
|
23346
23346
|
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());
|
|
23347
23347
|
}, [
|
|
23348
23348
|
s,
|
|
@@ -23388,7 +23388,7 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23388
23388
|
e.preventDefault(), s.seek(Math.min(h, Math.max(0, n)));
|
|
23389
23389
|
}, [h, s]);
|
|
23390
23390
|
return /* @__PURE__ */ $("div", {
|
|
23391
|
-
className: V("group/voice flex h-[58px] min-w-0 items-center gap-2 p-3",
|
|
23391
|
+
className: V("group/voice flex h-[58px] min-w-0 items-center gap-2 p-3", Oo, t ? "bg-f1-background-tertiary" : "bg-f1-background", n, r, i),
|
|
23392
23392
|
"data-testid": "chat-voice-attachment",
|
|
23393
23393
|
children: [
|
|
23394
23394
|
/* @__PURE__ */ Q("audio", {
|
|
@@ -23457,11 +23457,11 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23457
23457
|
surfaceClassName: i
|
|
23458
23458
|
})
|
|
23459
23459
|
}), tV = ({ message: e, isMine: t, isFirstOfRun: n = !0, isLastOfRun: r = !0, hasAvatar: i = !1 }) => {
|
|
23460
|
-
let a = z(), o = yu(), { noteOpener: s } = yB(), c = e.attachments, l = J(() => lB(c ?? []), [c]), u = J(() => uB(l), [l]), d =
|
|
23460
|
+
let a = z(), o = yu(), { noteOpener: s } = yB(), c = e.attachments, l = J(() => lB(c ?? []), [c]), u = J(() => uB(l), [l]), d = Lo(u, "transcript", { sender: t ? void 0 : e.author.name }), f = (t) => {
|
|
23461
23461
|
s(e.id), d.openFile(t);
|
|
23462
|
-
}, p = sB(c), m =
|
|
23462
|
+
}, p = sB(c), m = da(p ? p.thumbnailUrl ?? p.url : void 0, p) ?? void 0;
|
|
23463
23463
|
if (!c || c.length === 0) return null;
|
|
23464
|
-
let h = sz(t), g = "bg-f1-background-tertiary", { images: _, videos: v, documents: y, audios: b, files: x, locations: S, voices: C, cards: w } = l, T = p ?
|
|
23464
|
+
let h = sz(t), g = "bg-f1-background-tertiary", { images: _, videos: v, documents: y, audios: b, files: x, locations: S, voices: C, cards: w } = l, T = p ? Wa(m?.width, m?.height) : null, E = gF(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 = dB(y.length, x.length), O = {
|
|
23465
23465
|
counts: {
|
|
23466
23466
|
images: _.length,
|
|
23467
23467
|
videos: v.length,
|
|
@@ -23484,9 +23484,9 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23484
23484
|
children: [
|
|
23485
23485
|
_.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
23486
23486
|
style: T ? { width: T.width } : void 0,
|
|
23487
|
-
className: V("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", T ? "max-w-full" :
|
|
23487
|
+
className: V("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", T ? "max-w-full" : Oo, xi, k("images")),
|
|
23488
23488
|
"data-testid": "chat-image-album",
|
|
23489
|
-
children:
|
|
23489
|
+
children: Xa(m ? [m] : _).map((t, n, r) => {
|
|
23490
23490
|
let i = _[t.index];
|
|
23491
23491
|
if (!i) return null;
|
|
23492
23492
|
let o = E === "image" && n === r.length - 1;
|
|
@@ -23557,19 +23557,19 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23557
23557
|
cornerClass: "rounded-xl",
|
|
23558
23558
|
onOpen: d.hasViewer ? () => f(e) : void 0
|
|
23559
23559
|
}, `${e.url}-${n}`)) : null, x.map((e, t) => {
|
|
23560
|
-
let n =
|
|
23561
|
-
return /* @__PURE__ */ Q(
|
|
23560
|
+
let n = Qo(e) ?? "";
|
|
23561
|
+
return /* @__PURE__ */ Q(Sa, {
|
|
23562
23562
|
file: {
|
|
23563
23563
|
...e,
|
|
23564
23564
|
mimeType: n
|
|
23565
23565
|
},
|
|
23566
|
-
icon: n === "application/zip" ?
|
|
23566
|
+
icon: n === "application/zip" ? Qa : void 0,
|
|
23567
23567
|
testId: "chat-file-tile",
|
|
23568
23568
|
action: {
|
|
23569
23569
|
label: a.t("chat.downloadNamedFile", { name: e.name }),
|
|
23570
|
-
icon:
|
|
23570
|
+
icon: Ki,
|
|
23571
23571
|
onClick: () => {
|
|
23572
|
-
|
|
23572
|
+
Mi(e.url, e.name), o.onAttachmentDownloaded({ kind: oB(e) });
|
|
23573
23573
|
}
|
|
23574
23574
|
}
|
|
23575
23575
|
}, `${e.url}-${t}`);
|
|
@@ -23618,7 +23618,7 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23618
23618
|
"data-testid": "chat-failed-indicator",
|
|
23619
23619
|
onClick: (e) => n(e.currentTarget),
|
|
23620
23620
|
children: /* @__PURE__ */ Q(U, {
|
|
23621
|
-
icon:
|
|
23621
|
+
icon: Ta,
|
|
23622
23622
|
size: "sm",
|
|
23623
23623
|
color: "critical-bold"
|
|
23624
23624
|
})
|
|
@@ -23714,7 +23714,7 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23714
23714
|
variant: "ghost",
|
|
23715
23715
|
hideLabel: !0,
|
|
23716
23716
|
label: kI(new Date(e)),
|
|
23717
|
-
icon:
|
|
23717
|
+
icon: Ci
|
|
23718
23718
|
}) : null
|
|
23719
23719
|
});
|
|
23720
23720
|
}, fV = ({ icon: e, children: t, testId: n }) => /* @__PURE__ */ $("span", {
|
|
@@ -23727,7 +23727,7 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23727
23727
|
}), pV = ({ forwardedFrom: e }) => {
|
|
23728
23728
|
let t = z(), n = e.channelTitle ? t.t("chat.forwardedFrom", { channel: e.channelTitle }) : t.chat.forwarded;
|
|
23729
23729
|
return /* @__PURE__ */ Q(fV, {
|
|
23730
|
-
icon:
|
|
23730
|
+
icon: jr,
|
|
23731
23731
|
testId: "chat-forwarded-tag",
|
|
23732
23732
|
children: n
|
|
23733
23733
|
});
|
|
@@ -23737,12 +23737,12 @@ var IB = Bu(() => import("./LocationMap-CRcaItG1.js")), LB = 3 / 2, RB = ({ lati
|
|
|
23737
23737
|
let r = /* @__PURE__ */ new Date(), i = e.reminder ? new Date(e.reminder.remindAt) : null, a = i && i > r ? NL(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;
|
|
23738
23738
|
return !s && !a && !e.forwardedFrom ? null : /* @__PURE__ */ $(Z, { children: [
|
|
23739
23739
|
s ? /* @__PURE__ */ Q(fV, {
|
|
23740
|
-
icon:
|
|
23740
|
+
icon: fi,
|
|
23741
23741
|
testId: "chat-pinned-tag",
|
|
23742
23742
|
children: s
|
|
23743
23743
|
}) : null,
|
|
23744
23744
|
a ? /* @__PURE__ */ Q(fV, {
|
|
23745
|
-
icon:
|
|
23745
|
+
icon: Ia,
|
|
23746
23746
|
testId: "chat-reminder-tag",
|
|
23747
23747
|
children: n.t("chat.remind.current", { when: a })
|
|
23748
23748
|
}) : null,
|
|
@@ -24861,7 +24861,7 @@ var QH = ({ channel: e }) => {
|
|
|
24861
24861
|
},
|
|
24862
24862
|
transition: {
|
|
24863
24863
|
duration: r,
|
|
24864
|
-
ease:
|
|
24864
|
+
ease: qa
|
|
24865
24865
|
},
|
|
24866
24866
|
children: /* @__PURE__ */ Q(In.div, {
|
|
24867
24867
|
className: "pointer-events-auto",
|
|
@@ -24869,9 +24869,9 @@ var QH = ({ channel: e }) => {
|
|
|
24869
24869
|
animate: { scale: 1 },
|
|
24870
24870
|
transition: {
|
|
24871
24871
|
duration: r,
|
|
24872
|
-
ease:
|
|
24872
|
+
ease: qa
|
|
24873
24873
|
},
|
|
24874
|
-
children: /* @__PURE__ */ Q(
|
|
24874
|
+
children: /* @__PURE__ */ Q(lo, {
|
|
24875
24875
|
label: l,
|
|
24876
24876
|
showLabel: t > 0 || n,
|
|
24877
24877
|
onClick: () => {
|
|
@@ -25171,7 +25171,7 @@ var QH = ({ channel: e }) => {
|
|
|
25171
25171
|
onJumpToBottom: we
|
|
25172
25172
|
}) : null]
|
|
25173
25173
|
});
|
|
25174
|
-
}, dU = Bu(() => import("./ChatPostComposerDialog-
|
|
25174
|
+
}, dU = Bu(() => import("./ChatPostComposerDialog-CCC7YKUD.js").then((e) => ({ default: e.ChatPostComposerDialog }))), fU = () => {
|
|
25175
25175
|
let e = z(), { createPost: t, composePost: n, searchMembers: r } = ju(), i = yu(), [a, o] = X(!1);
|
|
25176
25176
|
return !t && !n ? null : /* @__PURE__ */ $("div", {
|
|
25177
25177
|
className: "pointer-events-none shrink-0 p-4 pt-0",
|
|
@@ -25313,7 +25313,7 @@ var QH = ({ channel: e }) => {
|
|
|
25313
25313
|
variant: "outline",
|
|
25314
25314
|
size: "sm",
|
|
25315
25315
|
label: e.chat.retry,
|
|
25316
|
-
icon:
|
|
25316
|
+
icon: wo,
|
|
25317
25317
|
onClick: () => void t()
|
|
25318
25318
|
}) : null]
|
|
25319
25319
|
}) });
|
|
@@ -25334,10 +25334,10 @@ var QH = ({ channel: e }) => {
|
|
|
25334
25334
|
}), CU = ({ attachment: e, uploading: t, onRemove: n, onOpen: r }) => {
|
|
25335
25335
|
let i = z(), a = {
|
|
25336
25336
|
label: i.t("chat.removeNamedFile", { name: e.kind === "location" ? e.name ?? i.chat.location : e.kind === "voice" ? i.chat.voiceNote : e.name }),
|
|
25337
|
-
icon:
|
|
25337
|
+
icon: ei,
|
|
25338
25338
|
onClick: n
|
|
25339
25339
|
};
|
|
25340
|
-
return e.kind === "image" || e.kind === "file" ? /* @__PURE__ */ Q(
|
|
25340
|
+
return e.kind === "image" || e.kind === "file" ? /* @__PURE__ */ Q(ia, {
|
|
25341
25341
|
attachment: e,
|
|
25342
25342
|
status: t ? "uploading" : "ready",
|
|
25343
25343
|
removeLabel: a.label,
|
|
@@ -25411,7 +25411,7 @@ var QH = ({ channel: e }) => {
|
|
|
25411
25411
|
...n,
|
|
25412
25412
|
text: t
|
|
25413
25413
|
} : n))), p = (e) => s((t) => kU(t.filter((t) => t.id !== e)));
|
|
25414
|
-
return /* @__PURE__ */ Q(
|
|
25414
|
+
return /* @__PURE__ */ Q(Wo, {
|
|
25415
25415
|
isOpen: !0,
|
|
25416
25416
|
onClose: t,
|
|
25417
25417
|
width: "sm",
|
|
@@ -25435,7 +25435,7 @@ var QH = ({ channel: e }) => {
|
|
|
25435
25435
|
className: "flex flex-col gap-4",
|
|
25436
25436
|
"data-testid": "chat-poll-composer",
|
|
25437
25437
|
children: [
|
|
25438
|
-
/* @__PURE__ */ Q(
|
|
25438
|
+
/* @__PURE__ */ Q(Bo, {
|
|
25439
25439
|
label: n.chat.poll.question,
|
|
25440
25440
|
placeholder: n.chat.poll.questionPlaceholder,
|
|
25441
25441
|
value: i,
|
|
@@ -25453,7 +25453,7 @@ var QH = ({ channel: e }) => {
|
|
|
25453
25453
|
onBlur: () => s(kU),
|
|
25454
25454
|
children: [/* @__PURE__ */ Q("div", {
|
|
25455
25455
|
className: "min-w-0 flex-1",
|
|
25456
|
-
children: /* @__PURE__ */ Q(
|
|
25456
|
+
children: /* @__PURE__ */ Q(Bo, {
|
|
25457
25457
|
hideLabel: !0,
|
|
25458
25458
|
label: `${n.chat.poll.options} ${t + 1}`,
|
|
25459
25459
|
placeholder: n.chat.poll.optionPlaceholder,
|
|
@@ -25468,7 +25468,7 @@ var QH = ({ channel: e }) => {
|
|
|
25468
25468
|
variant: "ghost",
|
|
25469
25469
|
size: "md",
|
|
25470
25470
|
hideLabel: !0,
|
|
25471
|
-
icon:
|
|
25471
|
+
icon: ei,
|
|
25472
25472
|
label: n.chat.poll.removeOption,
|
|
25473
25473
|
onClick: () => p(e.id)
|
|
25474
25474
|
})]
|
|
@@ -25495,12 +25495,12 @@ var QH = ({ channel: e }) => {
|
|
|
25495
25495
|
}, MU = ({ onAttach: e, canAttach: t, onEmoji: n, onCreatePoll: r }) => {
|
|
25496
25496
|
let i = z(), [a, o] = X(!1), [s, c] = X(!1), [l, u] = X(!1), d = [{
|
|
25497
25497
|
label: i.chat.files,
|
|
25498
|
-
icon:
|
|
25498
|
+
icon: Gr,
|
|
25499
25499
|
onClick: e,
|
|
25500
25500
|
disabled: !t
|
|
25501
25501
|
}, {
|
|
25502
25502
|
label: i.chat.poll.menu,
|
|
25503
|
-
icon:
|
|
25503
|
+
icon: ba,
|
|
25504
25504
|
onClick: () => u(!0)
|
|
25505
25505
|
}];
|
|
25506
25506
|
return /* @__PURE__ */ $(Z, { children: [
|
|
@@ -25525,7 +25525,7 @@ var QH = ({ channel: e }) => {
|
|
|
25525
25525
|
size: "md",
|
|
25526
25526
|
hideLabel: !0,
|
|
25527
25527
|
label: i.chat.attachFile,
|
|
25528
|
-
icon:
|
|
25528
|
+
icon: Gr,
|
|
25529
25529
|
onClick: e,
|
|
25530
25530
|
disabled: !t
|
|
25531
25531
|
}),
|
|
@@ -25546,7 +25546,7 @@ var QH = ({ channel: e }) => {
|
|
|
25546
25546
|
size: "md",
|
|
25547
25547
|
hideLabel: !0,
|
|
25548
25548
|
label: i.chat.addEmoji,
|
|
25549
|
-
icon:
|
|
25549
|
+
icon: _r,
|
|
25550
25550
|
pressed: a
|
|
25551
25551
|
})
|
|
25552
25552
|
}), /* @__PURE__ */ Q(El, {
|
|
@@ -25601,7 +25601,7 @@ var QH = ({ channel: e }) => {
|
|
|
25601
25601
|
size: "sm",
|
|
25602
25602
|
hideLabel: !0,
|
|
25603
25603
|
label: n.chat.cancelEdit,
|
|
25604
|
-
icon:
|
|
25604
|
+
icon: ei,
|
|
25605
25605
|
onClick: t
|
|
25606
25606
|
})
|
|
25607
25607
|
})
|
|
@@ -25647,7 +25647,7 @@ var QH = ({ channel: e }) => {
|
|
|
25647
25647
|
size: "sm",
|
|
25648
25648
|
hideLabel: !0,
|
|
25649
25649
|
label: n.chat.removeQuote,
|
|
25650
|
-
icon:
|
|
25650
|
+
icon: ei,
|
|
25651
25651
|
onClick: t
|
|
25652
25652
|
})
|
|
25653
25653
|
})
|
|
@@ -25797,7 +25797,7 @@ function JU({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
|
|
|
25797
25797
|
if (!g || !m) return null;
|
|
25798
25798
|
let e = i.current;
|
|
25799
25799
|
if (!e) return null;
|
|
25800
|
-
let t =
|
|
25800
|
+
let t = Da(e, m.colonIndex);
|
|
25801
25801
|
return {
|
|
25802
25802
|
left: e.offsetLeft + t.left,
|
|
25803
25803
|
bottom: (e.offsetParent ? e.offsetParent.offsetHeight : 0) - (e.offsetTop + t.top)
|
|
@@ -26038,7 +26038,7 @@ var XU = {
|
|
|
26038
26038
|
size: e.size,
|
|
26039
26039
|
mimeType: e.type
|
|
26040
26040
|
}, oW = (e, t) => e && t, sW = (e, { maxFileSizeBytes: t, maxFiles: n, attached: r, labels: i }) => {
|
|
26041
|
-
let a = t === void 0 ? [] : e.filter((e) => e.size > t), o = t !== void 0 && a.length > 0 ? i.fileTooLargeError.replace("{{maxFileSize}}",
|
|
26041
|
+
let a = t === void 0 ? [] : e.filter((e) => e.size > t), o = t !== void 0 && a.length > 0 ? i.fileTooLargeError.replace("{{maxFileSize}}", Ao(t)) : null, s = e.filter((e) => !a.includes(e));
|
|
26042
26042
|
if (n === void 0 || r + s.length <= n) return {
|
|
26043
26043
|
tooLarge: a,
|
|
26044
26044
|
accepted: s,
|
|
@@ -26051,7 +26051,7 @@ var XU = {
|
|
|
26051
26051
|
error: o === null ? c : `${o}. ${c}`
|
|
26052
26052
|
};
|
|
26053
26053
|
}, cW = () => {
|
|
26054
|
-
let e = z(), { 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, createPoll: m } = ju(), h = !!a && cL("canUpload", d.type, p), { target: g } = IF(), { clearComposeTarget: _, registerComposerHandle: v } = LF(), y = rW(), { registerFileDropHandler: b } = RF(), x = yu(), { reducedMotion: S, composerVariant: C } = QF(), w = !!S, T = Y(null), [E, D] = X([]), O = Y(null), k = Y(null), A = Y(/* @__PURE__ */ new Set()), j = Y(0), { error: M, show: N, clear: P } =
|
|
26054
|
+
let e = z(), { 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, createPoll: m } = ju(), h = !!a && cL("canUpload", d.type, p), { target: g } = IF(), { clearComposeTarget: _, registerComposerHandle: v } = LF(), y = rW(), { registerFileDropHandler: b } = RF(), x = yu(), { reducedMotion: S, composerVariant: C } = QF(), w = !!S, T = Y(null), [E, D] = X([]), O = Y(null), k = Y(null), A = Y(/* @__PURE__ */ new Set()), j = Y(0), { error: M, show: N, clear: P } = Io(), F = g.kind === "edit", I = g.kind === "edit" ? g.message : null, L = g.kind === "reply" ? g.message : null, ee = h, [te, ne] = X(!1), re = Y({ channelId: d.id });
|
|
26055
26055
|
re.current = {
|
|
26056
26056
|
channelId: d.id,
|
|
26057
26057
|
replyToId: L?.id
|
|
@@ -26142,12 +26142,12 @@ var XU = {
|
|
|
26142
26142
|
let t = dr(e.length, n.url);
|
|
26143
26143
|
e.push({
|
|
26144
26144
|
file: n,
|
|
26145
|
-
item:
|
|
26145
|
+
item: ua(n, t, { inferImages: !1 })
|
|
26146
26146
|
});
|
|
26147
26147
|
}
|
|
26148
26148
|
}
|
|
26149
26149
|
return e;
|
|
26150
|
-
}, [pe]), he =
|
|
26150
|
+
}, [pe]), he = Lo(me, "composer"), { closeDraft: ge } = yB(), _e = Y(0);
|
|
26151
26151
|
K(() => {
|
|
26152
26152
|
_e.current = E.length;
|
|
26153
26153
|
}, [E]);
|
|
@@ -26312,7 +26312,7 @@ var XU = {
|
|
|
26312
26312
|
});
|
|
26313
26313
|
}, [x]), je = {
|
|
26314
26314
|
duration: w ? 0 : .18,
|
|
26315
|
-
ease:
|
|
26315
|
+
ease: qa
|
|
26316
26316
|
}, Me = /* @__PURE__ */ Q(Gn, {
|
|
26317
26317
|
initial: !1,
|
|
26318
26318
|
mode: "popLayout",
|
|
@@ -26930,7 +26930,7 @@ var NW = yn(wn("F0ENPSButton", MW)), PW = {
|
|
|
26930
26930
|
children: e
|
|
26931
26931
|
}) : null
|
|
26932
26932
|
});
|
|
26933
|
-
}), { Skeleton: We.Skeleton }), qW =
|
|
26933
|
+
}), { Skeleton: We.Skeleton }), qW = Wr(Ru(function({ canBeBlurred: e, ...t }, n) {
|
|
26934
26934
|
let r = {
|
|
26935
26935
|
...t,
|
|
26936
26936
|
header: {
|
|
@@ -26958,7 +26958,7 @@ var NW = yn(wn("F0ENPSButton", MW)), PW = {
|
|
|
26958
26958
|
...e.chart
|
|
26959
26959
|
})
|
|
26960
26960
|
});
|
|
26961
|
-
}), XW = wn("BarChartWidget",
|
|
26961
|
+
}), XW = wn("BarChartWidget", Wr(YW, KW.Skeleton)), ZW = Wr(Ru(function(e, t) {
|
|
26962
26962
|
return /* @__PURE__ */ Q(KW, {
|
|
26963
26963
|
ref: t,
|
|
26964
26964
|
...e,
|
|
@@ -26967,19 +26967,19 @@ var NW = yn(wn("F0ENPSButton", MW)), PW = {
|
|
|
26967
26967
|
...e.chart
|
|
26968
26968
|
})
|
|
26969
26969
|
});
|
|
26970
|
-
}), KW.Skeleton), QW = wn("LineChartWidget", ZW), $W =
|
|
26970
|
+
}), KW.Skeleton), QW = wn("LineChartWidget", ZW), $W = Wr(Ru(function(e, t) {
|
|
26971
26971
|
return /* @__PURE__ */ Q(KW, {
|
|
26972
26972
|
ref: t,
|
|
26973
26973
|
...e,
|
|
26974
26974
|
chart: /* @__PURE__ */ Q(k, { ...e.chart })
|
|
26975
26975
|
});
|
|
26976
|
-
}), KW.Skeleton), eG = wn("PieChartWidget", $W), tG =
|
|
26976
|
+
}), KW.Skeleton), eG = wn("PieChartWidget", $W), tG = Wr(Ru(function(e, t) {
|
|
26977
26977
|
return /* @__PURE__ */ Q(KW, {
|
|
26978
26978
|
ref: t,
|
|
26979
26979
|
...e,
|
|
26980
26980
|
chart: null
|
|
26981
26981
|
});
|
|
26982
|
-
}), KW.Skeleton), nG = wn("SummariesWidget", tG), rG =
|
|
26982
|
+
}), KW.Skeleton), nG = wn("SummariesWidget", tG), rG = Wr(Ru(function(e, t) {
|
|
26983
26983
|
return /* @__PURE__ */ Q(KW, {
|
|
26984
26984
|
ref: t,
|
|
26985
26985
|
...e,
|
|
@@ -27277,13 +27277,13 @@ var NW = yn(wn("F0ENPSButton", MW)), PW = {
|
|
|
27277
27277
|
"bar-chart": "promote"
|
|
27278
27278
|
}, _G = Ru(function({ title: e, content: t, buttonLabel: n, buttonIcon: r, buttonAction: i, type: a }, o) {
|
|
27279
27279
|
let s = pG[a], c = mG[a], l = hG[a], u = gG[a];
|
|
27280
|
-
return /* @__PURE__ */ $(
|
|
27280
|
+
return /* @__PURE__ */ $(ni, {
|
|
27281
27281
|
className: V("relative flex gap-4 overflow-hidden border-dashed", s),
|
|
27282
27282
|
ref: o,
|
|
27283
|
-
children: [/* @__PURE__ */ Q(
|
|
27283
|
+
children: [/* @__PURE__ */ Q(na, {
|
|
27284
27284
|
className: "-mt-0.5",
|
|
27285
27285
|
children: /* @__PURE__ */ Q(wi, { children: e })
|
|
27286
|
-
}), /* @__PURE__ */ $(
|
|
27286
|
+
}), /* @__PURE__ */ $(Zr, {
|
|
27287
27287
|
className: V("flex flex-col gap-4", c),
|
|
27288
27288
|
children: [/* @__PURE__ */ $("div", {
|
|
27289
27289
|
className: V("absolute -top-12 bottom-0 left-0 right-0 flex flex-col justify-end bg-gradient-to-b to-transparent opacity-30", l),
|
|
@@ -27494,7 +27494,7 @@ function OG({ id: e, title: t, subtitle: n, avatars: r, remainingCount: i, withP
|
|
|
27494
27494
|
withEmoji: "emoji" in s && !!s.emoji,
|
|
27495
27495
|
withPointerCursor: a,
|
|
27496
27496
|
children: [
|
|
27497
|
-
"alert" in s && s.alert ? /* @__PURE__ */ Q(
|
|
27497
|
+
"alert" in s && s.alert ? /* @__PURE__ */ Q(kr, { type: s.alert }) : null,
|
|
27498
27498
|
"emoji" in s && s.emoji ? /* @__PURE__ */ Q(ec, { emoji: s.emoji }) : null,
|
|
27499
27499
|
/* @__PURE__ */ $("div", {
|
|
27500
27500
|
className: "flex-1",
|
|
@@ -27758,7 +27758,7 @@ var UG = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, WG = {
|
|
|
27758
27758
|
color: WG.empty
|
|
27759
27759
|
}), c;
|
|
27760
27760
|
}, JG = ({ data: e = [], remainingMinutes: t, trackedMinutes: n = 0 }) => {
|
|
27761
|
-
let r = e.find((e) => e.variant === "clocked-in")?.from, i = e.at(-1), a = r ?
|
|
27761
|
+
let r = e.find((e) => e.variant === "clocked-in")?.from, i = e.at(-1), a = r ? ws(r) : GG, o = t === void 0 || t > 0 ? GG : i ? ws(i.to) : GG, 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);
|
|
27762
27762
|
return {
|
|
27763
27763
|
primaryLabel: a,
|
|
27764
27764
|
secondaryLabel: o,
|
|
@@ -27770,7 +27770,7 @@ var UG = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, WG = {
|
|
|
27770
27770
|
}, ZG = (e) => {
|
|
27771
27771
|
if (!e.from || !e.to) return;
|
|
27772
27772
|
let t = Math.round((e.to.getTime() - e.from.getTime()) / 6e4);
|
|
27773
|
-
return [`${
|
|
27773
|
+
return [`${ws(e.from)} – ${ws(e.to)} (${XG(t)})`, e.label].filter(Boolean).join(YG);
|
|
27774
27774
|
};
|
|
27775
27775
|
function QG({ segments: e }) {
|
|
27776
27776
|
let t = e.map(ZG);
|
|
@@ -27828,7 +27828,7 @@ function $G({ data: e = [], trackedMinutes: t = 0, remainingMinutes: n, variant:
|
|
|
27828
27828
|
dataKey: "value",
|
|
27829
27829
|
strokeWidth: 0,
|
|
27830
27830
|
isAnimationActive: !1,
|
|
27831
|
-
children: i.map((e, t) => /* @__PURE__ */ Q(
|
|
27831
|
+
children: i.map((e, t) => /* @__PURE__ */ Q(Ro, {
|
|
27832
27832
|
fill: e.color,
|
|
27833
27833
|
role: "presentation",
|
|
27834
27834
|
"aria-label": `${e.value} minutes`
|
|
@@ -27988,7 +27988,7 @@ function uK({ locations: e, locationId: t, onChangeLocationId: n, label: r, sear
|
|
|
27988
27988
|
onChange: n,
|
|
27989
27989
|
label: r,
|
|
27990
27990
|
searchPlaceholder: i,
|
|
27991
|
-
fieldIcon:
|
|
27991
|
+
fieldIcon: ai,
|
|
27992
27992
|
required: a,
|
|
27993
27993
|
disabled: o
|
|
27994
27994
|
});
|
|
@@ -28008,7 +28008,7 @@ function fK({ projects: e, projectId: t, onChangeProjectId: n, label: r, searchP
|
|
|
28008
28008
|
onChange: n,
|
|
28009
28009
|
label: r,
|
|
28010
28010
|
searchPlaceholder: i,
|
|
28011
|
-
fieldIcon:
|
|
28011
|
+
fieldIcon: Ts,
|
|
28012
28012
|
required: a,
|
|
28013
28013
|
disabled: o
|
|
28014
28014
|
});
|
|
@@ -28028,7 +28028,7 @@ function pK({ text: e, placeholder: t, icon: n, onClick: r }) {
|
|
|
28028
28028
|
className: V("font-medium", e ? "text-f1-foreground" : "text-f1-foreground-secondary"),
|
|
28029
28029
|
children: e ?? t
|
|
28030
28030
|
}),
|
|
28031
|
-
/* @__PURE__ */ Q(U, { icon:
|
|
28031
|
+
/* @__PURE__ */ Q(U, { icon: vr })
|
|
28032
28032
|
]
|
|
28033
28033
|
});
|
|
28034
28034
|
}
|
|
@@ -28139,7 +28139,7 @@ function bK({ locations: e, locationId: t, onChangeLocationId: n, projects: r, p
|
|
|
28139
28139
|
let c = lK(e), l = dK(r), u = _K(c, t), d = yK({
|
|
28140
28140
|
locationPath: u,
|
|
28141
28141
|
projectPath: _K(l, i)
|
|
28142
|
-
}), f = [...u].reverse().find((e) => e.icon)?.icon ?? (e.length ?
|
|
28142
|
+
}), f = [...u].reverse().find((e) => e.icon)?.icon ?? (e.length ? ai : Ts), p = [
|
|
28143
28143
|
...c.length ? [{
|
|
28144
28144
|
type: "label",
|
|
28145
28145
|
text: o.selectLocation
|
|
@@ -28150,7 +28150,7 @@ function bK({ locations: e, locationId: t, onChangeLocationId: n, projects: r, p
|
|
|
28150
28150
|
text: o.selectProject
|
|
28151
28151
|
}, ...vK(l, i, a)] : []
|
|
28152
28152
|
], m = [e.length ? o.selectLocation : void 0, r.length ? o.selectProject : void 0].filter(Boolean).join(gK);
|
|
28153
|
-
return /* @__PURE__ */ Q(
|
|
28153
|
+
return /* @__PURE__ */ Q(Wi, {
|
|
28154
28154
|
items: p,
|
|
28155
28155
|
align: "end",
|
|
28156
28156
|
disabled: s,
|
|
@@ -28522,9 +28522,9 @@ function TK({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
28522
28522
|
//#endregion
|
|
28523
28523
|
//#region src/domains/employee-lifecycle/profile/Profile/TasksList/TaskItem/TaskItem.tsx
|
|
28524
28524
|
var EK = {
|
|
28525
|
-
done:
|
|
28526
|
-
"in-progress":
|
|
28527
|
-
todo:
|
|
28525
|
+
done: zo,
|
|
28526
|
+
"in-progress": Ga,
|
|
28527
|
+
todo: Ur
|
|
28528
28528
|
}, DK = {
|
|
28529
28529
|
done: "text-f1-icon-success",
|
|
28530
28530
|
"in-progress": "text-f1-icon-info",
|
|
@@ -28547,7 +28547,7 @@ function OK({ task: e, status: t, onClick: n, hideIcon: r = !1 }) {
|
|
|
28547
28547
|
} : void 0,
|
|
28548
28548
|
rawTag: e.badge && !e.badge.isPastDue ? {
|
|
28549
28549
|
text: e.badge.text,
|
|
28550
|
-
icon:
|
|
28550
|
+
icon: Aa
|
|
28551
28551
|
} : void 0,
|
|
28552
28552
|
count: e.counter,
|
|
28553
28553
|
onClick: i
|
|
@@ -28723,7 +28723,7 @@ function tq() {
|
|
|
28723
28723
|
variant: "ghost",
|
|
28724
28724
|
onClick: () => t(),
|
|
28725
28725
|
label: "Open main menu",
|
|
28726
|
-
icon:
|
|
28726
|
+
icon: to,
|
|
28727
28727
|
hideLabel: !0
|
|
28728
28728
|
}) : null] });
|
|
28729
28729
|
}
|
|
@@ -28955,7 +28955,7 @@ function Dq({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
28955
28955
|
size: y ? "md" : "sm",
|
|
28956
28956
|
onClick: e.onClick
|
|
28957
28957
|
});
|
|
28958
|
-
return e.items ? /* @__PURE__ */ Q(
|
|
28958
|
+
return e.items ? /* @__PURE__ */ Q(Wi, {
|
|
28959
28959
|
items: e.items,
|
|
28960
28960
|
align: "end",
|
|
28961
28961
|
open: b === e.label,
|
|
@@ -29037,7 +29037,7 @@ var Oq = Mu.createContext(void 0), kq = ({ tracking: e, children: t }) => /* @__
|
|
|
29037
29037
|
module: t.module,
|
|
29038
29038
|
size: n
|
|
29039
29039
|
}) };
|
|
29040
|
-
if (e === "alert" && t.alert) return { left: /* @__PURE__ */ Q(
|
|
29040
|
+
if (e === "alert" && t.alert) return { left: /* @__PURE__ */ Q(kr, {
|
|
29041
29041
|
type: t.alert,
|
|
29042
29042
|
size: n
|
|
29043
29043
|
}) };
|
|
@@ -29057,7 +29057,7 @@ var Oq = Mu.createContext(void 0), kq = ({ tracking: e, children: t }) => /* @__
|
|
|
29057
29057
|
avatarSize: r ? Yq : n
|
|
29058
29058
|
} : {};
|
|
29059
29059
|
}, Zq = (e, t, n, r) => {
|
|
29060
|
-
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(Nn, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(
|
|
29060
|
+
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(Nn, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(Ja, {
|
|
29061
29061
|
date: w(t.date),
|
|
29062
29062
|
size: r ? "lg" : "md"
|
|
29063
29063
|
}) : void 0 : e.endsWith("-list") ? t.avatars && t.avatars.length > 0 ? /* @__PURE__ */ Q(Qs, {
|
|
@@ -29153,7 +29153,7 @@ function tJ({ params: e, ctx: t }) {
|
|
|
29153
29153
|
}
|
|
29154
29154
|
})
|
|
29155
29155
|
}) : null,
|
|
29156
|
-
/* @__PURE__ */ Q(
|
|
29156
|
+
/* @__PURE__ */ Q(Wo, {
|
|
29157
29157
|
isOpen: l,
|
|
29158
29158
|
onClose: d,
|
|
29159
29159
|
title: s?.title,
|
|
@@ -29686,7 +29686,7 @@ function PJ({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
29686
29686
|
let u = z(), { position: d, width: f, bodyClassName: m, asideClassName: h } = kJ(), { formRef: g, getValues: _, trigger: v } = R(), [y, b] = X(r ?? {});
|
|
29687
29687
|
return K(() => {
|
|
29688
29688
|
e && b(r ?? {});
|
|
29689
|
-
}, [e, r]), /* @__PURE__ */ Q(
|
|
29689
|
+
}, [e, r]), /* @__PURE__ */ Q(Wo, {
|
|
29690
29690
|
isOpen: e,
|
|
29691
29691
|
onClose: t,
|
|
29692
29692
|
title: c ?? u.widgets.editParamsTitle,
|
|
@@ -29768,7 +29768,7 @@ var FJ = (e) => {
|
|
|
29768
29768
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
29769
29769
|
}, WJ = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
29770
29770
|
className: "text-center text-f1-foreground-secondary",
|
|
29771
|
-
children: UJ(e).map((e, t) => /* @__PURE__ */ Q(Pu, { children: "href" in e ? /* @__PURE__ */ Q(
|
|
29771
|
+
children: UJ(e).map((e, t) => /* @__PURE__ */ Q(Pu, { children: "href" in e ? /* @__PURE__ */ Q(ti, {
|
|
29772
29772
|
href: e.href,
|
|
29773
29773
|
children: e.label
|
|
29774
29774
|
}) : e.text }, t))
|
|
@@ -30048,11 +30048,11 @@ function _Y({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
30048
30048
|
onClick: () => le(e.id)
|
|
30049
30049
|
}), e.paramsSchema && y && t.push({
|
|
30050
30050
|
label: w ?? O.widgets.editParams,
|
|
30051
|
-
icon:
|
|
30051
|
+
icon: gs,
|
|
30052
30052
|
onClick: () => oe(e.id)
|
|
30053
30053
|
}), k && !e.locked && d && (t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
30054
30054
|
label: C ?? O.widgets.removeWidget,
|
|
30055
|
-
icon:
|
|
30055
|
+
icon: Br,
|
|
30056
30056
|
critical: !0,
|
|
30057
30057
|
onClick: () => d(e.id)
|
|
30058
30058
|
})), t;
|
|
@@ -30091,7 +30091,7 @@ function _Y({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
30091
30091
|
className: "relative",
|
|
30092
30092
|
children: [o, /* @__PURE__ */ Q("div", {
|
|
30093
30093
|
className: "absolute right-3 top-3 z-10",
|
|
30094
|
-
children: /* @__PURE__ */ Q(
|
|
30094
|
+
children: /* @__PURE__ */ Q(Wi, {
|
|
30095
30095
|
items: r,
|
|
30096
30096
|
align: "end",
|
|
30097
30097
|
children: /* @__PURE__ */ Q(H, {
|
|
@@ -30216,14 +30216,14 @@ var vY = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
30216
30216
|
K(() => {
|
|
30217
30217
|
r && s(!0);
|
|
30218
30218
|
}, [r]);
|
|
30219
|
-
let c = o && !a, l = GK(e, c ? 180 : 0), d = e ? l || t ? "panel" : "retracting" : "column", f = d === "panel", p = !f || t, m =
|
|
30219
|
+
let c = o && !a, l = GK(e, c ? 180 : 0), d = e ? l || t ? "panel" : "retracting" : "column", f = d === "panel", p = !f || t, m = Ri(i), h = u(m, (e) => `${e}px`);
|
|
30220
30220
|
return q(() => {
|
|
30221
30221
|
if (!r) return;
|
|
30222
30222
|
if (!c) {
|
|
30223
30223
|
m.jump(i);
|
|
30224
30224
|
return;
|
|
30225
30225
|
}
|
|
30226
|
-
let e =
|
|
30226
|
+
let e = hs(m, i, UK);
|
|
30227
30227
|
return () => e.stop();
|
|
30228
30228
|
}, [
|
|
30229
30229
|
r,
|
|
@@ -30380,7 +30380,7 @@ var vY = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
30380
30380
|
"aria-label": ye,
|
|
30381
30381
|
children: /* @__PURE__ */ Q($l, { isExpanded: !R })
|
|
30382
30382
|
})
|
|
30383
|
-
}) : null, O ? null : /* @__PURE__ */ Q(
|
|
30383
|
+
}) : null, O ? null : /* @__PURE__ */ Q(Eo, {
|
|
30384
30384
|
tooltip: E,
|
|
30385
30385
|
autoOpen: D
|
|
30386
30386
|
})]
|
|
@@ -30531,9 +30531,9 @@ var vY = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
30531
30531
|
tracking: v,
|
|
30532
30532
|
children: We
|
|
30533
30533
|
});
|
|
30534
|
-
}), AY = (e) => e ?
|
|
30534
|
+
}), AY = (e) => e ? as[e] : void 0, jY = (e) => e.type === "icon" ? {
|
|
30535
30535
|
...e,
|
|
30536
|
-
icon: AY(e.icon) ??
|
|
30536
|
+
icon: AY(e.icon) ?? ur
|
|
30537
30537
|
} : e, MY = (e, t, n) => ({
|
|
30538
30538
|
...e.type === "navigate" && BJ(e.href) ? { href: e.href } : {},
|
|
30539
30539
|
onClick: () => n(e, t)
|
|
@@ -31022,7 +31022,7 @@ var vY = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
31022
31022
|
children: e.change.from
|
|
31023
31023
|
}),
|
|
31024
31024
|
/* @__PURE__ */ Q(U, {
|
|
31025
|
-
icon:
|
|
31025
|
+
icon: Fo,
|
|
31026
31026
|
size: "sm",
|
|
31027
31027
|
color: "default"
|
|
31028
31028
|
}),
|
|
@@ -31168,7 +31168,7 @@ var vY = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
31168
31168
|
}) : null
|
|
31169
31169
|
]
|
|
31170
31170
|
}),
|
|
31171
|
-
r ? /* @__PURE__ */ Q(
|
|
31171
|
+
r ? /* @__PURE__ */ Q(Ja, {
|
|
31172
31172
|
date: r,
|
|
31173
31173
|
size: "lg"
|
|
31174
31174
|
}) : null
|
|
@@ -31567,7 +31567,7 @@ var cZ = Lu(null), lZ = () => Hu(cZ), uZ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
31567
31567
|
content: e.value ?? ""
|
|
31568
31568
|
})
|
|
31569
31569
|
}, t);
|
|
31570
|
-
case "link": return e.url && HJ(e.url) ? /* @__PURE__ */ Q(
|
|
31570
|
+
case "link": return e.url && HJ(e.url) ? /* @__PURE__ */ Q(ti, {
|
|
31571
31571
|
href: e.url,
|
|
31572
31572
|
children: PZ(e)
|
|
31573
31573
|
}, t) : PZ(e);
|
|
@@ -32061,7 +32061,7 @@ var cZ = Lu(null), lZ = () => Hu(cZ), uZ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
32061
32061
|
} }), n = c + i.length;
|
|
32062
32062
|
}
|
|
32063
32063
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
32064
|
-
}, GQ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: UJ(e).map((e, t) => /* @__PURE__ */ Q(Pu, { children: "href" in e ? /* @__PURE__ */ Q(
|
|
32064
|
+
}, GQ = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: UJ(e).map((e, t) => /* @__PURE__ */ Q(Pu, { children: "href" in e ? /* @__PURE__ */ Q(ti, {
|
|
32065
32065
|
href: e.href,
|
|
32066
32066
|
children: e.label
|
|
32067
32067
|
}) : /* @__PURE__ */ Q(HQ, { text: e.text }) }, t)) }), KQ = ({ text: e }) => {
|
|
@@ -32214,7 +32214,7 @@ var cZ = Lu(null), lZ = () => Hu(cZ), uZ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
32214
32214
|
}), d = a$(e.actions, (e) => {
|
|
32215
32215
|
o(), u(e.action, {});
|
|
32216
32216
|
});
|
|
32217
|
-
return /* @__PURE__ */ Q(
|
|
32217
|
+
return /* @__PURE__ */ Q(Wo, {
|
|
32218
32218
|
isOpen: a,
|
|
32219
32219
|
onClose: o,
|
|
32220
32220
|
position: n === "drawer" ? "right" : "center",
|
|
@@ -32386,7 +32386,7 @@ var cZ = Lu(null), lZ = () => Hu(cZ), uZ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
32386
32386
|
children: /* @__PURE__ */ Q(U, {
|
|
32387
32387
|
size: "lg",
|
|
32388
32388
|
color: m$,
|
|
32389
|
-
icon: t || g ? s.icon : o ??
|
|
32389
|
+
icon: t || g ? s.icon : o ?? La
|
|
32390
32390
|
})
|
|
32391
32391
|
})
|
|
32392
32392
|
})]
|
|
@@ -33033,7 +33033,7 @@ function S1({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
33033
33033
|
...r.length ? [{
|
|
33034
33034
|
id: "recommended",
|
|
33035
33035
|
label: u.widgets.recommended,
|
|
33036
|
-
icon:
|
|
33036
|
+
icon: Ni,
|
|
33037
33037
|
items: r
|
|
33038
33038
|
}] : [],
|
|
33039
33039
|
...(i ?? []).map((e) => ({
|
|
@@ -33057,7 +33057,7 @@ function S1({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
33057
33057
|
e && (x("pick"), C(!1), E(null));
|
|
33058
33058
|
}, [e]), K(() => {
|
|
33059
33059
|
b === "configure" && !I && x("pick");
|
|
33060
|
-
}, [b, I]), /* @__PURE__ */ Q(
|
|
33060
|
+
}, [b, I]), /* @__PURE__ */ Q(Wo, {
|
|
33061
33061
|
isOpen: e,
|
|
33062
33062
|
onClose: t,
|
|
33063
33063
|
title: L && P ? u.widgets.configureWidget.replace("{{title}}", P.title) : l,
|
|
@@ -33432,16 +33432,16 @@ var n0 = () => {
|
|
|
33432
33432
|
"sm",
|
|
33433
33433
|
"md",
|
|
33434
33434
|
"md"
|
|
33435
|
-
], c0 =
|
|
33435
|
+
], c0 = Wr(o0, () => /* @__PURE__ */ Q(Ji, { children: /* @__PURE__ */ Q(o0, { children: s0.map((e, t) => /* @__PURE__ */ Q(We.Skeleton, { height: e }, t)) }) })), l0 = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
33436
33436
|
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)]",
|
|
33437
33437
|
children: e
|
|
33438
|
-
}), u0 =
|
|
33438
|
+
}), u0 = Wr(Ru(function({ children: e }, t) {
|
|
33439
33439
|
return /* @__PURE__ */ Q(Ll, {
|
|
33440
33440
|
ref: t,
|
|
33441
33441
|
showBar: !1,
|
|
33442
33442
|
children: /* @__PURE__ */ Q(l0, { children: e })
|
|
33443
33443
|
});
|
|
33444
|
-
}), () => /* @__PURE__ */ Q(
|
|
33444
|
+
}), () => /* @__PURE__ */ Q(Ji, {
|
|
33445
33445
|
orientation: "horizontal",
|
|
33446
33446
|
children: /* @__PURE__ */ $(l0, { children: [
|
|
33447
33447
|
/* @__PURE__ */ Q(We.Skeleton, {}),
|
|
@@ -33481,4 +33481,4 @@ var p0 = yn(wn("WidgetEmptyState", f0)), m0 = ({ identifier: e, allowedRoutes: t
|
|
|
33481
33481
|
type: "layout"
|
|
33482
33482
|
}, Ll));
|
|
33483
33483
|
//#endregion
|
|
33484
|
-
export { p1 as AGENTIC_HOME_SPEC_VERSION, ye as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, Bg as ActivityItemList, zg as ActivityItemListSkeleton, yD as ApplicationFrame, xe as AreaChart, aG as AreaChartWidget, GW as AutoGrid, Ns as Badge, _ as BarChart, oG as BarChartWidget, Rg as BaseActivityItemList, Be as BaseBanner, z_ as BaseCelebration, nv as BaseCommunityPost,
|
|
33484
|
+
export { p1 as AGENTIC_HOME_SPEC_VERSION, ye as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, Bg as ActivityItemList, zg as ActivityItemListSkeleton, yD as ApplicationFrame, xe as AreaChart, aG as AreaChartWidget, GW as AutoGrid, Ns as Badge, _ as BarChart, oG as BarChartWidget, Rg as BaseActivityItemList, Be as BaseBanner, z_ as BaseCelebration, nv as BaseCommunityPost, ya as BaseTabs, hi as BreadcrumbSelect, BD as Breadcrumbs, Z_ as CalendarEvent, xG as CalendarEventList, qt as CardSelectableContainer, Ft as Carousel, m as CategoryBarChart, HG as CategoryBarSection, V_ as Celebration, B_ as CelebrationSkeleton, vG as ChartWidgetEmptyState, dc as Chip, TK as ClockInControls, Yt as CoachmarkProvider, oe as ComboChart, iv as CommunityPost, pv as CommunityPostCard, mv as CommunityPostCardSkeleton, rv as CommunityPostSkeleton, RA as CompanySelector, Nn as Counter, rJ as DEFAULT_EXPECTED_ITEMS_COUNT, c0 as Dashboard, jD as DaytimePage, Fi as DetailsItem, ps as DetailsItemsList, Je as Dialog, _i as Dropdown, Jq as EVENT_LIST_GAP, ag as EntitySelect, $e as F0ActionBar, l1 as F0AgenticHome, d1 as F0AgenticHomeBlock, o as F0AiBanner, Gd as F0AiCallout, Vo as F0AiPromptRow, Hs as F0AvatarColor, Bs as F0AvatarColorList, Zs as F0AvatarModule, al as F0ButtonToggle, $d as F0Callout, Vi as F0CardHorizontal, Vi as F0CardRow, Pm as F0CarouselDialog, EW as F0Chat, mI as F0ChatHistoryLimitCard, _u as F0ChatProvider, xP as F0CommandPaletteProvider, vv as F0CommunityPostsCarousel, mm as F0Composer, ff as F0Confetti, NW as F0ENPSButton, Sd as F0EmojiPicker, gi as F0FileItem, Me as F0FormEditableTable, VM as F0InboxItem, HM as F0InboxItemDecision, JM as F0InboxItemGroup, XM as F0InboxItemList, tN as F0InboxItemListSkeleton, eN as F0InboxItemSkeleton, et as F0LocationInput, uu as F0Map, Jl as F0MapControls, pu as F0MapList, mu as F0MapSidebar, iu as F0MapSidebarToggle, su as F0MapSkeleton, FE as F0Meeting, Pf as F0MeetingCard, Bv as F0MeetingProvider, _E as F0MeetingRoom, IE as F0MeetingSlot, PE as F0MeetingSurface, un as F0NotesTextEditor, _e as F0NotesTextEditorSkeleton, I as F0NumberInput, O as F0NumberInputInline, fr as F0PersonCard, Jt as F0PhoneInput, Kj as F0PrimarySidebar, ol as F0ProgressSeries, lp as F0PulseDot, jm as F0Resizable, pn as F0ResourceHeader, pn as ResourceHeader, Po as F0RichTextDisplay, re as F0RichTextEditor, rp as F0SalaryBenchmark, Xf as F0SalaryBenchmarkIndicator, Ic as F0SearchInput, Yj as F0SecondarySidebar, Im as F0SegmentedBar, oa as F0SegmentedControl, ch as F0SharingDialog, yh as F0SwipeDeck, P_ as F0SystemBanner, Ht as F0TableOfContent, Og as F0TemplateTextInput, ce as F0TextAreaInput, ie as F0TextAreaInputInline, Bo as F0TextInput, ee as F0TextInputInline, jh as F0Timeline, kh as F0VersionHistory, lI as F0_CHAT_HEADER_TITLE_SELECTOR, kP as F0_CHAT_MESSAGES_TAB_ID, Fc as F1SearchBox, y as FILE_TYPES, po as FileItem, H_ as HighlightBanner, $K as HomeSlotItem, QK as HomeSlotItems, EG as IndicatorsList, Qr as Input, Ge as Item, gt as ItemSectionHeader, AP as LATEST, Pq as LIST_COMPACT_AFTER, Kq as LIST_MORE_BUTTON_CLASS, xt as LineChart, sG as LineChartWidget, $E as MeetingNotes, RE as MeetingPanelContent, QE as MeetingParticipants, BE as MeetingRoomChat, eE as MeetingSidePanel, hx as MeetingSurfaceProvider, UE as MeetingTranscript, tj as Menu, mo as MobileDropdown, kY as NewHomeLayout, l as NotesTextEditor, sn as NotesTextEditorSkeleton, me as NumberInput, fO as OmniButton, hN as OneApprovalHistory, Oc as OneCalendar, Tt as OneDataCollection, c as OneDateNavigator, S as OneEmptyState, Xm as OneListItem, Ym as OneListItemSkeleton, bt as OnePagination, xv as OnePersonListItem, m0 as OneRestrictComponent, mO as Page, cO as PageHeader, VD as PageHeaderNavigationContext, HD as PageHeaderNavigationProvider, Za as PageNavigation, i as PieChart, cG as PieChartWidget, $t as PrivateBox, yt as ProgressBarChart, f1 as RECOMMENDED_AGENTIC_HOME_RULES, Ql as RECOMMENDED_MAX_MARKERS, te as RadarChart, G_ as Reactions, Co as RichTextDisplay, se as RichTextEditor, Wq as SLOT_ROW_BLEED, iJ as SLOT_SKELETON_ITEM_TESTID, h0 as ScrollArea, qj as SearchBar, r as SectionHeader, Yc as Select, cr as Shortcut, Qj as Sidebar, Pk as SidebarChatBlankState, Hk as SidebarChatItem, Ik as SidebarChatItemSkeleton, DA as SidebarChatList, Rk as SidebarChatListSkeleton, wO as SidebarChatProvider, LO as SidebarCollapsibleSection, WA as SidebarFooter, KA as SidebarHeader, ij as SidebarPanelHeader, tk as SidebarTabPanel, GO as SidebarTabPanelSearch, tM as SidebarTabs, UA as SidebarUserMenu, DJ as SlotWidget, EJ as SlotWidgetContent, bc as Spinner, WW as Split, UW as Stack, uG as SummariesWidget, Hc as Switch, ko as Tabs, Xo as TabsSkeleton, kK as TasksList, b as Textarea, Tr as ToggleGroup, mi as ToggleGroupItem, Fn as Tooltip, Ln as TooltipGroup, VG as TwoColumnsList, D as UPLOAD_INPUT_ID, ae as VerticalBarChart, lG as VerticalBarChartWidget, Nh as VirtualList, kc as WeekStartDay, Ar as Weekdays, d0 as Widget, kG as WidgetAvatarsListItem, S1 as WidgetCatalog, p0 as WidgetEmptyState, wG as WidgetHighlightButton, LG as WidgetInboxList, MG as WidgetInboxListItem, iq as WidgetSection, zG as WidgetSimpleList, FG as WidgetSimpleListItem, u0 as WidgetStrip, wt as actionBarStatuses, Cd as aiCalloutStatuses, If as attendeesDisplays, Ob as buildTiles, _t as buttonToggleColors, Ke as buttonToggleSizes, Mt as buttonToggleVariants, Y_ as calendarEventVariants, cc as chipVariants, cd as coachmarks, $N as commandActionRisks, fv as communityPostCardVariants, hm as composerVariants, ef as confettiPalette, Yw as createMeetingSignalStore, ou as defaultMapStyle, pJ as defaultSlotRenderers, fJ as defaultSlotSkeleton, yN as defineSelectCellSubmenu, pd as defineStepByStepCoachmarkGuidance, Wg as dismissibleSystemNoticeVariants, rt as downloadAsCSV, Pt as downloadAsExcel, wP as f0ChatSenderColors, md as f0EmojiPickerSizes, hr as f0FileItemSizes, Zl as f0MapMarkerVariants, lu as f0MapStyles, Rb as f0MeetingConnectionQualities, Hb as f0MeetingCoreActionIds, Ib as f0MeetingDisconnectReasons, Pb as f0MeetingGuestKinds, Ub as f0MeetingInvitationStates, Lb as f0MeetingPermissions, Nb as f0MeetingPresences, Fb as f0MeetingStatuses, zb as f0MeetingSurfaceDestinations, Bb as f0MeetingSurfaceModes, Mb as f0MeetingTrackKinds, nd as f0ProgressSeriesColors, td as f0ProgressSeriesSizes, Vb as f0WindowCorners, Rq as fromParams, Lt as generateCSVContent, ln as getAutoPerPageMinHeight, tl as getGranularityDefinition, Kc as getGranularityDefinitions, sl as getGranularitySimpleDefinition, ru as googleMapStyles, Xl as googlePinlessMapStyles, Jc as granularityDefinitions, $q as heldDialogActions, Iq as homeSlot, oN as inboxItemDecisionSizes, sN as inboxItemSkeletonAvatars, aN as inboxItemStatuses, rN as inboxItemTints, iN as inboxItemTones, Ko as isPossiblePhoneValue, OP as isPost, TP as isSystemMessage, DP as isUserMessage, io as isValidPhoneValue, zw as layoutGrid, Fq as listCompacts, Qq as listGlyphSize, v as listIconColors, qq as listMoreButtonClass, Lq as listSlot, ug as locationInputSizes, dg as locationParts, PC as matchDevice, Ff as meetingStates, mF as messageBodyText, zs as modules, Zb as nearestCorner, Km as oneListItemRowClassName, fg as phoneInputSizes, Xb as placementFromRect, Ut as predefinedPresets, up as pulseDotVariants, Hq as railActionTones, el as rangeSeparator, OC as readMeetingMediaPreferences, Hw as reorderForSpeakers, gm as resizableDirections, Dw as resolveAutoFocus, Rc as resolveGranularityDefinition, Yb as resolvePlacement, Nq as resolveSlotRenderer, zq as resolveWidgetHeader, op as salaryBenchmarkIndicatorSizes, ip as salaryBenchmarkPositions, ap as salaryBenchmarkVariants, Ty as sanitizeMeetingReaction, _N as seedFromStorage, Ae as selectSizes, Le as selectVariants, Qb as settlePlacement, Gq as slotRowBleed, Rw as solveGrid, Uw as solveSpotlight, Th as swipeDirections, Ug as systemNoticeVariants, jb as tileAspectRatio, Eb as tileKey, kC as updateMeetingMediaPreferences, yP as useCommandPalette, Vg as useCompactOnScroll, uf as useConfetti, ne as useDataCollectionData, vN as useDataCollectionItemNavigation, ge as useDataCollectionSource, tn as useExportAction, ju as useF0Chat, Hv as useF0Meeting, Gv as useF0MeetingRoster, Wv as useF0MeetingStable, Vv as useHasF0Meeting, a as useInfiniteScrollPagination, ZK as useIsBulkChange, AC as useMeetingMediaPreferences, $w as useMeetingSignal, eT as useMeetingSpeakers, gx as useMeetingSurface, _x as useMeetingSurfaceOptional, WD as usePageHeaderItemNavigation, UD as usePageHeaderNavigation, br as useSidePanel, tu as useSidebar, OO as useSidebarChatActions, DO as useSidebarChats, wh as useSwipeDeck, ey as useTrackBinding, Qe as useWidgetIsWide, eD as viewportRect, Uq as widgetChrome, Vq as widgetParamsAreComplete, Bq as widgetTitle };
|