@factorialco/f0-react 4.12.0 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- import { h as Ca, B as ka, i as Ia, j as Sa, k as zt, l as Me, m as Be, n as Fa, o as b, p as Y, q as ye, u as se, T as Aa, r as La, s as Oa, R as Pa, t as Ea, v as ie, w as _a, x as Ct, y as ft, z as Ge, A as Se, E as Da, G as Ta, H as V, J as za, K as Ba, L as xe, M as pn, N as Ra, O as $a, Q as H, S as bn, U as z, V as Fe, W as Ma, X as ja, Y as Wa, Z as Va, _ as Ua, $ as Ee, a0 as xn, a1 as Ha, a2 as we, a3 as Ke, a4 as Ga, e as vn, a5 as Oe, a6 as Ka, a7 as yn, a8 as le, a9 as Z, aa as wn, ab as Nn, ac as qa, ad as Cn, ae as ge, af as ae, ag as Ya, ah as Ja, ai as Za, aj as Xa, ak as Qa, al as ve, am as Xe, an as er, ao as tr, ap as nr, aq as ar, ar as Qe, as as kn, at as rr, au as ir, av as sr, aw as qe, ax as lr, ay as In, az as or, aA as cr, aB as dr, aC as ur, aD as fr, aE as mr, aF as hr, aG as gr, aH as mt, aI as Sn, aJ as ht, aK as Fn, aL as pr, aM as br, aN as xr, aO as vr, aP as yr, aQ as $e, aR as et, aS as gt, aT as An, aU as wr, aV as kt, aW as Nr, aX as Cr, aY as kr, aZ as Pe, a_ as Ir, a$ as Sr, b0 as je, b1 as Bt, b2 as pt, b3 as Fr, b4 as Ar, a as Lr, b as Or, b5 as Ln, b6 as Pr, g as Er, F as _r, b7 as Dr, b8 as On, b9 as Tr, ba as Pn, bb as zr, bc as En, bd as Br, be as Rr, bf as _n, bg as $r, bh as Mr, bi as jr, bj as Wr, bk as Dn, bl as Vr, bm as Ur, bn as Hr, bo as Tn, bp as Gr, bq as Kr, br as qr, bs as Yr, bt as pe, bu as It, bv as St, bw as Ft, bx as zn, by as At, bz as Bn, bA as Rn, bB as Jr, bC as Zr, bD as Xr, bE as Qr, bF as ei, bG as ti, bH as ni, bI as ai, bJ as Rt, bK as ri, bL as ii, bM as $t, bN as Mt, bO as jt, bP as si, bQ as li, bR as oi, bS as ci, bT as $n, bU as di, bV as ui } from "./F0CanvasPanel-CsVpTFqp.js";
2
- import { c6 as pd, c5 as bd, ci as xd, c2 as vd, c3 as yd, bW as wd, bX as Nd, cl as Cd, bY as kd, bZ as Id, cm as Sd, c4 as Fd, ce as Ad, cf as Ld, cj as Od, b_ as Pd, c8 as Ed, c7 as _d, b$ as Dd, c0 as Td, cg as zd, cn as Bd, ch as Rd, ck as $d, cd as Md, ca as jd, cc as Wd, c9 as Vd, c1 as Ud, cb as Hd } from "./F0CanvasPanel-CsVpTFqp.js";
3
- import { jsx as t, jsxs as o, Fragment as X } from "react/jsx-runtime";
4
- import ue, { forwardRef as K, useRef as W, useTransition as fi, useState as E, useLayoutEffect as Mn, useId as bt, useContext as Ne, createContext as _e, useEffect as j, useCallback as ne, useMemo as G, Fragment as mi, isValidElement as hi, cloneElement as jn, Children as Wn } from "react";
5
- import { C as gi, P as pi, a as Vn, M as bi, p as xi, b as vi, R as Wt, c as Un, u as yi, d as wi, e as Ni, f as Ci, g as ki, h as Hn, S as Ii, A as Si, B as Fi, L as Ai, i as Li, V as Oi, j as Pi, k as Ei, l as _i, O as Di } from "./useDataCollectionSource-C257Ssnk.js";
6
- import { r as Kd, s as qd, o as Yd, H as Jd, t as Zd, z as Xd, a8 as Qd, G as eu, q as tu, aa as nu, a9 as au, Q as ru, ad as iu, F as su, Y as lu, U as ou, J as cu, af as du, K as uu, Z as fu, _ as mu, v as hu, ab as gu, ac as pu, N as bu, $ as xu, a5 as vu, a7 as yu, w as wu, y as Nu, D as Cu, W as ku, ae as Iu, X as Su, T as Fu, ag as Au, x as Lu, E as Ou, m as Pu, n as Eu, a1 as _u, a2 as Du, a6 as Tu, I as zu, a3 as Bu, a0 as Ru, a4 as $u } from "./useDataCollectionSource-C257Ssnk.js";
1
+ import { h as Ca, B as ka, i as Ia, j as Sa, k as zt, l as je, m as Be, n as Fa, o as b, p as Y, q as we, u as le, T as Aa, r as La, s as Pa, R as Oa, t as Ea, v as se, w as _a, x as Ct, y as ft, z as Ge, A as Se, E as Da, G as Ta, H as W, J as za, K as Ba, L as ve, M as pn, N as Ra, O as $a, Q as U, S as bn, U as z, V as Fe, W as ja, X as Ma, Y as Wa, Z as Va, _ as Ua, $ as Ee, a0 as xn, a1 as Ha, a2 as Ne, a3 as Ke, a4 as Ga, e as vn, a5 as Pe, a6 as Ka, a7 as yn, a8 as oe, a9 as Z, aa as wn, ab as Nn, ac as qa, ad as Cn, ae as pe, af as re, ag as Ya, ah as Ja, ai as Za, aj as Xa, ak as Qa, al as ye, am as Xe, an as er, ao as tr, ap as nr, aq as ar, ar as Qe, as as kn, at as rr, au as ir, av as sr, aw as qe, ax as lr, ay as In, az as or, aA as cr, aB as dr, aC as ur, aD as fr, aE as mr, aF as hr, aG as gr, aH as mt, aI as Sn, aJ as ht, aK as Fn, aL as pr, aM as br, aN as xr, aO as vr, aP as yr, aQ as $e, aR as et, aS as gt, aT as An, aU as wr, aV as kt, aW as Nr, aX as Cr, aY as kr, aZ as Oe, a_ as Ir, a$ as Sr, b0 as Me, b1 as Bt, b2 as pt, b3 as Fr, b4 as Ar, a as Lr, b as Pr, b5 as Ln, b6 as Or, g as Er, F as _r, b7 as Dr, b8 as Pn, b9 as Tr, ba as On, bb as zr, bc as En, bd as Br, be as Rr, bf as _n, bg as $r, bh as jr, bi as Mr, bj as Wr, bk as Dn, bl as Vr, bm as Ur, bn as Hr, bo as Tn, bp as Gr, bq as Kr, br as qr, bs as Yr, bt as be, bu as It, bv as St, bw as Ft, bx as zn, by as At, bz as Bn, bA as Rn, bB as Jr, bC as Zr, bD as Xr, bE as Qr, bF as ei, bG as ti, bH as ni, bI as ai, bJ as Rt, bK as ri, bL as ii, bM as $t, bN as jt, bO as Mt, bP as si, bQ as li, bR as oi, bS as ci, bT as $n, bU as di, bV as ui } from "./F0CanvasPanel-CsVpTFqp.js";
2
+ import { c6 as pd, c5 as bd, ci as xd, c2 as vd, c3 as yd, bW as wd, bX as Nd, cl as Cd, bY as kd, bZ as Id, cm as Sd, c4 as Fd, ce as Ad, cf as Ld, cj as Pd, b_ as Od, c8 as Ed, c7 as _d, b$ as Dd, c0 as Td, cg as zd, cn as Bd, ch as Rd, ck as $d, cd as jd, ca as Md, cc as Wd, c9 as Vd, c1 as Ud, cb as Hd } from "./F0CanvasPanel-CsVpTFqp.js";
3
+ import { jsx as t, jsxs as o, Fragment as ne } from "react/jsx-runtime";
4
+ import fe, { forwardRef as G, useRef as M, useTransition as fi, useState as E, useLayoutEffect as jn, useId as bt, useContext as Ce, createContext as _e, useEffect as j, useCallback as ae, useMemo as H, Fragment as mi, isValidElement as hi, cloneElement as Mn, Children as Wn } from "react";
5
+ import { C as gi, P as pi, a as Vn, M as bi, p as xi, b as vi, R as Wt, c as Un, u as yi, d as wi, e as Ni, f as Ci, g as ki, h as Hn, S as Ii, A as Si, B as Fi, L as Ai, i as Li, V as Pi, j as Oi, k as Ei, l as _i, O as Di } from "./useDataCollectionSource-C257Ssnk.js";
6
+ import { r as Kd, s as qd, o as Yd, H as Jd, t as Zd, z as Xd, a8 as Qd, G as eu, q as tu, aa as nu, a9 as au, Q as ru, ad as iu, F as su, Y as lu, U as ou, J as cu, af as du, K as uu, Z as fu, _ as mu, v as hu, ab as gu, ac as pu, N as bu, $ as xu, a5 as vu, a7 as yu, w as wu, y as Nu, D as Cu, W as ku, ae as Iu, X as Su, T as Fu, ag as Au, x as Lu, E as Pu, m as Ou, n as Eu, a1 as _u, a2 as Du, a6 as Tu, I as zu, a3 as Bu, a0 as Ru, a4 as $u } from "./useDataCollectionSource-C257Ssnk.js";
7
7
  const Ti = Ca("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
10
- ]), Gn = K(({ className: e, items: n }, a) => /* @__PURE__ */ t(ka, { ref: a, className: e, children: /* @__PURE__ */ o("div", { className: "flex items-center", children: [
10
+ ]), Gn = G(({ className: e, items: n }, a) => /* @__PURE__ */ t(ka, { ref: a, className: e, children: /* @__PURE__ */ o("div", { className: "flex items-center", children: [
11
11
  /* @__PURE__ */ t(Ia, {}),
12
12
  /* @__PURE__ */ t(Sa, { items: n, children: /* @__PURE__ */ t("button", { className: "rounded-sm px-1.5 py-0.5 font-medium text-f1-foreground no-underline transition-colors hover:bg-f1-background-secondary", children: "..." }) })
13
13
  ] }) }));
@@ -82,9 +82,9 @@ function $i(e, n, a = []) {
82
82
  minWidth: Vt(i)
83
83
  };
84
84
  }
85
- function Mi({ breadcrumbs: e, append: n }) {
86
- const a = W(null), r = W(null), [, i] = fi(), [s, l] = E(null), c = (s?.collapsedItems || []).length > 0;
87
- return Mn(() => {
85
+ function ji({ breadcrumbs: e, append: n }) {
86
+ const a = M(null), r = M(null), [, i] = fi(), [s, l] = E(null), c = (s?.collapsedItems || []).length > 0;
87
+ return jn(() => {
88
88
  const d = a.current, f = r.current;
89
89
  if (!d || !f || f.children.length < e.length) return;
90
90
  const u = () => {
@@ -115,7 +115,7 @@ function Mi({ breadcrumbs: e, append: n }) {
115
115
  "aria-hidden": "true",
116
116
  ref: r,
117
117
  children: e.map((d, f) => /* @__PURE__ */ t(
118
- Me,
118
+ je,
119
119
  {
120
120
  item: d,
121
121
  isLast: f === e.length - 1,
@@ -128,7 +128,7 @@ function Mi({ breadcrumbs: e, append: n }) {
128
128
  ),
129
129
  s && s.headItem && /* @__PURE__ */ o(Fa, { children: [
130
130
  /* @__PURE__ */ t(
131
- Me,
131
+ je,
132
132
  {
133
133
  isOnly: s.isOnly,
134
134
  isFirst: !0,
@@ -137,7 +137,7 @@ function Mi({ breadcrumbs: e, append: n }) {
137
137
  },
138
138
  `first-item-${Be(s.headItem)}`
139
139
  ),
140
- c && /* @__PURE__ */ o(X, { children: [
140
+ c && /* @__PURE__ */ o(ne, { children: [
141
141
  /* @__PURE__ */ t(
142
142
  Gn,
143
143
  {
@@ -146,7 +146,7 @@ function Mi({ breadcrumbs: e, append: n }) {
146
146
  "collapsed-items"
147
147
  ),
148
148
  s.tailItems.map((d, f) => /* @__PURE__ */ t(
149
- Me,
149
+ je,
150
150
  {
151
151
  item: d,
152
152
  isLast: f === s.tailItems.length - 1,
@@ -156,8 +156,8 @@ function Mi({ breadcrumbs: e, append: n }) {
156
156
  Be(d)
157
157
  ))
158
158
  ] }),
159
- !c && /* @__PURE__ */ t(X, { children: s.tailItems.map((d, f) => /* @__PURE__ */ t(
160
- Me,
159
+ !c && /* @__PURE__ */ t(ne, { children: s.tailItems.map((d, f) => /* @__PURE__ */ t(
160
+ je,
161
161
  {
162
162
  item: d,
163
163
  isLast: f === s.tailItems.length - 1,
@@ -172,7 +172,7 @@ function Mi({ breadcrumbs: e, append: n }) {
172
172
  `breadcrumb-${Be(e.at(-1)) ?? 0}`
173
173
  );
174
174
  }
175
- const ji = ye({
175
+ const Mi = we({
176
176
  variants: {
177
177
  size: {
178
178
  sm: "h-[1.375rem] w-[1.375rem]",
@@ -229,7 +229,7 @@ const ji = ye({
229
229
  return /* @__PURE__ */ t(
230
230
  "div",
231
231
  {
232
- className: b(ji({ size: n }), h),
232
+ className: b(Mi({ size: n }), h),
233
233
  style: {
234
234
  background: "transparent",
235
235
  perspective: e ? "10px" : void 0,
@@ -330,10 +330,10 @@ const ji = ye({
330
330
  )
331
331
  }
332
332
  );
333
- }, Kn = K(Wi), qn = _e(null), Vi = 15, Ui = ({ children: e, enabled: n, onShow: a, ...r }) => {
333
+ }, Kn = G(Wi), qn = _e(null), Vi = 15, Ui = ({ children: e, enabled: n, onShow: a, ...r }) => {
334
334
  const [i, s] = E(n), [l, c] = E(!1), [d, f] = E(!0), [u, m] = E(
335
335
  Vi
336
- ), h = W(null), g = (x) => {
336
+ ), h = M(null), g = (x) => {
337
337
  h.current = x;
338
338
  }, p = () => {
339
339
  h.current && h.current();
@@ -369,7 +369,7 @@ const ji = ye({
369
369
  }, Ae = () => {
370
370
  };
371
371
  function tt() {
372
- const e = Ne(qn);
372
+ const e = Ce(qn);
373
373
  return e === null ? {
374
374
  enabled: !1,
375
375
  setEnabled: Ae,
@@ -387,9 +387,9 @@ const Yn = ({
387
387
  className: e,
388
388
  disabled: n
389
389
  }) => {
390
- const { enabled: a, setOpen: r, open: i } = tt(), s = se(), [l, c] = E(!1);
390
+ const { enabled: a, setOpen: r, open: i } = tt(), s = le(), [l, c] = E(!1);
391
391
  return a ? /* @__PURE__ */ t("div", { className: "flex items-center", children: /* @__PURE__ */ t(Aa, { children: /* @__PURE__ */ o(La, { delayDuration: 850, disableHoverableContent: !0, children: [
392
- /* @__PURE__ */ t(Oa, { asChild: !0, children: /* @__PURE__ */ t(
392
+ /* @__PURE__ */ t(Pa, { asChild: !0, children: /* @__PURE__ */ t(
393
393
  Y.div,
394
394
  {
395
395
  animate: {
@@ -406,7 +406,7 @@ const Yn = ({
406
406
  "--gradient-angle": "180deg"
407
407
  },
408
408
  children: /* @__PURE__ */ t(
409
- Pa,
409
+ Oa,
410
410
  {
411
411
  onCheckedChange: (d) => {
412
412
  r(d);
@@ -419,7 +419,7 @@ const Yn = ({
419
419
  "after:pointer-events-none after:absolute after:inset-0 after:rounded-full after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] data-[state=checked]:after:ring-f1-border-inverse",
420
420
  "before:absolute before:inset-0 before:rounded-full before:bg-[conic-gradient(from_var(--gradient-angle),hsla(229,57%,76%,0.7),hsla(348,80%,50%,0.7),hsla(348,80%,50%,0.7),hsla(18,80%,50%,0.7),hsla(229,57%,76%,0.7),hsla(229,57%,76%,0.7))] before:opacity-0 before:transition-all before:duration-300 before:content-[''] data-[state=checked]:before:opacity-100",
421
421
  n && "cursor-not-allowed opacity-50",
422
- ie(),
422
+ se(),
423
423
  e
424
424
  ),
425
425
  disabled: n,
@@ -452,7 +452,7 @@ const Yn = ({
452
452
  ] }) }) }) : null;
453
453
  }, Ht = "one_sidebar_locked", Jn = _e(void 0);
454
454
  function De() {
455
- const e = Ne(Jn);
455
+ const e = Ce(Jn);
456
456
  return e === void 0 ? {
457
457
  isSmallScreen: !1,
458
458
  isLastToggleInvokedByUser: !0,
@@ -468,23 +468,23 @@ function Hi({ children: e }) {
468
468
  const { currentPath: n } = Ct(), [a, r] = E(!1), [i, s] = E(!1), l = a ? Ge.xl : Ge.md, c = ft(`(max-width: ${l}px)`, {
469
469
  initializeWithValue: !0
470
470
  }), [d, f] = E(() => {
471
- const N = localStorage.getItem(Ht);
472
- return N !== null ? !!N : !0;
471
+ const C = localStorage.getItem(Ht);
472
+ return C !== null ? !!C : !0;
473
473
  }), [u, m] = E(!1), [h, g] = E(
474
474
  null
475
- ), p = ne(
476
- ({ isInvokedByUser: N } = {
475
+ ), p = ae(
476
+ ({ isInvokedByUser: C } = {
477
477
  isInvokedByUser: !0
478
478
  }) => {
479
- s(N ?? !0), c && m(!u), f(!d);
479
+ s(C ?? !0), c && m(!u), f(!d);
480
480
  },
481
481
  [c, u, d, f, m]
482
- ), x = ne(
483
- (N) => {
484
- c || (N.clientX < 32 && m(!0), N.clientX > 280 && m(!1));
482
+ ), x = ae(
483
+ (C) => {
484
+ c || (C.clientX < 32 && m(!0), C.clientX > 280 && m(!1));
485
485
  },
486
486
  [c, m]
487
- ), v = G(() => c ? u ? "unlocked" : "hidden" : !d && !u ? "hidden" : !d && u ? "unlocked" : "locked", [c, u, d]);
487
+ ), v = H(() => c ? u ? "unlocked" : "hidden" : !d && !u ? "hidden" : !d && u ? "unlocked" : "locked", [c, u, d]);
488
488
  return j(() => {
489
489
  m(!1);
490
490
  }, [n]), j(() => {
@@ -506,7 +506,7 @@ function Hi({ children: e }) {
506
506
  }
507
507
  );
508
508
  }
509
- const Gt = Y.create(V), Kt = {
509
+ const Gt = Y.create(W), Kt = {
510
510
  initial: { scale: 1 },
511
511
  animate: { scale: 1 },
512
512
  exit: { scale: 0.5 },
@@ -526,7 +526,7 @@ const Gt = Y.create(V), Kt = {
526
526
  {
527
527
  className: b(
528
528
  "flex h-6 w-6 items-center justify-center rounded",
529
- ie()
529
+ se()
530
530
  ),
531
531
  onClick: s,
532
532
  "aria-label": a,
@@ -586,11 +586,11 @@ const Gt = Y.create(V), Kt = {
586
586
  hasUnread: f = !1,
587
587
  crossSelling: u
588
588
  }) => {
589
- const [m, h] = E("idle"), [g, p] = E(null), [x, ...v] = g ?? [], [N, _] = E(!1);
589
+ const [m, h] = E("idle"), [g, p] = E(null), [x, ...v] = g ?? [], [C, _] = E(!1);
590
590
  j(() => {
591
591
  p(null), h("idle");
592
592
  }, [e]);
593
- const B = ne(async () => {
593
+ const R = ae(async () => {
594
594
  try {
595
595
  h("fetching");
596
596
  const D = await a();
@@ -602,20 +602,20 @@ const Gt = Y.create(V), Kt = {
602
602
  return /* @__PURE__ */ o(
603
603
  za,
604
604
  {
605
- open: N,
605
+ open: C,
606
606
  onOpenChange: async (D) => {
607
- _(D), D && g === null && B(), l(D);
607
+ _(D), D && g === null && R(), l(D);
608
608
  },
609
609
  children: [
610
610
  /* @__PURE__ */ t(Ba, { asChild: !0, children: /* @__PURE__ */ t(
611
- xe,
611
+ ve,
612
612
  {
613
613
  variant: "outline",
614
614
  icon: pn,
615
615
  hideLabel: !0,
616
616
  label: n,
617
- pressed: N,
618
- append: f && /* @__PURE__ */ t(Ot, { className: "absolute -right-0.5 -top-[1px]" })
617
+ pressed: C,
618
+ append: f && /* @__PURE__ */ t(Pt, { className: "absolute -right-0.5 -top-[1px]" })
619
619
  }
620
620
  ) }),
621
621
  /* @__PURE__ */ t(Ra, { children: /* @__PURE__ */ o(
@@ -640,13 +640,13 @@ const Gt = Y.create(V), Kt = {
640
640
  onClick: d
641
641
  }
642
642
  ),
643
- g.length > 1 && /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t("div", { className: "pb-1", children: v.map((D, O) => /* @__PURE__ */ t(
643
+ g.length > 1 && /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t("div", { className: "pb-1", children: v.map((D, A) => /* @__PURE__ */ t(
644
644
  Yi,
645
645
  {
646
646
  ...D,
647
647
  onClick: d
648
648
  },
649
- O
649
+ A
650
650
  )) }) })
651
651
  ] }),
652
652
  m === "error" && /* @__PURE__ */ t("div", { className: "p-2 pt-0", children: /* @__PURE__ */ t(
@@ -654,7 +654,7 @@ const Gt = Y.create(V), Kt = {
654
654
  {
655
655
  ...s,
656
656
  onClick: () => {
657
- B();
657
+ R();
658
658
  }
659
659
  }
660
660
  ) })
@@ -684,7 +684,7 @@ const Gt = Y.create(V), Kt = {
684
684
  }) => {
685
685
  const l = "flex flex-col items-stretch w-full", c = a?.includes(".mp4");
686
686
  return /* @__PURE__ */ t(
687
- Ma,
687
+ ja,
688
688
  {
689
689
  onClick: s,
690
690
  asChild: !0,
@@ -709,7 +709,7 @@ const Gt = Y.create(V), Kt = {
709
709
  playsInline: !0
710
710
  }
711
711
  ) }) : /* @__PURE__ */ t("div", { className: "overflow-clip rounded border border-solid border-f1-border-secondary", children: /* @__PURE__ */ t(
712
- ja,
712
+ Ma,
713
713
  {
714
714
  fetchPriority: "high",
715
715
  src: a,
@@ -721,7 +721,7 @@ const Gt = Y.create(V), Kt = {
721
721
  /* @__PURE__ */ t("h3", { className: "font-medium", children: e }),
722
722
  /* @__PURE__ */ t("p", { className: "font-normal text-f1-foreground-secondary", children: i })
723
723
  ] }),
724
- r && /* @__PURE__ */ t(Ot, { className: "mt-1.5" })
724
+ r && /* @__PURE__ */ t(Pt, { className: "mt-1.5" })
725
725
  ] }) })
726
726
  ]
727
727
  }
@@ -752,7 +752,7 @@ const Gt = Y.create(V), Kt = {
752
752
  /* @__PURE__ */ t("h3", { className: "text-pretty font-medium", children: e }),
753
753
  /* @__PURE__ */ t("p", { className: "font-normal text-f1-foreground-secondary", children: a })
754
754
  ] }),
755
- r && /* @__PURE__ */ t(Ot, { className: "mt-1.5" })
755
+ r && /* @__PURE__ */ t(Pt, { className: "mt-1.5" })
756
756
  ] })
757
757
  }
758
758
  ) });
@@ -768,7 +768,7 @@ const Gt = Y.create(V), Kt = {
768
768
  children: [
769
769
  /* @__PURE__ */ t("h2", { className: "text-base font-medium", children: e }),
770
770
  /* @__PURE__ */ t(
771
- H,
771
+ U,
772
772
  {
773
773
  variant: "outline",
774
774
  size: "sm",
@@ -812,8 +812,8 @@ const Gt = Y.create(V), Kt = {
812
812
  {
813
813
  title: e,
814
814
  description: r,
815
- icon: /* @__PURE__ */ t(V, { icon: pn, size: "lg", className: "block" }),
816
- button: /* @__PURE__ */ t(Fe, { href: a, children: /* @__PURE__ */ t(H, { label: n }) })
815
+ icon: /* @__PURE__ */ t(W, { icon: pn, size: "lg", className: "block" }),
816
+ button: /* @__PURE__ */ t(Fe, { href: a, children: /* @__PURE__ */ t(U, { label: n }) })
817
817
  }
818
818
  ), Xi = ({
819
819
  title: e,
@@ -826,8 +826,8 @@ const Gt = Y.create(V), Kt = {
826
826
  title: e,
827
827
  description: n,
828
828
  iconWrapperClassName: "text-f1-icon-critical bg-f1-background-critical border-f1-critical",
829
- icon: /* @__PURE__ */ t(V, { icon: Va, size: "lg" }),
830
- button: /* @__PURE__ */ t(H, { variant: "outline", label: a, onClick: r })
829
+ icon: /* @__PURE__ */ t(W, { icon: Va, size: "lg" }),
830
+ button: /* @__PURE__ */ t(U, { variant: "outline", label: a, onClick: r })
831
831
  }
832
832
  ), Qi = () => /* @__PURE__ */ t(
833
833
  "div",
@@ -848,7 +848,7 @@ const Gt = Y.create(V), Kt = {
848
848
  ] }) })
849
849
  ] })
850
850
  }
851
- ), Ot = ({ className: e = "" }) => /* @__PURE__ */ t(
851
+ ), Pt = ({ className: e = "" }) => /* @__PURE__ */ t(
852
852
  "div",
853
853
  {
854
854
  "aria-hidden": "true",
@@ -869,13 +869,13 @@ const Gt = Y.create(V), Kt = {
869
869
  }, c = (d) => {
870
870
  s(!1), r(), d && d();
871
871
  };
872
- return i && /* @__PURE__ */ o(X, { children: [
872
+ return i && /* @__PURE__ */ o(ne, { children: [
873
873
  /* @__PURE__ */ t(Ua, {}),
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__ */ t("p", { className: "text-balance pb-2 pt-2 text-sm font-medium text-f1-foreground-secondary", children: a?.sectionTitle }),
877
877
  n && /* @__PURE__ */ t("div", { className: "relative z-10 h-6 w-6", children: /* @__PURE__ */ t(
878
- H,
878
+ U,
879
879
  {
880
880
  variant: "ghost",
881
881
  icon: Ee,
@@ -908,16 +908,16 @@ const Gt = Y.create(V), Kt = {
908
908
  )
909
909
  ] })
910
910
  ] });
911
- }, Pt = _e(null), gc = Pt.Provider;
911
+ }, Ot = _e(null), gc = Ot.Provider;
912
912
  function pc() {
913
- return Ne(Pt);
913
+ return Ce(Ot);
914
914
  }
915
915
  function ts(e, n) {
916
916
  const a = n?.getItemTitle, r = n?.mode ?? "url", i = e !== null, s = e?.previousItem ?? null, l = e?.nextItem ?? null, c = e?.previousItemUrl ?? null, d = e?.nextItemUrl ?? null, f = e?.absoluteIndex ?? null, u = e?.totalItems, m = e?.hasPrevious ?? !1, h = e?.hasNext ?? !1, g = e?.goToPrevious, p = e?.goToNext;
917
- return G(() => {
917
+ return H(() => {
918
918
  if (!i) return null;
919
- const x = f !== null && u !== void 0 ? { current: f + 1, total: u } : void 0, v = (B, D) => (B !== null ? a?.(B) : void 0) ?? D, N = r === "callback" ? m ? { onClick: g, title: v(s, "Previous") } : void 0 : c !== null ? { url: c, title: v(s, "Previous") } : void 0, _ = r === "callback" ? h ? { onClick: p, title: v(l, "Next") } : void 0 : d !== null ? { url: d, title: v(l, "Next") } : void 0;
920
- return !N && !_ && !x ? null : { previous: N, next: _, counter: x };
919
+ const x = f !== null && u !== void 0 ? { current: f + 1, total: u } : void 0, v = (R, D) => (R !== null ? a?.(R) : void 0) ?? D, C = r === "callback" ? m ? { onClick: g, title: v(s, "Previous") } : void 0 : c !== null ? { url: c, title: v(s, "Previous") } : void 0, _ = r === "callback" ? h ? { onClick: p, title: v(l, "Next") } : void 0 : d !== null ? { url: d, title: v(l, "Next") } : void 0;
920
+ return !C && !_ && !x ? null : { previous: C, next: _, counter: x };
921
921
  }, [
922
922
  i,
923
923
  r,
@@ -946,7 +946,7 @@ function bc({
946
946
  oneSwitchTooltip: d,
947
947
  oneSwitchAutoOpen: f
948
948
  }) {
949
- const { sidebarState: u, toggleSidebar: m } = De(), h = Ne(Pt), g = s ?? h ?? void 0, p = [
949
+ const { sidebarState: u, toggleSidebar: m } = De(), h = Ce(Ot), g = s ?? h ?? void 0, p = [
950
950
  {
951
951
  id: e.href,
952
952
  label: e.name,
@@ -954,7 +954,7 @@ function bc({
954
954
  module: e.id
955
955
  },
956
956
  ...a
957
- ], x = n && Object.keys(n).length !== 0, v = i && a.length > 0, N = !i && r.length > 0, _ = !i && !!l?.isVisible, B = p[p.length - 1], D = "navigation" in window ? window.navigation : null, O = i && (D ? !!D.canGoBack : window.history.length > 1);
957
+ ], x = n && Object.keys(n).length !== 0, v = i && a.length > 0, C = !i && r.length > 0, _ = !i && !!l?.isVisible, R = p[p.length - 1], D = "navigation" in window ? window.navigation : null, A = i && (D ? !!D.canGoBack : window.history.length > 1);
958
958
  return /* @__PURE__ */ o(
959
959
  "div",
960
960
  {
@@ -971,7 +971,7 @@ function bc({
971
971
  animate: { opacity: 1, width: "auto" },
972
972
  exit: { opacity: 0, width: 0 },
973
973
  children: /* @__PURE__ */ t("div", { className: "mr-3", children: /* @__PURE__ */ t(
974
- H,
974
+ U,
975
975
  {
976
976
  variant: "ghost",
977
977
  hideLabel: !0,
@@ -987,11 +987,11 @@ function bc({
987
987
  {
988
988
  className: b(
989
989
  "flex flex-grow items-center gap-2",
990
- O && "justify-center"
990
+ A && "justify-center"
991
991
  ),
992
992
  children: [
993
- i && O && /* @__PURE__ */ t("div", { className: "absolute left-4", children: /* @__PURE__ */ t(
994
- H,
993
+ i && A && /* @__PURE__ */ t("div", { className: "absolute left-4", children: /* @__PURE__ */ t(
994
+ U,
995
995
  {
996
996
  variant: "ghost",
997
997
  hideLabel: !0,
@@ -1000,8 +1000,8 @@ function bc({
1000
1000
  onClick: () => window.history.back()
1001
1001
  }
1002
1002
  ) }),
1003
- O || v ? /* @__PURE__ */ t("div", { className: "text-lg font-semibold text-f1-foreground", children: "loading" in B ? /* @__PURE__ */ t(z, { className: "h-4 w-24" }) : B.label }) : /* @__PURE__ */ t(
1004
- Mi,
1003
+ A || v ? /* @__PURE__ */ t("div", { className: "text-lg font-semibold text-f1-foreground", children: "loading" in R ? /* @__PURE__ */ t(z, { className: "h-4 w-24" }) : R.label }) : /* @__PURE__ */ t(
1004
+ ji,
1005
1005
  {
1006
1006
  breadcrumbs: p,
1007
1007
  append: c !== void 0 && /* @__PURE__ */ t(
@@ -1020,7 +1020,7 @@ function bc({
1020
1020
  )
1021
1021
  ] }),
1022
1022
  /* @__PURE__ */ o("div", { className: "flex items-center gap-3", children: [
1023
- !i && x && /* @__PURE__ */ t("div", { children: n.tooltip ? /* @__PURE__ */ t(we, { label: n.tooltip, children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
1023
+ !i && x && /* @__PURE__ */ t("div", { children: n.tooltip ? /* @__PURE__ */ t(Ne, { label: n.tooltip, children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
1024
1024
  Ke,
1025
1025
  {
1026
1026
  text: n.text,
@@ -1028,10 +1028,10 @@ function bc({
1028
1028
  additionalAccessibleText: n.tooltip
1029
1029
  }
1030
1030
  ) }) }) : /* @__PURE__ */ t(Ke, { text: n.text, variant: n.variant }) }),
1031
- !i && x && (g || N || _) && /* @__PURE__ */ t("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1031
+ !i && x && (g || C || _) && /* @__PURE__ */ t("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1032
1032
  g && /* @__PURE__ */ t(Ga, { ...g }),
1033
- g && N && /* @__PURE__ */ t("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1034
- (_ || N) && /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
1033
+ g && C && /* @__PURE__ */ t("div", { className: "h-4 w-px bg-f1-border-secondary" }),
1034
+ (_ || C) && /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
1035
1035
  _ && /* @__PURE__ */ t("div", { className: "items-right flex gap-2", children: /* @__PURE__ */ t(
1036
1036
  Ki,
1037
1037
  {
@@ -1039,7 +1039,7 @@ function bc({
1039
1039
  currentModule: e.name
1040
1040
  }
1041
1041
  ) }),
1042
- N && /* @__PURE__ */ t("div", { className: "items-right flex gap-2", children: r.map((L, U) => /* @__PURE__ */ t(ns, { action: L }, U)) })
1042
+ C && /* @__PURE__ */ t("div", { className: "items-right flex gap-2", children: r.map((P, V) => /* @__PURE__ */ t(ns, { action: P }, V)) })
1043
1043
  ] }),
1044
1044
  /* @__PURE__ */ o("div", { className: "flex items-center gap-3", children: [
1045
1045
  /* @__PURE__ */ t(
@@ -1057,9 +1057,9 @@ function bc({
1057
1057
  );
1058
1058
  }
1059
1059
  function ns({ action: e }) {
1060
- const n = W(null), [a, r] = E(!1), i = e.variant ?? "outline";
1061
- return "actions" in e ? /* @__PURE__ */ t(Oe, { items: e.actions, open: a, onOpenChange: r, children: /* @__PURE__ */ t(
1062
- xe,
1060
+ const n = M(null), [a, r] = E(!1), i = e.variant ?? "outline";
1061
+ return "actions" in e ? /* @__PURE__ */ t(Pe, { items: e.actions, open: a, onOpenChange: r, children: /* @__PURE__ */ t(
1062
+ ve,
1063
1063
  {
1064
1064
  size: "md",
1065
1065
  variant: i,
@@ -1069,7 +1069,7 @@ function ns({ action: e }) {
1069
1069
  pressed: a
1070
1070
  }
1071
1071
  ) }) : "onClick" in e ? /* @__PURE__ */ t(
1072
- xe,
1072
+ ve,
1073
1073
  {
1074
1074
  size: "md",
1075
1075
  variant: i,
@@ -1086,7 +1086,7 @@ function ns({ action: e }) {
1086
1086
  "aria-label": e.label,
1087
1087
  ref: n,
1088
1088
  children: /* @__PURE__ */ t(
1089
- xe,
1089
+ ve,
1090
1090
  {
1091
1091
  size: "md",
1092
1092
  variant: i,
@@ -1102,7 +1102,7 @@ function ns({ action: e }) {
1102
1102
  );
1103
1103
  }
1104
1104
  const as = () => {
1105
- const e = se();
1105
+ const e = le();
1106
1106
  return /* @__PURE__ */ o(
1107
1107
  Y.div,
1108
1108
  {
@@ -1142,7 +1142,7 @@ const as = () => {
1142
1142
  }
1143
1143
  ) }),
1144
1144
  /* @__PURE__ */ t("div", { className: "flex flex-row-reverse p-3 pt-0", children: /* @__PURE__ */ t(
1145
- xe,
1145
+ ve,
1146
1146
  {
1147
1147
  type: "button",
1148
1148
  disabled: !0,
@@ -1160,7 +1160,7 @@ const as = () => {
1160
1160
  reset: n,
1161
1161
  isOpen: a
1162
1162
  }) => {
1163
- const r = W(null);
1163
+ const r = M(null);
1164
1164
  j(() => (a ? r.current && (clearTimeout(r.current), r.current = null) : e !== null && (r.current = setTimeout(
1165
1165
  () => {
1166
1166
  },
@@ -1249,7 +1249,7 @@ const as = () => {
1249
1249
  );
1250
1250
  case "internal":
1251
1251
  return /* @__PURE__ */ t(
1252
- xe,
1252
+ ve,
1253
1253
  {
1254
1254
  label: e.label || "",
1255
1255
  onClick: a,
@@ -1296,7 +1296,7 @@ const as = () => {
1296
1296
  };
1297
1297
  return e ? /* @__PURE__ */ o(is, { children: [
1298
1298
  /* @__PURE__ */ t("div", { className: "flex items-center justify-end p-3 pb-0", children: /* @__PURE__ */ t(
1299
- xe,
1299
+ ve,
1300
1300
  {
1301
1301
  variant: "ghost",
1302
1302
  hideLabel: !0,
@@ -1333,11 +1333,11 @@ const as = () => {
1333
1333
  ] }) }),
1334
1334
  /* @__PURE__ */ t("div", { className: "m-3 mt-2 flex-shrink-0", children: /* @__PURE__ */ t(as, {}) })
1335
1335
  ] }) : null;
1336
- }, cs = le(
1336
+ }, cs = oe(
1337
1337
  Z("AiPromotionChat", os)
1338
- ), ds = le(
1338
+ ), ds = oe(
1339
1339
  Z("AiPromotionChatProvider", ls)
1340
- ), Xn = ye({
1340
+ ), Xn = we({
1341
1341
  base: "flex w-full flex-col rounded-lg p-[1px]",
1342
1342
  variants: {
1343
1343
  variant: {
@@ -1359,7 +1359,7 @@ const as = () => {
1359
1359
  positive: "text-f1-foreground-positive font-medium",
1360
1360
  warning: "text-f1-foreground-warning font-medium",
1361
1361
  info: "text-f1-foreground-info font-medium"
1362
- }, us = K(
1362
+ }, us = G(
1363
1363
  function({ title: n, onClose: a, children: r, actions: i = [], variant: s }, l) {
1364
1364
  if (i.length > 2)
1365
1365
  throw new Error(
@@ -1382,9 +1382,9 @@ const as = () => {
1382
1382
  Yt[s]
1383
1383
  ),
1384
1384
  children: [
1385
- qt[s] && /* @__PURE__ */ t(V, { icon: qt[s], size: "sm", "aria-hidden": !0 }),
1385
+ qt[s] && /* @__PURE__ */ t(W, { icon: qt[s], size: "sm", "aria-hidden": !0 }),
1386
1386
  /* @__PURE__ */ t(
1387
- ge,
1387
+ pe,
1388
1388
  {
1389
1389
  className: Yt[s] || "font-medium",
1390
1390
  children: n
@@ -1394,7 +1394,7 @@ const as = () => {
1394
1394
  }
1395
1395
  ),
1396
1396
  a && /* @__PURE__ */ t(
1397
- H,
1397
+ U,
1398
1398
  {
1399
1399
  variant: "ghost",
1400
1400
  icon: Ee,
@@ -1417,7 +1417,7 @@ const as = () => {
1417
1417
  }
1418
1418
  ),
1419
1419
  c && /* @__PURE__ */ t("div", { className: "flex flex-row items-center justify-between gap-3 rounded-b-[13.25px] bg-f1-background px-4 py-3", children: i.map((d, f) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
1420
- H,
1420
+ U,
1421
1421
  {
1422
1422
  label: d.label,
1423
1423
  onClick: d.onClick,
@@ -1463,16 +1463,16 @@ const as = () => {
1463
1463
  ] })
1464
1464
  ]
1465
1465
  }
1466
- ), Qn = K(
1466
+ ), Qn = G(
1467
1467
  (e, n) => /* @__PURE__ */ t(us, { ref: n, ...e })
1468
1468
  ), ms = ({ compact: e, variant: n }) => /* @__PURE__ */ t(fs, { compact: e, variant: n });
1469
1469
  Qn.displayName = "F0Callout";
1470
- const xc = ae(
1471
- le(Qn),
1470
+ const xc = re(
1471
+ oe(Qn),
1472
1472
  ms
1473
- ), ea = K(
1473
+ ), ea = G(
1474
1474
  ({ value: e, max: n, color: a = "categorical-1", label: r }, i) => {
1475
- const s = se(), l = Number.isFinite(n) ? Math.max(0, Math.floor(n)) : 0, c = Number.isFinite(e) ? Math.max(0, Math.min(Math.floor(e), l)) : 0, d = Array.from({ length: l }, (u, m) => m < c), f = Ya(a);
1475
+ const s = le(), l = Number.isFinite(n) ? Math.max(0, Math.floor(n)) : 0, c = Number.isFinite(e) ? Math.max(0, Math.min(Math.floor(e), l)) : 0, d = Array.from({ length: l }, (u, m) => m < c), f = Ya(a);
1476
1476
  return /* @__PURE__ */ t(
1477
1477
  "div",
1478
1478
  {
@@ -1503,7 +1503,7 @@ const xc = ae(
1503
1503
  }
1504
1504
  );
1505
1505
  ea.displayName = "F0SegmentedBar";
1506
- const vc = le(
1506
+ const vc = oe(
1507
1507
  Z("F0SegmentedBar", ea)
1508
1508
  );
1509
1509
  function hs({
@@ -1519,16 +1519,16 @@ function hs({
1519
1519
  "flex w-full flex-row items-center gap-[6px] rounded-md p-[6px] pr-2 text-left transition-colors",
1520
1520
  n && "bg-f1-background-tertiary",
1521
1521
  a && "cursor-pointer hover:bg-f1-background-hover",
1522
- ie("focus-visible:ring-inset")
1522
+ se("focus-visible:ring-inset")
1523
1523
  ),
1524
1524
  onClick: a,
1525
1525
  disabled: !a,
1526
1526
  "aria-label": `${e}${n ? " (selected)" : ""}`,
1527
1527
  "aria-pressed": a ? n : void 0,
1528
1528
  children: [
1529
- /* @__PURE__ */ t(V, { icon: Ja, size: "md", color: "selected" }),
1529
+ /* @__PURE__ */ t(W, { icon: Ja, size: "md", color: "selected" }),
1530
1530
  /* @__PURE__ */ t(
1531
- ge,
1531
+ pe,
1532
1532
  {
1533
1533
  lines: 1,
1534
1534
  className: "text-[13px] font-semibold leading-5 text-f1-foreground-selected",
@@ -1554,17 +1554,17 @@ function gs({
1554
1554
  "flex w-full flex-col gap-[6px] rounded-md px-2 py-[6px] text-left transition-colors",
1555
1555
  r && "bg-f1-background-tertiary",
1556
1556
  a && "cursor-pointer hover:bg-f1-background-hover",
1557
- ie("focus-visible:ring-inset")
1557
+ se("focus-visible:ring-inset")
1558
1558
  ),
1559
1559
  onClick: a,
1560
1560
  disabled: !a,
1561
1561
  "aria-label": `Version ${l} by ${c}${r ? " (selected)" : ""}`,
1562
1562
  "aria-pressed": a ? r : void 0,
1563
1563
  children: [
1564
- /* @__PURE__ */ t(ge, { lines: 1, className: "font-medium text-f1-foreground", children: l }),
1564
+ /* @__PURE__ */ t(pe, { lines: 1, className: "font-medium text-f1-foreground", children: l }),
1565
1565
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-[6px]", children: [
1566
1566
  /* @__PURE__ */ t(
1567
- ve,
1567
+ ye,
1568
1568
  {
1569
1569
  firstName: e.firstName,
1570
1570
  lastName: e.lastName,
@@ -1573,7 +1573,7 @@ function gs({
1573
1573
  }
1574
1574
  ),
1575
1575
  /* @__PURE__ */ t(
1576
- ge,
1576
+ pe,
1577
1577
  {
1578
1578
  lines: 1,
1579
1579
  className: "font-medium text-f1-foreground-secondary",
@@ -1598,7 +1598,7 @@ function ps({
1598
1598
  "aria-label": e,
1599
1599
  children: [
1600
1600
  /* @__PURE__ */ t(
1601
- ge,
1601
+ pe,
1602
1602
  {
1603
1603
  tag: "h2",
1604
1604
  lines: 1,
@@ -1630,12 +1630,12 @@ function ps({
1630
1630
  }
1631
1631
  );
1632
1632
  }
1633
- const yc = le(
1633
+ const yc = oe(
1634
1634
  Z("F0VersionHistory", ps)
1635
- ), ta = K(
1635
+ ), ta = G(
1636
1636
  ({ height: e, itemCount: n, itemSize: a, className: r, renderer: i }, s) => {
1637
- const l = ue.useRef(null);
1638
- ue.useImperativeHandle(
1637
+ const l = fe.useRef(null);
1638
+ fe.useImperativeHandle(
1639
1639
  s,
1640
1640
  () => l.current,
1641
1641
  []
@@ -1673,7 +1673,7 @@ const yc = le(
1673
1673
  height: `${d.size}px`,
1674
1674
  transform: `translateY(${d.start}px)`
1675
1675
  },
1676
- children: d ? i(d) : /* @__PURE__ */ t(X, {})
1676
+ children: d ? i(d) : /* @__PURE__ */ t(ne, {})
1677
1677
  },
1678
1678
  d.key
1679
1679
  ))
@@ -1759,7 +1759,7 @@ const bs = ({
1759
1759
  ),
1760
1760
  children: [
1761
1761
  !u && /* @__PURE__ */ t(
1762
- ve,
1762
+ ye,
1763
1763
  {
1764
1764
  src: e.avatar,
1765
1765
  firstName: h,
@@ -1800,7 +1800,7 @@ const bs = ({
1800
1800
  }
1801
1801
  ),
1802
1802
  d && n && /* @__PURE__ */ t(
1803
- V,
1803
+ W,
1804
1804
  {
1805
1805
  className: "text-f1-icon-selected",
1806
1806
  icon: Cn,
@@ -1829,7 +1829,7 @@ const bs = ({
1829
1829
  disabled: x = !1,
1830
1830
  hiddenAvatar: v = !1
1831
1831
  }) => {
1832
- const [N, _] = E(!1);
1832
+ const [C, _] = E(!1);
1833
1833
  if (!e)
1834
1834
  return /* @__PURE__ */ t(
1835
1835
  bs,
@@ -1847,17 +1847,17 @@ const bs = ({
1847
1847
  hiddenAvatar: v
1848
1848
  }
1849
1849
  );
1850
- const B = (L) => {
1851
- if (L.key === " ")
1852
- L.preventDefault(), d(!n);
1853
- else if (L.key === "Enter" && p)
1850
+ const R = (P) => {
1851
+ if (P.key === " ")
1852
+ P.preventDefault(), d(!n);
1853
+ else if (P.key === "Enter" && p)
1854
1854
  d(!n);
1855
- else if (L.key === "Enter") {
1855
+ else if (P.key === "Enter") {
1856
1856
  if (x) return;
1857
1857
  !i || s ? l(r) : i && c(r);
1858
- } else L.key === "ArrowDown" ? nt(L.currentTarget, f) : L.key === "ArrowUp" && at(L.currentTarget, u);
1858
+ } else P.key === "ArrowDown" ? nt(P.currentTarget, f) : P.key === "ArrowUp" && at(P.currentTarget, u);
1859
1859
  }, D = () => {
1860
- if (N)
1860
+ if (C)
1861
1861
  d(!n), _(!1);
1862
1862
  else {
1863
1863
  if (x || p) return;
@@ -1865,11 +1865,11 @@ const bs = ({
1865
1865
  }
1866
1866
  };
1867
1867
  if (!r.subItems?.length) return null;
1868
- const O = i || s;
1869
- return /* @__PURE__ */ o(X, { children: [
1868
+ const A = i || s;
1869
+ return /* @__PURE__ */ o(ne, { children: [
1870
1870
  /* @__PURE__ */ o("div", { className: "flex w-full flex-row flex-wrap items-center gap-0 rounded-md border pl-2.5 pr-1", children: [
1871
1871
  /* @__PURE__ */ t(
1872
- H,
1872
+ U,
1873
1873
  {
1874
1874
  hideLabel: !0,
1875
1875
  icon: n ? tr : nr,
@@ -1890,7 +1890,7 @@ const bs = ({
1890
1890
  className: "flex flex-1 flex-row items-center gap-2 rounded border px-2 py-1.5 focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:cursor-pointer hover:bg-f1-background-hover",
1891
1891
  children: [
1892
1892
  g && /* @__PURE__ */ t(
1893
- V,
1893
+ W,
1894
1894
  {
1895
1895
  icon: ar,
1896
1896
  className: "rounded-xs bg-f1-foreground-secondary text-f1-foreground-inverse"
@@ -1911,13 +1911,13 @@ const bs = ({
1911
1911
  /* @__PURE__ */ t(
1912
1912
  kn,
1913
1913
  {
1914
- checked: O,
1914
+ checked: A,
1915
1915
  disabled: x,
1916
1916
  onClick: D,
1917
- onKeyDown: B,
1917
+ onKeyDown: R,
1918
1918
  indeterminate: s,
1919
- onPointerDown: (L) => {
1920
- L.stopPropagation(), _(!1);
1919
+ onPointerDown: (P) => {
1920
+ P.stopPropagation(), _(!1);
1921
1921
  },
1922
1922
  "data-avatarname-navigator-element": "true",
1923
1923
  className: b("ml-auto", p ? "opacity-0" : "")
@@ -1949,7 +1949,7 @@ const Jt = ({
1949
1949
  ),
1950
1950
  children: [
1951
1951
  /* @__PURE__ */ t(
1952
- H,
1952
+ U,
1953
1953
  {
1954
1954
  hideLabel: !0,
1955
1955
  label: e,
@@ -1965,7 +1965,7 @@ const Jt = ({
1965
1965
  ) }), Re = ({ primaryAction: e, secondaryActions: n }) => {
1966
1966
  if (!n || n.length === 0)
1967
1967
  return /* @__PURE__ */ t(
1968
- H,
1968
+ U,
1969
1969
  {
1970
1970
  disabled: e.disabled,
1971
1971
  variant: e.variant,
@@ -2050,7 +2050,7 @@ const Jt = ({
2050
2050
  goToFirst: i,
2051
2051
  goToLast: s
2052
2052
  }) => /* @__PURE__ */ o("div", { className: "flex justify-between gap-1 rounded border-[1px] border-solid border-f1-border px-2 py-[3px] transition-all focus-within:border-f1-border-hover hover:border-f1-border-hover", children: [
2053
- /* @__PURE__ */ t(V, { icon: Ti, size: "md" }),
2053
+ /* @__PURE__ */ t(W, { icon: Ti, size: "md" }),
2054
2054
  /* @__PURE__ */ t(
2055
2055
  "input",
2056
2056
  {
@@ -2066,7 +2066,7 @@ const Jt = ({
2066
2066
  }
2067
2067
  ),
2068
2068
  e && /* @__PURE__ */ t(
2069
- V,
2069
+ W,
2070
2070
  {
2071
2071
  icon: sr,
2072
2072
  size: "md",
@@ -2092,73 +2092,73 @@ const Jt = ({
2092
2092
  onToggleExpand: p,
2093
2093
  searchPlaceholder: x,
2094
2094
  selectAllLabel: v,
2095
- clearLabel: N,
2095
+ clearLabel: C,
2096
2096
  notFoundTitle: _,
2097
- notFoundSubtitle: B,
2097
+ notFoundSubtitle: R,
2098
2098
  className: D,
2099
- actions: O,
2100
- onCreate: L,
2101
- onCreateLabel: U,
2102
- singleSelector: R = !1,
2099
+ actions: A,
2100
+ onCreate: P,
2101
+ onCreateLabel: V,
2102
+ singleSelector: B = !1,
2103
2103
  loading: w = !1,
2104
- disabled: S = !1,
2105
- hiddenAvatar: k = !1
2104
+ disabled: k = !1,
2105
+ hiddenAvatar: I = !1
2106
2106
  }) => {
2107
- const A = ue.useRef(null), M = G(
2107
+ const F = fe.useRef(null), $ = H(
2108
2108
  () => e ? n.reduce(
2109
- (F, q) => F + (q.subItems?.length ?? 0),
2109
+ (L, q) => L + (q.subItems?.length ?? 0),
2110
2110
  0
2111
2111
  ) : n.length,
2112
2112
  [n, e]
2113
- ), y = ne(() => {
2113
+ ), y = ae(() => {
2114
2114
  setTimeout(() => {
2115
- A.current?.scrollTo({ top: 0 });
2115
+ F.current?.scrollTo({ top: 0 });
2116
2116
  }, Zt), setTimeout(() => {
2117
2117
  Array.from(
2118
2118
  document.querySelectorAll(Qt)
2119
2119
  )[0]?.focus();
2120
2120
  }, Xt);
2121
- }, []), C = ne(() => {
2121
+ }, []), S = ae(() => {
2122
2122
  setTimeout(() => {
2123
- A.current?.scrollTo({ top: A.current?.scrollHeight });
2123
+ F.current?.scrollTo({ top: F.current?.scrollHeight });
2124
2124
  }, Zt), setTimeout(() => {
2125
- const F = Array.from(
2125
+ const L = Array.from(
2126
2126
  document.querySelectorAll(Qt)
2127
2127
  );
2128
- F[F.length - 1]?.focus();
2128
+ L[L.length - 1]?.focus();
2129
2129
  }, Xt);
2130
- }, []), I = G(
2131
- () => new Map(h.map((F) => [F.id, F])),
2130
+ }, []), N = H(
2131
+ () => new Map(h.map((L) => [L.id, L])),
2132
2132
  [h]
2133
- ), P = ne(
2134
- (F) => {
2135
- const q = I.get(F.id);
2133
+ ), O = ae(
2134
+ (L) => {
2135
+ const q = N.get(L.id);
2136
2136
  if (!e)
2137
2137
  return {
2138
2138
  selected: !!q,
2139
2139
  partialSelected: !!q
2140
2140
  };
2141
- const ee = (F.subItems ?? []).filter(
2141
+ const ee = (L.subItems ?? []).filter(
2142
2142
  (T) => q?.subItems?.some(
2143
- (Q) => Q.subId === T.subId
2143
+ (X) => X.subId === T.subId
2144
2144
  )
2145
- ), J = (F.subItems?.length ?? 0) === ee.length, de = !J && ee.length > 0;
2146
- return { selected: J, partialSelected: de };
2145
+ ), J = (L.subItems?.length ?? 0) === ee.length, ue = !J && ee.length > 0;
2146
+ return { selected: J, partialSelected: ue };
2147
2147
  },
2148
- [e, I]
2149
- ), re = ne(
2150
- (F) => {
2151
- if (F.index === 0 && L)
2148
+ [e, N]
2149
+ ), ie = ae(
2150
+ (L) => {
2151
+ if (L.index === 0 && P)
2152
2152
  return /* @__PURE__ */ t(
2153
2153
  Jt,
2154
2154
  {
2155
- label: U ?? "",
2156
- onCreate: () => L?.(i),
2155
+ label: V ?? "",
2156
+ onCreate: () => P?.(i),
2157
2157
  goToFirst: y,
2158
- goToLast: C
2158
+ goToLast: S
2159
2159
  }
2160
2160
  );
2161
- const q = L ? F.index - 1 : F.index, ee = n[q], { selected: J, partialSelected: de } = P(ee);
2161
+ const q = P ? L.index - 1 : L.index, ee = n[q], { selected: J, partialSelected: ue } = O(ee);
2162
2162
  return /* @__PURE__ */ t(
2163
2163
  Ue,
2164
2164
  {
@@ -2170,83 +2170,83 @@ const Jt = ({
2170
2170
  onSelect: s,
2171
2171
  onRemove: l,
2172
2172
  selected: J,
2173
- partialSelected: de,
2173
+ partialSelected: ue,
2174
2174
  showGroupIcon: Ns(a, r),
2175
- singleSelector: R,
2175
+ singleSelector: B,
2176
2176
  goToFirst: y,
2177
- goToLast: C,
2178
- disabled: S,
2179
- hiddenAvatar: k
2177
+ goToLast: S,
2178
+ disabled: k,
2179
+ hiddenAvatar: I
2180
2180
  },
2181
2181
  ee.id
2182
2182
  );
2183
2183
  },
2184
2184
  [
2185
- L,
2186
- U,
2187
- S,
2188
- n,
2189
2185
  P,
2186
+ V,
2187
+ k,
2188
+ n,
2189
+ O,
2190
2190
  y,
2191
- C,
2191
+ S,
2192
2192
  e,
2193
2193
  a,
2194
- k,
2194
+ I,
2195
2195
  l,
2196
2196
  s,
2197
2197
  p,
2198
2198
  i,
2199
2199
  r,
2200
- R
2200
+ B
2201
2201
  ]
2202
- ), te = G(() => e ? n.flatMap((F) => {
2202
+ ), te = H(() => e ? n.flatMap((L) => {
2203
2203
  const q = We(
2204
2204
  h ?? [],
2205
- F.id
2205
+ L.id
2206
2206
  );
2207
2207
  return [
2208
2208
  {
2209
2209
  parent: null,
2210
2210
  subItem: {
2211
- subId: F.id,
2212
- subName: F.name,
2213
- subAvatar: F.avatar,
2214
- expanded: F.expanded ?? q?.expanded ?? !1,
2215
- subItems: F.subItems,
2216
- subSearchKeys: F.searchKeys
2211
+ subId: L.id,
2212
+ subName: L.name,
2213
+ subAvatar: L.avatar,
2214
+ expanded: L.expanded ?? q?.expanded ?? !1,
2215
+ subItems: L.subItems,
2216
+ subSearchKeys: L.searchKeys
2217
2217
  }
2218
2218
  },
2219
- ...(F.subItems ?? []).map((ee) => ({
2219
+ ...(L.subItems ?? []).map((ee) => ({
2220
2220
  parent: {
2221
- ...F,
2222
- expanded: F.expanded ?? q?.expanded ?? !1
2221
+ ...L,
2222
+ expanded: L.expanded ?? q?.expanded ?? !1
2223
2223
  },
2224
2224
  subItem: ee
2225
2225
  }))
2226
2226
  ];
2227
2227
  }).filter(
2228
- (F) => (!F.parent || F.parent.expanded) && (!!F.parent || !!F.subItem.subItems && F.subItem.subItems.length > 0)
2229
- ) : n.map((F) => ({
2228
+ (L) => (!L.parent || L.parent.expanded) && (!!L.parent || !!L.subItem.subItems && L.subItem.subItems.length > 0)
2229
+ ) : n.map((L) => ({
2230
2230
  parent: null,
2231
2231
  subItem: {
2232
- subId: F.id,
2233
- subName: F.name,
2234
- subAvatar: F.avatar,
2235
- subSearchKeys: F.searchKeys
2232
+ subId: L.id,
2233
+ subName: L.name,
2234
+ subAvatar: L.avatar,
2235
+ subSearchKeys: L.searchKeys
2236
2236
  }
2237
- })), [e, n, h]), $ = ne(
2238
- (F) => {
2239
- if (F.index === 0 && L)
2237
+ })), [e, n, h]), Q = ae(
2238
+ (L) => {
2239
+ if (L.index === 0 && P)
2240
2240
  return /* @__PURE__ */ t(
2241
2241
  Jt,
2242
2242
  {
2243
- label: U ?? "",
2244
- onCreate: () => L?.(i),
2243
+ label: V ?? "",
2244
+ onCreate: () => P?.(i),
2245
2245
  goToFirst: y,
2246
- goToLast: C
2246
+ goToLast: S
2247
2247
  }
2248
2248
  );
2249
- const q = L ? F.index - 1 : F.index, ee = te[q].parent, J = te[q].subItem;
2249
+ const q = P ? L.index - 1 : L.index, ee = te[q].parent, J = te[q].subItem;
2250
2250
  if (!ee) {
2251
2251
  const T = {
2252
2252
  id: J.subId,
@@ -2255,14 +2255,14 @@ const Jt = ({
2255
2255
  subItems: J.subItems,
2256
2256
  expanded: J.expanded,
2257
2257
  searchKeys: J.subSearchKeys
2258
- }, Q = We(
2258
+ }, X = We(
2259
2259
  h,
2260
2260
  T.id
2261
- ), ce = (T?.subItems ?? []).filter(
2262
- (ze) => Q?.subItems?.some(
2261
+ ), de = (T?.subItems ?? []).filter(
2262
+ (ze) => X?.subItems?.some(
2263
2263
  (Na) => Na.subId === ze.subId
2264
2264
  )
2265
- ), he = (T.subItems?.length ?? 0) === ce.length, wa = !he && ce.length > 0;
2265
+ ), ge = (T.subItems?.length ?? 0) === de.length, wa = !ge && de.length > 0;
2266
2266
  return /* @__PURE__ */ t(
2267
2267
  Ue,
2268
2268
  {
@@ -2273,29 +2273,29 @@ const Jt = ({
2273
2273
  entity: T,
2274
2274
  onSelect: s,
2275
2275
  onRemove: l,
2276
- selected: he,
2276
+ selected: ge,
2277
2277
  partialSelected: wa,
2278
2278
  showGroupIcon: a.find((ze) => ze.value === r)?.groupType === "team",
2279
- singleSelector: R,
2279
+ singleSelector: B,
2280
2280
  goToFirst: y,
2281
- goToLast: C,
2281
+ goToLast: S,
2282
2282
  hideLine: q === te.length - 1,
2283
- disabled: S,
2284
- hiddenAvatar: k
2283
+ disabled: k,
2284
+ hiddenAvatar: I
2285
2285
  }
2286
2286
  );
2287
2287
  }
2288
- let de = !!We(h, J.subId);
2289
- if (!de) {
2288
+ let ue = !!We(h, J.subId);
2289
+ if (!ue) {
2290
2290
  const T = We(
2291
2291
  h,
2292
2292
  ee.id
2293
2293
  );
2294
- de = !!(ee?.subItems ?? []).filter(
2295
- (ce) => T?.subItems?.some(
2296
- (he) => he.subId === ce.subId
2294
+ ue = !!(ee?.subItems ?? []).filter(
2295
+ (de) => T?.subItems?.some(
2296
+ (ge) => ge.subId === de.subId
2297
2297
  )
2298
- ).find((ce) => ce.subId === J.subId);
2298
+ ).find((de) => de.subId === J.subId);
2299
2299
  }
2300
2300
  return /* @__PURE__ */ t(
2301
2301
  Ue,
@@ -2314,13 +2314,13 @@ const Jt = ({
2314
2314
  d(ee, J);
2315
2315
  },
2316
2316
  onRemove: () => c(ee, J),
2317
- selected: !!de,
2317
+ selected: !!ue,
2318
2318
  partialSelected: !1,
2319
- singleSelector: R,
2319
+ singleSelector: B,
2320
2320
  goToFirst: y,
2321
- goToLast: C,
2321
+ goToLast: S,
2322
2322
  isChild: !0,
2323
- hiddenAvatar: k
2323
+ hiddenAvatar: I
2324
2324
  }
2325
2325
  );
2326
2326
  },
@@ -2328,52 +2328,52 @@ const Jt = ({
2328
2328
  te,
2329
2329
  h,
2330
2330
  i,
2331
- R,
2331
+ B,
2332
2332
  y,
2333
- C,
2333
+ S,
2334
2334
  s,
2335
2335
  l,
2336
2336
  a,
2337
- S,
2337
+ k,
2338
2338
  p,
2339
2339
  r,
2340
2340
  d,
2341
2341
  c,
2342
- k,
2343
- L,
2344
- U
2342
+ I,
2343
+ P,
2344
+ V
2345
2345
  ]
2346
- ), [Ce, be] = G(() => {
2346
+ ), [xe, K] = H(() => {
2347
2347
  if (!n.length)
2348
2348
  return [!1, !1];
2349
- let F = 0, q = 0;
2349
+ let L = 0, q = 0;
2350
2350
  if (!e)
2351
- F = n.length, q = n.reduce(
2352
- (de, { id: T }) => de + (I.has(T) ? 1 : 0),
2351
+ L = n.length, q = n.reduce(
2352
+ (ue, { id: T }) => ue + (N.has(T) ? 1 : 0),
2353
2353
  0
2354
2354
  );
2355
2355
  else {
2356
- const de = new Set(
2357
- [...I.values()].flatMap(
2358
- (T) => T.subItems?.map((Q) => Q.subId) ?? []
2356
+ const ue = new Set(
2357
+ [...N.values()].flatMap(
2358
+ (T) => T.subItems?.map((X) => X.subId) ?? []
2359
2359
  )
2360
2360
  );
2361
2361
  n.forEach((T) => {
2362
- const Q = T.subItems ?? [];
2363
- F += Q.length, q += Q.filter(
2364
- (ce) => de.has(ce.subId)
2362
+ const X = T.subItems ?? [];
2363
+ L += X.length, q += X.filter(
2364
+ (de) => ue.has(de.subId)
2365
2365
  ).length;
2366
2366
  });
2367
2367
  }
2368
- const ee = F > 0 && q === F, J = q > 0;
2368
+ const ee = L > 0 && q === L, J = q > 0;
2369
2369
  return [ee, J];
2370
- }, [n, I, e]), ke = te.length, oe = !R && (v || N), st = O && O.length > 0, Te = !w && (!R && oe || st);
2370
+ }, [n, N, e]), ke = te.length, ce = !B && (v || C), st = A && A.length > 0, Te = !w && (!B && ce || st);
2371
2371
  return /* @__PURE__ */ o(
2372
2372
  "div",
2373
2373
  {
2374
2374
  className: b(
2375
2375
  "flex w-full flex-col rounded-l-xl border-0",
2376
- R || w ? "rounded-r-xl" : "",
2376
+ B || w ? "rounded-r-xl" : "",
2377
2377
  D
2378
2378
  ),
2379
2379
  children: [
@@ -2382,7 +2382,7 @@ const Jt = ({
2382
2382
  {
2383
2383
  className: b(
2384
2384
  "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",
2385
- R || w ? "rounded-t-xl border-r-0" : ""
2385
+ B || w ? "rounded-t-xl border-r-0" : ""
2386
2386
  ),
2387
2387
  children: [
2388
2388
  /* @__PURE__ */ t("div", { className: "flex-1", children: /* @__PURE__ */ t(
@@ -2392,7 +2392,7 @@ const Jt = ({
2392
2392
  onSearch: m,
2393
2393
  searchPlaceholder: x,
2394
2394
  goToFirst: y,
2395
- goToLast: C
2395
+ goToLast: S
2396
2396
  }
2397
2397
  ) }),
2398
2398
  a && a.length > 1 && /* @__PURE__ */ t("div", { className: "flex-1", children: /* @__PURE__ */ t(
@@ -2422,7 +2422,7 @@ const Jt = ({
2422
2422
  ),
2423
2423
  children: [
2424
2424
  w && /* @__PURE__ */ t("div", { className: "flex h-full w-full flex-row items-center justify-center", children: /* @__PURE__ */ t(yn, {}) }),
2425
- !w && !M && /* @__PURE__ */ o(
2425
+ !w && !$ && /* @__PURE__ */ o(
2426
2426
  "div",
2427
2427
  {
2428
2428
  className: "absolute flex w-full flex-col items-center justify-center gap-0.5 p-5",
@@ -2431,31 +2431,31 @@ const Jt = ({
2431
2431
  },
2432
2432
  children: [
2433
2433
  /* @__PURE__ */ t("span", { className: "text-lg font-medium", children: _ }),
2434
- /* @__PURE__ */ t("span", { className: "text-center text-f1-foreground-secondary", children: B })
2434
+ /* @__PURE__ */ t("span", { className: "text-center text-f1-foreground-secondary", children: R })
2435
2435
  ]
2436
2436
  }
2437
2437
  ),
2438
- !w && (!!M || L) && /* @__PURE__ */ t("div", { className: "h-full", children: e ? /* @__PURE__ */ t(
2438
+ !w && (!!$ || P) && /* @__PURE__ */ t("div", { className: "h-full", children: e ? /* @__PURE__ */ t(
2439
2439
  xt,
2440
2440
  {
2441
2441
  height: lt,
2442
- itemCount: ke + (L ? 1 : 0),
2443
- itemSize: (F) => {
2444
- if (F === 0 && L) return ot;
2445
- const q = L ? F - 1 : F;
2442
+ itemCount: ke + (P ? 1 : 0),
2443
+ itemSize: (L) => {
2444
+ if (L === 0 && P) return ot;
2445
+ const q = P ? L - 1 : L;
2446
2446
  return te[q]?.parent === null ? ys : ot;
2447
2447
  },
2448
- renderer: $,
2449
- ref: A
2448
+ renderer: Q,
2449
+ ref: F
2450
2450
  }
2451
2451
  ) : /* @__PURE__ */ t(
2452
2452
  xt,
2453
2453
  {
2454
2454
  height: lt,
2455
- itemCount: n.length + (L ? 1 : 0),
2455
+ itemCount: n.length + (P ? 1 : 0),
2456
2456
  itemSize: ot,
2457
- renderer: re,
2458
- ref: A
2457
+ renderer: ie,
2458
+ ref: F
2459
2459
  }
2460
2460
  ) })
2461
2461
  ]
@@ -2466,14 +2466,14 @@ const Jt = ({
2466
2466
  {
2467
2467
  onSelectAll: u,
2468
2468
  onClear: f,
2469
- singleSelector: R,
2470
- totalFilteredEntities: M,
2471
- allVisibleSelected: Ce,
2472
- anyVisibleSelected: be,
2469
+ singleSelector: B,
2470
+ totalFilteredEntities: $,
2471
+ allVisibleSelected: xe,
2472
+ anyVisibleSelected: K,
2473
2473
  selectAllLabel: v,
2474
- clearLabel: N,
2475
- disabled: S,
2476
- actions: O
2474
+ clearLabel: C,
2475
+ disabled: k,
2476
+ actions: A
2477
2477
  }
2478
2478
  )
2479
2479
  ]
@@ -2504,7 +2504,7 @@ const Jt = ({
2504
2504
  }
2505
2505
  ),
2506
2506
  right: !a && /* @__PURE__ */ t(
2507
- V,
2507
+ W,
2508
2508
  {
2509
2509
  icon: Ee,
2510
2510
  size: "sm",
@@ -2524,7 +2524,7 @@ const Jt = ({
2524
2524
  disabled: s = !1,
2525
2525
  hiddenAvatar: l = !1
2526
2526
  }) => {
2527
- const c = G(() => {
2527
+ const c = H(() => {
2528
2528
  const f = e ? r.flatMap(
2529
2529
  (m) => (m.subItems ?? []).map((h) => ({
2530
2530
  parent: m,
@@ -2572,7 +2572,7 @@ const Jt = ({
2572
2572
  avatar: u.subItem.subAvatar
2573
2573
  })
2574
2574
  }
2575
- ) : /* @__PURE__ */ t(X, {});
2575
+ ) : /* @__PURE__ */ t(ne, {});
2576
2576
  }
2577
2577
  }
2578
2578
  ) })
@@ -2668,29 +2668,29 @@ const Jt = ({
2668
2668
  loading: p = !1,
2669
2669
  required: x = !1,
2670
2670
  readonly: v = !1,
2671
- append: N,
2671
+ append: C,
2672
2672
  size: _ = "sm",
2673
- open: B
2673
+ open: R
2674
2674
  }) => {
2675
- const D = G(
2675
+ const D = H(
2676
2676
  () => a.some(
2677
- (R) => R.subItems && R.subItems.length > 0
2677
+ (B) => B.subItems && B.subItems.length > 0
2678
2678
  ),
2679
2679
  [a]
2680
- ), O = G(() => D ? a.flatMap(
2681
- (R) => (R.subItems ?? []).map((w) => ({
2682
- parent: R,
2680
+ ), A = H(() => D ? a.flatMap(
2681
+ (B) => (B.subItems ?? []).map((w) => ({
2682
+ parent: B,
2683
2683
  subItem: w
2684
2684
  }))
2685
- ) : a.map((R) => ({
2685
+ ) : a.map((B) => ({
2686
2686
  parent: null,
2687
2687
  subItem: {
2688
- subId: R.id,
2689
- subName: R.name,
2690
- subAvatar: R.avatar,
2691
- subDeactivated: R.deactivated
2688
+ subId: B.id,
2689
+ subName: B.name,
2690
+ subAvatar: B.avatar,
2691
+ subDeactivated: B.deactivated
2692
2692
  }
2693
- })), [D, a]), L = O.length === 0 ? void 0 : O.length === 1 ? O[0].subItem.subName : O.length + " " + n, U = O.length === 1 ? O[0].subItem.subName : void 0;
2693
+ })), [D, a]), P = A.length === 0 ? void 0 : A.length === 1 ? A[0].subItem.subName : A.length + " " + n, V = A.length === 1 ? A[0].subItem.subName : void 0;
2694
2694
  return /* @__PURE__ */ t(
2695
2695
  cr,
2696
2696
  {
@@ -2700,27 +2700,27 @@ const Jt = ({
2700
2700
  labelIcon: l,
2701
2701
  "aria-expanded": !1,
2702
2702
  "aria-controls": "listbox",
2703
- icon: c && !L ? c : void 0,
2703
+ icon: c && !P ? c : void 0,
2704
2704
  error: d,
2705
2705
  status: f,
2706
2706
  hint: u,
2707
2707
  hideLabel: h,
2708
2708
  maxLength: g,
2709
2709
  clearable: !1,
2710
- value: L,
2710
+ value: P,
2711
2711
  disabled: r,
2712
2712
  loading: p,
2713
2713
  required: x,
2714
2714
  readonly: v,
2715
2715
  size: _,
2716
- avatar: i || !U ? void 0 : {
2716
+ avatar: i || !V ? void 0 : {
2717
2717
  type: "person",
2718
- firstName: U,
2718
+ firstName: V,
2719
2719
  lastName: "",
2720
- src: O[0].subItem.subAvatar,
2721
- deactivated: O[0].subItem.subDeactivated
2720
+ src: A[0].subItem.subAvatar,
2721
+ deactivated: A[0].subItem.subDeactivated
2722
2722
  },
2723
- append: N ?? /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(dr, { open: B, disabled: r, size: _ }) }),
2723
+ append: C ?? /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(dr, { open: R, disabled: r, size: _ }) }),
2724
2724
  children: /* @__PURE__ */ t(
2725
2725
  "span",
2726
2726
  {
@@ -2728,15 +2728,15 @@ const Jt = ({
2728
2728
  className: b(
2729
2729
  "my-auto flex items-center pr-1",
2730
2730
  e && "text-f1-foreground-secondary",
2731
- L && "text-f1-foreground",
2732
- O.length === 1 && !i || c && !L ? "pl-8" : "pl-2"
2731
+ P && "text-f1-foreground",
2732
+ A.length === 1 && !i || c && !P ? "pl-8" : "pl-2"
2733
2733
  ),
2734
2734
  children: /* @__PURE__ */ t(
2735
- ge,
2735
+ pe,
2736
2736
  {
2737
2737
  tag: "span",
2738
- className: O.length === 1 && O[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
2739
- children: O.length === 0 ? e ?? "" : O.length === 1 ? O[0].subItem.subName : `${O.length} ${n}`
2738
+ className: A.length === 1 && A[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
2739
+ children: A.length === 0 ? e ?? "" : A.length === 1 ? A[0].subItem.subName : `${A.length} ${n}`
2740
2740
  }
2741
2741
  )
2742
2742
  }
@@ -2752,84 +2752,84 @@ const Jt = ({
2752
2752
  j(() => {
2753
2753
  e.defaultOpen && n && e.onOpenChange?.(!0);
2754
2754
  }, [e.defaultOpen]);
2755
- const [i, s] = E(e.entities), [l, c] = E(""), [d, f] = ur("", 300), u = G(
2755
+ const [i, s] = E(e.entities), [l, c] = E(""), [d, f] = ur("", 300), u = H(
2756
2756
  () => e.entities.some(
2757
2757
  (w) => w.subItems && w.subItems.length > 0
2758
2758
  ),
2759
2759
  [e.entities]
2760
- ), m = Ne(fr), g = m.portalContainer && (m.position === "center" || m.position === "fullscreen") ? m.portalContainer : void 0;
2760
+ ), m = Ce(fr), g = m.portalContainer && (m.position === "center" || m.position === "fullscreen") ? m.portalContainer : void 0;
2761
2761
  function p(w) {
2762
2762
  if (e.singleSelector) {
2763
2763
  e.onSelect(w), a(!1);
2764
2764
  return;
2765
2765
  }
2766
- const S = e.selectedEntities ?? [], k = i.find((I) => I.id === w.id);
2767
- if (!k)
2766
+ const k = e.selectedEntities ?? [], I = i.find((N) => N.id === w.id);
2767
+ if (!I)
2768
2768
  return;
2769
- const A = new Set(
2770
- (k.subItems ?? []).map((I) => I.subId)
2771
- ), M = /* @__PURE__ */ new Set([k.id]);
2772
- i.forEach((I) => {
2773
- I.id !== k.id && (I.subItems ?? []).some(
2774
- (re) => A.has(re.subId)
2775
- ) && M.add(I.id);
2769
+ const F = new Set(
2770
+ (I.subItems ?? []).map((N) => N.subId)
2771
+ ), $ = /* @__PURE__ */ new Set([I.id]);
2772
+ i.forEach((N) => {
2773
+ N.id !== I.id && (N.subItems ?? []).some(
2774
+ (ie) => F.has(ie.subId)
2775
+ ) && $.add(N.id);
2776
2776
  });
2777
- const y = [...S];
2778
- function C(I) {
2779
- const P = y.findIndex((re) => re.id === I.id);
2780
- P >= 0 ? y[P] = I : y.push(I);
2777
+ const y = [...k];
2778
+ function S(N) {
2779
+ const O = y.findIndex((ie) => ie.id === N.id);
2780
+ O >= 0 ? y[O] = N : y.push(N);
2781
2781
  }
2782
- M.forEach((I) => {
2783
- const P = i.find(($) => $.id === I);
2784
- if (!P) return;
2785
- const re = P.subItems?.filter(
2786
- ($) => A.has($.subId)
2787
- ) ?? [], te = y.findIndex(($) => $.id === I);
2782
+ $.forEach((N) => {
2783
+ const O = i.find((Q) => Q.id === N);
2784
+ if (!O) return;
2785
+ const ie = O.subItems?.filter(
2786
+ (Q) => F.has(Q.subId)
2787
+ ) ?? [], te = y.findIndex((Q) => Q.id === N);
2788
2788
  if (te >= 0) {
2789
- const $ = y[te].subItems ?? [], Ce = new Set($.map((ke) => ke.subId)), be = [
2790
- ...$,
2791
- ...re.filter((ke) => !Ce.has(ke.subId))
2789
+ const Q = y[te].subItems ?? [], xe = new Set(Q.map((ke) => ke.subId)), K = [
2790
+ ...Q,
2791
+ ...ie.filter((ke) => !xe.has(ke.subId))
2792
2792
  ];
2793
- C({
2794
- ...P,
2795
- subItems: be
2793
+ S({
2794
+ ...O,
2795
+ subItems: K
2796
2796
  });
2797
2797
  } else
2798
- C({
2799
- ...P,
2800
- subItems: re
2798
+ S({
2799
+ ...O,
2800
+ subItems: ie
2801
2801
  });
2802
2802
  }), e.onSelect(y);
2803
2803
  }
2804
- function x(w, S) {
2804
+ function x(w, k) {
2805
2805
  if (e.singleSelector)
2806
- e.onSelect({ ...w, subItems: [{ ...S }] }), a(!1);
2806
+ e.onSelect({ ...w, subItems: [{ ...k }] }), a(!1);
2807
2807
  else {
2808
- const k = e.selectedEntities ?? [], A = new Set(k.map((C) => C.id)), M = new Map(
2809
- k.map((C) => [C.id, C.subItems ?? []])
2808
+ const I = e.selectedEntities ?? [], F = new Set(I.map((S) => S.id)), $ = new Map(
2809
+ I.map((S) => [S.id, S.subItems ?? []])
2810
2810
  );
2811
- A.add(w.id), e.entities.forEach((C) => {
2812
- C.subItems?.some(
2813
- (P) => P.subId === S.subId
2814
- ) && A.add(C.id);
2811
+ F.add(w.id), e.entities.forEach((S) => {
2812
+ S.subItems?.some(
2813
+ (O) => O.subId === k.subId
2814
+ ) && F.add(S.id);
2815
2815
  });
2816
2816
  const y = [];
2817
- e.entities.forEach((C) => {
2818
- if (A.has(C.id)) {
2819
- let P = [...M.get(C.id) ?? []];
2820
- C.subItems?.some(
2821
- ($) => $.subId === S.subId
2822
- ) && (P.some(
2823
- (Ce) => Ce.subId === S.subId
2824
- ) || P.push(S));
2817
+ e.entities.forEach((S) => {
2818
+ if (F.has(S.id)) {
2819
+ let O = [...$.get(S.id) ?? []];
2820
+ S.subItems?.some(
2821
+ (Q) => Q.subId === k.subId
2822
+ ) && (O.some(
2823
+ (xe) => xe.subId === k.subId
2824
+ ) || O.push(k));
2825
2825
  const te = new Set(
2826
- (C.subItems ?? []).map(($) => $.subId)
2826
+ (S.subItems ?? []).map((Q) => Q.subId)
2827
2827
  );
2828
- P = P.filter(
2829
- ($) => te.has($.subId)
2828
+ O = O.filter(
2829
+ (Q) => te.has(Q.subId)
2830
2830
  ), y.push({
2831
- ...C,
2832
- subItems: P
2831
+ ...S,
2832
+ subItems: O
2833
2833
  });
2834
2834
  }
2835
2835
  }), e.onSelect(y);
@@ -2840,44 +2840,44 @@ const Jt = ({
2840
2840
  e.onSelect(null);
2841
2841
  return;
2842
2842
  }
2843
- let S = [];
2844
- const k = e.selectedEntities ?? [];
2843
+ let k = [];
2844
+ const I = e.selectedEntities ?? [];
2845
2845
  if (u) {
2846
- const A = i.find(
2846
+ const F = i.find(
2847
2847
  (y) => y.id === w.id
2848
2848
  );
2849
- if (!A)
2849
+ if (!F)
2850
2850
  return;
2851
- const M = new Set(
2852
- (A.subItems ?? []).map((y) => y.subId)
2851
+ const $ = new Set(
2852
+ (F.subItems ?? []).map((y) => y.subId)
2853
2853
  );
2854
- for (const y of k) {
2855
- const C = (y.subItems ?? []).filter(
2856
- (I) => !M.has(I.subId)
2854
+ for (const y of I) {
2855
+ const S = (y.subItems ?? []).filter(
2856
+ (N) => !$.has(N.subId)
2857
2857
  );
2858
- C.length > 0 && S.push({
2858
+ S.length > 0 && k.push({
2859
2859
  ...y,
2860
- subItems: C
2860
+ subItems: S
2861
2861
  });
2862
2862
  }
2863
2863
  } else
2864
- S = (k ?? []).filter((A) => A.id !== w.id);
2865
- e.onSelect(S);
2864
+ k = (I ?? []).filter((F) => F.id !== w.id);
2865
+ e.onSelect(k);
2866
2866
  }
2867
- function N(w, S) {
2867
+ function C(w, k) {
2868
2868
  if (e.singleSelector) {
2869
2869
  e.onSelect(null);
2870
2870
  return;
2871
2871
  }
2872
- const k = e.selectedEntities ?? [], A = S.subId, M = [];
2873
- for (const y of k) {
2874
- const C = y.subItems?.filter((I) => I.subId !== A) ?? [];
2875
- C.length > 0 && M.push({
2872
+ const I = e.selectedEntities ?? [], F = k.subId, $ = [];
2873
+ for (const y of I) {
2874
+ const S = y.subItems?.filter((N) => N.subId !== F) ?? [];
2875
+ S.length > 0 && $.push({
2876
2876
  ...y,
2877
- subItems: C
2877
+ subItems: S
2878
2878
  });
2879
2879
  }
2880
- e.onSelect(M);
2880
+ e.onSelect($);
2881
2881
  }
2882
2882
  function _() {
2883
2883
  if (e.singleSelector) {
@@ -2885,56 +2885,56 @@ const Jt = ({
2885
2885
  return;
2886
2886
  }
2887
2887
  const w = e.selectedEntities ?? [];
2888
- let S = [];
2888
+ let k = [];
2889
2889
  if (u) {
2890
- const k = new Set(
2890
+ const I = new Set(
2891
2891
  i.flatMap(
2892
- (A) => (A.subItems ?? []).map((M) => M.subId)
2892
+ (F) => (F.subItems ?? []).map(($) => $.subId)
2893
2893
  )
2894
2894
  );
2895
- for (const A of w) {
2896
- const M = (A.subItems ?? []).filter(
2897
- (y) => !k.has(y.subId)
2895
+ for (const F of w) {
2896
+ const $ = (F.subItems ?? []).filter(
2897
+ (y) => !I.has(y.subId)
2898
2898
  );
2899
- M.length > 0 && S.push({
2900
- ...A,
2901
- subItems: M
2899
+ $.length > 0 && k.push({
2900
+ ...F,
2901
+ subItems: $
2902
2902
  });
2903
2903
  }
2904
2904
  } else {
2905
- const k = new Set(
2906
- i.map((A) => A.id)
2905
+ const I = new Set(
2906
+ i.map((F) => F.id)
2907
2907
  );
2908
- S = (w ?? []).filter((A) => !k.has(A.id));
2908
+ k = (w ?? []).filter((F) => !I.has(F.id));
2909
2909
  }
2910
- e.onSelect(S);
2910
+ e.onSelect(k);
2911
2911
  }
2912
- function B() {
2912
+ function R() {
2913
2913
  const w = [...e.selectedEntities ?? []];
2914
- i.forEach((S) => {
2915
- const k = w.find((A) => A.id === S.id);
2916
- if (!k)
2914
+ i.forEach((k) => {
2915
+ const I = w.find((F) => F.id === k.id);
2916
+ if (!I)
2917
2917
  w.push({
2918
- ...S,
2919
- subItems: S.subItems || []
2918
+ ...k,
2919
+ subItems: k.subItems || []
2920
2920
  });
2921
2921
  else {
2922
- const A = Array.from(
2922
+ const F = Array.from(
2923
2923
  /* @__PURE__ */ new Set([
2924
- ...k.subItems ?? [],
2925
- ...S.subItems ?? []
2924
+ ...I.subItems ?? [],
2925
+ ...k.subItems ?? []
2926
2926
  ])
2927
2927
  );
2928
- k.subItems = A;
2928
+ I.subItems = F;
2929
2929
  }
2930
2930
  }), e.singleSelector || e.onSelect(w);
2931
2931
  }
2932
2932
  const D = (w) => {
2933
2933
  c(w), f(w);
2934
- }, O = (w, S) => {
2935
- e.onItemExpandedChange(w.id, S), s(
2934
+ }, A = (w, k) => {
2935
+ e.onItemExpandedChange(w.id, k), s(
2936
2936
  i.map(
2937
- (k) => k.id === w.id ? { ...k, expanded: !w.expanded } : k
2937
+ (I) => I.id === w.id ? { ...I, expanded: !w.expanded } : I
2938
2938
  )
2939
2939
  );
2940
2940
  };
@@ -2944,30 +2944,30 @@ const Jt = ({
2944
2944
  return;
2945
2945
  }
2946
2946
  if (u && !e.applySearchToGroup) {
2947
- const S = e.entities.map((k) => {
2948
- const A = Fs(k, d), M = k.subItems?.map((y) => ({
2947
+ const k = e.entities.map((I) => {
2948
+ const F = Fs(I, d), $ = I.subItems?.map((y) => ({
2949
2949
  ...y,
2950
2950
  score: Je(
2951
2951
  d,
2952
2952
  y.subSearchKeys ?? [y.subName]
2953
2953
  )
2954
- })).filter((y) => y.score < 1 / 0).sort((y, C) => y.score - C.score);
2954
+ })).filter((y) => y.score < 1 / 0).sort((y, S) => y.score - S.score);
2955
2955
  return {
2956
- ...k,
2957
- score: A,
2958
- expanded: k.expanded ?? (M?.length ?? 0) > 0,
2959
- subItems: M
2956
+ ...I,
2957
+ score: F,
2958
+ expanded: I.expanded ?? ($?.length ?? 0) > 0,
2959
+ subItems: $
2960
2960
  };
2961
- }).filter((k) => k.score < 1 / 0).sort((k, A) => k.score - A.score);
2962
- s(S);
2961
+ }).filter((I) => I.score < 1 / 0).sort((I, F) => I.score - F.score);
2962
+ s(k);
2963
2963
  } else {
2964
- const w = e.entities.map((S) => {
2965
- const k = Je(
2964
+ const w = e.entities.map((k) => {
2965
+ const I = Je(
2966
2966
  d,
2967
- S.searchKeys ?? [S.name]
2967
+ k.searchKeys ?? [k.name]
2968
2968
  );
2969
- return { ...S, score: k };
2970
- }).filter((S) => S.score < 1 / 0).sort((S, k) => S.score - k.score);
2969
+ return { ...k, score: I };
2970
+ }).filter((k) => k.score < 1 / 0).sort((k, I) => k.score - I.score);
2971
2971
  s(w);
2972
2972
  }
2973
2973
  }, [
@@ -2977,16 +2977,16 @@ const Jt = ({
2977
2977
  u,
2978
2978
  s
2979
2979
  ]);
2980
- const L = W(null), [U, R] = E(0);
2981
- return Mn(() => {
2980
+ const P = M(null), [V, B] = E(0);
2981
+ return jn(() => {
2982
2982
  const w = () => {
2983
- L.current && R(L.current.offsetWidth);
2983
+ P.current && B(P.current.offsetWidth);
2984
2984
  };
2985
2985
  return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
2986
2986
  }, []), e.alwaysOpen ? /* @__PURE__ */ t(
2987
2987
  "div",
2988
2988
  {
2989
- ref: L,
2989
+ ref: P,
2990
2990
  className: b(
2991
2991
  "scrollbar-macos relative overflow-hidden rounded-xl border-[1px] border-solid border-f1-border-secondary bg-transparent p-0",
2992
2992
  e.width ? "w-fit" : "w-full"
@@ -3001,14 +3001,14 @@ const Jt = ({
3001
3001
  selectedGroup: e.selectedGroup,
3002
3002
  onSelect: p,
3003
3003
  onRemove: v,
3004
- onSubItemRemove: N,
3004
+ onSubItemRemove: C,
3005
3005
  onSubItemSelect: x,
3006
3006
  onClear: _,
3007
- onSelectAll: B,
3007
+ onSelectAll: R,
3008
3008
  selectedEntities: e.selectedEntities ?? [],
3009
3009
  search: l,
3010
3010
  onSearch: D,
3011
- onToggleExpand: O,
3011
+ onToggleExpand: A,
3012
3012
  searchPlaceholder: e.searchPlaceholder,
3013
3013
  selectAllLabel: e.selectAllLabel,
3014
3014
  clearLabel: e.clearLabel,
@@ -3017,7 +3017,7 @@ const Jt = ({
3017
3017
  loading: e.loading,
3018
3018
  notFoundTitle: e.notFoundTitle,
3019
3019
  notFoundSubtitle: e.notFoundSubtitle,
3020
- width: e.width ?? U - 2,
3020
+ width: e.width ?? V - 2,
3021
3021
  disabled: e.disabled,
3022
3022
  hiddenAvatar: e.hiddenAvatar,
3023
3023
  onCreate: e.onCreate,
@@ -3076,14 +3076,14 @@ const Jt = ({
3076
3076
  selectedGroup: e.selectedGroup,
3077
3077
  onSelect: p,
3078
3078
  onRemove: v,
3079
- onSubItemRemove: N,
3079
+ onSubItemRemove: C,
3080
3080
  onSubItemSelect: x,
3081
3081
  onClear: _,
3082
- onSelectAll: B,
3082
+ onSelectAll: R,
3083
3083
  selectedEntities: e.selectedEntities ?? [],
3084
3084
  search: l,
3085
3085
  onSearch: D,
3086
- onToggleExpand: O,
3086
+ onToggleExpand: A,
3087
3087
  searchPlaceholder: e.searchPlaceholder,
3088
3088
  selectAllLabel: e.selectAllLabel,
3089
3089
  clearLabel: e.clearLabel,
@@ -3196,14 +3196,14 @@ const As = ({
3196
3196
  ] })
3197
3197
  ] }), Et = Z(
3198
3198
  "ActivityItem",
3199
- ae(As, Ls)
3199
+ re(As, Ls)
3200
3200
  ), aa = ({
3201
3201
  title: e,
3202
3202
  children: n
3203
3203
  }) => /* @__PURE__ */ o("div", { children: [
3204
3204
  /* @__PURE__ */ t("div", { className: "pb-2 pl-2 pt-1", children: /* @__PURE__ */ t("p", { className: "text-sm font-medium text-f1-foreground-secondary", children: e }) }),
3205
3205
  /* @__PURE__ */ t("div", { className: "flex flex-col gap-1", children: n })
3206
- ] }), Os = ({
3206
+ ] }), Ps = ({
3207
3207
  title: e,
3208
3208
  items: n,
3209
3209
  onClickItem: a,
@@ -3216,10 +3216,10 @@ const As = ({
3216
3216
  onVisible: r
3217
3217
  },
3218
3218
  i.id
3219
- )) }), Ps = ({
3219
+ )) }), Os = ({
3220
3220
  title: e,
3221
3221
  numItems: n
3222
- }) => /* @__PURE__ */ t(aa, { title: e, children: Array.from({ length: n }).map((a, r) => /* @__PURE__ */ t(Et.Skeleton, {}, r)) }), He = ae(Os, Ps), Es = 3, _s = ["today", "yesterday", "lastWeek", "lastMonth"], Ds = (e) => xr(e, ([n]) => {
3222
+ }) => /* @__PURE__ */ t(aa, { title: e, children: Array.from({ length: n }).map((a, r) => /* @__PURE__ */ t(Et.Skeleton, {}, r)) }), He = re(Ps, Os), Es = 3, _s = ["today", "yesterday", "lastWeek", "lastMonth"], Ds = (e) => xr(e, ([n]) => {
3223
3223
  const a = _s.indexOf(n);
3224
3224
  return a === -1 ? -Number(n) : a - 4e3;
3225
3225
  }), yt = () => /* @__PURE__ */ t("div", { className: "-mx-2 h-px bg-f1-background-secondary" }), Ts = ({
@@ -3229,13 +3229,13 @@ const As = ({
3229
3229
  onEndReached: r,
3230
3230
  onEndReachedItemsThreshold: i = 5
3231
3231
  }) => {
3232
- const s = se(), l = pr(e, "createdAt"), c = Object.values(l).slice().flatMap((u) => u.map((m) => m.id)).slice(-i), d = br((u) => {
3232
+ const s = le(), l = pr(e, "createdAt"), c = Object.values(l).slice().flatMap((u) => u.map((m) => m.id)).slice(-i), d = br((u) => {
3233
3233
  c.includes(u) && r?.();
3234
3234
  }, 1e3), f = Ds(
3235
3235
  Object.entries(l).filter(([u, m]) => !!m.length)
3236
3236
  );
3237
3237
  return /* @__PURE__ */ o("div", { className: "flex flex-col gap-2 p-2", children: [
3238
- f.map(([u, m], h) => /* @__PURE__ */ o(ue.Fragment, { children: [
3238
+ f.map(([u, m], h) => /* @__PURE__ */ o(fe.Fragment, { children: [
3239
3239
  /* @__PURE__ */ t(
3240
3240
  He,
3241
3241
  {
@@ -3250,7 +3250,7 @@ const As = ({
3250
3250
  n && new Array(Es).fill(null).map((u, m) => /* @__PURE__ */ t(Et.Skeleton, {}, m))
3251
3251
  ] });
3252
3252
  }, zs = () => {
3253
- const e = se();
3253
+ const e = le();
3254
3254
  return /* @__PURE__ */ o("div", { className: "flex flex-col gap-2 p-2", children: [
3255
3255
  /* @__PURE__ */ t(He.Skeleton, { title: e.date.groups.today, numItems: 1 }),
3256
3256
  /* @__PURE__ */ t(yt, {}),
@@ -3272,7 +3272,7 @@ const As = ({
3272
3272
  ] });
3273
3273
  }, Nc = Z(
3274
3274
  "ActivityItemList",
3275
- ae(Ts, zs)
3275
+ re(Ts, zs)
3276
3276
  ), Bs = {
3277
3277
  birthday: "🎂",
3278
3278
  anniversary: "🎉",
@@ -3324,7 +3324,7 @@ function $s({
3324
3324
  clipPath: "path('M69.6933 48.707C71.1842 44.7556 72 40.4731 72 36C72 16.1177 55.8823 0 36 0C16.1177 0 0 16.1177 0 36C0 55.8823 16.1177 72 36 72C40.4731 72 44.7556 71.1842 48.707 69.6933C48.6283 69.4953 48.5557 69.2942 48.4894 69.0902C48 67.5838 48 65.7226 48 62C48 58.2774 48 56.4162 48.4894 54.9098C49.4786 51.8655 51.8655 49.4786 54.9098 48.4894C56.4162 48 58.2774 48 62 48C65.7226 48 67.5838 48 69.0902 48.4894C69.2942 48.5557 69.4953 48.6283 69.6933 48.707')"
3325
3325
  } : {},
3326
3326
  children: /* @__PURE__ */ t(
3327
- ve,
3327
+ ye,
3328
3328
  {
3329
3329
  src: a,
3330
3330
  firstName: e,
@@ -3358,8 +3358,8 @@ function $s({
3358
3358
  }
3359
3359
  );
3360
3360
  }
3361
- function Ms(e) {
3362
- const n = W(null), a = W(), r = ne(() => {
3361
+ function js(e) {
3362
+ const n = M(null), a = M(), r = ae(() => {
3363
3363
  const s = n.current;
3364
3364
  if (!s) return;
3365
3365
  const l = yr.create(s, {
@@ -3385,12 +3385,12 @@ function Ms(e) {
3385
3385
  ]
3386
3386
  });
3387
3387
  }, 100);
3388
- }, [e]), i = ne(() => {
3388
+ }, [e]), i = ae(() => {
3389
3389
  clearInterval(a.current);
3390
3390
  }, []);
3391
3391
  return { canvasRef: n, handleMouseEnter: r, handleMouseLeave: i };
3392
3392
  }
3393
- const js = ({
3393
+ const Ms = ({
3394
3394
  link: e,
3395
3395
  firstName: n,
3396
3396
  lastName: a,
@@ -3403,13 +3403,13 @@ const js = ({
3403
3403
  typeLabel: f,
3404
3404
  date: u
3405
3405
  }) => {
3406
- const [m, h] = E(l), g = W(null);
3406
+ const [m, h] = E(l), g = M(null);
3407
3407
  j(() => {
3408
3408
  h(l);
3409
3409
  }, [l]);
3410
3410
  const p = (D) => {
3411
3411
  h(D), c?.(D);
3412
- }, x = $e(), { canvasRef: v, handleMouseEnter: N, handleMouseLeave: _ } = Ms(x), B = et({
3412
+ }, x = $e(), { canvasRef: v, handleMouseEnter: C, handleMouseLeave: _ } = js(x), R = et({
3413
3413
  emoji: Bs[d],
3414
3414
  size: "sm"
3415
3415
  });
@@ -3420,9 +3420,9 @@ const js = ({
3420
3420
  onClick: i,
3421
3421
  className: b(
3422
3422
  "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",
3423
- ie()
3423
+ se()
3424
3424
  ),
3425
- onMouseEnter: x ? void 0 : N,
3425
+ onMouseEnter: x ? void 0 : C,
3426
3426
  onMouseLeave: x ? void 0 : _,
3427
3427
  children: [
3428
3428
  /* @__PURE__ */ t(
@@ -3453,7 +3453,7 @@ const js = ({
3453
3453
  ] }),
3454
3454
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-1.5 text-f1-foreground-secondary", children: [
3455
3455
  /* @__PURE__ */ t("span", { className: "truncate", children: f }),
3456
- /* @__PURE__ */ t("span", { className: "shrink-0 leading-none", children: B })
3456
+ /* @__PURE__ */ t("span", { className: "shrink-0 leading-none", children: R })
3457
3457
  ] })
3458
3458
  ] }),
3459
3459
  /* @__PURE__ */ t("div", { className: "shrink-0", children: /* @__PURE__ */ t(gt, { date: u }) })
@@ -3476,7 +3476,7 @@ const js = ({
3476
3476
  ] }) }) })
3477
3477
  ]
3478
3478
  }
3479
- ), Cc = ae(js, Ws), kc = ({
3479
+ ), Cc = re(Ms, Ws), kc = ({
3480
3480
  title: e,
3481
3481
  subtitle: n,
3482
3482
  buttonLabel: a,
@@ -3489,7 +3489,7 @@ const js = ({
3489
3489
  /* @__PURE__ */ t("span", { className: "text-f1-foreground-secondary", children: n })
3490
3490
  ] })
3491
3491
  ] }),
3492
- /* @__PURE__ */ t("div", { className: "w-full sm:w-fit [&>div]:w-full", children: /* @__PURE__ */ t(H, { label: a, variant: "outline", onClick: r }) })
3492
+ /* @__PURE__ */ t("div", { className: "w-full sm:w-fit [&>div]:w-full", children: /* @__PURE__ */ t(U, { label: a, variant: "outline", onClick: r }) })
3493
3493
  ] });
3494
3494
  function Vs({
3495
3495
  emoji: e,
@@ -3498,7 +3498,7 @@ function Vs({
3498
3498
  users: r,
3499
3499
  onInteraction: i
3500
3500
  }) {
3501
- const [s, l] = E(a), [c, d] = E(n), f = W(null), { fireEmojiConfetti: u } = wr(), m = (p, x) => {
3501
+ const [s, l] = E(a), [c, d] = E(n), f = M(null), { fireEmojiConfetti: u } = wr(), m = (p, x) => {
3502
3502
  p.stopPropagation(), d(c + (s ? -1 : 1)), l(!s), i?.(x), s || u(x, f);
3503
3503
  }, h = r?.map((p) => p.name).join(", ") || "", g = /* @__PURE__ */ t(
3504
3504
  kt,
@@ -3532,12 +3532,12 @@ function Vs({
3532
3532
  )
3533
3533
  }
3534
3534
  );
3535
- return h ? /* @__PURE__ */ t(we, { label: h, children: g }) : g;
3535
+ return h ? /* @__PURE__ */ t(Ne, { label: h, children: g }) : g;
3536
3536
  }
3537
3537
  function Us({ items: e, onInteraction: n, locale: a, action: r }) {
3538
3538
  return /* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2", children: [
3539
3539
  r && /* @__PURE__ */ t(
3540
- H,
3540
+ U,
3541
3541
  {
3542
3542
  label: r.label,
3543
3543
  icon: r.icon,
@@ -3560,7 +3560,7 @@ function Us({ items: e, onInteraction: n, locale: a, action: r }) {
3560
3560
  ))
3561
3561
  ] });
3562
3562
  }
3563
- const Hs = Z("Reactions", Us), ra = K(function({ content: n, collapsed: a, id: r, className: i, tabIndex: s }, l) {
3563
+ const Hs = Z("Reactions", Us), ra = G(function({ content: n, collapsed: a, id: r, className: i, tabIndex: s }, l) {
3564
3564
  return /* @__PURE__ */ t(
3565
3565
  kr,
3566
3566
  {
@@ -3580,7 +3580,7 @@ ra.displayName = "BasePostDescription";
3580
3580
  const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-around gap-3 py-2", children: [
3581
3581
  /* @__PURE__ */ t(z, { className: "h-2.5 w-1/2 rounded-2xs" }),
3582
3582
  /* @__PURE__ */ t(z, { className: "h-2.5 w-2/3 rounded-2xs" })
3583
- ] }), ia = ae(
3583
+ ] }), ia = re(
3584
3584
  ra,
3585
3585
  Gs
3586
3586
  ), rn = ({ tags: e, right: n }) => /* @__PURE__ */ t(
@@ -3592,7 +3592,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3592
3592
  ),
3593
3593
  children: e.map((a) => {
3594
3594
  const r = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
3595
- Pe,
3595
+ Oe,
3596
3596
  {
3597
3597
  icon: a.icon,
3598
3598
  text: a.label ?? (a.description || ""),
@@ -3601,7 +3601,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3601
3601
  }
3602
3602
  ) });
3603
3603
  return a.label || a.description ? /* @__PURE__ */ t(
3604
- we,
3604
+ Ne,
3605
3605
  {
3606
3606
  label: a.label,
3607
3607
  description: a.description,
@@ -3611,7 +3611,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3611
3611
  ) : r;
3612
3612
  })
3613
3613
  }
3614
- ), wt = K(
3614
+ ), wt = G(
3615
3615
  function({
3616
3616
  label: n,
3617
3617
  title: a,
@@ -3631,7 +3631,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3631
3631
  ref: h,
3632
3632
  className: "relative flex flex-row items-stretch gap-2.5 overflow-hidden rounded-sm p-2",
3633
3633
  children: [
3634
- !m && /* @__PURE__ */ o(X, { children: [
3634
+ !m && /* @__PURE__ */ o(ne, { children: [
3635
3635
  /* @__PURE__ */ t(
3636
3636
  "div",
3637
3637
  {
@@ -3679,10 +3679,10 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3679
3679
  /* @__PURE__ */ t("p", { className: "text-f1-foreground-secondary", children: i })
3680
3680
  ] }),
3681
3681
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center", children: [
3682
- f && /* @__PURE__ */ o(X, { children: [
3682
+ f && /* @__PURE__ */ o(ne, { children: [
3683
3683
  /* @__PURE__ */ t(gt, { date: f }),
3684
3684
  /* @__PURE__ */ t(
3685
- V,
3685
+ W,
3686
3686
  {
3687
3687
  icon: bn,
3688
3688
  size: "sm",
@@ -3727,7 +3727,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3727
3727
  onClick: s,
3728
3728
  children: /* @__PURE__ */ t("source", { src: n })
3729
3729
  }
3730
- ) : /* @__PURE__ */ o(X, { children: [
3730
+ ) : /* @__PURE__ */ o(ne, { children: [
3731
3731
  /* @__PURE__ */ t(
3732
3732
  "img",
3733
3733
  {
@@ -3769,20 +3769,20 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3769
3769
  ] })
3770
3770
  ]
3771
3771
  }
3772
- ), la = ae(qs, Ys), Js = ({
3772
+ ), la = re(qs, Ys), Js = ({
3773
3773
  describedBy: e,
3774
3774
  controls: n,
3775
3775
  expanded: a,
3776
3776
  onClick: r
3777
3777
  }) => {
3778
- const i = se();
3778
+ const i = le();
3779
3779
  return /* @__PURE__ */ t("div", { className: "text-base text-f1-foreground", children: /* @__PURE__ */ t(
3780
3780
  "button",
3781
3781
  {
3782
3782
  type: "button",
3783
3783
  className: b(
3784
3784
  "inline cursor-pointer rounded-none border-0 bg-transparent p-0 text-base text-f1-foreground underline underline-offset-2 hover:text-f1-foreground-secondary",
3785
- ie()
3785
+ se()
3786
3786
  ),
3787
3787
  "aria-controls": n,
3788
3788
  "aria-describedby": e,
@@ -3810,46 +3810,46 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3810
3810
  noReactionsButton: x = !1,
3811
3811
  descriptionExpandable: v = !1
3812
3812
  }) => {
3813
- const N = bt(), _ = bt(), B = W(null), [D, O] = E(null), [L, U] = E(!1), R = [f.views, f.comments].filter(Boolean).join(" · "), w = v && D?.id === e && D.description === s, S = !w, k = Sn(r), A = () => {
3813
+ const C = bt(), _ = bt(), R = M(null), [D, A] = E(null), [P, V] = E(!1), B = [f.views, f.comments].filter(Boolean).join(" · "), w = v && D?.id === e && D.description === s, k = !w, I = Sn(r), F = () => {
3814
3814
  l(e);
3815
- }, M = (I) => {
3816
- I.stopPropagation();
3817
- }, y = n ? `${n.firstName} ${n.lastName}` : void 0, C = (I) => {
3818
- I.preventDefault(), I.stopPropagation(), s && O({ id: e, description: s });
3815
+ }, $ = (N) => {
3816
+ N.stopPropagation();
3817
+ }, y = n ? `${n.firstName} ${n.lastName}` : void 0, S = (N) => {
3818
+ N.preventDefault(), N.stopPropagation(), s && A({ id: e, description: s });
3819
3819
  };
3820
3820
  return j(() => {
3821
- w && B.current?.focus();
3821
+ w && R.current?.focus();
3822
3822
  }, [w]), j(() => {
3823
- v || O(null);
3823
+ v || A(null);
3824
3824
  }, [v]), j(() => {
3825
- const I = B.current;
3826
- if (!v || !I || w) {
3827
- U(!1);
3825
+ const N = R.current;
3826
+ if (!v || !N || w) {
3827
+ V(!1);
3828
3828
  return;
3829
3829
  }
3830
- const P = () => {
3831
- U(
3832
- I.scrollHeight > I.clientHeight
3830
+ const O = () => {
3831
+ V(
3832
+ N.scrollHeight > N.clientHeight
3833
3833
  );
3834
3834
  };
3835
- if (P(), typeof ResizeObserver > "u") return;
3836
- const re = new ResizeObserver(P);
3837
- return re.observe(I), () => re.disconnect();
3835
+ if (O(), typeof ResizeObserver > "u") return;
3836
+ const ie = new ResizeObserver(O);
3837
+ return ie.observe(N), () => ie.disconnect();
3838
3838
  }, [v, w, s]), /* @__PURE__ */ o(
3839
3839
  "div",
3840
3840
  {
3841
3841
  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",
3842
- onClick: A,
3842
+ onClick: F,
3843
3843
  id: `community-post-${e}`,
3844
3844
  children: [
3845
3845
  /* @__PURE__ */ t("div", { className: "hidden md:block", children: n ? /* @__PURE__ */ t(
3846
- je,
3846
+ Me,
3847
3847
  {
3848
3848
  href: n.url || "#",
3849
3849
  title: y,
3850
3850
  stopPropagation: !0,
3851
3851
  children: /* @__PURE__ */ t(
3852
- ve,
3852
+ ye,
3853
3853
  {
3854
3854
  firstName: n.firstName,
3855
3855
  lastName: n.lastName,
@@ -3862,16 +3862,16 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3862
3862
  /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-col gap-2", children: [
3863
3863
  /* @__PURE__ */ o("div", { className: "flex flex-row justify-between", children: [
3864
3864
  /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 flex-row flex-wrap items-center gap-1", children: [
3865
- n ? /* @__PURE__ */ o(X, { children: [
3865
+ n ? /* @__PURE__ */ o(ne, { children: [
3866
3866
  /* @__PURE__ */ t(
3867
- je,
3867
+ Me,
3868
3868
  {
3869
3869
  href: n.url,
3870
3870
  className: "block md:hidden",
3871
3871
  title: y,
3872
3872
  stopPropagation: !0,
3873
3873
  children: /* @__PURE__ */ t("span", { className: "flex items-center", children: /* @__PURE__ */ t(
3874
- ve,
3874
+ ye,
3875
3875
  {
3876
3876
  firstName: n.firstName,
3877
3877
  lastName: n.lastName,
@@ -3882,7 +3882,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3882
3882
  }
3883
3883
  ),
3884
3884
  /* @__PURE__ */ t(
3885
- je,
3885
+ Me,
3886
3886
  {
3887
3887
  href: n.url,
3888
3888
  title: y,
@@ -3903,7 +3903,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3903
3903
  }
3904
3904
  ),
3905
3905
  /* @__PURE__ */ t(
3906
- je,
3906
+ Me,
3907
3907
  {
3908
3908
  onClick: a.onClick,
3909
3909
  title: a.title,
@@ -3916,21 +3916,21 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3916
3916
  ] }),
3917
3917
  /* @__PURE__ */ o("div", { className: "flex flex-row gap-2", children: [
3918
3918
  /* @__PURE__ */ o("div", { className: "hidden flex-row gap-2 md:flex", children: [
3919
- g?.map((I) => /* @__PURE__ */ t(
3920
- H,
3919
+ g?.map((N) => /* @__PURE__ */ t(
3920
+ U,
3921
3921
  {
3922
- hideLabel: !I.label,
3923
- ...I.icon && { icon: I.icon },
3922
+ hideLabel: !N.label,
3923
+ ...N.icon && { icon: N.icon },
3924
3924
  variant: "outline",
3925
3925
  size: "md",
3926
- onClick: I.onClick,
3927
- label: I.label ?? "",
3928
- title: I.label ?? ""
3926
+ onClick: N.onClick,
3927
+ label: N.label ?? "",
3928
+ title: N.label ?? ""
3929
3929
  },
3930
- I.label
3930
+ N.label
3931
3931
  )),
3932
3932
  p?.length && /* @__PURE__ */ t(
3933
- Oe,
3933
+ Pe,
3934
3934
  {
3935
3935
  items: p,
3936
3936
  icon: pt,
@@ -3939,7 +3939,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3939
3939
  )
3940
3940
  ] }),
3941
3941
  /* @__PURE__ */ t("div", { className: "md:hidden", children: /* @__PURE__ */ t(
3942
- Oe,
3942
+ Pe,
3943
3943
  {
3944
3944
  items: [
3945
3945
  {
@@ -3954,12 +3954,12 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3954
3954
  ) })
3955
3955
  ] })
3956
3956
  ] }),
3957
- /* @__PURE__ */ t("span", { className: "-mt-3 text-sm text-f1-foreground-secondary", children: k }),
3957
+ /* @__PURE__ */ t("span", { className: "-mt-3 text-sm text-f1-foreground-secondary", children: I }),
3958
3958
  /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-col gap-1 text-f1-foreground", children: [
3959
3959
  /* @__PURE__ */ t(
3960
3960
  "p",
3961
3961
  {
3962
- id: N,
3962
+ id: C,
3963
3963
  className: b(
3964
3964
  "text-xl font-semibold",
3965
3965
  "line-clamp-2 break-words"
@@ -3967,25 +3967,25 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3967
3967
  children: i
3968
3968
  }
3969
3969
  ),
3970
- s && /* @__PURE__ */ o(X, { children: [
3970
+ s && /* @__PURE__ */ o(ne, { children: [
3971
3971
  /* @__PURE__ */ t(
3972
3972
  ia,
3973
3973
  {
3974
- ref: B,
3974
+ ref: R,
3975
3975
  id: _,
3976
3976
  content: s,
3977
- collapsed: S,
3977
+ collapsed: k,
3978
3978
  tabIndex: w ? -1 : void 0,
3979
- className: b(w && ie())
3979
+ className: b(w && se())
3980
3980
  }
3981
3981
  ),
3982
- v && L && !w && /* @__PURE__ */ t(
3982
+ v && P && !w && /* @__PURE__ */ t(
3983
3983
  Js,
3984
3984
  {
3985
- describedBy: N,
3985
+ describedBy: C,
3986
3986
  controls: _,
3987
3987
  expanded: w,
3988
- onClick: C
3988
+ onClick: S
3989
3989
  }
3990
3990
  )
3991
3991
  ] })
@@ -3996,10 +3996,10 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
3996
3996
  {
3997
3997
  controls: !0,
3998
3998
  className: "aspect-video h-full w-full bg-f1-background-secondary object-cover",
3999
- onClick: M,
3999
+ onClick: $,
4000
4000
  children: /* @__PURE__ */ t("source", { src: c })
4001
4001
  }
4002
- ) : /* @__PURE__ */ o(X, { children: [
4002
+ ) : /* @__PURE__ */ o(ne, { children: [
4003
4003
  /* @__PURE__ */ t(
4004
4004
  "img",
4005
4005
  {
@@ -4012,7 +4012,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4012
4012
  /* @__PURE__ */ t(z, { className: "absolute inset-0 -z-10 h-full w-full" })
4013
4013
  ] }) }),
4014
4014
  d && /* @__PURE__ */ t("div", { className: "w-full md:max-w-[480px]", children: /* @__PURE__ */ t(la, { ...d }) }),
4015
- /* @__PURE__ */ t("p", { className: "text-f1-foreground-secondary", children: R }),
4015
+ /* @__PURE__ */ t("p", { className: "text-f1-foreground-secondary", children: B }),
4016
4016
  !x && /* @__PURE__ */ t(
4017
4017
  Hs,
4018
4018
  {
@@ -4049,10 +4049,10 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4049
4049
  /* @__PURE__ */ t(z, { className: "h-2.5 w-14 rounded-2xs" })
4050
4050
  ] })
4051
4051
  ] })
4052
- ] }), Ic = ae(
4052
+ ] }), Ic = re(
4053
4053
  Zs,
4054
4054
  Xs
4055
- ), oa = ue.forwardRef(({ person: e, onClick: n, ...a }, r) => {
4055
+ ), oa = fe.forwardRef(({ person: e, onClick: n, ...a }, r) => {
4056
4056
  const i = () => {
4057
4057
  n();
4058
4058
  };
@@ -4067,7 +4067,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4067
4067
  onClick: i,
4068
4068
  children: [
4069
4069
  /* @__PURE__ */ t(
4070
- ve,
4070
+ ye,
4071
4071
  {
4072
4072
  firstName: e.firstName,
4073
4073
  lastName: e.lastName,
@@ -4078,8 +4078,8 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4078
4078
  /* @__PURE__ */ o("div", { className: "flex flex-1 flex-col", children: [
4079
4079
  /* @__PURE__ */ o("div", { className: "flex flex-1 flex-row items-center gap-1", children: [
4080
4080
  /* @__PURE__ */ t("span", { className: "truncate font-medium", children: `${e.firstName} ${e.lastName}` }),
4081
- a.info && /* @__PURE__ */ t(we, { label: a.info, children: /* @__PURE__ */ t(
4082
- V,
4081
+ a.info && /* @__PURE__ */ t(Ne, { label: a.info, children: /* @__PURE__ */ t(
4082
+ W,
4083
4083
  {
4084
4084
  icon: Nn,
4085
4085
  size: "sm",
@@ -4087,8 +4087,8 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4087
4087
  }
4088
4088
  ) })
4089
4089
  ] }),
4090
- "bottomTags" in a && /* @__PURE__ */ t("div", { className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1", children: a.bottomTags.map((s, l) => /* @__PURE__ */ o(X, { children: [
4091
- /* @__PURE__ */ t(Pe, { ...s }, s.text),
4090
+ "bottomTags" in a && /* @__PURE__ */ t("div", { className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1", children: a.bottomTags.map((s, l) => /* @__PURE__ */ o(ne, { children: [
4091
+ /* @__PURE__ */ t(Oe, { ...s }, s.text),
4092
4092
  l < a.bottomTags.length - 1 && /* @__PURE__ */ t("span", { children: "·" })
4093
4093
  ] })) }),
4094
4094
  "description" in a && a.description && /* @__PURE__ */ t("p", { className: "truncate text-f1-foreground-secondary", children: a.description })
@@ -4097,7 +4097,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4097
4097
  "rightTag" in a && a.rightTag && /* @__PURE__ */ t(Ar, { ...a.rightTag }),
4098
4098
  "actions" in a && /* @__PURE__ */ o("div", { className: "flex flex-1 flex-row items-center justify-end gap-2", children: [
4099
4099
  a.actions?.primary && /* @__PURE__ */ t(
4100
- H,
4100
+ U,
4101
4101
  {
4102
4102
  variant: "outline",
4103
4103
  onClick: a.actions.primary.onClick,
@@ -4106,7 +4106,7 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4106
4106
  }
4107
4107
  ),
4108
4108
  a.actions?.secondary && /* @__PURE__ */ t(
4109
- H,
4109
+ U,
4110
4110
  {
4111
4111
  variant: "outline",
4112
4112
  onClick: a.actions.secondary.onClick,
@@ -4128,10 +4128,10 @@ const Gs = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
4128
4128
  ] })
4129
4129
  ] });
4130
4130
  oa.displayName = "OnePersonListItem";
4131
- const Sc = le(
4131
+ const Sc = oe(
4132
4132
  Z(
4133
4133
  "OnePersonListItem",
4134
- ae(oa, Qs)
4134
+ re(oa, Qs)
4135
4135
  )
4136
4136
  ), el = { duration: 0.3, ease: [0, 0, 0.1, 1] };
4137
4137
  function tl({
@@ -4175,12 +4175,12 @@ const Fc = Z(
4175
4175
  "ApplicationFrame",
4176
4176
  tl
4177
4177
  ), al = ({ contentId: e }) => {
4178
- const n = se();
4178
+ const n = le();
4179
4179
  return /* @__PURE__ */ t(
4180
4180
  "a",
4181
4181
  {
4182
4182
  href: `#${e}`,
4183
- className: ie(
4183
+ className: se(
4184
4184
  "absolute z-50 -translate-y-[1000px] translate-x-4 rounded-md bg-f1-background px-4 py-2.5 text-base font-medium text-f1-foreground no-underline transition-transform duration-200 focus-visible:translate-y-4"
4185
4185
  ),
4186
4186
  children: n.actions.skipToContent
@@ -4191,7 +4191,7 @@ function rl(e, n, a) {
4191
4191
  return !n && e ? a === "hidden" : n && !e ? a !== "hidden" : !1;
4192
4192
  }
4193
4193
  function il(e, n) {
4194
- const { sidebarState: a, toggleSidebar: r } = De(), i = W(e);
4194
+ const { sidebarState: a, toggleSidebar: r } = De(), i = M(e);
4195
4195
  j(() => {
4196
4196
  n && rl(
4197
4197
  e,
@@ -4215,24 +4215,24 @@ function sl({
4215
4215
  closeCanvas: p,
4216
4216
  chatWidth: x,
4217
4217
  resizable: v
4218
- } = Or(), N = m === "fullscreen", _ = m === "canvas", { open: B } = tt(), D = v ? x : Pr, O = W(N), L = N && !O.current, U = !N && O.current, [
4219
- R,
4218
+ } = Pr(), C = m === "fullscreen", _ = m === "canvas", { open: R } = tt(), D = v ? x : Or, A = M(C), P = C && !A.current, V = !C && A.current, [
4219
+ B,
4220
4220
  w
4221
4221
  ] = E(!1);
4222
4222
  j(() => {
4223
- !N && O.current && w(!0), O.current = N;
4224
- }, [N]);
4225
- const S = N || R || U, k = G(() => L ? { duration: 0.15, ease: "easeOut" } : U ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [L, U]), A = ft(
4223
+ !C && A.current && w(!0), A.current = C;
4224
+ }, [C]);
4225
+ const k = C || B || V, I = H(() => P ? { duration: 0.15, ease: "easeOut" } : V ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [P, V]), F = ft(
4226
4226
  `(max-width: ${Ge.xl}px)`,
4227
4227
  { initializeWithValue: !0 }
4228
- ), M = ft(`(max-width: ${Ge.md}px)`, {
4228
+ ), $ = ft(`(max-width: ${Ge.md}px)`, {
4229
4229
  initializeWithValue: !0
4230
4230
  });
4231
4231
  return j(() => {
4232
4232
  d(u);
4233
4233
  }, [u, d]), j(() => {
4234
- d(B);
4235
- }, [B, d]), il(u, A), /* @__PURE__ */ t(
4234
+ d(R);
4235
+ }, [R, d]), il(u, F), /* @__PURE__ */ t(
4236
4236
  bi,
4237
4237
  {
4238
4238
  reducedMotion: f ? "always" : "never",
@@ -4279,7 +4279,7 @@ function sl({
4279
4279
  {
4280
4280
  className: "relative min-w-0 flex-1",
4281
4281
  animate: {
4282
- paddingRight: u && !M ? D : 0
4282
+ paddingRight: u && !$ ? D : 0
4283
4283
  },
4284
4284
  transition: { paddingRight: el },
4285
4285
  children: [
@@ -4290,8 +4290,8 @@ function sl({
4290
4290
  layoutId: "main",
4291
4291
  className: b(
4292
4292
  "relative z-10 flex h-full max-w-full flex-1 xs:py-1",
4293
- S ? "overflow-hidden" : "overflow-auto",
4294
- !u && !B && "xs:pr-1",
4293
+ k ? "overflow-hidden" : "overflow-auto",
4294
+ !u && !R && "xs:pr-1",
4295
4295
  s === "locked" ? "pl-0" : "xs:pl-1"
4296
4296
  ),
4297
4297
  layoutDependency: s,
@@ -4300,7 +4300,7 @@ function sl({
4300
4300
  {
4301
4301
  className: b(
4302
4302
  "flex max-w-full flex-1",
4303
- S ? "overflow-hidden" : "overflow-auto"
4303
+ k ? "overflow-hidden" : "overflow-auto"
4304
4304
  ),
4305
4305
  layout: "position",
4306
4306
  children: a
@@ -4316,9 +4316,9 @@ function sl({
4316
4316
  // mode) so the canvas card's right-side shadow paints
4317
4317
  // over the chat surface instead of being clipped by it.
4318
4318
  "pointer-events-none flex justify-end",
4319
- M ? "fixed inset-0 z-[50]" : "absolute bottom-0 left-0 top-0 z-[21]"
4319
+ $ ? "fixed inset-0 z-[50]" : "absolute bottom-0 left-0 top-0 z-[21]"
4320
4320
  ),
4321
- style: M ? void 0 : { right: D },
4321
+ style: $ ? void 0 : { right: D },
4322
4322
  children: /* @__PURE__ */ t(
4323
4323
  Er,
4324
4324
  {
@@ -4335,7 +4335,7 @@ function sl({
4335
4335
  className: b(
4336
4336
  "pointer-events-none",
4337
4337
  "[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full",
4338
- M ? "fixed inset-0 z-[30]" : b(
4338
+ $ ? "fixed inset-0 z-[30]" : b(
4339
4339
  "absolute right-0 top-0 bottom-0",
4340
4340
  // In canvas mode the chat wrapper must sit above
4341
4341
  // the CanvasPanel (z-[15]) so the ResizeHandle's
@@ -4343,16 +4343,16 @@ function sl({
4343
4343
  // canvas side of the seam) can receive hover
4344
4344
  // events — otherwise the canvas captures them
4345
4345
  // and the handle never lights up.
4346
- S || _ ? "z-20" : "z-0",
4347
- s === "hidden" && S ? "pl-1" : "pl-0"
4346
+ k || _ ? "z-20" : "z-0",
4347
+ s === "hidden" && k ? "pl-1" : "pl-0"
4348
4348
  )
4349
4349
  ),
4350
4350
  animate: {
4351
- width: M || N ? "100%" : D
4351
+ width: $ || C ? "100%" : D
4352
4352
  },
4353
- transition: k,
4353
+ transition: I,
4354
4354
  onAnimationComplete: () => {
4355
- R && w(!1);
4355
+ B && w(!1);
4356
4356
  },
4357
4357
  children: /* @__PURE__ */ t(_r, {})
4358
4358
  }
@@ -4375,7 +4375,7 @@ const ca = ({
4375
4375
  pulse: s,
4376
4376
  onPulseClick: l
4377
4377
  }) => {
4378
- const c = se(), [d, f] = E(!s);
4378
+ const c = le(), [d, f] = E(!s);
4379
4379
  return /* @__PURE__ */ t("div", { className: "relative h-10 w-10", children: /* @__PURE__ */ t(Se, { mode: "popLayout", initial: !!d, children: d ? /* @__PURE__ */ t(
4380
4380
  Y.div,
4381
4381
  {
@@ -4463,7 +4463,7 @@ const ca = ({
4463
4463
  },
4464
4464
  "aria-label": c.actions.edit,
4465
4465
  children: /* @__PURE__ */ t(
4466
- V,
4466
+ W,
4467
4467
  {
4468
4468
  icon: vi[s],
4469
4469
  color: xi[s],
@@ -4483,7 +4483,7 @@ const ca = ({
4483
4483
  },
4484
4484
  className: "absolute -bottom-1.5 -right-1.5 rounded-sm bg-f1-background",
4485
4485
  children: /* @__PURE__ */ t(
4486
- xe,
4486
+ ve,
4487
4487
  {
4488
4488
  compact: !0,
4489
4489
  label: c.actions.add,
@@ -4505,7 +4505,7 @@ const ca = ({
4505
4505
  ) }) });
4506
4506
  };
4507
4507
  ca.displayName = "PulseAvatar";
4508
- const ll = ye({
4508
+ const ll = we({
4509
4509
  base: "pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
4510
4510
  variants: {
4511
4511
  period: {
@@ -4534,7 +4534,7 @@ function da({
4534
4534
  n && /* @__PURE__ */ o("div", { className: "flex flex-row items-center justify-between pr-6 @container", children: [
4535
4535
  /* @__PURE__ */ o("div", { className: "@5xl:px-page flex flex-row items-center gap-2 px-5 py-4", children: [
4536
4536
  (l || i === "hidden") && /* @__PURE__ */ t(
4537
- H,
4537
+ U,
4538
4538
  {
4539
4539
  variant: "ghost",
4540
4540
  onClick: () => s(),
@@ -4561,7 +4561,7 @@ function da({
4561
4561
  onPulseClick: n.onPulseClick
4562
4562
  }
4563
4563
  ) : /* @__PURE__ */ t(
4564
- ve,
4564
+ ye,
4565
4565
  {
4566
4566
  src: n.employeeAvatar,
4567
4567
  firstName: n.employeeFirstName,
@@ -4615,7 +4615,7 @@ function da({
4615
4615
  );
4616
4616
  }
4617
4617
  da.displayName = "DaytimePage";
4618
- const Ac = le(
4618
+ const Ac = oe(
4619
4619
  Z("DaytimePage", da)
4620
4620
  );
4621
4621
  function ol(e) {
@@ -4635,16 +4635,16 @@ function cl({ label: e, options: n, hasNewUpdate: a }) {
4635
4635
  bottom: "calc(8px + env(safe-area-inset-bottom))",
4636
4636
  right: "calc(8px + env(safe-area-inset-right))"
4637
4637
  },
4638
- children: /* @__PURE__ */ t(Oe, { items: ol(n), children: /* @__PURE__ */ o(
4638
+ children: /* @__PURE__ */ t(Pe, { items: ol(n), children: /* @__PURE__ */ o(
4639
4639
  "button",
4640
4640
  {
4641
4641
  className: b(
4642
4642
  "relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all",
4643
- ie()
4643
+ se()
4644
4644
  ),
4645
4645
  "aria-label": e,
4646
4646
  children: [
4647
- /* @__PURE__ */ t(V, { icon: On, size: "sm" }),
4647
+ /* @__PURE__ */ t(W, { icon: Pn, size: "sm" }),
4648
4648
  a && /* @__PURE__ */ t("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" })
4649
4649
  ]
4650
4650
  }
@@ -4652,7 +4652,7 @@ function cl({ label: e, options: n, hasNewUpdate: a }) {
4652
4652
  }
4653
4653
  );
4654
4654
  }
4655
- const Lc = le(
4655
+ const Lc = oe(
4656
4656
  Z("OmniButton", cl)
4657
4657
  );
4658
4658
  function ua({ children: e, header: n, embedded: a = !1 }) {
@@ -4671,17 +4671,17 @@ function ua({ children: e, header: n, embedded: a = !1 }) {
4671
4671
  );
4672
4672
  }
4673
4673
  ua.displayName = "Page";
4674
- const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4674
+ const Pc = oe(Z("Page", ua)), dl = (e) => e.reduce(
4675
4675
  (n, a) => n + a.chats.filter((r) => (r.unreadCount ?? 0) > 0).length,
4676
4676
  0
4677
- ), fa = _e(null), ma = _e(null), sn = (e, n, a) => e.map((r) => r.id === n ? a(r) : r), Ve = (e, n) => e.map((a) => ({ ...a, chats: n(a.chats) })), Pc = ({
4677
+ ), fa = _e(null), ma = _e(null), sn = (e, n, a) => e.map((r) => r.id === n ? a(r) : r), Ve = (e, n) => e.map((a) => ({ ...a, chats: n(a.chats) })), Oc = ({
4678
4678
  children: e,
4679
4679
  initialGroups: n = [],
4680
4680
  initialActiveChatId: a
4681
4681
  }) => {
4682
4682
  const [r, i] = E(n), [s, l] = E(
4683
4683
  a
4684
- ), c = G(
4684
+ ), c = H(
4685
4685
  () => ({
4686
4686
  setGroups: i,
4687
4687
  setActiveChat: (f) => l(f ?? void 0),
@@ -4717,7 +4717,7 @@ const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4717
4717
  )
4718
4718
  }),
4719
4719
  []
4720
- ), d = G(
4720
+ ), d = H(
4721
4721
  () => ({
4722
4722
  groups: r,
4723
4723
  activeChatId: s,
@@ -4727,12 +4727,12 @@ const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4727
4727
  );
4728
4728
  return /* @__PURE__ */ t(ma.Provider, { value: c, children: /* @__PURE__ */ t(fa.Provider, { value: d, children: e }) });
4729
4729
  }, ul = () => {
4730
- const e = Ne(fa);
4730
+ const e = Ce(fa);
4731
4731
  if (e === null)
4732
4732
  throw new Error("useSidebarChats must be used within a SidebarChatProvider");
4733
4733
  return e;
4734
4734
  }, ha = () => {
4735
- const e = Ne(ma);
4735
+ const e = Ce(ma);
4736
4736
  if (e === null)
4737
4737
  throw new Error(
4738
4738
  "useSidebarChatActions must be used within a SidebarChatProvider"
@@ -4740,7 +4740,7 @@ const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4740
4740
  return e;
4741
4741
  }, fl = () => {
4742
4742
  const e = ul(), n = ha();
4743
- return G(() => ({ ...e, ...n }), [e, n]);
4743
+ return H(() => ({ ...e, ...n }), [e, n]);
4744
4744
  }, Ec = () => ha(), _t = ({
4745
4745
  title: e,
4746
4746
  isOpen: n = !0,
@@ -4762,7 +4762,7 @@ const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4762
4762
  {
4763
4763
  className: b(
4764
4764
  "group relative flex w-full select-none items-center gap-1 rounded px-1.5 py-2 text-sm font-medium text-f1-foreground-secondary transition-colors hover:cursor-pointer hover:bg-f1-background-secondary",
4765
- ie("focus-visible:ring-inset"),
4765
+ se("focus-visible:ring-inset"),
4766
4766
  a && "hidden"
4767
4767
  ),
4768
4768
  onClick: h,
@@ -4788,7 +4788,7 @@ const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4788
4788
  animate: { rotate: d ? 0 : -90 },
4789
4789
  transition: { duration: u ? 0 : 0.1 },
4790
4790
  className: "flex h-3 w-3 items-center justify-center",
4791
- children: /* @__PURE__ */ t(V, { icon: Pn, size: "xs" })
4791
+ children: /* @__PURE__ */ t(W, { icon: On, size: "xs" })
4792
4792
  }
4793
4793
  )
4794
4794
  ]
@@ -4841,7 +4841,7 @@ const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4841
4841
  "aria-pressed": n,
4842
4842
  className: b(
4843
4843
  "group flex w-full cursor-pointer items-center gap-2 rounded py-1.5 pl-1.5 pr-2 text-left transition-colors",
4844
- ie("focus-visible:ring-inset"),
4844
+ se("focus-visible:ring-inset"),
4845
4845
  n ? "bg-f1-background-secondary" : "hover:bg-f1-background-secondary"
4846
4846
  ),
4847
4847
  children: [
@@ -4850,7 +4850,7 @@ const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4850
4850
  i && /* @__PURE__ */ t(ml, { presence: i, isActive: n })
4851
4851
  ] }),
4852
4852
  /* @__PURE__ */ t(
4853
- ge,
4853
+ pe,
4854
4854
  {
4855
4855
  tag: "span",
4856
4856
  className: b(
@@ -4890,10 +4890,10 @@ const Oc = le(Z("Page", ua)), dl = (e) => e.reduce(
4890
4890
  onClick: e.onClick,
4891
4891
  className: b(
4892
4892
  "flex w-full cursor-pointer items-center gap-1.5 rounded py-1.5 pl-1.5 pr-2 text-left font-medium text-f1-foreground transition-colors hover:bg-f1-background-secondary",
4893
- ie("focus-visible:ring-inset")
4893
+ se("focus-visible:ring-inset")
4894
4894
  ),
4895
4895
  children: [
4896
- e.icon && /* @__PURE__ */ t(V, { icon: e.icon, size: "md", className: "text-f1-icon" }),
4896
+ e.icon && /* @__PURE__ */ t(W, { icon: e.icon, size: "md", className: "text-f1-icon" }),
4897
4897
  /* @__PURE__ */ t("span", { className: "line-clamp-1", children: e.label })
4898
4898
  ]
4899
4899
  }
@@ -4945,7 +4945,7 @@ function pl({
4945
4945
  withNotification: i = !1,
4946
4946
  additionalOptions: s = []
4947
4947
  }) {
4948
- const l = G(
4948
+ const l = H(
4949
4949
  () => e.find((c) => c.id === n) || e[0],
4950
4950
  [e, n]
4951
4951
  );
@@ -4982,7 +4982,7 @@ const bl = ({
4982
4982
  children: r,
4983
4983
  additionalOptions: i = []
4984
4984
  }) => {
4985
- const s = se(), [l, c] = E(!1), d = G(
4985
+ const s = le(), [l, c] = E(!1), d = H(
4986
4986
  () => [
4987
4987
  ...e.map((u) => ({
4988
4988
  value: u.id,
@@ -5022,7 +5022,7 @@ const bl = ({
5022
5022
  {
5023
5023
  className: b(
5024
5024
  "group flex w-fit max-w-full flex-nowrap items-center justify-center gap-1 rounded p-1.5 text-f1-foreground transition-colors hover:bg-f1-background-hover data-[state=open]:bg-f1-background-hover",
5025
- ie()
5025
+ se()
5026
5026
  ),
5027
5027
  "data-testid": "company-selector-button",
5028
5028
  tabIndex: 0,
@@ -5035,7 +5035,7 @@ const bl = ({
5035
5035
  animate: { rotate: l ? 180 : 0 },
5036
5036
  transition: { duration: 0.2 },
5037
5037
  className: "flex h-3 w-3 shrink-0 items-center justify-center text-f1-icon-bold",
5038
- children: /* @__PURE__ */ t(V, { icon: Pn, size: "xs" })
5038
+ children: /* @__PURE__ */ t(W, { icon: On, size: "xs" })
5039
5039
  }
5040
5040
  ) }) })
5041
5041
  ]
@@ -5062,7 +5062,7 @@ const bl = ({
5062
5062
  badge: n ? { icon: _n, type: "highlight" } : void 0
5063
5063
  }
5064
5064
  ),
5065
- /* @__PURE__ */ t(ge, { tag: "span", children: e?.name ?? "" })
5065
+ /* @__PURE__ */ t(pe, { tag: "span", children: e?.name ?? "" })
5066
5066
  ]
5067
5067
  }
5068
5068
  );
@@ -5075,19 +5075,19 @@ function Dc({
5075
5075
  onDropdownClick: s,
5076
5076
  hasActivityUpdates: l
5077
5077
  }) {
5078
- const c = se();
5078
+ const c = le();
5079
5079
  return /* @__PURE__ */ o("div", { className: "flex flex-row items-center justify-between gap-1 p-3", children: [
5080
- /* @__PURE__ */ t("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ t(Oe, { items: n, children: /* @__PURE__ */ o(
5080
+ /* @__PURE__ */ t("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ t(Pe, { items: n, children: /* @__PURE__ */ o(
5081
5081
  "button",
5082
5082
  {
5083
5083
  className: b(
5084
5084
  "flex w-full max-w-full items-center gap-1.5 rounded p-1.5 font-medium transition-colors hover:bg-f1-background-secondary data-[state=open]:bg-f1-background-secondary",
5085
- ie("focus-visible:ring-inset")
5085
+ se("focus-visible:ring-inset")
5086
5086
  ),
5087
5087
  onClick: s,
5088
5088
  children: [
5089
5089
  /* @__PURE__ */ t(
5090
- ve,
5090
+ ye,
5091
5091
  {
5092
5092
  src: e.avatarUrl,
5093
5093
  firstName: e.firstName,
@@ -5095,13 +5095,13 @@ function Dc({
5095
5095
  size: "xs"
5096
5096
  }
5097
5097
  ),
5098
- /* @__PURE__ */ t(ge, { className: "text-f1-foreground", children: `${e.firstName} ${e.lastName}` })
5098
+ /* @__PURE__ */ t(pe, { className: "text-f1-foreground", children: `${e.firstName} ${e.lastName}` })
5099
5099
  ]
5100
5100
  }
5101
5101
  ) }) }),
5102
- a && /* @__PURE__ */ t(we, { label: c.notifications, shortcut: r, children: /* @__PURE__ */ o("div", { className: "relative", children: [
5102
+ a && /* @__PURE__ */ t(Ne, { label: c.notifications, shortcut: r, children: /* @__PURE__ */ o("div", { className: "relative", children: [
5103
5103
  /* @__PURE__ */ t(
5104
- H,
5104
+ U,
5105
5105
  {
5106
5106
  icon: Fn,
5107
5107
  label: c.notifications,
@@ -5170,7 +5170,7 @@ function xl({ isExpanded: e }) {
5170
5170
  );
5171
5171
  }
5172
5172
  function vl() {
5173
- const { prevSidebarState: e, sidebarState: n, toggleSidebar: a, isSmallScreen: r } = De(), i = W(null);
5173
+ const { prevSidebarState: e, sidebarState: n, toggleSidebar: a, isSmallScreen: r } = De(), i = M(null);
5174
5174
  return j(() => {
5175
5175
  e === "hidden" && n === "locked" && i.current?.focus();
5176
5176
  }, [e, n]), /* @__PURE__ */ o(
@@ -5186,7 +5186,7 @@ function vl() {
5186
5186
  "aria-label": "Close Sidebar",
5187
5187
  children: [
5188
5188
  /* @__PURE__ */ t("div", { className: b("hidden", { flex: !r }), children: /* @__PURE__ */ t(xl, { isExpanded: n === "locked" }) }),
5189
- /* @__PURE__ */ t("div", { className: b("hidden", { flex: r }), children: /* @__PURE__ */ t(V, { icon: Ee, size: "md" }) })
5189
+ /* @__PURE__ */ t("div", { className: b("hidden", { flex: r }), children: /* @__PURE__ */ t(W, { icon: Ee, size: "md" }) })
5190
5190
  ]
5191
5191
  }
5192
5192
  );
@@ -5232,7 +5232,7 @@ function wl({ children: e }) {
5232
5232
  );
5233
5233
  }
5234
5234
  function Dt() {
5235
- const e = Ne(ga);
5235
+ const e = Ce(ga);
5236
5236
  if (!e)
5237
5237
  throw new Error("useDragContext must be used within a DragProvider");
5238
5238
  return e;
@@ -5243,7 +5243,7 @@ const Nl = ({
5243
5243
  }) => /* @__PURE__ */ o("div", { className: "flex w-full items-center justify-between", children: [
5244
5244
  /* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1.5 font-medium text-f1-foreground", children: [
5245
5245
  /* @__PURE__ */ t(
5246
- V,
5246
+ W,
5247
5247
  {
5248
5248
  icon: e.icon,
5249
5249
  size: "md",
@@ -5256,7 +5256,7 @@ const Nl = ({
5256
5256
  /* @__PURE__ */ t("span", { children: e.label })
5257
5257
  ] }),
5258
5258
  (e.tag || e.badge) && /* @__PURE__ */ o("div", { className: "flex flex-shrink-0 items-center gap-1.5", children: [
5259
- e.tag && /* @__PURE__ */ t(Pe, { text: e.tag }),
5259
+ e.tag && /* @__PURE__ */ t(Oe, { text: e.tag }),
5260
5260
  e.badge && /* @__PURE__ */ t(Qe, { value: e.badge, size: "sm", type: "bold" })
5261
5261
  ] })
5262
5262
  ] }), Cl = ({ item: e }) => {
@@ -5267,7 +5267,7 @@ const Nl = ({
5267
5267
  ...i,
5268
5268
  className: b(
5269
5269
  "flex cursor-pointer items-center rounded py-1.5 pl-1.5 pr-2 no-underline transition-colors",
5270
- ie("focus-visible:ring-inset"),
5270
+ se("focus-visible:ring-inset"),
5271
5271
  s ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary"
5272
5272
  ),
5273
5273
  children: /* @__PURE__ */ t(Nl, { item: e, active: s })
@@ -5284,38 +5284,38 @@ const Nl = ({
5284
5284
  onReorderFinish: c,
5285
5285
  isSortable: d = !0
5286
5286
  }) => {
5287
- const f = se(), { isDragging: u, setIsDragging: m, draggedItemId: h, setDraggedItemId: g } = Dt(), { isActive: p } = Ct(), x = p(e.href, { exact: e.exactMatch }), v = W(!1), [N, _] = E(!1), B = i === 0, D = i === s - 1, O = s === 1, L = G(() => {
5288
- const A = [];
5289
- return !O && !B && A.push({
5287
+ const f = le(), { isDragging: u, setIsDragging: m, draggedItemId: h, setDraggedItemId: g } = Dt(), { isActive: p } = Ct(), x = p(e.href, { exact: e.exactMatch }), v = M(!1), [C, _] = E(!1), R = i === 0, D = i === s - 1, A = s === 1, P = H(() => {
5288
+ const F = [];
5289
+ return !A && !R && F.push({
5290
5290
  label: f.actions.moveUp,
5291
5291
  onClick: () => l?.(i, i - 1),
5292
- icon: Mr
5293
- }), !O && !D && A.push({
5292
+ icon: jr
5293
+ }), !A && !D && F.push({
5294
5294
  label: f.actions.moveDown,
5295
5295
  onClick: () => l?.(i, i + 1),
5296
- icon: jr
5297
- }), A.length > 0 && A.push({ type: "separator" }), A.push({
5296
+ icon: Mr
5297
+ }), F.length > 0 && F.push({ type: "separator" }), F.push({
5298
5298
  label: f.favorites.remove,
5299
5299
  onClick: () => r?.(e),
5300
5300
  icon: Wr,
5301
5301
  critical: !0
5302
- }), A;
5303
- }, [O, B, D, f, l, i, r, e]), U = () => {
5302
+ }), F;
5303
+ }, [A, R, D, f, l, i, r, e]), V = () => {
5304
5304
  m(!0), _(!1), g(e.href || null), v.current = !0;
5305
- }, R = () => {
5305
+ }, B = () => {
5306
5306
  m(!1), g(null), c(), setTimeout(() => {
5307
5307
  v.current = !1;
5308
5308
  }, 0);
5309
- }, w = u && h === e.href, S = G(
5309
+ }, w = u && h === e.href, k = H(
5310
5310
  () => b(
5311
5311
  "group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing",
5312
5312
  d && "touch-none",
5313
5313
  x ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary",
5314
- N && "bg-f1-background-secondary",
5314
+ C && "bg-f1-background-secondary",
5315
5315
  w && "bg-f1-background-secondary"
5316
5316
  ),
5317
- [x, N, w, d]
5318
- ), k = G(() => /* @__PURE__ */ o(X, { children: [
5317
+ [x, C, w, d]
5318
+ ), I = H(() => /* @__PURE__ */ o(ne, { children: [
5319
5319
  /* @__PURE__ */ t("div", { className: "flex w-full items-center justify-between px-1.5 py-1.5", children: /* @__PURE__ */ t(Sl, { tooltip: n, children: /* @__PURE__ */ o(
5320
5320
  Fe,
5321
5321
  {
@@ -5330,7 +5330,7 @@ const Nl = ({
5330
5330
  draggable: !1,
5331
5331
  children: [
5332
5332
  e.type === "icon" ? /* @__PURE__ */ t(
5333
- V,
5333
+ W,
5334
5334
  {
5335
5335
  icon: e.icon,
5336
5336
  size: "md",
@@ -5341,7 +5341,7 @@ const Nl = ({
5341
5341
  }
5342
5342
  ) : e.avatar ? /* @__PURE__ */ t(En, { size: "xs", avatar: e.avatar }) : null,
5343
5343
  /* @__PURE__ */ t(
5344
- ge,
5344
+ pe,
5345
5345
  {
5346
5346
  tag: "span",
5347
5347
  className: "line-clamp-1 font-medium text-f1-foreground",
@@ -5358,21 +5358,21 @@ const Nl = ({
5358
5358
  {
5359
5359
  className: b(
5360
5360
  "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",
5361
- N && "bg-f1-background-secondary opacity-100",
5361
+ C && "bg-f1-background-secondary opacity-100",
5362
5362
  w && "opacity-100"
5363
5363
  ),
5364
5364
  children: /* @__PURE__ */ t(
5365
- Oe,
5365
+ Pe,
5366
5366
  {
5367
- open: N,
5367
+ open: C,
5368
5368
  onOpenChange: _,
5369
- items: L,
5370
- children: /* @__PURE__ */ t("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ t(V, { icon: pt, size: "sm" }) })
5369
+ items: P,
5370
+ children: /* @__PURE__ */ t("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ t(W, { icon: pt, size: "sm" }) })
5371
5371
  }
5372
5372
  )
5373
5373
  }
5374
5374
  )
5375
- ] }), [e, x, N, w, L, n]);
5375
+ ] }), [e, x, C, w, P, n]);
5376
5376
  return d ? /* @__PURE__ */ t(
5377
5377
  Un,
5378
5378
  {
@@ -5380,15 +5380,15 @@ const Nl = ({
5380
5380
  drag: "y",
5381
5381
  dragConstraints: a,
5382
5382
  dragElastic: 0.1,
5383
- onDragStart: U,
5384
- onDragEnd: R,
5385
- className: S,
5383
+ onDragStart: V,
5384
+ onDragEnd: B,
5385
+ className: k,
5386
5386
  whileDrag: {
5387
5387
  scale: 1.05
5388
5388
  },
5389
- children: k
5389
+ children: I
5390
5390
  }
5391
- ) : /* @__PURE__ */ t("div", { className: S, children: k });
5391
+ ) : /* @__PURE__ */ t("div", { className: k, children: I });
5392
5392
  }, ct = ({
5393
5393
  category: e,
5394
5394
  isSortable: n = !1,
@@ -5397,7 +5397,7 @@ const Nl = ({
5397
5397
  onDragEnd: i,
5398
5398
  currentOrder: s
5399
5399
  }) => {
5400
- const { isDragging: l, setIsDragging: c } = Dt(), d = W(!1), f = yi(), u = () => {
5400
+ const { isDragging: l, setIsDragging: c } = Dt(), d = M(!1), f = yi(), u = () => {
5401
5401
  c(!0), d.current = !0;
5402
5402
  }, m = () => {
5403
5403
  c(!1), setTimeout(() => {
@@ -5472,13 +5472,13 @@ function zc({
5472
5472
  onFavoritesChange: r,
5473
5473
  favorites: i
5474
5474
  }) {
5475
- const s = W(null), l = e.filter(
5475
+ const s = M(null), l = e.filter(
5476
5476
  (p) => p.isSortable === !1
5477
5477
  ), [c, d] = E(
5478
5478
  e.filter((p) => p.isSortable !== !1)
5479
- ), [f, u] = E(0), m = ne((p) => {
5479
+ ), [f, u] = E(0), m = ae((p) => {
5480
5480
  d(p);
5481
- }, []), h = ne(
5481
+ }, []), h = ae(
5482
5482
  (p) => {
5483
5483
  a?.(p);
5484
5484
  },
@@ -5513,56 +5513,56 @@ function Il({
5513
5513
  forceUpdate: d,
5514
5514
  disableDragging: f = !1
5515
5515
  }) {
5516
- const u = se(), { isDragging: m } = Dt(), h = e.some((y) => y.isRoot), g = e.filter((y) => !y.isRoot).length > 0, p = n.length > 0, x = W(null), [v, N] = E(l), _ = l.length > 0;
5516
+ const u = le(), { isDragging: m } = Dt(), h = e.some((y) => y.isRoot), g = e.filter((y) => !y.isRoot).length > 0, p = n.length > 0, x = M(null), [v, C] = E(l), _ = l.length > 0;
5517
5517
  j(() => {
5518
- JSON.stringify(l) !== JSON.stringify(v) && N(l);
5518
+ JSON.stringify(l) !== JSON.stringify(v) && C(l);
5519
5519
  }, [l]);
5520
- const B = (y) => {
5521
- N(y);
5522
- }, D = ne(
5520
+ const R = (y) => {
5521
+ C(y);
5522
+ }, D = ae(
5523
5523
  (y) => {
5524
- const C = v.filter((I) => I.href !== y.href);
5525
- N(C), c?.(C);
5524
+ const S = v.filter((N) => N.href !== y.href);
5525
+ C(S), c?.(S);
5526
5526
  },
5527
5527
  [v, c]
5528
- ), O = ne(
5529
- (y, C) => {
5530
- if (C < 0 || C >= v.length) return;
5531
- const I = [...v], [P] = I.splice(y, 1);
5532
- I.splice(C, 0, P), N(I), c?.(I);
5528
+ ), A = ae(
5529
+ (y, S) => {
5530
+ if (S < 0 || S >= v.length) return;
5531
+ const N = [...v], [O] = N.splice(y, 1);
5532
+ N.splice(S, 0, O), C(N), c?.(N);
5533
5533
  },
5534
5534
  [v, c]
5535
- ), [L, U] = E(!1), R = W(null);
5535
+ ), [P, V] = E(!1), B = M(null);
5536
5536
  j(() => {
5537
- n.length > 0 && !L && (a([...n]), U(!0));
5538
- }, [n, a, L]), j(() => {
5537
+ n.length > 0 && !P && (a([...n]), V(!0));
5538
+ }, [n, a, P]), j(() => {
5539
5539
  const y = () => {
5540
- R.current !== null && window.clearTimeout(R.current), R.current = window.setTimeout(() => {
5540
+ B.current !== null && window.clearTimeout(B.current), B.current = window.setTimeout(() => {
5541
5541
  r.current && n.length > 0 && d();
5542
5542
  }, 50);
5543
5543
  };
5544
5544
  return window.addEventListener("resize", y), () => {
5545
- window.removeEventListener("resize", y), R.current !== null && window.clearTimeout(R.current);
5545
+ window.removeEventListener("resize", y), B.current !== null && window.clearTimeout(B.current);
5546
5546
  };
5547
5547
  }, [r, n, d]);
5548
- const w = "flex flex-col gap-0.5", S = G(
5548
+ const w = "flex flex-col gap-0.5", k = H(
5549
5549
  () => v.reduce(
5550
- (y, C, I) => (C.label in y || (y[C.label] = []), y[C.label].push(I), y),
5550
+ (y, S, N) => (S.label in y || (y[S.label] = []), y[S.label].push(N), y),
5551
5551
  {}
5552
5552
  ),
5553
5553
  [v]
5554
- ), k = G(
5555
- () => _ && v.map((y, C) => /* @__PURE__ */ t(
5554
+ ), I = H(
5555
+ () => _ && v.map((y, S) => /* @__PURE__ */ t(
5556
5556
  kl,
5557
5557
  {
5558
5558
  isSortable: !f,
5559
- tooltip: (S[y.label] ?? []).length > 1 ? y.tooltip : void 0,
5559
+ tooltip: (k[y.label] ?? []).length > 1 ? y.tooltip : void 0,
5560
5560
  item: y,
5561
5561
  dragConstraints: x,
5562
5562
  onRemove: D,
5563
- index: C,
5563
+ index: S,
5564
5564
  total: v.length,
5565
- onMove: O,
5565
+ onMove: A,
5566
5566
  onReorderFinish: () => {
5567
5567
  c?.(v);
5568
5568
  }
@@ -5572,13 +5572,13 @@ function Il({
5572
5572
  [
5573
5573
  _,
5574
5574
  v,
5575
- S,
5575
+ k,
5576
5576
  D,
5577
- O,
5577
+ A,
5578
5578
  c,
5579
5579
  f
5580
5580
  ]
5581
- ), A = "flex flex-col gap-3", M = G(() => n.map((y) => /* @__PURE__ */ t(
5581
+ ), F = "flex flex-col gap-3", $ = H(() => n.map((y) => /* @__PURE__ */ t(
5582
5582
  ct,
5583
5583
  {
5584
5584
  category: y,
@@ -5598,31 +5598,31 @@ function Il({
5598
5598
  m && "cursor-grabbing [&_*]:cursor-grabbing"
5599
5599
  ),
5600
5600
  children: [
5601
- h && /* @__PURE__ */ t("div", { className: "flex w-full flex-col gap-3 bg-transparent px-3", children: e.filter((y) => y.isRoot).map((y, C) => /* @__PURE__ */ t(
5601
+ h && /* @__PURE__ */ t("div", { className: "flex w-full flex-col gap-3 bg-transparent px-3", children: e.filter((y) => y.isRoot).map((y, S) => /* @__PURE__ */ t(
5602
5602
  ct,
5603
5603
  {
5604
5604
  category: y,
5605
5605
  onCollapse: i
5606
5606
  },
5607
- `fixed-${C}`
5607
+ `fixed-${S}`
5608
5608
  )) }),
5609
- _ && /* @__PURE__ */ t("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ t(_t, { title: u.favorites.favorites, children: /* @__PURE__ */ t("div", { ref: x, children: f ? /* @__PURE__ */ t("div", { className: w, children: k }) : /* @__PURE__ */ t(
5609
+ _ && /* @__PURE__ */ t("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ t(_t, { title: u.favorites.favorites, children: /* @__PURE__ */ t("div", { ref: x, children: f ? /* @__PURE__ */ t("div", { className: w, children: I }) : /* @__PURE__ */ t(
5610
5610
  Wt,
5611
5611
  {
5612
5612
  axis: "y",
5613
5613
  values: v,
5614
- onReorder: B,
5614
+ onReorder: R,
5615
5615
  className: w,
5616
- children: k
5616
+ children: I
5617
5617
  }
5618
5618
  ) }) }) }),
5619
- g && /* @__PURE__ */ t("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: e.filter((y) => !y.isRoot).map((y, C) => /* @__PURE__ */ t(
5619
+ g && /* @__PURE__ */ t("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: e.filter((y) => !y.isRoot).map((y, S) => /* @__PURE__ */ t(
5620
5620
  ct,
5621
5621
  {
5622
5622
  category: y,
5623
5623
  onCollapse: i
5624
5624
  },
5625
- `fixed-${C}`
5625
+ `fixed-${S}`
5626
5626
  )) }),
5627
5627
  p && /* @__PURE__ */ t(
5628
5628
  "div",
@@ -5631,15 +5631,15 @@ function Il({
5631
5631
  "mt-3 flex w-full flex-col gap-3 bg-transparent px-3 [&_li]:list-none"
5632
5632
  ),
5633
5633
  ref: r,
5634
- children: f ? /* @__PURE__ */ t("div", { className: A, children: M }) : /* @__PURE__ */ t(
5634
+ children: f ? /* @__PURE__ */ t("div", { className: F, children: $ }) : /* @__PURE__ */ t(
5635
5635
  Wt,
5636
5636
  {
5637
5637
  axis: "y",
5638
5638
  values: n,
5639
5639
  onReorder: a,
5640
5640
  layoutScroll: !0,
5641
- className: A,
5642
- children: M
5641
+ className: F,
5642
+ children: $
5643
5643
  }
5644
5644
  )
5645
5645
  }
@@ -5651,7 +5651,7 @@ function Il({
5651
5651
  const Sl = ({
5652
5652
  tooltip: e,
5653
5653
  children: n
5654
- }) => e ? /* @__PURE__ */ t(we, { description: e, children: n }) : n;
5654
+ }) => e ? /* @__PURE__ */ t(Ne, { description: e, children: n }) : n;
5655
5655
  function Bc({
5656
5656
  onClick: e,
5657
5657
  placeholder: n,
@@ -5664,13 +5664,13 @@ function Bc({
5664
5664
  onClick: e,
5665
5665
  className: b(
5666
5666
  "mb-[calc(0.75rem-1px)] flex w-full cursor-pointer items-center justify-between rounded bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary p-1.5 text-f1-foreground-secondary ring-1 ring-inset ring-f1-border-secondary transition-all hover:ring-f1-border-hover",
5667
- ie()
5667
+ se()
5668
5668
  ),
5669
5669
  type: "button",
5670
5670
  ...r,
5671
5671
  children: [
5672
5672
  /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
5673
- /* @__PURE__ */ t(V, { icon: Dn, size: "md" }),
5673
+ /* @__PURE__ */ t(W, { icon: Dn, size: "md" }),
5674
5674
  /* @__PURE__ */ t("span", { children: n })
5675
5675
  ] }),
5676
5676
  /* @__PURE__ */ t("div", { className: "hidden xs:block", children: /* @__PURE__ */ t(Vr, { keys: a }) })
@@ -5705,7 +5705,7 @@ function Fl({
5705
5705
  footer: a,
5706
5706
  onFooterDropdownClick: r
5707
5707
  }) {
5708
- const { sidebarState: i, isSmallScreen: s } = De(), l = $e(), [c, d] = mt({ threshold: 1 }), [f, u] = mt({ threshold: 1 }), m = se(), h = {
5708
+ const { sidebarState: i, isSmallScreen: s } = De(), l = $e(), [c, d] = mt({ threshold: 1 }), [f, u] = mt({ threshold: 1 }), m = le(), h = {
5709
5709
  x: {
5710
5710
  ease: i !== "locked" ? s ? [0.25, 0.46, 0.45, 0.94] : [0.175, 0.885, 0.32, 1.1] : [0, 0, 0.58, 1],
5711
5711
  duration: l ? 0 : i !== "locked" && !s ? 0.3 : 0.2
@@ -5713,7 +5713,7 @@ function Fl({
5713
5713
  top: { duration: l ? 0 : 0.1 },
5714
5714
  left: { duration: l ? 0 : 0.1 },
5715
5715
  default: { duration: l ? 0 : 0.2 }
5716
- }, g = () => a ? hi(a) && r ? jn(
5716
+ }, g = () => a ? hi(a) && r ? Mn(
5717
5717
  a,
5718
5718
  {
5719
5719
  onDropdownClick: r
@@ -5774,7 +5774,7 @@ function Fl({
5774
5774
  }
5775
5775
  );
5776
5776
  }
5777
- const Rc = le(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-background absolute -top-1 -right-1 w-3 h-3 flex items-center justify-center rounded-full", children: /* @__PURE__ */ t(
5777
+ const Rc = oe(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-background absolute -top-1 -right-1 w-3 h-3 flex items-center justify-center rounded-full", children: /* @__PURE__ */ t(
5778
5778
  "span",
5779
5779
  {
5780
5780
  "aria-hidden": "true",
@@ -5803,7 +5803,7 @@ const Rc = le(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-backg
5803
5803
  className: b(
5804
5804
  Hr({ variant: r }),
5805
5805
  Ur({ size: "md" }),
5806
- ie()
5806
+ se()
5807
5807
  ),
5808
5808
  children: /* @__PURE__ */ o(
5809
5809
  "div",
@@ -5813,7 +5813,7 @@ const Rc = le(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-backg
5813
5813
  n ? "!pl-1.5 !pr-2" : "!px-1.5"
5814
5814
  ),
5815
5815
  children: [
5816
- /* @__PURE__ */ t(V, { icon: e.icon, size: "md", color: "default" }),
5816
+ /* @__PURE__ */ t(W, { icon: e.icon, size: "md", color: "default" }),
5817
5817
  /* @__PURE__ */ t(
5818
5818
  "span",
5819
5819
  {
@@ -5836,7 +5836,7 @@ const Rc = le(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-backg
5836
5836
  onTabChange: a,
5837
5837
  search: r
5838
5838
  }) => {
5839
- const i = se(), s = r.placeholder ?? i.navigation.sidebar.search;
5839
+ const i = le(), s = r.placeholder ?? i.navigation.sidebar.search;
5840
5840
  return /* @__PURE__ */ o("div", { className: "mb-5 flex items-center justify-between gap-1 px-3", children: [
5841
5841
  /* @__PURE__ */ t(
5842
5842
  "div",
@@ -5856,7 +5856,7 @@ const Rc = le(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-backg
5856
5856
  }
5857
5857
  ),
5858
5858
  /* @__PURE__ */ t(
5859
- H,
5859
+ U,
5860
5860
  {
5861
5861
  variant: "ghost",
5862
5862
  size: "md",
@@ -5867,7 +5867,7 @@ const Rc = le(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-backg
5867
5867
  }
5868
5868
  )
5869
5869
  ] });
5870
- }, Ol = {
5870
+ }, Pl = {
5871
5871
  waiting: "neutral",
5872
5872
  pending: "neutral",
5873
5873
  approved: "positive",
@@ -5883,8 +5883,8 @@ const Rc = le(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-backg
5883
5883
  type: "critical",
5884
5884
  size: "sm"
5885
5885
  }
5886
- }, Pl = {
5887
- icon: On,
5886
+ }, Ol = {
5887
+ icon: Pn,
5888
5888
  type: "neutral",
5889
5889
  size: "sm"
5890
5890
  }, El = {
@@ -5893,7 +5893,7 @@ const Rc = le(Fl), Al = () => /* @__PURE__ */ t("div", { className: "bg-f1-backg
5893
5893
  critical: 2,
5894
5894
  warning: 1,
5895
5895
  neutral: 0
5896
- }, _l = (e) => e in cn ? cn[e] : Pl;
5896
+ }, _l = (e) => e in cn ? cn[e] : Ol;
5897
5897
  function dn(e) {
5898
5898
  return El[e ?? "neutral"] ?? 0;
5899
5899
  }
@@ -5903,10 +5903,10 @@ const Dl = ({
5903
5903
  status: a,
5904
5904
  approvers: r
5905
5905
  }) => {
5906
- const i = se(), s = n === 1 ? i.approvals.requiredNumbers.one : i.approvals.requiredNumbers.other.replace(
5906
+ const i = le(), s = n === 1 ? i.approvals.requiredNumbers.one : i.approvals.requiredNumbers.other.replace(
5907
5907
  "{{count}}",
5908
5908
  n.toString()
5909
- ), l = i.approvals.statuses[a], c = G(() => r.map((d) => {
5909
+ ), l = i.approvals.statuses[a], c = H(() => r.map((d) => {
5910
5910
  const f = _l(d.status);
5911
5911
  return {
5912
5912
  firstName: d.firstName,
@@ -5923,12 +5923,12 @@ const Dl = ({
5923
5923
  /* @__PURE__ */ t("p", { className: "font-medium text-f1-foreground", children: e }),
5924
5924
  /* @__PURE__ */ t("p", { className: "text-f1-foreground-secondary", children: s })
5925
5925
  ] }),
5926
- /* @__PURE__ */ t(Ke, { text: l, variant: Ol[a] })
5926
+ /* @__PURE__ */ t(Ke, { text: l, variant: Pl[a] })
5927
5927
  ] }),
5928
5928
  /* @__PURE__ */ t("div", { className: "w-full", children: /* @__PURE__ */ t(Tn, { avatars: c, layout: "fill", type: "person", size: "md" }) })
5929
5929
  ] });
5930
5930
  }, Tl = ({ steps: e }) => {
5931
- const a = se().approvals.history, r = e.findIndex((i) => i.status === "pending");
5931
+ const a = le().approvals.history, r = e.findIndex((i) => i.status === "pending");
5932
5932
  return /* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-4", children: [
5933
5933
  /* @__PURE__ */ t("h2", { className: "mb-2 text-lg font-semibold text-f1-foreground", children: a }),
5934
5934
  /* @__PURE__ */ o("div", { className: "flex flex-row gap-4", children: [
@@ -5945,7 +5945,7 @@ const Dl = ({
5945
5945
  ),
5946
5946
  s !== e.length - 1 && /* @__PURE__ */ t("div", { className: "h-[96px] w-px bg-f1-border-secondary" })
5947
5947
  ] }, i.title)) }),
5948
- /* @__PURE__ */ t("div", { className: "flex w-full flex-col rounded-xl border border-solid border-f1-border", children: e.map((i, s) => /* @__PURE__ */ o(X, { children: [
5948
+ /* @__PURE__ */ t("div", { className: "flex w-full flex-col rounded-xl border border-solid border-f1-border", children: e.map((i, s) => /* @__PURE__ */ o(ne, { children: [
5949
5949
  /* @__PURE__ */ t(
5950
5950
  Dl,
5951
5951
  {
@@ -5960,7 +5960,7 @@ const Dl = ({
5960
5960
  ] })) })
5961
5961
  ] })
5962
5962
  ] });
5963
- }, Mc = le(
5963
+ }, jc = oe(
5964
5964
  Z("OneApprovalHistory", Tl)
5965
5965
  ), dt = (e, n) => typeof n == "string" && n in e;
5966
5966
  function un(e, n, a) {
@@ -5996,7 +5996,7 @@ function un(e, n, a) {
5996
5996
  }
5997
5997
  return i ? r : null;
5998
5998
  }
5999
- function jc(e) {
5999
+ function Mc(e) {
6000
6000
  const {
6001
6001
  source: n,
6002
6002
  collectionId: a,
@@ -6011,43 +6011,43 @@ function jc(e) {
6011
6011
  currentFilters: m,
6012
6012
  navigationMode: h = "url",
6013
6013
  deps: g = []
6014
- } = e, p = Kr(), x = wi(n, g), [v, N] = E(null), _ = v?.key === a && v.settled, B = W(x);
6015
- B.current = x;
6016
- const D = W(p);
6014
+ } = e, p = Kr(), x = wi(n, g), [v, C] = E(null), _ = v?.key === a && v.settled, R = M(x);
6015
+ R.current = x;
6016
+ const D = M(p);
6017
6017
  D.current = p;
6018
- const O = W(null), L = m === void 0 ? null : JSON.stringify(m), U = W(m);
6019
- U.current = m;
6020
- const R = W(null), w = () => {
6021
- const T = U.current;
6022
- T !== void 0 && (R.current = JSON.stringify(T), B.current.setCurrentFilters(T));
6018
+ const A = M(null), P = m === void 0 ? null : JSON.stringify(m), V = M(m);
6019
+ V.current = m;
6020
+ const B = M(null), w = () => {
6021
+ const T = V.current;
6022
+ T !== void 0 && (B.current = JSON.stringify(T), R.current.setCurrentFilters(T));
6023
6023
  };
6024
6024
  j(() => {
6025
- if (!f || O.current === a) return;
6025
+ if (!f || A.current === a) return;
6026
6026
  if (!u) {
6027
- O.current = a, w(), N({ key: a, applied: null, settled: !1 });
6027
+ A.current = a, w(), C({ key: a, applied: null, settled: !1 });
6028
6028
  return;
6029
6029
  }
6030
6030
  let T = !1;
6031
6031
  return (async () => {
6032
- let ce = null;
6032
+ let de = null;
6033
6033
  try {
6034
- const he = await D.current.get(
6034
+ const ge = await D.current.get(
6035
6035
  a
6036
6036
  );
6037
- he && !T && (ce = un(
6038
- he,
6039
- B.current,
6040
- B.current
6037
+ ge && !T && (de = un(
6038
+ ge,
6039
+ R.current,
6040
+ R.current
6041
6041
  ));
6042
6042
  } catch {
6043
6043
  }
6044
- T || (O.current = a, w(), N({ key: a, applied: ce, settled: !1 }));
6044
+ T || (A.current = a, w(), C({ key: a, applied: de, settled: !1 }));
6045
6045
  })(), () => {
6046
6046
  T = !0;
6047
6047
  };
6048
6048
  }, [a, f, u]), j(() => {
6049
- !_ || L === null || R.current !== L && w();
6050
- }, [_, L]), j(() => {
6049
+ !_ || P === null || B.current !== P && w();
6050
+ }, [_, P]), j(() => {
6051
6051
  if (!(!f || !u))
6052
6052
  return qr(a, async () => {
6053
6053
  try {
@@ -6055,28 +6055,28 @@ function jc(e) {
6055
6055
  a
6056
6056
  );
6057
6057
  if (!T) return;
6058
- const Q = B.current;
6058
+ const X = R.current;
6059
6059
  un(
6060
6060
  T,
6061
6061
  {
6062
- filters: U.current === void 0 ? Q.filters : void 0,
6063
- sortings: Q.sortings,
6064
- search: Q.search,
6065
- grouping: Q.grouping
6062
+ filters: V.current === void 0 ? X.filters : void 0,
6063
+ sortings: X.sortings,
6064
+ search: X.search,
6065
+ grouping: X.grouping
6066
6066
  },
6067
- Q
6067
+ X
6068
6068
  );
6069
6069
  } catch {
6070
6070
  }
6071
6071
  });
6072
6072
  }, [a, f, u]);
6073
6073
  const {
6074
- data: S,
6075
- paginationInfo: k,
6076
- setPage: A,
6077
- loadMore: M,
6074
+ data: k,
6075
+ paginationInfo: I,
6076
+ setPage: F,
6077
+ loadMore: $,
6078
6078
  isLoading: y,
6079
- isInitialLoading: C
6079
+ isInitialLoading: S
6080
6080
  } = Yr(
6081
6081
  x,
6082
6082
  {
@@ -6091,23 +6091,23 @@ function jc(e) {
6091
6091
  [JSON.stringify(x.currentNavigationFilters)]
6092
6092
  );
6093
6093
  j(() => {
6094
- N(
6094
+ C(
6095
6095
  (T) => T && T.key === a && !T.settled ? { ...T, settled: !0 } : T
6096
6096
  );
6097
6097
  }, [v, a]);
6098
- const I = c ?? n.itemUrl, P = Ni({
6098
+ const N = c ?? n.itemUrl, O = Ni({
6099
6099
  dataSource: x,
6100
- data: S,
6101
- paginationInfo: k,
6102
- setPage: A,
6103
- loadMore: M,
6100
+ data: k,
6101
+ paginationInfo: I,
6102
+ setPage: F,
6103
+ loadMore: $,
6104
6104
  isLoading: y,
6105
6105
  idProvider: l,
6106
- itemUrl: I,
6106
+ itemUrl: N,
6107
6107
  activeItemId: r,
6108
6108
  defaultActiveItemId: i,
6109
6109
  onActiveItemChange: s
6110
- }), re = typeof P.activeItemId == "string" || typeof P.activeItemId == "number" ? P.activeItemId : null, te = P.activeItem !== null, $ = te && P.nextItem === null && P.hasNext, Ce = te && P.previousItem === null && P.hasPrevious, be = re !== null && (!te || $ || Ce), ke = [
6110
+ }), ie = typeof O.activeItemId == "string" || typeof O.activeItemId == "number" ? O.activeItemId : null, te = O.activeItem !== null, Q = te && O.nextItem === null && O.hasNext, xe = te && O.previousItem === null && O.hasPrevious, K = ie !== null && (!te || Q || xe), ke = [
6111
6111
  ...x.currentSortings ? [
6112
6112
  {
6113
6113
  field: x.currentSortings.field,
@@ -6120,67 +6120,67 @@ function jc(e) {
6120
6120
  order: x.currentGrouping.order ?? "asc"
6121
6121
  }
6122
6122
  ] : []
6123
- ], { neighbors: oe, isSupported: st } = Ci({
6123
+ ], { neighbors: ce, isSupported: st } = Ci({
6124
6124
  dataAdapter: x.dataAdapter,
6125
- id: re,
6125
+ id: ie,
6126
6126
  filters: x.currentFilters,
6127
6127
  sortings: ke,
6128
6128
  search: x.debouncedCurrentSearch,
6129
6129
  // Loading gates: while the window is (initially or re)fetching it may
6130
6130
  // still answer; resolve id-relatively only once it conclusively can't.
6131
- enabled: f && _ && !C && !y && be,
6131
+ enabled: f && _ && !S && !y && K,
6132
6132
  fetchParamsProvider: (T) => ({
6133
6133
  ...T,
6134
6134
  navigationFilters: x.currentNavigationFilters
6135
6135
  })
6136
- }), Te = G(() => l || (x.idProvider ? (T, Q) => x.idProvider(T, Q) : ki), [l, x.idProvider]), F = G(() => {
6137
- if (!be || oe === null) return P;
6138
- const T = P.previousItem ?? oe.previous, Q = P.nextItem ?? oe.next, ce = (he) => he && I ? I(he) ?? null : null;
6136
+ }), Te = H(() => l || (x.idProvider ? (T, X) => x.idProvider(T, X) : ki), [l, x.idProvider]), L = H(() => {
6137
+ if (!K || ce === null) return O;
6138
+ const T = O.previousItem ?? ce.previous, X = O.nextItem ?? ce.next, de = (ge) => ge && N ? N(ge) ?? null : null;
6139
6139
  return {
6140
- ...P,
6140
+ ...O,
6141
6141
  previousItem: T,
6142
- nextItem: Q,
6143
- previousItemUrl: P.previousItemUrl ?? ce(T),
6144
- nextItemUrl: P.nextItemUrl ?? ce(Q),
6145
- absoluteIndex: P.absoluteIndex ?? (oe.position !== void 0 ? oe.position - 1 : null),
6146
- totalItems: P.totalItems ?? oe.total,
6147
- hasPrevious: P.hasPrevious || T !== null,
6148
- hasNext: P.hasNext || Q !== null,
6142
+ nextItem: X,
6143
+ previousItemUrl: O.previousItemUrl ?? de(T),
6144
+ nextItemUrl: O.nextItemUrl ?? de(X),
6145
+ absoluteIndex: O.absoluteIndex ?? (ce.position !== void 0 ? ce.position - 1 : null),
6146
+ totalItems: O.totalItems ?? ce.total,
6147
+ hasPrevious: O.hasPrevious || T !== null,
6148
+ hasNext: O.hasNext || X !== null,
6149
6149
  // Off-window the base goTo* no-op (no window index): jump straight to
6150
6150
  // the resolved neighbor instead.
6151
- goToPrevious: te ? P.goToPrevious : () => {
6152
- oe.previous && P.setActiveItemId(
6153
- Te(oe.previous)
6151
+ goToPrevious: te ? O.goToPrevious : () => {
6152
+ ce.previous && O.setActiveItemId(
6153
+ Te(ce.previous)
6154
6154
  );
6155
6155
  },
6156
- goToNext: te ? P.goToNext : () => {
6157
- oe.next && P.setActiveItemId(
6158
- Te(oe.next)
6156
+ goToNext: te ? O.goToNext : () => {
6157
+ ce.next && O.setActiveItemId(
6158
+ Te(ce.next)
6159
6159
  );
6160
6160
  }
6161
6161
  };
6162
6162
  }, [
6163
- P,
6164
- be,
6165
- oe,
6163
+ O,
6164
+ K,
6165
+ ce,
6166
6166
  te,
6167
- I,
6167
+ N,
6168
6168
  Te
6169
- ]), q = ts(F, {
6169
+ ]), q = ts(L, {
6170
6170
  getItemTitle: d,
6171
6171
  mode: h
6172
- }), ee = f && _ && st && be && oe === null, J = W(null), de = q ?? (ee ? J.current : null);
6172
+ }), ee = f && _ && st && K && ce === null, J = M(null), ue = q ?? (ee ? J.current : null);
6173
6173
  return j(() => {
6174
6174
  q !== null && (J.current = q);
6175
6175
  }, [q]), {
6176
- ...F,
6177
- isNavigating: F.isNavigating || ee,
6178
- isReady: _ && !C,
6179
- navigation: de,
6176
+ ...L,
6177
+ isNavigating: L.isNavigating || ee,
6178
+ isReady: _ && !S,
6179
+ navigation: ue,
6180
6180
  appliedCollectionState: v?.applied ?? null,
6181
6181
  dataSource: x,
6182
- data: S,
6183
- paginationInfo: k,
6182
+ data: k,
6183
+ paginationInfo: I,
6184
6184
  isLoading: y
6185
6185
  };
6186
6186
  }
@@ -6208,7 +6208,7 @@ const Tt = {
6208
6208
  md: "gap-2",
6209
6209
  lg: "gap-3",
6210
6210
  xl: "gap-4"
6211
- }, zl = ye({
6211
+ }, zl = we({
6212
6212
  base: "grid grid-cols-1",
6213
6213
  variants: {
6214
6214
  tileSize: {
@@ -6230,7 +6230,7 @@ const Tt = {
6230
6230
  tileSize: "md",
6231
6231
  gap: "4"
6232
6232
  }
6233
- }), Bl = ue.forwardRef(function({ className: n, gap: a, children: r, tileSize: i, ...s }, l) {
6233
+ }), Bl = fe.forwardRef(function({ className: n, gap: a, children: r, tileSize: i, ...s }, l) {
6234
6234
  return /* @__PURE__ */ t("div", { className: b("@container", "grow"), ref: l, ...s, children: /* @__PURE__ */ t(
6235
6235
  "div",
6236
6236
  {
@@ -6240,7 +6240,7 @@ const Tt = {
6240
6240
  children: r
6241
6241
  }
6242
6242
  ) });
6243
- }), Rl = ye({
6243
+ }), Rl = we({
6244
6244
  base: "flex",
6245
6245
  variants: {
6246
6246
  overflow: {
@@ -6317,7 +6317,7 @@ const Tt = {
6317
6317
  paddingY: "none",
6318
6318
  inline: !1
6319
6319
  }
6320
- }), pa = K(function({
6320
+ }), pa = G(function({
6321
6321
  className: n,
6322
6322
  grow: a,
6323
6323
  basis: r,
@@ -6357,7 +6357,7 @@ const Tt = {
6357
6357
  ...p
6358
6358
  }
6359
6359
  );
6360
- }), $l = ye({
6360
+ }), $l = we({
6361
6361
  base: "flex-row",
6362
6362
  variants: {
6363
6363
  gap: {
@@ -6370,7 +6370,7 @@ const Tt = {
6370
6370
  defaultVariants: {
6371
6371
  wrap: !0
6372
6372
  }
6373
- }), Ml = ue.forwardRef(function({ className: n, gap: a, wrap: r, ...i }, s) {
6373
+ }), jl = fe.forwardRef(function({ className: n, gap: a, wrap: r, ...i }, s) {
6374
6374
  return /* @__PURE__ */ t(
6375
6375
  pa,
6376
6376
  {
@@ -6379,7 +6379,7 @@ const Tt = {
6379
6379
  ...i
6380
6380
  }
6381
6381
  );
6382
- }), jl = ye({
6382
+ }), Ml = we({
6383
6383
  base: "flex-col",
6384
6384
  variants: {
6385
6385
  gap: {
@@ -6387,29 +6387,29 @@ const Tt = {
6387
6387
  }
6388
6388
  },
6389
6389
  defaultVariants: {}
6390
- }), Wl = K(function({ className: n, gap: a, children: r, ...i }, s) {
6390
+ }), Wl = G(function({ className: n, gap: a, children: r, ...i }, s) {
6391
6391
  return /* @__PURE__ */ t(
6392
6392
  pa,
6393
6393
  {
6394
- className: b(jl({ gap: a }), n),
6394
+ className: b(Ml({ gap: a }), n),
6395
6395
  ref: s,
6396
6396
  ...i,
6397
6397
  children: r
6398
6398
  }
6399
6399
  );
6400
- }), Wc = pe(
6400
+ }), Wc = be(
6401
6401
  {
6402
6402
  name: "Stack",
6403
6403
  type: "layout"
6404
6404
  },
6405
6405
  Wl
6406
- ), Vc = pe(
6406
+ ), Vc = be(
6407
6407
  {
6408
6408
  name: "Split",
6409
6409
  type: "layout"
6410
6410
  },
6411
- Ml
6412
- ), Uc = pe(
6411
+ jl
6412
+ ), Uc = be(
6413
6413
  {
6414
6414
  name: "AutoGrid",
6415
6415
  type: "layout"
@@ -6439,7 +6439,7 @@ const Tt = {
6439
6439
  )
6440
6440
  }
6441
6441
  );
6442
- }, Ul = () => /* @__PURE__ */ t("div", { className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary" }), Hl = K(function({ header: n, children: a, action: r, summaries: i, alert: s, status: l, fullHeight: c = !1 }, d) {
6442
+ }, Ul = () => /* @__PURE__ */ t("div", { className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary" }), Hl = G(function({ header: n, children: a, action: r, summaries: i, alert: s, status: l, fullHeight: c = !1 }, d) {
6443
6443
  const { enabled: f, toggle: u } = Hn();
6444
6444
  j(() => {
6445
6445
  if (s && l)
@@ -6447,7 +6447,7 @@ const Tt = {
6447
6447
  "You cannot pass both alert and status at the same time to this component"
6448
6448
  );
6449
6449
  }, [s, l]);
6450
- const m = (g) => !!g && !(ue.isValidElement(g) && g.type === ue.Fragment && ue.Children.count(g.props.children) === 0), h = () => {
6450
+ const m = (g) => !!g && !(fe.isValidElement(g) && g.type === fe.Fragment && fe.Children.count(g.props.children) === 0), h = () => {
6451
6451
  n?.link?.onClick?.();
6452
6452
  };
6453
6453
  return /* @__PURE__ */ o(
@@ -6467,8 +6467,8 @@ const Tt = {
6467
6467
  /* @__PURE__ */ t(Ul, {}),
6468
6468
  /* @__PURE__ */ t(zn, { className: "truncate", children: n.subtitle })
6469
6469
  ] }),
6470
- n.info && /* @__PURE__ */ t(we, { label: n.info, children: /* @__PURE__ */ t(
6471
- V,
6470
+ n.info && /* @__PURE__ */ t(Ne, { label: n.info, children: /* @__PURE__ */ t(
6471
+ W,
6472
6472
  {
6473
6473
  icon: Bn,
6474
6474
  size: "sm",
@@ -6494,7 +6494,7 @@ const Tt = {
6494
6494
  n.comment && /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-3 overflow-visible", children: [
6495
6495
  /* @__PURE__ */ t(Vl, { children: /* @__PURE__ */ t(Zr, { children: n.comment }) }),
6496
6496
  !!n.canBeBlurred && /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
6497
- H,
6497
+ U,
6498
6498
  {
6499
6499
  icon: f ? Xr : Qr,
6500
6500
  hideLabel: !0,
@@ -6515,16 +6515,16 @@ const Tt = {
6515
6515
  !!g.postfixUnit && /* @__PURE__ */ t("div", { className: "text-lg font-medium", children: g.postfixUnit })
6516
6516
  ] })
6517
6517
  ] }, p)) }),
6518
- ue.Children.toArray(a).filter(m).map((g, p) => /* @__PURE__ */ o(ue.Fragment, { children: [
6518
+ fe.Children.toArray(a).filter(m).map((g, p) => /* @__PURE__ */ o(fe.Fragment, { children: [
6519
6519
  p > 0 && /* @__PURE__ */ t(Ii, { bare: !0 }),
6520
6520
  g
6521
6521
  ] }, p))
6522
6522
  ] }),
6523
- r && /* @__PURE__ */ t(ei, { children: /* @__PURE__ */ t(H, { variant: "neutral", size: "sm", ...r }) })
6523
+ r && /* @__PURE__ */ t(ei, { children: /* @__PURE__ */ t(U, { variant: "neutral", size: "sm", ...r }) })
6524
6524
  ]
6525
6525
  }
6526
6526
  );
6527
- }), Gl = ye({
6527
+ }), Gl = we({
6528
6528
  variants: {
6529
6529
  height: {
6530
6530
  sm: "h-36",
@@ -6532,7 +6532,7 @@ const Tt = {
6532
6532
  lg: "h-60"
6533
6533
  }
6534
6534
  }
6535
- }), Kl = K(
6535
+ }), Kl = G(
6536
6536
  function({ header: n, height: a }, r) {
6537
6537
  return /* @__PURE__ */ o(
6538
6538
  It,
@@ -6574,17 +6574,17 @@ const Tt = {
6574
6574
  }
6575
6575
  );
6576
6576
  }
6577
- ), Le = le(
6578
- Z("Widget", ae(Hl, Kl))
6579
- ), me = Object.assign(
6580
- K(function({ chart: n, summaries: a, ...r }, i) {
6577
+ ), Le = oe(
6578
+ Z("Widget", re(Hl, Kl))
6579
+ ), he = Object.assign(
6580
+ G(function({ chart: n, summaries: a, ...r }, i) {
6581
6581
  return /* @__PURE__ */ t(Le, { ref: i, ...r, summaries: a, children: n && /* @__PURE__ */ t("div", { className: "min-h-52 min-w-52 grow pt-2", children: n }) });
6582
6582
  }),
6583
6583
  {
6584
6584
  Skeleton: Le.Skeleton
6585
6585
  }
6586
- ), ql = ae(
6587
- K(function({ canBeBlurred: n, ...a }, r) {
6586
+ ), ql = re(
6587
+ G(function({ canBeBlurred: n, ...a }, r) {
6588
6588
  const i = {
6589
6589
  ...a,
6590
6590
  header: {
@@ -6596,7 +6596,7 @@ const Tt = {
6596
6596
  yAxis: a.chart.yAxis ? { ...a.chart.yAxis } : { hide: !0 }
6597
6597
  };
6598
6598
  return /* @__PURE__ */ t(
6599
- me,
6599
+ he,
6600
6600
  {
6601
6601
  ref: r,
6602
6602
  ...i,
@@ -6604,13 +6604,13 @@ const Tt = {
6604
6604
  }
6605
6605
  );
6606
6606
  }),
6607
- me.Skeleton
6607
+ he.Skeleton
6608
6608
  ), Yl = Z(
6609
6609
  "AreaChartWidget",
6610
6610
  ql
6611
- ), Jl = K(function(n, a) {
6611
+ ), Jl = G(function(n, a) {
6612
6612
  return /* @__PURE__ */ t(
6613
- me,
6613
+ he,
6614
6614
  {
6615
6615
  ref: a,
6616
6616
  ...n,
@@ -6619,12 +6619,12 @@ const Tt = {
6619
6619
  );
6620
6620
  }), Zl = Z(
6621
6621
  "BarChartWidget",
6622
- ae(Jl, me.Skeleton)
6623
- ), Xl = ae(
6624
- K(
6622
+ re(Jl, he.Skeleton)
6623
+ ), Xl = re(
6624
+ G(
6625
6625
  function(n, a) {
6626
6626
  return /* @__PURE__ */ t(
6627
- me,
6627
+ he,
6628
6628
  {
6629
6629
  ref: a,
6630
6630
  ...n,
@@ -6633,15 +6633,15 @@ const Tt = {
6633
6633
  );
6634
6634
  }
6635
6635
  ),
6636
- me.Skeleton
6636
+ he.Skeleton
6637
6637
  ), Ql = Z(
6638
6638
  "LineChartWidget",
6639
6639
  Xl
6640
- ), eo = ae(
6641
- K(
6640
+ ), eo = re(
6641
+ G(
6642
6642
  function(n, a) {
6643
6643
  return /* @__PURE__ */ t(
6644
- me,
6644
+ he,
6645
6645
  {
6646
6646
  ref: a,
6647
6647
  ...n,
@@ -6650,68 +6650,68 @@ const Tt = {
6650
6650
  );
6651
6651
  }
6652
6652
  ),
6653
- me.Skeleton
6653
+ he.Skeleton
6654
6654
  ), to = Z(
6655
6655
  "PieChartWidget",
6656
6656
  eo
6657
- ), no = ae(
6658
- K(
6657
+ ), no = re(
6658
+ G(
6659
6659
  function(n, a) {
6660
- return /* @__PURE__ */ t(me, { ref: a, ...n, chart: null });
6660
+ return /* @__PURE__ */ t(he, { ref: a, ...n, chart: null });
6661
6661
  }
6662
6662
  ),
6663
- me.Skeleton
6663
+ he.Skeleton
6664
6664
  ), ao = Z(
6665
6665
  "SummariesWidget",
6666
6666
  no
6667
- ), ro = ae(
6668
- K(
6667
+ ), ro = re(
6668
+ G(
6669
6669
  function(n, a) {
6670
6670
  return /* @__PURE__ */ t(
6671
- me,
6671
+ he,
6672
6672
  {
6673
6673
  ref: a,
6674
6674
  ...n,
6675
- chart: /* @__PURE__ */ t(Oi, { xAxis: { hide: !0 }, ...n.chart })
6675
+ chart: /* @__PURE__ */ t(Pi, { xAxis: { hide: !0 }, ...n.chart })
6676
6676
  }
6677
6677
  );
6678
6678
  }
6679
6679
  ),
6680
- me.Skeleton
6680
+ he.Skeleton
6681
6681
  ), io = Z(
6682
6682
  "VerticalBarChartWidget",
6683
6683
  ro
6684
- ), Hc = pe(
6684
+ ), Hc = be(
6685
6685
  {
6686
6686
  name: "AreaChartWidget",
6687
6687
  type: "info"
6688
6688
  },
6689
6689
  Yl
6690
- ), Gc = pe(
6690
+ ), Gc = be(
6691
6691
  {
6692
6692
  name: "BarChartWidget",
6693
6693
  type: "info"
6694
6694
  },
6695
6695
  Zl
6696
- ), Kc = pe(
6696
+ ), Kc = be(
6697
6697
  {
6698
6698
  name: "LineChartWidget",
6699
6699
  type: "info"
6700
6700
  },
6701
6701
  Ql
6702
- ), qc = pe(
6702
+ ), qc = be(
6703
6703
  {
6704
6704
  name: "PieChartWidget",
6705
6705
  type: "info"
6706
6706
  },
6707
6707
  to
6708
- ), Yc = pe(
6708
+ ), Yc = be(
6709
6709
  {
6710
6710
  name: "VerticalBarChartWidget",
6711
6711
  type: "info"
6712
6712
  },
6713
6713
  io
6714
- ), Jc = pe(
6714
+ ), Jc = be(
6715
6715
  {
6716
6716
  name: "SummariesWidget",
6717
6717
  type: "info"
@@ -6955,7 +6955,7 @@ const Tt = {
6955
6955
  ] })
6956
6956
  ]
6957
6957
  }
6958
- ), lo = K(so), oo = (e, n) => /* @__PURE__ */ o(
6958
+ ), lo = G(so), oo = (e, n) => /* @__PURE__ */ o(
6959
6959
  "svg",
6960
6960
  {
6961
6961
  width: "406",
@@ -7000,7 +7000,7 @@ const Tt = {
7000
7000
  ) })
7001
7001
  ]
7002
7002
  }
7003
- ), co = K(oo), uo = {
7003
+ ), co = G(oo), uo = {
7004
7004
  "line-chart": "border-f1-border",
7005
7005
  "bar-chart": "border-f1-border-promote"
7006
7006
  }, fo = {
@@ -7012,7 +7012,7 @@ const Tt = {
7012
7012
  }, ho = {
7013
7013
  "line-chart": "default",
7014
7014
  "bar-chart": "promote"
7015
- }, go = K(
7015
+ }, go = G(
7016
7016
  function({ title: n, content: a, buttonLabel: r, buttonIcon: i, buttonAction: s, type: l }, c) {
7017
7017
  const d = uo[l], f = fo[l], u = mo[l], m = ho[l];
7018
7018
  return /* @__PURE__ */ o(
@@ -7042,7 +7042,7 @@ const Tt = {
7042
7042
  /* @__PURE__ */ o("div", { className: "relative flex min-h-28 flex-1 flex-col items-start gap-5", children: [
7043
7043
  /* @__PURE__ */ t("p", { className: "flex w-3/4 text-xl font-semibold", children: a }),
7044
7044
  r && /* @__PURE__ */ t(
7045
- H,
7045
+ U,
7046
7046
  {
7047
7047
  label: r,
7048
7048
  icon: i,
@@ -7056,11 +7056,11 @@ const Tt = {
7056
7056
  }
7057
7057
  );
7058
7058
  }
7059
- ), Zc = le(
7059
+ ), Zc = oe(
7060
7060
  Z("ChartWidgetEmptyState", go)
7061
7061
  );
7062
7062
  function po(e, n) {
7063
- const a = W(null), r = W(null), [i, s] = E({
7063
+ const a = M(null), r = M(null), [i, s] = E({
7064
7064
  visibleItems: [],
7065
7065
  overflowItems: []
7066
7066
  });
@@ -7070,10 +7070,10 @@ function po(e, n) {
7070
7070
  f();
7071
7071
  }
7072
7072
  });
7073
- const l = ne(
7073
+ const l = ae(
7074
7074
  (u, m, h) => m < h - 1 ? u + n : u,
7075
7075
  [n]
7076
- ), c = ne(() => {
7076
+ ), c = ae(() => {
7077
7077
  if (!r.current) return [];
7078
7078
  const u = r.current.children, m = [];
7079
7079
  for (let h = 0; h < u.length; h++) {
@@ -7081,7 +7081,7 @@ function po(e, n) {
7081
7081
  m.push(g);
7082
7082
  }
7083
7083
  return m;
7084
- }, []), d = ne(
7084
+ }, []), d = ae(
7085
7085
  (u, m) => {
7086
7086
  let h = 0, g = 0;
7087
7087
  for (let p = 0; p < u.length; p++) {
@@ -7096,7 +7096,7 @@ function po(e, n) {
7096
7096
  return h;
7097
7097
  },
7098
7098
  [l]
7099
- ), f = ne(() => {
7099
+ ), f = ae(() => {
7100
7100
  if (!a.current || e.length === 0) return;
7101
7101
  const u = a.current.clientHeight, m = c(), h = d(
7102
7102
  m,
@@ -7217,14 +7217,14 @@ function Qc({
7217
7217
  children: [
7218
7218
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center", children: [
7219
7219
  /* @__PURE__ */ t("p", { className: "line-clamp-1 flex-1 text-f1-foreground-secondary", children: e }),
7220
- /* @__PURE__ */ t(V, { icon: a, size: "md", className: r })
7220
+ /* @__PURE__ */ t(W, { icon: a, size: "md", className: r })
7221
7221
  ] }),
7222
7222
  /* @__PURE__ */ t("p", { className: "line-clamp-1 flex-1 text-3xl font-semibold text-f1-foreground", children: n })
7223
7223
  ]
7224
7224
  }
7225
7225
  ) });
7226
7226
  }
7227
- const xo = K(
7227
+ const xo = G(
7228
7228
  function({ content: n, label: a, color: r, ...i }, s) {
7229
7229
  return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", ref: s, children: [
7230
7230
  /* @__PURE__ */ t("p", { className: "text-3xl font-semibold", children: n }),
@@ -7237,12 +7237,12 @@ const xo = K(
7237
7237
  children: a
7238
7238
  }
7239
7239
  ),
7240
- "icon" in i && i.icon && /* @__PURE__ */ t("span", { className: b("flex", r), children: /* @__PURE__ */ t(V, { icon: i.icon }) }),
7240
+ "icon" in i && i.icon && /* @__PURE__ */ t("span", { className: b("flex", r), children: /* @__PURE__ */ t(W, { icon: i.icon }) }),
7241
7241
  "emoji" in i && i.emoji && /* @__PURE__ */ t("span", { className: b("flex", r), children: /* @__PURE__ */ t(et, { emoji: i.emoji, size: "md" }) })
7242
7242
  ] })
7243
7243
  ] }, a);
7244
7244
  }
7245
- ), ed = K(
7245
+ ), ed = G(
7246
7246
  function({ items: n }, a) {
7247
7247
  return /* @__PURE__ */ t(
7248
7248
  "div",
@@ -7358,7 +7358,7 @@ function Nt({
7358
7358
  }, className: u, children: [
7359
7359
  /* @__PURE__ */ o("div", { className: "flex flex-1 flex-row items-start gap-1", children: [
7360
7360
  s && /* @__PURE__ */ t(
7361
- V,
7361
+ W,
7362
7362
  {
7363
7363
  icon: s,
7364
7364
  size: "md",
@@ -7367,7 +7367,7 @@ function Nt({
7367
7367
  ),
7368
7368
  /* @__PURE__ */ t("p", { className: "mt-0.5 line-clamp-2 font-medium", children: n }),
7369
7369
  l && /* @__PURE__ */ t(
7370
- V,
7370
+ W,
7371
7371
  {
7372
7372
  icon: l,
7373
7373
  size: "md",
@@ -7377,7 +7377,7 @@ function Nt({
7377
7377
  ] }),
7378
7378
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2", children: [
7379
7379
  a && /* @__PURE__ */ t(Rn, { ...a }),
7380
- r && /* @__PURE__ */ t(Pe, { ...r }),
7380
+ r && /* @__PURE__ */ t(Oe, { ...r }),
7381
7381
  !!i && /* @__PURE__ */ t(Qe, { value: i })
7382
7382
  ] })
7383
7383
  ] });
@@ -7420,18 +7420,18 @@ function ad({
7420
7420
  const No = ({ title: e, info: n }) => /* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
7421
7421
  /* @__PURE__ */ t("p", { className: "flex text-f1-foreground-secondary", children: e }),
7422
7422
  /* @__PURE__ */ t("div", { className: "max-w-32 flex-shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-right font-medium", children: n })
7423
- ] }), rd = K(
7423
+ ] }), rd = G(
7424
7424
  function({ title: n, titleValue: a, titleTooltip: r, list: i }, s) {
7425
7425
  return /* @__PURE__ */ o("div", { ref: s, className: "flex flex-col gap-2", children: [
7426
7426
  n && /* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-2 font-medium", children: [
7427
7427
  /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
7428
7428
  /* @__PURE__ */ t("div", { children: n }),
7429
7429
  r && /* @__PURE__ */ t("div", { className: "flex h-4 w-4 items-center text-f1-foreground-tertiary hover:cursor-help", children: /* @__PURE__ */ t(
7430
- we,
7430
+ Ne,
7431
7431
  {
7432
7432
  label: r.label,
7433
7433
  description: r.description,
7434
- children: /* @__PURE__ */ t(V, { icon: Bn, size: "sm" })
7434
+ children: /* @__PURE__ */ t(W, { icon: Bn, size: "sm" })
7435
7435
  }
7436
7436
  ) })
7437
7437
  ] }),
@@ -7455,7 +7455,7 @@ function id({
7455
7455
  /* @__PURE__ */ t("span", { className: "text-xl text-f1-foreground-secondary", children: n })
7456
7456
  ] }),
7457
7457
  /* @__PURE__ */ t("div", { className: "mt-2", children: /* @__PURE__ */ t(
7458
- Pi,
7458
+ Oi,
7459
7459
  {
7460
7460
  data: a,
7461
7461
  legend: i,
@@ -7633,7 +7633,7 @@ function Ao({
7633
7633
  className: "flex cursor-default flex-row items-center gap-1 rounded-xs px-1 py-0.5 hover:bg-f1-background-hover",
7634
7634
  onClick: r,
7635
7635
  children: [
7636
- a && /* @__PURE__ */ t(V, { icon: a, className: "text-f1-icon" }),
7636
+ a && /* @__PURE__ */ t(W, { icon: a, className: "text-f1-icon" }),
7637
7637
  /* @__PURE__ */ t(
7638
7638
  "span",
7639
7639
  {
@@ -7644,7 +7644,7 @@ function Ao({
7644
7644
  children: e ?? n
7645
7645
  }
7646
7646
  ),
7647
- /* @__PURE__ */ t(V, { icon: ii })
7647
+ /* @__PURE__ */ t(W, { icon: ii })
7648
7648
  ]
7649
7649
  }
7650
7650
  );
@@ -7668,48 +7668,69 @@ function sd({
7668
7668
  canSeeRemainingTime: x = !0,
7669
7669
  // onClickProjectSelector,
7670
7670
  onChangeLocationId: v,
7671
- canShowProject: N = !0,
7671
+ canShowProject: C = !0,
7672
7672
  projectSelectorElement: _,
7673
- breakTypeName: B
7673
+ locationSelectorElement: R,
7674
+ breakTypeName: D
7674
7675
  }) {
7675
- const { status: D, statusText: O, subtitle: L, statusColor: U } = Co({
7676
+ const { status: A, statusText: P, subtitle: V, statusColor: B } = Co({
7676
7677
  data: a,
7677
7678
  labels: r,
7678
7679
  trackedMinutes: e,
7679
7680
  remainingMinutes: n,
7680
7681
  canSeeRemainingTime: x
7681
- }), R = D === "clocked-out", w = m?.map(($) => ({
7682
- value: $.id,
7683
- label: $.duration ? `${$.name} · ${$.duration}` : $.name,
7684
- description: $.description,
7685
- tag: $.isPaid ? r.paid : r.unpaid
7686
- })) ?? [], [S, k] = E(!1), A = () => {
7687
- if (w.length > 1)
7688
- S || k(!0);
7682
+ }), w = A === "clocked-out", k = m?.map((K) => ({
7683
+ value: K.id,
7684
+ label: K.duration ? `${K.name} · ${K.duration}` : K.name,
7685
+ description: K.description,
7686
+ tag: K.isPaid ? r.paid : r.unpaid
7687
+ })) ?? [], [I, F] = E(!1), $ = () => {
7688
+ if (k.length > 1)
7689
+ I || F(!0);
7689
7690
  else {
7690
- const $ = w?.[0]?.value;
7691
- u?.($);
7691
+ const K = k?.[0]?.value;
7692
+ u?.(K);
7693
+ }
7694
+ }, y = (K) => {
7695
+ h?.(K), F(!1), u?.(K);
7696
+ }, S = w && s.length && !c && l, N = s.find((K) => K.id === i), O = s.map((K) => ({
7697
+ value: K.id,
7698
+ label: K.name,
7699
+ icon: K.icon
7700
+ })), ie = A === "break", [te, Q] = E(!1), xe = S ? /* @__PURE__ */ t(
7701
+ qe,
7702
+ {
7703
+ label: r.selectLocation,
7704
+ hideLabel: !0,
7705
+ value: i,
7706
+ options: O,
7707
+ onChange: v,
7708
+ open: te,
7709
+ onOpenChange: Q,
7710
+ disabled: c,
7711
+ children: /* @__PURE__ */ t("div", { "aria-label": "Select location", children: /* @__PURE__ */ t(
7712
+ Ao,
7713
+ {
7714
+ text: N?.name,
7715
+ placeholder: r.selectLocation,
7716
+ icon: N?.icon
7717
+ }
7718
+ ) })
7692
7719
  }
7693
- }, M = ($) => {
7694
- h?.($), k(!1), u?.($);
7695
- }, y = R && s.length && !c && l, C = s.find(($) => $.id === i), I = s.map(($) => ({
7696
- value: $.id,
7697
- label: $.name,
7698
- icon: $.icon
7699
- })), P = D === "break", [re, te] = E(!1);
7720
+ ) : N ? /* @__PURE__ */ t(Oe, { text: N.name, icon: N.icon }) : null;
7700
7721
  return /* @__PURE__ */ t("div", { className: "@container", children: /* @__PURE__ */ o("div", { className: "flex-grow flex-col", children: [
7701
7722
  /* @__PURE__ */ o("div", { className: "flex flex-col-reverse items-center gap-2 @xs:flex-row", children: [
7702
7723
  /* @__PURE__ */ o("div", { className: "flex-1 space-y-4", children: [
7703
7724
  /* @__PURE__ */ o("div", { className: "flex flex-col items-center space-y-0.5 @xs:items-start", children: [
7704
7725
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
7705
- /* @__PURE__ */ t("span", { className: "line-clamp-1 text-2xl font-semibold text-f1-foreground", children: O }),
7726
+ /* @__PURE__ */ t("span", { className: "line-clamp-1 text-2xl font-semibold text-f1-foreground", children: P }),
7706
7727
  /* @__PURE__ */ o("div", { className: "relative aspect-square h-4", children: [
7707
7728
  /* @__PURE__ */ t(
7708
7729
  Y.div,
7709
7730
  {
7710
7731
  className: "absolute inset-0 rounded-full opacity-20",
7711
7732
  style: {
7712
- backgroundColor: U
7733
+ backgroundColor: B
7713
7734
  },
7714
7735
  initial: { scale: 0.5, opacity: 0.6 },
7715
7736
  animate: { scale: 1.6, opacity: 0 },
@@ -7725,77 +7746,77 @@ function sd({
7725
7746
  {
7726
7747
  className: "absolute inset-[3px] rounded-full",
7727
7748
  style: {
7728
- backgroundColor: U
7749
+ backgroundColor: B
7729
7750
  }
7730
7751
  }
7731
7752
  )
7732
7753
  ] })
7733
7754
  ] }),
7734
- L && /* @__PURE__ */ t("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: L })
7755
+ V && /* @__PURE__ */ t("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: V })
7735
7756
  ] }),
7736
7757
  /* @__PURE__ */ o("div", { className: "flex justify-center gap-2 @xs:justify-start", children: [
7737
- D === "clocked-out" && /* @__PURE__ */ t("div", { className: "mr-3 @xs:mr-0", children: /* @__PURE__ */ t(
7738
- H,
7758
+ A === "clocked-out" && /* @__PURE__ */ t("div", { className: "mr-3 @xs:mr-0", children: /* @__PURE__ */ t(
7759
+ U,
7739
7760
  {
7740
7761
  onClick: d,
7741
7762
  label: r.clockIn,
7742
7763
  icon: $t
7743
7764
  }
7744
7765
  ) }),
7745
- D === "clocked-in" && /* @__PURE__ */ o(X, { children: [
7746
- g && /* @__PURE__ */ t(X, { children: w.length > 1 && h ? /* @__PURE__ */ t(
7766
+ A === "clocked-in" && /* @__PURE__ */ o(ne, { children: [
7767
+ g && /* @__PURE__ */ t(ne, { children: k.length > 1 && h ? /* @__PURE__ */ t(
7747
7768
  qe,
7748
7769
  {
7749
7770
  label: r.break,
7750
7771
  hideLabel: !0,
7751
7772
  value: "",
7752
- options: w,
7753
- onChange: M,
7754
- open: S,
7755
- onOpenChange: k,
7773
+ options: k,
7774
+ onChange: y,
7775
+ open: I,
7776
+ onOpenChange: F,
7756
7777
  children: /* @__PURE__ */ t("div", { "aria-label": "Select break type", children: /* @__PURE__ */ t(
7757
- H,
7778
+ U,
7758
7779
  {
7759
7780
  label: r.break,
7760
7781
  variant: "neutral",
7761
- icon: Mt,
7782
+ icon: jt,
7762
7783
  hideLabel: !0
7763
7784
  }
7764
7785
  ) })
7765
7786
  }
7766
7787
  ) : /* @__PURE__ */ t(
7767
- H,
7788
+ U,
7768
7789
  {
7769
- onClick: A,
7790
+ onClick: $,
7770
7791
  label: r.break,
7771
7792
  variant: "neutral",
7772
- icon: Mt,
7793
+ icon: jt,
7773
7794
  hideLabel: !0
7774
7795
  }
7775
7796
  ) }),
7776
7797
  /* @__PURE__ */ t(
7777
- H,
7798
+ U,
7778
7799
  {
7779
7800
  onClick: f,
7780
7801
  label: r.clockOut,
7781
7802
  variant: "neutral",
7782
- icon: jt
7803
+ icon: Mt
7783
7804
  }
7784
7805
  )
7785
7806
  ] }),
7786
- D === "break" && /* @__PURE__ */ o(X, { children: [
7807
+ A === "break" && /* @__PURE__ */ o(ne, { children: [
7787
7808
  /* @__PURE__ */ t(
7788
- H,
7809
+ U,
7789
7810
  {
7790
7811
  onClick: f,
7791
7812
  label: r.clockOut,
7792
7813
  variant: "neutral",
7793
- icon: jt,
7814
+ icon: Mt,
7794
7815
  hideLabel: !0
7795
7816
  }
7796
7817
  ),
7797
7818
  /* @__PURE__ */ t(
7798
- H,
7819
+ U,
7799
7820
  {
7800
7821
  onClick: d,
7801
7822
  label: r.resume,
@@ -7814,46 +7835,23 @@ function sd({
7814
7835
  }
7815
7836
  )
7816
7837
  ] }),
7817
- /* @__PURE__ */ t("div", { className: "mt-6 flex flex-row flex-wrap items-center justify-center gap-2 @xs:justify-start", children: y ? /* @__PURE__ */ o(X, { children: [
7818
- /* @__PURE__ */ t(
7819
- qe,
7820
- {
7821
- label: r.selectLocation,
7822
- hideLabel: !0,
7823
- value: i,
7824
- options: I,
7825
- onChange: v,
7826
- open: re,
7827
- onOpenChange: te,
7828
- disabled: c,
7829
- children: /* @__PURE__ */ t("div", { "aria-label": "Select location", children: /* @__PURE__ */ t(
7830
- Ao,
7831
- {
7832
- text: C?.name,
7833
- placeholder: r.selectLocation,
7834
- icon: C?.icon
7835
- }
7836
- ) })
7837
- }
7838
- ),
7839
- N && _
7840
- ] }) : /* @__PURE__ */ o(X, { children: [
7841
- l && C && /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(Pe, { text: C.name, icon: C.icon }) }),
7842
- N && _,
7843
- P && B && /* @__PURE__ */ t(Pe, { text: B })
7844
- ] }) })
7838
+ /* @__PURE__ */ o("div", { className: "mt-6 flex flex-row flex-wrap items-center justify-center gap-2 @xs:justify-start", children: [
7839
+ l && (R ?? xe),
7840
+ C && _,
7841
+ ie && D && /* @__PURE__ */ t(Oe, { text: D })
7842
+ ] })
7845
7843
  ] }) });
7846
7844
  }
7847
7845
  const Lo = {
7848
7846
  done: oi,
7849
7847
  "in-progress": li,
7850
7848
  todo: si
7851
- }, Oo = {
7849
+ }, Po = {
7852
7850
  done: "text-f1-icon-success",
7853
7851
  "in-progress": "text-f1-icon-info",
7854
7852
  todo: "text-f1-icon"
7855
7853
  };
7856
- function Po({
7854
+ function Oo({
7857
7855
  task: e,
7858
7856
  status: n,
7859
7857
  onClick: a,
@@ -7861,7 +7859,7 @@ function Po({
7861
7859
  }) {
7862
7860
  const i = () => {
7863
7861
  a?.(e);
7864
- }, s = G(() => {
7862
+ }, s = H(() => {
7865
7863
  if (!r)
7866
7864
  return Lo[n];
7867
7865
  }, [n, r]);
@@ -7871,7 +7869,7 @@ function Po({
7871
7869
  id: e.id,
7872
7870
  title: e.text,
7873
7871
  icon: s,
7874
- iconClassName: Oo[n],
7872
+ iconClassName: Po[n],
7875
7873
  alert: e.badge?.isPastDue ? {
7876
7874
  text: e.badge.text,
7877
7875
  level: "critical"
@@ -7911,7 +7909,7 @@ function ld({
7911
7909
  }))
7912
7910
  ), c = !l.length;
7913
7911
  return /* @__PURE__ */ t("div", { className: "flex flex-col gap-0", children: c ? /* @__PURE__ */ t("p", { className: "pl-2 font-medium", children: i }) : l.slice(0, r).map((d) => /* @__PURE__ */ t(
7914
- Po,
7912
+ Oo,
7915
7913
  {
7916
7914
  task: d,
7917
7915
  status: d.status,
@@ -7921,7 +7919,7 @@ function ld({
7921
7919
  d.id
7922
7920
  )) });
7923
7921
  }
7924
- var Eo = Object.defineProperty, _o = Object.defineProperties, Do = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, xa = Object.prototype.hasOwnProperty, va = Object.prototype.propertyIsEnumerable, mn = (e, n, a) => n in e ? Eo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a, fe = (e, n) => {
7922
+ var Eo = Object.defineProperty, _o = Object.defineProperties, Do = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, xa = Object.prototype.hasOwnProperty, va = Object.prototype.propertyIsEnumerable, mn = (e, n, a) => n in e ? Eo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a, me = (e, n) => {
7925
7923
  for (var a in n || (n = {})) xa.call(n, a) && mn(e, a, n[a]);
7926
7924
  if (Ze) for (var a of Ze(n)) va.call(n, a) && mn(e, a, n[a]);
7927
7925
  return e;
@@ -7933,22 +7931,22 @@ var Eo = Object.defineProperty, _o = Object.defineProperties, Do = Object.getOwn
7933
7931
  }, zo = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, Bo = ({ spotsList: e, usedSpot: n }) => e.some((a) => a !== n && n.left === a.left), Ro = ({ position: e, spot: n, stone: a }) => {
7934
7932
  if (e.left > n.left && n.right >= e.left && e.top + a.height > n.top) {
7935
7933
  if (n.bottom && n.bottom < e.top) return n;
7936
- let r = fe({}, n);
7934
+ let r = me({}, n);
7937
7935
  return r.right = e.left, r;
7938
7936
  }
7939
7937
  return null;
7940
7938
  }, $o = ({ position: e, stone: n, spot: a }) => {
7941
7939
  if (e.left + n.width > a.left && e.top >= a.top) {
7942
7940
  if (a.bottom && a.bottom < e.top || a.right < e.left) return a;
7943
- let r = fe({}, a);
7941
+ let r = me({}, a);
7944
7942
  return r.bottom = e.top, r;
7945
7943
  }
7946
7944
  return null;
7947
- }, Mo = ({ stone: e, position: n, spotsList: a, optimalSpot: r }) => {
7948
- let i = fe({}, r);
7945
+ }, jo = ({ stone: e, position: n, spotsList: a, optimalSpot: r }) => {
7946
+ let i = me({}, r);
7949
7947
  return i.left = n.left + e.width, zo(i) || Bo({ usedSpot: i, spotsList: a }) ? null : i;
7950
- }, jo = ({ spots: e, position: n, optimalSpot: a, stone: r }) => e.map((i, s, l) => {
7951
- if (i === a) return Mo({ stone: r, position: n, optimalSpot: a, spotsList: l });
7948
+ }, Mo = ({ spots: e, position: n, optimalSpot: a, stone: r }) => e.map((i, s, l) => {
7949
+ if (i === a) return jo({ stone: r, position: n, optimalSpot: a, spotsList: l });
7952
7950
  let c = Ro({ position: n, spot: i, stone: r });
7953
7951
  return c || $o({ position: n, stone: r, spot: i }) || i;
7954
7952
  });
@@ -7977,7 +7975,7 @@ var Vo = (e, n) => n.filter(e), Uo = (e, n) => [...n].sort(e), Ho = (e, n) => e.
7977
7975
  return a && r;
7978
7976
  }, Yo = ({ availableSpots: e, stone: n }) => Wo((a) => qo(a, n), e);
7979
7977
  function Jo({ stone: e, availableSpots: n, containerSize: a }) {
7980
- let r = Yo({ availableSpots: n, stone: e }), i = { left: r.left, top: r.top }, s = Ko({ optimalSpot: r, availableSpots: n.filter((d) => d !== r), stone: e, containerSize: a }), l = [...n, s], c = jo({ spots: l, position: i, optimalSpot: r, stone: e });
7978
+ let r = Yo({ availableSpots: n, stone: e }), i = { left: r.left, top: r.top }, s = Ko({ optimalSpot: r, availableSpots: n.filter((d) => d !== r), stone: e, containerSize: a }), l = [...n, s], c = Mo({ spots: l, position: i, optimalSpot: r, stone: e });
7981
7979
  return l = [...Vo(Boolean, c)], l = Go(l), { position: i, availableSpots: l };
7982
7980
  }
7983
7981
  var Zo = ({ stones: e, containerSize: n }) => {
@@ -8000,7 +7998,7 @@ var Zo = ({ stones: e, containerSize: n }) => {
8000
7998
  let h = Xo(e.current), g = (m = (u = n.current) == null ? void 0 : u.offsetWidth) != null ? m : 0;
8001
7999
  if (g === null) return;
8002
8000
  let p = Zo({ stones: h, containerSize: g });
8003
- f(it(fe({}, p), { stones: h }));
8001
+ f(it(me({}, p), { stones: h }));
8004
8002
  }, [a, e, n, r, i]), { positions: s, containerHeight: l, stones: c, availableSpots: d };
8005
8003
  }, ec = (e) => ({ fade: `${e}ms opacity ease`, fadeMove: `
8006
8004
  ${e}ms opacity ease,
@@ -8009,7 +8007,7 @@ var Zo = ({ stones: e, containerSize: n }) => {
8009
8007
  `, move: `
8010
8008
  ${e}ms top ease,
8011
8009
  ${e}ms left ease
8012
- ` }), tc = ({ transition: e, transitionDuration: n }) => e ? { transition: ec(n)[e] } : null, nc = (e) => e ? it(fe({}, e), { opacity: 1 }) : { opacity: 0, top: 0, left: 0 }, ac = ({ style: e, position: n, transition: a, transitionDuration: r }) => fe(fe(it(fe({}, e), { position: "absolute" }), nc(n)), tc({ transition: a, transitionDuration: r }));
8010
+ ` }), tc = ({ transition: e, transitionDuration: n }) => e ? { transition: ec(n)[e] } : null, nc = (e) => e ? it(me({}, e), { opacity: 1 }) : { opacity: 0, top: 0, left: 0 }, ac = ({ style: e, position: n, transition: a, transitionDuration: r }) => me(me(it(me({}, e), { position: "absolute" }), nc(n)), tc({ transition: a, transitionDuration: r }));
8013
8011
  function rc(e, n, a) {
8014
8012
  let r;
8015
8013
  return function(...i) {
@@ -8019,7 +8017,7 @@ function rc(e, n, a) {
8019
8017
  };
8020
8018
  }
8021
8019
  var ic = () => {
8022
- let [e, n] = E(), a = W(rc(n, 300));
8020
+ let [e, n] = E(), a = M(rc(n, 300));
8023
8021
  return j(() => {
8024
8022
  let r = () => {
8025
8023
  a.current(window.innerWidth);
@@ -8040,16 +8038,16 @@ var ic = () => {
8040
8038
  }, [e]), n;
8041
8039
  }, lc = (e) => {
8042
8040
  var n = e, { children: a, style: r, transition: i = !1, transitionDuration: s = 500, transitionStep: l = 50 } = n, c = To(n, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
8043
- let d = W([]), f = W(null), u = ic(), m = sc(f), { positions: h, containerHeight: g } = Qo({ boxesRefs: d, wrapperRef: f, children: a, windowWidth: u, wrapperWidth: m }), p = fe({ minHeight: g ?? 0, position: "relative" }, r);
8044
- return t("div", it(fe({ ref: f, style: p }, c), { children: Wn.map(a, (x, v) => {
8041
+ let d = M([]), f = M(null), u = ic(), m = sc(f), { positions: h, containerHeight: g } = Qo({ boxesRefs: d, wrapperRef: f, children: a, windowWidth: u, wrapperWidth: m }), p = me({ minHeight: g ?? 0, position: "relative" }, r);
8042
+ return t("div", it(me({ ref: f, style: p }, c), { children: Wn.map(a, (x, v) => {
8045
8043
  if (typeof x != "object" || !x || !("type" in x)) return x;
8046
- let N = { style: ac({ style: x.props.style, position: h[v], transition: i, transitionDuration: s }), ref: (_) => d.current[v] = _ };
8047
- return jn(x, fe(fe({}, x.props), N));
8044
+ let C = { style: ac({ style: x.props.style, position: h[v], transition: i, transitionDuration: s }), ref: (_) => d.current[v] = _ };
8045
+ return Mn(x, me(me({}, x.props), C));
8048
8046
  }) }));
8049
8047
  };
8050
- const oc = { sm: 340, md: 480, lg: 640 }, hn = K(
8048
+ const oc = { sm: 340, md: 480, lg: 640 }, hn = G(
8051
8049
  function({ children: n, widgetWidth: a = "sm" }, r) {
8052
- const i = oc[a], [s, l] = E(), c = Wn.toArray(n), d = W(null);
8050
+ const i = oc[a], [s, l] = E(), c = Wn.toArray(n), d = M(null);
8053
8051
  return j(() => {
8054
8052
  const f = () => {
8055
8053
  const u = d.current?.offsetWidth;
@@ -8070,8 +8068,8 @@ const oc = { sm: 340, md: 480, lg: 640 }, hn = K(
8070
8068
  u
8071
8069
  )) }, s) }) }) });
8072
8070
  }
8073
- ), cc = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], od = ae(hn, () => /* @__PURE__ */ t($n, { children: /* @__PURE__ */ t(hn, { children: cc.map((e, n) => /* @__PURE__ */ t(Le.Skeleton, { height: e }, n)) }) })), gn = ({ children: e }) => /* @__PURE__ */ t("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: e }), cd = ae(
8074
- K(function({ children: n }, a) {
8071
+ ), cc = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], od = re(hn, () => /* @__PURE__ */ t($n, { children: /* @__PURE__ */ t(hn, { children: cc.map((e, n) => /* @__PURE__ */ t(Le.Skeleton, { height: e }, n)) }) })), gn = ({ children: e }) => /* @__PURE__ */ t("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: e }), cd = re(
8072
+ G(function({ children: n }, a) {
8075
8073
  return /* @__PURE__ */ t(Xe, { ref: a, showBar: !1, children: /* @__PURE__ */ t(gn, { children: n }) });
8076
8074
  }),
8077
8075
  () => /* @__PURE__ */ t($n, { orientation: "horizontal", children: /* @__PURE__ */ o(gn, { children: [
@@ -8100,9 +8098,9 @@ function dc({
8100
8098
  }
8101
8099
  );
8102
8100
  }
8103
- const dd = le(
8101
+ const dd = oe(
8104
8102
  Z("WidgetEmptyState", dc)
8105
- ), ya = K(
8103
+ ), ya = G(
8106
8104
  ({ title: e, children: n }, a) => (di(
8107
8105
  e,
8108
8106
  { disallowEmpty: !0 },
@@ -8113,7 +8111,7 @@ const dd = le(
8113
8111
  ] }))
8114
8112
  );
8115
8113
  ya.displayName = "WidgetSection";
8116
- const ud = le(
8114
+ const ud = oe(
8117
8115
  Z("WidgetSection", ya)
8118
8116
  ), fd = ({
8119
8117
  identifier: e,
@@ -8121,13 +8119,13 @@ const ud = le(
8121
8119
  disallowedRoutes: a,
8122
8120
  children: r
8123
8121
  }) => {
8124
- const i = ui(), s = window.location.pathname, l = G(() => n?.length ? n.includes(s) : a?.length ? !a.includes(s) : !0, [s, n, a]), c = G(() => {
8122
+ const i = ui(), s = window.location.pathname, l = H(() => n?.length ? n.includes(s) : a?.length ? !a.includes(s) : !0, [s, n, a]), c = H(() => {
8125
8123
  let d = `The component ${e} is not allowed to be rendered in the current route.`;
8126
8124
  return n && n.length > 0 && (d += ` Allowed routes: ${n.join(", ")}`), a && a.length > 0 && (d += ` Disallowed routes: ${a.join(", ")}`), d;
8127
8125
  }, [e, n, a]);
8128
8126
  return l ? r : (i && console.error(c), null);
8129
- }, md = le(
8130
- pe(
8127
+ }, md = oe(
8128
+ be(
8131
8129
  {
8132
8130
  name: "ScrollArea",
8133
8131
  type: "layout"
@@ -8149,11 +8147,11 @@ export {
8149
8147
  Gc as BarChartWidget,
8150
8148
  Ts as BaseActivityItemList,
8151
8149
  Yd as BaseBanner,
8152
- js as BaseCelebration,
8150
+ Ms as BaseCelebration,
8153
8151
  Zs as BaseCommunityPost,
8154
8152
  pd as BaseTabs,
8155
8153
  bd as BreadcrumbSelect,
8156
- Mi as Breadcrumbs,
8154
+ ji as Breadcrumbs,
8157
8155
  wt as CalendarEvent,
8158
8156
  Xc as CalendarEventList,
8159
8157
  Jd as CardSelectableContainer,
@@ -8175,7 +8173,7 @@ export {
8175
8173
  vd as DetailsItem,
8176
8174
  yd as DetailsItemsList,
8177
8175
  Qd as Dialog,
8178
- Oe as Dropdown,
8176
+ Pe as Dropdown,
8179
8177
  wc as EntitySelect,
8180
8178
  eu as F0ActionBar,
8181
8179
  tu as F0AiBanner,
@@ -8212,7 +8210,7 @@ export {
8212
8210
  pu as NotesTextEditorSkeleton,
8213
8211
  bu as NumberInput,
8214
8212
  Lc as OmniButton,
8215
- Mc as OneApprovalHistory,
8213
+ jc as OneApprovalHistory,
8216
8214
  Ad as OneCalendar,
8217
8215
  Ld as OneCalendarInternal,
8218
8216
  xu as OneDataCollection,
@@ -8221,9 +8219,9 @@ export {
8221
8219
  yu as OnePagination,
8222
8220
  Sc as OnePersonListItem,
8223
8221
  fd as OneRestrictComponent,
8224
- Oc as Page,
8222
+ Pc as Page,
8225
8223
  bc as PageHeader,
8226
- Pt as PageHeaderNavigationContext,
8224
+ Ot as PageHeaderNavigationContext,
8227
8225
  gc as PageHeaderNavigationProvider,
8228
8226
  Ga as PageNavigation,
8229
8227
  wu as PieChart,
@@ -8233,7 +8231,7 @@ export {
8233
8231
  Cu as RadarChart,
8234
8232
  Hs as Reactions,
8235
8233
  ku as ResourceHeader,
8236
- Od as RichTextDisplay,
8234
+ Pd as RichTextDisplay,
8237
8235
  Iu as RichTextEditor,
8238
8236
  md as ScrollArea,
8239
8237
  Bc as SearchBar,
@@ -8243,7 +8241,7 @@ export {
8243
8241
  Rc as Sidebar,
8244
8242
  hl as SidebarChatItem,
8245
8243
  _c as SidebarChatList,
8246
- Pc as SidebarChatProvider,
8244
+ Oc as SidebarChatProvider,
8247
8245
  _t as SidebarCollapsibleSection,
8248
8246
  Dc as SidebarFooter,
8249
8247
  Tc as SidebarHeader,
@@ -8252,14 +8250,14 @@ export {
8252
8250
  Vc as Split,
8253
8251
  Wc as Stack,
8254
8252
  Jc as SummariesWidget,
8255
- Pd as Switch,
8253
+ Od as Switch,
8256
8254
  Ed as Tabs,
8257
8255
  _d as TabsSkeleton,
8258
8256
  ld as TasksList,
8259
8257
  Fu as Textarea,
8260
8258
  Dd as ToggleGroup,
8261
8259
  Td as ToggleGroupItem,
8262
- we as Tooltip,
8260
+ Ne as Tooltip,
8263
8261
  rd as TwoColumnsList,
8264
8262
  Au as UPLOAD_INPUT_ID,
8265
8263
  Lu as VerticalBarChart,
@@ -8277,15 +8275,15 @@ export {
8277
8275
  ad as WidgetSimpleList,
8278
8276
  Nt as WidgetSimpleListItem,
8279
8277
  cd as WidgetStrip,
8280
- Ou as actionBarStatuses,
8281
- Pu as buttonToggleSizes,
8278
+ Pu as actionBarStatuses,
8279
+ Ou as buttonToggleSizes,
8282
8280
  Eu as buttonToggleVariants,
8283
8281
  Rd as chipVariants,
8284
8282
  _u as downloadAsCSV,
8285
8283
  $d as f0FileItemSizes,
8286
8284
  Du as generateCSVContent,
8287
- Md as getGranularityDefinition,
8288
- jd as getGranularityDefinitions,
8285
+ jd as getGranularityDefinition,
8286
+ Md as getGranularityDefinitions,
8289
8287
  Wd as getGranularitySimpleDefinition,
8290
8288
  Vd as granularityDefinitions,
8291
8289
  Ud as modules,
@@ -8295,7 +8293,7 @@ export {
8295
8293
  zu as selectSizes,
8296
8294
  tt as useAiPromotionChat,
8297
8295
  Bu as useDataCollectionData,
8298
- jc as useDataCollectionItemNavigation,
8296
+ Mc as useDataCollectionItemNavigation,
8299
8297
  wi as useDataCollectionSource,
8300
8298
  Ru as useExportAction,
8301
8299
  $u as useInfiniteScrollPagination,