@factorialco/f0-react 1.452.0 → 1.453.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,9 +1,9 @@
1
- import { a6 as oa, a7 as ca, a8 as da, a9 as ua, aa as Ft, ab as Te, ac as fa, ad as ht, ae as rt, af as Be, L as b, R as Z, M as be, u as se, ag as ma, ah as ha, ai as pa, aj as ba, ak as ga, a2 as oe, al as xa, Q as Ee, am as va, an as wa, ao as $, ap as ya, aq as Na, J as _e, ar as ln, as as Ca, at as ka, N as B, au as sn, a5 as E, av as ge, aw as Sa, ax as Ia, ay as Fa, az as Aa, aA as La, aB as Ce, aC as on, aD as Ea, aE as xe, aF as $e, aG as _a, aH as pt, k as cn, aI as Ne, aJ as Oa, aK as dn, a3 as ne, aL as H, O as un, aM as fn, aN as Ta, aO as mn, aP as me, a4 as ee, aQ as Da, aR as za, aS as Pa, aT as Ra, T as pe, aU as Ge, aV as Ba, aW as $a, aX as Wa, aY as Ma, aZ as He, a_ as hn, a$ as ja, b0 as Va, b1 as Ga, b2 as We, b3 as Ha, b4 as Ua, b5 as Ka, b6 as qa, b7 as Ya, b8 as Za, b9 as Xa, ba as Ja, bb as Qa, bc as er, bd as lt, be as it, bf as pn, bg as tr, bh as nr, bi as bn, bj as ar, bk as rr, P as Ue, bl as bt, bm as gn, bn as lr, bo as xn, bp as ir, bq as sr, br as or, bs as Le, bt as cr, bu as De, bv as At, bw as st, bx as dr, by as ur, a as fr, c as mr, bz as hr, bA as vn, bB as pr, bC as br, F as gr, bD as wn, X as xr, bE as yn, bF as vr, bG as Lt, bH as wr, bI as yr, bJ as Nr, bK as Cr, bL as Nn, bM as kr, bN as Sr, bO as Ir, bP as Fr, bQ as Ar, U as Cn, bR as ue, bS as gt, bT as xt, bU as vt, bV as kn, bW as wt, bX as Sn, Y as In, bY as Lr, bZ as Er, b_ as _r, b$ as Or, c0 as Tr, c1 as Dr, c2 as zr, c3 as Pr, c4 as Rr, c5 as Br, c6 as $r, c7 as Et, c8 as _t, c9 as Ot, ca as Wr, cb as Mr, cc as jr, cd as Vr, ce as Fn, cf as Gr, cg as Hr, ch as Ur } from "./F0AiChat-Cj0SpVLR.js";
2
- import { cB as Ac, cA as Lc, ck as Ec, cN as _c, cu as Oc, cv as Tc, cj as Dc, cx as zc, cl as Pc, cZ as Rc, cX as Bc, cm as $c, cy as Wc, cz as Mc, cw as jc, cn as Vc, cJ as Gc, cK as Hc, cO as Uc, cV as Kc, cW as qc, cY as Yc, ct as Zc, co as Xc, cD as Jc, cC as Qc, cp as ed, cq as td, cr as nd, cL as ad, c_ as rd, ci as ld, cM as id, cQ as sd, cR as od, cI as cd, cF as dd, cH as ud, cE as fd, cs as md, cG as hd, cS as pd, cT as bd, cP as gd, cU as xd } from "./F0AiChat-Cj0SpVLR.js";
1
+ import { a6 as oa, a7 as ca, a8 as da, a9 as ua, aa as Ft, ab as Te, ac as fa, ad as ht, ae as rt, af as Be, L as b, R as Z, M as be, u as se, ag as ma, ah as ha, ai as pa, aj as ba, ak as ga, a2 as oe, al as xa, Q as Ee, am as va, an as wa, ao as $, ap as ya, aq as Na, J as _e, ar as ln, as as Ca, at as ka, N as B, au as sn, a5 as E, av as ge, aw as Sa, ax as Ia, ay as Fa, az as Aa, aA as La, aB as Ce, aC as on, aD as Ea, aE as xe, aF as $e, aG as _a, aH as pt, k as cn, aI as Ne, aJ as Oa, aK as dn, a3 as ne, aL as H, O as un, aM as fn, aN as Ta, aO as mn, aP as me, a4 as ee, aQ as Da, aR as Pa, aS as za, aT as Ra, T as pe, aU as Ge, aV as Ba, aW as $a, aX as Wa, aY as Ma, aZ as He, a_ as hn, a$ as ja, b0 as Va, b1 as Ga, b2 as We, b3 as Ha, b4 as Ua, b5 as Ka, b6 as qa, b7 as Ya, b8 as Za, b9 as Xa, ba as Ja, bb as Qa, bc as er, bd as lt, be as it, bf as pn, bg as tr, bh as nr, bi as bn, bj as ar, bk as rr, P as Ue, bl as bt, bm as gn, bn as lr, bo as xn, bp as ir, bq as sr, br as or, bs as Le, bt as cr, bu as De, bv as At, bw as st, bx as dr, by as ur, a as fr, c as mr, bz as hr, bA as vn, bB as pr, bC as br, F as gr, bD as wn, X as xr, bE as yn, bF as vr, bG as Lt, bH as wr, bI as yr, bJ as Nr, bK as Cr, bL as Nn, bM as kr, bN as Sr, bO as Ir, bP as Fr, bQ as Ar, U as Cn, bR as ue, bS as kn, bT as gt, bU as xt, bV as vt, bW as Sn, bX as wt, bY as In, Y as Fn, bZ as Lr, b_ as Er, b$ as _r, c0 as Or, c1 as Tr, c2 as Dr, c3 as Pr, c4 as zr, c5 as Rr, c6 as Br, c7 as $r, c8 as Et, c9 as _t, ca as Ot, cb as Wr, cc as Mr, cd as jr, ce as Vr, cf as An, cg as Gr, ch as Hr, ci as Ur } from "./F0AiChat-CLTpMqnb.js";
2
+ import { cC as Ac, cB as Lc, cl as Ec, cO as _c, cv as Oc, cw as Tc, ck as Dc, cy as Pc, cm as zc, c_ as Rc, cY as Bc, cn as $c, cz as Wc, cA as Mc, cx as jc, co as Vc, cK as Gc, cL as Hc, cP as Uc, cW as Kc, cX as qc, cZ as Yc, cu as Zc, cp as Xc, cE as Jc, cD as Qc, cq as ed, cr as td, cs as nd, cM as ad, c$ as rd, cj as ld, cN as id, cR as sd, cS as od, cJ as cd, cG as dd, cI as ud, cF as fd, ct as md, cH as hd, cT as pd, cU as bd, cQ as gd, cV as xd } from "./F0AiChat-CLTpMqnb.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
- import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as An, useContext as Ke, createContext as yt, useCallback as Q, useMemo as K, useEffect as W, useId as qr, Fragment as Yr, isValidElement as Zr, cloneElement as Ln, Children as En } from "react";
5
- import { C as Xr, P as Jr, g as _n, c as Qr, F as ot, f as el, a as tl, u as On, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-DGFR7gs4.js";
6
- import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, x as Ad, y as Ld, N as Ed, z as _d, p as Od, r as Td, R as Dd, v as zd, q as Pd, _ as Rd, w as Bd, t as $d } from "./index-DGFR7gs4.js";
4
+ import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as Ln, useContext as Ke, createContext as yt, useCallback as Q, useMemo as K, useEffect as W, useId as qr, Fragment as Yr, isValidElement as Zr, cloneElement as En, Children as _n } from "react";
5
+ import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-C87rXop2.js";
6
+ import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as Pd, q as zd, _ as Rd, v as Bd, t as $d } from "./index-C87rXop2.js";
7
7
  const dl = oa("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
@@ -84,7 +84,7 @@ function hl(t, n, a = []) {
84
84
  }
85
85
  function pl({ breadcrumbs: t, append: n }) {
86
86
  const a = V(null), r = V(null), [, l] = Kr(), [i, s] = _(null), c = (i?.collapsedItems || []).length > 0;
87
- return An(() => {
87
+ return Ln(() => {
88
88
  const d = a.current, f = r.current;
89
89
  if (!d || !f || f.children.length < t.length) return;
90
90
  const u = () => {
@@ -172,7 +172,7 @@ function pl({ breadcrumbs: t, append: n }) {
172
172
  `breadcrumb-${t.at(-1)?.id ?? 0}`
173
173
  );
174
174
  }
175
- const zt = "one_sidebar_locked", Dn = yt(void 0);
175
+ const Pt = "one_sidebar_locked", Dn = yt(void 0);
176
176
  function ke() {
177
177
  const t = Ke(Dn);
178
178
  return t === void 0 ? {
@@ -190,7 +190,7 @@ function bl({ children: t }) {
190
190
  const { currentPath: n } = ht(), [a, r] = _(!1), [l, i] = _(!1), s = a ? Be.xl : Be.md, c = rt(`(max-width: ${s}px)`, {
191
191
  initializeWithValue: !0
192
192
  }), [d, f] = _(() => {
193
- const A = localStorage.getItem(zt);
193
+ const A = localStorage.getItem(Pt);
194
194
  return A !== null ? !!A : !0;
195
195
  }), [u, m] = _(!1), [h, g] = _(
196
196
  null
@@ -210,7 +210,7 @@ function bl({ children: t }) {
210
210
  return W(() => {
211
211
  m(!1);
212
212
  }, [n]), W(() => {
213
- l && localStorage.setItem(zt, d ? "1" : "");
213
+ l && localStorage.setItem(Pt, d ? "1" : "");
214
214
  }, [d, l]), W(() => () => {
215
215
  g(w);
216
216
  }, [w]), /* @__PURE__ */ e(
@@ -237,7 +237,7 @@ const gl = be({
237
237
  }
238
238
  },
239
239
  defaultVariants: { size: "md" }
240
- }), Pt = [
240
+ }), zt = [
241
241
  {
242
242
  id: "bottom",
243
243
  delay: 2.6,
@@ -317,9 +317,9 @@ const gl = be({
317
317
  children: [
318
318
  /* @__PURE__ */ o("defs", { children: [
319
319
  /* @__PURE__ */ e("clipPath", { id: `${s}-circle`, children: /* @__PURE__ */ e("circle", { cx: "16", cy: "16", r: "16" }) }),
320
- Pt.map((p) => /* @__PURE__ */ e("clipPath", { id: `${s}-${p.id}`, children: /* @__PURE__ */ e("path", { d: p.path }) }, p.id))
320
+ zt.map((p) => /* @__PURE__ */ e("clipPath", { id: `${s}-${p.id}`, children: /* @__PURE__ */ e("path", { d: p.path }) }, p.id))
321
321
  ] }),
322
- /* @__PURE__ */ e("g", { clipPath: `url(#${s}-circle)`, children: Pt.map((p) => /* @__PURE__ */ e(
322
+ /* @__PURE__ */ e("g", { clipPath: `url(#${s}-circle)`, children: zt.map((p) => /* @__PURE__ */ e(
323
323
  Z.foreignObject,
324
324
  {
325
325
  x: "0",
@@ -386,7 +386,7 @@ const gl = be({
386
386
  )
387
387
  }
388
388
  );
389
- }, zn = j(xl), Pn = yt(null), vl = 15, wl = ({ children: t, enabled: n, onShow: a, ...r }) => {
389
+ }, Pn = j(xl), zn = yt(null), vl = 15, wl = ({ children: t, enabled: n, onShow: a, ...r }) => {
390
390
  const [l, i] = _(n), [s, c] = _(!1), [d, f] = _(!0), [u, m] = _(
391
391
  vl
392
392
  ), h = V(null), g = (x) => {
@@ -404,7 +404,7 @@ const gl = be({
404
404
  f(!x);
405
405
  }
406
406
  }, [s, a]), /* @__PURE__ */ e(
407
- Pn.Provider,
407
+ zn.Provider,
408
408
  {
409
409
  value: {
410
410
  ...r,
@@ -425,7 +425,7 @@ const gl = be({
425
425
  }, we = () => {
426
426
  };
427
427
  function qe() {
428
- const t = Ke(Pn);
428
+ const t = Ke(zn);
429
429
  return t === null ? {
430
430
  enabled: !1,
431
431
  setEnabled: we,
@@ -491,7 +491,7 @@ const Rn = ({
491
491
  transitionTimingFunction: "cubic-bezier(0.175,0.885,0.32,1.5)"
492
492
  },
493
493
  children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
494
- zn,
494
+ Pn,
495
495
  {
496
496
  size: "sm",
497
497
  background: l ? "white" : void 0,
@@ -932,7 +932,7 @@ function $t({
932
932
  }
933
933
  );
934
934
  }
935
- function zo({
935
+ function Po({
936
936
  module: t,
937
937
  statusTag: n = void 0,
938
938
  breadcrumbs: a = [],
@@ -1272,7 +1272,7 @@ const _l = () => {
1272
1272
  }
1273
1273
  );
1274
1274
  }
1275
- }, zl = ({
1275
+ }, Pl = ({
1276
1276
  enabled: t = !1,
1277
1277
  greeting: n,
1278
1278
  title: a,
@@ -1295,7 +1295,7 @@ const _l = () => {
1295
1295
  onHide: c,
1296
1296
  children: d
1297
1297
  }
1298
- ), Pl = () => {
1298
+ ), zl = () => {
1299
1299
  const {
1300
1300
  enabled: t,
1301
1301
  greeting: n,
@@ -1321,7 +1321,7 @@ const _l = () => {
1321
1321
  ) }),
1322
1322
  /* @__PURE__ */ e("div", { className: "flex-1 content-center overflow-y-auto", children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-4 p-6 pt-3", children: [
1323
1323
  /* @__PURE__ */ o("div", { className: "flex flex-col gap-4", children: [
1324
- /* @__PURE__ */ e(zn, { spin: !0, size: "lg" }),
1324
+ /* @__PURE__ */ e(Pn, { spin: !0, size: "lg" }),
1325
1325
  /* @__PURE__ */ o("div", { children: [
1326
1326
  /* @__PURE__ */ e("p", { className: "text-lg font-medium text-f1-foreground-secondary", children: n }),
1327
1327
  /* @__PURE__ */ e("h1", { className: "text-2xl font-semibold text-f1-foreground", children: a })
@@ -1348,9 +1348,9 @@ const _l = () => {
1348
1348
  /* @__PURE__ */ e("div", { className: "m-3 mt-2 flex-shrink-0", children: /* @__PURE__ */ e(_l, {}) })
1349
1349
  ] }) : null;
1350
1350
  }, Rl = ne(
1351
- H("AiPromotionChat", Pl)
1351
+ H("AiPromotionChat", zl)
1352
1352
  ), Bl = ne(
1353
- H("AiPromotionChatProvider", zl)
1353
+ H("AiPromotionChatProvider", Pl)
1354
1354
  ), $n = be({
1355
1355
  base: "flex w-full flex-col rounded-lg p-[1px]",
1356
1356
  variants: {
@@ -1481,7 +1481,7 @@ const _l = () => {
1481
1481
  (t, n) => /* @__PURE__ */ e($l, { ref: n, ...t })
1482
1482
  ), Ml = ({ compact: t, variant: n }) => /* @__PURE__ */ e(Wl, { compact: t, variant: n });
1483
1483
  Wn.displayName = "F0Callout";
1484
- const Po = ee(
1484
+ const zo = ee(
1485
1485
  ne(Wn),
1486
1486
  Ml
1487
1487
  );
@@ -1524,7 +1524,7 @@ function Vl({
1524
1524
  onClick: a,
1525
1525
  isActive: r
1526
1526
  }) {
1527
- const { locale: l } = za(), i = Pa(l), s = Ra(n, "PPPp", { locale: i }), c = `${t.firstName} ${t.lastName}`;
1527
+ const { locale: l } = Pa(), i = za(l), s = Ra(n, "PPPp", { locale: i }), c = `${t.firstName} ${t.lastName}`;
1528
1528
  return /* @__PURE__ */ o(
1529
1529
  "button",
1530
1530
  {
@@ -1789,7 +1789,7 @@ const Hl = ({
1789
1789
  ]
1790
1790
  }
1791
1791
  ) });
1792
- }, Pe = ({
1792
+ }, ze = ({
1793
1793
  groupView: t,
1794
1794
  expanded: n,
1795
1795
  search: a,
@@ -1909,7 +1909,7 @@ const Hl = ({
1909
1909
  !h && !n && /* @__PURE__ */ e("div", { className: "h-[1px] w-full bg-f1-border-secondary" })
1910
1910
  ] });
1911
1911
  };
1912
- Pe.displayName = "EntitySelectListItem";
1912
+ ze.displayName = "EntitySelectListItem";
1913
1913
  const jt = ({
1914
1914
  label: t,
1915
1915
  onCreate: n,
@@ -2106,12 +2106,12 @@ const jt = ({
2106
2106
  );
2107
2107
  F[F.length - 1]?.focus();
2108
2108
  }, Gt);
2109
- }, []), z = K(
2109
+ }, []), P = K(
2110
2110
  () => new Map(h.map((F) => [F.id, F])),
2111
2111
  [h]
2112
2112
  ), G = Q(
2113
2113
  (F) => {
2114
- const q = z.get(F.id);
2114
+ const q = P.get(F.id);
2115
2115
  if (!t)
2116
2116
  return {
2117
2117
  selected: !!q,
@@ -2124,7 +2124,7 @@ const jt = ({
2124
2124
  ), Y = (F.subItems?.length ?? 0) === J.length, de = !Y && J.length > 0;
2125
2125
  return { selected: Y, partialSelected: de };
2126
2126
  },
2127
- [t, z]
2127
+ [t, P]
2128
2128
  ), ce = Q(
2129
2129
  (F) => {
2130
2130
  if (F.index === 0 && k)
@@ -2139,7 +2139,7 @@ const jt = ({
2139
2139
  );
2140
2140
  const q = k ? F.index - 1 : F.index, J = n[q], { selected: Y, partialSelected: de } = G(J);
2141
2141
  return /* @__PURE__ */ e(
2142
- Pe,
2142
+ ze,
2143
2143
  {
2144
2144
  expanded: J.expanded ?? !1,
2145
2145
  onExpand: () => p(J, !0),
@@ -2179,7 +2179,7 @@ const jt = ({
2179
2179
  D
2180
2180
  ]
2181
2181
  ), ae = K(() => t ? n.flatMap((F) => {
2182
- const q = ze(
2182
+ const q = Pe(
2183
2183
  h ?? [],
2184
2184
  F.id
2185
2185
  );
@@ -2213,7 +2213,7 @@ const jt = ({
2213
2213
  subAvatar: F.avatar,
2214
2214
  subSearchKeys: F.searchKeys
2215
2215
  }
2216
- })), [t, n, h]), P = Q(
2216
+ })), [t, n, h]), z = Q(
2217
2217
  (F) => {
2218
2218
  if (F.index === 0 && k)
2219
2219
  return /* @__PURE__ */ e(
@@ -2234,7 +2234,7 @@ const jt = ({
2234
2234
  subItems: Y.subItems,
2235
2235
  expanded: Y.expanded,
2236
2236
  searchKeys: Y.subSearchKeys
2237
- }, fe = ze(
2237
+ }, fe = Pe(
2238
2238
  h,
2239
2239
  te.id
2240
2240
  ), he = (te?.subItems ?? []).filter(
@@ -2243,7 +2243,7 @@ const jt = ({
2243
2243
  )
2244
2244
  ), Oe = (te.subItems?.length ?? 0) === he.length, ia = !Oe && he.length > 0;
2245
2245
  return /* @__PURE__ */ e(
2246
- Pe,
2246
+ ze,
2247
2247
  {
2248
2248
  groupView: !0,
2249
2249
  expanded: te.expanded ?? !1,
@@ -2264,9 +2264,9 @@ const jt = ({
2264
2264
  }
2265
2265
  );
2266
2266
  }
2267
- let de = !!ze(h, Y.subId);
2267
+ let de = !!Pe(h, Y.subId);
2268
2268
  if (!de) {
2269
- const te = ze(
2269
+ const te = Pe(
2270
2270
  h,
2271
2271
  J.id
2272
2272
  );
@@ -2277,7 +2277,7 @@ const jt = ({
2277
2277
  ).find((he) => he.subId === Y.subId);
2278
2278
  }
2279
2279
  return /* @__PURE__ */ e(
2280
- Pe,
2280
+ ze,
2281
2281
  {
2282
2282
  expanded: !1,
2283
2283
  onExpand: () => null,
@@ -2328,12 +2328,12 @@ const jt = ({
2328
2328
  let F = 0, q = 0;
2329
2329
  if (!t)
2330
2330
  F = n.length, q = n.reduce(
2331
- (de, { id: te }) => de + (z.has(te) ? 1 : 0),
2331
+ (de, { id: te }) => de + (P.has(te) ? 1 : 0),
2332
2332
  0
2333
2333
  );
2334
2334
  else {
2335
2335
  const de = new Set(
2336
- [...z.values()].flatMap(
2336
+ [...P.values()].flatMap(
2337
2337
  (te) => te.subItems?.map((fe) => fe.subId) ?? []
2338
2338
  )
2339
2339
  );
@@ -2346,7 +2346,7 @@ const jt = ({
2346
2346
  }
2347
2347
  const J = F > 0 && q === F, Y = q > 0;
2348
2348
  return [J, Y];
2349
- }, [n, z, t]), Ie = ae.length, aa = !D && (w || A), ra = L && L.length > 0, la = !y && (!D && aa || ra);
2349
+ }, [n, P, t]), Ie = ae.length, aa = !D && (w || A), ra = L && L.length > 0, la = !y && (!D && aa || ra);
2350
2350
  return /* @__PURE__ */ o(
2351
2351
  "div",
2352
2352
  {
@@ -2424,7 +2424,7 @@ const jt = ({
2424
2424
  const q = k ? F - 1 : F;
2425
2425
  return ae[q]?.parent === null ? ql : tt;
2426
2426
  },
2427
- renderer: P,
2427
+ renderer: z,
2428
2428
  ref: I
2429
2429
  }
2430
2430
  ) : /* @__PURE__ */ e(
@@ -2458,7 +2458,7 @@ const jt = ({
2458
2458
  ]
2459
2459
  }
2460
2460
  );
2461
- }, ze = (t, n) => t.find((a) => a.id === n), Zl = (t, n) => t.find((a) => a.value === n)?.groupType === "team", Xl = ({
2461
+ }, Pe = (t, n) => t.find((a) => a.id === n), Zl = (t, n) => t.find((a) => a.value === n)?.groupType === "team", Xl = ({
2462
2462
  entity: t,
2463
2463
  onRemove: n,
2464
2464
  disabled: a = !1,
@@ -2742,31 +2742,31 @@ const jt = ({
2742
2742
  t.onSelect(y), a(!1);
2743
2743
  return;
2744
2744
  }
2745
- const S = t.selectedEntities ?? [], N = l.find((z) => z.id === y.id);
2745
+ const S = t.selectedEntities ?? [], N = l.find((P) => P.id === y.id);
2746
2746
  if (!N)
2747
2747
  return;
2748
2748
  const I = new Set(
2749
- (N.subItems ?? []).map((z) => z.subId)
2749
+ (N.subItems ?? []).map((P) => P.subId)
2750
2750
  ), M = /* @__PURE__ */ new Set([N.id]);
2751
- l.forEach((z) => {
2752
- z.id !== N.id && (z.subItems ?? []).some(
2751
+ l.forEach((P) => {
2752
+ P.id !== N.id && (P.subItems ?? []).some(
2753
2753
  (ce) => I.has(ce.subId)
2754
- ) && M.add(z.id);
2754
+ ) && M.add(P.id);
2755
2755
  });
2756
2756
  const v = [...S];
2757
- function C(z) {
2758
- const G = v.findIndex((ce) => ce.id === z.id);
2759
- G >= 0 ? v[G] = z : v.push(z);
2757
+ function C(P) {
2758
+ const G = v.findIndex((ce) => ce.id === P.id);
2759
+ G >= 0 ? v[G] = P : v.push(P);
2760
2760
  }
2761
- M.forEach((z) => {
2762
- const G = l.find((P) => P.id === z);
2761
+ M.forEach((P) => {
2762
+ const G = l.find((z) => z.id === P);
2763
2763
  if (!G) return;
2764
2764
  const ce = G.subItems?.filter(
2765
- (P) => I.has(P.subId)
2766
- ) ?? [], ae = v.findIndex((P) => P.id === z);
2765
+ (z) => I.has(z.subId)
2766
+ ) ?? [], ae = v.findIndex((z) => z.id === P);
2767
2767
  if (ae >= 0) {
2768
- const P = v[ae].subItems ?? [], Se = new Set(P.map((Ie) => Ie.subId)), Qe = [
2769
- ...P,
2768
+ const z = v[ae].subItems ?? [], Se = new Set(z.map((Ie) => Ie.subId)), Qe = [
2769
+ ...z,
2770
2770
  ...ce.filter((Ie) => !Se.has(Ie.subId))
2771
2771
  ];
2772
2772
  C({
@@ -2797,15 +2797,15 @@ const jt = ({
2797
2797
  if (I.has(C.id)) {
2798
2798
  let G = [...M.get(C.id) ?? []];
2799
2799
  C.subItems?.some(
2800
- (P) => P.subId === S.subId
2800
+ (z) => z.subId === S.subId
2801
2801
  ) && (G.some(
2802
2802
  (Se) => Se.subId === S.subId
2803
2803
  ) || G.push(S));
2804
2804
  const ae = new Set(
2805
- (C.subItems ?? []).map((P) => P.subId)
2805
+ (C.subItems ?? []).map((z) => z.subId)
2806
2806
  );
2807
2807
  G = G.filter(
2808
- (P) => ae.has(P.subId)
2808
+ (z) => ae.has(z.subId)
2809
2809
  ), v.push({
2810
2810
  ...C,
2811
2811
  subItems: G
@@ -2832,7 +2832,7 @@ const jt = ({
2832
2832
  );
2833
2833
  for (const v of N) {
2834
2834
  const C = (v.subItems ?? []).filter(
2835
- (z) => !M.has(z.subId)
2835
+ (P) => !M.has(P.subId)
2836
2836
  );
2837
2837
  C.length > 0 && S.push({
2838
2838
  ...v,
@@ -2850,7 +2850,7 @@ const jt = ({
2850
2850
  }
2851
2851
  const N = t.selectedEntities ?? [], I = S.subId, M = [];
2852
2852
  for (const v of N) {
2853
- const C = v.subItems?.filter((z) => z.subId !== I) ?? [];
2853
+ const C = v.subItems?.filter((P) => P.subId !== I) ?? [];
2854
2854
  C.length > 0 && M.push({
2855
2855
  ...v,
2856
2856
  subItems: C
@@ -2957,7 +2957,7 @@ const jt = ({
2957
2957
  i
2958
2958
  ]);
2959
2959
  const k = V(null), [X, D] = _(0);
2960
- return An(() => {
2960
+ return Ln(() => {
2961
2961
  const y = () => {
2962
2962
  k.current && D(k.current.offsetWidth);
2963
2963
  };
@@ -3129,7 +3129,7 @@ const ni = ({
3129
3129
  onChange(h) {
3130
3130
  h && d?.(t);
3131
3131
  }
3132
- }), u = _n(n, {
3132
+ }), u = On(n, {
3133
3133
  yesterdayRelative: !1
3134
3134
  });
3135
3135
  return /* @__PURE__ */ o(
@@ -3761,7 +3761,7 @@ const vi = H("Reactions", xi), wi = ({
3761
3761
  dropdownItems: p,
3762
3762
  noReactionsButton: x = !1
3763
3763
  }) => {
3764
- const w = [f.views, f.comments].filter(Boolean).join(" · "), A = !0, T = _n(r), R = () => {
3764
+ const w = [f.views, f.comments].filter(Boolean).join(" · "), A = !0, T = On(r), R = () => {
3765
3765
  s(t);
3766
3766
  }, O = (k) => {
3767
3767
  k.stopPropagation();
@@ -4257,7 +4257,7 @@ function Di({
4257
4257
  }
4258
4258
  );
4259
4259
  }
4260
- const zi = be({
4260
+ const Pi = be({
4261
4261
  base: "pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
4262
4262
  variants: {
4263
4263
  period: {
@@ -4282,7 +4282,7 @@ function qn({
4282
4282
  {
4283
4283
  className: `relative flex w-full flex-col overflow-hidden ${r ? "" : "xs:rounded-xl"} bg-f1-special-page shadow`,
4284
4284
  children: [
4285
- /* @__PURE__ */ e("div", { className: zi({ period: a }) }),
4285
+ /* @__PURE__ */ e("div", { className: Pi({ period: a }) }),
4286
4286
  n && /* @__PURE__ */ o("div", { className: "flex flex-row items-center justify-between pr-6 @container", children: [
4287
4287
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2 px-5 py-4 @5xl:px-6", children: [
4288
4288
  (s || l === "hidden") && /* @__PURE__ */ e(
@@ -4370,7 +4370,7 @@ qn.displayName = "DaytimePage";
4370
4370
  const Ho = ne(
4371
4371
  H("DaytimePage", qn)
4372
4372
  );
4373
- function Pi(t) {
4373
+ function zi(t) {
4374
4374
  return t.filter((n) => !!n.title).map(({ title: n, description: a, href: r, onClick: l, target: i }) => ({
4375
4375
  label: n,
4376
4376
  description: a,
@@ -4387,7 +4387,7 @@ function Ri({ label: t, options: n, hasNewUpdate: a }) {
4387
4387
  bottom: "calc(8px + env(safe-area-inset-bottom))",
4388
4388
  right: "calc(8px + env(safe-area-inset-right))"
4389
4389
  },
4390
- children: /* @__PURE__ */ e(Ne, { items: Pi(n), children: /* @__PURE__ */ o(
4390
+ children: /* @__PURE__ */ e(Ne, { items: zi(n), children: /* @__PURE__ */ o(
4391
4391
  "button",
4392
4392
  {
4393
4393
  className: b(
@@ -5069,15 +5069,15 @@ function Ki({
5069
5069
  A(v);
5070
5070
  }, O = Q(
5071
5071
  (v) => {
5072
- const C = w.filter((z) => z.href !== v.href);
5072
+ const C = w.filter((P) => P.href !== v.href);
5073
5073
  A(C), c?.(C);
5074
5074
  },
5075
5075
  [w, c]
5076
5076
  ), L = Q(
5077
5077
  (v, C) => {
5078
5078
  if (C < 0 || C >= w.length) return;
5079
- const z = [...w], [G] = z.splice(v, 1);
5080
- z.splice(C, 0, G), A(z), c?.(z);
5079
+ const P = [...w], [G] = P.splice(v, 1);
5080
+ P.splice(C, 0, G), A(P), c?.(P);
5081
5081
  },
5082
5082
  [w, c]
5083
5083
  ), [k, X] = _(!1), D = V(null);
@@ -5095,7 +5095,7 @@ function Ki({
5095
5095
  }, [r, n, d]);
5096
5096
  const y = "flex flex-col gap-0.5", S = K(
5097
5097
  () => w.reduce(
5098
- (v, C, z) => (C.label in v || (v[C.label] = []), v[C.label].push(z), v),
5098
+ (v, C, P) => (C.label in v || (v[C.label] = []), v[C.label].push(P), v),
5099
5099
  {}
5100
5100
  ),
5101
5101
  [w]
@@ -5261,7 +5261,7 @@ function Yi({
5261
5261
  top: { duration: s ? 0 : 0.1 },
5262
5262
  left: { duration: s ? 0 : 0.1 },
5263
5263
  default: { duration: s ? 0 : 0.2 }
5264
- }, g = () => a ? Zr(a) && r ? Ln(
5264
+ }, g = () => a ? Zr(a) && r ? En(
5265
5265
  a,
5266
5266
  {
5267
5267
  onDropdownClick: r
@@ -5649,7 +5649,7 @@ const es = ({
5649
5649
  },
5650
5650
  as
5651
5651
  ), cs = ({ children: t }) => {
5652
- const { enabled: n } = On();
5652
+ const { enabled: n } = kn();
5653
5653
  return /* @__PURE__ */ e(
5654
5654
  "div",
5655
5655
  {
@@ -5673,7 +5673,7 @@ const es = ({
5673
5673
  }
5674
5674
  );
5675
5675
  }, ds = () => /* @__PURE__ */ e("div", { className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary" }), us = j(function({ header: n, children: a, action: r, summaries: l, alert: i, status: s, fullHeight: c = !1 }, d) {
5676
- const { enabled: f, toggle: u } = On();
5676
+ const { enabled: f, toggle: u } = kn();
5677
5677
  W(() => {
5678
5678
  if (i && s)
5679
5679
  throw Error(
@@ -5698,12 +5698,12 @@ const es = ({
5698
5698
  n.title && /* @__PURE__ */ e(vt, { className: "truncate", children: n.title }),
5699
5699
  n.subtitle && /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-1", children: [
5700
5700
  /* @__PURE__ */ e(ds, {}),
5701
- /* @__PURE__ */ e(kn, { className: "truncate", children: n.subtitle })
5701
+ /* @__PURE__ */ e(Sn, { className: "truncate", children: n.subtitle })
5702
5702
  ] }),
5703
5703
  n.info && /* @__PURE__ */ e(xe, { label: n.info, children: /* @__PURE__ */ e(
5704
5704
  $,
5705
5705
  {
5706
- icon: Sn,
5706
+ icon: In,
5707
5707
  size: "sm",
5708
5708
  className: "text-f1-foreground-secondary"
5709
5709
  }
@@ -5711,7 +5711,7 @@ const es = ({
5711
5711
  n.count && /* @__PURE__ */ e("div", { className: "ml-0.5", children: /* @__PURE__ */ e(He, { value: n.count }) })
5712
5712
  ] }),
5713
5713
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-3", children: [
5714
- i && /* @__PURE__ */ e(In, { text: i, level: "critical" }),
5714
+ i && /* @__PURE__ */ e(Fn, { text: i, level: "critical" }),
5715
5715
  s && /* @__PURE__ */ e($e, { text: s.text, variant: s.variant }),
5716
5716
  n.link && /* @__PURE__ */ e(
5717
5717
  Lr,
@@ -5785,7 +5785,7 @@ const es = ({
5785
5785
  "aria-hidden": !0,
5786
5786
  children: [
5787
5787
  n?.title ? /* @__PURE__ */ e(vt, { children: n.title }) : /* @__PURE__ */ e(E, { className: "h-4 w-full max-w-16" }),
5788
- n?.subtitle && /* @__PURE__ */ e(kn, { children: n.subtitle })
5788
+ n?.subtitle && /* @__PURE__ */ e(Sn, { children: n.subtitle })
5789
5789
  ]
5790
5790
  }
5791
5791
  ) }),
@@ -6292,12 +6292,12 @@ const es = ({
6292
6292
  ), cc = ne(
6293
6293
  H("ChartWidgetEmptyState", Ds)
6294
6294
  );
6295
- function zs(t, n) {
6295
+ function Ps(t, n) {
6296
6296
  const a = V(null), r = V(null), [l, i] = _({
6297
6297
  visibleItems: [],
6298
6298
  overflowItems: []
6299
6299
  });
6300
- zr({
6300
+ Pr({
6301
6301
  ref: a,
6302
6302
  onResize: () => {
6303
6303
  f();
@@ -6360,7 +6360,7 @@ const Xe = function({
6360
6360
  minSize: i,
6361
6361
  onVisibleItemsChange: s
6362
6362
  }) {
6363
- const { containerRef: c, measurementContainerRef: d, visibleItems: f } = zs(n, l);
6363
+ const { containerRef: c, measurementContainerRef: d, visibleItems: f } = Ps(n, l);
6364
6364
  return W(() => {
6365
6365
  s?.(f);
6366
6366
  }, [s, f]), /* @__PURE__ */ o(
@@ -6418,7 +6418,7 @@ const dc = ({
6418
6418
  minSize: r,
6419
6419
  renderListItem: (l) => /* @__PURE__ */ e(ft, { ...l }, l.title)
6420
6420
  }
6421
- ) : null, Ps = ({ onClick: t, children: n }) => {
6421
+ ) : null, zs = ({ onClick: t, children: n }) => {
6422
6422
  const a = "block rounded-lg border border-solid border-transparent p-[1px] -m-1";
6423
6423
  return t ? /* @__PURE__ */ e(
6424
6424
  "a",
@@ -6440,7 +6440,7 @@ function uc({
6440
6440
  iconClassName: r,
6441
6441
  onClick: l
6442
6442
  }) {
6443
- return /* @__PURE__ */ e(Ps, { onClick: l, children: /* @__PURE__ */ o(
6443
+ return /* @__PURE__ */ e(zs, { onClick: l, children: /* @__PURE__ */ o(
6444
6444
  "div",
6445
6445
  {
6446
6446
  className: b(
@@ -6528,7 +6528,7 @@ function mc({
6528
6528
  withEmoji: "emoji" in c && !!c.emoji,
6529
6529
  withPointerCursor: i,
6530
6530
  children: [
6531
- "alert" in c && c.alert && /* @__PURE__ */ e(Pr, { type: c.alert }),
6531
+ "alert" in c && c.alert && /* @__PURE__ */ e(zr, { type: c.alert }),
6532
6532
  "emoji" in c && c.emoji && /* @__PURE__ */ e(Rr, { emoji: c.emoji }),
6533
6533
  /* @__PURE__ */ o("div", { className: "flex-1", children: [
6534
6534
  /* @__PURE__ */ e("p", { className: "line-clamp-1 font-medium", children: n }),
@@ -6609,7 +6609,7 @@ function mt({
6609
6609
  )
6610
6610
  ] }),
6611
6611
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2", children: [
6612
- a && /* @__PURE__ */ e(In, { ...a }),
6612
+ a && /* @__PURE__ */ e(Fn, { ...a }),
6613
6613
  r && /* @__PURE__ */ e(Le, { ...r }),
6614
6614
  !!l && /* @__PURE__ */ e(He, { value: l })
6615
6615
  ] })
@@ -6664,7 +6664,7 @@ const Ms = ({ title: t, info: n }) => /* @__PURE__ */ o("div", { className: "fle
6664
6664
  {
6665
6665
  label: r.label,
6666
6666
  description: r.description,
6667
- children: /* @__PURE__ */ e($, { icon: Sn, size: "sm" })
6667
+ children: /* @__PURE__ */ e($, { icon: In, size: "sm" })
6668
6668
  }
6669
6669
  ) })
6670
6670
  ] }),
@@ -6911,24 +6911,24 @@ function xc({
6911
6911
  trackedMinutes: t,
6912
6912
  remainingMinutes: n,
6913
6913
  canSeeRemainingTime: x
6914
- }), D = O === "clocked-out", y = m?.map((P) => ({
6915
- value: P.id,
6916
- label: P.duration ? `${P.name} · ${P.duration}` : P.name,
6917
- description: P.description,
6918
- tag: P.isPaid ? r.paid : r.unpaid
6914
+ }), D = O === "clocked-out", y = m?.map((z) => ({
6915
+ value: z.id,
6916
+ label: z.duration ? `${z.name} · ${z.duration}` : z.name,
6917
+ description: z.description,
6918
+ tag: z.isPaid ? r.paid : r.unpaid
6919
6919
  })) ?? [], [S, N] = _(!1), I = () => {
6920
6920
  if (y.length > 1)
6921
6921
  S || N(!0);
6922
6922
  else {
6923
- const P = y?.[0]?.value;
6924
- u?.(P);
6923
+ const z = y?.[0]?.value;
6924
+ u?.(z);
6925
6925
  }
6926
- }, M = (P) => {
6927
- h?.(P), N(!1), u?.(P);
6928
- }, v = D && i.length && !c && s, C = i.find((P) => P.id === l), z = i.map((P) => ({
6929
- value: P.id,
6930
- label: P.name,
6931
- icon: P.icon
6926
+ }, M = (z) => {
6927
+ h?.(z), N(!1), u?.(z);
6928
+ }, v = D && i.length && !c && s, C = i.find((z) => z.id === l), P = i.map((z) => ({
6929
+ value: z.id,
6930
+ label: z.name,
6931
+ icon: z.icon
6932
6932
  })), G = O === "break", [ce, ae] = _(!1);
6933
6933
  return /* @__PURE__ */ e("div", { className: "@container", children: /* @__PURE__ */ o("div", { className: "flex-grow flex-col", children: [
6934
6934
  /* @__PURE__ */ o("div", { className: "flex flex-col-reverse items-center gap-2 @xs:flex-row", children: [
@@ -7054,7 +7054,7 @@ function xc({
7054
7054
  label: r.selectLocation,
7055
7055
  hideLabel: !0,
7056
7056
  value: l,
7057
- options: z,
7057
+ options: P,
7058
7058
  onChange: w,
7059
7059
  open: ce,
7060
7060
  onOpenChange: ae,
@@ -7274,15 +7274,15 @@ var So = () => {
7274
7274
  }, Fo = (t) => {
7275
7275
  var n = t, { children: a, style: r, transition: l = !1, transitionDuration: i = 500, transitionStep: s = 50 } = n, c = eo(n, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
7276
7276
  let d = V([]), f = V(null), u = So(), m = Io(f), { positions: h, containerHeight: g } = vo({ boxesRefs: d, wrapperRef: f, children: a, windowWidth: u, wrapperWidth: m }), p = le({ minHeight: g ?? 0, position: "relative" }, r);
7277
- return e("div", Je(le({ ref: f, style: p }, c), { children: En.map(a, (x, w) => {
7277
+ return e("div", Je(le({ ref: f, style: p }, c), { children: _n.map(a, (x, w) => {
7278
7278
  if (typeof x != "object" || !x || !("type" in x)) return x;
7279
7279
  let A = { style: Co({ style: x.props.style, position: h[w], transition: l, transitionDuration: i }), ref: (T) => d.current[w] = T };
7280
- return Ln(x, le(le({}, x.props), A));
7280
+ return En(x, le(le({}, x.props), A));
7281
7281
  }) }));
7282
7282
  };
7283
7283
  const Ao = { sm: 340, md: 480, lg: 640 }, an = j(
7284
7284
  function({ children: n, widgetWidth: a = "sm" }, r) {
7285
- const l = Ao[a], [i, s] = _(), c = En.toArray(n), d = V(null);
7285
+ const l = Ao[a], [i, s] = _(), c = _n.toArray(n), d = V(null);
7286
7286
  return W(() => {
7287
7287
  const f = () => {
7288
7288
  const u = d.current?.offsetWidth;
@@ -7303,11 +7303,11 @@ const Ao = { sm: 340, md: 480, lg: 640 }, an = j(
7303
7303
  u
7304
7304
  )) }, i) }) }) });
7305
7305
  }
7306
- ), Lo = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], wc = ee(an, () => /* @__PURE__ */ e(Fn, { children: /* @__PURE__ */ e(an, { children: Lo.map((t, n) => /* @__PURE__ */ e(ye.Skeleton, { height: t }, n)) }) })), rn = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]", children: t }), yc = ee(
7306
+ ), Lo = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], wc = ee(an, () => /* @__PURE__ */ e(An, { children: /* @__PURE__ */ e(an, { children: Lo.map((t, n) => /* @__PURE__ */ e(ye.Skeleton, { height: t }, n)) }) })), rn = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]", children: t }), yc = ee(
7307
7307
  j(function({ children: n }, a) {
7308
7308
  return /* @__PURE__ */ e(Ge, { ref: a, showBar: !1, children: /* @__PURE__ */ e(rn, { children: n }) });
7309
7309
  }),
7310
- () => /* @__PURE__ */ e(Fn, { orientation: "horizontal", children: /* @__PURE__ */ o(rn, { children: [
7310
+ () => /* @__PURE__ */ e(An, { orientation: "horizontal", children: /* @__PURE__ */ o(rn, { children: [
7311
7311
  /* @__PURE__ */ e(ye.Skeleton, {}),
7312
7312
  /* @__PURE__ */ e(ye.Skeleton, {}),
7313
7313
  /* @__PURE__ */ e(ye.Skeleton, {})
@@ -7413,10 +7413,10 @@ export {
7413
7413
  Dc as F0ActionBar,
7414
7414
  Id as F0AiBanner,
7415
7415
  gn as F0AvatarModule,
7416
- Po as F0Callout,
7417
- zc as F0TableOfContent,
7416
+ zo as F0Callout,
7417
+ Pc as F0TableOfContent,
7418
7418
  Ro as F0VersionHistory,
7419
- Pc as F1SearchBox,
7419
+ zc as F1SearchBox,
7420
7420
  Rc as FILE_TYPES,
7421
7421
  Bc as FileItem,
7422
7422
  Mo as HighlightBanner,
@@ -7444,14 +7444,14 @@ export {
7444
7444
  Vo as OnePersonListItem,
7445
7445
  kc as OneRestrictComponent,
7446
7446
  Ko as Page,
7447
- zo as PageHeader,
7447
+ Po as PageHeader,
7448
7448
  Od as PieChart,
7449
7449
  ic as PieChartWidget,
7450
7450
  cs as PrivateBox,
7451
7451
  Td as ProgressBarChart,
7452
7452
  Dd as RadarChart,
7453
7453
  vi as Reactions,
7454
- zd as ResourceHeader,
7454
+ Pd as ResourceHeader,
7455
7455
  or as RichTextDisplay,
7456
7456
  Yc as RichTextEditor,
7457
7457
  Sc as ScrollArea,
@@ -7475,7 +7475,7 @@ export {
7475
7475
  nd as ToggleGroupItem,
7476
7476
  xe as Tooltip,
7477
7477
  bc as TwoColumnsList,
7478
- Pd as VerticalBarChart,
7478
+ zd as VerticalBarChart,
7479
7479
  sc as VerticalBarChartWidget,
7480
7480
  ct as VirtualList,
7481
7481
  ad as WeekStartDay,