@factorialco/f0-react 1.456.2 → 1.457.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.
package/dist/ai.d.ts CHANGED
@@ -3209,11 +3209,6 @@ declare module "gridstack" {
3209
3209
  }
3210
3210
 
3211
3211
 
3212
- declare namespace Calendar {
3213
- var displayName: string;
3214
- }
3215
-
3216
-
3217
3212
  declare module "@tiptap/core" {
3218
3213
  interface Commands<ReturnType> {
3219
3214
  aiBlock: {
@@ -3261,3 +3256,8 @@ declare module "@tiptap/core" {
3261
3256
  };
3262
3257
  }
3263
3258
  }
3259
+
3260
+
3261
+ declare namespace Calendar {
3262
+ var displayName: string;
3263
+ }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-CruH-B_N.js";
1
+ import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-DlxuT_0M.js";
2
2
  import { defaultTranslations as S } from "./i18n-provider-defaults.js";
3
- import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-B5nvDUUR.js";
3
+ import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-XZM346Yy.js";
4
4
  export {
5
5
  v as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -5996,6 +5996,8 @@ export declare type PageAction = {
5996
5996
  icon: IconType;
5997
5997
  } & ({
5998
5998
  href: string;
5999
+ } | {
6000
+ onClick: () => void;
5999
6001
  } | {
6000
6002
  actions: Array<{
6001
6003
  label: string;
@@ -8013,11 +8015,6 @@ declare module "gridstack" {
8013
8015
  }
8014
8016
 
8015
8017
 
8016
- declare namespace Calendar {
8017
- var displayName: string;
8018
- }
8019
-
8020
-
8021
8018
  declare module "@tiptap/core" {
8022
8019
  interface Commands<ReturnType> {
8023
8020
  aiBlock: {
@@ -8065,3 +8062,8 @@ declare module "@tiptap/core" {
8065
8062
  };
8066
8063
  }
8067
8064
  }
8065
+
8066
+
8067
+ declare namespace Calendar {
8068
+ var displayName: string;
8069
+ }
@@ -1,9 +1,9 @@
1
- import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as b, W as Z, P as be, u as se, aj as ma, ak as ha, al as pa, am as ba, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as pt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as Pa, aV as za, aW as Ra, X as pe, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as pn, bj as tr, bk as nr, bl as bn, bm as ar, bn as rr, T as Ue, bo as bt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as pr, bF as br, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as Pr, c7 as zr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-CruH-B_N.js";
2
- import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as Pc, cp as zc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as pd, cX as bd, cT as gd, cY as xd } from "./F0AiChat-CruH-B_N.js";
1
+ import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as b, W as Z, P as be, u as se, aj as ma, ak as ha, al as pa, am as ba, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as pt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as pe, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as pn, bj as tr, bk as nr, bl as bn, bm as ar, bn as rr, T as Ue, bo as bt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as pr, bF as br, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-DlxuT_0M.js";
2
+ import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as pd, cX as bd, cT as gd, cY as xd } from "./F0AiChat-DlxuT_0M.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
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-hNagnJX3.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-hNagnJX3.js";
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-DyFWCdmS.js";
6
+ import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-DyFWCdmS.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" }]
@@ -172,7 +172,7 @@ function pl({ breadcrumbs: t, append: n }) {
172
172
  `breadcrumb-${t.at(-1)?.id ?? 0}`
173
173
  );
174
174
  }
175
- const Pt = "one_sidebar_locked", Dn = yt(void 0);
175
+ const zt = "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(Pt);
193
+ const A = localStorage.getItem(zt);
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(Pt, d ? "1" : "");
213
+ l && localStorage.setItem(zt, 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
- }), zt = [
240
+ }), Pt = [
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
- zt.map((p) => /* @__PURE__ */ e("clipPath", { id: `${s}-${p.id}`, children: /* @__PURE__ */ e("path", { d: p.path }) }, p.id))
320
+ Pt.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: zt.map((p) => /* @__PURE__ */ e(
322
+ /* @__PURE__ */ e("g", { clipPath: `url(#${s}-circle)`, children: Pt.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
- }, Pn = j(xl), zn = yt(null), vl = 15, wl = ({ children: t, enabled: n, onShow: a, ...r }) => {
389
+ }, zn = j(xl), Pn = 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
- zn.Provider,
407
+ Pn.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(zn);
428
+ const t = Ke(Pn);
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
- Pn,
494
+ zn,
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 Po({
935
+ function zo({
936
936
  module: t,
937
937
  statusTag: n = void 0,
938
938
  breadcrumbs: a = [],
@@ -1092,7 +1092,17 @@ function El({ action: t }) {
1092
1092
  hideLabel: !0,
1093
1093
  pressed: a
1094
1094
  }
1095
- ) }) : /* @__PURE__ */ e(
1095
+ ) }) : "onClick" in t ? /* @__PURE__ */ e(
1096
+ B,
1097
+ {
1098
+ size: "md",
1099
+ variant: "outline",
1100
+ label: t.label,
1101
+ icon: t.icon,
1102
+ hideLabel: !0,
1103
+ onClick: t.onClick
1104
+ }
1105
+ ) : /* @__PURE__ */ e(
1096
1106
  ge,
1097
1107
  {
1098
1108
  href: t.href,
@@ -1272,7 +1282,7 @@ const _l = () => {
1272
1282
  }
1273
1283
  );
1274
1284
  }
1275
- }, Pl = ({
1285
+ }, zl = ({
1276
1286
  enabled: t = !1,
1277
1287
  greeting: n,
1278
1288
  title: a,
@@ -1295,7 +1305,7 @@ const _l = () => {
1295
1305
  onHide: c,
1296
1306
  children: d
1297
1307
  }
1298
- ), zl = () => {
1308
+ ), Pl = () => {
1299
1309
  const {
1300
1310
  enabled: t,
1301
1311
  greeting: n,
@@ -1321,7 +1331,7 @@ const _l = () => {
1321
1331
  ) }),
1322
1332
  /* @__PURE__ */ e("div", { className: "flex-1 content-center overflow-y-auto", children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-4 p-6 pt-3", children: [
1323
1333
  /* @__PURE__ */ o("div", { className: "flex flex-col gap-4", children: [
1324
- /* @__PURE__ */ e(Pn, { spin: !0, size: "lg" }),
1334
+ /* @__PURE__ */ e(zn, { spin: !0, size: "lg" }),
1325
1335
  /* @__PURE__ */ o("div", { children: [
1326
1336
  /* @__PURE__ */ e("p", { className: "text-lg font-medium text-f1-foreground-secondary", children: n }),
1327
1337
  /* @__PURE__ */ e("h1", { className: "text-2xl font-semibold text-f1-foreground", children: a })
@@ -1348,9 +1358,9 @@ const _l = () => {
1348
1358
  /* @__PURE__ */ e("div", { className: "m-3 mt-2 flex-shrink-0", children: /* @__PURE__ */ e(_l, {}) })
1349
1359
  ] }) : null;
1350
1360
  }, Rl = ne(
1351
- H("AiPromotionChat", zl)
1361
+ H("AiPromotionChat", Pl)
1352
1362
  ), Bl = ne(
1353
- H("AiPromotionChatProvider", Pl)
1363
+ H("AiPromotionChatProvider", zl)
1354
1364
  ), $n = be({
1355
1365
  base: "flex w-full flex-col rounded-lg p-[1px]",
1356
1366
  variants: {
@@ -1481,7 +1491,7 @@ const _l = () => {
1481
1491
  (t, n) => /* @__PURE__ */ e($l, { ref: n, ...t })
1482
1492
  ), Ml = ({ compact: t, variant: n }) => /* @__PURE__ */ e(Wl, { compact: t, variant: n });
1483
1493
  Wn.displayName = "F0Callout";
1484
- const zo = ee(
1494
+ const Po = ee(
1485
1495
  ne(Wn),
1486
1496
  Ml
1487
1497
  );
@@ -1524,7 +1534,7 @@ function Vl({
1524
1534
  onClick: a,
1525
1535
  isActive: r
1526
1536
  }) {
1527
- const { locale: l } = Pa(), i = za(l), s = Ra(n, "PPPp", { locale: i }), c = `${t.firstName} ${t.lastName}`;
1537
+ const { locale: l } = za(), i = Pa(l), s = Ra(n, "PPPp", { locale: i }), c = `${t.firstName} ${t.lastName}`;
1528
1538
  return /* @__PURE__ */ o(
1529
1539
  "button",
1530
1540
  {
@@ -1789,7 +1799,7 @@ const Hl = ({
1789
1799
  ]
1790
1800
  }
1791
1801
  ) });
1792
- }, ze = ({
1802
+ }, Pe = ({
1793
1803
  groupView: t,
1794
1804
  expanded: n,
1795
1805
  search: a,
@@ -1909,7 +1919,7 @@ const Hl = ({
1909
1919
  !h && !n && /* @__PURE__ */ e("div", { className: "h-[1px] w-full bg-f1-border-secondary" })
1910
1920
  ] });
1911
1921
  };
1912
- ze.displayName = "EntitySelectListItem";
1922
+ Pe.displayName = "EntitySelectListItem";
1913
1923
  const jt = ({
1914
1924
  label: t,
1915
1925
  onCreate: n,
@@ -2106,12 +2116,12 @@ const jt = ({
2106
2116
  );
2107
2117
  F[F.length - 1]?.focus();
2108
2118
  }, Gt);
2109
- }, []), P = K(
2119
+ }, []), z = K(
2110
2120
  () => new Map(h.map((F) => [F.id, F])),
2111
2121
  [h]
2112
2122
  ), G = Q(
2113
2123
  (F) => {
2114
- const q = P.get(F.id);
2124
+ const q = z.get(F.id);
2115
2125
  if (!t)
2116
2126
  return {
2117
2127
  selected: !!q,
@@ -2124,7 +2134,7 @@ const jt = ({
2124
2134
  ), Y = (F.subItems?.length ?? 0) === J.length, de = !Y && J.length > 0;
2125
2135
  return { selected: Y, partialSelected: de };
2126
2136
  },
2127
- [t, P]
2137
+ [t, z]
2128
2138
  ), ce = Q(
2129
2139
  (F) => {
2130
2140
  if (F.index === 0 && k)
@@ -2139,7 +2149,7 @@ const jt = ({
2139
2149
  );
2140
2150
  const q = k ? F.index - 1 : F.index, J = n[q], { selected: Y, partialSelected: de } = G(J);
2141
2151
  return /* @__PURE__ */ e(
2142
- ze,
2152
+ Pe,
2143
2153
  {
2144
2154
  expanded: J.expanded ?? !1,
2145
2155
  onExpand: () => p(J, !0),
@@ -2179,7 +2189,7 @@ const jt = ({
2179
2189
  D
2180
2190
  ]
2181
2191
  ), ae = K(() => t ? n.flatMap((F) => {
2182
- const q = Pe(
2192
+ const q = ze(
2183
2193
  h ?? [],
2184
2194
  F.id
2185
2195
  );
@@ -2213,7 +2223,7 @@ const jt = ({
2213
2223
  subAvatar: F.avatar,
2214
2224
  subSearchKeys: F.searchKeys
2215
2225
  }
2216
- })), [t, n, h]), z = Q(
2226
+ })), [t, n, h]), P = Q(
2217
2227
  (F) => {
2218
2228
  if (F.index === 0 && k)
2219
2229
  return /* @__PURE__ */ e(
@@ -2234,7 +2244,7 @@ const jt = ({
2234
2244
  subItems: Y.subItems,
2235
2245
  expanded: Y.expanded,
2236
2246
  searchKeys: Y.subSearchKeys
2237
- }, fe = Pe(
2247
+ }, fe = ze(
2238
2248
  h,
2239
2249
  te.id
2240
2250
  ), he = (te?.subItems ?? []).filter(
@@ -2243,7 +2253,7 @@ const jt = ({
2243
2253
  )
2244
2254
  ), Oe = (te.subItems?.length ?? 0) === he.length, ia = !Oe && he.length > 0;
2245
2255
  return /* @__PURE__ */ e(
2246
- ze,
2256
+ Pe,
2247
2257
  {
2248
2258
  groupView: !0,
2249
2259
  expanded: te.expanded ?? !1,
@@ -2264,9 +2274,9 @@ const jt = ({
2264
2274
  }
2265
2275
  );
2266
2276
  }
2267
- let de = !!Pe(h, Y.subId);
2277
+ let de = !!ze(h, Y.subId);
2268
2278
  if (!de) {
2269
- const te = Pe(
2279
+ const te = ze(
2270
2280
  h,
2271
2281
  J.id
2272
2282
  );
@@ -2277,7 +2287,7 @@ const jt = ({
2277
2287
  ).find((he) => he.subId === Y.subId);
2278
2288
  }
2279
2289
  return /* @__PURE__ */ e(
2280
- ze,
2290
+ Pe,
2281
2291
  {
2282
2292
  expanded: !1,
2283
2293
  onExpand: () => null,
@@ -2328,12 +2338,12 @@ const jt = ({
2328
2338
  let F = 0, q = 0;
2329
2339
  if (!t)
2330
2340
  F = n.length, q = n.reduce(
2331
- (de, { id: te }) => de + (P.has(te) ? 1 : 0),
2341
+ (de, { id: te }) => de + (z.has(te) ? 1 : 0),
2332
2342
  0
2333
2343
  );
2334
2344
  else {
2335
2345
  const de = new Set(
2336
- [...P.values()].flatMap(
2346
+ [...z.values()].flatMap(
2337
2347
  (te) => te.subItems?.map((fe) => fe.subId) ?? []
2338
2348
  )
2339
2349
  );
@@ -2346,7 +2356,7 @@ const jt = ({
2346
2356
  }
2347
2357
  const J = F > 0 && q === F, Y = q > 0;
2348
2358
  return [J, Y];
2349
- }, [n, P, t]), Ie = ae.length, aa = !D && (w || A), ra = L && L.length > 0, la = !y && (!D && aa || ra);
2359
+ }, [n, z, t]), Ie = ae.length, aa = !D && (w || A), ra = L && L.length > 0, la = !y && (!D && aa || ra);
2350
2360
  return /* @__PURE__ */ o(
2351
2361
  "div",
2352
2362
  {
@@ -2424,7 +2434,7 @@ const jt = ({
2424
2434
  const q = k ? F - 1 : F;
2425
2435
  return ae[q]?.parent === null ? ql : tt;
2426
2436
  },
2427
- renderer: z,
2437
+ renderer: P,
2428
2438
  ref: I
2429
2439
  }
2430
2440
  ) : /* @__PURE__ */ e(
@@ -2458,7 +2468,7 @@ const jt = ({
2458
2468
  ]
2459
2469
  }
2460
2470
  );
2461
- }, Pe = (t, n) => t.find((a) => a.id === n), Zl = (t, n) => t.find((a) => a.value === n)?.groupType === "team", Xl = ({
2471
+ }, ze = (t, n) => t.find((a) => a.id === n), Zl = (t, n) => t.find((a) => a.value === n)?.groupType === "team", Xl = ({
2462
2472
  entity: t,
2463
2473
  onRemove: n,
2464
2474
  disabled: a = !1,
@@ -2742,31 +2752,31 @@ const jt = ({
2742
2752
  t.onSelect(y), a(!1);
2743
2753
  return;
2744
2754
  }
2745
- const S = t.selectedEntities ?? [], N = l.find((P) => P.id === y.id);
2755
+ const S = t.selectedEntities ?? [], N = l.find((z) => z.id === y.id);
2746
2756
  if (!N)
2747
2757
  return;
2748
2758
  const I = new Set(
2749
- (N.subItems ?? []).map((P) => P.subId)
2759
+ (N.subItems ?? []).map((z) => z.subId)
2750
2760
  ), M = /* @__PURE__ */ new Set([N.id]);
2751
- l.forEach((P) => {
2752
- P.id !== N.id && (P.subItems ?? []).some(
2761
+ l.forEach((z) => {
2762
+ z.id !== N.id && (z.subItems ?? []).some(
2753
2763
  (ce) => I.has(ce.subId)
2754
- ) && M.add(P.id);
2764
+ ) && M.add(z.id);
2755
2765
  });
2756
2766
  const v = [...S];
2757
- function C(P) {
2758
- const G = v.findIndex((ce) => ce.id === P.id);
2759
- G >= 0 ? v[G] = P : v.push(P);
2767
+ function C(z) {
2768
+ const G = v.findIndex((ce) => ce.id === z.id);
2769
+ G >= 0 ? v[G] = z : v.push(z);
2760
2770
  }
2761
- M.forEach((P) => {
2762
- const G = l.find((z) => z.id === P);
2771
+ M.forEach((z) => {
2772
+ const G = l.find((P) => P.id === z);
2763
2773
  if (!G) return;
2764
2774
  const ce = G.subItems?.filter(
2765
- (z) => I.has(z.subId)
2766
- ) ?? [], ae = v.findIndex((z) => z.id === P);
2775
+ (P) => I.has(P.subId)
2776
+ ) ?? [], ae = v.findIndex((P) => P.id === z);
2767
2777
  if (ae >= 0) {
2768
- const z = v[ae].subItems ?? [], Se = new Set(z.map((Ie) => Ie.subId)), Qe = [
2769
- ...z,
2778
+ const P = v[ae].subItems ?? [], Se = new Set(P.map((Ie) => Ie.subId)), Qe = [
2779
+ ...P,
2770
2780
  ...ce.filter((Ie) => !Se.has(Ie.subId))
2771
2781
  ];
2772
2782
  C({
@@ -2797,15 +2807,15 @@ const jt = ({
2797
2807
  if (I.has(C.id)) {
2798
2808
  let G = [...M.get(C.id) ?? []];
2799
2809
  C.subItems?.some(
2800
- (z) => z.subId === S.subId
2810
+ (P) => P.subId === S.subId
2801
2811
  ) && (G.some(
2802
2812
  (Se) => Se.subId === S.subId
2803
2813
  ) || G.push(S));
2804
2814
  const ae = new Set(
2805
- (C.subItems ?? []).map((z) => z.subId)
2815
+ (C.subItems ?? []).map((P) => P.subId)
2806
2816
  );
2807
2817
  G = G.filter(
2808
- (z) => ae.has(z.subId)
2818
+ (P) => ae.has(P.subId)
2809
2819
  ), v.push({
2810
2820
  ...C,
2811
2821
  subItems: G
@@ -2832,7 +2842,7 @@ const jt = ({
2832
2842
  );
2833
2843
  for (const v of N) {
2834
2844
  const C = (v.subItems ?? []).filter(
2835
- (P) => !M.has(P.subId)
2845
+ (z) => !M.has(z.subId)
2836
2846
  );
2837
2847
  C.length > 0 && S.push({
2838
2848
  ...v,
@@ -2850,7 +2860,7 @@ const jt = ({
2850
2860
  }
2851
2861
  const N = t.selectedEntities ?? [], I = S.subId, M = [];
2852
2862
  for (const v of N) {
2853
- const C = v.subItems?.filter((P) => P.subId !== I) ?? [];
2863
+ const C = v.subItems?.filter((z) => z.subId !== I) ?? [];
2854
2864
  C.length > 0 && M.push({
2855
2865
  ...v,
2856
2866
  subItems: C
@@ -4257,7 +4267,7 @@ function Di({
4257
4267
  }
4258
4268
  );
4259
4269
  }
4260
- const Pi = be({
4270
+ const zi = be({
4261
4271
  base: "pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
4262
4272
  variants: {
4263
4273
  period: {
@@ -4282,7 +4292,7 @@ function qn({
4282
4292
  {
4283
4293
  className: `relative flex w-full flex-col overflow-hidden ${r ? "" : "xs:rounded-xl"} bg-f1-special-page shadow`,
4284
4294
  children: [
4285
- /* @__PURE__ */ e("div", { className: Pi({ period: a }) }),
4295
+ /* @__PURE__ */ e("div", { className: zi({ period: a }) }),
4286
4296
  n && /* @__PURE__ */ o("div", { className: "flex flex-row items-center justify-between pr-6 @container", children: [
4287
4297
  /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2 px-5 py-4 @5xl:px-6", children: [
4288
4298
  (s || l === "hidden") && /* @__PURE__ */ e(
@@ -4370,7 +4380,7 @@ qn.displayName = "DaytimePage";
4370
4380
  const Ho = ne(
4371
4381
  H("DaytimePage", qn)
4372
4382
  );
4373
- function zi(t) {
4383
+ function Pi(t) {
4374
4384
  return t.filter((n) => !!n.title).map(({ title: n, description: a, href: r, onClick: l, target: i }) => ({
4375
4385
  label: n,
4376
4386
  description: a,
@@ -4387,7 +4397,7 @@ function Ri({ label: t, options: n, hasNewUpdate: a }) {
4387
4397
  bottom: "calc(8px + env(safe-area-inset-bottom))",
4388
4398
  right: "calc(8px + env(safe-area-inset-right))"
4389
4399
  },
4390
- children: /* @__PURE__ */ e(Ne, { items: zi(n), children: /* @__PURE__ */ o(
4400
+ children: /* @__PURE__ */ e(Ne, { items: Pi(n), children: /* @__PURE__ */ o(
4391
4401
  "button",
4392
4402
  {
4393
4403
  className: b(
@@ -5069,15 +5079,15 @@ function Ki({
5069
5079
  A(v);
5070
5080
  }, O = Q(
5071
5081
  (v) => {
5072
- const C = w.filter((P) => P.href !== v.href);
5082
+ const C = w.filter((z) => z.href !== v.href);
5073
5083
  A(C), c?.(C);
5074
5084
  },
5075
5085
  [w, c]
5076
5086
  ), L = Q(
5077
5087
  (v, C) => {
5078
5088
  if (C < 0 || C >= w.length) return;
5079
- const P = [...w], [G] = P.splice(v, 1);
5080
- P.splice(C, 0, G), A(P), c?.(P);
5089
+ const z = [...w], [G] = z.splice(v, 1);
5090
+ z.splice(C, 0, G), A(z), c?.(z);
5081
5091
  },
5082
5092
  [w, c]
5083
5093
  ), [k, X] = _(!1), D = V(null);
@@ -5095,7 +5105,7 @@ function Ki({
5095
5105
  }, [r, n, d]);
5096
5106
  const y = "flex flex-col gap-0.5", S = K(
5097
5107
  () => w.reduce(
5098
- (v, C, P) => (C.label in v || (v[C.label] = []), v[C.label].push(P), v),
5108
+ (v, C, z) => (C.label in v || (v[C.label] = []), v[C.label].push(z), v),
5099
5109
  {}
5100
5110
  ),
5101
5111
  [w]
@@ -6292,12 +6302,12 @@ const es = ({
6292
6302
  ), cc = ne(
6293
6303
  H("ChartWidgetEmptyState", Ds)
6294
6304
  );
6295
- function Ps(t, n) {
6305
+ function zs(t, n) {
6296
6306
  const a = V(null), r = V(null), [l, i] = _({
6297
6307
  visibleItems: [],
6298
6308
  overflowItems: []
6299
6309
  });
6300
- Pr({
6310
+ zr({
6301
6311
  ref: a,
6302
6312
  onResize: () => {
6303
6313
  f();
@@ -6360,7 +6370,7 @@ const Xe = function({
6360
6370
  minSize: i,
6361
6371
  onVisibleItemsChange: s
6362
6372
  }) {
6363
- const { containerRef: c, measurementContainerRef: d, visibleItems: f } = Ps(n, l);
6373
+ const { containerRef: c, measurementContainerRef: d, visibleItems: f } = zs(n, l);
6364
6374
  return W(() => {
6365
6375
  s?.(f);
6366
6376
  }, [s, f]), /* @__PURE__ */ o(
@@ -6418,7 +6428,7 @@ const dc = ({
6418
6428
  minSize: r,
6419
6429
  renderListItem: (l) => /* @__PURE__ */ e(ft, { ...l }, l.title)
6420
6430
  }
6421
- ) : null, zs = ({ onClick: t, children: n }) => {
6431
+ ) : null, Ps = ({ onClick: t, children: n }) => {
6422
6432
  const a = "block rounded-lg border border-solid border-transparent p-[1px] -m-1";
6423
6433
  return t ? /* @__PURE__ */ e(
6424
6434
  "a",
@@ -6440,7 +6450,7 @@ function uc({
6440
6450
  iconClassName: r,
6441
6451
  onClick: l
6442
6452
  }) {
6443
- return /* @__PURE__ */ e(zs, { onClick: l, children: /* @__PURE__ */ o(
6453
+ return /* @__PURE__ */ e(Ps, { onClick: l, children: /* @__PURE__ */ o(
6444
6454
  "div",
6445
6455
  {
6446
6456
  className: b(
@@ -6528,7 +6538,7 @@ function mc({
6528
6538
  withEmoji: "emoji" in c && !!c.emoji,
6529
6539
  withPointerCursor: i,
6530
6540
  children: [
6531
- "alert" in c && c.alert && /* @__PURE__ */ e(zr, { type: c.alert }),
6541
+ "alert" in c && c.alert && /* @__PURE__ */ e(Pr, { type: c.alert }),
6532
6542
  "emoji" in c && c.emoji && /* @__PURE__ */ e(Rr, { emoji: c.emoji }),
6533
6543
  /* @__PURE__ */ o("div", { className: "flex-1", children: [
6534
6544
  /* @__PURE__ */ e("p", { className: "line-clamp-1 font-medium", children: n }),
@@ -6911,24 +6921,24 @@ function xc({
6911
6921
  trackedMinutes: t,
6912
6922
  remainingMinutes: n,
6913
6923
  canSeeRemainingTime: x
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
6924
+ }), D = O === "clocked-out", y = m?.map((P) => ({
6925
+ value: P.id,
6926
+ label: P.duration ? `${P.name} · ${P.duration}` : P.name,
6927
+ description: P.description,
6928
+ tag: P.isPaid ? r.paid : r.unpaid
6919
6929
  })) ?? [], [S, N] = _(!1), I = () => {
6920
6930
  if (y.length > 1)
6921
6931
  S || N(!0);
6922
6932
  else {
6923
- const z = y?.[0]?.value;
6924
- u?.(z);
6933
+ const P = y?.[0]?.value;
6934
+ u?.(P);
6925
6935
  }
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
6936
+ }, M = (P) => {
6937
+ h?.(P), N(!1), u?.(P);
6938
+ }, v = D && i.length && !c && s, C = i.find((P) => P.id === l), z = i.map((P) => ({
6939
+ value: P.id,
6940
+ label: P.name,
6941
+ icon: P.icon
6932
6942
  })), G = O === "break", [ce, ae] = _(!1);
6933
6943
  return /* @__PURE__ */ e("div", { className: "@container", children: /* @__PURE__ */ o("div", { className: "flex-grow flex-col", children: [
6934
6944
  /* @__PURE__ */ o("div", { className: "flex flex-col-reverse items-center gap-2 @xs:flex-row", children: [
@@ -7054,7 +7064,7 @@ function xc({
7054
7064
  label: r.selectLocation,
7055
7065
  hideLabel: !0,
7056
7066
  value: l,
7057
- options: P,
7067
+ options: z,
7058
7068
  onChange: w,
7059
7069
  open: ce,
7060
7070
  onOpenChange: ae,
@@ -7413,10 +7423,10 @@ export {
7413
7423
  Dc as F0ActionBar,
7414
7424
  Id as F0AiBanner,
7415
7425
  gn as F0AvatarModule,
7416
- zo as F0Callout,
7417
- Pc as F0TableOfContent,
7426
+ Po as F0Callout,
7427
+ zc as F0TableOfContent,
7418
7428
  Ro as F0VersionHistory,
7419
- zc as F1SearchBox,
7429
+ Pc as F1SearchBox,
7420
7430
  Rc as FILE_TYPES,
7421
7431
  Bc as FileItem,
7422
7432
  Mo as HighlightBanner,
@@ -7444,14 +7454,14 @@ export {
7444
7454
  Vo as OnePersonListItem,
7445
7455
  kc as OneRestrictComponent,
7446
7456
  Ko as Page,
7447
- Po as PageHeader,
7457
+ zo as PageHeader,
7448
7458
  Od as PieChart,
7449
7459
  ic as PieChartWidget,
7450
7460
  cs as PrivateBox,
7451
7461
  Td as ProgressBarChart,
7452
7462
  Dd as RadarChart,
7453
7463
  vi as Reactions,
7454
- Pd as ResourceHeader,
7464
+ zd as ResourceHeader,
7455
7465
  or as RichTextDisplay,
7456
7466
  Yc as RichTextEditor,
7457
7467
  Sc as ScrollArea,
@@ -7475,7 +7485,7 @@ export {
7475
7485
  nd as ToggleGroupItem,
7476
7486
  xe as Tooltip,
7477
7487
  bc as TwoColumnsList,
7478
- zd as VerticalBarChart,
7488
+ Pd as VerticalBarChart,
7479
7489
  sc as VerticalBarChartWidget,
7480
7490
  ct as VirtualList,
7481
7491
  ad as WeekStartDay,