@factorialco/f0-react 16.18.0 → 16.20.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-CAzO9emN.js → ArchiveThumbnail-D5RdDTI0.js} +6 -6
- package/dist/{ArchiveViewer-BkqvVOz0.js → ArchiveViewer-rn7u3Dpm.js} +5 -5
- package/dist/{ChatPostComposerDialog-BY1-ToCS.js → ChatPostComposerDialog-K_Vnt0ro.js} +3 -3
- package/dist/{CoachmarkProvider-CFjffyu5.js → CoachmarkProvider-BmIZobyx.js} +14230 -14230
- package/dist/{CodeThumbnail-D-gb6TUF.js → CodeThumbnail-DQbEA2Rl.js} +1 -1
- package/dist/{CodeViewer-SI7TC_K2.js → CodeViewer-BvFVnvZG.js} +6 -6
- package/dist/{DocumentToolbar-DGyD9SN0.js → DocumentToolbar-94u6vk8m.js} +7 -7
- package/dist/{DocxViewer-kDcXxo0v.js → DocxViewer-C20S3kO5.js} +3 -3
- package/dist/{F0AiProcessingOverlay-OhgXIPB4.js → F0AiProcessingOverlay-DdYHU_e8.js} +1859 -1931
- package/dist/{F0Alert-TC2esFmC.js → F0Alert-DBVF8WK7.js} +7 -7
- package/dist/F0AudioPlayer-LlajNDAA.js +2 -0
- package/dist/{F0Button-BPjCHo83.js → F0Button-B217B6lh.js} +9 -9
- package/dist/{F0CanvasPanel-CwuS7Fc_.js → F0CanvasPanel-CVk_7eK7.js} +7699 -7722
- package/dist/{F0DocumentViewer-CNQvQsnx.js → F0DocumentViewer-7SDA8bY3.js} +1 -1
- package/dist/{F0DocumentViewer-DIFsg5pY.js → F0DocumentViewer-CLwKmjK-.js} +4 -4
- package/dist/{F0Icon-BWIoBqUz.js → F0Icon-CRETnjaC.js} +1 -1
- package/dist/{F0Map-BxSjjHyY.js → F0Map-Dz64Vvtw.js} +19 -19
- package/dist/{F0Select-CaRfMBA3.js → F0Select-Ef_MkLqL.js} +9 -9
- package/dist/{F0Text-D9BR3ipr.js → F0Text-DEJMiNLl.js} +2 -2
- package/dist/{F0VideoPlayer-CfY8KJ7I.js → F0VideoPlayer-Boe5ntER.js} +71 -71
- package/dist/F0VideoPlayer-CWr6L2CQ.js +1 -0
- package/dist/{HtmlThumbnail-Cj27H9QK.js → HtmlThumbnail-DLYEHdZx.js} +1 -1
- package/dist/{HtmlViewer-DRfrtuKN.js → HtmlViewer-DnBkFfLk.js} +9 -9
- package/dist/{LayoutGroup-Clgr-vB9.js → LayoutGroup-DECnUFBB.js} +1 -1
- package/dist/{Map-x2t4rK66.js → Map-XGapa9ke.js} +13 -13
- package/dist/{PdfThumbnail-Ue08FfiS.js → PdfThumbnail-f8cxvUJR.js} +1 -1
- package/dist/{PdfViewer-V3C2gmbs.js → PdfViewer-DfEWMASa.js} +12 -12
- package/dist/{SandboxedHtmlFrame-DQqfMeCl.js → SandboxedHtmlFrame-Ba5FAjt6.js} +2 -2
- package/dist/{SheetViewer-ByBIMFf1.js → SheetViewer-8TM8_Mcn.js} +5 -5
- package/dist/{TextViewer-CR4-k8HR.js → TextViewer-gYqYfc8o.js} +4 -4
- package/dist/ai.d.ts +4 -4
- package/dist/ai.js +5 -5
- package/dist/component-status.js +2 -2
- package/dist/{dist-DYydiVIh.js → dist-BAsn0JfF.js} +1 -1
- package/dist/{dist-CAmWmLKl.js → dist-CBsv_N04.js} +4 -4
- package/dist/{dist-tqa6n0_D.js → dist-CLXu6f__.js} +2 -2
- package/dist/{dist-tiM2lERI.js → dist-ClS5kbGd.js} +1 -1
- package/dist/{dist-qs-4_N_R.js → dist-CpxH3Mhm.js} +1 -1
- package/dist/experimental.d.ts +8 -2
- package/dist/experimental.js +618 -618
- package/dist/{exports-CLYkiCcv.d.ts → exports-B8qwxvwL.d.ts} +14 -44
- package/dist/f0.d.ts +6 -6
- package/dist/f0.js +218 -218
- package/dist/{highlight-D7BcbXP5.js → highlight-Bg7vgyjH.js} +4 -4
- package/dist/{i18n-provider-B3-kjPXK.js → i18n-provider-DyI_r6Au.js} +1 -1
- package/dist/{i18n-provider-defaults-BlGnW4EH.js → i18n-provider-defaults-C8fwj3sA.js} +4 -6
- package/dist/{i18n-provider-defaults-Csxr33dy.d.ts → i18n-provider-defaults-FGAsdJJR.d.ts} +4 -6
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-B01mneLV.d.ts → index-DC_v_uUG.d.ts} +33 -79
- package/dist/{maplibre-BMusGtni.js → maplibre-eOX45GBr.js} +1 -1
- package/dist/{pdfWorker-csDGfjpV.js → pdfWorker-DBQyzjMh.js} +1 -1
- package/dist/{popover-CBQ6ifku.js → popover-CKVOp9XF.js} +1 -1
- package/dist/{skeleton-Dl-alAMY.js → skeleton-Dw-7r7zp.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-Dx_088Js.js → toolbarStyles-C_OrVxv7.js} +1 -1
- package/dist/{types-QOTzx6bl.d.ts → types-Ia5pcWL6.d.ts} +2 -2
- package/dist/{useData-0FR__MaY.js → useData-CVTa0m1L.js} +6 -6
- package/package.json +1 -1
- package/dist/F0AudioPlayer-GshtwrMI.js +0 -2
- package/dist/F0VideoPlayer-HzLnLN2W.js +0 -1
package/dist/experimental.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $ as t, $n as n, $t as r, Ar as i, At as a, B as o, Br as s, Bt as c, C as l, Ci as u, Cr as d, Ct as f, D as p, Dr as m, Dt as h, E as g, Er as _, Et as v, F as y, Fn as b, Fr as x, Ft as S, G as C, Gr as w, H as T, Hr as E, I as D, In as O, Ir as k, It as A, J as j, K as M, Kr as N, Kt as P, L as F, Ln as I, Lr as ee, Mn as te, Mr as ne, Mt as re, N as ie, Nn as ae, Nr as oe, Or as se, P as ce, Pn as le, Pr as ue, Q as de, Qn as fe, Qr as pe, R as me, Rn as he, Rr as ge, Rt as _e, S as ve, Sn as L, Sr as ye, St as be, T as xe, Tr as Se, Tt as Ce, U as we, Ur as Te, V as Ee, Vr as De, W as Oe, Wr as ke, X as Ae, Xn as je, Xr as Me, Xt as Ne, Y as Pe, Yn as Fe, Yr as Ie, Z as Le, Zn as Re, Zr as ze, Zt as Be, _ as Ve, _i as He, _n as Ue, _r as We, ai as Ge, an as Ke, ar as qe, at as Je, b as Ye, bi as Xe, bn as Ze, br as Qe, ci as $e, cr as et, ct as tt, d as nt, dn as rt, dt as it, ei as at, et as ot, fi as st, fn as ct, g as lt, gi as ut, gn as dt, gr as ft, h as pt, hi as mt, hn as ht, ii as gt, in as _t, ir as vt, it as yt, jr as bt, jt as xt, kr as St, kt as Ct, li as wt, lr as Tt, lt as Et, mi as Dt, mn as Ot, n as kt, ni as At, nt as jt, oi as Mt, or as Nt, ot as Pt, p as Ft, pi as It, pn as Lt, pt as Rt, q as zt, qr as Bt, r as Vt, ri as Ht, rn as Ut, rr as Wt, rt as Gt, s as Kt, si as qt, sr as Jt, st as Yt, t as Xt, ti as Zt, tr as Qt, tt as $t, ui as en, ur as tn, ut as nn, v as rn, vi as an, vn as on, vr as sn, w as cn, wi 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-
|
|
3
|
-
import { a as bn, c as xn, d as Sn, i as Cn, l as wn, r as R } from "./i18n-provider-
|
|
4
|
-
import { n as Tn, t as z } from "./skeleton-
|
|
2
|
+
import { $ as t, $n as n, $t as r, Ar as i, At as a, B as o, Br as s, Bt as c, C as l, Ci as u, Cr as d, Ct as f, D as p, Dr as m, Dt as h, E as g, Er as _, Et as v, F as y, Fn as b, Fr as x, Ft as S, G as C, Gr as w, H as T, Hr as E, I as D, In as O, Ir as k, It as A, J as j, K as M, Kr as N, Kt as P, L as F, Ln as I, Lr as ee, Mn as te, Mr as ne, Mt as re, N as ie, Nn as ae, Nr as oe, Or as se, P as ce, Pn as le, Pr as ue, Q as de, Qn as fe, Qr as pe, R as me, Rn as he, Rr as ge, Rt as _e, S as ve, Sn as L, Sr as ye, St as be, T as xe, Tr as Se, Tt as Ce, U as we, Ur as Te, V as Ee, Vr as De, W as Oe, Wr as ke, X as Ae, Xn as je, Xr as Me, Xt as Ne, Y as Pe, Yn as Fe, Yr as Ie, Z as Le, Zn as Re, Zr as ze, Zt as Be, _ as Ve, _i as He, _n as Ue, _r as We, ai as Ge, an as Ke, ar as qe, at as Je, b as Ye, bi as Xe, bn as Ze, br as Qe, ci as $e, cr as et, ct as tt, d as nt, dn as rt, dt as it, ei as at, et as ot, fi as st, fn as ct, g as lt, gi as ut, gn as dt, gr as ft, h as pt, hi as mt, hn as ht, ii as gt, in as _t, ir as vt, it as yt, jr as bt, jt as xt, kr as St, kt as Ct, li as wt, lr as Tt, lt as Et, mi as Dt, mn as Ot, n as kt, ni as At, nt as jt, oi as Mt, or as Nt, ot as Pt, p as Ft, pi as It, pn as Lt, pt as Rt, q as zt, qr as Bt, r as Vt, ri as Ht, rn as Ut, rr as Wt, rt as Gt, s as Kt, si as qt, sr as Jt, st as Yt, t as Xt, ti as Zt, tr as Qt, tt as $t, ui as en, ur as tn, ut as nn, v as rn, vi as an, vn as on, vr as sn, w as cn, wi 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-BmIZobyx.js";
|
|
3
|
+
import { a as bn, c as xn, d as Sn, i as Cn, l as wn, r as R } from "./i18n-provider-DyI_r6Au.js";
|
|
4
|
+
import { n as Tn, t as z } from "./skeleton-Dw-7r7zp.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
|
-
import { C as Mn, D as Nn, E as Pn, G as Fn, I as In, K as Ln, L as Rn, O as zn, R as Bn, T as Vn, U as Hn, V as Un, W as Wn, X as Gn, Y 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, r as rr, t as H, v as ir, w as ar, x as or, y as sr, z as cr } from "./F0Button-
|
|
7
|
-
import { $ as lr, $
|
|
8
|
-
import { t as Bs } from "./LayoutGroup-
|
|
9
|
-
import { n as Vs, o as Hs, r as Us, t as U } from "./F0Icon-
|
|
10
|
-
import { A as Ws, C as Gs, E as Ks, H as qs, I as Js, L as Ys, M as Xs, N as W, O as Zs, P as Qs, R as $s, S as ec, T as tc, U as nc, V as rc, _ as ic, a as ac, b as oc, g as sc, j as cc, k as lc, p as uc, u as dc, w as fc } from "./useData-
|
|
11
|
-
import { $ as pc, A as mc, An as hc, Ar as gc,
|
|
6
|
+
import { C as Mn, D as Nn, E as Pn, G as Fn, I as In, K as Ln, L as Rn, O as zn, R as Bn, T as Vn, U as Hn, V as Un, W as Wn, X as Gn, Y 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, r as rr, t as H, v as ir, w as ar, x as or, y as sr, z as cr } from "./F0Button-B217B6lh.js";
|
|
7
|
+
import { $c as lr, $s as ur, $t as dr, A as fr, Ai as pr, An as mr, Ao as hr, Bi as gr, Bn as _r, Bo as vr, Bt as yr, C as br, Cl as xr, Cn as Sr, Ct as Cr, Di as wr, Dl as Tr, Dt as Er, E as Dr, El as Or, Et as kr, F as Ar, Fi as jr, Fo as Mr, Fs as Nr, Ft as Pr, Gi as Fr, Go as Ir, Gs as Lr, H as Rr, Hc as zr, Hi as Br, Hn as Vr, Ho as Hr, Hs as Ur, Ic as Wr, Il as Gr, In as Kr, Is as qr, It as Jr, J as Yr, Jn as Xr, Jo as Zr, Jt as Qr, Ki as $r, Ks as ei, Kt as ti, Lc as ni, Li as ri, Ll as ii, Ln as ai, Ls as oi, Lt as si, M as ci, Ml as li, Mo as ui, Ms as di, N as fi, Nn as pi, No as mi, Nt as hi, O as gi, Oc as _i, Oi as vi, Ot as yi, P as bi, Pc as xi, Pi as Si, Pl as Ci, Po as wi, Ps as Ti, Q as Ei, Qc as Di, Qs as Oi, Qt as ki, Rc as Ai, Ro as ji, Rs as Mi, Rt as Ni, S as Pi, Sc as Fi, Sn as Ii, Ss as Li, St as Ri, T as zi, Tl as Bi, Tt as Vi, Uc as Hi, Ui, Un as Wi, Uo as Gi, Us as Ki, V as qi, Vc as Ji, Vi as Yi, Vn as Xi, Vo as Zi, Wc as Qi, Wi as $i, Wn as ea, Wo as ta, X as na, Xc as ra, Xs as ia, Y as aa, Yi as oa, Yo as sa, Yt as ca, Z as la, Zs as ua, Zt as da, _ as fa, _a as pa, _c as ma, _i as ha, _l as ga, _n as _a, _r as va, _t as ya, a as ba, aa as xa, al as Sa, an as Ca, as as wa, at as Ta, b as Ea, bc as Da, bi as Oa, bl as ka, bn as Aa, bs as ja, bt as Ma, ci as Na, cl as Pa, ct as Fa, d as Ia, dl as La, dn as Ra, ds as za, el as Ba, en as Va, es as Ha, f as Ua, fn as Wa, fo as Ga, g as Ka, gc as qa, gt as Ja, h as Ya, ha as Xa, hc as Za, ht as Qa, i as $a, ia as eo, il as to, in as no, it as ro, j as io, ji as ao, jn as oo, jo as so, k as co, kc as lo, ki as uo, kn as fo, kt as po, l as mo, la as ho, lc as go, ll as _o, ln as vo, lo as yo, ls as bo, lt as xo, m as So, mc as Co, mn as wo, ms as To, mt as Eo, n as Do, nc as Oo, nn as ko, ns as Ao, nt as jo, o as Mo, oa as No, ol as Po, on as Fo, ot as Io, p as Lo, pc as Ro, pl as zo, pn as Bo, pt as Vo, qs as Ho, qt as Uo, r as Wo, ra as Go, rc as Ko, rl as qo, rs as Jo, rt as Yo, s as Xo, si as Zo, so as Qo, ss as $o, st as es, t as ts, ta as ns, tc as rs, tl as is, tn as as, ts as os, tt as ss, uc as cs, ul as ls, ut as us, v as ds, vc as fs, vi as ps, vn as ms, vr as hs, vs as gs, vt as _s, w as vs, wc as ys, wn as bs, ws as xs, wt as Ss, x as Cs, xc as ws, xi as Ts, xl as Es, xn as Ds, xs as Os, xt as ks, y as As, yi as js, yl as Ms, ys as Ns, yt as Ps, zc as Fs, zi as Is, zo as Ls, zs as Rs, zt as zs } from "./F0CanvasPanel-CVk_7eK7.js";
|
|
8
|
+
import { t as Bs } from "./LayoutGroup-DECnUFBB.js";
|
|
9
|
+
import { n as Vs, o as Hs, r as Us, t as U } from "./F0Icon-CRETnjaC.js";
|
|
10
|
+
import { A as Ws, C as Gs, E as Ks, H as qs, I as Js, L as Ys, M as Xs, N as W, O as Zs, P as Qs, R as $s, S as ec, T as tc, U as nc, V as rc, _ as ic, a as ac, b as oc, g as sc, j as cc, k as lc, p as uc, u as dc, w as fc } from "./useData-CVTa0m1L.js";
|
|
11
|
+
import { $ as pc, A as mc, An as hc, Ar as gc, Cn as _c, Cr as vc, Dn as yc, Dr as bc, Dt as xc, En as Sc, Et as Cc, F as wc, Fn as Tc, J as Ec, Mn as Dc, N as Oc, Nt as kc, Or as Ac, Ot as jc, P as Mc, Q as Nc, Tn as Pc, Tr as Fc, Tt as Ic, X as Lc, Yt as Rc, Z as zc, _ as Bc, an as Vc, at as Hc, bt as Uc, dt as Wc, fr as Gc, ft as Kc, g as qc, h as Jc, in as Yc, it as Xc, kn as Zc, kr as Qc, ln as $c, lr as el, m as tl, nn as nl, nt as rl, pn as il, pr as al, rt as ol, t as sl, tn as cl, tt as ll, ur as ul, ut as dl, v as fl, vn as pl, vt as ml, wr as hl, wt as gl, xt as _l, y as vl, yt as yl } from "./F0Select-Ef_MkLqL.js";
|
|
12
12
|
import { t as bl } from "./Check-DAp9gCRh.js";
|
|
13
|
-
import { a as xl } from "./dist-
|
|
13
|
+
import { a as xl } from "./dist-CpxH3Mhm.js";
|
|
14
14
|
import { t as Sl } from "./Ellipsis-CBouJQYY.js";
|
|
15
15
|
import { t as Cl } from "./ExternalLink-RdKU698E.js";
|
|
16
16
|
import { n as wl, t as Tl } from "./LockLocked-gdodYvT_.js";
|
|
17
17
|
import { a as El, o as Dl } from "./localized-CnKvEJya.js";
|
|
18
|
-
import { $ as Ol, D as kl, E as Al, J as jl, a as Ml, d as Nl, f as Pl, h as Fl, i as Il, m as Ll, n as Rl, p as zl, t as Bl, w as Vl, y as Hl } from "./popover-
|
|
19
|
-
import { a as Ul, i as Wl, n as Gl, o as Kl, r as ql, s as Jl, y as Yl } from "./dist-
|
|
20
|
-
import { t as Xl } from "./F0Text-
|
|
18
|
+
import { $ as Ol, D as kl, E as Al, J as jl, a as Ml, d as Nl, f as Pl, h as Fl, i as Il, m as Ll, n as Rl, p as zl, t as Bl, w as Vl, y as Hl } from "./popover-CKVOp9XF.js";
|
|
19
|
+
import { a as Ul, i as Wl, n as Gl, o as Kl, r as ql, s as Jl, y as Yl } from "./dist-CLXu6f__.js";
|
|
20
|
+
import { t as Xl } from "./F0Text-DEJMiNLl.js";
|
|
21
21
|
import { a as Zl, i as Ql, n as $l, r as eu, s as tu, t as nu } from "./dist-BCNVh6y5.js";
|
|
22
22
|
import './maplibre-gl.css';import './RichText.css';/* empty css */
|
|
23
23
|
import { t as ru } from "./useFullscreen-CNwpzjpz.js";
|
|
24
|
-
import { _ as iu, a as au, b as ou, c as su, d as cu, f as lu, g as uu, h as du, i as fu, l as pu, m as mu, n as hu, o as gu, p as _u, r as vu, t as yu, u as bu, v as xu, y as Su } from "./F0Map-
|
|
24
|
+
import { _ as iu, a as au, b as ou, c as su, d as cu, f as lu, g as uu, h as du, i as fu, l as pu, m as mu, n as hu, o as gu, p as _u, r as vu, t as yu, u as bu, v as xu, y as Su } from "./F0Map-Dz64Vvtw.js";
|
|
25
25
|
import { _ as Cu, a as wu, c as Tu, d as Eu, f as Du, g as Ou, h as ku, i as Au, l as ju, m as Mu, n as Nu, o as Pu, p as Fu, r as Iu, s as Lu, t as Ru, u as zu } from "./posts-riN1RZ23.js";
|
|
26
26
|
/* empty css */
|
|
27
27
|
import Bu, { Children as Vu, Fragment as Hu, Suspense as Uu, cloneElement as Wu, createContext as Gu, forwardRef as Ku, isValidElement as qu, lazy as Ju, memo as Yu, useCallback as G, useContext as Xu, useEffect as K, useId as Zu, useImperativeHandle as Qu, useInsertionEffect as $u, useLayoutEffect as q, useMemo as J, useReducer as ed, useRef as Y, useState as X, useSyncExternalStore as td, useTransition as nd } from "react";
|
|
@@ -40,18 +40,18 @@ var ad = kl("Search", [["circle", {
|
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region ../../node_modules/.bun/date-fns@3.6.0/node_modules/date-fns/differenceInMilliseconds.mjs
|
|
42
42
|
function od(e, t) {
|
|
43
|
-
return +
|
|
43
|
+
return +Pc(e) - Pc(t);
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region ../../node_modules/.bun/date-fns@3.6.0/node_modules/date-fns/differenceInMinutes.mjs
|
|
47
47
|
function sd(e, t, n) {
|
|
48
|
-
let r = od(e, t) /
|
|
49
|
-
return
|
|
48
|
+
let r = od(e, t) / pl;
|
|
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 cd(e) {
|
|
54
|
-
return
|
|
54
|
+
return il(e, _c(Ls(e), 1));
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region src/elements/F0ProgressSeries/types.ts
|
|
@@ -199,7 +199,7 @@ var ld = [
|
|
|
199
199
|
size: c,
|
|
200
200
|
hideLabel: !0,
|
|
201
201
|
disabled: o,
|
|
202
|
-
icon: u ? void 0 :
|
|
202
|
+
icon: u ? void 0 : Ki
|
|
203
203
|
})
|
|
204
204
|
}), /* @__PURE__ */ $(Il, {
|
|
205
205
|
side: "bottom",
|
|
@@ -265,10 +265,10 @@ var Ad = bn(Tn("F0EmojiPicker", kd)), jd = [
|
|
|
265
265
|
critical: "text-f1-foreground-critical"
|
|
266
266
|
} } }), Fd = {
|
|
267
267
|
neutral: null,
|
|
268
|
-
info:
|
|
268
|
+
info: al,
|
|
269
269
|
positive: xl,
|
|
270
|
-
warning:
|
|
271
|
-
critical:
|
|
270
|
+
warning: el,
|
|
271
|
+
critical: gc
|
|
272
272
|
}, Id = {
|
|
273
273
|
neutral: "default",
|
|
274
274
|
info: "info",
|
|
@@ -358,12 +358,12 @@ var Ad = bn(Tn("F0EmojiPicker", kd)), jd = [
|
|
|
358
358
|
}) : null
|
|
359
359
|
]
|
|
360
360
|
}),
|
|
361
|
-
r && i ? /* @__PURE__ */ Q(
|
|
361
|
+
r && i ? /* @__PURE__ */ Q(xa, {
|
|
362
362
|
asChild: !0,
|
|
363
363
|
children: /* @__PURE__ */ Q(H, {
|
|
364
364
|
variant: "ghost",
|
|
365
365
|
size: "sm",
|
|
366
|
-
icon: a ?
|
|
366
|
+
icon: a ? vc : qs,
|
|
367
367
|
label: s.t(a ? "actions.collapseItem" : "actions.expandItem", { title: t }),
|
|
368
368
|
hideLabel: !0
|
|
369
369
|
})
|
|
@@ -371,7 +371,7 @@ var Ad = bn(Tn("F0EmojiPicker", kd)), jd = [
|
|
|
371
371
|
o ? /* @__PURE__ */ Q(H, {
|
|
372
372
|
variant: "ghost",
|
|
373
373
|
size: "sm",
|
|
374
|
-
icon:
|
|
374
|
+
icon: to,
|
|
375
375
|
hideLabel: !0,
|
|
376
376
|
label: c.close,
|
|
377
377
|
onClick: o
|
|
@@ -402,7 +402,7 @@ var Ad = bn(Tn("F0EmojiPicker", kd)), jd = [
|
|
|
402
402
|
},
|
|
403
403
|
transition: { duration: a ? 0 : .2 },
|
|
404
404
|
className: "overflow-hidden",
|
|
405
|
-
children: /* @__PURE__ */ Q(
|
|
405
|
+
children: /* @__PURE__ */ Q(eo, {
|
|
406
406
|
forceMount: !0,
|
|
407
407
|
asChild: !0,
|
|
408
408
|
children: /* @__PURE__ */ Q("div", { children: n.map((t, r) => /* @__PURE__ */ Q(Vd, {
|
|
@@ -443,13 +443,13 @@ var Ad = bn(Tn("F0EmojiPicker", kd)), jd = [
|
|
|
443
443
|
})]
|
|
444
444
|
}), s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("div", {
|
|
445
445
|
className: "-ml-2",
|
|
446
|
-
children: /* @__PURE__ */ Q(
|
|
446
|
+
children: /* @__PURE__ */ Q(xa, {
|
|
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 ?
|
|
452
|
+
icon: c ? vc : qs,
|
|
453
453
|
iconPosition: "right"
|
|
454
454
|
})
|
|
455
455
|
})
|
|
@@ -470,7 +470,7 @@ var Ad = bn(Tn("F0EmojiPicker", kd)), jd = [
|
|
|
470
470
|
},
|
|
471
471
|
transition: { duration: l ? 0 : .2 },
|
|
472
472
|
className: "w-full overflow-hidden",
|
|
473
|
-
children: /* @__PURE__ */ Q(
|
|
473
|
+
children: /* @__PURE__ */ Q(eo, {
|
|
474
474
|
forceMount: !0,
|
|
475
475
|
asChild: !0,
|
|
476
476
|
children: /* @__PURE__ */ Q(d, {
|
|
@@ -537,7 +537,7 @@ var Ad = bn(Tn("F0EmojiPicker", kd)), jd = [
|
|
|
537
537
|
children: [A, j]
|
|
538
538
|
})]
|
|
539
539
|
});
|
|
540
|
-
return w ? /* @__PURE__ */ Q(
|
|
540
|
+
return w ? /* @__PURE__ */ Q(Go, {
|
|
541
541
|
open: y,
|
|
542
542
|
onOpenChange: (e) => {
|
|
543
543
|
v(e), f?.(e);
|
|
@@ -570,7 +570,7 @@ var Ad = bn(Tn("F0EmojiPicker", kd)), jd = [
|
|
|
570
570
|
compact: t
|
|
571
571
|
});
|
|
572
572
|
Zd.displayName = "F0AiCallout";
|
|
573
|
-
var $d =
|
|
573
|
+
var $d = os(bn(Zd), Qd), ef = Hs({
|
|
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]",
|
|
@@ -582,8 +582,8 @@ var $d = Xo(bn(Zd), Qd), ef = Hs({
|
|
|
582
582
|
defaultVariants: { variant: "ai" }
|
|
583
583
|
}), tf = {
|
|
584
584
|
positive: xl,
|
|
585
|
-
warning:
|
|
586
|
-
info:
|
|
585
|
+
warning: el,
|
|
586
|
+
info: al
|
|
587
587
|
}, nf = {
|
|
588
588
|
positive: "text-f1-foreground-positive font-medium",
|
|
589
589
|
warning: "text-f1-foreground-warning font-medium",
|
|
@@ -609,7 +609,7 @@ var $d = Xo(bn(Zd), Qd), ef = Hs({
|
|
|
609
609
|
})]
|
|
610
610
|
}), t ? /* @__PURE__ */ Q(H, {
|
|
611
611
|
variant: "ghost",
|
|
612
|
-
icon:
|
|
612
|
+
icon: to,
|
|
613
613
|
size: "sm",
|
|
614
614
|
hideLabel: !0,
|
|
615
615
|
onClick: t,
|
|
@@ -663,7 +663,7 @@ var $d = Xo(bn(Zd), Qd), ef = Hs({
|
|
|
663
663
|
variant: t
|
|
664
664
|
});
|
|
665
665
|
of.displayName = "F0Callout";
|
|
666
|
-
var cf =
|
|
666
|
+
var cf = os(bn(of), sf), lf = [
|
|
667
667
|
"#EE4B8E",
|
|
668
668
|
"#2E7FF0",
|
|
669
669
|
"#4CAF3E",
|
|
@@ -750,7 +750,7 @@ yf.displayName = "F0Confetti";
|
|
|
750
750
|
var bf = bn(Tn("F0Confetti", yf)), xf = (e, t) => {
|
|
751
751
|
let n = new Date(e);
|
|
752
752
|
return n.setDate(n.getDate() + t), n;
|
|
753
|
-
}, Sf = (e, t) =>
|
|
753
|
+
}, Sf = (e, t) => il(e, t) ? "today" : il(e, xf(t, -1)) ? "yesterday" : il(e, xf(t, 1)) ? "tomorrow" : "other", Cf = (e, t) => sd(e, t), wf = (e, t) => Math.max(0, sd(t, e)), Tf = ({ state: e, startsAt: t, now: n, windowMinutes: r = 10 }) => e === "inProgress" || e === "ringing" || e === "scheduled" && Cf(t, n) <= r, Ef = (e) => e === "scheduled" || e === "inProgress" || e === "ringing", Df = ({ state: e, startsAt: t, now: n, windowMinutes: r = 10 }) => e === "scheduled" && Cf(t, n) <= r, Of = ({ state: e, hasCountdown: t }) => e !== "scheduled" || t, kf = (e, t) => {
|
|
754
754
|
if (!t) return;
|
|
755
755
|
let n = sd(t, e);
|
|
756
756
|
return n > 0 ? n : void 0;
|
|
@@ -767,7 +767,7 @@ var bf = bn(Tn("F0Confetti", yf)), xf = (e, t) => {
|
|
|
767
767
|
lastName: n.join(" "),
|
|
768
768
|
tooltipDescription: e.email
|
|
769
769
|
};
|
|
770
|
-
}), Nf = (e, t) =>
|
|
770
|
+
}), Nf = (e, t) => $c(e, "p", { locale: t }), Pf = (e, t) => $c(e, "d MMM", { locale: t }), Ff = ({ attendees: e, relevantCount: t, maxAvatars: n = 3, size: r = "sm" }) => {
|
|
771
771
|
let { meetingCard: i } = R();
|
|
772
772
|
if (e.length === 0) return null;
|
|
773
773
|
let a = Math.max(0, t - e.length);
|
|
@@ -786,19 +786,19 @@ var bf = bn(Tn("F0Confetti", yf)), xf = (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: Ns,
|
|
790
790
|
variant: "default",
|
|
791
791
|
href: e.href
|
|
792
792
|
}) : /* @__PURE__ */ Q(H, {
|
|
793
793
|
label: r,
|
|
794
|
-
icon:
|
|
794
|
+
icon: Ns,
|
|
795
795
|
variant: "default",
|
|
796
796
|
disabled: t,
|
|
797
797
|
onClick: e.onJoin
|
|
798
798
|
});
|
|
799
799
|
}, Lf = ({ text: e }) => {
|
|
800
800
|
let t = Zn();
|
|
801
|
-
return /* @__PURE__ */ Q(
|
|
801
|
+
return /* @__PURE__ */ Q(hc, {
|
|
802
802
|
className: "bg-f1-background-info text-f1-foreground-info",
|
|
803
803
|
left: /* @__PURE__ */ Q("div", {
|
|
804
804
|
className: B("m-1 aspect-square w-2 rounded-full bg-f1-icon-info", !t && "animate-pulse"),
|
|
@@ -810,28 +810,28 @@ var bf = bn(Tn("F0Confetti", yf)), xf = (e, t) => {
|
|
|
810
810
|
let { meetingCard: r } = R();
|
|
811
811
|
switch (e) {
|
|
812
812
|
case "inProgress": return /* @__PURE__ */ Q(Lf, { text: r.inProgress });
|
|
813
|
-
case "ringing": return /* @__PURE__ */ Q(
|
|
813
|
+
case "ringing": return /* @__PURE__ */ Q(Sc, {
|
|
814
814
|
text: r.ringing,
|
|
815
815
|
variant: "warning"
|
|
816
816
|
});
|
|
817
|
-
case "missed": return /* @__PURE__ */ Q(
|
|
817
|
+
case "missed": return /* @__PURE__ */ Q(Sc, {
|
|
818
818
|
text: r.missed,
|
|
819
819
|
variant: n
|
|
820
820
|
});
|
|
821
|
-
case "summarizing": return /* @__PURE__ */ Q(
|
|
821
|
+
case "summarizing": return /* @__PURE__ */ Q(Sc, {
|
|
822
822
|
text: r.summarizing,
|
|
823
823
|
variant: "neutral",
|
|
824
|
-
icon:
|
|
824
|
+
icon: Ci
|
|
825
825
|
});
|
|
826
|
-
case "finished": return /* @__PURE__ */ Q(
|
|
826
|
+
case "finished": return /* @__PURE__ */ Q(Sc, {
|
|
827
827
|
text: r.finished,
|
|
828
828
|
variant: "positive"
|
|
829
829
|
});
|
|
830
|
-
case "cancelled": return /* @__PURE__ */ Q(
|
|
830
|
+
case "cancelled": return /* @__PURE__ */ Q(Sc, {
|
|
831
831
|
text: r.cancelled,
|
|
832
832
|
variant: "neutral"
|
|
833
833
|
});
|
|
834
|
-
case "scheduled": return t ? /* @__PURE__ */ Q(
|
|
834
|
+
case "scheduled": return t ? /* @__PURE__ */ Q(Sc, {
|
|
835
835
|
text: t,
|
|
836
836
|
variant: "warning"
|
|
837
837
|
}) : null;
|
|
@@ -849,7 +849,7 @@ var bf = bn(Tn("F0Confetti", yf)), xf = (e, t) => {
|
|
|
849
849
|
})
|
|
850
850
|
});
|
|
851
851
|
}, Bf = ({ state: e, startsAt: t, endsAt: n, now: r, windowMinutes: i, invitedCount: a, presentCount: o, guestCount: s }) => {
|
|
852
|
-
let { meetingCard: c } = R(), l =
|
|
852
|
+
let { meetingCard: c } = R(), l = nl();
|
|
853
853
|
return J(() => {
|
|
854
854
|
let u = {
|
|
855
855
|
today: c.today,
|
|
@@ -942,7 +942,7 @@ var bf = bn(Tn("F0Confetti", yf)), xf = (e, t) => {
|
|
|
942
942
|
join: p,
|
|
943
943
|
disabled: N
|
|
944
944
|
}) : null] });
|
|
945
|
-
return /* @__PURE__ */ Q(
|
|
945
|
+
return /* @__PURE__ */ Q(wa, {
|
|
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 bf = bn(Tn("F0Confetti", yf)), xf = (e, t) => {
|
|
|
983
983
|
});
|
|
984
984
|
});
|
|
985
985
|
Vf.displayName = "F0MeetingCard";
|
|
986
|
-
var Hf = bn(Tn("F0MeetingCard",
|
|
986
|
+
var Hf = bn(Tn("F0MeetingCard", os(Vf, ({ compact: e = !1 }) => /* @__PURE__ */ Q(wa, {
|
|
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",
|
|
@@ -1033,7 +1033,7 @@ function qf({ range: e, position: t }) {
|
|
|
1033
1033
|
gap: "xs",
|
|
1034
1034
|
children: [
|
|
1035
1035
|
n === "start" ? /* @__PURE__ */ Q(U, {
|
|
1036
|
-
icon:
|
|
1036
|
+
icon: Fc,
|
|
1037
1037
|
size: "xs",
|
|
1038
1038
|
color: "secondary"
|
|
1039
1039
|
}) : null,
|
|
@@ -1070,7 +1070,7 @@ function qf({ range: e, position: t }) {
|
|
|
1070
1070
|
})
|
|
1071
1071
|
}),
|
|
1072
1072
|
n === "end" ? /* @__PURE__ */ Q(U, {
|
|
1073
|
-
icon:
|
|
1073
|
+
icon: hl,
|
|
1074
1074
|
size: "xs",
|
|
1075
1075
|
color: "secondary"
|
|
1076
1076
|
}) : null
|
|
@@ -1112,7 +1112,7 @@ function Jf({ content: e, position: t, viewReport: n }) {
|
|
|
1112
1112
|
top: "md",
|
|
1113
1113
|
zIndex: "10",
|
|
1114
1114
|
children: /* @__PURE__ */ Q(Be, {
|
|
1115
|
-
icon:
|
|
1115
|
+
icon: Ci,
|
|
1116
1116
|
label: e.autoMapped.label,
|
|
1117
1117
|
info: {
|
|
1118
1118
|
title: e.autoMapped.label,
|
|
@@ -1205,7 +1205,7 @@ function Yf({ content: e, viewReport: t }) {
|
|
|
1205
1205
|
paddingLeft: "md",
|
|
1206
1206
|
paddingRight: "lg",
|
|
1207
1207
|
children: [/* @__PURE__ */ Q(U, {
|
|
1208
|
-
icon:
|
|
1208
|
+
icon: Qi,
|
|
1209
1209
|
size: "lg",
|
|
1210
1210
|
color: "secondary"
|
|
1211
1211
|
}), /* @__PURE__ */ Q(Xl, { content: e.description })]
|
|
@@ -1338,14 +1338,14 @@ function op({ 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: oi,
|
|
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: to,
|
|
1349
1349
|
hideLabel: !0,
|
|
1350
1350
|
onClick: r
|
|
1351
1351
|
}) : null]
|
|
@@ -1497,7 +1497,7 @@ var _p = bn(Tn("F0PulseDot", gp)), vp = [
|
|
|
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
|
}, xp = (e, t) => {
|
|
1500
|
-
t.isReplaced ||
|
|
1500
|
+
t.isReplaced || Ma(e) || t.editor.handleUndoRedoKeyDown(e) || t.markdown.handleKeyDown(e) || t.autocomplete?.handleKeyDown(e) || t.editor.mentions.handleKeyDown(e) || yp(e, t) || bp(e, t) || e.key !== "Enter" || e.shiftKey || (e.preventDefault(), t.inProgress ? t.queue?.() : t.send());
|
|
1501
1501
|
}, Sp = (e, t, n) => {
|
|
1502
1502
|
let r = e?.isOpen ?? !1;
|
|
1503
1503
|
K(() => {
|
|
@@ -1592,10 +1592,10 @@ var _p = bn(Tn("F0PulseDot", gp)), vp = [
|
|
|
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
|
}, Op = ({ onSend: e, attachments: t, hasAttachments: n, sendBlocked: r, onPasteFiles: i, labels: a, markdown: o }) => {
|
|
1595
|
-
let s =
|
|
1595
|
+
let s = _s(), c = s.show, l = Ep(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: hi(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 _p = bn(Tn("F0PulseDot", gp)), vp = [
|
|
|
1613
1613
|
e,
|
|
1614
1614
|
o
|
|
1615
1615
|
]), m = G((t) => e(t, {
|
|
1616
|
-
serialised:
|
|
1616
|
+
serialised: hi(t.text, t.mentions, { markdown: o }),
|
|
1617
1617
|
files: [],
|
|
1618
1618
|
queued: !0
|
|
1619
1619
|
}), [e, o]);
|
|
@@ -1633,7 +1633,7 @@ var _p = bn(Tn("F0PulseDot", gp)), vp = [
|
|
|
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 = Cr(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 _p = bn(Tn("F0PulseDot", gp)), vp = [
|
|
|
1813
1813
|
canSend: p
|
|
1814
1814
|
};
|
|
1815
1815
|
}, Pp = ({ 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 } = _s(), 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 = Xr({
|
|
1824
1824
|
onTranscribe: e?.onTranscribe,
|
|
1825
1825
|
onPartial: l,
|
|
1826
1826
|
onFinal: (e) => {
|
|
@@ -1921,7 +1921,7 @@ var Hp = /[\p{L}\p{N}_]/u, Up = /\s/, Wp = /* @__PURE__ */ new Set([
|
|
|
1921
1921
|
start: n,
|
|
1922
1922
|
end: r
|
|
1923
1923
|
};
|
|
1924
|
-
}, Qp = (e, t) => e.find((e) => e.start < t && t <
|
|
1924
|
+
}, Qp = (e, t) => e.find((e) => e.start < t && t < Pr(e)), $p = (e, t) => si(e).find((e) => e.start < t && t < e.end), em = (e, t) => !Kp(e[t - 1]) || !Kp(e[t]) ? null : Zp(e, {
|
|
1925
1925
|
start: t,
|
|
1926
1926
|
end: t
|
|
1927
1927
|
}), tm = (e, t) => !Kp(e[t - 1]) && !Kp(e[t]) ? null : Zp(e, {
|
|
@@ -1932,7 +1932,7 @@ var Hp = /[\p{L}\p{N}_]/u, Up = /\s/, Wp = /* @__PURE__ */ new Set([
|
|
|
1932
1932
|
end: Math.max(e.end, t.end)
|
|
1933
1933
|
} : e, e), im = (e, t) => rm(e, t.map((e) => ({
|
|
1934
1934
|
start: e.start,
|
|
1935
|
-
end:
|
|
1935
|
+
end: Pr(e)
|
|
1936
1936
|
}))), am = (e, t, n, r) => {
|
|
1937
1937
|
let i = (t) => im(n === "italic" ? Zp(e, t) : t, r), a = t, o = i(a);
|
|
1938
1938
|
for (; !Xp(a, o);) a = o, o = i(a);
|
|
@@ -1948,7 +1948,7 @@ var Hp = /[\p{L}\p{N}_]/u, Up = /\s/, Wp = /* @__PURE__ */ new Set([
|
|
|
1948
1948
|
}, sm = (e, t) => t === 0 ? 0 : e.lastIndexOf("\n", t - 1) + 1, cm = (e, t) => {
|
|
1949
1949
|
let n = [], r = sm(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 = zs.exec(e.slice(r, a))?.[0].length ?? 0, s = om(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 Hp = /[\p{L}\p{N}_]/u, Up = /\s/, Wp = /* @__PURE__ */ new Set([
|
|
|
1975
1975
|
let n = sm(e, t), r = e.slice(n, pm(e, t)), i = r.trimStart();
|
|
1976
1976
|
return {
|
|
1977
1977
|
offset: n + r.length - i.length,
|
|
1978
|
-
spans:
|
|
1978
|
+
spans: Ni(i)
|
|
1979
1979
|
};
|
|
1980
1980
|
}, hm = (e, t, n, r) => {
|
|
1981
1981
|
let i = e[t], a = 0;
|
|
@@ -2047,7 +2047,7 @@ var Hp = /[\p{L}\p{N}_]/u, Up = /\s/, Wp = /* @__PURE__ */ new Set([
|
|
|
2047
2047
|
start: r,
|
|
2048
2048
|
end: r
|
|
2049
2049
|
});
|
|
2050
|
-
}, Tm = (e, t) =>
|
|
2050
|
+
}, Tm = (e, t) => Ni(e).filter((e) => e.type === Gp[t]), Em = (e, t, n) => {
|
|
2051
2051
|
let r = zp[n].length, i = Math.min(hm(e, t.start, 1, r), hm(e, t.end - 1, -1, r));
|
|
2052
2052
|
return [{
|
|
2053
2053
|
at: t.start,
|
|
@@ -2081,7 +2081,7 @@ var Hp = /[\p{L}\p{N}_]/u, Up = /\s/, Wp = /* @__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), Mm = ({ input: e, range: t, pieces: n }) => {
|
|
2084
|
-
let { value: r, format: i } = e, a =
|
|
2084
|
+
let { value: r, format: i } = e, a = Ni(r).filter((e) => Om(e, t) && (e.type === Gp[i] || !Am(t, km(r, e)))), o = si(r).filter((e) => Om(e, t)), s = rm(t, [...a, ...o]);
|
|
2085
2085
|
if (!Xp(s, t)) return Nm(e, s);
|
|
2086
2086
|
let c = a.filter((e) => n.some((t) => Om(e, t))), [l, u] = [c.filter((e) => e.type === Gp[i]), c.filter((e) => e.type !== Gp[i])], d = zp[i], f = [...l.flatMap((e) => Em(r, e, i)), ...jm(r, n, [...u, ...o]).flatMap((e) => [{
|
|
2087
2087
|
at: e.start,
|
|
@@ -2129,7 +2129,7 @@ function Pm(e) {
|
|
|
2129
2129
|
let r = Qp(e.mentions, t);
|
|
2130
2130
|
if (r) return Nm(e, {
|
|
2131
2131
|
start: r.start,
|
|
2132
|
-
end:
|
|
2132
|
+
end: Pr(r)
|
|
2133
2133
|
});
|
|
2134
2134
|
let i = $p(e.value, t);
|
|
2135
2135
|
if (i) return Nm(e, i);
|
|
@@ -2209,7 +2209,7 @@ function Hm({ markdown: e, editor: t, valueRef: n, mentionsRef: r, pendingSelect
|
|
|
2209
2209
|
//#endregion
|
|
2210
2210
|
//#region src/elements/F0Composer/hooks/useOpenList.ts
|
|
2211
2211
|
var Um = (e, t, n) => {
|
|
2212
|
-
let { mentions: r } = e, i = `composer-mentions-${Zu().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-${Zu().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 ? ya(i, s.item) : void 0;
|
|
2213
2213
|
return a ? {
|
|
2214
2214
|
mentionListboxId: i,
|
|
2215
2215
|
mentionsVisible: o,
|
|
@@ -2270,9 +2270,9 @@ var Um = (e, t, n) => {
|
|
|
2270
2270
|
]);
|
|
2271
2271
|
}, Jm = (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 ?? [], ...aa(e?.actions ?? [])], r = [...t ? [{
|
|
2274
2274
|
label: t.label,
|
|
2275
|
-
icon:
|
|
2275
|
+
icon: rs,
|
|
2276
2276
|
onClick: t.onClick,
|
|
2277
2277
|
disabled: t.disabled,
|
|
2278
2278
|
disabledTooltip: t.disabledTooltip
|
|
@@ -2285,7 +2285,7 @@ var Um = (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(Zi, {
|
|
2289
2289
|
items: e.items ?? [],
|
|
2290
2290
|
align: "start",
|
|
2291
2291
|
disabled: n,
|
|
@@ -2375,13 +2375,13 @@ var oh = (e) => {
|
|
|
2375
2375
|
let i = R(), a = oh(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 || Ds({
|
|
2379
2379
|
name: n,
|
|
2380
2380
|
url: t
|
|
2381
2381
|
});
|
|
2382
2382
|
return [{
|
|
2383
2383
|
entry: e,
|
|
2384
|
-
attachment:
|
|
2384
|
+
attachment: Ii({
|
|
2385
2385
|
name: n,
|
|
2386
2386
|
url: t,
|
|
2387
2387
|
mimeType: r
|
|
@@ -2400,12 +2400,12 @@ var oh = (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" ? Ra(t, Bo(n, t.url)) : null
|
|
2404
|
+
})), [o]), c = na(s, "composer");
|
|
2405
|
+
return /* @__PURE__ */ Q(la, {
|
|
2406
2406
|
items: o.map(({ entry: e, attachment: r }) => ({
|
|
2407
2407
|
id: e.id,
|
|
2408
|
-
content: /* @__PURE__ */ Q(
|
|
2408
|
+
content: /* @__PURE__ */ Q(Ei, {
|
|
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 oh = (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(yi, {
|
|
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 oh = (e) => {
|
|
|
2449
2449
|
width: "full",
|
|
2450
2450
|
flexDirection: "column",
|
|
2451
2451
|
gap: "sm",
|
|
2452
|
-
children: [/* @__PURE__ */ Q(
|
|
2452
|
+
children: [/* @__PURE__ */ Q(Yr, {
|
|
2453
2453
|
notice: t,
|
|
2454
2454
|
dismissLabel: r.dismissNotice,
|
|
2455
2455
|
children: c
|
|
2456
|
-
}), /* @__PURE__ */ Q(
|
|
2456
|
+
}), /* @__PURE__ */ Q(po, {
|
|
2457
2457
|
hint: a ? {
|
|
2458
2458
|
navigate: r.hintNavigate,
|
|
2459
2459
|
select: r.hintSelect,
|
|
@@ -2469,14 +2469,14 @@ var oh = (e) => {
|
|
|
2469
2469
|
//#endregion
|
|
2470
2470
|
//#region src/elements/F0Composer/parts/ComposerControls.tsx
|
|
2471
2471
|
function uh({ 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 } = Eo(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: Vo(n, c, a, o),
|
|
2480
2480
|
disabled: l
|
|
2481
2481
|
});
|
|
2482
2482
|
return !s || c ? f : /* @__PURE__ */ Q("span", {
|
|
@@ -2492,7 +2492,7 @@ function dh(e) {
|
|
|
2492
2492
|
size: "md",
|
|
2493
2493
|
hideLabel: !0,
|
|
2494
2494
|
label: n?.busy ? t.sendingVoice : t.recordAudio,
|
|
2495
|
-
icon:
|
|
2495
|
+
icon: Za,
|
|
2496
2496
|
onClick: e.onRecord,
|
|
2497
2497
|
disabled: n?.disabled,
|
|
2498
2498
|
loading: e.micLoading
|
|
@@ -2506,7 +2506,7 @@ var fh = (e, t) => e ? t ? "now" : "atRest" : "never";
|
|
|
2506
2506
|
function ph({ 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(Mo, {})
|
|
2510
2510
|
});
|
|
2511
2511
|
return /* @__PURE__ */ $(Z, { children: [n === "never" ? r : /* @__PURE__ */ Q("span", {
|
|
2512
2512
|
className: B(eh, n === "now" ? th : nh),
|
|
@@ -2531,7 +2531,7 @@ function hh({ mode: e, ...t }) {
|
|
|
2531
2531
|
size: "md",
|
|
2532
2532
|
hideLabel: !0,
|
|
2533
2533
|
label: t.labels.queue,
|
|
2534
|
-
icon:
|
|
2534
|
+
icon: bc,
|
|
2535
2535
|
onClick: t.onQueue
|
|
2536
2536
|
}) : e === "stop" ? /* @__PURE__ */ Q(uh, {
|
|
2537
2537
|
...t,
|
|
@@ -2558,7 +2558,7 @@ function gh(e) {
|
|
|
2558
2558
|
},
|
|
2559
2559
|
transition: {
|
|
2560
2560
|
duration: .15,
|
|
2561
|
-
ease:
|
|
2561
|
+
ease: mr
|
|
2562
2562
|
},
|
|
2563
2563
|
children: /* @__PURE__ */ Q(hh, {
|
|
2564
2564
|
mode: i,
|
|
@@ -2598,7 +2598,7 @@ var vh = ({ 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: ls,
|
|
2602
2602
|
size: "xs",
|
|
2603
2603
|
color: "default"
|
|
2604
2604
|
}), t.queued]
|
|
@@ -2615,7 +2615,7 @@ var vh = ({ 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: to,
|
|
2619
2619
|
onClick: n
|
|
2620
2620
|
})
|
|
2621
2621
|
})]
|
|
@@ -2640,7 +2640,7 @@ var vh = ({ 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(Xi, {
|
|
2644
2644
|
stream: i,
|
|
2645
2645
|
className: "min-w-0 flex-1"
|
|
2646
2646
|
})
|
|
@@ -2652,7 +2652,7 @@ var vh = ({ 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: to,
|
|
2656
2656
|
onClick: s
|
|
2657
2657
|
}), /* @__PURE__ */ Q(V, {
|
|
2658
2658
|
ref: o,
|
|
@@ -2687,7 +2687,7 @@ var vh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2687
2687
|
},
|
|
2688
2688
|
transition: {
|
|
2689
2689
|
duration: n ? 0 : .18,
|
|
2690
|
-
ease:
|
|
2690
|
+
ease: mr
|
|
2691
2691
|
},
|
|
2692
2692
|
children: /* @__PURE__ */ Q("div", {
|
|
2693
2693
|
className: "p-1",
|
|
@@ -2730,7 +2730,7 @@ var vh = ({ 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: to,
|
|
2734
2734
|
onClick: e.onRemove
|
|
2735
2735
|
})
|
|
2736
2736
|
})
|
|
@@ -2808,7 +2808,7 @@ var vh = ({ text: e, labels: t, onRemove: n }) => /* @__PURE__ */ Q("div", {
|
|
|
2808
2808
|
rest: t
|
|
2809
2809
|
}), i] }) : i;
|
|
2810
2810
|
function Ph({ 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 = Ps(f, b), me = P != null, he = Op({
|
|
2812
2812
|
onSend: e,
|
|
2813
2813
|
attachments: A,
|
|
2814
2814
|
hasAttachments: s,
|
|
@@ -2824,7 +2824,7 @@ function Ph({ 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 = ks({
|
|
2828
2828
|
mentions: {
|
|
2829
2829
|
enabled: Oh(v) && !Ne && !me,
|
|
2830
2830
|
sources: v?.sources ?? Ch,
|
|
@@ -2854,7 +2854,7 @@ function Ph({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r
|
|
|
2854
2854
|
isReplaced: me
|
|
2855
2855
|
}), He = (y?.useAutocomplete ?? wh)(Fe);
|
|
2856
2856
|
Sp(He, Fe.mentions.dismissCurrentTrigger, Pe);
|
|
2857
|
-
let Ue = Um(Fe, He, me), { highlightSegments: We, hasOverlay: Ge } =
|
|
2857
|
+
let Ue = Um(Fe, He, me), { highlightSegments: We, hasOverlay: Ge } = Ri(Fe, { suppressGhost: He?.isOpen ?? !1 });
|
|
2858
2858
|
Cp(me, Be.close);
|
|
2859
2859
|
let Ke = Ie.length === 0;
|
|
2860
2860
|
qm(D, {
|
|
@@ -2894,7 +2894,7 @@ function Ph({ 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 = us({
|
|
2898
2898
|
enabled: !!he.pasteFiles && !me,
|
|
2899
2899
|
onFiles: he.pasteFiles ?? (() => {}),
|
|
2900
2900
|
preferText: E
|
|
@@ -2936,7 +2936,7 @@ function Ph({ 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(Er, {
|
|
2940
2940
|
inset: "icon",
|
|
2941
2941
|
className: "min-w-0 flex-1",
|
|
2942
2942
|
textareaRef: ze,
|
|
@@ -2993,7 +2993,7 @@ function Ph({ onSend: e, inProgress: t = !1, onStop: n, queueWhileInProgress: r
|
|
|
2993
2993
|
reducedMotion: de
|
|
2994
2994
|
}),
|
|
2995
2995
|
O,
|
|
2996
|
-
/* @__PURE__ */ Q(
|
|
2996
|
+
/* @__PURE__ */ Q(Qa, {
|
|
2997
2997
|
message: Ye,
|
|
2998
2998
|
id: nt,
|
|
2999
2999
|
reducedMotion: de
|
|
@@ -3041,7 +3041,7 @@ function Ph({ 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(Ja, {
|
|
3045
3045
|
isOpen: Ue.mentionsVisible,
|
|
3046
3046
|
listboxId: Ue.mentionListboxId,
|
|
3047
3047
|
label: pe.mentionSuggestions,
|
|
@@ -3279,7 +3279,7 @@ var Uh = 30, Wh = 50, Gh = (e, t, n) => Math.min(Math.max(e, t), n), Kh = (e) =>
|
|
|
3279
3279
|
Panel: Hh,
|
|
3280
3280
|
Handle: Vh
|
|
3281
3281
|
}), Zh = "Previous", Qh = "bg-f1-background", $h = 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 = ps(), 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());
|
|
@@ -3329,7 +3329,7 @@ var Uh = 30, Wh = 50, Gh = (e, t, n) => Math.min(Math.max(e, t), n), Kh = (e) =>
|
|
|
3329
3329
|
previous: /* @__PURE__ */ Q(V, {
|
|
3330
3330
|
variant: "outline",
|
|
3331
3331
|
size: "md",
|
|
3332
|
-
icon:
|
|
3332
|
+
icon: Fc,
|
|
3333
3333
|
label: r?.previous ?? Zh,
|
|
3334
3334
|
hideLabel: !0,
|
|
3335
3335
|
className: Qh,
|
|
@@ -3339,7 +3339,7 @@ var Uh = 30, Wh = 50, Gh = (e, t, n) => Math.min(Math.max(e, t), n), Kh = (e) =>
|
|
|
3339
3339
|
next: /* @__PURE__ */ Q(V, {
|
|
3340
3340
|
variant: "outline",
|
|
3341
3341
|
size: "md",
|
|
3342
|
-
icon:
|
|
3342
|
+
icon: hl,
|
|
3343
3343
|
label: r?.next ?? "Next",
|
|
3344
3344
|
hideLabel: !0,
|
|
3345
3345
|
className: Qh,
|
|
@@ -3364,7 +3364,7 @@ var Uh = 30, Wh = 50, Gh = (e, t, n) => Math.min(Math.max(e, t), n), Kh = (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(ha, {
|
|
3368
3368
|
...l,
|
|
3369
3369
|
width: u ? void 0 : l.width,
|
|
3370
3370
|
position: u ? "fullscreen" : l.position,
|
|
@@ -3377,7 +3377,7 @@ var Uh = 30, Wh = 50, Gh = (e, t, n) => Math.min(Math.max(e, t), n), Kh = (e) =>
|
|
|
3377
3377
|
children: F.content
|
|
3378
3378
|
});
|
|
3379
3379
|
})), eg = Ku(({ value: e, max: t, color: n = "categorical-1", label: r }, i) => {
|
|
3380
|
-
let a = R(), o = Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0, s = Number.isFinite(e) ? Math.max(0, Math.min(Math.floor(e), o)) : 0, c = Array.from({ length: o }, (e, t) => t < s), l =
|
|
3380
|
+
let a = R(), o = Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0, s = Number.isFinite(e) ? Math.max(0, Math.min(Math.floor(e), o)) : 0, c = Array.from({ length: o }, (e, t) => t < s), l = cl(n);
|
|
3381
3381
|
return /* @__PURE__ */ Q("div", {
|
|
3382
3382
|
ref: i,
|
|
3383
3383
|
role: "progressbar",
|
|
@@ -3500,7 +3500,7 @@ var dg = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3500
3500
|
}), c ? /* @__PURE__ */ Q(In, {
|
|
3501
3501
|
label: c,
|
|
3502
3502
|
children: /* @__PURE__ */ Q(U, {
|
|
3503
|
-
icon:
|
|
3503
|
+
icon: al,
|
|
3504
3504
|
size: "sm",
|
|
3505
3505
|
className: "text-f1-icon-secondary"
|
|
3506
3506
|
})
|
|
@@ -3508,7 +3508,7 @@ var dg = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3508
3508
|
}),
|
|
3509
3509
|
r && r.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
3510
3510
|
className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1",
|
|
3511
|
-
children: r.map((e, t) => /* @__PURE__ */ $(Bu.Fragment, { children: [/* @__PURE__ */ Q(
|
|
3511
|
+
children: r.map((e, t) => /* @__PURE__ */ $(Bu.Fragment, { children: [/* @__PURE__ */ Q(Zc, { ...e }), t < r.length - 1 ? /* @__PURE__ */ Q("span", { children: "·" }) : null] }, e.text))
|
|
3512
3512
|
}) : null,
|
|
3513
3513
|
n ? /* @__PURE__ */ Q(Xl, {
|
|
3514
3514
|
variant: "description",
|
|
@@ -3517,7 +3517,7 @@ var dg = "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(ns, { metadata: e }, t))
|
|
3521
3521
|
}) : null
|
|
3522
3522
|
]
|
|
3523
3523
|
}),
|
|
@@ -3533,7 +3533,7 @@ var dg = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3533
3533
|
color: "secondary"
|
|
3534
3534
|
})
|
|
3535
3535
|
}) : null,
|
|
3536
|
-
a ? /* @__PURE__ */ Q(
|
|
3536
|
+
a ? /* @__PURE__ */ Q(kc, { ...a }) : null,
|
|
3537
3537
|
s ? /* @__PURE__ */ Q(fg, { actions: s }) : null
|
|
3538
3538
|
]
|
|
3539
3539
|
})
|
|
@@ -3546,7 +3546,7 @@ var dg = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2
|
|
|
3546
3546
|
})]
|
|
3547
3547
|
});
|
|
3548
3548
|
pg.displayName = "OneListItem";
|
|
3549
|
-
var hg = bn(Tn("OneListItem",
|
|
3549
|
+
var hg = bn(Tn("OneListItem", os(pg, mg)));
|
|
3550
3550
|
//#endregion
|
|
3551
3551
|
//#region src/blocks/F0SharingDialog/hooks/useReportAccessShape.ts
|
|
3552
3552
|
function gg(e, t) {
|
|
@@ -3557,7 +3557,7 @@ function gg(e, t) {
|
|
|
3557
3557
|
//#endregion
|
|
3558
3558
|
//#region src/blocks/F0SharingDialog/components/SharingRoleChecklist.tsx
|
|
3559
3559
|
function _g({ roles: e, value: t, label: n, disabled: r, onChange: i, onRevoke: a, size: o = "md" }) {
|
|
3560
|
-
let s = R(), { portalContainer: c } =
|
|
3560
|
+
let s = R(), { portalContainer: c } = Lc(), l = ng(e, t), u = ag(e, t), [d, f] = X(null), p = (n) => ig(e, t, n, d?.role === n ? d.roles : []), m = (n) => {
|
|
3561
3561
|
if (t.includes(n)) {
|
|
3562
3562
|
let e = p(n);
|
|
3563
3563
|
if (e.length === 0) return;
|
|
@@ -3582,7 +3582,7 @@ function _g({ 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(Zi, {
|
|
3586
3586
|
label: n,
|
|
3587
3587
|
container: c,
|
|
3588
3588
|
align: "end",
|
|
@@ -3613,7 +3613,7 @@ function vg({ disabled: e, label: t, onClick: n }) {
|
|
|
3613
3613
|
return /* @__PURE__ */ Q(H, {
|
|
3614
3614
|
disabled: e,
|
|
3615
3615
|
hideLabel: !0,
|
|
3616
|
-
icon:
|
|
3616
|
+
icon: qo,
|
|
3617
3617
|
label: t,
|
|
3618
3618
|
onClick: n,
|
|
3619
3619
|
variant: "ghost"
|
|
@@ -3652,10 +3652,10 @@ function bg({ access: e, roles: t, personLabel: n, disabled: r, portalContainer:
|
|
|
3652
3652
|
maxWidth: "full",
|
|
3653
3653
|
alignItems: "center",
|
|
3654
3654
|
gap: "sm",
|
|
3655
|
-
children: [/* @__PURE__ */ Q(
|
|
3655
|
+
children: [/* @__PURE__ */ Q(sl, {
|
|
3656
3656
|
variant: "inline",
|
|
3657
3657
|
actions: e.canChangeRole ? [{
|
|
3658
|
-
icon:
|
|
3658
|
+
icon: qo,
|
|
3659
3659
|
label: s.sharingDialog.removeAccess,
|
|
3660
3660
|
onClick: () => void o(),
|
|
3661
3661
|
variant: "critical",
|
|
@@ -3742,7 +3742,7 @@ function xg({ access: e, roles: t, roleMode: n, mapPerson: r, disabled: i, onRem
|
|
|
3742
3742
|
//#endregion
|
|
3743
3743
|
//#region src/blocks/F0SharingDialog/components/SharingAccessList.tsx
|
|
3744
3744
|
function Sg({ accesses: e, roles: t, roleMode: n, mapPerson: r, disabled: i, busy: a, loading: o, onRemoveAccess: s, headingRef: c }) {
|
|
3745
|
-
let l = R(), u = Zu(), { portalContainer: d } =
|
|
3745
|
+
let l = R(), u = Zu(), { portalContainer: d } = Lc();
|
|
3746
3746
|
return /* @__PURE__ */ $("section", {
|
|
3747
3747
|
className: "flex flex-col gap-3",
|
|
3748
3748
|
"aria-busy": a,
|
|
@@ -3801,7 +3801,7 @@ function Sg({ accesses: e, roles: t, roleMode: n, mapPerson: r, disabled: i, bus
|
|
|
3801
3801
|
//#region src/blocks/F0SharingDialog/components/SharingPeopleSelector.tsx
|
|
3802
3802
|
function Cg({ peopleSource: e, mapPerson: t, selectedPersonIds: n, disabled: r, resetKey: i, onPeopleChange: a }) {
|
|
3803
3803
|
let o = R();
|
|
3804
|
-
return /* @__PURE__ */ Q(
|
|
3804
|
+
return /* @__PURE__ */ Q(sl, {
|
|
3805
3805
|
multiple: !0,
|
|
3806
3806
|
clearable: !0,
|
|
3807
3807
|
disableSelectAll: !0,
|
|
@@ -3822,14 +3822,14 @@ function Cg({ peopleSource: e, mapPerson: t, selectedPersonIds: n, disabled: r,
|
|
|
3822
3822
|
//#endregion
|
|
3823
3823
|
//#region src/blocks/F0SharingDialog/components/SingleRoleSelect.tsx
|
|
3824
3824
|
function wg({ roles: e, value: t, disabled: n, onChange: r }) {
|
|
3825
|
-
let i = R(), { portalContainer: a } =
|
|
3825
|
+
let i = R(), { portalContainer: a } = Lc(), o = J(() => e.filter((e) => e.assignable !== !1).map((e) => ({
|
|
3826
3826
|
value: e.value,
|
|
3827
3827
|
label: e.label,
|
|
3828
3828
|
description: e.description
|
|
3829
3829
|
})), [e]);
|
|
3830
3830
|
return /* @__PURE__ */ Q("div", {
|
|
3831
3831
|
className: "w-40 shrink-0 max-[560px]:w-full",
|
|
3832
|
-
children: /* @__PURE__ */ Q(
|
|
3832
|
+
children: /* @__PURE__ */ Q(sl, {
|
|
3833
3833
|
disabled: n,
|
|
3834
3834
|
hideLabel: !0,
|
|
3835
3835
|
label: i.sharingDialog.newPeopleAccessLevel,
|
|
@@ -3919,7 +3919,7 @@ function Tg(e) {
|
|
|
3919
3919
|
shrink: !1,
|
|
3920
3920
|
children: /* @__PURE__ */ Q(H, {
|
|
3921
3921
|
disabled: !O || !E || k,
|
|
3922
|
-
icon:
|
|
3922
|
+
icon: Mi,
|
|
3923
3923
|
label: u.sharingDialog.share,
|
|
3924
3924
|
loading: r,
|
|
3925
3925
|
onClick: async () => {
|
|
@@ -3967,7 +3967,7 @@ function Tg(e) {
|
|
|
3967
3967
|
//#region src/blocks/F0SharingDialog/F0SharingDialog.tsx
|
|
3968
3968
|
function Eg(e) {
|
|
3969
3969
|
let { isOpen: t, title: n, description: r, onClose: i, dataTestId: a } = e;
|
|
3970
|
-
return /* @__PURE__ */ Q(
|
|
3970
|
+
return /* @__PURE__ */ Q(ha, {
|
|
3971
3971
|
description: r,
|
|
3972
3972
|
isOpen: t,
|
|
3973
3973
|
onClose: i,
|
|
@@ -3990,7 +3990,7 @@ var Dg = Tn("F0SharingDialog", Eg), Og = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
3990
3990
|
/* @__PURE__ */ Q(H, {
|
|
3991
3991
|
variant: "neutral",
|
|
3992
3992
|
size: "lg",
|
|
3993
|
-
icon:
|
|
3993
|
+
icon: to,
|
|
3994
3994
|
label: e.left,
|
|
3995
3995
|
hideLabel: !0,
|
|
3996
3996
|
onClick: () => i("left")
|
|
@@ -3998,7 +3998,7 @@ var Dg = Tn("F0SharingDialog", Eg), Og = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
3998
3998
|
/* @__PURE__ */ Q(H, {
|
|
3999
3999
|
variant: "outline",
|
|
4000
4000
|
size: "md",
|
|
4001
|
-
icon:
|
|
4001
|
+
icon: Or,
|
|
4002
4002
|
label: n,
|
|
4003
4003
|
hideLabel: !0,
|
|
4004
4004
|
disabled: !t,
|
|
@@ -4045,7 +4045,7 @@ var Dg = Tn("F0SharingDialog", Eg), Og = ({ labels: e, canUndo: t, undoLabel: n,
|
|
|
4045
4045
|
zIndex: 1
|
|
4046
4046
|
}
|
|
4047
4047
|
}, Ng = Ku(function({ riseFromStack: e, onCommit: t, offsetThreshold: n, velocityThreshold: r, reduceMotion: i, children: a }, o) {
|
|
4048
|
-
let s = fn(), c =
|
|
4048
|
+
let s = fn(), c = ii(0), l = u(c, [
|
|
4049
4049
|
-480,
|
|
4050
4050
|
0,
|
|
4051
4051
|
Ag
|
|
@@ -4351,7 +4351,7 @@ function Gg({ 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: Es,
|
|
4355
4355
|
size: "md",
|
|
4356
4356
|
color: "selected"
|
|
4357
4357
|
}), /* @__PURE__ */ Q(rr, {
|
|
@@ -4364,7 +4364,7 @@ function Gg({ title: e, isActive: t = !1, onClick: n }) {
|
|
|
4364
4364
|
//#endregion
|
|
4365
4365
|
//#region src/blocks/F0VersionHistory/VersionItem/VersionItem.tsx
|
|
4366
4366
|
function Kg({ author: e, timestamp: t, onClick: n, isActive: r }) {
|
|
4367
|
-
let i =
|
|
4367
|
+
let i = nl(), a = $c(t, "PPPp", { locale: i }), o = `${e.firstName} ${e.lastName}`;
|
|
4368
4368
|
return /* @__PURE__ */ $("button", {
|
|
4369
4369
|
type: "button",
|
|
4370
4370
|
className: B("flex w-full flex-col gap-[6px] rounded-md px-2 py-[6px] text-left transition-colors", r && "bg-f1-background-tertiary", n && "cursor-pointer hover:bg-f1-background-hover", En("focus-visible:ring-inset")),
|
|
@@ -4432,7 +4432,7 @@ var Jg = bn(Tn("F0VersionHistory", qg)), Yg = Ku(function({ items: e }, t) {
|
|
|
4432
4432
|
}), Xg = bn(Tn("F0Timeline", Yg)), Zg = Ku(({ height: e, itemCount: t, itemSize: n, className: r, renderer: i }, a) => {
|
|
4433
4433
|
let o = Bu.useRef(null);
|
|
4434
4434
|
Bu.useImperativeHandle(a, () => o.current, []);
|
|
4435
|
-
let s =
|
|
4435
|
+
let s = Oc({
|
|
4436
4436
|
count: t,
|
|
4437
4437
|
getScrollElement: () => o.current,
|
|
4438
4438
|
estimateSize: typeof n == "number" ? () => n : n,
|
|
@@ -4521,7 +4521,7 @@ var n_ = ({ entity: e, selected: t, onSelect: n, onRemove: r, marginLeft: i, sea
|
|
|
4521
4521
|
})
|
|
4522
4522
|
})
|
|
4523
4523
|
}),
|
|
4524
|
-
/* @__PURE__ */ Q(
|
|
4524
|
+
/* @__PURE__ */ Q(Kc, {
|
|
4525
4525
|
"data-avatarname-navigator-element": "true",
|
|
4526
4526
|
checked: t,
|
|
4527
4527
|
disabled: l,
|
|
@@ -4579,7 +4579,7 @@ var n_ = ({ entity: e, selected: t, onSelect: n, onRemove: r, marginLeft: i, sea
|
|
|
4579
4579
|
className: "flex w-full flex-row flex-wrap items-center gap-0 rounded-md border pl-2.5 pr-1",
|
|
4580
4580
|
children: [/* @__PURE__ */ Q(H, {
|
|
4581
4581
|
hideLabel: !0,
|
|
4582
|
-
icon: t ?
|
|
4582
|
+
icon: t ? Tc : Al,
|
|
4583
4583
|
onClick: () => c(!t),
|
|
4584
4584
|
label: t ? "Collapse" : "Expand",
|
|
4585
4585
|
size: "sm",
|
|
@@ -4593,7 +4593,7 @@ var n_ = ({ 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: Fi,
|
|
4597
4597
|
className: "rounded-xs bg-f1-foreground-secondary text-f1-foreground-inverse"
|
|
4598
4598
|
}) : null,
|
|
4599
4599
|
/* @__PURE__ */ $("div", {
|
|
@@ -4605,7 +4605,7 @@ var n_ = ({ entity: e, selected: t, onSelect: n, onRemove: r, marginLeft: i, sea
|
|
|
4605
4605
|
searchKeys: r.searchKeys
|
|
4606
4606
|
}), /* @__PURE__ */ Q(Pn, { value: r.subItems?.length ?? 0 })]
|
|
4607
4607
|
}),
|
|
4608
|
-
/* @__PURE__ */ Q(
|
|
4608
|
+
/* @__PURE__ */ Q(Kc, {
|
|
4609
4609
|
checked: x,
|
|
4610
4610
|
disabled: h,
|
|
4611
4611
|
onClick: b,
|
|
@@ -4636,7 +4636,7 @@ var i_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
4636
4636
|
hideLabel: !0,
|
|
4637
4637
|
label: e,
|
|
4638
4638
|
onClick: () => t(),
|
|
4639
|
-
icon:
|
|
4639
|
+
icon: ul,
|
|
4640
4640
|
size: "sm",
|
|
4641
4641
|
variant: "outline"
|
|
4642
4642
|
}), /* @__PURE__ */ Q("div", {
|
|
@@ -4668,7 +4668,7 @@ var i_ = ({ 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(pa, {
|
|
4672
4672
|
items: r,
|
|
4673
4673
|
value: e.label,
|
|
4674
4674
|
disabled: a,
|
|
@@ -4950,7 +4950,7 @@ var i_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
4950
4950
|
})
|
|
4951
4951
|
}), n && n.length > 1 ? /* @__PURE__ */ Q("div", {
|
|
4952
4952
|
className: "flex-1",
|
|
4953
|
-
children: /* @__PURE__ */ Q(
|
|
4953
|
+
children: /* @__PURE__ */ Q(sl, {
|
|
4954
4954
|
label: "Group",
|
|
4955
4955
|
hideLabel: !0,
|
|
4956
4956
|
disabled: T,
|
|
@@ -4966,7 +4966,7 @@ var i_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
4966
4966
|
children: [
|
|
4967
4967
|
T ? /* @__PURE__ */ Q("div", {
|
|
4968
4968
|
className: "flex h-full w-full flex-row items-center justify-center",
|
|
4969
|
-
children: /* @__PURE__ */ Q(
|
|
4969
|
+
children: /* @__PURE__ */ Q(jc, {})
|
|
4970
4970
|
}) : null,
|
|
4971
4971
|
!T && !k ? /* @__PURE__ */ $("div", {
|
|
4972
4972
|
className: "absolute flex w-full flex-col items-center justify-center gap-0.5 p-5",
|
|
@@ -5017,7 +5017,7 @@ var i_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
5017
5017
|
});
|
|
5018
5018
|
}, h_ = (e, t) => e.find((e) => e.id === t), g_ = (e, t) => e.find((e) => e.value === t)?.groupType === "team", __ = ({ entity: e, onRemove: t, disabled: n = !1, deactivated: r = !1, hiddenAvatar: i = !1 }) => /* @__PURE__ */ Q("div", {
|
|
5019
5019
|
className: "pr-2 pt-1.5",
|
|
5020
|
-
children: /* @__PURE__ */ Q(
|
|
5020
|
+
children: /* @__PURE__ */ Q(hc, {
|
|
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
5022
|
left: !i && /* @__PURE__ */ Q(fc, {
|
|
5023
5023
|
src: e.subAvatar,
|
|
@@ -5030,7 +5030,7 @@ var i_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
5030
5030
|
} : void 0
|
|
5031
5031
|
}),
|
|
5032
5032
|
right: !n && /* @__PURE__ */ Q(U, {
|
|
5033
|
-
icon:
|
|
5033
|
+
icon: to,
|
|
5034
5034
|
size: "sm",
|
|
5035
5035
|
className: "cursor-pointer text-f1-icon-secondary",
|
|
5036
5036
|
onClick: () => t?.(e)
|
|
@@ -5145,7 +5145,7 @@ var i_ = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
5145
5145
|
subDeactivated: e.deactivated
|
|
5146
5146
|
}
|
|
5147
5147
|
})), [E, n]), O = D.length === 0 ? void 0 : D.length === 1 ? D[0].subItem.subName : D.length + " " + t, k = D.length === 1 ? D[0].subItem.subName : void 0;
|
|
5148
|
-
return /* @__PURE__ */ Q(
|
|
5148
|
+
return /* @__PURE__ */ Q(zc, {
|
|
5149
5149
|
onClickContent: (e) => {
|
|
5150
5150
|
d?.(e), w.current?.contains(e.target) || w.current?.click();
|
|
5151
5151
|
},
|
|
@@ -5202,7 +5202,7 @@ var w_ = (e) => {
|
|
|
5202
5202
|
K(() => {
|
|
5203
5203
|
e.defaultOpen && t && e.onOpenChange?.(!0);
|
|
5204
5204
|
}, [e.defaultOpen]);
|
|
5205
|
-
let [i, a] = X(e.entities), [o, s] = X(""), [c, l] = qn("", 300), u = J(() => e.entities.some((e) => e.subItems && e.subItems.length > 0), [e.entities]), d = Xu(
|
|
5205
|
+
let [i, a] = X(e.entities), [o, s] = X(""), [c, l] = qn("", 300), u = J(() => e.entities.some((e) => e.subItems && e.subItems.length > 0), [e.entities]), d = Xu(Ec), f = d.portalContainer && (d.position === "center" || d.position === "fullscreen") ? d.portalContainer : void 0;
|
|
5206
5206
|
function p(t) {
|
|
5207
5207
|
if (e.singleSelector) {
|
|
5208
5208
|
e.onSelect(t), n(!1);
|
|
@@ -5500,14 +5500,14 @@ function O_(e, t) {
|
|
|
5500
5500
|
}
|
|
5501
5501
|
//#endregion
|
|
5502
5502
|
//#region src/blocks/F0LocationInput/types.ts
|
|
5503
|
-
var k_ =
|
|
5503
|
+
var k_ = ll, A_ = [
|
|
5504
5504
|
"country",
|
|
5505
5505
|
"addressLine1",
|
|
5506
5506
|
"addressLine2",
|
|
5507
5507
|
"city",
|
|
5508
5508
|
"state",
|
|
5509
5509
|
"postalCode"
|
|
5510
|
-
], j_ =
|
|
5510
|
+
], j_ = ll, M_ = 50, N_ = { preserveWhitespace: !0 }, P_ = yt.create({
|
|
5511
5511
|
name: "doc",
|
|
5512
5512
|
topNode: !0,
|
|
5513
5513
|
content: "paragraph"
|
|
@@ -5679,7 +5679,7 @@ var k_ = sl, A_ = [
|
|
|
5679
5679
|
]), /* @__PURE__ */ $("div", {
|
|
5680
5680
|
className: B("flex flex-col gap-2", l && "cursor-not-allowed"),
|
|
5681
5681
|
children: [
|
|
5682
|
-
!u && e ? /* @__PURE__ */ Q(
|
|
5682
|
+
!u && e ? /* @__PURE__ */ Q(Nc, {
|
|
5683
5683
|
label: e,
|
|
5684
5684
|
required: c,
|
|
5685
5685
|
htmlFor: g,
|
|
@@ -5714,13 +5714,13 @@ var k_ = sl, A_ = [
|
|
|
5714
5714
|
K_.displayName = "F0TemplateTextInput";
|
|
5715
5715
|
//#endregion
|
|
5716
5716
|
//#region src/blocks/F0TemplateTextInput/index.tsx
|
|
5717
|
-
var q_ = Tn("F0TemplateTextInput", K_), J_ = Tn("ActivityItem",
|
|
5717
|
+
var q_ = Tn("F0TemplateTextInput", K_), J_ = Tn("ActivityItem", os(({ id: e, createdAt: t, title: n, description: r, icon: i, category: a, isUnread: o = !1, onClick: s, onVisible: c }) => {
|
|
5718
5718
|
let { ref: l } = sr({
|
|
5719
5719
|
threshold: .1,
|
|
5720
5720
|
onChange(t) {
|
|
5721
5721
|
t && c?.(e);
|
|
5722
5722
|
}
|
|
5723
|
-
}), u =
|
|
5723
|
+
}), u = nl(), d = Mr(t, {
|
|
5724
5724
|
yesterdayRelative: !1,
|
|
5725
5725
|
locale: u
|
|
5726
5726
|
});
|
|
@@ -5731,7 +5731,7 @@ var q_ = Tn("F0TemplateTextInput", K_), J_ = Tn("ActivityItem", Xo(({ id: e, cre
|
|
|
5731
5731
|
s(e);
|
|
5732
5732
|
},
|
|
5733
5733
|
children: [
|
|
5734
|
-
/* @__PURE__ */ Q(ic, { icon: i ??
|
|
5734
|
+
/* @__PURE__ */ Q(ic, { icon: i ?? xr }),
|
|
5735
5735
|
/* @__PURE__ */ $("div", {
|
|
5736
5736
|
className: "flex-1",
|
|
5737
5737
|
children: [
|
|
@@ -5780,7 +5780,7 @@ var q_ = Tn("F0TemplateTextInput", K_), J_ = Tn("ActivityItem", Xo(({ id: e, cre
|
|
|
5780
5780
|
}), /* @__PURE__ */ Q("div", {
|
|
5781
5781
|
className: "flex flex-col gap-1",
|
|
5782
5782
|
children: t
|
|
5783
|
-
})] }), X_ =
|
|
5783
|
+
})] }), X_ = os(({ title: e, items: t, onClickItem: n, onItemVisible: r }) => /* @__PURE__ */ Q(Y_, {
|
|
5784
5784
|
title: e,
|
|
5785
5785
|
children: t.map((e) => /* @__PURE__ */ Q(J_, {
|
|
5786
5786
|
...e,
|
|
@@ -5790,7 +5790,7 @@ var q_ = Tn("F0TemplateTextInput", K_), J_ = Tn("ActivityItem", Xo(({ id: e, cre
|
|
|
5790
5790
|
}), ({ title: e, numItems: t }) => /* @__PURE__ */ Q(Y_, {
|
|
5791
5791
|
title: e,
|
|
5792
5792
|
children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ Q(J_.Skeleton, {}, t))
|
|
5793
|
-
})), Z_ = /* @__PURE__ */ e(
|
|
5793
|
+
})), Z_ = /* @__PURE__ */ e(Ga(), 1), Q_ = /* @__PURE__ */ e(yo(), 1), $_ = 3, ev = [
|
|
5794
5794
|
"today",
|
|
5795
5795
|
"yesterday",
|
|
5796
5796
|
"lastWeek",
|
|
@@ -5799,7 +5799,7 @@ var q_ = Tn("F0TemplateTextInput", K_), J_ = Tn("ActivityItem", Xo(({ id: e, cre
|
|
|
5799
5799
|
let t = ev.indexOf(e);
|
|
5800
5800
|
return t === -1 ? -Number(e) : t - 4e3;
|
|
5801
5801
|
}), nv = () => /* @__PURE__ */ Q("div", { className: "-mx-2 h-px bg-f1-background-secondary" }), rv = ({ items: e, loadingMoreItems: t = !1, onClickItem: n, onEndReached: r, onEndReachedItemsThreshold: i = 5 }) => {
|
|
5802
|
-
let a = R(), o =
|
|
5802
|
+
let a = R(), o = so(e, "createdAt"), s = new Set(Object.values(o).slice().flatMap((e) => e.map((e) => e.id)).slice(-i)), c = (0, Q_.default)((e) => {
|
|
5803
5803
|
s.has(e) && r?.();
|
|
5804
5804
|
}, 1e3), l = tv(Object.entries(o).filter(([e, t]) => !!t.length));
|
|
5805
5805
|
return /* @__PURE__ */ $("div", {
|
|
@@ -5832,7 +5832,7 @@ var q_ = Tn("F0TemplateTextInput", K_), J_ = Tn("ActivityItem", Xo(({ id: e, cre
|
|
|
5832
5832
|
})
|
|
5833
5833
|
]
|
|
5834
5834
|
});
|
|
5835
|
-
}, av = Tn("ActivityItemList",
|
|
5835
|
+
}, av = Tn("ActivityItemList", os(rv, iv));
|
|
5836
5836
|
//#endregion
|
|
5837
5837
|
//#region src/blocks/F0ResourceHeader/useCompactOnScroll.ts
|
|
5838
5838
|
function ov({ threshold: e = 24, container: t }) {
|
|
@@ -5884,11 +5884,11 @@ var cv = [
|
|
|
5884
5884
|
"promote",
|
|
5885
5885
|
"context"
|
|
5886
5886
|
]), fv = (e) => dv.has(e), pv = {
|
|
5887
|
-
critical:
|
|
5888
|
-
warning:
|
|
5889
|
-
info:
|
|
5890
|
-
promote:
|
|
5891
|
-
context:
|
|
5887
|
+
critical: gc,
|
|
5888
|
+
warning: el,
|
|
5889
|
+
info: al,
|
|
5890
|
+
promote: fs,
|
|
5891
|
+
context: al
|
|
5892
5892
|
}, mv = /* @__PURE__ */ new Set(["promote", "context"]), hv = "promote", gv = /^\p{Emoji}\uFE0F?$/u, _v = (e) => e.variant === hv && e.emoji !== void 0 && gv.test(e.emoji), vv = (e) => _v(e) ? {
|
|
5893
5893
|
kind: "emoji",
|
|
5894
5894
|
emoji: e.emoji
|
|
@@ -6036,7 +6036,7 @@ function Wv({ 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(vr, {
|
|
6040
6040
|
type: e.variant,
|
|
6041
6041
|
size: "sm"
|
|
6042
6042
|
})
|
|
@@ -6089,7 +6089,7 @@ function Wv({ notices: e, controlSize: t, onActionClick: n, onDismiss: r }) {
|
|
|
6089
6089
|
Sv(e) ? /* @__PURE__ */ Q("div", {
|
|
6090
6090
|
className: "shrink-0 self-start",
|
|
6091
6091
|
children: /* @__PURE__ */ Q(H, {
|
|
6092
|
-
icon:
|
|
6092
|
+
icon: to,
|
|
6093
6093
|
label: a("systemBanner.dismissNotice", { title: e.title }),
|
|
6094
6094
|
hideLabel: !0,
|
|
6095
6095
|
tooltip: i.dismiss,
|
|
@@ -6294,12 +6294,12 @@ function Qv({ 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__ */ $(Gi, {
|
|
6298
6298
|
open: v,
|
|
6299
6299
|
onOpenChange: y,
|
|
6300
6300
|
shouldScaleBackground: !1,
|
|
6301
6301
|
autoFocus: !0,
|
|
6302
|
-
children: [/* @__PURE__ */ Q(
|
|
6302
|
+
children: [/* @__PURE__ */ Q(sa, {
|
|
6303
6303
|
asChild: !0,
|
|
6304
6304
|
children: /* @__PURE__ */ $("button", {
|
|
6305
6305
|
ref: x,
|
|
@@ -6320,7 +6320,7 @@ function Qv({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6320
6320
|
})
|
|
6321
6321
|
]
|
|
6322
6322
|
})
|
|
6323
|
-
}), /* @__PURE__ */ $(
|
|
6323
|
+
}), /* @__PURE__ */ $(Ir, {
|
|
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 Qv({ 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(Zr, {
|
|
6332
6332
|
className: "sr-only",
|
|
6333
6333
|
children: i.listTitle
|
|
6334
6334
|
}),
|
|
@@ -6342,7 +6342,7 @@ function Qv({ 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(ta, {
|
|
6346
6346
|
asChild: !0,
|
|
6347
6347
|
children: /* @__PURE__ */ Q(V, {
|
|
6348
6348
|
label: a.close,
|
|
@@ -6367,7 +6367,7 @@ function Qv({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6367
6367
|
variant: "secondary",
|
|
6368
6368
|
size: "md",
|
|
6369
6369
|
type: "button",
|
|
6370
|
-
icon: v ?
|
|
6370
|
+
icon: v ? vc : qs,
|
|
6371
6371
|
iconPosition: "right",
|
|
6372
6372
|
noAutoTooltip: !0,
|
|
6373
6373
|
narrowPadding: !0,
|
|
@@ -6422,7 +6422,7 @@ function Qv({ notices: e, onDismiss: t, onOpenChange: n, onActionClick: r }) {
|
|
|
6422
6422
|
}) : null,
|
|
6423
6423
|
h ? ee : null,
|
|
6424
6424
|
Sv(l) ? /* @__PURE__ */ Q(H, {
|
|
6425
|
-
icon:
|
|
6425
|
+
icon: to,
|
|
6426
6426
|
label: o("systemBanner.dismissNotice", { title: l.title }),
|
|
6427
6427
|
hideLabel: !0,
|
|
6428
6428
|
tooltip: i.dismiss,
|
|
@@ -6609,7 +6609,7 @@ var iy = ({ 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(hr, { date: u })
|
|
6613
6613
|
})]
|
|
6614
6614
|
})
|
|
6615
6615
|
]
|
|
@@ -6632,7 +6632,7 @@ var iy = ({ link: e, firstName: t, lastName: n, src: r, onClick: i, canReact: a
|
|
|
6632
6632
|
})
|
|
6633
6633
|
})
|
|
6634
6634
|
})]
|
|
6635
|
-
}), oy =
|
|
6635
|
+
}), oy = os(iy, ay), sy = ({ 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",
|
|
@@ -6694,7 +6694,7 @@ function cy({ emoji: e, initialCount: t, hasReacted: n = !1, users: r, loadUsers
|
|
|
6694
6694
|
emoji: e,
|
|
6695
6695
|
size: o
|
|
6696
6696
|
}),
|
|
6697
|
-
children: /* @__PURE__ */ Q(
|
|
6697
|
+
children: /* @__PURE__ */ Q(Hc, {
|
|
6698
6698
|
value: l,
|
|
6699
6699
|
spinTiming: {
|
|
6700
6700
|
duration: 200,
|
|
@@ -6738,7 +6738,7 @@ function ly({ items: e, onInteraction: t, locale: n, action: r }) {
|
|
|
6738
6738
|
});
|
|
6739
6739
|
}
|
|
6740
6740
|
var uy = Tn("Reactions", ly), dy = Ku(function({ content: e, collapsed: t, id: n, className: r, tabIndex: i }, a) {
|
|
6741
|
-
return /* @__PURE__ */ Q(
|
|
6741
|
+
return /* @__PURE__ */ Q(wr, {
|
|
6742
6742
|
ref: a,
|
|
6743
6743
|
id: n,
|
|
6744
6744
|
content: e,
|
|
@@ -6747,13 +6747,13 @@ var uy = Tn("Reactions", ly), dy = Ku(function({ content: e, collapsed: t, id: n
|
|
|
6747
6747
|
});
|
|
6748
6748
|
});
|
|
6749
6749
|
dy.displayName = "BasePostDescription";
|
|
6750
|
-
var fy =
|
|
6750
|
+
var fy = os(dy, () => /* @__PURE__ */ $("div", {
|
|
6751
6751
|
className: "flex flex-col justify-around gap-3 py-2",
|
|
6752
6752
|
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" })]
|
|
6753
6753
|
})), py = ({ tags: e, right: t }) => /* @__PURE__ */ Q("div", {
|
|
6754
6754
|
className: B("flex flex-1 flex-row items-center gap-1.5", t && "justify-end"),
|
|
6755
6755
|
children: e.map((e) => {
|
|
6756
|
-
let t = /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(
|
|
6756
|
+
let t = /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(Zc, {
|
|
6757
6757
|
icon: e.icon,
|
|
6758
6758
|
text: e.label ?? (e.description || ""),
|
|
6759
6759
|
onlyIcon: !0,
|
|
@@ -6770,16 +6770,16 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
6770
6770
|
return /* @__PURE__ */ $("div", {
|
|
6771
6771
|
className: "flex flex-row items-center",
|
|
6772
6772
|
children: [
|
|
6773
|
-
e ? /* @__PURE__ */ Q(
|
|
6773
|
+
e ? /* @__PURE__ */ Q(hr, {
|
|
6774
6774
|
date: e,
|
|
6775
6775
|
size: r
|
|
6776
6776
|
}) : null,
|
|
6777
6777
|
e && (!n || t) ? /* @__PURE__ */ Q(U, {
|
|
6778
|
-
icon:
|
|
6778
|
+
icon: hl,
|
|
6779
6779
|
size: "sm",
|
|
6780
6780
|
className: "text-f1-foreground-tertiary"
|
|
6781
6781
|
}) : null,
|
|
6782
|
-
t ? /* @__PURE__ */ Q(
|
|
6782
|
+
t ? /* @__PURE__ */ Q(hr, {
|
|
6783
6783
|
date: t,
|
|
6784
6784
|
size: r
|
|
6785
6785
|
}) : null
|
|
@@ -6873,8 +6873,8 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
6873
6873
|
if (e.includes("//s3.")) return e.includes("response-content-type=video");
|
|
6874
6874
|
let t = (e?.split(".")).at(-1);
|
|
6875
6875
|
return !!t && _y.has(t);
|
|
6876
|
-
}, yy =
|
|
6877
|
-
let i =
|
|
6876
|
+
}, yy = os(({ title: e, mediaUrl: t, place: n, date: r }) => {
|
|
6877
|
+
let i = nl(), a = ui(r, i);
|
|
6878
6878
|
return n && (a = `${a} · ${n}`), /* @__PURE__ */ $("div", {
|
|
6879
6879
|
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",
|
|
6880
6880
|
children: [t ? /* @__PURE__ */ Q("div", {
|
|
@@ -6928,7 +6928,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
6928
6928
|
})
|
|
6929
6929
|
});
|
|
6930
6930
|
}, xy = ({ 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 }) => {
|
|
6931
|
-
let T = Zu(), E = Zu(), D =
|
|
6931
|
+
let T = Zu(), E = Zu(), D = nl(), 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 ? wi(r, D) : Mr(r, { locale: D }), ee = !!o, te = o ? () => o(e) : void 0, ne = (e) => {
|
|
6932
6932
|
e.stopPropagation();
|
|
6933
6933
|
}, re = t ? `${t.firstName} ${t.lastName}` : void 0, ie = (t) => {
|
|
6934
6934
|
t.preventDefault(), t.stopPropagation(), a && A({
|
|
@@ -6964,7 +6964,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
6964
6964
|
/* @__PURE__ */ $("div", {
|
|
6965
6965
|
className: "flex min-w-0 flex-row items-center gap-3",
|
|
6966
6966
|
children: [
|
|
6967
|
-
t ? /* @__PURE__ */ Q(
|
|
6967
|
+
t ? /* @__PURE__ */ Q(No, {
|
|
6968
6968
|
href: t.url || "#",
|
|
6969
6969
|
title: re,
|
|
6970
6970
|
className: "flex items-center leading-[0]",
|
|
@@ -6974,12 +6974,12 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
6974
6974
|
lastName: t.lastName,
|
|
6975
6975
|
src: t.avatarUrl
|
|
6976
6976
|
})
|
|
6977
|
-
}) : /* @__PURE__ */ Q(ic, { icon:
|
|
6977
|
+
}) : /* @__PURE__ */ Q(ic, { icon: Oi }),
|
|
6978
6978
|
/* @__PURE__ */ $("div", {
|
|
6979
6979
|
className: "flex min-w-0 flex-1 flex-col",
|
|
6980
6980
|
children: [/* @__PURE__ */ $("div", {
|
|
6981
6981
|
className: "flex min-w-0 flex-1 flex-row flex-wrap items-center gap-1",
|
|
6982
|
-
children: [t ? /* @__PURE__ */ Q(
|
|
6982
|
+
children: [t ? /* @__PURE__ */ Q(No, {
|
|
6983
6983
|
href: t.url,
|
|
6984
6984
|
title: re,
|
|
6985
6985
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
@@ -6988,7 +6988,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
6988
6988
|
}) : null, y ? null : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
6989
6989
|
className: B("text-f1-foreground-secondary", !t && "capitalize"),
|
|
6990
6990
|
children: d
|
|
6991
|
-
}), /* @__PURE__ */ Q(
|
|
6991
|
+
}), /* @__PURE__ */ Q(No, {
|
|
6992
6992
|
onClick: n.onClick,
|
|
6993
6993
|
title: n.title,
|
|
6994
6994
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
@@ -7018,14 +7018,14 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
7018
7018
|
onClick: e.onClick,
|
|
7019
7019
|
label: e.label ?? "",
|
|
7020
7020
|
title: e.label ?? ""
|
|
7021
|
-
}, e.label)), m?.length ? /* @__PURE__ */ Q(
|
|
7021
|
+
}, e.label)), m?.length ? /* @__PURE__ */ Q(Zi, {
|
|
7022
7022
|
items: m,
|
|
7023
7023
|
icon: Sl,
|
|
7024
7024
|
size: "sm"
|
|
7025
7025
|
}) : null]
|
|
7026
7026
|
}), /* @__PURE__ */ Q("div", {
|
|
7027
7027
|
className: "md:hidden",
|
|
7028
|
-
children: /* @__PURE__ */ Q(
|
|
7028
|
+
children: /* @__PURE__ */ Q(Zi, {
|
|
7029
7029
|
items: [{
|
|
7030
7030
|
label: f.label,
|
|
7031
7031
|
onClick: f.onClick
|
|
@@ -7086,7 +7086,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
7086
7086
|
action: {
|
|
7087
7087
|
label: f.label,
|
|
7088
7088
|
onClick: f.onClick,
|
|
7089
|
-
icon:
|
|
7089
|
+
icon: Po
|
|
7090
7090
|
}
|
|
7091
7091
|
})
|
|
7092
7092
|
]
|
|
@@ -7129,7 +7129,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
7129
7129
|
})
|
|
7130
7130
|
]
|
|
7131
7131
|
})]
|
|
7132
|
-
}), Cy =
|
|
7132
|
+
}), Cy = os(xy, Sy), wy = "aspect-video", Ty = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", Ey = "h-96", Dy = (e, t) => t > 0 ? Math.max(1, Math.floor(e / t)) : 1, Oy = (e) => {
|
|
7133
7133
|
let t = Number.parseFloat(window.getComputedStyle(e).lineHeight);
|
|
7134
7134
|
if (t > 0) return t;
|
|
7135
7135
|
let n = e.firstElementChild, r = n ? Number.parseFloat(window.getComputedStyle(n).lineHeight) : NaN;
|
|
@@ -7172,8 +7172,8 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
7172
7172
|
}) : null]
|
|
7173
7173
|
})]
|
|
7174
7174
|
}), jy = ["tile", "row"], My = ({ post: e, variant: t = "tile" }) => {
|
|
7175
|
-
let n =
|
|
7176
|
-
|
|
7175
|
+
let n = nl(), r = [
|
|
7176
|
+
$c(e.createdAt, "MMM d", { locale: n }),
|
|
7177
7177
|
e.counters?.visits,
|
|
7178
7178
|
e.counters?.comments
|
|
7179
7179
|
].filter(Boolean).join(" · "), i = e.href ? /* @__PURE__ */ Q(Un, {
|
|
@@ -7311,7 +7311,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
7311
7311
|
}), n.info ? /* @__PURE__ */ Q(In, {
|
|
7312
7312
|
label: n.info,
|
|
7313
7313
|
children: /* @__PURE__ */ Q(U, {
|
|
7314
|
-
icon:
|
|
7314
|
+
icon: al,
|
|
7315
7315
|
size: "sm",
|
|
7316
7316
|
className: "text-f1-icon-secondary"
|
|
7317
7317
|
})
|
|
@@ -7319,7 +7319,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
7319
7319
|
}),
|
|
7320
7320
|
"bottomTags" in n ? /* @__PURE__ */ Q("div", {
|
|
7321
7321
|
className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1",
|
|
7322
|
-
children: n.bottomTags.map((e, t) => /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(
|
|
7322
|
+
children: n.bottomTags.map((e, t) => /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(Zc, { ...e }, e.text), t < n.bottomTags.length - 1 ? /* @__PURE__ */ Q("span", { children: "·" }) : null] }))
|
|
7323
7323
|
}) : null,
|
|
7324
7324
|
"description" in n && n.description ? /* @__PURE__ */ Q("p", {
|
|
7325
7325
|
className: "truncate text-f1-foreground-secondary",
|
|
@@ -7329,7 +7329,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
7329
7329
|
}),
|
|
7330
7330
|
/* @__PURE__ */ $("div", {
|
|
7331
7331
|
className: "flex flex-row items-center justify-between gap-2",
|
|
7332
|
-
children: ["rightTag" in n && n.rightTag ? /* @__PURE__ */ Q(
|
|
7332
|
+
children: ["rightTag" in n && n.rightTag ? /* @__PURE__ */ Q(kc, { ...n.rightTag }) : null, "actions" in n ? /* @__PURE__ */ $("div", {
|
|
7333
7333
|
className: "flex flex-1 flex-row items-center justify-end gap-2",
|
|
7334
7334
|
children: [n.actions?.primary ? /* @__PURE__ */ Q(H, {
|
|
7335
7335
|
variant: "outline",
|
|
@@ -7354,7 +7354,7 @@ var fy = Xo(dy, () => /* @__PURE__ */ $("div", {
|
|
|
7354
7354
|
})]
|
|
7355
7355
|
});
|
|
7356
7356
|
Ry.displayName = "OnePersonListItem";
|
|
7357
|
-
var By = bn(Tn("OnePersonListItem",
|
|
7357
|
+
var By = bn(Tn("OnePersonListItem", os(Ry, zy))), Vy = "[anchor-name:--f0-composer-column]";
|
|
7358
7358
|
function Hy({ composer: e, away: t, reserveComposerSpace: n = !1, children: r }) {
|
|
7359
7359
|
if (!e) return /* @__PURE__ */ Q("div", {
|
|
7360
7360
|
className: "contents",
|
|
@@ -7384,7 +7384,7 @@ function Hy({ composer: e, away: t, reserveComposerSpace: n = !1, children: r })
|
|
|
7384
7384
|
//#endregion
|
|
7385
7385
|
//#region src/blocks/ApplicationFrame/SidePanel/SidePanelContentWindow.tsx
|
|
7386
7386
|
var Uy = () => {
|
|
7387
|
-
let { open: e, activeContent: t, contentSide: n, restoringViewId: r } =
|
|
7387
|
+
let { open: e, activeContent: t, contentSide: n, restoringViewId: r } = Va(), i = Zn(), a = Y(t);
|
|
7388
7388
|
t && (a.current = t);
|
|
7389
7389
|
let o = !t && r ? {
|
|
7390
7390
|
id: r,
|
|
@@ -7394,7 +7394,7 @@ var Uy = () => {
|
|
|
7394
7394
|
className: "h-full w-full rounded-none"
|
|
7395
7395
|
})
|
|
7396
7396
|
} : null, s = t ?? o ?? a.current;
|
|
7397
|
-
return /* @__PURE__ */ Q(
|
|
7397
|
+
return /* @__PURE__ */ Q(da, {
|
|
7398
7398
|
visible: e && (t !== null || o !== null),
|
|
7399
7399
|
side: n,
|
|
7400
7400
|
exitStyle: e ? "hold" : "shrink",
|
|
@@ -7416,7 +7416,7 @@ var Uy = () => {
|
|
|
7416
7416
|
};
|
|
7417
7417
|
//#endregion
|
|
7418
7418
|
//#region src/blocks/ApplicationFrame/useWindowResizing.ts
|
|
7419
|
-
function Wy(e =
|
|
7419
|
+
function Wy(e = Lo) {
|
|
7420
7420
|
let [t, n] = X(!1);
|
|
7421
7421
|
return K(() => {
|
|
7422
7422
|
let t = 0, r = () => {
|
|
@@ -7432,7 +7432,7 @@ function Wy(e = Io) {
|
|
|
7432
7432
|
var Gy = 8, Ky = 8, qy = (e, t) => e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || t.target !== "" && t.target !== "_self" || t.hasAttribute("download"), Jy = ({ shellRef: e, overlays: t, isOpen: n, animates: r, width: i, topBarHeight: a, onLinkClickOverPage: o, children: s }) => /* @__PURE__ */ Q("div", {
|
|
7433
7433
|
ref: e,
|
|
7434
7434
|
"data-testid": "secondary-sidebar-shell",
|
|
7435
|
-
className: B("z-0 shrink-0", n ? "opacity-100" : "pointer-events-none opacity-0", r ? B("transition-[width,margin,opacity]",
|
|
7435
|
+
className: B("z-0 shrink-0", n ? "opacity-100" : "pointer-events-none opacity-0", r ? B("transition-[width,margin,opacity]", So) : "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"),
|
|
7436
7436
|
style: {
|
|
7437
7437
|
"--ds-sidebar-width": `${i}px`,
|
|
7438
7438
|
width: t || n ? i : 0,
|
|
@@ -7452,9 +7452,9 @@ var Gy = 8, Ky = 8, qy = (e, t) => e.button !== 0 || e.metaKey || e.ctrlKey || e
|
|
|
7452
7452
|
function Yy({ primarySidebar: e, secondarySidebar: t }) {
|
|
7453
7453
|
let n = uu();
|
|
7454
7454
|
if (!n) throw Error("NavigationLayout must be rendered by ApplicationFrame with a primarySidebar");
|
|
7455
|
-
return /* @__PURE__ */ Q(
|
|
7455
|
+
return /* @__PURE__ */ Q(Do, {
|
|
7456
7456
|
value: "two-level",
|
|
7457
|
-
children: /* @__PURE__ */ Q(
|
|
7457
|
+
children: /* @__PURE__ */ Q(Jo, {
|
|
7458
7458
|
value: !0,
|
|
7459
7459
|
children: /* @__PURE__ */ Q(Xy, {
|
|
7460
7460
|
navigation: n,
|
|
@@ -7492,7 +7492,7 @@ function Xy({ navigation: e, primarySidebar: t, secondarySidebar: n }) {
|
|
|
7492
7492
|
className: "relative z-10 h-full shrink-0",
|
|
7493
7493
|
children: [t, /* @__PURE__ */ Q("span", {
|
|
7494
7494
|
"aria-hidden": "true",
|
|
7495
|
-
className: B("pointer-events-none absolute inset-y-0 right-0 w-px bg-f1-border-secondary", v && C ? "opacity-100" : "opacity-0", x ? B("transition-opacity",
|
|
7495
|
+
className: B("pointer-events-none absolute inset-y-0 right-0 w-px bg-f1-border-secondary", v && C ? "opacity-100" : "opacity-0", x ? B("transition-opacity", So) : "transition-none")
|
|
7496
7496
|
})]
|
|
7497
7497
|
}),
|
|
7498
7498
|
v ? /* @__PURE__ */ Q(Jy, {
|
|
@@ -8261,7 +8261,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8261
8261
|
width: window.innerWidth,
|
|
8262
8262
|
height: window.innerHeight
|
|
8263
8263
|
}, OS = () => {
|
|
8264
|
-
let [e, t] =
|
|
8264
|
+
let [e, t] = ko({
|
|
8265
8265
|
key: Tx,
|
|
8266
8266
|
fallback: ES,
|
|
8267
8267
|
validate: vS
|
|
@@ -8317,7 +8317,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8317
8317
|
}
|
|
8318
8318
|
return e.values().next().value ?? null;
|
|
8319
8319
|
}, NS = Gu(null), PS = ({ defaultMode: e = "fullscreen", roomId: t = "", pictureInPicture: n = !0, children: r }) => {
|
|
8320
|
-
let [i, a] =
|
|
8320
|
+
let [i, a] = ko({
|
|
8321
8321
|
key: Ex,
|
|
8322
8322
|
fallback: {
|
|
8323
8323
|
roomId: t,
|
|
@@ -8339,12 +8339,12 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8339
8339
|
...n,
|
|
8340
8340
|
[t]: e
|
|
8341
8341
|
});
|
|
8342
|
-
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, ee] =
|
|
8342
|
+
}, [v]), P = v !== null, F = v ? D[v] ?? null : null, [I, ee] = ko({
|
|
8343
8343
|
key: Dx,
|
|
8344
8344
|
fallback: 420,
|
|
8345
8345
|
validate: (e) => typeof e == "number" && Number.isFinite(e) && e >= 320,
|
|
8346
8346
|
debounceMs: 150
|
|
8347
|
-
}), te = G(() => ee(420), [ee]), [ne, re] =
|
|
8347
|
+
}), te = G(() => ee(420), [ee]), [ne, re] = ko({
|
|
8348
8348
|
key: kx,
|
|
8349
8349
|
fallback: Ax,
|
|
8350
8350
|
validate: Lx,
|
|
@@ -8594,7 +8594,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8594
8594
|
...t,
|
|
8595
8595
|
id: "chat",
|
|
8596
8596
|
label: n,
|
|
8597
|
-
icon:
|
|
8597
|
+
icon: qa
|
|
8598
8598
|
}] : [])).filter((e) => e.tabs.length > 0), WS = () => {
|
|
8599
8599
|
let e = R(), { sidePanels: t, sidePanel: n } = zS();
|
|
8600
8600
|
return J(() => US(t, n, e.meeting.chatPanel), [
|
|
@@ -8607,10 +8607,10 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8607
8607
|
left: "[@media(pointer:coarse)]:before:-inset-y-[6px] [@media(pointer:coarse)]:before:-left-[6px] [@media(pointer:coarse)]:before:right-0",
|
|
8608
8608
|
right: "[@media(pointer:coarse)]:before:-inset-y-[6px] [@media(pointer:coarse)]:before:left-0 [@media(pointer:coarse)]:before:-right-[6px]"
|
|
8609
8609
|
}, JS = (e = "all") => B("relative", KS, qS[e]), YS = () => "[@media(pointer:coarse)]:[&>button]:before:absolute [@media(pointer:coarse)]:[&>button]:before:content-[''] [@media(pointer:coarse)]:[&>button]:before:-inset-[6px]", XS = () => {
|
|
8610
|
-
let e = R(), { effectiveMode: t, setMode: n, hasPanelSlot: r, panelSide: i } = FS(), a = i === "left" ?
|
|
8610
|
+
let e = R(), { effectiveMode: t, setMode: n, hasPanelSlot: r, panelSide: i } = FS(), a = i === "left" ? Ko : Oo, o = [
|
|
8611
8611
|
{
|
|
8612
8612
|
mode: "floating",
|
|
8613
|
-
icon:
|
|
8613
|
+
icon: Fs,
|
|
8614
8614
|
label: e.meeting.modeFloating
|
|
8615
8615
|
},
|
|
8616
8616
|
{
|
|
@@ -8620,7 +8620,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8620
8620
|
},
|
|
8621
8621
|
{
|
|
8622
8622
|
mode: "fullscreen",
|
|
8623
|
-
icon:
|
|
8623
|
+
icon: ni,
|
|
8624
8624
|
label: e.meeting.modeFullscreen
|
|
8625
8625
|
}
|
|
8626
8626
|
], s = (t === "minimized" ? o.filter((e) => e.mode === "floating") : o).filter((e) => e.mode !== "panel" && e.mode !== "fullscreen" || r);
|
|
@@ -8666,7 +8666,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8666
8666
|
let s = n.status === "active", c = s ? t.meeting.transcribing : t.meeting.transcriptPaused, l = s ? t.meeting.pauseTranscript : t.meeting.resumeTranscript, u = e ? /* @__PURE__ */ Q("span", {
|
|
8667
8667
|
"aria-hidden": !0,
|
|
8668
8668
|
className: B("m-1 block aspect-square w-2 rounded-full", s ? "bg-f1-icon-positive" : "bg-f1-icon")
|
|
8669
|
-
}) : /* @__PURE__ */ Q(
|
|
8669
|
+
}) : /* @__PURE__ */ Q(Sc, {
|
|
8670
8670
|
text: c,
|
|
8671
8671
|
variant: s ? "positive" : "neutral"
|
|
8672
8672
|
});
|
|
@@ -8727,7 +8727,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8727
8727
|
variant: "ghost",
|
|
8728
8728
|
size: "md",
|
|
8729
8729
|
hideLabel: !0,
|
|
8730
|
-
icon:
|
|
8730
|
+
icon: Ro,
|
|
8731
8731
|
label: e.meeting.exitPictureInPicture,
|
|
8732
8732
|
onClick: () => {
|
|
8733
8733
|
t(), window.focus();
|
|
@@ -8750,7 +8750,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
8750
8750
|
let t = R(), { room: n, recording: r } = ub(), { effectiveMode: i } = FS(), a = wb(), o = GS(WS()), s = i === "minimized", c = i === "fullscreen", l = i === "pip", u = !s && a !== "tight", d = s || l, f = s || l || a === "tight", p = /* @__PURE__ */ $("span", {
|
|
8751
8751
|
className: "flex shrink-0 items-center gap-1.5",
|
|
8752
8752
|
"data-f0-no-drag": !0,
|
|
8753
|
-
children: [r?.active ? /* @__PURE__ */ Q(
|
|
8753
|
+
children: [r?.active ? /* @__PURE__ */ Q(Sc, {
|
|
8754
8754
|
text: r.consentNotice ?? t.meeting.recording,
|
|
8755
8755
|
variant: "critical"
|
|
8756
8756
|
}) : null, /* @__PURE__ */ Q(eC, { compact: f })]
|
|
@@ -9086,7 +9086,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
9086
9086
|
height: 32
|
|
9087
9087
|
},
|
|
9088
9088
|
children: e.id === "frequent" ? /* @__PURE__ */ Q(U, {
|
|
9089
|
-
icon:
|
|
9089
|
+
icon: _o,
|
|
9090
9090
|
size: "md"
|
|
9091
9091
|
}) : /* @__PURE__ */ Q(Xn, {
|
|
9092
9092
|
emoji: BC[e.id],
|
|
@@ -9111,7 +9111,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
9111
9111
|
rowIndex: r
|
|
9112
9112
|
});
|
|
9113
9113
|
}), e;
|
|
9114
|
-
}, [t]), f = G((e) => e + (t.rows[e]?.sectionIndex ?? 0) + 1, [t]), p = G((e) => (t.firstRowBySection[e] ?? 0) + e, [t]), m =
|
|
9114
|
+
}, [t]), f = G((e) => e + (t.rows[e]?.sectionIndex ?? 0) + 1, [t]), p = G((e) => (t.firstRowBySection[e] ?? 0) + e, [t]), m = Oc({
|
|
9115
9115
|
count: d.length,
|
|
9116
9116
|
getScrollElement: () => u.current,
|
|
9117
9117
|
estimateSize: (t) => {
|
|
@@ -9286,7 +9286,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
9286
9286
|
tw.delete(e), tw.size === 0 && window.removeEventListener("storage", nw);
|
|
9287
9287
|
}), iw = () => null, aw = (e) => {
|
|
9288
9288
|
let t = $C(QC());
|
|
9289
|
-
|
|
9289
|
+
no(YC, {
|
|
9290
9290
|
...t,
|
|
9291
9291
|
[e.id]: Math.min((t[e.id] ?? 0) + 1, ZC)
|
|
9292
9292
|
}), nw();
|
|
@@ -9393,7 +9393,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
9393
9393
|
children: [
|
|
9394
9394
|
/* @__PURE__ */ Q("div", {
|
|
9395
9395
|
className: "shrink-0 p-2",
|
|
9396
|
-
children: /* @__PURE__ */ Q(
|
|
9396
|
+
children: /* @__PURE__ */ Q(Jc, {
|
|
9397
9397
|
ref: l,
|
|
9398
9398
|
value: u,
|
|
9399
9399
|
placeholder: a.chat.emojiPicker.search,
|
|
@@ -9450,7 +9450,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
9450
9450
|
noAutoTooltip: s,
|
|
9451
9451
|
label: t,
|
|
9452
9452
|
size: n,
|
|
9453
|
-
icon: i ??
|
|
9453
|
+
icon: i ?? Ki,
|
|
9454
9454
|
pressed: d,
|
|
9455
9455
|
onClick: (e) => {
|
|
9456
9456
|
e.preventDefault(), e.stopPropagation(), f(!d);
|
|
@@ -9591,7 +9591,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
9591
9591
|
className: B("pointer-events-none absolute flex items-center justify-center rounded-full bg-f1-background-accent-bold text-f1-foreground-inverse", e === void 0 ? "right-0 top-0 h-2 w-2" : "-right-1 -top-1 h-4 min-w-4 px-1 text-xs font-medium tabular-nums"),
|
|
9592
9592
|
children: e === void 0 ? null : e > 99 ? "99+" : e
|
|
9593
9593
|
}), Nw = ({ action: e, onPlate: t }) => {
|
|
9594
|
-
let n = R(), r = typeof e.badge == "number" ? e.badge : void 0, i = e.badge !== void 0 && r !== 0, a = r !== void 0 && r > 0 ? `${e.label} · ${n.t("meeting.unreadCount", { count: r })}` : e.label, o = /* @__PURE__ */ Q(
|
|
9594
|
+
let n = R(), r = typeof e.badge == "number" ? e.badge : void 0, i = e.badge !== void 0 && r !== 0, a = r !== void 0 && r > 0 ? `${e.label} · ${n.t("meeting.unreadCount", { count: r })}` : e.label, o = /* @__PURE__ */ Q(Ic, {
|
|
9595
9595
|
selected: !!e.pressed,
|
|
9596
9596
|
onSelectedChange: () => e.onClick?.(),
|
|
9597
9597
|
icon: e.activeIcon ? [e.icon, e.activeIcon] : e.icon,
|
|
@@ -9683,7 +9683,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
9683
9683
|
return t;
|
|
9684
9684
|
}, Jw = (e) => {
|
|
9685
9685
|
let t = Hw(Rw());
|
|
9686
|
-
t.v > Lw || (
|
|
9686
|
+
t.v > Lw || (no(Ox, {
|
|
9687
9687
|
...t,
|
|
9688
9688
|
...e,
|
|
9689
9689
|
v: Lw
|
|
@@ -9837,7 +9837,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
9837
9837
|
});
|
|
9838
9838
|
}, yT = ({ actions: e }) => {
|
|
9839
9839
|
let t = R(), n = e.reduce((e, t) => e + (typeof t.badge == "number" ? t.badge : 0), 0), r = n > 0 ? `${t.meeting.moreActions} · ${t.t("meeting.unreadCount", { count: n })}` : t.meeting.moreActions;
|
|
9840
|
-
return /* @__PURE__ */ Q(
|
|
9840
|
+
return /* @__PURE__ */ Q(Zi, {
|
|
9841
9841
|
items: e.map(hT),
|
|
9842
9842
|
align: "end",
|
|
9843
9843
|
children: /* @__PURE__ */ $("span", {
|
|
@@ -10047,8 +10047,8 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
10047
10047
|
i.push({
|
|
10048
10048
|
id: "core:microphone",
|
|
10049
10049
|
label: r.microphone.enabled ? t.meeting.turnOffMicrophone : t.meeting.turnOnMicrophone,
|
|
10050
|
-
icon:
|
|
10051
|
-
activeIcon:
|
|
10050
|
+
icon: Za,
|
|
10051
|
+
activeIcon: Co,
|
|
10052
10052
|
pressed: !r.microphone.enabled,
|
|
10053
10053
|
pending: r.microphone.pending,
|
|
10054
10054
|
disabled: u?.canPublishAudio === !1 || !!d,
|
|
@@ -10066,7 +10066,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
10066
10066
|
source: r.microphone,
|
|
10067
10067
|
output: r.speaker,
|
|
10068
10068
|
label: t.meeting.selectMicrophone,
|
|
10069
|
-
icon:
|
|
10069
|
+
icon: Rs,
|
|
10070
10070
|
priority: 70
|
|
10071
10071
|
});
|
|
10072
10072
|
f && i.push(f);
|
|
@@ -10078,8 +10078,8 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
10078
10078
|
i.push({
|
|
10079
10079
|
id: "core:camera",
|
|
10080
10080
|
label: r.camera.enabled ? t.meeting.turnOffCamera : t.meeting.turnOnCamera,
|
|
10081
|
-
icon:
|
|
10082
|
-
activeIcon:
|
|
10081
|
+
icon: Ns,
|
|
10082
|
+
activeIcon: gs,
|
|
10083
10083
|
pressed: !r.camera.enabled,
|
|
10084
10084
|
pending: r.camera.pending,
|
|
10085
10085
|
disabled: u?.canPublishVideo === !1 || !!p,
|
|
@@ -10096,7 +10096,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
10096
10096
|
id: "core:cameraSettings",
|
|
10097
10097
|
source: r.camera,
|
|
10098
10098
|
label: t.meeting.selectCamera,
|
|
10099
|
-
icon:
|
|
10099
|
+
icon: Ms,
|
|
10100
10100
|
priority: 65
|
|
10101
10101
|
});
|
|
10102
10102
|
if (m && i.push(m), n.hasScreenShare) {
|
|
@@ -10104,7 +10104,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
10104
10104
|
i.push({
|
|
10105
10105
|
id: "core:screenShare",
|
|
10106
10106
|
label: e ? t.meeting.stopSharing : t.meeting.shareScreen,
|
|
10107
|
-
icon:
|
|
10107
|
+
icon: is,
|
|
10108
10108
|
pressed: e,
|
|
10109
10109
|
pending: r.screenShare?.pending,
|
|
10110
10110
|
disabled: u?.canShareScreen === !1,
|
|
@@ -10116,7 +10116,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
10116
10116
|
return n.hasReactions && i.push({
|
|
10117
10117
|
id: "core:reactions",
|
|
10118
10118
|
label: t.meeting.reactions,
|
|
10119
|
-
icon:
|
|
10119
|
+
icon: Ki,
|
|
10120
10120
|
priority: 41,
|
|
10121
10121
|
group: "reactions",
|
|
10122
10122
|
modes: [
|
|
@@ -10128,7 +10128,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
10128
10128
|
}), n.hasRaiseHand && i.push({
|
|
10129
10129
|
id: "core:raiseHand",
|
|
10130
10130
|
label: l ? t.meeting.lowerHand : t.meeting.raiseHand,
|
|
10131
|
-
icon:
|
|
10131
|
+
icon: xi,
|
|
10132
10132
|
emoji: "✋",
|
|
10133
10133
|
pressed: l,
|
|
10134
10134
|
onClick: () => n.setHandRaised(!l),
|
|
@@ -10155,7 +10155,7 @@ var Mb = Tb.categories.flatMap((e) => Eb.includes(e.id) ? [{
|
|
|
10155
10155
|
}), i.push({
|
|
10156
10156
|
id: "core:leave",
|
|
10157
10157
|
label: t.meeting.leave,
|
|
10158
|
-
icon:
|
|
10158
|
+
icon: ua,
|
|
10159
10159
|
variant: "critical",
|
|
10160
10160
|
onClick: () => void c(),
|
|
10161
10161
|
pinned: !0,
|
|
@@ -10733,24 +10733,24 @@ var yE = () => {
|
|
|
10733
10733
|
return td(t, n, n);
|
|
10734
10734
|
}, bE = {
|
|
10735
10735
|
duration: Zl.duration.base,
|
|
10736
|
-
ease:
|
|
10736
|
+
ease: mr
|
|
10737
10737
|
}, xE = [
|
|
10738
10738
|
"left",
|
|
10739
10739
|
"top",
|
|
10740
10740
|
"width",
|
|
10741
10741
|
"height"
|
|
10742
|
-
].map((e) => `${e} ${Math.round(bE.duration * 1e3)}ms cubic-bezier(${
|
|
10742
|
+
].map((e) => `${e} ${Math.round(bE.duration * 1e3)}ms cubic-bezier(${mr.join(",")})`).join(", "), SE = {
|
|
10743
10743
|
duration: Zl.duration.base,
|
|
10744
|
-
ease:
|
|
10744
|
+
ease: mr
|
|
10745
10745
|
}, CE = {
|
|
10746
10746
|
duration: Zl.duration.fast,
|
|
10747
|
-
ease:
|
|
10747
|
+
ease: mr
|
|
10748
10748
|
}, wE = {
|
|
10749
10749
|
duration: Zl.duration.micro,
|
|
10750
10750
|
ease: "easeIn"
|
|
10751
10751
|
}, TE = {
|
|
10752
10752
|
duration: Zl.duration.fast,
|
|
10753
|
-
ease:
|
|
10753
|
+
ease: mr
|
|
10754
10754
|
}, EE = {
|
|
10755
10755
|
duration: Zl.duration.micro,
|
|
10756
10756
|
ease: "easeIn"
|
|
@@ -10827,7 +10827,7 @@ var yE = () => {
|
|
|
10827
10827
|
hideLabel: !0,
|
|
10828
10828
|
size: "sm",
|
|
10829
10829
|
variant: "neutral",
|
|
10830
|
-
icon:
|
|
10830
|
+
icon: Za,
|
|
10831
10831
|
label: n.t("meeting.muteParticipant", { name: e.name }),
|
|
10832
10832
|
onClick: () => r?.muteParticipant?.(e)
|
|
10833
10833
|
})
|
|
@@ -10854,7 +10854,7 @@ var yE = () => {
|
|
|
10854
10854
|
!i && (a || o) ? /* @__PURE__ */ Q("span", {
|
|
10855
10855
|
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"),
|
|
10856
10856
|
children: /* @__PURE__ */ Q(U, {
|
|
10857
|
-
icon: a ?
|
|
10857
|
+
icon: a ? is : Co,
|
|
10858
10858
|
size: "xs",
|
|
10859
10859
|
"aria-label": a ? n.meeting.sharingScreen : n.meeting.muted
|
|
10860
10860
|
})
|
|
@@ -10912,10 +10912,10 @@ var yE = () => {
|
|
|
10912
10912
|
});
|
|
10913
10913
|
}, RE = ({ tiles: e, width: t, radius: n }) => {
|
|
10914
10914
|
let r = R(), i = t < 160;
|
|
10915
|
-
return e.length === 0 ? null : /* @__PURE__ */ $(
|
|
10915
|
+
return e.length === 0 ? null : /* @__PURE__ */ $(ml, {
|
|
10916
10916
|
openDelay: 120,
|
|
10917
10917
|
closeDelay: 100,
|
|
10918
|
-
children: [/* @__PURE__ */ Q(
|
|
10918
|
+
children: [/* @__PURE__ */ Q(Uc, {
|
|
10919
10919
|
asChild: !0,
|
|
10920
10920
|
children: /* @__PURE__ */ Q("div", {
|
|
10921
10921
|
className: "bg-f1-background flex h-full w-full",
|
|
@@ -10955,12 +10955,12 @@ var yE = () => {
|
|
|
10955
10955
|
children: e.participant.name
|
|
10956
10956
|
}),
|
|
10957
10957
|
Jx(e.participant) ? /* @__PURE__ */ Q(U, {
|
|
10958
|
-
icon:
|
|
10958
|
+
icon: Co,
|
|
10959
10959
|
size: "sm",
|
|
10960
10960
|
color: "secondary"
|
|
10961
10961
|
}) : null,
|
|
10962
10962
|
Yx(e) ? null : /* @__PURE__ */ Q(U, {
|
|
10963
|
-
icon:
|
|
10963
|
+
icon: gs,
|
|
10964
10964
|
size: "sm",
|
|
10965
10965
|
color: "secondary"
|
|
10966
10966
|
})
|
|
@@ -11072,10 +11072,10 @@ var yE = () => {
|
|
|
11072
11072
|
className: B("flex shrink-0 items-center justify-center", n ? "h-4 w-[23px]" : "h-6 w-7"),
|
|
11073
11073
|
"data-testid": "meeting-tile-label-state",
|
|
11074
11074
|
children: o ? /* @__PURE__ */ Q(U, {
|
|
11075
|
-
icon:
|
|
11075
|
+
icon: is,
|
|
11076
11076
|
size: "sm"
|
|
11077
11077
|
}) : s ? /* @__PURE__ */ Q(U, {
|
|
11078
|
-
icon:
|
|
11078
|
+
icon: Co,
|
|
11079
11079
|
size: "sm"
|
|
11080
11080
|
}) : /* @__PURE__ */ Q(ZE, {
|
|
11081
11081
|
participantId: i.id,
|
|
@@ -11092,7 +11092,7 @@ var yE = () => {
|
|
|
11092
11092
|
hideLabel: !0,
|
|
11093
11093
|
size: "sm",
|
|
11094
11094
|
variant: "neutral",
|
|
11095
|
-
icon:
|
|
11095
|
+
icon: Za,
|
|
11096
11096
|
loading: r,
|
|
11097
11097
|
onClick: () => {
|
|
11098
11098
|
i(!0), t(), window.setTimeout(() => i(!1), aD);
|
|
@@ -11162,7 +11162,7 @@ var yE = () => {
|
|
|
11162
11162
|
hideLabel: !0,
|
|
11163
11163
|
size: "sm",
|
|
11164
11164
|
variant: "neutral",
|
|
11165
|
-
icon: l ?
|
|
11165
|
+
icon: l ? Ro : Da,
|
|
11166
11166
|
onClick: u,
|
|
11167
11167
|
label: l ? s.meeting.exitFullscreen : s.meeting.enterFullscreen
|
|
11168
11168
|
}) }) : null,
|
|
@@ -11171,7 +11171,7 @@ var yE = () => {
|
|
|
11171
11171
|
size: "sm",
|
|
11172
11172
|
variant: "neutral",
|
|
11173
11173
|
onClick: () => a?.(e.key),
|
|
11174
|
-
icon: r ? ei :
|
|
11174
|
+
icon: r ? ei : Ho,
|
|
11175
11175
|
label: r ? s.meeting.unpinParticipant : s.meeting.pinParticipant
|
|
11176
11176
|
}) }) : null
|
|
11177
11177
|
]
|
|
@@ -11628,7 +11628,7 @@ var yE = () => {
|
|
|
11628
11628
|
}) : null,
|
|
11629
11629
|
/* @__PURE__ */ $("div", {
|
|
11630
11630
|
className: "flex shrink-0 items-center",
|
|
11631
|
-
children: [/* @__PURE__ */ Q(
|
|
11631
|
+
children: [/* @__PURE__ */ Q(Oa, {
|
|
11632
11632
|
tabs: v,
|
|
11633
11633
|
activeTabId: g,
|
|
11634
11634
|
setActiveTabId: c
|
|
@@ -11639,7 +11639,7 @@ var yE = () => {
|
|
|
11639
11639
|
variant: "outline",
|
|
11640
11640
|
size: "md",
|
|
11641
11641
|
hideLabel: !0,
|
|
11642
|
-
icon:
|
|
11642
|
+
icon: to,
|
|
11643
11643
|
label: i.meeting.closePanel,
|
|
11644
11644
|
onClick: o
|
|
11645
11645
|
})
|
|
@@ -12480,7 +12480,7 @@ var yE = () => {
|
|
|
12480
12480
|
className: B("max-h-24 min-h-10 flex-1 resize-none rounded-lg border border-solid border-f1-border-secondary bg-f1-background px-3 py-2 text-base text-f1-foreground placeholder:text-f1-foreground-tertiary", En())
|
|
12481
12481
|
}), /* @__PURE__ */ Q(H, {
|
|
12482
12482
|
hideLabel: !0,
|
|
12483
|
-
icon:
|
|
12483
|
+
icon: bc,
|
|
12484
12484
|
label: n.meeting.sendMessage,
|
|
12485
12485
|
disabled: a.trim().length === 0,
|
|
12486
12486
|
onClick: l
|
|
@@ -12599,7 +12599,7 @@ var yE = () => {
|
|
|
12599
12599
|
return /* @__PURE__ */ Q("span", {
|
|
12600
12600
|
className: "shrink-0",
|
|
12601
12601
|
"data-testid": "meeting-participant-guest",
|
|
12602
|
-
children: /* @__PURE__ */ Q(
|
|
12602
|
+
children: /* @__PURE__ */ Q(Zc, { text: e === "link" ? t.meeting.guestLink : t.meeting.guestCallOnly })
|
|
12603
12603
|
});
|
|
12604
12604
|
}, pO = ({ person: e, waiting: t, handPosition: n, onMute: r, onRemove: i }) => {
|
|
12605
12605
|
let a = R(), o = !t && Jx(e);
|
|
@@ -12625,7 +12625,7 @@ var yE = () => {
|
|
|
12625
12625
|
hideLabel: !0,
|
|
12626
12626
|
size: "sm",
|
|
12627
12627
|
variant: "ghost",
|
|
12628
|
-
icon:
|
|
12628
|
+
icon: Za,
|
|
12629
12629
|
label: a.t("meeting.muteParticipant", { name: e.name }),
|
|
12630
12630
|
onClick: r
|
|
12631
12631
|
}) : null,
|
|
@@ -12634,7 +12634,7 @@ var yE = () => {
|
|
|
12634
12634
|
"aria-label": a.meeting.muted,
|
|
12635
12635
|
className: "text-f1-foreground-secondary",
|
|
12636
12636
|
children: /* @__PURE__ */ Q(U, {
|
|
12637
|
-
icon:
|
|
12637
|
+
icon: Co,
|
|
12638
12638
|
size: "sm"
|
|
12639
12639
|
})
|
|
12640
12640
|
}) : null,
|
|
@@ -12840,7 +12840,7 @@ var yE = () => {
|
|
|
12840
12840
|
opacity: 1,
|
|
12841
12841
|
x: 0,
|
|
12842
12842
|
y: 0,
|
|
12843
|
-
transition: e.kind === "seam" ?
|
|
12843
|
+
transition: e.kind === "seam" ? Ya : e.kind === "instant" || e.kind === "under" ? { duration: 0 } : CO
|
|
12844
12844
|
}),
|
|
12845
12845
|
leaving: (e) => {
|
|
12846
12846
|
let t = e.leave?.() ?? e;
|
|
@@ -12859,7 +12859,7 @@ var yE = () => {
|
|
|
12859
12859
|
};
|
|
12860
12860
|
case "panel": return {
|
|
12861
12861
|
opacity: 0,
|
|
12862
|
-
transition:
|
|
12862
|
+
transition: Ia
|
|
12863
12863
|
};
|
|
12864
12864
|
case "sheet":
|
|
12865
12865
|
case "fade": return {
|
|
@@ -12976,7 +12976,7 @@ var yE = () => {
|
|
|
12976
12976
|
},
|
|
12977
12977
|
children: /* @__PURE__ */ Q("div", {
|
|
12978
12978
|
className: "h-full w-full",
|
|
12979
|
-
children: /* @__PURE__ */ Q(
|
|
12979
|
+
children: /* @__PURE__ */ Q(ts, {
|
|
12980
12980
|
content: e,
|
|
12981
12981
|
onClose: s,
|
|
12982
12982
|
entities: t,
|
|
@@ -12993,7 +12993,7 @@ var yE = () => {
|
|
|
12993
12993
|
...jO,
|
|
12994
12994
|
side: AO
|
|
12995
12995
|
}, NO = () => {
|
|
12996
|
-
let e = IS(), t = ob(), n =
|
|
12996
|
+
let e = IS(), t = ob(), n = dr(), { activeContent: r, present: i, clear: a, open: o, setOpen: s, layout: c, setLayout: l, contentSide: u, presentedWidth: d } = Va(), { currentPath: f } = Wn(), { hasPrimarySidebar: p } = mu(), m = p ? AO : u, h = p ? MO : jO, g = t ? e?.mode : void 0, _ = t ? e?.effectiveMode : void 0, v = e?.setMode, y = e?.setPanelSlot, b = e?.setPanelSlotWidth, x = r?.id === kO, S = _ === "panel" || _ === "fullscreen", C = g === "panel" || g === "fullscreen";
|
|
12997
12997
|
K(function() {
|
|
12998
12998
|
if (y) return y(n ? m : null), () => y(null);
|
|
12999
12999
|
}, [
|
|
@@ -13067,7 +13067,7 @@ var yE = () => {
|
|
|
13067
13067
|
function IO({ 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 }) {
|
|
13068
13068
|
let p = J(function() {
|
|
13069
13069
|
return [...o?.enabled ? [{
|
|
13070
|
-
...
|
|
13070
|
+
...Uo,
|
|
13071
13071
|
side: s?.side ?? "right"
|
|
13072
13072
|
}] : [], ...s?.views ?? []];
|
|
13073
13073
|
}, [
|
|
@@ -13081,7 +13081,7 @@ function IO({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, t
|
|
|
13081
13081
|
enabled: h,
|
|
13082
13082
|
hasSecondarySidebar: !!r,
|
|
13083
13083
|
topBarHeight: h && i ? HO : 0,
|
|
13084
|
-
children: /* @__PURE__ */ Q(lu, { children: /* @__PURE__ */ Q(
|
|
13084
|
+
children: /* @__PURE__ */ Q(lu, { children: /* @__PURE__ */ Q(ki, {
|
|
13085
13085
|
views: p,
|
|
13086
13086
|
side: s?.side,
|
|
13087
13087
|
contentSide: m,
|
|
@@ -13108,7 +13108,7 @@ function IO({ children: e, sidebar: t, primarySidebar: n, secondarySidebar: r, t
|
|
|
13108
13108
|
});
|
|
13109
13109
|
}
|
|
13110
13110
|
function LO({ children: e, navigation: t, topBar: n, banner: r, ai: i, composer: a, reserveComposerSpace: o, composerHidden: s, onNavigationPointerEnter: c }) {
|
|
13111
|
-
let l = i?.enabled ?
|
|
13111
|
+
let l = i?.enabled ? Rr : Hu;
|
|
13112
13112
|
return /* @__PURE__ */ Q(l, {
|
|
13113
13113
|
...i?.enabled ? i : void 0,
|
|
13114
13114
|
children: /* @__PURE__ */ Q(WO, {
|
|
@@ -13149,10 +13149,10 @@ function VO(e) {
|
|
|
13149
13149
|
}
|
|
13150
13150
|
var HO = 42, UO = (e) => e ? { inert: "" } : {};
|
|
13151
13151
|
function WO({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer: a, reserveComposerSpace: o, composerHidden: s = !1, onNavigationPointerEnter: c }) {
|
|
13152
|
-
let { sidebarState: l, toggleSidebar: u, isSmallScreen: d, setForceFloat: f, floatsWhenForced: p, hasPrimarySidebar: m } = mu(), h = uu(), g = h?.primarySidebarWidth ?? 0, _ = Zn(), { hasAvailableView: v, open: y, layout: b, effectiveWidth: x, widthBounds: S, panelOverlays: C, setFrameWidth: w, resizable: T, side: E, activeContent: D, contentSide: O, restoringViewId: k, isResizing: A, width: j } =
|
|
13153
|
-
file:
|
|
13152
|
+
let { sidebarState: l, toggleSidebar: u, isSmallScreen: d, setForceFloat: f, floatsWhenForced: p, hasPrimarySidebar: m } = mu(), h = uu(), g = h?.primarySidebarWidth ?? 0, _ = Zn(), { hasAvailableView: v, open: y, layout: b, effectiveWidth: x, widthBounds: S, panelOverlays: C, setFrameWidth: w, resizable: T, side: E, activeContent: D, contentSide: O, restoringViewId: k, isResizing: A, width: j } = Va(), M = as(), { canvasContent: N, canvasEntities: P, dismissCanvas: F, isCanvasCovered: I } = ti(), [ee, te] = X(!1), ne = J(() => ({
|
|
13153
|
+
file: mo,
|
|
13154
13154
|
...P
|
|
13155
|
-
}), [P]), re = b === "fullscreen", ie = N !== null && !I, ae = T ? x : Math.min(
|
|
13155
|
+
}), [P]), re = b === "fullscreen", ie = N !== null && !I, ae = T ? x : Math.min(Fo, S.max), oe = N?.coversChat === !0 ? 0 : ae, se = E === "left", ce = O !== E, le = !!(D || k), ue = Y(le);
|
|
13156
13156
|
K(function() {
|
|
13157
13157
|
ue.current = le;
|
|
13158
13158
|
});
|
|
@@ -13174,7 +13174,7 @@ function WO({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13174
13174
|
K(function() {
|
|
13175
13175
|
we.current = xe, Te.current = Se;
|
|
13176
13176
|
});
|
|
13177
|
-
let Ee = or(`(max-width: ${$l.lg}px)`, { initializeWithValue: !0 }), De = Y(null), Oe = h ? h.hasSecondarySidebar ? h.secondarySidebarWidth : 0 : tu.panel, ke = g + (l === "locked" ? Oe : 0), { width: Ae } = ar(), je =
|
|
13177
|
+
let Ee = or(`(max-width: ${$l.lg}px)`, { initializeWithValue: !0 }), De = Y(null), Oe = h ? h.hasSecondarySidebar ? h.secondarySidebarWidth : 0 : tu.panel, ke = g + (l === "locked" ? Oe : 0), { width: Ae } = ar(), je = Ca({
|
|
13178
13178
|
dockedLeft: be,
|
|
13179
13179
|
narrowForLeftPanel: Ee,
|
|
13180
13180
|
fit: M,
|
|
@@ -13207,17 +13207,17 @@ function WO({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13207
13207
|
Ne,
|
|
13208
13208
|
Le
|
|
13209
13209
|
]);
|
|
13210
|
-
let Be = A || Ie || !!h?.isInstant, Ve =
|
|
13210
|
+
let Be = A || Ie || !!h?.isInstant, Ve = Ka(Be, _), He = (e, t) => fa(Be, he && e && t, _), Ue = _ ? "instant" : C ? "sheet" : N?.coversChat === !0 ? "fade" : he ? "under" : "seam", We = _ ? "instant" : xe ? C ? "sheet" : re ? "under" : "seam" : y ? "instant" : "panel", Ge = y && re, Ke = Ce && !C, qe = {
|
|
13211
13211
|
left: Ke && be ? ae : 0,
|
|
13212
13212
|
right: Ke && !be ? ae : 0
|
|
13213
13213
|
}, Je = Y(qe);
|
|
13214
13214
|
Ge || (Je.current = qe);
|
|
13215
|
-
let Ye = Ge ? Je.current : qe, Xe = !(Be || he || L) && !_, Ze = Xe ?
|
|
13215
|
+
let Ye = Ge ? Je.current : qe, Xe = !(Be || he || L) && !_, Ze = Xe ? Ia : Ua, Qe = Ce && je;
|
|
13216
13216
|
return q(function() {
|
|
13217
13217
|
f(Qe);
|
|
13218
|
-
}, [Qe, f]), VO(Qe), /* @__PURE__ */ Q(
|
|
13218
|
+
}, [Qe, f]), VO(Qe), /* @__PURE__ */ Q(Qr.Provider, {
|
|
13219
13219
|
value: !!e?.enabled,
|
|
13220
|
-
children: /* @__PURE__ */ Q(
|
|
13220
|
+
children: /* @__PURE__ */ Q(ca.Provider, {
|
|
13221
13221
|
value: ee,
|
|
13222
13222
|
children: /* @__PURE__ */ Q(ln, {
|
|
13223
13223
|
reducedMotion: _ ? "always" : "never",
|
|
@@ -13272,7 +13272,7 @@ function WO({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13272
13272
|
children: [
|
|
13273
13273
|
r ? /* @__PURE__ */ Q("div", {
|
|
13274
13274
|
...UO(Re),
|
|
13275
|
-
className: B("relative z-10 flex shrink-0 items-center pb-0.5 pr-4 pt-2", Xe ? B("transition-[margin]",
|
|
13275
|
+
className: B("relative z-10 flex shrink-0 items-center pb-0.5 pr-4 pt-2", Xe ? B("transition-[margin]", So) : "transition-none"),
|
|
13276
13276
|
style: { marginLeft: m ? g - ke : 0 },
|
|
13277
13277
|
children: r
|
|
13278
13278
|
}) : null,
|
|
@@ -13324,7 +13324,7 @@ function WO({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13324
13324
|
width: Pe,
|
|
13325
13325
|
left: e === "left" ? -ke : "auto"
|
|
13326
13326
|
} : {
|
|
13327
|
-
width:
|
|
13327
|
+
width: ds({
|
|
13328
13328
|
coversFrame: C,
|
|
13329
13329
|
isFullscreen: re,
|
|
13330
13330
|
isClosingFromFullscreen: L,
|
|
@@ -13336,7 +13336,7 @@ function WO({ ai: e, children: t, navigation: n, topBar: r, banner: i, composer:
|
|
|
13336
13336
|
transition: He(t, n),
|
|
13337
13337
|
children: r
|
|
13338
13338
|
}, `panel-${e}`);
|
|
13339
|
-
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(E, !ce || !ye, we.current, /* @__PURE__ */ Q(
|
|
13339
|
+
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(E, !ce || !ye, we.current, /* @__PURE__ */ Q(qi, {})) : null, !e?.enabled || ce ? t(O, ye || !e?.enabled, Te.current, /* @__PURE__ */ Q(Uy, {})) : null] });
|
|
13340
13340
|
})() : null
|
|
13341
13341
|
]
|
|
13342
13342
|
})
|
|
@@ -13517,7 +13517,7 @@ var qO = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
13517
13517
|
label: s.actions.add,
|
|
13518
13518
|
variant: "neutral",
|
|
13519
13519
|
size: "sm",
|
|
13520
|
-
icon:
|
|
13520
|
+
icon: Ki,
|
|
13521
13521
|
onClick: (e) => {
|
|
13522
13522
|
e.preventDefault(), e.stopPropagation(), o();
|
|
13523
13523
|
},
|
|
@@ -13556,7 +13556,7 @@ function YO({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
13556
13556
|
variant: "ghost",
|
|
13557
13557
|
onClick: () => o(),
|
|
13558
13558
|
label: "Open main menu",
|
|
13559
|
-
icon:
|
|
13559
|
+
icon: ma,
|
|
13560
13560
|
hideLabel: !0
|
|
13561
13561
|
}) : null,
|
|
13562
13562
|
/* @__PURE__ */ $("div", {
|
|
@@ -13584,7 +13584,7 @@ function YO({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
13584
13584
|
})]
|
|
13585
13585
|
})
|
|
13586
13586
|
]
|
|
13587
|
-
}), /* @__PURE__ */ Q("div", { children: i ? null : /* @__PURE__ */ Q(
|
|
13587
|
+
}), /* @__PURE__ */ Q("div", { children: i ? null : /* @__PURE__ */ Q($a, {}) })]
|
|
13588
13588
|
}) : null,
|
|
13589
13589
|
/* @__PURE__ */ Q("div", {
|
|
13590
13590
|
className: B("isolate flex w-full flex-1 flex-col overflow-y-auto overflow-x-hidden [&>*]:flex-1", s && "-mt-3"),
|
|
@@ -13594,12 +13594,12 @@ function YO({ children: e, header: t, period: n, embedded: r = !1, hideOneSwitch
|
|
|
13594
13594
|
});
|
|
13595
13595
|
}
|
|
13596
13596
|
YO.displayName = "DaytimePage";
|
|
13597
|
-
var XO = bn(Tn("DaytimePage", YO)), ZO = Ku(({ className: e, items: t }, n) => /* @__PURE__ */ Q(
|
|
13597
|
+
var XO = bn(Tn("DaytimePage", YO)), ZO = Ku(({ className: e, items: t }, n) => /* @__PURE__ */ Q(gr, {
|
|
13598
13598
|
ref: n,
|
|
13599
13599
|
className: e,
|
|
13600
13600
|
children: /* @__PURE__ */ $("div", {
|
|
13601
13601
|
className: "flex items-center",
|
|
13602
|
-
children: [/* @__PURE__ */ Q(
|
|
13602
|
+
children: [/* @__PURE__ */ Q(ao, {}), /* @__PURE__ */ Q(Ao, {
|
|
13603
13603
|
items: t,
|
|
13604
13604
|
children: /* @__PURE__ */ Q("button", {
|
|
13605
13605
|
className: "rounded-sm px-1.5 py-0.5 font-medium text-f1-foreground no-underline transition-colors hover:bg-f1-background-secondary",
|
|
@@ -13680,10 +13680,10 @@ function ak({ breadcrumbs: e, append: t }) {
|
|
|
13680
13680
|
});
|
|
13681
13681
|
}, c = new ResizeObserver(s);
|
|
13682
13682
|
return c.observe(t), s(), () => c.disconnect();
|
|
13683
|
-
}, [e, t]), !e.length || a && !a.headItem ? /* @__PURE__ */ Q(
|
|
13683
|
+
}, [e, t]), !e.length || a && !a.headItem ? /* @__PURE__ */ Q(Is, {
|
|
13684
13684
|
ref: n,
|
|
13685
13685
|
className: "w-full"
|
|
13686
|
-
}) : /* @__PURE__ */ $(
|
|
13686
|
+
}) : /* @__PURE__ */ $(Is, {
|
|
13687
13687
|
ref: n,
|
|
13688
13688
|
className: "w-full overflow-x-hidden",
|
|
13689
13689
|
style: { minWidth: a?.minWidth },
|
|
@@ -13691,33 +13691,33 @@ function ak({ breadcrumbs: e, append: t }) {
|
|
|
13691
13691
|
className: "invisible absolute -left-full",
|
|
13692
13692
|
"aria-hidden": "true",
|
|
13693
13693
|
ref: r,
|
|
13694
|
-
children: e.map((n, r) => /* @__PURE__ */ Q(
|
|
13694
|
+
children: e.map((n, r) => /* @__PURE__ */ Q(pr, {
|
|
13695
13695
|
item: n,
|
|
13696
13696
|
isLast: r === e.length - 1,
|
|
13697
13697
|
isFirst: r === 0,
|
|
13698
13698
|
children: r === e.length - 1 ? t : void 0
|
|
13699
|
-
},
|
|
13700
|
-
}), a && a.headItem ? /* @__PURE__ */ $(
|
|
13701
|
-
/* @__PURE__ */ Q(
|
|
13699
|
+
}, Ui(n)))
|
|
13700
|
+
}), a && a.headItem ? /* @__PURE__ */ $(Yi, { children: [
|
|
13701
|
+
/* @__PURE__ */ Q(pr, {
|
|
13702
13702
|
isOnly: a.isOnly,
|
|
13703
13703
|
isFirst: !0,
|
|
13704
13704
|
item: a.headItem,
|
|
13705
13705
|
isLast: !1
|
|
13706
|
-
}, `first-item-${
|
|
13707
|
-
s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(ZO, { items: a.collapsedItems }, "collapsed-items"), a.tailItems.map((e, n) => /* @__PURE__ */ Q(
|
|
13706
|
+
}, `first-item-${Ui(a.headItem)}`),
|
|
13707
|
+
s ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(ZO, { items: a.collapsedItems }, "collapsed-items"), a.tailItems.map((e, n) => /* @__PURE__ */ Q(pr, {
|
|
13708
13708
|
item: e,
|
|
13709
13709
|
isLast: n === a.tailItems.length - 1,
|
|
13710
13710
|
isFirst: !1,
|
|
13711
13711
|
children: n === a.tailItems.length - 1 ? t : void 0
|
|
13712
|
-
},
|
|
13713
|
-
s ? null : /* @__PURE__ */ Q(Z, { children: a.tailItems.map((e, n) => /* @__PURE__ */ Q(
|
|
13712
|
+
}, Ui(e)))] }) : null,
|
|
13713
|
+
s ? null : /* @__PURE__ */ Q(Z, { children: a.tailItems.map((e, n) => /* @__PURE__ */ Q(pr, {
|
|
13714
13714
|
item: e,
|
|
13715
13715
|
isLast: n === a.tailItems.length - 1,
|
|
13716
13716
|
isFirst: !1,
|
|
13717
13717
|
children: n === a.tailItems.length - 1 ? t : void 0
|
|
13718
|
-
},
|
|
13718
|
+
}, Ui(e))) })
|
|
13719
13719
|
] }) : null]
|
|
13720
|
-
}, `breadcrumb-${
|
|
13720
|
+
}, `breadcrumb-${Ui(e.at(-1)) ?? 0}`);
|
|
13721
13721
|
}
|
|
13722
13722
|
//#endregion
|
|
13723
13723
|
//#region src/blocks/Header/PageHeader/PageHeaderNavigationContext.ts
|
|
@@ -13788,7 +13788,7 @@ var uk = Ln.create(U), dk = {
|
|
|
13788
13788
|
"aria-label": n,
|
|
13789
13789
|
children: e ? /* @__PURE__ */ Q(uk, {
|
|
13790
13790
|
size: "sm",
|
|
13791
|
-
icon:
|
|
13791
|
+
icon: Ti,
|
|
13792
13792
|
className: "text-[hsl(var(--promote-50))] outline-none",
|
|
13793
13793
|
variants: dk,
|
|
13794
13794
|
initial: r ? "enterFromUnfavorite" : "initial",
|
|
@@ -13806,7 +13806,7 @@ var uk = Ln.create(U), dk = {
|
|
|
13806
13806
|
}, "favorite") : /* @__PURE__ */ Q(uk, {
|
|
13807
13807
|
size: "sm",
|
|
13808
13808
|
whileTap: { scale: .8 },
|
|
13809
|
-
icon:
|
|
13809
|
+
icon: Nr,
|
|
13810
13810
|
className: "outline-none",
|
|
13811
13811
|
variants: dk,
|
|
13812
13812
|
initial: r ? "enterFromFavorite" : "initial",
|
|
@@ -13867,13 +13867,13 @@ var uk = Ln.create(U), dk = {
|
|
|
13867
13867
|
};
|
|
13868
13868
|
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(V, {
|
|
13869
13869
|
variant: "ghost",
|
|
13870
|
-
icon:
|
|
13870
|
+
icon: fs,
|
|
13871
13871
|
hideLabel: !0,
|
|
13872
13872
|
label: t,
|
|
13873
13873
|
pressed: p,
|
|
13874
13874
|
onClick: () => y(!0),
|
|
13875
13875
|
append: d && /* @__PURE__ */ Q(Tk, { className: "absolute -right-0.5 -top-[1px]" })
|
|
13876
|
-
}), /* @__PURE__ */ Q(
|
|
13876
|
+
}), /* @__PURE__ */ Q(ha, {
|
|
13877
13877
|
isOpen: p,
|
|
13878
13878
|
onClose: () => y(!1),
|
|
13879
13879
|
position: "center",
|
|
@@ -13959,7 +13959,7 @@ var uk = Ln.create(U), dk = {
|
|
|
13959
13959
|
}, vk = ({ content: e }) => /* @__PURE__ */ $("div", {
|
|
13960
13960
|
className: "flex flex-row items-center gap-2",
|
|
13961
13961
|
children: [/* @__PURE__ */ Q(U, {
|
|
13962
|
-
icon:
|
|
13962
|
+
icon: fs,
|
|
13963
13963
|
size: "sm",
|
|
13964
13964
|
className: "text-f1-icon-secondary"
|
|
13965
13965
|
}), /* @__PURE__ */ Q(g, {
|
|
@@ -13970,7 +13970,7 @@ var uk = Ln.create(U), dk = {
|
|
|
13970
13970
|
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",
|
|
13971
13971
|
children: /* @__PURE__ */ Q(H, {
|
|
13972
13972
|
variant: "outline",
|
|
13973
|
-
icon:
|
|
13973
|
+
icon: fs,
|
|
13974
13974
|
label: e,
|
|
13975
13975
|
href: t,
|
|
13976
13976
|
onClick: n
|
|
@@ -14044,7 +14044,7 @@ var uk = Ln.create(U), dk = {
|
|
|
14044
14044
|
title: e,
|
|
14045
14045
|
description: r,
|
|
14046
14046
|
icon: /* @__PURE__ */ Q(U, {
|
|
14047
|
-
icon:
|
|
14047
|
+
icon: fs,
|
|
14048
14048
|
size: "lg",
|
|
14049
14049
|
className: "block"
|
|
14050
14050
|
}),
|
|
@@ -14057,7 +14057,7 @@ var uk = Ln.create(U), dk = {
|
|
|
14057
14057
|
description: t,
|
|
14058
14058
|
iconWrapperClassName: "text-f1-icon-critical bg-f1-background-critical border-f1-critical",
|
|
14059
14059
|
icon: /* @__PURE__ */ Q(U, {
|
|
14060
|
-
icon:
|
|
14060
|
+
icon: gc,
|
|
14061
14061
|
size: "lg"
|
|
14062
14062
|
}),
|
|
14063
14063
|
button: /* @__PURE__ */ Q(H, {
|
|
@@ -14110,7 +14110,7 @@ var uk = Ln.create(U), dk = {
|
|
|
14110
14110
|
className: "relative z-10 h-6 w-6",
|
|
14111
14111
|
children: /* @__PURE__ */ Q(H, {
|
|
14112
14112
|
variant: "ghost",
|
|
14113
|
-
icon:
|
|
14113
|
+
icon: to,
|
|
14114
14114
|
size: "sm",
|
|
14115
14115
|
hideLabel: !0,
|
|
14116
14116
|
onClick: () => {
|
|
@@ -14166,7 +14166,7 @@ function Dk({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14166
14166
|
hideLabel: !0,
|
|
14167
14167
|
onClick: () => f(),
|
|
14168
14168
|
label: "Open main menu",
|
|
14169
|
-
icon:
|
|
14169
|
+
icon: ma
|
|
14170
14170
|
})
|
|
14171
14171
|
})
|
|
14172
14172
|
}, "menu") : null }),
|
|
@@ -14179,7 +14179,7 @@ function Dk({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14179
14179
|
variant: "ghost",
|
|
14180
14180
|
hideLabel: !0,
|
|
14181
14181
|
label: "Back",
|
|
14182
|
-
icon:
|
|
14182
|
+
icon: Fc,
|
|
14183
14183
|
onClick: () => window.history.back()
|
|
14184
14184
|
})
|
|
14185
14185
|
}) : null, C || v ? /* @__PURE__ */ Q("div", {
|
|
@@ -14200,17 +14200,17 @@ function Dk({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14200
14200
|
children: [
|
|
14201
14201
|
!i && _ ? /* @__PURE__ */ Q("div", { children: t.tooltip ? /* @__PURE__ */ Q(In, {
|
|
14202
14202
|
label: t.tooltip,
|
|
14203
|
-
children: /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(
|
|
14203
|
+
children: /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(Sc, {
|
|
14204
14204
|
text: t.text,
|
|
14205
14205
|
variant: t.variant,
|
|
14206
14206
|
additionalAccessibleText: t.tooltip
|
|
14207
14207
|
}) })
|
|
14208
|
-
}) : /* @__PURE__ */ Q(
|
|
14208
|
+
}) : /* @__PURE__ */ Q(Sc, {
|
|
14209
14209
|
text: t.text,
|
|
14210
14210
|
variant: t.variant
|
|
14211
14211
|
}) }) : null,
|
|
14212
14212
|
!i && _ && (h || y || b) ? /* @__PURE__ */ Q("div", { className: "h-4 w-px bg-f1-border-secondary" }) : null,
|
|
14213
|
-
h ? /* @__PURE__ */ Q(
|
|
14213
|
+
h ? /* @__PURE__ */ Q(uo, { ...h }) : null,
|
|
14214
14214
|
h && y ? /* @__PURE__ */ Q("div", { className: "h-4 w-px bg-f1-border-secondary" }) : null,
|
|
14215
14215
|
b || y ? /* @__PURE__ */ $("div", {
|
|
14216
14216
|
className: "flex items-center gap-0",
|
|
@@ -14227,7 +14227,7 @@ function Dk({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14227
14227
|
}) : null,
|
|
14228
14228
|
/* @__PURE__ */ Q("div", {
|
|
14229
14229
|
className: "flex items-center gap-3",
|
|
14230
|
-
children: u ? null : /* @__PURE__ */ Q(
|
|
14230
|
+
children: u ? null : /* @__PURE__ */ Q($a, {
|
|
14231
14231
|
tooltip: c,
|
|
14232
14232
|
autoOpen: l
|
|
14233
14233
|
})
|
|
@@ -14238,7 +14238,7 @@ function Dk({ module: e, statusTag: t = void 0, breadcrumbs: n = [], actions: r
|
|
|
14238
14238
|
}
|
|
14239
14239
|
function Ok({ action: e }) {
|
|
14240
14240
|
let t = Y(null), [n, r] = X(!1), i = "ghost";
|
|
14241
|
-
return "actions" in e ? /* @__PURE__ */ Q(
|
|
14241
|
+
return "actions" in e ? /* @__PURE__ */ Q(Zi, {
|
|
14242
14242
|
items: e.actions,
|
|
14243
14243
|
open: n,
|
|
14244
14244
|
onOpenChange: r,
|
|
@@ -14291,13 +14291,13 @@ function Ak({ label: e, options: t, hasNewUpdate: n }) {
|
|
|
14291
14291
|
bottom: "calc(8px + env(safe-area-inset-bottom))",
|
|
14292
14292
|
right: "calc(8px + env(safe-area-inset-right))"
|
|
14293
14293
|
},
|
|
14294
|
-
children: /* @__PURE__ */ Q(
|
|
14294
|
+
children: /* @__PURE__ */ Q(Zi, {
|
|
14295
14295
|
items: kk(t),
|
|
14296
14296
|
children: /* @__PURE__ */ $("button", {
|
|
14297
14297
|
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()),
|
|
14298
14298
|
"aria-label": e,
|
|
14299
14299
|
children: [/* @__PURE__ */ Q(U, {
|
|
14300
|
-
icon:
|
|
14300
|
+
icon: Lr,
|
|
14301
14301
|
size: "sm"
|
|
14302
14302
|
}), 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]
|
|
14303
14303
|
})
|
|
@@ -14456,10 +14456,10 @@ var Yk = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
14456
14456
|
children: r
|
|
14457
14457
|
})
|
|
14458
14458
|
}), nA = ({ title: e, isOpen: t = !0, isRoot: n, onCollapse: r, children: i, highlightWhenCollapsed: a, collapsedBadge: o, action: s, headerAccessory: c, isDragging: l, wasDragging: u }) => {
|
|
14459
|
-
let d =
|
|
14459
|
+
let d = Wo() === "two-level", [f, p] = X(t), m = Zn(), h = a && !f;
|
|
14460
14460
|
return /* @__PURE__ */ Q("div", {
|
|
14461
14461
|
"data-sidebar-collapsible-open": f,
|
|
14462
|
-
children: /* @__PURE__ */ $(
|
|
14462
|
+
children: /* @__PURE__ */ $(Go, {
|
|
14463
14463
|
open: f,
|
|
14464
14464
|
children: [/* @__PURE__ */ $("div", {
|
|
14465
14465
|
className: "group/section group relative flex items-center",
|
|
@@ -14502,7 +14502,7 @@ var Yk = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
14502
14502
|
}
|
|
14503
14503
|
}) : null]
|
|
14504
14504
|
}) : null]
|
|
14505
|
-
}), /* @__PURE__ */ Q(
|
|
14505
|
+
}), /* @__PURE__ */ Q(eo, {
|
|
14506
14506
|
forceMount: !0,
|
|
14507
14507
|
className: "mt-0.5 flex flex-col gap-1",
|
|
14508
14508
|
children: /* @__PURE__ */ Q(tA, {
|
|
@@ -14559,7 +14559,7 @@ var Yk = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
14559
14559
|
}),
|
|
14560
14560
|
e.tag || n ? /* @__PURE__ */ $("span", {
|
|
14561
14561
|
className: "ml-auto flex shrink-0 items-center gap-1.5",
|
|
14562
|
-
children: [e.tag ? /* @__PURE__ */ Q(
|
|
14562
|
+
children: [e.tag ? /* @__PURE__ */ Q(Zc, { text: e.tag }) : null, n ? /* @__PURE__ */ Q(dA, { badge: n }) : null]
|
|
14563
14563
|
}) : null
|
|
14564
14564
|
] });
|
|
14565
14565
|
return e.href ? /* @__PURE__ */ Q(Un, {
|
|
@@ -14739,13 +14739,13 @@ var Yk = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
14739
14739
|
prop: r,
|
|
14740
14740
|
defaultProp: "",
|
|
14741
14741
|
onChange: i
|
|
14742
|
-
}), h = aA() === "scrolls-itself", g =
|
|
14742
|
+
}), h = aA() === "scrolls-itself", g = Wo() === "classic", [_, v] = sr({ threshold: 1 }), [y, b] = sr({ 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) => ({
|
|
14743
14743
|
...e,
|
|
14744
14744
|
items: x ? e.items.filter((e) => Zk(p, e.searchText ?? "")) : e.items.filter((e) => !e.hiddenUnlessSearching)
|
|
14745
|
-
})).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 || T.length > 0,
|
|
14745
|
+
})).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: [
|
|
14746
14746
|
w ? c : null,
|
|
14747
|
-
|
|
14748
|
-
|
|
14747
|
+
D ? l : null,
|
|
14748
|
+
k ? /* @__PURE__ */ Q("p", {
|
|
14749
14749
|
className: "px-1.5 py-2 text-base text-f1-foreground-secondary",
|
|
14750
14750
|
children: u
|
|
14751
14751
|
}) : null,
|
|
@@ -14786,8 +14786,8 @@ var Yk = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
14786
14786
|
className: "flex flex-col gap-4",
|
|
14787
14787
|
children: [/* @__PURE__ */ Q(mA, {
|
|
14788
14788
|
actions: S,
|
|
14789
|
-
separated:
|
|
14790
|
-
}),
|
|
14789
|
+
separated: O
|
|
14790
|
+
}), A]
|
|
14791
14791
|
}),
|
|
14792
14792
|
/* @__PURE__ */ Q("div", {
|
|
14793
14793
|
ref: y,
|
|
@@ -14813,8 +14813,8 @@ var Yk = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""),
|
|
|
14813
14813
|
query: p,
|
|
14814
14814
|
onQueryChange: m,
|
|
14815
14815
|
actions: S,
|
|
14816
|
-
separated:
|
|
14817
|
-
children:
|
|
14816
|
+
separated: O,
|
|
14817
|
+
children: A
|
|
14818
14818
|
});
|
|
14819
14819
|
}, xA = gn(function() {
|
|
14820
14820
|
return process.env.NODE_ENV !== "test" && on() && "ontouchend" in document;
|
|
@@ -15072,7 +15072,7 @@ var EA = (e) => e.type === "sidebar-chat", DA = (e) => e.type === "sidebar-group
|
|
|
15072
15072
|
let { organize: i, groups: a, openDialog: o, announce: s } = n, c = [];
|
|
15073
15073
|
e.onTogglePin && c.push({
|
|
15074
15074
|
label: e.pinned ? r.chat.unpin : r.chat.pin,
|
|
15075
|
-
icon: e.pinned ? ei :
|
|
15075
|
+
icon: e.pinned ? ei : Ho,
|
|
15076
15076
|
onClick: e.onTogglePin
|
|
15077
15077
|
});
|
|
15078
15078
|
for (let t of i.chatMenuItems?.(e) ?? []) c.push(t);
|
|
@@ -15096,7 +15096,7 @@ var EA = (e) => e.type === "sidebar-chat", DA = (e) => e.type === "sidebar-group
|
|
|
15096
15096
|
}
|
|
15097
15097
|
})), ...i.onCreateGroup ? [...l.length > 0 ? [{ type: "separator" }] : [], {
|
|
15098
15098
|
label: r.chat.organize.newSection,
|
|
15099
|
-
icon:
|
|
15099
|
+
icon: ul,
|
|
15100
15100
|
onClick: () => o({
|
|
15101
15101
|
kind: "create",
|
|
15102
15102
|
seedChatId: e.id
|
|
@@ -15108,7 +15108,7 @@ var EA = (e) => e.type === "sidebar-chat", DA = (e) => e.type === "sidebar-group
|
|
|
15108
15108
|
let n = i.onRemoveChat;
|
|
15109
15109
|
c.push({ type: "separator" }, {
|
|
15110
15110
|
label: r.t("chat.organize.removeFrom", { section: u.title }),
|
|
15111
|
-
icon:
|
|
15111
|
+
icon: ra,
|
|
15112
15112
|
onClick: () => {
|
|
15113
15113
|
n({
|
|
15114
15114
|
chatId: e.id,
|
|
@@ -15148,7 +15148,7 @@ var EA = (e) => e.type === "sidebar-chat", DA = (e) => e.type === "sidebar-group
|
|
|
15148
15148
|
groupId: t,
|
|
15149
15149
|
context: i,
|
|
15150
15150
|
i18n: r
|
|
15151
|
-
}), p = f.length > 0, m = p ? /* @__PURE__ */ Q(
|
|
15151
|
+
}), p = f.length > 0, m = p ? /* @__PURE__ */ Q(Zi, {
|
|
15152
15152
|
items: f,
|
|
15153
15153
|
open: u,
|
|
15154
15154
|
onOpenChange: d,
|
|
@@ -15187,16 +15187,16 @@ var EA = (e) => e.type === "sidebar-chat", DA = (e) => e.type === "sidebar-group
|
|
|
15187
15187
|
})
|
|
15188
15188
|
}] : [], ...e.movable ? [{
|
|
15189
15189
|
label: t.chat.organize.moveSectionUp,
|
|
15190
|
-
icon:
|
|
15190
|
+
icon: bc,
|
|
15191
15191
|
disabled: c === null,
|
|
15192
15192
|
onClick: () => d(c)
|
|
15193
15193
|
}, {
|
|
15194
15194
|
label: t.chat.organize.moveSectionDown,
|
|
15195
|
-
icon:
|
|
15195
|
+
icon: Qc,
|
|
15196
15196
|
disabled: l === null,
|
|
15197
15197
|
onClick: () => d(l)
|
|
15198
15198
|
}] : []];
|
|
15199
|
-
return /* @__PURE__ */ Q(
|
|
15199
|
+
return /* @__PURE__ */ Q(Zi, {
|
|
15200
15200
|
items: f,
|
|
15201
15201
|
open: o,
|
|
15202
15202
|
onOpenChange: s,
|
|
@@ -15220,7 +15220,7 @@ var EA = (e) => e.type === "sidebar-chat", DA = (e) => e.type === "sidebar-group
|
|
|
15220
15220
|
let r = R(), [i, a] = X(e.kind === "rename" ? e.group.title : ""), o = i.trim(), s = () => {
|
|
15221
15221
|
o && (n(o), t());
|
|
15222
15222
|
};
|
|
15223
|
-
return /* @__PURE__ */ Q(
|
|
15223
|
+
return /* @__PURE__ */ Q(ha, {
|
|
15224
15224
|
isOpen: !0,
|
|
15225
15225
|
onClose: t,
|
|
15226
15226
|
position: "center",
|
|
@@ -15239,7 +15239,7 @@ var EA = (e) => e.type === "sidebar-chat", DA = (e) => e.type === "sidebar-group
|
|
|
15239
15239
|
onSubmit: (e) => {
|
|
15240
15240
|
e.preventDefault(), s();
|
|
15241
15241
|
},
|
|
15242
|
-
children: /* @__PURE__ */ Q(
|
|
15242
|
+
children: /* @__PURE__ */ Q(Zo, {
|
|
15243
15243
|
label: r.chat.organize.nameLabel,
|
|
15244
15244
|
placeholder: r.chat.organize.namePlaceholder,
|
|
15245
15245
|
value: i,
|
|
@@ -15300,7 +15300,7 @@ var $A = bn(QA), ej = (e, t) => e.type === "emoji" ? {
|
|
|
15300
15300
|
avatar: e
|
|
15301
15301
|
} : t && !e.src ? {
|
|
15302
15302
|
kind: "icon",
|
|
15303
|
-
icon:
|
|
15303
|
+
icon: fs
|
|
15304
15304
|
} : {
|
|
15305
15305
|
kind: "avatar",
|
|
15306
15306
|
avatar: {
|
|
@@ -15422,7 +15422,7 @@ var $A = bn(QA), ej = (e, t) => e.type === "emoji" ? {
|
|
|
15422
15422
|
}), e.pinPending && u ? /* @__PURE__ */ Q("div", {
|
|
15423
15423
|
className: "absolute right-1.5 top-1/2 flex h-7 w-7 -translate-y-1/2 items-center justify-center",
|
|
15424
15424
|
"aria-label": e.pinned ? i.chat.unpin : i.chat.pin,
|
|
15425
|
-
children: /* @__PURE__ */ Q(
|
|
15425
|
+
children: /* @__PURE__ */ Q(jc, { size: "small" })
|
|
15426
15426
|
}) : r ? /* @__PURE__ */ Q("div", {
|
|
15427
15427
|
"data-row-control": "",
|
|
15428
15428
|
className: B("absolute right-1.5 top-1/2 -translate-y-1/2", "opacity-0 transition-opacity focus-within:opacity-100 group-hover/row:opacity-100 has-[[data-state=open]]:opacity-100"),
|
|
@@ -15435,7 +15435,7 @@ var $A = bn(QA), ej = (e, t) => e.type === "emoji" ? {
|
|
|
15435
15435
|
size: "sm",
|
|
15436
15436
|
hideLabel: !0,
|
|
15437
15437
|
label: e.pinned ? i.chat.unpin : i.chat.pin,
|
|
15438
|
-
icon: e.pinned ? ei :
|
|
15438
|
+
icon: e.pinned ? ei : Ho,
|
|
15439
15439
|
onClick: (t) => {
|
|
15440
15440
|
t.stopPropagation(), e.onTogglePin?.();
|
|
15441
15441
|
}
|
|
@@ -15757,7 +15757,7 @@ var $A = bn(QA), ej = (e, t) => e.type === "emoji" ? {
|
|
|
15757
15757
|
children: /* @__PURE__ */ Q("span", {
|
|
15758
15758
|
className: "flex size-7 items-center justify-center rounded-full bg-f1-background-inverse/60 text-f1-foreground-inverse",
|
|
15759
15759
|
children: /* @__PURE__ */ Q(Vs, {
|
|
15760
|
-
icon:
|
|
15760
|
+
icon: ja,
|
|
15761
15761
|
size: "sm"
|
|
15762
15762
|
})
|
|
15763
15763
|
})
|
|
@@ -15787,21 +15787,21 @@ var $A = bn(QA), ej = (e, t) => e.type === "emoji" ? {
|
|
|
15787
15787
|
children: e.name
|
|
15788
15788
|
}), e.size === void 0 ? null : /* @__PURE__ */ Q("span", {
|
|
15789
15789
|
className: "text-xs text-f1-foreground-secondary",
|
|
15790
|
-
children:
|
|
15790
|
+
children: Aa(e.size)
|
|
15791
15791
|
})]
|
|
15792
15792
|
})]
|
|
15793
15793
|
});
|
|
15794
15794
|
case "voice": return /* @__PURE__ */ $("span", {
|
|
15795
15795
|
className: "flex items-center gap-1.5 text-sm",
|
|
15796
15796
|
children: [/* @__PURE__ */ Q(Vs, {
|
|
15797
|
-
icon:
|
|
15797
|
+
icon: Za,
|
|
15798
15798
|
size: "sm"
|
|
15799
15799
|
}), e.durationSeconds === void 0 ? t.chat.voiceNote : `${t.chat.voiceNote} · ${Dj(e.durationSeconds)}`]
|
|
15800
15800
|
});
|
|
15801
15801
|
case "location": return /* @__PURE__ */ $("span", {
|
|
15802
15802
|
className: "flex min-w-0 items-center gap-1.5 text-sm",
|
|
15803
15803
|
children: [/* @__PURE__ */ Q(Vs, {
|
|
15804
|
-
icon:
|
|
15804
|
+
icon: ia,
|
|
15805
15805
|
size: "sm"
|
|
15806
15806
|
}), /* @__PURE__ */ Q("span", {
|
|
15807
15807
|
className: "truncate",
|
|
@@ -16085,7 +16085,7 @@ var $A = bn(QA), ej = (e, t) => e.type === "emoji" ? {
|
|
|
16085
16085
|
}), /* @__PURE__ */ $("span", {
|
|
16086
16086
|
className: "flex items-center gap-px text-sm tabular-nums",
|
|
16087
16087
|
children: [e ? null : t, /* @__PURE__ */ Q(U, {
|
|
16088
|
-
icon: e ?
|
|
16088
|
+
icon: e ? vc : qs,
|
|
16089
16089
|
size: "sm"
|
|
16090
16090
|
})]
|
|
16091
16091
|
})]
|
|
@@ -16309,7 +16309,7 @@ var $A = bn(QA), ej = (e, t) => e.type === "emoji" ? {
|
|
|
16309
16309
|
variant: "outline",
|
|
16310
16310
|
size: "sm",
|
|
16311
16311
|
className: "pointer-events-auto shadow-md",
|
|
16312
|
-
icon:
|
|
16312
|
+
icon: bc,
|
|
16313
16313
|
label: M(k.count),
|
|
16314
16314
|
"aria-label": N("above", k.count),
|
|
16315
16315
|
onClick: (e) => j("above", e.currentTarget)
|
|
@@ -16325,7 +16325,7 @@ var $A = bn(QA), ej = (e, t) => e.type === "emoji" ? {
|
|
|
16325
16325
|
variant: "outline",
|
|
16326
16326
|
size: "sm",
|
|
16327
16327
|
className: "pointer-events-auto shadow-md",
|
|
16328
|
-
icon:
|
|
16328
|
+
icon: Qc,
|
|
16329
16329
|
label: M(A.count),
|
|
16330
16330
|
"aria-label": N("below", A.count),
|
|
16331
16331
|
onClick: (e) => j("below", e.currentTarget)
|
|
@@ -16550,7 +16550,7 @@ var iM = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
16550
16550
|
a,
|
|
16551
16551
|
n,
|
|
16552
16552
|
t.id
|
|
16553
|
-
]), d = /* @__PURE__ */ Q(
|
|
16553
|
+
]), d = /* @__PURE__ */ Q(Zi, {
|
|
16554
16554
|
items: u,
|
|
16555
16555
|
label: a.navigation.sidebar.companySelector.label,
|
|
16556
16556
|
side: "right",
|
|
@@ -16590,7 +16590,7 @@ var iM = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
16590
16590
|
"aria-label": `${e.name} logo`
|
|
16591
16591
|
}
|
|
16592
16592
|
})), ...i.flatMap((e) => [{ type: "separator" }, ...e])], [e, i]);
|
|
16593
|
-
return /* @__PURE__ */ Q(
|
|
16593
|
+
return /* @__PURE__ */ Q(sl, {
|
|
16594
16594
|
label: a.navigation.sidebar.companySelector.label,
|
|
16595
16595
|
hideLabel: !0,
|
|
16596
16596
|
options: c,
|
|
@@ -16629,7 +16629,7 @@ var iM = ({ companies: e, selected: t, onChange: n, children: r, additionalOptio
|
|
|
16629
16629
|
src: e?.logo,
|
|
16630
16630
|
size: n,
|
|
16631
16631
|
badge: t ? {
|
|
16632
|
-
icon:
|
|
16632
|
+
icon: La,
|
|
16633
16633
|
type: "highlight"
|
|
16634
16634
|
} : void 0
|
|
16635
16635
|
}), sM = ({ company: e, withNotification: t = !1 }) => /* @__PURE__ */ $("div", {
|
|
@@ -16657,7 +16657,7 @@ function cM({ user: e, profile: t, options: n, onDropdownClick: r, compact: i =
|
|
|
16657
16657
|
}] : [], ...n], d = /* @__PURE__ */ Q(W, {
|
|
16658
16658
|
minWidth: "0",
|
|
16659
16659
|
onPointerMove: _u,
|
|
16660
|
-
children: /* @__PURE__ */ Q(
|
|
16660
|
+
children: /* @__PURE__ */ Q(Ao, {
|
|
16661
16661
|
items: u,
|
|
16662
16662
|
side: i ? "right" : void 0,
|
|
16663
16663
|
align: i ? "end" : "start",
|
|
@@ -16728,7 +16728,7 @@ function lM({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
16728
16728
|
children: /* @__PURE__ */ $("div", {
|
|
16729
16729
|
className: "relative",
|
|
16730
16730
|
children: [/* @__PURE__ */ Q(H, {
|
|
16731
|
-
icon:
|
|
16731
|
+
icon: xr,
|
|
16732
16732
|
label: c.notifications,
|
|
16733
16733
|
onClick: i,
|
|
16734
16734
|
variant: "ghost",
|
|
@@ -16738,7 +16738,7 @@ function lM({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
16738
16738
|
children: /* @__PURE__ */ Q(Zs, {
|
|
16739
16739
|
type: "highlight",
|
|
16740
16740
|
size: "sm",
|
|
16741
|
-
icon:
|
|
16741
|
+
icon: La
|
|
16742
16742
|
})
|
|
16743
16743
|
}) : null]
|
|
16744
16744
|
})
|
|
@@ -16747,7 +16747,7 @@ function lM({ user: e, options: t, showActivityButton: n = !1, activityButtonSho
|
|
|
16747
16747
|
});
|
|
16748
16748
|
}
|
|
16749
16749
|
function uM({ action: e }) {
|
|
16750
|
-
return e.items ? /* @__PURE__ */ Q(
|
|
16750
|
+
return e.items ? /* @__PURE__ */ Q(Zi, {
|
|
16751
16751
|
modal: !1,
|
|
16752
16752
|
items: e.items,
|
|
16753
16753
|
open: e.open,
|
|
@@ -16811,7 +16811,7 @@ function mM() {
|
|
|
16811
16811
|
//#endregion
|
|
16812
16812
|
//#region src/blocks/Navigation/Sidebar/Menu/Menu.tsx
|
|
16813
16813
|
var hM = ({ item: e, active: t }) => {
|
|
16814
|
-
let n =
|
|
16814
|
+
let n = Wo() === "two-level";
|
|
16815
16815
|
return /* @__PURE__ */ $("div", {
|
|
16816
16816
|
className: "flex w-full items-center justify-between",
|
|
16817
16817
|
children: [/* @__PURE__ */ $("div", {
|
|
@@ -16823,7 +16823,7 @@ var hM = ({ item: e, active: t }) => {
|
|
|
16823
16823
|
}), /* @__PURE__ */ Q("span", { children: e.label })]
|
|
16824
16824
|
}), e.tag || e.badge ? /* @__PURE__ */ $("div", {
|
|
16825
16825
|
className: "flex flex-shrink-0 items-center gap-1.5",
|
|
16826
|
-
children: [e.tag ? /* @__PURE__ */ Q(
|
|
16826
|
+
children: [e.tag ? /* @__PURE__ */ Q(Zc, { text: e.tag }) : null, e.badge ? /* @__PURE__ */ Q(Pn, {
|
|
16827
16827
|
value: e.badge,
|
|
16828
16828
|
size: "sm",
|
|
16829
16829
|
type: "bold"
|
|
@@ -16837,11 +16837,11 @@ var hM = ({ item: e, active: t }) => {
|
|
|
16837
16837
|
onClick: () => e.onChange(!e.pinned),
|
|
16838
16838
|
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(), !e.pinned && "opacity-0 focus-visible:opacity-100 group-hover/item:opacity-100"),
|
|
16839
16839
|
children: /* @__PURE__ */ Q(U, {
|
|
16840
|
-
icon: e.pinned ? ei :
|
|
16840
|
+
icon: e.pinned ? ei : Ho,
|
|
16841
16841
|
size: "sm"
|
|
16842
16842
|
})
|
|
16843
16843
|
}), _M = ({ item: e }) => {
|
|
16844
|
-
let t =
|
|
16844
|
+
let t = Wo() === "two-level", { isActive: n } = Fn(), { label: r, icon: i, pin: a, ...o } = e, s = n(o.href, { exact: o.exactMatch }), c = /* @__PURE__ */ Q(Un, {
|
|
16845
16845
|
...o,
|
|
16846
16846
|
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")),
|
|
16847
16847
|
children: /* @__PURE__ */ Q(hM, {
|
|
@@ -16854,20 +16854,20 @@ var hM = ({ item: e, active: t }) => {
|
|
|
16854
16854
|
children: [c, /* @__PURE__ */ Q(gM, { pin: a })]
|
|
16855
16855
|
}) : c;
|
|
16856
16856
|
}, vM = ({ item: e, tooltip: t, onRemove: n, index: r, total: i, onMove: a, onReorderFinish: o, isSortable: s = !0 }) => {
|
|
16857
|
-
let c =
|
|
16857
|
+
let c = Wo() === "two-level", l = R(), { isDragging: u, setIsDragging: d, draggedItemId: f, setDraggedItemId: p } = mM(), { isActive: m } = Fn(), 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() {
|
|
16858
16858
|
let t = [];
|
|
16859
16859
|
return !x && !y && t.push({
|
|
16860
16860
|
label: l.actions.moveUp,
|
|
16861
16861
|
onClick: () => a?.(r, r - 1),
|
|
16862
|
-
icon:
|
|
16862
|
+
icon: go
|
|
16863
16863
|
}), !x && !b && t.push({
|
|
16864
16864
|
label: l.actions.moveDown,
|
|
16865
16865
|
onClick: () => a?.(r, r + 1),
|
|
16866
|
-
icon:
|
|
16866
|
+
icon: cs
|
|
16867
16867
|
}), t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
16868
16868
|
label: l.favorites.remove,
|
|
16869
16869
|
onClick: () => n?.(e),
|
|
16870
|
-
icon:
|
|
16870
|
+
icon: qo,
|
|
16871
16871
|
critical: !0
|
|
16872
16872
|
}), t;
|
|
16873
16873
|
}, [
|
|
@@ -16921,7 +16921,7 @@ var hM = ({ item: e, active: t }) => {
|
|
|
16921
16921
|
})
|
|
16922
16922
|
}), /* @__PURE__ */ Q("div", {
|
|
16923
16923
|
className: B("absolute inset-y-1 right-1 z-10 flex h-6 w-6 items-center justify-center rounded-sm opacity-0 transition-opacity duration-100 hover:bg-f1-background-secondary group-hover:opacity-100", _ && "bg-f1-background-secondary opacity-100", T && "opacity-100"),
|
|
16924
|
-
children: /* @__PURE__ */ Q(
|
|
16924
|
+
children: /* @__PURE__ */ Q(Zi, {
|
|
16925
16925
|
open: _,
|
|
16926
16926
|
onOpenChange: v,
|
|
16927
16927
|
items: S,
|
|
@@ -16957,7 +16957,7 @@ var hM = ({ item: e, active: t }) => {
|
|
|
16957
16957
|
children: D
|
|
16958
16958
|
});
|
|
16959
16959
|
}, yM = ({ category: e, isSortable: t = !1, onCollapse: n, onDragEnd: r, currentOrder: i }) => {
|
|
16960
|
-
let a =
|
|
16960
|
+
let a = Wo() === "two-level", { isDragging: o, setIsDragging: s } = mM(), c = Y(!1), l = fn(), u = () => {
|
|
16961
16961
|
s(!0), c.current = !0;
|
|
16962
16962
|
}, d = () => {
|
|
16963
16963
|
s(!1), setTimeout(() => {
|
|
@@ -17482,7 +17482,7 @@ var IM = 350, LM = (e = !0) => {
|
|
|
17482
17482
|
});
|
|
17483
17483
|
return /* @__PURE__ */ Q("div", {
|
|
17484
17484
|
className: B("group relative flex w-full items-center justify-center", n),
|
|
17485
|
-
children: e.options ? /* @__PURE__ */ Q(
|
|
17485
|
+
children: e.options ? /* @__PURE__ */ Q(Zi, {
|
|
17486
17486
|
items: e.options,
|
|
17487
17487
|
side: "right",
|
|
17488
17488
|
align: "end",
|
|
@@ -18195,7 +18195,7 @@ var _N = bn(gN), vN = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18195
18195
|
"aria-hidden": "true",
|
|
18196
18196
|
className: "flex text-f1-icon [&_circle]:![stroke-width:1.68px] [&_path]:![stroke-width:1.68px] [&_rect]:![stroke-width:1.68px]",
|
|
18197
18197
|
children: /* @__PURE__ */ Q(U, {
|
|
18198
|
-
icon:
|
|
18198
|
+
icon: ls,
|
|
18199
18199
|
size: "md"
|
|
18200
18200
|
})
|
|
18201
18201
|
}), ON = (e, t, n) => e.isCompleted ? null : e.status ? {
|
|
@@ -18353,7 +18353,7 @@ var _N = bn(gN), vN = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18353
18353
|
children: /* @__PURE__ */ $("span", {
|
|
18354
18354
|
className: "inline-flex h-[18px] items-center rounded-full border border-solid border-f1-border-secondary px-1 text-sm font-medium leading-none tabular-nums text-f1-foreground-secondary",
|
|
18355
18355
|
children: [
|
|
18356
|
-
/* @__PURE__ */ Q(
|
|
18356
|
+
/* @__PURE__ */ Q(Hc, {
|
|
18357
18357
|
value: e.completed,
|
|
18358
18358
|
animated: !n,
|
|
18359
18359
|
"aria-hidden": "true"
|
|
@@ -18534,7 +18534,7 @@ var _N = bn(gN), vN = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18534
18534
|
variant: "outline",
|
|
18535
18535
|
size: n,
|
|
18536
18536
|
hideLabel: !0,
|
|
18537
|
-
icon: e === "approve" ? bl :
|
|
18537
|
+
icon: e === "approve" ? bl : to,
|
|
18538
18538
|
label: t.label,
|
|
18539
18539
|
tooltip: t.tooltip ?? i(`actions.${e}`),
|
|
18540
18540
|
loading: a === e,
|
|
@@ -18695,12 +18695,12 @@ var _N = bn(gN), vN = ({ isActive: e }) => /* @__PURE__ */ Q("div", {
|
|
|
18695
18695
|
size: "sm"
|
|
18696
18696
|
},
|
|
18697
18697
|
rejected: {
|
|
18698
|
-
icon:
|
|
18698
|
+
icon: to,
|
|
18699
18699
|
type: "critical",
|
|
18700
18700
|
size: "sm"
|
|
18701
18701
|
}
|
|
18702
18702
|
}, kP = {
|
|
18703
|
-
icon:
|
|
18703
|
+
icon: Lr,
|
|
18704
18704
|
type: "neutral",
|
|
18705
18705
|
size: "sm"
|
|
18706
18706
|
}, AP = {
|
|
@@ -18714,7 +18714,7 @@ function MP(e) {
|
|
|
18714
18714
|
return AP[e ?? "neutral"] ?? 0;
|
|
18715
18715
|
}
|
|
18716
18716
|
var NP = ({ title: e, approvalsRequired: t = 1, status: n, approvers: r, approvalDate: i }) => {
|
|
18717
|
-
let a = R(), o =
|
|
18717
|
+
let a = R(), o = nl(), s = t === 1 ? a.approvals.requiredNumbers.one : a.approvals.requiredNumbers.other.replace("{{count}}", t.toString()), c = a.approvals.statuses[n], l = J(() => r.map((e) => {
|
|
18718
18718
|
let t = jP(e.status);
|
|
18719
18719
|
return {
|
|
18720
18720
|
firstName: e.firstName,
|
|
@@ -18734,7 +18734,7 @@ var NP = ({ title: e, approvalsRequired: t = 1, status: n, approvers: r, approva
|
|
|
18734
18734
|
}), /* @__PURE__ */ Q("p", {
|
|
18735
18735
|
className: "text-f1-foreground-secondary",
|
|
18736
18736
|
children: s
|
|
18737
|
-
})] }), /* @__PURE__ */ Q(
|
|
18737
|
+
})] }), /* @__PURE__ */ Q(Sc, {
|
|
18738
18738
|
text: c,
|
|
18739
18739
|
variant: DP[n]
|
|
18740
18740
|
})]
|
|
@@ -18750,7 +18750,7 @@ var NP = ({ title: e, approvalsRequired: t = 1, status: n, approvers: r, approva
|
|
|
18750
18750
|
}),
|
|
18751
18751
|
i ? /* @__PURE__ */ Q("p", {
|
|
18752
18752
|
className: "text-sm text-f1-foreground-secondary",
|
|
18753
|
-
children:
|
|
18753
|
+
children: $c(i, "PP", { locale: o })
|
|
18754
18754
|
}) : null
|
|
18755
18755
|
]
|
|
18756
18756
|
});
|
|
@@ -18786,7 +18786,7 @@ var NP = ({ title: e, approvalsRequired: t = 1, status: n, approvers: r, approva
|
|
|
18786
18786
|
});
|
|
18787
18787
|
})), FP = (e, t) => typeof t == "string" && t in e;
|
|
18788
18788
|
function IP(e, t, n) {
|
|
18789
|
-
let r = {}, i = !1, a =
|
|
18789
|
+
let r = {}, i = !1, a = Si(e);
|
|
18790
18790
|
if (a !== void 0 && t.filters) {
|
|
18791
18791
|
let e = t.filters, o = Object.fromEntries(Object.entries(a).filter(([t]) => FP(e, t)));
|
|
18792
18792
|
(Object.keys(o).length > 0 || Object.keys(a).length === 0) && (n.setCurrentFilters(o), r.filters = o, i = !0);
|
|
@@ -18814,7 +18814,7 @@ function IP(e, t, n) {
|
|
|
18814
18814
|
//#endregion
|
|
18815
18815
|
//#region src/addons/data-collection/OneDataCollection/hooks/useDataCollectionItemNavigation/useDataCollectionItemNavigation.ts
|
|
18816
18816
|
function LP(e) {
|
|
18817
|
-
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 =
|
|
18817
|
+
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 = ri(), g = _e(t, m), [_, v] = X(null), y = _?.key === r && _.settled, b = Y(g);
|
|
18818
18818
|
b.current = g;
|
|
18819
18819
|
let x = Y(h);
|
|
18820
18820
|
x.current = h;
|
|
@@ -18870,7 +18870,7 @@ function LP(e) {
|
|
|
18870
18870
|
}, t);
|
|
18871
18871
|
} catch {}
|
|
18872
18872
|
};
|
|
18873
|
-
return
|
|
18873
|
+
return jr(r, () => {
|
|
18874
18874
|
e();
|
|
18875
18875
|
});
|
|
18876
18876
|
}, [
|
|
@@ -19096,7 +19096,7 @@ var RP = (e) => e, zP = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19096
19096
|
src: e.avatar.src,
|
|
19097
19097
|
size: a ? "sm" : "xs"
|
|
19098
19098
|
}) : /* @__PURE__ */ Q(U, {
|
|
19099
|
-
icon: e.icon ??
|
|
19099
|
+
icon: e.icon ?? Bi,
|
|
19100
19100
|
size: d
|
|
19101
19101
|
})
|
|
19102
19102
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -19400,7 +19400,7 @@ var RP = (e) => e, zP = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19400
19400
|
label: t.label,
|
|
19401
19401
|
hint: t.description,
|
|
19402
19402
|
avatar: t.avatar,
|
|
19403
|
-
icon: t.icon ??
|
|
19403
|
+
icon: t.icon ?? Bi,
|
|
19404
19404
|
color: t.color,
|
|
19405
19405
|
keywords: t.keywords,
|
|
19406
19406
|
rowActions: t.rowActions,
|
|
@@ -19414,13 +19414,13 @@ var RP = (e) => e, zP = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19414
19414
|
key: "actions",
|
|
19415
19415
|
label: p.rowActions.actionsFor(e.label),
|
|
19416
19416
|
tip: p.rowActions.actions,
|
|
19417
|
-
icon:
|
|
19417
|
+
icon: hl,
|
|
19418
19418
|
run: () => g(e)
|
|
19419
19419
|
}] : [], ...r ? [{
|
|
19420
19420
|
key: "copy",
|
|
19421
19421
|
label: p.rowActions.copyLinkTo(e.label),
|
|
19422
19422
|
tip: p.rowActions.copyLink,
|
|
19423
|
-
icon:
|
|
19423
|
+
icon: ys,
|
|
19424
19424
|
run: () => f(r)
|
|
19425
19425
|
}] : []];
|
|
19426
19426
|
return {
|
|
@@ -19428,7 +19428,7 @@ var RP = (e) => e, zP = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19428
19428
|
group: t,
|
|
19429
19429
|
label: e.label,
|
|
19430
19430
|
hint: e.kind === "one" ? e.sublabel : void 0,
|
|
19431
|
-
icon: e.icon ??
|
|
19431
|
+
icon: e.icon ?? Bi,
|
|
19432
19432
|
color: e.color,
|
|
19433
19433
|
avatar: e.kind === "one" ? e.avatar : void 0,
|
|
19434
19434
|
scopeRef: n ? e : void 0,
|
|
@@ -19535,7 +19535,7 @@ var RP = (e) => e, zP = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19535
19535
|
group: e.label,
|
|
19536
19536
|
label: t.label,
|
|
19537
19537
|
hint: t.sublabel,
|
|
19538
|
-
icon: t.icon ?? (r.has(t.value) ?
|
|
19538
|
+
icon: t.icon ?? (r.has(t.value) ? zo : void 0),
|
|
19539
19539
|
color: t.color,
|
|
19540
19540
|
avatar: t.avatar,
|
|
19541
19541
|
run: () => {
|
|
@@ -19577,7 +19577,7 @@ var RP = (e) => e, zP = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
19577
19577
|
...e,
|
|
19578
19578
|
id: `recent-${e.id}`,
|
|
19579
19579
|
group: p.groups.recent,
|
|
19580
|
-
icon:
|
|
19580
|
+
icon: ls,
|
|
19581
19581
|
color: void 0,
|
|
19582
19582
|
hint: void 0
|
|
19583
19583
|
})), ...r.flatMap((e) => e.provider ? [] : (b.find((t) => t.label === e.label)?.rows ?? []).slice(0, e.openLimit ?? Infinity))];
|
|
@@ -19931,10 +19931,10 @@ var IF = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
19931
19931
|
ye(t), ce(t);
|
|
19932
19932
|
} else e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (r(), se(), D(g + e.key));
|
|
19933
19933
|
}, 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();
|
|
19934
|
-
return /* @__PURE__ */ Q(
|
|
19934
|
+
return /* @__PURE__ */ Q($i, {
|
|
19935
19935
|
open: e,
|
|
19936
19936
|
onOpenChange: t,
|
|
19937
|
-
children: /* @__PURE__ */ $(
|
|
19937
|
+
children: /* @__PURE__ */ $($r, {
|
|
19938
19938
|
"aria-label": d.label,
|
|
19939
19939
|
"aria-describedby": void 0,
|
|
19940
19940
|
withTranslateAnimation: !1,
|
|
@@ -19953,7 +19953,7 @@ var IF = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
19953
19953
|
Me(e, xe);
|
|
19954
19954
|
},
|
|
19955
19955
|
children: [
|
|
19956
|
-
/* @__PURE__ */ Q(
|
|
19956
|
+
/* @__PURE__ */ Q(Fr, {
|
|
19957
19957
|
className: "sr-only",
|
|
19958
19958
|
children: d.label
|
|
19959
19959
|
}),
|
|
@@ -20122,7 +20122,7 @@ var IF = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20122
20122
|
], UF = (e) => e.type === "system", WF = (e) => e.type === "call", GF = (e) => e.type === void 0 || e.type === "message", KF = (e) => e.type === "post", qF = "messages", JF = "latest", YF = tr().use(Jn).use($n), XF = /[*_~]/, ZF = {
|
|
20123
20123
|
strong: 2,
|
|
20124
20124
|
emphasis: 1
|
|
20125
|
-
}, QF = RegExp(`\\\\|${
|
|
20125
|
+
}, QF = RegExp(`\\\\|${yr.source}`, "g"), $F = /* @__PURE__ */ new Set([
|
|
20126
20126
|
"root",
|
|
20127
20127
|
"paragraph",
|
|
20128
20128
|
"list",
|
|
@@ -20143,7 +20143,7 @@ var IF = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20143
20143
|
for (let e = 1; e <= o; e++) s.push(r - e);
|
|
20144
20144
|
return s;
|
|
20145
20145
|
}, aI = (e, t) => {
|
|
20146
|
-
let n =
|
|
20146
|
+
let n = zs.exec(e.slice(t))?.[0];
|
|
20147
20147
|
return n ? t + n.trimEnd().length - 1 : null;
|
|
20148
20148
|
}, oI = (e, t) => {
|
|
20149
20149
|
let n = 0;
|
|
@@ -20247,7 +20247,7 @@ var IF = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20247
20247
|
}).join("\n"), TI = (e, t) => e.type === "paragraph" ? e.children.map((e) => SI(e, t)).join("") : wI(e, t), EI = (e, t) => e.map((e, n) => {
|
|
20248
20248
|
let r = TI(e, t);
|
|
20249
20249
|
return n === 0 ? r : e.type === "paragraph" ? `\n\n${r}` : `\n${r}`;
|
|
20250
|
-
}).join(""), DI = (e, { linkUrls: t = !1 } = {}) => EI(
|
|
20250
|
+
}).join(""), DI = (e, { linkUrls: t = !1 } = {}) => EI(Jr(e).blocks, t), OI = "p, div, li, h1, h2, h3, h4, h5, h6, blockquote, pre, tr", kI = "style, script, template, noscript, title, head", AI = "form, input, button, select, textarea", jI = 500, MI = /* @__PURE__ */ new WeakMap(), NI = /* @__PURE__ */ new Map(), PI = (e) => new DOMParser().parseFromString(e, "text/html").body, FI = (e) => (e ?? "").replace(/ /g, " ").trim().length === 0, II = (e, t) => {
|
|
20251
20251
|
e.querySelectorAll(t).forEach((e) => e.remove());
|
|
20252
20252
|
}, LI = (e) => {
|
|
20253
20253
|
let t = MI.get(e);
|
|
@@ -20272,7 +20272,7 @@ var IF = ({ open: e, onOpenChange: t, initialScope: n, groups: r, recent: i, max
|
|
|
20272
20272
|
e.setAttribute("target", "_blank"), e.setAttribute("rel", "noopener noreferrer");
|
|
20273
20273
|
});
|
|
20274
20274
|
let n = t.ownerDocument.createTreeWalker(t, NodeFilter.SHOW_TEXT);
|
|
20275
|
-
for (let e = n.nextNode(); e; e = n.nextNode()) e.textContent =
|
|
20275
|
+
for (let e = n.nextNode(); e; e = n.nextNode()) e.textContent = Vi(e.textContent ?? "");
|
|
20276
20276
|
return qI(t), t.innerHTML;
|
|
20277
20277
|
}, YI = () => {}, XI = Gu({
|
|
20278
20278
|
tabs: [],
|
|
@@ -20571,8 +20571,8 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20571
20571
|
draft: l.length
|
|
20572
20572
|
}, f = {
|
|
20573
20573
|
pinned: ei,
|
|
20574
|
-
scheduled:
|
|
20575
|
-
draft:
|
|
20574
|
+
scheduled: ls,
|
|
20575
|
+
draft: zr
|
|
20576
20576
|
}, p = {
|
|
20577
20577
|
pinned: e.t("chat.community.pinnedPosts"),
|
|
20578
20578
|
scheduled: e.t("chat.community.scheduledPosts"),
|
|
@@ -20657,7 +20657,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20657
20657
|
}, e.id))
|
|
20658
20658
|
});
|
|
20659
20659
|
}, SL = ({ posts: e, onDone: t }) => {
|
|
20660
|
-
let n = R(), r =
|
|
20660
|
+
let n = R(), r = nl(), { scheduledActions: i, openScheduledPost: a } = zu(), o = Du();
|
|
20661
20661
|
return /* @__PURE__ */ Q("ul", {
|
|
20662
20662
|
className: "m-0 flex list-none flex-col p-0",
|
|
20663
20663
|
"data-testid": "shelf-scheduled",
|
|
@@ -20670,11 +20670,11 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20670
20670
|
meta: /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ $("span", {
|
|
20671
20671
|
className: "flex items-center gap-1.5 text-f1-foreground-secondary",
|
|
20672
20672
|
children: [/* @__PURE__ */ Q(U, {
|
|
20673
|
-
icon:
|
|
20673
|
+
icon: ls,
|
|
20674
20674
|
size: "sm"
|
|
20675
20675
|
}), wL(e.scheduledFor, r)]
|
|
20676
|
-
}), e.event ? /* @__PURE__ */ Q(
|
|
20677
|
-
icon:
|
|
20676
|
+
}), e.event ? /* @__PURE__ */ Q(Zc, {
|
|
20677
|
+
icon: ka,
|
|
20678
20678
|
text: n.t("chat.community.scheduledEvent")
|
|
20679
20679
|
}) : null] }),
|
|
20680
20680
|
onClick: a ? () => {
|
|
@@ -20690,7 +20690,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20690
20690
|
})
|
|
20691
20691
|
});
|
|
20692
20692
|
}, CL = ({ posts: e, onDone: t }) => {
|
|
20693
|
-
let n = R(), r =
|
|
20693
|
+
let n = R(), r = nl(), { draftActions: i, openDraftPost: a } = zu();
|
|
20694
20694
|
return /* @__PURE__ */ Q("ul", {
|
|
20695
20695
|
className: "m-0 flex list-none flex-col p-0",
|
|
20696
20696
|
"data-testid": "shelf-drafts",
|
|
@@ -20704,7 +20704,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20704
20704
|
meta: /* @__PURE__ */ $("span", {
|
|
20705
20705
|
className: "flex items-center gap-1.5 text-f1-foreground-secondary",
|
|
20706
20706
|
children: [/* @__PURE__ */ Q(U, {
|
|
20707
|
-
icon:
|
|
20707
|
+
icon: zr,
|
|
20708
20708
|
size: "sm"
|
|
20709
20709
|
}), n.t("chat.community.draftSavedAt", { when: wL(e.savedAt, r) })]
|
|
20710
20710
|
}),
|
|
@@ -20722,7 +20722,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20722
20722
|
});
|
|
20723
20723
|
}, wL = (e, t) => {
|
|
20724
20724
|
let n = new Date(e);
|
|
20725
|
-
return `${
|
|
20725
|
+
return `${il(n, /* @__PURE__ */ new Date()) || cd(n) ? $c(n, "EEEE", { locale: t }) : $c(n, "d MMM", { locale: t })} · ${$c(n, "HH:mm")}`;
|
|
20726
20726
|
}, TL = ({ title: e, untitled: t, excerpt: n, thumbnailUrl: r, meta: i, onClick: a, actions: o }) => /* @__PURE__ */ $("li", {
|
|
20727
20727
|
className: "flex items-start gap-3 border-0 border-b border-solid border-f1-border-secondary px-4 py-3 text-base last:border-b-0 hover:bg-f1-background-hover",
|
|
20728
20728
|
children: [a ? /* @__PURE__ */ Q("button", {
|
|
@@ -20747,7 +20747,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20747
20747
|
})
|
|
20748
20748
|
}), o.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
20749
20749
|
className: "shrink-0",
|
|
20750
|
-
children: /* @__PURE__ */ Q(
|
|
20750
|
+
children: /* @__PURE__ */ Q(Zi, {
|
|
20751
20751
|
items: o,
|
|
20752
20752
|
icon: Sl,
|
|
20753
20753
|
size: "sm"
|
|
@@ -20811,7 +20811,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20811
20811
|
"aria-hidden": !e,
|
|
20812
20812
|
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"),
|
|
20813
20813
|
children: [/* @__PURE__ */ Q(U, {
|
|
20814
|
-
icon:
|
|
20814
|
+
icon: Li,
|
|
20815
20815
|
size: "lg",
|
|
20816
20816
|
color: "bold"
|
|
20817
20817
|
}), /* @__PURE__ */ Q("p", {
|
|
@@ -20838,7 +20838,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20838
20838
|
]);
|
|
20839
20839
|
return /* @__PURE__ */ Q(AL.Provider, {
|
|
20840
20840
|
value: s,
|
|
20841
|
-
children: /* @__PURE__ */ Q(
|
|
20841
|
+
children: /* @__PURE__ */ Q(ai, {
|
|
20842
20842
|
reducedMotion: t,
|
|
20843
20843
|
htmlSandbox: a,
|
|
20844
20844
|
htmlExecution: o,
|
|
@@ -20859,7 +20859,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20859
20859
|
children: [
|
|
20860
20860
|
/* @__PURE__ */ Q("div", {
|
|
20861
20861
|
className: "min-w-0 flex-1",
|
|
20862
|
-
children: /* @__PURE__ */ Q(
|
|
20862
|
+
children: /* @__PURE__ */ Q(Jc, {
|
|
20863
20863
|
value: t,
|
|
20864
20864
|
onChange: n,
|
|
20865
20865
|
placeholder: e.chat.searchPlaceholder,
|
|
@@ -20890,7 +20890,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20890
20890
|
variant: "ghost",
|
|
20891
20891
|
hideLabel: !0,
|
|
20892
20892
|
label: e.navigation.previous,
|
|
20893
|
-
icon:
|
|
20893
|
+
icon: vc,
|
|
20894
20894
|
onClick: l,
|
|
20895
20895
|
disabled: !h || r,
|
|
20896
20896
|
size: "sm"
|
|
@@ -20907,7 +20907,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20907
20907
|
variant: "ghost",
|
|
20908
20908
|
hideLabel: !0,
|
|
20909
20909
|
label: e.chat.closeSearch,
|
|
20910
|
-
icon:
|
|
20910
|
+
icon: to,
|
|
20911
20911
|
onClick: u
|
|
20912
20912
|
})]
|
|
20913
20913
|
})
|
|
@@ -20935,18 +20935,18 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20935
20935
|
let [r, i] = X(!1), a = td(PL.subscribe, () => PL.get() !== null, () => !1);
|
|
20936
20936
|
return K(() => PL.subscribe(() => {
|
|
20937
20937
|
PL.get() !== null && i(!1);
|
|
20938
|
-
}), []), /* @__PURE__ */ $(
|
|
20938
|
+
}), []), /* @__PURE__ */ $(ml, {
|
|
20939
20939
|
openDelay: 150,
|
|
20940
20940
|
closeDelay: 100,
|
|
20941
20941
|
open: r && !a,
|
|
20942
20942
|
onOpenChange: i,
|
|
20943
|
-
children: [/* @__PURE__ */ Q(
|
|
20943
|
+
children: [/* @__PURE__ */ Q(Uc, {
|
|
20944
20944
|
asChild: !0,
|
|
20945
20945
|
children: t
|
|
20946
20946
|
}), /* @__PURE__ */ Q(yl, {
|
|
20947
20947
|
align: "start",
|
|
20948
20948
|
className: "w-72 border-none bg-f1-background p-0 text-f1-foreground shadow-none",
|
|
20949
|
-
children: /* @__PURE__ */ Q(
|
|
20949
|
+
children: /* @__PURE__ */ Q(bi, {
|
|
20950
20950
|
name: e.name,
|
|
20951
20951
|
avatar: e.avatar,
|
|
20952
20952
|
subtitle: e.subtitle,
|
|
@@ -20975,8 +20975,8 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
20975
20975
|
});
|
|
20976
20976
|
}, [t, e]), null;
|
|
20977
20977
|
}, GL = ({ channel: e, isFullscreen: t, onToggleFullscreen: n, onClose: r, actions: i, content: a, tabs: o }) => {
|
|
20978
|
-
let s = R(), { searchOpen: c, openSearch: l } = gL(), { panelOverlays: u } =
|
|
20979
|
-
icon:
|
|
20978
|
+
let s = R(), { searchOpen: c, openSearch: l } = gL(), { panelOverlays: u } = Va(), { surface: d } = ML(), f = d === "page", p = QI().tabs.length > 0, { sidebarState: m, toggleSidebar: h, hasPrimarySidebar: g } = mu(), _ = f && !g && m !== "locked", v = e.type === "dm" && e.presence !== void 0, y = e.type === "group" ? e.visibility === "global" ? {
|
|
20979
|
+
icon: Wr,
|
|
20980
20980
|
label: s.chat.visibility.global,
|
|
20981
20981
|
hint: s.chat.visibility.globalHint
|
|
20982
20982
|
} : e.visibility === "private" ? {
|
|
@@ -21041,7 +21041,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
21041
21041
|
}),
|
|
21042
21042
|
y ? /* @__PURE__ */ Q(In, {
|
|
21043
21043
|
description: y.hint,
|
|
21044
|
-
children: /* @__PURE__ */ Q(
|
|
21044
|
+
children: /* @__PURE__ */ Q(Zc, {
|
|
21045
21045
|
size: "sm",
|
|
21046
21046
|
icon: y.icon,
|
|
21047
21047
|
text: y.label,
|
|
@@ -21065,7 +21065,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
21065
21065
|
variant: "ghost",
|
|
21066
21066
|
hideLabel: !0,
|
|
21067
21067
|
label: s.navigation.sidebar.label,
|
|
21068
|
-
icon:
|
|
21068
|
+
icon: ma,
|
|
21069
21069
|
onClick: () => h()
|
|
21070
21070
|
}) : null,
|
|
21071
21071
|
e.user ? /* @__PURE__ */ Q(VL, {
|
|
@@ -21087,14 +21087,14 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
21087
21087
|
label: t.label,
|
|
21088
21088
|
icon: t.icon,
|
|
21089
21089
|
onClick: () => t.onClick(e)
|
|
21090
|
-
}, t.id) : /* @__PURE__ */ Q(
|
|
21090
|
+
}, t.id) : /* @__PURE__ */ Q(Ic, {
|
|
21091
21091
|
selected: t.active,
|
|
21092
21092
|
onSelectedChange: () => t.onClick(e),
|
|
21093
21093
|
icon: t.activeIcon ? [t.icon, t.activeIcon] : t.icon,
|
|
21094
21094
|
label: t.label,
|
|
21095
21095
|
tooltip: t.label
|
|
21096
21096
|
}, t.id)),
|
|
21097
|
-
E.length > 0 ? /* @__PURE__ */ Q(
|
|
21097
|
+
E.length > 0 ? /* @__PURE__ */ Q(Zi, {
|
|
21098
21098
|
items: E,
|
|
21099
21099
|
align: "end",
|
|
21100
21100
|
label: s.chat.options,
|
|
@@ -21109,14 +21109,14 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
21109
21109
|
variant: "ghost",
|
|
21110
21110
|
hideLabel: !0,
|
|
21111
21111
|
label: t ? s.actions.collapse : s.actions.expand,
|
|
21112
|
-
icon: t ?
|
|
21112
|
+
icon: t ? Ro : Da,
|
|
21113
21113
|
onClick: n
|
|
21114
21114
|
}) : null,
|
|
21115
21115
|
r ? /* @__PURE__ */ Q(V, {
|
|
21116
21116
|
variant: "ghost",
|
|
21117
21117
|
hideLabel: !0,
|
|
21118
21118
|
label: s.actions.close,
|
|
21119
|
-
icon:
|
|
21119
|
+
icon: to,
|
|
21120
21120
|
onClick: r
|
|
21121
21121
|
}) : null,
|
|
21122
21122
|
a ? /* @__PURE__ */ Q("div", {
|
|
@@ -21139,7 +21139,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
21139
21139
|
let t = R(), { tabs: n, activeTabId: r, selectTab: i } = QI(), a = [{
|
|
21140
21140
|
id: qF,
|
|
21141
21141
|
label: t.chat.tabs.messages,
|
|
21142
|
-
icon:
|
|
21142
|
+
icon: Po,
|
|
21143
21143
|
badge: e
|
|
21144
21144
|
}, ...n.map(({ id: e, label: t, icon: n, badge: r }) => ({
|
|
21145
21145
|
id: e,
|
|
@@ -21153,7 +21153,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
21153
21153
|
s.current && (s.current = !1, o.current?.querySelector("[aria-current=true]")?.focus());
|
|
21154
21154
|
}, [c]), /* @__PURE__ */ Q("div", {
|
|
21155
21155
|
ref: o,
|
|
21156
|
-
children: /* @__PURE__ */ Q(
|
|
21156
|
+
children: /* @__PURE__ */ Q(Oa, {
|
|
21157
21157
|
tabs: a,
|
|
21158
21158
|
activeTabId: r,
|
|
21159
21159
|
setActiveTabId: f,
|
|
@@ -21175,7 +21175,7 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
21175
21175
|
n && i.onUpsellShown({ source: "history_limit" });
|
|
21176
21176
|
}, [n, i]), /* @__PURE__ */ Q("div", {
|
|
21177
21177
|
className: "rounded-xl bg-f1-background",
|
|
21178
|
-
children: /* @__PURE__ */ $(
|
|
21178
|
+
children: /* @__PURE__ */ $(oa, {
|
|
21179
21179
|
title: e.title,
|
|
21180
21180
|
description: e.description,
|
|
21181
21181
|
children: [r ? /* @__PURE__ */ $("div", {
|
|
@@ -21212,12 +21212,12 @@ var dL = () => uL(nL, "useChatJump"), fL = (e) => {
|
|
|
21212
21212
|
let [n] = t;
|
|
21213
21213
|
if (!n || n.width && n.height) return [];
|
|
21214
21214
|
let r = n.thumbnailUrl ?? n.url;
|
|
21215
|
-
return
|
|
21215
|
+
return Pi(r) === void 0 ? [r] : [];
|
|
21216
21216
|
}, QL = (e) => {
|
|
21217
21217
|
let t = e.linkPreviews ?? [];
|
|
21218
21218
|
if (t.length !== 1) return [];
|
|
21219
21219
|
let n = t[0]?.imageUrl;
|
|
21220
|
-
return n &&
|
|
21220
|
+
return n && Pi(n) === void 0 ? [n] : [];
|
|
21221
21221
|
};
|
|
21222
21222
|
function $L(e, { enabled: t }) {
|
|
21223
21223
|
let [, n] = ed((e) => e + 1, 0), r = Y(null);
|
|
@@ -21263,7 +21263,7 @@ function $L(e, { enabled: t }) {
|
|
|
21263
21263
|
let r = () => {
|
|
21264
21264
|
i.current.has(t) || (i.current.add(t), n());
|
|
21265
21265
|
}, o = window.setTimeout(r, e.ms);
|
|
21266
|
-
Promise.all(e.urls.map(
|
|
21266
|
+
Promise.all(e.urls.map(br)).then(() => {
|
|
21267
21267
|
window.clearTimeout(o), r();
|
|
21268
21268
|
});
|
|
21269
21269
|
});
|
|
@@ -21729,7 +21729,7 @@ var PR = (e, t, n) => {
|
|
|
21729
21729
|
})} ${a}`;
|
|
21730
21730
|
}, Ez = ({ message: e, onConfirm: t, onClose: n }) => {
|
|
21731
21731
|
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(yz(o)), d = s ? new Date(bz(s, l)) : void 0, f = !!d && d.getTime() <= i.getTime(), p = !!d && !!l && !f, m = VI(e).trim();
|
|
21732
|
-
return /* @__PURE__ */ Q(
|
|
21732
|
+
return /* @__PURE__ */ Q(ha, {
|
|
21733
21733
|
isOpen: !0,
|
|
21734
21734
|
onClose: n,
|
|
21735
21735
|
width: "sm",
|
|
@@ -21773,7 +21773,7 @@ var PR = (e, t, n) => {
|
|
|
21773
21773
|
})
|
|
21774
21774
|
}), /* @__PURE__ */ Q("div", {
|
|
21775
21775
|
className: "w-32",
|
|
21776
|
-
children: /* @__PURE__ */ Q(
|
|
21776
|
+
children: /* @__PURE__ */ Q(Zo, {
|
|
21777
21777
|
type: "time",
|
|
21778
21778
|
label: r.chat.remind.time,
|
|
21779
21779
|
value: l,
|
|
@@ -21846,7 +21846,7 @@ var PR = (e, t, n) => {
|
|
|
21846
21846
|
className: "flex items-center gap-1 border-0 border-b border-solid border-f1-border-secondary px-2 py-2.5",
|
|
21847
21847
|
children: [/* @__PURE__ */ Q(V, {
|
|
21848
21848
|
ref: i,
|
|
21849
|
-
icon:
|
|
21849
|
+
icon: Ac,
|
|
21850
21850
|
onClick: t,
|
|
21851
21851
|
label: n.chat.back,
|
|
21852
21852
|
variant: "ghost",
|
|
@@ -21920,8 +21920,8 @@ var PR = (e, t, n) => {
|
|
|
21920
21920
|
lastName: ""
|
|
21921
21921
|
};
|
|
21922
21922
|
}, zz = ({ message: e, onOpen: t }) => {
|
|
21923
|
-
let n = R(), { channelType: r } = Mu(), i = e.readBy?.length ?? e.readByCount ?? 0, a = e.readBy?.slice(0, Lz) ?? [], o = Math.max(0, i - a.length), s = n.chat.info, c =
|
|
21924
|
-
return e.isMine && r === "group" && i > 0 ? (s = n.t(i === 1 ? "chat.readBy.one" : "chat.readBy.other", { count: i }), c =
|
|
21923
|
+
let n = R(), { channelType: r } = Mu(), i = e.readBy?.length ?? e.readByCount ?? 0, a = e.readBy?.slice(0, Lz) ?? [], o = Math.max(0, i - a.length), s = n.chat.info, c = Gc;
|
|
21924
|
+
return e.isMine && r === "group" && i > 0 ? (s = n.t(i === 1 ? "chat.readBy.one" : "chat.readBy.other", { count: i }), c = ur) : e.isMine && e.readAt ? (s = `${n.chat.read} · ${lR(new Date(e.readAt))}`, c = ur) : e.isMine && r === "dm" && e.status === "delivered" && (s = n.chat.delivered, c = ur), /* @__PURE__ */ Q(Fz, {
|
|
21925
21925
|
icon: c,
|
|
21926
21926
|
label: s,
|
|
21927
21927
|
onClick: t,
|
|
@@ -21951,7 +21951,7 @@ function Bz({ shown: e, run: t, message: n }) {
|
|
|
21951
21951
|
padding: "xs",
|
|
21952
21952
|
children: [
|
|
21953
21953
|
cz(e) ? /* @__PURE__ */ Q(Fz, {
|
|
21954
|
-
icon:
|
|
21954
|
+
icon: Or,
|
|
21955
21955
|
label: r.chat.one.askAgain,
|
|
21956
21956
|
onClick: t(cz, () => {
|
|
21957
21957
|
i.retry?.(n.id);
|
|
@@ -21965,7 +21965,7 @@ function Bz({ shown: e, run: t, message: n }) {
|
|
|
21965
21965
|
})
|
|
21966
21966
|
}) : null,
|
|
21967
21967
|
uz(e) ? /* @__PURE__ */ Q(Fz, {
|
|
21968
|
-
icon:
|
|
21968
|
+
icon: Ji,
|
|
21969
21969
|
label: r.chat.one.copy,
|
|
21970
21970
|
onClick: t(uz, () => {
|
|
21971
21971
|
dz(n, a);
|
|
@@ -21989,7 +21989,7 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
21989
21989
|
className: "flex items-center gap-1 border-0 border-b border-solid border-f1-border-secondary px-2 py-2.5",
|
|
21990
21990
|
children: [/* @__PURE__ */ Q(V, {
|
|
21991
21991
|
ref: o,
|
|
21992
|
-
icon:
|
|
21992
|
+
icon: Ac,
|
|
21993
21993
|
onClick: t,
|
|
21994
21994
|
label: a.chat.back,
|
|
21995
21995
|
variant: "ghost",
|
|
@@ -22003,7 +22003,7 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22003
22003
|
l ? /* @__PURE__ */ $("p", {
|
|
22004
22004
|
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",
|
|
22005
22005
|
"data-testid": "chat-remind-current",
|
|
22006
|
-
children: [/* @__PURE__ */ Q(
|
|
22006
|
+
children: [/* @__PURE__ */ Q(xr, {
|
|
22007
22007
|
className: "size-4 shrink-0",
|
|
22008
22008
|
"aria-hidden": !0
|
|
22009
22009
|
}), a.t("chat.remind.current", { when: c(l) })]
|
|
@@ -22016,7 +22016,7 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22016
22016
|
relativeDay: !1
|
|
22017
22017
|
}) : c(t);
|
|
22018
22018
|
return /* @__PURE__ */ Q(Fz, {
|
|
22019
|
-
icon:
|
|
22019
|
+
icon: ls,
|
|
22020
22020
|
label: a.chat.remind[e],
|
|
22021
22021
|
onClick: () => n(t),
|
|
22022
22022
|
trailing: /* @__PURE__ */ Q("span", {
|
|
@@ -22033,12 +22033,12 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22033
22033
|
/* @__PURE__ */ $("div", {
|
|
22034
22034
|
className: "flex flex-col p-1",
|
|
22035
22035
|
children: [/* @__PURE__ */ Q(Fz, {
|
|
22036
|
-
icon:
|
|
22036
|
+
icon: ka,
|
|
22037
22037
|
label: a.chat.remind.custom,
|
|
22038
22038
|
onClick: r
|
|
22039
22039
|
}), e.reminder ? /* @__PURE__ */ Q(Fz, {
|
|
22040
22040
|
critical: !0,
|
|
22041
|
-
icon:
|
|
22041
|
+
icon: qo,
|
|
22042
22042
|
label: a.chat.remind.remove,
|
|
22043
22043
|
onClick: i
|
|
22044
22044
|
}) : null]
|
|
@@ -22088,13 +22088,13 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22088
22088
|
className: `${Uz} flex w-64 flex-col rounded-lg p-1`,
|
|
22089
22089
|
onKeyDown: Iz,
|
|
22090
22090
|
children: [/* @__PURE__ */ Q(Fz, {
|
|
22091
|
-
icon:
|
|
22091
|
+
icon: Or,
|
|
22092
22092
|
label: n.chat.retry,
|
|
22093
22093
|
onClick: (n) => {
|
|
22094
22094
|
r(e.live.id), t(Wz(n));
|
|
22095
22095
|
}
|
|
22096
22096
|
}), /* @__PURE__ */ Q(Fz, {
|
|
22097
|
-
icon:
|
|
22097
|
+
icon: qo,
|
|
22098
22098
|
label: n.actions.delete,
|
|
22099
22099
|
onClick: (n) => {
|
|
22100
22100
|
o(e.live.id), t(Wz(n));
|
|
@@ -22110,52 +22110,52 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22110
22110
|
className: "flex flex-col p-1",
|
|
22111
22111
|
children: [
|
|
22112
22112
|
$R(e) ? /* @__PURE__ */ Q(Fz, {
|
|
22113
|
-
icon:
|
|
22113
|
+
icon: Ur,
|
|
22114
22114
|
label: i.chat.reply,
|
|
22115
22115
|
onClick: t($R, () => d(n))
|
|
22116
22116
|
}) : null,
|
|
22117
22117
|
ZR(e) ? /* @__PURE__ */ Q(Fz, {
|
|
22118
|
-
icon:
|
|
22118
|
+
icon: Ji,
|
|
22119
22119
|
label: i.actions.copy,
|
|
22120
22120
|
onClick: t(ZR, () => mz(a, n))
|
|
22121
22121
|
}) : null,
|
|
22122
22122
|
f ? /* @__PURE__ */ Q(Fz, {
|
|
22123
|
-
icon:
|
|
22123
|
+
icon: Wr,
|
|
22124
22124
|
label: i.chat.hideTranslation,
|
|
22125
22125
|
onClick: t(sz, () => c?.(n.id))
|
|
22126
22126
|
}) : az(e) ? /* @__PURE__ */ Q(Fz, {
|
|
22127
|
-
icon:
|
|
22127
|
+
icon: Wr,
|
|
22128
22128
|
label: i.chat.translate,
|
|
22129
22129
|
onClick: t(az, () => u?.(n.id))
|
|
22130
22130
|
}) : null,
|
|
22131
22131
|
oz(e) ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(Hz, {}), /* @__PURE__ */ Q(Fz, {
|
|
22132
|
-
icon:
|
|
22132
|
+
icon: Wr,
|
|
22133
22133
|
label: i.chat.translate,
|
|
22134
22134
|
onClick: t(oz, () => l?.()),
|
|
22135
22135
|
trailing: /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
22136
22136
|
className: "sr-only",
|
|
22137
22137
|
children: ", "
|
|
22138
|
-
}), /* @__PURE__ */ Q(
|
|
22139
|
-
icon:
|
|
22138
|
+
}), /* @__PURE__ */ Q(Zc, {
|
|
22139
|
+
icon: Os,
|
|
22140
22140
|
text: i.chat.upgrade
|
|
22141
22141
|
})] })
|
|
22142
22142
|
})] }) : null,
|
|
22143
22143
|
nz(e) ? /* @__PURE__ */ Q(Fz, {
|
|
22144
|
-
icon:
|
|
22144
|
+
icon: Ai,
|
|
22145
22145
|
label: i.chat.forward,
|
|
22146
22146
|
onClick: t(nz, () => o?.(n))
|
|
22147
22147
|
}) : null,
|
|
22148
22148
|
rz(e) ? /* @__PURE__ */ Q(Fz, {
|
|
22149
|
-
icon: n.pinnedAt ? ei :
|
|
22149
|
+
icon: n.pinnedAt ? ei : Ho,
|
|
22150
22150
|
label: n.pinnedAt ? i.chat.unpinMessage : i.chat.pinMessage,
|
|
22151
22151
|
onClick: t(rz, () => s?.(n.id, !n.pinnedAt))
|
|
22152
22152
|
}) : null,
|
|
22153
22153
|
iz(e) && r ? /* @__PURE__ */ Q(Fz, {
|
|
22154
|
-
icon:
|
|
22154
|
+
icon: Pa,
|
|
22155
22155
|
label: i.chat.remind.menu,
|
|
22156
22156
|
onClick: r,
|
|
22157
22157
|
testId: "chat-message-menu-remind",
|
|
22158
|
-
trailing: /* @__PURE__ */ Q(
|
|
22158
|
+
trailing: /* @__PURE__ */ Q(hl, {
|
|
22159
22159
|
"aria-hidden": !0,
|
|
22160
22160
|
className: "ml-auto size-4 text-f1-icon-secondary"
|
|
22161
22161
|
})
|
|
@@ -22172,7 +22172,7 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22172
22172
|
onClick: t(tz, () => a(n))
|
|
22173
22173
|
}) : null, ez(e) ? /* @__PURE__ */ Q(Fz, {
|
|
22174
22174
|
critical: !0,
|
|
22175
|
-
icon:
|
|
22175
|
+
icon: qo,
|
|
22176
22176
|
label: r.actions.delete,
|
|
22177
22177
|
onClick: t(ez, () => i(n.id))
|
|
22178
22178
|
}) : null]
|
|
@@ -22555,7 +22555,7 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22555
22555
|
let t = 0;
|
|
22556
22556
|
return e.map((e) => {
|
|
22557
22557
|
let n = "";
|
|
22558
|
-
for (let r of
|
|
22558
|
+
for (let r of Vi(e.text)) t = TB.test(r) ? t + 1 : 0, t <= wB && (n += r);
|
|
22559
22559
|
return {
|
|
22560
22560
|
...e,
|
|
22561
22561
|
text: n
|
|
@@ -22581,7 +22581,7 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22581
22581
|
let n = NB(e).map((e) => ({
|
|
22582
22582
|
paragraph: e,
|
|
22583
22583
|
text: DB(e.runs)
|
|
22584
|
-
})), r = t.length > 0 ?
|
|
22584
|
+
})), r = t.length > 0 ? Ss(n.map(({ text: e }) => e).join(CB), t) : [], i = 0;
|
|
22585
22585
|
n.forEach(({ paragraph: e, text: t }) => {
|
|
22586
22586
|
let n = i, a = n + t.length;
|
|
22587
22587
|
i = a + 2;
|
|
@@ -22593,13 +22593,13 @@ var Vz = ({ message: e, onBack: t, onPick: n, onPickCustom: r, onRemove: i }) =>
|
|
|
22593
22593
|
e.runs = jB(AB(e.runs, o));
|
|
22594
22594
|
});
|
|
22595
22595
|
}, FB = (e, t = []) => {
|
|
22596
|
-
let n = MB(
|
|
22596
|
+
let n = MB(Jr(e).blocks);
|
|
22597
22597
|
return PB(n, t), { blocks: n };
|
|
22598
22598
|
};
|
|
22599
22599
|
//#endregion
|
|
22600
22600
|
//#region src/domains/platform/communications/chat/F0Chat/components/ChatMentionChip.tsx
|
|
22601
22601
|
function IB({ token: e, label: t }) {
|
|
22602
|
-
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(
|
|
22602
|
+
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(No, {
|
|
22603
22603
|
href: e.user.profileHref,
|
|
22604
22604
|
variant: "unstyled",
|
|
22605
22605
|
stopPropagation: !0,
|
|
@@ -22624,14 +22624,14 @@ function IB({ token: e, label: t }) {
|
|
|
22624
22624
|
//#endregion
|
|
22625
22625
|
//#region src/domains/platform/communications/chat/F0Chat/utils/render-body.tsx
|
|
22626
22626
|
var LB = /(https?:\/\/[^\s]+)/g, RB = (e, t) => {
|
|
22627
|
-
let n =
|
|
22627
|
+
let n = Vi(e), r = n.split(LB);
|
|
22628
22628
|
if (r.length === 1) return n;
|
|
22629
22629
|
let i = new Map((t ?? []).filter((e) => e.title).map((e) => [e.url, e.title]));
|
|
22630
22630
|
return r.map((e, t) => {
|
|
22631
22631
|
if (e.length === 0) return null;
|
|
22632
22632
|
if (t % 2 == 0) return /* @__PURE__ */ Q(Hu, { children: e }, `text-${t}`);
|
|
22633
22633
|
let n = i.get(e);
|
|
22634
|
-
return /* @__PURE__ */ Q(
|
|
22634
|
+
return /* @__PURE__ */ Q(No, {
|
|
22635
22635
|
href: e,
|
|
22636
22636
|
target: "_blank",
|
|
22637
22637
|
stopPropagation: !0,
|
|
@@ -22642,12 +22642,12 @@ var LB = /(https?:\/\/[^\s]+)/g, RB = (e, t) => {
|
|
|
22642
22642
|
});
|
|
22643
22643
|
}, zB = (e, t, n) => {
|
|
22644
22644
|
if (t.length === 0) return RB(e, n);
|
|
22645
|
-
let r =
|
|
22645
|
+
let r = Ss(e, t);
|
|
22646
22646
|
if (r.length === 0) return RB(e, n);
|
|
22647
22647
|
let i = [], a = 0;
|
|
22648
22648
|
return r.forEach((t, r) => {
|
|
22649
22649
|
t.start > a && i.push(/* @__PURE__ */ Q(Hu, { children: RB(e.slice(a, t.start), n) }, `t-${r}`));
|
|
22650
|
-
let o =
|
|
22650
|
+
let o = Vi(e.slice(t.start, t.end));
|
|
22651
22651
|
i.push(/* @__PURE__ */ Q(Hu, { children: /* @__PURE__ */ Q(IB, {
|
|
22652
22652
|
token: t.entry,
|
|
22653
22653
|
label: o
|
|
@@ -22760,12 +22760,12 @@ function cV({ marks: e, children: t }) {
|
|
|
22760
22760
|
//#endregion
|
|
22761
22761
|
//#region src/domains/platform/communications/chat/F0Chat/components/ChatMarkdownLink.tsx
|
|
22762
22762
|
function lV({ link: e, runs: t, previews: n }) {
|
|
22763
|
-
let r = xI(DB(t), e.url), i = r ? n?.find((t) => t.url === e.url && t.title) : void 0, a =
|
|
22764
|
-
return /* @__PURE__ */ Q(
|
|
22763
|
+
let r = xI(DB(t), e.url), i = r ? n?.find((t) => t.url === e.url && t.title) : void 0, a = Vi(i?.title ?? "") || void 0, o = r && !a;
|
|
22764
|
+
return /* @__PURE__ */ Q(No, {
|
|
22765
22765
|
href: e.url,
|
|
22766
22766
|
target: "_blank",
|
|
22767
22767
|
stopPropagation: !0,
|
|
22768
|
-
title: o ? void 0 :
|
|
22768
|
+
title: o ? void 0 : Vi(e.url),
|
|
22769
22769
|
className: B("whitespace-normal", o ? "break-all" : "break-words"),
|
|
22770
22770
|
children: a ? /* @__PURE__ */ Q(cV, {
|
|
22771
22771
|
marks: OB(t),
|
|
@@ -22884,7 +22884,7 @@ var yV = 1.91, bV = (e, t, n) => {
|
|
|
22884
22884
|
}, SV = (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")), CV = ({ preview: e, host: t, compact: n }) => /* @__PURE__ */ $("div", {
|
|
22885
22885
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 p-2.5",
|
|
22886
22886
|
children: [
|
|
22887
|
-
e.title ? /* @__PURE__ */ Q(
|
|
22887
|
+
e.title ? /* @__PURE__ */ Q(xo, {
|
|
22888
22888
|
className: "text-base font-medium text-f1-foreground",
|
|
22889
22889
|
children: e.title
|
|
22890
22890
|
}) : null,
|
|
@@ -22892,13 +22892,13 @@ var yV = 1.91, bV = (e, t, n) => {
|
|
|
22892
22892
|
className: B("text-sm text-f1-foreground-secondary", n ? "line-clamp-1" : "line-clamp-2"),
|
|
22893
22893
|
children: e.description
|
|
22894
22894
|
}) : null,
|
|
22895
|
-
/* @__PURE__ */ Q(
|
|
22895
|
+
/* @__PURE__ */ Q(xo, {
|
|
22896
22896
|
className: "text-sm text-f1-foreground",
|
|
22897
22897
|
children: t
|
|
22898
22898
|
})
|
|
22899
22899
|
]
|
|
22900
22900
|
}), wV = ({ preview: e, host: t, compact: n, className: r, onOpen: i }) => {
|
|
22901
|
-
let a =
|
|
22901
|
+
let a = Cs(e.imageUrl), o = bV(e.imageUrl, a, n);
|
|
22902
22902
|
return /* @__PURE__ */ $("a", {
|
|
22903
22903
|
href: e.url,
|
|
22904
22904
|
onClick: i,
|
|
@@ -22919,7 +22919,7 @@ var yV = 1.91, bV = (e, t, n) => {
|
|
|
22919
22919
|
alt: "",
|
|
22920
22920
|
"aria-hidden": !0,
|
|
22921
22921
|
className: "absolute inset-0 h-full w-full scale-110 object-cover opacity-60 blur-xl"
|
|
22922
|
-
}), /* @__PURE__ */ Q(
|
|
22922
|
+
}), /* @__PURE__ */ Q(fo, {
|
|
22923
22923
|
src: e.imageUrl,
|
|
22924
22924
|
alt: "",
|
|
22925
22925
|
className: "relative h-full w-full object-contain"
|
|
@@ -22930,7 +22930,7 @@ var yV = 1.91, bV = (e, t, n) => {
|
|
|
22930
22930
|
host: t,
|
|
22931
22931
|
compact: n
|
|
22932
22932
|
}),
|
|
22933
|
-
o.kind === "thumb" ? /* @__PURE__ */ Q(
|
|
22933
|
+
o.kind === "thumb" ? /* @__PURE__ */ Q(fo, {
|
|
22934
22934
|
src: e.imageUrl,
|
|
22935
22935
|
alt: "",
|
|
22936
22936
|
style: {
|
|
@@ -22969,7 +22969,7 @@ var yV = 1.91, bV = (e, t, n) => {
|
|
|
22969
22969
|
size: "sm",
|
|
22970
22970
|
hideLabel: !0,
|
|
22971
22971
|
label: a.chat.removeLinkPreview,
|
|
22972
|
-
icon:
|
|
22972
|
+
icon: to,
|
|
22973
22973
|
onClick: () => r(e.url)
|
|
22974
22974
|
})
|
|
22975
22975
|
}) : null]
|
|
@@ -22979,7 +22979,7 @@ var yV = 1.91, bV = (e, t, n) => {
|
|
|
22979
22979
|
let n = R(), r = Eu(), i = /* @__PURE__ */ Q(AV, { parts: OV(e, n.chat) });
|
|
22980
22980
|
return r === "announcement" ? null : t === "overlay" ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
22981
22981
|
"aria-hidden": !0,
|
|
22982
|
-
className:
|
|
22982
|
+
className: Yo
|
|
22983
22983
|
}), /* @__PURE__ */ Q("span", {
|
|
22984
22984
|
"aria-hidden": !0,
|
|
22985
22985
|
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)]",
|
|
@@ -23059,7 +23059,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23059
23059
|
lastName: e.name.split(" ").slice(1).join(" ")
|
|
23060
23060
|
}, LV = 5, RV = ({ messageId: e, poll: t, onClose: n }) => {
|
|
23061
23061
|
let r = Math.max(0, ...t.options.map(NV));
|
|
23062
|
-
return /* @__PURE__ */ Q(
|
|
23062
|
+
return /* @__PURE__ */ Q(ha, {
|
|
23063
23063
|
isOpen: !0,
|
|
23064
23064
|
onClose: n,
|
|
23065
23065
|
width: "sm",
|
|
@@ -23099,7 +23099,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23099
23099
|
}), n ? /* @__PURE__ */ Q("span", {
|
|
23100
23100
|
className: "flex text-f1-icon-warning",
|
|
23101
23101
|
children: /* @__PURE__ */ Q(U, {
|
|
23102
|
-
icon:
|
|
23102
|
+
icon: Ti,
|
|
23103
23103
|
size: "md"
|
|
23104
23104
|
})
|
|
23105
23105
|
}) : null]
|
|
@@ -23205,7 +23205,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23205
23205
|
children: [/* @__PURE__ */ $("span", {
|
|
23206
23206
|
className: "flex w-full items-center gap-2",
|
|
23207
23207
|
children: [
|
|
23208
|
-
t.allowMultipleAnswers ? /* @__PURE__ */ Q(
|
|
23208
|
+
t.allowMultipleAnswers ? /* @__PURE__ */ Q(Wc, {
|
|
23209
23209
|
presentational: !0,
|
|
23210
23210
|
hideLabel: !0,
|
|
23211
23211
|
title: e.text,
|
|
@@ -23229,7 +23229,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23229
23229
|
})
|
|
23230
23230
|
})
|
|
23231
23231
|
]
|
|
23232
|
-
}), /* @__PURE__ */ Q(
|
|
23232
|
+
}), /* @__PURE__ */ Q(Rc, {
|
|
23233
23233
|
"aria-hidden": !0,
|
|
23234
23234
|
value: o,
|
|
23235
23235
|
color: "hsl(var(--selected-60))",
|
|
@@ -23267,7 +23267,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23267
23267
|
e.body,
|
|
23268
23268
|
t,
|
|
23269
23269
|
n
|
|
23270
|
-
]), { locale: a } =
|
|
23270
|
+
]), { locale: a } = Yc(), o = J(() => {
|
|
23271
23271
|
if (!e.sourceLanguage) return r.chat.translated;
|
|
23272
23272
|
let t = UV(e.sourceLanguage, a);
|
|
23273
23273
|
return r.t("chat.translatedFrom", { language: t });
|
|
@@ -23305,7 +23305,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23305
23305
|
name: n.length === 1 ? n[0].name : void 0
|
|
23306
23306
|
} : r.length > 0 ? { kind: "location" } : i.length > 0 ? { kind: "voice" } : null;
|
|
23307
23307
|
}, JV = (e) => {
|
|
23308
|
-
let t = R(), { body: n = "", bodyFormat: r } = e, i = J(() =>
|
|
23308
|
+
let t = R(), { body: n = "", bodyFormat: r } = e, i = J(() => Vi(VI({
|
|
23309
23309
|
body: n,
|
|
23310
23310
|
bodyFormat: r
|
|
23311
23311
|
}).trim()), [n, r]), a = KV(e.attachments), o = qV(e.attachments);
|
|
@@ -23314,19 +23314,19 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23314
23314
|
thumbnailUrl: a
|
|
23315
23315
|
};
|
|
23316
23316
|
let s = o.kind === "photo" ? {
|
|
23317
|
-
icon:
|
|
23317
|
+
icon: lo,
|
|
23318
23318
|
label: o.count === 1 ? t.chat.photo : t.t("chat.photoCount.other", { count: o.count })
|
|
23319
23319
|
} : o.kind === "file" ? {
|
|
23320
|
-
icon:
|
|
23320
|
+
icon: Hi,
|
|
23321
23321
|
label: o.name ?? t.t("chat.fileCount.other", { count: o.count })
|
|
23322
23322
|
} : o.kind === "location" ? {
|
|
23323
|
-
icon:
|
|
23323
|
+
icon: ws,
|
|
23324
23324
|
label: t.chat.location
|
|
23325
23325
|
} : o.kind === "voice" ? {
|
|
23326
|
-
icon:
|
|
23326
|
+
icon: Za,
|
|
23327
23327
|
label: t.chat.voiceNote
|
|
23328
23328
|
} : {
|
|
23329
|
-
icon:
|
|
23329
|
+
icon: rs,
|
|
23330
23330
|
label: t.t("chat.attachmentCount.other", { count: o.count })
|
|
23331
23331
|
};
|
|
23332
23332
|
return {
|
|
@@ -23352,7 +23352,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23352
23352
|
className: "ml-2.5 h-9 w-9 shrink-0 self-center rounded-sm object-cover"
|
|
23353
23353
|
}) : null, /* @__PURE__ */ $("div", {
|
|
23354
23354
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 p-2.5",
|
|
23355
|
-
children: [/* @__PURE__ */ Q(
|
|
23355
|
+
children: [/* @__PURE__ */ Q(xo, {
|
|
23356
23356
|
className: B("text-sm font-medium", nV(e.author)),
|
|
23357
23357
|
children: u
|
|
23358
23358
|
}), /* @__PURE__ */ $("span", {
|
|
@@ -23361,7 +23361,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23361
23361
|
icon: s,
|
|
23362
23362
|
size: "sm",
|
|
23363
23363
|
color: "default"
|
|
23364
|
-
}) : null, /* @__PURE__ */ Q(
|
|
23364
|
+
}) : null, /* @__PURE__ */ Q(xo, {
|
|
23365
23365
|
className: "min-w-0 text-base",
|
|
23366
23366
|
children: c
|
|
23367
23367
|
})]
|
|
@@ -23539,7 +23539,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23539
23539
|
className: "relative px-3.5 py-2.5",
|
|
23540
23540
|
children: [
|
|
23541
23541
|
n ? /* @__PURE__ */ Q(QV, { author: n }) : null,
|
|
23542
|
-
/* @__PURE__ */ Q(
|
|
23542
|
+
/* @__PURE__ */ Q(wr, {
|
|
23543
23543
|
"data-chat-message-text": !0,
|
|
23544
23544
|
content: o,
|
|
23545
23545
|
format: "html",
|
|
@@ -23554,12 +23554,12 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23554
23554
|
})]
|
|
23555
23555
|
})
|
|
23556
23556
|
});
|
|
23557
|
-
}), rH = (e) => e.kind === "image" ? "image" :
|
|
23557
|
+
}), rH = (e) => e.kind === "image" ? "image" : bs(e) ? "video" : _a(e) ? "document" : "file", iH = (e) => {
|
|
23558
23558
|
let t = (e ?? []).filter((e) => e.kind === "image");
|
|
23559
23559
|
return t.length === 1 ? t[0] : void 0;
|
|
23560
23560
|
}, aH = (e) => {
|
|
23561
23561
|
if (e.progress !== void 0) return { bucket: "files" };
|
|
23562
|
-
let t =
|
|
23562
|
+
let t = ms(e, { inferImages: !1 });
|
|
23563
23563
|
switch (t.bucket) {
|
|
23564
23564
|
case "video": return { bucket: "videos" };
|
|
23565
23565
|
case "audio": return { bucket: "audios" };
|
|
@@ -23606,7 +23606,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23606
23606
|
let t = [];
|
|
23607
23607
|
for (let n of e.images) t.push({
|
|
23608
23608
|
file: n,
|
|
23609
|
-
item:
|
|
23609
|
+
item: Wa(n, Bo(t.length, n.url))
|
|
23610
23610
|
});
|
|
23611
23611
|
let n = [
|
|
23612
23612
|
...e.videos,
|
|
@@ -23615,7 +23615,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23615
23615
|
];
|
|
23616
23616
|
for (let e of n) t.push({
|
|
23617
23617
|
file: e,
|
|
23618
|
-
item:
|
|
23618
|
+
item: Ra(e, Bo(t.length, e.url), { inferImages: !1 })
|
|
23619
23619
|
});
|
|
23620
23620
|
return t;
|
|
23621
23621
|
}, cH = (e, t) => e + t > 1, lH = [
|
|
@@ -23625,7 +23625,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23625
23625
|
"text"
|
|
23626
23626
|
], uH = (e) => e !== null && lH.includes(e), dH = (e) => {
|
|
23627
23627
|
if (e.kind !== "document") return null;
|
|
23628
|
-
let t =
|
|
23628
|
+
let t = _a(e.file);
|
|
23629
23629
|
return uH(t) ? t : !e.rendering && uH(e.documentKind) ? e.documentKind : null;
|
|
23630
23630
|
}, fH = (e) => e.kind === "document" ? e.documentKind : e.kind, pH = (e) => e.kind === "image" ? "image" : rH({
|
|
23631
23631
|
kind: "file",
|
|
@@ -23674,7 +23674,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23674
23674
|
}, yH = () => document.activeElement === null || document.activeElement === document.body, bH = () => {
|
|
23675
23675
|
yH() && document.querySelector("[data-chat-viewport]")?.focus({ preventScroll: !0 });
|
|
23676
23676
|
}, xH = ({ children: e, noteOpener: t, showsDraft: n }) => {
|
|
23677
|
-
let r =
|
|
23677
|
+
let r = oo(), { channel: i } = zu(), a = Y(i.id);
|
|
23678
23678
|
q(function() {
|
|
23679
23679
|
a.current !== i.id && (a.current = i.id, r.close());
|
|
23680
23680
|
}, [i.id, r]);
|
|
@@ -23701,7 +23701,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23701
23701
|
a.current = { messageId: e };
|
|
23702
23702
|
}, []), l = G((e) => {
|
|
23703
23703
|
let t = i.current;
|
|
23704
|
-
return t?.origin !== "composer" || !t.items.some((t) =>
|
|
23704
|
+
return t?.origin !== "composer" || !t.items.some((t) => wo(t) === e) ? !1 : (i.current = null, !0);
|
|
23705
23705
|
}, []), u = G((e) => {
|
|
23706
23706
|
e.type === "opened" && (i.current = {
|
|
23707
23707
|
origin: e.origin,
|
|
@@ -23724,7 +23724,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23724
23724
|
}, [r]);
|
|
23725
23725
|
return K(() => () => {
|
|
23726
23726
|
o.current !== null && cancelAnimationFrame(o.current);
|
|
23727
|
-
}, []), /* @__PURE__ */ Q(
|
|
23727
|
+
}, []), /* @__PURE__ */ Q(vo, {
|
|
23728
23728
|
onEvent: u,
|
|
23729
23729
|
onFocusFallback: d,
|
|
23730
23730
|
children: /* @__PURE__ */ Q(xH, {
|
|
@@ -23751,13 +23751,13 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23751
23751
|
isLastOfRun: t === f && !d
|
|
23752
23752
|
});
|
|
23753
23753
|
}, TH = (e) => {
|
|
23754
|
-
let { image: t } = e, n =
|
|
23755
|
-
return n && r === t.url ? /* @__PURE__ */ Q(EH, { ...e }) : /* @__PURE__ */ Q(
|
|
23754
|
+
let { image: t } = e, n = Sr(t), [r, i] = X(null);
|
|
23755
|
+
return n && r === t.url ? /* @__PURE__ */ Q(EH, { ...e }) : /* @__PURE__ */ Q(zi, {
|
|
23756
23756
|
...e,
|
|
23757
23757
|
onImageError: n ? () => i(t.url) : void 0
|
|
23758
23758
|
});
|
|
23759
23759
|
}, EH = ({ image: e, aspectRatio: t, spanFull: n, surfaceClassName: r, overlay: i }) => {
|
|
23760
|
-
let a = R(), o = Du(), s =
|
|
23760
|
+
let a = R(), o = Du(), s = pi();
|
|
23761
23761
|
return /* @__PURE__ */ $("div", {
|
|
23762
23762
|
style: { aspectRatio: t },
|
|
23763
23763
|
className: B("relative flex min-w-0 flex-col items-center justify-center gap-2 overflow-hidden p-3", n && "col-span-2", r),
|
|
@@ -23773,7 +23773,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23773
23773
|
/* @__PURE__ */ Q("bdi", {
|
|
23774
23774
|
dir: "auto",
|
|
23775
23775
|
className: "min-w-0 max-w-full text-center",
|
|
23776
|
-
children: /* @__PURE__ */ Q(
|
|
23776
|
+
children: /* @__PURE__ */ Q(xo, {
|
|
23777
23777
|
className: "text-sm font-medium text-f1-foreground",
|
|
23778
23778
|
children: e.name
|
|
23779
23779
|
})
|
|
@@ -23783,7 +23783,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23783
23783
|
variant: "outline",
|
|
23784
23784
|
size: "sm",
|
|
23785
23785
|
hideLabel: !0,
|
|
23786
|
-
icon:
|
|
23786
|
+
icon: lr,
|
|
23787
23787
|
label: a.t("chat.downloadNamedFile", { name: e.name }),
|
|
23788
23788
|
onClick: () => {
|
|
23789
23789
|
s(e.url, e.name), o.onAttachmentDownloaded({ kind: "image" });
|
|
@@ -23794,16 +23794,16 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23794
23794
|
});
|
|
23795
23795
|
}, DH = (e) => {
|
|
23796
23796
|
let t = Du();
|
|
23797
|
-
return /* @__PURE__ */ Q(
|
|
23797
|
+
return /* @__PURE__ */ Q(Dr, {
|
|
23798
23798
|
...e,
|
|
23799
23799
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: rH(e.file) })
|
|
23800
23800
|
});
|
|
23801
23801
|
}, OH = ({ card: e }) => {
|
|
23802
23802
|
let t = Du(), { action: n } = e;
|
|
23803
23803
|
return /* @__PURE__ */ Q("div", {
|
|
23804
|
-
className:
|
|
23804
|
+
className: Ta,
|
|
23805
23805
|
"data-testid": "chat-card-attachment",
|
|
23806
|
-
children: /* @__PURE__ */ Q(
|
|
23806
|
+
children: /* @__PURE__ */ Q(oa, {
|
|
23807
23807
|
avatar: e.avatar,
|
|
23808
23808
|
title: e.title,
|
|
23809
23809
|
description: e.description,
|
|
@@ -23825,7 +23825,7 @@ var MV = (e, t, n) => e.includes(t) ? e.filter((e) => e !== t) : n ? [...e, t] :
|
|
|
23825
23825
|
});
|
|
23826
23826
|
}, kH = (e) => {
|
|
23827
23827
|
let t = Du();
|
|
23828
|
-
return /* @__PURE__ */ Q(
|
|
23828
|
+
return /* @__PURE__ */ Q(Io, {
|
|
23829
23829
|
...e,
|
|
23830
23830
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: rH(e.file) })
|
|
23831
23831
|
});
|
|
@@ -23837,7 +23837,7 @@ function MH() {
|
|
|
23837
23837
|
return Xu(AH);
|
|
23838
23838
|
}
|
|
23839
23839
|
var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ latitude: e, longitude: t }) => `https://www.google.com/maps?q=${e},${t}`, IH = ({ location: e, cornerClass: t = "rounded-xl", surfaceClassName: n, meta: r }) => {
|
|
23840
|
-
let i = R(), a = Du(), o = MH(), { ref: s, shouldMount: c } =
|
|
23840
|
+
let i = R(), a = Du(), o = MH(), { ref: s, shouldMount: c } = es();
|
|
23841
23841
|
return /* @__PURE__ */ Q("a", {
|
|
23842
23842
|
ref: s,
|
|
23843
23843
|
href: FH(e),
|
|
@@ -23847,7 +23847,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
23847
23847
|
target: "_blank",
|
|
23848
23848
|
rel: "noopener noreferrer",
|
|
23849
23849
|
"aria-label": e.name ?? i.chat.location,
|
|
23850
|
-
className: B("flex min-w-0 max-w-full flex-col overflow-hidden no-underline",
|
|
23850
|
+
className: B("flex min-w-0 max-w-full flex-col overflow-hidden no-underline", ro, "bg-f1-background-tertiary", "transition-shadow hover:ring-1 hover:ring-inset hover:ring-f1-border-secondary", En("focus-visible:ring-inset"), t, n),
|
|
23851
23851
|
"data-testid": "chat-location-attachment",
|
|
23852
23852
|
children: /* @__PURE__ */ $("div", {
|
|
23853
23853
|
className: "pointer-events-none relative w-full",
|
|
@@ -23888,7 +23888,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
23888
23888
|
});
|
|
23889
23889
|
}, LH = ({ surface: e }) => /* @__PURE__ */ Q(z, { className: B("h-full w-full rounded-none motion-reduce:animate-none", e) }), RH = (e) => {
|
|
23890
23890
|
let t = Du();
|
|
23891
|
-
return /* @__PURE__ */ Q(
|
|
23891
|
+
return /* @__PURE__ */ Q(vs, {
|
|
23892
23892
|
...e,
|
|
23893
23893
|
onDownloaded: () => t.onAttachmentDownloaded({ kind: "video" })
|
|
23894
23894
|
});
|
|
@@ -23945,7 +23945,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
23945
23945
|
};
|
|
23946
23946
|
}, [e]), t;
|
|
23947
23947
|
}, XH = ({ voice: e, isMine: t = !1, cornerClass: n = "rounded-xl", className: r, surfaceClassName: i }) => {
|
|
23948
|
-
let a = R(), o = Y(null), s =
|
|
23948
|
+
let a = R(), o = Y(null), s = Xa(o), c = YH(e.url), [l, u] = X(0), d = Y(null), f = Du(), p = MH(), m = ku(), h = s.duration > 0 ? s.duration : e.durationSeconds ?? 0, g = h > 0 ? Math.min(1, s.currentTime / h) : 0, _ = G(() => {
|
|
23949
23949
|
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());
|
|
23950
23950
|
}, [
|
|
23951
23951
|
s,
|
|
@@ -23991,7 +23991,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
23991
23991
|
e.preventDefault(), s.seek(Math.min(h, Math.max(0, n)));
|
|
23992
23992
|
}, [h, s]);
|
|
23993
23993
|
return /* @__PURE__ */ $("div", {
|
|
23994
|
-
className: B("group/voice flex h-[58px] min-w-0 items-center gap-2 p-3",
|
|
23994
|
+
className: B("group/voice flex h-[58px] min-w-0 items-center gap-2 p-3", Ta, t ? "bg-f1-background-tertiary" : "bg-f1-background", n, r, i),
|
|
23995
23995
|
"data-testid": "chat-voice-attachment",
|
|
23996
23996
|
children: [
|
|
23997
23997
|
/* @__PURE__ */ Q("audio", {
|
|
@@ -24060,11 +24060,11 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24060
24060
|
surfaceClassName: i
|
|
24061
24061
|
})
|
|
24062
24062
|
}), QH = ({ message: e, isMine: t, isFirstOfRun: n = !0, isLastOfRun: r = !0, hasAvatar: i = !1, showMeta: a = !0 }) => {
|
|
24063
|
-
let o = R(), s = Du(), { noteOpener: c } = gH(), l = e.attachments, u = J(() => oH(l ?? []), [l]), d = J(() => sH(u), [u]), f =
|
|
24063
|
+
let o = R(), s = Du(), { noteOpener: c } = gH(), l = e.attachments, u = J(() => oH(l ?? []), [l]), d = J(() => sH(u), [u]), f = na(d, "transcript", { sender: t ? void 0 : e.author.name }), p = (t) => {
|
|
24064
24064
|
c(e.id), f.openFile(t);
|
|
24065
|
-
}, m = iH(l), h =
|
|
24065
|
+
}, m = iH(l), h = Cs(m ? m.thumbnailUrl ?? m.url : void 0, m) ?? void 0;
|
|
24066
24066
|
if (!l || l.length === 0) return null;
|
|
24067
|
-
let g = rV(t), _ = "bg-f1-background-tertiary", { images: v, videos: y, documents: b, audios: x, files: S, locations: C, voices: w, cards: T } = u, E = m ?
|
|
24067
|
+
let g = rV(t), _ = "bg-f1-background-tertiary", { images: v, videos: y, documents: b, audios: x, files: S, locations: C, voices: w, cards: T } = u, E = m ? Ea(h?.width, h?.height) : null, D = !a || KI(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 = cH(b.length, S.length), k = {
|
|
24068
24068
|
counts: {
|
|
24069
24069
|
images: v.length,
|
|
24070
24070
|
videos: y.length,
|
|
@@ -24087,7 +24087,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24087
24087
|
children: [
|
|
24088
24088
|
v.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
24089
24089
|
style: E ? { width: E.width } : void 0,
|
|
24090
|
-
className: B("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", E ? "max-w-full" :
|
|
24090
|
+
className: B("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", E ? "max-w-full" : Ta, ss, A("images")),
|
|
24091
24091
|
"data-testid": "chat-image-album",
|
|
24092
24092
|
children: As(h ? [h] : v).map((t, n, r) => {
|
|
24093
24093
|
let i = v[t.index];
|
|
@@ -24103,7 +24103,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24103
24103
|
onOpen: () => p(i),
|
|
24104
24104
|
overlay: t.hiddenCount > 0 ? /* @__PURE__ */ Q("span", {
|
|
24105
24105
|
"aria-hidden": !0,
|
|
24106
|
-
className: B("pointer-events-none absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse",
|
|
24106
|
+
className: B("pointer-events-none absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse", jo),
|
|
24107
24107
|
"data-testid": "chat-image-album-more",
|
|
24108
24108
|
children: `+${t.hiddenCount}`
|
|
24109
24109
|
}) : a ? /* @__PURE__ */ Q(EV, {
|
|
@@ -24160,19 +24160,19 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24160
24160
|
cornerClass: "rounded-xl",
|
|
24161
24161
|
onOpen: f.hasViewer ? () => p(e) : void 0
|
|
24162
24162
|
}, `${e.url}-${n}`)) : null, S.map((e, t) => {
|
|
24163
|
-
let n =
|
|
24164
|
-
return /* @__PURE__ */ Q(
|
|
24163
|
+
let n = Ds(e) ?? "";
|
|
24164
|
+
return /* @__PURE__ */ Q(Fa, {
|
|
24165
24165
|
file: {
|
|
24166
24166
|
...e,
|
|
24167
24167
|
mimeType: n
|
|
24168
24168
|
},
|
|
24169
|
-
icon: n === "application/zip" ?
|
|
24169
|
+
icon: n === "application/zip" ? Tr : void 0,
|
|
24170
24170
|
testId: "chat-file-tile",
|
|
24171
24171
|
action: {
|
|
24172
24172
|
label: o.t("chat.downloadNamedFile", { name: e.name }),
|
|
24173
|
-
icon:
|
|
24173
|
+
icon: lr,
|
|
24174
24174
|
onClick: () => {
|
|
24175
|
-
|
|
24175
|
+
Kr(e.url, e.name), s.onAttachmentDownloaded({ kind: rH(e) });
|
|
24176
24176
|
}
|
|
24177
24177
|
}
|
|
24178
24178
|
}, `${e.url}-${t}`);
|
|
@@ -24221,7 +24221,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24221
24221
|
"data-testid": "chat-failed-indicator",
|
|
24222
24222
|
onClick: (e) => n(e.currentTarget),
|
|
24223
24223
|
children: /* @__PURE__ */ Q(U, {
|
|
24224
|
-
icon:
|
|
24224
|
+
icon: li,
|
|
24225
24225
|
size: "sm",
|
|
24226
24226
|
color: "critical-bold"
|
|
24227
24227
|
})
|
|
@@ -24269,7 +24269,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24269
24269
|
mode: "native",
|
|
24270
24270
|
size: o
|
|
24271
24271
|
}),
|
|
24272
|
-
children: /* @__PURE__ */ Q(
|
|
24272
|
+
children: /* @__PURE__ */ Q(Hc, {
|
|
24273
24273
|
value: l,
|
|
24274
24274
|
spinTiming: iU,
|
|
24275
24275
|
className: B("tabular-nums", s ? "text-f1-foreground-selected" : "text-f1-foreground")
|
|
@@ -24317,7 +24317,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24317
24317
|
variant: "ghost",
|
|
24318
24318
|
hideLabel: !0,
|
|
24319
24319
|
label: lR(new Date(e)),
|
|
24320
|
-
icon:
|
|
24320
|
+
icon: ls
|
|
24321
24321
|
}) : null
|
|
24322
24322
|
});
|
|
24323
24323
|
}, lU = ({ icon: e, children: t, testId: n }) => /* @__PURE__ */ $("span", {
|
|
@@ -24330,7 +24330,7 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24330
24330
|
}), uU = ({ forwardedFrom: e }) => {
|
|
24331
24331
|
let t = R(), n = e.channelTitle ? t.t("chat.forwardedFrom", { channel: e.channelTitle }) : t.chat.forwarded;
|
|
24332
24332
|
return /* @__PURE__ */ Q(lU, {
|
|
24333
|
-
icon:
|
|
24333
|
+
icon: Ai,
|
|
24334
24334
|
testId: "chat-forwarded-tag",
|
|
24335
24335
|
children: n
|
|
24336
24336
|
});
|
|
@@ -24345,13 +24345,13 @@ var NH = Ju(() => import("./LocationMap-CRcaItG1.js")), PH = 3 / 2, FH = ({ lati
|
|
|
24345
24345
|
children: s
|
|
24346
24346
|
}) : null,
|
|
24347
24347
|
a ? /* @__PURE__ */ Q(lU, {
|
|
24348
|
-
icon:
|
|
24348
|
+
icon: xr,
|
|
24349
24349
|
testId: "chat-reminder-tag",
|
|
24350
24350
|
children: n.t("chat.remind.current", { when: a })
|
|
24351
24351
|
}) : null,
|
|
24352
24352
|
e.forwardedFrom ? /* @__PURE__ */ Q(uU, { forwardedFrom: e.forwardedFrom }) : null
|
|
24353
24353
|
] });
|
|
24354
|
-
}, fU = 420, pU = (e) => /* @__PURE__ */ Q(
|
|
24354
|
+
}, fU = 420, pU = (e) => /* @__PURE__ */ Q(wr, {
|
|
24355
24355
|
content: e,
|
|
24356
24356
|
format: "markdown"
|
|
24357
24357
|
});
|
|
@@ -24360,7 +24360,7 @@ function mU({ message: e, readable: t, isAsker: n, collapsible: r = !1 }) {
|
|
|
24360
24360
|
if (!t) return null;
|
|
24361
24361
|
let { body: c, attachments: l, fullAnswerUrl: u } = t, d = r && c.length > fU, f = d && !o, p = qR(l), m = l.filter(KR), h = !!a.renderMarkdown, g = a.renderMarkdown ?? pU;
|
|
24362
24362
|
return /* @__PURE__ */ $(Z, { children: [
|
|
24363
|
-
c ? /* @__PURE__ */ Q(
|
|
24363
|
+
c ? /* @__PURE__ */ Q(Ar, { children: /* @__PURE__ */ Q("div", {
|
|
24364
24364
|
className: B("w-full min-w-0", h && "[&>div]:flex [&>div]:flex-col [&>div]:gap-3", f && "max-h-32 overflow-hidden"),
|
|
24365
24365
|
children: g(c)
|
|
24366
24366
|
}) }) : null,
|
|
@@ -24376,7 +24376,7 @@ function mU({ message: e, readable: t, isAsker: n, collapsible: r = !1 }) {
|
|
|
24376
24376
|
}) : null,
|
|
24377
24377
|
u && n ? /* @__PURE__ */ Q("div", {
|
|
24378
24378
|
className: "text-sm",
|
|
24379
|
-
children: /* @__PURE__ */ Q(
|
|
24379
|
+
children: /* @__PURE__ */ Q(No, {
|
|
24380
24380
|
href: u,
|
|
24381
24381
|
target: "_blank",
|
|
24382
24382
|
stopPropagation: !0,
|
|
@@ -24563,7 +24563,7 @@ var xU = Yu(function({ message: e, answer: t }) {
|
|
|
24563
24563
|
children: [/* @__PURE__ */ $("div", {
|
|
24564
24564
|
className: "flex min-w-0 items-center gap-1.5 text-sm",
|
|
24565
24565
|
children: [
|
|
24566
|
-
/* @__PURE__ */ Q(
|
|
24566
|
+
/* @__PURE__ */ Q(_r, {
|
|
24567
24567
|
size: "xs",
|
|
24568
24568
|
"aria-hidden": !0,
|
|
24569
24569
|
className: "shrink-0"
|
|
@@ -24860,7 +24860,7 @@ var xU = Yu(function({ message: e, answer: t }) {
|
|
|
24860
24860
|
"data-testid": "chat-date-separator",
|
|
24861
24861
|
children: /* @__PURE__ */ $("span", {
|
|
24862
24862
|
className: "flex items-center gap-1.5 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2.5 py-0.5",
|
|
24863
|
-
children: [n ? /* @__PURE__ */ Q(
|
|
24863
|
+
children: [n ? /* @__PURE__ */ Q(jc, {
|
|
24864
24864
|
size: "small",
|
|
24865
24865
|
className: "h-3.5 w-3.5"
|
|
24866
24866
|
}) : null, /* @__PURE__ */ Q("span", {
|
|
@@ -25175,7 +25175,7 @@ function iG({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
25175
25175
|
M.current = i && Math.abs(i.scrollTop - r) < 1 ? null : {
|
|
25176
25176
|
target: r,
|
|
25177
25177
|
smooth: t.behavior === "smooth"
|
|
25178
|
-
},
|
|
25178
|
+
}, wc(e, t, n);
|
|
25179
25179
|
}, []), F = Y(0), I = Y(/* @__PURE__ */ new Map()), ee = G((e) => {
|
|
25180
25180
|
let n = C.current[e];
|
|
25181
25181
|
if (!n) return 0;
|
|
@@ -25194,7 +25194,7 @@ function iG({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
25194
25194
|
size: i
|
|
25195
25195
|
}), i;
|
|
25196
25196
|
}, [t]), ne = G((t) => e[t]?.key ?? t, [e]), re = Y(/* @__PURE__ */ new Set()), [ie, ae] = X(0), oe = Y(null), se = G((e) => {
|
|
25197
|
-
let t = oe.current, n =
|
|
25197
|
+
let t = oe.current, n = Mc(e);
|
|
25198
25198
|
if (!t) return n;
|
|
25199
25199
|
let r = t.measurementsCache, i = t.scrollRect?.height ?? 0, a = r[e.startIndex]?.start ?? 0, o = r[e.endIndex]?.end ?? 0, s = e.startIndex;
|
|
25200
25200
|
for (; s > 0 && a - (r[s - 1]?.start ?? 0) < qW;) --s;
|
|
@@ -25217,7 +25217,7 @@ function iG({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
25217
25217
|
le.current = i;
|
|
25218
25218
|
let a = oe.current;
|
|
25219
25219
|
return a && (a.options.scrollPaddingStart = i), r;
|
|
25220
|
-
}, []), fe =
|
|
25220
|
+
}, []), fe = Oc({
|
|
25221
25221
|
count: e.length,
|
|
25222
25222
|
getScrollElement: () => y,
|
|
25223
25223
|
estimateSize: ee,
|
|
@@ -25718,7 +25718,7 @@ var aG = ({ channel: e }) => {
|
|
|
25718
25718
|
},
|
|
25719
25719
|
transition: {
|
|
25720
25720
|
duration: r,
|
|
25721
|
-
ease:
|
|
25721
|
+
ease: mr
|
|
25722
25722
|
},
|
|
25723
25723
|
children: /* @__PURE__ */ Q(Ln.div, {
|
|
25724
25724
|
className: "pointer-events-auto",
|
|
@@ -25726,9 +25726,9 @@ var aG = ({ channel: e }) => {
|
|
|
25726
25726
|
animate: { scale: 1 },
|
|
25727
25727
|
transition: {
|
|
25728
25728
|
duration: r,
|
|
25729
|
-
ease:
|
|
25729
|
+
ease: mr
|
|
25730
25730
|
},
|
|
25731
|
-
children: /* @__PURE__ */ Q(
|
|
25731
|
+
children: /* @__PURE__ */ Q(fi, {
|
|
25732
25732
|
label: l,
|
|
25733
25733
|
showLabel: t > 0 || n,
|
|
25734
25734
|
onClick: () => {
|
|
@@ -26028,7 +26028,7 @@ var aG = ({ channel: e }) => {
|
|
|
26028
26028
|
onJumpToBottom: Te
|
|
26029
26029
|
}) : null]
|
|
26030
26030
|
});
|
|
26031
|
-
}, vG = Ju(() => import("./ChatPostComposerDialog-
|
|
26031
|
+
}, vG = Ju(() => import("./ChatPostComposerDialog-K_Vnt0ro.js").then((e) => ({ default: e.ChatPostComposerDialog }))), yG = () => {
|
|
26032
26032
|
let e = R(), { createPost: t, composePost: n, searchMembers: r } = zu(), i = Du(), [a, o] = X(!1);
|
|
26033
26033
|
return !t && !n ? null : /* @__PURE__ */ $("div", {
|
|
26034
26034
|
className: "pointer-events-none shrink-0 p-4 pt-0",
|
|
@@ -26170,7 +26170,7 @@ var aG = ({ channel: e }) => {
|
|
|
26170
26170
|
variant: "outline",
|
|
26171
26171
|
size: "sm",
|
|
26172
26172
|
label: e.chat.retry,
|
|
26173
|
-
icon:
|
|
26173
|
+
icon: Or,
|
|
26174
26174
|
onClick: () => void t()
|
|
26175
26175
|
}) : null]
|
|
26176
26176
|
}) });
|
|
@@ -26187,14 +26187,14 @@ var aG = ({ channel: e }) => {
|
|
|
26187
26187
|
}, kG = () => /* @__PURE__ */ Q("div", {
|
|
26188
26188
|
className: "shadow-sm pointer-events-none absolute bottom-2 left-2 z-20 flex rounded bg-f1-background p-1",
|
|
26189
26189
|
"data-testid": "chat-composer-attachment-uploading",
|
|
26190
|
-
children: /* @__PURE__ */ Q(
|
|
26190
|
+
children: /* @__PURE__ */ Q(jc, { size: "small" })
|
|
26191
26191
|
}), AG = ({ attachment: e, uploading: t, onRemove: n, onOpen: r }) => {
|
|
26192
26192
|
let i = R(), a = {
|
|
26193
26193
|
label: i.t("chat.removeNamedFile", { name: e.kind === "location" ? e.name ?? i.chat.location : e.kind === "voice" ? i.chat.voiceNote : e.name }),
|
|
26194
|
-
icon:
|
|
26194
|
+
icon: to,
|
|
26195
26195
|
onClick: n
|
|
26196
26196
|
};
|
|
26197
|
-
return e.kind === "image" || e.kind === "file" ? /* @__PURE__ */ Q(
|
|
26197
|
+
return e.kind === "image" || e.kind === "file" ? /* @__PURE__ */ Q(Ei, {
|
|
26198
26198
|
attachment: e,
|
|
26199
26199
|
status: t ? "uploading" : "ready",
|
|
26200
26200
|
removeLabel: a.label,
|
|
@@ -26268,7 +26268,7 @@ var aG = ({ channel: e }) => {
|
|
|
26268
26268
|
...n,
|
|
26269
26269
|
text: t
|
|
26270
26270
|
} : n))), p = (e) => s((t) => IG(t.filter((t) => t.id !== e)));
|
|
26271
|
-
return /* @__PURE__ */ Q(
|
|
26271
|
+
return /* @__PURE__ */ Q(ha, {
|
|
26272
26272
|
isOpen: !0,
|
|
26273
26273
|
onClose: t,
|
|
26274
26274
|
width: "sm",
|
|
@@ -26292,7 +26292,7 @@ var aG = ({ channel: e }) => {
|
|
|
26292
26292
|
className: "flex flex-col gap-4",
|
|
26293
26293
|
"data-testid": "chat-poll-composer",
|
|
26294
26294
|
children: [
|
|
26295
|
-
/* @__PURE__ */ Q(
|
|
26295
|
+
/* @__PURE__ */ Q(Zo, {
|
|
26296
26296
|
label: n.chat.poll.question,
|
|
26297
26297
|
placeholder: n.chat.poll.questionPlaceholder,
|
|
26298
26298
|
value: i,
|
|
@@ -26310,7 +26310,7 @@ var aG = ({ channel: e }) => {
|
|
|
26310
26310
|
onBlur: () => s(IG),
|
|
26311
26311
|
children: [/* @__PURE__ */ Q("div", {
|
|
26312
26312
|
className: "min-w-0 flex-1",
|
|
26313
|
-
children: /* @__PURE__ */ Q(
|
|
26313
|
+
children: /* @__PURE__ */ Q(Zo, {
|
|
26314
26314
|
hideLabel: !0,
|
|
26315
26315
|
label: `${n.chat.poll.options} ${t + 1}`,
|
|
26316
26316
|
placeholder: n.chat.poll.optionPlaceholder,
|
|
@@ -26325,7 +26325,7 @@ var aG = ({ channel: e }) => {
|
|
|
26325
26325
|
variant: "ghost",
|
|
26326
26326
|
size: "md",
|
|
26327
26327
|
hideLabel: !0,
|
|
26328
|
-
icon:
|
|
26328
|
+
icon: to,
|
|
26329
26329
|
label: n.chat.poll.removeOption,
|
|
26330
26330
|
onClick: () => p(e.id)
|
|
26331
26331
|
})]
|
|
@@ -26338,7 +26338,7 @@ var aG = ({ channel: e }) => {
|
|
|
26338
26338
|
htmlFor: r,
|
|
26339
26339
|
className: "text-md font-medium text-f1-foreground-secondary",
|
|
26340
26340
|
children: n.chat.poll.allowMultipleAnswers
|
|
26341
|
-
}), /* @__PURE__ */ Q(
|
|
26341
|
+
}), /* @__PURE__ */ Q(Dc, {
|
|
26342
26342
|
id: r,
|
|
26343
26343
|
hideLabel: !0,
|
|
26344
26344
|
title: n.chat.poll.allowMultipleAnswers,
|
|
@@ -26352,16 +26352,16 @@ var aG = ({ channel: e }) => {
|
|
|
26352
26352
|
}, zG = ({ onAttach: e, canAttach: t, onEmoji: n, onCreatePoll: r }) => {
|
|
26353
26353
|
let i = R(), [a, o] = X(!1), [s, c] = X(!1), [l, u] = X(!1), d = [{
|
|
26354
26354
|
label: i.chat.files,
|
|
26355
|
-
icon:
|
|
26355
|
+
icon: rs,
|
|
26356
26356
|
onClick: e,
|
|
26357
26357
|
disabled: !t
|
|
26358
26358
|
}, {
|
|
26359
26359
|
label: i.chat.poll.menu,
|
|
26360
|
-
icon:
|
|
26360
|
+
icon: ga,
|
|
26361
26361
|
onClick: () => u(!0)
|
|
26362
26362
|
}];
|
|
26363
26363
|
return /* @__PURE__ */ $(Z, { children: [
|
|
26364
|
-
r ? /* @__PURE__ */ Q(
|
|
26364
|
+
r ? /* @__PURE__ */ Q(Zi, {
|
|
26365
26365
|
items: d,
|
|
26366
26366
|
align: "start",
|
|
26367
26367
|
side: "top",
|
|
@@ -26373,7 +26373,7 @@ var aG = ({ channel: e }) => {
|
|
|
26373
26373
|
size: "md",
|
|
26374
26374
|
hideLabel: !0,
|
|
26375
26375
|
label: i.chat.composerMenu,
|
|
26376
|
-
icon:
|
|
26376
|
+
icon: ul,
|
|
26377
26377
|
pressed: s
|
|
26378
26378
|
})
|
|
26379
26379
|
}) : /* @__PURE__ */ Q(V, {
|
|
@@ -26382,7 +26382,7 @@ var aG = ({ channel: e }) => {
|
|
|
26382
26382
|
size: "md",
|
|
26383
26383
|
hideLabel: !0,
|
|
26384
26384
|
label: i.chat.attachFile,
|
|
26385
|
-
icon:
|
|
26385
|
+
icon: rs,
|
|
26386
26386
|
onClick: e,
|
|
26387
26387
|
disabled: !t
|
|
26388
26388
|
}),
|
|
@@ -26403,7 +26403,7 @@ var aG = ({ channel: e }) => {
|
|
|
26403
26403
|
size: "md",
|
|
26404
26404
|
hideLabel: !0,
|
|
26405
26405
|
label: i.chat.addEmoji,
|
|
26406
|
-
icon:
|
|
26406
|
+
icon: Ki,
|
|
26407
26407
|
pressed: a
|
|
26408
26408
|
})
|
|
26409
26409
|
}), /* @__PURE__ */ Q(Il, {
|
|
@@ -26458,7 +26458,7 @@ var aG = ({ channel: e }) => {
|
|
|
26458
26458
|
size: "sm",
|
|
26459
26459
|
hideLabel: !0,
|
|
26460
26460
|
label: n.chat.cancelEdit,
|
|
26461
|
-
icon:
|
|
26461
|
+
icon: to,
|
|
26462
26462
|
onClick: t
|
|
26463
26463
|
})
|
|
26464
26464
|
})
|
|
@@ -26486,7 +26486,7 @@ function VG({ message: e }) {
|
|
|
26486
26486
|
children: [/* @__PURE__ */ Q("div", {
|
|
26487
26487
|
"aria-hidden": "true",
|
|
26488
26488
|
className: "h-6 w-6 flex-shrink-0",
|
|
26489
|
-
children: /* @__PURE__ */ Q(
|
|
26489
|
+
children: /* @__PURE__ */ Q(vr, {
|
|
26490
26490
|
type: "warning",
|
|
26491
26491
|
size: "sm"
|
|
26492
26492
|
})
|
|
@@ -26538,7 +26538,7 @@ var HG = ({ message: e, onRemove: t }) => {
|
|
|
26538
26538
|
size: "sm",
|
|
26539
26539
|
hideLabel: !0,
|
|
26540
26540
|
label: n.chat.removeQuote,
|
|
26541
|
-
icon:
|
|
26541
|
+
icon: to,
|
|
26542
26542
|
onClick: t
|
|
26543
26543
|
})
|
|
26544
26544
|
})
|
|
@@ -26725,7 +26725,7 @@ function sK({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
|
|
|
26725
26725
|
if (!g || !m) return null;
|
|
26726
26726
|
let e = i.current;
|
|
26727
26727
|
if (!e) return null;
|
|
26728
|
-
let t =
|
|
26728
|
+
let t = kr(e, m.colonIndex);
|
|
26729
26729
|
return {
|
|
26730
26730
|
left: e.offsetLeft + t.left,
|
|
26731
26731
|
bottom: (e.offsetParent ? e.offsetParent.offsetHeight : 0) - (e.offsetTop + t.top)
|
|
@@ -27046,7 +27046,7 @@ var bK = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
27046
27046
|
size: e.size,
|
|
27047
27047
|
mimeType: e.type
|
|
27048
27048
|
}, DK = (e, t) => e && t, OK = (e, { maxFileSizeBytes: t, maxFiles: n, attached: r, labels: i }) => {
|
|
27049
|
-
let a = t === void 0 ? [] : e.filter((e) => e.size > t), o = t !== void 0 && a.length > 0 ? i.fileTooLargeError.replace("{{maxFileSize}}",
|
|
27049
|
+
let a = t === void 0 ? [] : e.filter((e) => e.size > t), o = t !== void 0 && a.length > 0 ? i.fileTooLargeError.replace("{{maxFileSize}}", Aa(t)) : null, s = e.filter((e) => !a.includes(e));
|
|
27050
27050
|
if (n === void 0 || r + s.length <= n) return {
|
|
27051
27051
|
tooLarge: a,
|
|
27052
27052
|
accepted: s,
|
|
@@ -27059,7 +27059,7 @@ var bK = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
27059
27059
|
error: o === null ? c : `${o}. ${c}`
|
|
27060
27060
|
};
|
|
27061
27061
|
}, kK = () => {
|
|
27062
|
-
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 } = zu(), h = bK(p, d.type), g = !!a && HR("canUpload", d.type, p), { target: _ } = pL(), { clearComposeTarget: v, registerComposerHandle: y } = mL(), b = _K(), { registerFileDropHandler: x } = hL(), S = Du(), { reducedMotion: C, composerVariant: w, isComposerMarkdown: T } = ML(), E = Xu(UG), D = UI(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 } =
|
|
27062
|
+
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 } = zu(), h = bK(p, d.type), g = !!a && HR("canUpload", d.type, p), { target: _ } = pL(), { clearComposeTarget: v, registerComposerHandle: y } = mL(), b = _K(), { registerFileDropHandler: x } = hL(), S = Du(), { reducedMotion: C, composerVariant: w, isComposerMarkdown: T } = ML(), E = Xu(UG), D = UI(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 } = _s(), ne = _.kind === "edit", re = _.kind === "edit" ? _.message : null, ie = _.kind === "reply" ? _.message : null, ae = mK({
|
|
27063
27063
|
composerRef: k,
|
|
27064
27064
|
canAskOne: h,
|
|
27065
27065
|
isEditing: ne,
|
|
@@ -27178,21 +27178,21 @@ var bK = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
27178
27178
|
let e = [];
|
|
27179
27179
|
for (let { status: t, attachment: n } of xe) if (t === "ready") {
|
|
27180
27180
|
if (n.kind === "image") {
|
|
27181
|
-
let t =
|
|
27181
|
+
let t = Bo(e.length, n.url);
|
|
27182
27182
|
e.push({
|
|
27183
27183
|
file: n,
|
|
27184
|
-
item:
|
|
27184
|
+
item: Wa(n, t)
|
|
27185
27185
|
});
|
|
27186
27186
|
} else if (n.kind === "file") {
|
|
27187
|
-
let t =
|
|
27187
|
+
let t = Bo(e.length, n.url);
|
|
27188
27188
|
e.push({
|
|
27189
27189
|
file: n,
|
|
27190
|
-
item:
|
|
27190
|
+
item: Ra(n, t, { inferImages: !1 })
|
|
27191
27191
|
});
|
|
27192
27192
|
}
|
|
27193
27193
|
}
|
|
27194
27194
|
return e;
|
|
27195
|
-
}, [xe]), Ce =
|
|
27195
|
+
}, [xe]), Ce = na(Se, "composer"), { closeDraft: we } = gH(), Te = Y(0);
|
|
27196
27196
|
K(() => {
|
|
27197
27197
|
Te.current = A.length;
|
|
27198
27198
|
}, [A]);
|
|
@@ -27381,7 +27381,7 @@ var bK = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
27381
27381
|
});
|
|
27382
27382
|
}, [S]), Be = {
|
|
27383
27383
|
duration: O ? 0 : .18,
|
|
27384
|
-
ease:
|
|
27384
|
+
ease: mr
|
|
27385
27385
|
}, Ve = J(() => [...A.map((e) => e.attachment), ...ie?.attachments ?? []], [A, ie]), He = yK({
|
|
27386
27386
|
visible: ae.showHint,
|
|
27387
27387
|
attachments: Ve
|
|
@@ -27429,7 +27429,7 @@ var bK = (e, t) => e?.canAskOne === !0 && t !== "announcement" && t !== "communi
|
|
|
27429
27429
|
}, "reply-chip") : null
|
|
27430
27430
|
}), We = (e) => Se.some((t) => t.file === e && t.item !== null) ? () => {
|
|
27431
27431
|
Ce.openFile(e);
|
|
27432
|
-
} : void 0, Ge = /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(VG, { message: He }), /* @__PURE__ */ Q(
|
|
27432
|
+
} : void 0, Ge = /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(VG, { message: He }), /* @__PURE__ */ Q(la, {
|
|
27433
27433
|
items: xe.map((e) => ({
|
|
27434
27434
|
id: e.id,
|
|
27435
27435
|
content: /* @__PURE__ */ Q(jG, {
|
|
@@ -28023,7 +28023,7 @@ var eq = bn(Tn("F0ENPSButton", $K)), tq = {
|
|
|
28023
28023
|
children: e
|
|
28024
28024
|
}) : null
|
|
28025
28025
|
});
|
|
28026
|
-
}), { Skeleton: Ge.Skeleton }), mq =
|
|
28026
|
+
}), { Skeleton: Ge.Skeleton }), mq = os(Ku(function({ canBeBlurred: e, ...t }, n) {
|
|
28027
28027
|
let r = {
|
|
28028
28028
|
...t,
|
|
28029
28029
|
header: {
|
|
@@ -28051,7 +28051,7 @@ var eq = bn(Tn("F0ENPSButton", $K)), tq = {
|
|
|
28051
28051
|
...e.chart
|
|
28052
28052
|
})
|
|
28053
28053
|
});
|
|
28054
|
-
}), _q = Tn("BarChartWidget",
|
|
28054
|
+
}), _q = Tn("BarChartWidget", os(gq, pq.Skeleton)), vq = os(Ku(function(e, t) {
|
|
28055
28055
|
return /* @__PURE__ */ Q(pq, {
|
|
28056
28056
|
ref: t,
|
|
28057
28057
|
...e,
|
|
@@ -28060,19 +28060,19 @@ var eq = bn(Tn("F0ENPSButton", $K)), tq = {
|
|
|
28060
28060
|
...e.chart
|
|
28061
28061
|
})
|
|
28062
28062
|
});
|
|
28063
|
-
}), pq.Skeleton), yq = Tn("LineChartWidget", vq), bq =
|
|
28063
|
+
}), pq.Skeleton), yq = Tn("LineChartWidget", vq), bq = os(Ku(function(e, t) {
|
|
28064
28064
|
return /* @__PURE__ */ Q(pq, {
|
|
28065
28065
|
ref: t,
|
|
28066
28066
|
...e,
|
|
28067
28067
|
chart: /* @__PURE__ */ Q(k, { ...e.chart })
|
|
28068
28068
|
});
|
|
28069
|
-
}), pq.Skeleton), xq = Tn("PieChartWidget", bq), Sq =
|
|
28069
|
+
}), pq.Skeleton), xq = Tn("PieChartWidget", bq), Sq = os(Ku(function(e, t) {
|
|
28070
28070
|
return /* @__PURE__ */ Q(pq, {
|
|
28071
28071
|
ref: t,
|
|
28072
28072
|
...e,
|
|
28073
28073
|
chart: null
|
|
28074
28074
|
});
|
|
28075
|
-
}), pq.Skeleton), Cq = Tn("SummariesWidget", Sq), wq =
|
|
28075
|
+
}), pq.Skeleton), Cq = Tn("SummariesWidget", Sq), wq = os(Ku(function(e, t) {
|
|
28076
28076
|
return /* @__PURE__ */ Q(pq, {
|
|
28077
28077
|
ref: t,
|
|
28078
28078
|
...e,
|
|
@@ -28370,13 +28370,13 @@ var eq = bn(Tn("F0ENPSButton", $K)), tq = {
|
|
|
28370
28370
|
"bar-chart": "promote"
|
|
28371
28371
|
}, Rq = Ku(function({ title: e, content: t, buttonLabel: n, buttonIcon: r, buttonAction: i, type: a }, o) {
|
|
28372
28372
|
let s = Pq[a], c = Fq[a], l = Iq[a], u = Lq[a];
|
|
28373
|
-
return /* @__PURE__ */ $(
|
|
28373
|
+
return /* @__PURE__ */ $(wa, {
|
|
28374
28374
|
className: B("relative flex gap-4 overflow-hidden border-dashed", s),
|
|
28375
28375
|
ref: o,
|
|
28376
|
-
children: [/* @__PURE__ */ Q(
|
|
28376
|
+
children: [/* @__PURE__ */ Q(bo, {
|
|
28377
28377
|
className: "-mt-0.5",
|
|
28378
|
-
children: /* @__PURE__ */ Q(
|
|
28379
|
-
}), /* @__PURE__ */ $(
|
|
28378
|
+
children: /* @__PURE__ */ Q(za, { children: e })
|
|
28379
|
+
}), /* @__PURE__ */ $($o, {
|
|
28380
28380
|
className: B("flex flex-col gap-4", c),
|
|
28381
28381
|
children: [/* @__PURE__ */ $("div", {
|
|
28382
28382
|
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),
|
|
@@ -28587,7 +28587,7 @@ function Yq({ id: e, title: t, subtitle: n, avatars: r, remainingCount: i, withP
|
|
|
28587
28587
|
withEmoji: "emoji" in s && !!s.emoji,
|
|
28588
28588
|
withPointerCursor: a,
|
|
28589
28589
|
children: [
|
|
28590
|
-
"alert" in s && s.alert ? /* @__PURE__ */ Q(
|
|
28590
|
+
"alert" in s && s.alert ? /* @__PURE__ */ Q(vr, { type: s.alert }) : null,
|
|
28591
28591
|
"emoji" in s && s.emoji ? /* @__PURE__ */ Q(ec, { emoji: s.emoji }) : null,
|
|
28592
28592
|
/* @__PURE__ */ $("div", {
|
|
28593
28593
|
className: "flex-1",
|
|
@@ -28685,8 +28685,8 @@ function tJ({ id: e, title: t, alert: n, rawTag: r, count: i, icon: a, rightIcon
|
|
|
28685
28685
|
}), /* @__PURE__ */ $("div", {
|
|
28686
28686
|
className: "flex flex-row items-center gap-2",
|
|
28687
28687
|
children: [
|
|
28688
|
-
n ? /* @__PURE__ */ Q(
|
|
28689
|
-
r ? /* @__PURE__ */ Q(
|
|
28688
|
+
n ? /* @__PURE__ */ Q(yc, { ...n }) : null,
|
|
28689
|
+
r ? /* @__PURE__ */ Q(Zc, { ...r }) : null,
|
|
28690
28690
|
i ? /* @__PURE__ */ Q(Pn, { value: i }) : null
|
|
28691
28691
|
]
|
|
28692
28692
|
})]
|
|
@@ -28763,7 +28763,7 @@ var oJ = aJ, sJ = ({ title: e, info: t }) => /* @__PURE__ */ $("div", {
|
|
|
28763
28763
|
label: n.label,
|
|
28764
28764
|
description: n.description,
|
|
28765
28765
|
children: /* @__PURE__ */ Q(U, {
|
|
28766
|
-
icon:
|
|
28766
|
+
icon: Gc,
|
|
28767
28767
|
size: "sm"
|
|
28768
28768
|
})
|
|
28769
28769
|
})
|
|
@@ -28851,7 +28851,7 @@ var uJ = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, dJ = {
|
|
|
28851
28851
|
color: dJ.empty
|
|
28852
28852
|
}), c;
|
|
28853
28853
|
}, hJ = ({ data: e = [], remainingMinutes: t, trackedMinutes: n = 0 }) => {
|
|
28854
|
-
let r = e.find((e) => e.variant === "clocked-in")?.from, i = e.at(-1), a = r ?
|
|
28854
|
+
let r = e.find((e) => e.variant === "clocked-in")?.from, i = e.at(-1), a = r ? mi(r) : fJ, o = t === void 0 || t > 0 ? fJ : i ? mi(i.to) : fJ, 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);
|
|
28855
28855
|
return {
|
|
28856
28856
|
primaryLabel: a,
|
|
28857
28857
|
secondaryLabel: o,
|
|
@@ -28863,7 +28863,7 @@ var uJ = (e, t) => ((t ?? 0) < -1 * (e ?? 0) ? -1 * e : t) ?? 0, dJ = {
|
|
|
28863
28863
|
}, vJ = (e) => {
|
|
28864
28864
|
if (!e.from || !e.to) return;
|
|
28865
28865
|
let t = Math.round((e.to.getTime() - e.from.getTime()) / 6e4);
|
|
28866
|
-
return [`${
|
|
28866
|
+
return [`${mi(e.from)} – ${mi(e.to)} (${_J(t)})`, e.label].filter(Boolean).join(gJ);
|
|
28867
28867
|
};
|
|
28868
28868
|
function yJ({ segments: e }) {
|
|
28869
28869
|
let t = e.map(vJ);
|
|
@@ -28921,7 +28921,7 @@ function bJ({ data: e = [], trackedMinutes: t = 0, remainingMinutes: n, variant:
|
|
|
28921
28921
|
dataKey: "value",
|
|
28922
28922
|
strokeWidth: 0,
|
|
28923
28923
|
isAnimationActive: !1,
|
|
28924
|
-
children: i.map((e, t) => /* @__PURE__ */ Q(
|
|
28924
|
+
children: i.map((e, t) => /* @__PURE__ */ Q(Qo, {
|
|
28925
28925
|
fill: e.color,
|
|
28926
28926
|
role: "presentation",
|
|
28927
28927
|
"aria-label": `${e.value} minutes`
|
|
@@ -29047,7 +29047,7 @@ function kJ({ items: e, value: t, onChange: n, label: r, searchPlaceholder: i, f
|
|
|
29047
29047
|
},
|
|
29048
29048
|
disabled: s
|
|
29049
29049
|
};
|
|
29050
|
-
return f ? /* @__PURE__ */ Q(
|
|
29050
|
+
return f ? /* @__PURE__ */ Q(sl, {
|
|
29051
29051
|
...h,
|
|
29052
29052
|
source: m,
|
|
29053
29053
|
mapOptions: (e) => ({
|
|
@@ -29056,7 +29056,7 @@ function kJ({ items: e, value: t, onChange: n, label: r, searchPlaceholder: i, f
|
|
|
29056
29056
|
icon: e.icon,
|
|
29057
29057
|
selectedLabel: e.path
|
|
29058
29058
|
})
|
|
29059
|
-
}) : /* @__PURE__ */ Q(
|
|
29059
|
+
}) : /* @__PURE__ */ Q(sl, {
|
|
29060
29060
|
...h,
|
|
29061
29061
|
options: c.map((e) => ({
|
|
29062
29062
|
value: e.id,
|
|
@@ -29081,7 +29081,7 @@ function jJ({ locations: e, locationId: t, onChangeLocationId: n, label: r, sear
|
|
|
29081
29081
|
onChange: n,
|
|
29082
29082
|
label: r,
|
|
29083
29083
|
searchPlaceholder: i,
|
|
29084
|
-
fieldIcon:
|
|
29084
|
+
fieldIcon: ia,
|
|
29085
29085
|
required: a,
|
|
29086
29086
|
disabled: o
|
|
29087
29087
|
});
|
|
@@ -29101,7 +29101,7 @@ function NJ({ projects: e, projectId: t, onChangeProjectId: n, label: r, searchP
|
|
|
29101
29101
|
onChange: n,
|
|
29102
29102
|
label: r,
|
|
29103
29103
|
searchPlaceholder: i,
|
|
29104
|
-
fieldIcon:
|
|
29104
|
+
fieldIcon: di,
|
|
29105
29105
|
required: a,
|
|
29106
29106
|
disabled: o
|
|
29107
29107
|
});
|
|
@@ -29121,7 +29121,7 @@ function PJ({ text: e, placeholder: t, icon: n, onClick: r }) {
|
|
|
29121
29121
|
className: B("font-medium", e ? "text-f1-foreground" : "text-f1-foreground-secondary"),
|
|
29122
29122
|
children: e ?? t
|
|
29123
29123
|
}),
|
|
29124
|
-
/* @__PURE__ */ Q(U, { icon:
|
|
29124
|
+
/* @__PURE__ */ Q(U, { icon: Di })
|
|
29125
29125
|
]
|
|
29126
29126
|
});
|
|
29127
29127
|
}
|
|
@@ -29232,7 +29232,7 @@ function VJ({ locations: e, locationId: t, onChangeLocationId: n, projects: r, p
|
|
|
29232
29232
|
let c = AJ(e), l = MJ(r), u = RJ(c, t), d = BJ({
|
|
29233
29233
|
locationPath: u,
|
|
29234
29234
|
projectPath: RJ(l, i)
|
|
29235
|
-
}), f = [...u].reverse().find((e) => e.icon)?.icon ?? (e.length ?
|
|
29235
|
+
}), f = [...u].reverse().find((e) => e.icon)?.icon ?? (e.length ? ia : di), p = [
|
|
29236
29236
|
...c.length ? [{
|
|
29237
29237
|
type: "label",
|
|
29238
29238
|
text: o.selectLocation
|
|
@@ -29243,7 +29243,7 @@ function VJ({ locations: e, locationId: t, onChangeLocationId: n, projects: r, p
|
|
|
29243
29243
|
text: o.selectProject
|
|
29244
29244
|
}, ...zJ(l, i, a)] : []
|
|
29245
29245
|
], m = [e.length ? o.selectLocation : void 0, r.length ? o.selectProject : void 0].filter(Boolean).join(LJ);
|
|
29246
|
-
return /* @__PURE__ */ Q(
|
|
29246
|
+
return /* @__PURE__ */ Q(Ao, {
|
|
29247
29247
|
items: p,
|
|
29248
29248
|
align: "end",
|
|
29249
29249
|
disabled: s,
|
|
@@ -29307,7 +29307,7 @@ function KJ({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
29307
29307
|
value: e.id,
|
|
29308
29308
|
label: e.name,
|
|
29309
29309
|
icon: e.icon
|
|
29310
|
-
})), oe = A === "break", [se, ce] = X(!1), le = ne ? /* @__PURE__ */ Q(
|
|
29310
|
+
})), oe = A === "break", [se, ce] = X(!1), le = ne ? /* @__PURE__ */ Q(sl, {
|
|
29311
29311
|
label: r.selectLocation,
|
|
29312
29312
|
hideLabel: !0,
|
|
29313
29313
|
value: i,
|
|
@@ -29324,7 +29324,7 @@ function KJ({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
29324
29324
|
icon: ie?.icon
|
|
29325
29325
|
})
|
|
29326
29326
|
})
|
|
29327
|
-
}) : ie ? /* @__PURE__ */ Q(
|
|
29327
|
+
}) : ie ? /* @__PURE__ */ Q(Zc, {
|
|
29328
29328
|
text: ie.name,
|
|
29329
29329
|
icon: ie.icon
|
|
29330
29330
|
}) : null, ue = a.length ? /* @__PURE__ */ Q(jJ, {
|
|
@@ -29354,7 +29354,7 @@ function KJ({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
29354
29354
|
}) : null,
|
|
29355
29355
|
A === "clocked-in" ? /* @__PURE__ */ $(Z, { children: [p ? /* @__PURE__ */ Q(Z, { children: P.length > 1 && f ? /* @__PURE__ */ Q("div", {
|
|
29356
29356
|
className: "shrink-0",
|
|
29357
|
-
children: /* @__PURE__ */ Q(
|
|
29357
|
+
children: /* @__PURE__ */ Q(sl, {
|
|
29358
29358
|
label: r.break,
|
|
29359
29359
|
hideLabel: !0,
|
|
29360
29360
|
value: "",
|
|
@@ -29382,7 +29382,7 @@ function KJ({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
29382
29382
|
onClick: l,
|
|
29383
29383
|
label: r.clockOut,
|
|
29384
29384
|
variant: "outline",
|
|
29385
|
-
icon:
|
|
29385
|
+
icon: qr
|
|
29386
29386
|
})] }) : null,
|
|
29387
29387
|
A === "break" ? fe === "clock-out" ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(H, {
|
|
29388
29388
|
onClick: c,
|
|
@@ -29393,12 +29393,12 @@ function KJ({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
29393
29393
|
}), /* @__PURE__ */ Q(H, {
|
|
29394
29394
|
onClick: l,
|
|
29395
29395
|
label: r.clockOut,
|
|
29396
|
-
icon:
|
|
29396
|
+
icon: qr
|
|
29397
29397
|
})] }) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(H, {
|
|
29398
29398
|
onClick: l,
|
|
29399
29399
|
label: r.clockOut,
|
|
29400
29400
|
variant: "outline",
|
|
29401
|
-
icon:
|
|
29401
|
+
icon: qr,
|
|
29402
29402
|
hideLabel: !0
|
|
29403
29403
|
}), /* @__PURE__ */ Q(H, {
|
|
29404
29404
|
onClick: c,
|
|
@@ -29408,7 +29408,7 @@ function KJ({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
29408
29408
|
] }), me = O === "horizontal-bar" ? ue : y ?? le, he = O === "horizontal-bar" ? de : v, ge = /* @__PURE__ */ $(Z, { children: [
|
|
29409
29409
|
o ? me : null,
|
|
29410
29410
|
_ ? he : null,
|
|
29411
|
-
oe && E ? /* @__PURE__ */ Q(
|
|
29411
|
+
oe && E ? /* @__PURE__ */ Q(Zc, { text: E }) : null
|
|
29412
29412
|
] }), _e = o && !!me, ve = _ && !!he, L = _e ? /* @__PURE__ */ Q("div", {
|
|
29413
29413
|
className: B("flex min-w-0 flex-1 flex-row", ne && HJ),
|
|
29414
29414
|
children: me
|
|
@@ -29615,9 +29615,9 @@ function KJ({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
29615
29615
|
//#endregion
|
|
29616
29616
|
//#region src/domains/employee-lifecycle/profile/Profile/TasksList/TaskItem/TaskItem.tsx
|
|
29617
29617
|
var qJ = {
|
|
29618
|
-
done:
|
|
29619
|
-
"in-progress":
|
|
29620
|
-
todo:
|
|
29618
|
+
done: Sa,
|
|
29619
|
+
"in-progress": _i,
|
|
29620
|
+
todo: Ba
|
|
29621
29621
|
}, JJ = {
|
|
29622
29622
|
done: "text-f1-icon-success",
|
|
29623
29623
|
"in-progress": "text-f1-icon-info",
|
|
@@ -29640,7 +29640,7 @@ function YJ({ task: e, status: t, onClick: n, hideIcon: r = !1 }) {
|
|
|
29640
29640
|
} : void 0,
|
|
29641
29641
|
rawTag: e.badge && !e.badge.isPastDue ? {
|
|
29642
29642
|
text: e.badge.text,
|
|
29643
|
-
icon:
|
|
29643
|
+
icon: ka
|
|
29644
29644
|
} : void 0,
|
|
29645
29645
|
count: e.counter,
|
|
29646
29646
|
onClick: i
|
|
@@ -29816,7 +29816,7 @@ function SY() {
|
|
|
29816
29816
|
variant: "ghost",
|
|
29817
29817
|
onClick: () => t(),
|
|
29818
29818
|
label: "Open main menu",
|
|
29819
|
-
icon:
|
|
29819
|
+
icon: ma,
|
|
29820
29820
|
hideLabel: !0
|
|
29821
29821
|
}) : null] });
|
|
29822
29822
|
}
|
|
@@ -29831,7 +29831,7 @@ var CY = Ku(function({ value: e, max: t = 100 }, n) {
|
|
|
29831
29831
|
className: "rounded transition-all duration-300 ease-in-out",
|
|
29832
29832
|
style: {
|
|
29833
29833
|
width: `${r}%`,
|
|
29834
|
-
backgroundColor:
|
|
29834
|
+
backgroundColor: cl("categorical-1")
|
|
29835
29835
|
}
|
|
29836
29836
|
}), /* @__PURE__ */ Q("div", {
|
|
29837
29837
|
className: "rounded bg-f1-foreground-disabled transition-all duration-300 ease-in-out",
|
|
@@ -30008,7 +30008,7 @@ function JY({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
30008
30008
|
}),
|
|
30009
30009
|
u,
|
|
30010
30010
|
m ? /* @__PURE__ */ Q(U, {
|
|
30011
|
-
icon:
|
|
30011
|
+
icon: hl,
|
|
30012
30012
|
size: "sm",
|
|
30013
30013
|
color: "secondary"
|
|
30014
30014
|
}) : null
|
|
@@ -30048,7 +30048,7 @@ function JY({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
30048
30048
|
size: y ? "md" : "sm",
|
|
30049
30049
|
onClick: e.onClick
|
|
30050
30050
|
});
|
|
30051
|
-
return e.items ? /* @__PURE__ */ Q(
|
|
30051
|
+
return e.items ? /* @__PURE__ */ Q(Ao, {
|
|
30052
30052
|
items: e.items,
|
|
30053
30053
|
align: "end",
|
|
30054
30054
|
open: b === e.label,
|
|
@@ -30130,7 +30130,7 @@ var YY = Bu.createContext(void 0), XY = ({ tracking: e, children: t }) => /* @__
|
|
|
30130
30130
|
module: t.module,
|
|
30131
30131
|
size: n
|
|
30132
30132
|
}) };
|
|
30133
|
-
if (e === "alert" && t.alert) return { left: /* @__PURE__ */ Q(
|
|
30133
|
+
if (e === "alert" && t.alert) return { left: /* @__PURE__ */ Q(vr, {
|
|
30134
30134
|
type: t.alert,
|
|
30135
30135
|
size: n
|
|
30136
30136
|
}) };
|
|
@@ -30150,7 +30150,7 @@ var YY = Bu.createContext(void 0), XY = ({ tracking: e, children: t }) => /* @__
|
|
|
30150
30150
|
avatarSize: r ? gX : n
|
|
30151
30151
|
} : {};
|
|
30152
30152
|
}, vX = (e, t, n, r) => {
|
|
30153
|
-
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(Pn, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(
|
|
30153
|
+
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(Pn, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(hr, {
|
|
30154
30154
|
date: w(t.date),
|
|
30155
30155
|
size: r ? "lg" : "md"
|
|
30156
30156
|
}) : void 0 : e.endsWith("-list") ? t.avatars && t.avatars.length > 0 ? /* @__PURE__ */ Q(dc, {
|
|
@@ -30246,7 +30246,7 @@ function SX({ params: e, ctx: t }) {
|
|
|
30246
30246
|
}
|
|
30247
30247
|
})
|
|
30248
30248
|
}) : null,
|
|
30249
|
-
/* @__PURE__ */ Q(
|
|
30249
|
+
/* @__PURE__ */ Q(ha, {
|
|
30250
30250
|
isOpen: l,
|
|
30251
30251
|
onClose: d,
|
|
30252
30252
|
title: s?.title,
|
|
@@ -30646,7 +30646,7 @@ function JX({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
30646
30646
|
size: "sm",
|
|
30647
30647
|
...e
|
|
30648
30648
|
}, t)),
|
|
30649
|
-
s ? /* @__PURE__ */ Q(
|
|
30649
|
+
s ? /* @__PURE__ */ Q(Zi, {
|
|
30650
30650
|
items: s.options.map((e) => ({
|
|
30651
30651
|
label: e.label,
|
|
30652
30652
|
...e.value === E ? { icon: bl } : e.icon ? { icon: e.icon } : {},
|
|
@@ -30779,7 +30779,7 @@ function tZ({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
30779
30779
|
let u = R(), { position: d, width: f, bodyClassName: m, asideClassName: h } = XX(), { formRef: g, getValues: _, trigger: v } = L(), [y, b] = X(r ?? {});
|
|
30780
30780
|
return K(() => {
|
|
30781
30781
|
e && b(r ?? {});
|
|
30782
|
-
}, [e, r]), /* @__PURE__ */ Q(
|
|
30782
|
+
}, [e, r]), /* @__PURE__ */ Q(ha, {
|
|
30783
30783
|
isOpen: e,
|
|
30784
30784
|
onClose: t,
|
|
30785
30785
|
title: c ?? u.widgets.editParamsTitle,
|
|
@@ -30861,7 +30861,7 @@ var nZ = (e) => {
|
|
|
30861
30861
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
30862
30862
|
}, dZ = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
30863
30863
|
className: "text-center text-f1-foreground-secondary",
|
|
30864
|
-
children: uZ(e).map((e, t) => /* @__PURE__ */ Q(Hu, { children: "href" in e ? /* @__PURE__ */ Q(
|
|
30864
|
+
children: uZ(e).map((e, t) => /* @__PURE__ */ Q(Hu, { children: "href" in e ? /* @__PURE__ */ Q(No, {
|
|
30865
30865
|
href: e.href,
|
|
30866
30866
|
children: e.label
|
|
30867
30867
|
}) : e.text }, t))
|
|
@@ -30966,10 +30966,10 @@ function EZ({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
30966
30966
|
let h = d && u != null && t >= (a?.threshold ?? xZ), g = Y(r);
|
|
30967
30967
|
g.current = r;
|
|
30968
30968
|
let _ = r.join(","), v = G((e) => {
|
|
30969
|
-
let t = new Set(
|
|
30969
|
+
let t = new Set(Mc(e));
|
|
30970
30970
|
for (let n of g.current) n >= 0 && n < e.count && t.add(n);
|
|
30971
30971
|
return [...t].sort((e, t) => e - t);
|
|
30972
|
-
}, [_]), y =
|
|
30972
|
+
}, [_]), y = Oc({
|
|
30973
30973
|
enabled: h,
|
|
30974
30974
|
count: t,
|
|
30975
30975
|
gap: n,
|
|
@@ -31088,7 +31088,7 @@ var DZ = ({ transform: e }) => ({
|
|
|
31088
31088
|
className: "flex w-full items-center justify-center rounded-xl border border-dashed border-f1-border py-4 text-f1-foreground-secondary hover:border-f1-border-hover hover:text-f1-foreground",
|
|
31089
31089
|
children: /* @__PURE__ */ Q(U, {
|
|
31090
31090
|
size: "md",
|
|
31091
|
-
icon:
|
|
31091
|
+
icon: ul
|
|
31092
31092
|
})
|
|
31093
31093
|
})
|
|
31094
31094
|
});
|
|
@@ -31137,15 +31137,15 @@ function RZ({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
31137
31137
|
let t = [...e.actions ?? []];
|
|
31138
31138
|
return oX(e.header, e.params)?.info && t.push({
|
|
31139
31139
|
label: O.widgets.whatThisMeans,
|
|
31140
|
-
icon:
|
|
31140
|
+
icon: Gc,
|
|
31141
31141
|
onClick: () => ue(e.id)
|
|
31142
31142
|
}), e.paramsSchema && y && t.push({
|
|
31143
31143
|
label: w ?? O.widgets.editParams,
|
|
31144
|
-
icon:
|
|
31144
|
+
icon: oi,
|
|
31145
31145
|
onClick: () => se(e.id)
|
|
31146
31146
|
}), k && !e.locked && d && (t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
31147
31147
|
label: C ?? O.widgets.removeWidget,
|
|
31148
|
-
icon:
|
|
31148
|
+
icon: qo,
|
|
31149
31149
|
critical: !0,
|
|
31150
31150
|
onClick: () => d(e.id)
|
|
31151
31151
|
})), t;
|
|
@@ -31184,7 +31184,7 @@ function RZ({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
31184
31184
|
className: "relative",
|
|
31185
31185
|
children: [o, /* @__PURE__ */ Q("div", {
|
|
31186
31186
|
className: "absolute right-3 top-3 z-10",
|
|
31187
|
-
children: /* @__PURE__ */ Q(
|
|
31187
|
+
children: /* @__PURE__ */ Q(Ao, {
|
|
31188
31188
|
items: r,
|
|
31189
31189
|
align: "end",
|
|
31190
31190
|
children: /* @__PURE__ */ Q(H, {
|
|
@@ -31309,14 +31309,14 @@ var zZ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
31309
31309
|
K(() => {
|
|
31310
31310
|
r && s(!0);
|
|
31311
31311
|
}, [r]);
|
|
31312
|
-
let c = o && !a, l = fY(e, c ? 180 : 0), d = e ? l || t ? "panel" : "retracting" : "column", f = d === "panel", p = !f || t, m =
|
|
31312
|
+
let c = o && !a, l = fY(e, c ? 180 : 0), d = e ? l || t ? "panel" : "retracting" : "column", f = d === "panel", p = !f || t, m = ii(i), h = u(m, (e) => `${e}px`);
|
|
31313
31313
|
return q(() => {
|
|
31314
31314
|
if (!r) return;
|
|
31315
31315
|
if (!c) {
|
|
31316
31316
|
m.jump(i);
|
|
31317
31317
|
return;
|
|
31318
31318
|
}
|
|
31319
|
-
let e =
|
|
31319
|
+
let e = Gr(m, i, uY);
|
|
31320
31320
|
return () => e.stop();
|
|
31321
31321
|
}, [
|
|
31322
31322
|
r,
|
|
@@ -31473,7 +31473,7 @@ var zZ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
31473
31473
|
"aria-label": be,
|
|
31474
31474
|
children: /* @__PURE__ */ Q(cu, { isExpanded: !L })
|
|
31475
31475
|
})
|
|
31476
|
-
}) : null, O ? null : /* @__PURE__ */ Q(
|
|
31476
|
+
}) : null, O ? null : /* @__PURE__ */ Q($a, {
|
|
31477
31477
|
tooltip: E,
|
|
31478
31478
|
autoOpen: D
|
|
31479
31479
|
})]
|
|
@@ -31561,7 +31561,7 @@ var zZ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
31561
31561
|
transition: eY(r.length, Pe.glyphDelayMs, j),
|
|
31562
31562
|
children: /* @__PURE__ */ Q(U, {
|
|
31563
31563
|
size: "md",
|
|
31564
|
-
icon:
|
|
31564
|
+
icon: ul
|
|
31565
31565
|
})
|
|
31566
31566
|
})
|
|
31567
31567
|
}) : null]
|
|
@@ -31624,9 +31624,9 @@ var zZ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
31624
31624
|
tracking: v,
|
|
31625
31625
|
children: Ge
|
|
31626
31626
|
});
|
|
31627
|
-
}), ZZ = (e) => e ?
|
|
31627
|
+
}), ZZ = (e) => e ? To[e] : void 0, QZ = (e) => e.type === "icon" ? {
|
|
31628
31628
|
...e,
|
|
31629
|
-
icon: ZZ(e.icon) ??
|
|
31629
|
+
icon: ZZ(e.icon) ?? La
|
|
31630
31630
|
} : e, $Z = (e, t, n) => ({
|
|
31631
31631
|
...e.type === "navigate" && sZ(e.href) ? { href: e.href } : {},
|
|
31632
31632
|
onClick: () => n(e, t)
|
|
@@ -32082,7 +32082,7 @@ var zZ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32082
32082
|
"aria-label": `About ${e}`,
|
|
32083
32083
|
className: B("flex shrink-0 cursor-default items-center rounded-xs border-none bg-transparent p-0 text-f1-icon", En()),
|
|
32084
32084
|
children: /* @__PURE__ */ Q(U, {
|
|
32085
|
-
icon:
|
|
32085
|
+
icon: Gc,
|
|
32086
32086
|
size: "sm",
|
|
32087
32087
|
color: "currentColor"
|
|
32088
32088
|
})
|
|
@@ -32115,7 +32115,7 @@ var zZ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32115
32115
|
children: e.change.from
|
|
32116
32116
|
}),
|
|
32117
32117
|
/* @__PURE__ */ Q(U, {
|
|
32118
|
-
icon:
|
|
32118
|
+
icon: Bi,
|
|
32119
32119
|
size: "sm",
|
|
32120
32120
|
color: "default"
|
|
32121
32121
|
}),
|
|
@@ -32254,14 +32254,14 @@ var zZ = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
32254
32254
|
}) : null,
|
|
32255
32255
|
e.status ? /* @__PURE__ */ Q(W, {
|
|
32256
32256
|
display: "flex",
|
|
32257
|
-
children: /* @__PURE__ */ Q(
|
|
32257
|
+
children: /* @__PURE__ */ Q(Sc, {
|
|
32258
32258
|
text: e.status.label,
|
|
32259
32259
|
variant: e.status.tone ?? "neutral"
|
|
32260
32260
|
})
|
|
32261
32261
|
}) : null
|
|
32262
32262
|
]
|
|
32263
32263
|
}),
|
|
32264
|
-
r ? /* @__PURE__ */ Q(
|
|
32264
|
+
r ? /* @__PURE__ */ Q(hr, {
|
|
32265
32265
|
date: r,
|
|
32266
32266
|
size: "lg"
|
|
32267
32267
|
}) : null
|
|
@@ -32660,7 +32660,7 @@ var k$ = Gu(null), A$ = () => Xu(k$), j$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
32660
32660
|
content: e.value ?? ""
|
|
32661
32661
|
})
|
|
32662
32662
|
}, t);
|
|
32663
|
-
case "link": return e.url && lZ(e.url) ? /* @__PURE__ */ Q(
|
|
32663
|
+
case "link": return e.url && lZ(e.url) ? /* @__PURE__ */ Q(No, {
|
|
32664
32664
|
href: e.url,
|
|
32665
32665
|
children: t1(e)
|
|
32666
32666
|
}, t) : t1(e);
|
|
@@ -33125,7 +33125,7 @@ var k$ = Gu(null), A$ = () => Xu(k$), j$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33125
33125
|
slotRenderers: n0
|
|
33126
33126
|
}), i0 = ({ items: e, onAction: t }) => {
|
|
33127
33127
|
let n = R();
|
|
33128
|
-
return /* @__PURE__ */ Q(
|
|
33128
|
+
return /* @__PURE__ */ Q(Zi, {
|
|
33129
33129
|
items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
|
|
33130
33130
|
label: e.label,
|
|
33131
33131
|
icon: ZZ(e.icon),
|
|
@@ -33154,7 +33154,7 @@ var k$ = Gu(null), A$ = () => Xu(k$), j$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33154
33154
|
} }), n = c + i.length;
|
|
33155
33155
|
}
|
|
33156
33156
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
33157
|
-
}, f0 = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: uZ(e).map((e, t) => /* @__PURE__ */ Q(Hu, { children: "href" in e ? /* @__PURE__ */ Q(
|
|
33157
|
+
}, f0 = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: uZ(e).map((e, t) => /* @__PURE__ */ Q(Hu, { children: "href" in e ? /* @__PURE__ */ Q(No, {
|
|
33158
33158
|
href: e.href,
|
|
33159
33159
|
children: e.label
|
|
33160
33160
|
}) : /* @__PURE__ */ Q(l0, { text: e.text }) }, t)) }), p0 = ({ text: e }) => {
|
|
@@ -33307,7 +33307,7 @@ var k$ = Gu(null), A$ = () => Xu(k$), j$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33307
33307
|
}), d = E0(e.actions, (e) => {
|
|
33308
33308
|
o(), u(e.action, {});
|
|
33309
33309
|
});
|
|
33310
|
-
return /* @__PURE__ */ Q(
|
|
33310
|
+
return /* @__PURE__ */ Q(ha, {
|
|
33311
33311
|
isOpen: a,
|
|
33312
33312
|
onClose: o,
|
|
33313
33313
|
position: n === "drawer" ? "right" : "center",
|
|
@@ -33479,7 +33479,7 @@ var k$ = Gu(null), A$ = () => Xu(k$), j$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33479
33479
|
children: /* @__PURE__ */ Q(U, {
|
|
33480
33480
|
size: "lg",
|
|
33481
33481
|
color: F0,
|
|
33482
|
-
icon: t || g ? s.icon : o ??
|
|
33482
|
+
icon: t || g ? s.icon : o ?? xs
|
|
33483
33483
|
})
|
|
33484
33484
|
})
|
|
33485
33485
|
})]
|
|
@@ -33590,7 +33590,7 @@ var k$ = Gu(null), A$ = () => Xu(k$), j$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33590
33590
|
onClick: a,
|
|
33591
33591
|
className: "pointer-events-auto m-0 flex size-10 cursor-pointer appearance-none items-center justify-center rounded-md border-0 bg-transparent p-0 transition-colors hover:bg-f1-background-secondary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-f1-border-selected-bold",
|
|
33592
33592
|
children: /* @__PURE__ */ Q(U, {
|
|
33593
|
-
icon:
|
|
33593
|
+
icon: ul,
|
|
33594
33594
|
size: "md",
|
|
33595
33595
|
color: "bold"
|
|
33596
33596
|
})
|
|
@@ -34126,7 +34126,7 @@ function U2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34126
34126
|
...r.length ? [{
|
|
34127
34127
|
id: "recommended",
|
|
34128
34128
|
label: u.widgets.recommended,
|
|
34129
|
-
icon:
|
|
34129
|
+
icon: Nr,
|
|
34130
34130
|
items: r
|
|
34131
34131
|
}] : [],
|
|
34132
34132
|
...(i ?? []).map((e) => ({
|
|
@@ -34150,7 +34150,7 @@ function U2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34150
34150
|
e && (x("pick"), C(!1), E(null));
|
|
34151
34151
|
}, [e]), K(() => {
|
|
34152
34152
|
b === "configure" && !I && x("pick");
|
|
34153
|
-
}, [b, I]), /* @__PURE__ */ Q(
|
|
34153
|
+
}, [b, I]), /* @__PURE__ */ Q(ha, {
|
|
34154
34154
|
isOpen: e,
|
|
34155
34155
|
onClose: t,
|
|
34156
34156
|
title: ee && P ? u.widgets.configureWidget.replace("{{title}}", P.title) : l,
|
|
@@ -34170,7 +34170,7 @@ function U2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34170
34170
|
},
|
|
34171
34171
|
secondaryAction: ee && P ? {
|
|
34172
34172
|
label: u.actions.back,
|
|
34173
|
-
icon:
|
|
34173
|
+
icon: Ac,
|
|
34174
34174
|
iconPosition: "left",
|
|
34175
34175
|
onClick: () => {
|
|
34176
34176
|
E({
|
|
@@ -34201,7 +34201,7 @@ function U2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34201
34201
|
params: e
|
|
34202
34202
|
}), { success: !0 })
|
|
34203
34203
|
}, P.id)
|
|
34204
|
-
}) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(
|
|
34204
|
+
}) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(Jc, {
|
|
34205
34205
|
value: g,
|
|
34206
34206
|
onChange: _,
|
|
34207
34207
|
placeholder: "Search widgets"
|
|
@@ -34525,16 +34525,16 @@ var C4 = () => {
|
|
|
34525
34525
|
"sm",
|
|
34526
34526
|
"md",
|
|
34527
34527
|
"md"
|
|
34528
|
-
], k4 =
|
|
34528
|
+
], k4 = os(D4, () => /* @__PURE__ */ Q(Ha, { children: /* @__PURE__ */ Q(D4, { children: O4.map((e, t) => /* @__PURE__ */ Q(Ge.Skeleton, { height: e }, t)) }) })), A4 = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
34529
34529
|
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)]",
|
|
34530
34530
|
children: e
|
|
34531
|
-
}), j4 =
|
|
34531
|
+
}), j4 = os(Ku(function({ children: e }, t) {
|
|
34532
34532
|
return /* @__PURE__ */ Q(ql, {
|
|
34533
34533
|
ref: t,
|
|
34534
34534
|
showBar: !1,
|
|
34535
34535
|
children: /* @__PURE__ */ Q(A4, { children: e })
|
|
34536
34536
|
});
|
|
34537
|
-
}), () => /* @__PURE__ */ Q(
|
|
34537
|
+
}), () => /* @__PURE__ */ Q(Ha, {
|
|
34538
34538
|
orientation: "horizontal",
|
|
34539
34539
|
children: /* @__PURE__ */ $(A4, { children: [
|
|
34540
34540
|
/* @__PURE__ */ Q(Ge.Skeleton, {}),
|
|
@@ -34574,4 +34574,4 @@ var P4 = bn(Tn("WidgetEmptyState", N4)), F4 = ({ identifier: e, allowedRoutes: t
|
|
|
34574
34574
|
type: "layout"
|
|
34575
34575
|
}, ql));
|
|
34576
34576
|
//#endregion
|
|
34577
|
-
export { P2 as AGENTIC_HOME_SPEC_VERSION, be as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, av as ActivityItemList, iv as ActivityItemListSkeleton, RO as ApplicationFrame, Se as AreaChart, Eq as AreaChartWidget, fq as AutoGrid, Zs as Badge, _ as BarChart, Dq as BarChartWidget, rv as BaseActivityItemList, Ve as BaseBanner, iy as BaseCelebration, xy as BaseCommunityPost,
|
|
34577
|
+
export { P2 as AGENTIC_HOME_SPEC_VERSION, be as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, av as ActivityItemList, iv as ActivityItemListSkeleton, RO as ApplicationFrame, Se as AreaChart, Eq as AreaChartWidget, fq as AutoGrid, Zs as Badge, _ as BarChart, Dq as BarChartWidget, rv as BaseActivityItemList, Ve as BaseBanner, iy as BaseCelebration, xy as BaseCommunityPost, js as BaseTabs, Br as BreadcrumbSelect, ak as Breadcrumbs, gy as CalendarEvent, Hq as CalendarEventList, Jt as CardSelectableContainer, It as Carousel, m as CategoryBarChart, lJ as CategoryBarSection, oy as Celebration, ay as CelebrationSkeleton, zq as ChartWidgetEmptyState, Cc as Chip, KJ as ClockInControls, Xt as CoachmarkProvider, se as ComboChart, Cy as CommunityPost, My as CommunityPostCard, Ny as CommunityPostCardSkeleton, Sy as CommunityPostSkeleton, rM as CompanySelector, Pn as Counter, wX as DEFAULT_EXPECTED_ITEMS_COUNT, k4 as Dashboard, XO as DaytimePage, co as DetailsItem, gi as DetailsItemsList, Ye as Dialog, Zi as Dropdown, hX as EVENT_LIST_GAP, w_ as EntitySelect, et as F0ActionBar, A2 as F0AgenticHome, M2 as F0AgenticHomeBlock, o as F0AiBanner, $d as F0AiCallout, Xo as F0AiPromptRow, Xs as F0AvatarColor, cc as F0AvatarColorList, lc as F0AvatarModule, gl as F0ButtonToggle, cf as F0Callout, ba as F0CardHorizontal, ba as F0CardRow, $h as F0CarouselDialog, qK as F0Chat, JL as F0ChatHistoryLimitCard, Tu as F0ChatProvider, BF as F0CommandPaletteProvider, Ly as F0CommunityPostsCarousel, Ph as F0Composer, bf as F0Confetti, eq as F0ENPSButton, Ad as F0EmojiPicker, Vr as F0FileItem, Ne as F0FormEditableTable, oP as F0InboxItem, sP as F0InboxItemDecision, pP as F0InboxItemGroup, hP as F0InboxItemList, bP as F0InboxItemListSkeleton, yP as F0InboxItemSkeleton, tt as F0LocationInput, yu as F0Map, ou as F0MapControls, Su as F0MapList, iu as F0MapSidebar, pu as F0MapSidebarToggle, gu as F0MapSkeleton, eO as F0Meeting, Hf as F0MeetingCard, ab as F0MeetingProvider, ID as F0MeetingRoom, tO as F0MeetingSlot, $D as F0MeetingSurface, dn as F0NotesTextEditor, ve as F0NotesTextEditorSkeleton, I as F0NumberInput, O as F0NumberInputInline, bi as F0PersonCard, Yt as F0PhoneInput, dN as F0PrimarySidebar, _l as F0ProgressSeries, _p as F0PulseDot, Xh as F0Resizable, mn as F0ResourceHeader, mn as ResourceHeader, wr as F0RichTextDisplay, ie as F0RichTextEditor, dp as F0SalaryBenchmark, ip as F0SalaryBenchmarkIndicator, Jc as F0SearchInput, mN as F0SecondarySidebar, tg as F0SegmentedBar, ho as F0SegmentedControl, Dg as F0SharingDialog, Rg as F0SwipeDeck, $v as F0SystemBanner, Ut as F0TableOfContent, q_ as F0TemplateTextInput, le as F0TextAreaInput, ae as F0TextAreaInputInline, Zo as F0TextInput, te as F0TextInputInline, Xg as F0Timeline, Jg as F0VersionHistory, UL as F0_CHAT_HEADER_TITLE_SELECTOR, qF as F0_CHAT_MESSAGES_TAB_ID, qc as F1SearchBox, y as FILE_TYPES, Wi as FileItem, sy as HighlightBanner, bY as HomeSlotItem, yY as HomeSlotItems, qq as IndicatorsList, Na as Input, Ke as Item, _t as ItemSectionHeader, JF as LATEST, tX as LIST_COMPACT_AFTER, pX as LIST_MORE_BUTTON_CLASS, St as LineChart, Oq as LineChartWidget, vO as MeetingNotes, rO as MeetingPanelContent, _O as MeetingParticipants, aO as MeetingRoomChat, yD as MeetingSidePanel, PS as MeetingSurfaceProvider, cO as MeetingTranscript, bM as Menu, Hr as MobileDropdown, XZ as NewHomeLayout, l as NotesTextEditor, cn as NotesTextEditorSkeleton, he as NumberInput, jk as OmniButton, PP as OneApprovalHistory, Bc as OneCalendar, Et as OneDataCollection, c as OneDateNavigator, S as OneEmptyState, hg as OneListItem, mg as OneListItemSkeleton, xt as OnePagination, By as OnePersonListItem, F4 as OneRestrictComponent, Nk as Page, Dk as PageHeader, ok as PageHeaderNavigationContext, sk as PageHeaderNavigationProvider, uo as PageNavigation, i as PieChart, kq as PieChartWidget, en as PrivateBox, bt as ProgressBarChart, N2 as RECOMMENDED_AGENTIC_HOME_RULES, su as RECOMMENDED_MAX_MARKERS, ne as RadarChart, uy as Reactions, vi as RichTextDisplay, ce as RichTextEditor, dX as SLOT_ROW_BLEED, TX as SLOT_SKELETON_ITEM_TESTID, I4 as ScrollArea, fN as SearchBar, r as SectionHeader, sl as Select, cr as Shortcut, _N as Sidebar, $A as SidebarChatBlankState, sj as SidebarChatItem, tj as SidebarChatItemSkeleton, Kj as SidebarChatList, rj as SidebarChatListSkeleton, Uk as SidebarChatProvider, nA as SidebarCollapsibleSection, lM as SidebarFooter, dM as SidebarHeader, CM as SidebarPanelHeader, bA as SidebarTabPanel, uA as SidebarTabPanelSearch, bN as SidebarTabs, cM as SidebarUserMenu, JX as SlotWidget, qX as SlotWidgetContent, jc as Spinner, dq as Split, uq as Stack, jq as SummariesWidget, tl as Switch, Oa as Tabs, Ts as TabsSkeleton, XJ as TasksList, b as Textarea, io as ToggleGroup, ci as ToggleGroupItem, In as Tooltip, Rn as TooltipGroup, cJ as TwoColumnsList, D as UPLOAD_INPUT_ID, oe as VerticalBarChart, Aq as VerticalBarChartWidget, Qg as VirtualList, Vc as WeekStartDay, fr as Weekdays, M4 as Widget, Xq as WidgetAvatarsListItem, U2 as WidgetCatalog, P4 as WidgetEmptyState, Gq as WidgetHighlightButton, iJ as WidgetInboxList, $q as WidgetInboxListItem, TY as WidgetSection, oJ as WidgetSimpleList, nJ as WidgetSimpleListItem, j4 as WidgetStrip, Tt as actionBarStatuses, jd as aiCalloutStatuses, Wf as attendeesDisplays, qx as buildTiles, vt as buttonToggleColors, qe as buttonToggleSizes, Nt as buttonToggleVariants, my as calendarEventVariants, xc as chipVariants, gd as coachmarks, vF as commandActionRisks, jy as communityPostCardVariants, Im as composerFormats, Fm as composerVariants, lf as confettiPalette, mE as createMeetingSignalStore, hu as defaultMapStyle, PX as defaultSlotRenderers, NX as defaultSlotSkeleton, RP as defineSelectCellSubmenu, xd as defineStepByStepCoachmarkGuidance, lv as dismissibleSystemNoticeVariants, it as downloadAsCSV, Ft as downloadAsExcel, HF as f0ChatOneAnswerFailures, VF as f0ChatSenderColors, Sd as f0EmojiPickerSizes, ea as f0FileItemSizes, xu as f0MapMarkerVariants, vu as f0MapStyles, rS as f0MeetingConnectionQualities, sS as f0MeetingCoreActionIds, tS as f0MeetingDisconnectReasons, $x as f0MeetingGuestKinds, cS as f0MeetingInvitationStates, nS as f0MeetingPermissions, Qx as f0MeetingPresences, eS as f0MeetingStatuses, iS as f0MeetingSurfaceDestinations, aS as f0MeetingSurfaceModes, Zx as f0MeetingTrackKinds, ud as f0ProgressSeriesColors, ld as f0ProgressSeriesSizes, oS as f0WindowCorners, aX as fromParams, Rt as generateCSVContent, un as getAutoPerPageMinHeight, fl as getGranularityDefinition, rl as getGranularityDefinitions, vl as getGranularitySimpleDefinition, fu as googleMapStyles, au as googlePinlessMapStyles, ol as granularityDefinitions, bX as heldDialogActions, rX as homeSlot, TP as inboxItemDecisionSizes, EP as inboxItemSkeletonAvatars, wP as inboxItemStatuses, SP as inboxItemTints, CP as inboxItemTones, va as isPossiblePhoneValue, KF as isPost, UF as isSystemMessage, GF as isUserMessage, hs as isValidPhoneValue, iE as layoutGrid, nX as listCompacts, yX as listGlyphSize, v as listIconColors, mX as listMoreButtonClass, iX as listSlot, k_ as locationInputSizes, A_ as locationParts, $w as matchDevice, Uf as meetingStates, VI as messageBodyText, Ws as modules, gS as nearestCorner, dg as oneListItemRowClassName, j_ as phoneInputSizes, hS as placementFromRect, Wt as predefinedPresets, vp as pulseDotVariants, lX as railActionTones, dl as rangeSeparator, qw as readMeetingMediaPreferences, sE as reorderForSpeakers, Fh as resizableDirections, KT as resolveAutoFocus, Xc as resolveGranularityDefinition, mS as resolvePlacement, eX as resolveSlotRenderer, oX as resolveWidgetHeader, mp as salaryBenchmarkIndicatorSizes, fp as salaryBenchmarkPositions, pp as salaryBenchmarkVariants, Wb as sanitizeMeetingReaction, IP as seedFromStorage, je as selectSizes, Re as selectVariants, _S as settlePlacement, fX as slotRowBleed, rE as solveGrid, cE as solveSpotlight, Wg as swipeDirections, cv as systemNoticeVariants, Xx as tileAspectRatio, Gx as tileKey, Jw as updateMeetingMediaPreferences, RF as useCommandPalette, ov as useCompactOnScroll, vf as useConfetti, re as useDataCollectionData, LP as useDataCollectionItemNavigation, _e as useDataCollectionSource, nn as useExportAction, zu as useF0Chat, sb as useF0Meeting, ub as useF0MeetingRoster, lb as useF0MeetingStable, ob as useHasF0Meeting, a as useInfiniteScrollPagination, vY as useIsBulkChange, Yw as useMeetingMediaPreferences, vE as useMeetingSignal, yE as useMeetingSpeakers, FS as useMeetingSurface, IS as useMeetingSurfaceOptional, lk as usePageHeaderItemNavigation, ck as usePageHeaderNavigation, Va as useSidePanel, mu as useSidebar, qk as useSidebarChatActions, Kk as useSidebarChats, Ug as useSwipeDeck, yb as useTrackBinding, $e as useWidgetIsWide, yO as viewportRect, uX as widgetChrome, cX as widgetParamsAreComplete, sX as widgetTitle };
|