@factorialco/f0-react 2.19.1 → 2.20.1

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 { o as ua, B as fa, p as ma, D as ha, q as At, r as De, s as ga, t as g, v as X, w as pe, u as se, T as pa, x as ba, y as xa, R as va, z as wa, A as ne, E as ya, G as gt, H as rt, J as Re, K as Ee, L as Na, M as Ca, N as W, O as ka, P as Sa, Q as _e, S as sn, U as Ia, V as Fa, W as R, X as on, Y as O, Z as ve, _ as Aa, $ as La, a0 as Ea, a1 as _a, a2 as Oa, a3 as Ce, a4 as cn, a5 as Da, a6 as be, a7 as $e, a8 as Ta, a9 as pt, n as dn, aa as Ne, ab as za, ac as un, ad as ae, ae as H, af as fn, ag as Pa, ah as Ba, ai as Ra, aj as mn, ak as $a, al as hn, am as me, an as ee, ao as Wa, ap as Ma, aq as ja, ar as Va, as as ge, at as Ge, au as Ga, av as Ha, aw as Ua, ax as Ka, ay as He, az as gn, aA as qa, aB as Ya, aC as Za, aD as We, aE as Xa, aF as Ja, aG as Qa, aH as er, aI as tr, aJ as nr, aK as ar, aL as rr, aM as lr, aN as sr, aO as lt, aP as st, aQ as pn, aR as ir, aS as or, aT as bn, aU as cr, aV as dr, aW as Ue, aX as bt, aY as xn, aZ as ur, a_ as vn, a$ as fr, b0 as mr, b1 as hr, b2 as Le, b3 as gr, b4 as Te, b5 as Lt, b6 as it, b7 as pr, b8 as br, a as xr, g as vr, b9 as wr, ba as wn, bb as yr, bc as Nr, F as Cr, bd as yn, be as kr, bf as Nn, bg as Sr, bh as Et, bi as Ir, bj as Fr, bk as Ar, bl as Lr, bm as Cn, bn as Er, bo as _r, bp as Or, bq as Dr, br as Tr, bs as kn, bt as ue, bu as Sn, bv as xt, bw as vt, bx as wt, by as In, bz as yt, bA as Fn, bB as An, bC as zr, bD as Pr, bE as Br, bF as Rr, bG as $r, bH as Wr, bI as Mr, bJ as jr, bK as Vr, bL as Gr, bM as Hr, bN as _t, bO as Ot, bP as Dt, bQ as Ur, bR as Kr, bS as qr, bT as Yr, bU as Ln, bV as Zr, bW as Xr, bX as Jr } from "./useDataCollectionSource-DTsD48r9.js";
2
- import { ch as Tc, cg as zc, b$ as Pc, ct as Bc, ca as Rc, cb as $c, b_ as Wc, bY as Mc, cd as jc, c0 as Vc, cF as Gc, cD as Hc, c1 as Uc, ce as Kc, cf as qc, cc as Yc, c2 as Zc, cp as Xc, cq as Jc, cu as Qc, cB as ed, cC as td, c8 as nd, cE as ad, c9 as rd, c3 as ld, cj as sd, ci as id, c4 as od, c5 as cd, c6 as dd, cr as ud, cG as fd, bZ as md, cs as hd, cw as gd, cx as pd, co as bd, cl as xd, cn as vd, ck as wd, c7 as yd, cm as Nd, cy as Cd, cz as kd, cv as Sd, cA as Id } from "./useDataCollectionSource-DTsD48r9.js";
3
- import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
- import ie, { forwardRef as j, useRef as G, useTransition as Qr, useState as E, useLayoutEffect as En, useId as ot, useContext as Ke, createContext as Nt, useEffect as $, useCallback as Q, useMemo as q, Fragment as el, isValidElement as tl, cloneElement as _n, Children as On } from "react";
5
- import { C as nl, P as al, g as Dn, c as rl, F as ct, f as ll, a as sl, A as il, B as ol, L as cl, b as dl, V as ul, d as fl, e as Tt, h as ml, i as hl } from "./index-5EqURvlM.js";
6
- import { n as Ad, o as Ld, l as Ed, p as _d, u as Od, D as Dd, m as Td, q as zd, x as Pd, y as Bd, N as Rd, z as $d, r as Wd, t as Md, R as jd, s as Vd, j as Gd, k as Hd, w as Ud, v as Kd } from "./index-5EqURvlM.js";
1
+ import { s as ua, B as fa, t as ma, v as ha, w as At, x as De, y as ga, z as g, A as X, E as pe, u as se, T as pa, G as ba, H as xa, R as va, J as wa, K as ne, L as ya, M as gt, N as rt, O as Re, Q as _e, S as Na, U as Ca, V as W, W as ka, X as Sa, Y as ve, Z as sn, _ as Ia, $ as Fa, a0 as M, a1 as on, a2 as O, a3 as we, a4 as Aa, a5 as La, a6 as Ea, a7 as _a, a8 as Oa, a9 as ke, aa as cn, ab as Da, ac as be, ad as $e, ae as Ta, af as pt, k as dn, ag as Ce, ah as za, ai as un, aj as ae, ak as H, al as fn, am as Pa, an as Ba, ao as Ra, ap as mn, aq as $a, ar as hn, as as me, at as ee, au as Wa, av as Ma, aw as ja, ax as Va, ay as ge, az as Ge, aA as Ga, aB as Ha, aC as Ua, aD as Ka, aE as He, aF as gn, aG as qa, aH as Ya, aI as Za, aJ as We, aK as Xa, aL as Ja, aM as Qa, aN as er, aO as tr, aP as nr, aQ as ar, aR as rr, aS as lr, aT as sr, aU as lt, aV as st, aW as pn, aX as ir, aY as or, aZ as cr, a_ as dr, a$ as Ue, b0 as bt, b1 as bn, b2 as ur, b3 as xn, b4 as fr, b5 as mr, b6 as hr, b7 as Ee, b8 as gr, b9 as Te, ba as Lt, bb as it, bc as pr, bd as br, a as xr, c as vr, be as vn, bf as wr, r as yr, F as Nr, bg as wn, bh as Cr, bi as yn, bj as kr, bk as Sr, bl as Ir, bm as Fr, bn as Ar, bo as Lr, bp as Er, bq as _r, br as Or, bs as Nn, bt as ue, bu as xt, bv as vt, bw as wt, bx as Cn, by as yt, bz as kn, bA as Sn, bB as Dr, bC as Tr, bD as zr, bE as Pr, bF as Br, bG as Rr, bH as $r, bI as Wr, bJ as Mr, bK as jr, bL as Et, bM as _t, bN as Ot, bO as Vr, bP as Gr, bQ as Hr, bR as Ur, bS as In, bT as Kr, bU as qr } from "./F0CanvasPanel-DNz4nej5.js";
2
+ import { c4 as Tc, c3 as zc, cg as Pc, c0 as Bc, c1 as Rc, bV as $c, bW as Wc, ch as Mc, bX as jc, c2 as Vc, cc as Gc, cd as Hc, bY as Uc, c6 as Kc, c5 as qc, bZ as Yc, b_ as Zc, ce as Xc, ci as Jc, cf as Qc, cb as ed, c8 as td, ca as nd, c7 as ad, b$ as rd, c9 as ld } from "./F0CanvasPanel-DNz4nej5.js";
3
+ import { jsx as e, jsxs as o, Fragment as K } from "react/jsx-runtime";
4
+ import ie, { forwardRef as j, useRef as G, useTransition as Yr, useState as _, useLayoutEffect as Fn, useId as ot, useContext as Ke, createContext as Nt, useEffect as $, useCallback as Q, useMemo as q, Fragment as Zr, isValidElement as Xr, cloneElement as An, Children as Ln } from "react";
5
+ import { C as Jr, P as Qr, g as En, c as el, a as _n, F as ct, f as tl, M as nl, b as al, R as Dt, d as On, u as rl, e as Dn, S as ll, A as sl, B as il, L as ol, h as cl, V as dl, i as ul, j as Tt, k as fl, l as ml, O as hl } from "./useDataCollectionSource-Dutz5gMZ.js";
6
+ import { q as id, r as od, o as cd, G as dd, s as ud, y as fd, a4 as md, E as hd, p as gd, K as pd, aa as bd, Q as xd, U as vd, t as wd, a6 as yd, a7 as Nd, a5 as Cd, a8 as kd, N as Sd, W as Id, a1 as Fd, a3 as Ad, v as Ld, x as Ed, z as _d, I as Od, a9 as Dd, J as Td, T as zd, w as Pd, D as Bd, m as Rd, n as $d, Y as Wd, Z as Md, a2 as jd, H as Vd, _ as Gd, $ as Hd, X as Ud, a0 as Kd } from "./useDataCollectionSource-Dutz5gMZ.js";
7
7
  const gl = ua("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
@@ -83,8 +83,8 @@ function vl(t, n, a = []) {
83
83
  };
84
84
  }
85
85
  function wl({ breadcrumbs: t, append: n }) {
86
- const a = G(null), r = G(null), [, l] = Qr(), [s, i] = E(null), c = (s?.collapsedItems || []).length > 0;
87
- return En(() => {
86
+ const a = G(null), r = G(null), [, l] = Yr(), [s, i] = _(null), c = (s?.collapsedItems || []).length > 0;
87
+ return Fn(() => {
88
88
  const d = a.current, f = r.current;
89
89
  if (!d || !f || f.children.length < t.length) return;
90
90
  const u = () => {
@@ -137,7 +137,7 @@ function wl({ breadcrumbs: t, append: n }) {
137
137
  },
138
138
  `first-item-${s.headItem.id}`
139
139
  ),
140
- c && /* @__PURE__ */ o(U, { children: [
140
+ c && /* @__PURE__ */ o(K, { children: [
141
141
  /* @__PURE__ */ e(
142
142
  Tn,
143
143
  {
@@ -156,7 +156,7 @@ function wl({ breadcrumbs: t, append: n }) {
156
156
  d.id
157
157
  ))
158
158
  ] }),
159
- !c && /* @__PURE__ */ e(U, { children: s.tailItems.map((d, f) => /* @__PURE__ */ e(
159
+ !c && /* @__PURE__ */ e(K, { children: s.tailItems.map((d, f) => /* @__PURE__ */ e(
160
160
  De,
161
161
  {
162
162
  item: d,
@@ -257,7 +257,7 @@ const yl = pe({
257
257
  "--gradient-angle": "0deg",
258
258
  ...p.style
259
259
  },
260
- ...(({ style: b, ...x }) => x)(p),
260
+ ...(({ style: b, ...v }) => v)(p),
261
261
  children: [
262
262
  /* @__PURE__ */ o("defs", { children: [
263
263
  /* @__PURE__ */ e("clipPath", { id: `${i}-circle`, children: /* @__PURE__ */ e("circle", { cx: "16", cy: "16", r: "16" }) }),
@@ -331,10 +331,10 @@ const yl = pe({
331
331
  }
332
332
  );
333
333
  }, zn = j(Nl), Pn = Nt(null), Cl = 15, kl = ({ children: t, enabled: n, onShow: a, ...r }) => {
334
- const [l, s] = E(n), [i, c] = E(!1), [d, f] = E(!0), [u, m] = E(
334
+ const [l, s] = _(n), [i, c] = _(!1), [d, f] = _(!0), [u, m] = _(
335
335
  Cl
336
- ), h = G(null), p = (x) => {
337
- h.current = x;
336
+ ), h = G(null), p = (v) => {
337
+ h.current = v;
338
338
  }, b = () => {
339
339
  h.current && h.current();
340
340
  };
@@ -342,10 +342,10 @@ const yl = pe({
342
342
  s(n);
343
343
  }, [n]), $(() => {
344
344
  if (i && a?.(), !i) {
345
- const x = window.matchMedia(
345
+ const v = window.matchMedia(
346
346
  "(prefers-reduced-motion: reduce)"
347
347
  ).matches;
348
- f(!x);
348
+ f(!v);
349
349
  }
350
350
  }, [i, a]), /* @__PURE__ */ e(
351
351
  Pn.Provider,
@@ -366,20 +366,20 @@ const yl = pe({
366
366
  children: t
367
367
  }
368
368
  );
369
- }, we = () => {
369
+ }, ye = () => {
370
370
  };
371
371
  function qe() {
372
372
  const t = Ke(Pn);
373
373
  return t === null ? {
374
374
  enabled: !1,
375
- setEnabled: we,
375
+ setEnabled: ye,
376
376
  open: !1,
377
- setOpen: we,
377
+ setOpen: ye,
378
378
  shouldPlayEntranceAnimation: !0,
379
- setShouldPlayEntranceAnimation: we,
380
- setAutoClearMinutes: we,
381
- clear: we,
382
- setClearFunction: we,
379
+ setShouldPlayEntranceAnimation: ye,
380
+ setAutoClearMinutes: ye,
381
+ clear: ye,
382
+ setClearFunction: ye,
383
383
  autoClearMinutes: null
384
384
  } : t;
385
385
  }
@@ -387,7 +387,7 @@ const Bn = ({
387
387
  className: t,
388
388
  disabled: n
389
389
  }) => {
390
- const { enabled: a, setOpen: r, open: l } = qe(), s = se(), [i, c] = E(!1);
390
+ const { enabled: a, setOpen: r, open: l } = qe(), s = se(), [i, c] = _(!1);
391
391
  return a ? /* @__PURE__ */ e("div", { className: "flex items-center", children: /* @__PURE__ */ e(pa, { children: /* @__PURE__ */ o(ba, { delayDuration: 850, disableHoverableContent: !0, children: [
392
392
  /* @__PURE__ */ e(xa, { asChild: !0, children: /* @__PURE__ */ e(
393
393
  X.div,
@@ -451,7 +451,7 @@ const Bn = ({
451
451
  !l && /* @__PURE__ */ e(ya, { side: "left", className: "font-medium", children: s.ai.welcome })
452
452
  ] }) }) }) : null;
453
453
  }, Bt = "one_sidebar_locked", Rn = Nt(void 0);
454
- function ke() {
454
+ function Se() {
455
455
  const t = Ke(Rn);
456
456
  return t === void 0 ? {
457
457
  isSmallScreen: !1,
@@ -465,44 +465,44 @@ function ke() {
465
465
  } : t;
466
466
  }
467
467
  function Sl({ children: t }) {
468
- const { currentPath: n } = gt(), [a, r] = E(!1), [l, s] = E(!1), i = a ? Re.xl : Re.md, c = rt(`(max-width: ${i}px)`, {
468
+ const { currentPath: n } = gt(), [a, r] = _(!1), [l, s] = _(!1), i = a ? Re.xl : Re.md, c = rt(`(max-width: ${i}px)`, {
469
469
  initializeWithValue: !0
470
- }), [d, f] = E(() => {
471
- const A = localStorage.getItem(Bt);
472
- return A !== null ? !!A : !0;
473
- }), [u, m] = E(!1), [h, p] = E(
470
+ }), [d, f] = _(() => {
471
+ const I = localStorage.getItem(Bt);
472
+ return I !== null ? !!I : !0;
473
+ }), [u, m] = _(!1), [h, p] = _(
474
474
  null
475
475
  ), b = Q(
476
- ({ isInvokedByUser: A } = {
476
+ ({ isInvokedByUser: I } = {
477
477
  isInvokedByUser: !0
478
478
  }) => {
479
- s(A ?? !0), c && m(!u), f(!d);
479
+ s(I ?? !0), c && m(!u), f(!d);
480
480
  },
481
481
  [c, u, d, f, m]
482
- ), x = Q(
483
- (A) => {
484
- c || (A.clientX < 32 && m(!0), A.clientX > 280 && m(!1));
482
+ ), v = Q(
483
+ (I) => {
484
+ c || (I.clientX < 32 && m(!0), I.clientX > 280 && m(!1));
485
485
  },
486
486
  [c, m]
487
- ), w = q(() => c ? u ? "unlocked" : "hidden" : !d && !u ? "hidden" : !d && u ? "unlocked" : "locked", [c, u, d]);
487
+ ), y = q(() => c ? u ? "unlocked" : "hidden" : !d && !u ? "hidden" : !d && u ? "unlocked" : "locked", [c, u, d]);
488
488
  return $(() => {
489
489
  m(!1);
490
490
  }, [n]), $(() => {
491
491
  l && localStorage.setItem(Bt, d ? "1" : "");
492
492
  }, [d, l]), $(() => () => {
493
- p(w);
494
- }, [w]), /* @__PURE__ */ e(
493
+ p(y);
494
+ }, [y]), /* @__PURE__ */ e(
495
495
  Rn.Provider,
496
496
  {
497
497
  value: {
498
498
  isSmallScreen: c,
499
499
  isLastToggleInvokedByUser: l,
500
- sidebarState: w,
500
+ sidebarState: y,
501
501
  toggleSidebar: b,
502
502
  prevSidebarState: h,
503
503
  setForceFloat: r
504
504
  },
505
- children: /* @__PURE__ */ e("div", { onPointerMove: x, className: "h-screen w-screen", children: t })
505
+ children: /* @__PURE__ */ e("div", { onPointerMove: v, className: "h-screen w-screen", children: t })
506
506
  }
507
507
  );
508
508
  }
@@ -518,10 +518,10 @@ const Rt = X.create(W), $t = {
518
518
  onChange: n,
519
519
  label: a
520
520
  }) => {
521
- const [r, l] = E(!1), s = () => {
521
+ const [r, l] = _(!1), s = () => {
522
522
  l(!0), n(!t);
523
523
  };
524
- return /* @__PURE__ */ e(Ee, { mode: "wait", children: /* @__PURE__ */ e(
524
+ return /* @__PURE__ */ e(_e, { mode: "wait", children: /* @__PURE__ */ e(
525
525
  "button",
526
526
  {
527
527
  className: g(
@@ -586,11 +586,11 @@ const Rt = X.create(W), $t = {
586
586
  hasUnread: f = !1,
587
587
  crossSelling: u
588
588
  }) => {
589
- const [m, h] = E("idle"), [p, b] = E(null), [x, ...w] = p ?? [], [A, z] = E(!1);
589
+ const [m, h] = _("idle"), [p, b] = _(null), [v, ...y] = p ?? [], [I, z] = _(!1);
590
590
  $(() => {
591
591
  b(null), h("idle");
592
592
  }, [t]);
593
- const B = Q(async () => {
593
+ const R = Q(async () => {
594
594
  try {
595
595
  h("fetching");
596
596
  const D = await a();
@@ -602,19 +602,19 @@ const Rt = X.create(W), $t = {
602
602
  return /* @__PURE__ */ o(
603
603
  ka,
604
604
  {
605
- open: A,
605
+ open: I,
606
606
  onOpenChange: async (D) => {
607
- z(D), D && p === null && B(), i(D);
607
+ z(D), D && p === null && R(), i(D);
608
608
  },
609
609
  children: [
610
610
  /* @__PURE__ */ e(Sa, { asChild: !0, children: /* @__PURE__ */ e(
611
- _e,
611
+ ve,
612
612
  {
613
613
  variant: "outline",
614
614
  icon: sn,
615
615
  hideLabel: !0,
616
616
  label: n,
617
- pressed: A,
617
+ pressed: I,
618
618
  append: f && /* @__PURE__ */ e(kt, { className: "absolute -right-0.5 -top-[1px]" })
619
619
  }
620
620
  ) }),
@@ -636,17 +636,17 @@ const Rt = X.create(W), $t = {
636
636
  /* @__PURE__ */ e(
637
637
  Al,
638
638
  {
639
- ...x,
639
+ ...v,
640
640
  onClick: d
641
641
  }
642
642
  ),
643
- p.length > 1 && /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e("div", { className: "pb-1", children: w.map((D, _) => /* @__PURE__ */ e(
643
+ p.length > 1 && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e("div", { className: "pb-1", children: y.map((D, E) => /* @__PURE__ */ e(
644
644
  Ll,
645
645
  {
646
646
  ...D,
647
647
  onClick: d
648
648
  },
649
- _
649
+ E
650
650
  )) }) })
651
651
  ] }),
652
652
  m === "error" && /* @__PURE__ */ e("div", { className: "p-2 pt-0", children: /* @__PURE__ */ e(
@@ -654,7 +654,7 @@ const Rt = X.create(W), $t = {
654
654
  {
655
655
  ...s,
656
656
  onClick: () => {
657
- B();
657
+ R();
658
658
  }
659
659
  }
660
660
  ) })
@@ -690,7 +690,7 @@ const Rt = X.create(W), $t = {
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
- ve,
693
+ we,
694
694
  {
695
695
  href: n,
696
696
  target: "_blank",
@@ -737,7 +737,7 @@ const Rt = X.create(W), $t = {
737
737
  }) => {
738
738
  const s = g("flex flex-col items-stretch gap-3 w-full");
739
739
  return /* @__PURE__ */ e(Ea, { asChild: !0, className: s, onClick: l, children: /* @__PURE__ */ e(
740
- ve,
740
+ we,
741
741
  {
742
742
  href: n,
743
743
  target: "_blank",
@@ -768,7 +768,7 @@ const Rt = X.create(W), $t = {
768
768
  children: [
769
769
  /* @__PURE__ */ e("h2", { className: "text-base font-medium", children: t }),
770
770
  /* @__PURE__ */ e(
771
- R,
771
+ M,
772
772
  {
773
773
  variant: "outline",
774
774
  size: "sm",
@@ -813,7 +813,7 @@ const Rt = X.create(W), $t = {
813
813
  title: t,
814
814
  description: r,
815
815
  icon: /* @__PURE__ */ e(W, { icon: sn, size: "lg", className: "block" }),
816
- button: /* @__PURE__ */ e(ve, { href: a, children: /* @__PURE__ */ e(R, { label: n }) })
816
+ button: /* @__PURE__ */ e(we, { href: a, children: /* @__PURE__ */ e(M, { label: n }) })
817
817
  }
818
818
  ), Ol = ({
819
819
  title: t,
@@ -827,7 +827,7 @@ const Rt = X.create(W), $t = {
827
827
  description: n,
828
828
  iconWrapperClassName: "text-f1-icon-critical bg-f1-background-critical border-f1-critical",
829
829
  icon: /* @__PURE__ */ e(W, { icon: _a, size: "lg" }),
830
- button: /* @__PURE__ */ e(R, { variant: "outline", label: a, onClick: r })
830
+ button: /* @__PURE__ */ e(M, { variant: "outline", label: a, onClick: r })
831
831
  }
832
832
  ), Dl = () => /* @__PURE__ */ e(
833
833
  "div",
@@ -860,7 +860,7 @@ const Rt = X.create(W), $t = {
860
860
  crossSelling: a,
861
861
  onDropdownClose: r
862
862
  }) => {
863
- const [l, s] = E(t);
863
+ const [l, s] = _(t);
864
864
  $(() => {
865
865
  s(t);
866
866
  }, [t]);
@@ -869,16 +869,16 @@ const Rt = X.create(W), $t = {
869
869
  }, c = (d) => {
870
870
  s(!1), r(), d && d();
871
871
  };
872
- return l && /* @__PURE__ */ o(U, { children: [
872
+ return l && /* @__PURE__ */ o(K, { children: [
873
873
  /* @__PURE__ */ e(Oa, {}),
874
874
  /* @__PURE__ */ o("div", { className: "px-1 pb-2", children: [
875
875
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center justify-between px-3", children: [
876
876
  /* @__PURE__ */ e("p", { className: "text-balance pb-2 pt-2 text-sm font-medium text-f1-foreground-secondary", children: a?.sectionTitle }),
877
877
  n && /* @__PURE__ */ e("div", { className: "relative z-10 h-6 w-6", children: /* @__PURE__ */ e(
878
- R,
878
+ M,
879
879
  {
880
880
  variant: "ghost",
881
- icon: Ce,
881
+ icon: ke,
882
882
  size: "sm",
883
883
  hideLabel: !0,
884
884
  onClick: i,
@@ -887,7 +887,7 @@ const Rt = X.create(W), $t = {
887
887
  ) })
888
888
  ] }),
889
889
  /* @__PURE__ */ e(
890
- nl,
890
+ Jr,
891
891
  {
892
892
  columns: {
893
893
  default: 1
@@ -895,7 +895,7 @@ const Rt = X.create(W), $t = {
895
895
  showDots: !0,
896
896
  showArrows: !1,
897
897
  children: a?.products.map((d) => /* @__PURE__ */ e(
898
- al,
898
+ Qr,
899
899
  {
900
900
  ...d,
901
901
  isVisible: !0,
@@ -917,7 +917,7 @@ function Wt({
917
917
  }) {
918
918
  const l = G(null);
919
919
  return /* @__PURE__ */ e(
920
- R,
920
+ M,
921
921
  {
922
922
  href: n,
923
923
  title: a,
@@ -944,7 +944,7 @@ function Wo({
944
944
  oneSwitchTooltip: d,
945
945
  oneSwitchAutoOpen: f
946
946
  }) {
947
- const { sidebarState: u, toggleSidebar: m } = ke(), h = [
947
+ const { sidebarState: u, toggleSidebar: m } = Se(), h = [
948
948
  {
949
949
  id: t.href,
950
950
  label: t.name,
@@ -952,24 +952,24 @@ function Wo({
952
952
  module: t.id
953
953
  },
954
954
  ...a
955
- ], p = n && Object.keys(n).length !== 0, b = l && a.length > 0, x = !l && r.length > 0, w = !l && !!i?.isVisible, A = h[h.length - 1], z = "navigation" in window ? window.navigation : null, B = l && (z ? !!z.canGoBack : window.history.length > 1);
955
+ ], p = n && Object.keys(n).length !== 0, b = l && a.length > 0, v = !l && r.length > 0, y = !l && !!i?.isVisible, I = h[h.length - 1], z = "navigation" in window ? window.navigation : null, R = l && (z ? !!z.canGoBack : window.history.length > 1);
956
956
  return /* @__PURE__ */ o(
957
957
  "div",
958
958
  {
959
959
  className: g(
960
- "flex items-center justify-between px-5 py-4 xs:px-6",
960
+ "flex items-center justify-between px-page py-4",
961
961
  l ? "h-12" : "h-16"
962
962
  ),
963
963
  children: [
964
964
  /* @__PURE__ */ o("div", { className: "flex flex-grow items-center", children: [
965
- /* @__PURE__ */ e(Ee, { children: !l && u !== "locked" && /* @__PURE__ */ e(
965
+ /* @__PURE__ */ e(_e, { children: !l && u !== "locked" && /* @__PURE__ */ e(
966
966
  X.div,
967
967
  {
968
968
  initial: { opacity: 0, width: 0 },
969
969
  animate: { opacity: 1, width: "auto" },
970
970
  exit: { opacity: 0, width: 0 },
971
971
  children: /* @__PURE__ */ e("div", { className: "mr-3", children: /* @__PURE__ */ e(
972
- R,
972
+ M,
973
973
  {
974
974
  variant: "ghost",
975
975
  hideLabel: !0,
@@ -985,11 +985,11 @@ function Wo({
985
985
  {
986
986
  className: g(
987
987
  "flex flex-grow items-center gap-2",
988
- B && "justify-center"
988
+ R && "justify-center"
989
989
  ),
990
990
  children: [
991
- l && B && /* @__PURE__ */ e("div", { className: "absolute left-4", children: /* @__PURE__ */ e(
992
- R,
991
+ l && R && /* @__PURE__ */ e("div", { className: "absolute left-4", children: /* @__PURE__ */ e(
992
+ M,
993
993
  {
994
994
  variant: "ghost",
995
995
  hideLabel: !0,
@@ -998,7 +998,7 @@ function Wo({
998
998
  onClick: () => window.history.back()
999
999
  }
1000
1000
  ) }),
1001
- B || b ? /* @__PURE__ */ e("div", { className: "text-lg font-semibold text-f1-foreground", children: "loading" in A ? /* @__PURE__ */ e(O, { className: "h-4 w-24" }) : A.label }) : /* @__PURE__ */ e(
1001
+ R || b ? /* @__PURE__ */ e("div", { className: "text-lg font-semibold text-f1-foreground", children: "loading" in I ? /* @__PURE__ */ e(O, { className: "h-4 w-24" }) : I.label }) : /* @__PURE__ */ e(
1002
1002
  wl,
1003
1003
  {
1004
1004
  breadcrumbs: h,
@@ -1026,7 +1026,7 @@ function Wo({
1026
1026
  additionalAccessibleText: n.tooltip
1027
1027
  }
1028
1028
  ) }) }) : /* @__PURE__ */ e($e, { text: n.text, variant: n.variant }) }),
1029
- !l && p && (s || x || w) && /* @__PURE__ */ e("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1029
+ !l && p && (s || v || y) && /* @__PURE__ */ e("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1030
1030
  s && /* @__PURE__ */ o("div", { className: "flex items-center gap-3", children: [
1031
1031
  s.counter && /* @__PURE__ */ o("span", { className: "text-sm text-f1-foreground-secondary", children: [
1032
1032
  s.counter.current,
@@ -1054,16 +1054,16 @@ function Wo({
1054
1054
  )
1055
1055
  ] })
1056
1056
  ] }),
1057
- s && x && /* @__PURE__ */ e("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1058
- (w || x) && /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
1059
- w && /* @__PURE__ */ e("div", { className: "items-right flex gap-2", children: /* @__PURE__ */ e(
1057
+ s && v && /* @__PURE__ */ e("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1058
+ (y || v) && /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
1059
+ y && /* @__PURE__ */ e("div", { className: "items-right flex gap-2", children: /* @__PURE__ */ e(
1060
1060
  Fl,
1061
1061
  {
1062
1062
  ...i,
1063
1063
  currentModule: t.name
1064
1064
  }
1065
1065
  ) }),
1066
- x && /* @__PURE__ */ e("div", { className: "items-right flex gap-2", children: r.map((D, _) => /* @__PURE__ */ e(zl, { action: D }, _)) })
1066
+ v && /* @__PURE__ */ e("div", { className: "items-right flex gap-2", children: r.map((D, E) => /* @__PURE__ */ e(zl, { action: D }, E)) })
1067
1067
  ] }),
1068
1068
  /* @__PURE__ */ o("div", { className: "flex items-center gap-3", children: [
1069
1069
  /* @__PURE__ */ e(
@@ -1081,44 +1081,44 @@ function Wo({
1081
1081
  );
1082
1082
  }
1083
1083
  function zl({ action: t }) {
1084
- const n = G(null), [a, r] = E(!1);
1085
- return "actions" in t ? /* @__PURE__ */ e(Ne, { items: t.actions, open: a, onOpenChange: r, children: /* @__PURE__ */ e(
1086
- _e,
1084
+ const n = G(null), [a, r] = _(!1), l = t.variant ?? "outline";
1085
+ return "actions" in t ? /* @__PURE__ */ e(Ce, { items: t.actions, open: a, onOpenChange: r, children: /* @__PURE__ */ e(
1086
+ ve,
1087
1087
  {
1088
1088
  size: "md",
1089
- variant: "outline",
1089
+ variant: l,
1090
1090
  label: t.label,
1091
1091
  icon: t.icon,
1092
1092
  hideLabel: !0,
1093
1093
  pressed: a
1094
1094
  }
1095
1095
  ) }) : "onClick" in t ? /* @__PURE__ */ e(
1096
- R,
1096
+ ve,
1097
1097
  {
1098
1098
  size: "md",
1099
- variant: "outline",
1099
+ variant: l,
1100
1100
  label: t.label,
1101
1101
  icon: t.icon,
1102
1102
  hideLabel: !0,
1103
1103
  onClick: t.onClick
1104
1104
  }
1105
1105
  ) : /* @__PURE__ */ e(
1106
- ve,
1106
+ we,
1107
1107
  {
1108
1108
  href: t.href,
1109
1109
  title: t.label,
1110
1110
  "aria-label": t.label,
1111
1111
  ref: n,
1112
1112
  children: /* @__PURE__ */ e(
1113
- R,
1113
+ ve,
1114
1114
  {
1115
1115
  size: "md",
1116
- variant: "outline",
1116
+ variant: l,
1117
1117
  label: t.label,
1118
1118
  icon: t.icon,
1119
1119
  hideLabel: !0,
1120
- onClick: (l) => {
1121
- l.preventDefault(), n.current?.click();
1120
+ onClick: (s) => {
1121
+ s.preventDefault(), n.current?.click();
1122
1122
  }
1123
1123
  }
1124
1124
  )
@@ -1166,7 +1166,7 @@ const Pl = () => {
1166
1166
  }
1167
1167
  ) }),
1168
1168
  /* @__PURE__ */ e("div", { className: "flex flex-row-reverse p-3 pt-0", children: /* @__PURE__ */ e(
1169
- _e,
1169
+ ve,
1170
1170
  {
1171
1171
  type: "button",
1172
1172
  disabled: !0,
@@ -1204,7 +1204,7 @@ const Pl = () => {
1204
1204
  },
1205
1205
  isOpen: n,
1206
1206
  autoClearMinutes: l
1207
- }), /* @__PURE__ */ e(Ee, { children: n && /* @__PURE__ */ e(
1207
+ }), /* @__PURE__ */ e(_e, { children: n && /* @__PURE__ */ e(
1208
1208
  X.div,
1209
1209
  {
1210
1210
  "aria-hidden": !n,
@@ -1273,7 +1273,7 @@ const Pl = () => {
1273
1273
  );
1274
1274
  case "internal":
1275
1275
  return /* @__PURE__ */ e(
1276
- _e,
1276
+ ve,
1277
1277
  {
1278
1278
  label: t.label || "",
1279
1279
  onClick: a,
@@ -1320,12 +1320,12 @@ const Pl = () => {
1320
1320
  };
1321
1321
  return t ? /* @__PURE__ */ o(Rl, { clickOutsideToClose: !0, hitEscapeToClose: !0, shortcut: "", children: [
1322
1322
  /* @__PURE__ */ e("div", { className: "flex items-center justify-end p-3 pb-0", children: /* @__PURE__ */ e(
1323
- _e,
1323
+ ve,
1324
1324
  {
1325
1325
  variant: "ghost",
1326
1326
  hideLabel: !0,
1327
1327
  label: "",
1328
- icon: Ce,
1328
+ icon: ke,
1329
1329
  onClick: d
1330
1330
  }
1331
1331
  ) }),
@@ -1476,10 +1476,10 @@ const Mo = H(
1476
1476
  }
1477
1477
  ),
1478
1478
  a && /* @__PURE__ */ e(
1479
- R,
1479
+ M,
1480
1480
  {
1481
1481
  variant: "ghost",
1482
- icon: Ce,
1482
+ icon: ke,
1483
1483
  size: "sm",
1484
1484
  hideLabel: !0,
1485
1485
  onClick: a,
@@ -1499,7 +1499,7 @@ const Mo = H(
1499
1499
  }
1500
1500
  ),
1501
1501
  c && /* @__PURE__ */ e("div", { className: "flex flex-row items-center justify-between gap-3 rounded-b-[13.25px] bg-f1-background px-4 py-3", children: l.map((d, f) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1502
- R,
1502
+ M,
1503
1503
  {
1504
1504
  label: d.label,
1505
1505
  onClick: d.onClick,
@@ -1720,7 +1720,7 @@ const Vo = ae(
1720
1720
  height: `${d.size}px`,
1721
1721
  transform: `translateY(${d.start}px)`
1722
1722
  },
1723
- children: d ? l(d) : /* @__PURE__ */ e(U, {})
1723
+ children: d ? l(d) : /* @__PURE__ */ e(K, {})
1724
1724
  },
1725
1725
  d.key
1726
1726
  ))
@@ -1786,13 +1786,13 @@ const Zl = ({
1786
1786
  disabled: f = !1,
1787
1787
  hiddenAvatar: u = !1
1788
1788
  }) => {
1789
- const m = t.name.split(" "), h = m[0] || "", p = m.slice(1).join(" "), b = (w) => {
1790
- w.preventDefault(), w.stopPropagation(), !f && (n ? r(t) : a(t));
1791
- }, x = (w) => {
1792
- if (w.key === "Enter" || w.key === " ") {
1793
- if (w.preventDefault(), f) return;
1789
+ const m = t.name.split(" "), h = m[0] || "", p = m.slice(1).join(" "), b = (y) => {
1790
+ y.preventDefault(), y.stopPropagation(), !f && (n ? r(t) : a(t));
1791
+ }, v = (y) => {
1792
+ if (y.key === "Enter" || y.key === " ") {
1793
+ if (y.preventDefault(), f) return;
1794
1794
  n ? n && r(t) : a(t);
1795
- } else w.key === "ArrowDown" ? Ye(w.currentTarget, i) : w.key === "ArrowUp" && Ze(w.currentTarget, c);
1795
+ } else y.key === "ArrowDown" ? Ye(y.currentTarget, i) : y.key === "ArrowUp" && Ze(y.currentTarget, c);
1796
1796
  };
1797
1797
  return /* @__PURE__ */ e("div", { className: "w-full pl-1 pr-1", children: /* @__PURE__ */ o(
1798
1798
  "label",
@@ -1839,7 +1839,7 @@ const Zl = ({
1839
1839
  checked: n,
1840
1840
  disabled: f,
1841
1841
  onClick: b,
1842
- onKeyDown: x,
1842
+ onKeyDown: v,
1843
1843
  className: g(
1844
1844
  "pointer-events-none ml-auto",
1845
1845
  d ? "opacity-0" : ""
@@ -1873,10 +1873,10 @@ const Zl = ({
1873
1873
  hideLine: h = !1,
1874
1874
  showGroupIcon: p = !1,
1875
1875
  singleSelector: b = !1,
1876
- disabled: x = !1,
1877
- hiddenAvatar: w = !1
1876
+ disabled: v = !1,
1877
+ hiddenAvatar: y = !1
1878
1878
  }) => {
1879
- const [A, z] = E(!1);
1879
+ const [I, z] = _(!1);
1880
1880
  if (!t)
1881
1881
  return /* @__PURE__ */ e(
1882
1882
  Zl,
@@ -1890,33 +1890,33 @@ const Zl = ({
1890
1890
  singleSelector: b,
1891
1891
  goToFirst: f,
1892
1892
  goToLast: u,
1893
- disabled: x,
1894
- hiddenAvatar: w
1893
+ disabled: v,
1894
+ hiddenAvatar: y
1895
1895
  }
1896
1896
  );
1897
- const B = (L) => {
1897
+ const R = (L) => {
1898
1898
  if (L.key === " ")
1899
1899
  L.preventDefault(), d(!n);
1900
1900
  else if (L.key === "Enter" && b)
1901
1901
  d(!n);
1902
1902
  else if (L.key === "Enter") {
1903
- if (x) return;
1903
+ if (v) return;
1904
1904
  !l || s ? i(r) : l && c(r);
1905
1905
  } else L.key === "ArrowDown" ? Ye(L.currentTarget, f) : L.key === "ArrowUp" && Ze(L.currentTarget, u);
1906
1906
  }, D = () => {
1907
- if (A)
1907
+ if (I)
1908
1908
  d(!n), z(!1);
1909
1909
  else {
1910
- if (x || b) return;
1910
+ if (v || b) return;
1911
1911
  l ? c(r) : i(r);
1912
1912
  }
1913
1913
  };
1914
1914
  if (!r.subItems?.length) return null;
1915
- const _ = l || s;
1916
- return /* @__PURE__ */ o(U, { children: [
1915
+ const E = l || s;
1916
+ return /* @__PURE__ */ o(K, { children: [
1917
1917
  /* @__PURE__ */ o("div", { className: "flex w-full flex-row flex-wrap items-center gap-0 rounded-md border pl-2.5 pr-1", children: [
1918
1918
  /* @__PURE__ */ e(
1919
- R,
1919
+ M,
1920
1920
  {
1921
1921
  hideLabel: !0,
1922
1922
  icon: n ? Ha : Ua,
@@ -1958,10 +1958,10 @@ const Zl = ({
1958
1958
  /* @__PURE__ */ e(
1959
1959
  gn,
1960
1960
  {
1961
- checked: _,
1962
- disabled: x,
1961
+ checked: E,
1962
+ disabled: v,
1963
1963
  onClick: D,
1964
- onKeyDown: B,
1964
+ onKeyDown: R,
1965
1965
  indeterminate: s,
1966
1966
  onPointerDown: (L) => {
1967
1967
  L.stopPropagation(), z(!1);
@@ -1996,7 +1996,7 @@ const Vt = ({
1996
1996
  ),
1997
1997
  children: [
1998
1998
  /* @__PURE__ */ e(
1999
- R,
1999
+ M,
2000
2000
  {
2001
2001
  hideLabel: !0,
2002
2002
  label: t,
@@ -2009,10 +2009,10 @@ const Vt = ({
2009
2009
  /* @__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: g("line-clamp-1"), children: t }) }) })
2010
2010
  ]
2011
2011
  }
2012
- ) }), Ae = ({ primaryAction: t, secondaryActions: n }) => {
2012
+ ) }), Le = ({ primaryAction: t, secondaryActions: n }) => {
2013
2013
  if (!n || n.length === 0)
2014
2014
  return /* @__PURE__ */ e(
2015
- R,
2015
+ M,
2016
2016
  {
2017
2017
  disabled: t.disabled,
2018
2018
  variant: t.variant,
@@ -2056,36 +2056,36 @@ const Vt = ({
2056
2056
  }) => {
2057
2057
  const u = !c && (n || a), m = t && t.length > 0;
2058
2058
  if (!(!i && (!c && u || m))) return null;
2059
- let p, b, x = d ? {
2059
+ let p, b, v = d ? {
2060
2060
  label: n || "",
2061
2061
  onClick: d,
2062
2062
  variant: "outline",
2063
2063
  disabled: r || l
2064
- } : void 0, w = f ? {
2064
+ } : void 0, y = f ? {
2065
2065
  label: a || "",
2066
2066
  onClick: f,
2067
2067
  variant: "ghost",
2068
2068
  disabled: r || !s
2069
2069
  } : void 0;
2070
- return x || (x = w, w = void 0), m && u ? (p = /* @__PURE__ */ e(
2071
- Ae,
2070
+ return v || (v = y, y = void 0), m && u ? (p = /* @__PURE__ */ e(
2071
+ Le,
2072
2072
  {
2073
- primaryAction: x,
2074
- secondaryActions: w ? [w] : []
2073
+ primaryAction: v,
2074
+ secondaryActions: y ? [y] : []
2075
2075
  }
2076
2076
  ), b = /* @__PURE__ */ e(
2077
- Ae,
2077
+ Le,
2078
2078
  {
2079
2079
  primaryAction: t[0],
2080
2080
  secondaryActions: t.slice(1)
2081
2081
  }
2082
2082
  )) : m ? p = /* @__PURE__ */ e(
2083
- Ae,
2083
+ Le,
2084
2084
  {
2085
2085
  primaryAction: t[0],
2086
2086
  secondaryActions: t.slice(1)
2087
2087
  }
2088
- ) : u && (p = /* @__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: [
2088
+ ) : u && (p = /* @__PURE__ */ e(Le, { primaryAction: v, secondaryActions: [] }), y && (b = /* @__PURE__ */ e(Le, { primaryAction: y, 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: [
2089
2089
  p,
2090
2090
  b
2091
2091
  ] }) });
@@ -2137,75 +2137,75 @@ const Vt = ({
2137
2137
  selectedEntities: h = [],
2138
2138
  onGroupChange: p,
2139
2139
  onToggleExpand: b,
2140
- searchPlaceholder: x,
2141
- selectAllLabel: w,
2142
- clearLabel: A,
2140
+ searchPlaceholder: v,
2141
+ selectAllLabel: y,
2142
+ clearLabel: I,
2143
2143
  notFoundTitle: z,
2144
- notFoundSubtitle: B,
2144
+ notFoundSubtitle: R,
2145
2145
  className: D,
2146
- actions: _,
2146
+ actions: E,
2147
2147
  onCreate: L,
2148
- onCreateLabel: K,
2148
+ onCreateLabel: U,
2149
2149
  singleSelector: T = !1,
2150
- loading: y = !1,
2151
- disabled: S = !1,
2152
- hiddenAvatar: N = !1
2150
+ loading: w = !1,
2151
+ disabled: k = !1,
2152
+ hiddenAvatar: C = !1
2153
2153
  }) => {
2154
- const I = ie.useRef(null), M = q(
2154
+ const F = ie.useRef(null), B = q(
2155
2155
  () => t ? n.reduce(
2156
- (F, Y) => F + (Y.subItems?.length ?? 0),
2156
+ (A, Y) => A + (Y.subItems?.length ?? 0),
2157
2157
  0
2158
2158
  ) : n.length,
2159
2159
  [n, t]
2160
- ), v = Q(() => {
2160
+ ), x = Q(() => {
2161
2161
  setTimeout(() => {
2162
- I.current?.scrollTo({ top: 0 });
2162
+ F.current?.scrollTo({ top: 0 });
2163
2163
  }, Gt), setTimeout(() => {
2164
2164
  Array.from(
2165
2165
  document.querySelectorAll(Ut)
2166
2166
  )[0]?.focus();
2167
2167
  }, Ht);
2168
- }, []), C = Q(() => {
2168
+ }, []), N = Q(() => {
2169
2169
  setTimeout(() => {
2170
- I.current?.scrollTo({ top: I.current?.scrollHeight });
2170
+ F.current?.scrollTo({ top: F.current?.scrollHeight });
2171
2171
  }, Gt), setTimeout(() => {
2172
- const F = Array.from(
2172
+ const A = Array.from(
2173
2173
  document.querySelectorAll(Ut)
2174
2174
  );
2175
- F[F.length - 1]?.focus();
2175
+ A[A.length - 1]?.focus();
2176
2176
  }, Ht);
2177
- }, []), k = q(
2178
- () => new Map(h.map((F) => [F.id, F])),
2177
+ }, []), S = q(
2178
+ () => new Map(h.map((A) => [A.id, A])),
2179
2179
  [h]
2180
2180
  ), V = Q(
2181
- (F) => {
2182
- const Y = k.get(F.id);
2181
+ (A) => {
2182
+ const Y = S.get(A.id);
2183
2183
  if (!t)
2184
2184
  return {
2185
2185
  selected: !!Y,
2186
2186
  partialSelected: !!Y
2187
2187
  };
2188
- const J = (F.subItems ?? []).filter(
2188
+ const J = (A.subItems ?? []).filter(
2189
2189
  (te) => Y?.subItems?.some(
2190
2190
  (fe) => fe.subId === te.subId
2191
2191
  )
2192
- ), Z = (F.subItems?.length ?? 0) === J.length, de = !Z && J.length > 0;
2192
+ ), Z = (A.subItems?.length ?? 0) === J.length, de = !Z && J.length > 0;
2193
2193
  return { selected: Z, partialSelected: de };
2194
2194
  },
2195
- [t, k]
2195
+ [t, S]
2196
2196
  ), re = Q(
2197
- (F) => {
2198
- if (F.index === 0 && L)
2197
+ (A) => {
2198
+ if (A.index === 0 && L)
2199
2199
  return /* @__PURE__ */ e(
2200
2200
  Vt,
2201
2201
  {
2202
- label: K ?? "",
2202
+ label: U ?? "",
2203
2203
  onCreate: () => L?.(l),
2204
- goToFirst: v,
2205
- goToLast: C
2204
+ goToFirst: x,
2205
+ goToLast: N
2206
2206
  }
2207
2207
  );
2208
- const Y = L ? F.index - 1 : F.index, J = n[Y], { selected: Z, partialSelected: de } = V(J);
2208
+ const Y = L ? A.index - 1 : A.index, J = n[Y], { selected: Z, partialSelected: de } = V(J);
2209
2209
  return /* @__PURE__ */ e(
2210
2210
  Pe,
2211
2211
  {
@@ -2220,25 +2220,25 @@ const Vt = ({
2220
2220
  partialSelected: de,
2221
2221
  showGroupIcon: ts(a, r),
2222
2222
  singleSelector: T,
2223
- goToFirst: v,
2224
- goToLast: C,
2225
- disabled: S,
2226
- hiddenAvatar: N
2223
+ goToFirst: x,
2224
+ goToLast: N,
2225
+ disabled: k,
2226
+ hiddenAvatar: C
2227
2227
  },
2228
2228
  J.id
2229
2229
  );
2230
2230
  },
2231
2231
  [
2232
2232
  L,
2233
- K,
2234
- S,
2233
+ U,
2234
+ k,
2235
2235
  n,
2236
2236
  V,
2237
- v,
2238
- C,
2237
+ x,
2238
+ N,
2239
2239
  t,
2240
2240
  a,
2241
- N,
2241
+ C,
2242
2242
  i,
2243
2243
  s,
2244
2244
  b,
@@ -2246,54 +2246,54 @@ const Vt = ({
2246
2246
  r,
2247
2247
  T
2248
2248
  ]
2249
- ), le = q(() => t ? n.flatMap((F) => {
2249
+ ), le = q(() => t ? n.flatMap((A) => {
2250
2250
  const Y = ze(
2251
2251
  h ?? [],
2252
- F.id
2252
+ A.id
2253
2253
  );
2254
2254
  return [
2255
2255
  {
2256
2256
  parent: null,
2257
2257
  subItem: {
2258
- subId: F.id,
2259
- subName: F.name,
2260
- subAvatar: F.avatar,
2261
- expanded: F.expanded ?? Y?.expanded ?? !1,
2262
- subItems: F.subItems,
2263
- subSearchKeys: F.searchKeys
2258
+ subId: A.id,
2259
+ subName: A.name,
2260
+ subAvatar: A.avatar,
2261
+ expanded: A.expanded ?? Y?.expanded ?? !1,
2262
+ subItems: A.subItems,
2263
+ subSearchKeys: A.searchKeys
2264
2264
  }
2265
2265
  },
2266
- ...(F.subItems ?? []).map((J) => ({
2266
+ ...(A.subItems ?? []).map((J) => ({
2267
2267
  parent: {
2268
- ...F,
2269
- expanded: F.expanded ?? Y?.expanded ?? !1
2268
+ ...A,
2269
+ expanded: A.expanded ?? Y?.expanded ?? !1
2270
2270
  },
2271
2271
  subItem: J
2272
2272
  }))
2273
2273
  ];
2274
2274
  }).filter(
2275
- (F) => (!F.parent || F.parent.expanded) && (!!F.parent || !!F.subItem.subItems && F.subItem.subItems.length > 0)
2276
- ) : n.map((F) => ({
2275
+ (A) => (!A.parent || A.parent.expanded) && (!!A.parent || !!A.subItem.subItems && A.subItem.subItems.length > 0)
2276
+ ) : n.map((A) => ({
2277
2277
  parent: null,
2278
2278
  subItem: {
2279
- subId: F.id,
2280
- subName: F.name,
2281
- subAvatar: F.avatar,
2282
- subSearchKeys: F.searchKeys
2279
+ subId: A.id,
2280
+ subName: A.name,
2281
+ subAvatar: A.avatar,
2282
+ subSearchKeys: A.searchKeys
2283
2283
  }
2284
2284
  })), [t, n, h]), P = Q(
2285
- (F) => {
2286
- if (F.index === 0 && L)
2285
+ (A) => {
2286
+ if (A.index === 0 && L)
2287
2287
  return /* @__PURE__ */ e(
2288
2288
  Vt,
2289
2289
  {
2290
- label: K ?? "",
2290
+ label: U ?? "",
2291
2291
  onCreate: () => L?.(l),
2292
- goToFirst: v,
2293
- goToLast: C
2292
+ goToFirst: x,
2293
+ goToLast: N
2294
2294
  }
2295
2295
  );
2296
- const Y = L ? F.index - 1 : F.index, J = le[Y].parent, Z = le[Y].subItem;
2296
+ const Y = L ? A.index - 1 : A.index, J = le[Y].parent, Z = le[Y].subItem;
2297
2297
  if (!J) {
2298
2298
  const te = {
2299
2299
  id: Z.subId,
@@ -2306,8 +2306,8 @@ const Vt = ({
2306
2306
  h,
2307
2307
  te.id
2308
2308
  ), he = (te?.subItems ?? []).filter(
2309
- (Fe) => fe?.subItems?.some(
2310
- (da) => da.subId === Fe.subId
2309
+ (Ae) => fe?.subItems?.some(
2310
+ (da) => da.subId === Ae.subId
2311
2311
  )
2312
2312
  ), Oe = (te.subItems?.length ?? 0) === he.length, ca = !Oe && he.length > 0;
2313
2313
  return /* @__PURE__ */ e(
@@ -2315,20 +2315,20 @@ const Vt = ({
2315
2315
  {
2316
2316
  groupView: !0,
2317
2317
  expanded: te.expanded ?? !1,
2318
- onExpand: (Fe) => b(te, Fe),
2318
+ onExpand: (Ae) => b(te, Ae),
2319
2319
  search: l,
2320
2320
  entity: te,
2321
2321
  onSelect: s,
2322
2322
  onRemove: i,
2323
2323
  selected: Oe,
2324
2324
  partialSelected: ca,
2325
- showGroupIcon: a.find((Fe) => Fe.value === r)?.groupType === "team",
2325
+ showGroupIcon: a.find((Ae) => Ae.value === r)?.groupType === "team",
2326
2326
  singleSelector: T,
2327
- goToFirst: v,
2328
- goToLast: C,
2327
+ goToFirst: x,
2328
+ goToLast: N,
2329
2329
  hideLine: Y === le.length - 1,
2330
- disabled: S,
2331
- hiddenAvatar: N
2330
+ disabled: k,
2331
+ hiddenAvatar: C
2332
2332
  }
2333
2333
  );
2334
2334
  }
@@ -2364,10 +2364,10 @@ const Vt = ({
2364
2364
  selected: !!de,
2365
2365
  partialSelected: !1,
2366
2366
  singleSelector: T,
2367
- goToFirst: v,
2368
- goToLast: C,
2367
+ goToFirst: x,
2368
+ goToLast: N,
2369
2369
  isChild: !0,
2370
- hiddenAvatar: N
2370
+ hiddenAvatar: C
2371
2371
  }
2372
2372
  );
2373
2373
  },
@@ -2376,51 +2376,51 @@ const Vt = ({
2376
2376
  h,
2377
2377
  l,
2378
2378
  T,
2379
- v,
2380
- C,
2379
+ x,
2380
+ N,
2381
2381
  s,
2382
2382
  i,
2383
2383
  a,
2384
- S,
2384
+ k,
2385
2385
  b,
2386
2386
  r,
2387
2387
  d,
2388
2388
  c,
2389
- N,
2389
+ C,
2390
2390
  L,
2391
- K
2391
+ U
2392
2392
  ]
2393
- ), [Se, Qe] = q(() => {
2393
+ ), [Ie, Qe] = q(() => {
2394
2394
  if (!n.length)
2395
2395
  return [!1, !1];
2396
- let F = 0, Y = 0;
2396
+ let A = 0, Y = 0;
2397
2397
  if (!t)
2398
- F = n.length, Y = n.reduce(
2399
- (de, { id: te }) => de + (k.has(te) ? 1 : 0),
2398
+ A = n.length, Y = n.reduce(
2399
+ (de, { id: te }) => de + (S.has(te) ? 1 : 0),
2400
2400
  0
2401
2401
  );
2402
2402
  else {
2403
2403
  const de = new Set(
2404
- [...k.values()].flatMap(
2404
+ [...S.values()].flatMap(
2405
2405
  (te) => te.subItems?.map((fe) => fe.subId) ?? []
2406
2406
  )
2407
2407
  );
2408
2408
  n.forEach((te) => {
2409
2409
  const fe = te.subItems ?? [];
2410
- F += fe.length, Y += fe.filter(
2410
+ A += fe.length, Y += fe.filter(
2411
2411
  (he) => de.has(he.subId)
2412
2412
  ).length;
2413
2413
  });
2414
2414
  }
2415
- const J = F > 0 && Y === F, Z = Y > 0;
2415
+ const J = A > 0 && Y === A, Z = Y > 0;
2416
2416
  return [J, Z];
2417
- }, [n, k, t]), Ie = le.length, sa = !T && (w || A), ia = _ && _.length > 0, oa = !y && (!T && sa || ia);
2417
+ }, [n, S, t]), Fe = le.length, sa = !T && (y || I), ia = E && E.length > 0, oa = !w && (!T && sa || ia);
2418
2418
  return /* @__PURE__ */ o(
2419
2419
  "div",
2420
2420
  {
2421
2421
  className: g(
2422
2422
  "flex w-full flex-col rounded-l-xl border-0",
2423
- T || y ? "rounded-r-xl" : "",
2423
+ T || w ? "rounded-r-xl" : "",
2424
2424
  D
2425
2425
  ),
2426
2426
  children: [
@@ -2429,7 +2429,7 @@ const Vt = ({
2429
2429
  {
2430
2430
  className: g(
2431
2431
  "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",
2432
- T || y ? "rounded-t-xl border-r-0" : ""
2432
+ T || w ? "rounded-t-xl border-r-0" : ""
2433
2433
  ),
2434
2434
  children: [
2435
2435
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
@@ -2437,9 +2437,9 @@ const Vt = ({
2437
2437
  {
2438
2438
  search: l,
2439
2439
  onSearch: m,
2440
- searchPlaceholder: x,
2441
- goToFirst: v,
2442
- goToLast: C
2440
+ searchPlaceholder: v,
2441
+ goToFirst: x,
2442
+ goToLast: N
2443
2443
  }
2444
2444
  ) }),
2445
2445
  a && a.length > 1 && /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
@@ -2447,7 +2447,7 @@ const Vt = ({
2447
2447
  {
2448
2448
  label: "Group",
2449
2449
  hideLabel: !0,
2450
- disabled: y,
2450
+ disabled: w,
2451
2451
  onChange: p,
2452
2452
  options: a,
2453
2453
  value: r,
@@ -2468,8 +2468,8 @@ const Vt = ({
2468
2468
  oa ? "" : "rounded-b-xl border-r-0"
2469
2469
  ),
2470
2470
  children: [
2471
- y && /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-row items-center justify-center", children: /* @__PURE__ */ e(un, {}) }),
2472
- !y && !M && /* @__PURE__ */ o(
2471
+ w && /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-row items-center justify-center", children: /* @__PURE__ */ e(un, {}) }),
2472
+ !w && !B && /* @__PURE__ */ o(
2473
2473
  "div",
2474
2474
  {
2475
2475
  className: "absolute flex w-full flex-col items-center justify-center gap-0.5 p-5",
@@ -2478,22 +2478,22 @@ const Vt = ({
2478
2478
  },
2479
2479
  children: [
2480
2480
  /* @__PURE__ */ e("span", { className: "text-lg font-medium", children: z }),
2481
- /* @__PURE__ */ e("span", { className: "text-center text-f1-foreground-secondary", children: B })
2481
+ /* @__PURE__ */ e("span", { className: "text-center text-f1-foreground-secondary", children: R })
2482
2482
  ]
2483
2483
  }
2484
2484
  ),
2485
- !y && (!!M || L) && /* @__PURE__ */ e("div", { className: "h-full", children: t ? /* @__PURE__ */ e(
2485
+ !w && (!!B || L) && /* @__PURE__ */ e("div", { className: "h-full", children: t ? /* @__PURE__ */ e(
2486
2486
  dt,
2487
2487
  {
2488
2488
  height: et,
2489
- itemCount: Ie + (L ? 1 : 0),
2490
- itemSize: (F) => {
2491
- if (F === 0 && L) return tt;
2492
- const Y = L ? F - 1 : F;
2489
+ itemCount: Fe + (L ? 1 : 0),
2490
+ itemSize: (A) => {
2491
+ if (A === 0 && L) return tt;
2492
+ const Y = L ? A - 1 : A;
2493
2493
  return le[Y]?.parent === null ? Ql : tt;
2494
2494
  },
2495
2495
  renderer: P,
2496
- ref: I
2496
+ ref: F
2497
2497
  }
2498
2498
  ) : /* @__PURE__ */ e(
2499
2499
  dt,
@@ -2502,7 +2502,7 @@ const Vt = ({
2502
2502
  itemCount: n.length + (L ? 1 : 0),
2503
2503
  itemSize: tt,
2504
2504
  renderer: re,
2505
- ref: I
2505
+ ref: F
2506
2506
  }
2507
2507
  ) })
2508
2508
  ]
@@ -2514,13 +2514,13 @@ const Vt = ({
2514
2514
  onSelectAll: u,
2515
2515
  onClear: f,
2516
2516
  singleSelector: T,
2517
- totalFilteredEntities: M,
2518
- allVisibleSelected: Se,
2517
+ totalFilteredEntities: B,
2518
+ allVisibleSelected: Ie,
2519
2519
  anyVisibleSelected: Qe,
2520
- selectAllLabel: w,
2521
- clearLabel: A,
2522
- disabled: S,
2523
- actions: _
2520
+ selectAllLabel: y,
2521
+ clearLabel: I,
2522
+ disabled: k,
2523
+ actions: E
2524
2524
  }
2525
2525
  )
2526
2526
  ]
@@ -2553,7 +2553,7 @@ const Vt = ({
2553
2553
  right: !a && /* @__PURE__ */ e(
2554
2554
  W,
2555
2555
  {
2556
- icon: Ce,
2556
+ icon: ke,
2557
2557
  size: "sm",
2558
2558
  className: "cursor-pointer text-f1-icon-secondary",
2559
2559
  onClick: () => n?.(t)
@@ -2619,7 +2619,7 @@ const Vt = ({
2619
2619
  avatar: u.subItem.subAvatar
2620
2620
  })
2621
2621
  }
2622
- ) : /* @__PURE__ */ e(U, {});
2622
+ ) : /* @__PURE__ */ e(K, {});
2623
2623
  }
2624
2624
  }
2625
2625
  ) })
@@ -2639,21 +2639,21 @@ const Vt = ({
2639
2639
  onCreateLabel: m,
2640
2640
  ...h
2641
2641
  }) => {
2642
- const p = (s ?? Kt) < rs, b = !c && !i && !p, x = s ?? Kt, w = b ? x - qt : x;
2642
+ const p = (s ?? Kt) < rs, b = !c && !i && !p, v = s ?? Kt, y = b ? v - qt : v;
2643
2643
  return /* @__PURE__ */ o(
2644
2644
  "div",
2645
2645
  {
2646
2646
  className: "flex overflow-hidden",
2647
2647
  style: {
2648
2648
  height: i && (!f || f.length === 0) ? "435px" : "473px",
2649
- width: x
2649
+ width: v
2650
2650
  },
2651
2651
  children: [
2652
2652
  /* @__PURE__ */ e(
2653
2653
  "div",
2654
2654
  {
2655
2655
  className: "min-h-0 flex-1",
2656
- style: { width: w + 1 + "px" },
2656
+ style: { width: y + 1 + "px" },
2657
2657
  children: /* @__PURE__ */ e(
2658
2658
  es,
2659
2659
  {
@@ -2713,21 +2713,21 @@ const Vt = ({
2713
2713
  hideLabel: h = !1,
2714
2714
  maxLength: p,
2715
2715
  loading: b = !1,
2716
- required: x = !1,
2717
- readonly: w = !1,
2718
- append: A,
2716
+ required: v = !1,
2717
+ readonly: y = !1,
2718
+ append: I,
2719
2719
  size: z = "sm",
2720
- open: B
2720
+ open: R
2721
2721
  }) => {
2722
2722
  const D = q(
2723
2723
  () => a.some(
2724
2724
  (T) => T.subItems && T.subItems.length > 0
2725
2725
  ),
2726
2726
  [a]
2727
- ), _ = q(() => D ? a.flatMap(
2728
- (T) => (T.subItems ?? []).map((y) => ({
2727
+ ), E = q(() => D ? a.flatMap(
2728
+ (T) => (T.subItems ?? []).map((w) => ({
2729
2729
  parent: T,
2730
- subItem: y
2730
+ subItem: w
2731
2731
  }))
2732
2732
  ) : a.map((T) => ({
2733
2733
  parent: null,
@@ -2737,7 +2737,7 @@ const Vt = ({
2737
2737
  subAvatar: T.avatar,
2738
2738
  subDeactivated: T.deactivated
2739
2739
  }
2740
- })), [D, a]), L = _.length === 0 ? void 0 : _.length === 1 ? _[0].subItem.subName : _.length + " " + n, K = _.length === 1 ? _[0].subItem.subName : void 0;
2740
+ })), [D, a]), L = E.length === 0 ? void 0 : E.length === 1 ? E[0].subItem.subName : E.length + " " + n, U = E.length === 1 ? E[0].subItem.subName : void 0;
2741
2741
  return /* @__PURE__ */ e(
2742
2742
  er,
2743
2743
  {
@@ -2757,17 +2757,17 @@ const Vt = ({
2757
2757
  value: L,
2758
2758
  disabled: r,
2759
2759
  loading: b,
2760
- required: x,
2761
- readonly: w,
2760
+ required: v,
2761
+ readonly: y,
2762
2762
  size: z,
2763
- avatar: l || !K ? void 0 : {
2763
+ avatar: l || !U ? void 0 : {
2764
2764
  type: "person",
2765
- firstName: K,
2765
+ firstName: U,
2766
2766
  lastName: "",
2767
- src: _[0].subItem.subAvatar,
2768
- deactivated: _[0].subItem.subDeactivated
2767
+ src: E[0].subItem.subAvatar,
2768
+ deactivated: E[0].subItem.subDeactivated
2769
2769
  },
2770
- append: A ?? /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(tr, { open: B, disabled: r, size: z }) }),
2770
+ append: I ?? /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(tr, { open: R, disabled: r, size: z }) }),
2771
2771
  children: /* @__PURE__ */ e(
2772
2772
  "span",
2773
2773
  {
@@ -2776,14 +2776,14 @@ const Vt = ({
2776
2776
  "my-auto flex items-center pr-1",
2777
2777
  t && "text-f1-foreground-secondary",
2778
2778
  L && "text-f1-foreground",
2779
- _.length === 1 && !l || c && !L ? "pl-8" : "pl-2"
2779
+ E.length === 1 && !l || c && !L ? "pl-8" : "pl-2"
2780
2780
  ),
2781
2781
  children: /* @__PURE__ */ e(
2782
2782
  me,
2783
2783
  {
2784
2784
  tag: "span",
2785
- className: _.length === 1 && _[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
2786
- children: _.length === 0 ? t ?? "" : _.length === 1 ? _[0].subItem.subName : `${_.length} ${n}`
2785
+ className: E.length === 1 && E[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
2786
+ children: E.length === 0 ? t ?? "" : E.length === 1 ? E[0].subItem.subName : `${E.length} ${n}`
2787
2787
  }
2788
2788
  )
2789
2789
  }
@@ -2791,197 +2791,197 @@ const Vt = ({
2791
2791
  }
2792
2792
  );
2793
2793
  }, Go = (t) => {
2794
- const [n, a] = E(
2794
+ const [n, a] = _(
2795
2795
  (t.alwaysOpen || t.defaultOpen) ?? !1
2796
- ), r = (y) => {
2797
- a(y), t.onOpenChange?.(y);
2796
+ ), r = (w) => {
2797
+ a(w), t.onOpenChange?.(w);
2798
2798
  };
2799
2799
  $(() => {
2800
2800
  t.defaultOpen && n && t.onOpenChange?.(!0);
2801
2801
  }, [t.defaultOpen]);
2802
- const [l, s] = E(t.entities), [i, c] = E(""), [d, f] = nr("", 300), u = q(
2802
+ const [l, s] = _(t.entities), [i, c] = _(""), [d, f] = nr("", 300), u = q(
2803
2803
  () => t.entities.some(
2804
- (y) => y.subItems && y.subItems.length > 0
2804
+ (w) => w.subItems && w.subItems.length > 0
2805
2805
  ),
2806
2806
  [t.entities]
2807
2807
  ), m = Ke(ar), p = m.portalContainer && (m.position === "center" || m.position === "fullscreen") ? m.portalContainer : void 0;
2808
- function b(y) {
2808
+ function b(w) {
2809
2809
  if (t.singleSelector) {
2810
- t.onSelect(y), a(!1);
2810
+ t.onSelect(w), a(!1);
2811
2811
  return;
2812
2812
  }
2813
- const S = t.selectedEntities ?? [], N = l.find((k) => k.id === y.id);
2814
- if (!N)
2813
+ const k = t.selectedEntities ?? [], C = l.find((S) => S.id === w.id);
2814
+ if (!C)
2815
2815
  return;
2816
- const I = new Set(
2817
- (N.subItems ?? []).map((k) => k.subId)
2818
- ), M = /* @__PURE__ */ new Set([N.id]);
2819
- l.forEach((k) => {
2820
- k.id !== N.id && (k.subItems ?? []).some(
2821
- (re) => I.has(re.subId)
2822
- ) && M.add(k.id);
2816
+ const F = new Set(
2817
+ (C.subItems ?? []).map((S) => S.subId)
2818
+ ), B = /* @__PURE__ */ new Set([C.id]);
2819
+ l.forEach((S) => {
2820
+ S.id !== C.id && (S.subItems ?? []).some(
2821
+ (re) => F.has(re.subId)
2822
+ ) && B.add(S.id);
2823
2823
  });
2824
- const v = [...S];
2825
- function C(k) {
2826
- const V = v.findIndex((re) => re.id === k.id);
2827
- V >= 0 ? v[V] = k : v.push(k);
2824
+ const x = [...k];
2825
+ function N(S) {
2826
+ const V = x.findIndex((re) => re.id === S.id);
2827
+ V >= 0 ? x[V] = S : x.push(S);
2828
2828
  }
2829
- M.forEach((k) => {
2830
- const V = l.find((P) => P.id === k);
2829
+ B.forEach((S) => {
2830
+ const V = l.find((P) => P.id === S);
2831
2831
  if (!V) return;
2832
2832
  const re = V.subItems?.filter(
2833
- (P) => I.has(P.subId)
2834
- ) ?? [], le = v.findIndex((P) => P.id === k);
2833
+ (P) => F.has(P.subId)
2834
+ ) ?? [], le = x.findIndex((P) => P.id === S);
2835
2835
  if (le >= 0) {
2836
- const P = v[le].subItems ?? [], Se = new Set(P.map((Ie) => Ie.subId)), Qe = [
2836
+ const P = x[le].subItems ?? [], Ie = new Set(P.map((Fe) => Fe.subId)), Qe = [
2837
2837
  ...P,
2838
- ...re.filter((Ie) => !Se.has(Ie.subId))
2838
+ ...re.filter((Fe) => !Ie.has(Fe.subId))
2839
2839
  ];
2840
- C({
2840
+ N({
2841
2841
  ...V,
2842
2842
  subItems: Qe
2843
2843
  });
2844
2844
  } else
2845
- C({
2845
+ N({
2846
2846
  ...V,
2847
2847
  subItems: re
2848
2848
  });
2849
- }), t.onSelect(v);
2849
+ }), t.onSelect(x);
2850
2850
  }
2851
- function x(y, S) {
2851
+ function v(w, k) {
2852
2852
  if (t.singleSelector)
2853
- t.onSelect({ ...y, subItems: [{ ...S }] }), a(!1);
2853
+ t.onSelect({ ...w, subItems: [{ ...k }] }), a(!1);
2854
2854
  else {
2855
- const N = t.selectedEntities ?? [], I = new Set(N.map((C) => C.id)), M = new Map(
2856
- N.map((C) => [C.id, C.subItems ?? []])
2855
+ const C = t.selectedEntities ?? [], F = new Set(C.map((N) => N.id)), B = new Map(
2856
+ C.map((N) => [N.id, N.subItems ?? []])
2857
2857
  );
2858
- I.add(y.id), t.entities.forEach((C) => {
2859
- C.subItems?.some(
2860
- (V) => V.subId === S.subId
2861
- ) && I.add(C.id);
2858
+ F.add(w.id), t.entities.forEach((N) => {
2859
+ N.subItems?.some(
2860
+ (V) => V.subId === k.subId
2861
+ ) && F.add(N.id);
2862
2862
  });
2863
- const v = [];
2864
- t.entities.forEach((C) => {
2865
- if (I.has(C.id)) {
2866
- let V = [...M.get(C.id) ?? []];
2867
- C.subItems?.some(
2868
- (P) => P.subId === S.subId
2863
+ const x = [];
2864
+ t.entities.forEach((N) => {
2865
+ if (F.has(N.id)) {
2866
+ let V = [...B.get(N.id) ?? []];
2867
+ N.subItems?.some(
2868
+ (P) => P.subId === k.subId
2869
2869
  ) && (V.some(
2870
- (Se) => Se.subId === S.subId
2871
- ) || V.push(S));
2870
+ (Ie) => Ie.subId === k.subId
2871
+ ) || V.push(k));
2872
2872
  const le = new Set(
2873
- (C.subItems ?? []).map((P) => P.subId)
2873
+ (N.subItems ?? []).map((P) => P.subId)
2874
2874
  );
2875
2875
  V = V.filter(
2876
2876
  (P) => le.has(P.subId)
2877
- ), v.push({
2878
- ...C,
2877
+ ), x.push({
2878
+ ...N,
2879
2879
  subItems: V
2880
2880
  });
2881
2881
  }
2882
- }), t.onSelect(v);
2882
+ }), t.onSelect(x);
2883
2883
  }
2884
2884
  }
2885
- function w(y) {
2885
+ function y(w) {
2886
2886
  if (t.singleSelector) {
2887
2887
  t.onSelect(null);
2888
2888
  return;
2889
2889
  }
2890
- let S = [];
2891
- const N = t.selectedEntities ?? [];
2890
+ let k = [];
2891
+ const C = t.selectedEntities ?? [];
2892
2892
  if (u) {
2893
- const I = l.find(
2894
- (v) => v.id === y.id
2893
+ const F = l.find(
2894
+ (x) => x.id === w.id
2895
2895
  );
2896
- if (!I)
2896
+ if (!F)
2897
2897
  return;
2898
- const M = new Set(
2899
- (I.subItems ?? []).map((v) => v.subId)
2898
+ const B = new Set(
2899
+ (F.subItems ?? []).map((x) => x.subId)
2900
2900
  );
2901
- for (const v of N) {
2902
- const C = (v.subItems ?? []).filter(
2903
- (k) => !M.has(k.subId)
2901
+ for (const x of C) {
2902
+ const N = (x.subItems ?? []).filter(
2903
+ (S) => !B.has(S.subId)
2904
2904
  );
2905
- C.length > 0 && S.push({
2906
- ...v,
2907
- subItems: C
2905
+ N.length > 0 && k.push({
2906
+ ...x,
2907
+ subItems: N
2908
2908
  });
2909
2909
  }
2910
2910
  } else
2911
- S = (N ?? []).filter((I) => I.id !== y.id);
2912
- t.onSelect(S);
2911
+ k = (C ?? []).filter((F) => F.id !== w.id);
2912
+ t.onSelect(k);
2913
2913
  }
2914
- function A(y, S) {
2914
+ function I(w, k) {
2915
2915
  if (t.singleSelector) {
2916
2916
  t.onSelect(null);
2917
2917
  return;
2918
2918
  }
2919
- const N = t.selectedEntities ?? [], I = S.subId, M = [];
2920
- for (const v of N) {
2921
- const C = v.subItems?.filter((k) => k.subId !== I) ?? [];
2922
- C.length > 0 && M.push({
2923
- ...v,
2924
- subItems: C
2919
+ const C = t.selectedEntities ?? [], F = k.subId, B = [];
2920
+ for (const x of C) {
2921
+ const N = x.subItems?.filter((S) => S.subId !== F) ?? [];
2922
+ N.length > 0 && B.push({
2923
+ ...x,
2924
+ subItems: N
2925
2925
  });
2926
2926
  }
2927
- t.onSelect(M);
2927
+ t.onSelect(B);
2928
2928
  }
2929
2929
  function z() {
2930
2930
  if (t.singleSelector) {
2931
2931
  t.onSelect(null);
2932
2932
  return;
2933
2933
  }
2934
- const y = t.selectedEntities ?? [];
2935
- let S = [];
2934
+ const w = t.selectedEntities ?? [];
2935
+ let k = [];
2936
2936
  if (u) {
2937
- const N = new Set(
2937
+ const C = new Set(
2938
2938
  l.flatMap(
2939
- (I) => (I.subItems ?? []).map((M) => M.subId)
2939
+ (F) => (F.subItems ?? []).map((B) => B.subId)
2940
2940
  )
2941
2941
  );
2942
- for (const I of y) {
2943
- const M = (I.subItems ?? []).filter(
2944
- (v) => !N.has(v.subId)
2942
+ for (const F of w) {
2943
+ const B = (F.subItems ?? []).filter(
2944
+ (x) => !C.has(x.subId)
2945
2945
  );
2946
- M.length > 0 && S.push({
2947
- ...I,
2948
- subItems: M
2946
+ B.length > 0 && k.push({
2947
+ ...F,
2948
+ subItems: B
2949
2949
  });
2950
2950
  }
2951
2951
  } else {
2952
- const N = new Set(
2953
- l.map((I) => I.id)
2952
+ const C = new Set(
2953
+ l.map((F) => F.id)
2954
2954
  );
2955
- S = (y ?? []).filter((I) => !N.has(I.id));
2955
+ k = (w ?? []).filter((F) => !C.has(F.id));
2956
2956
  }
2957
- t.onSelect(S);
2957
+ t.onSelect(k);
2958
2958
  }
2959
- function B() {
2960
- const y = [...t.selectedEntities ?? []];
2961
- l.forEach((S) => {
2962
- const N = y.find((I) => I.id === S.id);
2963
- if (!N)
2964
- y.push({
2965
- ...S,
2966
- subItems: S.subItems || []
2959
+ function R() {
2960
+ const w = [...t.selectedEntities ?? []];
2961
+ l.forEach((k) => {
2962
+ const C = w.find((F) => F.id === k.id);
2963
+ if (!C)
2964
+ w.push({
2965
+ ...k,
2966
+ subItems: k.subItems || []
2967
2967
  });
2968
2968
  else {
2969
- const I = Array.from(
2969
+ const F = Array.from(
2970
2970
  /* @__PURE__ */ new Set([
2971
- ...N.subItems ?? [],
2972
- ...S.subItems ?? []
2971
+ ...C.subItems ?? [],
2972
+ ...k.subItems ?? []
2973
2973
  ])
2974
2974
  );
2975
- N.subItems = I;
2975
+ C.subItems = F;
2976
2976
  }
2977
- }), t.singleSelector || t.onSelect(y);
2977
+ }), t.singleSelector || t.onSelect(w);
2978
2978
  }
2979
- const D = (y) => {
2980
- c(y), f(y);
2981
- }, _ = (y, S) => {
2982
- t.onItemExpandedChange(y.id, S), s(
2979
+ const D = (w) => {
2980
+ c(w), f(w);
2981
+ }, E = (w, k) => {
2982
+ t.onItemExpandedChange(w.id, k), s(
2983
2983
  l.map(
2984
- (N) => N.id === y.id ? { ...N, expanded: !y.expanded } : N
2984
+ (C) => C.id === w.id ? { ...C, expanded: !w.expanded } : C
2985
2985
  )
2986
2986
  );
2987
2987
  };
@@ -2991,31 +2991,31 @@ const Vt = ({
2991
2991
  return;
2992
2992
  }
2993
2993
  if (u && !t.applySearchToGroup) {
2994
- const S = t.entities.map((N) => {
2995
- const I = ss(N, d), M = N.subItems?.map((v) => ({
2996
- ...v,
2994
+ const k = t.entities.map((C) => {
2995
+ const F = ss(C, d), B = C.subItems?.map((x) => ({
2996
+ ...x,
2997
2997
  score: je(
2998
2998
  d,
2999
- v.subSearchKeys ?? [v.subName]
2999
+ x.subSearchKeys ?? [x.subName]
3000
3000
  )
3001
- })).filter((v) => v.score < 1 / 0).sort((v, C) => v.score - C.score);
3001
+ })).filter((x) => x.score < 1 / 0).sort((x, N) => x.score - N.score);
3002
3002
  return {
3003
- ...N,
3004
- score: I,
3005
- expanded: N.expanded ?? (M?.length ?? 0) > 0,
3006
- subItems: M
3003
+ ...C,
3004
+ score: F,
3005
+ expanded: C.expanded ?? (B?.length ?? 0) > 0,
3006
+ subItems: B
3007
3007
  };
3008
- }).filter((N) => N.score < 1 / 0).sort((N, I) => N.score - I.score);
3009
- s(S);
3008
+ }).filter((C) => C.score < 1 / 0).sort((C, F) => C.score - F.score);
3009
+ s(k);
3010
3010
  } else {
3011
- const y = t.entities.map((S) => {
3012
- const N = je(
3011
+ const w = t.entities.map((k) => {
3012
+ const C = je(
3013
3013
  d,
3014
- S.searchKeys ?? [S.name]
3014
+ k.searchKeys ?? [k.name]
3015
3015
  );
3016
- return { ...S, score: N };
3017
- }).filter((S) => S.score < 1 / 0).sort((S, N) => S.score - N.score);
3018
- s(y);
3016
+ return { ...k, score: C };
3017
+ }).filter((k) => k.score < 1 / 0).sort((k, C) => k.score - C.score);
3018
+ s(w);
3019
3019
  }
3020
3020
  }, [
3021
3021
  d,
@@ -3024,12 +3024,12 @@ const Vt = ({
3024
3024
  u,
3025
3025
  s
3026
3026
  ]);
3027
- const L = G(null), [K, T] = E(0);
3028
- return En(() => {
3029
- const y = () => {
3027
+ const L = G(null), [U, T] = _(0);
3028
+ return Fn(() => {
3029
+ const w = () => {
3030
3030
  L.current && T(L.current.offsetWidth);
3031
3031
  };
3032
- return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
3032
+ return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
3033
3033
  }, []), t.alwaysOpen ? /* @__PURE__ */ e(
3034
3034
  "div",
3035
3035
  {
@@ -3047,15 +3047,15 @@ const Vt = ({
3047
3047
  onGroupChange: t.onGroupChange,
3048
3048
  selectedGroup: t.selectedGroup,
3049
3049
  onSelect: b,
3050
- onRemove: w,
3051
- onSubItemRemove: A,
3052
- onSubItemSelect: x,
3050
+ onRemove: y,
3051
+ onSubItemRemove: I,
3052
+ onSubItemSelect: v,
3053
3053
  onClear: z,
3054
- onSelectAll: B,
3054
+ onSelectAll: R,
3055
3055
  selectedEntities: t.selectedEntities ?? [],
3056
3056
  search: i,
3057
3057
  onSearch: D,
3058
- onToggleExpand: _,
3058
+ onToggleExpand: E,
3059
3059
  searchPlaceholder: t.searchPlaceholder,
3060
3060
  selectAllLabel: t.selectAllLabel,
3061
3061
  clearLabel: t.clearLabel,
@@ -3064,7 +3064,7 @@ const Vt = ({
3064
3064
  loading: t.loading,
3065
3065
  notFoundTitle: t.notFoundTitle,
3066
3066
  notFoundSubtitle: t.notFoundSubtitle,
3067
- width: t.width ?? K - 2,
3067
+ width: t.width ?? U - 2,
3068
3068
  disabled: t.disabled,
3069
3069
  hiddenAvatar: t.hiddenAvatar,
3070
3070
  onCreate: t.onCreate,
@@ -3122,15 +3122,15 @@ const Vt = ({
3122
3122
  onGroupChange: t.onGroupChange,
3123
3123
  selectedGroup: t.selectedGroup,
3124
3124
  onSelect: b,
3125
- onRemove: w,
3126
- onSubItemRemove: A,
3127
- onSubItemSelect: x,
3125
+ onRemove: y,
3126
+ onSubItemRemove: I,
3127
+ onSubItemSelect: v,
3128
3128
  onClear: z,
3129
- onSelectAll: B,
3129
+ onSelectAll: R,
3130
3130
  selectedEntities: t.selectedEntities ?? [],
3131
3131
  search: i,
3132
3132
  onSearch: D,
3133
- onToggleExpand: _,
3133
+ onToggleExpand: E,
3134
3134
  searchPlaceholder: t.searchPlaceholder,
3135
3135
  selectAllLabel: t.selectAllLabel,
3136
3136
  clearLabel: t.clearLabel,
@@ -3197,7 +3197,7 @@ const is = ({
3197
3197
  onChange(h) {
3198
3198
  h && d?.(t);
3199
3199
  }
3200
- }), u = Dn(n, {
3200
+ }), u = En(n, {
3201
3201
  yesterdayRelative: !1
3202
3202
  });
3203
3203
  return /* @__PURE__ */ o(
@@ -3276,7 +3276,7 @@ const is = ({
3276
3276
  onEndReached: r,
3277
3277
  onEndReachedItemsThreshold: l = 5
3278
3278
  }) => {
3279
- const s = se(), i = rl(t, "createdAt"), c = Object.values(i).slice().flatMap((u) => u.map((m) => m.id)).slice(-l), d = ir((u) => {
3279
+ const s = se(), i = el(t, "createdAt"), c = Object.values(i).slice().flatMap((u) => u.map((m) => m.id)).slice(-l), d = ir((u) => {
3280
3280
  c.includes(u) && r?.();
3281
3281
  }, 1e3), f = ms(
3282
3282
  Object.entries(i).filter(([u, m]) => !!m.length)
@@ -3390,7 +3390,7 @@ function xs({
3390
3390
  a ? "bottom-0.5" : "-bottom-[3px]"
3391
3391
  ),
3392
3392
  children: /* @__PURE__ */ e(
3393
- bn,
3393
+ _n,
3394
3394
  {
3395
3395
  lastEmojiReaction: l,
3396
3396
  onSelect: s,
@@ -3450,18 +3450,18 @@ const ws = ({
3450
3450
  typeLabel: f,
3451
3451
  date: u
3452
3452
  }) => {
3453
- const [m, h] = E(i), p = G(null);
3453
+ const [m, h] = _(i), p = G(null);
3454
3454
  $(() => {
3455
3455
  h(i);
3456
3456
  }, [i]);
3457
3457
  const b = (D) => {
3458
3458
  h(D), c?.(D);
3459
- }, x = Ue(), { canvasRef: w, handleMouseEnter: A, handleMouseLeave: z } = vs(x), B = bt({
3459
+ }, v = Ue(), { canvasRef: y, handleMouseEnter: I, handleMouseLeave: z } = vs(v), R = bt({
3460
3460
  emoji: ps[d],
3461
3461
  size: "sm"
3462
3462
  });
3463
3463
  return /* @__PURE__ */ o(
3464
- ve,
3464
+ we,
3465
3465
  {
3466
3466
  href: t,
3467
3467
  onClick: l,
@@ -3469,13 +3469,13 @@ const ws = ({
3469
3469
  "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",
3470
3470
  ne()
3471
3471
  ),
3472
- onMouseEnter: x ? void 0 : A,
3473
- onMouseLeave: x ? void 0 : z,
3472
+ onMouseEnter: v ? void 0 : I,
3473
+ onMouseLeave: v ? void 0 : z,
3474
3474
  children: [
3475
3475
  /* @__PURE__ */ e(
3476
3476
  "canvas",
3477
3477
  {
3478
- ref: w,
3478
+ ref: y,
3479
3479
  className: "pointer-events-none absolute inset-0 z-50 h-full w-full"
3480
3480
  }
3481
3481
  ),
@@ -3500,7 +3500,7 @@ const ws = ({
3500
3500
  ] }),
3501
3501
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-1.5 text-f1-foreground-secondary", children: [
3502
3502
  /* @__PURE__ */ e("span", { className: "truncate", children: f }),
3503
- /* @__PURE__ */ e("span", { className: "shrink-0 leading-none", children: B })
3503
+ /* @__PURE__ */ e("span", { className: "shrink-0 leading-none", children: R })
3504
3504
  ] })
3505
3505
  ] }),
3506
3506
  /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(ct, { date: u }) })
@@ -3530,13 +3530,13 @@ const ws = ({
3530
3530
  onClick: r
3531
3531
  }) => /* @__PURE__ */ o("div", { className: "flex w-full flex-col items-start justify-between gap-4 rounded-md bg-gradient-to-r from-[#F5A51C]/30 via-[#E51943]/30 to-[#5596F6]/30 px-3 py-3 ring-1 ring-inset ring-f1-border-secondary sm:flex-row sm:items-center sm:px-4", children: [
3532
3532
  /* @__PURE__ */ o("div", { className: "flex flex-col items-start gap-3 sm:flex-row sm:items-center", children: [
3533
- /* @__PURE__ */ e(xn, { module: "kudos", size: "lg" }),
3533
+ /* @__PURE__ */ e(bn, { module: "kudos", size: "lg" }),
3534
3534
  /* @__PURE__ */ o("div", { className: "flex flex-col", children: [
3535
3535
  /* @__PURE__ */ e("span", { className: "font-medium text-f1-foreground", children: t }),
3536
3536
  /* @__PURE__ */ e("span", { className: "text-f1-foreground-secondary", children: n })
3537
3537
  ] })
3538
3538
  ] }),
3539
- /* @__PURE__ */ e("div", { className: "w-full sm:w-fit [&>div]:w-full", children: /* @__PURE__ */ e(R, { label: a, variant: "outline", onClick: r }) })
3539
+ /* @__PURE__ */ e("div", { className: "w-full sm:w-fit [&>div]:w-full", children: /* @__PURE__ */ e(M, { label: a, variant: "outline", onClick: r }) })
3540
3540
  ] });
3541
3541
  function Ns({
3542
3542
  emoji: t,
@@ -3545,10 +3545,10 @@ function Ns({
3545
3545
  users: r,
3546
3546
  onInteraction: l
3547
3547
  }) {
3548
- const [s, i] = E(a), [c, d] = E(n), f = G(null), { fireEmojiConfetti: u } = ur(), m = (b, x) => {
3549
- b.stopPropagation(), d(c + (s ? -1 : 1)), i(!s), l?.(x), s || u(x, f);
3548
+ const [s, i] = _(a), [c, d] = _(n), f = G(null), { fireEmojiConfetti: u } = ur(), m = (b, v) => {
3549
+ b.stopPropagation(), d(c + (s ? -1 : 1)), i(!s), l?.(v), s || u(v, f);
3550
3550
  }, h = r?.map((b) => b.name).join(", ") || "", p = /* @__PURE__ */ e(
3551
- vn,
3551
+ xn,
3552
3552
  {
3553
3553
  ref: f,
3554
3554
  variant: "outline",
@@ -3584,7 +3584,7 @@ function Ns({
3584
3584
  function Cs({ items: t, onInteraction: n, locale: a, action: r }) {
3585
3585
  return /* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2", children: [
3586
3586
  r && /* @__PURE__ */ e(
3587
- R,
3587
+ M,
3588
3588
  {
3589
3589
  label: r.label,
3590
3590
  icon: r.icon,
@@ -3593,7 +3593,7 @@ function Cs({ items: t, onInteraction: n, locale: a, action: r }) {
3593
3593
  hideLabel: !0
3594
3594
  }
3595
3595
  ),
3596
- /* @__PURE__ */ e(bn, { onSelect: n, locale: a }),
3596
+ /* @__PURE__ */ e(_n, { onSelect: n, locale: a }),
3597
3597
  t.map((l) => /* @__PURE__ */ e(
3598
3598
  Ns,
3599
3599
  {
@@ -3639,7 +3639,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3639
3639
  ),
3640
3640
  children: t.map((a) => {
3641
3641
  const r = /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
3642
- Le,
3642
+ Ee,
3643
3643
  {
3644
3644
  icon: a.icon,
3645
3645
  text: a.label ?? (a.description || ""),
@@ -3678,7 +3678,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3678
3678
  ref: h,
3679
3679
  className: "relative flex flex-row items-stretch gap-2.5 overflow-hidden rounded-sm p-2",
3680
3680
  children: [
3681
- !m && /* @__PURE__ */ o(U, { children: [
3681
+ !m && /* @__PURE__ */ o(K, { children: [
3682
3682
  /* @__PURE__ */ e(
3683
3683
  "div",
3684
3684
  {
@@ -3726,7 +3726,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3726
3726
  /* @__PURE__ */ e("p", { className: "text-f1-foreground-secondary", children: l })
3727
3727
  ] }),
3728
3728
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center", children: [
3729
- f && /* @__PURE__ */ o(U, { children: [
3729
+ f && /* @__PURE__ */ o(K, { children: [
3730
3730
  /* @__PURE__ */ e(ct, { date: f }),
3731
3731
  /* @__PURE__ */ e(
3732
3732
  W,
@@ -3761,7 +3761,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3761
3761
  place: a,
3762
3762
  date: r
3763
3763
  }) => {
3764
- let l = ll(r);
3764
+ let l = tl(r);
3765
3765
  const s = (i) => {
3766
3766
  i.stopPropagation();
3767
3767
  };
@@ -3774,7 +3774,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3774
3774
  onClick: s,
3775
3775
  children: /* @__PURE__ */ e("source", { src: n })
3776
3776
  }
3777
- ) : /* @__PURE__ */ o(U, { children: [
3777
+ ) : /* @__PURE__ */ o(K, { children: [
3778
3778
  /* @__PURE__ */ e(
3779
3779
  "img",
3780
3780
  {
@@ -3854,46 +3854,46 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3854
3854
  comment: h,
3855
3855
  actions: p,
3856
3856
  dropdownItems: b,
3857
- noReactionsButton: x = !1,
3858
- descriptionExpandable: w = !1
3857
+ noReactionsButton: v = !1,
3858
+ descriptionExpandable: y = !1
3859
3859
  }) => {
3860
- const A = ot(), z = ot(), B = G(null), [D, _] = E(null), [L, K] = E(!1), T = [f.views, f.comments].filter(Boolean).join(" · "), y = w && D?.id === t && D.description === s, S = !y, N = Dn(r), I = () => {
3860
+ const I = ot(), z = ot(), R = G(null), [D, E] = _(null), [L, U] = _(!1), T = [f.views, f.comments].filter(Boolean).join(" · "), w = y && D?.id === t && D.description === s, k = !w, C = En(r), F = () => {
3861
3861
  i(t);
3862
- }, M = (k) => {
3863
- k.stopPropagation();
3864
- }, v = n ? `${n.firstName} ${n.lastName}` : void 0, C = (k) => {
3865
- k.preventDefault(), k.stopPropagation(), s && _({ id: t, description: s });
3862
+ }, B = (S) => {
3863
+ S.stopPropagation();
3864
+ }, x = n ? `${n.firstName} ${n.lastName}` : void 0, N = (S) => {
3865
+ S.preventDefault(), S.stopPropagation(), s && E({ id: t, description: s });
3866
3866
  };
3867
3867
  return $(() => {
3868
- y && B.current?.focus();
3869
- }, [y]), $(() => {
3870
- w || _(null);
3868
+ w && R.current?.focus();
3871
3869
  }, [w]), $(() => {
3872
- const k = B.current;
3873
- if (!w || !k || y) {
3874
- K(!1);
3870
+ y || E(null);
3871
+ }, [y]), $(() => {
3872
+ const S = R.current;
3873
+ if (!y || !S || w) {
3874
+ U(!1);
3875
3875
  return;
3876
3876
  }
3877
3877
  const V = () => {
3878
- K(
3879
- k.scrollHeight > k.clientHeight
3878
+ U(
3879
+ S.scrollHeight > S.clientHeight
3880
3880
  );
3881
3881
  };
3882
3882
  if (V(), typeof ResizeObserver > "u") return;
3883
3883
  const re = new ResizeObserver(V);
3884
- return re.observe(k), () => re.disconnect();
3885
- }, [w, y, s]), /* @__PURE__ */ o(
3884
+ return re.observe(S), () => re.disconnect();
3885
+ }, [y, w, s]), /* @__PURE__ */ o(
3886
3886
  "div",
3887
3887
  {
3888
3888
  className: "flex w-full cursor-pointer flex-row gap-3 rounded-xl border border-solid border-transparent p-3 pt-2 hover:bg-f1-background-hover focus:border-f1-border-secondary focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold md:pb-4 md:pt-3",
3889
- onClick: I,
3889
+ onClick: F,
3890
3890
  id: `community-post-${t}`,
3891
3891
  children: [
3892
3892
  /* @__PURE__ */ e("div", { className: "hidden md:block", children: n ? /* @__PURE__ */ e(
3893
3893
  Te,
3894
3894
  {
3895
3895
  href: n.url || "#",
3896
- title: v,
3896
+ title: x,
3897
3897
  stopPropagation: !0,
3898
3898
  children: /* @__PURE__ */ e(
3899
3899
  ge,
@@ -3909,13 +3909,13 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3909
3909
  /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-col gap-2", children: [
3910
3910
  /* @__PURE__ */ o("div", { className: "flex flex-row justify-between", children: [
3911
3911
  /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 flex-row flex-wrap items-center gap-1", children: [
3912
- n ? /* @__PURE__ */ o(U, { children: [
3912
+ n ? /* @__PURE__ */ o(K, { children: [
3913
3913
  /* @__PURE__ */ e(
3914
3914
  Te,
3915
3915
  {
3916
3916
  href: n.url,
3917
3917
  className: "block md:hidden",
3918
- title: v,
3918
+ title: x,
3919
3919
  stopPropagation: !0,
3920
3920
  children: /* @__PURE__ */ e("span", { className: "flex items-center", children: /* @__PURE__ */ e(
3921
3921
  ge,
@@ -3932,10 +3932,10 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3932
3932
  Te,
3933
3933
  {
3934
3934
  href: n.url,
3935
- title: v,
3935
+ title: x,
3936
3936
  className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
3937
3937
  stopPropagation: !0,
3938
- children: v
3938
+ children: x
3939
3939
  }
3940
3940
  )
3941
3941
  ] }) : /* @__PURE__ */ e("div", { className: "block md:hidden", children: /* @__PURE__ */ e(st, { icon: Lt, size: "sm" }) }),
@@ -3963,21 +3963,21 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3963
3963
  ] }),
3964
3964
  /* @__PURE__ */ o("div", { className: "flex flex-row gap-2", children: [
3965
3965
  /* @__PURE__ */ o("div", { className: "hidden flex-row gap-2 md:flex", children: [
3966
- p?.map((k) => /* @__PURE__ */ e(
3967
- R,
3966
+ p?.map((S) => /* @__PURE__ */ e(
3967
+ M,
3968
3968
  {
3969
- hideLabel: !k.label,
3970
- ...k.icon && { icon: k.icon },
3969
+ hideLabel: !S.label,
3970
+ ...S.icon && { icon: S.icon },
3971
3971
  variant: "outline",
3972
3972
  size: "md",
3973
- onClick: k.onClick,
3974
- label: k.label ?? "",
3975
- title: k.label ?? ""
3973
+ onClick: S.onClick,
3974
+ label: S.label ?? "",
3975
+ title: S.label ?? ""
3976
3976
  },
3977
- k.label
3977
+ S.label
3978
3978
  )),
3979
3979
  b?.length && /* @__PURE__ */ e(
3980
- Ne,
3980
+ Ce,
3981
3981
  {
3982
3982
  items: b,
3983
3983
  icon: it,
@@ -3986,7 +3986,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3986
3986
  )
3987
3987
  ] }),
3988
3988
  /* @__PURE__ */ e("div", { className: "md:hidden", children: /* @__PURE__ */ e(
3989
- Ne,
3989
+ Ce,
3990
3990
  {
3991
3991
  items: [
3992
3992
  {
@@ -4001,12 +4001,12 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4001
4001
  ) })
4002
4002
  ] })
4003
4003
  ] }),
4004
- /* @__PURE__ */ e("span", { className: "-mt-3 text-sm text-f1-foreground-secondary", children: N }),
4004
+ /* @__PURE__ */ e("span", { className: "-mt-3 text-sm text-f1-foreground-secondary", children: C }),
4005
4005
  /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-col gap-1 text-f1-foreground", children: [
4006
4006
  /* @__PURE__ */ e(
4007
4007
  "p",
4008
4008
  {
4009
- id: A,
4009
+ id: I,
4010
4010
  className: g(
4011
4011
  "text-xl font-semibold",
4012
4012
  "line-clamp-2 break-words"
@@ -4014,25 +4014,25 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4014
4014
  children: l
4015
4015
  }
4016
4016
  ),
4017
- s && /* @__PURE__ */ o(U, { children: [
4017
+ s && /* @__PURE__ */ o(K, { children: [
4018
4018
  /* @__PURE__ */ e(
4019
4019
  Kn,
4020
4020
  {
4021
- ref: B,
4021
+ ref: R,
4022
4022
  id: z,
4023
4023
  content: s,
4024
- collapsed: S,
4025
- tabIndex: y ? -1 : void 0,
4026
- className: g(y && ne())
4024
+ collapsed: k,
4025
+ tabIndex: w ? -1 : void 0,
4026
+ className: g(w && ne())
4027
4027
  }
4028
4028
  ),
4029
- w && L && !y && /* @__PURE__ */ e(
4029
+ y && L && !w && /* @__PURE__ */ e(
4030
4030
  Ls,
4031
4031
  {
4032
- describedBy: A,
4032
+ describedBy: I,
4033
4033
  controls: z,
4034
- expanded: y,
4035
- onClick: C
4034
+ expanded: w,
4035
+ onClick: N
4036
4036
  }
4037
4037
  )
4038
4038
  ] })
@@ -4043,10 +4043,10 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4043
4043
  {
4044
4044
  controls: !0,
4045
4045
  className: "aspect-video h-full w-full bg-f1-background-secondary object-cover",
4046
- onClick: M,
4046
+ onClick: B,
4047
4047
  children: /* @__PURE__ */ e("source", { src: c })
4048
4048
  }
4049
- ) : /* @__PURE__ */ o(U, { children: [
4049
+ ) : /* @__PURE__ */ o(K, { children: [
4050
4050
  /* @__PURE__ */ e(
4051
4051
  "img",
4052
4052
  {
@@ -4060,7 +4060,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4060
4060
  ] }) }),
4061
4061
  d && /* @__PURE__ */ e("div", { className: "w-full md:max-w-[480px]", children: /* @__PURE__ */ e(Yn, { ...d }) }),
4062
4062
  /* @__PURE__ */ e("p", { className: "text-f1-foreground-secondary", children: T }),
4063
- !x && /* @__PURE__ */ e(
4063
+ !v && /* @__PURE__ */ e(
4064
4064
  ks,
4065
4065
  {
4066
4066
  items: u?.items ?? [],
@@ -4134,8 +4134,8 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4134
4134
  }
4135
4135
  ) })
4136
4136
  ] }),
4137
- "bottomTags" in a && /* @__PURE__ */ e("div", { className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1", children: a.bottomTags.map((s, i) => /* @__PURE__ */ o(U, { children: [
4138
- /* @__PURE__ */ e(Le, { ...s }, s.text),
4137
+ "bottomTags" in a && /* @__PURE__ */ e("div", { className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1", children: a.bottomTags.map((s, i) => /* @__PURE__ */ o(K, { children: [
4138
+ /* @__PURE__ */ e(Ee, { ...s }, s.text),
4139
4139
  i < a.bottomTags.length - 1 && /* @__PURE__ */ e("span", { children: "·" })
4140
4140
  ] })) }),
4141
4141
  "description" in a && a.description && /* @__PURE__ */ e("p", { className: "truncate text-f1-foreground-secondary", children: a.description })
@@ -4144,7 +4144,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4144
4144
  "rightTag" in a && a.rightTag && /* @__PURE__ */ e(br, { ...a.rightTag }),
4145
4145
  "actions" in a && /* @__PURE__ */ o("div", { className: "flex flex-1 flex-row items-center justify-end gap-2", children: [
4146
4146
  a.actions?.primary && /* @__PURE__ */ e(
4147
- R,
4147
+ M,
4148
4148
  {
4149
4149
  variant: "outline",
4150
4150
  onClick: a.actions.primary.onClick,
@@ -4153,7 +4153,7 @@ const Ss = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4153
4153
  }
4154
4154
  ),
4155
4155
  a.actions?.secondary && /* @__PURE__ */ e(
4156
- R,
4156
+ M,
4157
4157
  {
4158
4158
  variant: "outline",
4159
4159
  onClick: a.actions.secondary.onClick,
@@ -4206,7 +4206,7 @@ function zs({
4206
4206
  ai: r,
4207
4207
  aiPromotion: l
4208
4208
  }) {
4209
- const s = r?.enabled ? xr : l?.enabled ? Vl : el, i = r?.enabled ? r : l?.enabled ? l : void 0;
4209
+ const s = r?.enabled ? xr : l?.enabled ? Vl : Zr, i = r?.enabled ? r : l?.enabled ? l : void 0;
4210
4210
  return /* @__PURE__ */ e(s, { ...i, children: /* @__PURE__ */ e(
4211
4211
  $s,
4212
4212
  {
@@ -4238,7 +4238,7 @@ function Bs(t, n, a) {
4238
4238
  return !n && t ? a === "hidden" : n && !t ? a !== "hidden" : !1;
4239
4239
  }
4240
4240
  function Rs(t, n) {
4241
- const { sidebarState: a, toggleSidebar: r } = ke(), l = G(t);
4241
+ const { sidebarState: a, toggleSidebar: r } = Se(), l = G(t);
4242
4242
  $(() => {
4243
4243
  n && Bs(
4244
4244
  t,
@@ -4254,31 +4254,33 @@ function $s({
4254
4254
  sidebar: r,
4255
4255
  banner: l
4256
4256
  }) {
4257
- const { sidebarState: s, toggleSidebar: i, isSmallScreen: c, setForceFloat: d } = ke(), f = Ue(), {
4257
+ const { sidebarState: s, toggleSidebar: i, isSmallScreen: c, setForceFloat: d } = Se(), f = Ue(), {
4258
4258
  open: u,
4259
4259
  visualizationMode: m,
4260
4260
  canvasContent: h,
4261
- chatWidth: p,
4262
- resizable: b
4263
- } = vr(), x = m === "fullscreen", w = m === "canvas", { open: A } = qe(), z = b ? p : yr, B = G(x), D = x && !B.current, _ = !x && B.current, [
4264
- L,
4265
- K
4266
- ] = E(!1);
4261
+ canvasEntities: p,
4262
+ closeCanvas: b,
4263
+ chatWidth: v,
4264
+ resizable: y
4265
+ } = vr(), I = m === "fullscreen", z = m === "canvas", { open: R } = qe(), D = y ? v : wr, E = G(I), L = I && !E.current, U = !I && E.current, [
4266
+ T,
4267
+ w
4268
+ ] = _(!1);
4267
4269
  $(() => {
4268
- !x && B.current && K(!0), B.current = x;
4269
- }, [x]);
4270
- const T = x || L || _, y = q(() => D ? { duration: 0.15, ease: "easeOut" } : _ ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [D, _]), S = rt(
4270
+ !I && E.current && w(!0), E.current = I;
4271
+ }, [I]);
4272
+ const k = I || T || U, C = q(() => L ? { duration: 0.15, ease: "easeOut" } : U ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [L, U]), F = rt(
4271
4273
  `(max-width: ${Re.xl}px)`,
4272
4274
  { initializeWithValue: !0 }
4273
- ), N = rt(`(max-width: ${Re.md}px)`, {
4275
+ ), B = rt(`(max-width: ${Re.md}px)`, {
4274
4276
  initializeWithValue: !0
4275
4277
  });
4276
4278
  return $(() => {
4277
4279
  d(u);
4278
4280
  }, [u, d]), $(() => {
4279
- d(A);
4280
- }, [A, d]), Rs(u, S), /* @__PURE__ */ e(
4281
- wr,
4281
+ d(R);
4282
+ }, [R, d]), Rs(u, F), /* @__PURE__ */ e(
4283
+ nl,
4282
4284
  {
4283
4285
  reducedMotion: f ? "always" : "never",
4284
4286
  transition: {
@@ -4287,8 +4289,8 @@ function $s({
4287
4289
  },
4288
4290
  children: /* @__PURE__ */ o("div", { className: "scrollbar-macos grid h-screen grid-cols-1 grid-rows-[auto_minmax(0,1fr)]", children: [
4289
4291
  /* @__PURE__ */ e("div", { className: "col-[1/-1]", children: l }),
4290
- /* @__PURE__ */ e(wn, { id: "ai-chat-group", children: /* @__PURE__ */ o("div", { className: "relative isolate flex h-full", children: [
4291
- /* @__PURE__ */ e(Ee, { children: s === "unlocked" && /* @__PURE__ */ e(
4292
+ /* @__PURE__ */ e(vn, { id: "ai-chat-group", children: /* @__PURE__ */ o("div", { className: "relative isolate flex h-full", children: [
4293
+ /* @__PURE__ */ e(_e, { children: s === "unlocked" && /* @__PURE__ */ e(
4292
4294
  X.nav,
4293
4295
  {
4294
4296
  className: g(
@@ -4310,8 +4312,8 @@ function $s({
4310
4312
  !f && "transition-all",
4311
4313
  s === "locked" ? "w-[240px] shrink-0 pl-3" : "w-0"
4312
4314
  ),
4313
- ref: (I) => {
4314
- s === "hidden" ? I?.setAttribute("inert", "") : I?.removeAttribute("inert");
4315
+ ref: (x) => {
4316
+ s === "hidden" ? x?.setAttribute("inert", "") : x?.removeAttribute("inert");
4315
4317
  },
4316
4318
  children: [
4317
4319
  /* @__PURE__ */ e(Ps, { contentId: "content" }),
@@ -4324,7 +4326,7 @@ function $s({
4324
4326
  {
4325
4327
  className: "relative min-w-0 flex-1",
4326
4328
  animate: {
4327
- paddingRight: u && !N ? z : 0
4329
+ paddingRight: u && !B ? D : 0
4328
4330
  },
4329
4331
  transition: { paddingRight: Ds },
4330
4332
  children: [
@@ -4335,8 +4337,8 @@ function $s({
4335
4337
  layoutId: "main",
4336
4338
  className: g(
4337
4339
  "relative z-10 flex h-full max-w-full flex-1 xs:py-1",
4338
- T ? "overflow-hidden" : "overflow-auto",
4339
- !u && !A && "xs:pr-1",
4340
+ k ? "overflow-hidden" : "overflow-auto",
4341
+ !u && !R && "xs:pr-1",
4340
4342
  s === "locked" ? "pl-0" : "xs:pl-1"
4341
4343
  ),
4342
4344
  layoutDependency: s,
@@ -4345,7 +4347,7 @@ function $s({
4345
4347
  {
4346
4348
  className: g(
4347
4349
  "flex max-w-full flex-1",
4348
- T ? "overflow-hidden" : "overflow-auto"
4350
+ k ? "overflow-hidden" : "overflow-auto"
4349
4351
  ),
4350
4352
  layout: "position",
4351
4353
  children: a
@@ -4353,7 +4355,7 @@ function $s({
4353
4355
  )
4354
4356
  }
4355
4357
  ),
4356
- t?.enabled && w && h && /* @__PURE__ */ e(
4358
+ t?.enabled && z && h && /* @__PURE__ */ e(
4357
4359
  "div",
4358
4360
  {
4359
4361
  className: g(
@@ -4361,10 +4363,17 @@ function $s({
4361
4363
  // mode) so the canvas card's right-side shadow paints
4362
4364
  // over the chat surface instead of being clipped by it.
4363
4365
  "pointer-events-none flex justify-end",
4364
- N ? "fixed inset-0 z-[50]" : "absolute bottom-0 left-0 top-0 z-[21]"
4366
+ B ? "fixed inset-0 z-[50]" : "absolute bottom-0 left-0 top-0 z-[21]"
4365
4367
  ),
4366
- style: N ? void 0 : { right: z },
4367
- children: /* @__PURE__ */ e(Nr, {})
4368
+ style: B ? void 0 : { right: D },
4369
+ children: /* @__PURE__ */ e(
4370
+ yr,
4371
+ {
4372
+ content: h,
4373
+ onClose: b,
4374
+ entities: p
4375
+ }
4376
+ )
4368
4377
  }
4369
4378
  ),
4370
4379
  t?.enabled && /* @__PURE__ */ e(
@@ -4373,7 +4382,7 @@ function $s({
4373
4382
  className: g(
4374
4383
  "pointer-events-none",
4375
4384
  "[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full",
4376
- N ? "fixed inset-0 z-[30]" : g(
4385
+ B ? "fixed inset-0 z-[30]" : g(
4377
4386
  "absolute right-0 top-0 bottom-0",
4378
4387
  // In canvas mode the chat wrapper must sit above
4379
4388
  // the CanvasPanel (z-[15]) so the ResizeHandle's
@@ -4381,18 +4390,18 @@ function $s({
4381
4390
  // canvas side of the seam) can receive hover
4382
4391
  // events — otherwise the canvas captures them
4383
4392
  // and the handle never lights up.
4384
- T || w ? "z-20" : "z-0",
4385
- s === "hidden" && T ? "pl-1" : "pl-0"
4393
+ k || z ? "z-20" : "z-0",
4394
+ s === "hidden" && k ? "pl-1" : "pl-0"
4386
4395
  )
4387
4396
  ),
4388
4397
  animate: {
4389
- width: N || x ? "100%" : z
4398
+ width: B || I ? "100%" : D
4390
4399
  },
4391
- transition: y,
4400
+ transition: C,
4392
4401
  onAnimationComplete: () => {
4393
- L && K(!1);
4402
+ T && w(!1);
4394
4403
  },
4395
- children: /* @__PURE__ */ e(Cr, {})
4404
+ children: /* @__PURE__ */ e(Nr, {})
4396
4405
  }
4397
4406
  )
4398
4407
  ]
@@ -4423,7 +4432,7 @@ function Xn({
4423
4432
  period: a,
4424
4433
  embedded: r = !1
4425
4434
  }) {
4426
- const { sidebarState: l, toggleSidebar: s, isSmallScreen: i } = ke();
4435
+ const { sidebarState: l, toggleSidebar: s, isSmallScreen: i } = Se();
4427
4436
  return /* @__PURE__ */ o(
4428
4437
  "div",
4429
4438
  {
@@ -4431,9 +4440,9 @@ function Xn({
4431
4440
  children: [
4432
4441
  /* @__PURE__ */ e("div", { className: Ws({ period: a }) }),
4433
4442
  n && /* @__PURE__ */ o("div", { className: "flex flex-row items-center justify-between pr-6 @container", children: [
4434
- /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2 px-5 py-4 @5xl:px-6", children: [
4443
+ /* @__PURE__ */ o("div", { className: "@5xl:px-page flex flex-row items-center gap-2 px-5 py-4", children: [
4435
4444
  (i || l === "hidden") && /* @__PURE__ */ e(
4436
- R,
4445
+ M,
4437
4446
  {
4438
4447
  variant: "ghost",
4439
4448
  onClick: () => s(),
@@ -4451,7 +4460,7 @@ function Xn({
4451
4460
  ),
4452
4461
  children: [
4453
4462
  n?.onPulseClick ? /* @__PURE__ */ e(
4454
- sl,
4463
+ al,
4455
4464
  {
4456
4465
  src: n.employeeAvatar,
4457
4466
  firstName: n.employeeFirstName,
@@ -4534,7 +4543,7 @@ function js({ label: t, options: n, hasNewUpdate: a }) {
4534
4543
  bottom: "calc(8px + env(safe-area-inset-bottom))",
4535
4544
  right: "calc(8px + env(safe-area-inset-right))"
4536
4545
  },
4537
- children: /* @__PURE__ */ e(Ne, { items: Ms(n), children: /* @__PURE__ */ o(
4546
+ children: /* @__PURE__ */ e(Ce, { items: Ms(n), children: /* @__PURE__ */ o(
4538
4547
  "button",
4539
4548
  {
4540
4549
  className: g(
@@ -4543,7 +4552,7 @@ function js({ label: t, options: n, hasNewUpdate: a }) {
4543
4552
  ),
4544
4553
  "aria-label": t,
4545
4554
  children: [
4546
- /* @__PURE__ */ e(W, { icon: yn, size: "sm" }),
4555
+ /* @__PURE__ */ e(W, { icon: wn, size: "sm" }),
4547
4556
  a && /* @__PURE__ */ e("div", { className: "absolute right-0.5 top-0.5 h-1.5 w-1.5 rounded-full bg-f1-background-critical-bold ring-2 ring-f1-background-critical" })
4548
4557
  ]
4549
4558
  }
@@ -4558,7 +4567,10 @@ function Jn({ children: t, header: n, embedded: a = !1 }) {
4558
4567
  return /* @__PURE__ */ o(
4559
4568
  "div",
4560
4569
  {
4561
- className: `flex min-h-full w-full flex-col overflow-hidden ${a ? "" : "xs:rounded-xl"} bg-f1-special-page ring-1 ring-inset ring-f1-border-secondary`,
4570
+ className: g(
4571
+ "flex min-h-full w-full flex-col overflow-hidden bg-f1-special-page ring-1 ring-inset ring-f1-border-secondary",
4572
+ !a && "xs:rounded-xl"
4573
+ ),
4562
4574
  children: [
4563
4575
  n && /* @__PURE__ */ e("div", { className: "flex flex-col", children: n }),
4564
4576
  /* @__PURE__ */ e("div", { className: "isolate flex w-full flex-1 flex-col overflow-auto [&>*]:flex-1", children: t })
@@ -4613,7 +4625,7 @@ const Gs = ({
4613
4625
  children: r,
4614
4626
  additionalOptions: l = []
4615
4627
  }) => {
4616
- const s = se(), [i, c] = E(!1), d = q(
4628
+ const s = se(), [i, c] = _(!1), d = q(
4617
4629
  () => [
4618
4630
  ...t.map((u) => ({
4619
4631
  value: u.id,
@@ -4685,12 +4697,12 @@ const Gs = ({
4685
4697
  ),
4686
4698
  children: [
4687
4699
  /* @__PURE__ */ e(
4688
- kr,
4700
+ Cr,
4689
4701
  {
4690
4702
  name: t?.name?.[0],
4691
4703
  src: t?.logo,
4692
4704
  size: "sm",
4693
- badge: n ? { icon: Nn, type: "highlight" } : void 0
4705
+ badge: n ? { icon: yn, type: "highlight" } : void 0
4694
4706
  }
4695
4707
  ),
4696
4708
  /* @__PURE__ */ e(me, { tag: "span", children: t?.name ?? "" })
@@ -4708,7 +4720,7 @@ function ec({
4708
4720
  }) {
4709
4721
  const c = se();
4710
4722
  return /* @__PURE__ */ o("div", { className: "flex flex-row items-center justify-between gap-1 p-3", children: [
4711
- /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e(Ne, { items: n, children: /* @__PURE__ */ o(
4723
+ /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e(Ce, { items: n, children: /* @__PURE__ */ o(
4712
4724
  "button",
4713
4725
  {
4714
4726
  className: g(
@@ -4732,7 +4744,7 @@ function ec({
4732
4744
  ) }) }),
4733
4745
  a && /* @__PURE__ */ e(be, { label: c.notifications, shortcut: r, children: /* @__PURE__ */ o("div", { className: "relative", children: [
4734
4746
  /* @__PURE__ */ e(
4735
- R,
4747
+ M,
4736
4748
  {
4737
4749
  icon: pn,
4738
4750
  label: c.notifications,
@@ -4741,7 +4753,7 @@ function ec({
4741
4753
  hideLabel: !0
4742
4754
  }
4743
4755
  ),
4744
- i && /* @__PURE__ */ e("div", { className: "absolute -right-1 -top-1 rounded-full bg-f1-background", children: /* @__PURE__ */ e(Sr, { type: "highlight", size: "sm", icon: Nn }) })
4756
+ i && /* @__PURE__ */ e("div", { className: "absolute -right-1 -top-1 rounded-full bg-f1-background", children: /* @__PURE__ */ e(kr, { type: "highlight", size: "sm", icon: yn }) })
4745
4757
  ] }) })
4746
4758
  ] });
4747
4759
  }
@@ -4801,11 +4813,11 @@ function Hs({ isExpanded: t }) {
4801
4813
  );
4802
4814
  }
4803
4815
  function Us() {
4804
- const { prevSidebarState: t, sidebarState: n, toggleSidebar: a, isSmallScreen: r } = ke(), l = G(null);
4816
+ const { prevSidebarState: t, sidebarState: n, toggleSidebar: a, isSmallScreen: r } = Se(), l = G(null);
4805
4817
  return $(() => {
4806
4818
  t === "hidden" && n === "locked" && l.current?.focus();
4807
4819
  }, [t, n]), /* @__PURE__ */ o(
4808
- vn,
4820
+ xn,
4809
4821
  {
4810
4822
  variant: "ghost",
4811
4823
  size: "md",
@@ -4817,7 +4829,7 @@ function Us() {
4817
4829
  "aria-label": "Close Sidebar",
4818
4830
  children: [
4819
4831
  /* @__PURE__ */ e("div", { className: g("hidden", { flex: !r }), children: /* @__PURE__ */ e(Hs, { isExpanded: n === "locked" }) }),
4820
- /* @__PURE__ */ e("div", { className: g("hidden", { flex: r }), children: /* @__PURE__ */ e(W, { icon: Ce, size: "md" }) })
4832
+ /* @__PURE__ */ e("div", { className: g("hidden", { flex: r }), children: /* @__PURE__ */ e(W, { icon: ke, size: "md" }) })
4821
4833
  ]
4822
4834
  }
4823
4835
  );
@@ -4846,14 +4858,14 @@ function tc({
4846
4858
  ] });
4847
4859
  }
4848
4860
  function Ks() {
4849
- const [t, n] = E(!1);
4861
+ const [t, n] = _(!1);
4850
4862
  return $(() => {
4851
4863
  n(window.matchMedia("(pointer: coarse)").matches);
4852
4864
  }, []), t;
4853
4865
  }
4854
4866
  const Qn = Nt(void 0);
4855
4867
  function qs({ children: t }) {
4856
- const [n, a] = E(!1), [r, l] = E(null);
4868
+ const [n, a] = _(!1), [r, l] = _(null);
4857
4869
  return /* @__PURE__ */ e(
4858
4870
  Qn.Provider,
4859
4871
  {
@@ -4890,7 +4902,7 @@ const Ys = ({
4890
4902
  ] }), Zs = ({ item: t }) => {
4891
4903
  const { isActive: n } = gt(), { label: a, icon: r, ...l } = t, s = n(l.href, { exact: l.exactMatch });
4892
4904
  return /* @__PURE__ */ e(
4893
- ve,
4905
+ we,
4894
4906
  {
4895
4907
  ...l,
4896
4908
  className: g(
@@ -4912,40 +4924,40 @@ const Ys = ({
4912
4924
  onReorderFinish: c,
4913
4925
  isSortable: d = !0
4914
4926
  }) => {
4915
- const f = se(), { isDragging: u, setIsDragging: m, draggedItemId: h, setDraggedItemId: p } = It(), { isActive: b } = gt(), x = b(t.href, { exact: t.exactMatch }), w = G(!1), [A, z] = E(!1), B = l === 0, D = l === s - 1, _ = s === 1, L = q(() => {
4916
- const I = [];
4917
- return !_ && !B && I.push({
4927
+ const f = se(), { isDragging: u, setIsDragging: m, draggedItemId: h, setDraggedItemId: p } = It(), { isActive: b } = gt(), v = b(t.href, { exact: t.exactMatch }), y = G(!1), [I, z] = _(!1), R = l === 0, D = l === s - 1, E = s === 1, L = q(() => {
4928
+ const F = [];
4929
+ return !E && !R && F.push({
4918
4930
  label: f.actions.moveUp,
4919
4931
  onClick: () => i?.(l, l - 1),
4920
- icon: Ir
4921
- }), !_ && !D && I.push({
4932
+ icon: Sr
4933
+ }), !E && !D && F.push({
4922
4934
  label: f.actions.moveDown,
4923
4935
  onClick: () => i?.(l, l + 1),
4924
- icon: Fr
4925
- }), I.length > 0 && I.push({ type: "separator" }), I.push({
4936
+ icon: Ir
4937
+ }), F.length > 0 && F.push({ type: "separator" }), F.push({
4926
4938
  label: f.favorites.remove,
4927
4939
  onClick: () => r?.(t),
4928
- icon: Ar,
4940
+ icon: Fr,
4929
4941
  critical: !0
4930
- }), I;
4931
- }, [_, B, D, f, i, l, r, t]), K = () => {
4932
- m(!0), z(!1), p(t.href || null), w.current = !0;
4942
+ }), F;
4943
+ }, [E, R, D, f, i, l, r, t]), U = () => {
4944
+ m(!0), z(!1), p(t.href || null), y.current = !0;
4933
4945
  }, T = () => {
4934
4946
  m(!1), p(null), c(), setTimeout(() => {
4935
- w.current = !1;
4947
+ y.current = !1;
4936
4948
  }, 0);
4937
- }, y = u && h === t.href, S = q(
4949
+ }, w = u && h === t.href, k = q(
4938
4950
  () => g(
4939
4951
  "group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing",
4940
4952
  d && "touch-none",
4941
- x ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary",
4942
- A && "bg-f1-background-secondary",
4943
- y && "bg-f1-background-secondary"
4953
+ v ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary",
4954
+ I && "bg-f1-background-secondary",
4955
+ w && "bg-f1-background-secondary"
4944
4956
  ),
4945
- [x, A, y, d]
4946
- ), N = q(() => /* @__PURE__ */ o(U, { children: [
4957
+ [v, I, w, d]
4958
+ ), C = q(() => /* @__PURE__ */ o(K, { children: [
4947
4959
  /* @__PURE__ */ e("div", { className: "flex w-full items-center justify-between px-1.5 py-1.5", children: /* @__PURE__ */ e(Qs, { tooltip: n, children: /* @__PURE__ */ o(
4948
- ve,
4960
+ we,
4949
4961
  {
4950
4962
  onClick: t.onClick,
4951
4963
  href: t.href,
@@ -4953,7 +4965,7 @@ const Ys = ({
4953
4965
  className: g(
4954
4966
  // w-[calc(100%-24px-2px)] - here 24px is the size of the dropdown button and 2 px is the gap
4955
4967
  "flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline",
4956
- y && "pointer-events-none"
4968
+ w && "pointer-events-none"
4957
4969
  ),
4958
4970
  draggable: !1,
4959
4971
  children: [
@@ -4964,10 +4976,10 @@ const Ys = ({
4964
4976
  size: "md",
4965
4977
  className: g(
4966
4978
  "transition-colors",
4967
- x ? "text-f1-icon-bold" : "text-f1-icon"
4979
+ v ? "text-f1-icon-bold" : "text-f1-icon"
4968
4980
  )
4969
4981
  }
4970
- ) : t.avatar ? /* @__PURE__ */ e(Lr, { size: "xs", avatar: t.avatar }) : null,
4982
+ ) : t.avatar ? /* @__PURE__ */ e(Ar, { size: "xs", avatar: t.avatar }) : null,
4971
4983
  /* @__PURE__ */ e(
4972
4984
  me,
4973
4985
  {
@@ -4986,13 +4998,13 @@ const Ys = ({
4986
4998
  {
4987
4999
  className: g(
4988
5000
  "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",
4989
- A && "bg-f1-background-secondary opacity-100",
4990
- y && "opacity-100"
5001
+ I && "bg-f1-background-secondary opacity-100",
5002
+ w && "opacity-100"
4991
5003
  ),
4992
5004
  children: /* @__PURE__ */ e(
4993
- Ne,
5005
+ Ce,
4994
5006
  {
4995
- open: A,
5007
+ open: I,
4996
5008
  onOpenChange: z,
4997
5009
  items: L,
4998
5010
  children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ e(W, { icon: it, size: "sm" }) })
@@ -5000,23 +5012,23 @@ const Ys = ({
5000
5012
  )
5001
5013
  }
5002
5014
  )
5003
- ] }), [t, x, A, y, L, n]);
5015
+ ] }), [t, v, I, w, L, n]);
5004
5016
  return d ? /* @__PURE__ */ e(
5005
- Cn,
5017
+ On,
5006
5018
  {
5007
5019
  value: t,
5008
5020
  drag: "y",
5009
5021
  dragConstraints: a,
5010
5022
  dragElastic: 0.1,
5011
- onDragStart: K,
5023
+ onDragStart: U,
5012
5024
  onDragEnd: T,
5013
- className: S,
5025
+ className: k,
5014
5026
  whileDrag: {
5015
5027
  scale: 1.05
5016
5028
  },
5017
- children: N
5029
+ children: C
5018
5030
  }
5019
- ) : /* @__PURE__ */ e("div", { className: S, children: N });
5031
+ ) : /* @__PURE__ */ e("div", { className: k, children: C });
5020
5032
  }, ea = ({
5021
5033
  title: t,
5022
5034
  isOpen: n = !0,
@@ -5026,12 +5038,12 @@ const Ys = ({
5026
5038
  isDragging: s,
5027
5039
  wasDragging: i
5028
5040
  }) => {
5029
- const [c, d] = E(n), f = Ue(), u = () => {
5041
+ const [c, d] = _(n), f = Ue(), u = () => {
5030
5042
  if (s || i?.current) return;
5031
5043
  const m = !c;
5032
5044
  d(m), r?.(m);
5033
5045
  };
5034
- return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ o(_r, { open: c, children: [
5046
+ return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ o(Lr, { open: c, children: [
5035
5047
  /* @__PURE__ */ e("div", { className: "group relative flex items-center", children: /* @__PURE__ */ o(
5036
5048
  "div",
5037
5049
  {
@@ -5067,7 +5079,7 @@ const Ys = ({
5067
5079
  ]
5068
5080
  }
5069
5081
  ) }),
5070
- /* @__PURE__ */ e(Or, { forceMount: !0, className: "flex flex-col gap-1", children: /* @__PURE__ */ e(
5082
+ /* @__PURE__ */ e(Er, { forceMount: !0, className: "flex flex-col gap-1", children: /* @__PURE__ */ e(
5071
5083
  X.div,
5072
5084
  {
5073
5085
  initial: !1,
@@ -5092,7 +5104,7 @@ const Ys = ({
5092
5104
  onDragEnd: l,
5093
5105
  currentOrder: s
5094
5106
  }) => {
5095
- const { isDragging: i, setIsDragging: c } = It(), d = G(!1), f = Er(), u = () => {
5107
+ const { isDragging: i, setIsDragging: c } = It(), d = G(!1), f = rl(), u = () => {
5096
5108
  c(!0), d.current = !0;
5097
5109
  }, m = () => {
5098
5110
  c(!1), setTimeout(() => {
@@ -5116,13 +5128,13 @@ const Ys = ({
5116
5128
  "flex flex-col gap-0.5",
5117
5129
  i && !d.current && "pointer-events-none"
5118
5130
  ),
5119
- children: t.items.map((b, x) => /* @__PURE__ */ e(Zs, { item: b }, x))
5131
+ children: t.items.map((b, v) => /* @__PURE__ */ e(Zs, { item: b }, v))
5120
5132
  }
5121
5133
  )
5122
5134
  }
5123
5135
  );
5124
5136
  return n ? /* @__PURE__ */ e(
5125
- Cn,
5137
+ On,
5126
5138
  {
5127
5139
  id: t.id,
5128
5140
  value: t,
@@ -5169,9 +5181,9 @@ function nc({
5169
5181
  }) {
5170
5182
  const s = G(null), i = t.filter(
5171
5183
  (b) => b.isSortable === !1
5172
- ), [c, d] = E(
5184
+ ), [c, d] = _(
5173
5185
  t.filter((b) => b.isSortable !== !1)
5174
- ), [f, u] = E(0), m = Q((b) => {
5186
+ ), [f, u] = _(0), m = Q((b) => {
5175
5187
  d(b);
5176
5188
  }, []), h = Q(
5177
5189
  (b) => {
@@ -5179,7 +5191,7 @@ function nc({
5179
5191
  },
5180
5192
  [a]
5181
5193
  ), p = Ks();
5182
- return /* @__PURE__ */ e(qs, { children: /* @__PURE__ */ e(wn, { id: "sidebar-menu", children: /* @__PURE__ */ e(
5194
+ return /* @__PURE__ */ e(qs, { children: /* @__PURE__ */ e(vn, { id: "sidebar-menu", children: /* @__PURE__ */ e(
5183
5195
  Js,
5184
5196
  {
5185
5197
  disableDragging: p,
@@ -5208,82 +5220,82 @@ function Js({
5208
5220
  forceUpdate: d,
5209
5221
  disableDragging: f = !1
5210
5222
  }) {
5211
- const u = se(), { isDragging: m } = It(), h = t.some((v) => v.isRoot), p = t.filter((v) => !v.isRoot).length > 0, b = n.length > 0, x = G(null), [w, A] = E(i), z = i.length > 0;
5223
+ const u = se(), { isDragging: m } = It(), h = t.some((x) => x.isRoot), p = t.filter((x) => !x.isRoot).length > 0, b = n.length > 0, v = G(null), [y, I] = _(i), z = i.length > 0;
5212
5224
  $(() => {
5213
- JSON.stringify(i) !== JSON.stringify(w) && A(i);
5225
+ JSON.stringify(i) !== JSON.stringify(y) && I(i);
5214
5226
  }, [i]);
5215
- const B = (v) => {
5216
- A(v);
5227
+ const R = (x) => {
5228
+ I(x);
5217
5229
  }, D = Q(
5218
- (v) => {
5219
- const C = w.filter((k) => k.href !== v.href);
5220
- A(C), c?.(C);
5230
+ (x) => {
5231
+ const N = y.filter((S) => S.href !== x.href);
5232
+ I(N), c?.(N);
5221
5233
  },
5222
- [w, c]
5223
- ), _ = Q(
5224
- (v, C) => {
5225
- if (C < 0 || C >= w.length) return;
5226
- const k = [...w], [V] = k.splice(v, 1);
5227
- k.splice(C, 0, V), A(k), c?.(k);
5234
+ [y, c]
5235
+ ), E = Q(
5236
+ (x, N) => {
5237
+ if (N < 0 || N >= y.length) return;
5238
+ const S = [...y], [V] = S.splice(x, 1);
5239
+ S.splice(N, 0, V), I(S), c?.(S);
5228
5240
  },
5229
- [w, c]
5230
- ), [L, K] = E(!1), T = G(null);
5241
+ [y, c]
5242
+ ), [L, U] = _(!1), T = G(null);
5231
5243
  $(() => {
5232
- n.length > 0 && !L && (a([...n]), K(!0));
5244
+ n.length > 0 && !L && (a([...n]), U(!0));
5233
5245
  }, [n, a, L]), $(() => {
5234
- const v = () => {
5246
+ const x = () => {
5235
5247
  T.current !== null && window.clearTimeout(T.current), T.current = window.setTimeout(() => {
5236
5248
  r.current && n.length > 0 && d();
5237
5249
  }, 50);
5238
5250
  };
5239
- return window.addEventListener("resize", v), () => {
5240
- window.removeEventListener("resize", v), T.current !== null && window.clearTimeout(T.current);
5251
+ return window.addEventListener("resize", x), () => {
5252
+ window.removeEventListener("resize", x), T.current !== null && window.clearTimeout(T.current);
5241
5253
  };
5242
5254
  }, [r, n, d]);
5243
- const y = "flex flex-col gap-0.5", S = q(
5244
- () => w.reduce(
5245
- (v, C, k) => (C.label in v || (v[C.label] = []), v[C.label].push(k), v),
5255
+ const w = "flex flex-col gap-0.5", k = q(
5256
+ () => y.reduce(
5257
+ (x, N, S) => (N.label in x || (x[N.label] = []), x[N.label].push(S), x),
5246
5258
  {}
5247
5259
  ),
5248
- [w]
5249
- ), N = q(
5250
- () => z && w.map((v, C) => /* @__PURE__ */ e(
5260
+ [y]
5261
+ ), C = q(
5262
+ () => z && y.map((x, N) => /* @__PURE__ */ e(
5251
5263
  Xs,
5252
5264
  {
5253
5265
  isSortable: !f,
5254
- tooltip: (S[v.label] ?? []).length > 1 ? v.tooltip : void 0,
5255
- item: v,
5256
- dragConstraints: x,
5266
+ tooltip: (k[x.label] ?? []).length > 1 ? x.tooltip : void 0,
5267
+ item: x,
5268
+ dragConstraints: v,
5257
5269
  onRemove: D,
5258
- index: C,
5259
- total: w.length,
5260
- onMove: _,
5270
+ index: N,
5271
+ total: y.length,
5272
+ onMove: E,
5261
5273
  onReorderFinish: () => {
5262
- c?.(w);
5274
+ c?.(y);
5263
5275
  }
5264
5276
  },
5265
- `${v.href}-${v.label}`
5277
+ `${x.href}-${x.label}`
5266
5278
  )),
5267
5279
  [
5268
5280
  z,
5269
- w,
5270
- S,
5281
+ y,
5282
+ k,
5271
5283
  D,
5272
- _,
5284
+ E,
5273
5285
  c,
5274
5286
  f
5275
5287
  ]
5276
- ), I = "flex flex-col gap-3", M = q(() => n.map((v) => /* @__PURE__ */ e(
5288
+ ), F = "flex flex-col gap-3", B = q(() => n.map((x) => /* @__PURE__ */ e(
5277
5289
  nt,
5278
5290
  {
5279
- category: v,
5291
+ category: x,
5280
5292
  isSortable: !f,
5281
5293
  dragConstraints: r,
5282
5294
  onCollapse: l,
5283
5295
  onDragEnd: s,
5284
5296
  currentOrder: n
5285
5297
  },
5286
- v.id
5298
+ x.id
5287
5299
  )), [n, f, r, l, s]);
5288
5300
  return /* @__PURE__ */ o(
5289
5301
  "div",
@@ -5293,31 +5305,31 @@ function Js({
5293
5305
  m && "cursor-grabbing [&_*]:cursor-grabbing"
5294
5306
  ),
5295
5307
  children: [
5296
- h && /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-3 bg-transparent px-3", children: t.filter((v) => v.isRoot).map((v, C) => /* @__PURE__ */ e(
5308
+ h && /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-3 bg-transparent px-3", children: t.filter((x) => x.isRoot).map((x, N) => /* @__PURE__ */ e(
5297
5309
  nt,
5298
5310
  {
5299
- category: v,
5311
+ category: x,
5300
5312
  onCollapse: l
5301
5313
  },
5302
- `fixed-${C}`
5314
+ `fixed-${N}`
5303
5315
  )) }),
5304
- z && /* @__PURE__ */ e("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ e(ea, { title: u.favorites.favorites, children: /* @__PURE__ */ e("div", { ref: x, children: f ? /* @__PURE__ */ e("div", { className: y, children: N }) : /* @__PURE__ */ e(
5305
- Et,
5316
+ z && /* @__PURE__ */ e("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ e(ea, { title: u.favorites.favorites, children: /* @__PURE__ */ e("div", { ref: v, children: f ? /* @__PURE__ */ e("div", { className: w, children: C }) : /* @__PURE__ */ e(
5317
+ Dt,
5306
5318
  {
5307
5319
  axis: "y",
5308
- values: w,
5309
- onReorder: B,
5310
- className: y,
5311
- children: N
5320
+ values: y,
5321
+ onReorder: R,
5322
+ className: w,
5323
+ children: C
5312
5324
  }
5313
5325
  ) }) }) }),
5314
- 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(
5326
+ p && /* @__PURE__ */ e("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: t.filter((x) => !x.isRoot).map((x, N) => /* @__PURE__ */ e(
5315
5327
  nt,
5316
5328
  {
5317
- category: v,
5329
+ category: x,
5318
5330
  onCollapse: l
5319
5331
  },
5320
- `fixed-${C}`
5332
+ `fixed-${N}`
5321
5333
  )) }),
5322
5334
  b && /* @__PURE__ */ e(
5323
5335
  "div",
@@ -5326,15 +5338,15 @@ function Js({
5326
5338
  "mt-3 flex w-full flex-col gap-3 bg-transparent px-3 [&_li]:list-none"
5327
5339
  ),
5328
5340
  ref: r,
5329
- children: f ? /* @__PURE__ */ e("div", { className: I, children: M }) : /* @__PURE__ */ e(
5330
- Et,
5341
+ children: f ? /* @__PURE__ */ e("div", { className: F, children: B }) : /* @__PURE__ */ e(
5342
+ Dt,
5331
5343
  {
5332
5344
  axis: "y",
5333
5345
  values: n,
5334
5346
  onReorder: a,
5335
5347
  layoutScroll: !0,
5336
- className: I,
5337
- children: M
5348
+ className: F,
5349
+ children: B
5338
5350
  }
5339
5351
  )
5340
5352
  }
@@ -5365,10 +5377,10 @@ function ac({
5365
5377
  ...r,
5366
5378
  children: [
5367
5379
  /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
5368
- /* @__PURE__ */ e(W, { icon: Dr, size: "md" }),
5380
+ /* @__PURE__ */ e(W, { icon: _r, size: "md" }),
5369
5381
  /* @__PURE__ */ e("span", { children: n })
5370
5382
  ] }),
5371
- /* @__PURE__ */ e("div", { className: "hidden xs:block", children: /* @__PURE__ */ e(Tr, { keys: a }) })
5383
+ /* @__PURE__ */ e("div", { className: "hidden xs:block", children: /* @__PURE__ */ e(Or, { keys: a }) })
5372
5384
  ]
5373
5385
  }
5374
5386
  ) });
@@ -5400,7 +5412,7 @@ function ei({
5400
5412
  footer: a,
5401
5413
  onFooterDropdownClick: r
5402
5414
  }) {
5403
- const { sidebarState: l, isSmallScreen: s } = ke(), i = Ue(), [c, d] = lt({ threshold: 1 }), [f, u] = lt({ threshold: 1 }), m = se(), h = {
5415
+ const { sidebarState: l, isSmallScreen: s } = Se(), i = Ue(), [c, d] = lt({ threshold: 1 }), [f, u] = lt({ threshold: 1 }), m = se(), h = {
5404
5416
  x: {
5405
5417
  ease: l !== "locked" ? s ? [0.25, 0.46, 0.45, 0.94] : [0.175, 0.885, 0.32, 1.1] : [0, 0, 0.58, 1],
5406
5418
  duration: i ? 0 : l !== "locked" && !s ? 0.3 : 0.2
@@ -5408,7 +5420,7 @@ function ei({
5408
5420
  top: { duration: i ? 0 : 0.1 },
5409
5421
  left: { duration: i ? 0 : 0.1 },
5410
5422
  default: { duration: i ? 0 : 0.2 }
5411
- }, p = () => a ? tl(a) && r ? _n(
5423
+ }, p = () => a ? Xr(a) && r ? An(
5412
5424
  a,
5413
5425
  {
5414
5426
  onDropdownClick: r
@@ -5459,7 +5471,7 @@ function ei({
5459
5471
  "bottom-ref"
5460
5472
  )
5461
5473
  ] }),
5462
- /* @__PURE__ */ o(Ee, { children: [
5474
+ /* @__PURE__ */ o(_e, { children: [
5463
5475
  !d && /* @__PURE__ */ e(Qt, { position: "top" }, "shadow-scroll-top"),
5464
5476
  !u && /* @__PURE__ */ e(Qt, { position: "bottom" }, "shadow-scroll-bottom")
5465
5477
  ] })
@@ -5481,12 +5493,12 @@ const rc = ae(ei), ti = {
5481
5493
  size: "sm"
5482
5494
  },
5483
5495
  rejected: {
5484
- icon: Ce,
5496
+ icon: ke,
5485
5497
  type: "critical",
5486
5498
  size: "sm"
5487
5499
  }
5488
5500
  }, ni = {
5489
- icon: yn,
5501
+ icon: wn,
5490
5502
  type: "neutral",
5491
5503
  size: "sm"
5492
5504
  }, ai = {
@@ -5527,7 +5539,7 @@ const li = ({
5527
5539
  ] }),
5528
5540
  /* @__PURE__ */ e($e, { text: i, variant: ti[a] })
5529
5541
  ] }),
5530
- /* @__PURE__ */ e("div", { className: "w-full", children: /* @__PURE__ */ e(kn, { avatars: c, layout: "fill", type: "person", size: "md" }) })
5542
+ /* @__PURE__ */ e("div", { className: "w-full", children: /* @__PURE__ */ e(Nn, { avatars: c, layout: "fill", type: "person", size: "md" }) })
5531
5543
  ] });
5532
5544
  }, si = ({ steps: t }) => {
5533
5545
  const a = se().approvals.history, r = t.findIndex((l) => l.status === "pending");
@@ -5547,7 +5559,7 @@ const li = ({
5547
5559
  ),
5548
5560
  s !== t.length - 1 && /* @__PURE__ */ e("div", { className: "h-[96px] w-px bg-f1-border-secondary" })
5549
5561
  ] }, l.title)) }),
5550
- /* @__PURE__ */ e("div", { className: "flex w-full flex-col rounded-xl border border-solid border-f1-border", children: t.map((l, s) => /* @__PURE__ */ o(U, { children: [
5562
+ /* @__PURE__ */ e("div", { className: "flex w-full flex-col rounded-xl border border-solid border-f1-border", children: t.map((l, s) => /* @__PURE__ */ o(K, { children: [
5551
5563
  /* @__PURE__ */ e(
5552
5564
  li,
5553
5565
  {
@@ -5712,7 +5724,7 @@ const li = ({
5712
5724
  height: h,
5713
5725
  width: p,
5714
5726
  ...b
5715
- }, x) {
5727
+ }, v) {
5716
5728
  return /* @__PURE__ */ e(
5717
5729
  "div",
5718
5730
  {
@@ -5733,7 +5745,7 @@ const li = ({
5733
5745
  }),
5734
5746
  n
5735
5747
  ),
5736
- ref: x,
5748
+ ref: v,
5737
5749
  ...b
5738
5750
  }
5739
5751
  );
@@ -5796,7 +5808,7 @@ const li = ({
5796
5808
  },
5797
5809
  oi
5798
5810
  ), hi = ({ children: t }) => {
5799
- const { enabled: n } = Sn();
5811
+ const { enabled: n } = Dn();
5800
5812
  return /* @__PURE__ */ e(
5801
5813
  "div",
5802
5814
  {
@@ -5820,7 +5832,7 @@ const li = ({
5820
5832
  }
5821
5833
  );
5822
5834
  }, gi = () => /* @__PURE__ */ e("div", { className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary" }), pi = j(function({ header: n, children: a, action: r, summaries: l, alert: s, status: i, fullHeight: c = !1 }, d) {
5823
- const { enabled: f, toggle: u } = Sn();
5835
+ const { enabled: f, toggle: u } = Dn();
5824
5836
  $(() => {
5825
5837
  if (s && i)
5826
5838
  throw Error(
@@ -5845,12 +5857,12 @@ const li = ({
5845
5857
  n.title && /* @__PURE__ */ e(wt, { className: "truncate", children: n.title }),
5846
5858
  n.subtitle && /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-1", children: [
5847
5859
  /* @__PURE__ */ e(gi, {}),
5848
- /* @__PURE__ */ e(In, { className: "truncate", children: n.subtitle })
5860
+ /* @__PURE__ */ e(Cn, { className: "truncate", children: n.subtitle })
5849
5861
  ] }),
5850
5862
  n.info && /* @__PURE__ */ e(be, { label: n.info, children: /* @__PURE__ */ e(
5851
5863
  W,
5852
5864
  {
5853
- icon: Fn,
5865
+ icon: kn,
5854
5866
  size: "sm",
5855
5867
  className: "text-f1-foreground-secondary"
5856
5868
  }
@@ -5858,10 +5870,10 @@ const li = ({
5858
5870
  n.count && /* @__PURE__ */ e("div", { className: "ml-0.5", children: /* @__PURE__ */ e(He, { value: n.count }) })
5859
5871
  ] }),
5860
5872
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-3", children: [
5861
- s && /* @__PURE__ */ e(An, { text: s, level: "critical" }),
5873
+ s && /* @__PURE__ */ e(Sn, { text: s, level: "critical" }),
5862
5874
  i && /* @__PURE__ */ e($e, { text: i.text, variant: i.variant }),
5863
5875
  n.link && /* @__PURE__ */ e(
5864
- zr,
5876
+ Dr,
5865
5877
  {
5866
5878
  onClick: h,
5867
5879
  href: n.link.url,
@@ -5872,11 +5884,11 @@ const li = ({
5872
5884
  ] })
5873
5885
  ] }),
5874
5886
  n.comment && /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-3 overflow-visible", children: [
5875
- /* @__PURE__ */ e(hi, { children: /* @__PURE__ */ e(Pr, { children: n.comment }) }),
5887
+ /* @__PURE__ */ e(hi, { children: /* @__PURE__ */ e(Tr, { children: n.comment }) }),
5876
5888
  !!n.canBeBlurred && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
5877
- R,
5889
+ M,
5878
5890
  {
5879
- icon: f ? Br : Rr,
5891
+ icon: f ? zr : Pr,
5880
5892
  hideLabel: !0,
5881
5893
  label: "hide/show",
5882
5894
  variant: "outline",
@@ -5896,11 +5908,11 @@ const li = ({
5896
5908
  ] })
5897
5909
  ] }, b)) }),
5898
5910
  ie.Children.toArray(a).filter(m).map((p, b) => /* @__PURE__ */ o(ie.Fragment, { children: [
5899
- b > 0 && /* @__PURE__ */ e($r, { bare: !0 }),
5911
+ b > 0 && /* @__PURE__ */ e(ll, { bare: !0 }),
5900
5912
  p
5901
5913
  ] }, b))
5902
5914
  ] }),
5903
- r && /* @__PURE__ */ e(Wr, { children: /* @__PURE__ */ e(R, { variant: "neutral", size: "sm", ...r }) })
5915
+ r && /* @__PURE__ */ e(Br, { children: /* @__PURE__ */ e(M, { variant: "neutral", size: "sm", ...r }) })
5904
5916
  ]
5905
5917
  }
5906
5918
  );
@@ -5932,7 +5944,7 @@ const li = ({
5932
5944
  "aria-hidden": !0,
5933
5945
  children: [
5934
5946
  n?.title ? /* @__PURE__ */ e(wt, { children: n.title }) : /* @__PURE__ */ e(O, { className: "h-4 w-full max-w-16" }),
5935
- n?.subtitle && /* @__PURE__ */ e(In, { children: n.subtitle })
5947
+ n?.subtitle && /* @__PURE__ */ e(Cn, { children: n.subtitle })
5936
5948
  ]
5937
5949
  }
5938
5950
  ) }),
@@ -5954,14 +5966,14 @@ const li = ({
5954
5966
  }
5955
5967
  );
5956
5968
  }
5957
- ), ye = ae(
5969
+ ), Ne = ae(
5958
5970
  H("Widget", ee(pi, xi))
5959
5971
  ), ce = Object.assign(
5960
5972
  j(function({ chart: n, summaries: a, ...r }, l) {
5961
- return /* @__PURE__ */ e(ye, { ref: l, ...r, summaries: a, children: n && /* @__PURE__ */ e("div", { className: "min-h-52 min-w-52 grow pt-2", children: n }) });
5973
+ return /* @__PURE__ */ e(Ne, { ref: l, ...r, summaries: a, children: n && /* @__PURE__ */ e("div", { className: "min-h-52 min-w-52 grow pt-2", children: n }) });
5962
5974
  }),
5963
5975
  {
5964
- Skeleton: ye.Skeleton
5976
+ Skeleton: Ne.Skeleton
5965
5977
  }
5966
5978
  ), vi = ee(
5967
5979
  j(function({ canBeBlurred: n, ...a }, r) {
@@ -5980,7 +5992,7 @@ const li = ({
5980
5992
  {
5981
5993
  ref: r,
5982
5994
  ...l,
5983
- chart: /* @__PURE__ */ e(il, { ...s, canBeBlurred: n })
5995
+ chart: /* @__PURE__ */ e(sl, { ...s, canBeBlurred: n })
5984
5996
  }
5985
5997
  );
5986
5998
  }),
@@ -5994,7 +6006,7 @@ const li = ({
5994
6006
  {
5995
6007
  ref: a,
5996
6008
  ...n,
5997
- chart: /* @__PURE__ */ e(ol, { yAxis: { hide: !0 }, ...n.chart })
6009
+ chart: /* @__PURE__ */ e(il, { yAxis: { hide: !0 }, ...n.chart })
5998
6010
  }
5999
6011
  );
6000
6012
  }), Ni = H(
@@ -6008,7 +6020,7 @@ const li = ({
6008
6020
  {
6009
6021
  ref: a,
6010
6022
  ...n,
6011
- chart: /* @__PURE__ */ e(cl, { yAxis: { hide: !0 }, ...n.chart })
6023
+ chart: /* @__PURE__ */ e(ol, { yAxis: { hide: !0 }, ...n.chart })
6012
6024
  }
6013
6025
  );
6014
6026
  }
@@ -6025,7 +6037,7 @@ const li = ({
6025
6037
  {
6026
6038
  ref: a,
6027
6039
  ...n,
6028
- chart: /* @__PURE__ */ e(dl, { ...n.chart })
6040
+ chart: /* @__PURE__ */ e(cl, { ...n.chart })
6029
6041
  }
6030
6042
  );
6031
6043
  }
@@ -6052,7 +6064,7 @@ const li = ({
6052
6064
  {
6053
6065
  ref: a,
6054
6066
  ...n,
6055
- chart: /* @__PURE__ */ e(ul, { xAxis: { hide: !0 }, ...n.chart })
6067
+ chart: /* @__PURE__ */ e(dl, { xAxis: { hide: !0 }, ...n.chart })
6056
6068
  }
6057
6069
  );
6058
6070
  }
@@ -6422,7 +6434,7 @@ const li = ({
6422
6434
  /* @__PURE__ */ o("div", { className: "relative flex min-h-28 flex-1 flex-col items-start gap-5", children: [
6423
6435
  /* @__PURE__ */ e("p", { className: "flex w-3/4 text-xl font-semibold", children: a }),
6424
6436
  r && /* @__PURE__ */ e(
6425
- R,
6437
+ M,
6426
6438
  {
6427
6439
  label: r,
6428
6440
  icon: l,
@@ -6440,11 +6452,11 @@ const li = ({
6440
6452
  H("ChartWidgetEmptyState", $i)
6441
6453
  );
6442
6454
  function Wi(t, n) {
6443
- const a = G(null), r = G(null), [l, s] = E({
6455
+ const a = G(null), r = G(null), [l, s] = _({
6444
6456
  visibleItems: [],
6445
6457
  overflowItems: []
6446
6458
  });
6447
- Mr({
6459
+ Rr({
6448
6460
  ref: a,
6449
6461
  onResize: () => {
6450
6462
  f();
@@ -6465,9 +6477,9 @@ function Wi(t, n) {
6465
6477
  (u, m) => {
6466
6478
  let h = 0, p = 0;
6467
6479
  for (let b = 0; b < u.length; b++) {
6468
- const x = p + u[b];
6469
- if (x > m + 30) break;
6470
- p = x, p = i(
6480
+ const v = p + u[b];
6481
+ if (v > m + 30) break;
6482
+ p = v, p = i(
6471
6483
  p,
6472
6484
  b,
6473
6485
  u.length
@@ -6675,14 +6687,14 @@ function vc({
6675
6687
  withEmoji: "emoji" in c && !!c.emoji,
6676
6688
  withPointerCursor: s,
6677
6689
  children: [
6678
- "alert" in c && c.alert && /* @__PURE__ */ e(jr, { type: c.alert }),
6679
- "emoji" in c && c.emoji && /* @__PURE__ */ e(Vr, { emoji: c.emoji }),
6690
+ "alert" in c && c.alert && /* @__PURE__ */ e($r, { type: c.alert }),
6691
+ "emoji" in c && c.emoji && /* @__PURE__ */ e(Wr, { emoji: c.emoji }),
6680
6692
  /* @__PURE__ */ o("div", { className: "flex-1", children: [
6681
6693
  /* @__PURE__ */ e("p", { className: "line-clamp-1 font-medium", children: n }),
6682
6694
  /* @__PURE__ */ e("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: a })
6683
6695
  ] }),
6684
6696
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ e(
6685
- kn,
6697
+ Nn,
6686
6698
  {
6687
6699
  avatars: r,
6688
6700
  remainingCount: l,
@@ -6709,7 +6721,7 @@ function nn({
6709
6721
  return /* @__PURE__ */ o(Gi, { onClick: (c) => {
6710
6722
  c.preventDefault(), r?.(t);
6711
6723
  }, className: s, children: [
6712
- /* @__PURE__ */ e(xn, { module: l ?? "inbox", size: "md" }),
6724
+ /* @__PURE__ */ e(bn, { module: l ?? "inbox", size: "md" }),
6713
6725
  /* @__PURE__ */ o("div", { className: "flex-1", children: [
6714
6726
  /* @__PURE__ */ e("p", { className: "line-clamp-1 font-medium", children: n }),
6715
6727
  /* @__PURE__ */ e("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: a })
@@ -6756,8 +6768,8 @@ function ht({
6756
6768
  )
6757
6769
  ] }),
6758
6770
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2", children: [
6759
- a && /* @__PURE__ */ e(An, { ...a }),
6760
- r && /* @__PURE__ */ e(Le, { ...r }),
6771
+ a && /* @__PURE__ */ e(Sn, { ...a }),
6772
+ r && /* @__PURE__ */ e(Ee, { ...r }),
6761
6773
  !!l && /* @__PURE__ */ e(He, { value: l })
6762
6774
  ] })
6763
6775
  ] });
@@ -6811,7 +6823,7 @@ const Ui = ({ title: t, info: n }) => /* @__PURE__ */ o("div", { className: "fle
6811
6823
  {
6812
6824
  label: r.label,
6813
6825
  description: r.description,
6814
- children: /* @__PURE__ */ e(W, { icon: Fn, size: "sm" })
6826
+ children: /* @__PURE__ */ e(W, { icon: kn, size: "sm" })
6815
6827
  }
6816
6828
  ) })
6817
6829
  ] }),
@@ -6835,7 +6847,7 @@ function Cc({
6835
6847
  /* @__PURE__ */ e("span", { className: "text-xl text-f1-foreground-secondary", children: n })
6836
6848
  ] }),
6837
6849
  /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e(
6838
- fl,
6850
+ ul,
6839
6851
  {
6840
6852
  data: a,
6841
6853
  legend: l,
@@ -6908,11 +6920,11 @@ const na = (t, n) => ((n ?? 0) < -1 * (t ?? 0) ? -1 * t : n) ?? 0, Ki = ({
6908
6920
  let c = (l ?? 0) < 0 ? Math.abs(l ?? 0) * 60 : 0, f = [
6909
6921
  ...[...t].reverse().reduce(
6910
6922
  (u, m) => {
6911
- const h = (m.to.getTime() - m.from.getTime()) / 1e3, p = m.variant === "clocked-in" ? Math.min(h, c) : 0, x = (h - p) / s;
6923
+ const h = (m.to.getTime() - m.from.getTime()) / 1e3, p = m.variant === "clocked-in" ? Math.min(h, c) : 0, v = (h - p) / s;
6912
6924
  return c -= p, m.variant === "clocked-in" && r ? [
6913
6925
  ...u,
6914
6926
  {
6915
- value: p / s + x,
6927
+ value: p / s + v,
6916
6928
  color: xe.overtime
6917
6929
  }
6918
6930
  ] : [
@@ -6922,7 +6934,7 @@ const na = (t, n) => ((n ?? 0) < -1 * (t ?? 0) ? -1 * t : n) ?? 0, Ki = ({
6922
6934
  color: xe.overtime
6923
6935
  },
6924
6936
  {
6925
- value: x,
6937
+ value: v,
6926
6938
  color: xe[m.variant]
6927
6939
  }
6928
6940
  ];
@@ -6968,8 +6980,8 @@ function Xi({
6968
6980
  remainingMinutes: a
6969
6981
  });
6970
6982
  return /* @__PURE__ */ o("div", { className: "relative h-40 w-40", children: [
6971
- /* @__PURE__ */ e(ml, { width: 156, height: 156, children: /* @__PURE__ */ e(
6972
- hl,
6983
+ /* @__PURE__ */ e(fl, { width: 156, height: 156, children: /* @__PURE__ */ e(
6984
+ ml,
6973
6985
  {
6974
6986
  data: r,
6975
6987
  cx: 74,
@@ -6984,7 +6996,7 @@ function Xi({
6984
6996
  strokeWidth: 0,
6985
6997
  isAnimationActive: !1,
6986
6998
  children: r.map((c, d) => /* @__PURE__ */ e(
6987
- Gr,
6999
+ Mr,
6988
7000
  {
6989
7001
  fill: c.color,
6990
7002
  role: "presentation",
@@ -7024,7 +7036,7 @@ function Ji({
7024
7036
  children: t ?? n
7025
7037
  }
7026
7038
  ),
7027
- /* @__PURE__ */ e(W, { icon: Hr })
7039
+ /* @__PURE__ */ e(W, { icon: jr })
7028
7040
  ]
7029
7041
  }
7030
7042
  );
@@ -7045,51 +7057,51 @@ function kc({
7045
7057
  onChangeBreakTypeId: h,
7046
7058
  canShowBreakButton: p = !0,
7047
7059
  canSeeGraph: b = !0,
7048
- canSeeRemainingTime: x = !0,
7060
+ canSeeRemainingTime: v = !0,
7049
7061
  // onClickProjectSelector,
7050
- onChangeLocationId: w,
7051
- canShowProject: A = !0,
7062
+ onChangeLocationId: y,
7063
+ canShowProject: I = !0,
7052
7064
  projectSelectorElement: z,
7053
- breakTypeName: B
7065
+ breakTypeName: R
7054
7066
  }) {
7055
- const { status: D, statusText: _, subtitle: L, statusColor: K } = Ki({
7067
+ const { status: D, statusText: E, subtitle: L, statusColor: U } = Ki({
7056
7068
  data: a,
7057
7069
  labels: r,
7058
7070
  trackedMinutes: t,
7059
7071
  remainingMinutes: n,
7060
- canSeeRemainingTime: x
7061
- }), T = D === "clocked-out", y = m?.map((P) => ({
7072
+ canSeeRemainingTime: v
7073
+ }), T = D === "clocked-out", w = m?.map((P) => ({
7062
7074
  value: P.id,
7063
7075
  label: P.duration ? `${P.name} · ${P.duration}` : P.name,
7064
7076
  description: P.description,
7065
7077
  tag: P.isPaid ? r.paid : r.unpaid
7066
- })) ?? [], [S, N] = E(!1), I = () => {
7067
- if (y.length > 1)
7068
- S || N(!0);
7078
+ })) ?? [], [k, C] = _(!1), F = () => {
7079
+ if (w.length > 1)
7080
+ k || C(!0);
7069
7081
  else {
7070
- const P = y?.[0]?.value;
7082
+ const P = w?.[0]?.value;
7071
7083
  u?.(P);
7072
7084
  }
7073
- }, M = (P) => {
7074
- h?.(P), N(!1), u?.(P);
7075
- }, v = T && s.length && !c && i, C = s.find((P) => P.id === l), k = s.map((P) => ({
7085
+ }, B = (P) => {
7086
+ h?.(P), C(!1), u?.(P);
7087
+ }, x = T && s.length && !c && i, N = s.find((P) => P.id === l), S = s.map((P) => ({
7076
7088
  value: P.id,
7077
7089
  label: P.name,
7078
7090
  icon: P.icon
7079
- })), V = D === "break", [re, le] = E(!1);
7091
+ })), V = D === "break", [re, le] = _(!1);
7080
7092
  return /* @__PURE__ */ e("div", { className: "@container", children: /* @__PURE__ */ o("div", { className: "flex-grow flex-col", children: [
7081
7093
  /* @__PURE__ */ o("div", { className: "flex flex-col-reverse items-center gap-2 @xs:flex-row", children: [
7082
7094
  /* @__PURE__ */ o("div", { className: "flex-1 space-y-4", children: [
7083
7095
  /* @__PURE__ */ o("div", { className: "flex flex-col items-center space-y-0.5 @xs:items-start", children: [
7084
7096
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
7085
- /* @__PURE__ */ e("span", { className: "line-clamp-1 text-2xl font-semibold text-f1-foreground", children: _ }),
7097
+ /* @__PURE__ */ e("span", { className: "line-clamp-1 text-2xl font-semibold text-f1-foreground", children: E }),
7086
7098
  /* @__PURE__ */ o("div", { className: "relative aspect-square h-4", children: [
7087
7099
  /* @__PURE__ */ e(
7088
7100
  X.div,
7089
7101
  {
7090
7102
  className: "absolute inset-0 rounded-full opacity-20",
7091
7103
  style: {
7092
- backgroundColor: K
7104
+ backgroundColor: U
7093
7105
  },
7094
7106
  initial: { scale: 0.5, opacity: 0.6 },
7095
7107
  animate: { scale: 1.6, opacity: 0 },
@@ -7105,7 +7117,7 @@ function kc({
7105
7117
  {
7106
7118
  className: "absolute inset-[3px] rounded-full",
7107
7119
  style: {
7108
- backgroundColor: K
7120
+ backgroundColor: U
7109
7121
  }
7110
7122
  }
7111
7123
  )
@@ -7115,71 +7127,71 @@ function kc({
7115
7127
  ] }),
7116
7128
  /* @__PURE__ */ o("div", { className: "flex justify-center gap-2 @xs:justify-start", children: [
7117
7129
  D === "clocked-out" && /* @__PURE__ */ e("div", { className: "mr-3 @xs:mr-0", children: /* @__PURE__ */ e(
7118
- R,
7130
+ M,
7119
7131
  {
7120
7132
  onClick: d,
7121
7133
  label: r.clockIn,
7122
- icon: _t
7134
+ icon: Et
7123
7135
  }
7124
7136
  ) }),
7125
- D === "clocked-in" && /* @__PURE__ */ o(U, { children: [
7126
- p && /* @__PURE__ */ e(U, { children: y.length > 1 && h ? /* @__PURE__ */ e(
7137
+ D === "clocked-in" && /* @__PURE__ */ o(K, { children: [
7138
+ p && /* @__PURE__ */ e(K, { children: w.length > 1 && h ? /* @__PURE__ */ e(
7127
7139
  We,
7128
7140
  {
7129
7141
  label: r.break,
7130
7142
  hideLabel: !0,
7131
7143
  value: "",
7132
- options: y,
7133
- onChange: M,
7134
- open: S,
7135
- onOpenChange: N,
7144
+ options: w,
7145
+ onChange: B,
7146
+ open: k,
7147
+ onOpenChange: C,
7136
7148
  children: /* @__PURE__ */ e("div", { "aria-label": "Select break type", children: /* @__PURE__ */ e(
7137
- R,
7149
+ M,
7138
7150
  {
7139
7151
  label: r.break,
7140
7152
  variant: "neutral",
7141
- icon: Ot,
7153
+ icon: _t,
7142
7154
  hideLabel: !0
7143
7155
  }
7144
7156
  ) })
7145
7157
  }
7146
7158
  ) : /* @__PURE__ */ e(
7147
- R,
7159
+ M,
7148
7160
  {
7149
- onClick: I,
7161
+ onClick: F,
7150
7162
  label: r.break,
7151
7163
  variant: "neutral",
7152
- icon: Ot,
7164
+ icon: _t,
7153
7165
  hideLabel: !0
7154
7166
  }
7155
7167
  ) }),
7156
7168
  /* @__PURE__ */ e(
7157
- R,
7169
+ M,
7158
7170
  {
7159
7171
  onClick: f,
7160
7172
  label: r.clockOut,
7161
7173
  variant: "neutral",
7162
- icon: Dt
7174
+ icon: Ot
7163
7175
  }
7164
7176
  )
7165
7177
  ] }),
7166
- D === "break" && /* @__PURE__ */ o(U, { children: [
7178
+ D === "break" && /* @__PURE__ */ o(K, { children: [
7167
7179
  /* @__PURE__ */ e(
7168
- R,
7180
+ M,
7169
7181
  {
7170
7182
  onClick: f,
7171
7183
  label: r.clockOut,
7172
7184
  variant: "neutral",
7173
- icon: Dt,
7185
+ icon: Ot,
7174
7186
  hideLabel: !0
7175
7187
  }
7176
7188
  ),
7177
7189
  /* @__PURE__ */ e(
7178
- R,
7190
+ M,
7179
7191
  {
7180
7192
  onClick: d,
7181
7193
  label: r.resume,
7182
- icon: _t
7194
+ icon: Et
7183
7195
  }
7184
7196
  )
7185
7197
  ] })
@@ -7190,44 +7202,44 @@ function kc({
7190
7202
  {
7191
7203
  data: a,
7192
7204
  trackedMinutes: t,
7193
- remainingMinutes: x ? n : 0
7205
+ remainingMinutes: v ? n : 0
7194
7206
  }
7195
7207
  )
7196
7208
  ] }),
7197
- /* @__PURE__ */ e("div", { className: "mt-6 flex flex-row flex-wrap items-center justify-center gap-2 @xs:justify-start", children: v ? /* @__PURE__ */ o(U, { children: [
7209
+ /* @__PURE__ */ e("div", { className: "mt-6 flex flex-row flex-wrap items-center justify-center gap-2 @xs:justify-start", children: x ? /* @__PURE__ */ o(K, { children: [
7198
7210
  /* @__PURE__ */ e(
7199
7211
  We,
7200
7212
  {
7201
7213
  label: r.selectLocation,
7202
7214
  hideLabel: !0,
7203
7215
  value: l,
7204
- options: k,
7205
- onChange: w,
7216
+ options: S,
7217
+ onChange: y,
7206
7218
  open: re,
7207
7219
  onOpenChange: le,
7208
7220
  disabled: c,
7209
7221
  children: /* @__PURE__ */ e("div", { "aria-label": "Select location", children: /* @__PURE__ */ e(
7210
7222
  Ji,
7211
7223
  {
7212
- text: C?.name,
7224
+ text: N?.name,
7213
7225
  placeholder: r.selectLocation,
7214
- icon: C?.icon
7226
+ icon: N?.icon
7215
7227
  }
7216
7228
  ) })
7217
7229
  }
7218
7230
  ),
7219
- A && z
7220
- ] }) : /* @__PURE__ */ o(U, { children: [
7221
- i && C && /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(Le, { text: C.name, icon: C.icon }) }),
7222
- A && z,
7223
- V && B && /* @__PURE__ */ e(Le, { text: B })
7231
+ I && z
7232
+ ] }) : /* @__PURE__ */ o(K, { children: [
7233
+ i && N && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(Ee, { text: N.name, icon: N.icon }) }),
7234
+ I && z,
7235
+ V && R && /* @__PURE__ */ e(Ee, { text: R })
7224
7236
  ] }) })
7225
7237
  ] }) });
7226
7238
  }
7227
7239
  const Qi = {
7228
- done: qr,
7229
- "in-progress": Kr,
7230
- todo: Ur
7240
+ done: Hr,
7241
+ "in-progress": Gr,
7242
+ todo: Vr
7231
7243
  }, eo = {
7232
7244
  done: "text-f1-icon-success",
7233
7245
  "in-progress": "text-f1-icon-info",
@@ -7258,7 +7270,7 @@ function to({
7258
7270
  } : void 0,
7259
7271
  rawTag: t.badge && !t.badge.isPastDue ? {
7260
7272
  text: t.badge.text,
7261
- icon: Yr
7273
+ icon: Ur
7262
7274
  } : void 0,
7263
7275
  count: t.counter,
7264
7276
  onClick: l
@@ -7374,7 +7386,7 @@ var No = ({ stones: t, containerSize: n }) => {
7374
7386
  let r = a.getBoundingClientRect();
7375
7387
  return n.push({ width: r.width, height: r.height }), n;
7376
7388
  }, []), ko = ({ boxesRefs: t, wrapperRef: n, children: a, windowWidth: r, wrapperWidth: l }) => {
7377
- let [{ positions: s, containerHeight: i, stones: c, availableSpots: d }, f] = E({ positions: [], containerHeight: null, stones: [], availableSpots: [] });
7389
+ let [{ positions: s, containerHeight: i, stones: c, availableSpots: d }, f] = _({ positions: [], containerHeight: null, stones: [], availableSpots: [] });
7378
7390
  return $(() => {
7379
7391
  var u, m;
7380
7392
  let h = Co(t.current), p = (m = (u = n.current) == null ? void 0 : u.offsetWidth) != null ? m : 0;
@@ -7399,7 +7411,7 @@ function Lo(t, n, a) {
7399
7411
  };
7400
7412
  }
7401
7413
  var Eo = () => {
7402
- let [t, n] = E(), a = G(Lo(n, 300));
7414
+ let [t, n] = _(), a = G(Lo(n, 300));
7403
7415
  return $(() => {
7404
7416
  let r = () => {
7405
7417
  a.current(window.innerWidth);
@@ -7409,7 +7421,7 @@ var Eo = () => {
7409
7421
  };
7410
7422
  }, []), t;
7411
7423
  }, _o = (t) => {
7412
- let [n, a] = E(null);
7424
+ let [n, a] = _(null);
7413
7425
  return $(() => {
7414
7426
  let r = new ResizeObserver((l) => {
7415
7427
  for (let s of l) a(s.contentRect.width);
@@ -7421,15 +7433,15 @@ var Eo = () => {
7421
7433
  }, Oo = (t) => {
7422
7434
  var n = t, { children: a, style: r, transition: l = !1, transitionDuration: s = 500, transitionStep: i = 50 } = n, c = lo(n, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
7423
7435
  let d = G([]), f = G(null), u = Eo(), m = _o(f), { positions: h, containerHeight: p } = ko({ boxesRefs: d, wrapperRef: f, children: a, windowWidth: u, wrapperWidth: m }), b = oe({ minHeight: p ?? 0, position: "relative" }, r);
7424
- return e("div", Je(oe({ ref: f, style: b }, c), { children: On.map(a, (x, w) => {
7425
- if (typeof x != "object" || !x || !("type" in x)) return x;
7426
- let A = { style: Ao({ style: x.props.style, position: h[w], transition: l, transitionDuration: s }), ref: (z) => d.current[w] = z };
7427
- return _n(x, oe(oe({}, x.props), A));
7436
+ return e("div", Je(oe({ ref: f, style: b }, c), { children: Ln.map(a, (v, y) => {
7437
+ if (typeof v != "object" || !v || !("type" in v)) return v;
7438
+ let I = { style: Ao({ style: v.props.style, position: h[y], transition: l, transitionDuration: s }), ref: (z) => d.current[y] = z };
7439
+ return An(v, oe(oe({}, v.props), I));
7428
7440
  }) }));
7429
7441
  };
7430
7442
  const Do = { sm: 340, md: 480, lg: 640 }, rn = j(
7431
7443
  function({ children: n, widgetWidth: a = "sm" }, r) {
7432
- const l = Do[a], [s, i] = E(), c = On.toArray(n), d = G(null);
7444
+ const l = Do[a], [s, i] = _(), c = Ln.toArray(n), d = G(null);
7433
7445
  return $(() => {
7434
7446
  const f = () => {
7435
7447
  const u = d.current?.offsetWidth;
@@ -7450,14 +7462,14 @@ const Do = { sm: 340, md: 480, lg: 640 }, rn = j(
7450
7462
  u
7451
7463
  )) }, s) }) }) });
7452
7464
  }
7453
- ), To = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], Ic = ee(rn, () => /* @__PURE__ */ e(Ln, { children: /* @__PURE__ */ e(rn, { children: To.map((t, n) => /* @__PURE__ */ e(ye.Skeleton, { height: t }, n)) }) })), ln = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]", children: t }), Fc = ee(
7465
+ ), To = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], Ic = ee(rn, () => /* @__PURE__ */ e(In, { children: /* @__PURE__ */ e(rn, { children: To.map((t, n) => /* @__PURE__ */ e(Ne.Skeleton, { height: t }, n)) }) })), ln = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]", children: t }), Fc = ee(
7454
7466
  j(function({ children: n }, a) {
7455
7467
  return /* @__PURE__ */ e(Ge, { ref: a, showBar: !1, children: /* @__PURE__ */ e(ln, { children: n }) });
7456
7468
  }),
7457
- () => /* @__PURE__ */ e(Ln, { orientation: "horizontal", children: /* @__PURE__ */ o(ln, { children: [
7458
- /* @__PURE__ */ e(ye.Skeleton, {}),
7459
- /* @__PURE__ */ e(ye.Skeleton, {}),
7460
- /* @__PURE__ */ e(ye.Skeleton, {})
7469
+ () => /* @__PURE__ */ e(In, { orientation: "horizontal", children: /* @__PURE__ */ o(ln, { children: [
7470
+ /* @__PURE__ */ e(Ne.Skeleton, {}),
7471
+ /* @__PURE__ */ e(Ne.Skeleton, {}),
7472
+ /* @__PURE__ */ e(Ne.Skeleton, {})
7461
7473
  ] }) })
7462
7474
  );
7463
7475
  function zo({
@@ -7471,7 +7483,7 @@ function zo({
7471
7483
  "You can only provide up to two actions for the WidgetEmptyState"
7472
7484
  );
7473
7485
  return /* @__PURE__ */ e(
7474
- Zr,
7486
+ hl,
7475
7487
  {
7476
7488
  title: t,
7477
7489
  description: n,
@@ -7483,7 +7495,7 @@ function zo({
7483
7495
  const Ac = ae(
7484
7496
  H("WidgetEmptyState", zo)
7485
7497
  ), la = j(
7486
- ({ title: t, children: n }, a) => (Xr(
7498
+ ({ title: t, children: n }, a) => (Kr(
7487
7499
  t,
7488
7500
  { disallowEmpty: !0 },
7489
7501
  { componentName: "WidgetSection" }
@@ -7501,7 +7513,7 @@ const Lc = ae(
7501
7513
  disallowedRoutes: a,
7502
7514
  children: r
7503
7515
  }) => {
7504
- const l = Jr(), s = window.location.pathname, i = q(() => n?.length ? n.includes(s) : a?.length ? !a.includes(s) : !0, [s, n, a]), c = q(() => {
7516
+ const l = qr(), s = window.location.pathname, i = q(() => n?.length ? n.includes(s) : a?.length ? !a.includes(s) : !0, [s, n, a]), c = q(() => {
7505
7517
  let d = `The component ${t} is not allowed to be rendered in the current route.`;
7506
7518
  return n && n.length > 0 && (d += ` Allowed routes: ${n.join(", ")}`), a && a.length > 0 && (d += ` Disallowed routes: ${a.join(", ")}`), d;
7507
7519
  }, [t, n, a]);
@@ -7521,14 +7533,14 @@ export {
7521
7533
  jl as AiPromotionChat,
7522
7534
  Vl as AiPromotionChatProvider,
7523
7535
  Zo as ApplicationFrame,
7524
- Ad as AreaChart,
7536
+ id as AreaChart,
7525
7537
  cc as AreaChartWidget,
7526
7538
  oc as AutoGrid,
7527
- Sr as Badge,
7528
- Ld as BarChart,
7539
+ kr as Badge,
7540
+ od as BarChart,
7529
7541
  dc as BarChartWidget,
7530
7542
  hs as BaseActivityItemList,
7531
- Ed as BaseBanner,
7543
+ cd as BaseBanner,
7532
7544
  ws as BaseCelebration,
7533
7545
  Es as BaseCommunityPost,
7534
7546
  Tc as BaseTabs,
@@ -7536,78 +7548,78 @@ export {
7536
7548
  wl as Breadcrumbs,
7537
7549
  mt as CalendarEvent,
7538
7550
  pc as CalendarEventList,
7539
- Pc as CardSelectableContainer,
7540
- nl as Carousel,
7541
- _d as CategoryBarChart,
7551
+ dd as CardSelectableContainer,
7552
+ Jr as Carousel,
7553
+ ud as CategoryBarChart,
7542
7554
  Cc as CategoryBarSection,
7543
7555
  Uo as Celebration,
7544
7556
  ys as CelebrationSkeleton,
7545
7557
  gc as ChartWidgetEmptyState,
7546
- Bc as Chip,
7558
+ Pc as Chip,
7547
7559
  kc as ClockInControls,
7548
- Od as ComboChart,
7560
+ fd as ComboChart,
7549
7561
  qo as CommunityPost,
7550
7562
  _s as CommunityPostSkeleton,
7551
7563
  Vs as CompanySelector,
7552
7564
  He as Counter,
7553
7565
  Ic as Dashboard,
7554
7566
  Xo as DaytimePage,
7555
- Rc as DetailsItem,
7556
- $c as DetailsItemsList,
7557
- Dd as Dialog,
7558
- Ne as Dropdown,
7567
+ Bc as DetailsItem,
7568
+ Rc as DetailsItemsList,
7569
+ md as Dialog,
7570
+ Ce as Dropdown,
7559
7571
  Go as EntitySelect,
7560
- Wc as F0ActionBar,
7561
- Td as F0AiBanner,
7562
- xn as F0AvatarModule,
7563
- Mc as F0ButtonToggle,
7572
+ hd as F0ActionBar,
7573
+ gd as F0AiBanner,
7574
+ bn as F0AvatarModule,
7575
+ $c as F0ButtonToggle,
7564
7576
  jo as F0Callout,
7565
7577
  Mo as F0SegmentedControl,
7566
- jc as F0TableOfContent,
7578
+ pd as F0TableOfContent,
7567
7579
  Vo as F0VersionHistory,
7568
- Vc as F1SearchBox,
7569
- Gc as FILE_TYPES,
7570
- Hc as FileItem,
7580
+ Wc as F1SearchBox,
7581
+ bd as FILE_TYPES,
7582
+ Mc as FileItem,
7571
7583
  Ko as HighlightBanner,
7572
7584
  xc as IndicatorsList,
7573
- Uc as Input,
7574
- Kc as Item,
7575
- qc as ItemSectionHeader,
7576
- zd as LineChart,
7585
+ jc as Input,
7586
+ xd as Item,
7587
+ vd as ItemSectionHeader,
7588
+ wd as LineChart,
7577
7589
  uc as LineChartWidget,
7578
7590
  nc as Menu,
7579
- Yc as MobileDropdown,
7580
- Pd as NotesTextEditor,
7581
- Bd as NotesTextEditorPatchTargetNotFoundError,
7582
- Rd as NotesTextEditorSkeleton,
7583
- $d as NotesTextEditorUnsupportedPatchTypeError,
7584
- Zc as NumberInput,
7591
+ Vc as MobileDropdown,
7592
+ yd as NotesTextEditor,
7593
+ Nd as NotesTextEditorPatchTargetNotFoundError,
7594
+ Cd as NotesTextEditorSkeleton,
7595
+ kd as NotesTextEditorUnsupportedPatchTypeError,
7596
+ Sd as NumberInput,
7585
7597
  Jo as OmniButton,
7586
7598
  lc as OneApprovalHistory,
7587
- Xc as OneCalendar,
7588
- Jc as OneCalendarInternal,
7589
- Qc as OneDataCollection,
7590
- ed as OneDateNavigator,
7591
- Zr as OneEmptyState,
7592
- td as OnePagination,
7599
+ Gc as OneCalendar,
7600
+ Hc as OneCalendarInternal,
7601
+ Id as OneDataCollection,
7602
+ Fd as OneDateNavigator,
7603
+ hl as OneEmptyState,
7604
+ Ad as OnePagination,
7593
7605
  Yo as OnePersonListItem,
7594
7606
  Ec as OneRestrictComponent,
7595
7607
  Qo as Page,
7596
7608
  Wo as PageHeader,
7597
- Wd as PieChart,
7609
+ Ld as PieChart,
7598
7610
  fc as PieChartWidget,
7599
7611
  hi as PrivateBox,
7600
- Md as ProgressBarChart,
7601
- jd as RadarChart,
7612
+ Ed as ProgressBarChart,
7613
+ _d as RadarChart,
7602
7614
  ks as Reactions,
7603
- nd as ResourceHeader,
7615
+ Od as ResourceHeader,
7604
7616
  hr as RichTextDisplay,
7605
- ad as RichTextEditor,
7617
+ Dd as RichTextEditor,
7606
7618
  _c as ScrollArea,
7607
7619
  ac as SearchBar,
7608
- rd as SectionHeader,
7620
+ Td as SectionHeader,
7609
7621
  We as Select,
7610
- Tr as Shortcut,
7622
+ Or as Shortcut,
7611
7623
  rc as Sidebar,
7612
7624
  ec as SidebarFooter,
7613
7625
  tc as SidebarHeader,
@@ -7615,21 +7627,21 @@ export {
7615
7627
  ic as Split,
7616
7628
  sc as Stack,
7617
7629
  hc as SummariesWidget,
7618
- ld as Switch,
7619
- sd as Tabs,
7620
- id as TabsSkeleton,
7630
+ Uc as Switch,
7631
+ Kc as Tabs,
7632
+ qc as TabsSkeleton,
7621
7633
  Sc as TasksList,
7622
- od as Textarea,
7623
- cd as ToggleGroup,
7624
- dd as ToggleGroupItem,
7634
+ zd as Textarea,
7635
+ Yc as ToggleGroup,
7636
+ Zc as ToggleGroupItem,
7625
7637
  be as Tooltip,
7626
7638
  Nc as TwoColumnsList,
7627
- Vd as VerticalBarChart,
7639
+ Pd as VerticalBarChart,
7628
7640
  mc as VerticalBarChartWidget,
7629
7641
  dt as VirtualList,
7630
- ud as WeekStartDay,
7631
- fd as Weekdays,
7632
- ye as Widget,
7642
+ Xc as WeekStartDay,
7643
+ Jc as Weekdays,
7644
+ Ne as Widget,
7633
7645
  vc as WidgetAvatarsListItem,
7634
7646
  Ac as WidgetEmptyState,
7635
7647
  bc as WidgetHighlightButton,
@@ -7639,24 +7651,24 @@ export {
7639
7651
  yc as WidgetSimpleList,
7640
7652
  ht as WidgetSimpleListItem,
7641
7653
  Fc as WidgetStrip,
7642
- md as actionBarStatuses,
7643
- Gd as buttonToggleSizes,
7644
- Hd as buttonToggleVariants,
7645
- hd as chipVariants,
7646
- gd as downloadAsCSV,
7647
- pd as generateCSVContent,
7648
- bd as getGranularityDefinition,
7649
- xd as getGranularityDefinitions,
7650
- vd as getGranularitySimpleDefinition,
7651
- wd as granularityDefinitions,
7652
- yd as modules,
7653
- Ud as predefinedPresets,
7654
- Nd as rangeSeparator,
7655
- Kd as selectSizes,
7654
+ Bd as actionBarStatuses,
7655
+ Rd as buttonToggleSizes,
7656
+ $d as buttonToggleVariants,
7657
+ Qc as chipVariants,
7658
+ Wd as downloadAsCSV,
7659
+ Md as generateCSVContent,
7660
+ ed as getGranularityDefinition,
7661
+ td as getGranularityDefinitions,
7662
+ nd as getGranularitySimpleDefinition,
7663
+ ad as granularityDefinitions,
7664
+ rd as modules,
7665
+ jd as predefinedPresets,
7666
+ ld as rangeSeparator,
7667
+ Vd as selectSizes,
7656
7668
  qe as useAiPromotionChat,
7657
- Cd as useDataCollectionData,
7658
- kd as useDataCollectionSource,
7659
- Sd as useExportAction,
7660
- Id as useInfiniteScrollPagination,
7661
- ke as useSidebar
7669
+ Gd as useDataCollectionData,
7670
+ Hd as useDataCollectionSource,
7671
+ Ud as useExportAction,
7672
+ Kd as useInfiniteScrollPagination,
7673
+ Se as useSidebar
7662
7674
  };