@factorialco/f0-react 1.470.0 → 1.470.2

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,9 +1,9 @@
1
- import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as p, W as Z, P as pe, u as se, aj as ma, ak as ha, al as ba, am as pa, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as bt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as be, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as bn, bj as tr, bk as nr, bl as pn, bm as ar, bn as rr, T as Ue, bo as pt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as br, bF as pr, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-XZjqd4AY.js";
2
- import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as bd, cX as pd, cT as gd, cY as xd } from "./F0AiChat-XZjqd4AY.js";
1
+ import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, O as b, W as Z, P as pe, u as se, ag as ma, ah as ha, ai as ba, aj as pa, ak as ga, a5 as oe, al as xa, am as ht, an as rt, ao as Be, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ve, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as ge, aI as $e, aJ as _a, aK as bt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as be, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as bn, bj as tr, bk as nr, bl as pn, bm as ar, bn as rr, T as Ue, bo as pt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as br, bF as pr, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-tvZo2d0g.js";
2
+ import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as bd, cX as pd, cT as gd, cY as xd } from "./F0AiChat-tvZo2d0g.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
- import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as Ln, useContext as Ke, createContext as yt, useCallback as Q, useMemo as K, useEffect as W, useId as qr, Fragment as Yr, isValidElement as Zr, cloneElement as En, Children as _n } from "react";
5
- import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-_wtftEvC.js";
6
- import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-_wtftEvC.js";
4
+ import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as Ln, useId as qr, useContext as Ke, createContext as yt, useEffect as W, useCallback as Q, useMemo as K, Fragment as Yr, isValidElement as Zr, cloneElement as En, Children as _n } from "react";
5
+ import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-C0E-IJhP.js";
6
+ import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-C0E-IJhP.js";
7
7
  const dl = oa("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
@@ -88,14 +88,14 @@ function bl({ breadcrumbs: t, append: n }) {
88
88
  const d = a.current, f = r.current;
89
89
  if (!d || !f || f.children.length < t.length) return;
90
90
  const u = () => {
91
- const h = a.current?.clientWidth ?? null, g = Array.from(f.children);
91
+ const h = a.current?.clientWidth ?? null, p = Array.from(f.children);
92
92
  l(() => {
93
- const b = hl(
93
+ const g = hl(
94
94
  h,
95
95
  t,
96
- g
96
+ p
97
97
  );
98
- s(b);
98
+ s(g);
99
99
  });
100
100
  }, m = new ResizeObserver(u);
101
101
  return m.observe(d), u(), () => m.disconnect();
@@ -172,63 +172,7 @@ function bl({ breadcrumbs: t, append: n }) {
172
172
  `breadcrumb-${t.at(-1)?.id ?? 0}`
173
173
  );
174
174
  }
175
- const zt = "one_sidebar_locked", Dn = yt(void 0);
176
- function ke() {
177
- const t = Ke(Dn);
178
- return t === void 0 ? {
179
- isSmallScreen: !1,
180
- isLastToggleInvokedByUser: !0,
181
- prevSidebarState: null,
182
- sidebarState: "locked",
183
- toggleSidebar: () => {
184
- },
185
- setForceFloat: () => {
186
- }
187
- } : t;
188
- }
189
- function pl({ children: t }) {
190
- const { currentPath: n } = ht(), [a, r] = _(!1), [l, i] = _(!1), s = a ? Be.xl : Be.md, c = rt(`(max-width: ${s}px)`, {
191
- initializeWithValue: !0
192
- }), [d, f] = _(() => {
193
- const A = localStorage.getItem(zt);
194
- return A !== null ? !!A : !0;
195
- }), [u, m] = _(!1), [h, g] = _(
196
- null
197
- ), b = Q(
198
- ({ isInvokedByUser: A } = {
199
- isInvokedByUser: !0
200
- }) => {
201
- i(A ?? !0), c && m(!u), f(!d);
202
- },
203
- [c, u, d, f, m]
204
- ), x = Q(
205
- (A) => {
206
- c || (A.clientX < 32 && m(!0), A.clientX > 280 && m(!1));
207
- },
208
- [c, m]
209
- ), w = K(() => c ? u ? "unlocked" : "hidden" : !d && !u ? "hidden" : !d && u ? "unlocked" : "locked", [c, u, d]);
210
- return W(() => {
211
- m(!1);
212
- }, [n]), W(() => {
213
- l && localStorage.setItem(zt, d ? "1" : "");
214
- }, [d, l]), W(() => () => {
215
- g(w);
216
- }, [w]), /* @__PURE__ */ e(
217
- Dn.Provider,
218
- {
219
- value: {
220
- isSmallScreen: c,
221
- isLastToggleInvokedByUser: l,
222
- sidebarState: w,
223
- toggleSidebar: b,
224
- prevSidebarState: h,
225
- setForceFloat: r
226
- },
227
- children: /* @__PURE__ */ e("div", { onPointerMove: x, className: "h-screen w-screen", children: t })
228
- }
229
- );
230
- }
231
- const gl = pe({
175
+ const pl = pe({
232
176
  variants: {
233
177
  size: {
234
178
  sm: "h-[1.375rem] w-[1.375rem]",
@@ -237,7 +181,7 @@ const gl = pe({
237
181
  }
238
182
  },
239
183
  defaultVariants: { size: "md" }
240
- }), Pt = [
184
+ }), zt = [
241
185
  {
242
186
  id: "bottom",
243
187
  delay: 2.6,
@@ -266,7 +210,7 @@ const gl = pe({
266
210
  rotateAxis: "1, 0, 0",
267
211
  path: "M15.9939 1.33514e-05C19.6511 1.37386e-05 23.2335 1.22043 26.0525 3.58204C23.2335 5.86737 19.651 7.16115 15.9939 7.16115C12.1849 7.16103 8.67993 5.79089 5.93728 3.58204C8.75621 1.29671 12.3369 0.000125175 15.9939 1.33514e-05Z"
268
212
  }
269
- ], xl = ({
213
+ ], gl = ({
270
214
  spin: t = !1,
271
215
  size: n = "md",
272
216
  background: a,
@@ -280,12 +224,12 @@ const gl = pe({
280
224
  onDragEnd: u,
281
225
  onDrag: m,
282
226
  className: h,
283
- ...g
227
+ ...p
284
228
  } = l;
285
229
  return /* @__PURE__ */ e(
286
230
  "div",
287
231
  {
288
- className: p(gl({ size: n }), h),
232
+ className: b(pl({ size: n }), h),
289
233
  style: {
290
234
  background: "transparent",
291
235
  perspective: t ? "10px" : void 0,
@@ -311,32 +255,32 @@ const gl = pe({
311
255
  },
312
256
  style: {
313
257
  "--gradient-angle": "0deg",
314
- ...g.style
258
+ ...p.style
315
259
  },
316
- ...(({ style: b, ...x }) => x)(g),
260
+ ...(({ style: g, ...x }) => x)(p),
317
261
  children: [
318
262
  /* @__PURE__ */ o("defs", { children: [
319
263
  /* @__PURE__ */ e("clipPath", { id: `${s}-circle`, children: /* @__PURE__ */ e("circle", { cx: "16", cy: "16", r: "16" }) }),
320
- Pt.map((b) => /* @__PURE__ */ e("clipPath", { id: `${s}-${b.id}`, children: /* @__PURE__ */ e("path", { d: b.path }) }, b.id))
264
+ zt.map((g) => /* @__PURE__ */ e("clipPath", { id: `${s}-${g.id}`, children: /* @__PURE__ */ e("path", { d: g.path }) }, g.id))
321
265
  ] }),
322
- /* @__PURE__ */ e("g", { clipPath: `url(#${s}-circle)`, children: Pt.map((b) => /* @__PURE__ */ e(
266
+ /* @__PURE__ */ e("g", { clipPath: `url(#${s}-circle)`, children: zt.map((g) => /* @__PURE__ */ e(
323
267
  Z.foreignObject,
324
268
  {
325
269
  x: "0",
326
270
  y: "0",
327
271
  width: "32",
328
272
  height: "32",
329
- clipPath: `url(#${s}-${b.id})`,
273
+ clipPath: `url(#${s}-${g.id})`,
330
274
  animate: {
331
275
  "--rotate3d-angle": ["0deg", "180deg", "180deg", "360deg"],
332
276
  "--scale": r ? 8 : 1,
333
277
  "--rotate": r ? "90deg" : "0deg",
334
- opacity: r ? b.id === "left" ? 1 : 0 : 1,
278
+ opacity: r ? g.id === "left" ? 1 : 0 : 1,
335
279
  filter: t ? ["blur(0px)", "blur(8px)", "blur(0px)"] : void 0
336
280
  },
337
281
  transition: {
338
282
  "--rotate3d-angle": {
339
- delay: t ? b.delay : 0,
283
+ delay: t ? g.delay : 0,
340
284
  duration: 1.8,
341
285
  ease: [0.65, 0, 0.35, 1],
342
286
  times: [0, 0.99, 0.9999, 1]
@@ -354,7 +298,7 @@ const gl = pe({
354
298
  ease: "easeInOut"
355
299
  },
356
300
  filter: {
357
- delay: t ? b.delay : 0,
301
+ delay: t ? g.delay : 0,
358
302
  duration: 1.8,
359
303
  ease: [0.65, 0, 0.35, 1],
360
304
  times: [0, 0.5, 1]
@@ -364,8 +308,8 @@ const gl = pe({
364
308
  "--rotate3d-angle": "0deg",
365
309
  "--scale": 1,
366
310
  "--rotate": "0deg",
367
- transform: t ? `rotate3d(${b.rotateAxis}, var(--rotate3d-angle))` : "scale(var(--scale)) rotate(var(--rotate))",
368
- transformOrigin: b.transformOrigin,
311
+ transform: t ? `rotate3d(${g.rotateAxis}, var(--rotate3d-angle))` : "scale(var(--scale)) rotate(var(--rotate))",
312
+ transformOrigin: g.transformOrigin,
369
313
  willChange: "transform"
370
314
  },
371
315
  children: /* @__PURE__ */ e(
@@ -379,19 +323,19 @@ const gl = pe({
379
323
  }
380
324
  )
381
325
  },
382
- b.id
326
+ g.id
383
327
  )) })
384
328
  ]
385
329
  }
386
330
  )
387
331
  }
388
332
  );
389
- }, zn = j(xl), Pn = yt(null), vl = 15, wl = ({ children: t, enabled: n, onShow: a, ...r }) => {
333
+ }, Dn = j(gl), zn = yt(null), xl = 15, vl = ({ children: t, enabled: n, onShow: a, ...r }) => {
390
334
  const [l, i] = _(n), [s, c] = _(!1), [d, f] = _(!0), [u, m] = _(
391
- vl
392
- ), h = V(null), g = (x) => {
335
+ xl
336
+ ), h = V(null), p = (x) => {
393
337
  h.current = x;
394
- }, b = () => {
338
+ }, g = () => {
395
339
  h.current && h.current();
396
340
  };
397
341
  return W(() => {
@@ -404,7 +348,7 @@ const gl = pe({
404
348
  f(!x);
405
349
  }
406
350
  }, [s, a]), /* @__PURE__ */ e(
407
- Pn.Provider,
351
+ zn.Provider,
408
352
  {
409
353
  value: {
410
354
  ...r,
@@ -416,8 +360,8 @@ const gl = pe({
416
360
  setShouldPlayEntranceAnimation: f,
417
361
  setAutoClearMinutes: m,
418
362
  autoClearMinutes: l ? u : null,
419
- clear: b,
420
- setClearFunction: g
363
+ clear: g,
364
+ setClearFunction: p
421
365
  },
422
366
  children: t
423
367
  }
@@ -425,7 +369,7 @@ const gl = pe({
425
369
  }, we = () => {
426
370
  };
427
371
  function qe() {
428
- const t = Ke(Pn);
372
+ const t = Ke(zn);
429
373
  return t === null ? {
430
374
  enabled: !1,
431
375
  setEnabled: we,
@@ -439,7 +383,7 @@ function qe() {
439
383
  autoClearMinutes: null
440
384
  } : t;
441
385
  }
442
- const Rn = ({
386
+ const Pn = ({
443
387
  className: t,
444
388
  disabled: n
445
389
  }) => {
@@ -469,7 +413,7 @@ const Rn = ({
469
413
  },
470
414
  checked: l,
471
415
  "aria-label": l ? i.ai.closeChat : i.ai.openChat,
472
- className: p(
416
+ className: b(
473
417
  "group relative h-8 w-12 rounded-full border-none bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary transition-all hover:bg-f1-background-hover",
474
418
  "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)]",
475
419
  "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",
@@ -484,14 +428,14 @@ const Rn = ({
484
428
  children: /* @__PURE__ */ e(
485
429
  ga,
486
430
  {
487
- className: p(
431
+ className: b(
488
432
  "block h-[1.375rem] w-[1.375rem] translate-x-[0.3125rem] rounded-full transition-transform duration-300 data-[state=checked]:translate-x-[1.3125rem]"
489
433
  ),
490
434
  style: {
491
435
  transitionTimingFunction: "cubic-bezier(0.175,0.885,0.32,1.5)"
492
436
  },
493
437
  children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
494
- zn,
438
+ Dn,
495
439
  {
496
440
  size: "sm",
497
441
  background: l ? "white" : void 0,
@@ -506,7 +450,63 @@ const Rn = ({
506
450
  ) }),
507
451
  !l && /* @__PURE__ */ e(xa, { side: "left", className: "font-medium", children: i.ai.welcome })
508
452
  ] }) }) }) : null;
509
- }, Rt = Z.create($), Bt = {
453
+ }, Pt = "one_sidebar_locked", Rn = yt(void 0);
454
+ function ke() {
455
+ const t = Ke(Rn);
456
+ return t === void 0 ? {
457
+ isSmallScreen: !1,
458
+ isLastToggleInvokedByUser: !0,
459
+ prevSidebarState: null,
460
+ sidebarState: "locked",
461
+ toggleSidebar: () => {
462
+ },
463
+ setForceFloat: () => {
464
+ }
465
+ } : t;
466
+ }
467
+ function wl({ children: t }) {
468
+ const { currentPath: n } = ht(), [a, r] = _(!1), [l, i] = _(!1), s = a ? Be.xl : Be.md, c = rt(`(max-width: ${s}px)`, {
469
+ initializeWithValue: !0
470
+ }), [d, f] = _(() => {
471
+ const A = localStorage.getItem(Pt);
472
+ return A !== null ? !!A : !0;
473
+ }), [u, m] = _(!1), [h, p] = _(
474
+ null
475
+ ), g = Q(
476
+ ({ isInvokedByUser: A } = {
477
+ isInvokedByUser: !0
478
+ }) => {
479
+ i(A ?? !0), c && m(!u), f(!d);
480
+ },
481
+ [c, u, d, f, m]
482
+ ), x = Q(
483
+ (A) => {
484
+ c || (A.clientX < 32 && m(!0), A.clientX > 280 && m(!1));
485
+ },
486
+ [c, m]
487
+ ), w = K(() => c ? u ? "unlocked" : "hidden" : !d && !u ? "hidden" : !d && u ? "unlocked" : "locked", [c, u, d]);
488
+ return W(() => {
489
+ m(!1);
490
+ }, [n]), W(() => {
491
+ l && localStorage.setItem(Pt, d ? "1" : "");
492
+ }, [d, l]), W(() => () => {
493
+ p(w);
494
+ }, [w]), /* @__PURE__ */ e(
495
+ Rn.Provider,
496
+ {
497
+ value: {
498
+ isSmallScreen: c,
499
+ isLastToggleInvokedByUser: l,
500
+ sidebarState: w,
501
+ toggleSidebar: g,
502
+ prevSidebarState: h,
503
+ setForceFloat: r
504
+ },
505
+ children: /* @__PURE__ */ e("div", { onPointerMove: x, className: "h-screen w-screen", children: t })
506
+ }
507
+ );
508
+ }
509
+ const Rt = Z.create($), Bt = {
510
510
  initial: { scale: 1 },
511
511
  animate: { scale: 1 },
512
512
  exit: { scale: 0.5 },
@@ -524,7 +524,7 @@ const Rn = ({
524
524
  return /* @__PURE__ */ e(Ee, { mode: "wait", children: /* @__PURE__ */ e(
525
525
  "button",
526
526
  {
527
- className: p(
527
+ className: b(
528
528
  "flex h-6 w-6 items-center justify-center rounded",
529
529
  oe()
530
530
  ),
@@ -586,15 +586,15 @@ const Rn = ({
586
586
  hasUnread: f = !1,
587
587
  crossSelling: u
588
588
  }) => {
589
- const [m, h] = _("idle"), [g, b] = _(null), [x, ...w] = g ?? [], [A, T] = _(!1);
589
+ const [m, h] = _("idle"), [p, g] = _(null), [x, ...w] = p ?? [], [A, D] = _(!1);
590
590
  W(() => {
591
- b(null), h("idle");
591
+ g(null), h("idle");
592
592
  }, [t]);
593
593
  const R = Q(async () => {
594
594
  try {
595
595
  h("fetching");
596
596
  const O = await a();
597
- h("idle"), b(O);
597
+ h("idle"), g(O);
598
598
  } catch {
599
599
  h("error");
600
600
  }
@@ -604,7 +604,7 @@ const Rn = ({
604
604
  {
605
605
  open: A,
606
606
  onOpenChange: async (O) => {
607
- T(O), O && g === null && R(), s(O);
607
+ D(O), O && p === null && R(), s(O);
608
608
  },
609
609
  children: [
610
610
  /* @__PURE__ */ e(Na, { asChild: !0, children: /* @__PURE__ */ e(
@@ -631,8 +631,8 @@ const Rn = ({
631
631
  /* @__PURE__ */ e(Sl, { title: n, url: r, onClick: c }),
632
632
  m === "fetching" && /* @__PURE__ */ e(Al, {}),
633
633
  /* @__PURE__ */ o("div", { className: "scrollbar-macos flex-1 overflow-y-auto", children: [
634
- m === "idle" && g !== null && g.length === 0 && /* @__PURE__ */ e("div", { className: "p-2 pt-0", children: /* @__PURE__ */ e(Il, { ...l, buttonUrl: r }) }),
635
- m === "idle" && g !== null && g.length > 0 && /* @__PURE__ */ o("div", { className: "px-1", children: [
634
+ m === "idle" && p !== null && p.length === 0 && /* @__PURE__ */ e("div", { className: "p-2 pt-0", children: /* @__PURE__ */ e(Il, { ...l, buttonUrl: r }) }),
635
+ m === "idle" && p !== null && p.length > 0 && /* @__PURE__ */ o("div", { className: "px-1", children: [
636
636
  /* @__PURE__ */ e(
637
637
  Cl,
638
638
  {
@@ -640,7 +640,7 @@ const Rn = ({
640
640
  onClick: d
641
641
  }
642
642
  ),
643
- g.length > 1 && /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e("div", { className: "pb-1", children: w.map((O, L) => /* @__PURE__ */ e(
643
+ p.length > 1 && /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e("div", { className: "pb-1", children: w.map((O, L) => /* @__PURE__ */ e(
644
644
  kl,
645
645
  {
646
646
  ...O,
@@ -665,7 +665,7 @@ const Rn = ({
665
665
  isVisible: u.isVisible,
666
666
  onClose: u.onClose,
667
667
  crossSelling: u,
668
- onDropdownClose: () => T(!1)
668
+ onDropdownClose: () => D(!1)
669
669
  }
670
670
  )
671
671
  ]
@@ -690,13 +690,13 @@ const Rn = ({
690
690
  asChild: !0,
691
691
  className: "relative flex cursor-default select-none items-center rounded-md px-1 text-base font-medium outline-none transition-colors after:absolute after:inset-x-1 after:inset-y-0 after:h-full after:rounded after:bg-f1-background-hover after:opacity-0 after:transition-opacity after:duration-75 after:content-[''] hover:cursor-pointer hover:after:opacity-100 focus:after:opacity-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
692
692
  children: /* @__PURE__ */ o(
693
- ge,
693
+ ve,
694
694
  {
695
695
  href: n,
696
696
  target: "_blank",
697
697
  referrerPolicy: "no-referrer",
698
698
  rel: "noopener noreferrer",
699
- className: p(s, "text-f1-foreground no-underline"),
699
+ className: b(s, "text-f1-foreground no-underline"),
700
700
  children: [
701
701
  /* @__PURE__ */ e("div", { className: "px-1 pt-1", children: c ? /* @__PURE__ */ e("div", { className: "overflow-clip rounded border border-solid border-f1-border-secondary", children: /* @__PURE__ */ e(
702
702
  "video",
@@ -735,15 +735,15 @@ const Rn = ({
735
735
  unread: r = !1,
736
736
  onClick: l
737
737
  }) => {
738
- const i = p("flex flex-col items-stretch gap-3 w-full");
738
+ const i = b("flex flex-col items-stretch gap-3 w-full");
739
739
  return /* @__PURE__ */ e(Fa, { asChild: !0, className: i, onClick: l, children: /* @__PURE__ */ e(
740
- ge,
740
+ ve,
741
741
  {
742
742
  href: n,
743
743
  target: "_blank",
744
744
  referrerPolicy: "no-referrer",
745
745
  rel: "noopener noreferrer",
746
- className: p(
746
+ className: b(
747
747
  i,
748
748
  "text-f1-foreground no-underline hover:cursor-pointer"
749
749
  ),
@@ -790,7 +790,7 @@ const Rn = ({
790
790
  /* @__PURE__ */ e(
791
791
  "div",
792
792
  {
793
- className: p(
793
+ className: b(
794
794
  "grid size-14 place-items-center overflow-clip rounded border border-solid border-f1-border-secondary bg-f1-background-tertiary *:block",
795
795
  l
796
796
  ),
@@ -813,7 +813,7 @@ const Rn = ({
813
813
  title: t,
814
814
  description: r,
815
815
  icon: /* @__PURE__ */ e($, { icon: ln, size: "lg", className: "block" }),
816
- button: /* @__PURE__ */ e(ge, { href: a, children: /* @__PURE__ */ e(B, { label: n }) })
816
+ button: /* @__PURE__ */ e(ve, { href: a, children: /* @__PURE__ */ e(B, { label: n }) })
817
817
  }
818
818
  ), Fl = ({
819
819
  title: t,
@@ -852,7 +852,7 @@ const Rn = ({
852
852
  "div",
853
853
  {
854
854
  "aria-hidden": "true",
855
- className: p("size-2 rounded bg-f1-background-selected-bold", t)
855
+ className: b("size-2 rounded bg-f1-background-selected-bold", t)
856
856
  }
857
857
  ), Ll = ({
858
858
  isVisible: t,
@@ -952,11 +952,11 @@ function zo({
952
952
  module: t.id
953
953
  },
954
954
  ...a
955
- ], g = n && Object.keys(n).length !== 0, b = a.length > 0, x = !l && r.length > 0, w = !l && !!s?.isVisible, A = h[h.length - 1], T = b ? h[h.length - 2] : null;
955
+ ], p = n && Object.keys(n).length !== 0, g = l && a.length > 0, x = !l && r.length > 0, w = !l && !!s?.isVisible, A = h[h.length - 1], D = "navigation" in window ? window.navigation : null, R = l && (D ? !!D.canGoBack : window.history.length > 1);
956
956
  return /* @__PURE__ */ o(
957
957
  "div",
958
958
  {
959
- className: p(
959
+ className: b(
960
960
  "flex items-center justify-between px-5 py-4 xs:px-6",
961
961
  l ? "h-12" : "h-16"
962
962
  ),
@@ -983,22 +983,22 @@ function zo({
983
983
  /* @__PURE__ */ o(
984
984
  "div",
985
985
  {
986
- className: p(
986
+ className: b(
987
987
  "flex flex-grow items-center gap-2",
988
- l && b && "justify-center"
988
+ R && "justify-center"
989
989
  ),
990
990
  children: [
991
- l && b && T && !("loading" in T) && /* @__PURE__ */ e("div", { className: "absolute left-4", children: /* @__PURE__ */ e(ge, { href: T.href, children: /* @__PURE__ */ e(
991
+ l && R && /* @__PURE__ */ e("div", { className: "absolute left-4", children: /* @__PURE__ */ e(
992
992
  B,
993
993
  {
994
994
  variant: "ghost",
995
995
  hideLabel: !0,
996
996
  label: "Back",
997
997
  icon: Ea,
998
- onClick: (R) => R.preventDefault()
998
+ onClick: () => window.history.back()
999
999
  }
1000
- ) }) }),
1001
- l && b ? /* @__PURE__ */ e("div", { className: "text-lg font-semibold text-f1-foreground", children: "loading" in A ? /* @__PURE__ */ e(E, { className: "h-4 w-24" }) : A.label }) : /* @__PURE__ */ e(
1000
+ ) }),
1001
+ R || g ? /* @__PURE__ */ e("div", { className: "text-lg font-semibold text-f1-foreground", children: "loading" in A ? /* @__PURE__ */ e(E, { className: "h-4 w-24" }) : A.label }) : /* @__PURE__ */ e(
1002
1002
  bl,
1003
1003
  {
1004
1004
  breadcrumbs: h,
@@ -1018,7 +1018,7 @@ function zo({
1018
1018
  )
1019
1019
  ] }),
1020
1020
  /* @__PURE__ */ o("div", { className: "flex items-center gap-3", children: [
1021
- !l && g && /* @__PURE__ */ e("div", { children: n.tooltip ? /* @__PURE__ */ e(xe, { label: n.tooltip, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1021
+ !l && p && /* @__PURE__ */ e("div", { children: n.tooltip ? /* @__PURE__ */ e(ge, { label: n.tooltip, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1022
1022
  $e,
1023
1023
  {
1024
1024
  text: n.text,
@@ -1026,7 +1026,7 @@ function zo({
1026
1026
  additionalAccessibleText: n.tooltip
1027
1027
  }
1028
1028
  ) }) }) : /* @__PURE__ */ e($e, { text: n.text, variant: n.variant }) }),
1029
- !l && g && (i || x || w) && /* @__PURE__ */ e("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1029
+ !l && p && (i || x || w) && /* @__PURE__ */ e("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1030
1030
  i && /* @__PURE__ */ o("div", { className: "flex items-center gap-3", children: [
1031
1031
  i.counter && /* @__PURE__ */ o("span", { className: "text-sm text-f1-foreground-secondary", children: [
1032
1032
  i.counter.current,
@@ -1063,7 +1063,7 @@ function zo({
1063
1063
  currentModule: t.name
1064
1064
  }
1065
1065
  ) }),
1066
- x && /* @__PURE__ */ e("div", { className: "items-right flex gap-2", children: r.map((R, O) => /* @__PURE__ */ e(El, { action: R }, O)) })
1066
+ x && /* @__PURE__ */ e("div", { className: "items-right flex gap-2", children: r.map((O, L) => /* @__PURE__ */ e(El, { action: O }, L)) })
1067
1067
  ] }),
1068
1068
  /* @__PURE__ */ o("div", { className: "flex items-center gap-3", children: [
1069
1069
  /* @__PURE__ */ e(
@@ -1073,7 +1073,7 @@ function zo({
1073
1073
  autoOpen: f
1074
1074
  }
1075
1075
  ),
1076
- /* @__PURE__ */ e(Rn, {})
1076
+ /* @__PURE__ */ e(Pn, {})
1077
1077
  ] })
1078
1078
  ] })
1079
1079
  ]
@@ -1103,7 +1103,7 @@ function El({ action: t }) {
1103
1103
  onClick: t.onClick
1104
1104
  }
1105
1105
  ) : /* @__PURE__ */ e(
1106
- ge,
1106
+ ve,
1107
1107
  {
1108
1108
  href: t.href,
1109
1109
  title: t.label,
@@ -1130,7 +1130,7 @@ const _l = () => {
1130
1130
  return /* @__PURE__ */ o(
1131
1131
  Z.div,
1132
1132
  {
1133
- className: p(
1133
+ className: b(
1134
1134
  "relative isolate m-3 mt-2 flex flex-col gap-3 rounded-lg border border-solid border-f1-border",
1135
1135
  "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-['']",
1136
1136
  "from-[#E55619] via-[#A1ADE5] to-[#E51943] after:scale-90 after:bg-[conic-gradient(from_var(--gradient-angle),var(--tw-gradient-stops))]",
@@ -1157,7 +1157,7 @@ const _l = () => {
1157
1157
  disabled: !0,
1158
1158
  name: "one-ai-input",
1159
1159
  placeholder: t.ai.inputPlaceholder,
1160
- className: p(
1160
+ className: b(
1161
1161
  "col-start-1 row-start-1",
1162
1162
  "mx-3 mb-0 mt-3 flex-1 resize-none outline-none transition-all",
1163
1163
  "bg-white text-f1-foreground placeholder:text-f1-foreground-secondary",
@@ -1293,7 +1293,7 @@ const _l = () => {
1293
1293
  onHide: c,
1294
1294
  children: d
1295
1295
  }) => /* @__PURE__ */ e(
1296
- wl,
1296
+ vl,
1297
1297
  {
1298
1298
  enabled: t,
1299
1299
  greeting: n,
@@ -1331,7 +1331,7 @@ const _l = () => {
1331
1331
  ) }),
1332
1332
  /* @__PURE__ */ e("div", { className: "flex-1 content-center overflow-y-auto", children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-4 p-6 pt-3", children: [
1333
1333
  /* @__PURE__ */ o("div", { className: "flex flex-col gap-4", children: [
1334
- /* @__PURE__ */ e(zn, { spin: !0, size: "lg" }),
1334
+ /* @__PURE__ */ e(Dn, { spin: !0, size: "lg" }),
1335
1335
  /* @__PURE__ */ o("div", { children: [
1336
1336
  /* @__PURE__ */ e("p", { className: "text-lg font-medium text-f1-foreground-secondary", children: n }),
1337
1337
  /* @__PURE__ */ e("h1", { className: "text-2xl font-semibold text-f1-foreground", children: a })
@@ -1401,7 +1401,7 @@ const _l = () => {
1401
1401
  /* @__PURE__ */ o(
1402
1402
  "div",
1403
1403
  {
1404
- className: p(
1404
+ className: b(
1405
1405
  "flex flex-row items-center gap-2",
1406
1406
  Mt[i]
1407
1407
  ),
@@ -1433,7 +1433,7 @@ const _l = () => {
1433
1433
  /* @__PURE__ */ e(
1434
1434
  "div",
1435
1435
  {
1436
- className: p(
1436
+ className: b(
1437
1437
  "bg-f1-background px-4 py-3",
1438
1438
  c ? "rounded-t-[13.25px]" : "rounded-[13.25px]"
1439
1439
  ),
@@ -1469,7 +1469,7 @@ const _l = () => {
1469
1469
  /* @__PURE__ */ e(
1470
1470
  "div",
1471
1471
  {
1472
- className: p(
1472
+ className: b(
1473
1473
  "rounded-t-[13.25px] bg-f1-background px-4 py-3",
1474
1474
  t && "rounded-[13.25px]"
1475
1475
  ),
@@ -1504,7 +1504,7 @@ function jl({
1504
1504
  "button",
1505
1505
  {
1506
1506
  type: "button",
1507
- className: p(
1507
+ className: b(
1508
1508
  "flex w-full flex-row items-center gap-[6px] rounded-md p-[6px] pr-2 text-left transition-colors",
1509
1509
  n && "bg-f1-background-tertiary",
1510
1510
  a && "cursor-pointer hover:bg-f1-background-hover",
@@ -1539,7 +1539,7 @@ function Vl({
1539
1539
  "button",
1540
1540
  {
1541
1541
  type: "button",
1542
- className: p(
1542
+ className: b(
1543
1543
  "flex w-full flex-col gap-[6px] rounded-md px-2 py-[6px] text-left transition-colors",
1544
1544
  r && "bg-f1-background-tertiary",
1545
1545
  a && "cursor-pointer hover:bg-f1-background-hover",
@@ -1639,7 +1639,7 @@ const Ro = ne(
1639
1639
  "div",
1640
1640
  {
1641
1641
  ref: s,
1642
- className: p("scrollbar-macos w-full overflow-auto", r),
1642
+ className: b("scrollbar-macos w-full overflow-auto", r),
1643
1643
  style: {
1644
1644
  height: `${t}px`
1645
1645
  },
@@ -1680,16 +1680,16 @@ const ct = H("VirtualList", Mn), jn = ({
1680
1680
  semiBold: r = !1
1681
1681
  }) => {
1682
1682
  if (!n)
1683
- return /* @__PURE__ */ e("span", { className: p("line-clamp-1", r ? "font-semibold" : ""), children: t });
1683
+ return /* @__PURE__ */ e("span", { className: b("line-clamp-1", r ? "font-semibold" : ""), children: t });
1684
1684
  if (t.toLowerCase().indexOf(n.toLowerCase()) === -1)
1685
1685
  if (a.find(
1686
1686
  (s) => s.toLowerCase().indexOf(n.toLowerCase().trim()) >= 0
1687
1687
  ))
1688
1688
  n = t.split(" ")[0];
1689
1689
  else
1690
- return /* @__PURE__ */ e("span", { className: p("line-clamp-1", r ? "font-semibold" : ""), children: t });
1690
+ return /* @__PURE__ */ e("span", { className: b("line-clamp-1", r ? "font-semibold" : ""), children: t });
1691
1691
  const l = new RegExp(`(${n})`, "gi"), i = t.split(l);
1692
- return /* @__PURE__ */ e("span", { className: p("line-clamp-1", r ? "font-semibold" : ""), children: i.map(
1692
+ return /* @__PURE__ */ e("span", { className: b("line-clamp-1", r ? "font-semibold" : ""), children: i.map(
1693
1693
  (s, c) => s.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ e(
1694
1694
  "span",
1695
1695
  {
@@ -1728,7 +1728,7 @@ const Hl = ({
1728
1728
  disabled: f = !1,
1729
1729
  hiddenAvatar: u = !1
1730
1730
  }) => {
1731
- const m = t.name.split(" "), h = m[0] || "", g = m.slice(1).join(" "), b = (w) => {
1731
+ const m = t.name.split(" "), h = m[0] || "", p = m.slice(1).join(" "), g = (w) => {
1732
1732
  w.preventDefault(), w.stopPropagation(), !f && (n ? r(t) : a(t));
1733
1733
  }, x = (w) => {
1734
1734
  if (w.key === "Enter" || w.key === " ") {
@@ -1740,7 +1740,7 @@ const Hl = ({
1740
1740
  "label",
1741
1741
  {
1742
1742
  "aria-label": t.name,
1743
- className: p(
1743
+ className: b(
1744
1744
  l,
1745
1745
  "flex flex-row flex-wrap items-center gap-2 rounded border px-2 py-1.5 hover:cursor-pointer",
1746
1746
  "focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:bg-f1-background-hover",
@@ -1752,7 +1752,7 @@ const Hl = ({
1752
1752
  {
1753
1753
  src: t.avatar,
1754
1754
  firstName: h,
1755
- lastName: g,
1755
+ lastName: p,
1756
1756
  size: "xs",
1757
1757
  deactivated: t.deactivated
1758
1758
  }
@@ -1760,7 +1760,7 @@ const Hl = ({
1760
1760
  /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e(
1761
1761
  "div",
1762
1762
  {
1763
- className: p(
1763
+ className: b(
1764
1764
  "flex flex-1 flex-row items-center gap-2 break-all",
1765
1765
  t.deactivated ? "text-f1-foreground/[0.61]" : void 0
1766
1766
  ),
@@ -1780,9 +1780,9 @@ const Hl = ({
1780
1780
  "data-avatarname-navigator-element": "true",
1781
1781
  checked: n,
1782
1782
  disabled: f,
1783
- onClick: b,
1783
+ onClick: g,
1784
1784
  onKeyDown: x,
1785
- className: p(
1785
+ className: b(
1786
1786
  "pointer-events-none ml-auto",
1787
1787
  d ? "opacity-0" : ""
1788
1788
  )
@@ -1813,12 +1813,12 @@ const Hl = ({
1813
1813
  goToLast: u,
1814
1814
  isChild: m = !1,
1815
1815
  hideLine: h = !1,
1816
- showGroupIcon: g = !1,
1817
- singleSelector: b = !1,
1816
+ showGroupIcon: p = !1,
1817
+ singleSelector: g = !1,
1818
1818
  disabled: x = !1,
1819
1819
  hiddenAvatar: w = !1
1820
1820
  }) => {
1821
- const [A, T] = _(!1);
1821
+ const [A, D] = _(!1);
1822
1822
  if (!t)
1823
1823
  return /* @__PURE__ */ e(
1824
1824
  Hl,
@@ -1829,7 +1829,7 @@ const Hl = ({
1829
1829
  selected: l,
1830
1830
  onSelect: s,
1831
1831
  onRemove: c,
1832
- singleSelector: b,
1832
+ singleSelector: g,
1833
1833
  goToFirst: f,
1834
1834
  goToLast: u,
1835
1835
  disabled: x,
@@ -1839,7 +1839,7 @@ const Hl = ({
1839
1839
  const R = (k) => {
1840
1840
  if (k.key === " ")
1841
1841
  k.preventDefault(), d(!n);
1842
- else if (k.key === "Enter" && b)
1842
+ else if (k.key === "Enter" && g)
1843
1843
  d(!n);
1844
1844
  else if (k.key === "Enter") {
1845
1845
  if (x) return;
@@ -1847,9 +1847,9 @@ const Hl = ({
1847
1847
  } else k.key === "ArrowDown" ? Ye(k.currentTarget, f) : k.key === "ArrowUp" && Ze(k.currentTarget, u);
1848
1848
  }, O = () => {
1849
1849
  if (A)
1850
- d(!n), T(!1);
1850
+ d(!n), D(!1);
1851
1851
  else {
1852
- if (x || b) return;
1852
+ if (x || g) return;
1853
1853
  l ? c(r) : s(r);
1854
1854
  }
1855
1855
  };
@@ -1874,11 +1874,11 @@ const Hl = ({
1874
1874
  {
1875
1875
  "aria-label": r.name,
1876
1876
  onPointerDown: () => {
1877
- T(!0);
1877
+ D(!0);
1878
1878
  },
1879
1879
  className: "flex flex-1 flex-row items-center gap-2 rounded border px-2 py-1.5 focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:cursor-pointer hover:bg-f1-background-hover",
1880
1880
  children: [
1881
- g && /* @__PURE__ */ e(
1881
+ p && /* @__PURE__ */ e(
1882
1882
  $,
1883
1883
  {
1884
1884
  icon: Ma,
@@ -1906,10 +1906,10 @@ const Hl = ({
1906
1906
  onKeyDown: R,
1907
1907
  indeterminate: i,
1908
1908
  onPointerDown: (k) => {
1909
- k.stopPropagation(), T(!1);
1909
+ k.stopPropagation(), D(!1);
1910
1910
  },
1911
1911
  "data-avatarname-navigator-element": "true",
1912
- className: p("ml-auto", b ? "opacity-0" : "")
1912
+ className: b("ml-auto", g ? "opacity-0" : "")
1913
1913
  }
1914
1914
  )
1915
1915
  ]
@@ -1931,7 +1931,7 @@ const jt = ({
1931
1931
  "label",
1932
1932
  {
1933
1933
  "aria-label": t,
1934
- className: p(
1934
+ className: b(
1935
1935
  "flex flex-row flex-wrap items-center gap-1.5 rounded border px-1.5 py-1.5 hover:cursor-pointer",
1936
1936
  "focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:bg-f1-background-hover",
1937
1937
  "select-none"
@@ -1948,7 +1948,7 @@ const jt = ({
1948
1948
  variant: "outline"
1949
1949
  }
1950
1950
  ),
1951
- /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e("div", { className: "flex flex-1 flex-row items-center gap-2 break-all", children: /* @__PURE__ */ e("span", { className: p("line-clamp-1"), children: t }) }) })
1951
+ /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e("div", { className: "flex flex-1 flex-row items-center gap-2 break-all", children: /* @__PURE__ */ e("span", { className: b("line-clamp-1"), children: t }) }) })
1952
1952
  ]
1953
1953
  }
1954
1954
  ) }), Ae = ({ primaryAction: t, secondaryActions: n }) => {
@@ -1998,7 +1998,7 @@ const jt = ({
1998
1998
  }) => {
1999
1999
  const u = !c && (n || a), m = t && t.length > 0;
2000
2000
  if (!(!s && (!c && u || m))) return null;
2001
- let g, b, x = d ? {
2001
+ let p, g, x = d ? {
2002
2002
  label: n || "",
2003
2003
  onClick: d,
2004
2004
  variant: "outline",
@@ -2009,27 +2009,27 @@ const jt = ({
2009
2009
  variant: "ghost",
2010
2010
  disabled: r || !i
2011
2011
  } : void 0;
2012
- return x || (x = w, w = void 0), m && u ? (g = /* @__PURE__ */ e(
2012
+ return x || (x = w, w = void 0), m && u ? (p = /* @__PURE__ */ e(
2013
2013
  Ae,
2014
2014
  {
2015
2015
  primaryAction: x,
2016
2016
  secondaryActions: w ? [w] : []
2017
2017
  }
2018
- ), b = /* @__PURE__ */ e(
2018
+ ), g = /* @__PURE__ */ e(
2019
2019
  Ae,
2020
2020
  {
2021
2021
  primaryAction: t[0],
2022
2022
  secondaryActions: t.slice(1)
2023
2023
  }
2024
- )) : m ? g = /* @__PURE__ */ e(
2024
+ )) : m ? p = /* @__PURE__ */ e(
2025
2025
  Ae,
2026
2026
  {
2027
2027
  primaryAction: t[0],
2028
2028
  secondaryActions: t.slice(1)
2029
2029
  }
2030
- ) : u && (g = /* @__PURE__ */ e(Ae, { primaryAction: x, secondaryActions: [] }), w && (b = /* @__PURE__ */ e(Ae, { primaryAction: w, secondaryActions: [] }))), /* @__PURE__ */ e("footer", { className: "rounded-bl-xl border-0 border-r-[1px] border-t-[1px] border-solid border-f1-border-secondary bg-f1-background/30 backdrop-blur-2xl", children: /* @__PURE__ */ o("div", { className: "flex flex-1 justify-between p-2", children: [
2031
- g,
2032
- b
2030
+ ) : u && (p = /* @__PURE__ */ e(Ae, { primaryAction: x, secondaryActions: [] }), w && (g = /* @__PURE__ */ e(Ae, { primaryAction: w, secondaryActions: [] }))), /* @__PURE__ */ e("footer", { className: "rounded-bl-xl border-0 border-r-[1px] border-t-[1px] border-solid border-f1-border-secondary bg-f1-background/30 backdrop-blur-2xl", children: /* @__PURE__ */ o("div", { className: "flex flex-1 justify-between p-2", children: [
2031
+ p,
2032
+ g
2033
2033
  ] }) });
2034
2034
  }, Kl = ({
2035
2035
  search: t,
@@ -2077,18 +2077,18 @@ const jt = ({
2077
2077
  onSelectAll: u,
2078
2078
  onSearch: m,
2079
2079
  selectedEntities: h = [],
2080
- onGroupChange: g,
2081
- onToggleExpand: b,
2080
+ onGroupChange: p,
2081
+ onToggleExpand: g,
2082
2082
  searchPlaceholder: x,
2083
2083
  selectAllLabel: w,
2084
2084
  clearLabel: A,
2085
- notFoundTitle: T,
2085
+ notFoundTitle: D,
2086
2086
  notFoundSubtitle: R,
2087
2087
  className: O,
2088
2088
  actions: L,
2089
2089
  onCreate: k,
2090
2090
  onCreateLabel: X,
2091
- singleSelector: D = !1,
2091
+ singleSelector: T = !1,
2092
2092
  loading: y = !1,
2093
2093
  disabled: S = !1,
2094
2094
  hiddenAvatar: N = !1
@@ -2152,7 +2152,7 @@ const jt = ({
2152
2152
  Pe,
2153
2153
  {
2154
2154
  expanded: J.expanded ?? !1,
2155
- onExpand: () => b(J, !0),
2155
+ onExpand: () => g(J, !0),
2156
2156
  search: l,
2157
2157
  groupView: t,
2158
2158
  entity: J,
@@ -2161,7 +2161,7 @@ const jt = ({
2161
2161
  selected: Y,
2162
2162
  partialSelected: de,
2163
2163
  showGroupIcon: Zl(a, r),
2164
- singleSelector: D,
2164
+ singleSelector: T,
2165
2165
  goToFirst: v,
2166
2166
  goToLast: C,
2167
2167
  disabled: S,
@@ -2183,10 +2183,10 @@ const jt = ({
2183
2183
  N,
2184
2184
  s,
2185
2185
  i,
2186
- b,
2186
+ g,
2187
2187
  l,
2188
2188
  r,
2189
- D
2189
+ T
2190
2190
  ]
2191
2191
  ), ae = K(() => t ? n.flatMap((F) => {
2192
2192
  const q = ze(
@@ -2257,7 +2257,7 @@ const jt = ({
2257
2257
  {
2258
2258
  groupView: !0,
2259
2259
  expanded: te.expanded ?? !1,
2260
- onExpand: (Fe) => b(te, Fe),
2260
+ onExpand: (Fe) => g(te, Fe),
2261
2261
  search: l,
2262
2262
  entity: te,
2263
2263
  onSelect: i,
@@ -2265,7 +2265,7 @@ const jt = ({
2265
2265
  selected: Oe,
2266
2266
  partialSelected: ia,
2267
2267
  showGroupIcon: a.find((Fe) => Fe.value === r)?.groupType === "team",
2268
- singleSelector: D,
2268
+ singleSelector: T,
2269
2269
  goToFirst: v,
2270
2270
  goToLast: C,
2271
2271
  hideLine: q === ae.length - 1,
@@ -2305,7 +2305,7 @@ const jt = ({
2305
2305
  onRemove: () => c(J, Y),
2306
2306
  selected: !!de,
2307
2307
  partialSelected: !1,
2308
- singleSelector: D,
2308
+ singleSelector: T,
2309
2309
  goToFirst: v,
2310
2310
  goToLast: C,
2311
2311
  isChild: !0,
@@ -2317,14 +2317,14 @@ const jt = ({
2317
2317
  ae,
2318
2318
  h,
2319
2319
  l,
2320
- D,
2320
+ T,
2321
2321
  v,
2322
2322
  C,
2323
2323
  i,
2324
2324
  s,
2325
2325
  a,
2326
2326
  S,
2327
- b,
2327
+ g,
2328
2328
  r,
2329
2329
  d,
2330
2330
  c,
@@ -2356,22 +2356,22 @@ const jt = ({
2356
2356
  }
2357
2357
  const J = F > 0 && q === F, Y = q > 0;
2358
2358
  return [J, Y];
2359
- }, [n, z, t]), Ie = ae.length, aa = !D && (w || A), ra = L && L.length > 0, la = !y && (!D && aa || ra);
2359
+ }, [n, z, t]), Ie = ae.length, aa = !T && (w || A), ra = L && L.length > 0, la = !y && (!T && aa || ra);
2360
2360
  return /* @__PURE__ */ o(
2361
2361
  "div",
2362
2362
  {
2363
- className: p(
2363
+ className: b(
2364
2364
  "flex w-full flex-col rounded-l-xl border-0",
2365
- D || y ? "rounded-r-xl" : "",
2365
+ T || y ? "rounded-r-xl" : "",
2366
2366
  O
2367
2367
  ),
2368
2368
  children: [
2369
2369
  /* @__PURE__ */ o(
2370
2370
  "header",
2371
2371
  {
2372
- className: p(
2372
+ className: b(
2373
2373
  "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",
2374
- D || y ? "rounded-t-xl border-r-0" : ""
2374
+ T || y ? "rounded-t-xl border-r-0" : ""
2375
2375
  ),
2376
2376
  children: [
2377
2377
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
@@ -2390,10 +2390,10 @@ const jt = ({
2390
2390
  label: "Group",
2391
2391
  hideLabel: !0,
2392
2392
  disabled: y,
2393
- onChange: g,
2393
+ onChange: p,
2394
2394
  options: a,
2395
2395
  value: r,
2396
- className: p(
2396
+ className: b(
2397
2397
  "h-8 rounded bg-transparent py-[5px]",
2398
2398
  r === "all" ? "text-f1-foreground-secondary" : ""
2399
2399
  )
@@ -2405,7 +2405,7 @@ const jt = ({
2405
2405
  /* @__PURE__ */ o(
2406
2406
  "section",
2407
2407
  {
2408
- className: p(
2408
+ className: b(
2409
2409
  "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",
2410
2410
  la ? "" : "rounded-b-xl border-r-0"
2411
2411
  ),
@@ -2419,7 +2419,7 @@ const jt = ({
2419
2419
  height: et
2420
2420
  },
2421
2421
  children: [
2422
- /* @__PURE__ */ e("span", { className: "text-lg font-medium", children: T }),
2422
+ /* @__PURE__ */ e("span", { className: "text-lg font-medium", children: D }),
2423
2423
  /* @__PURE__ */ e("span", { className: "text-center text-f1-foreground-secondary", children: R })
2424
2424
  ]
2425
2425
  }
@@ -2455,7 +2455,7 @@ const jt = ({
2455
2455
  {
2456
2456
  onSelectAll: u,
2457
2457
  onClear: f,
2458
- singleSelector: D,
2458
+ singleSelector: T,
2459
2459
  totalFilteredEntities: M,
2460
2460
  allVisibleSelected: Se,
2461
2461
  anyVisibleSelected: Qe,
@@ -2477,7 +2477,7 @@ const jt = ({
2477
2477
  }) => /* @__PURE__ */ e("div", { className: "pr-2 pt-1.5", children: /* @__PURE__ */ e(
2478
2478
  Ha,
2479
2479
  {
2480
- className: p(
2480
+ className: b(
2481
2481
  "max-w-54 w-fit gap-1 text-ellipsis break-all border-[1px] border-solid border-f1-border-secondary py-[1px] pl-[1px]",
2482
2482
  "rounded-full",
2483
2483
  l ? "pl-2" : "pl-0"
@@ -2581,7 +2581,7 @@ const jt = ({
2581
2581
  onCreateLabel: m,
2582
2582
  ...h
2583
2583
  }) => {
2584
- const g = (i ?? Ut) < Ql, b = !c && !s && !g, x = i ?? Ut, w = b ? x - Kt : x;
2584
+ const p = (i ?? Ut) < Ql, g = !c && !s && !p, x = i ?? Ut, w = g ? x - Kt : x;
2585
2585
  return /* @__PURE__ */ o(
2586
2586
  "div",
2587
2587
  {
@@ -2615,7 +2615,7 @@ const jt = ({
2615
2615
  )
2616
2616
  }
2617
2617
  ),
2618
- b && /* @__PURE__ */ e(
2618
+ g && /* @__PURE__ */ e(
2619
2619
  "div",
2620
2620
  {
2621
2621
  className: "min-h-0",
@@ -2653,31 +2653,31 @@ const jt = ({
2653
2653
  hint: u,
2654
2654
  onClickContent: m,
2655
2655
  hideLabel: h = !1,
2656
- maxLength: g,
2657
- loading: b = !1,
2656
+ maxLength: p,
2657
+ loading: g = !1,
2658
2658
  required: x = !1,
2659
2659
  readonly: w = !1,
2660
2660
  append: A,
2661
- size: T = "sm",
2661
+ size: D = "sm",
2662
2662
  open: R
2663
2663
  }) => {
2664
2664
  const O = K(
2665
2665
  () => a.some(
2666
- (D) => D.subItems && D.subItems.length > 0
2666
+ (T) => T.subItems && T.subItems.length > 0
2667
2667
  ),
2668
2668
  [a]
2669
2669
  ), L = K(() => O ? a.flatMap(
2670
- (D) => (D.subItems ?? []).map((y) => ({
2671
- parent: D,
2670
+ (T) => (T.subItems ?? []).map((y) => ({
2671
+ parent: T,
2672
2672
  subItem: y
2673
2673
  }))
2674
- ) : a.map((D) => ({
2674
+ ) : a.map((T) => ({
2675
2675
  parent: null,
2676
2676
  subItem: {
2677
- subId: D.id,
2678
- subName: D.name,
2679
- subAvatar: D.avatar,
2680
- subDeactivated: D.deactivated
2677
+ subId: T.id,
2678
+ subName: T.name,
2679
+ subAvatar: T.avatar,
2680
+ subDeactivated: T.deactivated
2681
2681
  }
2682
2682
  })), [O, a]), k = L.length === 0 ? void 0 : L.length === 1 ? L[0].subItem.subName : L.length + " " + n, X = L.length === 1 ? L[0].subItem.subName : void 0;
2683
2683
  return /* @__PURE__ */ e(
@@ -2694,14 +2694,14 @@ const jt = ({
2694
2694
  status: f,
2695
2695
  hint: u,
2696
2696
  hideLabel: h,
2697
- maxLength: g,
2697
+ maxLength: p,
2698
2698
  clearable: !1,
2699
2699
  value: k,
2700
2700
  disabled: r,
2701
- loading: b,
2701
+ loading: g,
2702
2702
  required: x,
2703
2703
  readonly: w,
2704
- size: T,
2704
+ size: D,
2705
2705
  avatar: l || !X ? void 0 : {
2706
2706
  type: "person",
2707
2707
  firstName: X,
@@ -2709,12 +2709,12 @@ const jt = ({
2709
2709
  src: L[0].subItem.subAvatar,
2710
2710
  deactivated: L[0].subItem.subDeactivated
2711
2711
  },
2712
- append: A ?? /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(Ya, { open: R, disabled: r, size: T }) }),
2712
+ append: A ?? /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(Ya, { open: R, disabled: r, size: D }) }),
2713
2713
  children: /* @__PURE__ */ e(
2714
2714
  "span",
2715
2715
  {
2716
2716
  role: "button",
2717
- className: p(
2717
+ className: b(
2718
2718
  "my-auto flex items-center pr-1",
2719
2719
  t && "text-f1-foreground-secondary",
2720
2720
  k && "text-f1-foreground",
@@ -2746,8 +2746,8 @@ const jt = ({
2746
2746
  (y) => y.subItems && y.subItems.length > 0
2747
2747
  ),
2748
2748
  [t.entities]
2749
- ), m = Ke(Xa), g = m.portalContainer && (m.position === "center" || m.position === "fullscreen") ? m.portalContainer : void 0;
2750
- function b(y) {
2749
+ ), m = Ke(Xa), p = m.portalContainer && (m.position === "center" || m.position === "fullscreen") ? m.portalContainer : void 0;
2750
+ function g(y) {
2751
2751
  if (t.singleSelector) {
2752
2752
  t.onSelect(y), a(!1);
2753
2753
  return;
@@ -2868,7 +2868,7 @@ const jt = ({
2868
2868
  }
2869
2869
  t.onSelect(M);
2870
2870
  }
2871
- function T() {
2871
+ function D() {
2872
2872
  if (t.singleSelector) {
2873
2873
  t.onSelect(null);
2874
2874
  return;
@@ -2966,17 +2966,17 @@ const jt = ({
2966
2966
  u,
2967
2967
  i
2968
2968
  ]);
2969
- const k = V(null), [X, D] = _(0);
2969
+ const k = V(null), [X, T] = _(0);
2970
2970
  return Ln(() => {
2971
2971
  const y = () => {
2972
- k.current && D(k.current.offsetWidth);
2972
+ k.current && T(k.current.offsetWidth);
2973
2973
  };
2974
2974
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
2975
2975
  }, []), t.alwaysOpen ? /* @__PURE__ */ e(
2976
2976
  "div",
2977
2977
  {
2978
2978
  ref: k,
2979
- className: p(
2979
+ className: b(
2980
2980
  "scrollbar-macos relative overflow-hidden rounded-xl border-[1px] border-solid border-f1-border-secondary bg-transparent p-0",
2981
2981
  t.width ? "w-fit" : "w-full"
2982
2982
  ),
@@ -2988,11 +2988,11 @@ const jt = ({
2988
2988
  groups: t.groups,
2989
2989
  onGroupChange: t.onGroupChange,
2990
2990
  selectedGroup: t.selectedGroup,
2991
- onSelect: b,
2991
+ onSelect: g,
2992
2992
  onRemove: w,
2993
2993
  onSubItemRemove: A,
2994
2994
  onSubItemSelect: x,
2995
- onClear: T,
2995
+ onClear: D,
2996
2996
  onSelectAll: R,
2997
2997
  selectedEntities: t.selectedEntities ?? [],
2998
2998
  search: s,
@@ -3051,8 +3051,8 @@ const jt = ({
3051
3051
  /* @__PURE__ */ e(
3052
3052
  er,
3053
3053
  {
3054
- container: g,
3055
- className: p(
3054
+ container: p,
3055
+ className: b(
3056
3056
  "scrollbar-macos relative w-full overflow-hidden overscroll-contain rounded-xl border-[1px] border-solid border-f1-border-secondary bg-transparent p-0"
3057
3057
  ),
3058
3058
  children: /* @__PURE__ */ e(
@@ -3063,11 +3063,11 @@ const jt = ({
3063
3063
  groups: t.groups,
3064
3064
  onGroupChange: t.onGroupChange,
3065
3065
  selectedGroup: t.selectedGroup,
3066
- onSelect: b,
3066
+ onSelect: g,
3067
3067
  onRemove: w,
3068
3068
  onSubItemRemove: A,
3069
3069
  onSubItemSelect: x,
3070
- onClear: T,
3070
+ onClear: D,
3071
3071
  onSelectAll: R,
3072
3072
  selectedEntities: t.selectedEntities ?? [],
3073
3073
  search: s,
@@ -3291,7 +3291,7 @@ function mi({
3291
3291
  return /* @__PURE__ */ o(
3292
3292
  "div",
3293
3293
  {
3294
- className: p(
3294
+ className: b(
3295
3295
  "relative h-32 w-full overflow-hidden rounded-md bg-f1-background",
3296
3296
  a ? "" : fi[ar(
3297
3297
  [t, n].join("")
@@ -3327,7 +3327,7 @@ function mi({
3327
3327
  "div",
3328
3328
  {
3329
3329
  ref: s,
3330
- className: p(
3330
+ className: b(
3331
3331
  "absolute -right-0.5",
3332
3332
  a ? "bottom-0.5" : "-bottom-[3px]"
3333
3333
  ),
@@ -3392,27 +3392,27 @@ const bi = ({
3392
3392
  typeLabel: f,
3393
3393
  date: u
3394
3394
  }) => {
3395
- const [m, h] = _(s), g = V(null);
3395
+ const [m, h] = _(s), p = V(null);
3396
3396
  W(() => {
3397
3397
  h(s);
3398
3398
  }, [s]);
3399
- const b = (O) => {
3399
+ const g = (O) => {
3400
3400
  h(O), c?.(O);
3401
- }, x = Ue(), { canvasRef: w, handleMouseEnter: A, handleMouseLeave: T } = hi(x), R = pt({
3401
+ }, x = Ue(), { canvasRef: w, handleMouseEnter: A, handleMouseLeave: D } = hi(x), R = pt({
3402
3402
  emoji: ui[d],
3403
3403
  size: "sm"
3404
3404
  });
3405
3405
  return /* @__PURE__ */ o(
3406
- ge,
3406
+ ve,
3407
3407
  {
3408
3408
  href: t,
3409
3409
  onClick: l,
3410
- className: p(
3410
+ className: b(
3411
3411
  "relative flex flex-col rounded-xl border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary no-underline transition-shadow hover:shadow",
3412
3412
  oe()
3413
3413
  ),
3414
3414
  onMouseEnter: x ? void 0 : A,
3415
- onMouseLeave: x ? void 0 : T,
3415
+ onMouseLeave: x ? void 0 : D,
3416
3416
  children: [
3417
3417
  /* @__PURE__ */ e(
3418
3418
  "canvas",
@@ -3429,8 +3429,8 @@ const bi = ({
3429
3429
  src: r,
3430
3430
  canReact: i,
3431
3431
  lastEmojiReaction: m,
3432
- onReactionSelect: b,
3433
- pickerRef: g
3432
+ onReactionSelect: g,
3433
+ pickerRef: p
3434
3434
  }
3435
3435
  ) }),
3436
3436
  /* @__PURE__ */ o("div", { className: "flex basis-1/3 flex-row justify-between gap-2 p-3", children: [
@@ -3487,19 +3487,19 @@ function gi({
3487
3487
  users: r,
3488
3488
  onInteraction: l
3489
3489
  }) {
3490
- const [i, s] = _(a), [c, d] = _(n), f = V(null), { fireEmojiConfetti: u } = lr(), m = (b, x) => {
3491
- b.stopPropagation(), d(c + (i ? -1 : 1)), s(!i), l?.(x), i || u(x, f);
3492
- }, h = r?.map((b) => b.name).join(", ") || "", g = /* @__PURE__ */ e(
3490
+ const [i, s] = _(a), [c, d] = _(n), f = V(null), { fireEmojiConfetti: u } = lr(), m = (g, x) => {
3491
+ g.stopPropagation(), d(c + (i ? -1 : 1)), s(!i), l?.(x), i || u(x, f);
3492
+ }, h = r?.map((g) => g.name).join(", ") || "", p = /* @__PURE__ */ e(
3493
3493
  xn,
3494
3494
  {
3495
3495
  ref: f,
3496
3496
  variant: "outline",
3497
3497
  size: "md",
3498
3498
  compact: !0,
3499
- onClick: (b) => {
3500
- m(b, t);
3499
+ onClick: (g) => {
3500
+ m(g, t);
3501
3501
  },
3502
- className: p(
3502
+ className: b(
3503
3503
  "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",
3504
3504
  i && "border-f1-border-selected bg-f1-background-selected hover:border-f1-border-selected-bold"
3505
3505
  ),
@@ -3513,7 +3513,7 @@ function gi({
3513
3513
  duration: 200,
3514
3514
  easing: "cubic-bezier(0.175, 0.885, 0.32, 1.275)"
3515
3515
  },
3516
- className: p(
3516
+ className: b(
3517
3517
  "tabular-nums",
3518
3518
  i ? "text-f1-foreground-selected" : "text-f1-foreground"
3519
3519
  )
@@ -3521,7 +3521,7 @@ function gi({
3521
3521
  )
3522
3522
  }
3523
3523
  );
3524
- return h ? /* @__PURE__ */ e(xe, { label: h, children: g }) : g;
3524
+ return h ? /* @__PURE__ */ e(ge, { label: h, children: p }) : p;
3525
3525
  }
3526
3526
  function xi({ items: t, onInteraction: n, locale: a, action: r }) {
3527
3527
  return /* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2", children: [
@@ -3556,7 +3556,7 @@ const vi = H("Reactions", xi), wi = ({
3556
3556
  or,
3557
3557
  {
3558
3558
  content: t,
3559
- className: p(
3559
+ className: b(
3560
3560
  "FactorialOneTextEditor",
3561
3561
  n && "line-clamp-5 break-words"
3562
3562
  )
@@ -3570,7 +3570,7 @@ const vi = H("Reactions", xi), wi = ({
3570
3570
  ), Zt = ({ tags: t, right: n }) => /* @__PURE__ */ e(
3571
3571
  "div",
3572
3572
  {
3573
- className: p(
3573
+ className: b(
3574
3574
  "flex flex-1 flex-row items-center gap-1.5",
3575
3575
  n && "justify-end"
3576
3576
  ),
@@ -3585,7 +3585,7 @@ const vi = H("Reactions", xi), wi = ({
3585
3585
  }
3586
3586
  ) });
3587
3587
  return a.label || a.description ? /* @__PURE__ */ e(
3588
- xe,
3588
+ ge,
3589
3589
  {
3590
3590
  label: a.label,
3591
3591
  description: a.description,
@@ -3767,11 +3767,11 @@ const vi = H("Reactions", xi), wi = ({
3767
3767
  reactions: u,
3768
3768
  inLabel: m,
3769
3769
  comment: h,
3770
- actions: g,
3771
- dropdownItems: b,
3770
+ actions: p,
3771
+ dropdownItems: g,
3772
3772
  noReactionsButton: x = !1
3773
3773
  }) => {
3774
- const w = [f.views, f.comments].filter(Boolean).join(" · "), A = !0, T = On(r), R = () => {
3774
+ const w = [f.views, f.comments].filter(Boolean).join(" · "), A = !0, D = On(r), R = () => {
3775
3775
  s(t);
3776
3776
  }, O = (k) => {
3777
3777
  k.stopPropagation();
@@ -3836,7 +3836,7 @@ const vi = H("Reactions", xi), wi = ({
3836
3836
  /* @__PURE__ */ e(
3837
3837
  "span",
3838
3838
  {
3839
- className: p(
3839
+ className: b(
3840
3840
  "text-f1-foreground-secondary",
3841
3841
  !n && "capitalize"
3842
3842
  ),
@@ -3857,7 +3857,7 @@ const vi = H("Reactions", xi), wi = ({
3857
3857
  ] }),
3858
3858
  /* @__PURE__ */ o("div", { className: "flex flex-row gap-2", children: [
3859
3859
  /* @__PURE__ */ o("div", { className: "hidden flex-row gap-2 md:flex", children: [
3860
- g?.map((k) => /* @__PURE__ */ e(
3860
+ p?.map((k) => /* @__PURE__ */ e(
3861
3861
  B,
3862
3862
  {
3863
3863
  hideLabel: !k.label,
@@ -3870,10 +3870,10 @@ const vi = H("Reactions", xi), wi = ({
3870
3870
  },
3871
3871
  k.label
3872
3872
  )),
3873
- b?.length && /* @__PURE__ */ e(
3873
+ g?.length && /* @__PURE__ */ e(
3874
3874
  Ne,
3875
3875
  {
3876
- items: b,
3876
+ items: g,
3877
3877
  icon: st,
3878
3878
  size: "sm"
3879
3879
  }
@@ -3887,7 +3887,7 @@ const vi = H("Reactions", xi), wi = ({
3887
3887
  label: h.label,
3888
3888
  onClick: h.onClick
3889
3889
  },
3890
- ...b ?? []
3890
+ ...g ?? []
3891
3891
  ],
3892
3892
  icon: st,
3893
3893
  size: "sm"
@@ -3895,12 +3895,12 @@ const vi = H("Reactions", xi), wi = ({
3895
3895
  ) })
3896
3896
  ] })
3897
3897
  ] }),
3898
- /* @__PURE__ */ e("span", { className: "-mt-3 text-sm text-f1-foreground-secondary", children: T }),
3898
+ /* @__PURE__ */ e("span", { className: "-mt-3 text-sm text-f1-foreground-secondary", children: D }),
3899
3899
  /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-col gap-1 text-f1-foreground", children: [
3900
3900
  /* @__PURE__ */ e(
3901
3901
  "p",
3902
3902
  {
3903
- className: p(
3903
+ className: b(
3904
3904
  "text-xl font-semibold",
3905
3905
  "line-clamp-2 break-words"
3906
3906
  ),
@@ -3979,7 +3979,7 @@ const vi = H("Reactions", xi), wi = ({
3979
3979
  "div",
3980
3980
  {
3981
3981
  ref: r,
3982
- className: p(
3982
+ className: b(
3983
3983
  "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",
3984
3984
  a.withPointerCursor && "cursor-pointer"
3985
3985
  ),
@@ -3997,7 +3997,7 @@ const vi = H("Reactions", xi), wi = ({
3997
3997
  /* @__PURE__ */ o("div", { className: "flex flex-1 flex-col", children: [
3998
3998
  /* @__PURE__ */ o("div", { className: "flex flex-1 flex-row items-center gap-1", children: [
3999
3999
  /* @__PURE__ */ e("span", { className: "truncate font-medium", children: `${t.firstName} ${t.lastName}` }),
4000
- a.info && /* @__PURE__ */ e(xe, { label: a.info, children: /* @__PURE__ */ e(
4000
+ a.info && /* @__PURE__ */ e(ge, { label: a.info, children: /* @__PURE__ */ e(
4001
4001
  $,
4002
4002
  {
4003
4003
  icon: fn,
@@ -4060,7 +4060,7 @@ function Li({
4060
4060
  ai: r,
4061
4061
  aiPromotion: l
4062
4062
  }) {
4063
- return /* @__PURE__ */ e(pl, { children: /* @__PURE__ */ e(
4063
+ return /* @__PURE__ */ e(wl, { children: /* @__PURE__ */ e(
4064
4064
  Ei,
4065
4065
  {
4066
4066
  ai: r,
@@ -4130,16 +4130,16 @@ function Di({
4130
4130
  open: u,
4131
4131
  visualizationMode: m,
4132
4132
  canvasContent: h,
4133
- chatWidth: g,
4134
- resizable: b
4135
- } = mr(), x = m === "fullscreen", w = m === "canvas", { open: A } = qe(), T = b ? g : br, R = V(x), O = x && !R.current, L = !x && R.current, [
4133
+ chatWidth: p,
4134
+ resizable: g
4135
+ } = mr(), x = m === "fullscreen", w = m === "canvas", { open: A } = qe(), D = g ? p : br, R = V(x), O = x && !R.current, L = !x && R.current, [
4136
4136
  k,
4137
4137
  X
4138
4138
  ] = _(!1);
4139
4139
  W(() => {
4140
4140
  !x && R.current && X(!0), R.current = x;
4141
4141
  }, [x]);
4142
- const D = x || k || L, y = K(() => O ? { duration: 0.15, ease: "easeOut" } : L ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [O, L]), S = rt(
4142
+ const T = x || k || L, y = K(() => O ? { duration: 0.15, ease: "easeOut" } : L ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [O, L]), S = rt(
4143
4143
  `(max-width: ${Be.xl}px)`,
4144
4144
  { initializeWithValue: !0 }
4145
4145
  ), N = rt(`(max-width: ${Be.md}px)`, {
@@ -4163,7 +4163,7 @@ function Di({
4163
4163
  /* @__PURE__ */ e(Ee, { children: i === "unlocked" && /* @__PURE__ */ e(
4164
4164
  Z.nav,
4165
4165
  {
4166
- className: p(
4166
+ className: b(
4167
4167
  "fixed inset-0 z-20 bg-f1-background-inverse",
4168
4168
  !c && "hidden"
4169
4169
  ),
@@ -4177,7 +4177,7 @@ function Di({
4177
4177
  /* @__PURE__ */ o(
4178
4178
  "div",
4179
4179
  {
4180
- className: p(
4180
+ className: b(
4181
4181
  i !== "locked" ? "z-30" : "z-0",
4182
4182
  !f && "transition-all",
4183
4183
  i === "locked" ? "w-[240px] shrink-0 pl-3" : "w-0"
@@ -4196,7 +4196,7 @@ function Di({
4196
4196
  {
4197
4197
  className: "relative min-w-0 flex-1",
4198
4198
  animate: {
4199
- paddingRight: u && !N ? T : 0
4199
+ paddingRight: u && !N ? D : 0
4200
4200
  },
4201
4201
  transition: { paddingRight: Ai },
4202
4202
  children: [
@@ -4205,9 +4205,9 @@ function Di({
4205
4205
  {
4206
4206
  id: "content",
4207
4207
  layoutId: "main",
4208
- className: p(
4208
+ className: b(
4209
4209
  "relative z-10 flex h-full max-w-full flex-1 xs:py-1",
4210
- D ? "overflow-hidden" : "overflow-auto",
4210
+ T ? "overflow-hidden" : "overflow-auto",
4211
4211
  !u && !A && "xs:pr-1",
4212
4212
  i === "locked" ? "pl-0" : "xs:pl-1"
4213
4213
  ),
@@ -4215,9 +4215,9 @@ function Di({
4215
4215
  children: /* @__PURE__ */ e(
4216
4216
  Z.div,
4217
4217
  {
4218
- className: p(
4218
+ className: b(
4219
4219
  "flex max-w-full flex-1",
4220
- D ? "overflow-hidden" : "overflow-auto"
4220
+ T ? "overflow-hidden" : "overflow-auto"
4221
4221
  ),
4222
4222
  layout: "position",
4223
4223
  children: a
@@ -4228,24 +4228,24 @@ function Di({
4228
4228
  t?.enabled && w && h && /* @__PURE__ */ e(
4229
4229
  "div",
4230
4230
  {
4231
- className: p(
4231
+ className: b(
4232
4232
  // z-[21] sits above the chat wrapper (z-20 in canvas
4233
4233
  // mode) so the canvas card's right-side shadow paints
4234
4234
  // over the chat surface instead of being clipped by it.
4235
4235
  "pointer-events-none flex justify-end",
4236
4236
  N ? "fixed inset-0 z-[50]" : "absolute bottom-0 left-0 top-0 z-[21]"
4237
4237
  ),
4238
- style: N ? void 0 : { right: T },
4238
+ style: N ? void 0 : { right: D },
4239
4239
  children: /* @__PURE__ */ e(pr, {})
4240
4240
  }
4241
4241
  ),
4242
4242
  t?.enabled && /* @__PURE__ */ e(
4243
4243
  Z.div,
4244
4244
  {
4245
- className: p(
4245
+ className: b(
4246
4246
  "pointer-events-none",
4247
4247
  "[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full",
4248
- N ? "fixed inset-0 z-[30]" : p(
4248
+ N ? "fixed inset-0 z-[30]" : b(
4249
4249
  "absolute right-0 top-0 bottom-0",
4250
4250
  // In canvas mode the chat wrapper must sit above
4251
4251
  // the CanvasPanel (z-[15]) so the ResizeHandle's
@@ -4253,12 +4253,12 @@ function Di({
4253
4253
  // canvas side of the seam) can receive hover
4254
4254
  // events — otherwise the canvas captures them
4255
4255
  // and the handle never lights up.
4256
- D || w ? "z-20" : "z-0",
4257
- i === "hidden" && D ? "pl-1" : "pl-0"
4256
+ T || w ? "z-20" : "z-0",
4257
+ i === "hidden" && T ? "pl-1" : "pl-0"
4258
4258
  )
4259
4259
  ),
4260
4260
  animate: {
4261
- width: N || x ? "100%" : T
4261
+ width: N || x ? "100%" : D
4262
4262
  },
4263
4263
  transition: y,
4264
4264
  onAnimationComplete: () => {
@@ -4317,7 +4317,7 @@ function qn({
4317
4317
  /* @__PURE__ */ o(
4318
4318
  "div",
4319
4319
  {
4320
- className: p(
4320
+ className: b(
4321
4321
  "flex flex-row items-center",
4322
4322
  s ? "gap-1.5" : "gap-3"
4323
4323
  ),
@@ -4344,7 +4344,7 @@ function qn({
4344
4344
  /* @__PURE__ */ e(
4345
4345
  "p",
4346
4346
  {
4347
- className: p(
4347
+ className: b(
4348
4348
  s ? "text-lg" : "text-2xl",
4349
4349
  "font-semibold text-f1-foreground"
4350
4350
  ),
@@ -4354,7 +4354,7 @@ function qn({
4354
4354
  n.description && /* @__PURE__ */ e(
4355
4355
  "p",
4356
4356
  {
4357
- className: p(
4357
+ className: b(
4358
4358
  s ? "text-md" : "text-lg",
4359
4359
  "text-f1-foreground-secondary"
4360
4360
  ),
@@ -4368,13 +4368,13 @@ function qn({
4368
4368
  ] }),
4369
4369
  /* @__PURE__ */ o("div", { children: [
4370
4370
  /* @__PURE__ */ e(cn, {}),
4371
- /* @__PURE__ */ e(Rn, {})
4371
+ /* @__PURE__ */ e(Pn, {})
4372
4372
  ] })
4373
4373
  ] }),
4374
4374
  /* @__PURE__ */ e(
4375
4375
  "div",
4376
4376
  {
4377
- className: p(
4377
+ className: b(
4378
4378
  "isolate flex w-full flex-1 flex-col overflow-y-auto overflow-x-hidden [&>*]:flex-1",
4379
4379
  s && "-mt-3"
4380
4380
  ),
@@ -4409,7 +4409,7 @@ function Ri({ label: t, options: n, hasNewUpdate: a }) {
4409
4409
  children: /* @__PURE__ */ e(Ne, { items: Pi(n), children: /* @__PURE__ */ o(
4410
4410
  "button",
4411
4411
  {
4412
- className: p(
4412
+ className: b(
4413
4413
  "relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all",
4414
4414
  oe()
4415
4415
  ),
@@ -4523,7 +4523,7 @@ const $i = ({
4523
4523
  children: /* @__PURE__ */ o(
4524
4524
  "div",
4525
4525
  {
4526
- className: p(
4526
+ className: b(
4527
4527
  "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",
4528
4528
  oe()
4529
4529
  ),
@@ -4552,7 +4552,7 @@ const $i = ({
4552
4552
  }) => /* @__PURE__ */ o(
4553
4553
  "div",
4554
4554
  {
4555
- className: p(
4555
+ className: b(
4556
4556
  "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"
4557
4557
  ),
4558
4558
  children: [
@@ -4583,7 +4583,7 @@ function qo({
4583
4583
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e(Ne, { items: n, children: /* @__PURE__ */ o(
4584
4584
  "button",
4585
4585
  {
4586
- className: p(
4586
+ className: b(
4587
4587
  "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",
4588
4588
  oe("focus-visible:ring-inset")
4589
4589
  ),
@@ -4602,7 +4602,7 @@ function qo({
4602
4602
  ]
4603
4603
  }
4604
4604
  ) }) }),
4605
- a && /* @__PURE__ */ e(xe, { label: c.notifications, shortcut: r, children: /* @__PURE__ */ o("div", { className: "relative", children: [
4605
+ a && /* @__PURE__ */ e(ge, { label: c.notifications, shortcut: r, children: /* @__PURE__ */ o("div", { className: "relative", children: [
4606
4606
  /* @__PURE__ */ e(
4607
4607
  B,
4608
4608
  {
@@ -4649,7 +4649,7 @@ function Wi({ isExpanded: t }) {
4649
4649
  strokeWidth: "1.3",
4650
4650
  strokeLinecap: "round",
4651
4651
  strokeLinejoin: "round",
4652
- className: p(
4652
+ className: b(
4653
4653
  "translate-x-0 stroke-current transition-all duration-200 ease-out motion-reduce:transition-none",
4654
4654
  t ? "opacity-0 group-hover:-translate-x-1 group-hover:opacity-100" : "opacity-1 group-hover:translate-x-[3px]"
4655
4655
  )
@@ -4662,7 +4662,7 @@ function Wi({ isExpanded: t }) {
4662
4662
  d: "M7.5 5L7.5 15",
4663
4663
  strokeWidth: "1.3",
4664
4664
  strokeLinecap: "round",
4665
- className: p(
4665
+ className: b(
4666
4666
  "stroke-current transition-all duration-200 ease-out motion-reduce:transition-none",
4667
4667
  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"
4668
4668
  )
@@ -4688,8 +4688,8 @@ function Mi() {
4688
4688
  compact: !0,
4689
4689
  "aria-label": "Close Sidebar",
4690
4690
  children: [
4691
- /* @__PURE__ */ e("div", { className: p("hidden", { flex: !r }), children: /* @__PURE__ */ e(Wi, { isExpanded: n === "locked" }) }),
4692
- /* @__PURE__ */ e("div", { className: p("hidden", { flex: r }), children: /* @__PURE__ */ e($, { icon: Ce, size: "md" }) })
4691
+ /* @__PURE__ */ e("div", { className: b("hidden", { flex: !r }), children: /* @__PURE__ */ e(Wi, { isExpanded: n === "locked" }) }),
4692
+ /* @__PURE__ */ e("div", { className: b("hidden", { flex: r }), children: /* @__PURE__ */ e($, { icon: Ce, size: "md" }) })
4693
4693
  ]
4694
4694
  }
4695
4695
  );
@@ -4750,7 +4750,7 @@ const Gi = ({
4750
4750
  {
4751
4751
  icon: t.icon,
4752
4752
  size: "md",
4753
- className: p(
4753
+ className: b(
4754
4754
  "transition-colors",
4755
4755
  n ? "text-f1-icon-bold" : "text-f1-icon"
4756
4756
  )
@@ -4762,10 +4762,10 @@ const Gi = ({
4762
4762
  ] }), Hi = ({ item: t }) => {
4763
4763
  const { isActive: n } = ht(), { label: a, icon: r, ...l } = t, i = n(l.href, { exact: l.exactMatch });
4764
4764
  return /* @__PURE__ */ e(
4765
- ge,
4765
+ ve,
4766
4766
  {
4767
4767
  ...l,
4768
- className: p(
4768
+ className: b(
4769
4769
  "flex cursor-pointer items-center rounded py-1.5 pl-1.5 pr-2 no-underline transition-colors",
4770
4770
  oe("focus-visible:ring-inset"),
4771
4771
  i ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary"
@@ -4784,7 +4784,7 @@ const Gi = ({
4784
4784
  onReorderFinish: c,
4785
4785
  isSortable: d = !0
4786
4786
  }) => {
4787
- const f = se(), { isDragging: u, setIsDragging: m, draggedItemId: h, setDraggedItemId: g } = St(), { isActive: b } = ht(), x = b(t.href, { exact: t.exactMatch }), w = V(!1), [A, T] = _(!1), R = l === 0, O = l === i - 1, L = i === 1, k = K(() => {
4787
+ const f = se(), { isDragging: u, setIsDragging: m, draggedItemId: h, setDraggedItemId: p } = St(), { isActive: g } = ht(), x = g(t.href, { exact: t.exactMatch }), w = V(!1), [A, D] = _(!1), R = l === 0, O = l === i - 1, L = i === 1, k = K(() => {
4788
4788
  const I = [];
4789
4789
  return !L && !R && I.push({
4790
4790
  label: f.actions.moveUp,
@@ -4801,13 +4801,13 @@ const Gi = ({
4801
4801
  critical: !0
4802
4802
  }), I;
4803
4803
  }, [L, R, O, f, s, l, r, t]), X = () => {
4804
- m(!0), T(!1), g(t.href || null), w.current = !0;
4805
- }, D = () => {
4806
- m(!1), g(null), c(), setTimeout(() => {
4804
+ m(!0), D(!1), p(t.href || null), w.current = !0;
4805
+ }, T = () => {
4806
+ m(!1), p(null), c(), setTimeout(() => {
4807
4807
  w.current = !1;
4808
4808
  }, 0);
4809
4809
  }, y = u && h === t.href, S = K(
4810
- () => p(
4810
+ () => b(
4811
4811
  "group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing",
4812
4812
  d && "touch-none",
4813
4813
  x ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary",
@@ -4817,12 +4817,12 @@ const Gi = ({
4817
4817
  [x, A, y, d]
4818
4818
  ), N = K(() => /* @__PURE__ */ o(U, { children: [
4819
4819
  /* @__PURE__ */ e("div", { className: "flex w-full items-center justify-between px-1.5 py-1.5", children: /* @__PURE__ */ e(qi, { tooltip: n, children: /* @__PURE__ */ o(
4820
- ge,
4820
+ ve,
4821
4821
  {
4822
4822
  onClick: t.onClick,
4823
4823
  href: t.href,
4824
4824
  exactMatch: t.exactMatch,
4825
- className: p(
4825
+ className: b(
4826
4826
  // w-[calc(100%-24px-2px)] - here 24px is the size of the dropdown button and 2 px is the gap
4827
4827
  "flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline",
4828
4828
  y && "pointer-events-none"
@@ -4834,7 +4834,7 @@ const Gi = ({
4834
4834
  {
4835
4835
  icon: t.icon,
4836
4836
  size: "md",
4837
- className: p(
4837
+ className: b(
4838
4838
  "transition-colors",
4839
4839
  x ? "text-f1-icon-bold" : "text-f1-icon"
4840
4840
  )
@@ -4856,7 +4856,7 @@ const Gi = ({
4856
4856
  /* @__PURE__ */ e(
4857
4857
  "div",
4858
4858
  {
4859
- className: p(
4859
+ className: b(
4860
4860
  "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",
4861
4861
  A && "bg-f1-background-secondary opacity-100",
4862
4862
  y && "opacity-100"
@@ -4865,7 +4865,7 @@ const Gi = ({
4865
4865
  Ne,
4866
4866
  {
4867
4867
  open: A,
4868
- onOpenChange: T,
4868
+ onOpenChange: D,
4869
4869
  items: k,
4870
4870
  children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ e($, { icon: st, size: "sm" }) })
4871
4871
  }
@@ -4881,7 +4881,7 @@ const Gi = ({
4881
4881
  dragConstraints: a,
4882
4882
  dragElastic: 0.1,
4883
4883
  onDragStart: X,
4884
- onDragEnd: D,
4884
+ onDragEnd: T,
4885
4885
  className: S,
4886
4886
  whileDrag: {
4887
4887
  scale: 1.05
@@ -4907,7 +4907,7 @@ const Gi = ({
4907
4907
  /* @__PURE__ */ e("div", { className: "group relative flex items-center", children: /* @__PURE__ */ o(
4908
4908
  "div",
4909
4909
  {
4910
- className: p(
4910
+ className: b(
4911
4911
  "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",
4912
4912
  oe("focus-visible:ring-inset"),
4913
4913
  a && "hidden"
@@ -4970,9 +4970,9 @@ const Gi = ({
4970
4970
  c(!1), setTimeout(() => {
4971
4971
  d.current = !1, i && l?.(i);
4972
4972
  }, 0);
4973
- }, h = (b) => {
4974
- !s && !d.current && r?.(t, b);
4975
- }, g = /* @__PURE__ */ e(
4973
+ }, h = (g) => {
4974
+ !s && !d.current && r?.(t, g);
4975
+ }, p = /* @__PURE__ */ e(
4976
4976
  Xn,
4977
4977
  {
4978
4978
  title: t.title,
@@ -4984,11 +4984,11 @@ const Gi = ({
4984
4984
  children: /* @__PURE__ */ e(
4985
4985
  "div",
4986
4986
  {
4987
- className: p(
4987
+ className: b(
4988
4988
  "flex flex-col gap-0.5",
4989
4989
  s && !d.current && "pointer-events-none"
4990
4990
  ),
4991
- children: t.items.map((b, x) => /* @__PURE__ */ e(Hi, { item: b }, x))
4991
+ children: t.items.map((g, x) => /* @__PURE__ */ e(Hi, { item: g }, x))
4992
4992
  }
4993
4993
  )
4994
4994
  }
@@ -5028,9 +5028,9 @@ const Gi = ({
5028
5028
  backdropFilter: "blur(4px)"
5029
5029
  },
5030
5030
  className: "relative",
5031
- children: g
5031
+ children: p
5032
5032
  }
5033
- ) : g;
5033
+ ) : p;
5034
5034
  };
5035
5035
  function Zo({
5036
5036
  tree: t,
@@ -5040,21 +5040,21 @@ function Zo({
5040
5040
  favorites: l
5041
5041
  }) {
5042
5042
  const i = V(null), s = t.filter(
5043
- (b) => b.isSortable === !1
5043
+ (g) => g.isSortable === !1
5044
5044
  ), [c, d] = _(
5045
- t.filter((b) => b.isSortable !== !1)
5046
- ), [f, u] = _(0), m = Q((b) => {
5047
- d(b);
5045
+ t.filter((g) => g.isSortable !== !1)
5046
+ ), [f, u] = _(0), m = Q((g) => {
5047
+ d(g);
5048
5048
  }, []), h = Q(
5049
- (b) => {
5050
- a?.(b);
5049
+ (g) => {
5050
+ a?.(g);
5051
5051
  },
5052
5052
  [a]
5053
- ), g = ji();
5053
+ ), p = ji();
5054
5054
  return /* @__PURE__ */ e(Vi, { children: /* @__PURE__ */ e(vn, { id: "sidebar-menu", children: /* @__PURE__ */ e(
5055
5055
  Ki,
5056
5056
  {
5057
- disableDragging: g,
5057
+ disableDragging: p,
5058
5058
  nonSortableItems: s,
5059
5059
  sortableItems: c,
5060
5060
  setSortableItems: m,
@@ -5063,7 +5063,7 @@ function Zo({
5063
5063
  onDragEnd: h,
5064
5064
  favorites: l,
5065
5065
  onFavoritesChange: r,
5066
- forceUpdate: () => u((b) => b + 1)
5066
+ forceUpdate: () => u((g) => g + 1)
5067
5067
  },
5068
5068
  f
5069
5069
  ) }) });
@@ -5080,7 +5080,7 @@ function Ki({
5080
5080
  forceUpdate: d,
5081
5081
  disableDragging: f = !1
5082
5082
  }) {
5083
- const u = se(), { isDragging: m } = St(), h = t.some((v) => v.isRoot), g = t.filter((v) => !v.isRoot).length > 0, b = n.length > 0, x = V(null), [w, A] = _(s), T = s.length > 0;
5083
+ const u = se(), { isDragging: m } = St(), h = t.some((v) => v.isRoot), p = t.filter((v) => !v.isRoot).length > 0, g = n.length > 0, x = V(null), [w, A] = _(s), D = s.length > 0;
5084
5084
  W(() => {
5085
5085
  JSON.stringify(s) !== JSON.stringify(w) && A(s);
5086
5086
  }, [s]);
@@ -5099,17 +5099,17 @@ function Ki({
5099
5099
  z.splice(C, 0, G), A(z), c?.(z);
5100
5100
  },
5101
5101
  [w, c]
5102
- ), [k, X] = _(!1), D = V(null);
5102
+ ), [k, X] = _(!1), T = V(null);
5103
5103
  W(() => {
5104
5104
  n.length > 0 && !k && (a([...n]), X(!0));
5105
5105
  }, [n, a, k]), W(() => {
5106
5106
  const v = () => {
5107
- D.current !== null && window.clearTimeout(D.current), D.current = window.setTimeout(() => {
5107
+ T.current !== null && window.clearTimeout(T.current), T.current = window.setTimeout(() => {
5108
5108
  r.current && n.length > 0 && d();
5109
5109
  }, 50);
5110
5110
  };
5111
5111
  return window.addEventListener("resize", v), () => {
5112
- window.removeEventListener("resize", v), D.current !== null && window.clearTimeout(D.current);
5112
+ window.removeEventListener("resize", v), T.current !== null && window.clearTimeout(T.current);
5113
5113
  };
5114
5114
  }, [r, n, d]);
5115
5115
  const y = "flex flex-col gap-0.5", S = K(
@@ -5119,7 +5119,7 @@ function Ki({
5119
5119
  ),
5120
5120
  [w]
5121
5121
  ), N = K(
5122
- () => T && w.map((v, C) => /* @__PURE__ */ e(
5122
+ () => D && w.map((v, C) => /* @__PURE__ */ e(
5123
5123
  Ui,
5124
5124
  {
5125
5125
  isSortable: !f,
@@ -5137,7 +5137,7 @@ function Ki({
5137
5137
  `${v.href}-${v.label}`
5138
5138
  )),
5139
5139
  [
5140
- T,
5140
+ D,
5141
5141
  w,
5142
5142
  S,
5143
5143
  O,
@@ -5160,7 +5160,7 @@ function Ki({
5160
5160
  return /* @__PURE__ */ o(
5161
5161
  "div",
5162
5162
  {
5163
- className: p(
5163
+ className: b(
5164
5164
  "relative",
5165
5165
  m && "cursor-grabbing [&_*]:cursor-grabbing"
5166
5166
  ),
@@ -5173,7 +5173,7 @@ function Ki({
5173
5173
  },
5174
5174
  `fixed-${C}`
5175
5175
  )) }),
5176
- T && /* @__PURE__ */ e("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ e(Xn, { title: u.favorites.favorites, children: /* @__PURE__ */ e("div", { ref: x, children: f ? /* @__PURE__ */ e("div", { className: y, children: N }) : /* @__PURE__ */ e(
5176
+ D && /* @__PURE__ */ e("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ e(Xn, { title: u.favorites.favorites, children: /* @__PURE__ */ e("div", { ref: x, children: f ? /* @__PURE__ */ e("div", { className: y, children: N }) : /* @__PURE__ */ e(
5177
5177
  Lt,
5178
5178
  {
5179
5179
  axis: "y",
@@ -5183,7 +5183,7 @@ function Ki({
5183
5183
  children: N
5184
5184
  }
5185
5185
  ) }) }) }),
5186
- g && /* @__PURE__ */ e("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: t.filter((v) => !v.isRoot).map((v, C) => /* @__PURE__ */ e(
5186
+ p && /* @__PURE__ */ e("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: t.filter((v) => !v.isRoot).map((v, C) => /* @__PURE__ */ e(
5187
5187
  nt,
5188
5188
  {
5189
5189
  category: v,
@@ -5191,10 +5191,10 @@ function Ki({
5191
5191
  },
5192
5192
  `fixed-${C}`
5193
5193
  )) }),
5194
- b && /* @__PURE__ */ e(
5194
+ g && /* @__PURE__ */ e(
5195
5195
  "div",
5196
5196
  {
5197
- className: p(
5197
+ className: b(
5198
5198
  "mt-3 flex w-full flex-col gap-3 bg-transparent px-3 [&_li]:list-none"
5199
5199
  ),
5200
5200
  ref: r,
@@ -5218,7 +5218,7 @@ function Ki({
5218
5218
  const qi = ({
5219
5219
  tooltip: t,
5220
5220
  children: n
5221
- }) => t ? /* @__PURE__ */ e(xe, { description: t, children: n }) : n;
5221
+ }) => t ? /* @__PURE__ */ e(ge, { description: t, children: n }) : n;
5222
5222
  function Xo({
5223
5223
  onClick: t,
5224
5224
  placeholder: n,
@@ -5229,7 +5229,7 @@ function Xo({
5229
5229
  "button",
5230
5230
  {
5231
5231
  onClick: t,
5232
- className: p(
5232
+ className: b(
5233
5233
  "mb-[calc(0.75rem-1px)] flex w-full cursor-pointer items-center justify-between rounded bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary p-1.5 text-f1-foreground-secondary ring-1 ring-inset ring-f1-border-secondary transition-all hover:ring-f1-border-hover",
5234
5234
  oe()
5235
5235
  ),
@@ -5252,7 +5252,7 @@ const Jt = ({ position: t }) => /* @__PURE__ */ e(
5252
5252
  animate: { opacity: 0.5 },
5253
5253
  exit: { opacity: 0 },
5254
5254
  transition: { duration: 0.2, ease: "easeOut" },
5255
- className: p(
5255
+ className: b(
5256
5256
  "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-['']",
5257
5257
  t === "top" ? [
5258
5258
  "top-0",
@@ -5280,7 +5280,7 @@ function Yi({
5280
5280
  top: { duration: s ? 0 : 0.1 },
5281
5281
  left: { duration: s ? 0 : 0.1 },
5282
5282
  default: { duration: s ? 0 : 0.2 }
5283
- }, g = () => a ? Zr(a) && r ? En(
5283
+ }, p = () => a ? Zr(a) && r ? En(
5284
5284
  a,
5285
5285
  {
5286
5286
  onDropdownClick: r
@@ -5291,9 +5291,9 @@ function Yi({
5291
5291
  {
5292
5292
  initial: !1,
5293
5293
  "aria-label": m.navigation.sidebar.label,
5294
- className: p(
5294
+ className: b(
5295
5295
  "absolute bottom-0 left-0 top-0 z-10 flex w-[var(--ds-sidebar-width)] flex-col transition-[background-color]",
5296
- l === "locked" ? "h-full" : p(
5296
+ l === "locked" ? "h-full" : b(
5297
5297
  "shadow-lg ring-1 ring-f1-border-secondary backdrop-blur-2xl",
5298
5298
  i ? "h-full border-y-transparent border-l-transparent bg-f1-background/90" : "h-[calc(100%-16px)] bg-f1-background/60"
5299
5299
  )
@@ -5336,7 +5336,7 @@ function Yi({
5336
5336
  !u && /* @__PURE__ */ e(Jt, { position: "bottom" }, "shadow-scroll-bottom")
5337
5337
  ] })
5338
5338
  ] }),
5339
- /* @__PURE__ */ e("footer", { className: "flex-shrink-0", children: g() })
5339
+ /* @__PURE__ */ e("footer", { className: "flex-shrink-0", children: p() })
5340
5340
  ]
5341
5341
  }
5342
5342
  );
@@ -5410,7 +5410,7 @@ const es = ({
5410
5410
  /* @__PURE__ */ e(
5411
5411
  "div",
5412
5412
  {
5413
- className: p(
5413
+ className: b(
5414
5414
  "flex size-5 items-center justify-center rounded-xs text-sm font-medium",
5415
5415
  i < r ? "bg-f1-background-selected-bold text-f1-foreground-inverse" : "border border-solid border-f1-border-secondary bg-f1-background-secondary text-f1-foreground"
5416
5416
  ),
@@ -5483,10 +5483,10 @@ const es = ({
5483
5483
  gap: "4"
5484
5484
  }
5485
5485
  }), as = re.forwardRef(function({ className: n, gap: a, children: r, tileSize: l, ...i }, s) {
5486
- return /* @__PURE__ */ e("div", { className: p("@container", "grow"), ref: s, ...i, children: /* @__PURE__ */ e(
5486
+ return /* @__PURE__ */ e("div", { className: b("@container", "grow"), ref: s, ...i, children: /* @__PURE__ */ e(
5487
5487
  "div",
5488
5488
  {
5489
- className: p(ns({ gap: a, tileSize: l }), n),
5489
+ className: b(ns({ gap: a, tileSize: l }), n),
5490
5490
  ref: s,
5491
5491
  ...i,
5492
5492
  children: r
@@ -5582,13 +5582,13 @@ const es = ({
5582
5582
  justifyContent: u,
5583
5583
  alignItems: m,
5584
5584
  height: h,
5585
- width: g,
5586
- ...b
5585
+ width: p,
5586
+ ...g
5587
5587
  }, x) {
5588
5588
  return /* @__PURE__ */ e(
5589
5589
  "div",
5590
5590
  {
5591
- className: p(
5591
+ className: b(
5592
5592
  rs({
5593
5593
  paddingX: i,
5594
5594
  basis: r,
@@ -5601,12 +5601,12 @@ const es = ({
5601
5601
  justifyContent: u,
5602
5602
  alignItems: m,
5603
5603
  height: h,
5604
- width: g
5604
+ width: p
5605
5605
  }),
5606
5606
  n
5607
5607
  ),
5608
5608
  ref: x,
5609
- ...b
5609
+ ...g
5610
5610
  }
5611
5611
  );
5612
5612
  }), ls = pe({
@@ -5626,7 +5626,7 @@ const es = ({
5626
5626
  return /* @__PURE__ */ e(
5627
5627
  Jn,
5628
5628
  {
5629
- className: p(ls({ gap: a, wrap: r }), n),
5629
+ className: b(ls({ gap: a, wrap: r }), n),
5630
5630
  ref: i,
5631
5631
  ...l
5632
5632
  }
@@ -5643,7 +5643,7 @@ const es = ({
5643
5643
  return /* @__PURE__ */ e(
5644
5644
  Jn,
5645
5645
  {
5646
- className: p(ss({ gap: a }), n),
5646
+ className: b(ss({ gap: a }), n),
5647
5647
  ref: i,
5648
5648
  ...l,
5649
5649
  children: r
@@ -5672,7 +5672,7 @@ const es = ({
5672
5672
  return /* @__PURE__ */ e(
5673
5673
  "div",
5674
5674
  {
5675
- className: p(
5675
+ className: b(
5676
5676
  "inline-flex ring-1 ring-inset ring-transparent transition-all duration-150",
5677
5677
  n && "select-none overflow-hidden rounded-sm bg-f1-background-tertiary ring-f1-border-secondary"
5678
5678
  ),
@@ -5699,13 +5699,13 @@ const es = ({
5699
5699
  "You cannot pass both alert and status at the same time to this component"
5700
5700
  );
5701
5701
  }, [i, s]);
5702
- const m = (g) => !!g && !(re.isValidElement(g) && g.type === re.Fragment && re.Children.count(g.props.children) === 0), h = () => {
5702
+ const m = (p) => !!p && !(re.isValidElement(p) && p.type === re.Fragment && re.Children.count(p.props.children) === 0), h = () => {
5703
5703
  n?.link?.onClick?.();
5704
5704
  };
5705
5705
  return /* @__PURE__ */ o(
5706
5706
  gt,
5707
5707
  {
5708
- className: p(
5708
+ className: b(
5709
5709
  c ? "h-full" : "",
5710
5710
  "relative flex gap-3 border-f1-border-secondary"
5711
5711
  ),
@@ -5719,7 +5719,7 @@ const es = ({
5719
5719
  /* @__PURE__ */ e(ds, {}),
5720
5720
  /* @__PURE__ */ e(Sn, { className: "truncate", children: n.subtitle })
5721
5721
  ] }),
5722
- n.info && /* @__PURE__ */ e(xe, { label: n.info, children: /* @__PURE__ */ e(
5722
+ n.info && /* @__PURE__ */ e(ge, { label: n.info, children: /* @__PURE__ */ e(
5723
5723
  $,
5724
5724
  {
5725
5725
  icon: In,
@@ -5759,18 +5759,18 @@ const es = ({
5759
5759
  ] })
5760
5760
  ] }) }),
5761
5761
  /* @__PURE__ */ o(wt, { className: "flex h-full flex-col gap-4", children: [
5762
- l && /* @__PURE__ */ e("div", { className: "flex flex-row", children: l.map((g, b) => /* @__PURE__ */ o("div", { className: "grow", children: [
5763
- /* @__PURE__ */ e("div", { className: "mb-0.5 text-sm text-f1-foreground-secondary", children: g.label }),
5762
+ l && /* @__PURE__ */ e("div", { className: "flex flex-row", children: l.map((p, g) => /* @__PURE__ */ o("div", { className: "grow", children: [
5763
+ /* @__PURE__ */ e("div", { className: "mb-0.5 text-sm text-f1-foreground-secondary", children: p.label }),
5764
5764
  /* @__PURE__ */ o("div", { className: "flex flex-row items-end gap-0.5 text-2xl font-semibold", children: [
5765
- !!g.prefixUnit && /* @__PURE__ */ e("div", { className: "text-lg font-medium", children: g.prefixUnit }),
5766
- g.value,
5767
- !!g.postfixUnit && /* @__PURE__ */ e("div", { className: "text-lg font-medium", children: g.postfixUnit })
5765
+ !!p.prefixUnit && /* @__PURE__ */ e("div", { className: "text-lg font-medium", children: p.prefixUnit }),
5766
+ p.value,
5767
+ !!p.postfixUnit && /* @__PURE__ */ e("div", { className: "text-lg font-medium", children: p.postfixUnit })
5768
5768
  ] })
5769
- ] }, b)) }),
5770
- re.Children.toArray(a).filter(m).map((g, b) => /* @__PURE__ */ o(re.Fragment, { children: [
5771
- b > 0 && /* @__PURE__ */ e(Tr, { bare: !0 }),
5772
- g
5773
- ] }, b))
5769
+ ] }, g)) }),
5770
+ re.Children.toArray(a).filter(m).map((p, g) => /* @__PURE__ */ o(re.Fragment, { children: [
5771
+ g > 0 && /* @__PURE__ */ e(Tr, { bare: !0 }),
5772
+ p
5773
+ ] }, g))
5774
5774
  ] }),
5775
5775
  r && /* @__PURE__ */ e(Dr, { children: /* @__PURE__ */ e(B, { variant: "neutral", size: "sm", ...r }) })
5776
5776
  ]
@@ -5789,7 +5789,7 @@ const es = ({
5789
5789
  return /* @__PURE__ */ o(
5790
5790
  gt,
5791
5791
  {
5792
- className: p(
5792
+ className: b(
5793
5793
  "flex gap-4 border-f1-border-secondary",
5794
5794
  a === "full" && "h-full"
5795
5795
  ),
@@ -5812,7 +5812,7 @@ const es = ({
5812
5812
  wt,
5813
5813
  {
5814
5814
  "aria-hidden": !0,
5815
- className: p(a !== "full" && fs({ height: a })),
5815
+ className: b(a !== "full" && fs({ height: a })),
5816
5816
  children: [...Array(4)].map((l, i) => /* @__PURE__ */ e(
5817
5817
  E,
5818
5818
  {
@@ -6270,18 +6270,18 @@ const es = ({
6270
6270
  return /* @__PURE__ */ o(
6271
6271
  gt,
6272
6272
  {
6273
- className: p(
6273
+ className: b(
6274
6274
  "relative flex gap-4 overflow-hidden border-dashed",
6275
6275
  d
6276
6276
  ),
6277
6277
  ref: c,
6278
6278
  children: [
6279
6279
  /* @__PURE__ */ e(xt, { className: "-mt-0.5", children: /* @__PURE__ */ e(vt, { children: n }) }),
6280
- /* @__PURE__ */ o(wt, { className: p("flex flex-col gap-4", f), children: [
6280
+ /* @__PURE__ */ o(wt, { className: b("flex flex-col gap-4", f), children: [
6281
6281
  /* @__PURE__ */ o(
6282
6282
  "div",
6283
6283
  {
6284
- className: p(
6284
+ className: b(
6285
6285
  "absolute -top-12 bottom-0 left-0 right-0 flex flex-col justify-end bg-gradient-to-b to-transparent opacity-30",
6286
6286
  u
6287
6287
  ),
@@ -6329,19 +6329,19 @@ function zs(t, n) {
6329
6329
  if (!r.current) return [];
6330
6330
  const u = r.current.children, m = [];
6331
6331
  for (let h = 0; h < u.length; h++) {
6332
- const g = u[h].getBoundingClientRect().height;
6333
- m.push(g);
6332
+ const p = u[h].getBoundingClientRect().height;
6333
+ m.push(p);
6334
6334
  }
6335
6335
  return m;
6336
6336
  }, []), d = Q(
6337
6337
  (u, m) => {
6338
- let h = 0, g = 0;
6339
- for (let b = 0; b < u.length; b++) {
6340
- const x = g + u[b];
6338
+ let h = 0, p = 0;
6339
+ for (let g = 0; g < u.length; g++) {
6340
+ const x = p + u[g];
6341
6341
  if (x > m + 30) break;
6342
- g = x, g = s(
6342
+ p = x, p = s(
6343
+ p,
6343
6344
  g,
6344
- b,
6345
6345
  u.length
6346
6346
  ), h++;
6347
6347
  }
@@ -6357,7 +6357,7 @@ function zs(t, n) {
6357
6357
  i(h === 0 ? {
6358
6358
  visibleItems: [],
6359
6359
  overflowItems: t
6360
- } : (g) => g.visibleItems.length === h && g.overflowItems.length === t.length - h ? g : {
6360
+ } : (p) => p.visibleItems.length === h && p.overflowItems.length === t.length - h ? p : {
6361
6361
  visibleItems: t.slice(0, h),
6362
6362
  overflowItems: t.slice(h)
6363
6363
  });
@@ -6386,7 +6386,7 @@ const Xe = function({
6386
6386
  "div",
6387
6387
  {
6388
6388
  ref: c,
6389
- className: p("relative flex h-full flex-col", r),
6389
+ className: b("relative flex h-full flex-col", r),
6390
6390
  style: {
6391
6391
  minHeight: `${i}px`
6392
6392
  },
@@ -6442,7 +6442,7 @@ const dc = ({
6442
6442
  return t ? /* @__PURE__ */ e(
6443
6443
  "a",
6444
6444
  {
6445
- className: p(
6445
+ className: b(
6446
6446
  a,
6447
6447
  "cursor-pointer focus:border-f1-background-selected-bold focus:outline-none"
6448
6448
  ),
@@ -6462,7 +6462,7 @@ function uc({
6462
6462
  return /* @__PURE__ */ e(Ps, { onClick: l, children: /* @__PURE__ */ o(
6463
6463
  "div",
6464
6464
  {
6465
- className: p(
6465
+ className: b(
6466
6466
  "flex flex-col gap-0.5 rounded-md border border-solid border-f1-border-secondary px-3 py-2.5",
6467
6467
  l && "hover:border-f1-border-hover"
6468
6468
  ),
@@ -6489,8 +6489,8 @@ const Rs = j(
6489
6489
  children: a
6490
6490
  }
6491
6491
  ),
6492
- "icon" in l && l.icon && /* @__PURE__ */ e("span", { className: p("flex", r), children: /* @__PURE__ */ e($, { icon: l.icon }) }),
6493
- "emoji" in l && l.emoji && /* @__PURE__ */ e("span", { className: p("flex", r), children: /* @__PURE__ */ e(pt, { emoji: l.emoji, size: "md" }) })
6492
+ "icon" in l && l.icon && /* @__PURE__ */ e("span", { className: b("flex", r), children: /* @__PURE__ */ e($, { icon: l.icon }) }),
6493
+ "emoji" in l && l.emoji && /* @__PURE__ */ e("span", { className: b("flex", r), children: /* @__PURE__ */ e(pt, { emoji: l.emoji, size: "md" }) })
6494
6494
  ] })
6495
6495
  ] }, a);
6496
6496
  }
@@ -6520,7 +6520,7 @@ const Rs = j(
6520
6520
  withPointerCursor: a,
6521
6521
  children: r
6522
6522
  }) => {
6523
- const l = p(
6523
+ const l = b(
6524
6524
  "flex flex-row items-center rounded-md border border-solid border-transparent p-2 text-f1-foreground",
6525
6525
  n ? "gap-2" : "gap-2.5",
6526
6526
  a ? "cursor-pointer" : "cursor-default",
@@ -6574,7 +6574,7 @@ function tn({
6574
6574
  onClick: r,
6575
6575
  module: l
6576
6576
  }) {
6577
- const i = p(
6577
+ const i = b(
6578
6578
  "flex flex-row gap-2 rounded-md border border-solid border-transparent p-2 text-f1-foreground",
6579
6579
  r ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
6580
6580
  );
@@ -6601,7 +6601,7 @@ function mt({
6601
6601
  rightIconClassName: d = "text-f1-icon-secondary",
6602
6602
  onClick: f
6603
6603
  }) {
6604
- const u = p(
6604
+ const u = b(
6605
6605
  "flex flex-row items-start gap-1 rounded-md border border-solid border-transparent px-2 py-1.5 text-f1-foreground",
6606
6606
  f ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
6607
6607
  );
@@ -6614,7 +6614,7 @@ function mt({
6614
6614
  {
6615
6615
  icon: i,
6616
6616
  size: "md",
6617
- className: p("mt-0.5", c)
6617
+ className: b("mt-0.5", c)
6618
6618
  }
6619
6619
  ),
6620
6620
  /* @__PURE__ */ e("p", { className: "mt-0.5 line-clamp-2 font-medium", children: n }),
@@ -6623,7 +6623,7 @@ function mt({
6623
6623
  {
6624
6624
  icon: s,
6625
6625
  size: "md",
6626
- className: p("mt-0.5", d)
6626
+ className: b("mt-0.5", d)
6627
6627
  }
6628
6628
  )
6629
6629
  ] }),
@@ -6679,7 +6679,7 @@ const Ms = ({ title: t, info: n }) => /* @__PURE__ */ o("div", { className: "fle
6679
6679
  /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
6680
6680
  /* @__PURE__ */ e("div", { children: n }),
6681
6681
  r && /* @__PURE__ */ e("div", { className: "flex h-4 w-4 items-center text-f1-foreground-tertiary hover:cursor-help", children: /* @__PURE__ */ e(
6682
- xe,
6682
+ ge,
6683
6683
  {
6684
6684
  label: r.label,
6685
6685
  description: r.description,
@@ -6717,7 +6717,7 @@ function gc({
6717
6717
  !!r && /* @__PURE__ */ e("div", { className: l ? "mt-1" : "mt-2", children: /* @__PURE__ */ e(
6718
6718
  "span",
6719
6719
  {
6720
- className: p(
6720
+ className: b(
6721
6721
  "text-f1-foreground",
6722
6722
  l ? "text-sm" : "text-base"
6723
6723
  ),
@@ -6742,9 +6742,9 @@ const Qn = (t, n) => ((n ?? 0) < -1 * (t ?? 0) ? -1 * t : n) ?? 0, js = ({
6742
6742
  const u = Qn(
6743
6743
  a,
6744
6744
  r
6745
- ), m = Math.abs(u), h = Math.floor(m / 60), g = Math.floor(m % 60), b = `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
6746
- return r >= 0 ? `${n.remainingTime} ${b}` : `${n.overtime} ${b}`;
6747
- })(), f = ve[s];
6745
+ ), m = Math.abs(u), h = Math.floor(m / 60), p = Math.floor(m % 60), g = `${h.toString().padStart(2, "0")}:${p.toString().padStart(2, "0")}`;
6746
+ return r >= 0 ? `${n.remainingTime} ${g}` : `${n.overtime} ${g}`;
6747
+ })(), f = xe[s];
6748
6748
  return {
6749
6749
  status: s,
6750
6750
  statusText: c,
@@ -6755,12 +6755,12 @@ const Qn = (t, n) => ((n ?? 0) < -1 * (t ?? 0) ? -1 * t : n) ?? 0, js = ({
6755
6755
  if (t && t > 0)
6756
6756
  return {
6757
6757
  value: t * 60 / n,
6758
- color: ve.empty
6758
+ color: xe.empty
6759
6759
  };
6760
6760
  if (!n)
6761
6761
  return {
6762
6762
  value: 1,
6763
- color: ve.empty
6763
+ color: xe.empty
6764
6764
  };
6765
6765
  }, Gs = ({
6766
6766
  data: t = [],
@@ -6780,22 +6780,22 @@ const Qn = (t, n) => ((n ?? 0) < -1 * (t ?? 0) ? -1 * t : n) ?? 0, js = ({
6780
6780
  let c = (l ?? 0) < 0 ? Math.abs(l ?? 0) * 60 : 0, f = [
6781
6781
  ...[...t].reverse().reduce(
6782
6782
  (u, m) => {
6783
- const h = (m.to.getTime() - m.from.getTime()) / 1e3, g = m.variant === "clocked-in" ? Math.min(h, c) : 0, x = (h - g) / i;
6784
- return c -= g, m.variant === "clocked-in" && r ? [
6783
+ const h = (m.to.getTime() - m.from.getTime()) / 1e3, p = m.variant === "clocked-in" ? Math.min(h, c) : 0, x = (h - p) / i;
6784
+ return c -= p, m.variant === "clocked-in" && r ? [
6785
6785
  ...u,
6786
6786
  {
6787
- value: g / i + x,
6788
- color: ve.overtime
6787
+ value: p / i + x,
6788
+ color: xe.overtime
6789
6789
  }
6790
6790
  ] : [
6791
6791
  ...u,
6792
6792
  {
6793
- value: g / i,
6794
- color: ve.overtime
6793
+ value: p / i,
6794
+ color: xe.overtime
6795
6795
  },
6796
6796
  {
6797
6797
  value: x,
6798
- color: ve[m.variant]
6798
+ color: xe[m.variant]
6799
6799
  }
6800
6800
  ];
6801
6801
  },
@@ -6805,7 +6805,7 @@ const Qn = (t, n) => ((n ?? 0) < -1 * (t ?? 0) ? -1 * t : n) ?? 0, js = ({
6805
6805
  ];
6806
6806
  return f = f.filter((u) => u.value > 0), f.length || f.push({
6807
6807
  value: 1,
6808
- color: ve.empty
6808
+ color: xe.empty
6809
6809
  }), f;
6810
6810
  }, Hs = ({
6811
6811
  data: t = [],
@@ -6818,7 +6818,7 @@ const Qn = (t, n) => ((n ?? 0) < -1 * (t ?? 0) ? -1 * t : n) ?? 0, js = ({
6818
6818
  secondaryLabel: s,
6819
6819
  time: m
6820
6820
  };
6821
- }, ve = {
6821
+ }, xe = {
6822
6822
  "clocked-in": "hsl(var(--positive-50))",
6823
6823
  break: "hsl(var(--promote-50))",
6824
6824
  empty: "hsl(var(--neutral-10))",
@@ -6889,7 +6889,7 @@ function Ks({
6889
6889
  /* @__PURE__ */ e(
6890
6890
  "span",
6891
6891
  {
6892
- className: p(
6892
+ className: b(
6893
6893
  "font-medium",
6894
6894
  t ? "text-f1-foreground" : "text-f1-foreground-secondary"
6895
6895
  ),
@@ -6915,13 +6915,13 @@ function xc({
6915
6915
  onBreak: u,
6916
6916
  breakTypes: m,
6917
6917
  onChangeBreakTypeId: h,
6918
- canShowBreakButton: g = !0,
6919
- canSeeGraph: b = !0,
6918
+ canShowBreakButton: p = !0,
6919
+ canSeeGraph: g = !0,
6920
6920
  canSeeRemainingTime: x = !0,
6921
6921
  // onClickProjectSelector,
6922
6922
  onChangeLocationId: w,
6923
6923
  canShowProject: A = !0,
6924
- projectSelectorElement: T,
6924
+ projectSelectorElement: D,
6925
6925
  breakTypeName: R
6926
6926
  }) {
6927
6927
  const { status: O, statusText: L, subtitle: k, statusColor: X } = js({
@@ -6930,7 +6930,7 @@ function xc({
6930
6930
  trackedMinutes: t,
6931
6931
  remainingMinutes: n,
6932
6932
  canSeeRemainingTime: x
6933
- }), D = O === "clocked-out", y = m?.map((P) => ({
6933
+ }), T = O === "clocked-out", y = m?.map((P) => ({
6934
6934
  value: P.id,
6935
6935
  label: P.duration ? `${P.name} · ${P.duration}` : P.name,
6936
6936
  description: P.description,
@@ -6944,7 +6944,7 @@ function xc({
6944
6944
  }
6945
6945
  }, M = (P) => {
6946
6946
  h?.(P), N(!1), u?.(P);
6947
- }, v = D && i.length && !c && s, C = i.find((P) => P.id === l), z = i.map((P) => ({
6947
+ }, v = T && i.length && !c && s, C = i.find((P) => P.id === l), z = i.map((P) => ({
6948
6948
  value: P.id,
6949
6949
  label: P.name,
6950
6950
  icon: P.icon
@@ -6995,7 +6995,7 @@ function xc({
6995
6995
  }
6996
6996
  ) }),
6997
6997
  O === "clocked-in" && /* @__PURE__ */ o(U, { children: [
6998
- g && /* @__PURE__ */ e(U, { children: y.length > 1 && h ? /* @__PURE__ */ e(
6998
+ p && /* @__PURE__ */ e(U, { children: y.length > 1 && h ? /* @__PURE__ */ e(
6999
6999
  We,
7000
7000
  {
7001
7001
  label: r.break,
@@ -7057,7 +7057,7 @@ function xc({
7057
7057
  ] })
7058
7058
  ] })
7059
7059
  ] }),
7060
- b && /* @__PURE__ */ e(
7060
+ g && /* @__PURE__ */ e(
7061
7061
  Us,
7062
7062
  {
7063
7063
  data: a,
@@ -7088,10 +7088,10 @@ function xc({
7088
7088
  ) })
7089
7089
  }
7090
7090
  ),
7091
- A && T
7091
+ A && D
7092
7092
  ] }) : /* @__PURE__ */ o(U, { children: [
7093
7093
  s && C && /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(Le, { text: C.name, icon: C.icon }) }),
7094
- A && T,
7094
+ A && D,
7095
7095
  G && R && /* @__PURE__ */ e(Le, { text: R })
7096
7096
  ] }) })
7097
7097
  ] }) });
@@ -7154,11 +7154,11 @@ function vc({
7154
7154
  id: u,
7155
7155
  text: u
7156
7156
  } : u
7157
- ).map(({ id: u, text: m, badge: h, counter: g }) => ({
7157
+ ).map(({ id: u, text: m, badge: h, counter: p }) => ({
7158
7158
  id: u,
7159
7159
  text: m,
7160
7160
  badge: h,
7161
- counter: g,
7161
+ counter: p,
7162
7162
  status: f
7163
7163
  }))
7164
7164
  ), c = !s.length;
@@ -7249,10 +7249,10 @@ var go = ({ stones: t, containerSize: n }) => {
7249
7249
  let [{ positions: i, containerHeight: s, stones: c, availableSpots: d }, f] = _({ positions: [], containerHeight: null, stones: [], availableSpots: [] });
7250
7250
  return W(() => {
7251
7251
  var u, m;
7252
- let h = xo(t.current), g = (m = (u = n.current) == null ? void 0 : u.offsetWidth) != null ? m : 0;
7253
- if (g === null) return;
7254
- let b = go({ stones: h, containerSize: g });
7255
- f(Je(le({}, b), { stones: h }));
7252
+ let h = xo(t.current), p = (m = (u = n.current) == null ? void 0 : u.offsetWidth) != null ? m : 0;
7253
+ if (p === null) return;
7254
+ let g = go({ stones: h, containerSize: p });
7255
+ f(Je(le({}, g), { stones: h }));
7256
7256
  }, [a, t, n, r, l]), { positions: i, containerHeight: s, stones: c, availableSpots: d };
7257
7257
  }, wo = (t) => ({ fade: `${t}ms opacity ease`, fadeMove: `
7258
7258
  ${t}ms opacity ease,
@@ -7292,10 +7292,10 @@ var So = () => {
7292
7292
  }, [t]), n;
7293
7293
  }, Fo = (t) => {
7294
7294
  var n = t, { children: a, style: r, transition: l = !1, transitionDuration: i = 500, transitionStep: s = 50 } = n, c = eo(n, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
7295
- let d = V([]), f = V(null), u = So(), m = Io(f), { positions: h, containerHeight: g } = vo({ boxesRefs: d, wrapperRef: f, children: a, windowWidth: u, wrapperWidth: m }), b = le({ minHeight: g ?? 0, position: "relative" }, r);
7296
- return e("div", Je(le({ ref: f, style: b }, c), { children: _n.map(a, (x, w) => {
7295
+ let d = V([]), f = V(null), u = So(), m = Io(f), { positions: h, containerHeight: p } = vo({ boxesRefs: d, wrapperRef: f, children: a, windowWidth: u, wrapperWidth: m }), g = le({ minHeight: p ?? 0, position: "relative" }, r);
7296
+ return e("div", Je(le({ ref: f, style: g }, c), { children: _n.map(a, (x, w) => {
7297
7297
  if (typeof x != "object" || !x || !("type" in x)) return x;
7298
- let A = { style: Co({ style: x.props.style, position: h[w], transition: l, transitionDuration: i }), ref: (T) => d.current[w] = T };
7298
+ let A = { style: Co({ style: x.props.style, position: h[w], transition: l, transitionDuration: i }), ref: (D) => d.current[w] = D };
7299
7299
  return En(x, le(le({}, x.props), A));
7300
7300
  }) }));
7301
7301
  };
@@ -7492,7 +7492,7 @@ export {
7492
7492
  ed as Textarea,
7493
7493
  td as ToggleGroup,
7494
7494
  nd as ToggleGroupItem,
7495
- xe as Tooltip,
7495
+ ge as Tooltip,
7496
7496
  pc as TwoColumnsList,
7497
7497
  Pd as VerticalBarChart,
7498
7498
  sc as VerticalBarChartWidget,