@factorialco/f0-react 16.32.1 → 16.33.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-BuNA4UrO.js → ArchiveThumbnail-VRBMnfOQ.js} +4 -4
- package/dist/{ArchiveViewer-W103xRky.js → ArchiveViewer-FmO3W9El.js} +12 -12
- package/dist/{ChatPostComposerDialog-BCXfHgyD.js → ChatPostComposerDialog-UWNCaU6S.js} +2 -2
- package/dist/{CoachmarkProvider-CXRAZo57.js → CoachmarkProvider-NJDyjcbB.js} +17288 -17310
- package/dist/{CodeThumbnail-CrMWds9n.js → CodeThumbnail-BLWM5FmO.js} +1 -1
- package/dist/{CodeViewer-BYY3y3VG.js → CodeViewer-BjVmQeMm.js} +4 -4
- package/dist/{DocumentToolbar-CipRq68O.js → DocumentToolbar-Dq3Lwikl.js} +3 -3
- package/dist/{DocxViewer-8dEvcQjH.js → DocxViewer-70VqeeOa.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CelAhVN1.js → F0AiProcessingOverlay-DFJNq358.js} +506 -506
- package/dist/{F0Alert-CjoArzBk.js → F0Alert-nVgfw7WI.js} +6 -6
- package/dist/F0AudioPlayer-CG3RpwqJ.js +2 -0
- package/dist/{F0CanvasPanel-B7AXL0XT.js → F0CanvasPanel-Dg-yCd06.js} +9497 -9662
- package/dist/{F0DocumentViewer-DcNc-yXR.js → F0DocumentViewer-QvayGtJt.js} +2 -2
- package/dist/{F0DocumentViewer-DVByu4vb.js → F0DocumentViewer-s2CNCz31.js} +1 -1
- package/dist/{F0Map-BN8BQzMZ.js → F0Map-BPWgG3Br.js} +503 -503
- package/dist/{F0Select-CtRlKRnL.js → F0Select-DV2A6yo2.js} +5684 -5684
- package/dist/{F0VideoPlayer-THvSQSCu.js → F0VideoPlayer-D7wWuao2.js} +14 -14
- package/dist/F0VideoPlayer-Dn8MFW-n.js +1 -0
- package/dist/{HtmlViewer-ClgjG-H_.js → HtmlViewer-B79wACEv.js} +4 -4
- package/dist/{Map-CdRcz8MV.js → Map-BwNqQnRV.js} +7 -7
- package/dist/{PdfThumbnail-CXYyO2sc.js → PdfThumbnail-BiI4wG8G.js} +1 -1
- package/dist/{PdfViewer-BNPz0po0.js → PdfViewer-DxW7iBqZ.js} +6 -6
- package/dist/{SheetViewer-BV4RjCqC.js → SheetViewer-CDGVktjK.js} +4 -4
- package/dist/{TextViewer-B-a77tb9.js → TextViewer-DSWQD1PY.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +3 -3
- package/dist/component-status.js +5 -5
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +570 -570
- package/dist/{exports-DxWkQJMl.d.ts → exports-DjzAyxYh.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +944 -944
- package/dist/{highlight-B3C1rkLK.js → highlight-Ca0-nk5V.js} +6 -6
- package/dist/{index-MQOQkW-2.d.ts → index-D-HizTYE.d.ts} +13 -8
- package/dist/{index-CZ-TTSgT.d.ts → index-g72aneMP.d.ts} +6 -2
- package/dist/{maplibre-D5u_EpGf.js → maplibre-CQlQTgFD.js} +1 -1
- package/dist/{pdfWorker-allMZ4J8.js → pdfWorker-VXyiKOiL.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useData-Clrt5l2P.js → useData-BUahpDRq.js} +1 -1
- package/package.json +2 -2
- package/dist/F0AudioPlayer-_zrcaPAA.js +0 -2
- package/dist/F0VideoPlayer-CB52ikkB.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, $r as r, $t as i, Ar as a, At as o, B as s, Br as c, Bt as l, C 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, Jr as M, K as N, Kr as P, Kt as F, L as I, Ln as ee, Lr as te, Mn as ne, Mr as re, Mt as ie, N as ae, Nn as oe, Nr as se, Or as ce, P as le, Pn as ue, Pr as de, Q as fe, Qn as pe, Qr as me, R as he, Rn as ge, Rr as _e, Rt as ve, S as L, Si as ye, Sn as be, Sr as xe, St as Se, T as Ce, Ti as we, Tt as Te, U as Ee, Ur as De, V as Oe, Vr as ke, W as Ae, Wr as je, X as Me, Xn as Ne, Xr as Pe, Xt as Fe, Y as Ie, Yn as Le, Z as Re, Zn as ze, Zr as Be, Zt as Ve, _ as He, _i as Ue, _n as We, _r as Ge, ai as Ke, an as qe, ar as Je, at as Ye, b as Xe, bi as Ze, bn as Qe, br as $e, ci as et, cr as tt, ct as nt, d as rt, di as it, dn as at, dt as ot, et as st, fn as ct, g as lt, gi as ut, gn 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, wr as ln, wt as un, x as dn, xi as fn, xr as pn, y as mn, yi as hn, yn as gn, yr as _n, z as vn, zr as yn } from "./CoachmarkProvider-
|
|
2
|
+
import { $ as t, $n as n, $r as r, $t as i, Ar as a, At as o, B as s, Br as c, Bt as l, C 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, Jr as M, K as N, Kr as P, Kt as F, L as I, Ln as ee, Lr as te, Mn as ne, Mr as re, Mt as ie, N as ae, Nn as oe, Nr as se, Or as ce, P as le, Pn as ue, Pr as de, Q as fe, Qn as pe, Qr as me, R as he, Rn as ge, Rr as _e, Rt as ve, S as L, Si as ye, Sn as be, Sr as xe, St as Se, T as Ce, Ti as we, Tt as Te, U as Ee, Ur as De, V as Oe, Vr as ke, W as Ae, Wr as je, X as Me, Xn as Ne, Xr as Pe, Xt as Fe, Y as Ie, Yn as Le, Z as Re, Zn as ze, Zr as Be, Zt as Ve, _ as He, _i as Ue, _n as We, _r as Ge, ai as Ke, an as qe, ar as Je, at as Ye, b as Xe, bi as Ze, bn as Qe, br as $e, ci as et, cr as tt, ct as nt, d as rt, di as it, dn as at, dt as ot, et as st, fn as ct, g as lt, gi as ut, gn 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, wr as ln, wt as un, x as dn, xi as fn, xr as pn, y as mn, yi as hn, yn as gn, yr as _n, z as vn, zr as yn } from "./CoachmarkProvider-NJDyjcbB.js";
|
|
3
3
|
import { a as bn, c as xn, d as Sn, i as Cn, l as wn, r as R } from "./i18n-provider-DEmElb7u.js";
|
|
4
4
|
import { n as Tn, t as z } from "./skeleton-cJaQYsv6.js";
|
|
5
5
|
import { L as B, R as En, a as Dn, i as On, o as kn, r as An, t as jn } from "./tooltip-NXXT56H4.js";
|
|
6
6
|
import { A as Mn, B as Nn, C as Pn, D as Fn, E as In, G as Ln, H as Rn, K as zn, L as Bn, O as Vn, R as Hn, T as Un, W as Wn, X as Gn, Z as Kn, _ as qn, c as Jn, d as Yn, f as Xn, h as Zn, k as Qn, l as $n, m as er, n as V, o as tr, p as nr, q as rr, r as ir, t as H, v as ar, w as or, x as sr, y as cr, z as lr } from "./F0Button-B9tE57M3.js";
|
|
7
|
-
import { $o as ur, $t as dr, A as fr, Ai as pr,
|
|
7
|
+
import { $o as ur, $t as dr, A as fr, Ai as pr, An as mr, B as hr, Bi as gr, Bl as _r, Bo as vr, Bs as yr, C as br, Cc as xr, Cn as Sr, Cs as Cr, Ct as wr, D as Tr, Dc as Er, Ds as Dr, Dt as Or, Ec as kr, El as Ar, Es as jr, Et as Mr, Fi as Nr, Fo as Pr, Ft as Fr, Gi as Ir, Gn as Lr, Go as Rr, Gt as zr, Hc as Br, Hi as Vr, Hl as Hr, Hn as Ur, Hs as Wr, Ii as Gr, Io as Kr, It as qr, J as Jr, Jc as Yr, Jo as Xr, Js as Zr, Jt as Qr, Kc as $r, Ki as ei, Ko as ti, Ks as ni, Kt as ri, Ln as ii, Lo as ai, Ls as oi, Lt as si, M as ci, Mi as li, Ml as ui, Mn as di, Mt as fi, N as pi, Nc as mi, Nl as hi, O as gi, Oi as _i, Ol as vi, Ot as yi, P as bi, Pc as xi, Pn as Si, Pt as Ci, Qs as wi, Qt as Ti, Ri as Ei, Rl as Di, Rn as Oi, Ro as ki, Rt as Ai, S as ji, Sa as Mi, Sc as Ni, Si as Pi, Sl as Fi, Sn as Ii, St as Li, T as Ri, Tc as zi, Tl as Bi, Tn as Vi, Ts as Hi, Tt as Ui, Uc as Wi, Ui as Gi, Ul as Ki, Un as qi, Uo as Ji, Us as Yi, V as Xi, Vc as Zi, Vi as Qi, Vn as $i, Vs as ea, Wc as ta, Wi as na, Wn as ra, Wo as ia, Ws as aa, X as oa, Xi as sa, Xo as ca, Xs as la, Xt as ua, Y as da, Yc as fa, Yn as pa, Yo as ma, Z as ha, Zs as ga, Zt as _a, _ as va, _o as ya, _t as ba, a as xa, al as Sa, an as Ca, as as wa, at as Ta, b as Ea, bc as Da, bi as Oa, bt as ka, c as Aa, ca as ja, cc as Ma, ci as Na, cl as Pa, cs as Fa, ct as Ia, d as La, dl as Ra, en as za, es as Ba, et as Va, f as Ha, fa as Ua, fn as Wa, fo as Ga, fs as Ka, ft as qa, g as Ja, gl as Ya, gs as Xa, gt as Za, h as Qa, hc as $a, hl as eo, hn as to, ht as no, i as ro, ia as io, ic as ao, il as oo, in as so, it as co, j as lo, ji as uo, jl as fo, jn as po, k as mo, kc as ho, ki as go, kl as _o, ks as vo, la as yo, li as bo, ll as xo, lt as So, m as Co, mc as wo, ml as To, mn as Eo, mo as Do, ms as Oo, mt as ko, n as Ao, nc as jo, nt as Mo, o as No, oa as Po, oc as Fo, ol as Io, on as Lo, os as Ro, ot as zo, p as Bo, pl as Vo, pn as Ho, pt as Uo, q as Wo, qc as Go, qi as Ko, qo, qs as Jo, qt as Yo, r as Xo, rc as Zo, rl as Qo, rn as $o, rt as es, sa as ts, sc as ns, sn as rs, ss as is, st as as, t as os, tc as ss, tl as cs, tn as ls, tt as us, u as ds, ul as fs, un as ps, us as ms, v as hs, va as gs, vc as _s, vi as vs, vl as ys, vn as bs, vr as xs, vt as Ss, w as Cs, wl as ws, wn as Ts, ws as Es, wt as Ds, x as Os, xa as ks, xc as As, xi as js, xn as Ms, xt as Ns, y as Ps, yc as Fs, yi as Is, yn as Ls, yr as Rs, ys as zs, yt as Bs, zc as Vs, zo as Hs, zs as Us, zt as Ws } from "./F0CanvasPanel-Dg-yCd06.js";
|
|
8
8
|
import { t as Gs } from "./LayoutGroup-CuWgJO_W.js";
|
|
9
9
|
import { a as U, o as Ks, s as qs, u as Js } from "./createIcon-l_kbsdJi.js";
|
|
10
|
-
import { A as Ys, C as Xs,
|
|
11
|
-
import { $ as vc, A as yc, Bn as bc, Br as xc, Bt as Sc, Cr as Cc, En as wc, Er as Tc, F as Ec, Gn as Dc, Gt as Oc, Hn as kc, Hr as Ac, In as jc, Ir as Mc, It as Nc, J as Pc, Jn as Fc, Lr as Ic, Lt as Lc, N as Rc, P as zc, Q as Bc, Rn as Vc, Rr as Hc, Rt as Uc, Sn as Wc, Sr as Gc, St as Kc, Tr as qc, Tt as Jc, Un as Yc, Ur as Xc, Vr as Zc, X as Qc, Z as $c, _ as el, _n as tl, at as nl, bt as rl, cn as il, dt as al, ft as ol, g as sl, h as cl, hn as ll, it as ul, jn as dl, m as fl, mn as pl, nt as ml, rt as hl, t as gl, tt as _l, ut as vl, v as yl, vn as bl, xt as xl, y as Sl, zn as Cl, zt as wl } from "./F0Select-
|
|
10
|
+
import { A as Ys, C as Xs, E as Zs, H as Qs, I as $s, L as ec, M as tc, N as W, O as nc, P as rc, R as ic, S as ac, T as oc, U as sc, V as cc, _ as lc, a as uc, b as dc, g as fc, j as pc, k as mc, p as hc, u as gc, w as _c } from "./useData-BUahpDRq.js";
|
|
11
|
+
import { $ as vc, A as yc, Bn as bc, Br as xc, Bt as Sc, Cr as Cc, En as wc, Er as Tc, F as Ec, Gn as Dc, Gt as Oc, Hn as kc, Hr as Ac, In as jc, Ir as Mc, It as Nc, J as Pc, Jn as Fc, Lr as Ic, Lt as Lc, N as Rc, P as zc, Q as Bc, Rn as Vc, Rr as Hc, Rt as Uc, Sn as Wc, Sr as Gc, St as Kc, Tr as qc, Tt as Jc, Un as Yc, Ur as Xc, Vr as Zc, X as Qc, Z as $c, _ as el, _n as tl, at as nl, bt as rl, cn as il, dt as al, ft as ol, g as sl, h as cl, hn as ll, it as ul, jn as dl, m as fl, mn as pl, nt as ml, rt as hl, t as gl, tt as _l, ut as vl, v as yl, vn as bl, xt as xl, y as Sl, zn as Cl, zt as wl } from "./F0Select-DV2A6yo2.js";
|
|
12
12
|
import { t as Tl } from "./Check-DSKdy4lh.js";
|
|
13
13
|
import { a as El } from "./dist-C1RZo6kP.js";
|
|
14
14
|
import { t as Dl } from "./Ellipsis-D5UwpzSY.js";
|
|
@@ -21,7 +21,7 @@ import { t as tu } from "./F0Text-BDmNaecR.js";
|
|
|
21
21
|
import { a as nu, i as ru, n as iu, r as au, s as ou, t as su } from "./dist-DMTFO2gF.js";
|
|
22
22
|
import './maplibre-gl.css';import './RichText.css';/* empty css */
|
|
23
23
|
import { t as cu } from "./useFullscreen-CNwpzjpz.js";
|
|
24
|
-
import { _ as lu, a as uu, b as du, c as fu, d as pu, f as mu, g as hu, h as gu, i as _u, l as vu, m as yu, n as bu, o as xu, p as Su, r as Cu, t as wu, u as Tu, v as Eu, x as Du, y as Ou } from "./F0Map-
|
|
24
|
+
import { _ as lu, a as uu, b as du, c as fu, d as pu, f as mu, g as hu, h as gu, i as _u, l as vu, m as yu, n as bu, o as xu, p as Su, r as Cu, t as wu, u as Tu, v as Eu, x as Du, y as Ou } from "./F0Map-BPWgG3Br.js";
|
|
25
25
|
import { _ as ku, a as Au, c as ju, d as Mu, f as Nu, g as Pu, h as Fu, i as Iu, l as Lu, m as Ru, n as zu, o as Bu, p as Vu, r as Hu, s as Uu, t as Wu, u as Gu } from "./posts-riN1RZ23.js";
|
|
26
26
|
/* empty css */
|
|
27
27
|
import Ku, { Children as qu, Fragment as Ju, Suspense as Yu, cloneElement as Xu, createContext as Zu, forwardRef as Qu, isValidElement as $u, lazy as ed, memo as td, useCallback as G, useContext as nd, useEffect as K, useId as rd, useImperativeHandle as id, useInsertionEffect as ad, useLayoutEffect as q, useMemo as J, useReducer as od, useRef as Y, useState as X, useSyncExternalStore as sd, useTransition as cd } from "react";
|
|
@@ -46,12 +46,12 @@ function fd(e, t) {
|
|
|
46
46
|
//#region ../../node_modules/.bun/date-fns@3.6.0/node_modules/date-fns/differenceInMinutes.mjs
|
|
47
47
|
function pd(e, t, n) {
|
|
48
48
|
let r = fd(e, t) / dl;
|
|
49
|
-
return
|
|
49
|
+
return Ji(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 md(e) {
|
|
54
|
-
return wc(e, jc(
|
|
54
|
+
return wc(e, jc(ia(e), 1));
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region src/elements/F0ProgressSeries/types.ts
|
|
@@ -199,7 +199,7 @@ var hd = [
|
|
|
199
199
|
size: c,
|
|
200
200
|
hideLabel: !0,
|
|
201
201
|
disabled: o,
|
|
202
|
-
icon: u ? void 0 :
|
|
202
|
+
icon: u ? void 0 : Zr
|
|
203
203
|
})
|
|
204
204
|
}), /* @__PURE__ */ $(Vl, {
|
|
205
205
|
side: "bottom",
|
|
@@ -358,12 +358,12 @@ var Id = bn(Tn("F0EmojiPicker", Fd)), Ld = [
|
|
|
358
358
|
}) : null
|
|
359
359
|
]
|
|
360
360
|
}),
|
|
361
|
-
r && i ? /* @__PURE__ */ Q(
|
|
361
|
+
r && i ? /* @__PURE__ */ Q(ja, {
|
|
362
362
|
asChild: !0,
|
|
363
363
|
children: /* @__PURE__ */ Q(H, {
|
|
364
364
|
variant: "ghost",
|
|
365
365
|
size: "sm",
|
|
366
|
-
icon: a ? Mc :
|
|
366
|
+
icon: a ? Mc : Qs,
|
|
367
367
|
label: s.t(a ? "actions.collapseItem" : "actions.expandItem", { title: t }),
|
|
368
368
|
hideLabel: !0
|
|
369
369
|
})
|
|
@@ -371,7 +371,7 @@ var Id = bn(Tn("F0EmojiPicker", Fd)), Ld = [
|
|
|
371
371
|
o ? /* @__PURE__ */ Q(H, {
|
|
372
372
|
variant: "ghost",
|
|
373
373
|
size: "sm",
|
|
374
|
-
icon:
|
|
374
|
+
icon: xo,
|
|
375
375
|
hideLabel: !0,
|
|
376
376
|
label: c.close,
|
|
377
377
|
onClick: o
|
|
@@ -402,7 +402,7 @@ var Id = bn(Tn("F0EmojiPicker", Fd)), Ld = [
|
|
|
402
402
|
},
|
|
403
403
|
transition: { duration: a ? 0 : .2 },
|
|
404
404
|
className: "overflow-hidden",
|
|
405
|
-
children: /* @__PURE__ */ Q(
|
|
405
|
+
children: /* @__PURE__ */ Q(ts, {
|
|
406
406
|
forceMount: !0,
|
|
407
407
|
asChild: !0,
|
|
408
408
|
children: /* @__PURE__ */ Q("div", { children: n.map((t, r) => /* @__PURE__ */ Q(qd, {
|
|
@@ -443,13 +443,13 @@ var Id = bn(Tn("F0EmojiPicker", Fd)), Ld = [
|
|
|
443
443
|
})]
|
|
444
444
|
}), s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("div", {
|
|
445
445
|
className: "-ml-2",
|
|
446
|
-
children: /* @__PURE__ */ Q(
|
|
446
|
+
children: /* @__PURE__ */ Q(ja, {
|
|
447
447
|
asChild: !0,
|
|
448
448
|
children: /* @__PURE__ */ Q(H, {
|
|
449
449
|
variant: "ghost",
|
|
450
450
|
size: "sm",
|
|
451
451
|
label: u.t(c ? "ai.evidence.hide" : "ai.evidence.show", { name: a.name }),
|
|
452
|
-
icon: c ? Mc :
|
|
452
|
+
icon: c ? Mc : Qs,
|
|
453
453
|
iconPosition: "right"
|
|
454
454
|
})
|
|
455
455
|
})
|
|
@@ -470,7 +470,7 @@ var Id = bn(Tn("F0EmojiPicker", Fd)), Ld = [
|
|
|
470
470
|
},
|
|
471
471
|
transition: { duration: l ? 0 : .2 },
|
|
472
472
|
className: "w-full overflow-hidden",
|
|
473
|
-
children: /* @__PURE__ */ Q(
|
|
473
|
+
children: /* @__PURE__ */ Q(ts, {
|
|
474
474
|
forceMount: !0,
|
|
475
475
|
asChild: !0,
|
|
476
476
|
children: /* @__PURE__ */ Q(d, {
|
|
@@ -537,7 +537,7 @@ var Id = bn(Tn("F0EmojiPicker", Fd)), Ld = [
|
|
|
537
537
|
children: [A, j]
|
|
538
538
|
})]
|
|
539
539
|
});
|
|
540
|
-
return w ? /* @__PURE__ */ Q(
|
|
540
|
+
return w ? /* @__PURE__ */ Q(Po, {
|
|
541
541
|
open: y,
|
|
542
542
|
onOpenChange: (e) => {
|
|
543
543
|
v(e), f?.(e);
|
|
@@ -570,7 +570,7 @@ var Id = bn(Tn("F0EmojiPicker", Fd)), Ld = [
|
|
|
570
570
|
compact: t
|
|
571
571
|
});
|
|
572
572
|
rf.displayName = "F0AiCallout";
|
|
573
|
-
var of =
|
|
573
|
+
var of = Ro(bn(rf), af), sf = 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 of = Oa(bn(rf), af), sf = Js({
|
|
|
609
609
|
})]
|
|
610
610
|
}), t ? /* @__PURE__ */ Q(H, {
|
|
611
611
|
variant: "ghost",
|
|
612
|
-
icon:
|
|
612
|
+
icon: xo,
|
|
613
613
|
size: "sm",
|
|
614
614
|
hideLabel: !0,
|
|
615
615
|
onClick: t,
|
|
@@ -663,7 +663,7 @@ var of = Oa(bn(rf), af), sf = Js({
|
|
|
663
663
|
variant: t
|
|
664
664
|
});
|
|
665
665
|
ff.displayName = "F0Callout";
|
|
666
|
-
var mf =
|
|
666
|
+
var mf = Ro(bn(ff), pf), hf = [
|
|
667
667
|
"#EE4B8E",
|
|
668
668
|
"#2E7FF0",
|
|
669
669
|
"#4CAF3E",
|
|
@@ -774,7 +774,7 @@ var Ef = bn(Tn("F0Confetti", Tf)), Df = (e, t) => {
|
|
|
774
774
|
return /* @__PURE__ */ Q("div", {
|
|
775
775
|
role: "group",
|
|
776
776
|
"aria-label": i.attendees,
|
|
777
|
-
children: /* @__PURE__ */ Q(
|
|
777
|
+
children: /* @__PURE__ */ Q(gc, {
|
|
778
778
|
type: "person",
|
|
779
779
|
avatars: Rf(e),
|
|
780
780
|
size: r,
|
|
@@ -786,12 +786,12 @@ var Ef = bn(Tn("F0Confetti", Tf)), Df = (e, t) => {
|
|
|
786
786
|
let { meetingCard: n } = R(), r = e.label ?? n.join;
|
|
787
787
|
return e.href && !t ? /* @__PURE__ */ Q(H, {
|
|
788
788
|
label: r,
|
|
789
|
-
icon:
|
|
789
|
+
icon: Es,
|
|
790
790
|
variant: "default",
|
|
791
791
|
href: e.href
|
|
792
792
|
}) : /* @__PURE__ */ Q(H, {
|
|
793
793
|
label: r,
|
|
794
|
-
icon:
|
|
794
|
+
icon: Es,
|
|
795
795
|
variant: "default",
|
|
796
796
|
disabled: t,
|
|
797
797
|
onClick: e.onJoin
|
|
@@ -821,7 +821,7 @@ var Ef = bn(Tn("F0Confetti", Tf)), Df = (e, t) => {
|
|
|
821
821
|
case "summarizing": return /* @__PURE__ */ Q(Cl, {
|
|
822
822
|
text: r.summarizing,
|
|
823
823
|
variant: "neutral",
|
|
824
|
-
icon:
|
|
824
|
+
icon: _r
|
|
825
825
|
});
|
|
826
826
|
case "finished": return /* @__PURE__ */ Q(Cl, {
|
|
827
827
|
text: r.finished,
|
|
@@ -942,7 +942,7 @@ var Ef = bn(Tn("F0Confetti", Tf)), Df = (e, t) => {
|
|
|
942
942
|
join: p,
|
|
943
943
|
disabled: N
|
|
944
944
|
}) : null] });
|
|
945
|
-
return /* @__PURE__ */ Q(
|
|
945
|
+
return /* @__PURE__ */ Q(ms, {
|
|
946
946
|
ref: g,
|
|
947
947
|
className: B("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 Ef = bn(Tn("F0Confetti", Tf)), Df = (e, t) => {
|
|
|
983
983
|
});
|
|
984
984
|
});
|
|
985
985
|
qf.displayName = "F0MeetingCard";
|
|
986
|
-
var Jf = bn(Tn("F0MeetingCard",
|
|
986
|
+
var Jf = bn(Tn("F0MeetingCard", Ro(qf, ({ compact: e = !1 }) => /* @__PURE__ */ Q(ms, {
|
|
987
987
|
className: B("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 ep({ content: e, position: t, viewReport: n }) {
|
|
|
1112
1112
|
top: "md",
|
|
1113
1113
|
zIndex: "10",
|
|
1114
1114
|
children: /* @__PURE__ */ Q(Ve, {
|
|
1115
|
-
icon:
|
|
1115
|
+
icon: _r,
|
|
1116
1116
|
label: e.autoMapped.label,
|
|
1117
1117
|
info: {
|
|
1118
1118
|
title: e.autoMapped.label,
|
|
@@ -1205,7 +1205,7 @@ function tp({ content: e, viewReport: t }) {
|
|
|
1205
1205
|
paddingLeft: "md",
|
|
1206
1206
|
paddingRight: "lg",
|
|
1207
1207
|
children: [/* @__PURE__ */ Q(U, {
|
|
1208
|
-
icon:
|
|
1208
|
+
icon: fa,
|
|
1209
1209
|
size: "lg",
|
|
1210
1210
|
color: "secondary"
|
|
1211
1211
|
}), /* @__PURE__ */ Q(tu, { content: e.description })]
|
|
@@ -1338,14 +1338,14 @@ function fp({ 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: Wr,
|
|
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: xo,
|
|
1349
1349
|
hideLabel: !0,
|
|
1350
1350
|
onClick: r
|
|
1351
1351
|
}) : null]
|
|
@@ -1497,7 +1497,7 @@ var Cp = bn(Tn("F0PulseDot", Sp)), wp = [
|
|
|
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
|
}, Dp = (e, t) => {
|
|
1500
|
-
t.isReplaced ||
|
|
1500
|
+
t.isReplaced || Bs(e) || t.editor.handleUndoRedoKeyDown(e) || t.markdown.handleKeyDown(e) || t.autocomplete?.handleKeyDown(e) || t.editor.mentions.handleKeyDown(e) || Tp(e, t) || Ep(e, t) || e.key !== "Enter" || e.shiftKey || (e.preventDefault(), t.inProgress ? t.queue?.() : t.send());
|
|
1501
1501
|
}, Op = (e, t, n) => {
|
|
1502
1502
|
let r = e?.isOpen ?? !1;
|
|
1503
1503
|
K(() => {
|
|
@@ -1592,10 +1592,10 @@ var Cp = bn(Tn("F0PulseDot", Sp)), wp = [
|
|
|
1592
1592
|
disabledTooltip: e.maxFiles === void 0 ? void 0 : t.tooManyFiles.replace("{{maxFiles}}", String(e.maxFiles)),
|
|
1593
1593
|
onClick: () => e.inputRef.current?.click()
|
|
1594
1594
|
}, Pp = ({ onSend: e, attachments: t, hasAttachments: n, sendBlocked: r, onPasteFiles: i, labels: a, markdown: o }) => {
|
|
1595
|
-
let s =
|
|
1595
|
+
let s = ba(), c = s.show, l = Mp(t, a, c), { hasFailed: u, files: d, removeSent: f } = l, p = G((t) => {
|
|
1596
1596
|
if (u) return c(a.uploadFailedBlocksSend), !1;
|
|
1597
1597
|
let n = d.filter((e) => e.status === "uploaded"), r = e(t, {
|
|
1598
|
-
serialised:
|
|
1598
|
+
serialised: fi(t.text, t.mentions, { markdown: o }),
|
|
1599
1599
|
files: n.flatMap((e) => e.uploaded ? [e.uploaded] : []),
|
|
1600
1600
|
queued: !1
|
|
1601
1601
|
});
|
|
@@ -1613,7 +1613,7 @@ var Cp = bn(Tn("F0PulseDot", Sp)), wp = [
|
|
|
1613
1613
|
e,
|
|
1614
1614
|
o
|
|
1615
1615
|
]), m = G((t) => e(t, {
|
|
1616
|
-
serialised:
|
|
1616
|
+
serialised: fi(t.text, t.mentions, { markdown: o }),
|
|
1617
1617
|
files: [],
|
|
1618
1618
|
queued: !0
|
|
1619
1619
|
}), [e, o]);
|
|
@@ -1633,7 +1633,7 @@ var Cp = bn(Tn("F0PulseDot", Sp)), wp = [
|
|
|
1633
1633
|
let e = (e) => {
|
|
1634
1634
|
if (e.length === 0) return;
|
|
1635
1635
|
let t = d.current, a = n.current, s = i.current, c = s?.start ?? t?.selectionStart ?? a.length, l = s?.end ?? t?.selectionEnd ?? a.length, u = c + e.length, m = a.slice(0, c) + e + a.slice(l);
|
|
1636
|
-
n.current = m, r.current =
|
|
1636
|
+
n.current = m, r.current = Li(a, m, r.current).kept, i.current = {
|
|
1637
1637
|
start: u,
|
|
1638
1638
|
end: u
|
|
1639
1639
|
}, f(m), p(u), o(m), g(u, m, !0);
|
|
@@ -1813,14 +1813,14 @@ var Cp = bn(Tn("F0PulseDot", Sp)), wp = [
|
|
|
1813
1813
|
canSend: p
|
|
1814
1814
|
};
|
|
1815
1815
|
}, Bp = ({ voice: e, labels: t, valueRef: n, writeTextRef: r, focusRef: i }) => {
|
|
1816
|
-
let { error: a, show: o, clear: s } =
|
|
1816
|
+
let { error: a, show: o, clear: s } = ba(), c = Y(""), l = G((e) => {
|
|
1817
1817
|
let t = c.current, n = t && !/\s$/.test(t) ? " " : "";
|
|
1818
1818
|
r.current(`${t}${n}${e}`);
|
|
1819
1819
|
}, [r]), u = {
|
|
1820
1820
|
"permission-denied": t.micPermissionDenied,
|
|
1821
1821
|
"device-error": t.micError,
|
|
1822
1822
|
"transcription-failed": t.transcriptionError
|
|
1823
|
-
}, d =
|
|
1823
|
+
}, d = pa({
|
|
1824
1824
|
onTranscribe: e?.onTranscribe,
|
|
1825
1825
|
onPartial: l,
|
|
1826
1826
|
onFinal: (e) => {
|
|
@@ -1921,7 +1921,7 @@ var Jp = /[\p{L}\p{N}_]/u, Yp = /\s/, Xp = /* @__PURE__ */ new Set([
|
|
|
1921
1921
|
start: n,
|
|
1922
1922
|
end: r
|
|
1923
1923
|
};
|
|
1924
|
-
}, im = (e, t) => e.find((e) => e.start < t && t <
|
|
1924
|
+
}, im = (e, t) => e.find((e) => e.start < t && t < Ci(e)), am = (e, t) => qr(e).find((e) => e.start < t && t < e.end), om = (e, t) => !Qp(e[t - 1]) || !Qp(e[t]) ? null : rm(e, {
|
|
1925
1925
|
start: t,
|
|
1926
1926
|
end: t
|
|
1927
1927
|
}), sm = (e, t) => !Qp(e[t - 1]) && !Qp(e[t]) ? null : rm(e, {
|
|
@@ -1932,7 +1932,7 @@ var Jp = /[\p{L}\p{N}_]/u, Yp = /\s/, Xp = /* @__PURE__ */ new Set([
|
|
|
1932
1932
|
end: Math.max(e.end, t.end)
|
|
1933
1933
|
} : e, e), um = (e, t) => lm(e, t.map((e) => ({
|
|
1934
1934
|
start: e.start,
|
|
1935
|
-
end:
|
|
1935
|
+
end: Ci(e)
|
|
1936
1936
|
}))), dm = (e, t, n, r) => {
|
|
1937
1937
|
let i = (t) => um(n === "italic" ? rm(e, t) : t, r), a = t, o = i(a);
|
|
1938
1938
|
for (; !nm(a, o);) a = o, o = i(a);
|
|
@@ -1948,7 +1948,7 @@ var Jp = /[\p{L}\p{N}_]/u, Yp = /\s/, Xp = /* @__PURE__ */ new Set([
|
|
|
1948
1948
|
}, pm = (e, t) => t === 0 ? 0 : e.lastIndexOf("\n", t - 1) + 1, mm = (e, t) => {
|
|
1949
1949
|
let n = [], r = pm(e, t.start);
|
|
1950
1950
|
for (; r < t.end;) {
|
|
1951
|
-
let i = e.indexOf("\n", r), a = i === -1 ? e.length : i, o =
|
|
1951
|
+
let i = e.indexOf("\n", r), a = i === -1 ? e.length : i, o = Ai.exec(e.slice(r, a))?.[0].length ?? 0, s = fm(e, {
|
|
1952
1952
|
start: Math.max(t.start, r + o),
|
|
1953
1953
|
end: Math.min(t.end, a)
|
|
1954
1954
|
});
|
|
@@ -1975,7 +1975,7 @@ var Jp = /[\p{L}\p{N}_]/u, Yp = /\s/, Xp = /* @__PURE__ */ new Set([
|
|
|
1975
1975
|
let n = pm(e, t), r = e.slice(n, ym(e, t)), i = r.trimStart();
|
|
1976
1976
|
return {
|
|
1977
1977
|
offset: n + r.length - i.length,
|
|
1978
|
-
spans:
|
|
1978
|
+
spans: si(i)
|
|
1979
1979
|
};
|
|
1980
1980
|
}, xm = (e, t, n, r) => {
|
|
1981
1981
|
let i = e[t], a = 0;
|
|
@@ -2047,7 +2047,7 @@ var Jp = /[\p{L}\p{N}_]/u, Yp = /\s/, Xp = /* @__PURE__ */ new Set([
|
|
|
2047
2047
|
start: r,
|
|
2048
2048
|
end: r
|
|
2049
2049
|
});
|
|
2050
|
-
}, jm = (e, t) =>
|
|
2050
|
+
}, jm = (e, t) => si(e).filter((e) => e.type === Zp[t]), Mm = (e, t, n) => {
|
|
2051
2051
|
let r = Gp[n].length, i = Math.min(xm(e, t.start, 1, r), xm(e, t.end - 1, -1, r));
|
|
2052
2052
|
return [{
|
|
2053
2053
|
at: t.start,
|
|
@@ -2081,7 +2081,7 @@ var Jp = /[\p{L}\p{N}_]/u, Yp = /\s/, Xp = /* @__PURE__ */ new Set([
|
|
|
2081
2081
|
};
|
|
2082
2082
|
return [...e.filter((e) => !n.includes(e)), r].sort((e, t) => e.start - t.start);
|
|
2083
2083
|
}, t), Rm = ({ input: e, range: t, pieces: n }) => {
|
|
2084
|
-
let { value: r, format: i } = e, a =
|
|
2084
|
+
let { value: r, format: i } = e, a = si(r).filter((e) => Pm(e, t) && (e.type === Zp[i] || !Im(t, Fm(r, e)))), o = qr(r).filter((e) => Pm(e, t)), s = lm(t, [...a, ...o]);
|
|
2085
2085
|
if (!nm(s, t)) return zm(e, s);
|
|
2086
2086
|
let c = a.filter((e) => n.some((t) => Pm(e, t))), [l, u] = [c.filter((e) => e.type === Zp[i]), c.filter((e) => e.type !== Zp[i])], d = Gp[i], f = [...l.flatMap((e) => Mm(r, e, i)), ...Lm(r, n, [...u, ...o]).flatMap((e) => [{
|
|
2087
2087
|
at: e.start,
|
|
@@ -2129,7 +2129,7 @@ function Bm(e) {
|
|
|
2129
2129
|
let r = im(e.mentions, t);
|
|
2130
2130
|
if (r) return zm(e, {
|
|
2131
2131
|
start: r.start,
|
|
2132
|
-
end:
|
|
2132
|
+
end: Ci(r)
|
|
2133
2133
|
});
|
|
2134
2134
|
let i = am(e.value, t);
|
|
2135
2135
|
if (i) return zm(e, i);
|
|
@@ -2209,7 +2209,7 @@ function Jm({ markdown: e, editor: t, valueRef: n, mentionsRef: r, pendingSelect
|
|
|
2209
2209
|
//#endregion
|
|
2210
2210
|
//#region src/elements/F0Composer/hooks/useOpenList.ts
|
|
2211
2211
|
var Ym = (e, t, n) => {
|
|
2212
|
-
let { mentions: r } = e, i = `composer-mentions-${rd().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 ?
|
|
2212
|
+
let { mentions: r } = e, i = `composer-mentions-${rd().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 ? Za(i, s.item) : void 0;
|
|
2213
2213
|
return a ? {
|
|
2214
2214
|
mentionListboxId: i,
|
|
2215
2215
|
mentionsVisible: o,
|
|
@@ -2270,9 +2270,9 @@ var Ym = (e, t, n) => {
|
|
|
2270
2270
|
]);
|
|
2271
2271
|
}, eh = (e, t) => {
|
|
2272
2272
|
if (!t && !e?.actions) return e && (e.items?.length || e.panel) ? e : void 0;
|
|
2273
|
-
let n = [...e?.items ?? [], ...
|
|
2273
|
+
let n = [...e?.items ?? [], ...Jr(e?.actions ?? [])], r = [...t ? [{
|
|
2274
2274
|
label: t.label,
|
|
2275
|
-
icon:
|
|
2275
|
+
icon: Fo,
|
|
2276
2276
|
onClick: t.onClick,
|
|
2277
2277
|
disabled: t.disabled,
|
|
2278
2278
|
disabledTooltip: t.disabledTooltip
|
|
@@ -2285,7 +2285,7 @@ var Ym = (e, t, n) => {
|
|
|
2285
2285
|
let [r, i] = X(!1), { panel: a } = e, o = /* @__PURE__ */ Q("div", {
|
|
2286
2286
|
className: "flex",
|
|
2287
2287
|
onClick: (e) => e.stopPropagation(),
|
|
2288
|
-
children: /* @__PURE__ */ Q(
|
|
2288
|
+
children: /* @__PURE__ */ Q(ti, {
|
|
2289
2289
|
items: e.items ?? [],
|
|
2290
2290
|
align: "start",
|
|
2291
2291
|
disabled: n,
|
|
@@ -2375,13 +2375,13 @@ var fh = (e) => {
|
|
|
2375
2375
|
let i = R(), a = fh(e), o = J(() => e.flatMap((e) => {
|
|
2376
2376
|
let t = a.get(e.id);
|
|
2377
2377
|
if (!t) return [];
|
|
2378
|
-
let n = e.file.name, r = e.file.type ||
|
|
2378
|
+
let n = e.file.name, r = e.file.type || Ii({
|
|
2379
2379
|
name: n,
|
|
2380
2380
|
url: t
|
|
2381
2381
|
});
|
|
2382
2382
|
return [{
|
|
2383
2383
|
entry: e,
|
|
2384
|
-
attachment:
|
|
2384
|
+
attachment: Sr({
|
|
2385
2385
|
name: n,
|
|
2386
2386
|
url: t,
|
|
2387
2387
|
mimeType: r
|
|
@@ -2400,12 +2400,12 @@ var fh = (e) => {
|
|
|
2400
2400
|
}];
|
|
2401
2401
|
}), [e, a]), s = J(() => o.map(({ entry: e, attachment: t }, n) => ({
|
|
2402
2402
|
file: t,
|
|
2403
|
-
item: e.status === "uploaded" ?
|
|
2404
|
-
})), [o]), c =
|
|
2405
|
-
return /* @__PURE__ */ Q(
|
|
2403
|
+
item: e.status === "uploaded" ? Wa(t, Eo(n, t.url)) : null
|
|
2404
|
+
})), [o]), c = da(s, "composer");
|
|
2405
|
+
return /* @__PURE__ */ Q(oa, {
|
|
2406
2406
|
items: o.map(({ entry: e, attachment: r }) => ({
|
|
2407
2407
|
id: e.id,
|
|
2408
|
-
content: /* @__PURE__ */ Q(
|
|
2408
|
+
content: /* @__PURE__ */ Q(ha, {
|
|
2409
2409
|
attachment: r,
|
|
2410
2410
|
status: e.status === "uploaded" ? "ready" : e.status === "error" ? "error" : "uploading",
|
|
2411
2411
|
errorMessage: e.errorMessage,
|
|
@@ -2440,7 +2440,7 @@ var fh = (e) => {
|
|
|
2440
2440
|
return e !== void 0 || t !== void 0 || n !== void 0 || i ? /* @__PURE__ */ $("div", {
|
|
2441
2441
|
"data-composer-chrome": "",
|
|
2442
2442
|
className: "flex w-full flex-col gap-2",
|
|
2443
|
-
children: [l ? /* @__PURE__ */ Q(
|
|
2443
|
+
children: [l ? /* @__PURE__ */ Q(Or, {
|
|
2444
2444
|
suggestions: e.groups,
|
|
2445
2445
|
onItemClick: e.onSelect,
|
|
2446
2446
|
onItemHover: (e) => o(e ? e.prompt ?? e.title : null)
|
|
@@ -2449,11 +2449,11 @@ var fh = (e) => {
|
|
|
2449
2449
|
width: "full",
|
|
2450
2450
|
flexDirection: "column",
|
|
2451
2451
|
gap: "sm",
|
|
2452
|
-
children: [/* @__PURE__ */ Q(
|
|
2452
|
+
children: [/* @__PURE__ */ Q(Wo, {
|
|
2453
2453
|
notice: t,
|
|
2454
2454
|
dismissLabel: r.dismissNotice,
|
|
2455
2455
|
children: c
|
|
2456
|
-
}), /* @__PURE__ */ Q(
|
|
2456
|
+
}), /* @__PURE__ */ Q(yi, {
|
|
2457
2457
|
hint: a ? {
|
|
2458
2458
|
navigate: r.hintNavigate,
|
|
2459
2459
|
select: r.hintSelect,
|
|
@@ -2469,14 +2469,14 @@ var fh = (e) => {
|
|
|
2469
2469
|
//#endregion
|
|
2470
2470
|
//#region src/elements/F0Composer/parts/ComposerControls.tsx
|
|
2471
2471
|
function gh({ labels: e, sendKind: t, asForm: n, hasDataToSend: r, canSend: i, onSend: a, onStop: o, rest: s, streaming: c = !1 }) {
|
|
2472
|
-
let l = !c && !i, { label: u, icon: d } =
|
|
2472
|
+
let l = !c && !i, { label: u, icon: d } = Uo(c, t, e), f = /* @__PURE__ */ Q(H, {
|
|
2473
2473
|
type: n ? "submit" : "button",
|
|
2474
2474
|
variant: c ? "tertiary" : "hero",
|
|
2475
2475
|
size: "md",
|
|
2476
2476
|
hideLabel: !0,
|
|
2477
2477
|
label: u,
|
|
2478
2478
|
icon: d,
|
|
2479
|
-
onClick:
|
|
2479
|
+
onClick: qa(n, c, a, o),
|
|
2480
2480
|
disabled: l
|
|
2481
2481
|
});
|
|
2482
2482
|
return !s || c ? f : /* @__PURE__ */ Q("span", {
|
|
@@ -2492,7 +2492,7 @@ function _h(e) {
|
|
|
2492
2492
|
size: "md",
|
|
2493
2493
|
hideLabel: !0,
|
|
2494
2494
|
label: n?.busy ? t.sendingVoice : t.recordAudio,
|
|
2495
|
-
icon:
|
|
2495
|
+
icon: Da,
|
|
2496
2496
|
onClick: e.onRecord,
|
|
2497
2497
|
disabled: n?.disabled,
|
|
2498
2498
|
loading: e.micLoading
|
|
@@ -2506,7 +2506,7 @@ var vh = (e, t) => e ? t ? "now" : "atRest" : "never";
|
|
|
2506
2506
|
function yh({ actions: e, disabled: t, separator: n }) {
|
|
2507
2507
|
let r = /* @__PURE__ */ Q("div", {
|
|
2508
2508
|
className: "flex px-1",
|
|
2509
|
-
children: /* @__PURE__ */ Q(
|
|
2509
|
+
children: /* @__PURE__ */ Q(ks, {})
|
|
2510
2510
|
});
|
|
2511
2511
|
return /* @__PURE__ */ $(Z, { children: [n === "never" ? r : /* @__PURE__ */ Q("span", {
|
|
2512
2512
|
className: B(oh, n === "now" ? sh : ch),
|
|
@@ -2558,7 +2558,7 @@ function Sh(e) {
|
|
|
2558
2558
|
},
|
|
2559
2559
|
transition: {
|
|
2560
2560
|
duration: .15,
|
|
2561
|
-
ease:
|
|
2561
|
+
ease: po
|
|
2562
2562
|
},
|
|
2563
2563
|
children: /* @__PURE__ */ Q(xh, {
|
|
2564
2564
|
mode: i,
|
|
@@ -2598,7 +2598,7 @@ var wh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2598
2598
|
children: [/* @__PURE__ */ $("span", {
|
|
2599
2599
|
className: "flex items-center gap-1 text-sm font-medium text-f1-foreground-secondary",
|
|
2600
2600
|
children: [/* @__PURE__ */ Q(U, {
|
|
2601
|
-
icon:
|
|
2601
|
+
icon: eo,
|
|
2602
2602
|
size: "xs",
|
|
2603
2603
|
color: "default"
|
|
2604
2604
|
}), t.queued]
|
|
@@ -2615,7 +2615,7 @@ var wh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2615
2615
|
size: "sm",
|
|
2616
2616
|
hideLabel: !0,
|
|
2617
2617
|
label: t.removeQueued,
|
|
2618
|
-
icon:
|
|
2618
|
+
icon: xo,
|
|
2619
2619
|
onClick: n
|
|
2620
2620
|
})
|
|
2621
2621
|
})]
|
|
@@ -2640,7 +2640,7 @@ var wh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2640
2640
|
transition: { duration: u ? 0 : .15 },
|
|
2641
2641
|
children: [/* @__PURE__ */ Q("div", {
|
|
2642
2642
|
className: "flex h-8 min-w-0 flex-1 items-center",
|
|
2643
|
-
children: /* @__PURE__ */ Q(
|
|
2643
|
+
children: /* @__PURE__ */ Q(Ur, {
|
|
2644
2644
|
stream: i,
|
|
2645
2645
|
className: "min-w-0 flex-1"
|
|
2646
2646
|
})
|
|
@@ -2652,7 +2652,7 @@ var wh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2652
2652
|
size: "md",
|
|
2653
2653
|
hideLabel: !0,
|
|
2654
2654
|
label: a.cancelRecording,
|
|
2655
|
-
icon:
|
|
2655
|
+
icon: xo,
|
|
2656
2656
|
onClick: s
|
|
2657
2657
|
}), /* @__PURE__ */ Q(V, {
|
|
2658
2658
|
ref: o,
|
|
@@ -2687,7 +2687,7 @@ var wh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2687
2687
|
},
|
|
2688
2688
|
transition: {
|
|
2689
2689
|
duration: n ? 0 : .18,
|
|
2690
|
-
ease:
|
|
2690
|
+
ease: po
|
|
2691
2691
|
},
|
|
2692
2692
|
children: /* @__PURE__ */ Q("div", {
|
|
2693
2693
|
className: "p-1",
|
|
@@ -2730,7 +2730,7 @@ var wh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2730
2730
|
size: "sm",
|
|
2731
2731
|
hideLabel: !0,
|
|
2732
2732
|
label: t,
|
|
2733
|
-
icon:
|
|
2733
|
+
icon: xo,
|
|
2734
2734
|
onClick: e.onRemove
|
|
2735
2735
|
})
|
|
2736
2736
|
})
|
|
@@ -2808,7 +2808,7 @@ var wh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2808
2808
|
rest: t
|
|
2809
2809
|
}), i] }) : i;
|
|
2810
2810
|
function Bh({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r = !1, maxQueued: i = 1, markdown: a, sendKind: o = "send", hasAttachments: s = !1, sendBlocked: c = !1, maxLength: l, maxLengthError: u, error: d = null, labels: f, placeholders: p, placeholdersPaused: m, placeholderPreview: h, role: g = "combobox", name: _, mentions: v, autocomplete: y, voice: b, onTextChange: x, onCleared: S, onEscape: C, onArrowUpWhenEmpty: w, onPasteFiles: T, pastePreferText: E = !1, onStateChange: D, header: O, reference: k, attachments: A, tray: j, leading: M, actions: N, replacement: P, variant: F = "default", suggestions: I, notice: ee, disclaimer: te, replacementHint: ne = !1, addMenu: re, rest: ie, asForm: ae = !1, className: oe, surfaceRef: se, onSurfaceFocus: ce, onSurfaceBlur: le, handleRef: ue, reducedMotion: de = !1, "data-testid": fe }) {
|
|
2811
|
-
let pe =
|
|
2811
|
+
let pe = Ss(f, b), me = P != null, he = Pp({
|
|
2812
2812
|
onSend: e,
|
|
2813
2813
|
attachments: A,
|
|
2814
2814
|
hasAttachments: s,
|
|
@@ -2824,7 +2824,7 @@ function Bh({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r
|
|
|
2824
2824
|
focusRef: xe
|
|
2825
2825
|
}), { recorder: Te, isRecording: Ee, isDictating: De } = we, [Oe, ke] = X(!1), Ae = G(() => ke(!0), []), je = G(() => ke(!1), []), Me = G((e) => {
|
|
2826
2826
|
(l === void 0 || e.trim().length <= l) && ke(!1), x?.(e);
|
|
2827
|
-
}, [l, x]), [Ne, Pe] = X(!1), Fe =
|
|
2827
|
+
}, [l, x]), [Ne, Pe] = X(!1), Fe = ka({
|
|
2828
2828
|
mentions: {
|
|
2829
2829
|
enabled: Ph(v) && !Ne && !me,
|
|
2830
2830
|
sources: v?.sources ?? kh,
|
|
@@ -2854,7 +2854,7 @@ function Bh({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r
|
|
|
2854
2854
|
isReplaced: me
|
|
2855
2855
|
}), He = (y?.useAutocomplete ?? Ah)(Fe);
|
|
2856
2856
|
Op(He, Fe.mentions.dismissCurrentTrigger, Pe);
|
|
2857
|
-
let Ue = Ym(Fe, He, me), { highlightSegments: We, hasOverlay: Ge } =
|
|
2857
|
+
let Ue = Ym(Fe, He, me), { highlightSegments: We, hasOverlay: Ge } = Ns(Fe, { suppressGhost: He?.isOpen ?? !1 });
|
|
2858
2858
|
kp(me, Be.close);
|
|
2859
2859
|
let Ke = Ie.length === 0;
|
|
2860
2860
|
$m(D, {
|
|
@@ -2894,7 +2894,7 @@ function Bh({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r
|
|
|
2894
2894
|
addFiles: ge.add,
|
|
2895
2895
|
toggleFormat: Ve.toggleFormat
|
|
2896
2896
|
});
|
|
2897
|
-
let tt =
|
|
2897
|
+
let tt = So({
|
|
2898
2898
|
enabled: !!he.pasteFiles && !me,
|
|
2899
2899
|
onFiles: he.pasteFiles ?? (() => {}),
|
|
2900
2900
|
preferText: E
|
|
@@ -2936,7 +2936,7 @@ function Bh({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r
|
|
|
2936
2936
|
onConfirm: Te.stop,
|
|
2937
2937
|
onEscape: C,
|
|
2938
2938
|
reducedMotion: de
|
|
2939
|
-
}, vt = /* @__PURE__ */ Q(
|
|
2939
|
+
}, vt = /* @__PURE__ */ Q(Mr, {
|
|
2940
2940
|
inset: "icon",
|
|
2941
2941
|
className: "min-w-0 flex-1",
|
|
2942
2942
|
textareaRef: ze,
|
|
@@ -2993,7 +2993,7 @@ function Bh({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r
|
|
|
2993
2993
|
reducedMotion: de
|
|
2994
2994
|
}),
|
|
2995
2995
|
O,
|
|
2996
|
-
/* @__PURE__ */ Q(
|
|
2996
|
+
/* @__PURE__ */ Q(ko, {
|
|
2997
2997
|
message: Ye,
|
|
2998
2998
|
id: nt,
|
|
2999
2999
|
reducedMotion: de
|
|
@@ -3041,7 +3041,7 @@ function Bh({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r
|
|
|
3041
3041
|
onBlur: le
|
|
3042
3042
|
}, xt = /* @__PURE__ */ $(Z, { children: [
|
|
3043
3043
|
He?.popover,
|
|
3044
|
-
/* @__PURE__ */ Q(
|
|
3044
|
+
/* @__PURE__ */ Q(no, {
|
|
3045
3045
|
isOpen: Ue.mentionsVisible,
|
|
3046
3046
|
listboxId: Ue.mentionListboxId,
|
|
3047
3047
|
label: pe.mentionSuggestions,
|
|
@@ -3279,7 +3279,7 @@ var Yh = 30, Xh = 50, Zh = (e, t, n) => Math.min(Math.max(e, t), n), Qh = (e) =>
|
|
|
3279
3279
|
Panel: Jh,
|
|
3280
3280
|
Handle: qh
|
|
3281
3281
|
}), rg = "Previous", ig = "bg-f1-background", ag = bn(Tn("F0CarouselDialog", ({ items: e, currentId: t, onNavigate: n, labels: r, loop: i = !1, pagination: a, placeholder: o, isOpen: s, onClose: c, ...l }) => {
|
|
3282
|
-
let u =
|
|
3282
|
+
let u = Is(), 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(() => {
|
|
3283
3283
|
x && n(x);
|
|
3284
3284
|
}, [x, n]), [w, T] = X(!1), E = Y(-1), D = G(() => {
|
|
3285
3285
|
a && !v && E.current !== h && (E.current = h, a.onLoadMore());
|
|
@@ -3364,7 +3364,7 @@ var Yh = 30, Xh = 50, Zh = (e, t, n) => Math.min(Math.max(e, t), n), Qh = (e) =>
|
|
|
3364
3364
|
}, P = Y(N);
|
|
3365
3365
|
s && (P.current = N);
|
|
3366
3366
|
let F = s ? N : P.current;
|
|
3367
|
-
return !F.content && !F.title ? null : /* @__PURE__ */ Q(
|
|
3367
|
+
return !F.content && !F.title ? null : /* @__PURE__ */ Q(vs, {
|
|
3368
3368
|
...l,
|
|
3369
3369
|
width: u ? void 0 : l.width,
|
|
3370
3370
|
position: u ? "fullscreen" : l.position,
|
|
@@ -3484,7 +3484,7 @@ var _g = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3484
3484
|
className: B(_g, u && "cursor-pointer", d ? "border-f1-border-selected bg-f1-background-selected" : "hover:bg-f1-background-hover"),
|
|
3485
3485
|
onClick: l,
|
|
3486
3486
|
children: [
|
|
3487
|
-
e ? /* @__PURE__ */ Q(
|
|
3487
|
+
e ? /* @__PURE__ */ Q(hc, {
|
|
3488
3488
|
avatar: e,
|
|
3489
3489
|
size: "sm"
|
|
3490
3490
|
}) : null,
|
|
@@ -3517,7 +3517,7 @@ var _g = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3517
3517
|
}) : null,
|
|
3518
3518
|
i && i.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
3519
3519
|
className: "flex flex-col gap-0.5",
|
|
3520
|
-
children: i.map((e, t) => /* @__PURE__ */ Q(
|
|
3520
|
+
children: i.map((e, t) => /* @__PURE__ */ Q(io, { metadata: e }, t))
|
|
3521
3521
|
}) : null
|
|
3522
3522
|
]
|
|
3523
3523
|
}),
|
|
@@ -3546,7 +3546,7 @@ var _g = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3546
3546
|
})]
|
|
3547
3547
|
});
|
|
3548
3548
|
yg.displayName = "OneListItem";
|
|
3549
|
-
var xg = bn(Tn("OneListItem",
|
|
3549
|
+
var xg = bn(Tn("OneListItem", Ro(yg, bg)));
|
|
3550
3550
|
//#endregion
|
|
3551
3551
|
//#region src/blocks/F0SharingDialog/hooks/useReportAccessShape.ts
|
|
3552
3552
|
function Sg(e, t) {
|
|
@@ -3582,7 +3582,7 @@ function Cg({ roles: e, value: t, label: n, disabled: r, onChange: i, onRevoke:
|
|
|
3582
3582
|
});
|
|
3583
3583
|
return /* @__PURE__ */ Q(W, {
|
|
3584
3584
|
shrink: !1,
|
|
3585
|
-
children: /* @__PURE__ */ Q(
|
|
3585
|
+
children: /* @__PURE__ */ Q(ti, {
|
|
3586
3586
|
label: n,
|
|
3587
3587
|
container: c,
|
|
3588
3588
|
align: "end",
|
|
@@ -3598,7 +3598,7 @@ function Cg({ roles: e, value: t, label: n, disabled: r, onChange: i, onRevoke:
|
|
|
3598
3598
|
children: /* @__PURE__ */ Q(H, {
|
|
3599
3599
|
"aria-label": u ? `${n}: ${u}` : n,
|
|
3600
3600
|
disabled: r,
|
|
3601
|
-
icon:
|
|
3601
|
+
icon: Qs,
|
|
3602
3602
|
iconPosition: "right",
|
|
3603
3603
|
label: u || n,
|
|
3604
3604
|
size: o,
|
|
@@ -3613,7 +3613,7 @@ function wg({ disabled: e, label: t, onClick: n }) {
|
|
|
3613
3613
|
return /* @__PURE__ */ Q(H, {
|
|
3614
3614
|
disabled: e,
|
|
3615
3615
|
hideLabel: !0,
|
|
3616
|
-
icon:
|
|
3616
|
+
icon: Pa,
|
|
3617
3617
|
label: t,
|
|
3618
3618
|
onClick: n,
|
|
3619
3619
|
variant: "ghost"
|
|
@@ -3655,7 +3655,7 @@ function Eg({ access: e, roles: t, personLabel: n, disabled: r, portalContainer:
|
|
|
3655
3655
|
children: [/* @__PURE__ */ Q(gl, {
|
|
3656
3656
|
variant: "inline",
|
|
3657
3657
|
actions: e.canChangeRole ? [{
|
|
3658
|
-
icon:
|
|
3658
|
+
icon: Pa,
|
|
3659
3659
|
label: s.sharingDialog.removeAccess,
|
|
3660
3660
|
onClick: () => void o(),
|
|
3661
3661
|
variant: "critical",
|
|
@@ -3702,7 +3702,7 @@ function Dg({ access: e, roles: t, roleMode: n, mapPerson: r, disabled: i, onRem
|
|
|
3702
3702
|
gap: "lg",
|
|
3703
3703
|
role: "listitem",
|
|
3704
3704
|
children: [
|
|
3705
|
-
c.avatar ? /* @__PURE__ */ Q(
|
|
3705
|
+
c.avatar ? /* @__PURE__ */ Q(hc, {
|
|
3706
3706
|
avatar: c.avatar,
|
|
3707
3707
|
size: "md"
|
|
3708
3708
|
}) : null,
|
|
@@ -3919,7 +3919,7 @@ function jg(e) {
|
|
|
3919
3919
|
shrink: !1,
|
|
3920
3920
|
children: /* @__PURE__ */ Q(H, {
|
|
3921
3921
|
disabled: !O || !E || k,
|
|
3922
|
-
icon:
|
|
3922
|
+
icon: Yi,
|
|
3923
3923
|
label: u.sharingDialog.share,
|
|
3924
3924
|
loading: r,
|
|
3925
3925
|
onClick: async () => {
|
|
@@ -3967,7 +3967,7 @@ function jg(e) {
|
|
|
3967
3967
|
//#region src/blocks/F0SharingDialog/F0SharingDialog.tsx
|
|
3968
3968
|
function Mg(e) {
|
|
3969
3969
|
let { isOpen: t, title: n, description: r, onClose: i, dataTestId: a } = e;
|
|
3970
|
-
return /* @__PURE__ */ Q(
|
|
3970
|
+
return /* @__PURE__ */ Q(vs, {
|
|
3971
3971
|
description: r,
|
|
3972
3972
|
isOpen: t,
|
|
3973
3973
|
onClose: i,
|
|
@@ -3990,7 +3990,7 @@ var Ng = Tn("F0SharingDialog", Mg), Pg = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
3990
3990
|
/* @__PURE__ */ Q(H, {
|
|
3991
3991
|
variant: "neutral",
|
|
3992
3992
|
size: "lg",
|
|
3993
|
-
icon:
|
|
3993
|
+
icon: xo,
|
|
3994
3994
|
label: e.left,
|
|
3995
3995
|
hideLabel: !0,
|
|
3996
3996
|
onClick: () => i("left")
|
|
@@ -3998,7 +3998,7 @@ var Ng = Tn("F0SharingDialog", Mg), Pg = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
3998
3998
|
/* @__PURE__ */ Q(H, {
|
|
3999
3999
|
variant: "outline",
|
|
4000
4000
|
size: "md",
|
|
4001
|
-
icon:
|
|
4001
|
+
icon: ui,
|
|
4002
4002
|
label: n,
|
|
4003
4003
|
hideLabel: !0,
|
|
4004
4004
|
disabled: !t,
|
|
@@ -4045,7 +4045,7 @@ var Ng = Tn("F0SharingDialog", Mg), Pg = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
4045
4045
|
zIndex: 1
|
|
4046
4046
|
}
|
|
4047
4047
|
}, zg = Qu(function({ riseFromStack: e, onCommit: t, offsetThreshold: n, velocityThreshold: r, reduceMotion: i, children: a }, o) {
|
|
4048
|
-
let s = ye(), c =
|
|
4048
|
+
let s = ye(), c = Ki(0), l = cn(c, [
|
|
4049
4049
|
-480,
|
|
4050
4050
|
0,
|
|
4051
4051
|
Ig
|
|
@@ -4351,7 +4351,7 @@ function Zg({ title: e, isActive: t = !1, onClick: n }) {
|
|
|
4351
4351
|
"aria-label": `${e}${t ? " (selected)" : ""}`,
|
|
4352
4352
|
"aria-pressed": n ? t : void 0,
|
|
4353
4353
|
children: [/* @__PURE__ */ Q(U, {
|
|
4354
|
-
icon:
|
|
4354
|
+
icon: Ar,
|
|
4355
4355
|
size: "md",
|
|
4356
4356
|
color: "selected"
|
|
4357
4357
|
}), /* @__PURE__ */ Q(ir, {
|
|
@@ -4378,7 +4378,7 @@ function Qg({ author: e, timestamp: t, onClick: n, isActive: r }) {
|
|
|
4378
4378
|
children: a
|
|
4379
4379
|
}), /* @__PURE__ */ $("div", {
|
|
4380
4380
|
className: "flex flex-row items-center gap-[6px]",
|
|
4381
|
-
children: [/* @__PURE__ */ Q(
|
|
4381
|
+
children: [/* @__PURE__ */ Q(fc, {
|
|
4382
4382
|
firstName: e.firstName,
|
|
4383
4383
|
lastName: e.lastName,
|
|
4384
4384
|
src: e.src,
|
|
@@ -4503,7 +4503,7 @@ var c_ = ({ entity: e, selected: t, onSelect: n, onRemove: r, marginLeft: i, sea
|
|
|
4503
4503
|
"aria-label": e.name,
|
|
4504
4504
|
className: B(i, "flex flex-row flex-wrap items-center gap-2 rounded border px-2 py-1.5 hover:cursor-pointer", "focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:bg-f1-background-hover", t && c ? "bg-f1-background-selected-bold/10 transition-colors dark:bg-f1-background-selected-bold/20" : ""),
|
|
4505
4505
|
children: [
|
|
4506
|
-
u ? null : /* @__PURE__ */ Q(
|
|
4506
|
+
u ? null : /* @__PURE__ */ Q(fc, {
|
|
4507
4507
|
src: e.avatar,
|
|
4508
4508
|
firstName: f,
|
|
4509
4509
|
lastName: p,
|
|
@@ -4593,7 +4593,7 @@ var c_ = ({ entity: e, selected: t, onSelect: n, onRemove: r, marginLeft: i, sea
|
|
|
4593
4593
|
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",
|
|
4594
4594
|
children: [
|
|
4595
4595
|
p ? /* @__PURE__ */ Q(U, {
|
|
4596
|
-
icon:
|
|
4596
|
+
icon: Er,
|
|
4597
4597
|
className: "rounded-xs bg-f1-foreground-secondary text-f1-foreground-inverse"
|
|
4598
4598
|
}) : null,
|
|
4599
4599
|
/* @__PURE__ */ $("div", {
|
|
@@ -4668,7 +4668,7 @@ var u_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
4668
4668
|
let t = n.find((t) => t.label === e);
|
|
4669
4669
|
t && !t.disabled && t.onClick?.();
|
|
4670
4670
|
}, a = n.every((e) => e.disabled);
|
|
4671
|
-
return /* @__PURE__ */ Q(
|
|
4671
|
+
return /* @__PURE__ */ Q(Mi, {
|
|
4672
4672
|
items: r,
|
|
4673
4673
|
value: e.label,
|
|
4674
4674
|
disabled: a,
|
|
@@ -4731,7 +4731,7 @@ var u_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
4731
4731
|
onChange: (e) => t(e.target.value)
|
|
4732
4732
|
}),
|
|
4733
4733
|
e ? /* @__PURE__ */ Q(U, {
|
|
4734
|
-
icon:
|
|
4734
|
+
icon: cc,
|
|
4735
4735
|
size: "md",
|
|
4736
4736
|
onClick: () => t(""),
|
|
4737
4737
|
className: "cursor-pointer text-f1-icon-secondary"
|
|
@@ -5019,18 +5019,18 @@ var u_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
5019
5019
|
className: "pr-2 pt-1.5",
|
|
5020
5020
|
children: /* @__PURE__ */ Q(Yc, {
|
|
5021
5021
|
className: B("max-w-54 w-fit gap-1 text-ellipsis break-all border-[1px] border-solid border-f1-border-secondary py-[1px] pl-[1px]", "rounded-full", i ? "pl-2" : "pl-0"),
|
|
5022
|
-
left: !i && /* @__PURE__ */ Q(
|
|
5022
|
+
left: !i && /* @__PURE__ */ Q(_c, {
|
|
5023
5023
|
src: e.subAvatar,
|
|
5024
5024
|
name: e.subName,
|
|
5025
5025
|
size: "xs",
|
|
5026
5026
|
type: "rounded",
|
|
5027
5027
|
icon: r ? {
|
|
5028
|
-
icon:
|
|
5028
|
+
icon: ec,
|
|
5029
5029
|
color: "secondary"
|
|
5030
5030
|
} : void 0
|
|
5031
5031
|
}),
|
|
5032
5032
|
right: !n && /* @__PURE__ */ Q(U, {
|
|
5033
|
-
icon:
|
|
5033
|
+
icon: xo,
|
|
5034
5034
|
size: "sm",
|
|
5035
5035
|
className: "cursor-pointer text-f1-icon-secondary",
|
|
5036
5036
|
onClick: () => t?.(e)
|
|
@@ -5714,13 +5714,13 @@ var F_ = _l, I_ = [
|
|
|
5714
5714
|
Q_.displayName = "F0TemplateTextInput";
|
|
5715
5715
|
//#endregion
|
|
5716
5716
|
//#region src/blocks/F0TemplateTextInput/index.tsx
|
|
5717
|
-
var $_ = Tn("F0TemplateTextInput", Q_), ev = Tn("ActivityItem",
|
|
5717
|
+
var $_ = Tn("F0TemplateTextInput", Q_), ev = Tn("ActivityItem", Ro(({ id: e, createdAt: t, title: n, description: r, icon: i, category: a, isUnread: o = !1, onClick: s, onVisible: c }) => {
|
|
5718
5718
|
let { ref: l } = cr({
|
|
5719
5719
|
threshold: .1,
|
|
5720
5720
|
onChange(t) {
|
|
5721
5721
|
t && c?.(e);
|
|
5722
5722
|
}
|
|
5723
|
-
}), u = ll(), d =
|
|
5723
|
+
}), u = ll(), d = vr(t, {
|
|
5724
5724
|
yesterdayRelative: !1,
|
|
5725
5725
|
locale: u
|
|
5726
5726
|
});
|
|
@@ -5731,7 +5731,7 @@ var $_ = Tn("F0TemplateTextInput", Q_), ev = Tn("ActivityItem", Oa(({ id: e, cre
|
|
|
5731
5731
|
s(e);
|
|
5732
5732
|
},
|
|
5733
5733
|
children: [
|
|
5734
|
-
/* @__PURE__ */ Q(
|
|
5734
|
+
/* @__PURE__ */ Q(lc, { icon: i ?? vi }),
|
|
5735
5735
|
/* @__PURE__ */ $("div", {
|
|
5736
5736
|
className: "flex-1",
|
|
5737
5737
|
children: [
|
|
@@ -5780,7 +5780,7 @@ var $_ = Tn("F0TemplateTextInput", Q_), ev = Tn("ActivityItem", Oa(({ id: e, cre
|
|
|
5780
5780
|
}), /* @__PURE__ */ Q("div", {
|
|
5781
5781
|
className: "flex flex-col gap-1",
|
|
5782
5782
|
children: t
|
|
5783
|
-
})] }), nv =
|
|
5783
|
+
})] }), nv = Ro(({ title: e, items: t, onClickItem: n, onItemVisible: r }) => /* @__PURE__ */ Q(tv, {
|
|
5784
5784
|
title: e,
|
|
5785
5785
|
children: t.map((e) => /* @__PURE__ */ Q(ev, {
|
|
5786
5786
|
...e,
|
|
@@ -5790,7 +5790,7 @@ var $_ = Tn("F0TemplateTextInput", Q_), ev = Tn("ActivityItem", Oa(({ id: e, cre
|
|
|
5790
5790
|
}), ({ title: e, numItems: t }) => /* @__PURE__ */ Q(tv, {
|
|
5791
5791
|
title: e,
|
|
5792
5792
|
children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ Q(ev.Skeleton, {}, t))
|
|
5793
|
-
})), rv = /* @__PURE__ */ e(
|
|
5793
|
+
})), rv = /* @__PURE__ */ e(ya(), 1), iv = /* @__PURE__ */ e(Do(), 1), av = 3, ov = [
|
|
5794
5794
|
"today",
|
|
5795
5795
|
"yesterday",
|
|
5796
5796
|
"lastWeek",
|
|
@@ -5799,7 +5799,7 @@ var $_ = Tn("F0TemplateTextInput", Q_), ev = Tn("ActivityItem", Oa(({ id: e, cre
|
|
|
5799
5799
|
let t = ov.indexOf(e);
|
|
5800
5800
|
return t === -1 ? -Number(e) : t - 4e3;
|
|
5801
5801
|
}), cv = () => /* @__PURE__ */ Q("div", { className: "-mx-2 h-px bg-f1-background-secondary" }), lv = ({ items: e, loadingMoreItems: t = !1, onClickItem: n, onEndReached: r, onEndReachedItemsThreshold: i = 5 }) => {
|
|
5802
|
-
let a = R(), o =
|
|
5802
|
+
let a = R(), o = Kr(e, "createdAt"), s = new Set(Object.values(o).slice().flatMap((e) => e.map((e) => e.id)).slice(-i)), c = (0, iv.default)((e) => {
|
|
5803
5803
|
s.has(e) && r?.();
|
|
5804
5804
|
}, 1e3), l = sv(Object.entries(o).filter(([e, t]) => !!t.length));
|
|
5805
5805
|
return /* @__PURE__ */ $("div", {
|
|
@@ -5832,7 +5832,7 @@ var $_ = Tn("F0TemplateTextInput", Q_), ev = Tn("ActivityItem", Oa(({ id: e, cre
|
|
|
5832
5832
|
})
|
|
5833
5833
|
]
|
|
5834
5834
|
});
|
|
5835
|
-
}, dv = Tn("ActivityItemList",
|
|
5835
|
+
}, dv = Tn("ActivityItemList", Ro(lv, uv));
|
|
5836
5836
|
//#endregion
|
|
5837
5837
|
//#region src/blocks/F0ResourceHeader/useCompactOnScroll.ts
|
|
5838
5838
|
function fv({ threshold: e = 24, container: t }) {
|
|
@@ -5887,7 +5887,7 @@ var mv = [
|
|
|
5887
5887
|
critical: Xc,
|
|
5888
5888
|
warning: Gc,
|
|
5889
5889
|
info: Tc,
|
|
5890
|
-
promote:
|
|
5890
|
+
promote: xr,
|
|
5891
5891
|
context: Tc
|
|
5892
5892
|
}, bv = /* @__PURE__ */ new Set(["promote", "context"]), xv = "promote", Sv = /^\p{Emoji}\uFE0F?$/u, Cv = (e) => e.variant === xv && e.emoji !== void 0 && Sv.test(e.emoji), wv = (e) => Cv(e) ? {
|
|
5893
5893
|
kind: "emoji",
|
|
@@ -6036,7 +6036,7 @@ function Xv({ notices: e, controlSize: t, onActionClick: n, onDismiss: r }) {
|
|
|
6036
6036
|
e.variant === "critical" || e.variant === "warning" || e.variant === "info" ? /* @__PURE__ */ Q(W, {
|
|
6037
6037
|
shrink: !1,
|
|
6038
6038
|
"aria-hidden": "true",
|
|
6039
|
-
children: /* @__PURE__ */ Q(
|
|
6039
|
+
children: /* @__PURE__ */ Q(Rr, {
|
|
6040
6040
|
type: e.variant,
|
|
6041
6041
|
size: "sm"
|
|
6042
6042
|
})
|
|
@@ -6089,7 +6089,7 @@ function Xv({ notices: e, controlSize: t, onActionClick: n, onDismiss: r }) {
|
|
|
6089
6089
|
Ov(e) ? /* @__PURE__ */ Q("div", {
|
|
6090
6090
|
className: "shrink-0 self-start",
|
|
6091
6091
|
children: /* @__PURE__ */ Q(H, {
|
|
6092
|
-
icon:
|
|
6092
|
+
icon: xo,
|
|
6093
6093
|
label: a("systemBanner.dismissNotice", { title: e.title }),
|
|
6094
6094
|
hideLabel: !0,
|
|
6095
6095
|
tooltip: i.dismiss,
|
|
@@ -6294,12 +6294,12 @@ function iy({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6294
6294
|
notice: l,
|
|
6295
6295
|
surface: "strip"
|
|
6296
6296
|
}), M]
|
|
6297
|
-
}), I = /* @__PURE__ */ $(
|
|
6297
|
+
}), I = /* @__PURE__ */ $(Xr, {
|
|
6298
6298
|
open: v,
|
|
6299
6299
|
onOpenChange: y,
|
|
6300
6300
|
shouldScaleBackground: !1,
|
|
6301
6301
|
autoFocus: !0,
|
|
6302
|
-
children: [/* @__PURE__ */ Q(
|
|
6302
|
+
children: [/* @__PURE__ */ Q(Ba, {
|
|
6303
6303
|
asChild: !0,
|
|
6304
6304
|
children: /* @__PURE__ */ $("button", {
|
|
6305
6305
|
ref: x,
|
|
@@ -6314,13 +6314,13 @@ function iy({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6314
6314
|
/* @__PURE__ */ $("span", {
|
|
6315
6315
|
className: "ms-auto flex shrink-0 items-center gap-1 text-base font-medium",
|
|
6316
6316
|
children: [u === 1 ? i.seeMore : D, /* @__PURE__ */ Q(U, {
|
|
6317
|
-
icon:
|
|
6317
|
+
icon: Qs,
|
|
6318
6318
|
size: "sm"
|
|
6319
6319
|
})]
|
|
6320
6320
|
})
|
|
6321
6321
|
]
|
|
6322
6322
|
})
|
|
6323
|
-
}), /* @__PURE__ */ $(
|
|
6323
|
+
}), /* @__PURE__ */ $(ca, {
|
|
6324
6324
|
overlayClassName: "bg-f1-background-overlay",
|
|
6325
6325
|
className: "max-h-system-banner-sheet bg-f1-background text-f1-foreground",
|
|
6326
6326
|
ref: S,
|
|
@@ -6328,7 +6328,7 @@ function iy({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6328
6328
|
onOpenAutoFocus: P,
|
|
6329
6329
|
onCloseAutoFocus: N,
|
|
6330
6330
|
children: [
|
|
6331
|
-
/* @__PURE__ */ Q(
|
|
6331
|
+
/* @__PURE__ */ Q(ur, {
|
|
6332
6332
|
className: "sr-only",
|
|
6333
6333
|
children: i.listTitle
|
|
6334
6334
|
}),
|
|
@@ -6342,7 +6342,7 @@ function iy({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6342
6342
|
paddingX: "md",
|
|
6343
6343
|
paddingBottom: "lg",
|
|
6344
6344
|
paddingTop: "sm",
|
|
6345
|
-
children: /* @__PURE__ */ Q(
|
|
6345
|
+
children: /* @__PURE__ */ Q(ma, {
|
|
6346
6346
|
asChild: !0,
|
|
6347
6347
|
children: /* @__PURE__ */ Q(V, {
|
|
6348
6348
|
label: a.close,
|
|
@@ -6367,7 +6367,7 @@ function iy({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6367
6367
|
variant: "secondary",
|
|
6368
6368
|
size: "md",
|
|
6369
6369
|
type: "button",
|
|
6370
|
-
icon: v ? Mc :
|
|
6370
|
+
icon: v ? Mc : Qs,
|
|
6371
6371
|
iconPosition: "right",
|
|
6372
6372
|
noAutoTooltip: !0,
|
|
6373
6373
|
narrowPadding: !0,
|
|
@@ -6422,7 +6422,7 @@ function iy({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6422
6422
|
}) : null,
|
|
6423
6423
|
h ? ee : null,
|
|
6424
6424
|
Ov(l) ? /* @__PURE__ */ Q(H, {
|
|
6425
|
-
icon:
|
|
6425
|
+
icon: xo,
|
|
6426
6426
|
label: o("systemBanner.dismissNotice", { title: l.title }),
|
|
6427
6427
|
hideLabel: !0,
|
|
6428
6428
|
tooltip: i.dismiss,
|
|
@@ -6479,7 +6479,7 @@ var ay = bn(Tn("F0SystemBanner", iy)), oy = {
|
|
|
6479
6479
|
//#region src/domains/platform/home/Home/Communities/Celebration/components/avatar.tsx
|
|
6480
6480
|
function cy({ firstName: e, lastName: t, src: n, canReact: r, lastEmojiReaction: i, onReactionSelect: a, pickerRef: o }) {
|
|
6481
6481
|
return /* @__PURE__ */ $("div", {
|
|
6482
|
-
className: B("relative h-32 w-full overflow-hidden rounded-md bg-f1-background", n ? "" : sy[
|
|
6482
|
+
className: B("relative h-32 w-full overflow-hidden rounded-md bg-f1-background", n ? "" : sy[oc([e, t].join(""))]),
|
|
6483
6483
|
children: [n ? /* @__PURE__ */ Q("div", {
|
|
6484
6484
|
className: "absolute inset-0 bg-cover bg-center bg-no-repeat opacity-10",
|
|
6485
6485
|
style: { backgroundImage: `url("${n}")` }
|
|
@@ -6489,7 +6489,7 @@ function cy({ firstName: e, lastName: t, src: n, canReact: r, lastEmojiReaction:
|
|
|
6489
6489
|
className: "relative h-fit w-fit",
|
|
6490
6490
|
children: [/* @__PURE__ */ Q("div", {
|
|
6491
6491
|
style: r ? { clipPath: "path('M69.6933 48.707C71.1842 44.7556 72 40.4731 72 36C72 16.1177 55.8823 0 36 0C16.1177 0 0 16.1177 0 36C0 55.8823 16.1177 72 36 72C40.4731 72 44.7556 71.1842 48.707 69.6933C48.6283 69.4953 48.5557 69.2942 48.4894 69.0902C48 67.5838 48 65.7226 48 62C48 58.2774 48 56.4162 48.4894 54.9098C49.4786 51.8655 51.8655 49.4786 54.9098 48.4894C56.4162 48 58.2774 48 62 48C65.7226 48 67.5838 48 69.0902 48.4894C69.2942 48.5557 69.4953 48.6283 69.6933 48.707')" } : {},
|
|
6492
|
-
children: /* @__PURE__ */ Q(
|
|
6492
|
+
children: /* @__PURE__ */ Q(fc, {
|
|
6493
6493
|
src: n,
|
|
6494
6494
|
firstName: e,
|
|
6495
6495
|
lastName: t,
|
|
@@ -6609,7 +6609,7 @@ var uy = ({ link: e, firstName: t, lastName: n, src: r, onClick: i, canReact: a
|
|
|
6609
6609
|
})]
|
|
6610
6610
|
}), /* @__PURE__ */ Q("div", {
|
|
6611
6611
|
className: "shrink-0",
|
|
6612
|
-
children: /* @__PURE__ */ Q(
|
|
6612
|
+
children: /* @__PURE__ */ Q(Pr, { date: u })
|
|
6613
6613
|
})]
|
|
6614
6614
|
})
|
|
6615
6615
|
]
|
|
@@ -6632,11 +6632,11 @@ var uy = ({ link: e, firstName: t, lastName: n, src: r, onClick: i, canReact: a
|
|
|
6632
6632
|
})
|
|
6633
6633
|
})
|
|
6634
6634
|
})]
|
|
6635
|
-
}), fy =
|
|
6635
|
+
}), fy = Ro(uy, dy), py = ({ title: e, subtitle: t, buttonLabel: n, onClick: r }) => /* @__PURE__ */ $("div", {
|
|
6636
6636
|
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",
|
|
6637
6637
|
children: [/* @__PURE__ */ $("div", {
|
|
6638
6638
|
className: "flex flex-col items-start gap-3 sm:flex-row sm:items-center",
|
|
6639
|
-
children: [/* @__PURE__ */ Q(
|
|
6639
|
+
children: [/* @__PURE__ */ Q(mc, {
|
|
6640
6640
|
module: "kudos",
|
|
6641
6641
|
size: "md"
|
|
6642
6642
|
}), /* @__PURE__ */ $("div", {
|
|
@@ -6755,7 +6755,7 @@ function gy({ items: e, onInteraction: t, locale: n, action: r }) {
|
|
|
6755
6755
|
});
|
|
6756
6756
|
}
|
|
6757
6757
|
var _y = Tn("Reactions", gy), vy = Qu(function({ content: e, collapsed: t, id: n, className: r, tabIndex: i }, a) {
|
|
6758
|
-
return /* @__PURE__ */ Q(
|
|
6758
|
+
return /* @__PURE__ */ Q(_i, {
|
|
6759
6759
|
ref: a,
|
|
6760
6760
|
id: n,
|
|
6761
6761
|
content: e,
|
|
@@ -6764,7 +6764,7 @@ var _y = Tn("Reactions", gy), vy = Qu(function({ content: e, collapsed: t, id: n
|
|
|
6764
6764
|
});
|
|
6765
6765
|
});
|
|
6766
6766
|
vy.displayName = "BasePostDescription";
|
|
6767
|
-
var yy =
|
|
6767
|
+
var yy = Ro(vy, () => /* @__PURE__ */ $("div", {
|
|
6768
6768
|
className: "flex flex-col justify-around gap-3 py-2",
|
|
6769
6769
|
children: [/* @__PURE__ */ Q(z, { className: "h-2.5 w-1/2 rounded-2xs" }), /* @__PURE__ */ Q(z, { className: "h-2.5 w-2/3 rounded-2xs" })]
|
|
6770
6770
|
})), by = ({ tags: e, right: t }) => /* @__PURE__ */ Q("div", {
|
|
@@ -6787,7 +6787,7 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
6787
6787
|
return /* @__PURE__ */ $("div", {
|
|
6788
6788
|
className: "flex flex-row items-center",
|
|
6789
6789
|
children: [
|
|
6790
|
-
e ? /* @__PURE__ */ Q(
|
|
6790
|
+
e ? /* @__PURE__ */ Q(Pr, {
|
|
6791
6791
|
date: e,
|
|
6792
6792
|
size: r
|
|
6793
6793
|
}) : null,
|
|
@@ -6796,7 +6796,7 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
6796
6796
|
size: "sm",
|
|
6797
6797
|
className: "text-f1-foreground-tertiary"
|
|
6798
6798
|
}) : null,
|
|
6799
|
-
t ? /* @__PURE__ */ Q(
|
|
6799
|
+
t ? /* @__PURE__ */ Q(Pr, {
|
|
6800
6800
|
date: t,
|
|
6801
6801
|
size: r
|
|
6802
6802
|
}) : null
|
|
@@ -6890,8 +6890,8 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
6890
6890
|
if (e.includes("//s3.")) return e.includes("response-content-type=video");
|
|
6891
6891
|
let t = (e?.split(".")).at(-1);
|
|
6892
6892
|
return !!t && wy.has(t);
|
|
6893
|
-
}, Ey =
|
|
6894
|
-
let i = ll(), a =
|
|
6893
|
+
}, Ey = Ro(({ title: e, mediaUrl: t, place: n, date: r }) => {
|
|
6894
|
+
let i = ll(), a = ai(r, i);
|
|
6895
6895
|
return n && (a = `${a} · ${n}`), /* @__PURE__ */ $("div", {
|
|
6896
6896
|
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",
|
|
6897
6897
|
children: [t ? /* @__PURE__ */ Q("div", {
|
|
@@ -6945,7 +6945,7 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
6945
6945
|
})
|
|
6946
6946
|
});
|
|
6947
6947
|
}, Oy = ({ 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 }) => {
|
|
6948
|
-
let T = rd(), E = rd(), D = ll(), 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 ?
|
|
6948
|
+
let T = rd(), E = rd(), D = ll(), 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 ? Hs(r, D) : vr(r, { locale: D }), ee = !!o, te = o ? () => o(e) : void 0, ne = (e) => {
|
|
6949
6949
|
e.stopPropagation();
|
|
6950
6950
|
}, re = t ? `${t.firstName} ${t.lastName}` : void 0, ie = (t) => {
|
|
6951
6951
|
t.preventDefault(), t.stopPropagation(), a && A({
|
|
@@ -6981,22 +6981,22 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
6981
6981
|
/* @__PURE__ */ $("div", {
|
|
6982
6982
|
className: "flex min-w-0 flex-row items-center gap-3",
|
|
6983
6983
|
children: [
|
|
6984
|
-
t ? /* @__PURE__ */ Q(
|
|
6984
|
+
t ? /* @__PURE__ */ Q(yo, {
|
|
6985
6985
|
href: t.url || "#",
|
|
6986
6986
|
title: re,
|
|
6987
6987
|
className: "flex items-center leading-[0]",
|
|
6988
6988
|
stopPropagation: !0,
|
|
6989
|
-
children: /* @__PURE__ */ Q(
|
|
6989
|
+
children: /* @__PURE__ */ Q(fc, {
|
|
6990
6990
|
firstName: t.firstName,
|
|
6991
6991
|
lastName: t.lastName,
|
|
6992
6992
|
src: t.avatarUrl
|
|
6993
6993
|
})
|
|
6994
|
-
}) : /* @__PURE__ */ Q(
|
|
6994
|
+
}) : /* @__PURE__ */ Q(lc, { icon: Zo }),
|
|
6995
6995
|
/* @__PURE__ */ $("div", {
|
|
6996
6996
|
className: "flex min-w-0 flex-1 flex-col",
|
|
6997
6997
|
children: [/* @__PURE__ */ $("div", {
|
|
6998
6998
|
className: "flex min-w-0 flex-1 flex-row flex-wrap items-center gap-1",
|
|
6999
|
-
children: [t ? /* @__PURE__ */ Q(
|
|
6999
|
+
children: [t ? /* @__PURE__ */ Q(yo, {
|
|
7000
7000
|
href: t.url,
|
|
7001
7001
|
title: re,
|
|
7002
7002
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
@@ -7005,7 +7005,7 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
7005
7005
|
}) : null, y ? null : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
7006
7006
|
className: B("text-f1-foreground-secondary", !t && "capitalize"),
|
|
7007
7007
|
children: d
|
|
7008
|
-
}), /* @__PURE__ */ Q(
|
|
7008
|
+
}), /* @__PURE__ */ Q(yo, {
|
|
7009
7009
|
onClick: n.onClick,
|
|
7010
7010
|
title: n.title,
|
|
7011
7011
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
@@ -7016,7 +7016,7 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
7016
7016
|
}), /* @__PURE__ */ $("span", {
|
|
7017
7017
|
className: "flex flex-row items-center gap-1.5 text-base text-f1-foreground-secondary",
|
|
7018
7018
|
children: [I, b ? /* @__PURE__ */ Q(U, {
|
|
7019
|
-
icon:
|
|
7019
|
+
icon: ga,
|
|
7020
7020
|
size: "xs",
|
|
7021
7021
|
"aria-label": x,
|
|
7022
7022
|
role: x ? "img" : void 0
|
|
@@ -7035,13 +7035,13 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
7035
7035
|
onClick: e.onClick,
|
|
7036
7036
|
label: e.label ?? "",
|
|
7037
7037
|
title: e.label ?? ""
|
|
7038
|
-
}, e.label)), m?.length ? /* @__PURE__ */ Q(
|
|
7038
|
+
}, e.label)), m?.length ? /* @__PURE__ */ Q(ti, {
|
|
7039
7039
|
items: m,
|
|
7040
7040
|
size: "sm"
|
|
7041
7041
|
}) : null]
|
|
7042
7042
|
}), /* @__PURE__ */ Q("div", {
|
|
7043
7043
|
className: "md:hidden",
|
|
7044
|
-
children: /* @__PURE__ */ Q(
|
|
7044
|
+
children: /* @__PURE__ */ Q(ti, {
|
|
7045
7045
|
items: [{
|
|
7046
7046
|
label: f.label,
|
|
7047
7047
|
onClick: f.onClick
|
|
@@ -7101,7 +7101,7 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
7101
7101
|
action: {
|
|
7102
7102
|
label: f.label,
|
|
7103
7103
|
onClick: f.onClick,
|
|
7104
|
-
icon:
|
|
7104
|
+
icon: Ra
|
|
7105
7105
|
}
|
|
7106
7106
|
})
|
|
7107
7107
|
]
|
|
@@ -7144,7 +7144,7 @@ var yy = Oa(vy, () => /* @__PURE__ */ $("div", {
|
|
|
7144
7144
|
})
|
|
7145
7145
|
]
|
|
7146
7146
|
})]
|
|
7147
|
-
}), Ay =
|
|
7147
|
+
}), Ay = Ro(Oy, ky);
|
|
7148
7148
|
//#endregion
|
|
7149
7149
|
//#region src/domains/platform/home/Home/Communities/F0CommunityPostsCarousel/PostCardWithFooter.tsx
|
|
7150
7150
|
function jy({ children: e, footer: t }) {
|
|
@@ -7190,7 +7190,7 @@ var My = "aspect-video", Ny = "after:absolute after:inset-0 after:z-[1] after:ro
|
|
|
7190
7190
|
});
|
|
7191
7191
|
}, Ry = ({ author: e, meta: t }) => /* @__PURE__ */ $("div", {
|
|
7192
7192
|
className: "mt-auto flex flex-row items-center gap-3 pt-2",
|
|
7193
|
-
children: [e ? /* @__PURE__ */ Q(
|
|
7193
|
+
children: [e ? /* @__PURE__ */ Q(fc, {
|
|
7194
7194
|
firstName: e.firstName,
|
|
7195
7195
|
lastName: e.lastName,
|
|
7196
7196
|
src: e.avatarUrl
|
|
@@ -7327,7 +7327,7 @@ var My = "aspect-video", Ny = "after:absolute after:inset-0 after:z-[1] after:ro
|
|
|
7327
7327
|
t();
|
|
7328
7328
|
},
|
|
7329
7329
|
children: [
|
|
7330
|
-
/* @__PURE__ */ Q(
|
|
7330
|
+
/* @__PURE__ */ Q(fc, {
|
|
7331
7331
|
firstName: e.firstName,
|
|
7332
7332
|
lastName: e.lastName,
|
|
7333
7333
|
src: e.avatarUrl,
|
|
@@ -7387,7 +7387,7 @@ var My = "aspect-video", Ny = "after:absolute after:inset-0 after:z-[1] after:ro
|
|
|
7387
7387
|
})]
|
|
7388
7388
|
});
|
|
7389
7389
|
Jy.displayName = "OnePersonListItem";
|
|
7390
|
-
var Xy = bn(Tn("OnePersonListItem",
|
|
7390
|
+
var Xy = bn(Tn("OnePersonListItem", Ro(Jy, Yy))), Zy = "[anchor-name:--f0-composer-column]";
|
|
7391
7391
|
function Qy({ composer: e, away: t, reserveComposerSpace: n = !1, rounded: r = "all", children: i }) {
|
|
7392
7392
|
if (!e) return /* @__PURE__ */ Q("div", {
|
|
7393
7393
|
className: "contents",
|
|
@@ -7433,7 +7433,7 @@ function $y({ left: e, top: t }) {
|
|
|
7433
7433
|
//#endregion
|
|
7434
7434
|
//#region src/blocks/ApplicationFrame/SidePanel/SidePanelContentWindow.tsx
|
|
7435
7435
|
var eb = () => {
|
|
7436
|
-
let { open: e, activeContent: t, contentSide: n, restoringViewId: r } =
|
|
7436
|
+
let { open: e, activeContent: t, contentSide: n, restoringViewId: r } = dr(), i = Zn(), a = Y(t);
|
|
7437
7437
|
t && (a.current = t);
|
|
7438
7438
|
let o = !t && r ? {
|
|
7439
7439
|
id: r,
|
|
@@ -7443,7 +7443,7 @@ var eb = () => {
|
|
|
7443
7443
|
className: "h-full w-full rounded-none"
|
|
7444
7444
|
})
|
|
7445
7445
|
} : null, s = t ?? o ?? a.current;
|
|
7446
|
-
return /* @__PURE__ */ Q(
|
|
7446
|
+
return /* @__PURE__ */ Q(ua, {
|
|
7447
7447
|
visible: e && (t !== null || o !== null),
|
|
7448
7448
|
side: n,
|
|
7449
7449
|
exitStyle: e ? "hold" : "shrink",
|
|
@@ -7465,7 +7465,7 @@ var eb = () => {
|
|
|
7465
7465
|
};
|
|
7466
7466
|
//#endregion
|
|
7467
7467
|
//#region src/blocks/ApplicationFrame/useWindowResizing.ts
|
|
7468
|
-
function tb(e =
|
|
7468
|
+
function tb(e = Ha) {
|
|
7469
7469
|
let [t, n] = X(!1);
|
|
7470
7470
|
return K(() => {
|
|
7471
7471
|
let t = 0, r = () => {
|
|
@@ -7478,10 +7478,10 @@ function tb(e = Ro) {
|
|
|
7478
7478
|
}
|
|
7479
7479
|
//#endregion
|
|
7480
7480
|
//#region src/blocks/Header/headerDensity.ts
|
|
7481
|
-
var nb = Zu("default"), rb = () => nd(nb), ib = 8, ab = 8, ob = (e, t) => e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || t.target !== "" && t.target !== "_self" || t.hasAttribute("download"), sb = (e) => B("rounded-l-xl bg-f1-background", e ? B("transition-width",
|
|
7481
|
+
var nb = Zu("default"), rb = () => nd(nb), ib = 8, ab = 8, ob = (e, t) => e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || t.target !== "" && t.target !== "_self" || t.hasAttribute("download"), sb = (e) => B("rounded-l-xl bg-f1-background", e ? B("transition-width", Bo) : "transition-none"), cb = (e, t) => B(e ? "opacity-100" : "opacity-0", t ? ["transition-opacity delay-75 ease-out-swift motion-reduce:transition-none", e ? "duration-fast" : "duration-micro"] : "transition-none"), lb = ({ shellRef: e, overlays: t, isOpen: n, animates: r, joinsPageCard: i, width: a, topBarHeight: o, onLinkClickOverPage: s, children: c }) => /* @__PURE__ */ $("div", {
|
|
7482
7482
|
ref: e,
|
|
7483
7483
|
"data-testid": "secondary-sidebar-shell",
|
|
7484
|
-
className: B("z-0 shrink-0", !n && "pointer-events-none", i && !t ? sb(r) : [n ? "opacity-100" : "opacity-0", r ? B("transition-[width,margin,opacity]",
|
|
7484
|
+
className: B("z-0 shrink-0", !n && "pointer-events-none", i && !t ? sb(r) : [n ? "opacity-100" : "opacity-0", r ? B("transition-[width,margin,opacity]", Bo) : "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"),
|
|
7485
7485
|
style: {
|
|
7486
7486
|
"--ds-sidebar-width": `${a}px`,
|
|
7487
7487
|
width: t || n ? a : 0,
|
|
@@ -7521,9 +7521,9 @@ function db(e) {
|
|
|
7521
7521
|
function fb({ primarySidebar: e, secondarySidebar: t, joinsPageCard: n = !1 }) {
|
|
7522
7522
|
let r = lu();
|
|
7523
7523
|
if (!r) throw Error("NavigationLayout must be rendered by ApplicationFrame with a primarySidebar");
|
|
7524
|
-
return /* @__PURE__ */ Q(
|
|
7524
|
+
return /* @__PURE__ */ Q(Ao, {
|
|
7525
7525
|
value: "two-level",
|
|
7526
|
-
children: /* @__PURE__ */ Q(
|
|
7526
|
+
children: /* @__PURE__ */ Q(Fa, {
|
|
7527
7527
|
value: !0,
|
|
7528
7528
|
children: /* @__PURE__ */ Q(pb, {
|
|
7529
7529
|
navigation: r,
|
|
@@ -7573,7 +7573,7 @@ function pb({ navigation: e, primarySidebar: t, secondarySidebar: n, joinsPageCa
|
|
|
7573
7573
|
className: "relative z-10 h-full shrink-0",
|
|
7574
7574
|
children: [t, r ? null : /* @__PURE__ */ Q("span", {
|
|
7575
7575
|
"aria-hidden": "true",
|
|
7576
|
-
className: B("pointer-events-none absolute inset-y-0 right-0 w-px bg-f1-border-secondary", y && E ? "opacity-100" : "opacity-0", w ? B("transition-opacity",
|
|
7576
|
+
className: B("pointer-events-none absolute inset-y-0 right-0 w-px bg-f1-border-secondary", y && E ? "opacity-100" : "opacity-0", w ? B("transition-opacity", Bo) : "transition-none")
|
|
7577
7577
|
})]
|
|
7578
7578
|
}),
|
|
7579
7579
|
y ? /* @__PURE__ */ Q(lb, {
|
|
@@ -8353,7 +8353,7 @@ var Xb = Ub.categories.flatMap((e) => Wb.includes(e.id) ? [{
|
|
|
8353
8353
|
width: window.innerWidth,
|
|
8354
8354
|
height: window.innerHeight
|
|
8355
8355
|
}, JS = () => {
|
|
8356
|
-
let [e, t] =
|
|
8356
|
+
let [e, t] = ls({
|
|
8357
8357
|
key: Wx,
|
|
8358
8358
|
fallback: KS,
|
|
8359
8359
|
validate: RS
|
|
@@ -8416,7 +8416,7 @@ var Xb = Ub.categories.flatMap((e) => Wb.includes(e.id) ? [{
|
|
|
8416
8416
|
}
|
|
8417
8417
|
return e.values().next().value ?? null;
|
|
8418
8418
|
}, $S = Zu(null), eC = ({ defaultMode: e = "fullscreen", roomId: t = "", pictureInPicture: n = !0, children: r }) => {
|
|
8419
|
-
let [i, a] =
|
|
8419
|
+
let [i, a] = ls({
|
|
8420
8420
|
key: Gx,
|
|
8421
8421
|
fallback: {
|
|
8422
8422
|
roomId: t,
|
|
@@ -8438,12 +8438,12 @@ var Xb = Ub.categories.flatMap((e) => Wb.includes(e.id) ? [{
|
|
|
8438
8438
|
...n,
|
|
8439
8439
|
[t]: e
|
|
8440
8440
|
});
|
|
8441
|
-
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, ee] =
|
|
8441
|
+
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, ee] = ls({
|
|
8442
8442
|
key: Kx,
|
|
8443
8443
|
fallback: 420,
|
|
8444
8444
|
validate: (e) => typeof e == "number" && Number.isFinite(e) && e >= 320,
|
|
8445
8445
|
debounceMs: 150
|
|
8446
|
-
}), te = G(() => ee(420), [ee]), [ne, re] =
|
|
8446
|
+
}), te = G(() => ee(420), [ee]), [ne, re] = ls({
|
|
8447
8447
|
key: Jx,
|
|
8448
8448
|
fallback: Yx,
|
|
8449
8449
|
validate: nS,
|
|
@@ -8701,7 +8701,7 @@ var Xb = Ub.categories.flatMap((e) => Wb.includes(e.id) ? [{
|
|
|
8701
8701
|
...t,
|
|
8702
8702
|
id: "chat",
|
|
8703
8703
|
label: n,
|
|
8704
|
-
icon:
|
|
8704
|
+
icon: As
|
|
8705
8705
|
}] : [])).filter((e) => e.tabs.length > 0), uC = () => {
|
|
8706
8706
|
let e = R(), { sidePanels: t, sidePanel: n } = aC();
|
|
8707
8707
|
return J(() => lC(t, n, e.meeting.chatPanel), [
|
|
@@ -8746,7 +8746,7 @@ function mC({ icon: e, label: t, detail: n, stopLabel: r, onStop: i, pending: a,
|
|
|
8746
8746
|
variant: "ghost",
|
|
8747
8747
|
size: "md",
|
|
8748
8748
|
hideLabel: !0,
|
|
8749
|
-
icon:
|
|
8749
|
+
icon: ea,
|
|
8750
8750
|
iconColor: "bold",
|
|
8751
8751
|
label: r,
|
|
8752
8752
|
loading: a,
|
|
@@ -8769,7 +8769,7 @@ function hC() {
|
|
|
8769
8769
|
children: e.meeting.activity.title
|
|
8770
8770
|
}),
|
|
8771
8771
|
t?.active ? /* @__PURE__ */ Q(mC, {
|
|
8772
|
-
icon:
|
|
8772
|
+
icon: Jo,
|
|
8773
8773
|
label: t.consentNotice ?? e.meeting.recording,
|
|
8774
8774
|
detail: o ? e.t("meeting.activity.startedBy", { name: o }) : void 0,
|
|
8775
8775
|
stopLabel: e.meeting.stopRecording,
|
|
@@ -8778,7 +8778,7 @@ function hC() {
|
|
|
8778
8778
|
testId: "meeting-activity-recording"
|
|
8779
8779
|
}) : null,
|
|
8780
8780
|
n?.status === "active" ? /* @__PURE__ */ Q(mC, {
|
|
8781
|
-
icon:
|
|
8781
|
+
icon: _o,
|
|
8782
8782
|
label: e.meeting.transcribing,
|
|
8783
8783
|
stopLabel: e.meeting.pauseTranscript,
|
|
8784
8784
|
onStop: i ? a.toggleTranscription : void 0,
|
|
@@ -8807,7 +8807,7 @@ function gC() {
|
|
|
8807
8807
|
className: "flex",
|
|
8808
8808
|
"data-testid": "meeting-recording-icon",
|
|
8809
8809
|
children: /* @__PURE__ */ Q(U, {
|
|
8810
|
-
icon:
|
|
8810
|
+
icon: Jo,
|
|
8811
8811
|
size: "md",
|
|
8812
8812
|
color: "positive"
|
|
8813
8813
|
})
|
|
@@ -8816,13 +8816,13 @@ function gC() {
|
|
|
8816
8816
|
className: "flex",
|
|
8817
8817
|
"data-testid": "meeting-transcribing-icon",
|
|
8818
8818
|
children: /* @__PURE__ */ Q(U, {
|
|
8819
|
-
icon:
|
|
8819
|
+
icon: _o,
|
|
8820
8820
|
size: "md",
|
|
8821
8821
|
color: "positive"
|
|
8822
8822
|
})
|
|
8823
8823
|
}) : null,
|
|
8824
8824
|
/* @__PURE__ */ Q(U, {
|
|
8825
|
-
icon:
|
|
8825
|
+
icon: Qs,
|
|
8826
8826
|
size: "sm",
|
|
8827
8827
|
color: "secondary"
|
|
8828
8828
|
})
|
|
@@ -8842,10 +8842,10 @@ var _C = "[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:befo
|
|
|
8842
8842
|
left: "[@media(pointer:coarse)]:before:-inset-y-[6px] [@media(pointer:coarse)]:before:-left-[6px] [@media(pointer:coarse)]:before:right-0",
|
|
8843
8843
|
right: "[@media(pointer:coarse)]:before:-inset-y-[6px] [@media(pointer:coarse)]:before:left-0 [@media(pointer:coarse)]:before:-right-[6px]"
|
|
8844
8844
|
}, yC = (e = "all") => B("relative", _C, vC[e]), bC = () => "[@media(pointer:coarse)]:[&>button]:before:absolute [@media(pointer:coarse)]:[&>button]:before:content-[''] [@media(pointer:coarse)]:[&>button]:before:-inset-[6px]", xC = () => {
|
|
8845
|
-
let e = R(), { effectiveMode: t, setMode: n, hasPanelSlot: r, panelSide: i } = tC(), a = i === "left" ?
|
|
8845
|
+
let e = R(), { effectiveMode: t, setMode: n, hasPanelSlot: r, panelSide: i } = tC(), a = i === "left" ? Ma : ns, o = [
|
|
8846
8846
|
{
|
|
8847
8847
|
mode: "floating",
|
|
8848
|
-
icon:
|
|
8848
|
+
icon: ta,
|
|
8849
8849
|
label: e.meeting.modeFloating
|
|
8850
8850
|
},
|
|
8851
8851
|
{
|
|
@@ -8855,7 +8855,7 @@ var _C = "[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:befo
|
|
|
8855
8855
|
},
|
|
8856
8856
|
{
|
|
8857
8857
|
mode: "fullscreen",
|
|
8858
|
-
icon:
|
|
8858
|
+
icon: Br,
|
|
8859
8859
|
label: e.meeting.modeFullscreen
|
|
8860
8860
|
}
|
|
8861
8861
|
], s = (t === "minimized" ? o.filter((e) => e.mode === "floating") : o).filter((e) => e.mode !== "panel" && e.mode !== "fullscreen" || r);
|
|
@@ -8901,7 +8901,7 @@ var _C = "[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:befo
|
|
|
8901
8901
|
variant: "ghost",
|
|
8902
8902
|
size: "md",
|
|
8903
8903
|
hideLabel: !0,
|
|
8904
|
-
icon:
|
|
8904
|
+
icon: _s,
|
|
8905
8905
|
label: e.meeting.exitPictureInPicture,
|
|
8906
8906
|
onClick: () => {
|
|
8907
8907
|
t(), window.focus();
|
|
@@ -8947,7 +8947,7 @@ var _C = "[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:befo
|
|
|
8947
8947
|
t.avatar && c ? /* @__PURE__ */ Q("span", {
|
|
8948
8948
|
className: "shrink-0",
|
|
8949
8949
|
"data-testid": "meeting-room-avatar",
|
|
8950
|
-
children: /* @__PURE__ */ Q(
|
|
8950
|
+
children: /* @__PURE__ */ Q(hc, {
|
|
8951
8951
|
avatar: t.avatar,
|
|
8952
8952
|
size: "xs"
|
|
8953
8953
|
})
|
|
@@ -9253,7 +9253,7 @@ var _C = "[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:befo
|
|
|
9253
9253
|
height: 32
|
|
9254
9254
|
},
|
|
9255
9255
|
children: e.id === "frequent" ? /* @__PURE__ */ Q(U, {
|
|
9256
|
-
icon:
|
|
9256
|
+
icon: To,
|
|
9257
9257
|
size: "md"
|
|
9258
9258
|
}) : /* @__PURE__ */ Q(Xn, {
|
|
9259
9259
|
emoji: uw[e.id],
|
|
@@ -9453,7 +9453,7 @@ var _C = "[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:befo
|
|
|
9453
9453
|
Tw.delete(e), Tw.size === 0 && window.removeEventListener("storage", Ew);
|
|
9454
9454
|
}), Ow = () => null, kw = (e) => {
|
|
9455
9455
|
let t = Cw(Sw());
|
|
9456
|
-
|
|
9456
|
+
$o(yw, {
|
|
9457
9457
|
...t,
|
|
9458
9458
|
[e.id]: Math.min((t[e.id] ?? 0) + 1, xw)
|
|
9459
9459
|
}), Ew();
|
|
@@ -9617,7 +9617,7 @@ var _C = "[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:befo
|
|
|
9617
9617
|
noAutoTooltip: s,
|
|
9618
9618
|
label: t,
|
|
9619
9619
|
size: n,
|
|
9620
|
-
icon: i ??
|
|
9620
|
+
icon: i ?? Zr,
|
|
9621
9621
|
pressed: d,
|
|
9622
9622
|
onClick: (e) => {
|
|
9623
9623
|
e.preventDefault(), e.stopPropagation(), f(!d);
|
|
@@ -9861,7 +9861,7 @@ var _C = "[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:befo
|
|
|
9861
9861
|
return t;
|
|
9862
9862
|
}, yT = (e) => {
|
|
9863
9863
|
let t = pT(lT());
|
|
9864
|
-
t.v > cT || (
|
|
9864
|
+
t.v > cT || ($o(qx, {
|
|
9865
9865
|
...t,
|
|
9866
9866
|
...e,
|
|
9867
9867
|
v: cT
|
|
@@ -9986,7 +9986,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
9986
9986
|
disabled: o,
|
|
9987
9987
|
className: B("flex w-7 items-center justify-center rounded-r-[inherit] transition-colors duration-150 ease-out motion-reduce:transition-none", "hover:bg-f1-background-secondary-hover", o && "cursor-not-allowed opacity-50", En(), yC("right")),
|
|
9988
9988
|
children: /* @__PURE__ */ Q(U, {
|
|
9989
|
-
icon:
|
|
9989
|
+
icon: Qs,
|
|
9990
9990
|
size: "sm",
|
|
9991
9991
|
color: "bold"
|
|
9992
9992
|
})
|
|
@@ -10080,7 +10080,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10080
10080
|
...i.length > 0 && a.length > 0 ? [{ type: "separator" }] : [],
|
|
10081
10081
|
...a.map(UT)
|
|
10082
10082
|
];
|
|
10083
|
-
return /* @__PURE__ */ Q(
|
|
10083
|
+
return /* @__PURE__ */ Q(ti, {
|
|
10084
10084
|
items: o,
|
|
10085
10085
|
align: "end",
|
|
10086
10086
|
children: /* @__PURE__ */ $("span", {
|
|
@@ -10284,7 +10284,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10284
10284
|
return {
|
|
10285
10285
|
id: "core:recording",
|
|
10286
10286
|
label: i ? e.meeting.stopRecording : o,
|
|
10287
|
-
icon:
|
|
10287
|
+
icon: Jo,
|
|
10288
10288
|
pending: r.recordingPending,
|
|
10289
10289
|
disabled: a,
|
|
10290
10290
|
disabledReason: a ? e.meeting.recordingNotAllowed : void 0,
|
|
@@ -10301,7 +10301,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10301
10301
|
}, oE = ({ i18n: e, transcription: t, activity: n }) => ({
|
|
10302
10302
|
id: "core:transcription",
|
|
10303
10303
|
label: t?.status === "active" ? e.meeting.pauseTranscript : e.meeting.resumeTranscript,
|
|
10304
|
-
icon:
|
|
10304
|
+
icon: _o,
|
|
10305
10305
|
pending: n.transcriptionPending,
|
|
10306
10306
|
onClick: n.toggleTranscription,
|
|
10307
10307
|
menu: !0,
|
|
@@ -10321,8 +10321,8 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10321
10321
|
o.push({
|
|
10322
10322
|
id: "core:camera",
|
|
10323
10323
|
label: r.camera.enabled ? t.meeting.turnOffCamera : t.meeting.turnOnCamera,
|
|
10324
|
-
icon:
|
|
10325
|
-
activeIcon:
|
|
10324
|
+
icon: Es,
|
|
10325
|
+
activeIcon: Cr,
|
|
10326
10326
|
pressed: !r.camera.enabled,
|
|
10327
10327
|
pending: r.camera.pending,
|
|
10328
10328
|
disabled: a?.canPublishVideo === !1 || !!s,
|
|
@@ -10339,7 +10339,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10339
10339
|
id: "core:cameraSettings",
|
|
10340
10340
|
source: r.camera,
|
|
10341
10341
|
label: t.meeting.selectCamera,
|
|
10342
|
-
icon:
|
|
10342
|
+
icon: ws,
|
|
10343
10343
|
priority: 65
|
|
10344
10344
|
});
|
|
10345
10345
|
if (c && o.push(c), n.hasScreenShare) {
|
|
@@ -10347,7 +10347,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10347
10347
|
o.push({
|
|
10348
10348
|
id: "core:screenShare",
|
|
10349
10349
|
label: e ? t.meeting.stopSharing : t.meeting.shareScreen,
|
|
10350
|
-
icon:
|
|
10350
|
+
icon: Io,
|
|
10351
10351
|
pressed: e,
|
|
10352
10352
|
pending: r.screenShare?.pending,
|
|
10353
10353
|
disabled: a?.canShareScreen === !1,
|
|
@@ -10359,7 +10359,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10359
10359
|
return n.hasReactions && o.push({
|
|
10360
10360
|
id: "core:reactions",
|
|
10361
10361
|
label: t.meeting.reactions,
|
|
10362
|
-
icon:
|
|
10362
|
+
icon: Zr,
|
|
10363
10363
|
priority: 41,
|
|
10364
10364
|
group: "reactions",
|
|
10365
10365
|
modes: [
|
|
@@ -10371,7 +10371,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10371
10371
|
}), n.hasRaiseHand && o.push({
|
|
10372
10372
|
id: "core:raiseHand",
|
|
10373
10373
|
label: i ? t.meeting.lowerHand : t.meeting.raiseHand,
|
|
10374
|
-
icon:
|
|
10374
|
+
icon: Vs,
|
|
10375
10375
|
emoji: "✋",
|
|
10376
10376
|
pressed: i,
|
|
10377
10377
|
onClick: () => n.setHandRaised(!i),
|
|
@@ -10389,8 +10389,8 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10389
10389
|
i.push({
|
|
10390
10390
|
id: "core:microphone",
|
|
10391
10391
|
label: iE(t, h, r.microphone.enabled),
|
|
10392
|
-
icon: h ? Ml :
|
|
10393
|
-
activeIcon: h ? jl :
|
|
10392
|
+
icon: h ? Ml : Da,
|
|
10393
|
+
activeIcon: h ? jl : Fs,
|
|
10394
10394
|
pressed: !r.microphone.enabled,
|
|
10395
10395
|
pending: r.microphone.pending,
|
|
10396
10396
|
disabled: p?.canPublishAudio === !1 || !!m,
|
|
@@ -10408,7 +10408,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10408
10408
|
source: r.microphone,
|
|
10409
10409
|
output: r.speaker,
|
|
10410
10410
|
label: t.meeting.selectMicrophone,
|
|
10411
|
-
icon:
|
|
10411
|
+
icon: aa,
|
|
10412
10412
|
priority: 70
|
|
10413
10413
|
});
|
|
10414
10414
|
return g && i.push(g), h || i.push(...sE({
|
|
@@ -10440,7 +10440,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10440
10440
|
}), i.push({
|
|
10441
10441
|
id: "core:leave",
|
|
10442
10442
|
label: h ? t.meeting.inPerson.end : t.meeting.leave,
|
|
10443
|
-
icon:
|
|
10443
|
+
icon: jo,
|
|
10444
10444
|
variant: "critical",
|
|
10445
10445
|
onClick: () => void d(),
|
|
10446
10446
|
pinned: !0,
|
|
@@ -10569,7 +10569,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10569
10569
|
}, _E = () => {
|
|
10570
10570
|
let e = R();
|
|
10571
10571
|
return /* @__PURE__ */ $(gE, { children: [/* @__PURE__ */ Q(U, {
|
|
10572
|
-
icon:
|
|
10572
|
+
icon: rc,
|
|
10573
10573
|
size: "lg",
|
|
10574
10574
|
state: "animate"
|
|
10575
10575
|
}), /* @__PURE__ */ Q("p", {
|
|
@@ -10604,7 +10604,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10604
10604
|
role: "status",
|
|
10605
10605
|
className: "pointer-events-none absolute left-1/2 top-3 z-10 flex -translate-x-1/2 items-center gap-2 rounded-full bg-f1-background-warning px-3 py-1.5 text-sm font-medium text-f1-foreground-warning",
|
|
10606
10606
|
children: [/* @__PURE__ */ Q(U, {
|
|
10607
|
-
icon:
|
|
10607
|
+
icon: rc,
|
|
10608
10608
|
size: "sm",
|
|
10609
10609
|
state: "animate"
|
|
10610
10610
|
}), e.meeting.reconnecting]
|
|
@@ -10738,7 +10738,7 @@ var kT = (e, t) => e.isDefault ? `${e.label} · ${t}` : e.label, AT = (e, t) =>
|
|
|
10738
10738
|
className: "flex gap-2",
|
|
10739
10739
|
children: [/* @__PURE__ */ Q("span", {
|
|
10740
10740
|
className: "mt-0.5 shrink-0",
|
|
10741
|
-
children: n?.avatar ? /* @__PURE__ */ Q(
|
|
10741
|
+
children: n?.avatar ? /* @__PURE__ */ Q(hc, {
|
|
10742
10742
|
avatar: n.avatar,
|
|
10743
10743
|
size: "xs"
|
|
10744
10744
|
}) : null
|
|
@@ -10802,15 +10802,15 @@ function kE() {
|
|
|
10802
10802
|
className: "flex flex-wrap gap-1.5",
|
|
10803
10803
|
children: [
|
|
10804
10804
|
s ? /* @__PURE__ */ Q(DE, {
|
|
10805
|
-
icon:
|
|
10805
|
+
icon: Bi,
|
|
10806
10806
|
children: s
|
|
10807
10807
|
}) : null,
|
|
10808
10808
|
/* @__PURE__ */ Q(DE, {
|
|
10809
|
-
icon:
|
|
10809
|
+
icon: ao,
|
|
10810
10810
|
children: `${e.meeting.inPerson.inTheRoom}: ${a.join(", ")}`
|
|
10811
10811
|
}),
|
|
10812
10812
|
o ? /* @__PURE__ */ Q(DE, {
|
|
10813
|
-
icon:
|
|
10813
|
+
icon: Da,
|
|
10814
10814
|
children: o
|
|
10815
10815
|
}) : null
|
|
10816
10816
|
]
|
|
@@ -11356,24 +11356,24 @@ var rD = () => {
|
|
|
11356
11356
|
};
|
|
11357
11357
|
}, xD = {
|
|
11358
11358
|
duration: nu.duration.base,
|
|
11359
|
-
ease:
|
|
11359
|
+
ease: po
|
|
11360
11360
|
}, SD = [
|
|
11361
11361
|
"left",
|
|
11362
11362
|
"top",
|
|
11363
11363
|
"width",
|
|
11364
11364
|
"height"
|
|
11365
|
-
].map((e) => `${e} ${Math.round(xD.duration * 1e3)}ms cubic-bezier(${
|
|
11365
|
+
].map((e) => `${e} ${Math.round(xD.duration * 1e3)}ms cubic-bezier(${po.join(",")})`).join(", "), CD = {
|
|
11366
11366
|
duration: nu.duration.base,
|
|
11367
|
-
ease:
|
|
11367
|
+
ease: po
|
|
11368
11368
|
}, wD = {
|
|
11369
11369
|
duration: nu.duration.fast,
|
|
11370
|
-
ease:
|
|
11370
|
+
ease: po
|
|
11371
11371
|
}, TD = {
|
|
11372
11372
|
duration: nu.duration.micro,
|
|
11373
11373
|
ease: "easeIn"
|
|
11374
11374
|
}, ED = {
|
|
11375
11375
|
duration: nu.duration.fast,
|
|
11376
|
-
ease:
|
|
11376
|
+
ease: po
|
|
11377
11377
|
}, DD = {
|
|
11378
11378
|
duration: nu.duration.micro,
|
|
11379
11379
|
ease: "easeIn"
|
|
@@ -11450,7 +11450,7 @@ var rD = () => {
|
|
|
11450
11450
|
hideLabel: !0,
|
|
11451
11451
|
size: "sm",
|
|
11452
11452
|
variant: "neutral",
|
|
11453
|
-
icon:
|
|
11453
|
+
icon: Da,
|
|
11454
11454
|
label: n.t("meeting.muteParticipant", { name: e.name }),
|
|
11455
11455
|
onClick: () => r?.muteParticipant?.(e)
|
|
11456
11456
|
})
|
|
@@ -11470,14 +11470,14 @@ var rD = () => {
|
|
|
11470
11470
|
children: [/* @__PURE__ */ $("span", {
|
|
11471
11471
|
className: B("relative flex-none", i && "opacity-50"),
|
|
11472
11472
|
children: [
|
|
11473
|
-
r.avatar ? /* @__PURE__ */ Q(
|
|
11473
|
+
r.avatar ? /* @__PURE__ */ Q(hc, {
|
|
11474
11474
|
avatar: r.avatar,
|
|
11475
11475
|
size: t.avatarSize
|
|
11476
11476
|
}) : null,
|
|
11477
11477
|
!i && (a || o) ? /* @__PURE__ */ Q("span", {
|
|
11478
11478
|
className: B("absolute -bottom-0.5 -end-0.5 flex h-4 w-4 items-center justify-center rounded-full", "border border-solid border-f1-border-secondary bg-f1-background text-f1-foreground-secondary"),
|
|
11479
11479
|
children: /* @__PURE__ */ Q(U, {
|
|
11480
|
-
icon: a ?
|
|
11480
|
+
icon: a ? Io : Fs,
|
|
11481
11481
|
size: "xs",
|
|
11482
11482
|
"aria-label": a ? n.meeting.sharingScreen : n.meeting.muted
|
|
11483
11483
|
})
|
|
@@ -11569,7 +11569,7 @@ var rD = () => {
|
|
|
11569
11569
|
children: e.map((e) => /* @__PURE__ */ $("li", {
|
|
11570
11570
|
className: "flex items-center gap-2 rounded-md px-1 py-1",
|
|
11571
11571
|
children: [
|
|
11572
|
-
e.participant.avatar ? /* @__PURE__ */ Q(
|
|
11572
|
+
e.participant.avatar ? /* @__PURE__ */ Q(hc, {
|
|
11573
11573
|
avatar: e.participant.avatar,
|
|
11574
11574
|
size: "xs"
|
|
11575
11575
|
}) : null,
|
|
@@ -11578,12 +11578,12 @@ var rD = () => {
|
|
|
11578
11578
|
children: e.participant.name
|
|
11579
11579
|
}),
|
|
11580
11580
|
pS(e.participant) ? /* @__PURE__ */ Q(U, {
|
|
11581
|
-
icon:
|
|
11581
|
+
icon: Fs,
|
|
11582
11582
|
size: "sm",
|
|
11583
11583
|
color: "secondary"
|
|
11584
11584
|
}) : null,
|
|
11585
11585
|
mS(e) ? null : /* @__PURE__ */ Q(U, {
|
|
11586
|
-
icon:
|
|
11586
|
+
icon: Cr,
|
|
11587
11587
|
size: "sm",
|
|
11588
11588
|
color: "secondary"
|
|
11589
11589
|
})
|
|
@@ -11673,10 +11673,10 @@ var rD = () => {
|
|
|
11673
11673
|
className: B("flex shrink-0 items-center justify-center", n ? "h-4 w-[23px]" : "h-6 w-7"),
|
|
11674
11674
|
"data-testid": "meeting-tile-label-state",
|
|
11675
11675
|
children: o ? /* @__PURE__ */ Q(U, {
|
|
11676
|
-
icon:
|
|
11676
|
+
icon: Io,
|
|
11677
11677
|
size: "sm"
|
|
11678
11678
|
}) : s ? /* @__PURE__ */ Q(U, {
|
|
11679
|
-
icon:
|
|
11679
|
+
icon: Fs,
|
|
11680
11680
|
size: "sm"
|
|
11681
11681
|
}) : /* @__PURE__ */ Q(YE, {
|
|
11682
11682
|
participantId: i.id,
|
|
@@ -11693,7 +11693,7 @@ var rD = () => {
|
|
|
11693
11693
|
hideLabel: !0,
|
|
11694
11694
|
size: "sm",
|
|
11695
11695
|
variant: "neutral",
|
|
11696
|
-
icon:
|
|
11696
|
+
icon: Da,
|
|
11697
11697
|
loading: r,
|
|
11698
11698
|
onClick: () => {
|
|
11699
11699
|
i(!0), t(), window.setTimeout(() => i(!1), ZD);
|
|
@@ -11721,7 +11721,7 @@ var rD = () => {
|
|
|
11721
11721
|
mirrored: d.isLocal && !m
|
|
11722
11722
|
}) : /* @__PURE__ */ $("div", {
|
|
11723
11723
|
className: "flex h-full w-full flex-col items-center justify-center gap-2.5 px-2",
|
|
11724
|
-
children: [d.avatar ? /* @__PURE__ */ Q(
|
|
11724
|
+
children: [d.avatar ? /* @__PURE__ */ Q(hc, {
|
|
11725
11725
|
avatar: d.avatar,
|
|
11726
11726
|
size: wx(t)
|
|
11727
11727
|
}) : null, h && !v ? /* @__PURE__ */ Q("span", {
|
|
@@ -11763,7 +11763,7 @@ var rD = () => {
|
|
|
11763
11763
|
hideLabel: !0,
|
|
11764
11764
|
size: "sm",
|
|
11765
11765
|
variant: "neutral",
|
|
11766
|
-
icon: l ?
|
|
11766
|
+
icon: l ? _s : zi,
|
|
11767
11767
|
onClick: u,
|
|
11768
11768
|
label: l ? s.meeting.exitFullscreen : s.meeting.enterFullscreen
|
|
11769
11769
|
}) }) : null,
|
|
@@ -11772,7 +11772,7 @@ var rD = () => {
|
|
|
11772
11772
|
size: "sm",
|
|
11773
11773
|
variant: "neutral",
|
|
11774
11774
|
onClick: () => a?.(e.key),
|
|
11775
|
-
icon: r ?
|
|
11775
|
+
icon: r ? ga : wi,
|
|
11776
11776
|
label: r ? s.meeting.unpinParticipant : s.meeting.pinParticipant
|
|
11777
11777
|
}) }) : null
|
|
11778
11778
|
]
|
|
@@ -12224,7 +12224,7 @@ var rD = () => {
|
|
|
12224
12224
|
}) : null,
|
|
12225
12225
|
/* @__PURE__ */ $("div", {
|
|
12226
12226
|
className: "flex shrink-0 items-center",
|
|
12227
|
-
children: [/* @__PURE__ */ Q(
|
|
12227
|
+
children: [/* @__PURE__ */ Q(js, {
|
|
12228
12228
|
tabs: v,
|
|
12229
12229
|
activeTabId: g,
|
|
12230
12230
|
setActiveTabId: c
|
|
@@ -12235,7 +12235,7 @@ var rD = () => {
|
|
|
12235
12235
|
variant: "outline",
|
|
12236
12236
|
size: "md",
|
|
12237
12237
|
hideLabel: !0,
|
|
12238
|
-
icon:
|
|
12238
|
+
icon: xo,
|
|
12239
12239
|
label: i.meeting.closePanel,
|
|
12240
12240
|
onClick: o
|
|
12241
12241
|
})
|
|
@@ -13140,7 +13140,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13140
13140
|
className: "flex gap-2",
|
|
13141
13141
|
children: [/* @__PURE__ */ Q("span", {
|
|
13142
13142
|
className: "mt-0.5 shrink-0",
|
|
13143
|
-
children: t?.avatar ? /* @__PURE__ */ Q(
|
|
13143
|
+
children: t?.avatar ? /* @__PURE__ */ Q(hc, {
|
|
13144
13144
|
avatar: t.avatar,
|
|
13145
13145
|
size: "xs"
|
|
13146
13146
|
}) : null
|
|
@@ -13200,7 +13200,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13200
13200
|
className: "flex items-center gap-2 py-1.5",
|
|
13201
13201
|
"data-testid": "meeting-participant",
|
|
13202
13202
|
children: [
|
|
13203
|
-
/* @__PURE__ */ Q(
|
|
13203
|
+
/* @__PURE__ */ Q(hc, {
|
|
13204
13204
|
avatar: ak(e),
|
|
13205
13205
|
size: "sm"
|
|
13206
13206
|
}),
|
|
@@ -13218,7 +13218,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13218
13218
|
hideLabel: !0,
|
|
13219
13219
|
size: "sm",
|
|
13220
13220
|
variant: "ghost",
|
|
13221
|
-
icon:
|
|
13221
|
+
icon: Da,
|
|
13222
13222
|
label: a.t("meeting.muteParticipant", { name: e.name }),
|
|
13223
13223
|
onClick: r
|
|
13224
13224
|
}) : null,
|
|
@@ -13227,7 +13227,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13227
13227
|
"aria-label": a.meeting.muted,
|
|
13228
13228
|
className: "text-f1-foreground-secondary",
|
|
13229
13229
|
children: /* @__PURE__ */ Q(U, {
|
|
13230
|
-
icon:
|
|
13230
|
+
icon: Fs,
|
|
13231
13231
|
size: "sm"
|
|
13232
13232
|
})
|
|
13233
13233
|
}) : null,
|
|
@@ -13273,7 +13273,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13273
13273
|
children: [
|
|
13274
13274
|
/* @__PURE__ */ Q("span", {
|
|
13275
13275
|
className: r ? "rounded-full motion-safe:animate-pulse" : void 0,
|
|
13276
|
-
children: /* @__PURE__ */ Q(
|
|
13276
|
+
children: /* @__PURE__ */ Q(hc, {
|
|
13277
13277
|
avatar: ak(e),
|
|
13278
13278
|
size: "sm"
|
|
13279
13279
|
})
|
|
@@ -13433,7 +13433,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13433
13433
|
opacity: 1,
|
|
13434
13434
|
x: 0,
|
|
13435
13435
|
y: 0,
|
|
13436
|
-
transition: e.kind === "seam" ?
|
|
13436
|
+
transition: e.kind === "seam" ? Co : e.kind === "instant" || e.kind === "under" ? { duration: 0 } : _k
|
|
13437
13437
|
}),
|
|
13438
13438
|
leaving: (e) => {
|
|
13439
13439
|
let t = e.leave?.() ?? e;
|
|
@@ -13452,7 +13452,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13452
13452
|
};
|
|
13453
13453
|
case "panel": return {
|
|
13454
13454
|
opacity: 0,
|
|
13455
|
-
transition:
|
|
13455
|
+
transition: ds
|
|
13456
13456
|
};
|
|
13457
13457
|
case "sheet":
|
|
13458
13458
|
case "fade": return {
|
|
@@ -13572,7 +13572,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13572
13572
|
"aria-label": e.title,
|
|
13573
13573
|
tabIndex: -1,
|
|
13574
13574
|
className: "h-full w-full",
|
|
13575
|
-
children: /* @__PURE__ */ Q(
|
|
13575
|
+
children: /* @__PURE__ */ Q(os, {
|
|
13576
13576
|
content: e,
|
|
13577
13577
|
onClose: s,
|
|
13578
13578
|
entities: t,
|
|
@@ -13589,7 +13589,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13589
13589
|
...Tk,
|
|
13590
13590
|
side: wk
|
|
13591
13591
|
}, Dk = () => {
|
|
13592
|
-
let e = nC(), t = Cb(), n =
|
|
13592
|
+
let e = nC(), t = Cb(), n = Ti(), { activeContent: r, present: i, clear: a, open: o, setOpen: s, layout: c, setLayout: l, contentSide: u, presentedWidth: d } = dr(), { currentPath: f } = Ln(), { hasPrimarySidebar: p } = gu(), m = p ? wk : u, h = p ? Ek : Tk, g = t ? e?.mode : void 0, _ = t ? e?.effectiveMode : void 0, v = e?.setMode, y = e?.setPanelSlot, b = e?.setPanelSlotWidth, x = r?.id === Ck, S = _ === "panel" || _ === "fullscreen", C = g === "panel" || g === "fullscreen";
|
|
13593
13593
|
K(function() {
|
|
13594
13594
|
if (y) return y(n ? m : null), () => y(null);
|
|
13595
13595
|
}, [
|
|
@@ -13663,7 +13663,7 @@ var ZO = ({ runtime: e, actions: t, actionOrder: n, defaultMode: r = "fullscreen
|
|
|
13663
13663
|
function Ak({ 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, navigationSurface: p }) {
|
|
13664
13664
|
let m = J(function() {
|
|
13665
13665
|
return [...o?.enabled ? [{
|
|
13666
|
-
...
|
|
13666
|
+
...ri,
|
|
13667
13667
|
side: s?.side ?? "right"
|
|
13668
13668
|
}] : [], ...s?.views ?? []];
|
|
13669
13669
|
}, [
|
|
@@ -13677,11 +13677,11 @@ function Ak({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, t
|
|
|
13677
13677
|
enabled: g,
|
|
13678
13678
|
hasSecondarySidebar: !!r,
|
|
13679
13679
|
topBarHeight: g && i ? Ik : 0,
|
|
13680
|
-
children: /* @__PURE__ */ Q(
|
|
13680
|
+
children: /* @__PURE__ */ Q(Lo.Provider, {
|
|
13681
13681
|
value: _,
|
|
13682
13682
|
children: /* @__PURE__ */ Q(nb.Provider, {
|
|
13683
13683
|
value: _ ? "compact" : "default",
|
|
13684
|
-
children: /* @__PURE__ */ Q(mu, { children: /* @__PURE__ */ Q(
|
|
13684
|
+
children: /* @__PURE__ */ Q(mu, { children: /* @__PURE__ */ Q(_a, {
|
|
13685
13685
|
views: m,
|
|
13686
13686
|
side: s?.side,
|
|
13687
13687
|
contentSide: h,
|
|
@@ -13711,7 +13711,7 @@ function Ak({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, t
|
|
|
13711
13711
|
});
|
|
13712
13712
|
}
|
|
13713
13713
|
function jk({ children: e, navigation: t, topBar: n, banner: r, ai: i, composer: a, reserveComposerSpace: o, composerHidden: s, onNavigationPointerEnter: c }) {
|
|
13714
|
-
let l = i?.enabled ?
|
|
13714
|
+
let l = i?.enabled ? Xi : Ju;
|
|
13715
13715
|
return /* @__PURE__ */ Q(l, {
|
|
13716
13716
|
...i?.enabled ? i : void 0,
|
|
13717
13717
|
children: /* @__PURE__ */ Q(Rk, {
|
|
@@ -13752,10 +13752,10 @@ function Fk(e) {
|
|
|
13752
13752
|
}
|
|
13753
13753
|
var Ik = 42, Lk = (e) => e ? { inert: "" } : {};
|
|
13754
13754
|
function Rk({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer: a, reserveComposerSpace: o, composerHidden: s = !1, onNavigationPointerEnter: c }) {
|
|
13755
|
-
let { sidebarState: l, toggleSidebar: u, isSmallScreen: d, setForceFloat: f, floatsWhenForced: p, hasPrimarySidebar: m } = gu(), h = lu(), g = h?.primarySidebarWidth ?? 0, _ =
|
|
13756
|
-
file:
|
|
13755
|
+
let { sidebarState: l, toggleSidebar: u, isSmallScreen: d, setForceFloat: f, floatsWhenForced: p, hasPrimarySidebar: m } = gu(), h = lu(), g = h?.primarySidebarWidth ?? 0, _ = rs(), v = Zn(), { hasAvailableView: y, open: b, layout: x, effectiveWidth: S, widthBounds: C, panelOverlays: w, setFrameWidth: T, resizable: E, side: D, activeContent: O, contentSide: k, restoringViewId: A, isResizing: j, width: M } = dr(), N = za(), { canvasContent: P, canvasEntities: F, dismissCanvas: I, isCanvasCovered: ee } = zr(), [te, ne] = X(!1), { takeCard: re } = yu(), ie = J(() => ({
|
|
13756
|
+
file: Aa,
|
|
13757
13757
|
...F
|
|
13758
|
-
}), [F]), ae = x === "fullscreen", oe = P !== null && !ee, se = E ? S : Math.min(
|
|
13758
|
+
}), [F]), ae = x === "fullscreen", oe = P !== null && !ee, se = E ? S : Math.min(Ca, C.max), ce = P?.coversChat === !0 ? 0 : se, le = D === "left", ue = k !== D, de = !!(O || A), fe = Y(de);
|
|
13759
13759
|
K(function() {
|
|
13760
13760
|
fe.current = de;
|
|
13761
13761
|
});
|
|
@@ -13777,7 +13777,7 @@ function Rk({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13777
13777
|
K(function() {
|
|
13778
13778
|
De.current = Ce, Oe.current = Te;
|
|
13779
13779
|
});
|
|
13780
|
-
let ke = sr(`(max-width: ${iu.lg}px)`, { initializeWithValue: !0 }), Ae = Y(null), je = h ? h.hasSecondarySidebar ? h.secondarySidebarWidth : 0 : ou.panel, Me = g + (l === "locked" ? je : 0), { width: Ne } = or(), Pe =
|
|
13780
|
+
let ke = sr(`(max-width: ${iu.lg}px)`, { initializeWithValue: !0 }), Ae = Y(null), je = h ? h.hasSecondarySidebar ? h.secondarySidebarWidth : 0 : ou.panel, Me = g + (l === "locked" ? je : 0), { width: Ne } = or(), Pe = so({
|
|
13781
13781
|
dockedLeft: Se,
|
|
13782
13782
|
narrowForLeftPanel: ke,
|
|
13783
13783
|
fit: N,
|
|
@@ -13810,17 +13810,17 @@ function Rk({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13810
13810
|
Ie,
|
|
13811
13811
|
Be
|
|
13812
13812
|
]);
|
|
13813
|
-
let Ue = j || ze || !!h?.isInstant, We =
|
|
13813
|
+
let Ue = j || ze || !!h?.isInstant, We = Qa(Ue, v), Ge = (e, t) => Ja(Ue, _e && e && t, v), Ke = v ? "instant" : w ? "sheet" : P?.coversChat === !0 ? "fade" : _e ? "under" : "seam", qe = v ? "instant" : Ce ? w ? "sheet" : ae ? "under" : "seam" : b ? "instant" : "panel", Je = b && ae, Ye = Ee && !w, Xe = {
|
|
13814
13814
|
left: Ye && Se ? se : 0,
|
|
13815
13815
|
right: Ye && !Se ? se : 0
|
|
13816
13816
|
}, Ze = Y(Xe);
|
|
13817
13817
|
Je || (Ze.current = Xe);
|
|
13818
|
-
let Qe = Je ? Ze.current : Xe, $e = !(Ue || _e || be) && !v, et = $e ?
|
|
13818
|
+
let Qe = Je ? Ze.current : Xe, $e = !(Ue || _e || be) && !v, et = $e ? ds : La, tt = Ee && Pe;
|
|
13819
13819
|
return q(function() {
|
|
13820
13820
|
f(tt);
|
|
13821
|
-
}, [tt, f]), Fk(tt), /* @__PURE__ */ Q(
|
|
13821
|
+
}, [tt, f]), Fk(tt), /* @__PURE__ */ Q(Yo.Provider, {
|
|
13822
13822
|
value: !!e?.enabled,
|
|
13823
|
-
children: /* @__PURE__ */ Q(
|
|
13823
|
+
children: /* @__PURE__ */ Q(Qr.Provider, {
|
|
13824
13824
|
value: te,
|
|
13825
13825
|
children: /* @__PURE__ */ Q(we, {
|
|
13826
13826
|
reducedMotion: v ? "always" : "never",
|
|
@@ -13878,7 +13878,7 @@ function Rk({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13878
13878
|
children: [
|
|
13879
13879
|
r ? /* @__PURE__ */ Q("div", {
|
|
13880
13880
|
...Lk(Ve),
|
|
13881
|
-
className: B("relative z-10 flex shrink-0 items-center pb-0.5 pr-4 pt-2", $e ? B("transition-[margin]",
|
|
13881
|
+
className: B("relative z-10 flex shrink-0 items-center pb-0.5 pr-4 pt-2", $e ? B("transition-[margin]", Bo) : "transition-none"),
|
|
13882
13882
|
style: { marginLeft: m ? g - Me : 0 },
|
|
13883
13883
|
children: r
|
|
13884
13884
|
}) : null,
|
|
@@ -13932,7 +13932,7 @@ function Rk({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13932
13932
|
width: Le,
|
|
13933
13933
|
left: e === "left" ? -Me : "auto"
|
|
13934
13934
|
} : {
|
|
13935
|
-
width:
|
|
13935
|
+
width: va({
|
|
13936
13936
|
coversFrame: w,
|
|
13937
13937
|
isFullscreen: ae,
|
|
13938
13938
|
isClosingFromFullscreen: be,
|
|
@@ -13944,7 +13944,7 @@ function Rk({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13944
13944
|
transition: Ge(n, r),
|
|
13945
13945
|
children: i
|
|
13946
13946
|
}, `panel-${e}`);
|
|
13947
|
-
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? n(D, !ue || !xe, De.current, /* @__PURE__ */ Q(
|
|
13947
|
+
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? n(D, !ue || !xe, De.current, /* @__PURE__ */ Q(hr, {})) : null, !e?.enabled || ue ? n(k, xe || !e?.enabled, Oe.current, /* @__PURE__ */ Q(eb, {})) : null] });
|
|
13948
13948
|
})() : null
|
|
13949
13949
|
]
|
|
13950
13950
|
})
|
|
@@ -14081,7 +14081,7 @@ var Hk = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
14081
14081
|
duration: .2
|
|
14082
14082
|
}
|
|
14083
14083
|
},
|
|
14084
|
-
children: [/* @__PURE__ */ Q(
|
|
14084
|
+
children: [/* @__PURE__ */ Q(_c, {
|
|
14085
14085
|
type: "rounded",
|
|
14086
14086
|
name: [e, t],
|
|
14087
14087
|
src: n,
|
|
@@ -14128,7 +14128,7 @@ var Hk = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
14128
14128
|
label: s.actions.add,
|
|
14129
14129
|
variant: "neutral",
|
|
14130
14130
|
size: "sm",
|
|
14131
|
-
icon:
|
|
14131
|
+
icon: Zr,
|
|
14132
14132
|
onClick: (e) => {
|
|
14133
14133
|
e.preventDefault(), e.stopPropagation(), o();
|
|
14134
14134
|
},
|
|
@@ -14167,7 +14167,7 @@ function Wk({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
14167
14167
|
variant: "ghost",
|
|
14168
14168
|
onClick: () => o(),
|
|
14169
14169
|
label: "Open main menu",
|
|
14170
|
-
icon:
|
|
14170
|
+
icon: Ni,
|
|
14171
14171
|
hideLabel: !0
|
|
14172
14172
|
}) : null,
|
|
14173
14173
|
/* @__PURE__ */ $("div", {
|
|
@@ -14178,7 +14178,7 @@ function Wk({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
14178
14178
|
lastName: t.employeeLastName,
|
|
14179
14179
|
pulse: t.pulse,
|
|
14180
14180
|
onPulseClick: t.onPulseClick
|
|
14181
|
-
}) : /* @__PURE__ */ Q(
|
|
14181
|
+
}) : /* @__PURE__ */ Q(fc, {
|
|
14182
14182
|
src: t.employeeAvatar,
|
|
14183
14183
|
firstName: t.employeeFirstName,
|
|
14184
14184
|
lastName: t.employeeLastName,
|
|
@@ -14195,7 +14195,7 @@ function Wk({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
14195
14195
|
})]
|
|
14196
14196
|
})
|
|
14197
14197
|
]
|
|
14198
|
-
}), /* @__PURE__ */ Q("div", { children: i ? null : /* @__PURE__ */ Q(
|
|
14198
|
+
}), /* @__PURE__ */ Q("div", { children: i ? null : /* @__PURE__ */ Q(ro, {}) })]
|
|
14199
14199
|
}) : null,
|
|
14200
14200
|
/* @__PURE__ */ Q("div", {
|
|
14201
14201
|
className: B("isolate flex w-full flex-1 flex-col overflow-y-auto overflow-x-hidden [&>*]:flex-1", s && "-mt-3"),
|
|
@@ -14205,12 +14205,12 @@ function Wk({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
14205
14205
|
});
|
|
14206
14206
|
}
|
|
14207
14207
|
Wk.displayName = "DaytimePage";
|
|
14208
|
-
var Gk = bn(Tn("DaytimePage", Wk)), Kk = Qu(({ className: e, items: t }, n) => /* @__PURE__ */ Q(
|
|
14208
|
+
var Gk = bn(Tn("DaytimePage", Wk)), Kk = Qu(({ className: e, items: t }, n) => /* @__PURE__ */ Q(Qi, {
|
|
14209
14209
|
ref: n,
|
|
14210
14210
|
className: e,
|
|
14211
14211
|
children: /* @__PURE__ */ $("div", {
|
|
14212
14212
|
className: "flex items-center",
|
|
14213
|
-
children: [/* @__PURE__ */ Q(
|
|
14213
|
+
children: [/* @__PURE__ */ Q(li, {}), /* @__PURE__ */ Q(is, {
|
|
14214
14214
|
items: t,
|
|
14215
14215
|
children: /* @__PURE__ */ Q("button", {
|
|
14216
14216
|
className: "rounded-sm px-1.5 py-0.5 font-medium text-f1-foreground no-underline transition-colors hover:bg-f1-background-secondary",
|
|
@@ -14295,10 +14295,10 @@ function eA({ breadcrumbs: e, append: t, compact: n = !1 }) {
|
|
|
14295
14295
|
e,
|
|
14296
14296
|
t,
|
|
14297
14297
|
n
|
|
14298
|
-
]), !e.length || o && !o.headItem ? /* @__PURE__ */ Q(
|
|
14298
|
+
]), !e.length || o && !o.headItem ? /* @__PURE__ */ Q(gr, {
|
|
14299
14299
|
ref: r,
|
|
14300
14300
|
className: "w-full"
|
|
14301
|
-
}) : /* @__PURE__ */ $(
|
|
14301
|
+
}) : /* @__PURE__ */ $(gr, {
|
|
14302
14302
|
ref: r,
|
|
14303
14303
|
className: "w-full overflow-x-hidden",
|
|
14304
14304
|
style: { minWidth: o?.minWidth },
|
|
@@ -14306,37 +14306,37 @@ function eA({ breadcrumbs: e, append: t, compact: n = !1 }) {
|
|
|
14306
14306
|
className: "invisible absolute -left-full",
|
|
14307
14307
|
"aria-hidden": "true",
|
|
14308
14308
|
ref: i,
|
|
14309
|
-
children: e.map((r, i) => /* @__PURE__ */ Q(
|
|
14309
|
+
children: e.map((r, i) => /* @__PURE__ */ Q(uo, {
|
|
14310
14310
|
compact: n,
|
|
14311
14311
|
item: r,
|
|
14312
14312
|
isLast: i === e.length - 1,
|
|
14313
14313
|
isFirst: i === 0,
|
|
14314
14314
|
children: i === e.length - 1 ? t : void 0
|
|
14315
|
-
},
|
|
14316
|
-
}), o && o.headItem ? /* @__PURE__ */ $(
|
|
14317
|
-
/* @__PURE__ */ Q(
|
|
14315
|
+
}, na(r)))
|
|
14316
|
+
}), o && o.headItem ? /* @__PURE__ */ $(Vr, { children: [
|
|
14317
|
+
/* @__PURE__ */ Q(uo, {
|
|
14318
14318
|
compact: n,
|
|
14319
14319
|
isOnly: o.isOnly,
|
|
14320
14320
|
isFirst: !0,
|
|
14321
14321
|
item: o.headItem,
|
|
14322
14322
|
isLast: !1
|
|
14323
|
-
}, `first-item-${
|
|
14324
|
-
c ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(Kk, { items: o.collapsedItems }, "collapsed-items"), o.tailItems.map((e, r) => /* @__PURE__ */ Q(
|
|
14323
|
+
}, `first-item-${na(o.headItem)}`),
|
|
14324
|
+
c ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(Kk, { items: o.collapsedItems }, "collapsed-items"), o.tailItems.map((e, r) => /* @__PURE__ */ Q(uo, {
|
|
14325
14325
|
compact: n,
|
|
14326
14326
|
item: e,
|
|
14327
14327
|
isLast: r === o.tailItems.length - 1,
|
|
14328
14328
|
isFirst: !1,
|
|
14329
14329
|
children: r === o.tailItems.length - 1 ? t : void 0
|
|
14330
|
-
},
|
|
14331
|
-
c ? null : /* @__PURE__ */ Q(Z, { children: o.tailItems.map((e, r) => /* @__PURE__ */ Q(
|
|
14330
|
+
}, na(e)))] }) : null,
|
|
14331
|
+
c ? null : /* @__PURE__ */ Q(Z, { children: o.tailItems.map((e, r) => /* @__PURE__ */ Q(uo, {
|
|
14332
14332
|
compact: n,
|
|
14333
14333
|
item: e,
|
|
14334
14334
|
isLast: r === o.tailItems.length - 1,
|
|
14335
14335
|
isFirst: !1,
|
|
14336
14336
|
children: r === o.tailItems.length - 1 ? t : void 0
|
|
14337
|
-
},
|
|
14337
|
+
}, na(e))) })
|
|
14338
14338
|
] }) : null]
|
|
14339
|
-
}, `breadcrumb-${
|
|
14339
|
+
}, `breadcrumb-${na(e.at(-1)) ?? 0}`);
|
|
14340
14340
|
}
|
|
14341
14341
|
//#endregion
|
|
14342
14342
|
//#region src/blocks/Header/PageHeader/PageHeaderNavigationContext.ts
|
|
@@ -14407,7 +14407,7 @@ var aA = rr.create(U), oA = {
|
|
|
14407
14407
|
"aria-label": n,
|
|
14408
14408
|
children: e ? /* @__PURE__ */ Q(aA, {
|
|
14409
14409
|
size: "sm",
|
|
14410
|
-
icon:
|
|
14410
|
+
icon: Us,
|
|
14411
14411
|
className: "text-[hsl(var(--promote-50))] outline-none",
|
|
14412
14412
|
variants: oA,
|
|
14413
14413
|
initial: r ? "enterFromUnfavorite" : "initial",
|
|
@@ -14425,7 +14425,7 @@ var aA = rr.create(U), oA = {
|
|
|
14425
14425
|
}, "favorite") : /* @__PURE__ */ Q(aA, {
|
|
14426
14426
|
size: "sm",
|
|
14427
14427
|
whileTap: { scale: .8 },
|
|
14428
|
-
icon:
|
|
14428
|
+
icon: yr,
|
|
14429
14429
|
className: "outline-none",
|
|
14430
14430
|
variants: oA,
|
|
14431
14431
|
initial: r ? "enterFromFavorite" : "initial",
|
|
@@ -14486,13 +14486,13 @@ var aA = rr.create(U), oA = {
|
|
|
14486
14486
|
};
|
|
14487
14487
|
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(V, {
|
|
14488
14488
|
variant: "ghost",
|
|
14489
|
-
icon:
|
|
14489
|
+
icon: xr,
|
|
14490
14490
|
hideLabel: !0,
|
|
14491
14491
|
label: t,
|
|
14492
14492
|
pressed: p,
|
|
14493
14493
|
onClick: () => y(!0),
|
|
14494
14494
|
append: d && /* @__PURE__ */ Q(bA, { className: "absolute -right-0.5 -top-[1px]" })
|
|
14495
|
-
}), /* @__PURE__ */ Q(
|
|
14495
|
+
}), /* @__PURE__ */ Q(vs, {
|
|
14496
14496
|
isOpen: p,
|
|
14497
14497
|
onClose: () => y(!1),
|
|
14498
14498
|
position: "center",
|
|
@@ -14578,7 +14578,7 @@ var aA = rr.create(U), oA = {
|
|
|
14578
14578
|
}, pA = ({ content: e }) => /* @__PURE__ */ $("div", {
|
|
14579
14579
|
className: "flex flex-row items-center gap-2",
|
|
14580
14580
|
children: [/* @__PURE__ */ Q(U, {
|
|
14581
|
-
icon:
|
|
14581
|
+
icon: xr,
|
|
14582
14582
|
size: "sm",
|
|
14583
14583
|
className: "text-f1-icon-secondary"
|
|
14584
14584
|
}), /* @__PURE__ */ Q(g, {
|
|
@@ -14589,7 +14589,7 @@ var aA = rr.create(U), oA = {
|
|
|
14589
14589
|
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",
|
|
14590
14590
|
children: /* @__PURE__ */ Q(H, {
|
|
14591
14591
|
variant: "outline",
|
|
14592
|
-
icon:
|
|
14592
|
+
icon: xr,
|
|
14593
14593
|
label: e,
|
|
14594
14594
|
href: t,
|
|
14595
14595
|
onClick: n
|
|
@@ -14663,7 +14663,7 @@ var aA = rr.create(U), oA = {
|
|
|
14663
14663
|
title: e,
|
|
14664
14664
|
description: r,
|
|
14665
14665
|
icon: /* @__PURE__ */ Q(U, {
|
|
14666
|
-
icon:
|
|
14666
|
+
icon: xr,
|
|
14667
14667
|
size: "lg",
|
|
14668
14668
|
className: "block"
|
|
14669
14669
|
}),
|
|
@@ -14729,7 +14729,7 @@ var aA = rr.create(U), oA = {
|
|
|
14729
14729
|
className: "relative z-10 h-6 w-6",
|
|
14730
14730
|
children: /* @__PURE__ */ Q(H, {
|
|
14731
14731
|
variant: "ghost",
|
|
14732
|
-
icon:
|
|
14732
|
+
icon: xo,
|
|
14733
14733
|
size: "sm",
|
|
14734
14734
|
hideLabel: !0,
|
|
14735
14735
|
onClick: () => {
|
|
@@ -14785,7 +14785,7 @@ function SA({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14785
14785
|
hideLabel: !0,
|
|
14786
14786
|
onClick: () => f(),
|
|
14787
14787
|
label: "Open main menu",
|
|
14788
|
-
icon:
|
|
14788
|
+
icon: Ni
|
|
14789
14789
|
})
|
|
14790
14790
|
})
|
|
14791
14791
|
}, "menu") : null }),
|
|
@@ -14830,7 +14830,7 @@ function SA({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14830
14830
|
variant: t.variant
|
|
14831
14831
|
}) }) : null,
|
|
14832
14832
|
!i && v && (g || b || x) ? /* @__PURE__ */ Q("div", { className: "h-4 w-px bg-f1-border-secondary" }) : null,
|
|
14833
|
-
g ? /* @__PURE__ */ Q(
|
|
14833
|
+
g ? /* @__PURE__ */ Q(pr, { ...g }) : null,
|
|
14834
14834
|
g && b ? /* @__PURE__ */ Q("div", { className: "h-4 w-px bg-f1-border-secondary" }) : null,
|
|
14835
14835
|
x || b ? /* @__PURE__ */ $("div", {
|
|
14836
14836
|
className: "flex items-center gap-0",
|
|
@@ -14847,7 +14847,7 @@ function SA({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14847
14847
|
}) : null,
|
|
14848
14848
|
/* @__PURE__ */ Q("div", {
|
|
14849
14849
|
className: "flex items-center gap-3",
|
|
14850
|
-
children: u ? null : /* @__PURE__ */ Q(
|
|
14850
|
+
children: u ? null : /* @__PURE__ */ Q(ro, {
|
|
14851
14851
|
tooltip: c,
|
|
14852
14852
|
autoOpen: l
|
|
14853
14853
|
})
|
|
@@ -14858,7 +14858,7 @@ function SA({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14858
14858
|
}
|
|
14859
14859
|
function CA({ action: e }) {
|
|
14860
14860
|
let t = Y(null), [n, r] = X(!1), i = "ghost";
|
|
14861
|
-
return "actions" in e ? /* @__PURE__ */ Q(
|
|
14861
|
+
return "actions" in e ? /* @__PURE__ */ Q(ti, {
|
|
14862
14862
|
items: e.actions,
|
|
14863
14863
|
open: n,
|
|
14864
14864
|
onOpenChange: r,
|
|
@@ -14911,13 +14911,13 @@ function TA({ label: e, options: t, hasNewUpdate: n }) {
|
|
|
14911
14911
|
bottom: "calc(8px + env(safe-area-inset-bottom))",
|
|
14912
14912
|
right: "calc(8px + env(safe-area-inset-right))"
|
|
14913
14913
|
},
|
|
14914
|
-
children: /* @__PURE__ */ Q(
|
|
14914
|
+
children: /* @__PURE__ */ Q(ti, {
|
|
14915
14915
|
items: wA(t),
|
|
14916
14916
|
children: /* @__PURE__ */ $("button", {
|
|
14917
14917
|
className: B("relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all", En()),
|
|
14918
14918
|
"aria-label": e,
|
|
14919
14919
|
children: [/* @__PURE__ */ Q(U, {
|
|
14920
|
-
icon:
|
|
14920
|
+
icon: la,
|
|
14921
14921
|
size: "sm"
|
|
14922
14922
|
}), 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]
|
|
14923
14923
|
})
|
|
@@ -15034,7 +15034,7 @@ var WA = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
15034
15034
|
}, YA = ({ isOpen: e, css: t, instant: n }) => t ? /* @__PURE__ */ Q("div", {
|
|
15035
15035
|
className: B("flex h-3 w-3 items-center justify-center transition-transform duration-100 motion-reduce:transition-none", !e && "-rotate-90"),
|
|
15036
15036
|
children: /* @__PURE__ */ Q(U, {
|
|
15037
|
-
icon:
|
|
15037
|
+
icon: Qs,
|
|
15038
15038
|
size: "xs"
|
|
15039
15039
|
})
|
|
15040
15040
|
}) : /* @__PURE__ */ Q(rr.div, {
|
|
@@ -15043,7 +15043,7 @@ var WA = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
15043
15043
|
transition: { duration: n ? 0 : .1 },
|
|
15044
15044
|
className: "flex h-3 w-3 items-center justify-center",
|
|
15045
15045
|
children: /* @__PURE__ */ Q(U, {
|
|
15046
|
-
icon:
|
|
15046
|
+
icon: Qs,
|
|
15047
15047
|
size: "xs"
|
|
15048
15048
|
})
|
|
15049
15049
|
}), XA = ({ isOpen: e, css: t, instant: n, children: r }) => t ? /* @__PURE__ */ Q("div", {
|
|
@@ -15076,10 +15076,10 @@ var WA = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
15076
15076
|
children: r
|
|
15077
15077
|
})
|
|
15078
15078
|
}), ZA = ({ title: e, isOpen: t = !0, isRoot: n, onCollapse: r, children: i, highlightWhenCollapsed: a, collapsedBadge: o, action: s, headerAccessory: c, isDragging: l, wasDragging: u }) => {
|
|
15079
|
-
let d =
|
|
15079
|
+
let d = Xo() === "two-level", [f, p] = X(t), m = Zn(), h = a && !f;
|
|
15080
15080
|
return /* @__PURE__ */ Q("div", {
|
|
15081
15081
|
"data-sidebar-collapsible-open": f,
|
|
15082
|
-
children: /* @__PURE__ */ $(
|
|
15082
|
+
children: /* @__PURE__ */ $(Po, {
|
|
15083
15083
|
open: f,
|
|
15084
15084
|
children: [/* @__PURE__ */ $("div", {
|
|
15085
15085
|
className: "group/section group relative flex items-center",
|
|
@@ -15122,7 +15122,7 @@ var WA = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
15122
15122
|
}
|
|
15123
15123
|
}) : null]
|
|
15124
15124
|
}) : null]
|
|
15125
|
-
}), /* @__PURE__ */ Q(
|
|
15125
|
+
}), /* @__PURE__ */ Q(ts, {
|
|
15126
15126
|
forceMount: !0,
|
|
15127
15127
|
className: "mt-0.5 flex flex-col gap-1",
|
|
15128
15128
|
children: /* @__PURE__ */ Q(XA, {
|
|
@@ -15148,7 +15148,7 @@ var WA = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
15148
15148
|
}), rj = Zu(null), ij = () => nd(rj), aj = ({ value: e, onChange: t, placeholder: n }) => /* @__PURE__ */ $("div", {
|
|
15149
15149
|
className: B("flex w-full -mt-px items-center gap-1 rounded bg-f1-background-inverse-secondary p-1.5 text-f1-foreground-secondary ring-1 ring-inset ring-f1-border-secondary transition-colors hover:ring-f1-border-hover dark:bg-f1-background-tertiary", "focus-within:outline-none focus-within:ring-f1-special-ring"),
|
|
15150
15150
|
children: [/* @__PURE__ */ Q(U, {
|
|
15151
|
-
icon:
|
|
15151
|
+
icon: $s,
|
|
15152
15152
|
size: "md"
|
|
15153
15153
|
}), /* @__PURE__ */ Q("input", {
|
|
15154
15154
|
type: "search",
|
|
@@ -15359,7 +15359,7 @@ var WA = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
15359
15359
|
prop: r,
|
|
15360
15360
|
defaultProp: "",
|
|
15361
15361
|
onChange: i
|
|
15362
|
-
}), h = ej() === "scrolls-itself", g =
|
|
15362
|
+
}), h = ej() === "scrolls-itself", g = Xo() === "classic", [_, v] = cr({ threshold: 1 }), [y, b] = cr({ threshold: 1 }), x = n !== void 0 && p.trim().length > 0, S = x ? void 0 : t, C = e.some((e) => e.items.length > 0), w = s && !C, T = e.map((e) => ({
|
|
15363
15363
|
...e,
|
|
15364
15364
|
items: x ? e.items.filter((e) => KA(p, e.searchText ?? "")) : e.items.filter((e) => !e.hiddenUnlessSearching)
|
|
15365
15365
|
})).filter((e) => e.items.length > 0 || !x && C && e.keepWhenEmpty === !0), E = x ? a.filter((e) => e.items.length > 0 || (e.status ?? "idle") !== "idle") : [], D = !w && !C && !(x && a.length > 0) && l != null && typeof l != "boolean" && l !== "", O = w || T.length > 0 || D, k = x && (C || a.length > 0) && T.length === 0 && E.length === 0, A = /* @__PURE__ */ $(Z, { children: [
|
|
@@ -15693,7 +15693,7 @@ var xj = (e) => e.type === "sidebar-chat", Sj = (e) => e.type === "sidebar-group
|
|
|
15693
15693
|
let { organize: i, groups: a, openDialog: o, announce: s } = n, c = [];
|
|
15694
15694
|
e.onTogglePin && c.push({
|
|
15695
15695
|
label: e.pinned ? r.chat.unpin : r.chat.pin,
|
|
15696
|
-
icon: e.pinned ?
|
|
15696
|
+
icon: e.pinned ? ga : wi,
|
|
15697
15697
|
onClick: e.onTogglePin
|
|
15698
15698
|
});
|
|
15699
15699
|
for (let t of i.chatMenuItems?.(e) ?? []) c.push(t);
|
|
@@ -15729,7 +15729,7 @@ var xj = (e) => e.type === "sidebar-chat", Sj = (e) => e.type === "sidebar-group
|
|
|
15729
15729
|
let n = i.onRemoveChat;
|
|
15730
15730
|
c.push({ type: "separator" }, {
|
|
15731
15731
|
label: r.t("chat.organize.removeFrom", { section: u.title }),
|
|
15732
|
-
icon:
|
|
15732
|
+
icon: cs,
|
|
15733
15733
|
onClick: () => {
|
|
15734
15734
|
n({
|
|
15735
15735
|
chatId: e.id,
|
|
@@ -15769,7 +15769,7 @@ var xj = (e) => e.type === "sidebar-chat", Sj = (e) => e.type === "sidebar-group
|
|
|
15769
15769
|
groupId: t,
|
|
15770
15770
|
context: i,
|
|
15771
15771
|
i18n: r
|
|
15772
|
-
}), p = f.length > 0, m = p ? /* @__PURE__ */ Q(
|
|
15772
|
+
}), p = f.length > 0, m = p ? /* @__PURE__ */ Q(ti, {
|
|
15773
15773
|
items: f,
|
|
15774
15774
|
open: u,
|
|
15775
15775
|
onOpenChange: d,
|
|
@@ -15801,7 +15801,7 @@ var xj = (e) => e.type === "sidebar-chat", Sj = (e) => e.type === "sidebar-group
|
|
|
15801
15801
|
r && (n.onMoveGroup(r), a(t.t("chat.organize.sectionMoved", { section: e.title })));
|
|
15802
15802
|
}, f = [...u ? [{
|
|
15803
15803
|
label: t.chat.organize.rename,
|
|
15804
|
-
icon:
|
|
15804
|
+
icon: ic,
|
|
15805
15805
|
onClick: () => i({
|
|
15806
15806
|
kind: "rename",
|
|
15807
15807
|
group: e
|
|
@@ -15817,7 +15817,7 @@ var xj = (e) => e.type === "sidebar-chat", Sj = (e) => e.type === "sidebar-group
|
|
|
15817
15817
|
disabled: l === null,
|
|
15818
15818
|
onClick: () => d(l)
|
|
15819
15819
|
}] : []];
|
|
15820
|
-
return /* @__PURE__ */ Q(
|
|
15820
|
+
return /* @__PURE__ */ Q(ti, {
|
|
15821
15821
|
items: f,
|
|
15822
15822
|
open: o,
|
|
15823
15823
|
onOpenChange: s,
|
|
@@ -15841,7 +15841,7 @@ var xj = (e) => e.type === "sidebar-chat", Sj = (e) => e.type === "sidebar-group
|
|
|
15841
15841
|
let r = R(), [i, a] = X(e.kind === "rename" ? e.group.title : ""), o = i.trim(), s = () => {
|
|
15842
15842
|
o && (n(o), t());
|
|
15843
15843
|
};
|
|
15844
|
-
return /* @__PURE__ */ Q(
|
|
15844
|
+
return /* @__PURE__ */ Q(vs, {
|
|
15845
15845
|
isOpen: !0,
|
|
15846
15846
|
onClose: t,
|
|
15847
15847
|
position: "center",
|
|
@@ -15860,7 +15860,7 @@ var xj = (e) => e.type === "sidebar-chat", Sj = (e) => e.type === "sidebar-group
|
|
|
15860
15860
|
onSubmit: (e) => {
|
|
15861
15861
|
e.preventDefault(), s();
|
|
15862
15862
|
},
|
|
15863
|
-
children: /* @__PURE__ */ Q(
|
|
15863
|
+
children: /* @__PURE__ */ Q(Na, {
|
|
15864
15864
|
label: r.chat.organize.nameLabel,
|
|
15865
15865
|
placeholder: r.chat.organize.namePlaceholder,
|
|
15866
15866
|
value: i,
|
|
@@ -15921,7 +15921,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
15921
15921
|
avatar: e
|
|
15922
15922
|
} : t && !e.src ? {
|
|
15923
15923
|
kind: "icon",
|
|
15924
|
-
icon:
|
|
15924
|
+
icon: xr
|
|
15925
15925
|
} : {
|
|
15926
15926
|
kind: "avatar",
|
|
15927
15927
|
avatar: {
|
|
@@ -15994,7 +15994,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
15994
15994
|
icon: l.icon,
|
|
15995
15995
|
size: "md"
|
|
15996
15996
|
})
|
|
15997
|
-
}) : l?.kind === "avatar" ? /* @__PURE__ */ Q(
|
|
15997
|
+
}) : l?.kind === "avatar" ? /* @__PURE__ */ Q(hc, {
|
|
15998
15998
|
size: "xs",
|
|
15999
15999
|
avatar: l.avatar
|
|
16000
16000
|
}) : null, o ? /* @__PURE__ */ Q(tM, {
|
|
@@ -16059,7 +16059,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
16059
16059
|
size: "sm",
|
|
16060
16060
|
hideLabel: !0,
|
|
16061
16061
|
label: e.pinned ? i.chat.unpin : i.chat.pin,
|
|
16062
|
-
icon: e.pinned ?
|
|
16062
|
+
icon: e.pinned ? ga : wi,
|
|
16063
16063
|
onClick: (t) => {
|
|
16064
16064
|
t.stopPropagation(), e.onTogglePin?.();
|
|
16065
16065
|
}
|
|
@@ -16272,7 +16272,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
16272
16272
|
size: "md"
|
|
16273
16273
|
})
|
|
16274
16274
|
});
|
|
16275
|
-
case "avatar": return /* @__PURE__ */ Q(
|
|
16275
|
+
case "avatar": return /* @__PURE__ */ Q(hc, {
|
|
16276
16276
|
size: "sm",
|
|
16277
16277
|
avatar: t.avatar
|
|
16278
16278
|
});
|
|
@@ -16325,7 +16325,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
16325
16325
|
className: B("flex items-end gap-1", e.isMine ? "justify-end" : "justify-start"),
|
|
16326
16326
|
children: [!e.isMine && n ? /* @__PURE__ */ Q("span", {
|
|
16327
16327
|
className: "flex size-5 shrink-0 items-end",
|
|
16328
|
-
children: t && e.authorAvatar ? /* @__PURE__ */ Q(
|
|
16328
|
+
children: t && e.authorAvatar ? /* @__PURE__ */ Q(hc, {
|
|
16329
16329
|
size: "xs",
|
|
16330
16330
|
avatar: e.authorAvatar
|
|
16331
16331
|
}) : null
|
|
@@ -16381,7 +16381,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
16381
16381
|
children: /* @__PURE__ */ Q("span", {
|
|
16382
16382
|
className: "flex size-7 items-center justify-center rounded-full bg-f1-background-inverse/60 text-f1-foreground-inverse",
|
|
16383
16383
|
children: /* @__PURE__ */ Q(Ks, {
|
|
16384
|
-
icon:
|
|
16384
|
+
icon: Hi,
|
|
16385
16385
|
size: "sm"
|
|
16386
16386
|
})
|
|
16387
16387
|
})
|
|
@@ -16398,7 +16398,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
16398
16398
|
switch (e.kind) {
|
|
16399
16399
|
case "file": return /* @__PURE__ */ $("span", {
|
|
16400
16400
|
className: "flex w-56 max-w-full items-center gap-2 rounded-lg bg-f1-background/70 p-1.5",
|
|
16401
|
-
children: [/* @__PURE__ */ Q(
|
|
16401
|
+
children: [/* @__PURE__ */ Q(dc, {
|
|
16402
16402
|
size: "sm",
|
|
16403
16403
|
file: {
|
|
16404
16404
|
name: e.name,
|
|
@@ -16411,21 +16411,21 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
16411
16411
|
children: e.name
|
|
16412
16412
|
}), e.size === void 0 ? null : /* @__PURE__ */ Q("span", {
|
|
16413
16413
|
className: "text-xs text-f1-foreground-secondary",
|
|
16414
|
-
children:
|
|
16414
|
+
children: Ms(e.size)
|
|
16415
16415
|
})]
|
|
16416
16416
|
})]
|
|
16417
16417
|
});
|
|
16418
16418
|
case "voice": return /* @__PURE__ */ $("span", {
|
|
16419
16419
|
className: "flex items-center gap-1.5 text-sm",
|
|
16420
16420
|
children: [/* @__PURE__ */ Q(Ks, {
|
|
16421
|
-
icon:
|
|
16421
|
+
icon: Da,
|
|
16422
16422
|
size: "sm"
|
|
16423
16423
|
}), e.durationSeconds === void 0 ? t.chat.voiceNote : `${t.chat.voiceNote} · ${SM(e.durationSeconds)}`]
|
|
16424
16424
|
});
|
|
16425
16425
|
case "location": return /* @__PURE__ */ $("span", {
|
|
16426
16426
|
className: "flex min-w-0 items-center gap-1.5 text-sm",
|
|
16427
16427
|
children: [/* @__PURE__ */ Q(Ks, {
|
|
16428
|
-
icon:
|
|
16428
|
+
icon: ss,
|
|
16429
16429
|
size: "sm"
|
|
16430
16430
|
}), /* @__PURE__ */ Q("span", {
|
|
16431
16431
|
className: "truncate",
|
|
@@ -16496,7 +16496,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
16496
16496
|
className: B("flex w-full items-center gap-2 rounded py-1.5 pl-1.5 pr-2 text-left transition-colors", En("focus-visible:ring-inset"), e.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer hover:bg-f1-background-secondary"),
|
|
16497
16497
|
children: [e.avatar ? /* @__PURE__ */ Q("span", {
|
|
16498
16498
|
className: "flex shrink-0 items-center self-start pt-0.5",
|
|
16499
|
-
children: /* @__PURE__ */ Q(
|
|
16499
|
+
children: /* @__PURE__ */ Q(hc, {
|
|
16500
16500
|
size: "xs",
|
|
16501
16501
|
avatar: e.avatar
|
|
16502
16502
|
})
|
|
@@ -16709,7 +16709,7 @@ var Jj = bn(qj), Yj = (e, t) => e.type === "emoji" ? {
|
|
|
16709
16709
|
}), /* @__PURE__ */ $("span", {
|
|
16710
16710
|
className: "flex items-center gap-px text-sm tabular-nums",
|
|
16711
16711
|
children: [e ? null : t, /* @__PURE__ */ Q(U, {
|
|
16712
|
-
icon: e ? Mc :
|
|
16712
|
+
icon: e ? Mc : Qs,
|
|
16713
16713
|
size: "sm"
|
|
16714
16714
|
})]
|
|
16715
16715
|
})]
|
|
@@ -17176,7 +17176,7 @@ var $M = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
17176
17176
|
a,
|
|
17177
17177
|
n,
|
|
17178
17178
|
t.id
|
|
17179
|
-
]), d = /* @__PURE__ */ Q(
|
|
17179
|
+
]), d = /* @__PURE__ */ Q(ti, {
|
|
17180
17180
|
items: u,
|
|
17181
17181
|
label: a.navigation.sidebar.companySelector.label,
|
|
17182
17182
|
side: "right",
|
|
@@ -17242,7 +17242,7 @@ var $M = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
17242
17242
|
transition: { duration: .2 },
|
|
17243
17243
|
className: "flex h-3 w-3 shrink-0 items-center justify-center text-f1-icon-bold",
|
|
17244
17244
|
children: /* @__PURE__ */ Q(U, {
|
|
17245
|
-
icon:
|
|
17245
|
+
icon: Qs,
|
|
17246
17246
|
size: "xs"
|
|
17247
17247
|
})
|
|
17248
17248
|
})
|
|
@@ -17250,12 +17250,12 @@ var $M = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
17250
17250
|
})]
|
|
17251
17251
|
})
|
|
17252
17252
|
});
|
|
17253
|
-
}, tN = ({ company: e, withNotification: t = !1, size: n = "sm" }) => /* @__PURE__ */ Q(
|
|
17253
|
+
}, tN = ({ company: e, withNotification: t = !1, size: n = "sm" }) => /* @__PURE__ */ Q(Xs, {
|
|
17254
17254
|
name: e?.name?.[0],
|
|
17255
17255
|
src: e?.logo,
|
|
17256
17256
|
size: n,
|
|
17257
17257
|
badge: t ? {
|
|
17258
|
-
icon:
|
|
17258
|
+
icon: Ya,
|
|
17259
17259
|
type: "highlight"
|
|
17260
17260
|
} : void 0
|
|
17261
17261
|
}), nN = ({ company: e, withNotification: t = !1 }) => /* @__PURE__ */ $("div", {
|
|
@@ -17283,7 +17283,7 @@ function rN({ user: e, profile: t, options: n, onDropdownClick: r, compact: i =
|
|
|
17283
17283
|
}] : [], ...n], d = /* @__PURE__ */ Q(W, {
|
|
17284
17284
|
minWidth: "0",
|
|
17285
17285
|
onPointerMove: Su,
|
|
17286
|
-
children: /* @__PURE__ */ Q(
|
|
17286
|
+
children: /* @__PURE__ */ Q(is, {
|
|
17287
17287
|
items: u,
|
|
17288
17288
|
side: i ? "right" : void 0,
|
|
17289
17289
|
align: i ? "end" : "start",
|
|
@@ -17302,14 +17302,14 @@ function rN({ user: e, profile: t, options: n, onDropdownClick: r, compact: i =
|
|
|
17302
17302
|
focused: o,
|
|
17303
17303
|
children: /* @__PURE__ */ Q("span", {
|
|
17304
17304
|
className: B("flex size-full items-center justify-center", GM),
|
|
17305
|
-
children: /* @__PURE__ */ Q(
|
|
17305
|
+
children: /* @__PURE__ */ Q(fc, {
|
|
17306
17306
|
src: e.avatarUrl,
|
|
17307
17307
|
firstName: e.firstName,
|
|
17308
17308
|
lastName: e.lastName,
|
|
17309
17309
|
size: "sm"
|
|
17310
17310
|
})
|
|
17311
17311
|
})
|
|
17312
|
-
}) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(
|
|
17312
|
+
}) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(fc, {
|
|
17313
17313
|
src: e.avatarUrl,
|
|
17314
17314
|
firstName: e.firstName,
|
|
17315
17315
|
lastName: e.lastName,
|
|
@@ -17354,17 +17354,17 @@ function iN({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
17354
17354
|
children: /* @__PURE__ */ $("div", {
|
|
17355
17355
|
className: "relative",
|
|
17356
17356
|
children: [/* @__PURE__ */ Q(H, {
|
|
17357
|
-
icon:
|
|
17357
|
+
icon: vi,
|
|
17358
17358
|
label: c.notifications,
|
|
17359
17359
|
onClick: i,
|
|
17360
17360
|
variant: "ghost",
|
|
17361
17361
|
hideLabel: !0
|
|
17362
17362
|
}), o ? /* @__PURE__ */ Q("div", {
|
|
17363
17363
|
className: "absolute -right-1 -top-1 rounded-full bg-f1-background",
|
|
17364
|
-
children: /* @__PURE__ */ Q(
|
|
17364
|
+
children: /* @__PURE__ */ Q(nc, {
|
|
17365
17365
|
type: "highlight",
|
|
17366
17366
|
size: "sm",
|
|
17367
|
-
icon:
|
|
17367
|
+
icon: Ya
|
|
17368
17368
|
})
|
|
17369
17369
|
}) : null]
|
|
17370
17370
|
})
|
|
@@ -17373,7 +17373,7 @@ function iN({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
17373
17373
|
});
|
|
17374
17374
|
}
|
|
17375
17375
|
function aN({ action: e }) {
|
|
17376
|
-
return e.items ? /* @__PURE__ */ Q(
|
|
17376
|
+
return e.items ? /* @__PURE__ */ Q(ti, {
|
|
17377
17377
|
modal: !1,
|
|
17378
17378
|
items: e.items,
|
|
17379
17379
|
open: e.open,
|
|
@@ -17454,7 +17454,7 @@ function uN(e) {
|
|
|
17454
17454
|
//#endregion
|
|
17455
17455
|
//#region src/blocks/Navigation/Sidebar/Menu/Menu.tsx
|
|
17456
17456
|
var dN = ({ item: e, active: t }) => {
|
|
17457
|
-
let n =
|
|
17457
|
+
let n = Xo() === "two-level";
|
|
17458
17458
|
return /* @__PURE__ */ $("div", {
|
|
17459
17459
|
className: "flex w-full items-center justify-between",
|
|
17460
17460
|
children: [/* @__PURE__ */ $("div", {
|
|
@@ -17480,11 +17480,11 @@ var dN = ({ item: e, active: t }) => {
|
|
|
17480
17480
|
onClick: () => e.onChange(!e.pinned),
|
|
17481
17481
|
className: B("mr-1 flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-f1-icon", "hover:bg-f1-background-tertiary hover:text-f1-icon-bold", En("focus-visible:ring-inset focus-visible:ring-offset-0"), !e.pinned && "opacity-0 focus-visible:opacity-100 group-hover/item:opacity-100"),
|
|
17482
17482
|
children: /* @__PURE__ */ Q(U, {
|
|
17483
|
-
icon: e.pinned ?
|
|
17483
|
+
icon: e.pinned ? ga : wi,
|
|
17484
17484
|
size: "sm"
|
|
17485
17485
|
})
|
|
17486
17486
|
}), pN = ({ item: e }) => {
|
|
17487
|
-
let t =
|
|
17487
|
+
let t = Xo() === "two-level", { isActive: n } = zn(), { label: r, icon: i, pin: a, ...o } = e, s = n(o.href, { exact: o.exactMatch }), c = /* @__PURE__ */ Q(Rn, {
|
|
17488
17488
|
...o,
|
|
17489
17489
|
className: B("flex cursor-pointer items-center rounded py-1.5 pl-1.5 pr-2 no-underline", a && "min-w-0 flex-1", !t && "transition-colors", En("focus-visible:ring-inset"), s && "text-f1-foreground", !a && (s ? "bg-f1-background-secondary" : "hover:bg-f1-background-secondary")),
|
|
17490
17490
|
children: /* @__PURE__ */ Q(dN, {
|
|
@@ -17497,20 +17497,20 @@ var dN = ({ item: e, active: t }) => {
|
|
|
17497
17497
|
children: [c, /* @__PURE__ */ Q(fN, { pin: a })]
|
|
17498
17498
|
}) : c;
|
|
17499
17499
|
}, mN = ({ item: e, tooltip: t, onRemove: n, index: r, total: i, onMove: a, onReorderFinish: o, isSortable: s = !0 }) => {
|
|
17500
|
-
let c =
|
|
17500
|
+
let c = Xo() === "two-level", l = R(), { isDragging: u, setIsDragging: d, draggedItemId: f, setDraggedItemId: p } = lN(), { isActive: m } = zn(), h = m(e.href, { exact: e.exactMatch }), g = Y(!1), [_, v] = X(!1), y = r === 0, b = r === i - 1, x = i === 1, S = J(function() {
|
|
17501
17501
|
let t = [];
|
|
17502
17502
|
return !x && !y && t.push({
|
|
17503
17503
|
label: l.actions.moveUp,
|
|
17504
17504
|
onClick: () => a?.(r, r - 1),
|
|
17505
|
-
icon:
|
|
17505
|
+
icon: wo
|
|
17506
17506
|
}), !x && !b && t.push({
|
|
17507
17507
|
label: l.actions.moveDown,
|
|
17508
17508
|
onClick: () => a?.(r, r + 1),
|
|
17509
|
-
icon:
|
|
17509
|
+
icon: $a
|
|
17510
17510
|
}), t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
17511
17511
|
label: l.favorites.remove,
|
|
17512
17512
|
onClick: () => n?.(e),
|
|
17513
|
-
icon:
|
|
17513
|
+
icon: Pa,
|
|
17514
17514
|
critical: !0
|
|
17515
17515
|
}), t;
|
|
17516
17516
|
}, [
|
|
@@ -17551,7 +17551,7 @@ var dN = ({ item: e, active: t }) => {
|
|
|
17551
17551
|
icon: e.icon,
|
|
17552
17552
|
size: "md",
|
|
17553
17553
|
className: B(!c && "transition-colors", h ? "text-f1-icon-bold" : "text-f1-icon")
|
|
17554
|
-
}) : e.avatar ? /* @__PURE__ */ Q(
|
|
17554
|
+
}) : e.avatar ? /* @__PURE__ */ Q(hc, {
|
|
17555
17555
|
size: "xs",
|
|
17556
17556
|
avatar: e.avatar
|
|
17557
17557
|
}) : null, /* @__PURE__ */ Q(ir, {
|
|
@@ -17565,7 +17565,7 @@ var dN = ({ item: e, active: t }) => {
|
|
|
17565
17565
|
})
|
|
17566
17566
|
}), /* @__PURE__ */ Q("div", {
|
|
17567
17567
|
className: B("absolute inset-y-1 right-1 z-10 flex items-center opacity-0 transition-opacity duration-100 focus-within:opacity-100 group-hover:opacity-100", (_ || T) && "opacity-100"),
|
|
17568
|
-
children: /* @__PURE__ */ Q(
|
|
17568
|
+
children: /* @__PURE__ */ Q(ti, {
|
|
17569
17569
|
open: _,
|
|
17570
17570
|
onOpenChange: v,
|
|
17571
17571
|
items: S,
|
|
@@ -17603,7 +17603,7 @@ var dN = ({ item: e, active: t }) => {
|
|
|
17603
17603
|
children: D
|
|
17604
17604
|
});
|
|
17605
17605
|
}, hN = ({ category: e, isSortable: t = !1, onCollapse: n, onDragEnd: r, currentOrder: i }) => {
|
|
17606
|
-
let a =
|
|
17606
|
+
let a = Xo() === "two-level", { isDragging: o, setIsDragging: s } = lN(), c = Y(!1), l = ye(), u = () => {
|
|
17607
17607
|
s(!0), c.current = !0;
|
|
17608
17608
|
}, d = () => {
|
|
17609
17609
|
s(!1), setTimeout(() => {
|
|
@@ -18145,7 +18145,7 @@ var MN = 350, NN = (e = !0) => {
|
|
|
18145
18145
|
});
|
|
18146
18146
|
return /* @__PURE__ */ Q("div", {
|
|
18147
18147
|
className: B("group relative flex w-full items-center justify-center", n),
|
|
18148
|
-
children: e.options ? /* @__PURE__ */ Q(
|
|
18148
|
+
children: e.options ? /* @__PURE__ */ Q(ti, {
|
|
18149
18149
|
items: e.options,
|
|
18150
18150
|
side: "right",
|
|
18151
18151
|
align: "end",
|
|
@@ -18182,7 +18182,7 @@ var MN = 350, NN = (e = !0) => {
|
|
|
18182
18182
|
className: "flex w-full shrink-0 flex-col pb-0.5 pt-1",
|
|
18183
18183
|
children: /* @__PURE__ */ Q(BN, { action: {
|
|
18184
18184
|
id: "search",
|
|
18185
|
-
icon:
|
|
18185
|
+
icon: $s,
|
|
18186
18186
|
shortcut: t,
|
|
18187
18187
|
...e
|
|
18188
18188
|
} })
|
|
@@ -18543,7 +18543,7 @@ function cP({ onClick: e, placeholder: t, shortcut: n = ["cmd", "k"], ...r }) {
|
|
|
18543
18543
|
children: [/* @__PURE__ */ $("div", {
|
|
18544
18544
|
className: "flex items-center gap-1",
|
|
18545
18545
|
children: [/* @__PURE__ */ Q(U, {
|
|
18546
|
-
icon:
|
|
18546
|
+
icon: $s,
|
|
18547
18547
|
size: "md"
|
|
18548
18548
|
}), /* @__PURE__ */ Q("span", { children: t })]
|
|
18549
18549
|
}), /* @__PURE__ */ Q("div", {
|
|
@@ -18860,7 +18860,7 @@ var pP = bn(fP), mP = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18860
18860
|
"aria-hidden": "true",
|
|
18861
18861
|
className: "flex text-f1-icon [&_circle]:![stroke-width:1.68px] [&_path]:![stroke-width:1.68px] [&_rect]:![stroke-width:1.68px]",
|
|
18862
18862
|
children: /* @__PURE__ */ Q(U, {
|
|
18863
|
-
icon:
|
|
18863
|
+
icon: eo,
|
|
18864
18864
|
size: "md"
|
|
18865
18865
|
})
|
|
18866
18866
|
}), wP = (e, t, n) => e.isCompleted ? null : e.status ? {
|
|
@@ -18927,7 +18927,7 @@ var pP = bn(fP), mP = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18927
18927
|
}, kP = ({ avatar: e }) => {
|
|
18928
18928
|
let { t } = R();
|
|
18929
18929
|
switch (e.type) {
|
|
18930
|
-
case "unassigned": return /* @__PURE__ */ Q(
|
|
18930
|
+
case "unassigned": return /* @__PURE__ */ Q(hc, {
|
|
18931
18931
|
avatar: {
|
|
18932
18932
|
type: "person",
|
|
18933
18933
|
firstName: "",
|
|
@@ -18942,7 +18942,7 @@ var pP = bn(fP), mP = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18942
18942
|
tint: e.tint,
|
|
18943
18943
|
label: e.label
|
|
18944
18944
|
});
|
|
18945
|
-
default: return /* @__PURE__ */ Q(
|
|
18945
|
+
default: return /* @__PURE__ */ Q(hc, {
|
|
18946
18946
|
avatar: e,
|
|
18947
18947
|
size: "lg"
|
|
18948
18948
|
});
|
|
@@ -18951,7 +18951,7 @@ var pP = bn(fP), mP = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18951
18951
|
"aria-hidden": "true",
|
|
18952
18952
|
className: B("flex h-4 w-4 shrink-0 items-center justify-center text-f1-icon transition-transform duration-100 motion-reduce:transition-none", !e && "-rotate-90"),
|
|
18953
18953
|
children: /* @__PURE__ */ Q(U, {
|
|
18954
|
-
icon:
|
|
18954
|
+
icon: Qs,
|
|
18955
18955
|
size: "sm"
|
|
18956
18956
|
})
|
|
18957
18957
|
}), jP = 40, MP = 450, NP = 900, PP = "cubic-bezier(0.33, 0.67, 0.67, 1)", FP = 20, IP = "[-webkit-mask-image:linear-gradient(to_right,black_calc(100%_-_20px),transparent)] [mask-image:linear-gradient(to_right,black_calc(100%_-_20px),transparent)]", LP = "[-webkit-mask-image:linear-gradient(to_right,transparent,black_6px,black_calc(100%_-_20px),transparent)] [mask-image:linear-gradient(to_right,transparent,black_6px,black_calc(100%_-_20px),transparent)]", RP = (e) => {
|
|
@@ -19199,7 +19199,7 @@ var pP = bn(fP), mP = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
19199
19199
|
variant: "outline",
|
|
19200
19200
|
size: n,
|
|
19201
19201
|
hideLabel: !0,
|
|
19202
|
-
icon: e === "approve" ? Tl :
|
|
19202
|
+
icon: e === "approve" ? Tl : xo,
|
|
19203
19203
|
label: t.label,
|
|
19204
19204
|
tooltip: t.tooltip ?? i(`actions.${e}`),
|
|
19205
19205
|
loading: a === e,
|
|
@@ -19360,12 +19360,12 @@ var pP = bn(fP), mP = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
19360
19360
|
size: "sm"
|
|
19361
19361
|
},
|
|
19362
19362
|
rejected: {
|
|
19363
|
-
icon:
|
|
19363
|
+
icon: xo,
|
|
19364
19364
|
type: "critical",
|
|
19365
19365
|
size: "sm"
|
|
19366
19366
|
}
|
|
19367
19367
|
}, TF = {
|
|
19368
|
-
icon:
|
|
19368
|
+
icon: la,
|
|
19369
19369
|
type: "neutral",
|
|
19370
19370
|
size: "sm"
|
|
19371
19371
|
}, EF = {
|
|
@@ -19406,7 +19406,7 @@ var kF = ({ title: e, approvalsRequired: t = 1, status: n, approvers: r, approva
|
|
|
19406
19406
|
}),
|
|
19407
19407
|
/* @__PURE__ */ Q("div", {
|
|
19408
19408
|
className: "w-full",
|
|
19409
|
-
children: /* @__PURE__ */ Q(
|
|
19409
|
+
children: /* @__PURE__ */ Q(gc, {
|
|
19410
19410
|
avatars: l,
|
|
19411
19411
|
layout: "fill",
|
|
19412
19412
|
type: "person",
|
|
@@ -19451,7 +19451,7 @@ var kF = ({ title: e, approvalsRequired: t = 1, status: n, approvers: r, approva
|
|
|
19451
19451
|
});
|
|
19452
19452
|
})), jF = (e, t) => typeof t == "string" && t in e;
|
|
19453
19453
|
function MF(e, t, n) {
|
|
19454
|
-
let r = {}, i = !1, a =
|
|
19454
|
+
let r = {}, i = !1, a = Nr(e);
|
|
19455
19455
|
if (a !== void 0 && t.filters) {
|
|
19456
19456
|
let e = t.filters, o = Object.fromEntries(Object.entries(a).filter(([t]) => jF(e, t)));
|
|
19457
19457
|
(Object.keys(o).length > 0 || Object.keys(a).length === 0) && (n.setCurrentFilters(o), r.filters = o, i = !0);
|
|
@@ -19479,7 +19479,7 @@ function MF(e, t, n) {
|
|
|
19479
19479
|
//#endregion
|
|
19480
19480
|
//#region src/addons/data-collection/OneDataCollection/hooks/useDataCollectionItemNavigation/useDataCollectionItemNavigation.ts
|
|
19481
19481
|
function NF(e) {
|
|
19482
|
-
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 =
|
|
19482
|
+
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 = Ei(), g = ve(t, m), [_, v] = X(null), y = _?.key === r && _.settled, b = Y(g);
|
|
19483
19483
|
b.current = g;
|
|
19484
19484
|
let x = Y(h);
|
|
19485
19485
|
x.current = h;
|
|
@@ -19535,7 +19535,7 @@ function NF(e) {
|
|
|
19535
19535
|
}, t);
|
|
19536
19536
|
} catch {}
|
|
19537
19537
|
};
|
|
19538
|
-
return
|
|
19538
|
+
return Gr(r, () => {
|
|
19539
19539
|
e();
|
|
19540
19540
|
});
|
|
19541
19541
|
}, [
|
|
@@ -19543,7 +19543,7 @@ function NF(e) {
|
|
|
19543
19543
|
u,
|
|
19544
19544
|
d
|
|
19545
19545
|
]);
|
|
19546
|
-
let { data: D, paginationInfo: O, setPage: k, loadMore: A, isLoading: j, isInitialLoading: M } =
|
|
19546
|
+
let { data: D, paginationInfo: O, setPage: k, loadMore: A, isLoading: j, isInitialLoading: M } = uc(g, {
|
|
19547
19547
|
enabled: u && y,
|
|
19548
19548
|
fetchParamsProvider: (e) => ({
|
|
19549
19549
|
...e,
|
|
@@ -19755,13 +19755,13 @@ var PF = (e) => e, FF = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19755
19755
|
children: [/* @__PURE__ */ Q("span", {
|
|
19756
19756
|
className: B("flex shrink-0 items-center justify-center", u[a ? "phone" : "desktop"], l && B(a ? "rounded" : "rounded-sm", l.className)),
|
|
19757
19757
|
style: l?.style,
|
|
19758
|
-
children: e.avatar ? /* @__PURE__ */ Q(
|
|
19758
|
+
children: e.avatar ? /* @__PURE__ */ Q(fc, {
|
|
19759
19759
|
firstName: e.avatar.firstName,
|
|
19760
19760
|
lastName: e.avatar.lastName,
|
|
19761
19761
|
src: e.avatar.src,
|
|
19762
19762
|
size: a ? "sm" : "xs"
|
|
19763
19763
|
}) : /* @__PURE__ */ Q(U, {
|
|
19764
|
-
icon: e.icon ??
|
|
19764
|
+
icon: e.icon ?? fo,
|
|
19765
19765
|
size: d
|
|
19766
19766
|
})
|
|
19767
19767
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -19913,7 +19913,7 @@ var PF = (e) => e, FF = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19913
19913
|
onClick: a,
|
|
19914
19914
|
children: [n ? /* @__PURE__ */ Q("span", {
|
|
19915
19915
|
className: "flex h-5 w-5 shrink-0 items-center justify-center",
|
|
19916
|
-
children: /* @__PURE__ */ Q(
|
|
19916
|
+
children: /* @__PURE__ */ Q(fc, {
|
|
19917
19917
|
firstName: n.firstName,
|
|
19918
19918
|
lastName: n.lastName,
|
|
19919
19919
|
src: n.src,
|
|
@@ -19935,7 +19935,7 @@ var PF = (e) => e, FF = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19935
19935
|
className: B("flex items-center gap-2.5 border-0 border-solid border-f1-border-secondary px-4 py-3.5", v ? "border-t" : "border-b"),
|
|
19936
19936
|
children: [
|
|
19937
19937
|
/* @__PURE__ */ Q(U, {
|
|
19938
|
-
icon:
|
|
19938
|
+
icon: $s,
|
|
19939
19939
|
size: "md",
|
|
19940
19940
|
color: "secondary"
|
|
19941
19941
|
}),
|
|
@@ -20065,7 +20065,7 @@ var PF = (e) => e, FF = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
20065
20065
|
label: t.label,
|
|
20066
20066
|
hint: t.description,
|
|
20067
20067
|
avatar: t.avatar,
|
|
20068
|
-
icon: t.icon ??
|
|
20068
|
+
icon: t.icon ?? fo,
|
|
20069
20069
|
color: t.color,
|
|
20070
20070
|
keywords: t.keywords,
|
|
20071
20071
|
rowActions: t.rowActions,
|
|
@@ -20085,7 +20085,7 @@ var PF = (e) => e, FF = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
20085
20085
|
key: "copy",
|
|
20086
20086
|
label: p.rowActions.copyLinkTo(e.label),
|
|
20087
20087
|
tip: p.rowActions.copyLink,
|
|
20088
|
-
icon:
|
|
20088
|
+
icon: ho,
|
|
20089
20089
|
run: () => f(r)
|
|
20090
20090
|
}] : []];
|
|
20091
20091
|
return {
|
|
@@ -20093,7 +20093,7 @@ var PF = (e) => e, FF = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
20093
20093
|
group: t,
|
|
20094
20094
|
label: e.label,
|
|
20095
20095
|
hint: e.kind === "one" ? e.sublabel : void 0,
|
|
20096
|
-
icon: e.icon ??
|
|
20096
|
+
icon: e.icon ?? fo,
|
|
20097
20097
|
color: e.color,
|
|
20098
20098
|
avatar: e.kind === "one" ? e.avatar : void 0,
|
|
20099
20099
|
scopeRef: n ? e : void 0,
|
|
@@ -20200,7 +20200,7 @@ var PF = (e) => e, FF = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
20200
20200
|
group: e.label,
|
|
20201
20201
|
label: t.label,
|
|
20202
20202
|
hint: t.sublabel,
|
|
20203
|
-
icon: t.icon ?? (r.has(t.value) ?
|
|
20203
|
+
icon: t.icon ?? (r.has(t.value) ? ys : void 0),
|
|
20204
20204
|
color: t.color,
|
|
20205
20205
|
avatar: t.avatar,
|
|
20206
20206
|
run: () => {
|
|
@@ -20242,7 +20242,7 @@ var PF = (e) => e, FF = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
20242
20242
|
...e,
|
|
20243
20243
|
id: `recent-${e.id}`,
|
|
20244
20244
|
group: p.groups.recent,
|
|
20245
|
-
icon:
|
|
20245
|
+
icon: eo,
|
|
20246
20246
|
color: void 0,
|
|
20247
20247
|
hint: void 0
|
|
20248
20248
|
})), ...r.flatMap((e) => e.provider ? [] : (b.find((t) => t.label === e.label)?.rows ?? []).slice(0, e.openLimit ?? Infinity))];
|
|
@@ -20596,10 +20596,10 @@ var MI = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20596
20596
|
ye(t), ce(t);
|
|
20597
20597
|
} else e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (r(), se(), D(g + e.key));
|
|
20598
20598
|
}, Ie = (e) => e && e.kind === "one" && e.sublabel ? `${e.label} · ${e.sublabel}` : e?.label ?? "", Le = Ie(S ?? void 0), Re = S ? void 0 : h ? d.placeholderPhone : d.placeholder, ze = C.kind === "param" ? (C.action.params ?? [])[C.step]?.label ?? d.placeholderScoped : S ? d.fieldLabelScoped(Le) : d.placeholder, Be = v.flatMap((e, t) => [e.trim(), b[t]?.label ?? ""]).filter(Boolean).join(" "), Ve = S ? g.trim() ? Be : b.map((e) => e.label).join(" ") : g.trim();
|
|
20599
|
-
return /* @__PURE__ */ Q(
|
|
20599
|
+
return /* @__PURE__ */ Q(Ir, {
|
|
20600
20600
|
open: e,
|
|
20601
20601
|
onOpenChange: t,
|
|
20602
|
-
children: /* @__PURE__ */ $(
|
|
20602
|
+
children: /* @__PURE__ */ $(Ko, {
|
|
20603
20603
|
"aria-label": d.label,
|
|
20604
20604
|
"aria-describedby": void 0,
|
|
20605
20605
|
withTranslateAnimation: !1,
|
|
@@ -20618,7 +20618,7 @@ var MI = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20618
20618
|
Me(e, xe);
|
|
20619
20619
|
},
|
|
20620
20620
|
children: [
|
|
20621
|
-
/* @__PURE__ */ Q(
|
|
20621
|
+
/* @__PURE__ */ Q(ei, {
|
|
20622
20622
|
className: "sr-only",
|
|
20623
20623
|
children: d.label
|
|
20624
20624
|
}),
|
|
@@ -20787,7 +20787,7 @@ var MI = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20787
20787
|
], zI = (e) => e.type === "system", BI = (e) => e.type === "call", VI = (e) => e.type === void 0 || e.type === "message", HI = (e) => e.type === "post", UI = "messages", WI = "latest", GI = tr().use(Jn).use($n), KI = /[*_~]/, qI = {
|
|
20788
20788
|
strong: 2,
|
|
20789
20789
|
emphasis: 1
|
|
20790
|
-
}, JI = RegExp(`\\\\|${
|
|
20790
|
+
}, JI = RegExp(`\\\\|${Ws.source}`, "g"), YI = /* @__PURE__ */ new Set([
|
|
20791
20791
|
"root",
|
|
20792
20792
|
"paragraph",
|
|
20793
20793
|
"list",
|
|
@@ -20808,7 +20808,7 @@ var MI = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20808
20808
|
for (let e = 1; e <= o; e++) s.push(r - e);
|
|
20809
20809
|
return s;
|
|
20810
20810
|
}, tL = (e, t) => {
|
|
20811
|
-
let n =
|
|
20811
|
+
let n = Ai.exec(e.slice(t))?.[0];
|
|
20812
20812
|
return n ? t + n.trimEnd().length - 1 : null;
|
|
20813
20813
|
}, nL = (e, t) => {
|
|
20814
20814
|
let n = 0;
|
|
@@ -20912,7 +20912,7 @@ var MI = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20912
20912
|
}).join("\n"), xL = (e, t) => e.type === "paragraph" ? e.children.map((e) => vL(e, t)).join("") : bL(e, t), SL = (e, t) => e.map((e, n) => {
|
|
20913
20913
|
let r = xL(e, t);
|
|
20914
20914
|
return n === 0 ? r : e.type === "paragraph" ? `\n\n${r}` : `\n${r}`;
|
|
20915
|
-
}).join(""), CL = (e, { linkUrls: t = !1 } = {}) => SL(
|
|
20915
|
+
}).join(""), CL = (e, { linkUrls: t = !1 } = {}) => SL(Fr(e).blocks, t), wL = "p, div, li, h1, h2, h3, h4, h5, h6, blockquote, pre, tr", TL = "style, script, template, noscript, title, head", EL = "form, input, button, select, textarea", DL = 500, OL = /* @__PURE__ */ new WeakMap(), kL = /* @__PURE__ */ new Map(), AL = (e) => new DOMParser().parseFromString(e, "text/html").body, jL = (e) => (e ?? "").replace(/ /g, " ").trim().length === 0, ML = (e, t) => {
|
|
20916
20916
|
e.querySelectorAll(t).forEach((e) => e.remove());
|
|
20917
20917
|
}, NL = (e) => {
|
|
20918
20918
|
let t = OL.get(e);
|
|
@@ -20937,7 +20937,7 @@ var MI = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20937
20937
|
e.setAttribute("target", "_blank"), e.setAttribute("rel", "noopener noreferrer");
|
|
20938
20938
|
});
|
|
20939
20939
|
let n = t.ownerDocument.createTreeWalker(t, NodeFilter.SHOW_TEXT);
|
|
20940
|
-
for (let e = n.nextNode(); e; e = n.nextNode()) e.textContent =
|
|
20940
|
+
for (let e = n.nextNode(); e; e = n.nextNode()) e.textContent = Ds(e.textContent ?? "");
|
|
20941
20941
|
return UL(t), t.innerHTML;
|
|
20942
20942
|
}, GL = () => {}, KL = Zu({
|
|
20943
20943
|
tabs: [],
|
|
@@ -21235,9 +21235,9 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21235
21235
|
scheduled: c.length,
|
|
21236
21236
|
draft: l.length
|
|
21237
21237
|
}, f = {
|
|
21238
|
-
pinned:
|
|
21239
|
-
scheduled:
|
|
21240
|
-
draft:
|
|
21238
|
+
pinned: ga,
|
|
21239
|
+
scheduled: eo,
|
|
21240
|
+
draft: Go
|
|
21241
21241
|
}, p = {
|
|
21242
21242
|
pinned: e.t("chat.community.pinnedPosts"),
|
|
21243
21243
|
scheduled: e.t("chat.community.scheduledPosts"),
|
|
@@ -21316,7 +21316,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21316
21316
|
}
|
|
21317
21317
|
}, ...i ? [{
|
|
21318
21318
|
label: n.t("chat.community.unpinPost"),
|
|
21319
|
-
icon:
|
|
21319
|
+
icon: ga,
|
|
21320
21320
|
onClick: () => void i(e.id)
|
|
21321
21321
|
}] : []]
|
|
21322
21322
|
}, e.id))
|
|
@@ -21335,11 +21335,11 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21335
21335
|
meta: /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ $("span", {
|
|
21336
21336
|
className: "flex items-center gap-1.5 text-f1-foreground-secondary",
|
|
21337
21337
|
children: [/* @__PURE__ */ Q(U, {
|
|
21338
|
-
icon:
|
|
21338
|
+
icon: eo,
|
|
21339
21339
|
size: "sm"
|
|
21340
21340
|
}), bR(e.scheduledFor, r)]
|
|
21341
21341
|
}), e.event ? /* @__PURE__ */ Q(kc, {
|
|
21342
|
-
icon:
|
|
21342
|
+
icon: Bi,
|
|
21343
21343
|
text: n.t("chat.community.scheduledEvent")
|
|
21344
21344
|
}) : null] }),
|
|
21345
21345
|
onClick: a ? () => {
|
|
@@ -21369,7 +21369,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21369
21369
|
meta: /* @__PURE__ */ $("span", {
|
|
21370
21370
|
className: "flex items-center gap-1.5 text-f1-foreground-secondary",
|
|
21371
21371
|
children: [/* @__PURE__ */ Q(U, {
|
|
21372
|
-
icon:
|
|
21372
|
+
icon: Go,
|
|
21373
21373
|
size: "sm"
|
|
21374
21374
|
}), n.t("chat.community.draftSavedAt", { when: bR(e.savedAt, r) })]
|
|
21375
21375
|
}),
|
|
@@ -21412,7 +21412,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21412
21412
|
})
|
|
21413
21413
|
}), o.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
21414
21414
|
className: "shrink-0",
|
|
21415
|
-
children: /* @__PURE__ */ Q(
|
|
21415
|
+
children: /* @__PURE__ */ Q(ti, {
|
|
21416
21416
|
items: o,
|
|
21417
21417
|
size: "sm"
|
|
21418
21418
|
})
|
|
@@ -21475,7 +21475,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21475
21475
|
"aria-hidden": !e,
|
|
21476
21476
|
className: B("pointer-events-none absolute inset-1 z-50 flex flex-col items-center justify-center gap-2 rounded-xl", "border border-dashed border-f1-border bg-f1-background-tertiary/80 backdrop-blur", "transition-[opacity,visibility] duration-150 ease-out motion-reduce:transition-none", e ? "visible opacity-100" : "invisible opacity-0"),
|
|
21477
21477
|
children: [/* @__PURE__ */ Q(U, {
|
|
21478
|
-
icon:
|
|
21478
|
+
icon: Dr,
|
|
21479
21479
|
size: "lg",
|
|
21480
21480
|
color: "bold"
|
|
21481
21481
|
}), /* @__PURE__ */ Q("p", {
|
|
@@ -21524,7 +21524,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21524
21524
|
]);
|
|
21525
21525
|
return /* @__PURE__ */ Q(DR.Provider, {
|
|
21526
21526
|
value: s,
|
|
21527
|
-
children: /* @__PURE__ */ Q(
|
|
21527
|
+
children: /* @__PURE__ */ Q(Oi, {
|
|
21528
21528
|
reducedMotion: t,
|
|
21529
21529
|
htmlSandbox: a,
|
|
21530
21530
|
htmlExecution: o,
|
|
@@ -21584,7 +21584,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21584
21584
|
variant: "ghost",
|
|
21585
21585
|
hideLabel: !0,
|
|
21586
21586
|
label: e.navigation.next,
|
|
21587
|
-
icon:
|
|
21587
|
+
icon: Qs,
|
|
21588
21588
|
onClick: c,
|
|
21589
21589
|
disabled: !h || r,
|
|
21590
21590
|
size: "sm"
|
|
@@ -21593,7 +21593,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21593
21593
|
variant: "ghost",
|
|
21594
21594
|
hideLabel: !0,
|
|
21595
21595
|
label: e.chat.closeSearch,
|
|
21596
|
-
icon:
|
|
21596
|
+
icon: xo,
|
|
21597
21597
|
onClick: u
|
|
21598
21598
|
})]
|
|
21599
21599
|
})
|
|
@@ -21632,7 +21632,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21632
21632
|
}), /* @__PURE__ */ Q(xl, {
|
|
21633
21633
|
align: "start",
|
|
21634
21634
|
className: "w-72 border-none bg-f1-background p-0 text-f1-foreground shadow-none",
|
|
21635
|
-
children: /* @__PURE__ */ Q(
|
|
21635
|
+
children: /* @__PURE__ */ Q(pi, {
|
|
21636
21636
|
name: e.name,
|
|
21637
21637
|
avatar: e.avatar,
|
|
21638
21638
|
subtitle: e.subtitle,
|
|
@@ -21661,8 +21661,8 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21661
21661
|
});
|
|
21662
21662
|
}, [t, e]), null;
|
|
21663
21663
|
}, HR = ({ channel: e, isFullscreen: t, onToggleFullscreen: n, onClose: r, actions: i, content: a, tabs: o }) => {
|
|
21664
|
-
let s = R(), { searchOpen: c, openSearch: l } = fR(), { panelOverlays: u } =
|
|
21665
|
-
icon:
|
|
21664
|
+
let s = R(), { searchOpen: c, openSearch: l } = fR(), { panelOverlays: u } = dr(), { surface: d } = kR(), f = d === "page", p = JL().tabs.length > 0, { sidebarState: m, toggleSidebar: h, hasPrimarySidebar: g } = gu(), _ = f && !g && m !== "locked", v = e.type === "dm" && e.presence !== void 0, y = e.type === "group" ? e.visibility === "global" ? {
|
|
21665
|
+
icon: Zi,
|
|
21666
21666
|
label: s.chat.visibility.global,
|
|
21667
21667
|
hint: s.chat.visibility.globalHint
|
|
21668
21668
|
} : e.visibility === "private" ? {
|
|
@@ -21680,7 +21680,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21680
21680
|
actions: e.details.actions
|
|
21681
21681
|
} : void 0, S = (i ?? []).filter((t) => !t.channelTypes || t.channelTypes.includes(e.type)), C = (e) => e.placement === "inline" && e.icon != null, w = S.filter(C), T = (e) => !!e.items?.length && e.active !== !0 && e.variant !== "promote", E = S.filter((e) => !C(e)), D = ER(e), O = [...e.type === "announcement" ? [] : [{
|
|
21682
21682
|
label: s.actions.search,
|
|
21683
|
-
icon:
|
|
21683
|
+
icon: $s,
|
|
21684
21684
|
onClick: l
|
|
21685
21685
|
}], ...E.flatMap((t) => T(t) ? [{
|
|
21686
21686
|
type: "label",
|
|
@@ -21711,7 +21711,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21711
21711
|
icon: b.icon,
|
|
21712
21712
|
size: "md"
|
|
21713
21713
|
})
|
|
21714
|
-
}) : /* @__PURE__ */ Q(
|
|
21714
|
+
}) : /* @__PURE__ */ Q(hc, {
|
|
21715
21715
|
size: "sm",
|
|
21716
21716
|
avatar: b.avatar
|
|
21717
21717
|
}), v ? /* @__PURE__ */ Q(zR, {
|
|
@@ -21754,7 +21754,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21754
21754
|
variant: "ghost",
|
|
21755
21755
|
hideLabel: !0,
|
|
21756
21756
|
label: s.navigation.sidebar.label,
|
|
21757
|
-
icon:
|
|
21757
|
+
icon: Ni,
|
|
21758
21758
|
onClick: () => h()
|
|
21759
21759
|
}) : null,
|
|
21760
21760
|
e.user ? /* @__PURE__ */ Q(RR, {
|
|
@@ -21770,7 +21770,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21770
21770
|
className: "flex shrink-0 items-center gap-0.5",
|
|
21771
21771
|
children: [
|
|
21772
21772
|
k,
|
|
21773
|
-
w.map((t) => T(t) ? /* @__PURE__ */ Q(
|
|
21773
|
+
w.map((t) => T(t) ? /* @__PURE__ */ Q(ti, {
|
|
21774
21774
|
align: "end",
|
|
21775
21775
|
label: t.label,
|
|
21776
21776
|
items: D.itemsOf(t),
|
|
@@ -21794,7 +21794,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21794
21794
|
label: t.label,
|
|
21795
21795
|
tooltip: t.label
|
|
21796
21796
|
}, t.id)),
|
|
21797
|
-
O.length > 0 ? /* @__PURE__ */ Q(
|
|
21797
|
+
O.length > 0 ? /* @__PURE__ */ Q(ti, {
|
|
21798
21798
|
items: O,
|
|
21799
21799
|
align: "end",
|
|
21800
21800
|
label: s.chat.options,
|
|
@@ -21809,14 +21809,14 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21809
21809
|
variant: "ghost",
|
|
21810
21810
|
hideLabel: !0,
|
|
21811
21811
|
label: t ? s.actions.collapse : s.actions.expand,
|
|
21812
|
-
icon: t ?
|
|
21812
|
+
icon: t ? _s : zi,
|
|
21813
21813
|
onClick: n
|
|
21814
21814
|
}) : null,
|
|
21815
21815
|
r ? /* @__PURE__ */ Q(V, {
|
|
21816
21816
|
variant: "ghost",
|
|
21817
21817
|
hideLabel: !0,
|
|
21818
21818
|
label: s.actions.close,
|
|
21819
|
-
icon:
|
|
21819
|
+
icon: xo,
|
|
21820
21820
|
onClick: r
|
|
21821
21821
|
}) : null,
|
|
21822
21822
|
a ? /* @__PURE__ */ Q("div", {
|
|
@@ -21839,7 +21839,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21839
21839
|
let t = R(), { tabs: n, activeTabId: r, selectTab: i } = JL(), a = [{
|
|
21840
21840
|
id: UI,
|
|
21841
21841
|
label: t.chat.tabs.messages,
|
|
21842
|
-
icon:
|
|
21842
|
+
icon: Ra,
|
|
21843
21843
|
badge: e
|
|
21844
21844
|
}, ...n.map(({ id: e, label: t, icon: n, badge: r }) => ({
|
|
21845
21845
|
id: e,
|
|
@@ -21853,7 +21853,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21853
21853
|
s.current && (s.current = !1, o.current?.querySelector("[aria-current=true]")?.focus());
|
|
21854
21854
|
}, [c]), /* @__PURE__ */ Q("div", {
|
|
21855
21855
|
ref: o,
|
|
21856
|
-
children: /* @__PURE__ */ Q(
|
|
21856
|
+
children: /* @__PURE__ */ Q(js, {
|
|
21857
21857
|
tabs: a,
|
|
21858
21858
|
activeTabId: r,
|
|
21859
21859
|
setActiveTabId: f,
|
|
@@ -21875,7 +21875,7 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21875
21875
|
n && i.onUpsellShown({ source: "history_limit" });
|
|
21876
21876
|
}, [n, i]), /* @__PURE__ */ Q("div", {
|
|
21877
21877
|
className: "rounded-xl bg-f1-background",
|
|
21878
|
-
children: /* @__PURE__ */ $(
|
|
21878
|
+
children: /* @__PURE__ */ $(sa, {
|
|
21879
21879
|
title: e.title,
|
|
21880
21880
|
description: e.description,
|
|
21881
21881
|
children: [r ? /* @__PURE__ */ $("div", {
|
|
@@ -21912,12 +21912,12 @@ var sR = () => oR(QL, "useChatJump"), cR = (e) => {
|
|
|
21912
21912
|
let [n] = t;
|
|
21913
21913
|
if (!n || n.width && n.height) return [];
|
|
21914
21914
|
let r = n.thumbnailUrl ?? n.url;
|
|
21915
|
-
return
|
|
21915
|
+
return Os(r) === void 0 ? [r] : [];
|
|
21916
21916
|
}, YR = (e) => {
|
|
21917
21917
|
let t = e.linkPreviews ?? [];
|
|
21918
21918
|
if (t.length !== 1) return [];
|
|
21919
21919
|
let n = t[0]?.imageUrl;
|
|
21920
|
-
return n &&
|
|
21920
|
+
return n && Os(n) === void 0 ? [n] : [];
|
|
21921
21921
|
};
|
|
21922
21922
|
function XR(e, { enabled: t }) {
|
|
21923
21923
|
let [, n] = od((e) => e + 1, 0), r = Y(null);
|
|
@@ -21963,7 +21963,7 @@ function XR(e, { enabled: t }) {
|
|
|
21963
21963
|
let r = () => {
|
|
21964
21964
|
i.current.has(t) || (i.current.add(t), n());
|
|
21965
21965
|
}, o = window.setTimeout(r, e.ms);
|
|
21966
|
-
Promise.all(e.urls.map(
|
|
21966
|
+
Promise.all(e.urls.map(ji)).then(() => {
|
|
21967
21967
|
window.clearTimeout(o), r();
|
|
21968
21968
|
});
|
|
21969
21969
|
});
|
|
@@ -22429,7 +22429,7 @@ var jz = (e, t, n) => {
|
|
|
22429
22429
|
})} ${a}`;
|
|
22430
22430
|
}, CB = ({ message: e, onConfirm: t, onClose: n }) => {
|
|
22431
22431
|
let r = R(), [i, a] = X(() => /* @__PURE__ */ new Date()), o = e.reminder ? new Date(e.reminder.remindAt) : new Date(i.getTime() + 36e5), [s, c] = X(o), [l, u] = X(gB(o)), d = s ? new Date(_B(s, l)) : void 0, f = !!d && d.getTime() <= i.getTime(), p = !!d && !!l && !f, m = LL(e).trim();
|
|
22432
|
-
return /* @__PURE__ */ Q(
|
|
22432
|
+
return /* @__PURE__ */ Q(vs, {
|
|
22433
22433
|
isOpen: !0,
|
|
22434
22434
|
onClose: n,
|
|
22435
22435
|
width: "sm",
|
|
@@ -22473,7 +22473,7 @@ var jz = (e, t, n) => {
|
|
|
22473
22473
|
})
|
|
22474
22474
|
}), /* @__PURE__ */ Q("div", {
|
|
22475
22475
|
className: "w-32",
|
|
22476
|
-
children: /* @__PURE__ */ Q(
|
|
22476
|
+
children: /* @__PURE__ */ Q(Na, {
|
|
22477
22477
|
type: "time",
|
|
22478
22478
|
label: r.chat.remind.time,
|
|
22479
22479
|
value: l,
|
|
@@ -22522,7 +22522,7 @@ var jz = (e, t, n) => {
|
|
|
22522
22522
|
}) : null]
|
|
22523
22523
|
}), kB = ({ user: e }) => /* @__PURE__ */ $("div", {
|
|
22524
22524
|
className: "flex w-full items-center gap-2 px-0 py-1 text-f1-foreground",
|
|
22525
|
-
children: [/* @__PURE__ */ Q(
|
|
22525
|
+
children: [/* @__PURE__ */ Q(hc, {
|
|
22526
22526
|
size: "sm",
|
|
22527
22527
|
avatar: e.avatar ?? {
|
|
22528
22528
|
type: "person",
|
|
@@ -22621,7 +22621,7 @@ var jz = (e, t, n) => {
|
|
|
22621
22621
|
};
|
|
22622
22622
|
}, IB = ({ message: e, onOpen: t }) => {
|
|
22623
22623
|
let n = R(), { channelType: r } = Ru(), i = e.readBy?.length ?? e.readByCount ?? 0, a = e.readBy?.slice(0, PB) ?? [], o = Math.max(0, i - a.length), s = n.chat.info, c = qc;
|
|
22624
|
-
return e.isMine && r === "group" && i > 0 ? (s = n.t(i === 1 ? "chat.readBy.one" : "chat.readBy.other", { count: i }), c =
|
|
22624
|
+
return e.isMine && r === "group" && i > 0 ? (s = n.t(i === 1 ? "chat.readBy.one" : "chat.readBy.other", { count: i }), c = ao) : e.isMine && e.readAt ? (s = `${n.chat.read} · ${oz(new Date(e.readAt))}`, c = ao) : e.isMine && r === "dm" && e.status === "delivered" && (s = n.chat.delivered, c = ao), /* @__PURE__ */ Q(MB, {
|
|
22625
22625
|
icon: c,
|
|
22626
22626
|
label: s,
|
|
22627
22627
|
onClick: t,
|
|
@@ -22630,7 +22630,7 @@ var jz = (e, t, n) => {
|
|
|
22630
22630
|
"aria-hidden": !0,
|
|
22631
22631
|
className: "flex shrink-0",
|
|
22632
22632
|
"data-testid": "chat-message-menu-readers",
|
|
22633
|
-
children: /* @__PURE__ */ Q(
|
|
22633
|
+
children: /* @__PURE__ */ Q(gc, {
|
|
22634
22634
|
type: "person",
|
|
22635
22635
|
size: "sm",
|
|
22636
22636
|
noTooltip: !0,
|
|
@@ -22651,7 +22651,7 @@ function LB({ shown: e, run: t, message: n }) {
|
|
|
22651
22651
|
padding: "xs",
|
|
22652
22652
|
children: [
|
|
22653
22653
|
aB(e) ? /* @__PURE__ */ Q(MB, {
|
|
22654
|
-
icon:
|
|
22654
|
+
icon: ui,
|
|
22655
22655
|
label: r.chat.one.askAgain,
|
|
22656
22656
|
onClick: t(aB, () => {
|
|
22657
22657
|
i.retry?.(n.id);
|
|
@@ -22665,7 +22665,7 @@ function LB({ shown: e, run: t, message: n }) {
|
|
|
22665
22665
|
})
|
|
22666
22666
|
}) : null,
|
|
22667
22667
|
sB(e) ? /* @__PURE__ */ Q(MB, {
|
|
22668
|
-
icon:
|
|
22668
|
+
icon: $r,
|
|
22669
22669
|
label: r.chat.one.copy,
|
|
22670
22670
|
onClick: t(sB, () => {
|
|
22671
22671
|
cB(n, a);
|
|
@@ -22703,7 +22703,7 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22703
22703
|
l ? /* @__PURE__ */ $("p", {
|
|
22704
22704
|
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",
|
|
22705
22705
|
"data-testid": "chat-remind-current",
|
|
22706
|
-
children: [/* @__PURE__ */ Q(
|
|
22706
|
+
children: [/* @__PURE__ */ Q(vi, {
|
|
22707
22707
|
className: "size-4 shrink-0",
|
|
22708
22708
|
"aria-hidden": !0
|
|
22709
22709
|
}), a.t("chat.remind.current", { when: c(l) })]
|
|
@@ -22716,7 +22716,7 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22716
22716
|
relativeDay: !1
|
|
22717
22717
|
}) : c(t);
|
|
22718
22718
|
return /* @__PURE__ */ Q(MB, {
|
|
22719
|
-
icon:
|
|
22719
|
+
icon: eo,
|
|
22720
22720
|
label: a.chat.remind[e],
|
|
22721
22721
|
onClick: () => n(t),
|
|
22722
22722
|
trailing: /* @__PURE__ */ Q("span", {
|
|
@@ -22733,12 +22733,12 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22733
22733
|
/* @__PURE__ */ $("div", {
|
|
22734
22734
|
className: "flex flex-col p-1",
|
|
22735
22735
|
children: [/* @__PURE__ */ Q(MB, {
|
|
22736
|
-
icon:
|
|
22736
|
+
icon: Bi,
|
|
22737
22737
|
label: a.chat.remind.custom,
|
|
22738
22738
|
onClick: r
|
|
22739
22739
|
}), e.reminder ? /* @__PURE__ */ Q(MB, {
|
|
22740
22740
|
critical: !0,
|
|
22741
|
-
icon:
|
|
22741
|
+
icon: Pa,
|
|
22742
22742
|
label: a.chat.remind.remove,
|
|
22743
22743
|
onClick: i
|
|
22744
22744
|
}) : null]
|
|
@@ -22788,13 +22788,13 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22788
22788
|
className: `${BB} flex w-64 flex-col rounded-lg p-1`,
|
|
22789
22789
|
onKeyDown: NB,
|
|
22790
22790
|
children: [/* @__PURE__ */ Q(MB, {
|
|
22791
|
-
icon:
|
|
22791
|
+
icon: ui,
|
|
22792
22792
|
label: n.chat.retry,
|
|
22793
22793
|
onClick: (n) => {
|
|
22794
22794
|
r(e.live.id), t(VB(n));
|
|
22795
22795
|
}
|
|
22796
22796
|
}), /* @__PURE__ */ Q(MB, {
|
|
22797
|
-
icon:
|
|
22797
|
+
icon: Pa,
|
|
22798
22798
|
label: n.actions.delete,
|
|
22799
22799
|
onClick: (n) => {
|
|
22800
22800
|
o(e.live.id), t(VB(n));
|
|
@@ -22810,48 +22810,48 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22810
22810
|
className: "flex flex-col p-1",
|
|
22811
22811
|
children: [
|
|
22812
22812
|
Xz(e) ? /* @__PURE__ */ Q(MB, {
|
|
22813
|
-
icon:
|
|
22813
|
+
icon: ni,
|
|
22814
22814
|
label: i.chat.reply,
|
|
22815
22815
|
onClick: t(Xz, () => d(n))
|
|
22816
22816
|
}) : null,
|
|
22817
22817
|
Jz(e) ? /* @__PURE__ */ Q(MB, {
|
|
22818
|
-
icon:
|
|
22818
|
+
icon: $r,
|
|
22819
22819
|
label: i.actions.copy,
|
|
22820
22820
|
onClick: t(Jz, () => dB(a, n))
|
|
22821
22821
|
}) : null,
|
|
22822
22822
|
f ? /* @__PURE__ */ Q(MB, {
|
|
22823
|
-
icon:
|
|
22823
|
+
icon: Zi,
|
|
22824
22824
|
label: i.chat.hideTranslation,
|
|
22825
22825
|
onClick: t(iB, () => c?.(n.id))
|
|
22826
22826
|
}) : nB(e) ? /* @__PURE__ */ Q(MB, {
|
|
22827
|
-
icon:
|
|
22827
|
+
icon: Zi,
|
|
22828
22828
|
label: i.chat.translate,
|
|
22829
22829
|
onClick: t(nB, () => u?.(n.id))
|
|
22830
22830
|
}) : null,
|
|
22831
22831
|
rB(e) ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(zB, {}), /* @__PURE__ */ Q(MB, {
|
|
22832
|
-
icon:
|
|
22832
|
+
icon: Zi,
|
|
22833
22833
|
label: i.chat.translate,
|
|
22834
22834
|
onClick: t(rB, () => l?.()),
|
|
22835
22835
|
trailing: /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
22836
22836
|
className: "sr-only",
|
|
22837
22837
|
children: ", "
|
|
22838
22838
|
}), /* @__PURE__ */ Q(kc, {
|
|
22839
|
-
icon:
|
|
22839
|
+
icon: jr,
|
|
22840
22840
|
text: i.chat.upgrade
|
|
22841
22841
|
})] })
|
|
22842
22842
|
})] }) : null,
|
|
22843
22843
|
$z(e) ? /* @__PURE__ */ Q(MB, {
|
|
22844
|
-
icon:
|
|
22844
|
+
icon: Wi,
|
|
22845
22845
|
label: i.chat.forward,
|
|
22846
22846
|
onClick: t($z, () => o?.(n))
|
|
22847
22847
|
}) : null,
|
|
22848
22848
|
eB(e) ? /* @__PURE__ */ Q(MB, {
|
|
22849
|
-
icon: n.pinnedAt ?
|
|
22849
|
+
icon: n.pinnedAt ? ga : wi,
|
|
22850
22850
|
label: n.pinnedAt ? i.chat.unpinMessage : i.chat.pinMessage,
|
|
22851
22851
|
onClick: t(eB, () => s?.(n.id, !n.pinnedAt))
|
|
22852
22852
|
}) : null,
|
|
22853
22853
|
tB(e) && r ? /* @__PURE__ */ Q(MB, {
|
|
22854
|
-
icon:
|
|
22854
|
+
icon: Vo,
|
|
22855
22855
|
label: i.chat.remind.menu,
|
|
22856
22856
|
onClick: r,
|
|
22857
22857
|
testId: "chat-message-menu-remind",
|
|
@@ -22867,12 +22867,12 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22867
22867
|
return /* @__PURE__ */ $("div", {
|
|
22868
22868
|
className: "flex flex-col p-1",
|
|
22869
22869
|
children: [Qz(e) ? /* @__PURE__ */ Q(MB, {
|
|
22870
|
-
icon:
|
|
22870
|
+
icon: ic,
|
|
22871
22871
|
label: r.chat.edit,
|
|
22872
22872
|
onClick: t(Qz, () => a(n))
|
|
22873
22873
|
}) : null, Zz(e) ? /* @__PURE__ */ Q(MB, {
|
|
22874
22874
|
critical: !0,
|
|
22875
|
-
icon:
|
|
22875
|
+
icon: Pa,
|
|
22876
22876
|
label: r.actions.delete,
|
|
22877
22877
|
onClick: t(Zz, () => i(n.id))
|
|
22878
22878
|
}) : null]
|
|
@@ -22956,7 +22956,7 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22956
22956
|
children: [Yz(o) ? /* @__PURE__ */ Q(UB, {
|
|
22957
22957
|
request: e,
|
|
22958
22958
|
count: 7,
|
|
22959
|
-
expandIcon:
|
|
22959
|
+
expandIcon: Qs,
|
|
22960
22960
|
onReact: (e, n) => {
|
|
22961
22961
|
c(e, n), t("action");
|
|
22962
22962
|
},
|
|
@@ -23255,7 +23255,7 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
23255
23255
|
let t = 0;
|
|
23256
23256
|
return e.map((e) => {
|
|
23257
23257
|
let n = "";
|
|
23258
|
-
for (let r of
|
|
23258
|
+
for (let r of Ds(e.text)) t = SV.test(r) ? t + 1 : 0, t <= xV && (n += r);
|
|
23259
23259
|
return {
|
|
23260
23260
|
...e,
|
|
23261
23261
|
text: n
|
|
@@ -23281,7 +23281,7 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
23281
23281
|
let n = AV(e).map((e) => ({
|
|
23282
23282
|
paragraph: e,
|
|
23283
23283
|
text: wV(e.runs)
|
|
23284
|
-
})), r = t.length > 0 ?
|
|
23284
|
+
})), r = t.length > 0 ? wr(n.map(({ text: e }) => e).join(bV), t) : [], i = 0;
|
|
23285
23285
|
n.forEach(({ paragraph: e, text: t }) => {
|
|
23286
23286
|
let n = i, a = n + t.length;
|
|
23287
23287
|
i = a + 2;
|
|
@@ -23293,13 +23293,13 @@ var RB = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
23293
23293
|
e.runs = OV(DV(e.runs, o));
|
|
23294
23294
|
});
|
|
23295
23295
|
}, MV = (e, t = []) => {
|
|
23296
|
-
let n = kV(
|
|
23296
|
+
let n = kV(Fr(e).blocks);
|
|
23297
23297
|
return jV(n, t), { blocks: n };
|
|
23298
23298
|
};
|
|
23299
23299
|
//#endregion
|
|
23300
23300
|
//#region src/domains/platform/communications/chat/F0Chat/components/ChatMentionChip.tsx
|
|
23301
23301
|
function NV({ token: e, label: t }) {
|
|
23302
|
-
let n = e.user?.subtitle ? `${t}, ${e.user.subtitle}` : t, r = B("cursor-pointer rounded-sm border-0 bg-transparent p-0 text-f1-foreground-secondary hover:text-f1-foreground", En()), i = e.user?.profileHref ? /* @__PURE__ */ Q(
|
|
23302
|
+
let n = e.user?.subtitle ? `${t}, ${e.user.subtitle}` : t, r = B("cursor-pointer rounded-sm border-0 bg-transparent p-0 text-f1-foreground-secondary hover:text-f1-foreground", En()), i = e.user?.profileHref ? /* @__PURE__ */ Q(yo, {
|
|
23303
23303
|
href: e.user.profileHref,
|
|
23304
23304
|
variant: "unstyled",
|
|
23305
23305
|
stopPropagation: !0,
|
|
@@ -23324,14 +23324,14 @@ function NV({ token: e, label: t }) {
|
|
|
23324
23324
|
//#endregion
|
|
23325
23325
|
//#region src/domains/platform/communications/chat/F0Chat/utils/render-body.tsx
|
|
23326
23326
|
var PV = /(https?:\/\/[^\s]+)/g, FV = (e, t) => {
|
|
23327
|
-
let n =
|
|
23327
|
+
let n = Ds(e), r = n.split(PV);
|
|
23328
23328
|
if (r.length === 1) return n;
|
|
23329
23329
|
let i = new Map((t ?? []).filter((e) => e.title).map((e) => [e.url, e.title]));
|
|
23330
23330
|
return r.map((e, t) => {
|
|
23331
23331
|
if (e.length === 0) return null;
|
|
23332
23332
|
if (t % 2 == 0) return /* @__PURE__ */ Q(Ju, { children: e }, `text-${t}`);
|
|
23333
23333
|
let n = i.get(e);
|
|
23334
|
-
return /* @__PURE__ */ Q(
|
|
23334
|
+
return /* @__PURE__ */ Q(yo, {
|
|
23335
23335
|
href: e,
|
|
23336
23336
|
target: "_blank",
|
|
23337
23337
|
stopPropagation: !0,
|
|
@@ -23342,12 +23342,12 @@ var PV = /(https?:\/\/[^\s]+)/g, FV = (e, t) => {
|
|
|
23342
23342
|
});
|
|
23343
23343
|
}, IV = (e, t, n) => {
|
|
23344
23344
|
if (t.length === 0) return FV(e, n);
|
|
23345
|
-
let r =
|
|
23345
|
+
let r = wr(e, t);
|
|
23346
23346
|
if (r.length === 0) return FV(e, n);
|
|
23347
23347
|
let i = [], a = 0;
|
|
23348
23348
|
return r.forEach((t, r) => {
|
|
23349
23349
|
t.start > a && i.push(/* @__PURE__ */ Q(Ju, { children: FV(e.slice(a, t.start), n) }, `t-${r}`));
|
|
23350
|
-
let o =
|
|
23350
|
+
let o = Ds(e.slice(t.start, t.end));
|
|
23351
23351
|
i.push(/* @__PURE__ */ Q(Ju, { children: /* @__PURE__ */ Q(NV, {
|
|
23352
23352
|
token: t.entry,
|
|
23353
23353
|
label: o
|
|
@@ -23460,12 +23460,12 @@ function aH({ marks: e, children: t }) {
|
|
|
23460
23460
|
//#endregion
|
|
23461
23461
|
//#region src/domains/platform/communications/chat/F0Chat/components/ChatMarkdownLink.tsx
|
|
23462
23462
|
function oH({ link: e, runs: t, previews: n }) {
|
|
23463
|
-
let r = _L(wV(t), e.url), i = r ? n?.find((t) => t.url === e.url && t.title) : void 0, a =
|
|
23464
|
-
return /* @__PURE__ */ Q(
|
|
23463
|
+
let r = _L(wV(t), e.url), i = r ? n?.find((t) => t.url === e.url && t.title) : void 0, a = Ds(i?.title ?? "") || void 0, o = r && !a;
|
|
23464
|
+
return /* @__PURE__ */ Q(yo, {
|
|
23465
23465
|
href: e.url,
|
|
23466
23466
|
target: "_blank",
|
|
23467
23467
|
stopPropagation: !0,
|
|
23468
|
-
title: o ? void 0 :
|
|
23468
|
+
title: o ? void 0 : Ds(e.url),
|
|
23469
23469
|
className: B("whitespace-normal", o ? "break-all" : "break-words"),
|
|
23470
23470
|
children: a ? /* @__PURE__ */ Q(aH, {
|
|
23471
23471
|
marks: TV(t),
|
|
@@ -23584,7 +23584,7 @@ var gH = 1.91, _H = (e, t, n) => {
|
|
|
23584
23584
|
}, yH = (e, t, n, r) => B("flex w-full overflow-hidden rounded-xl text-left no-underline", "bg-f1-background-secondary", "transition-shadow hover:ring-1 hover:ring-inset hover:ring-f1-border-secondary", En("focus-visible:ring-inset"), !n && "rounded-t-sm", !r && "rounded-b-sm", n && !t && (e ? "rounded-tr-xs" : "rounded-tl-xs")), bH = ({ preview: e, host: t, compact: n }) => /* @__PURE__ */ $("div", {
|
|
23585
23585
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 p-2.5",
|
|
23586
23586
|
children: [
|
|
23587
|
-
e.title ? /* @__PURE__ */ Q(
|
|
23587
|
+
e.title ? /* @__PURE__ */ Q(Ia, {
|
|
23588
23588
|
className: "text-base font-medium text-f1-foreground",
|
|
23589
23589
|
children: e.title
|
|
23590
23590
|
}) : null,
|
|
@@ -23592,13 +23592,13 @@ var gH = 1.91, _H = (e, t, n) => {
|
|
|
23592
23592
|
className: B("text-sm text-f1-foreground-secondary", n ? "line-clamp-1" : "line-clamp-2"),
|
|
23593
23593
|
children: e.description
|
|
23594
23594
|
}) : null,
|
|
23595
|
-
/* @__PURE__ */ Q(
|
|
23595
|
+
/* @__PURE__ */ Q(Ia, {
|
|
23596
23596
|
className: "text-sm text-f1-foreground",
|
|
23597
23597
|
children: t
|
|
23598
23598
|
})
|
|
23599
23599
|
]
|
|
23600
23600
|
}), xH = ({ preview: e, host: t, compact: n, className: r, onOpen: i }) => {
|
|
23601
|
-
let a =
|
|
23601
|
+
let a = Ea(e.imageUrl), o = _H(e.imageUrl, a, n);
|
|
23602
23602
|
return /* @__PURE__ */ $("a", {
|
|
23603
23603
|
href: e.url,
|
|
23604
23604
|
onClick: i,
|
|
@@ -23619,7 +23619,7 @@ var gH = 1.91, _H = (e, t, n) => {
|
|
|
23619
23619
|
alt: "",
|
|
23620
23620
|
"aria-hidden": !0,
|
|
23621
23621
|
className: "absolute inset-0 h-full w-full scale-110 object-cover opacity-60 blur-xl"
|
|
23622
|
-
}), /* @__PURE__ */ Q(
|
|
23622
|
+
}), /* @__PURE__ */ Q(mr, {
|
|
23623
23623
|
src: e.imageUrl,
|
|
23624
23624
|
alt: "",
|
|
23625
23625
|
className: "relative h-full w-full object-contain"
|
|
@@ -23630,7 +23630,7 @@ var gH = 1.91, _H = (e, t, n) => {
|
|
|
23630
23630
|
host: t,
|
|
23631
23631
|
compact: n
|
|
23632
23632
|
}),
|
|
23633
|
-
o.kind === "thumb" ? /* @__PURE__ */ Q(
|
|
23633
|
+
o.kind === "thumb" ? /* @__PURE__ */ Q(mr, {
|
|
23634
23634
|
src: e.imageUrl,
|
|
23635
23635
|
alt: "",
|
|
23636
23636
|
style: {
|
|
@@ -23669,7 +23669,7 @@ var gH = 1.91, _H = (e, t, n) => {
|
|
|
23669
23669
|
size: "sm",
|
|
23670
23670
|
hideLabel: !0,
|
|
23671
23671
|
label: a.chat.removeLinkPreview,
|
|
23672
|
-
icon:
|
|
23672
|
+
icon: xo,
|
|
23673
23673
|
onClick: () => r(e.url)
|
|
23674
23674
|
})
|
|
23675
23675
|
}) : null]
|
|
@@ -23679,7 +23679,7 @@ var gH = 1.91, _H = (e, t, n) => {
|
|
|
23679
23679
|
let n = R(), r = Mu(), i = /* @__PURE__ */ Q(DH, { parts: TH(e, n.chat) });
|
|
23680
23680
|
return r === "announcement" ? null : t === "overlay" ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
23681
23681
|
"aria-hidden": !0,
|
|
23682
|
-
className:
|
|
23682
|
+
className: Mo
|
|
23683
23683
|
}), /* @__PURE__ */ Q("span", {
|
|
23684
23684
|
"aria-hidden": !0,
|
|
23685
23685
|
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)]",
|
|
@@ -23759,7 +23759,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23759
23759
|
lastName: e.name.split(" ").slice(1).join(" ")
|
|
23760
23760
|
}, PH = 5, FH = ({ messageId: e, poll: t, onClose: n }) => {
|
|
23761
23761
|
let r = Math.max(0, ...t.options.map(AH));
|
|
23762
|
-
return /* @__PURE__ */ Q(
|
|
23762
|
+
return /* @__PURE__ */ Q(vs, {
|
|
23763
23763
|
isOpen: !0,
|
|
23764
23764
|
onClose: n,
|
|
23765
23765
|
width: "sm",
|
|
@@ -23799,7 +23799,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23799
23799
|
}), n ? /* @__PURE__ */ Q("span", {
|
|
23800
23800
|
className: "flex text-f1-icon-warning",
|
|
23801
23801
|
children: /* @__PURE__ */ Q(U, {
|
|
23802
|
-
icon:
|
|
23802
|
+
icon: Us,
|
|
23803
23803
|
size: "md"
|
|
23804
23804
|
})
|
|
23805
23805
|
}) : null]
|
|
@@ -23810,7 +23810,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23810
23810
|
children: g.map((e) => /* @__PURE__ */ $("li", {
|
|
23811
23811
|
className: "flex items-center gap-3 py-1.5",
|
|
23812
23812
|
"data-testid": "chat-poll-voter",
|
|
23813
|
-
children: [/* @__PURE__ */ Q(
|
|
23813
|
+
children: [/* @__PURE__ */ Q(hc, {
|
|
23814
23814
|
size: "sm",
|
|
23815
23815
|
avatar: {
|
|
23816
23816
|
type: "person",
|
|
@@ -24005,7 +24005,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24005
24005
|
name: n.length === 1 ? n[0].name : void 0
|
|
24006
24006
|
} : r.length > 0 ? { kind: "location" } : i.length > 0 ? { kind: "voice" } : null;
|
|
24007
24007
|
}, GH = (e) => {
|
|
24008
|
-
let t = R(), { body: n = "", bodyFormat: r } = e, i = J(() =>
|
|
24008
|
+
let t = R(), { body: n = "", bodyFormat: r } = e, i = J(() => Ds(LL({
|
|
24009
24009
|
body: n,
|
|
24010
24010
|
bodyFormat: r
|
|
24011
24011
|
}).trim()), [n, r]), a = UH(e.attachments), o = WH(e.attachments);
|
|
@@ -24014,19 +24014,19 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24014
24014
|
thumbnailUrl: a
|
|
24015
24015
|
};
|
|
24016
24016
|
let s = o.kind === "photo" ? {
|
|
24017
|
-
icon:
|
|
24017
|
+
icon: xi,
|
|
24018
24018
|
label: o.count === 1 ? t.chat.photo : t.t("chat.photoCount.other", { count: o.count })
|
|
24019
24019
|
} : o.kind === "file" ? {
|
|
24020
|
-
icon:
|
|
24020
|
+
icon: Yr,
|
|
24021
24021
|
label: o.name ?? t.t("chat.fileCount.other", { count: o.count })
|
|
24022
24022
|
} : o.kind === "location" ? {
|
|
24023
|
-
icon:
|
|
24023
|
+
icon: kr,
|
|
24024
24024
|
label: t.chat.location
|
|
24025
24025
|
} : o.kind === "voice" ? {
|
|
24026
|
-
icon:
|
|
24026
|
+
icon: Da,
|
|
24027
24027
|
label: t.chat.voiceNote
|
|
24028
24028
|
} : {
|
|
24029
|
-
icon:
|
|
24029
|
+
icon: Fo,
|
|
24030
24030
|
label: t.t("chat.attachmentCount.other", { count: o.count })
|
|
24031
24031
|
};
|
|
24032
24032
|
return {
|
|
@@ -24052,7 +24052,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24052
24052
|
className: "ml-2.5 h-9 w-9 shrink-0 self-center rounded-sm object-cover"
|
|
24053
24053
|
}) : null, /* @__PURE__ */ $("div", {
|
|
24054
24054
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 p-2.5",
|
|
24055
|
-
children: [/* @__PURE__ */ Q(
|
|
24055
|
+
children: [/* @__PURE__ */ Q(Ia, {
|
|
24056
24056
|
className: B("text-sm font-medium", $V(e.author)),
|
|
24057
24057
|
children: u
|
|
24058
24058
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -24061,7 +24061,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24061
24061
|
icon: s,
|
|
24062
24062
|
size: "sm",
|
|
24063
24063
|
color: "default"
|
|
24064
|
-
}) : null, /* @__PURE__ */ Q(
|
|
24064
|
+
}) : null, /* @__PURE__ */ Q(Ia, {
|
|
24065
24065
|
className: "min-w-0 text-base",
|
|
24066
24066
|
children: c
|
|
24067
24067
|
})]
|
|
@@ -24239,7 +24239,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24239
24239
|
className: "relative px-3.5 py-2.5",
|
|
24240
24240
|
children: [
|
|
24241
24241
|
n ? /* @__PURE__ */ Q(YH, { author: n }) : null,
|
|
24242
|
-
/* @__PURE__ */ Q(
|
|
24242
|
+
/* @__PURE__ */ Q(_i, {
|
|
24243
24243
|
"data-chat-message-text": !0,
|
|
24244
24244
|
content: o,
|
|
24245
24245
|
format: "html",
|
|
@@ -24254,12 +24254,12 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24254
24254
|
})]
|
|
24255
24255
|
})
|
|
24256
24256
|
});
|
|
24257
|
-
}), eU = (e) => e.kind === "image" ? "image" :
|
|
24257
|
+
}), eU = (e) => e.kind === "image" ? "image" : Vi(e) ? "video" : bs(e) ? "document" : "file", tU = (e) => {
|
|
24258
24258
|
let t = (e ?? []).filter((e) => e.kind === "image");
|
|
24259
24259
|
return t.length === 1 ? t[0] : void 0;
|
|
24260
24260
|
}, nU = (e) => {
|
|
24261
24261
|
if (e.progress !== void 0) return { bucket: "files" };
|
|
24262
|
-
let t =
|
|
24262
|
+
let t = Ls(e, { inferImages: !1 });
|
|
24263
24263
|
switch (t.bucket) {
|
|
24264
24264
|
case "video": return { bucket: "videos" };
|
|
24265
24265
|
case "audio": return { bucket: "audios" };
|
|
@@ -24306,7 +24306,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24306
24306
|
let t = [];
|
|
24307
24307
|
for (let n of e.images) t.push({
|
|
24308
24308
|
file: n,
|
|
24309
|
-
item:
|
|
24309
|
+
item: Ho(n, Eo(t.length, n.url))
|
|
24310
24310
|
});
|
|
24311
24311
|
let n = [
|
|
24312
24312
|
...e.videos,
|
|
@@ -24315,7 +24315,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24315
24315
|
];
|
|
24316
24316
|
for (let e of n) t.push({
|
|
24317
24317
|
file: e,
|
|
24318
|
-
item:
|
|
24318
|
+
item: Wa(e, Eo(t.length, e.url), { inferImages: !1 })
|
|
24319
24319
|
});
|
|
24320
24320
|
return t;
|
|
24321
24321
|
}, aU = (e, t) => e + t > 1, oU = [
|
|
@@ -24325,7 +24325,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24325
24325
|
"text"
|
|
24326
24326
|
], sU = (e) => e !== null && oU.includes(e), cU = (e) => {
|
|
24327
24327
|
if (e.kind !== "document") return null;
|
|
24328
|
-
let t =
|
|
24328
|
+
let t = bs(e.file);
|
|
24329
24329
|
return sU(t) ? t : !e.rendering && sU(e.documentKind) ? e.documentKind : null;
|
|
24330
24330
|
}, lU = (e) => e.kind === "document" ? e.documentKind : e.kind, uU = (e) => e.kind === "image" ? "image" : eU({
|
|
24331
24331
|
kind: "file",
|
|
@@ -24374,7 +24374,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24374
24374
|
}, gU = () => document.activeElement === null || document.activeElement === document.body, _U = () => {
|
|
24375
24375
|
gU() && document.querySelector("[data-chat-viewport]")?.focus({ preventScroll: !0 });
|
|
24376
24376
|
}, vU = ({ children: e, noteOpener: t, showsDraft: n }) => {
|
|
24377
|
-
let r =
|
|
24377
|
+
let r = di(), { channel: i } = Gu(), a = Y(i.id);
|
|
24378
24378
|
q(function() {
|
|
24379
24379
|
a.current !== i.id && (a.current = i.id, r.close());
|
|
24380
24380
|
}, [i.id, r]);
|
|
@@ -24401,7 +24401,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24401
24401
|
a.current = { messageId: e };
|
|
24402
24402
|
}, []), l = G((e) => {
|
|
24403
24403
|
let t = i.current;
|
|
24404
|
-
return t?.origin !== "composer" || !t.items.some((t) =>
|
|
24404
|
+
return t?.origin !== "composer" || !t.items.some((t) => to(t) === e) ? !1 : (i.current = null, !0);
|
|
24405
24405
|
}, []), u = G((e) => {
|
|
24406
24406
|
e.type === "opened" && (i.current = {
|
|
24407
24407
|
origin: e.origin,
|
|
@@ -24424,7 +24424,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24424
24424
|
}, [r]);
|
|
24425
24425
|
return K(() => () => {
|
|
24426
24426
|
o.current !== null && cancelAnimationFrame(o.current);
|
|
24427
|
-
}, []), /* @__PURE__ */ Q(
|
|
24427
|
+
}, []), /* @__PURE__ */ Q(ps, {
|
|
24428
24428
|
onEvent: u,
|
|
24429
24429
|
onFocusFallback: d,
|
|
24430
24430
|
children: /* @__PURE__ */ Q(vU, {
|
|
@@ -24451,19 +24451,19 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24451
24451
|
isLastOfRun: t === f && !d
|
|
24452
24452
|
});
|
|
24453
24453
|
}, SU = (e) => {
|
|
24454
|
-
let { image: t } = e, n =
|
|
24455
|
-
return n && r === t.url ? /* @__PURE__ */ Q(CU, { ...e }) : /* @__PURE__ */ Q(
|
|
24454
|
+
let { image: t } = e, n = Ts(t), [r, i] = X(null);
|
|
24455
|
+
return n && r === t.url ? /* @__PURE__ */ Q(CU, { ...e }) : /* @__PURE__ */ Q(Cs, {
|
|
24456
24456
|
...e,
|
|
24457
24457
|
onImageError: n ? () => i(t.url) : void 0
|
|
24458
24458
|
});
|
|
24459
24459
|
}, CU = ({ image: e, aspectRatio: t, spanFull: n, surfaceClassName: r, overlay: i }) => {
|
|
24460
|
-
let a = R(), o = Nu(), s =
|
|
24460
|
+
let a = R(), o = Nu(), s = Si();
|
|
24461
24461
|
return /* @__PURE__ */ $("div", {
|
|
24462
24462
|
style: { aspectRatio: t },
|
|
24463
24463
|
className: B("relative flex min-w-0 flex-col items-center justify-center gap-2 overflow-hidden p-3", n && "col-span-2", r),
|
|
24464
24464
|
"data-testid": "chat-image-file-fallback",
|
|
24465
24465
|
children: [
|
|
24466
|
-
/* @__PURE__ */ Q(
|
|
24466
|
+
/* @__PURE__ */ Q(dc, {
|
|
24467
24467
|
file: {
|
|
24468
24468
|
name: e.name,
|
|
24469
24469
|
type: e.mimeType ?? ""
|
|
@@ -24473,7 +24473,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24473
24473
|
/* @__PURE__ */ Q("bdi", {
|
|
24474
24474
|
dir: "auto",
|
|
24475
24475
|
className: "min-w-0 max-w-full text-center",
|
|
24476
|
-
children: /* @__PURE__ */ Q(
|
|
24476
|
+
children: /* @__PURE__ */ Q(Ia, {
|
|
24477
24477
|
className: "text-sm font-medium text-f1-foreground",
|
|
24478
24478
|
children: e.name
|
|
24479
24479
|
})
|
|
@@ -24483,7 +24483,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24483
24483
|
variant: "outline",
|
|
24484
24484
|
size: "sm",
|
|
24485
24485
|
hideLabel: !0,
|
|
24486
|
-
icon:
|
|
24486
|
+
icon: oo,
|
|
24487
24487
|
label: a.t("chat.downloadNamedFile", { name: e.name }),
|
|
24488
24488
|
onClick: () => {
|
|
24489
24489
|
s(e.url, e.name), o.onAttachmentDownloaded({ kind: "image" });
|
|
@@ -24494,16 +24494,16 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24494
24494
|
});
|
|
24495
24495
|
}, wU = (e) => {
|
|
24496
24496
|
let t = Nu();
|
|
24497
|
-
return /* @__PURE__ */ Q(
|
|
24497
|
+
return /* @__PURE__ */ Q(Ri, {
|
|
24498
24498
|
...e,
|
|
24499
24499
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: eU(e.file) })
|
|
24500
24500
|
});
|
|
24501
24501
|
}, TU = ({ card: e }) => {
|
|
24502
24502
|
let t = Nu(), { action: n } = e;
|
|
24503
24503
|
return /* @__PURE__ */ Q("div", {
|
|
24504
|
-
className:
|
|
24504
|
+
className: co,
|
|
24505
24505
|
"data-testid": "chat-card-attachment",
|
|
24506
|
-
children: /* @__PURE__ */ Q(
|
|
24506
|
+
children: /* @__PURE__ */ Q(sa, {
|
|
24507
24507
|
avatar: e.avatar,
|
|
24508
24508
|
title: e.title,
|
|
24509
24509
|
description: e.description,
|
|
@@ -24525,7 +24525,7 @@ var kH = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
24525
24525
|
});
|
|
24526
24526
|
}, EU = (e) => {
|
|
24527
24527
|
let t = Nu();
|
|
24528
|
-
return /* @__PURE__ */ Q(
|
|
24528
|
+
return /* @__PURE__ */ Q(Ta, {
|
|
24529
24529
|
...e,
|
|
24530
24530
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: eU(e.file) })
|
|
24531
24531
|
});
|
|
@@ -24537,7 +24537,7 @@ function kU() {
|
|
|
24537
24537
|
return nd(DU);
|
|
24538
24538
|
}
|
|
24539
24539
|
var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ latitude: e, longitude: t }) => `https://www.google.com/maps?q=${e},${t}`, NU = ({ location: e, cornerClass: t = "rounded-xl", surfaceClassName: n, meta: r }) => {
|
|
24540
|
-
let i = R(), a = Nu(), o = kU(), { ref: s, shouldMount: c } =
|
|
24540
|
+
let i = R(), a = Nu(), o = kU(), { ref: s, shouldMount: c } = zo();
|
|
24541
24541
|
return /* @__PURE__ */ Q("a", {
|
|
24542
24542
|
ref: s,
|
|
24543
24543
|
href: MU(e),
|
|
@@ -24547,7 +24547,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24547
24547
|
target: "_blank",
|
|
24548
24548
|
rel: "noopener noreferrer",
|
|
24549
24549
|
"aria-label": e.name ?? i.chat.location,
|
|
24550
|
-
className: B("flex min-w-0 max-w-full flex-col overflow-hidden no-underline",
|
|
24550
|
+
className: B("flex min-w-0 max-w-full flex-col overflow-hidden no-underline", es, "bg-f1-background-tertiary", "transition-shadow hover:ring-1 hover:ring-inset hover:ring-f1-border-secondary", En("focus-visible:ring-inset"), t, n),
|
|
24551
24551
|
"data-testid": "chat-location-attachment",
|
|
24552
24552
|
children: /* @__PURE__ */ $("div", {
|
|
24553
24553
|
className: "pointer-events-none relative w-full",
|
|
@@ -24588,7 +24588,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24588
24588
|
});
|
|
24589
24589
|
}, PU = ({ surface: e }) => /* @__PURE__ */ Q(z, { className: B("h-full w-full rounded-none motion-reduce:animate-none", e) }), FU = (e) => {
|
|
24590
24590
|
let t = Nu();
|
|
24591
|
-
return /* @__PURE__ */ Q(
|
|
24591
|
+
return /* @__PURE__ */ Q(br, {
|
|
24592
24592
|
...e,
|
|
24593
24593
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: "video" })
|
|
24594
24594
|
});
|
|
@@ -24645,7 +24645,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24645
24645
|
};
|
|
24646
24646
|
}, [e]), t;
|
|
24647
24647
|
}, qU = ({ voice: e, isMine: t = !1, cornerClass: n = "rounded-xl", className: r, surfaceClassName: i }) => {
|
|
24648
|
-
let a = R(), o = Y(null), s =
|
|
24648
|
+
let a = R(), o = Y(null), s = gs(o), c = KU(e.url), [l, u] = X(0), d = Y(null), f = Nu(), p = kU(), m = Fu(), h = s.duration > 0 ? s.duration : e.durationSeconds ?? 0, g = h > 0 ? Math.min(1, s.currentTime / h) : 0, _ = G(() => {
|
|
24649
24649
|
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());
|
|
24650
24650
|
}, [
|
|
24651
24651
|
s,
|
|
@@ -24691,7 +24691,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24691
24691
|
e.preventDefault(), s.seek(Math.min(h, Math.max(0, n)));
|
|
24692
24692
|
}, [h, s]);
|
|
24693
24693
|
return /* @__PURE__ */ $("div", {
|
|
24694
|
-
className: B("group/voice flex h-[58px] min-w-0 items-center gap-2 p-3",
|
|
24694
|
+
className: B("group/voice flex h-[58px] min-w-0 items-center gap-2 p-3", co, t ? "bg-f1-background-tertiary" : "bg-f1-background", n, r, i),
|
|
24695
24695
|
"data-testid": "chat-voice-attachment",
|
|
24696
24696
|
children: [
|
|
24697
24697
|
/* @__PURE__ */ Q("audio", {
|
|
@@ -24760,11 +24760,11 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24760
24760
|
surfaceClassName: i
|
|
24761
24761
|
})
|
|
24762
24762
|
}), YU = ({ message: e, isMine: t, isFirstOfRun: n = !0, isLastOfRun: r = !0, hasAvatar: i = !1, showMeta: a = !0 }) => {
|
|
24763
|
-
let o = R(), s = Nu(), { noteOpener: c } = pU(), l = e.attachments, u = J(() => rU(l ?? []), [l]), d = J(() => iU(u), [u]), f =
|
|
24763
|
+
let o = R(), s = Nu(), { noteOpener: c } = pU(), l = e.attachments, u = J(() => rU(l ?? []), [l]), d = J(() => iU(u), [u]), f = da(d, "transcript", { sender: t ? void 0 : e.author.name }), p = (t) => {
|
|
24764
24764
|
c(e.id), f.openFile(t);
|
|
24765
|
-
}, m = tU(l), h =
|
|
24765
|
+
}, m = tU(l), h = Ea(m ? m.thumbnailUrl ?? m.url : void 0, m) ?? void 0;
|
|
24766
24766
|
if (!l || l.length === 0) return null;
|
|
24767
|
-
let g = eH(t), _ = "bg-f1-background-tertiary", { images: v, videos: y, documents: b, audios: x, files: S, locations: C, voices: w, cards: T } = u, E = m ?
|
|
24767
|
+
let g = eH(t), _ = "bg-f1-background-tertiary", { images: v, videos: y, documents: b, audios: x, files: S, locations: C, voices: w, cards: T } = u, E = m ? Ps(h?.width, h?.height) : null, D = !a || HL(e) || e.replyTo || e.deleted ? null : b.length > 0 || S.length > 0 || w.length > 0 || x.length > 0 || T.length > 0 ? "below" : C.length > 0 ? "location" : y.length > 0 ? "video" : v.length > 0 ? "image" : null, O = aU(b.length, S.length), k = {
|
|
24768
24768
|
counts: {
|
|
24769
24769
|
images: v.length,
|
|
24770
24770
|
videos: y.length,
|
|
@@ -24787,9 +24787,9 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24787
24787
|
children: [
|
|
24788
24788
|
v.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
24789
24789
|
style: E ? { width: E.width } : void 0,
|
|
24790
|
-
className: B("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", E ? "max-w-full" :
|
|
24790
|
+
className: B("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", E ? "max-w-full" : co, Va, A("images")),
|
|
24791
24791
|
"data-testid": "chat-image-album",
|
|
24792
|
-
children:
|
|
24792
|
+
children: hs(h ? [h] : v).map((t, n, r) => {
|
|
24793
24793
|
let i = v[t.index];
|
|
24794
24794
|
if (!i) return null;
|
|
24795
24795
|
let a = D === "image" && n === r.length - 1;
|
|
@@ -24803,7 +24803,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24803
24803
|
onOpen: () => p(i),
|
|
24804
24804
|
overlay: t.hiddenCount > 0 ? /* @__PURE__ */ Q("span", {
|
|
24805
24805
|
"aria-hidden": !0,
|
|
24806
|
-
className: B("pointer-events-none absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse",
|
|
24806
|
+
className: B("pointer-events-none absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse", us),
|
|
24807
24807
|
"data-testid": "chat-image-album-more",
|
|
24808
24808
|
children: `+${t.hiddenCount}`
|
|
24809
24809
|
}) : a ? /* @__PURE__ */ Q(CH, {
|
|
@@ -24860,8 +24860,8 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24860
24860
|
cornerClass: "rounded-xl",
|
|
24861
24861
|
onOpen: f.hasViewer ? () => p(e) : void 0
|
|
24862
24862
|
}, `${e.url}-${n}`)) : null, S.map((e, t) => {
|
|
24863
|
-
let n =
|
|
24864
|
-
return /* @__PURE__ */ Q(
|
|
24863
|
+
let n = Ii(e) ?? "";
|
|
24864
|
+
return /* @__PURE__ */ Q(as, {
|
|
24865
24865
|
file: {
|
|
24866
24866
|
...e,
|
|
24867
24867
|
mimeType: n
|
|
@@ -24870,9 +24870,9 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24870
24870
|
testId: "chat-file-tile",
|
|
24871
24871
|
action: {
|
|
24872
24872
|
label: o.t("chat.downloadNamedFile", { name: e.name }),
|
|
24873
|
-
icon:
|
|
24873
|
+
icon: oo,
|
|
24874
24874
|
onClick: () => {
|
|
24875
|
-
|
|
24875
|
+
ii(e.url, e.name), s.onAttachmentDownloaded({ kind: eU(e) });
|
|
24876
24876
|
}
|
|
24877
24877
|
}
|
|
24878
24878
|
}, `${e.url}-${t}`);
|
|
@@ -24897,7 +24897,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24897
24897
|
hideLabel: !0,
|
|
24898
24898
|
noAutoTooltip: !0,
|
|
24899
24899
|
label: i.chat.moreActions,
|
|
24900
|
-
icon:
|
|
24900
|
+
icon: Qs,
|
|
24901
24901
|
pressed: n,
|
|
24902
24902
|
"aria-haspopup": "dialog",
|
|
24903
24903
|
"aria-expanded": n,
|
|
@@ -24921,7 +24921,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
24921
24921
|
"data-testid": "chat-failed-indicator",
|
|
24922
24922
|
onClick: (e) => n(e.currentTarget),
|
|
24923
24923
|
children: /* @__PURE__ */ Q(U, {
|
|
24924
|
-
icon:
|
|
24924
|
+
icon: Di,
|
|
24925
24925
|
size: "sm",
|
|
24926
24926
|
color: "critical-bold"
|
|
24927
24927
|
})
|
|
@@ -25017,7 +25017,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
25017
25017
|
variant: "ghost",
|
|
25018
25018
|
hideLabel: !0,
|
|
25019
25019
|
label: oz(new Date(e)),
|
|
25020
|
-
icon:
|
|
25020
|
+
icon: eo
|
|
25021
25021
|
}) : null
|
|
25022
25022
|
});
|
|
25023
25023
|
}, oW = ({ icon: e, children: t, testId: n }) => /* @__PURE__ */ $("span", {
|
|
@@ -25030,7 +25030,7 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
25030
25030
|
}), sW = ({ forwardedFrom: e }) => {
|
|
25031
25031
|
let t = R(), n = e.channelTitle ? t.t("chat.forwardedFrom", { channel: e.channelTitle }) : t.chat.forwarded;
|
|
25032
25032
|
return /* @__PURE__ */ Q(oW, {
|
|
25033
|
-
icon:
|
|
25033
|
+
icon: Wi,
|
|
25034
25034
|
testId: "chat-forwarded-tag",
|
|
25035
25035
|
children: n
|
|
25036
25036
|
});
|
|
@@ -25040,18 +25040,18 @@ var AU = ed(() => import("./LocationMap-CRcaItG1.js")), jU = 3 / 2, MU = ({ lati
|
|
|
25040
25040
|
let r = /* @__PURE__ */ new Date(), i = e.reminder ? new Date(e.reminder.remindAt) : null, a = i && i > r ? SB(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;
|
|
25041
25041
|
return !s && !a && !e.forwardedFrom ? null : /* @__PURE__ */ $(Z, { children: [
|
|
25042
25042
|
s ? /* @__PURE__ */ Q(oW, {
|
|
25043
|
-
icon:
|
|
25043
|
+
icon: ga,
|
|
25044
25044
|
testId: "chat-pinned-tag",
|
|
25045
25045
|
children: s
|
|
25046
25046
|
}) : null,
|
|
25047
25047
|
a ? /* @__PURE__ */ Q(oW, {
|
|
25048
|
-
icon:
|
|
25048
|
+
icon: vi,
|
|
25049
25049
|
testId: "chat-reminder-tag",
|
|
25050
25050
|
children: n.t("chat.remind.current", { when: a })
|
|
25051
25051
|
}) : null,
|
|
25052
25052
|
e.forwardedFrom ? /* @__PURE__ */ Q(sW, { forwardedFrom: e.forwardedFrom }) : null
|
|
25053
25053
|
] });
|
|
25054
|
-
}, lW = 420, uW = (e) => /* @__PURE__ */ Q(
|
|
25054
|
+
}, lW = 420, uW = (e) => /* @__PURE__ */ Q(_i, {
|
|
25055
25055
|
content: e,
|
|
25056
25056
|
format: "markdown"
|
|
25057
25057
|
});
|
|
@@ -25060,7 +25060,7 @@ function dW({ message: e, readable: t, isAsker: n, collapsible: r = !1 }) {
|
|
|
25060
25060
|
if (!t) return null;
|
|
25061
25061
|
let { body: c, attachments: l, fullAnswerUrl: u } = t, d = r && c.length > lW, f = d && !o, p = Wz(l), m = l.filter(Uz), h = !!a.renderMarkdown, g = a.renderMarkdown ?? uW;
|
|
25062
25062
|
return /* @__PURE__ */ $(Z, { children: [
|
|
25063
|
-
c ? /* @__PURE__ */ Q(
|
|
25063
|
+
c ? /* @__PURE__ */ Q(bi, { children: /* @__PURE__ */ Q("div", {
|
|
25064
25064
|
className: B("w-full min-w-0", h && "[&>div]:flex [&>div]:flex-col [&>div]:gap-3", f && "max-h-32 overflow-hidden"),
|
|
25065
25065
|
children: g(c)
|
|
25066
25066
|
}) }) : null,
|
|
@@ -25076,7 +25076,7 @@ function dW({ message: e, readable: t, isAsker: n, collapsible: r = !1 }) {
|
|
|
25076
25076
|
}) : null,
|
|
25077
25077
|
u && n ? /* @__PURE__ */ Q("div", {
|
|
25078
25078
|
className: "text-sm",
|
|
25079
|
-
children: /* @__PURE__ */ Q(
|
|
25079
|
+
children: /* @__PURE__ */ Q(yo, {
|
|
25080
25080
|
href: u,
|
|
25081
25081
|
target: "_blank",
|
|
25082
25082
|
stopPropagation: !0,
|
|
@@ -25261,7 +25261,7 @@ var yW = td(function({ message: e, answer: t }) {
|
|
|
25261
25261
|
children: [/* @__PURE__ */ $("div", {
|
|
25262
25262
|
className: "flex min-w-0 items-center gap-1.5 text-sm",
|
|
25263
25263
|
children: [
|
|
25264
|
-
/* @__PURE__ */ Q(
|
|
25264
|
+
/* @__PURE__ */ Q($i, {
|
|
25265
25265
|
size: "xs",
|
|
25266
25266
|
"aria-hidden": !0,
|
|
25267
25267
|
className: "shrink-0"
|
|
@@ -25599,7 +25599,7 @@ var yW = td(function({ message: e, answer: t }) {
|
|
|
25599
25599
|
/* @__PURE__ */ Q("div", { className: "h-px flex-1 bg-f1-border-secondary" })
|
|
25600
25600
|
]
|
|
25601
25601
|
});
|
|
25602
|
-
}, RW = (e) => /* @__PURE__ */ Q(
|
|
25602
|
+
}, RW = (e) => /* @__PURE__ */ Q(hc, {
|
|
25603
25603
|
size: "xs",
|
|
25604
25604
|
avatar: e.avatar ?? {
|
|
25605
25605
|
type: "person",
|
|
@@ -26416,7 +26416,7 @@ var rK = ({ channel: e }) => {
|
|
|
26416
26416
|
},
|
|
26417
26417
|
transition: {
|
|
26418
26418
|
duration: r,
|
|
26419
|
-
ease:
|
|
26419
|
+
ease: po
|
|
26420
26420
|
},
|
|
26421
26421
|
children: /* @__PURE__ */ Q(rr.div, {
|
|
26422
26422
|
className: "pointer-events-auto",
|
|
@@ -26424,9 +26424,9 @@ var rK = ({ channel: e }) => {
|
|
|
26424
26424
|
animate: { scale: 1 },
|
|
26425
26425
|
transition: {
|
|
26426
26426
|
duration: r,
|
|
26427
|
-
ease:
|
|
26427
|
+
ease: po
|
|
26428
26428
|
},
|
|
26429
|
-
children: /* @__PURE__ */ Q(
|
|
26429
|
+
children: /* @__PURE__ */ Q(ci, {
|
|
26430
26430
|
label: l,
|
|
26431
26431
|
showLabel: t > 0 || n,
|
|
26432
26432
|
onClick: () => {
|
|
@@ -26726,7 +26726,7 @@ var rK = ({ channel: e }) => {
|
|
|
26726
26726
|
onJumpToBottom: Te
|
|
26727
26727
|
}) : null]
|
|
26728
26728
|
});
|
|
26729
|
-
}, gK = ed(() => import("./ChatPostComposerDialog-
|
|
26729
|
+
}, gK = ed(() => import("./ChatPostComposerDialog-UWNCaU6S.js").then((e) => ({ default: e.ChatPostComposerDialog }))), _K = () => {
|
|
26730
26730
|
let e = R(), { createPost: t, composePost: n, searchMembers: r } = Gu(), i = Nu(), [a, o] = X(!1);
|
|
26731
26731
|
return !t && !n ? null : /* @__PURE__ */ $("div", {
|
|
26732
26732
|
className: "pointer-events-none shrink-0 p-4 pt-0",
|
|
@@ -26740,7 +26740,7 @@ var rK = ({ channel: e }) => {
|
|
|
26740
26740
|
},
|
|
26741
26741
|
className: "flex w-full items-center gap-2 rounded-lg border border-solid border-f1-border-secondary hover:border-f1-border bg-f1-background/90 px-3 py-2.5 text-left shadow-md backdrop-blur-[2px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-f1-border-selected",
|
|
26742
26742
|
children: [/* @__PURE__ */ Q(U, {
|
|
26743
|
-
icon:
|
|
26743
|
+
icon: ic,
|
|
26744
26744
|
size: "md",
|
|
26745
26745
|
color: "secondary"
|
|
26746
26746
|
}), /* @__PURE__ */ Q("span", {
|
|
@@ -26868,7 +26868,7 @@ var rK = ({ channel: e }) => {
|
|
|
26868
26868
|
variant: "outline",
|
|
26869
26869
|
size: "sm",
|
|
26870
26870
|
label: e.chat.retry,
|
|
26871
|
-
icon:
|
|
26871
|
+
icon: ui,
|
|
26872
26872
|
onClick: () => void t()
|
|
26873
26873
|
}) : null]
|
|
26874
26874
|
}) });
|
|
@@ -26889,10 +26889,10 @@ var rK = ({ channel: e }) => {
|
|
|
26889
26889
|
}), OK = ({ attachment: e, uploading: t, onRemove: n, onOpen: r }) => {
|
|
26890
26890
|
let i = R(), a = {
|
|
26891
26891
|
label: i.t("chat.removeNamedFile", { name: e.kind === "location" ? e.name ?? i.chat.location : e.kind === "voice" ? i.chat.voiceNote : e.name }),
|
|
26892
|
-
icon:
|
|
26892
|
+
icon: xo,
|
|
26893
26893
|
onClick: n
|
|
26894
26894
|
};
|
|
26895
|
-
return e.kind === "image" || e.kind === "file" ? /* @__PURE__ */ Q(
|
|
26895
|
+
return e.kind === "image" || e.kind === "file" ? /* @__PURE__ */ Q(ha, {
|
|
26896
26896
|
attachment: e,
|
|
26897
26897
|
status: t ? "uploading" : "ready",
|
|
26898
26898
|
removeLabel: a.label,
|
|
@@ -26966,7 +26966,7 @@ var rK = ({ channel: e }) => {
|
|
|
26966
26966
|
...n,
|
|
26967
26967
|
text: t
|
|
26968
26968
|
} : n))), p = (e) => s((t) => PK(t.filter((t) => t.id !== e)));
|
|
26969
|
-
return /* @__PURE__ */ Q(
|
|
26969
|
+
return /* @__PURE__ */ Q(vs, {
|
|
26970
26970
|
isOpen: !0,
|
|
26971
26971
|
onClose: t,
|
|
26972
26972
|
width: "sm",
|
|
@@ -26990,7 +26990,7 @@ var rK = ({ channel: e }) => {
|
|
|
26990
26990
|
className: "flex flex-col gap-4",
|
|
26991
26991
|
"data-testid": "chat-poll-composer",
|
|
26992
26992
|
children: [
|
|
26993
|
-
/* @__PURE__ */ Q(
|
|
26993
|
+
/* @__PURE__ */ Q(Na, {
|
|
26994
26994
|
label: n.chat.poll.question,
|
|
26995
26995
|
placeholder: n.chat.poll.questionPlaceholder,
|
|
26996
26996
|
value: i,
|
|
@@ -27008,7 +27008,7 @@ var rK = ({ channel: e }) => {
|
|
|
27008
27008
|
onBlur: () => s(PK),
|
|
27009
27009
|
children: [/* @__PURE__ */ Q("div", {
|
|
27010
27010
|
className: "min-w-0 flex-1",
|
|
27011
|
-
children: /* @__PURE__ */ Q(
|
|
27011
|
+
children: /* @__PURE__ */ Q(Na, {
|
|
27012
27012
|
hideLabel: !0,
|
|
27013
27013
|
label: `${n.chat.poll.options} ${t + 1}`,
|
|
27014
27014
|
placeholder: n.chat.poll.optionPlaceholder,
|
|
@@ -27023,7 +27023,7 @@ var rK = ({ channel: e }) => {
|
|
|
27023
27023
|
variant: "ghost",
|
|
27024
27024
|
size: "md",
|
|
27025
27025
|
hideLabel: !0,
|
|
27026
|
-
icon:
|
|
27026
|
+
icon: xo,
|
|
27027
27027
|
label: n.chat.poll.removeOption,
|
|
27028
27028
|
onClick: () => p(e.id)
|
|
27029
27029
|
})]
|
|
@@ -27050,16 +27050,16 @@ var rK = ({ channel: e }) => {
|
|
|
27050
27050
|
}, LK = ({ onAttach: e, canAttach: t, onEmoji: n, onCreatePoll: r }) => {
|
|
27051
27051
|
let i = R(), [a, o] = X(!1), [s, c] = X(!1), [l, u] = X(!1), d = [{
|
|
27052
27052
|
label: i.chat.files,
|
|
27053
|
-
icon:
|
|
27053
|
+
icon: Fo,
|
|
27054
27054
|
onClick: e,
|
|
27055
27055
|
disabled: !t
|
|
27056
27056
|
}, {
|
|
27057
27057
|
label: i.chat.poll.menu,
|
|
27058
|
-
icon:
|
|
27058
|
+
icon: Fi,
|
|
27059
27059
|
onClick: () => u(!0)
|
|
27060
27060
|
}];
|
|
27061
27061
|
return /* @__PURE__ */ $(Z, { children: [
|
|
27062
|
-
r ? /* @__PURE__ */ Q(
|
|
27062
|
+
r ? /* @__PURE__ */ Q(ti, {
|
|
27063
27063
|
items: d,
|
|
27064
27064
|
align: "start",
|
|
27065
27065
|
side: "top",
|
|
@@ -27080,7 +27080,7 @@ var rK = ({ channel: e }) => {
|
|
|
27080
27080
|
size: "md",
|
|
27081
27081
|
hideLabel: !0,
|
|
27082
27082
|
label: i.chat.attachFile,
|
|
27083
|
-
icon:
|
|
27083
|
+
icon: Fo,
|
|
27084
27084
|
onClick: e,
|
|
27085
27085
|
disabled: !t
|
|
27086
27086
|
}),
|
|
@@ -27101,7 +27101,7 @@ var rK = ({ channel: e }) => {
|
|
|
27101
27101
|
size: "md",
|
|
27102
27102
|
hideLabel: !0,
|
|
27103
27103
|
label: i.chat.addEmoji,
|
|
27104
|
-
icon:
|
|
27104
|
+
icon: Zr,
|
|
27105
27105
|
pressed: a
|
|
27106
27106
|
})
|
|
27107
27107
|
}), /* @__PURE__ */ Q(Vl, {
|
|
@@ -27133,7 +27133,7 @@ var rK = ({ channel: e }) => {
|
|
|
27133
27133
|
children: [/* @__PURE__ */ $("span", {
|
|
27134
27134
|
className: "flex w-fit items-center gap-1 text-sm font-medium text-f1-foreground-info",
|
|
27135
27135
|
children: [/* @__PURE__ */ Q(U, {
|
|
27136
|
-
icon:
|
|
27136
|
+
icon: ic,
|
|
27137
27137
|
size: "xs"
|
|
27138
27138
|
}), n.chat.editing]
|
|
27139
27139
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -27156,7 +27156,7 @@ var rK = ({ channel: e }) => {
|
|
|
27156
27156
|
size: "sm",
|
|
27157
27157
|
hideLabel: !0,
|
|
27158
27158
|
label: n.chat.cancelEdit,
|
|
27159
|
-
icon:
|
|
27159
|
+
icon: xo,
|
|
27160
27160
|
onClick: t
|
|
27161
27161
|
})
|
|
27162
27162
|
})
|
|
@@ -27184,7 +27184,7 @@ function zK({ message: e }) {
|
|
|
27184
27184
|
children: [/* @__PURE__ */ Q("div", {
|
|
27185
27185
|
"aria-hidden": "true",
|
|
27186
27186
|
className: "h-6 w-6 flex-shrink-0",
|
|
27187
|
-
children: /* @__PURE__ */ Q(
|
|
27187
|
+
children: /* @__PURE__ */ Q(Rr, {
|
|
27188
27188
|
type: "warning",
|
|
27189
27189
|
size: "sm"
|
|
27190
27190
|
})
|
|
@@ -27236,7 +27236,7 @@ var BK = ({ message: e, onRemove: t }) => {
|
|
|
27236
27236
|
size: "sm",
|
|
27237
27237
|
hideLabel: !0,
|
|
27238
27238
|
label: n.chat.removeQuote,
|
|
27239
|
-
icon:
|
|
27239
|
+
icon: xo,
|
|
27240
27240
|
onClick: t
|
|
27241
27241
|
})
|
|
27242
27242
|
})
|
|
@@ -27423,7 +27423,7 @@ function aq({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
|
|
|
27423
27423
|
if (!g || !m) return null;
|
|
27424
27424
|
let e = i.current;
|
|
27425
27425
|
if (!e) return null;
|
|
27426
|
-
let t =
|
|
27426
|
+
let t = Ui(e, m.colonIndex);
|
|
27427
27427
|
return {
|
|
27428
27428
|
left: e.offsetLeft + t.left,
|
|
27429
27429
|
bottom: (e.offsetParent ? e.offsetParent.offsetHeight : 0) - (e.offsetTop + t.top)
|
|
@@ -27744,7 +27744,7 @@ var vq = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
27744
27744
|
size: e.size,
|
|
27745
27745
|
mimeType: e.type
|
|
27746
27746
|
}, Tq = (e, t) => e && t, Eq = (e, { maxFileSizeBytes: t, maxFiles: n, attached: r, labels: i }) => {
|
|
27747
|
-
let a = t === void 0 ? [] : e.filter((e) => e.size > t), o = t !== void 0 && a.length > 0 ? i.fileTooLargeError.replace("{{maxFileSize}}",
|
|
27747
|
+
let a = t === void 0 ? [] : e.filter((e) => e.size > t), o = t !== void 0 && a.length > 0 ? i.fileTooLargeError.replace("{{maxFileSize}}", Ms(t)) : null, s = e.filter((e) => !a.includes(e));
|
|
27748
27748
|
if (n === void 0 || r + s.length <= n) return {
|
|
27749
27749
|
tooLarge: a,
|
|
27750
27750
|
accepted: s,
|
|
@@ -27757,7 +27757,7 @@ var vq = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
27757
27757
|
error: o === null ? c : `${o}. ${c}`
|
|
27758
27758
|
};
|
|
27759
27759
|
}, Dq = () => {
|
|
27760
|
-
let e = R(), { sendMessage: t, editMessage: n, onInputActivity: r, stopTyping: i, uploadFiles: a, transcribe: o, maxFiles: s, maxFileSizeBytes: c, onFileTooLarge: l, maxMessageCharacters: u, channel: d, searchMembers: f, capabilities: p, createPoll: m } = Gu(), h = vq(p, d.type), g = !!a && zz("canUpload", d.type, p), { target: _ } = lR(), { clearComposeTarget: v, registerComposerHandle: y } = uR(), b = hq(), { registerFileDropHandler: x } = dR(), S = Nu(), { reducedMotion: C, composerVariant: w, isComposerMarkdown: T } = kR(), E = nd(VK), D = zL(T), O = !!C, k = Y(null), [A, j] = X([]), M = Y(null), N = Y(null), P = Y(/* @__PURE__ */ new Set()), F = Y(0), { error: I, show: ee, clear: te } =
|
|
27760
|
+
let e = R(), { sendMessage: t, editMessage: n, onInputActivity: r, stopTyping: i, uploadFiles: a, transcribe: o, maxFiles: s, maxFileSizeBytes: c, onFileTooLarge: l, maxMessageCharacters: u, channel: d, searchMembers: f, capabilities: p, createPoll: m } = Gu(), h = vq(p, d.type), g = !!a && zz("canUpload", d.type, p), { target: _ } = lR(), { clearComposeTarget: v, registerComposerHandle: y } = uR(), b = hq(), { registerFileDropHandler: x } = dR(), S = Nu(), { reducedMotion: C, composerVariant: w, isComposerMarkdown: T } = kR(), E = nd(VK), D = zL(T), O = !!C, k = Y(null), [A, j] = X([]), M = Y(null), N = Y(null), P = Y(/* @__PURE__ */ new Set()), F = Y(0), { error: I, show: ee, clear: te } = ba(), ne = _.kind === "edit", re = _.kind === "edit" ? _.message : null, ie = _.kind === "reply" ? _.message : null, ae = fq({
|
|
27761
27761
|
composerRef: k,
|
|
27762
27762
|
canAskOne: h,
|
|
27763
27763
|
isEditing: ne,
|
|
@@ -27876,21 +27876,21 @@ var vq = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
27876
27876
|
let e = [];
|
|
27877
27877
|
for (let { status: t, attachment: n } of xe) if (t === "ready") {
|
|
27878
27878
|
if (n.kind === "image") {
|
|
27879
|
-
let t =
|
|
27879
|
+
let t = Eo(e.length, n.url);
|
|
27880
27880
|
e.push({
|
|
27881
27881
|
file: n,
|
|
27882
|
-
item:
|
|
27882
|
+
item: Ho(n, t)
|
|
27883
27883
|
});
|
|
27884
27884
|
} else if (n.kind === "file") {
|
|
27885
|
-
let t =
|
|
27885
|
+
let t = Eo(e.length, n.url);
|
|
27886
27886
|
e.push({
|
|
27887
27887
|
file: n,
|
|
27888
|
-
item:
|
|
27888
|
+
item: Wa(n, t, { inferImages: !1 })
|
|
27889
27889
|
});
|
|
27890
27890
|
}
|
|
27891
27891
|
}
|
|
27892
27892
|
return e;
|
|
27893
|
-
}, [xe]), Ce =
|
|
27893
|
+
}, [xe]), Ce = da(Se, "composer"), { closeDraft: we } = pU(), Te = Y(0);
|
|
27894
27894
|
K(() => {
|
|
27895
27895
|
Te.current = A.length;
|
|
27896
27896
|
}, [A]);
|
|
@@ -28079,7 +28079,7 @@ var vq = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
28079
28079
|
});
|
|
28080
28080
|
}, [S]), Be = {
|
|
28081
28081
|
duration: O ? 0 : .18,
|
|
28082
|
-
ease:
|
|
28082
|
+
ease: po
|
|
28083
28083
|
}, Ve = J(() => [...A.map((e) => e.attachment), ...ie?.attachments ?? []], [A, ie]), He = _q({
|
|
28084
28084
|
visible: ae.showHint,
|
|
28085
28085
|
attachments: Ve
|
|
@@ -28127,7 +28127,7 @@ var vq = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
28127
28127
|
}, "reply-chip") : null
|
|
28128
28128
|
}), We = (e) => Se.some((t) => t.file === e && t.item !== null) ? () => {
|
|
28129
28129
|
Ce.openFile(e);
|
|
28130
|
-
} : void 0, Ge = /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(zK, { message: He }), /* @__PURE__ */ Q(
|
|
28130
|
+
} : void 0, Ge = /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(zK, { message: He }), /* @__PURE__ */ Q(oa, {
|
|
28131
28131
|
items: xe.map((e) => ({
|
|
28132
28132
|
id: e.id,
|
|
28133
28133
|
content: /* @__PURE__ */ Q(kK, {
|
|
@@ -28721,7 +28721,7 @@ var Qq = bn(Tn("F0ENPSButton", Zq)), $q = {
|
|
|
28721
28721
|
children: e
|
|
28722
28722
|
}) : null
|
|
28723
28723
|
});
|
|
28724
|
-
}), { Skeleton: jt.Skeleton }), fJ =
|
|
28724
|
+
}), { Skeleton: jt.Skeleton }), fJ = Ro(Qu(function({ canBeBlurred: e, ...t }, n) {
|
|
28725
28725
|
let r = {
|
|
28726
28726
|
...t,
|
|
28727
28727
|
header: {
|
|
@@ -28749,7 +28749,7 @@ var Qq = bn(Tn("F0ENPSButton", Zq)), $q = {
|
|
|
28749
28749
|
...e.chart
|
|
28750
28750
|
})
|
|
28751
28751
|
});
|
|
28752
|
-
}), hJ = Tn("BarChartWidget",
|
|
28752
|
+
}), hJ = Tn("BarChartWidget", Ro(mJ, dJ.Skeleton)), gJ = Ro(Qu(function(e, t) {
|
|
28753
28753
|
return /* @__PURE__ */ Q(dJ, {
|
|
28754
28754
|
ref: t,
|
|
28755
28755
|
...e,
|
|
@@ -28758,19 +28758,19 @@ var Qq = bn(Tn("F0ENPSButton", Zq)), $q = {
|
|
|
28758
28758
|
...e.chart
|
|
28759
28759
|
})
|
|
28760
28760
|
});
|
|
28761
|
-
}), dJ.Skeleton), _J = Tn("LineChartWidget", gJ), vJ =
|
|
28761
|
+
}), dJ.Skeleton), _J = Tn("LineChartWidget", gJ), vJ = Ro(Qu(function(e, t) {
|
|
28762
28762
|
return /* @__PURE__ */ Q(dJ, {
|
|
28763
28763
|
ref: t,
|
|
28764
28764
|
...e,
|
|
28765
28765
|
chart: /* @__PURE__ */ Q(te, { ...e.chart })
|
|
28766
28766
|
});
|
|
28767
|
-
}), dJ.Skeleton), yJ = Tn("PieChartWidget", vJ), bJ =
|
|
28767
|
+
}), dJ.Skeleton), yJ = Tn("PieChartWidget", vJ), bJ = Ro(Qu(function(e, t) {
|
|
28768
28768
|
return /* @__PURE__ */ Q(dJ, {
|
|
28769
28769
|
ref: t,
|
|
28770
28770
|
...e,
|
|
28771
28771
|
chart: null
|
|
28772
28772
|
});
|
|
28773
|
-
}), dJ.Skeleton), xJ = Tn("SummariesWidget", bJ), SJ =
|
|
28773
|
+
}), dJ.Skeleton), xJ = Tn("SummariesWidget", bJ), SJ = Ro(Qu(function(e, t) {
|
|
28774
28774
|
return /* @__PURE__ */ Q(dJ, {
|
|
28775
28775
|
ref: t,
|
|
28776
28776
|
...e,
|
|
@@ -29068,13 +29068,13 @@ var Qq = bn(Tn("F0ENPSButton", Zq)), $q = {
|
|
|
29068
29068
|
"bar-chart": "promote"
|
|
29069
29069
|
}, IJ = Qu(function({ title: e, content: t, buttonLabel: n, buttonIcon: r, buttonAction: i, type: a }, o) {
|
|
29070
29070
|
let s = MJ[a], c = NJ[a], l = PJ[a], u = FJ[a];
|
|
29071
|
-
return /* @__PURE__ */ $(
|
|
29071
|
+
return /* @__PURE__ */ $(ms, {
|
|
29072
29072
|
className: B("relative flex gap-4 overflow-hidden border-dashed", s),
|
|
29073
29073
|
ref: o,
|
|
29074
|
-
children: [/* @__PURE__ */ Q(
|
|
29074
|
+
children: [/* @__PURE__ */ Q(Oo, {
|
|
29075
29075
|
className: "-mt-0.5",
|
|
29076
|
-
children: /* @__PURE__ */ Q(
|
|
29077
|
-
}), /* @__PURE__ */ $(
|
|
29076
|
+
children: /* @__PURE__ */ Q(Xa, { children: e })
|
|
29077
|
+
}), /* @__PURE__ */ $(Ka, {
|
|
29078
29078
|
className: B("flex flex-col gap-4", c),
|
|
29079
29079
|
children: [/* @__PURE__ */ $("div", {
|
|
29080
29080
|
className: B("absolute -top-12 bottom-0 left-0 right-0 flex flex-col justify-end bg-gradient-to-b to-transparent opacity-30", l),
|
|
@@ -29285,8 +29285,8 @@ function qJ({ id: e, title: t, subtitle: n, avatars: r, remainingCount: i, withP
|
|
|
29285
29285
|
withEmoji: "emoji" in s && !!s.emoji,
|
|
29286
29286
|
withPointerCursor: a,
|
|
29287
29287
|
children: [
|
|
29288
|
-
"alert" in s && s.alert ? /* @__PURE__ */ Q(
|
|
29289
|
-
"emoji" in s && s.emoji ? /* @__PURE__ */ Q(
|
|
29288
|
+
"alert" in s && s.alert ? /* @__PURE__ */ Q(Rr, { type: s.alert }) : null,
|
|
29289
|
+
"emoji" in s && s.emoji ? /* @__PURE__ */ Q(ac, { emoji: s.emoji }) : null,
|
|
29290
29290
|
/* @__PURE__ */ $("div", {
|
|
29291
29291
|
className: "flex-1",
|
|
29292
29292
|
children: [/* @__PURE__ */ Q("p", {
|
|
@@ -29299,7 +29299,7 @@ function qJ({ id: e, title: t, subtitle: n, avatars: r, remainingCount: i, withP
|
|
|
29299
29299
|
}),
|
|
29300
29300
|
/* @__PURE__ */ Q("div", {
|
|
29301
29301
|
className: "min-w-0 flex-1",
|
|
29302
|
-
children: /* @__PURE__ */ Q(
|
|
29302
|
+
children: /* @__PURE__ */ Q(gc, {
|
|
29303
29303
|
avatars: r,
|
|
29304
29304
|
remainingCount: i,
|
|
29305
29305
|
size: "emoji" in s && s.emoji ? "md" : "sm",
|
|
@@ -29328,7 +29328,7 @@ function XJ({ id: e, title: t, subtitle: n, onClick: r, module: i }) {
|
|
|
29328
29328
|
t.preventDefault(), r?.(e);
|
|
29329
29329
|
},
|
|
29330
29330
|
className: a,
|
|
29331
|
-
children: [/* @__PURE__ */ Q(
|
|
29331
|
+
children: [/* @__PURE__ */ Q(mc, {
|
|
29332
29332
|
module: i ?? "inbox",
|
|
29333
29333
|
size: "sm"
|
|
29334
29334
|
}), /* @__PURE__ */ $("div", {
|
|
@@ -29549,7 +29549,7 @@ var cY = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, lY = {
|
|
|
29549
29549
|
color: lY.empty
|
|
29550
29550
|
}), c;
|
|
29551
29551
|
}, pY = ({ data: e = [], remainingMinutes: t, trackedMinutes: n = 0 }) => {
|
|
29552
|
-
let r = e.find((e) => e.variant === "clocked-in")?.from, i = e.at(-1), a = r ?
|
|
29552
|
+
let r = e.find((e) => e.variant === "clocked-in")?.from, i = e.at(-1), a = r ? ki(r) : uY, o = t === void 0 || t > 0 ? uY : i ? ki(i.to) : uY, 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);
|
|
29553
29553
|
return {
|
|
29554
29554
|
primaryLabel: a,
|
|
29555
29555
|
secondaryLabel: o,
|
|
@@ -29561,7 +29561,7 @@ var cY = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, lY = {
|
|
|
29561
29561
|
}, gY = (e) => {
|
|
29562
29562
|
if (!e.from || !e.to) return;
|
|
29563
29563
|
let t = Math.round((e.to.getTime() - e.from.getTime()) / 6e4);
|
|
29564
|
-
return [`${
|
|
29564
|
+
return [`${ki(e.from)} – ${ki(e.to)} (${hY(t)})`, e.label].filter(Boolean).join(mY);
|
|
29565
29565
|
};
|
|
29566
29566
|
function _Y({ segments: e }) {
|
|
29567
29567
|
let t = e.map(gY);
|
|
@@ -29619,7 +29619,7 @@ function vY({ data: e = [], trackedMinutes: t = 0, remainingMinutes: n, variant:
|
|
|
29619
29619
|
dataKey: "value",
|
|
29620
29620
|
strokeWidth: 0,
|
|
29621
29621
|
isAnimationActive: !1,
|
|
29622
|
-
children: i.map((e, t) => /* @__PURE__ */ Q(
|
|
29622
|
+
children: i.map((e, t) => /* @__PURE__ */ Q(Ga, {
|
|
29623
29623
|
fill: e.color,
|
|
29624
29624
|
role: "presentation",
|
|
29625
29625
|
"aria-label": `${e.value} minutes`
|
|
@@ -29779,7 +29779,7 @@ function kY({ locations: e, locationId: t, onChangeLocationId: n, label: r, sear
|
|
|
29779
29779
|
onChange: n,
|
|
29780
29780
|
label: r,
|
|
29781
29781
|
searchPlaceholder: i,
|
|
29782
|
-
fieldIcon:
|
|
29782
|
+
fieldIcon: ss,
|
|
29783
29783
|
required: a,
|
|
29784
29784
|
disabled: o
|
|
29785
29785
|
});
|
|
@@ -29799,7 +29799,7 @@ function jY({ projects: e, projectId: t, onChangeProjectId: n, label: r, searchP
|
|
|
29799
29799
|
onChange: n,
|
|
29800
29800
|
label: r,
|
|
29801
29801
|
searchPlaceholder: i,
|
|
29802
|
-
fieldIcon:
|
|
29802
|
+
fieldIcon: oi,
|
|
29803
29803
|
required: a,
|
|
29804
29804
|
disabled: o
|
|
29805
29805
|
});
|
|
@@ -29819,7 +29819,7 @@ function MY({ text: e, placeholder: t, icon: n, onClick: r }) {
|
|
|
29819
29819
|
className: B("font-medium", e ? "text-f1-foreground" : "text-f1-foreground-secondary"),
|
|
29820
29820
|
children: e ?? t
|
|
29821
29821
|
}),
|
|
29822
|
-
/* @__PURE__ */ Q(U, { icon:
|
|
29822
|
+
/* @__PURE__ */ Q(U, { icon: Qo })
|
|
29823
29823
|
]
|
|
29824
29824
|
});
|
|
29825
29825
|
}
|
|
@@ -29930,7 +29930,7 @@ function zY({ locations: e, locationId: t, onChangeLocationId: n, projects: r, p
|
|
|
29930
29930
|
let c = OY(e), l = AY(r), u = IY(c, t), d = RY({
|
|
29931
29931
|
locationPath: u,
|
|
29932
29932
|
projectPath: IY(l, i)
|
|
29933
|
-
}), f = [...u].reverse().find((e) => e.icon)?.icon ?? (e.length ?
|
|
29933
|
+
}), f = [...u].reverse().find((e) => e.icon)?.icon ?? (e.length ? ss : oi), p = [
|
|
29934
29934
|
...c.length ? [{
|
|
29935
29935
|
type: "label",
|
|
29936
29936
|
text: o.selectLocation
|
|
@@ -29941,7 +29941,7 @@ function zY({ locations: e, locationId: t, onChangeLocationId: n, projects: r, p
|
|
|
29941
29941
|
text: o.selectProject
|
|
29942
29942
|
}, ...LY(l, i, a)] : []
|
|
29943
29943
|
], m = [e.length ? o.selectLocation : void 0, r.length ? o.selectProject : void 0].filter(Boolean).join(FY);
|
|
29944
|
-
return /* @__PURE__ */ Q(
|
|
29944
|
+
return /* @__PURE__ */ Q(is, {
|
|
29945
29945
|
items: p,
|
|
29946
29946
|
align: "end",
|
|
29947
29947
|
disabled: s,
|
|
@@ -29960,7 +29960,7 @@ function zY({ locations: e, locationId: t, onChangeLocationId: n, projects: r, p
|
|
|
29960
29960
|
children: d || o.selectLocation
|
|
29961
29961
|
}),
|
|
29962
29962
|
/* @__PURE__ */ Q(U, {
|
|
29963
|
-
icon:
|
|
29963
|
+
icon: Qs,
|
|
29964
29964
|
size: "sm"
|
|
29965
29965
|
})
|
|
29966
29966
|
]
|
|
@@ -30080,7 +30080,7 @@ function WY({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
30080
30080
|
onClick: l,
|
|
30081
30081
|
label: r.clockOut,
|
|
30082
30082
|
variant: "outline",
|
|
30083
|
-
icon:
|
|
30083
|
+
icon: ea
|
|
30084
30084
|
})] }) : null,
|
|
30085
30085
|
A === "break" ? fe === "clock-out" ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(H, {
|
|
30086
30086
|
onClick: c,
|
|
@@ -30091,12 +30091,12 @@ function WY({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
30091
30091
|
}), /* @__PURE__ */ Q(H, {
|
|
30092
30092
|
onClick: l,
|
|
30093
30093
|
label: r.clockOut,
|
|
30094
|
-
icon:
|
|
30094
|
+
icon: ea
|
|
30095
30095
|
})] }) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(H, {
|
|
30096
30096
|
onClick: l,
|
|
30097
30097
|
label: r.clockOut,
|
|
30098
30098
|
variant: "outline",
|
|
30099
|
-
icon:
|
|
30099
|
+
icon: ea,
|
|
30100
30100
|
hideLabel: !0
|
|
30101
30101
|
}), /* @__PURE__ */ Q(H, {
|
|
30102
30102
|
onClick: c,
|
|
@@ -30313,9 +30313,9 @@ function WY({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
30313
30313
|
//#endregion
|
|
30314
30314
|
//#region src/domains/employee-lifecycle/profile/Profile/TasksList/TaskItem/TaskItem.tsx
|
|
30315
30315
|
var GY = {
|
|
30316
|
-
done:
|
|
30317
|
-
"in-progress":
|
|
30318
|
-
todo:
|
|
30316
|
+
done: fs,
|
|
30317
|
+
"in-progress": mi,
|
|
30318
|
+
todo: Sa
|
|
30319
30319
|
}, KY = {
|
|
30320
30320
|
done: "text-f1-icon-success",
|
|
30321
30321
|
"in-progress": "text-f1-icon-info",
|
|
@@ -30338,7 +30338,7 @@ function qY({ task: e, status: t, onClick: n, hideIcon: r = !1 }) {
|
|
|
30338
30338
|
} : void 0,
|
|
30339
30339
|
rawTag: e.badge && !e.badge.isPastDue ? {
|
|
30340
30340
|
text: e.badge.text,
|
|
30341
|
-
icon:
|
|
30341
|
+
icon: Bi
|
|
30342
30342
|
} : void 0,
|
|
30343
30343
|
count: e.counter,
|
|
30344
30344
|
onClick: i
|
|
@@ -30514,7 +30514,7 @@ function bX() {
|
|
|
30514
30514
|
variant: "ghost",
|
|
30515
30515
|
onClick: () => t(),
|
|
30516
30516
|
label: "Open main menu",
|
|
30517
|
-
icon:
|
|
30517
|
+
icon: Ni,
|
|
30518
30518
|
hideLabel: !0
|
|
30519
30519
|
}) : null] });
|
|
30520
30520
|
}
|
|
@@ -30674,7 +30674,7 @@ function GX(e) {
|
|
|
30674
30674
|
return WX(e).map((e) => e.text).join(" · ");
|
|
30675
30675
|
}
|
|
30676
30676
|
function KX({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, subtitleVariant: a, subtitleCritical: o, description: s, descriptionVariant: c, descriptionCritical: l, right: u, actions: d, unread: f = !1, href: p, showChevron: m = !1, prominent: h = !1, onActivate: g, onClick: _ }) {
|
|
30677
|
-
let v = !!d?.length, y = Ct(), [b, x] = X(null), S = n ?? (e ? /* @__PURE__ */ Q(
|
|
30677
|
+
let v = !!d?.length, y = Ct(), [b, x] = X(null), S = n ?? (e ? /* @__PURE__ */ Q(hc, {
|
|
30678
30678
|
avatar: e,
|
|
30679
30679
|
size: t
|
|
30680
30680
|
}) : null), C = WX(s, UX(c, l)), w = /* @__PURE__ */ $(Z, { children: [
|
|
@@ -30746,7 +30746,7 @@ function KX({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
30746
30746
|
size: y ? "md" : "sm",
|
|
30747
30747
|
onClick: e.onClick
|
|
30748
30748
|
});
|
|
30749
|
-
return e.items ? /* @__PURE__ */ Q(
|
|
30749
|
+
return e.items ? /* @__PURE__ */ Q(is, {
|
|
30750
30750
|
items: e.items,
|
|
30751
30751
|
align: "end",
|
|
30752
30752
|
open: b === e.label,
|
|
@@ -30824,11 +30824,11 @@ var qX = Ku.createContext(void 0), JX = ({ tracking: e, children: t }) => /* @__
|
|
|
30824
30824
|
status: "status" in e ? e.status : void 0
|
|
30825
30825
|
};
|
|
30826
30826
|
}, lZ = "-m-2", uZ = (e) => B(lZ, !e.isFirstUnderNoHeader && "mt-0", !e.isLastSlot && "mb-0"), dZ = "ml-1.5 mt-1 self-start", fZ = (e) => B(dZ, e.isLastSlot && !e.hasFooter && "mb-1.5"), pZ = "gap-2", mZ = "xl", hZ = (e, t, n, r) => {
|
|
30827
|
-
if (e === "module" && t.module) return { left: /* @__PURE__ */ Q(
|
|
30827
|
+
if (e === "module" && t.module) return { left: /* @__PURE__ */ Q(mc, {
|
|
30828
30828
|
module: t.module,
|
|
30829
30829
|
size: n
|
|
30830
30830
|
}) };
|
|
30831
|
-
if (e === "alert" && t.alert) return { left: /* @__PURE__ */ Q(
|
|
30831
|
+
if (e === "alert" && t.alert) return { left: /* @__PURE__ */ Q(Rr, {
|
|
30832
30832
|
type: t.alert,
|
|
30833
30833
|
size: n
|
|
30834
30834
|
}) };
|
|
@@ -30848,16 +30848,16 @@ var qX = Ku.createContext(void 0), JX = ({ tracking: e, children: t }) => /* @__
|
|
|
30848
30848
|
avatarSize: r ? mZ : n
|
|
30849
30849
|
} : {};
|
|
30850
30850
|
}, gZ = (e, t, n, r) => {
|
|
30851
|
-
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(In, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(
|
|
30851
|
+
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(In, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(Pr, {
|
|
30852
30852
|
date: P(t.date),
|
|
30853
30853
|
size: r ? "lg" : "md"
|
|
30854
|
-
}) : void 0 : e.endsWith("-list") ? t.avatars && t.avatars.length > 0 ? /* @__PURE__ */ Q(
|
|
30854
|
+
}) : void 0 : e.endsWith("-list") ? t.avatars && t.avatars.length > 0 ? /* @__PURE__ */ Q(gc, {
|
|
30855
30855
|
type: e.slice(0, -5),
|
|
30856
30856
|
size: n,
|
|
30857
30857
|
max: 3,
|
|
30858
30858
|
avatars: t.avatars,
|
|
30859
30859
|
remainingCount: t.remainingCount
|
|
30860
|
-
}) : void 0 : t.rightAvatar ? /* @__PURE__ */ Q(
|
|
30860
|
+
}) : void 0 : t.rightAvatar ? /* @__PURE__ */ Q(hc, {
|
|
30861
30861
|
avatar: {
|
|
30862
30862
|
type: e,
|
|
30863
30863
|
...t.rightAvatar
|
|
@@ -30944,7 +30944,7 @@ function bZ({ params: e, ctx: t }) {
|
|
|
30944
30944
|
}
|
|
30945
30945
|
})
|
|
30946
30946
|
}) : null,
|
|
30947
|
-
/* @__PURE__ */ Q(
|
|
30947
|
+
/* @__PURE__ */ Q(vs, {
|
|
30948
30948
|
isOpen: l,
|
|
30949
30949
|
onClose: d,
|
|
30950
30950
|
title: s?.title,
|
|
@@ -31246,7 +31246,7 @@ var SZ = 3, CZ = "slot-skeleton-item", wZ = [
|
|
|
31246
31246
|
className: "font-medium text-f1-foreground-secondary",
|
|
31247
31247
|
children: aZ(e).charAt(0)
|
|
31248
31248
|
})
|
|
31249
|
-
}) : e.icon ? /* @__PURE__ */ Q(
|
|
31249
|
+
}) : e.icon ? /* @__PURE__ */ Q(lc, {
|
|
31250
31250
|
icon: e.icon,
|
|
31251
31251
|
size: "lg"
|
|
31252
31252
|
}) : /* @__PURE__ */ Q("span", {
|
|
@@ -31344,7 +31344,7 @@ function KZ({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
31344
31344
|
size: "sm",
|
|
31345
31345
|
...e
|
|
31346
31346
|
}, t)),
|
|
31347
|
-
s ? /* @__PURE__ */ Q(
|
|
31347
|
+
s ? /* @__PURE__ */ Q(ti, {
|
|
31348
31348
|
items: s.options.map((e) => ({
|
|
31349
31349
|
label: e.label,
|
|
31350
31350
|
...e.value === E ? { icon: Tl } : e.icon ? { icon: e.icon } : {},
|
|
@@ -31353,7 +31353,7 @@ function KZ({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
31353
31353
|
children: /* @__PURE__ */ Q(H, {
|
|
31354
31354
|
variant: "ghost",
|
|
31355
31355
|
size: "sm",
|
|
31356
|
-
icon:
|
|
31356
|
+
icon: Qs,
|
|
31357
31357
|
label: D?.label ?? s.tooltip ?? "",
|
|
31358
31358
|
...s.tooltip ? { tooltip: s.tooltip } : {}
|
|
31359
31359
|
})
|
|
@@ -31477,7 +31477,7 @@ function $Z({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
31477
31477
|
let u = R(), { position: d, width: f, bodyClassName: m, asideClassName: h } = JZ(), { formRef: g, getValues: _, trigger: v } = be(), [y, b] = X(r ?? {});
|
|
31478
31478
|
return K(() => {
|
|
31479
31479
|
e && b(r ?? {});
|
|
31480
|
-
}, [e, r]), /* @__PURE__ */ Q(
|
|
31480
|
+
}, [e, r]), /* @__PURE__ */ Q(vs, {
|
|
31481
31481
|
isOpen: e,
|
|
31482
31482
|
onClose: t,
|
|
31483
31483
|
title: c ?? u.widgets.editParamsTitle,
|
|
@@ -31559,7 +31559,7 @@ var eQ = (e) => {
|
|
|
31559
31559
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
31560
31560
|
}, lQ = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
31561
31561
|
className: "text-center text-f1-foreground-secondary",
|
|
31562
|
-
children: cQ(e).map((e, t) => /* @__PURE__ */ Q(Ju, { children: "href" in e ? /* @__PURE__ */ Q(
|
|
31562
|
+
children: cQ(e).map((e, t) => /* @__PURE__ */ Q(Ju, { children: "href" in e ? /* @__PURE__ */ Q(yo, {
|
|
31563
31563
|
href: e.href,
|
|
31564
31564
|
children: e.label
|
|
31565
31565
|
}) : e.text }, t))
|
|
@@ -31839,11 +31839,11 @@ function IQ({ widgets: e = [], side: t = "main", children: n, footnote: i, slotR
|
|
|
31839
31839
|
onClick: () => ue(e.id)
|
|
31840
31840
|
}), e.paramsSchema && b && t.push({
|
|
31841
31841
|
label: T ?? k.widgets.editParams,
|
|
31842
|
-
icon:
|
|
31842
|
+
icon: Wr,
|
|
31843
31843
|
onClick: () => se(e.id)
|
|
31844
31844
|
}), A && !e.locked && f && (t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
31845
31845
|
label: w ?? k.widgets.removeWidget,
|
|
31846
|
-
icon:
|
|
31846
|
+
icon: Pa,
|
|
31847
31847
|
critical: !0,
|
|
31848
31848
|
onClick: () => f(e.id)
|
|
31849
31849
|
})), t;
|
|
@@ -31882,7 +31882,7 @@ function IQ({ widgets: e = [], side: t = "main", children: n, footnote: i, slotR
|
|
|
31882
31882
|
className: "relative",
|
|
31883
31883
|
children: [i, /* @__PURE__ */ Q("div", {
|
|
31884
31884
|
className: "absolute right-3 top-3 z-10",
|
|
31885
|
-
children: /* @__PURE__ */ Q(
|
|
31885
|
+
children: /* @__PURE__ */ Q(is, {
|
|
31886
31886
|
items: r,
|
|
31887
31887
|
align: "end",
|
|
31888
31888
|
children: /* @__PURE__ */ Q(H, {
|
|
@@ -32007,14 +32007,14 @@ var LQ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32007
32007
|
K(() => {
|
|
32008
32008
|
r && s(!0);
|
|
32009
32009
|
}, [r]);
|
|
32010
|
-
let c = o && !a, l = uX(e, c ? 180 : 0), u = e ? l || t ? "panel" : "retracting" : "column", d = u === "panel", f = !d || t, p =
|
|
32010
|
+
let c = o && !a, l = uX(e, c ? 180 : 0), u = e ? l || t ? "panel" : "retracting" : "column", d = u === "panel", f = !d || t, p = Ki(i), m = cn(p, (e) => `${e}px`);
|
|
32011
32011
|
return q(() => {
|
|
32012
32012
|
if (!r) return;
|
|
32013
32013
|
if (!c) {
|
|
32014
32014
|
p.jump(i);
|
|
32015
32015
|
return;
|
|
32016
32016
|
}
|
|
32017
|
-
let e =
|
|
32017
|
+
let e = Hr(p, i, cX);
|
|
32018
32018
|
return () => e.stop();
|
|
32019
32019
|
}, [
|
|
32020
32020
|
r,
|
|
@@ -32177,7 +32177,7 @@ var LQ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32177
32177
|
"aria-label": be,
|
|
32178
32178
|
children: /* @__PURE__ */ Q(pu, { isExpanded: !L })
|
|
32179
32179
|
})
|
|
32180
|
-
}) : null, O ? null : /* @__PURE__ */ Q(
|
|
32180
|
+
}) : null, O ? null : /* @__PURE__ */ Q(ro, {
|
|
32181
32181
|
tooltip: E,
|
|
32182
32182
|
autoOpen: D
|
|
32183
32183
|
})]
|
|
@@ -32329,9 +32329,9 @@ var LQ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32329
32329
|
tracking: v,
|
|
32330
32330
|
children: Ge
|
|
32331
32331
|
});
|
|
32332
|
-
}), ZQ = (e) => e ?
|
|
32332
|
+
}), ZQ = (e) => e ? zs[e] : void 0, QQ = (e) => e.type === "icon" ? {
|
|
32333
32333
|
...e,
|
|
32334
|
-
icon: ZQ(e.icon) ??
|
|
32334
|
+
icon: ZQ(e.icon) ?? Ya
|
|
32335
32335
|
} : e, $Q = (e, t, n) => ({
|
|
32336
32336
|
...e.type === "navigate" && aQ(e.href) ? { href: e.href } : {},
|
|
32337
32337
|
onClick: () => n(e, t)
|
|
@@ -32805,7 +32805,7 @@ var LQ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32805
32805
|
alignItems: "center",
|
|
32806
32806
|
gap: "sm",
|
|
32807
32807
|
minWidth: "0",
|
|
32808
|
-
children: /* @__PURE__ */ Q(
|
|
32808
|
+
children: /* @__PURE__ */ Q(gc, {
|
|
32809
32809
|
...e.avatars,
|
|
32810
32810
|
size: "md",
|
|
32811
32811
|
layout: "compact",
|
|
@@ -32820,7 +32820,7 @@ var LQ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32820
32820
|
children: e.change.from
|
|
32821
32821
|
}),
|
|
32822
32822
|
/* @__PURE__ */ Q(U, {
|
|
32823
|
-
icon:
|
|
32823
|
+
icon: fo,
|
|
32824
32824
|
size: "sm",
|
|
32825
32825
|
color: "default"
|
|
32826
32826
|
}),
|
|
@@ -32930,7 +32930,7 @@ var LQ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32930
32930
|
children: [/* @__PURE__ */ $("div", {
|
|
32931
32931
|
className: "relative flex items-center gap-4",
|
|
32932
32932
|
children: [
|
|
32933
|
-
e.avatar ? /* @__PURE__ */ Q(
|
|
32933
|
+
e.avatar ? /* @__PURE__ */ Q(hc, {
|
|
32934
32934
|
avatar: QQ(e.avatar),
|
|
32935
32935
|
size: "2xl"
|
|
32936
32936
|
}) : null,
|
|
@@ -32966,7 +32966,7 @@ var LQ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32966
32966
|
}) : null
|
|
32967
32967
|
]
|
|
32968
32968
|
}),
|
|
32969
|
-
r ? /* @__PURE__ */ Q(
|
|
32969
|
+
r ? /* @__PURE__ */ Q(Pr, {
|
|
32970
32970
|
date: r,
|
|
32971
32971
|
size: "lg"
|
|
32972
32972
|
}) : null
|
|
@@ -33263,7 +33263,7 @@ function K1({ postId: e, reactions: t, elementId: n, onAction: r }) {
|
|
|
33263
33263
|
//#region src/domains/platform/home/Home/F0AgenticHome/blocks/PostsBlock/UnreadToggle.tsx
|
|
33264
33264
|
function q1({ unreadOnly: e, onChange: t }) {
|
|
33265
33265
|
let n = R();
|
|
33266
|
-
return /* @__PURE__ */ Q(
|
|
33266
|
+
return /* @__PURE__ */ Q(Ua, {
|
|
33267
33267
|
ariaLabel: n.widgets.postsFilter,
|
|
33268
33268
|
value: e ? "unread" : "all",
|
|
33269
33269
|
onChange: (e) => t(e === "unread"),
|
|
@@ -33464,7 +33464,7 @@ var Y1 = "agentic-stats", X1 = {
|
|
|
33464
33464
|
content: e.value ?? ""
|
|
33465
33465
|
})
|
|
33466
33466
|
}, t);
|
|
33467
|
-
case "link": return e.url && sQ(e.url) ? /* @__PURE__ */ Q(
|
|
33467
|
+
case "link": return e.url && sQ(e.url) ? /* @__PURE__ */ Q(yo, {
|
|
33468
33468
|
href: e.url,
|
|
33469
33469
|
children: s0(e)
|
|
33470
33470
|
}, t) : s0(e);
|
|
@@ -33949,7 +33949,7 @@ var Y1 = "agentic-stats", X1 = {
|
|
|
33949
33949
|
slotRenderers: c2
|
|
33950
33950
|
}), u2 = ({ items: e, onAction: t }) => {
|
|
33951
33951
|
let n = R();
|
|
33952
|
-
return /* @__PURE__ */ Q(
|
|
33952
|
+
return /* @__PURE__ */ Q(ti, {
|
|
33953
33953
|
items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
|
|
33954
33954
|
label: e.label,
|
|
33955
33955
|
icon: ZQ(e.icon),
|
|
@@ -33978,7 +33978,7 @@ var Y1 = "agentic-stats", X1 = {
|
|
|
33978
33978
|
} }), n = c + i.length;
|
|
33979
33979
|
}
|
|
33980
33980
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
33981
|
-
}, v2 = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: cQ(e).map((e, t) => /* @__PURE__ */ Q(Ju, { children: "href" in e ? /* @__PURE__ */ Q(
|
|
33981
|
+
}, v2 = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: cQ(e).map((e, t) => /* @__PURE__ */ Q(Ju, { children: "href" in e ? /* @__PURE__ */ Q(yo, {
|
|
33982
33982
|
href: e.href,
|
|
33983
33983
|
children: e.label
|
|
33984
33984
|
}) : /* @__PURE__ */ Q(h2, { text: e.text }) }, t)) }), y2 = ({ text: e }) => {
|
|
@@ -34145,7 +34145,7 @@ var Y1 = "agentic-stats", X1 = {
|
|
|
34145
34145
|
}), d = M2(e.actions, (e) => {
|
|
34146
34146
|
o(), u(e.action, {});
|
|
34147
34147
|
});
|
|
34148
|
-
return /* @__PURE__ */ Q(
|
|
34148
|
+
return /* @__PURE__ */ Q(vs, {
|
|
34149
34149
|
isOpen: a,
|
|
34150
34150
|
onClose: o,
|
|
34151
34151
|
position: n === "drawer" ? "right" : "center",
|
|
@@ -34317,7 +34317,7 @@ var Y1 = "agentic-stats", X1 = {
|
|
|
34317
34317
|
children: /* @__PURE__ */ Q(U, {
|
|
34318
34318
|
size: "lg",
|
|
34319
34319
|
color: V2,
|
|
34320
|
-
icon: t || g ? s.icon : o ??
|
|
34320
|
+
icon: t || g ? s.icon : o ?? vo
|
|
34321
34321
|
})
|
|
34322
34322
|
})
|
|
34323
34323
|
})]
|
|
@@ -34968,12 +34968,12 @@ function X4({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34968
34968
|
...r.length ? [{
|
|
34969
34969
|
id: "recommended",
|
|
34970
34970
|
label: u.widgets.recommended,
|
|
34971
|
-
icon:
|
|
34971
|
+
icon: yr,
|
|
34972
34972
|
items: r
|
|
34973
34973
|
}] : [],
|
|
34974
34974
|
...(i ?? []).map((e) => ({
|
|
34975
34975
|
...e,
|
|
34976
|
-
icon: e.module ?
|
|
34976
|
+
icon: e.module ? Ys[e.module] : void 0,
|
|
34977
34977
|
items: o.filter((t) => t.group === e.id)
|
|
34978
34978
|
})).filter((e) => e.items.length > 0),
|
|
34979
34979
|
...c.length ? [{
|
|
@@ -34992,7 +34992,7 @@ function X4({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34992
34992
|
e && (x("pick"), C(!1), E(null));
|
|
34993
34993
|
}, [e]), K(() => {
|
|
34994
34994
|
b === "configure" && !I && x("pick");
|
|
34995
|
-
}, [b, I]), /* @__PURE__ */ Q(
|
|
34995
|
+
}, [b, I]), /* @__PURE__ */ Q(vs, {
|
|
34996
34996
|
isOpen: e,
|
|
34997
34997
|
onClose: t,
|
|
34998
34998
|
title: ee && P ? u.widgets.configureWidget.replace("{{title}}", P.title) : l,
|
|
@@ -35056,7 +35056,7 @@ function X4({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
35056
35056
|
type: "button",
|
|
35057
35057
|
onClick: () => y(e.id),
|
|
35058
35058
|
className: "flex items-center gap-3 rounded-md p-2 text-left " + (P?.id === e.id ? "bg-f1-background-selected" : "hover:bg-f1-background-tertiary"),
|
|
35059
|
-
children: [/* @__PURE__ */ Q(
|
|
35059
|
+
children: [/* @__PURE__ */ Q(lc, {
|
|
35060
35060
|
icon: e.icon,
|
|
35061
35061
|
size: "lg"
|
|
35062
35062
|
}), /* @__PURE__ */ Q("span", {
|
|
@@ -35367,16 +35367,16 @@ var A3 = () => {
|
|
|
35367
35367
|
"sm",
|
|
35368
35368
|
"md",
|
|
35369
35369
|
"md"
|
|
35370
|
-
], I3 =
|
|
35370
|
+
], I3 = Ro(P3, () => /* @__PURE__ */ Q(wa, { children: /* @__PURE__ */ Q(P3, { children: F3.map((e, t) => /* @__PURE__ */ Q(jt.Skeleton, { height: e }, t)) }) })), L3 = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
35371
35371
|
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)]",
|
|
35372
35372
|
children: e
|
|
35373
|
-
}), R3 =
|
|
35373
|
+
}), R3 = Ro(Qu(function({ children: e }, t) {
|
|
35374
35374
|
return /* @__PURE__ */ Q(Ql, {
|
|
35375
35375
|
ref: t,
|
|
35376
35376
|
showBar: !1,
|
|
35377
35377
|
children: /* @__PURE__ */ Q(L3, { children: e })
|
|
35378
35378
|
});
|
|
35379
|
-
}), () => /* @__PURE__ */ Q(
|
|
35379
|
+
}), () => /* @__PURE__ */ Q(wa, {
|
|
35380
35380
|
orientation: "horizontal",
|
|
35381
35381
|
children: /* @__PURE__ */ $(L3, { children: [
|
|
35382
35382
|
/* @__PURE__ */ Q(jt.Skeleton, {}),
|
|
@@ -35416,4 +35416,4 @@ var V3 = bn(Tn("WidgetEmptyState", B3)), H3 = ({ identifier: e, allowedRoutes: t
|
|
|
35416
35416
|
type: "layout"
|
|
35417
35417
|
}, Ql));
|
|
35418
35418
|
//#endregion
|
|
35419
|
-
export { V4 as AGENTIC_HOME_SPEC_VERSION, Se as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, dv as ActivityItemList, uv as ActivityItemListSkeleton, Mk as ApplicationFrame, _ as AreaChart, wJ as AreaChartWidget, uJ as AutoGrid,
|
|
35419
|
+
export { V4 as AGENTIC_HOME_SPEC_VERSION, Se as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, dv as ActivityItemList, uv as ActivityItemListSkeleton, Mk as ApplicationFrame, _ as AreaChart, wJ as AreaChartWidget, uJ as AutoGrid, nc as Badge, m as BarChart, TJ as BarChartWidget, lv as BaseActivityItemList, He as BaseBanner, uy as BaseCelebration, Oy as BaseCommunityPost, Oa as BaseTabs, Gi as BreadcrumbSelect, eA as Breadcrumbs, Cy as CalendarEvent, BJ as CalendarEventList, qt as CardSelectableContainer, Et as Carousel, ce as CategoryBarChart, sY as CategoryBarSection, fy as Celebration, dy as CelebrationSkeleton, LJ as ChartWidgetEmptyState, Uc as Chip, WY as ClockInControls, Yt as CoachmarkProvider, xt as ComboChart, Ay as CommunityPost, Hy as CommunityPostCard, Uy as CommunityPostCardSkeleton, ky as CommunityPostSkeleton, QM as CompanySelector, In as Counter, SZ as DEFAULT_EXPECTED_ITEMS_COUNT, I3 as Dashboard, Gk as DaytimePage, gi as DetailsItem, Tr as DetailsItemsList, Xe as Dialog, ti as Dropdown, pZ as EVENT_LIST_GAP, A_ as EntitySelect, tt as F0ActionBar, L4 as F0AgenticHome, z4 as F0AgenticHomeBlock, s as F0AiBanner, of as F0AiCallout, No as F0AiPromptRow, tc as F0AvatarColor, pc as F0AvatarColorList, mc as F0AvatarModule, Nc as F0ButtonToggle, mf as F0Callout, xa as F0CardHorizontal, xa as F0CardRow, ag as F0CarouselDialog, Gq as F0Chat, GR as F0ChatHistoryLimitCard, ju as F0ChatProvider, II as F0CommandPaletteProvider, qy as F0CommunityPostsCarousel, Bh as F0Composer, Ef as F0Confetti, Qq as F0ENPSButton, Id as F0EmojiPicker, qi as F0FileItem, Fe as F0FormEditableTable, nF as F0InboxItem, rF as F0InboxItemDecision, lF as F0InboxItemGroup, dF as F0InboxItemList, gF as F0InboxItemListSkeleton, hF as F0InboxItemSkeleton, nt as F0LocationInput, wu as F0Map, Du as F0MapControls, du as F0MapList, Eu as F0MapSidebar, vu as F0MapSidebarToggle, xu as F0MapSkeleton, ZO as F0Meeting, Jf as F0MeetingCard, Sb as F0MeetingProvider, OO as F0MeetingRoom, QO as F0MeetingSlot, KO as F0MeetingSurface, dn as F0NotesTextEditor, L as F0NotesTextEditorSkeleton, ee as F0NumberInput, O as F0NumberInputInline, pi as F0PersonCard, Jt as F0PhoneInput, sP as F0PrimarySidebar, Jc as F0ProgressSeries, Cp as F0PulseDot, ng as F0Resizable, mn as F0ResourceHeader, mn as ResourceHeader, _i as F0RichTextDisplay, ae as F0RichTextEditor, _p as F0SalaryBenchmark, up as F0SalaryBenchmarkIndicator, cl as F0SearchInput, uP as F0SecondarySidebar, sg as F0SegmentedBar, Ua as F0SegmentedControl, Ng as F0SharingDialog, Wg as F0SwipeDeck, ay as F0SystemBanner, Ht as F0TableOfContent, $_ as F0TemplateTextInput, ue as F0TextAreaInput, oe as F0TextAreaInputInline, Na as F0TextInput, ne as F0TextInputInline, n_ as F0Timeline, e_ as F0VersionHistory, BR as F0_CHAT_HEADER_TITLE_SELECTOR, UI as F0_CHAT_MESSAGES_TAB_ID, sl as F1SearchBox, y as FILE_TYPES, ra as FileItem, py as HighlightBanner, vX as HomeSlotItem, _X as HomeSlotItems, GJ as IndicatorsList, bo as Input, qe as Item, gt as ItemSectionHeader, WI as LATEST, $X as LIST_COMPACT_AFTER, dZ as LIST_MORE_BUTTON_CLASS, a as LineChart, EJ as LineChartWidget, fk as MeetingNotes, ek as MeetingPanelContent, dk as MeetingParticipants, nk as MeetingRoomChat, dO as MeetingSidePanel, eC as MeetingSurfaceProvider, EE as MeetingTranscript, gN as Menu, qo as MobileDropdown, XQ as NewHomeLayout, u as NotesTextEditor, sn as NotesTextEditorSkeleton, ge as NumberInput, EA as OmniButton, AF as OneApprovalHistory, el as OneCalendar, Tt as OneDataCollection, l as OneDateNavigator, S as OneEmptyState, xg as OneListItem, bg as OneListItemSkeleton, bt as OnePagination, Xy as OnePersonListItem, H3 as OneRestrictComponent, G1 as POST_REACTION_EVENT, OA as Page, SA as PageHeader, tA as PageHeaderNavigationContext, nA as PageHeaderNavigationProvider, pr as PageNavigation, yt as PieChart, DJ as PieChartWidget, it as PrivateBox, re as ProgressBarChart, B4 as RECOMMENDED_AGENTIC_HOME_RULES, fu as RECOMMENDED_MAX_MARKERS, se as RadarChart, _y as Reactions, go as RichTextDisplay, le as RichTextEditor, lZ as SLOT_ROW_BLEED, CZ as SLOT_SKELETON_ITEM_TESTID, U3 as ScrollArea, cP as SearchBar, i as SectionHeader, gl as Select, Nn as Shortcut, pP as Sidebar, Jj as SidebarChatBlankState, nM as SidebarChatItem, Xj as SidebarChatItemSkeleton, VM as SidebarChatList, Qj as SidebarChatListSkeleton, RA as SidebarChatProvider, ZA as SidebarCollapsibleSection, iN as SidebarFooter, oN as SidebarHeader, yN as SidebarPanelHeader, hj as SidebarTabPanel, aj as SidebarTabPanelSearch, gP as SidebarTabs, rN as SidebarUserMenu, KZ as SlotWidget, GZ as SlotWidgetContent, Sc as Spinner, lJ as Split, cJ as Stack, kJ as SummariesWidget, fl as Switch, js as Tabs, Pi as TabsSkeleton, JY as TasksList, b as Textarea, fr as ToggleGroup, lo as ToggleGroupItem, Bn as Tooltip, Hn as TooltipGroup, oY as TwoColumnsList, D as UPLOAD_INPUT_ID, de as VerticalBarChart, OJ as VerticalBarChartWidget, i_ as VirtualList, bl as WeekStartDay, mo as Weekdays, z3 as Widget, JJ as WidgetAvatarsListItem, X4 as WidgetCatalog, V3 as WidgetEmptyState, UJ as WidgetHighlightButton, nY as WidgetInboxList, ZJ as WidgetInboxListItem, CX as WidgetSection, iY as WidgetSimpleList, eY as WidgetSimpleListItem, R3 as WidgetStrip, wt as actionBarStatuses, Ld as aiCalloutStatuses, Xf as attendeesDisplays, fS as buildTiles, _t as buttonToggleColors, Je as buttonToggleSizes, Mt as buttonToggleVariants, xy as calendarEventVariants, wl as chipVariants, Sd as coachmarks, mI as commandActionRisks, Vy as communityPostCardVariants, Hm as composerFormats, Vm as composerVariants, hf as confettiPalette, Fn as counterVariants, FE as createMeetingSignalStore, bu as defaultMapStyle, MZ as defaultSlotRenderers, jZ as defaultSlotSkeleton, PF as defineSelectCellSubmenu, Dd as defineStepByStepCoachmarkGuidance, hv as dismissibleSystemNoticeVariants, ot as downloadAsCSV, Pt as downloadAsExcel, RI as f0ChatOneAnswerFailures, LI as f0ChatSenderColors, Od as f0EmojiPickerSizes, Lr as f0FileItemSizes, Ou as f0MapMarkerVariants, Cu as f0MapStyles, SS as f0MeetingConnectionQualities, DS as f0MeetingCoreActionIds, bS as f0MeetingDisconnectReasons, vS as f0MeetingGuestKinds, OS as f0MeetingInvitationStates, CS as f0MeetingKinds, xS as f0MeetingPermissions, _S as f0MeetingPresences, yS as f0MeetingStatuses, wS as f0MeetingSurfaceDestinations, TS as f0MeetingSurfaceModes, gS as f0MeetingTrackKinds, gd as f0ProgressSeriesColors, hd as f0ProgressSeriesSizes, ES as f0WindowCorners, rZ as fromParams, Lt as generateCSVContent, un as getAutoPerPageMinHeight, yl as getGranularityDefinition, ml as getGranularityDefinitions, Sl as getGranularitySimpleDefinition, _u as googleMapStyles, uu as googlePinlessMapStyles, hl as granularityDefinitions, vZ as heldDialogActions, tZ as homeSlot, xF as inboxItemDecisionSizes, SF as inboxItemSkeletonAvatars, bF as inboxItemStatuses, vF as inboxItemTints, yF as inboxItemTones, xs as isPossiblePhoneValue, HI as isPost, zI as isSystemMessage, VI as isUserMessage, Rs as isValidPhoneValue, gD as layoutGrid, eZ as listCompacts, _Z as listGlyphSize, v as listIconColors, fZ as listMoreButtonClass, nZ as listSlot, F_ as locationInputSizes, I_ as locationParts, wT as matchDevice, Yf as meetingStates, LL as messageBodyText, Ys as modules, zk as navigationSurfaces, IS as nearestCorner, _g as oneListItemRowClassName, L_ as phoneInputSizes, FS as placementFromRect, Ut as predefinedPresets, wp as pulseDotVariants, sZ as railActionTones, vl as rangeSeparator, vT as readMeetingMediaPreferences, yD as reorderForSpeakers, Vh as resizableDirections, iD as resolveAutoFocus, ul as resolveGranularityDefinition, PS as resolvePlacement, QX as resolveSlotRenderer, iZ as resolveWidgetHeader, bp as salaryBenchmarkIndicatorSizes, vp as salaryBenchmarkPositions, yp as salaryBenchmarkVariants, cx as sanitizeMeetingReaction, MF as seedFromStorage, Ne as selectSizes, ze as selectVariants, LS as settlePlacement, uZ as slotRowBleed, hD as solveGrid, bD as solveSpotlight, Xg as swipeDirections, mv as systemNoticeVariants, hS as tileAspectRatio, uS as tileKey, yT as updateMeetingMediaPreferences, PI as useCommandPalette, fv as useCompactOnScroll, wf as useConfetti, ie as useDataCollectionData, NF as useDataCollectionItemNavigation, ve as useDataCollectionSource, tn as useExportAction, Gu as useF0Chat, wb as useF0Meeting, Ob as useF0MeetingRoster, Eb as useF0MeetingStable, Cb as useHasF0Meeting, o as useInfiniteScrollPagination, gX as useIsBulkChange, bT as useMeetingMediaPreferences, zE as useMeetingSignal, BE as useMeetingSpeakers, tC as useMeetingSurface, nC as useMeetingSurfaceOptional, iA as usePageHeaderItemNavigation, rA as usePageHeaderNavigation, dr as useSidePanel, gu as useSidebar, HA as useSidebarChatActions, VA as useSidebarChats, Yg as useSwipeDeck, Lb as useTrackBinding, Ct as useWidgetIsWide, pk as viewportRect, cZ as widgetChrome, oZ as widgetParamsAreComplete, aZ as widgetTitle };
|