@factorialco/f0-react 1.403.0 → 1.404.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.
@@ -1,10 +1,10 @@
1
- import { ad as hf, ae as Ar, af as pf, ag as mf, ah as gf, ai as bf, aj as ko, ak as Qn, al as wf, am as As, an as ga, ao as Bi, a9 as k, ap as X, aa as rt, u as me, aq as xf, ar as yf, as as vf, at as kf, au as Cf, av as Re, aw as Sf, ax as Bt, ay as Nf, az as If, aA as H, aB as Af, aC as _f, aD as jt, aE as ba, aF as Ef, aG as Tf, ab as B, aH as _s, aI as E, aJ as it, aK as Df, aL as Lf, aM as Rf, aN as Of, aO as Mf, aP as Ht, aQ as wa, aR as Pf, aS as Et, aT as kn, aU as Es, aV as cn, y as xa, aW as mt, aX as ya, aY as Ff, aZ as Co, a_ as tn, a$ as Ts, b0 as jn, b1 as _r, b2 as zf, b3 as va, b4 as $f, b5 as Ds, b6 as Cn, b7 as Le, b8 as Bf, b9 as jf, ba as kt, bb as gi, bc as Hf, bd as yn, be as Kt, bf as Vf, bg as de, bh as Wf, bi as Uf, bj as Gf, bk as Kf, bl as qf, bm as Ye, bn as ue, bo as Ls, bp as Hn, bq as Jr, br as ka, bs as Rs, bt as Yf, bu as Jf, bv as Xf, bw as Zf, bx as Qf, by as eh, bz as th, bA as nh, bB as rh, bC as ih, bD as sh, bE as oh, bF as lh, bG as ah, bH as ch, bI as dh, bJ as uh, bK as fh, bL as hh, bM as ph, bN as nt, bO as Ca, bP as mh, bQ as V, ac as Sa, bR as Na, bS as gh, bT as Os, bU as So, bV as No, bW as bh, bX as wh, bY as xh, bZ as dn, b_ as yh, b$ as vh, c0 as kh, c1 as Ch, c2 as Xr, c3 as Ia, c4 as Aa, c5 as _a, c6 as Sh, c7 as Er, c8 as Nh, c9 as Ih, ca as Ah, cb as _h, cc as Eh, cd as Th, ce as Dh, cf as Lh, cg as Rh, ch as Ea, ci as Oh, cj as Ta, ck as Mh, cl as Ph, cm as Fh, cn as Io, co as Da, cp as ji, cq as Hi, cr as La, cs as zh, ct as $h, cu as Zr, cv as Ra, cw as Bh, cx as jh, cy as Hh, cz as nn, cA as Vh, cB as er, cC as Ao, cD as Vi, cE as Wh, cF as Uh, cG as Gh, cH as Oa, cI as Kh, cJ as Ma, cK as Ms, cL as qh, cM as Yh, cN as Ps, cO as Pa, a as Jh, d as Xh, cP as Fa, cQ as Zh, F as Qh, cR as za, cS as $a, cT as ep, cU as tp, cV as np, cW as rp, cX as ip, cY as sp, cZ as op, c_ as lp, c$ as ap, d0 as st, d1 as Fs, d2 as zs, d3 as $s, d4 as Ba, d5 as Bs, d6 as ja, d7 as cp, d8 as dp, d9 as up, da as fp, db as hp, dc as pp, dd as mp, de as gp, df as _o, dg as Eo, dh as To, di as bp, dj as wp, dk as xp, dl as yp, dm as Ha, dn as vp, dp as kp } from "./F0AiChat-Cmir88Ar.js";
1
+ import { ad as hf, ae as Ar, af as pf, ag as mf, ah as gf, ai as bf, aj as ko, ak as Qn, al as wf, am as As, an as ga, ao as Bi, a9 as C, ap as X, aa as rt, u as me, aq as xf, ar as yf, as as vf, at as kf, au as Cf, av as Re, aw as Sf, ax as Bt, ay as Nf, az as If, aA as H, aB as Af, aC as _f, aD as jt, aE as ba, aF as Ef, aG as Tf, ab as B, aH as _s, aI as E, aJ as it, aK as Df, aL as Lf, aM as Rf, aN as Of, aO as Mf, aP as Ht, aQ as wa, aR as Pf, aS as Et, aT as kn, aU as Es, aV as cn, y as xa, aW as mt, aX as ya, aY as Ff, aZ as Co, a_ as tn, a$ as Ts, b0 as jn, b1 as _r, b2 as zf, b3 as va, b4 as $f, b5 as Ds, b6 as Cn, b7 as Le, b8 as Bf, b9 as jf, ba as kt, bb as gi, bc as Hf, bd as yn, be as Kt, bf as Vf, bg as de, bh as Wf, bi as Uf, bj as Gf, bk as Kf, bl as qf, bm as Ye, bn as ue, bo as Ls, bp as Hn, bq as Jr, br as ka, bs as Rs, bt as Yf, bu as Jf, bv as Xf, bw as Zf, bx as Qf, by as eh, bz as th, bA as nh, bB as rh, bC as ih, bD as sh, bE as oh, bF as lh, bG as ah, bH as ch, bI as dh, bJ as uh, bK as fh, bL as hh, bM as ph, bN as nt, bO as Ca, bP as mh, bQ as V, ac as Sa, bR as Na, bS as gh, bT as Os, bU as So, bV as No, bW as bh, bX as wh, bY as xh, bZ as dn, b_ as yh, b$ as vh, c0 as kh, c1 as Ch, c2 as Xr, c3 as Ia, c4 as Aa, c5 as _a, c6 as Sh, c7 as Er, c8 as Nh, c9 as Ih, ca as Ah, cb as _h, cc as Eh, cd as Th, ce as Dh, cf as Lh, cg as Rh, ch as Ea, ci as Oh, cj as Ta, ck as Mh, cl as Ph, cm as Fh, cn as Io, co as Da, cp as ji, cq as Hi, cr as La, cs as zh, ct as $h, cu as Zr, cv as Ra, cw as Bh, cx as jh, cy as Hh, cz as nn, cA as Vh, cB as er, cC as Ao, cD as Vi, cE as Wh, cF as Uh, cG as Gh, cH as Oa, cI as Kh, cJ as Ma, cK as Ms, cL as qh, cM as Yh, cN as Ps, cO as Pa, a as Jh, d as Xh, cP as Fa, cQ as Zh, F as Qh, cR as za, cS as $a, cT as ep, cU as tp, cV as np, cW as rp, cX as ip, cY as sp, cZ as op, c_ as lp, c$ as ap, d0 as st, d1 as Fs, d2 as zs, d3 as $s, d4 as Ba, d5 as Bs, d6 as ja, d7 as cp, d8 as dp, d9 as up, da as fp, db as hp, dc as pp, dd as mp, de as gp, df as _o, dg as Eo, dh as To, di as bp, dj as wp, dk as xp, dl as yp, dm as Ha, dn as vp, dp as kp } from "./F0AiChat-Cmir88Ar.js";
2
2
  import { dw as HI, dv as VI, dq as WI, dr as UI, du as GI, dE as KI, dF as qI, ds as YI, dy as JI, dx as XI, dG as ZI, dD as QI, dA as eA, dC as tA, dz as nA, dt as rA, dB as iA } from "./F0AiChat-Cmir88Ar.js";
3
3
  import { jsx as c, jsxs as g, Fragment as re } from "react/jsx-runtime";
4
4
  import * as Sn from "react";
5
5
  import z, { PureComponent as Cp, forwardRef as P, useRef as K, useTransition as Sp, useState as R, useLayoutEffect as Va, useContext as js, createContext as Hs, useCallback as J, useMemo as ee, useEffect as W, useId as Wa, useImperativeHandle as Ua, memo as Ga, Fragment as Np, isValidElement as Ip, cloneElement as Ka, Children as qa } from "react";
6
- import { f as Yt, p as Nn, i as tr, D as Ap, L as bi, P as _p, A as Ep, a as nr, b as Tp, c as Dp, G as Lp, g as Do, l as Rp, d as Lo, e as Op, h as Ya, j as Ja, k as Mp, C as Pp, m as Fp, N as je, n as ot, o as Ee, q as zp, r as mr, T as Ue, s as Xa, S as Me, t as Vs, u as $e, v as Ro, w as $p, x as Za, F as Ie, y as Fe, z as In, B as Tr, E as Qa, H as Bp, I as Vt, J as jp, K as Hp, M as Vp, R as Vn, O as Wn, Q as Ws, U as Wp, V as ec, W as tc, X as nc, Y as Up, Z as rc, _ as ic, $ as sc, a0 as oc, a1 as lc, a2 as ac, a3 as Oo, a4 as Gp, a5 as Mo, a6 as Kp, a7 as qp, a8 as Yp, a9 as Jp, aa as Xp, ab as Zp, ac as Qp, ad as em, ae as tm, af as cc, ag as nm, ah as rm, ai as im, aj as dc, ak as Wi, al as sm, am as om, an as Po, ao as uc, ap as lm, aq as am, ar as cm, as as dm, at as um, au as fm, av as hm, aw as pm, ax as mm, ay as fc, az as gm, aA as bm, aB as wm, aC as hc, aD as xm, aE as ym, aF as vm, aG as km, aH as Cm, aI as Sm, aJ as Nm, aK as Fo, aL as Im, aM as Am, aN as _m, aO as Em } from "./useDataCollectionSource-T2-Pxmlu.js";
7
- import { aP as oA, aR as lA, b5 as aA, aQ as cA, aX as dA, b8 as uA, b6 as fA, aY as hA, aZ as pA, aT as mA, a_ as gA, b2 as bA, b4 as wA, aV as xA, b7 as yA, aW as vA, aU as kA, b3 as CA, aS as SA, a$ as NA, b0 as IA, b1 as AA } from "./useDataCollectionSource-T2-Pxmlu.js";
6
+ import { f as Yt, p as Nn, i as tr, D as Ap, L as bi, P as _p, A as Ep, a as nr, b as Tp, c as Dp, G as Lp, g as Do, l as Rp, d as Lo, e as Op, h as Ya, j as Ja, k as Mp, C as Pp, m as Fp, N as je, n as ot, o as Ee, q as zp, r as mr, T as Ue, s as Xa, S as Me, t as Vs, u as $e, v as Ro, w as $p, x as Za, F as Ie, y as Fe, z as In, B as Tr, E as Qa, H as Bp, I as Vt, J as jp, K as Hp, M as Vp, R as Vn, O as Wn, Q as Ws, U as Wp, V as ec, W as tc, X as nc, Y as Up, Z as rc, _ as ic, $ as sc, a0 as oc, a1 as lc, a2 as ac, a3 as Oo, a4 as Gp, a5 as Mo, a6 as Kp, a7 as qp, a8 as Yp, a9 as Jp, aa as Xp, ab as Zp, ac as Qp, ad as em, ae as tm, af as cc, ag as nm, ah as rm, ai as im, aj as dc, ak as Wi, al as sm, am as om, an as Po, ao as uc, ap as lm, aq as am, ar as cm, as as dm, at as um, au as fm, av as hm, aw as pm, ax as mm, ay as fc, az as gm, aA as bm, aB as wm, aC as hc, aD as xm, aE as ym, aF as vm, aG as km, aH as Cm, aI as Sm, aJ as Nm, aK as Fo, aL as Im, aM as Am, aN as _m, aO as Em } from "./useDataCollectionSource-8uOMe8BJ.js";
7
+ import { aP as oA, aR as lA, b5 as aA, aQ as cA, aX as dA, b8 as uA, b6 as fA, aY as hA, aZ as pA, aT as mA, a_ as gA, b2 as bA, b4 as wA, aV as xA, b7 as yA, aW as vA, aU as kA, b3 as CA, aS as SA, a$ as NA, b0 as IA, b1 as AA } from "./useDataCollectionSource-8uOMe8BJ.js";
8
8
  import './experimental.css';const Tm = hf("Search", [
9
9
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
10
10
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
@@ -405,16 +405,16 @@ var Un = /* @__PURE__ */ (function(t) {
405
405
  var p = h.t, m = u && u.length / s.length, b = s.map(function(w, x) {
406
406
  var v = u && u[Math.floor(x * m)];
407
407
  if (v) {
408
- var S = nr(v.x, w.x), A = nr(v.y, w.y);
408
+ var S = nr(v.x, w.x), _ = nr(v.y, w.y);
409
409
  return ke(ke({}, w), {}, {
410
410
  x: S(p),
411
- y: A(p)
411
+ y: _(p)
412
412
  });
413
413
  }
414
- var N = nr(w.cx, w.x), C = nr(w.cy, w.y);
414
+ var I = nr(w.cx, w.x), k = nr(w.cy, w.y);
415
415
  return ke(ke({}, w), {}, {
416
- x: N(p),
417
- y: C(p)
416
+ x: I(p),
417
+ y: k(p)
418
418
  });
419
419
  });
420
420
  return r.renderPolygonStatically(b);
@@ -808,7 +808,7 @@ const cg = rt({
808
808
  return /* @__PURE__ */ c(
809
809
  "div",
810
810
  {
811
- className: k(cg({ size: e }), h),
811
+ className: C(cg({ size: e }), h),
812
812
  style: {
813
813
  background: "transparent",
814
814
  perspective: t ? "10px" : void 0,
@@ -992,7 +992,7 @@ const vc = ({
992
992
  },
993
993
  checked: i,
994
994
  "aria-label": i ? s.ai.closeChat : s.ai.openChat,
995
- className: k(
995
+ className: C(
996
996
  "group relative h-8 w-12 rounded-full border-none bg-f1-background-inverse-secondary transition-all hover:bg-f1-background-hover",
997
997
  "shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.04)] data-[state=checked]:shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.6)]",
998
998
  "after:pointer-events-none after:absolute after:inset-0 after:rounded-full after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] data-[state=checked]:after:ring-f1-border-inverse",
@@ -1007,7 +1007,7 @@ const vc = ({
1007
1007
  children: /* @__PURE__ */ c(
1008
1008
  Cf,
1009
1009
  {
1010
- className: k(
1010
+ className: C(
1011
1011
  "block h-[1.375rem] w-[1.375rem] translate-x-[0.3125rem] rounded-full transition-transform duration-300 data-[state=checked]:translate-x-[1.3125rem]"
1012
1012
  ),
1013
1013
  style: {
@@ -1047,7 +1047,7 @@ const vc = ({
1047
1047
  return /* @__PURE__ */ c(Bt, { mode: "wait", children: /* @__PURE__ */ c(
1048
1048
  "button",
1049
1049
  {
1050
- className: k(
1050
+ className: C(
1051
1051
  "flex h-6 w-6 items-center justify-center rounded",
1052
1052
  Re()
1053
1053
  ),
@@ -1116,8 +1116,8 @@ const vc = ({
1116
1116
  const S = J(async () => {
1117
1117
  try {
1118
1118
  h("fetching");
1119
- const A = await n();
1120
- h("idle"), m(A);
1119
+ const _ = await n();
1120
+ h("idle"), m(_);
1121
1121
  } catch {
1122
1122
  h("error");
1123
1123
  }
@@ -1126,8 +1126,8 @@ const vc = ({
1126
1126
  Af,
1127
1127
  {
1128
1128
  open: x,
1129
- onOpenChange: async (A) => {
1130
- v(A), A && p === null && S(), o(A);
1129
+ onOpenChange: async (_) => {
1130
+ v(_), _ && p === null && S(), o(_);
1131
1131
  },
1132
1132
  children: [
1133
1133
  /* @__PURE__ */ c(_f, { asChild: !0, children: /* @__PURE__ */ c(
@@ -1163,13 +1163,13 @@ const vc = ({
1163
1163
  onClick: a
1164
1164
  }
1165
1165
  ),
1166
- p.length > 1 && /* @__PURE__ */ c(re, { children: /* @__PURE__ */ c("div", { className: "pb-1", children: w.map((A, N) => /* @__PURE__ */ c(
1166
+ p.length > 1 && /* @__PURE__ */ c(re, { children: /* @__PURE__ */ c("div", { className: "pb-1", children: w.map((_, I) => /* @__PURE__ */ c(
1167
1167
  gg,
1168
1168
  {
1169
- ...A,
1169
+ ..._,
1170
1170
  onClick: a
1171
1171
  },
1172
- N
1172
+ I
1173
1173
  )) }) })
1174
1174
  ] }),
1175
1175
  u === "error" && /* @__PURE__ */ c("div", { className: "p-2 pt-0", children: /* @__PURE__ */ c(
@@ -1219,7 +1219,7 @@ const vc = ({
1219
1219
  target: "_blank",
1220
1220
  referrerPolicy: "no-referrer",
1221
1221
  rel: "noopener noreferrer",
1222
- className: k(o, "text-f1-foreground no-underline"),
1222
+ className: C(o, "text-f1-foreground no-underline"),
1223
1223
  children: [
1224
1224
  /* @__PURE__ */ c("div", { className: "px-1 pt-1", children: l ? /* @__PURE__ */ c("div", { className: "overflow-clip rounded border border-solid border-f1-border-secondary", children: /* @__PURE__ */ c(
1225
1225
  "video",
@@ -1258,7 +1258,7 @@ const vc = ({
1258
1258
  unread: r = !1,
1259
1259
  onClick: i
1260
1260
  }) => {
1261
- const s = k("flex flex-col items-stretch gap-3 w-full");
1261
+ const s = C("flex flex-col items-stretch gap-3 w-full");
1262
1262
  return /* @__PURE__ */ c(Rf, { asChild: !0, className: s, onClick: i, children: /* @__PURE__ */ c(
1263
1263
  it,
1264
1264
  {
@@ -1266,7 +1266,7 @@ const vc = ({
1266
1266
  target: "_blank",
1267
1267
  referrerPolicy: "no-referrer",
1268
1268
  rel: "noopener noreferrer",
1269
- className: k(
1269
+ className: C(
1270
1270
  s,
1271
1271
  "text-f1-foreground no-underline hover:cursor-pointer"
1272
1272
  ),
@@ -1313,7 +1313,7 @@ const vc = ({
1313
1313
  /* @__PURE__ */ c(
1314
1314
  "div",
1315
1315
  {
1316
- className: k(
1316
+ className: C(
1317
1317
  "grid size-14 place-items-center overflow-clip rounded border border-solid border-f1-border-secondary bg-f1-background-tertiary *:block",
1318
1318
  i
1319
1319
  ),
@@ -1375,7 +1375,7 @@ const vc = ({
1375
1375
  "div",
1376
1376
  {
1377
1377
  "aria-hidden": "true",
1378
- className: k("size-2 rounded bg-f1-background-selected-bold", t)
1378
+ className: C("size-2 rounded bg-f1-background-selected-bold", t)
1379
1379
  }
1380
1380
  ), vg = ({
1381
1381
  isVisible: t,
@@ -1479,7 +1479,7 @@ function VN({
1479
1479
  return /* @__PURE__ */ g(
1480
1480
  "div",
1481
1481
  {
1482
- className: k(
1482
+ className: C(
1483
1483
  "flex items-center justify-between px-5 py-4 xs:px-6",
1484
1484
  i ? "h-12" : "h-16"
1485
1485
  ),
@@ -1506,7 +1506,7 @@ function VN({
1506
1506
  /* @__PURE__ */ g(
1507
1507
  "div",
1508
1508
  {
1509
- className: k(
1509
+ className: C(
1510
1510
  "flex flex-grow items-center gap-2",
1511
1511
  i && m && "justify-center"
1512
1512
  ),
@@ -1586,7 +1586,7 @@ function VN({
1586
1586
  currentModule: t.name
1587
1587
  }
1588
1588
  ) }),
1589
- b && /* @__PURE__ */ c("div", { className: "items-right flex gap-2", children: r.map((S, A) => /* @__PURE__ */ c(kg, { action: S }, A)) })
1589
+ b && /* @__PURE__ */ c("div", { className: "items-right flex gap-2", children: r.map((S, _) => /* @__PURE__ */ c(kg, { action: S }, _)) })
1590
1590
  ] }),
1591
1591
  /* @__PURE__ */ g("div", { className: "flex items-center gap-3", children: [
1592
1592
  /* @__PURE__ */ c(
@@ -1902,7 +1902,7 @@ const Or = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Cg = (t, e,
1902
1902
  return {
1903
1903
  // Escape node on double enter
1904
1904
  Enter: ({ editor: t }) => {
1905
- const { state: e, view: n } = t, { selection: r } = e, { $from: i, empty: s } = r, o = Vs((_) => _.type === this.type)(r);
1905
+ const { state: e, view: n } = t, { selection: r } = e, { $from: i, empty: s } = r, o = Vs((A) => A.type === this.type)(r);
1906
1906
  if (!s || !o || !o.node.childCount)
1907
1907
  return !1;
1908
1908
  const l = i.index(o.depth), { childCount: a } = o.node;
@@ -1920,15 +1920,15 @@ const Or = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Cg = (t, e,
1920
1920
  const v = i.indexAfter(-3), S = Xa(x.contentMatchAt(v));
1921
1921
  if (!S || !x.canReplaceWith(v, v, S))
1922
1922
  return !1;
1923
- const A = S.createAndFill();
1924
- if (!A)
1923
+ const _ = S.createAndFill();
1924
+ if (!_)
1925
1925
  return !1;
1926
- const { tr: N } = e, C = i.after(-2);
1927
- N.replaceWith(C, C, A);
1928
- const T = N.doc.resolve(C), I = Me.near(T, 1);
1929
- N.setSelection(I);
1926
+ const { tr: I } = e, k = i.after(-2);
1927
+ I.replaceWith(k, k, _);
1928
+ const T = I.doc.resolve(k), N = Me.near(T, 1);
1929
+ I.setSelection(N);
1930
1930
  const L = b, y = b + m.nodeSize;
1931
- return N.delete(L, y), N.scrollIntoView(), n.dispatch(N), !0;
1931
+ return I.delete(L, y), I.scrollIntoView(), n.dispatch(I), !0;
1932
1932
  }
1933
1933
  };
1934
1934
  }
@@ -2075,18 +2075,18 @@ function Ag(t) {
2075
2075
  });
2076
2076
  break;
2077
2077
  }
2078
- const A = i + S * e;
2079
- for (let N = 0; N < w; N++) {
2080
- r[A + N] == 0 ? r[A + N] = f : (s || (s = [])).push({
2078
+ const _ = i + S * e;
2079
+ for (let I = 0; I < w; I++) {
2080
+ r[_ + I] == 0 ? r[_ + I] = f : (s || (s = [])).push({
2081
2081
  type: "collision",
2082
2082
  row: d,
2083
2083
  pos: f,
2084
- n: w - N
2084
+ n: w - I
2085
2085
  });
2086
- const C = v && v[N];
2087
- if (C) {
2088
- const T = (A + N) % e * 2, I = o[T];
2089
- I == null || I != C && o[T + 1] == 1 ? (o[T] = C, o[T + 1] = 1) : I == C && o[T + 1]++;
2086
+ const k = v && v[I];
2087
+ if (k) {
2088
+ const T = (_ + I) % e * 2, N = o[T];
2089
+ N == null || N != k && o[T + 1] == 1 ? (o[T] = k, o[T + 1] = 1) : N == k && o[T + 1]++;
2090
2090
  }
2091
2091
  }
2092
2092
  }
@@ -3749,13 +3749,13 @@ function al(t, e, n, r, i, s) {
3749
3749
  const x = i === p ? s : b && b[w], v = x ? `${x}px` : "";
3750
3750
  if (l += x || r, x || (a = !1), d) {
3751
3751
  if (d.style.width !== v) {
3752
- const [S, A] = Xi(r, x);
3753
- d.style.setProperty(S, A);
3752
+ const [S, _] = Xi(r, x);
3753
+ d.style.setProperty(S, _);
3754
3754
  }
3755
3755
  d = d.nextSibling;
3756
3756
  } else {
3757
- const S = document.createElement("col"), [A, N] = Xi(r, x);
3758
- S.style.setProperty(A, N), e.appendChild(S);
3757
+ const S = document.createElement("col"), [_, I] = Xi(r, x);
3758
+ S.style.setProperty(_, I), e.appendChild(S);
3759
3759
  }
3760
3760
  }
3761
3761
  }
@@ -3849,7 +3849,7 @@ function Ob(t, e, n = {}) {
3849
3849
  const b = [];
3850
3850
  m.content && m.content.forEach((w) => {
3851
3851
  let x = "";
3852
- w.content && Array.isArray(w.content) && w.content.length > 1 ? x = w.content.map((N) => e.renderChildren(N)).join(i) : x = w.content ? e.renderChildren(w.content) : "";
3852
+ w.content && Array.isArray(w.content) && w.content.length > 1 ? x = w.content.map((I) => e.renderChildren(I)).join(i) : x = w.content ? e.renderChildren(w.content) : "";
3853
3853
  const v = Rb(x), S = w.type === "tableHeader";
3854
3854
  b.push({ text: v, isHeader: S });
3855
3855
  }), s.push(b);
@@ -4045,16 +4045,16 @@ function Bb(t, e, n) {
4045
4045
  h.lastIndex = 0;
4046
4046
  let S = h.exec(d.value);
4047
4047
  for (; S; ) {
4048
- const A = S.index, N = {
4048
+ const _ = S.index, I = {
4049
4049
  index: S.index,
4050
4050
  input: S.input,
4051
4051
  stack: [...f, d]
4052
4052
  };
4053
- let C = p(...S, N);
4054
- if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? h.lastIndex = A + 1 : (m !== A && v.push({
4053
+ let k = p(...S, I);
4054
+ if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? h.lastIndex = _ + 1 : (m !== _ && v.push({
4055
4055
  type: "text",
4056
- value: d.value.slice(m, A)
4057
- }), Array.isArray(C) ? v.push(...C) : C && v.push(C), m = A + S[0].length, x = !0), !h.global)
4056
+ value: d.value.slice(m, _)
4057
+ }), Array.isArray(k) ? v.push(...k) : k && v.push(k), m = _ + S[0].length, x = !0), !h.global)
4058
4058
  break;
4059
4059
  S = h.exec(d.value);
4060
4060
  }
@@ -4387,14 +4387,14 @@ function v0(t, e) {
4387
4387
  const x = [];
4388
4388
  for (; ++u < d; ) {
4389
4389
  const v = b[u] || "";
4390
- let S = "", A = "";
4390
+ let S = "", _ = "";
4391
4391
  if (n.alignDelimiters !== !1) {
4392
- const N = a[u] - (w[u] || 0), C = s[u];
4393
- C === 114 ? S = " ".repeat(N) : C === 99 ? N % 2 ? (S = " ".repeat(N / 2 + 0.5), A = " ".repeat(N / 2 - 0.5)) : (S = " ".repeat(N / 2), A = S) : A = " ".repeat(N);
4392
+ const I = a[u] - (w[u] || 0), k = s[u];
4393
+ k === 114 ? S = " ".repeat(I) : k === 99 ? I % 2 ? (S = " ".repeat(I / 2 + 0.5), _ = " ".repeat(I / 2 - 0.5)) : (S = " ".repeat(I / 2), _ = S) : _ = " ".repeat(I);
4394
4394
  }
4395
4395
  n.delimiterStart !== !1 && !u && x.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
4396
4396
  // empty: there will be a closing space.
4397
- !(n.alignDelimiters === !1 && v === "") && (n.delimiterStart !== !1 || u) && x.push(" "), n.alignDelimiters !== !1 && x.push(S), x.push(v), n.alignDelimiters !== !1 && x.push(A), n.padding !== !1 && x.push(" "), (n.delimiterEnd !== !1 || u !== d - 1) && x.push("|");
4397
+ !(n.alignDelimiters === !1 && v === "") && (n.delimiterStart !== !1 || u) && x.push(" "), n.alignDelimiters !== !1 && x.push(S), x.push(v), n.alignDelimiters !== !1 && x.push(_), n.padding !== !1 && x.push(" "), (n.delimiterEnd !== !1 || u !== d - 1) && x.push("|");
4398
4398
  }
4399
4399
  m.push(
4400
4400
  n.delimiterEnd === !1 ? x.join("").replace(/ +$/, "") : x.join("")
@@ -5745,15 +5745,15 @@ function $w(t, e, n) {
5745
5745
  let i = 0, s = 0, o;
5746
5746
  return l;
5747
5747
  function l(y) {
5748
- let _ = r.events.length - 1;
5749
- for (; _ > -1; ) {
5750
- const D = r.events[_][1].type;
5748
+ let A = r.events.length - 1;
5749
+ for (; A > -1; ) {
5750
+ const D = r.events[A][1].type;
5751
5751
  if (D === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
5752
- D === "linePrefix") _--;
5752
+ D === "linePrefix") A--;
5753
5753
  else break;
5754
5754
  }
5755
- const M = _ > -1 ? r.events[_][1].type : null, U = M === "tableHead" || M === "tableRow" ? C : a;
5756
- return U === C && r.parser.lazy[r.now().line] ? n(y) : U(y);
5755
+ const M = A > -1 ? r.events[A][1].type : null, U = M === "tableHead" || M === "tableRow" ? k : a;
5756
+ return U === k && r.parser.lazy[r.now().line] ? n(y) : U(y);
5757
5757
  }
5758
5758
  function a(y) {
5759
5759
  return t.enter("tableHead"), t.enter("tableRow"), d(y);
@@ -5774,40 +5774,40 @@ function $w(t, e, n) {
5774
5774
  return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(y) : (t.enter("tableDelimiterRow"), o = !1, Kt(y) ? kt(t, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(y) : m(y));
5775
5775
  }
5776
5776
  function m(y) {
5777
- return y === 45 || y === 58 ? w(y) : y === 124 ? (o = !0, t.enter("tableCellDivider"), t.consume(y), t.exit("tableCellDivider"), b) : N(y);
5777
+ return y === 45 || y === 58 ? w(y) : y === 124 ? (o = !0, t.enter("tableCellDivider"), t.consume(y), t.exit("tableCellDivider"), b) : I(y);
5778
5778
  }
5779
5779
  function b(y) {
5780
5780
  return Kt(y) ? kt(t, w, "whitespace")(y) : w(y);
5781
5781
  }
5782
5782
  function w(y) {
5783
- return y === 58 ? (s += 1, o = !0, t.enter("tableDelimiterMarker"), t.consume(y), t.exit("tableDelimiterMarker"), x) : y === 45 ? (s += 1, x(y)) : y === null || yn(y) ? A(y) : N(y);
5783
+ return y === 58 ? (s += 1, o = !0, t.enter("tableDelimiterMarker"), t.consume(y), t.exit("tableDelimiterMarker"), x) : y === 45 ? (s += 1, x(y)) : y === null || yn(y) ? _(y) : I(y);
5784
5784
  }
5785
5785
  function x(y) {
5786
- return y === 45 ? (t.enter("tableDelimiterFiller"), v(y)) : N(y);
5786
+ return y === 45 ? (t.enter("tableDelimiterFiller"), v(y)) : I(y);
5787
5787
  }
5788
5788
  function v(y) {
5789
5789
  return y === 45 ? (t.consume(y), v) : y === 58 ? (o = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(y), t.exit("tableDelimiterMarker"), S) : (t.exit("tableDelimiterFiller"), S(y));
5790
5790
  }
5791
5791
  function S(y) {
5792
- return Kt(y) ? kt(t, A, "whitespace")(y) : A(y);
5792
+ return Kt(y) ? kt(t, _, "whitespace")(y) : _(y);
5793
5793
  }
5794
- function A(y) {
5795
- return y === 124 ? m(y) : y === null || yn(y) ? !o || i !== s ? N(y) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), e(y)) : N(y);
5794
+ function _(y) {
5795
+ return y === 124 ? m(y) : y === null || yn(y) ? !o || i !== s ? I(y) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), e(y)) : I(y);
5796
5796
  }
5797
- function N(y) {
5797
+ function I(y) {
5798
5798
  return n(y);
5799
5799
  }
5800
- function C(y) {
5800
+ function k(y) {
5801
5801
  return t.enter("tableRow"), T(y);
5802
5802
  }
5803
5803
  function T(y) {
5804
- return y === 124 ? (t.enter("tableCellDivider"), t.consume(y), t.exit("tableCellDivider"), T) : y === null || yn(y) ? (t.exit("tableRow"), e(y)) : Kt(y) ? kt(t, T, "whitespace")(y) : (t.enter("data"), I(y));
5804
+ return y === 124 ? (t.enter("tableCellDivider"), t.consume(y), t.exit("tableCellDivider"), T) : y === null || yn(y) ? (t.exit("tableRow"), e(y)) : Kt(y) ? kt(t, T, "whitespace")(y) : (t.enter("data"), N(y));
5805
5805
  }
5806
- function I(y) {
5807
- return y === null || y === 124 || Le(y) ? (t.exit("data"), T(y)) : (t.consume(y), y === 92 ? L : I);
5806
+ function N(y) {
5807
+ return y === null || y === 124 || Le(y) ? (t.exit("data"), T(y)) : (t.consume(y), y === 92 ? L : N);
5808
5808
  }
5809
5809
  function L(y) {
5810
- return y === 92 || y === 124 ? (t.consume(y), I) : I(y);
5810
+ return y === 92 || y === 124 ? (t.consume(y), N) : N(y);
5811
5811
  }
5812
5812
  }
5813
5813
  function Bw(t, e) {
@@ -5939,7 +5939,7 @@ const qw = Uf().use(Gf).use(Kw).use(Kf).use(qf), Yw = P(function({ content: e, c
5939
5939
  "div",
5940
5940
  {
5941
5941
  ref: s,
5942
- className: k(
5942
+ className: C(
5943
5943
  "rich-text-display-container",
5944
5944
  !l && "whitespace-pre-wrap",
5945
5945
  n
@@ -5976,7 +5976,7 @@ const qw = Uf().use(Gf).use(Kw).use(Kf).use(qf), Yw = P(function({ content: e, c
5976
5976
  /* @__PURE__ */ c(
5977
5977
  "div",
5978
5978
  {
5979
- className: k(
5979
+ className: C(
5980
5980
  "bg-f1-background px-4 py-3",
5981
5981
  s || i ? "rounded-t-[13.25px]" : "rounded-[13.25px]"
5982
5982
  ),
@@ -6019,7 +6019,7 @@ const qw = Uf().use(Gf).use(Kw).use(Kf).use(qf), Yw = P(function({ content: e, c
6019
6019
  /* @__PURE__ */ c(
6020
6020
  "div",
6021
6021
  {
6022
- className: k(
6022
+ className: C(
6023
6023
  "rounded-t-[13.25px] bg-f1-background px-4 py-3",
6024
6024
  t && "rounded-[13.25px]"
6025
6025
  ),
@@ -6469,16 +6469,16 @@ const h1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, p1 = je.c
6469
6469
  const { src: s, alt: o, title: l, uploading: a, width: d } = t.attrs, f = r.isEditable, u = me(), [h, p] = R(!1), m = J(
6470
6470
  (b) => {
6471
6471
  b.preventDefault(), b.stopPropagation();
6472
- const w = b.clientX, x = d ?? Lt, v = r.view.dom.clientWidth, S = (N) => {
6473
- const T = (N.clientX - w) / v * 100, I = Math.min(
6472
+ const w = b.clientX, x = d ?? Lt, v = r.view.dom.clientWidth, S = (I) => {
6473
+ const T = (I.clientX - w) / v * 100, N = Math.min(
6474
6474
  Lt,
6475
6475
  Math.max(g1, x + T)
6476
6476
  );
6477
- i({ width: Math.round(I) });
6478
- }, A = () => {
6479
- p(!1), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", A);
6477
+ i({ width: Math.round(N) });
6478
+ }, _ = () => {
6479
+ p(!1), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", _);
6480
6480
  };
6481
- p(!0), document.addEventListener("mousemove", S), document.addEventListener("mouseup", A);
6481
+ p(!0), document.addEventListener("mousemove", S), document.addEventListener("mouseup", _);
6482
6482
  },
6483
6483
  [r, d, i]
6484
6484
  );
@@ -6486,7 +6486,7 @@ const h1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, p1 = je.c
6486
6486
  "div",
6487
6487
  {
6488
6488
  style: { width: `${d ?? Lt}%` },
6489
- className: k(
6489
+ className: C(
6490
6490
  "image-resizable-wrapper group/image relative rounded-lg",
6491
6491
  n && "border-2 border-f1-border-selected-bold border-solid",
6492
6492
  h && "select-none"
@@ -6516,7 +6516,7 @@ const h1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, p1 = je.c
6516
6516
  f && !a && /* @__PURE__ */ c(
6517
6517
  "div",
6518
6518
  {
6519
- className: k(
6519
+ className: C(
6520
6520
  "absolute right-2 top-1/2 -translate-y-1/2 flex cursor-col-resize items-center justify-center",
6521
6521
  "h-12 w-2 rounded-sm border border-solid border-f1-border bg-f1-foreground-inverse-secondary",
6522
6522
  "opacity-0 transition-opacity group-hover/image:opacity-100",
@@ -6940,7 +6940,7 @@ const A1 = ({
6940
6940
  return /* @__PURE__ */ c(Wn, { className: "mb-2", children: /* @__PURE__ */ g(
6941
6941
  "div",
6942
6942
  {
6943
- className: k(
6943
+ className: C(
6944
6944
  "video-embed-wrapper relative overflow-hidden rounded-lg",
6945
6945
  n && "border-2 border-solid border-f1-border-selected-bold"
6946
6946
  ),
@@ -7242,19 +7242,19 @@ const A1 = ({
7242
7242
  /* @__PURE__ */ g("div", { className: "p-1", children: [
7243
7243
  e && w.title && /* @__PURE__ */ c("div", { className: "p-2", children: /* @__PURE__ */ c("p", { className: "text-sm font-medium tracking-wide text-f1-foreground-secondary", children: w.title }) }),
7244
7244
  w.commands.map((v, S) => {
7245
- const A = b(x, S), N = A === i;
7245
+ const _ = b(x, S), I = _ === i;
7246
7246
  return /* @__PURE__ */ g(
7247
7247
  "div",
7248
7248
  {
7249
- ref: N ? l : null,
7250
- className: k(
7249
+ ref: I ? l : null,
7250
+ className: C(
7251
7251
  "flex w-full cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-left text-sm hover:bg-f1-background-hover",
7252
- N && "bg-f1-background-secondary"
7252
+ I && "bg-f1-background-secondary"
7253
7253
  ),
7254
7254
  onClick: () => {
7255
- s(A), f(A);
7255
+ s(_), f(_);
7256
7256
  },
7257
- onMouseEnter: () => s(A),
7257
+ onMouseEnter: () => s(_),
7258
7258
  children: [
7259
7259
  v.emoji ? /* @__PURE__ */ c("span", { className: "text-base", children: v.emoji }) : v.icon ? /* @__PURE__ */ c(
7260
7260
  H,
@@ -7626,7 +7626,7 @@ const T1 = ({
7626
7626
  return /* @__PURE__ */ g(
7627
7627
  X.div,
7628
7628
  {
7629
- className: k(
7629
+ className: C(
7630
7630
  "relative isolate m-3 mt-2 flex flex-col gap-3 rounded-lg border border-solid border-f1-border",
7631
7631
  "after:pointer-events-none after:absolute after:inset-0.5 after:z-[-2] after:rounded-[inherit] after:bg-f1-foreground-secondary after:opacity-0 after:blur-[5px] after:content-['']",
7632
7632
  "from-[#E55619] via-[#A1ADE5] to-[#E51943] after:scale-90 after:bg-[conic-gradient(from_var(--gradient-angle),var(--tw-gradient-stops))]",
@@ -7653,7 +7653,7 @@ const T1 = ({
7653
7653
  disabled: !0,
7654
7654
  name: "one-ai-input",
7655
7655
  placeholder: t.ai.inputPlaceholder,
7656
- className: k(
7656
+ className: C(
7657
7657
  "col-start-1 row-start-1",
7658
7658
  "mx-3 mb-0 mt-3 flex-1 resize-none outline-none transition-all",
7659
7659
  "bg-white text-f1-foreground placeholder:text-f1-foreground-secondary",
@@ -7897,7 +7897,7 @@ const T1 = ({
7897
7897
  /* @__PURE__ */ g(
7898
7898
  "div",
7899
7899
  {
7900
- className: k(
7900
+ className: C(
7901
7901
  "flex flex-row items-center gap-2",
7902
7902
  wl[s]
7903
7903
  ),
@@ -7929,7 +7929,7 @@ const T1 = ({
7929
7929
  /* @__PURE__ */ c(
7930
7930
  "div",
7931
7931
  {
7932
- className: k(
7932
+ className: C(
7933
7933
  "bg-f1-background px-4 py-3",
7934
7934
  l ? "rounded-t-[13.25px]" : "rounded-[13.25px]"
7935
7935
  ),
@@ -7965,7 +7965,7 @@ const T1 = ({
7965
7965
  /* @__PURE__ */ c(
7966
7966
  "div",
7967
7967
  {
7968
- className: k(
7968
+ className: C(
7969
7969
  "rounded-t-[13.25px] bg-f1-background px-4 py-3",
7970
7970
  t && "rounded-[13.25px]"
7971
7971
  ),
@@ -8053,7 +8053,7 @@ function K1({
8053
8053
  "button",
8054
8054
  {
8055
8055
  type: "button",
8056
- className: k(
8056
+ className: C(
8057
8057
  "flex w-full flex-row items-center gap-[6px] rounded-md p-[6px] pr-2 text-left transition-colors",
8058
8058
  e && "bg-f1-background-tertiary",
8059
8059
  n && "cursor-pointer hover:bg-f1-background-hover",
@@ -8088,7 +8088,7 @@ function q1({
8088
8088
  "button",
8089
8089
  {
8090
8090
  type: "button",
8091
- className: k(
8091
+ className: C(
8092
8092
  "flex w-full flex-col gap-[6px] rounded-md px-2 py-[6px] text-left transition-colors",
8093
8093
  r && "bg-f1-background-tertiary",
8094
8094
  n && "cursor-pointer hover:bg-f1-background-hover",
@@ -8188,7 +8188,7 @@ const KN = de(
8188
8188
  "div",
8189
8189
  {
8190
8190
  ref: o,
8191
- className: k("scrollbar-macos w-full overflow-auto", r),
8191
+ className: C("scrollbar-macos w-full overflow-auto", r),
8192
8192
  style: {
8193
8193
  height: `${t}px`
8194
8194
  },
@@ -8229,16 +8229,16 @@ const rs = V("VirtualList", hd), pd = ({
8229
8229
  semiBold: r = !1
8230
8230
  }) => {
8231
8231
  if (!e)
8232
- return /* @__PURE__ */ c("span", { className: k("line-clamp-1", r ? "font-semibold" : ""), children: t });
8232
+ return /* @__PURE__ */ c("span", { className: C("line-clamp-1", r ? "font-semibold" : ""), children: t });
8233
8233
  if (t.toLowerCase().indexOf(e.toLowerCase()) === -1)
8234
8234
  if (n.find(
8235
8235
  (o) => o.toLowerCase().indexOf(e.toLowerCase().trim()) >= 0
8236
8236
  ))
8237
8237
  e = t.split(" ")[0];
8238
8238
  else
8239
- return /* @__PURE__ */ c("span", { className: k("line-clamp-1", r ? "font-semibold" : ""), children: t });
8239
+ return /* @__PURE__ */ c("span", { className: C("line-clamp-1", r ? "font-semibold" : ""), children: t });
8240
8240
  const i = new RegExp(`(${e})`, "gi"), s = t.split(i);
8241
- return /* @__PURE__ */ c("span", { className: k("line-clamp-1", r ? "font-semibold" : ""), children: s.map(
8241
+ return /* @__PURE__ */ c("span", { className: C("line-clamp-1", r ? "font-semibold" : ""), children: s.map(
8242
8242
  (o, l) => o.toLowerCase() === e.toLowerCase() ? /* @__PURE__ */ c(
8243
8243
  "span",
8244
8244
  {
@@ -8289,7 +8289,7 @@ const J1 = ({
8289
8289
  "label",
8290
8290
  {
8291
8291
  "aria-label": t.name,
8292
- className: k(
8292
+ className: C(
8293
8293
  i,
8294
8294
  "flex flex-row flex-wrap items-center gap-2 rounded-[10px] border px-2 py-1.5 hover:cursor-pointer",
8295
8295
  "focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:bg-f1-background-hover",
@@ -8309,7 +8309,7 @@ const J1 = ({
8309
8309
  /* @__PURE__ */ c("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ c(
8310
8310
  "div",
8311
8311
  {
8312
- className: k(
8312
+ className: C(
8313
8313
  "flex flex-1 flex-row items-center gap-2 break-all",
8314
8314
  t.deactivated ? "text-f1-foreground/[0.61]" : void 0
8315
8315
  ),
@@ -8331,7 +8331,7 @@ const J1 = ({
8331
8331
  disabled: d,
8332
8332
  onClick: m,
8333
8333
  onKeyDown: b,
8334
- className: k(
8334
+ className: C(
8335
8335
  "pointer-events-none ml-auto",
8336
8336
  a ? "opacity-0" : ""
8337
8337
  )
@@ -8385,16 +8385,16 @@ const J1 = ({
8385
8385
  hiddenAvatar: w
8386
8386
  }
8387
8387
  );
8388
- const S = (C) => {
8389
- if (C.key === " ")
8390
- C.preventDefault(), a(!e);
8391
- else if (C.key === "Enter" && m)
8388
+ const S = (k) => {
8389
+ if (k.key === " ")
8390
+ k.preventDefault(), a(!e);
8391
+ else if (k.key === "Enter" && m)
8392
8392
  a(!e);
8393
- else if (C.key === "Enter") {
8393
+ else if (k.key === "Enter") {
8394
8394
  if (b) return;
8395
8395
  !i || s ? o(r) : i && l(r);
8396
- } else C.key === "ArrowDown" ? ti(C.currentTarget, d) : C.key === "ArrowUp" && ni(C.currentTarget, f);
8397
- }, A = () => {
8396
+ } else k.key === "ArrowDown" ? ti(k.currentTarget, d) : k.key === "ArrowUp" && ni(k.currentTarget, f);
8397
+ }, _ = () => {
8398
8398
  if (x)
8399
8399
  a(!e), v(!1);
8400
8400
  else {
@@ -8403,7 +8403,7 @@ const J1 = ({
8403
8403
  }
8404
8404
  };
8405
8405
  if (!r.subItems?.length) return null;
8406
- const N = i || s;
8406
+ const I = i || s;
8407
8407
  return /* @__PURE__ */ g(re, { children: [
8408
8408
  /* @__PURE__ */ g("div", { className: "flex w-full flex-row flex-wrap items-center gap-0 rounded-md border pl-2.5 pr-1", children: [
8409
8409
  /* @__PURE__ */ c(
@@ -8449,16 +8449,16 @@ const J1 = ({
8449
8449
  /* @__PURE__ */ c(
8450
8450
  Ia,
8451
8451
  {
8452
- checked: N,
8452
+ checked: I,
8453
8453
  disabled: b,
8454
- onClick: A,
8454
+ onClick: _,
8455
8455
  onKeyDown: S,
8456
8456
  indeterminate: s,
8457
- onPointerDown: (C) => {
8458
- C.stopPropagation(), v(!1);
8457
+ onPointerDown: (k) => {
8458
+ k.stopPropagation(), v(!1);
8459
8459
  },
8460
8460
  "data-avatarname-navigator-element": "true",
8461
- className: k("ml-auto", m ? "opacity-0" : "")
8461
+ className: C("ml-auto", m ? "opacity-0" : "")
8462
8462
  }
8463
8463
  )
8464
8464
  ]
@@ -8480,7 +8480,7 @@ const xl = ({
8480
8480
  "label",
8481
8481
  {
8482
8482
  "aria-label": t,
8483
- className: k(
8483
+ className: C(
8484
8484
  "flex flex-row flex-wrap items-center gap-1.5 rounded-[10px] border px-1.5 py-1.5 hover:cursor-pointer",
8485
8485
  "focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:bg-f1-background-hover",
8486
8486
  "select-none"
@@ -8497,7 +8497,7 @@ const xl = ({
8497
8497
  variant: "outline"
8498
8498
  }
8499
8499
  ),
8500
- /* @__PURE__ */ c("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ c("div", { className: "flex flex-1 flex-row items-center gap-2 break-all", children: /* @__PURE__ */ c("span", { className: k("line-clamp-1"), children: t }) }) })
8500
+ /* @__PURE__ */ c("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ c("div", { className: "flex flex-1 flex-row items-center gap-2 break-all", children: /* @__PURE__ */ c("span", { className: C("line-clamp-1"), children: t }) }) })
8501
8501
  ]
8502
8502
  }
8503
8503
  ) }), wn = ({ primaryAction: t, secondaryActions: e }) => {
@@ -8633,14 +8633,14 @@ const xl = ({
8633
8633
  clearLabel: x,
8634
8634
  notFoundTitle: v,
8635
8635
  notFoundSubtitle: S,
8636
- className: A,
8637
- actions: N,
8638
- onCreate: C,
8636
+ className: _,
8637
+ actions: I,
8638
+ onCreate: k,
8639
8639
  onCreateLabel: T,
8640
- singleSelector: I = !1,
8640
+ singleSelector: N = !1,
8641
8641
  loading: L = !1,
8642
8642
  disabled: y = !1,
8643
- hiddenAvatar: _ = !1
8643
+ hiddenAvatar: A = !1
8644
8644
  }) => {
8645
8645
  const M = z.useRef(null), U = ee(
8646
8646
  () => t ? e.reduce(
@@ -8686,17 +8686,17 @@ const xl = ({
8686
8686
  [t, ne]
8687
8687
  ), ge = J(
8688
8688
  (O) => {
8689
- if (O.index === 0 && C)
8689
+ if (O.index === 0 && k)
8690
8690
  return /* @__PURE__ */ c(
8691
8691
  xl,
8692
8692
  {
8693
8693
  label: T ?? "",
8694
- onCreate: () => C?.(i),
8694
+ onCreate: () => k?.(i),
8695
8695
  goToFirst: D,
8696
8696
  goToLast: $
8697
8697
  }
8698
8698
  );
8699
- const oe = C ? O.index - 1 : O.index, fe = e[oe], { selected: le, partialSelected: He } = F(fe);
8699
+ const oe = k ? O.index - 1 : O.index, fe = e[oe], { selected: le, partialSelected: He } = F(fe);
8700
8700
  return /* @__PURE__ */ c(
8701
8701
  xr,
8702
8702
  {
@@ -8710,17 +8710,17 @@ const xl = ({
8710
8710
  selected: le,
8711
8711
  partialSelected: He,
8712
8712
  showGroupIcon: tx(n, r),
8713
- singleSelector: I,
8713
+ singleSelector: N,
8714
8714
  goToFirst: D,
8715
8715
  goToLast: $,
8716
8716
  disabled: y,
8717
- hiddenAvatar: _
8717
+ hiddenAvatar: A
8718
8718
  },
8719
8719
  fe.id
8720
8720
  );
8721
8721
  },
8722
8722
  [
8723
- C,
8723
+ k,
8724
8724
  T,
8725
8725
  y,
8726
8726
  e,
@@ -8729,13 +8729,13 @@ const xl = ({
8729
8729
  $,
8730
8730
  t,
8731
8731
  n,
8732
- _,
8732
+ A,
8733
8733
  o,
8734
8734
  s,
8735
8735
  m,
8736
8736
  i,
8737
8737
  r,
8738
- I
8738
+ N
8739
8739
  ]
8740
8740
  ), Se = ee(() => t ? e.flatMap((O) => {
8741
8741
  const oe = ar(
@@ -8774,17 +8774,17 @@ const xl = ({
8774
8774
  }
8775
8775
  })), [t, e, h]), q = J(
8776
8776
  (O) => {
8777
- if (O.index === 0 && C)
8777
+ if (O.index === 0 && k)
8778
8778
  return /* @__PURE__ */ c(
8779
8779
  xl,
8780
8780
  {
8781
8781
  label: T ?? "",
8782
- onCreate: () => C?.(i),
8782
+ onCreate: () => k?.(i),
8783
8783
  goToFirst: D,
8784
8784
  goToLast: $
8785
8785
  }
8786
8786
  );
8787
- const oe = C ? O.index - 1 : O.index, fe = Se[oe].parent, le = Se[oe].subItem;
8787
+ const oe = k ? O.index - 1 : O.index, fe = Se[oe].parent, le = Se[oe].subItem;
8788
8788
  if (!fe) {
8789
8789
  const be = {
8790
8790
  id: le.subId,
@@ -8814,12 +8814,12 @@ const xl = ({
8814
8814
  selected: Zn,
8815
8815
  partialSelected: uf,
8816
8816
  showGroupIcon: n.find((bn) => bn.value === r)?.groupType === "team",
8817
- singleSelector: I,
8817
+ singleSelector: N,
8818
8818
  goToFirst: D,
8819
8819
  goToLast: $,
8820
8820
  hideLine: oe === Se.length - 1,
8821
8821
  disabled: y,
8822
- hiddenAvatar: _
8822
+ hiddenAvatar: A
8823
8823
  }
8824
8824
  );
8825
8825
  }
@@ -8854,11 +8854,11 @@ const xl = ({
8854
8854
  onRemove: () => l(fe, le),
8855
8855
  selected: !!He,
8856
8856
  partialSelected: !1,
8857
- singleSelector: I,
8857
+ singleSelector: N,
8858
8858
  goToFirst: D,
8859
8859
  goToLast: $,
8860
8860
  isChild: !0,
8861
- hiddenAvatar: _
8861
+ hiddenAvatar: A
8862
8862
  }
8863
8863
  );
8864
8864
  },
@@ -8866,7 +8866,7 @@ const xl = ({
8866
8866
  Se,
8867
8867
  h,
8868
8868
  i,
8869
- I,
8869
+ N,
8870
8870
  D,
8871
8871
  $,
8872
8872
  s,
@@ -8877,8 +8877,8 @@ const xl = ({
8877
8877
  r,
8878
8878
  a,
8879
8879
  l,
8880
- _,
8881
- C,
8880
+ A,
8881
+ k,
8882
8882
  T
8883
8883
  ]
8884
8884
  ), [Xn, of] = ee(() => {
@@ -8905,22 +8905,22 @@ const xl = ({
8905
8905
  }
8906
8906
  const fe = O > 0 && oe === O, le = oe > 0;
8907
8907
  return [fe, le];
8908
- }, [e, ne, t]), lf = Se.length, af = !I && (w || x), cf = N && N.length > 0, df = !L && (!I && af || cf);
8908
+ }, [e, ne, t]), lf = Se.length, af = !N && (w || x), cf = I && I.length > 0, df = !L && (!N && af || cf);
8909
8909
  return /* @__PURE__ */ g(
8910
8910
  "div",
8911
8911
  {
8912
- className: k(
8912
+ className: C(
8913
8913
  "flex w-full flex-col rounded-l-xl border-0",
8914
- I || L ? "rounded-r-xl" : "",
8915
- A
8914
+ N || L ? "rounded-r-xl" : "",
8915
+ _
8916
8916
  ),
8917
8917
  children: [
8918
8918
  /* @__PURE__ */ g(
8919
8919
  "header",
8920
8920
  {
8921
- className: k(
8921
+ className: C(
8922
8922
  "flex h-[48px] justify-between gap-2 rounded-tl-xl border-0 border-b-[1px] border-r-[1px] border-solid border-f1-border-secondary bg-f1-background/30 p-2 backdrop-blur-2xl",
8923
- I || L ? "rounded-t-xl border-r-0" : ""
8923
+ N || L ? "rounded-t-xl border-r-0" : ""
8924
8924
  ),
8925
8925
  children: [
8926
8926
  /* @__PURE__ */ c("div", { className: "flex-1", children: /* @__PURE__ */ c(
@@ -8942,7 +8942,7 @@ const xl = ({
8942
8942
  onChange: p,
8943
8943
  options: n,
8944
8944
  value: r,
8945
- className: k(
8945
+ className: C(
8946
8946
  "h-8 rounded-[10px] bg-transparent py-[5px]",
8947
8947
  r === "all" ? "text-f1-foreground-secondary" : ""
8948
8948
  )
@@ -8954,7 +8954,7 @@ const xl = ({
8954
8954
  /* @__PURE__ */ g(
8955
8955
  "section",
8956
8956
  {
8957
- className: k(
8957
+ className: C(
8958
8958
  "flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background",
8959
8959
  df ? "" : "rounded-b-xl border-r-0"
8960
8960
  ),
@@ -8973,14 +8973,14 @@ const xl = ({
8973
8973
  ]
8974
8974
  }
8975
8975
  ),
8976
- !L && (!!U || C) && /* @__PURE__ */ c("div", { className: "h-full", children: t ? /* @__PURE__ */ c(
8976
+ !L && (!!U || k) && /* @__PURE__ */ c("div", { className: "h-full", children: t ? /* @__PURE__ */ c(
8977
8977
  rs,
8978
8978
  {
8979
8979
  height: Ni,
8980
- itemCount: lf + (C ? 1 : 0),
8980
+ itemCount: lf + (k ? 1 : 0),
8981
8981
  itemSize: (O) => {
8982
- if (O === 0 && C) return Ii;
8983
- const oe = C ? O - 1 : O;
8982
+ if (O === 0 && k) return Ii;
8983
+ const oe = k ? O - 1 : O;
8984
8984
  return Se[oe]?.parent === null ? Q1 : Ii;
8985
8985
  },
8986
8986
  renderer: q,
@@ -8990,7 +8990,7 @@ const xl = ({
8990
8990
  rs,
8991
8991
  {
8992
8992
  height: Ni,
8993
- itemCount: e.length + (C ? 1 : 0),
8993
+ itemCount: e.length + (k ? 1 : 0),
8994
8994
  itemSize: Ii,
8995
8995
  renderer: ge,
8996
8996
  ref: M
@@ -9004,14 +9004,14 @@ const xl = ({
9004
9004
  {
9005
9005
  onSelectAll: f,
9006
9006
  onClear: d,
9007
- singleSelector: I,
9007
+ singleSelector: N,
9008
9008
  totalFilteredEntities: U,
9009
9009
  allVisibleSelected: Xn,
9010
9010
  anyVisibleSelected: of,
9011
9011
  selectAllLabel: w,
9012
9012
  clearLabel: x,
9013
9013
  disabled: y,
9014
- actions: N
9014
+ actions: I
9015
9015
  }
9016
9016
  )
9017
9017
  ]
@@ -9026,7 +9026,7 @@ const xl = ({
9026
9026
  }) => /* @__PURE__ */ c("div", { className: "pr-2 pt-1.5", children: /* @__PURE__ */ c(
9027
9027
  Nh,
9028
9028
  {
9029
- className: k(
9029
+ className: C(
9030
9030
  "max-w-54 w-fit gap-1 text-ellipsis break-all border-[1px] border-solid border-f1-border-secondary py-[1px] pl-[1px]",
9031
9031
  "rounded-full",
9032
9032
  i ? "pl-2" : "pl-0"
@@ -9210,25 +9210,25 @@ const xl = ({
9210
9210
  size: v = "sm",
9211
9211
  open: S
9212
9212
  }) => {
9213
- const A = ee(
9213
+ const _ = ee(
9214
9214
  () => n.some(
9215
- (I) => I.subItems && I.subItems.length > 0
9215
+ (N) => N.subItems && N.subItems.length > 0
9216
9216
  ),
9217
9217
  [n]
9218
- ), N = ee(() => A ? n.flatMap(
9219
- (I) => (I.subItems ?? []).map((L) => ({
9220
- parent: I,
9218
+ ), I = ee(() => _ ? n.flatMap(
9219
+ (N) => (N.subItems ?? []).map((L) => ({
9220
+ parent: N,
9221
9221
  subItem: L
9222
9222
  }))
9223
- ) : n.map((I) => ({
9223
+ ) : n.map((N) => ({
9224
9224
  parent: null,
9225
9225
  subItem: {
9226
- subId: I.id,
9227
- subName: I.name,
9228
- subAvatar: I.avatar,
9229
- subDeactivated: I.deactivated
9226
+ subId: N.id,
9227
+ subName: N.name,
9228
+ subAvatar: N.avatar,
9229
+ subDeactivated: N.deactivated
9230
9230
  }
9231
- })), [A, n]), C = N.length === 0 ? void 0 : N.length === 1 ? N[0].subItem.subName : N.length + " " + e, T = N.length === 1 ? N[0].subItem.subName : void 0;
9231
+ })), [_, n]), k = I.length === 0 ? void 0 : I.length === 1 ? I[0].subItem.subName : I.length + " " + e, T = I.length === 1 ? I[0].subItem.subName : void 0;
9232
9232
  return /* @__PURE__ */ c(
9233
9233
  Ah,
9234
9234
  {
@@ -9238,14 +9238,14 @@ const xl = ({
9238
9238
  labelIcon: o,
9239
9239
  "aria-expanded": !1,
9240
9240
  "aria-controls": "listbox",
9241
- icon: l && !C ? l : void 0,
9241
+ icon: l && !k ? l : void 0,
9242
9242
  error: a,
9243
9243
  status: d,
9244
9244
  hint: f,
9245
9245
  hideLabel: h,
9246
9246
  maxLength: p,
9247
9247
  clearable: !1,
9248
- value: C,
9248
+ value: k,
9249
9249
  disabled: r,
9250
9250
  loading: m,
9251
9251
  required: b,
@@ -9255,26 +9255,26 @@ const xl = ({
9255
9255
  type: "person",
9256
9256
  firstName: T,
9257
9257
  lastName: "",
9258
- src: N[0].subItem.subAvatar,
9259
- deactivated: N[0].subItem.subDeactivated
9258
+ src: I[0].subItem.subAvatar,
9259
+ deactivated: I[0].subItem.subDeactivated
9260
9260
  },
9261
9261
  append: x ?? /* @__PURE__ */ c(re, { children: /* @__PURE__ */ c(_h, { open: S, disabled: r, size: v }) }),
9262
9262
  children: /* @__PURE__ */ c(
9263
9263
  "span",
9264
9264
  {
9265
9265
  role: "button",
9266
- className: k(
9266
+ className: C(
9267
9267
  "my-auto flex items-center pr-1",
9268
9268
  t && "text-f1-foreground-secondary",
9269
- C && "text-f1-foreground",
9270
- N.length === 1 && !i || l && !C ? "pl-8" : "pl-2"
9269
+ k && "text-f1-foreground",
9270
+ I.length === 1 && !i || l && !k ? "pl-8" : "pl-2"
9271
9271
  ),
9272
9272
  children: /* @__PURE__ */ c(
9273
9273
  Ye,
9274
9274
  {
9275
9275
  tag: "span",
9276
- className: N.length === 1 && N[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
9277
- children: N.length === 0 ? t ?? "" : N.length === 1 ? N[0].subItem.subName : `${N.length} ${e}`
9276
+ className: I.length === 1 && I[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
9277
+ children: I.length === 0 ? t ?? "" : I.length === 1 ? I[0].subItem.subName : `${I.length} ${e}`
9278
9278
  }
9279
9279
  )
9280
9280
  }
@@ -9284,47 +9284,47 @@ const xl = ({
9284
9284
  }, qN = (t) => {
9285
9285
  const [e, n] = R(
9286
9286
  (t.alwaysOpen || t.defaultOpen) ?? !1
9287
- ), r = (C) => {
9288
- n(C), t.onOpenChange?.(C);
9287
+ ), r = (k) => {
9288
+ n(k), t.onOpenChange?.(k);
9289
9289
  };
9290
9290
  W(() => {
9291
9291
  t.defaultOpen && e && t.onOpenChange?.(!0);
9292
9292
  }, [t.defaultOpen]);
9293
9293
  const [i, s] = R(t.entities), [o, l] = R(""), [a, d] = Eh("", 300), f = ee(
9294
9294
  () => t.entities.some(
9295
- (C) => C.subItems && C.subItems.length > 0
9295
+ (k) => k.subItems && k.subItems.length > 0
9296
9296
  ),
9297
9297
  [t.entities]
9298
9298
  );
9299
- function u(C) {
9299
+ function u(k) {
9300
9300
  if (t.singleSelector) {
9301
- t.onSelect(C), n(!1);
9301
+ t.onSelect(k), n(!1);
9302
9302
  return;
9303
9303
  }
9304
- const T = t.selectedEntities ?? [], I = i.find((U) => U.id === C.id);
9305
- if (!I)
9304
+ const T = t.selectedEntities ?? [], N = i.find((U) => U.id === k.id);
9305
+ if (!N)
9306
9306
  return;
9307
9307
  const L = new Set(
9308
- (I.subItems ?? []).map((U) => U.subId)
9309
- ), y = /* @__PURE__ */ new Set([I.id]);
9308
+ (N.subItems ?? []).map((U) => U.subId)
9309
+ ), y = /* @__PURE__ */ new Set([N.id]);
9310
9310
  i.forEach((U) => {
9311
- U.id !== I.id && (U.subItems ?? []).some(
9311
+ U.id !== N.id && (U.subItems ?? []).some(
9312
9312
  ($) => L.has($.subId)
9313
9313
  ) && y.add(U.id);
9314
9314
  });
9315
- const _ = [...T];
9315
+ const A = [...T];
9316
9316
  function M(U) {
9317
- const D = _.findIndex(($) => $.id === U.id);
9318
- D >= 0 ? _[D] = U : _.push(U);
9317
+ const D = A.findIndex(($) => $.id === U.id);
9318
+ D >= 0 ? A[D] = U : A.push(U);
9319
9319
  }
9320
9320
  y.forEach((U) => {
9321
9321
  const D = i.find((F) => F.id === U);
9322
9322
  if (!D) return;
9323
9323
  const $ = D.subItems?.filter(
9324
9324
  (F) => L.has(F.subId)
9325
- ) ?? [], ne = _.findIndex((F) => F.id === U);
9325
+ ) ?? [], ne = A.findIndex((F) => F.id === U);
9326
9326
  if (ne >= 0) {
9327
- const F = _[ne].subItems ?? [], ge = new Set(F.map((q) => q.subId)), Se = [
9327
+ const F = A[ne].subItems ?? [], ge = new Set(F.map((q) => q.subId)), Se = [
9328
9328
  ...F,
9329
9329
  ...$.filter((q) => !ge.has(q.subId))
9330
9330
  ];
@@ -9337,21 +9337,21 @@ const xl = ({
9337
9337
  ...D,
9338
9338
  subItems: $
9339
9339
  });
9340
- }), t.onSelect(_);
9340
+ }), t.onSelect(A);
9341
9341
  }
9342
- function h(C, T) {
9342
+ function h(k, T) {
9343
9343
  if (t.singleSelector)
9344
- t.onSelect({ ...C, subItems: [{ ...T }] }), n(!1);
9344
+ t.onSelect({ ...k, subItems: [{ ...T }] }), n(!1);
9345
9345
  else {
9346
- const I = t.selectedEntities ?? [], L = new Set(I.map((M) => M.id)), y = new Map(
9347
- I.map((M) => [M.id, M.subItems ?? []])
9346
+ const N = t.selectedEntities ?? [], L = new Set(N.map((M) => M.id)), y = new Map(
9347
+ N.map((M) => [M.id, M.subItems ?? []])
9348
9348
  );
9349
- L.add(C.id), t.entities.forEach((M) => {
9349
+ L.add(k.id), t.entities.forEach((M) => {
9350
9350
  M.subItems?.some(
9351
9351
  (D) => D.subId === T.subId
9352
9352
  ) && L.add(M.id);
9353
9353
  });
9354
- const _ = [];
9354
+ const A = [];
9355
9355
  t.entities.forEach((M) => {
9356
9356
  if (L.has(M.id)) {
9357
9357
  let D = [...y.get(M.id) ?? []];
@@ -9365,53 +9365,53 @@ const xl = ({
9365
9365
  );
9366
9366
  D = D.filter(
9367
9367
  (F) => ne.has(F.subId)
9368
- ), _.push({
9368
+ ), A.push({
9369
9369
  ...M,
9370
9370
  subItems: D
9371
9371
  });
9372
9372
  }
9373
- }), t.onSelect(_);
9373
+ }), t.onSelect(A);
9374
9374
  }
9375
9375
  }
9376
- function p(C) {
9376
+ function p(k) {
9377
9377
  if (t.singleSelector) {
9378
9378
  t.onSelect(null);
9379
9379
  return;
9380
9380
  }
9381
9381
  let T = [];
9382
- const I = t.selectedEntities ?? [];
9382
+ const N = t.selectedEntities ?? [];
9383
9383
  if (f) {
9384
9384
  const L = i.find(
9385
- (_) => _.id === C.id
9385
+ (A) => A.id === k.id
9386
9386
  );
9387
9387
  if (!L)
9388
9388
  return;
9389
9389
  const y = new Set(
9390
- (L.subItems ?? []).map((_) => _.subId)
9390
+ (L.subItems ?? []).map((A) => A.subId)
9391
9391
  );
9392
- for (const _ of I) {
9393
- const M = (_.subItems ?? []).filter(
9392
+ for (const A of N) {
9393
+ const M = (A.subItems ?? []).filter(
9394
9394
  (U) => !y.has(U.subId)
9395
9395
  );
9396
9396
  M.length > 0 && T.push({
9397
- ..._,
9397
+ ...A,
9398
9398
  subItems: M
9399
9399
  });
9400
9400
  }
9401
9401
  } else
9402
- T = (I ?? []).filter((L) => L.id !== C.id);
9402
+ T = (N ?? []).filter((L) => L.id !== k.id);
9403
9403
  t.onSelect(T);
9404
9404
  }
9405
- function m(C, T) {
9405
+ function m(k, T) {
9406
9406
  if (t.singleSelector) {
9407
9407
  t.onSelect(null);
9408
9408
  return;
9409
9409
  }
9410
- const I = t.selectedEntities ?? [], L = T.subId, y = [];
9411
- for (const _ of I) {
9412
- const M = _.subItems?.filter((U) => U.subId !== L) ?? [];
9410
+ const N = t.selectedEntities ?? [], L = T.subId, y = [];
9411
+ for (const A of N) {
9412
+ const M = A.subItems?.filter((U) => U.subId !== L) ?? [];
9413
9413
  M.length > 0 && y.push({
9414
- ..._,
9414
+ ...A,
9415
9415
  subItems: M
9416
9416
  });
9417
9417
  }
@@ -9422,17 +9422,17 @@ const xl = ({
9422
9422
  t.onSelect(null);
9423
9423
  return;
9424
9424
  }
9425
- const C = t.selectedEntities ?? [];
9425
+ const k = t.selectedEntities ?? [];
9426
9426
  let T = [];
9427
9427
  if (f) {
9428
- const I = new Set(
9428
+ const N = new Set(
9429
9429
  i.flatMap(
9430
9430
  (L) => (L.subItems ?? []).map((y) => y.subId)
9431
9431
  )
9432
9432
  );
9433
- for (const L of C) {
9433
+ for (const L of k) {
9434
9434
  const y = (L.subItems ?? []).filter(
9435
- (_) => !I.has(_.subId)
9435
+ (A) => !N.has(A.subId)
9436
9436
  );
9437
9437
  y.length > 0 && T.push({
9438
9438
  ...L,
@@ -9440,39 +9440,39 @@ const xl = ({
9440
9440
  });
9441
9441
  }
9442
9442
  } else {
9443
- const I = new Set(
9443
+ const N = new Set(
9444
9444
  i.map((L) => L.id)
9445
9445
  );
9446
- T = (C ?? []).filter((L) => !I.has(L.id));
9446
+ T = (k ?? []).filter((L) => !N.has(L.id));
9447
9447
  }
9448
9448
  t.onSelect(T);
9449
9449
  }
9450
9450
  function w() {
9451
- const C = [...t.selectedEntities ?? []];
9451
+ const k = [...t.selectedEntities ?? []];
9452
9452
  i.forEach((T) => {
9453
- const I = C.find((L) => L.id === T.id);
9454
- if (!I)
9455
- C.push({
9453
+ const N = k.find((L) => L.id === T.id);
9454
+ if (!N)
9455
+ k.push({
9456
9456
  ...T,
9457
9457
  subItems: T.subItems || []
9458
9458
  });
9459
9459
  else {
9460
9460
  const L = Array.from(
9461
9461
  /* @__PURE__ */ new Set([
9462
- ...I.subItems ?? [],
9462
+ ...N.subItems ?? [],
9463
9463
  ...T.subItems ?? []
9464
9464
  ])
9465
9465
  );
9466
- I.subItems = L;
9466
+ N.subItems = L;
9467
9467
  }
9468
- }), t.singleSelector || t.onSelect(C);
9468
+ }), t.singleSelector || t.onSelect(k);
9469
9469
  }
9470
- const x = (C) => {
9471
- l(C), d(C);
9472
- }, v = (C, T) => {
9473
- t.onItemExpandedChange(C.id, T), s(
9470
+ const x = (k) => {
9471
+ l(k), d(k);
9472
+ }, v = (k, T) => {
9473
+ t.onItemExpandedChange(k.id, T), s(
9474
9474
  i.map(
9475
- (I) => I.id === C.id ? { ...I, expanded: !C.expanded } : I
9475
+ (N) => N.id === k.id ? { ...N, expanded: !k.expanded } : N
9476
9476
  )
9477
9477
  );
9478
9478
  };
@@ -9482,31 +9482,31 @@ const xl = ({
9482
9482
  return;
9483
9483
  }
9484
9484
  if (f && !t.applySearchToGroup) {
9485
- const T = t.entities.map((I) => {
9486
- const L = ox(I, a), y = I.subItems?.map((_) => ({
9487
- ..._,
9485
+ const T = t.entities.map((N) => {
9486
+ const L = ox(N, a), y = N.subItems?.map((A) => ({
9487
+ ...A,
9488
9488
  score: Pr(
9489
9489
  a,
9490
- _.subSearchKeys ?? [_.subName]
9490
+ A.subSearchKeys ?? [A.subName]
9491
9491
  )
9492
- })).filter((_) => _.score < 1 / 0).sort((_, M) => _.score - M.score);
9492
+ })).filter((A) => A.score < 1 / 0).sort((A, M) => A.score - M.score);
9493
9493
  return {
9494
- ...I,
9494
+ ...N,
9495
9495
  score: L,
9496
- expanded: I.expanded ?? (y?.length ?? 0) > 0,
9496
+ expanded: N.expanded ?? (y?.length ?? 0) > 0,
9497
9497
  subItems: y
9498
9498
  };
9499
- }).filter((I) => I.score < 1 / 0).sort((I, L) => I.score - L.score);
9499
+ }).filter((N) => N.score < 1 / 0).sort((N, L) => N.score - L.score);
9500
9500
  s(T);
9501
9501
  } else {
9502
- const C = t.entities.map((T) => {
9503
- const I = Pr(
9502
+ const k = t.entities.map((T) => {
9503
+ const N = Pr(
9504
9504
  a,
9505
9505
  T.searchKeys ?? [T.name]
9506
9506
  );
9507
- return { ...T, score: I };
9508
- }).filter((T) => T.score < 1 / 0).sort((T, I) => T.score - I.score);
9509
- s(C);
9507
+ return { ...T, score: N };
9508
+ }).filter((T) => T.score < 1 / 0).sort((T, N) => T.score - N.score);
9509
+ s(k);
9510
9510
  }
9511
9511
  }, [
9512
9512
  a,
@@ -9515,17 +9515,17 @@ const xl = ({
9515
9515
  f,
9516
9516
  s
9517
9517
  ]);
9518
- const S = K(null), [A, N] = R(0);
9518
+ const S = K(null), [_, I] = R(0);
9519
9519
  return Va(() => {
9520
- const C = () => {
9521
- S.current && N(S.current.offsetWidth);
9520
+ const k = () => {
9521
+ S.current && I(S.current.offsetWidth);
9522
9522
  };
9523
- return C(), window.addEventListener("resize", C), () => window.removeEventListener("resize", C);
9523
+ return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
9524
9524
  }, []), t.alwaysOpen ? /* @__PURE__ */ c(
9525
9525
  "div",
9526
9526
  {
9527
9527
  ref: S,
9528
- className: k(
9528
+ className: C(
9529
9529
  "scrollbar-macos relative overflow-auto rounded-xl border-[1px] border-solid border-f1-border-secondary bg-transparent p-0",
9530
9530
  t.width ? "w-fit" : "w-full"
9531
9531
  ),
@@ -9555,7 +9555,7 @@ const xl = ({
9555
9555
  loading: t.loading,
9556
9556
  notFoundTitle: t.notFoundTitle,
9557
9557
  notFoundSubtitle: t.notFoundSubtitle,
9558
- width: t.width ?? A - 2,
9558
+ width: t.width ?? _ - 2,
9559
9559
  disabled: t.disabled,
9560
9560
  hiddenAvatar: t.hiddenAvatar,
9561
9561
  onCreate: t.onCreate,
@@ -9600,7 +9600,7 @@ const xl = ({
9600
9600
  /* @__PURE__ */ c(
9601
9601
  Lh,
9602
9602
  {
9603
- className: k(
9603
+ className: C(
9604
9604
  "scrollbar-macos relative w-full overflow-auto rounded-xl border-[1px] border-solid border-f1-border-secondary bg-transparent p-0"
9605
9605
  ),
9606
9606
  children: /* @__PURE__ */ c(
@@ -9793,7 +9793,7 @@ var Al = z.forwardRef(
9793
9793
  }
9794
9794
  ), vd = Zs, kd = yd;
9795
9795
  const Cd = rt({
9796
- base: k(
9796
+ base: C(
9797
9797
  "inline-flex items-center justify-center rounded-sm text-sm font-medium transition-colors hover:bg-f1-background-secondary hover:text-f1-foreground-secondary disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-f1-background-secondary data-[state=on]:text-f1-foreground",
9798
9798
  Re()
9799
9799
  ),
@@ -9816,7 +9816,7 @@ const Cd = rt({
9816
9816
  Da,
9817
9817
  {
9818
9818
  ref: i,
9819
- className: k(Cd({ variant: e, size: n, className: t })),
9819
+ className: C(Cd({ variant: e, size: n, className: t })),
9820
9820
  ...r
9821
9821
  }
9822
9822
  ));
@@ -9828,7 +9828,7 @@ const Sd = Sn.createContext({
9828
9828
  vd,
9829
9829
  {
9830
9830
  ref: s,
9831
- className: k("flex items-center justify-center gap-1.5", t),
9831
+ className: C("flex items-center justify-center gap-1.5", t),
9832
9832
  ...i,
9833
9833
  children: /* @__PURE__ */ c(Sd.Provider, { value: { variant: e, size: n }, children: r })
9834
9834
  }
@@ -9840,7 +9840,7 @@ const Id = Sn.forwardRef(({ className: t, children: e, variant: n, size: r, ...i
9840
9840
  kd,
9841
9841
  {
9842
9842
  ref: s,
9843
- className: k(
9843
+ className: C(
9844
9844
  Cd({
9845
9845
  variant: o.variant || n,
9846
9846
  size: o.size || r
@@ -10021,7 +10021,7 @@ function Cx({
10021
10021
  return /* @__PURE__ */ g(
10022
10022
  "div",
10023
10023
  {
10024
- className: k(
10024
+ className: C(
10025
10025
  "relative h-32 w-full overflow-hidden rounded-md bg-f1-background",
10026
10026
  n ? "" : kx[zh(
10027
10027
  [t, e].join("")
@@ -10057,7 +10057,7 @@ function Cx({
10057
10057
  "div",
10058
10058
  {
10059
10059
  ref: o,
10060
- className: k(
10060
+ className: C(
10061
10061
  "absolute -right-0.5",
10062
10062
  n ? "bottom-0.5" : "-bottom-[3px]"
10063
10063
  ),
@@ -10126,8 +10126,8 @@ const Nx = ({
10126
10126
  W(() => {
10127
10127
  h(o);
10128
10128
  }, [o]);
10129
- const m = (A) => {
10130
- h(A), l?.(A);
10129
+ const m = (_) => {
10130
+ h(_), l?.(_);
10131
10131
  }, b = Zr(), { canvasRef: w, handleMouseEnter: x, handleMouseLeave: v } = Sx(b), S = Jr({
10132
10132
  emoji: vx[a],
10133
10133
  size: "sm"
@@ -10137,7 +10137,7 @@ const Nx = ({
10137
10137
  {
10138
10138
  href: t,
10139
10139
  onClick: i,
10140
- className: k(
10140
+ className: C(
10141
10141
  "relative flex flex-col rounded-xl border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary no-underline transition-shadow hover:shadow",
10142
10142
  Re()
10143
10143
  ),
@@ -10229,7 +10229,7 @@ function Ax({
10229
10229
  onClick: (m) => {
10230
10230
  u(m, t);
10231
10231
  },
10232
- className: k(
10232
+ className: C(
10233
10233
  "flex items-center gap-1 px-[3px] font-medium leading-tight shadow-none transition-all active:scale-90 motion-reduce:transition-none motion-reduce:active:scale-100",
10234
10234
  s && "border-f1-border-selected bg-f1-background-selected hover:border-f1-border-selected-bold"
10235
10235
  ),
@@ -10243,7 +10243,7 @@ function Ax({
10243
10243
  duration: 200,
10244
10244
  easing: "cubic-bezier(0.175, 0.885, 0.32, 1.275)"
10245
10245
  },
10246
- className: k(
10246
+ className: C(
10247
10247
  "tabular-nums",
10248
10248
  s ? "text-f1-foreground-selected" : "text-f1-foreground"
10249
10249
  )
@@ -10286,7 +10286,10 @@ const Ex = V("Reactions", _x), Tx = ({
10286
10286
  id,
10287
10287
  {
10288
10288
  content: t,
10289
- className: k("FactorialOneTextEditor", e && "line-clamp-5")
10289
+ className: C(
10290
+ "FactorialOneTextEditor",
10291
+ e && "line-clamp-5 break-words"
10292
+ )
10290
10293
  }
10291
10294
  ), Dx = () => /* @__PURE__ */ g("div", { className: "flex flex-col justify-around gap-3 py-2", children: [
10292
10295
  /* @__PURE__ */ c(E, { className: "h-2.5 w-1/2 rounded-2xs" }),
@@ -10297,7 +10300,7 @@ const Ex = V("Reactions", _x), Tx = ({
10297
10300
  ), _l = ({ tags: t, right: e }) => /* @__PURE__ */ c(
10298
10301
  "div",
10299
10302
  {
10300
- className: k(
10303
+ className: C(
10301
10304
  "flex flex-1 flex-row items-center gap-1.5",
10302
10305
  e && "justify-end"
10303
10306
  ),
@@ -10498,23 +10501,23 @@ const Ex = V("Reactions", _x), Tx = ({
10498
10501
  dropdownItems: m,
10499
10502
  noReactionsButton: b = !1
10500
10503
  }) => {
10501
- const w = [d.views, d.comments].filter(Boolean).join(" · "), x = cc(r), v = () => {
10504
+ const w = [d.views, d.comments].filter(Boolean).join(" · "), x = !0, v = cc(r), S = () => {
10502
10505
  o(t);
10503
- }, S = (N) => {
10504
- N.stopPropagation();
10505
- }, A = e ? `${e.firstName} ${e.lastName}` : void 0;
10506
+ }, _ = (k) => {
10507
+ k.stopPropagation();
10508
+ }, I = e ? `${e.firstName} ${e.lastName}` : void 0;
10506
10509
  return /* @__PURE__ */ g(
10507
10510
  "div",
10508
10511
  {
10509
10512
  className: "flex w-full cursor-pointer flex-row gap-3 rounded-xl border border-solid border-transparent p-3 pt-2 hover:bg-f1-background-hover focus:border-f1-border-secondary focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold md:pb-4 md:pt-3",
10510
- onClick: v,
10513
+ onClick: S,
10511
10514
  id: `community-post-${t}`,
10512
10515
  children: [
10513
10516
  /* @__PURE__ */ c("div", { className: "hidden md:block", children: e ? /* @__PURE__ */ c(
10514
10517
  er,
10515
10518
  {
10516
10519
  href: e.url || "#",
10517
- title: A,
10520
+ title: I,
10518
10521
  stopPropagation: !0,
10519
10522
  children: /* @__PURE__ */ c(
10520
10523
  nt,
@@ -10526,17 +10529,17 @@ const Ex = V("Reactions", _x), Tx = ({
10526
10529
  )
10527
10530
  }
10528
10531
  ) : /* @__PURE__ */ c(Hi, { icon: Ao }) }),
10529
- /* @__PURE__ */ g("div", { className: "flex flex-1 flex-col gap-3", children: [
10530
- /* @__PURE__ */ g("div", { className: "flex flex-col gap-2", children: [
10532
+ /* @__PURE__ */ g("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
10533
+ /* @__PURE__ */ g("div", { className: "flex min-w-0 flex-col gap-2", children: [
10531
10534
  /* @__PURE__ */ g("div", { className: "flex flex-row justify-between", children: [
10532
- /* @__PURE__ */ g("div", { className: "flex flex-1 flex-row flex-wrap items-center gap-1", children: [
10535
+ /* @__PURE__ */ g("div", { className: "flex min-w-0 flex-1 flex-row flex-wrap items-center gap-1", children: [
10533
10536
  e ? /* @__PURE__ */ g(re, { children: [
10534
10537
  /* @__PURE__ */ c(
10535
10538
  er,
10536
10539
  {
10537
10540
  href: e.url,
10538
10541
  className: "block md:hidden",
10539
- title: A,
10542
+ title: I,
10540
10543
  stopPropagation: !0,
10541
10544
  children: /* @__PURE__ */ c("span", { className: "flex items-center", children: /* @__PURE__ */ c(
10542
10545
  nt,
@@ -10553,17 +10556,17 @@ const Ex = V("Reactions", _x), Tx = ({
10553
10556
  er,
10554
10557
  {
10555
10558
  href: e.url,
10556
- title: A,
10559
+ title: I,
10557
10560
  className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
10558
10561
  stopPropagation: !0,
10559
- children: A
10562
+ children: I
10560
10563
  }
10561
10564
  )
10562
10565
  ] }) : /* @__PURE__ */ c("div", { className: "block md:hidden", children: /* @__PURE__ */ c(Hi, { icon: Ao, size: "sm" }) }),
10563
10566
  /* @__PURE__ */ c(
10564
10567
  "span",
10565
10568
  {
10566
- className: k(
10569
+ className: C(
10567
10570
  "text-f1-foreground-secondary",
10568
10571
  !e && "capitalize"
10569
10572
  ),
@@ -10584,18 +10587,18 @@ const Ex = V("Reactions", _x), Tx = ({
10584
10587
  ] }),
10585
10588
  /* @__PURE__ */ g("div", { className: "flex flex-row gap-2", children: [
10586
10589
  /* @__PURE__ */ g("div", { className: "hidden flex-row gap-2 md:flex", children: [
10587
- p?.map((N) => /* @__PURE__ */ c(
10590
+ p?.map((k) => /* @__PURE__ */ c(
10588
10591
  B,
10589
10592
  {
10590
- hideLabel: !N.label,
10591
- ...N.icon && { icon: N.icon },
10593
+ hideLabel: !k.label,
10594
+ ...k.icon && { icon: k.icon },
10592
10595
  variant: "outline",
10593
10596
  size: "md",
10594
- onClick: N.onClick,
10595
- label: N.label ?? "",
10596
- title: N.label ?? ""
10597
+ onClick: k.onClick,
10598
+ label: k.label ?? "",
10599
+ title: k.label ?? ""
10597
10600
  },
10598
- N.label
10601
+ k.label
10599
10602
  )),
10600
10603
  m?.length && /* @__PURE__ */ c(
10601
10604
  mt,
@@ -10622,10 +10625,19 @@ const Ex = V("Reactions", _x), Tx = ({
10622
10625
  ) })
10623
10626
  ] })
10624
10627
  ] }),
10625
- /* @__PURE__ */ c("span", { className: "-mt-3 text-sm text-f1-foreground-secondary", children: x }),
10626
- /* @__PURE__ */ g("div", { className: "flex flex-col gap-1 text-f1-foreground", children: [
10627
- /* @__PURE__ */ c("p", { className: "text-xl font-semibold", children: i }),
10628
- s && /* @__PURE__ */ c(_d, { content: s, collapsed: !0 })
10628
+ /* @__PURE__ */ c("span", { className: "-mt-3 text-sm text-f1-foreground-secondary", children: v }),
10629
+ /* @__PURE__ */ g("div", { className: "flex min-w-0 flex-col gap-1 text-f1-foreground", children: [
10630
+ /* @__PURE__ */ c(
10631
+ "p",
10632
+ {
10633
+ className: C(
10634
+ "text-xl font-semibold",
10635
+ "line-clamp-2 break-words"
10636
+ ),
10637
+ children: i
10638
+ }
10639
+ ),
10640
+ s && /* @__PURE__ */ c(_d, { content: s, collapsed: x })
10629
10641
  ] })
10630
10642
  ] }),
10631
10643
  l && !a && /* @__PURE__ */ c("div", { className: "relative aspect-video overflow-hidden rounded-xl md:max-w-[480px]", children: Ed(l) ? /* @__PURE__ */ c(
@@ -10633,7 +10645,7 @@ const Ex = V("Reactions", _x), Tx = ({
10633
10645
  {
10634
10646
  controls: !0,
10635
10647
  className: "aspect-video h-full w-full bg-f1-background-secondary object-cover",
10636
- onClick: S,
10648
+ onClick: _,
10637
10649
  children: /* @__PURE__ */ c("source", { src: l })
10638
10650
  }
10639
10651
  ) : /* @__PURE__ */ g(re, { children: [
@@ -10742,7 +10754,7 @@ const Ex = V("Reactions", _x), Tx = ({
10742
10754
  {
10743
10755
  type: "button",
10744
10756
  "aria-label": n ? "Copied!" : `Copy ${t}`,
10745
- className: k(
10757
+ className: C(
10746
10758
  "group flex items-center gap-1.5 rounded p-1.5",
10747
10759
  "focus-visible:outline focus-visible:outline-2 focus-visible:outline-f1-border-selected-bold",
10748
10760
  "transition-colors duration-300 hover:bg-f1-background-hover active:bg-f1-background-secondary-hover",
@@ -10767,7 +10779,7 @@ const Ex = V("Reactions", _x), Tx = ({
10767
10779
  size: "md",
10768
10780
  "aria-hidden": !0,
10769
10781
  color: "default",
10770
- className: k(
10782
+ className: C(
10771
10783
  "opacity-0 transition-opacity duration-300",
10772
10784
  !n && "group-hover:opacity-100 group-focus-visible:opacity-100"
10773
10785
  )
@@ -10791,7 +10803,7 @@ const Ex = V("Reactions", _x), Tx = ({
10791
10803
  size: "md",
10792
10804
  "aria-hidden": !0,
10793
10805
  color: "positive",
10794
- className: k(
10806
+ className: C(
10795
10807
  "text-f1-icon-positive opacity-0 transition-opacity duration-300",
10796
10808
  n && "group-hover:opacity-100 group-focus-visible:opacity-100"
10797
10809
  )
@@ -10809,7 +10821,7 @@ const Ex = V("Reactions", _x), Tx = ({
10809
10821
  it,
10810
10822
  {
10811
10823
  ...n,
10812
- className: k(
10824
+ className: C(
10813
10825
  "text-inherit group flex items-center gap-1.5 rounded p-1.5 text-f1-foreground",
10814
10826
  "no-underline hover:bg-f1-background-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-f1-border-selected-bold active:bg-f1-background-secondary-hover",
10815
10827
  e
@@ -10830,7 +10842,7 @@ const Ld = Ga(
10830
10842
  target: "_blank",
10831
10843
  href: n,
10832
10844
  rel: "noopener noreferrer",
10833
- className: k(
10845
+ className: C(
10834
10846
  "text-inherit group flex items-center gap-1.5 rounded p-1.5 text-f1-foreground",
10835
10847
  "no-underline hover:bg-f1-background-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-f1-border-selected-bold active:bg-f1-background-secondary-hover",
10836
10848
  e
@@ -10868,7 +10880,7 @@ const Gn = P(
10868
10880
  jx,
10869
10881
  {
10870
10882
  action: s,
10871
- className: k("flex items-center gap-1.5 p-1.5", i),
10883
+ className: C("flex items-center gap-1.5 p-1.5", i),
10872
10884
  children: [
10873
10885
  r && (typeof r == "function" ? r({}) : /* @__PURE__ */ c(H, { icon: r, size: "md", "aria-hidden": "true" })),
10874
10886
  /* @__PURE__ */ c("div", { className: "line-clamp-5 flex-1 whitespace-pre-line text-left", children: n })
@@ -10993,14 +11005,14 @@ const Zx = V("TagListItem", Hd), Vd = P(
10993
11005
  ({ children: t, label: e, isHorizontal: n = !1 }, r) => /* @__PURE__ */ g(
10994
11006
  "div",
10995
11007
  {
10996
- className: k(
11008
+ className: C(
10997
11009
  n ? "flex min-h-12 flex-1 flex-col py-1.5 pl-3 pr-1.5 xs:flex-row" : "min-w-32 md:max-w-80"
10998
11010
  ),
10999
11011
  children: [
11000
11012
  e && /* @__PURE__ */ c(
11001
11013
  "p",
11002
11014
  {
11003
- className: k(
11015
+ className: C(
11004
11016
  "px-1.5 text-f1-foreground-secondary",
11005
11017
  n ? "mt-2 w-44 xs:px-0" : "mb-0.5"
11006
11018
  ),
@@ -11044,7 +11056,7 @@ const Qx = V("DataList", Vd), Ve = Object.assign(Qx, {
11044
11056
  "div",
11045
11057
  {
11046
11058
  ref: s,
11047
- className: k(
11059
+ className: C(
11048
11060
  "flex flex-col gap-0.5",
11049
11061
  i && !r && "pb-3",
11050
11062
  r && "xs:[&_ul>li]:p-0 [&_ul]:flex-1"
@@ -11062,7 +11074,7 @@ const Qx = V("DataList", Vd), Ve = Object.assign(Qx, {
11062
11074
  /* @__PURE__ */ c(
11063
11075
  "div",
11064
11076
  {
11065
- className: k(
11077
+ className: C(
11066
11078
  "flex flex-col",
11067
11079
  n ? "rounded-md border border-solid border-f1-border-secondary" : "gap-3"
11068
11080
  ),
@@ -11094,7 +11106,7 @@ const Qx = V("DataList", Vd), Ve = Object.assign(Qx, {
11094
11106
  "div",
11095
11107
  {
11096
11108
  ref: r,
11097
- className: k(
11109
+ className: C(
11098
11110
  "flex w-full flex-row flex-wrap items-center gap-2 rounded-md border p-2 hover:bg-f1-background-hover focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold",
11099
11111
  n.withPointerCursor && "cursor-pointer"
11100
11112
  ),
@@ -11247,13 +11259,13 @@ function uy({
11247
11259
  chatWidth: h,
11248
11260
  resizable: p
11249
11261
  } = Xh(), m = u === "fullscreen", { open: b } = Qr(), w = p ? h : Zh, x = K(m), v = m && !x.current, S = !m && x.current, [
11250
- A,
11251
- N
11262
+ _,
11263
+ I
11252
11264
  ] = R(!1);
11253
11265
  W(() => {
11254
- !m && x.current && N(!0), x.current = m;
11266
+ !m && x.current && I(!0), x.current = m;
11255
11267
  }, [m]);
11256
- const C = m || A || S, T = ee(() => v ? { duration: 0.15, ease: "easeOut" } : S ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [v, S]), I = ga(
11268
+ const k = m || _ || S, T = ee(() => v ? { duration: 0.15, ease: "easeOut" } : S ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [v, S]), N = ga(
11257
11269
  `(max-width: ${Bi.xl}px)`,
11258
11270
  { initializeWithValue: !0 }
11259
11271
  );
@@ -11261,7 +11273,7 @@ function uy({
11261
11273
  a(f);
11262
11274
  }, [f, a]), W(() => {
11263
11275
  a(b);
11264
- }, [b, a]), dy(f, I), /* @__PURE__ */ c(
11276
+ }, [b, a]), dy(f, N), /* @__PURE__ */ c(
11265
11277
  om,
11266
11278
  {
11267
11279
  reducedMotion: d ? "always" : "never",
@@ -11275,7 +11287,7 @@ function uy({
11275
11287
  /* @__PURE__ */ c(Bt, { children: s === "unlocked" && /* @__PURE__ */ c(
11276
11288
  X.nav,
11277
11289
  {
11278
- className: k(
11290
+ className: C(
11279
11291
  "fixed inset-0 z-20 bg-f1-background-inverse",
11280
11292
  !l && "hidden"
11281
11293
  ),
@@ -11289,7 +11301,7 @@ function uy({
11289
11301
  /* @__PURE__ */ g(
11290
11302
  "div",
11291
11303
  {
11292
- className: k(
11304
+ className: C(
11293
11305
  s !== "locked" ? "z-30" : "z-0",
11294
11306
  !d && "transition-all",
11295
11307
  s === "locked" ? "w-[240px] shrink-0 pl-3" : "w-0"
@@ -11317,9 +11329,9 @@ function uy({
11317
11329
  {
11318
11330
  id: "content",
11319
11331
  layoutId: "main",
11320
- className: k(
11332
+ className: C(
11321
11333
  "relative z-10 flex h-full max-w-full flex-1 xs:py-1",
11322
- C ? "overflow-hidden" : "overflow-auto",
11334
+ k ? "overflow-hidden" : "overflow-auto",
11323
11335
  !f && !b && "xs:pr-1",
11324
11336
  s === "locked" ? "pl-0" : "xs:pl-1"
11325
11337
  ),
@@ -11327,9 +11339,9 @@ function uy({
11327
11339
  children: /* @__PURE__ */ c(
11328
11340
  X.div,
11329
11341
  {
11330
- className: k(
11342
+ className: C(
11331
11343
  "flex max-w-full flex-1",
11332
- C ? "overflow-hidden" : "overflow-auto"
11344
+ k ? "overflow-hidden" : "overflow-auto"
11333
11345
  ),
11334
11346
  layout: "position",
11335
11347
  children: n
@@ -11340,18 +11352,18 @@ function uy({
11340
11352
  t?.enabled && /* @__PURE__ */ c(
11341
11353
  X.div,
11342
11354
  {
11343
- className: k(
11355
+ className: C(
11344
11356
  "pointer-events-none absolute right-0 top-0 bottom-0",
11345
11357
  "[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full",
11346
- C ? "z-20" : "z-0",
11347
- s === "hidden" && C ? "pl-1" : "pl-0"
11358
+ k ? "z-20" : "z-0",
11359
+ s === "hidden" && k ? "pl-1" : "pl-0"
11348
11360
  ),
11349
11361
  animate: {
11350
11362
  width: m ? "100%" : w
11351
11363
  },
11352
11364
  transition: T,
11353
11365
  onAnimationComplete: () => {
11354
- A && N(!1);
11366
+ _ && I(!1);
11355
11367
  },
11356
11368
  children: /* @__PURE__ */ c(Qh, {})
11357
11369
  }
@@ -11406,7 +11418,7 @@ function Ud({
11406
11418
  /* @__PURE__ */ g(
11407
11419
  "div",
11408
11420
  {
11409
- className: k(
11421
+ className: C(
11410
11422
  "flex flex-row items-center",
11411
11423
  o ? "gap-1.5" : "gap-3"
11412
11424
  ),
@@ -11433,7 +11445,7 @@ function Ud({
11433
11445
  /* @__PURE__ */ c(
11434
11446
  "p",
11435
11447
  {
11436
- className: k(
11448
+ className: C(
11437
11449
  o ? "text-lg" : "text-2xl",
11438
11450
  "font-semibold text-f1-foreground"
11439
11451
  ),
@@ -11443,7 +11455,7 @@ function Ud({
11443
11455
  e.description && /* @__PURE__ */ c(
11444
11456
  "p",
11445
11457
  {
11446
- className: k(
11458
+ className: C(
11447
11459
  o ? "text-md" : "text-lg",
11448
11460
  "text-f1-foreground-secondary"
11449
11461
  ),
@@ -11463,7 +11475,7 @@ function Ud({
11463
11475
  /* @__PURE__ */ c(
11464
11476
  "div",
11465
11477
  {
11466
- className: k(
11478
+ className: C(
11467
11479
  "isolate flex w-full flex-1 flex-col overflow-y-auto overflow-x-hidden [&>*]:flex-1",
11468
11480
  o && "-mt-3"
11469
11481
  ),
@@ -11498,7 +11510,7 @@ function py({ label: t, options: e, hasNewUpdate: n }) {
11498
11510
  children: /* @__PURE__ */ c(mt, { items: hy(e), children: /* @__PURE__ */ g(
11499
11511
  "button",
11500
11512
  {
11501
- className: k(
11513
+ className: C(
11502
11514
  "relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all",
11503
11515
  Re()
11504
11516
  ),
@@ -11612,7 +11624,7 @@ const gy = ({
11612
11624
  children: /* @__PURE__ */ g(
11613
11625
  "div",
11614
11626
  {
11615
- className: k(
11627
+ className: C(
11616
11628
  "group flex w-fit max-w-full flex-nowrap items-center justify-center gap-1 rounded p-1.5 text-f1-foreground transition-colors hover:bg-f1-background-hover data-[state=open]:bg-f1-background-hover",
11617
11629
  Re()
11618
11630
  ),
@@ -11641,7 +11653,7 @@ const gy = ({
11641
11653
  }) => /* @__PURE__ */ g(
11642
11654
  "div",
11643
11655
  {
11644
- className: k(
11656
+ className: C(
11645
11657
  "flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden rounded text-lg font-semibold text-f1-foreground transition-colors"
11646
11658
  ),
11647
11659
  children: [
@@ -11672,7 +11684,7 @@ function sI({
11672
11684
  /* @__PURE__ */ c("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ c(mt, { items: e, children: /* @__PURE__ */ g(
11673
11685
  "button",
11674
11686
  {
11675
- className: k(
11687
+ className: C(
11676
11688
  "flex w-full max-w-full items-center gap-1.5 rounded p-1.5 font-medium transition-colors hover:bg-f1-background-secondary data-[state=open]:bg-f1-background-secondary",
11677
11689
  Re("focus-visible:ring-inset")
11678
11690
  ),
@@ -11738,7 +11750,7 @@ function by({ isExpanded: t }) {
11738
11750
  strokeWidth: "1.3",
11739
11751
  strokeLinecap: "round",
11740
11752
  strokeLinejoin: "round",
11741
- className: k(
11753
+ className: C(
11742
11754
  "translate-x-0 stroke-current transition-all duration-200 ease-out motion-reduce:transition-none",
11743
11755
  t ? "opacity-0 group-hover:-translate-x-1 group-hover:opacity-100" : "opacity-1 group-hover:translate-x-[3px]"
11744
11756
  )
@@ -11751,7 +11763,7 @@ function by({ isExpanded: t }) {
11751
11763
  d: "M7.5 5L7.5 15",
11752
11764
  strokeWidth: "1.3",
11753
11765
  strokeLinecap: "round",
11754
- className: k(
11766
+ className: C(
11755
11767
  "stroke-current transition-all duration-200 ease-out motion-reduce:transition-none",
11756
11768
  t ? "translate-x-0 opacity-100 group-hover:-translate-x-0.5 group-hover:opacity-0" : "-translate-x-0.5 opacity-0 group-hover:translate-x-0 group-hover:opacity-100"
11757
11769
  )
@@ -11777,8 +11789,8 @@ function wy() {
11777
11789
  compact: !0,
11778
11790
  "aria-label": "Close Sidebar",
11779
11791
  children: [
11780
- /* @__PURE__ */ c("div", { className: k("hidden", { flex: !r }), children: /* @__PURE__ */ c(by, { isExpanded: e === "locked" }) }),
11781
- /* @__PURE__ */ c("div", { className: k("hidden", { flex: r }), children: /* @__PURE__ */ c(H, { icon: Ht, size: "md" }) })
11792
+ /* @__PURE__ */ c("div", { className: C("hidden", { flex: !r }), children: /* @__PURE__ */ c(by, { isExpanded: e === "locked" }) }),
11793
+ /* @__PURE__ */ c("div", { className: C("hidden", { flex: r }), children: /* @__PURE__ */ c(H, { icon: Ht, size: "md" }) })
11782
11794
  ]
11783
11795
  }
11784
11796
  );
@@ -11839,7 +11851,7 @@ const vy = ({
11839
11851
  {
11840
11852
  icon: t.icon,
11841
11853
  size: "md",
11842
- className: k(
11854
+ className: C(
11843
11855
  "transition-colors",
11844
11856
  e ? "text-f1-icon-bold" : "text-f1-icon"
11845
11857
  )
@@ -11854,7 +11866,7 @@ const vy = ({
11854
11866
  it,
11855
11867
  {
11856
11868
  ...i,
11857
- className: k(
11869
+ className: C(
11858
11870
  "flex cursor-pointer items-center rounded py-1.5 pl-1.5 pr-2 no-underline transition-colors",
11859
11871
  Re("focus-visible:ring-inset"),
11860
11872
  s ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary"
@@ -11873,13 +11885,13 @@ const vy = ({
11873
11885
  onReorderFinish: l,
11874
11886
  isSortable: a = !0
11875
11887
  }) => {
11876
- const d = me(), { isDragging: f, setIsDragging: u, draggedItemId: h, setDraggedItemId: p } = eo(), { isActive: m } = As(), b = m(t.href, { exact: t.exactMatch }), w = K(!1), [x, v] = R(!1), S = i === 0, A = i === s - 1, N = s === 1, C = ee(() => {
11888
+ const d = me(), { isDragging: f, setIsDragging: u, draggedItemId: h, setDraggedItemId: p } = eo(), { isActive: m } = As(), b = m(t.href, { exact: t.exactMatch }), w = K(!1), [x, v] = R(!1), S = i === 0, _ = i === s - 1, I = s === 1, k = ee(() => {
11877
11889
  const M = [];
11878
- return !N && !S && M.push({
11890
+ return !I && !S && M.push({
11879
11891
  label: d.actions.moveUp,
11880
11892
  onClick: () => o?.(i, i - 1),
11881
11893
  icon: tp
11882
- }), !N && !A && M.push({
11894
+ }), !I && !_ && M.push({
11883
11895
  label: d.actions.moveDown,
11884
11896
  onClick: () => o?.(i, i + 1),
11885
11897
  icon: np
@@ -11889,14 +11901,14 @@ const vy = ({
11889
11901
  icon: Hn,
11890
11902
  critical: !0
11891
11903
  }), M;
11892
- }, [N, S, A, d, o, i, r, t]), T = () => {
11904
+ }, [I, S, _, d, o, i, r, t]), T = () => {
11893
11905
  u(!0), v(!1), p(t.href || null), w.current = !0;
11894
- }, I = () => {
11906
+ }, N = () => {
11895
11907
  u(!1), p(null), l(), setTimeout(() => {
11896
11908
  w.current = !1;
11897
11909
  }, 0);
11898
11910
  }, L = f && h === t.href, y = ee(
11899
- () => k(
11911
+ () => C(
11900
11912
  "group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing",
11901
11913
  a && "touch-none",
11902
11914
  b ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary",
@@ -11904,14 +11916,14 @@ const vy = ({
11904
11916
  L && "bg-f1-background-secondary"
11905
11917
  ),
11906
11918
  [b, x, L, a]
11907
- ), _ = ee(() => /* @__PURE__ */ g(re, { children: [
11919
+ ), A = ee(() => /* @__PURE__ */ g(re, { children: [
11908
11920
  /* @__PURE__ */ c("div", { className: "flex w-full items-center justify-between px-1.5 py-1.5", children: /* @__PURE__ */ c(Ny, { tooltip: e, children: /* @__PURE__ */ g(
11909
11921
  it,
11910
11922
  {
11911
11923
  onClick: t.onClick,
11912
11924
  href: t.href,
11913
11925
  exactMatch: t.exactMatch,
11914
- className: k(
11926
+ className: C(
11915
11927
  // w-[calc(100%-24px-2px)] - here 24px is the size of the dropdown button and 2 px is the gap
11916
11928
  "flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline",
11917
11929
  L && "pointer-events-none"
@@ -11923,7 +11935,7 @@ const vy = ({
11923
11935
  {
11924
11936
  icon: t.icon,
11925
11937
  size: "md",
11926
- className: k(
11938
+ className: C(
11927
11939
  "transition-colors",
11928
11940
  b ? "text-f1-icon-bold" : "text-f1-icon"
11929
11941
  )
@@ -11945,7 +11957,7 @@ const vy = ({
11945
11957
  /* @__PURE__ */ c(
11946
11958
  "div",
11947
11959
  {
11948
- className: k(
11960
+ className: C(
11949
11961
  "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",
11950
11962
  x && "bg-f1-background-secondary opacity-100",
11951
11963
  L && "opacity-100"
@@ -11955,13 +11967,13 @@ const vy = ({
11955
11967
  {
11956
11968
  open: x,
11957
11969
  onOpenChange: v,
11958
- items: C,
11970
+ items: k,
11959
11971
  children: /* @__PURE__ */ c("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ c(H, { icon: Vi, size: "sm" }) })
11960
11972
  }
11961
11973
  )
11962
11974
  }
11963
11975
  )
11964
- ] }), [t, b, x, L, C, e]);
11976
+ ] }), [t, b, x, L, k, e]);
11965
11977
  return a ? /* @__PURE__ */ c(
11966
11978
  uc,
11967
11979
  {
@@ -11970,14 +11982,14 @@ const vy = ({
11970
11982
  dragConstraints: n,
11971
11983
  dragElastic: 0.1,
11972
11984
  onDragStart: T,
11973
- onDragEnd: I,
11985
+ onDragEnd: N,
11974
11986
  className: y,
11975
11987
  whileDrag: {
11976
11988
  scale: 1.05
11977
11989
  },
11978
- children: _
11990
+ children: A
11979
11991
  }
11980
- ) : /* @__PURE__ */ c("div", { className: y, children: _ });
11992
+ ) : /* @__PURE__ */ c("div", { className: y, children: A });
11981
11993
  }, qd = ({
11982
11994
  title: t,
11983
11995
  isOpen: e = !0,
@@ -11996,7 +12008,7 @@ const vy = ({
11996
12008
  /* @__PURE__ */ c("div", { className: "group relative flex items-center", children: /* @__PURE__ */ g(
11997
12009
  "div",
11998
12010
  {
11999
- className: k(
12011
+ className: C(
12000
12012
  "group relative flex w-full select-none items-center gap-1 rounded px-1.5 py-2 text-sm font-medium text-f1-foreground-secondary transition-colors hover:cursor-pointer hover:bg-f1-background-secondary",
12001
12013
  Re("focus-visible:ring-inset"),
12002
12014
  n && "hidden"
@@ -12073,7 +12085,7 @@ const vy = ({
12073
12085
  children: /* @__PURE__ */ c(
12074
12086
  "div",
12075
12087
  {
12076
- className: k(
12088
+ className: C(
12077
12089
  "flex flex-col gap-0.5",
12078
12090
  o && !a.current && "pointer-events-none"
12079
12091
  ),
@@ -12175,30 +12187,30 @@ function Sy({
12175
12187
  }, [o]);
12176
12188
  const S = (D) => {
12177
12189
  x(D);
12178
- }, A = J(
12190
+ }, _ = J(
12179
12191
  (D) => {
12180
12192
  const $ = w.filter((ne) => ne.href !== D.href);
12181
12193
  x($), l?.($);
12182
12194
  },
12183
12195
  [w, l]
12184
- ), N = J(
12196
+ ), I = J(
12185
12197
  (D, $) => {
12186
12198
  if ($ < 0 || $ >= w.length) return;
12187
12199
  const ne = [...w], [F] = ne.splice(D, 1);
12188
12200
  ne.splice($, 0, F), x(ne), l?.(ne);
12189
12201
  },
12190
12202
  [w, l]
12191
- ), [C, T] = R(!1), I = K(null);
12203
+ ), [k, T] = R(!1), N = K(null);
12192
12204
  W(() => {
12193
- e.length > 0 && !C && (n([...e]), T(!0));
12194
- }, [e, n, C]), W(() => {
12205
+ e.length > 0 && !k && (n([...e]), T(!0));
12206
+ }, [e, n, k]), W(() => {
12195
12207
  const D = () => {
12196
- I.current !== null && window.clearTimeout(I.current), I.current = window.setTimeout(() => {
12208
+ N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
12197
12209
  r.current && e.length > 0 && a();
12198
12210
  }, 50);
12199
12211
  };
12200
12212
  return window.addEventListener("resize", D), () => {
12201
- window.removeEventListener("resize", D), I.current !== null && window.clearTimeout(I.current);
12213
+ window.removeEventListener("resize", D), N.current !== null && window.clearTimeout(N.current);
12202
12214
  };
12203
12215
  }, [r, e, a]);
12204
12216
  const L = "flex flex-col gap-0.5", y = ee(
@@ -12207,7 +12219,7 @@ function Sy({
12207
12219
  {}
12208
12220
  ),
12209
12221
  [w]
12210
- ), _ = ee(
12222
+ ), A = ee(
12211
12223
  () => v && w.map((D, $) => /* @__PURE__ */ c(
12212
12224
  Cy,
12213
12225
  {
@@ -12215,10 +12227,10 @@ function Sy({
12215
12227
  tooltip: (y[D.label] ?? []).length > 1 ? D.tooltip : void 0,
12216
12228
  item: D,
12217
12229
  dragConstraints: b,
12218
- onRemove: A,
12230
+ onRemove: _,
12219
12231
  index: $,
12220
12232
  total: w.length,
12221
- onMove: N,
12233
+ onMove: I,
12222
12234
  onReorderFinish: () => {
12223
12235
  l?.(w);
12224
12236
  }
@@ -12229,8 +12241,8 @@ function Sy({
12229
12241
  v,
12230
12242
  w,
12231
12243
  y,
12232
- A,
12233
- N,
12244
+ _,
12245
+ I,
12234
12246
  l,
12235
12247
  d
12236
12248
  ]
@@ -12249,7 +12261,7 @@ function Sy({
12249
12261
  return /* @__PURE__ */ g(
12250
12262
  "div",
12251
12263
  {
12252
- className: k(
12264
+ className: C(
12253
12265
  "relative",
12254
12266
  u && "cursor-grabbing [&_*]:cursor-grabbing"
12255
12267
  ),
@@ -12262,14 +12274,14 @@ function Sy({
12262
12274
  },
12263
12275
  `fixed-${$}`
12264
12276
  )) }),
12265
- v && /* @__PURE__ */ c("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ c(qd, { title: f.favorites.favorites, children: /* @__PURE__ */ c("div", { ref: b, children: d ? /* @__PURE__ */ c("div", { className: L, children: _ }) : /* @__PURE__ */ c(
12277
+ v && /* @__PURE__ */ c("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ c(qd, { title: f.favorites.favorites, children: /* @__PURE__ */ c("div", { ref: b, children: d ? /* @__PURE__ */ c("div", { className: L, children: A }) : /* @__PURE__ */ c(
12266
12278
  Po,
12267
12279
  {
12268
12280
  axis: "y",
12269
12281
  values: w,
12270
12282
  onReorder: S,
12271
12283
  className: L,
12272
- children: _
12284
+ children: A
12273
12285
  }
12274
12286
  ) }) }) }),
12275
12287
  p && /* @__PURE__ */ c("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: t.filter((D) => !D.isRoot).map((D, $) => /* @__PURE__ */ c(
@@ -12283,7 +12295,7 @@ function Sy({
12283
12295
  m && /* @__PURE__ */ c(
12284
12296
  "div",
12285
12297
  {
12286
- className: k(
12298
+ className: C(
12287
12299
  "mt-3 flex w-full flex-col gap-3 bg-transparent px-3 [&_li]:list-none"
12288
12300
  ),
12289
12301
  ref: r,
@@ -12318,7 +12330,7 @@ function aI({
12318
12330
  "button",
12319
12331
  {
12320
12332
  onClick: t,
12321
- className: k(
12333
+ className: C(
12322
12334
  "mb-[calc(0.75rem-1px)] flex w-full cursor-pointer items-center justify-between rounded bg-f1-background-inverse-secondary p-1.5 text-f1-foreground-secondary ring-1 ring-inset ring-f1-border-secondary transition-all hover:ring-f1-border-hover",
12323
12335
  Re()
12324
12336
  ),
@@ -12341,7 +12353,7 @@ const Tl = ({ position: t }) => /* @__PURE__ */ c(
12341
12353
  animate: { opacity: 0.5 },
12342
12354
  exit: { opacity: 0 },
12343
12355
  transition: { duration: 0.2, ease: "easeOut" },
12344
- className: k(
12356
+ className: C(
12345
12357
  "pointer-events-none absolute inset-x-0 z-10 h-3 after:absolute after:inset-x-0 after:h-px after:bg-f1-background-inverse after:opacity-[0.04] after:content-['']",
12346
12358
  t === "top" ? [
12347
12359
  "top-0",
@@ -12380,9 +12392,9 @@ function Iy({
12380
12392
  {
12381
12393
  initial: !1,
12382
12394
  "aria-label": u.navigation.sidebar.label,
12383
- className: k(
12395
+ className: C(
12384
12396
  "absolute bottom-0 left-0 top-0 z-10 flex w-[var(--ds-sidebar-width)] flex-col transition-[background-color]",
12385
- i === "locked" ? "h-full" : k(
12397
+ i === "locked" ? "h-full" : C(
12386
12398
  "shadow-lg ring-1 ring-f1-border-secondary backdrop-blur-2xl",
12387
12399
  s ? "h-full border-y-transparent border-l-transparent bg-f1-background/90" : "h-[calc(100%-16px)] bg-f1-background/60"
12388
12400
  )
@@ -12499,7 +12511,7 @@ const Dy = ({
12499
12511
  /* @__PURE__ */ c(
12500
12512
  "div",
12501
12513
  {
12502
- className: k(
12514
+ className: C(
12503
12515
  "flex size-5 items-center justify-center rounded-xs text-sm font-medium",
12504
12516
  s < r ? "bg-f1-background-selected-bold text-f1-foreground-inverse" : "border border-solid border-f1-border-secondary bg-f1-background-secondary text-f1-foreground"
12505
12517
  ),
@@ -19939,7 +19951,7 @@ const nS = (t) => {
19939
19951
  titlePlaceholder: m,
19940
19952
  dataTestId: b
19941
19953
  }, w) {
19942
- const x = me(), v = K(null), S = K(null), A = Wa(), [N] = R(() => r?.content || ""), [C, T] = R(r?.title || ""), [I, L] = R(null), y = (F) => {
19954
+ const x = me(), v = K(null), S = K(null), _ = Wa(), [I] = R(() => r?.content || ""), [k, T] = R(r?.title || ""), [N, L] = R(null), y = (F) => {
19943
19955
  switch (F) {
19944
19956
  case "file-too-large":
19945
19957
  return x.imageUpload.errors.fileTooLarge;
@@ -19952,9 +19964,9 @@ const nS = (t) => {
19952
19964
  }
19953
19965
  };
19954
19966
  W(() => {
19955
- l && l(C);
19956
- }, [C, l]);
19957
- const _ = mm({
19967
+ l && l(k);
19968
+ }, [k, l]);
19969
+ const A = mm({
19958
19970
  extensions: rS({
19959
19971
  placeholder: n,
19960
19972
  translations: x,
@@ -19966,7 +19978,7 @@ const nS = (t) => {
19966
19978
  }
19967
19979
  } : void 0
19968
19980
  }),
19969
- content: N,
19981
+ content: I,
19970
19982
  onUpdate: ({ editor: F }) => {
19971
19983
  e(
19972
19984
  F.isEmpty ? { json: null, html: null } : { json: F.getJSON(), html: F.getHTML() }
@@ -19975,11 +19987,11 @@ const nS = (t) => {
19975
19987
  editable: !i
19976
19988
  });
19977
19989
  Ua(w, () => ({
19978
- clear: () => _?.commands.clearContent(),
19979
- focus: () => _?.commands.focus(),
19980
- setContent: (F) => _?.commands.setContent(F),
19990
+ clear: () => A?.commands.clearContent(),
19991
+ focus: () => A?.commands.focus(),
19992
+ setContent: (F) => A?.commands.setContent(F),
19981
19993
  insertAIBlock: () => {
19982
- !_ || !s || _.chain().focus().insertContentAt(_.state.doc.content.size, [
19994
+ !A || !s || A.chain().focus().insertContentAt(A.state.doc.content.size, [
19983
19995
  {
19984
19996
  type: "aiBlock",
19985
19997
  attrs: {
@@ -19992,7 +20004,7 @@ const nS = (t) => {
19992
20004
  ]).run();
19993
20005
  },
19994
20006
  insertTranscript: (F, ge, Se) => {
19995
- _ && _.chain().focus().insertContentAt(_.state.doc.content.size, [
20007
+ A && A.chain().focus().insertContentAt(A.state.doc.content.size, [
19996
20008
  {
19997
20009
  type: "transcript",
19998
20010
  attrs: {
@@ -20004,10 +20016,10 @@ const nS = (t) => {
20004
20016
  ]).run();
20005
20017
  },
20006
20018
  pushContent: (F) => {
20007
- _ && _.chain().focus().insertContentAt(_.state.doc.content.size, F).run();
20019
+ A && A.chain().focus().insertContentAt(A.state.doc.content.size, F).run();
20008
20020
  },
20009
20021
  insertImage: (F) => {
20010
- !_ || !o || ad(_, F, {
20022
+ !A || !o || ad(A, F, {
20011
20023
  ...o,
20012
20024
  onError: (ge) => {
20013
20025
  L(ge);
@@ -20027,21 +20039,21 @@ const nS = (t) => {
20027
20039
  []
20028
20040
  ), D = J(() => {
20029
20041
  const F = S.current;
20030
- if (!F || !_) return;
20031
- const { pos: ge, nodeSize: Se } = F, q = _.state.doc.nodeAt(ge);
20042
+ if (!F || !A) return;
20043
+ const { pos: ge, nodeSize: Se } = F, q = A.state.doc.nodeAt(ge);
20032
20044
  if (q && q.content.size === 0)
20033
- _.chain().focus().setTextSelection(ge + 1).insertContent("/").run();
20045
+ A.chain().focus().setTextSelection(ge + 1).insertContent("/").run();
20034
20046
  else {
20035
20047
  const Xn = ge + Se;
20036
- _.chain().focus().insertContentAt(Xn, { type: "paragraph" }).setTextSelection(Xn + 1).insertContent("/").run();
20048
+ A.chain().focus().insertContentAt(Xn, { type: "paragraph" }).setTextSelection(Xn + 1).insertContent("/").run();
20037
20049
  }
20038
- }, [_]), $ = a || d && d.length > 0 || u && u.length > 0 || f && f.length > 0 || h, ne = l || C;
20039
- return _ ? /* @__PURE__ */ c(Pa, { dataTestId: b, children: /* @__PURE__ */ g(
20050
+ }, [A]), $ = a || d && d.length > 0 || u && u.length > 0 || f && f.length > 0 || h, ne = l || k;
20051
+ return A ? /* @__PURE__ */ c(Pa, { dataTestId: b, children: /* @__PURE__ */ g(
20040
20052
  "div",
20041
20053
  {
20042
20054
  className: "relative flex h-full w-full flex-col",
20043
20055
  ref: v,
20044
- id: A,
20056
+ id: _,
20045
20057
  children: [
20046
20058
  $ && /* @__PURE__ */ c(
20047
20059
  aS,
@@ -20053,15 +20065,15 @@ const nS = (t) => {
20053
20065
  banner: h
20054
20066
  }
20055
20067
  ),
20056
- I && /* @__PURE__ */ c("div", { className: "mx-auto flex w-full max-w-[824px] px-14 py-2", children: /* @__PURE__ */ g("div", { className: "flex w-max max-w-full items-center gap-4 rounded-md bg-f1-background-critical p-2 drop-shadow-sm", children: [
20068
+ N && /* @__PURE__ */ c("div", { className: "mx-auto flex w-full max-w-[824px] px-14 py-2", children: /* @__PURE__ */ g("div", { className: "flex w-max max-w-full items-center gap-4 rounded-md bg-f1-background-critical p-2 drop-shadow-sm", children: [
20057
20069
  /* @__PURE__ */ g("div", { className: "flex w-full flex-row items-center gap-2", children: [
20058
20070
  /* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(fc, { size: "sm", type: "critical" }) }),
20059
20071
  /* @__PURE__ */ c(
20060
20072
  "p",
20061
20073
  {
20062
20074
  className: "w-full max-w-xl flex-grow truncate text-ellipsis text-sm font-semibold text-f1-foreground-critical",
20063
- title: y(I),
20064
- children: y(I)
20075
+ title: y(N),
20076
+ children: y(N)
20065
20077
  }
20066
20078
  )
20067
20079
  ] }),
@@ -20078,7 +20090,7 @@ const nS = (t) => {
20078
20090
  !i && !p && /* @__PURE__ */ c("div", { className: "absolute bottom-8 left-1/2 z-50 max-w-[calc(100%-48px)] -translate-x-1/2 rounded-lg border border-solid border-f1-border-secondary bg-f1-background p-2 shadow-md", children: /* @__PURE__ */ c(
20079
20091
  gm,
20080
20092
  {
20081
- editor: _,
20093
+ editor: A,
20082
20094
  disableButtons: !1,
20083
20095
  showEmojiPicker: !1,
20084
20096
  plainHtmlMode: !1
@@ -20088,7 +20100,7 @@ const nS = (t) => {
20088
20100
  ne && /* @__PURE__ */ c(
20089
20101
  cS,
20090
20102
  {
20091
- value: C,
20103
+ value: k,
20092
20104
  onChange: l ? T : void 0,
20093
20105
  placeholder: m,
20094
20106
  disabled: !l || i
@@ -20098,12 +20110,12 @@ const nS = (t) => {
20098
20110
  "div",
20099
20111
  {
20100
20112
  className: "notes-text-editor h-full",
20101
- onClick: () => _.commands.focus(),
20113
+ onClick: () => A.commands.focus(),
20102
20114
  children: [
20103
20115
  !i && /* @__PURE__ */ c(
20104
20116
  nS,
20105
20117
  {
20106
- editor: _,
20118
+ editor: A,
20107
20119
  tippyOptions: M,
20108
20120
  onNodeChange: U,
20109
20121
  children: /* @__PURE__ */ g("div", { className: "flex flex-row", children: [
@@ -20135,7 +20147,7 @@ const nS = (t) => {
20135
20147
  /* @__PURE__ */ c(
20136
20148
  bm,
20137
20149
  {
20138
- editor: _,
20150
+ editor: A,
20139
20151
  className: "pb-28 [&>div]:mx-auto [&>div]:w-full [&>div]:max-w-[824px] [&>div]:transition-[padding] [&>div]:duration-300 sm:[&>div]:px-14 [&>div]:px-0"
20140
20152
  }
20141
20153
  )
@@ -20146,8 +20158,8 @@ const nS = (t) => {
20146
20158
  !i && /* @__PURE__ */ c(
20147
20159
  wm,
20148
20160
  {
20149
- editorId: A,
20150
- editor: _,
20161
+ editorId: _,
20162
+ editor: A,
20151
20163
  disableButtons: !1,
20152
20164
  isToolbarOpen: !p,
20153
20165
  isFullscreen: !1,
@@ -20259,10 +20271,10 @@ const nS = (t) => {
20259
20271
  gap: "4"
20260
20272
  }
20261
20273
  }), fS = z.forwardRef(function({ className: e, gap: n, children: r, tileSize: i, ...s }, o) {
20262
- return /* @__PURE__ */ c("div", { className: k("@container", "grow"), ref: o, ...s, children: /* @__PURE__ */ c(
20274
+ return /* @__PURE__ */ c("div", { className: C("@container", "grow"), ref: o, ...s, children: /* @__PURE__ */ c(
20263
20275
  "div",
20264
20276
  {
20265
- className: k(uS({ gap: n, tileSize: i }), e),
20277
+ className: C(uS({ gap: n, tileSize: i }), e),
20266
20278
  ref: o,
20267
20279
  ...s,
20268
20280
  children: r
@@ -20364,7 +20376,7 @@ const nS = (t) => {
20364
20376
  return /* @__PURE__ */ c(
20365
20377
  "div",
20366
20378
  {
20367
- className: k(
20379
+ className: C(
20368
20380
  hS({
20369
20381
  paddingX: s,
20370
20382
  basis: r,
@@ -20402,7 +20414,7 @@ const nS = (t) => {
20402
20414
  return /* @__PURE__ */ c(
20403
20415
  ef,
20404
20416
  {
20405
- className: k(pS({ gap: n, wrap: r }), e),
20417
+ className: C(pS({ gap: n, wrap: r }), e),
20406
20418
  ref: s,
20407
20419
  ...i
20408
20420
  }
@@ -20419,7 +20431,7 @@ const nS = (t) => {
20419
20431
  return /* @__PURE__ */ c(
20420
20432
  ef,
20421
20433
  {
20422
- className: k(gS({ gap: n }), e),
20434
+ className: C(gS({ gap: n }), e),
20423
20435
  ref: s,
20424
20436
  ...i,
20425
20437
  children: r
@@ -20448,7 +20460,7 @@ const nS = (t) => {
20448
20460
  return /* @__PURE__ */ c(
20449
20461
  "div",
20450
20462
  {
20451
- className: k(
20463
+ className: C(
20452
20464
  "inline-flex ring-1 ring-inset ring-transparent transition-all duration-150",
20453
20465
  e && "select-none overflow-hidden rounded-sm bg-f1-background-tertiary ring-f1-border-secondary"
20454
20466
  ),
@@ -20481,7 +20493,7 @@ const nS = (t) => {
20481
20493
  return /* @__PURE__ */ g(
20482
20494
  Fs,
20483
20495
  {
20484
- className: k(
20496
+ className: C(
20485
20497
  l ? "h-full" : "",
20486
20498
  "relative flex gap-3 border-f1-border-secondary"
20487
20499
  ),
@@ -20565,7 +20577,7 @@ const nS = (t) => {
20565
20577
  return /* @__PURE__ */ g(
20566
20578
  Fs,
20567
20579
  {
20568
- className: k(
20580
+ className: C(
20569
20581
  "flex gap-4 border-f1-border-secondary",
20570
20582
  n === "full" && "h-full"
20571
20583
  ),
@@ -20588,7 +20600,7 @@ const nS = (t) => {
20588
20600
  Bs,
20589
20601
  {
20590
20602
  "aria-hidden": !0,
20591
- className: k(n !== "full" && vS({ height: n })),
20603
+ className: C(n !== "full" && vS({ height: n })),
20592
20604
  children: [...Array(4)].map((i, s) => /* @__PURE__ */ c(
20593
20605
  E,
20594
20606
  {
@@ -21046,18 +21058,18 @@ const nS = (t) => {
21046
21058
  return /* @__PURE__ */ g(
21047
21059
  Fs,
21048
21060
  {
21049
- className: k(
21061
+ className: C(
21050
21062
  "relative flex gap-4 overflow-hidden border-dashed",
21051
21063
  a
21052
21064
  ),
21053
21065
  ref: l,
21054
21066
  children: [
21055
21067
  /* @__PURE__ */ c(zs, { className: "-mt-0.5", children: /* @__PURE__ */ c($s, { children: e }) }),
21056
- /* @__PURE__ */ g(Bs, { className: k("flex flex-col gap-4", d), children: [
21068
+ /* @__PURE__ */ g(Bs, { className: C("flex flex-col gap-4", d), children: [
21057
21069
  /* @__PURE__ */ g(
21058
21070
  "div",
21059
21071
  {
21060
- className: k(
21072
+ className: C(
21061
21073
  "absolute -top-12 bottom-0 left-0 right-0 flex flex-col justify-end bg-gradient-to-b to-transparent opacity-30",
21062
21074
  f
21063
21075
  ),
@@ -21162,7 +21174,7 @@ const pi = function({
21162
21174
  "div",
21163
21175
  {
21164
21176
  ref: l,
21165
- className: k("relative flex h-full flex-col", r),
21177
+ className: C("relative flex h-full flex-col", r),
21166
21178
  style: {
21167
21179
  minHeight: `${s}px`
21168
21180
  },
@@ -21218,7 +21230,7 @@ const SI = ({
21218
21230
  return t ? /* @__PURE__ */ c(
21219
21231
  "a",
21220
21232
  {
21221
- className: k(
21233
+ className: C(
21222
21234
  n,
21223
21235
  "cursor-pointer focus:border-f1-background-selected-bold focus:outline-none"
21224
21236
  ),
@@ -21238,7 +21250,7 @@ function NI({
21238
21250
  return /* @__PURE__ */ c(US, { onClick: i, children: /* @__PURE__ */ g(
21239
21251
  "div",
21240
21252
  {
21241
- className: k(
21253
+ className: C(
21242
21254
  "flex flex-col gap-0.5 rounded-md border border-solid border-f1-border-secondary px-3 py-2.5",
21243
21255
  i && "hover:border-f1-border-hover"
21244
21256
  ),
@@ -21265,8 +21277,8 @@ const GS = P(
21265
21277
  children: n
21266
21278
  }
21267
21279
  ),
21268
- "icon" in i && i.icon && /* @__PURE__ */ c("span", { className: k("flex", r), children: /* @__PURE__ */ c(H, { icon: i.icon }) }),
21269
- "emoji" in i && i.emoji && /* @__PURE__ */ c("span", { className: k("flex", r), children: /* @__PURE__ */ c(Jr, { emoji: i.emoji, size: "md" }) })
21280
+ "icon" in i && i.icon && /* @__PURE__ */ c("span", { className: C("flex", r), children: /* @__PURE__ */ c(H, { icon: i.icon }) }),
21281
+ "emoji" in i && i.emoji && /* @__PURE__ */ c("span", { className: C("flex", r), children: /* @__PURE__ */ c(Jr, { emoji: i.emoji, size: "md" }) })
21270
21282
  ] })
21271
21283
  ] }, n);
21272
21284
  }
@@ -21296,7 +21308,7 @@ const GS = P(
21296
21308
  withPointerCursor: n,
21297
21309
  children: r
21298
21310
  }) => {
21299
- const i = k(
21311
+ const i = C(
21300
21312
  "flex flex-row items-center rounded-md border border-solid border-transparent p-2 text-f1-foreground",
21301
21313
  e ? "gap-2" : "gap-2.5",
21302
21314
  n ? "cursor-pointer" : "cursor-default",
@@ -21350,7 +21362,7 @@ function fa({
21350
21362
  onClick: r,
21351
21363
  module: i
21352
21364
  }) {
21353
- const s = k(
21365
+ const s = C(
21354
21366
  "flex flex-row gap-2 rounded-md border border-solid border-transparent p-2 text-f1-foreground",
21355
21367
  r ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
21356
21368
  );
@@ -21377,7 +21389,7 @@ function Is({
21377
21389
  rightIconClassName: a = "text-f1-icon-secondary",
21378
21390
  onClick: d
21379
21391
  }) {
21380
- const f = k(
21392
+ const f = C(
21381
21393
  "flex flex-row items-start gap-1 rounded-md border border-solid border-transparent px-2 py-1.5 text-f1-foreground",
21382
21394
  d ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
21383
21395
  );
@@ -21390,7 +21402,7 @@ function Is({
21390
21402
  {
21391
21403
  icon: s,
21392
21404
  size: "md",
21393
- className: k("mt-0.5", l)
21405
+ className: C("mt-0.5", l)
21394
21406
  }
21395
21407
  ),
21396
21408
  /* @__PURE__ */ c("p", { className: "mt-0.5 line-clamp-2 font-medium", children: e }),
@@ -21399,7 +21411,7 @@ function Is({
21399
21411
  {
21400
21412
  icon: o,
21401
21413
  size: "md",
21402
- className: k("mt-0.5", a)
21414
+ className: C("mt-0.5", a)
21403
21415
  }
21404
21416
  )
21405
21417
  ] }),
@@ -21493,7 +21505,7 @@ function DI({
21493
21505
  !!r && /* @__PURE__ */ c("div", { className: i ? "mt-1" : "mt-2", children: /* @__PURE__ */ c(
21494
21506
  "span",
21495
21507
  {
21496
- className: k(
21508
+ className: C(
21497
21509
  "text-f1-foreground",
21498
21510
  i ? "text-sm" : "text-base"
21499
21511
  ),
@@ -21665,7 +21677,7 @@ function nN({
21665
21677
  /* @__PURE__ */ c(
21666
21678
  "span",
21667
21679
  {
21668
- className: k(
21680
+ className: C(
21669
21681
  "font-medium",
21670
21682
  t ? "text-f1-foreground" : "text-f1-foreground-secondary"
21671
21683
  ),
@@ -21700,37 +21712,37 @@ function LI({
21700
21712
  projectSelectorElement: v,
21701
21713
  breakTypeName: S
21702
21714
  }) {
21703
- const { status: A, statusText: N, subtitle: C, statusColor: T } = XS({
21715
+ const { status: _, statusText: I, subtitle: k, statusColor: T } = XS({
21704
21716
  data: n,
21705
21717
  labels: r,
21706
21718
  trackedMinutes: t,
21707
21719
  remainingMinutes: e,
21708
21720
  canSeeRemainingTime: b
21709
- }), I = A === "clocked-out", L = u?.map((q) => ({
21721
+ }), N = _ === "clocked-out", L = u?.map((q) => ({
21710
21722
  value: q.id,
21711
21723
  label: q.duration ? `${q.name} · ${q.duration}` : q.name,
21712
21724
  description: q.description,
21713
21725
  tag: q.isPaid ? r.paid : r.unpaid
21714
- })) ?? [], [y, _] = R(!1), M = () => {
21726
+ })) ?? [], [y, A] = R(!1), M = () => {
21715
21727
  if (L.length > 1)
21716
- y || _(!0);
21728
+ y || A(!0);
21717
21729
  else {
21718
21730
  const q = L?.[0]?.value;
21719
21731
  f?.(q);
21720
21732
  }
21721
21733
  }, U = (q) => {
21722
- h?.(q), _(!1), f?.(q);
21723
- }, D = I && s.length && !l && o, $ = s.find((q) => q.id === i), ne = s.map((q) => ({
21734
+ h?.(q), A(!1), f?.(q);
21735
+ }, D = N && s.length && !l && o, $ = s.find((q) => q.id === i), ne = s.map((q) => ({
21724
21736
  value: q.id,
21725
21737
  label: q.name,
21726
21738
  icon: q.icon
21727
- })), F = A === "break", [ge, Se] = R(!1);
21739
+ })), F = _ === "break", [ge, Se] = R(!1);
21728
21740
  return /* @__PURE__ */ c("div", { className: "@container", children: /* @__PURE__ */ g("div", { className: "flex-grow flex-col", children: [
21729
21741
  /* @__PURE__ */ g("div", { className: "flex flex-col-reverse items-center gap-2 @xs:flex-row", children: [
21730
21742
  /* @__PURE__ */ g("div", { className: "flex-1 space-y-4", children: [
21731
21743
  /* @__PURE__ */ g("div", { className: "flex flex-col items-center space-y-0.5 @xs:items-start", children: [
21732
21744
  /* @__PURE__ */ g("div", { className: "flex items-center gap-2", children: [
21733
- /* @__PURE__ */ c("span", { className: "line-clamp-1 text-2xl font-semibold text-f1-foreground", children: N }),
21745
+ /* @__PURE__ */ c("span", { className: "line-clamp-1 text-2xl font-semibold text-f1-foreground", children: I }),
21734
21746
  /* @__PURE__ */ g("div", { className: "relative aspect-square h-4", children: [
21735
21747
  /* @__PURE__ */ c(
21736
21748
  X.div,
@@ -21759,10 +21771,10 @@ function LI({
21759
21771
  )
21760
21772
  ] })
21761
21773
  ] }),
21762
- C && /* @__PURE__ */ c("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: C })
21774
+ k && /* @__PURE__ */ c("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: k })
21763
21775
  ] }),
21764
21776
  /* @__PURE__ */ g("div", { className: "flex justify-center gap-2 @xs:justify-start", children: [
21765
- A === "clocked-out" && /* @__PURE__ */ c("div", { className: "mr-3 @xs:mr-0", children: /* @__PURE__ */ c(
21777
+ _ === "clocked-out" && /* @__PURE__ */ c("div", { className: "mr-3 @xs:mr-0", children: /* @__PURE__ */ c(
21766
21778
  B,
21767
21779
  {
21768
21780
  onClick: a,
@@ -21770,7 +21782,7 @@ function LI({
21770
21782
  icon: _o
21771
21783
  }
21772
21784
  ) }),
21773
- A === "clocked-in" && /* @__PURE__ */ g(re, { children: [
21785
+ _ === "clocked-in" && /* @__PURE__ */ g(re, { children: [
21774
21786
  p && /* @__PURE__ */ c(re, { children: L.length > 1 && h ? /* @__PURE__ */ c(
21775
21787
  Er,
21776
21788
  {
@@ -21780,7 +21792,7 @@ function LI({
21780
21792
  options: L,
21781
21793
  onChange: U,
21782
21794
  open: y,
21783
- onOpenChange: _,
21795
+ onOpenChange: A,
21784
21796
  children: /* @__PURE__ */ c("div", { "aria-label": "Select break type", children: /* @__PURE__ */ c(
21785
21797
  B,
21786
21798
  {
@@ -21811,7 +21823,7 @@ function LI({
21811
21823
  }
21812
21824
  )
21813
21825
  ] }),
21814
- A === "break" && /* @__PURE__ */ g(re, { children: [
21826
+ _ === "break" && /* @__PURE__ */ g(re, { children: [
21815
21827
  /* @__PURE__ */ c(
21816
21828
  B,
21817
21829
  {