@factorialco/f0-react 1.303.2 → 1.303.4

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,10 +1,10 @@
1
- import { bK as Zm, bL as Hc, bM as hA, bN as pA, bO as Jm, bP as g7, bQ as Ls, av as l0, bR as Wr, bS as c0, bT as Ts, bU as Lf, az as ni, bV as sl, bW as Xm, bX as mA, e as ks, bY as $c, bZ as gA, b_ as vA, b$ as yA, c0 as xA, c1 as Ym, c2 as v7, c3 as y7, c4 as kA, c5 as wA, c6 as bA, d as da, c7 as Qm, c8 as Tf, c9 as CA, ca as x7, cb as e3, cc as t3, cd as _A, ce as f0, aI as k7, cf as n3, cg as SA, ch as w7, ci as b7, cj as A5, ck as Af, cl as EA, cm as LA, cn as TA, co as Th, cp as AA, cq as NA, cr as MA, m as we, cs as C7, ct as OA, cu as Nf, l as qa, cv as Vc, z as yd, cw as _7, x as l1, cx as FA, n as Ah, cy as DA, q as IA, r as c1, i as RA, H as PA, J as BA, t as N5, cz as HA, G as M5, cA as $A, N as VA, cB as S7, cC as E7, cD as zA, aA as Le, F as We, c as D, cE as Mf, cF as i3, cG as r3, cH as qn, cI as $n, cJ as Of, cK as Nl, cL as xd, bG as Ml, cM as us, b as Ye, cN as ua, A as ht, b8 as cs, B as Ft, cO as jA, cP as s3, cQ as O5, cR as WA, cS as UA, cT as qA, aw as L7, ax as T7, cU as A7, cV as N7, cW as To, cX as GA, cY as F5, cZ as KA, c_ as ZA, c$ as JA, w as Kt, a as ai, S as ye, d0, d1 as bi, d2 as o3, ao as Mi, ap as XA, d3 as M7, D as a3, b9 as ol, d4 as e2, d5 as O7, d6 as F7, d7 as D7, d8 as I7, d9 as R7, am as zt, da as P7, db as B7, dc as H7, dd as $7, de as V7, df as YA, dg as QA, dh as u0, di as z7, C as eN, bm as tN, dj as Oi, au as Jo, g as hn, as as l3, ay as t2, dk as D5, dl as kd, dm as nN, f as ha, dn as Xo, dp as j7, dq as iN, dr as I5, ds as al, dt as c3, du as Ff, dv as wd, dw as rN, dx as W7, dy as sN, dz as f3, dA as zc, dB as Fi, dC as oN, dD as aN, dE as $s, dF as Nh, dG as lN, dH as cc, dI as Da, dJ as cN, dK as U7, dL as fN, dM as dN, dN as uN, dO as hN, O as ii, U as pN, Z as mN, _ as gN, a0 as vN, a5 as R5, a6 as P5, a7 as yN, a8 as xN, dP as kN, dQ as Mh, dR as d3, dS as wN, dT as bN, dU as CN, b6 as _N, dV as SN, bH as Df, b5 as bd, dW as n2, dX as q7, h as Ri, dY as h0, b2 as ws, dZ as EN, d_ as LN, d$ as G7, b0 as yr, e0 as TN, e1 as K7, e2 as Z7, e3 as Ol, e4 as u3, e5 as AN, e6 as J7, e7 as NN, e8 as MN, ak as h3, al as p3, an as m3, e9 as X7, ea as ON, eb as FN, ec as DN, ed as Y7, aE as IN, ee as i2, ef as Q7, aZ as Cd, eg as RN, eh as PN, ei as BN, ej as HN, ek as $N, aW as r2, bJ as VN, bI as zN, el as ex, at as ro, em as jN, en as WN, bf as p0, a_ as g3, aT as If, eo as tx, b1 as UN, aV as nx, aR as ix, ep as qN, eq as rx, er as GN, aU as Fl, aX as sx, aG as KN, es as ZN, bo as JN, bp as XN, bw as m0, bu as v3, aC as g0, et as v0, eu as y0, aD as x0, ev as y3, bv as ox, b4 as x3, ew as YN, bA as QN, ex as s2, ey as eM, ez as _d, eA as tM, bq as Sd, bB as nM, eB as iM, bz as ax, eC as rM, by as sM, bx as oM, eD as aM, eE as lM, eF as k3, eG as cM, eH as fM, eI as dM, eJ as uM, eK as hM, eL as pM, eM as mM, eN as gM, u as lx, bb as vM, bt as yM, eO as xM, eP as kM, eQ as wM, aY as bM, eR as Rf, eS as w3, b3, eT as C3, eU as Pf, eV as CM, eW as cx, eX as _M, eY as SM, bC as fx, eZ as dx, bc as ux, e_ as EM, e$ as LM, f0 as TM, aF as AM, aa as NM, ab as MM, ad as OM, ae as FM, af as DM, ac as IM, f1 as B5, f2 as RM, f3 as PM, K as BM, f4 as hx, f5 as HM } from "./hooks-gNB11mSA.js";
2
- import { aH as j4e, f8 as W4e, f9 as U4e, f7 as q4e, a$ as G4e, b7 as K4e, f6 as Z4e, ba as J4e } from "./hooks-gNB11mSA.js";
1
+ import { bK as Zm, bL as Hc, bM as hA, bN as pA, bO as Jm, bP as g7, bQ as Ls, av as l0, bR as Wr, bS as c0, bT as Ts, bU as Lf, az as ni, bV as sl, bW as Xm, bX as mA, e as ks, bY as $c, bZ as gA, b_ as vA, b$ as yA, c0 as xA, c1 as Ym, c2 as v7, c3 as y7, c4 as kA, c5 as wA, c6 as bA, d as da, c7 as Qm, c8 as Tf, c9 as CA, ca as x7, cb as e3, cc as t3, cd as _A, ce as f0, aI as k7, cf as n3, cg as SA, ch as w7, ci as b7, cj as A5, ck as Af, cl as EA, cm as LA, cn as TA, co as Th, cp as AA, cq as NA, cr as MA, m as be, cs as C7, ct as OA, cu as Nf, l as qa, cv as Vc, z as yd, cw as _7, x as l1, cx as FA, n as Ah, cy as DA, q as IA, r as c1, i as RA, H as PA, J as BA, t as N5, cz as HA, G as M5, cA as $A, N as VA, cB as S7, cC as E7, cD as zA, aA as Le, F as We, c as D, cE as Mf, cF as i3, cG as r3, cH as qn, cI as $n, cJ as Of, cK as Nl, cL as xd, bG as Ml, cM as us, b as Ye, cN as ua, A as ht, b8 as cs, B as Ft, cO as jA, cP as s3, cQ as O5, cR as WA, cS as UA, cT as qA, aw as L7, ax as T7, cU as A7, cV as N7, cW as To, cX as GA, cY as F5, cZ as KA, c_ as ZA, c$ as JA, w as Kt, a as ai, S as ye, d0, d1 as bi, d2 as o3, ao as Mi, ap as XA, d3 as M7, D as a3, b9 as ol, d4 as e2, d5 as O7, d6 as F7, d7 as D7, d8 as I7, d9 as R7, am as zt, da as P7, db as B7, dc as H7, dd as $7, de as V7, df as YA, dg as QA, dh as u0, di as z7, C as eN, bm as tN, dj as Oi, au as Jo, g as hn, as as l3, ay as t2, dk as D5, dl as kd, dm as nN, f as ha, dn as Xo, dp as j7, dq as iN, dr as I5, ds as al, dt as c3, du as Ff, dv as wd, dw as rN, dx as W7, dy as sN, dz as f3, dA as zc, dB as Fi, dC as oN, dD as aN, dE as $s, dF as Nh, dG as lN, dH as cc, dI as Da, dJ as cN, dK as U7, dL as fN, dM as dN, dN as uN, dO as hN, O as ii, U as pN, Z as mN, _ as gN, a0 as vN, a5 as R5, a6 as P5, a7 as yN, a8 as xN, dP as kN, dQ as Mh, dR as d3, dS as wN, dT as bN, dU as CN, b6 as _N, dV as SN, bH as Df, b5 as bd, dW as n2, dX as q7, h as Ri, dY as h0, b2 as ws, dZ as EN, d_ as LN, d$ as G7, b0 as yr, e0 as TN, e1 as K7, e2 as Z7, e3 as Ol, e4 as u3, e5 as AN, e6 as J7, e7 as NN, e8 as MN, ak as h3, al as p3, an as m3, e9 as X7, ea as ON, eb as FN, ec as DN, ed as Y7, aE as IN, ee as i2, ef as Q7, aZ as Cd, eg as RN, eh as PN, ei as BN, ej as HN, ek as $N, aW as r2, bJ as VN, bI as zN, el as ex, at as ro, em as jN, en as WN, bf as p0, a_ as g3, aT as If, eo as tx, b1 as UN, aV as nx, aR as ix, ep as qN, eq as rx, er as GN, aU as Fl, aX as sx, aG as KN, es as ZN, bo as JN, bp as XN, bw as m0, bu as v3, aC as g0, et as v0, eu as y0, aD as x0, ev as y3, bv as ox, b4 as x3, ew as YN, bA as QN, ex as s2, ey as eM, ez as _d, eA as tM, bq as Sd, bB as nM, eB as iM, bz as ax, eC as rM, by as sM, bx as oM, eD as aM, eE as lM, eF as k3, eG as cM, eH as fM, eI as dM, eJ as uM, eK as hM, eL as pM, eM as mM, eN as gM, u as lx, bb as vM, bt as yM, eO as xM, eP as kM, eQ as wM, aY as bM, eR as Rf, eS as w3, b3, eT as C3, eU as Pf, eV as CM, eW as cx, eX as _M, eY as SM, bC as fx, eZ as dx, bc as ux, e_ as EM, e$ as LM, f0 as TM, aF as AM, aa as NM, ab as MM, ad as OM, ae as FM, af as DM, ac as IM, f1 as B5, f2 as RM, f3 as PM, K as BM, f4 as hx, f5 as HM } from "./hooks-BvQUUeUk.js";
2
+ import { aH as j4e, f8 as W4e, f9 as U4e, f7 as q4e, a$ as G4e, b7 as K4e, f6 as Z4e, ba as J4e } from "./hooks-BvQUUeUk.js";
3
3
  import { jsxs as x, jsx as f, Fragment as Ke } from "react/jsx-runtime";
4
4
  import { useCopilotChatInternal as Bf, useCopilotContext as $M, useCopilotAction as H5, CopilotKit as VM } from "@copilotkit/react-core";
5
5
  import { Markdown as zM, useChatContext as jM, CopilotSidebar as WM } from "@copilotkit/react-ui";
6
6
  import * as _e from "react";
7
- import xe, { forwardRef as B, createContext as li, useRef as Te, useState as X, useCallback as Je, useContext as Gn, useMemo as Ce, useEffect as Ae, PureComponent as UM, useId as go, useTransition as qM, useLayoutEffect as pa, Fragment as Hr, memo as k0, isValidElement as px, cloneElement as _3, createElement as o2, useDebugValue as mx, createRef as GM, version as $5, useImperativeHandle as w0, Children as gx } from "react";
7
+ import xe, { forwardRef as B, createContext as li, useRef as Te, useState as X, useCallback as Je, useContext as Gn, useMemo as we, useEffect as Ae, PureComponent as UM, useId as go, useTransition as qM, useLayoutEffect as pa, Fragment as Hr, memo as k0, isValidElement as px, cloneElement as _3, createElement as o2, useDebugValue as mx, createRef as GM, version as $5, useImperativeHandle as w0, Children as gx } from "react";
8
8
  import b0 from "react-dom";
9
9
  import { randomId as KM } from "@copilotkit/shared";
10
10
  import './experimental.css';const ZM = (t, e) => x("svg", {
@@ -4491,7 +4491,7 @@ const Qx = (t) => t === !0, JP = (t) => Qx(t === !0) || t === "id", Il = ({ chil
4491
4491
  id: e,
4492
4492
  group: Qx(n) && i.group || V5()
4493
4493
  });
4494
- const c = Ce(() => ({ ...a.current, forceRender: s }), [o]);
4494
+ const c = we(() => ({ ...a.current, forceRender: s }), [o]);
4495
4495
  return f(A5.Provider, { value: c, children: t });
4496
4496
  };
4497
4497
  function ek(t) {
@@ -4587,7 +4587,7 @@ function nB(t, e, n, i) {
4587
4587
  return s === 1 && a.layout.max + n > c || s === -1 && a.layout.min + n < c ? MA(t, r, r + s) : t;
4588
4588
  }
4589
4589
  function iB({ children: t, as: e = "ul", axis: n = "y", onReorder: i, values: r, ...s }, o) {
4590
- const a = Af(() => we[e]), l = [], c = Te(!1);
4590
+ const a = Af(() => be[e]), l = [], c = Te(!1);
4591
4591
  C7(!!r, "Reorder.Group must be provided a values prop");
4592
4592
  const d = {
4593
4593
  axis: n,
@@ -4617,7 +4617,7 @@ function j5(t, e = 0) {
4617
4617
  return OA(t) ? t : ek(e);
4618
4618
  }
4619
4619
  function oB({ children: t, style: e = {}, value: n, as: i = "li", onDrag: r, layout: s = !0, ...o }, a) {
4620
- const l = Af(() => we[i]), c = Gn(nk), d = {
4620
+ const l = Af(() => be[i]), c = Gn(nk), d = {
4621
4621
  x: j5(e.x),
4622
4622
  y: j5(e.y)
4623
4623
  }, u = QP([d.x, d.y], ([g, v]) => g || v ? 1 : "unset");
@@ -5282,7 +5282,7 @@ const E3e = ({ text: t, confirmationText: e, onConfirm: n, cancelText: i, onCanc
5282
5282
  strokeLinecap: "round",
5283
5283
  strokeLinejoin: "round",
5284
5284
  ...e,
5285
- children: [f(we.circle, {
5285
+ children: [f(be.circle, {
5286
5286
  cx: "12",
5287
5287
  cy: "12",
5288
5288
  r: "8",
@@ -5291,7 +5291,7 @@ const E3e = ({ text: t, confirmationText: e, onConfirm: n, cancelText: i, onCanc
5291
5291
  transition: VB,
5292
5292
  animate: t,
5293
5293
  vectorEffect: "non-scaling-stroke"
5294
- }), f(we.path, {
5294
+ }), f(be.path, {
5295
5295
  d: "M9.00003 12L11.4 14.4L15 9.6",
5296
5296
  initial: "normal",
5297
5297
  variants: $B,
@@ -5329,7 +5329,7 @@ const J5 = [{
5329
5329
  const n = go(), { onAnimationStart: i, onAnimationEnd: r, onDragStart: s, onDragEnd: o, onDrag: a, ...l } = t;
5330
5330
  return f("div", {
5331
5331
  className: "h-4 w-4 shrink-0",
5332
- children: x(we.svg, {
5332
+ children: x(be.svg, {
5333
5333
  width: "100%",
5334
5334
  height: "100%",
5335
5335
  viewBox: "0 0 32 32",
@@ -5393,7 +5393,7 @@ const J5 = [{
5393
5393
  }, c.id))]
5394
5394
  }), f("g", {
5395
5395
  clipPath: `url(#${n}-circle)`,
5396
- children: J5.map((c) => f(we.foreignObject, {
5396
+ children: J5.map((c) => f(be.foreignObject, {
5397
5397
  x: "0",
5398
5398
  y: "0",
5399
5399
  width: "32",
@@ -5576,7 +5576,7 @@ const X3 = KB, ZB = fk, Y3 = dk, uk = ({ icon: t, title: e, children: n }) => {
5576
5576
  }), f(Y3, {
5577
5577
  forceMount: !0,
5578
5578
  className: "data-[state=open]:mt-3",
5579
- children: f(we.div, {
5579
+ children: f(be.div, {
5580
5580
  initial: !1,
5581
5581
  animate: {
5582
5582
  height: i ? "auto" : 0,
@@ -5630,7 +5630,7 @@ const X3 = KB, ZB = fk, Y3 = dk, uk = ({ icon: t, title: e, children: n }) => {
5630
5630
  children: f(ht, {
5631
5631
  mode: "wait",
5632
5632
  initial: !1,
5633
- children: f(we.span, {
5633
+ children: f(be.span, {
5634
5634
  variants: JB,
5635
5635
  initial: "initial",
5636
5636
  animate: "animate",
@@ -7323,7 +7323,7 @@ var RH = /* @__PURE__ */ function() {
7323
7323
  for (var P = new Array(A.length), F = 0; F < A.length; ++F) P[F] = String.fromCharCode(A[F]);
7324
7324
  return P.join("");
7325
7325
  }
7326
- function be(A, P) {
7326
+ function Ce(A, P) {
7327
7327
  var F = L(A, P);
7328
7328
  switch (P && P.type || "buffer") {
7329
7329
  case "file":
@@ -7848,7 +7848,7 @@ var RH = /* @__PURE__ */ function() {
7848
7848
  function uA(A) {
7849
7849
  _(A, !0);
7850
7850
  }
7851
- return e.find = M, e.read = S, e.parse = d, e.write = be, e.writeFile = ve, e.utils = {
7851
+ return e.find = M, e.read = S, e.parse = d, e.write = Ce, e.writeFile = ve, e.utils = {
7852
7852
  cfb_new: cA,
7853
7853
  cfb_add: Eh,
7854
7854
  cfb_del: fA,
@@ -10516,7 +10516,7 @@ var mV = /* @__PURE__ */ function() {
10516
10516
  O[1].charAt(0) == "P" && k.push(N.slice(3).replace(/;;/g, ";"));
10517
10517
  break;
10518
10518
  case "C":
10519
- var Y = !1, ce = !1, ve = !1, he = !1, be = -1, Ve = -1;
10519
+ var Y = !1, ce = !1, ve = !1, he = !1, Ce = -1, Ve = -1;
10520
10520
  for (b = 1; b < O.length; ++b) switch (O[b].charAt(0)) {
10521
10521
  case "A":
10522
10522
  break;
@@ -10542,7 +10542,7 @@ var mV = /* @__PURE__ */ function() {
10542
10542
  break;
10543
10543
  // unknown
10544
10544
  case "R":
10545
- be = parseInt(O[b].slice(1)) - 1;
10545
+ Ce = parseInt(O[b].slice(1)) - 1;
10546
10546
  break;
10547
10547
  case "C":
10548
10548
  Ve = parseInt(O[b].slice(1)) - 1;
@@ -10552,9 +10552,9 @@ var mV = /* @__PURE__ */ function() {
10552
10552
  }
10553
10553
  if (Y && (w[g][v] && w[g][v].length == 2 ? w[g][v][0] = z : w[g][v] = z, C = null), ve) {
10554
10554
  if (he) throw new Error("SYLK shared formula cannot have own formula");
10555
- var G = be > -1 && w[be][Ve];
10555
+ var G = Ce > -1 && w[Ce][Ve];
10556
10556
  if (!G || !G[1]) throw new Error("SYLK shared formula cannot find base");
10557
- w[g][v][1] = mz(G[1], { r: g - be, c: v - Ve });
10557
+ w[g][v][1] = mz(G[1], { r: g - Ce, c: v - Ve });
10558
10558
  }
10559
10559
  break;
10560
10560
  case "F":
@@ -11009,7 +11009,7 @@ var mV = /* @__PURE__ */ function() {
11009
11009
  function t(R, G, U) {
11010
11010
  if (R) {
11011
11011
  Si(R, R.l || 0);
11012
- for (var q = U.Enum || be; R.l < R.length; ) {
11012
+ for (var q = U.Enum || Ce; R.l < R.length; ) {
11013
11013
  var ne = R.read_shift(2), J = q[ne] || q[65535], K = R.read_shift(2), oe = R.l + K, se = J.f && J.f(R, K, U);
11014
11014
  if (R.l = oe, G(se, J, ne)) return;
11015
11015
  }
@@ -11033,7 +11033,7 @@ var mV = /* @__PURE__ */ function() {
11033
11033
  if (R[2] == 0 && (R[3] == 8 || R[3] == 9) && R.length >= 16 && R[14] == 5 && R[15] === 108)
11034
11034
  throw new Error("Unsupported Works 3 for Mac file");
11035
11035
  if (R[2] == 2)
11036
- U.Enum = be, t(R, function(Me, W, Z) {
11036
+ U.Enum = Ce, t(R, function(Me, W, Z) {
11037
11037
  switch (Z) {
11038
11038
  case 0:
11039
11039
  U.vers = Me, Me >= 4096 && (U.qpro = !0);
@@ -11457,7 +11457,7 @@ var mV = /* @__PURE__ */ function() {
11457
11457
  }
11458
11458
  return U[U.l++] = 0, U;
11459
11459
  }
11460
- var be = {
11460
+ var Ce = {
11461
11461
  /*::[*/
11462
11462
  0: { n: "BOF", f: aw },
11463
11463
  /*::[*/
@@ -20698,11 +20698,11 @@ function Sq(t, e) {
20698
20698
  delete ce[2];
20699
20699
  var he = un(ve.data);
20700
20700
  {
20701
- var be = Fs(he[2][0].data);
20701
+ var Ce = Fs(he[2][0].data);
20702
20702
  (function() {
20703
- for (var G = Ot.find(c, a[be].location), U = or(ar(G.content)), q, ne = 0; ne < U.length; ++ne) {
20703
+ for (var G = Ot.find(c, a[Ce].location), U = or(ar(G.content)), q, ne = 0; ne < U.length; ++ne) {
20704
20704
  var J = U[ne];
20705
- J.id == be && (q = J);
20705
+ J.id == Ce && (q = J);
20706
20706
  }
20707
20707
  var K = un(q.messages[0].data);
20708
20708
  {
@@ -21617,7 +21617,7 @@ const fG = (t) => {
21617
21617
  children: [f("h2", {
21618
21618
  className: "text-f1-foreground",
21619
21619
  children: o ? "" : e.title
21620
- }), x(we.div, {
21620
+ }), x(be.div, {
21621
21621
  layout: !0,
21622
21622
  className: "flex items-center",
21623
21623
  ...t,
@@ -21654,7 +21654,7 @@ const fG = (t) => {
21654
21654
  var m;
21655
21655
  p.key === "Enter" && !p.shiftKey && (p.preventDefault(), t || (m = a.current) == null || m.requestSubmit());
21656
21656
  };
21657
- return x(we.form, {
21657
+ return x(be.form, {
21658
21658
  layout: !0,
21659
21659
  "aria-busy": t,
21660
21660
  ref: a,
@@ -21688,7 +21688,7 @@ const fG = (t) => {
21688
21688
  children: i.endsWith(`
21689
21689
  `) ? i + "_" : i
21690
21690
  }), f(ht, {
21691
- children: s && f(we.div, {
21691
+ children: s && f(be.div, {
21692
21692
  initial: {
21693
21693
  opacity: 0
21694
21694
  },
@@ -21755,7 +21755,7 @@ const fG = (t) => {
21755
21755
  isOpen: e,
21756
21756
  autoClearMinutes: r
21757
21757
  }), f(ht, {
21758
- children: e && f(we.div, {
21758
+ children: e && f(be.div, {
21759
21759
  "aria-hidden": !e,
21760
21760
  className: "relative flex h-full max-w-[360px] flex-col overflow-hidden border border-solid border-f1-border-secondary bg-f1-special-page shadow xs:rounded-xl",
21761
21761
  initial: n ? {
@@ -21777,7 +21777,7 @@ const fG = (t) => {
21777
21777
  onAnimationComplete: () => {
21778
21778
  n && i(!1);
21779
21779
  },
21780
- children: f(we.div, {
21780
+ children: f(be.div, {
21781
21781
  className: "relative flex h-full w-[360px] flex-col overflow-hidden",
21782
21782
  initial: {
21783
21783
  opacity: 0
@@ -21816,7 +21816,7 @@ const mG = ["buttonToggle"], w4 = (t) => {
21816
21816
  l.current = m, a(m);
21817
21817
  }, []), d = (m) => {
21818
21818
  m || n();
21819
- }, u = Jw(), h = e === "left" || e === "right", p = Ce(() => u && t ? "max-h-[95vh] bg-f1-background" : h ? D("w-full flex flex-col absolute top-3 bottom-3 translate-y-0 translate-x-0 max-w-[539px] rounded-md border border-solid border-f1-border-secondary", e === "left" && "left-3", e === "right" && "left-auto right-3") : e === "fullscreen" ? "w-[calc(100%-48px)] h-[calc(100%-48px)] rounded-xl" : "flex flex-col max-h-[620px] max-w-[680px] rounded-xl", [e, u, t, h]);
21819
+ }, u = Jw(), h = e === "left" || e === "right", p = we(() => u && t ? "max-h-[95vh] bg-f1-background" : h ? D("w-full flex flex-col absolute top-3 bottom-3 translate-y-0 translate-x-0 max-w-[539px] rounded-md border border-solid border-f1-border-secondary", e === "left" && "left-3", e === "right" && "left-auto right-3") : e === "fullscreen" ? "w-[calc(100%-48px)] h-[calc(100%-48px)] rounded-xl" : "flex flex-col max-h-[620px] max-w-[680px] rounded-xl", [e, u, t, h]);
21820
21820
  return u && t ? f(O5, {
21821
21821
  isOpen: i,
21822
21822
  onClose: n,
@@ -22500,7 +22500,7 @@ const zG = ai({
22500
22500
  secondary: o,
22501
22501
  disabled: n
22502
22502
  }), r),
22503
- children: [c, i && !o && f(we.div, {
22503
+ children: [c, i && !o && f(be.div, {
22504
22504
  layoutId: "underline",
22505
22505
  className: "absolute inset-x-0 -bottom-3 h-px bg-f1-background-inverse",
22506
22506
  transition: {
@@ -22815,7 +22815,7 @@ function nK({ ...t }) {
22815
22815
  children: r
22816
22816
  }), f("div", {
22817
22817
  className: "ml-2",
22818
- children: f(we.div, {
22818
+ children: f(be.div, {
22819
22819
  animate: {
22820
22820
  rotate: e ? 180 : 0
22821
22821
  },
@@ -22856,7 +22856,7 @@ function iK({ children: t }) {
22856
22856
  s(y ?? !0), a && u(!d), c(!l);
22857
22857
  }, [a, d, l, c, u]), g = Je((y) => {
22858
22858
  a || (y.clientX < 32 && u(!0), y.clientX > 280 && u(!1));
22859
- }, [a, u]), v = Ce(() => a ? d ? "unlocked" : "hidden" : !l && !d ? "hidden" : !l && d ? "unlocked" : "locked", [a, d, l]);
22859
+ }, [a, u]), v = we(() => a ? d ? "unlocked" : "hidden" : !l && !d ? "hidden" : !l && d ? "unlocked" : "locked", [a, d, l]);
22860
22860
  return Ae(() => {
22861
22861
  u(!1);
22862
22862
  }, [e]), Ae(() => {
@@ -22925,7 +22925,7 @@ const rK = ai({
22925
22925
  perspective: t ? "10px" : void 0,
22926
22926
  transformStyle: t ? "preserve-3d" : void 0
22927
22927
  },
22928
- children: x(we.svg, {
22928
+ children: x(be.svg, {
22929
22929
  width: "100%",
22930
22930
  height: "100%",
22931
22931
  viewBox: "0 0 32 32",
@@ -22962,7 +22962,7 @@ const rK = ai({
22962
22962
  }, m.id))]
22963
22963
  }), f("g", {
22964
22964
  clipPath: `url(#${o}-circle)`,
22965
- children: z6.map((m) => f(we.foreignObject, {
22965
+ children: z6.map((m) => f(be.foreignObject, {
22966
22966
  x: "0",
22967
22967
  y: "0",
22968
22968
  width: "32",
@@ -23030,7 +23030,7 @@ const rK = ai({
23030
23030
  disableHoverableContent: !0,
23031
23031
  children: [f(D7, {
23032
23032
  asChild: !0,
23033
- children: f(we.div, {
23033
+ children: f(be.div, {
23034
23034
  animate: {
23035
23035
  "--gradient-angle": ["0deg", "360deg"]
23036
23036
  },
@@ -23123,7 +23123,7 @@ const rK = ai({
23123
23123
  perspective: t ? "10px" : void 0,
23124
23124
  transformStyle: t ? "preserve-3d" : void 0
23125
23125
  },
23126
- children: x(we.svg, {
23126
+ children: x(be.svg, {
23127
23127
  width: "100%",
23128
23128
  height: "100%",
23129
23129
  viewBox: "0 0 32 32",
@@ -23160,7 +23160,7 @@ const rK = ai({
23160
23160
  }, m.id))]
23161
23161
  }), f("g", {
23162
23162
  clipPath: `url(#${o}-circle)`,
23163
- children: j6.map((m) => f(we.foreignObject, {
23163
+ children: j6.map((m) => f(be.foreignObject, {
23164
23164
  x: "0",
23165
23165
  y: "0",
23166
23166
  width: "32",
@@ -23274,7 +23274,7 @@ const kb = ({ className: t, disabled: e }) => {
23274
23274
  disableHoverableContent: !0,
23275
23275
  children: [f(D7, {
23276
23276
  asChild: !0,
23277
- children: f(we.div, {
23277
+ children: f(be.div, {
23278
23278
  animate: {
23279
23279
  "--gradient-angle": ["0deg", "360deg"]
23280
23280
  },
@@ -23321,7 +23321,7 @@ const kb = ({ className: t, disabled: e }) => {
23321
23321
  })
23322
23322
  })
23323
23323
  }) : null;
23324
- }, W6 = we.create(We), U6 = {
23324
+ }, W6 = be.create(We), U6 = {
23325
23325
  initial: {
23326
23326
  scale: 1
23327
23327
  },
@@ -23716,7 +23716,7 @@ function A3e({ module: t, statusTag: e = void 0, breadcrumbs: n = [], actions: i
23716
23716
  children: [x("div", {
23717
23717
  className: "flex flex-grow items-center",
23718
23718
  children: [f(ht, {
23719
- children: !r && l !== "locked" && f(we.div, {
23719
+ children: !r && l !== "locked" && f(be.div, {
23720
23720
  initial: {
23721
23721
  opacity: 0,
23722
23722
  width: 0
@@ -23883,7 +23883,7 @@ const ja = B(({ item: t, isLast: e, isOnly: n = !1, isFirst: i = !1, children: r
23883
23883
  }, t.id));
23884
23884
  ja.displayName = "BreadcrumbItem";
23885
23885
  const Cb = B(({ item: t, isLast: e, isOnly: n = !1, isFirst: i = !1 }, r) => {
23886
- const s = "loading" in t && t.loading, o = s ? "loading" : "type" in t && t.type ? t.type : e || n ? "page" : "link", a = x(we.div, {
23886
+ const s = "loading" in t && t.loading, o = s ? "loading" : "type" in t && t.type ? t.type : e || n ? "page" : "link", a = x(be.div, {
23887
23887
  layoutId: `breadcrumb-${t.id}`,
23888
23888
  className: D("flex items-center gap-2 px-1.5", i && "pl-0", n && "text-2xl font-semibold"),
23889
23889
  transition: {
@@ -23927,7 +23927,7 @@ const Cb = B(({ item: t, isLast: e, isOnly: n = !1, isFirst: i = !1 }, r) => {
23927
23927
  })
23928
23928
  })
23929
23929
  };
23930
- return f(we.div, {
23930
+ return f(be.div, {
23931
23931
  ref: r,
23932
23932
  layout: !0,
23933
23933
  className: D(s && "max-w-40"),
@@ -24090,17 +24090,17 @@ function SK(t, e = _K) {
24090
24090
  return [...t].sort(() => 0.5 - Math.random()).slice(0, e);
24091
24091
  }
24092
24092
  const EK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
24093
- const { sendMessage: i } = Bf(), r = SK(n);
24093
+ const { sendMessage: i } = Bf(), r = we(() => SK(n), [n]);
24094
24094
  return f(ht, {
24095
24095
  mode: "popLayout",
24096
- children: x(we.div, {
24096
+ children: x(be.div, {
24097
24097
  className: "flex w-full flex-1 flex-col justify-end gap-4",
24098
24098
  initial: {
24099
24099
  opacity: 1
24100
24100
  },
24101
24101
  children: [x("div", {
24102
24102
  className: "px-2",
24103
- children: [f(we.div, {
24103
+ children: [f(be.div, {
24104
24104
  className: "flex w-fit justify-center",
24105
24105
  initial: {
24106
24106
  opacity: 0,
@@ -24133,7 +24133,7 @@ const EK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
24133
24133
  size: "lg",
24134
24134
  className: "my-4"
24135
24135
  })
24136
- }), t && f(we.p, {
24136
+ }), t && f(be.p, {
24137
24137
  className: "text-lg font-semibold text-f1-foreground-secondary",
24138
24138
  initial: {
24139
24139
  opacity: 0,
@@ -24163,7 +24163,7 @@ const EK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
24163
24163
  }
24164
24164
  },
24165
24165
  children: t
24166
- }), e.map((s) => f(we.p, {
24166
+ }), e.map((s) => f(be.p, {
24167
24167
  className: "text-lg font-semibold text-f1-foreground",
24168
24168
  initial: {
24169
24169
  opacity: 0,
@@ -24196,7 +24196,7 @@ const EK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
24196
24196
  }, s.id))]
24197
24197
  }), f("div", {
24198
24198
  className: "-ml-2 flex flex-col items-start gap-[6px]",
24199
- children: r.map((s, o) => f(we.div, {
24199
+ children: r.map((s, o) => f(be.div, {
24200
24200
  className: "w-full",
24201
24201
  initial: {
24202
24202
  opacity: 0,
@@ -24245,16 +24245,16 @@ const EK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
24245
24245
  ...t
24246
24246
  })
24247
24247
  }), TK = ({ inProgress: t, children: e, RenderMessage: n, AssistantMessage: i, UserMessage: r, ImageRenderer: s, onRegenerate: o, onCopy: a, markdownTagRenderers: l }) => {
24248
- const c = Te(null), { messages: d, interrupt: u } = Bf(), { threadId: h } = $M(), { close: p, currentReaction: m, currentMessage: g, isOpen: v } = Kw(), y = Ye(), { greeting: b, initialMessage: w, welcomeScreenSuggestions: k, onThumbsUp: C, onThumbsDown: S } = xo(), E = Ce(() => AK(w || y.ai.defaultInitialMessage), [w, y.ai.defaultInitialMessage]), T = d.length == 0 && (b || E.length > 0), { messagesContainerRef: _, messagesEndRef: L, showScrollToBottom: M, scrollToBottom: N } = NK(), { height: O = 0 } = kd({
24248
+ const c = Te(null), { messages: d, interrupt: u } = Bf(), { threadId: h } = $M(), { close: p, currentReaction: m, currentMessage: g, isOpen: v } = Kw(), y = Ye(), { greeting: b, initialMessage: w, welcomeScreenSuggestions: k, onThumbsUp: C, onThumbsDown: S } = xo(), E = we(() => AK(w || y.ai.defaultInitialMessage), [w, y.ai.defaultInitialMessage]), T = d.length == 0 && (b || E.length > 0), { messagesContainerRef: _, messagesEndRef: L, showScrollToBottom: M, scrollToBottom: N } = NK(), { height: O = 0 } = kd({
24249
24249
  ref: _,
24250
24250
  box: "border-box"
24251
- }), j = Ce(() => MK(d), [d]);
24251
+ }), j = we(() => MK(d), [d]);
24252
24252
  return x(Ke, {
24253
- children: [x(we.div, {
24253
+ children: [x(be.div, {
24254
24254
  layout: !0,
24255
24255
  className: D("scrollbar-macos relative isolate flex flex-1 flex-col px-4 pt-3", "overflow-y-scroll"),
24256
24256
  ref: _,
24257
- children: [x(we.div, {
24257
+ children: [x(be.div, {
24258
24258
  layout: "position",
24259
24259
  ref: c,
24260
24260
  className: T ? "flex flex-1 pb-3" : "flex flex-col gap-8",
@@ -24270,8 +24270,8 @@ const EK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
24270
24270
  minHeight: ce ? O * 0.8 : void 0
24271
24271
  },
24272
24272
  children: z.map((ve, he) => {
24273
- const be = Y === j.length - 1 && he === z.length - 1;
24274
- return Array.isArray(ve) && !be ? f(CK, {
24273
+ const Ce = Y === j.length - 1 && he === z.length - 1;
24274
+ return Array.isArray(ve) && !Ce ? f(CK, {
24275
24275
  messages: ve,
24276
24276
  isActive: !1,
24277
24277
  inProgress: t,
@@ -24281,7 +24281,7 @@ const EK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
24281
24281
  message: Array.isArray(ve) ? ve[ve.length - 1] : ve,
24282
24282
  inProgress: t,
24283
24283
  index: he,
24284
- isCurrentMessage: be,
24284
+ isCurrentMessage: Ce,
24285
24285
  AssistantMessage: i,
24286
24286
  UserMessage: r,
24287
24287
  ImageRenderer: s,
@@ -24297,7 +24297,7 @@ const EK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
24297
24297
  ref: L,
24298
24298
  children: e
24299
24299
  }), f(ht, {
24300
- children: M && f(we.div, {
24300
+ children: M && f(be.div, {
24301
24301
  className: "sticky bottom-2 z-10 flex justify-center",
24302
24302
  initial: {
24303
24303
  opacity: 0,
@@ -24600,7 +24600,7 @@ const FK = (t) => UP[t] || Ym, DK = ({ iconName: t }) => t ? f("div", {
24600
24600
  }) : null;
24601
24601
  }, zK = ha("AiChat", VK), jK = ha("AiChatProvider", BK), WK = () => {
24602
24602
  const t = Ye();
24603
- return x(we.div, {
24603
+ return x(be.div, {
24604
24604
  className: D("relative isolate m-3 mt-2 flex flex-col gap-3 rounded-lg border border-solid border-f1-border", "after:pointer-events-none after:absolute after:inset-0.5 after:z-[-2] after:rounded-[inherit] after:bg-f1-foreground-secondary after:opacity-0 after:blur-[5px] after:content-['']", "from-[#E55619] via-[#A1ADE5] to-[#E51943] after:scale-90 after:bg-[conic-gradient(from_var(--gradient-angle),var(--tw-gradient-stops))]", "after:transition-all after:delay-200 after:duration-300", "before:bg-white before:pointer-events-none before:absolute before:inset-0 before:z-[-1] before:rounded-[inherit] before:content-['']"),
24605
24605
  animate: {
24606
24606
  "--gradient-angle": ["0deg", "360deg"]
@@ -24656,7 +24656,7 @@ const FK = (t) => UP[t] || Ym, DK = ({ iconName: t }) => t ? f("div", {
24656
24656
  isOpen: e,
24657
24657
  autoClearMinutes: r
24658
24658
  }), f(ht, {
24659
- children: e && f(we.div, {
24659
+ children: e && f(be.div, {
24660
24660
  "aria-hidden": !e,
24661
24661
  className: "relative flex h-full max-w-[360px] flex-col overflow-hidden border border-solid border-f1-border-secondary bg-f1-special-page shadow xs:rounded-xl",
24662
24662
  initial: n ? {
@@ -24678,7 +24678,7 @@ const FK = (t) => UP[t] || Ym, DK = ({ iconName: t }) => t ? f("div", {
24678
24678
  onAnimationComplete: () => {
24679
24679
  n && i(!1);
24680
24680
  },
24681
- children: f(we.div, {
24681
+ children: f(be.div, {
24682
24682
  className: "relative flex h-full w-[360px] flex-col overflow-x-hidden",
24683
24683
  initial: {
24684
24684
  opacity: 0
@@ -26730,7 +26730,7 @@ function oX(t) {
26730
26730
  r.push(rX(n)), s.push(SJ()), o.push(EJ(n));
26731
26731
  }
26732
26732
  const aX = fN().use(dN).use(oX).use(uN).use(hN), lX = B(function({ content: e, className: n, format: i = "html", ...r }, s) {
26733
- const o = Ce(() => U7.sanitize(i === "markdown" ? String(aX.processSync(e)) : e, {
26733
+ const o = we(() => U7.sanitize(i === "markdown" ? String(aX.processSync(e)) : e, {
26734
26734
  ADD_ATTR: ["target"],
26735
26735
  ALLOWED_ATTR: ["href", "target", "rel", "class"]
26736
26736
  }), [i, e]), a = /<[^>]*>/.test(o);
@@ -27044,7 +27044,7 @@ const iv = /* @__PURE__ */ _7(gX), C2 = (t) => {
27044
27044
  return e;
27045
27045
  }, Jb = li(void 0);
27046
27046
  function yX({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions: i, onChange: r, allowedQuestionTypes: s }) {
27047
- const o = Ce(() => {
27047
+ const o = we(() => {
27048
27048
  const w = t[t.length - 1];
27049
27049
  if (w)
27050
27050
  return w.type === "section" ? w.section.id : w.question.id;
@@ -27351,7 +27351,7 @@ const B4 = () => {
27351
27351
  })
27352
27352
  });
27353
27353
  function wX({ open: t, setOpen: e, questionId: n, questionType: i, canDeleteQuestion: r = !0 }) {
27354
- const { t: s } = Ye(), { onQuestionChange: o, getQuestionById: a, deleteElement: l, onDuplicateElement: c, disallowOptionalQuestions: d } = Pi(), u = Ce(() => a(n), [n, a]), h = B4(), p = (y) => {
27354
+ const { t: s } = Ye(), { onQuestionChange: o, getQuestionById: a, deleteElement: l, onDuplicateElement: c, disallowOptionalQuestions: d } = Pi(), u = we(() => a(n), [n, a]), h = B4(), p = (y) => {
27355
27355
  o == null || o({
27356
27356
  id: n,
27357
27357
  type: i,
@@ -27528,7 +27528,7 @@ const ov = {
27528
27528
  type: "date",
27529
27529
  value: (l = a == null ? void 0 : a.value) == null ? void 0 : l.from
27530
27530
  });
27531
- }, o = Ce(() => t ? {
27531
+ }, o = we(() => t ? {
27532
27532
  granularity: "day",
27533
27533
  value: {
27534
27534
  from: t,
@@ -27733,7 +27733,7 @@ const ov = {
27733
27733
  })
27734
27734
  });
27735
27735
  }, FX = ({ options: t, ...e }) => {
27736
- const { onQuestionChange: n, isEditMode: i, getSectionContainingQuestion: r } = Pi(), s = new Set(t.map((g) => g.value)).size !== t.length, o = r(e.id), a = e.locked || (o == null ? void 0 : o.locked), { t: l } = Ye(), c = Ce(() => ({
27736
+ const { onQuestionChange: n, isEditMode: i, getSectionContainingQuestion: r } = Pi(), s = new Set(t.map((g) => g.value)).size !== t.length, o = r(e.id), a = e.locked || (o == null ? void 0 : o.locked), { t: l } = Ye(), c = we(() => ({
27737
27737
  id: e.id,
27738
27738
  type: e.type,
27739
27739
  options: t
@@ -27979,7 +27979,7 @@ const DX = Ri({
27979
27979
  }, PX = {
27980
27980
  fieldSizing: "content"
27981
27981
  }, BX = ({ id: t, title: e, description: n, questions: i = [], locked: r }) => {
27982
- const { onSectionChange: s, isEditMode: o, deleteElement: a, onDuplicateElement: l } = Pi(), [c, d] = X(!1), { t: u } = Ye(), h = Ce(() => ({
27982
+ const { onSectionChange: s, isEditMode: o, deleteElement: a, onDuplicateElement: l } = Pi(), [c, d] = X(!1), { t: u } = Ye(), h = we(() => ({
27983
27983
  id: t,
27984
27984
  title: e,
27985
27985
  description: n
@@ -28145,7 +28145,7 @@ const DX = Ri({
28145
28145
  });
28146
28146
  }, O3e = ({ elements: t, isEditMode: e, onChange: n, disallowOptionalQuestions: i, allowedQuestionTypes: r }) => {
28147
28147
  var a;
28148
- const s = e && (!(t != null && t.length) || ((a = t == null ? void 0 : t.at(-1)) == null ? void 0 : a.type) === "section"), o = Ce(() => t.map((l) => {
28148
+ const s = e && (!(t != null && t.length) || ((a = t == null ? void 0 : t.at(-1)) == null ? void 0 : a.type) === "section"), o = we(() => t.map((l) => {
28149
28149
  var c;
28150
28150
  return l.type === "question" ? {
28151
28151
  ...l,
@@ -28198,7 +28198,7 @@ const zX = (t) => Array.isArray(t) ? t.every((e) => VX(e)) ? t : [{
28198
28198
  const r = e.slice(0, 2), s = e.slice(2).map((d) => ({
28199
28199
  ...d,
28200
28200
  critical: d.critical || !1
28201
- })), o = Ce(() => zX(i.primaryActions ?? []), [i.primaryActions]), a = Ce(() => o.map((d) => ({
28201
+ })), o = we(() => zX(i.primaryActions ?? []), [i.primaryActions]), a = we(() => o.map((d) => ({
28202
28202
  ...d,
28203
28203
  items: d.items.map((u) => ({
28204
28204
  value: u.label,
@@ -28208,9 +28208,9 @@ const zX = (t) => Array.isArray(t) ? t.every((e) => VX(e)) ? t : [{
28208
28208
  description: u.description,
28209
28209
  disabled: u.disabled
28210
28210
  }))
28211
- })), [o]), l = Ce(() => o.length === 1 && o[0].items.length === 1 ? o[0].items[0] : null, [o]), c = Je((d) => o.flatMap((u) => u.items).find((u) => u.label === d), [o]);
28211
+ })), [o]), l = we(() => o.length === 1 && o[0].items.length === 1 ? o[0].items[0] : null, [o]), c = Je((d) => o.flatMap((u) => u.items).find((u) => u.label === d), [o]);
28212
28212
  return f(ht, {
28213
- children: t && x(we.div, {
28213
+ children: t && x(be.div, {
28214
28214
  initial: {
28215
28215
  opacity: 0,
28216
28216
  y: 32,
@@ -28677,7 +28677,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
28677
28677
  })]
28678
28678
  });
28679
28679
  }, Kh = 384, Zh = 36, KX = 37, lv = 1, cv = 200, fv = '[data-avatarname-navigator-element="true"]', ZX = ({ groupView: t, entities: e, groups: n, selectedGroup: i, search: r, onSelect: s, onRemove: o, onSubItemRemove: a, onSubItemSelect: l, onClear: c, onSelectAll: d, onSearch: u, selectedEntities: h = [], onGroupChange: p, onToggleExpand: m, searchPlaceholder: g, selectAllLabel: v, clearLabel: y, notFoundTitle: b, notFoundSubtitle: w, className: k, actions: C, onCreate: S, onCreateLabel: E, singleSelector: T = !1, loading: _ = !1, disabled: L = !1, hiddenAvatar: M = !1 }) => {
28680
- const N = xe.useRef(null), O = Ce(() => t ? e.reduce((J, K) => {
28680
+ const N = xe.useRef(null), O = we(() => t ? e.reduce((J, K) => {
28681
28681
  var oe;
28682
28682
  return J + (((oe = K.subItems) == null ? void 0 : oe.length) ?? 0);
28683
28683
  }, 0) : e.length, [e, t]), j = Je(() => {
@@ -28701,7 +28701,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
28701
28701
  const J = Array.from(document.querySelectorAll(fv));
28702
28702
  (K = J[J.length - 1]) == null || K.focus();
28703
28703
  }, cv);
28704
- }, []), Y = Ce(() => new Map(h.map((J) => [J.id, J])), [h]), ce = Je((J) => {
28704
+ }, []), Y = we(() => new Map(h.map((J) => [J.id, J])), [h]), ce = Je((J) => {
28705
28705
  var Ue;
28706
28706
  const K = Y.get(J.id);
28707
28707
  if (!t)
@@ -28743,7 +28743,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
28743
28743
  disabled: L,
28744
28744
  hiddenAvatar: M
28745
28745
  }, oe.id);
28746
- }, [S, E, L, e, ce, j, z, t, n, M, o, s, m, r, i, T]), he = Ce(() => t ? e.flatMap((J) => {
28746
+ }, [S, E, L, e, ce, j, z, t, n, M, o, s, m, r, i, T]), he = we(() => t ? e.flatMap((J) => {
28747
28747
  const K = k1(h ?? [], J.id);
28748
28748
  return [{
28749
28749
  parent: null,
@@ -28770,7 +28770,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
28770
28770
  subAvatar: J.avatar,
28771
28771
  subSearchKeys: J.searchKeys
28772
28772
  }
28773
- })), [t, e, h]), be = Je((J) => {
28773
+ })), [t, e, h]), Ce = Je((J) => {
28774
28774
  var Ue, nt;
28775
28775
  if (J.index === 0 && S)
28776
28776
  return f(av, {
@@ -28842,7 +28842,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
28842
28842
  isChild: !0,
28843
28843
  hiddenAvatar: M
28844
28844
  });
28845
- }, [he, h, r, T, j, z, s, o, n, L, m, i, l, a, M, S, E]), [Ve, R] = Ce(() => {
28845
+ }, [he, h, r, T, j, z, s, o, n, L, m, i, l, a, M, S, E]), [Ve, R] = we(() => {
28846
28846
  if (!e.length)
28847
28847
  return [!1, !1];
28848
28848
  let J = 0, K = 0;
@@ -28914,7 +28914,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
28914
28914
  const K = S ? J - 1 : J;
28915
28915
  return ((oe = he[K]) == null ? void 0 : oe.parent) === null ? KX : Zh;
28916
28916
  },
28917
- renderer: be,
28917
+ renderer: Ce,
28918
28918
  ref: N
28919
28919
  }) : f(Gd, {
28920
28920
  height: Kh,
@@ -28959,7 +28959,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
28959
28959
  text: t.subName
28960
28960
  })
28961
28961
  }), YX = ({ groupView: t, onSubItemRemove: e, onRemove: n, selectedEntities: i, selectedLabel: r, disabled: s = !1, hiddenAvatar: o = !1 }) => {
28962
- const a = Ce(() => {
28962
+ const a = we(() => {
28963
28963
  const c = t ? i.flatMap((u) => (u.subItems ?? []).map((h) => ({
28964
28964
  parent: u,
28965
28965
  subItem: h
@@ -29051,7 +29051,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
29051
29051
  })]
29052
29052
  });
29053
29053
  }, eY = ({ placeholder: t, selected: e, selectedEntities: n, disabled: i = !1, hiddenAvatar: r = !1, label: s, labelIcon: o, icon: a, error: l, status: c, hint: d, onClickContent: u, hideLabel: h = !1, maxLength: p, loading: m = !1, required: g = !1, readonly: v = !1, append: y, size: b = "sm", open: w }) => {
29054
- const k = Ce(() => n.some((T) => T.subItems && T.subItems.length > 0), [n]), C = Ce(() => k ? n.flatMap((T) => (T.subItems ?? []).map((_) => ({
29054
+ const k = we(() => n.some((T) => T.subItems && T.subItems.length > 0), [n]), C = we(() => k ? n.flatMap((T) => (T.subItems ?? []).map((_) => ({
29055
29055
  parent: T,
29056
29056
  subItem: _
29057
29057
  }))) : n.map((T) => ({
@@ -29114,7 +29114,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
29114
29114
  var E;
29115
29115
  t.defaultOpen && e && ((E = t.onOpenChange) == null || E.call(t, !0));
29116
29116
  }, [t.defaultOpen]);
29117
- const [r, s] = X(t.entities), [o, a] = X(""), [l, c] = MN("", 300), d = Ce(() => t.entities.some((E) => E.subItems && E.subItems.length > 0), [t.entities]);
29117
+ const [r, s] = X(t.entities), [o, a] = X(""), [l, c] = MN("", 300), d = we(() => t.entities.some((E) => E.subItems && E.subItems.length > 0), [t.entities]);
29118
29118
  function u(E) {
29119
29119
  if (t.singleSelector) {
29120
29120
  t.onSelect(E), n(!1);
@@ -29138,7 +29138,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
29138
29138
  if (!z) return;
29139
29139
  const Y = ((ve = z.subItems) == null ? void 0 : ve.filter((he) => L.has(he.subId))) ?? [], ce = N.findIndex((he) => he.id === j);
29140
29140
  if (ce >= 0) {
29141
- const he = N[ce].subItems ?? [], be = new Set(he.map((R) => R.subId)), Ve = [...he, ...Y.filter((R) => !be.has(R.subId))];
29141
+ const he = N[ce].subItems ?? [], Ce = new Set(he.map((R) => R.subId)), Ve = [...he, ...Y.filter((R) => !Ce.has(R.subId))];
29142
29142
  O({
29143
29143
  ...z,
29144
29144
  subItems: Ve
@@ -29169,7 +29169,7 @@ const av = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
29169
29169
  var j;
29170
29170
  if (L.has(O.id)) {
29171
29171
  let Y = [...M.get(O.id) ?? []];
29172
- ((j = O.subItems) == null ? void 0 : j.some((he) => he.subId === T.subId)) && (Y.some((be) => be.subId === T.subId) || Y.push(T));
29172
+ ((j = O.subItems) == null ? void 0 : j.some((he) => he.subId === T.subId)) && (Y.some((Ce) => Ce.subId === T.subId) || Y.push(T));
29173
29173
  const ve = new Set((O.subItems ?? []).map((he) => he.subId));
29174
29174
  Y = Y.filter((he) => ve.has(he.subId)), N.push({
29175
29175
  ...O,
@@ -29933,7 +29933,7 @@ var Aa = (t) => rn(t) && !Yd(t) ? t : {
29933
29933
  const Y = o.valueAsNumber || b && +b;
29934
29934
  Qn(j.value) || (N = Y > j.value), Qn(z.value) || (O = Y < z.value);
29935
29935
  } else {
29936
- const Y = o.valueAsDate || new Date(b), ce = (be) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + be), ve = o.type == "time", he = o.type == "week";
29936
+ const Y = o.valueAsDate || new Date(b), ce = (Ce) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ce), ve = o.type == "time", he = o.type == "week";
29937
29937
  Dr(j.value) && b && (N = ve ? ce(b) > ce(j.value) : he ? b > j.value : Y > new Date(j.value)), Dr(z.value) && b && (O = ve ? ce(b) < ce(z.value) : he ? b < z.value : Y < new Date(z.value));
29938
29938
  }
29939
29939
  if ((N || O) && (M(!!N, j.message, z.message, Jr.max, Jr.min), !i))
@@ -30287,7 +30287,7 @@ function _Y(t = {}) {
30287
30287
  values: { ...s }
30288
30288
  })));
30289
30289
  }
30290
- (ie.shouldDirty || ie.shouldTouch) && S(W, Ne, ie.shouldTouch, ie.shouldDirty, !0), ie.shouldValidate && be(W);
30290
+ (ie.shouldDirty || ie.shouldTouch) && S(W, Ne, ie.shouldTouch, ie.shouldDirty, !0), ie.shouldValidate && Ce(W);
30291
30291
  }, Y = (W, Z, ie) => {
30292
30292
  for (const ke in Z) {
30293
30293
  const Ne = Z[ke], ge = `${W}.${ke}`, Be = Pe(i, ge);
@@ -30332,12 +30332,12 @@ function _Y(t = {}) {
30332
30332
  }
30333
30333
  } else
30334
30334
  y([ie], !0), Ze = (await bv(Ne, a.disabled, s, m, e.shouldUseNativeValidation))[ie], y([ie]), Be(vt), ke && (Ze ? gt = !1 : d.isValid && (gt = await L(i, !0)));
30335
- ke && (Ne._f.deps && be(Ne._f.deps), E(ie, gt, Ze, sr));
30335
+ ke && (Ne._f.deps && Ce(Ne._f.deps), E(ie, gt, Ze, sr));
30336
30336
  }
30337
30337
  }, he = (W, Z) => {
30338
30338
  if (Pe(n.errors, Z) && W.focus)
30339
30339
  return W.focus(), 1;
30340
- }, be = async (W, Z = {}) => {
30340
+ }, Ce = async (W, Z = {}) => {
30341
30341
  let ie, ke;
30342
30342
  const Ne = bc(W);
30343
30343
  if (e.resolver) {
@@ -30604,7 +30604,7 @@ function _Y(t = {}) {
30604
30604
  };
30605
30605
  }
30606
30606
  },
30607
- trigger: be,
30607
+ trigger: Ce,
30608
30608
  register: K,
30609
30609
  handleSubmit: me,
30610
30610
  watch: q,
@@ -34648,7 +34648,7 @@ const Kv = (t) => {
34648
34648
  c.height && l.height && r(c.height > l.height);
34649
34649
  }, [c.height, l.height]), x("div", {
34650
34650
  className: "flex max-w-[640px] flex-col gap-1",
34651
- children: [x(we.div, {
34651
+ children: [x(be.div, {
34652
34652
  initial: !1,
34653
34653
  animate: {
34654
34654
  height: e ? c.height ?? l.height : l.height ?? "3rem"
@@ -34838,7 +34838,7 @@ function see({ item: t }) {
34838
34838
  })
34839
34839
  })
34840
34840
  }), f(ht, {
34841
- children: e && s && x(we.div, {
34841
+ children: e && s && x(be.div, {
34842
34842
  className: D("absolute -left-1.5 -top-1.5 z-50 hidden max-h-[80vh] items-start justify-center gap-1.5 overflow-y-auto whitespace-nowrap rounded-sm bg-f1-background py-1 pl-1.5 shadow-md ring-1 ring-inset ring-f1-border-secondary md:flex", !i && "h-8 items-start", r ? "pr-1" : "pr-1.5"),
34843
34843
  initial: {
34844
34844
  opacity: 0
@@ -34857,7 +34857,7 @@ function see({ item: t }) {
34857
34857
  children: f(ip, {
34858
34858
  item: t
34859
34859
  })
34860
- }), r && f(we.div, {
34860
+ }), r && f(be.div, {
34861
34861
  className: "flex gap-1",
34862
34862
  initial: {
34863
34863
  x: -16
@@ -35133,7 +35133,7 @@ const K3e = ({ avatar: t, title: e, description: n, primaryAction: i, secondaryA
35133
35133
  className: "relative h-5 w-5",
35134
35134
  children: x(ht, {
35135
35135
  mode: "wait",
35136
- children: [!n && f(we.div, {
35136
+ children: [!n && f(be.div, {
35137
35137
  initial: {
35138
35138
  opacity: 0,
35139
35139
  scale: 0.8
@@ -35157,7 +35157,7 @@ const K3e = ({ avatar: t, title: e, description: n, primaryAction: i, secondaryA
35157
35157
  color: "default",
35158
35158
  className: D("opacity-0 transition-opacity duration-300", !n && "group-hover:opacity-100 group-focus-visible:opacity-100")
35159
35159
  })
35160
- }, "copy-icon"), n && f(we.div, {
35160
+ }, "copy-icon"), n && f(be.div, {
35161
35161
  initial: {
35162
35162
  opacity: 0,
35163
35163
  scale: 0.8
@@ -35528,7 +35528,7 @@ function yee({ ai: t, aiPromotion: e, children: n, sidebar: i, banner: r }) {
35528
35528
  children: x("div", {
35529
35529
  className: "relative isolate flex h-full",
35530
35530
  children: [f(ht, {
35531
- children: s === "unlocked" && f(we.nav, {
35531
+ children: s === "unlocked" && f(be.nav, {
35532
35532
  className: D("fixed inset-0 z-[5] bg-f1-background-inverse", {
35533
35533
  hidden: !a
35534
35534
  }),
@@ -35556,7 +35556,7 @@ function yee({ ai: t, aiPromotion: e, children: n, sidebar: i, banner: r }) {
35556
35556
  children: [f(mee, {
35557
35557
  contentId: "content"
35558
35558
  }), i]
35559
- }), f(we.main, {
35559
+ }), f(be.main, {
35560
35560
  id: "content",
35561
35561
  layoutId: "main",
35562
35562
  className: D("relative flex max-w-full flex-1 overflow-auto xs:py-1 xs:pr-1", s === "locked" ? "pl-0" : "xs:pl-1"),
@@ -35567,7 +35567,7 @@ function yee({ ai: t, aiPromotion: e, children: n, sidebar: i, banner: r }) {
35567
35567
  stiffness: 300,
35568
35568
  damping: 30
35569
35569
  },
35570
- children: f(we.div, {
35570
+ children: f(be.div, {
35571
35571
  className: "flex max-w-full flex-1 overflow-auto",
35572
35572
  layout: "position",
35573
35573
  children: n
@@ -35598,7 +35598,7 @@ const D2 = {
35598
35598
  children: f(ht, {
35599
35599
  mode: "popLayout",
35600
35600
  initial: !!l,
35601
- children: l ? f(we.div, {
35601
+ children: l ? f(be.div, {
35602
35602
  className: "relative h-10 w-10 rounded-full bg-f1-background-warning",
35603
35603
  initial: {
35604
35604
  opacity: 0,
@@ -35624,7 +35624,7 @@ const D2 = {
35624
35624
  duration: 0.2
35625
35625
  }
35626
35626
  },
35627
- children: f(we.div, {
35627
+ children: f(be.div, {
35628
35628
  initial: {
35629
35629
  opacity: 0,
35630
35630
  originX: 0.6,
@@ -35660,7 +35660,7 @@ const D2 = {
35660
35660
  size: "md"
35661
35661
  })
35662
35662
  }, "wave")
35663
- }) : x(we.div, {
35663
+ }) : x(be.div, {
35664
35664
  initial: {
35665
35665
  opacity: 0,
35666
35666
  scale: 0.5
@@ -35710,7 +35710,7 @@ const D2 = {
35710
35710
  size: "sm"
35711
35711
  })
35712
35712
  })
35713
- }) : f(we.div, {
35713
+ }) : f(be.div, {
35714
35714
  initial: {
35715
35715
  opacity: 0,
35716
35716
  scale: 0.5
@@ -35871,7 +35871,7 @@ function Xv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
35871
35871
  className: "absolute left-1.5 top-1/2 -translate-y-1/2",
35872
35872
  children: f(ht, {
35873
35873
  mode: "wait",
35874
- children: S ? f(we.div, {
35874
+ children: S ? f(be.div, {
35875
35875
  initial: {
35876
35876
  opacity: 0,
35877
35877
  scale: 0.8,
@@ -35903,7 +35903,7 @@ function Xv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
35903
35903
  size: "xs"
35904
35904
  })
35905
35905
  })
35906
- }, "handle") : v && f(we.div, {
35906
+ }, "handle") : v && f(be.div, {
35907
35907
  initial: {
35908
35908
  opacity: 0,
35909
35909
  scale: 0.8
@@ -35932,7 +35932,7 @@ function Xv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
35932
35932
  className: D("flex-grow text-[14px] font-medium text-f1-foreground transition-all", S || v ? "pl-7" : "pl-0"),
35933
35933
  children: m
35934
35934
  }), f(ht, {
35935
- children: (C || k) && f(we.div, {
35935
+ children: (C || k) && f(be.div, {
35936
35936
  initial: {
35937
35937
  opacity: 0,
35938
35938
  scale: 0.8
@@ -35953,7 +35953,7 @@ function Xv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
35953
35953
  className: "relative flex h-[24px] w-[24px] flex-shrink-0 items-center justify-center",
35954
35954
  children: f(ht, {
35955
35955
  mode: "wait",
35956
- children: C ? f(we.div, {
35956
+ children: C ? f(be.div, {
35957
35957
  initial: {
35958
35958
  opacity: 0,
35959
35959
  scale: 0.8
@@ -35974,7 +35974,7 @@ function Xv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
35974
35974
  children: f(Ol, {
35975
35975
  value: e
35976
35976
  })
35977
- }, "counter") : k && f(we.div, {
35977
+ }, "counter") : k && f(be.div, {
35978
35978
  initial: {
35979
35979
  opacity: 0,
35980
35980
  scale: 0.8
@@ -36074,7 +36074,7 @@ function _ee({ item: t, children: e, isActive: n, isExpanded: i, onToggleExpande
36074
36074
  }), f(Y3, {
36075
36075
  forceMount: !0,
36076
36076
  className: "flex flex-col gap-1",
36077
- children: f(we.div, {
36077
+ children: f(be.div, {
36078
36078
  initial: !1,
36079
36079
  animate: {
36080
36080
  height: i ? "auto" : 0,
@@ -36186,7 +36186,7 @@ function ou(t, e, n, i, r, s, o, a, l) {
36186
36186
  function Lee({ title: t, items: e, className: n, activeItem: i, collapsible: r = !1, sortable: s = !1, showSearchBox: o = !1, searchPlaceholder: a, onReorder: l, hideChildrenCounter: c = !1 }) {
36187
36187
  const d = Ye(), [u, h] = X(""), p = (_) => {
36188
36188
  h(_);
36189
- }, m = Ce(() => Qv(e, u), [e, u]), [g, v] = X(Eee(e, i)), [y, b] = X(e);
36189
+ }, m = we(() => Qv(e, u), [e, u]), [g, v] = X(Eee(e, i)), [y, b] = X(e);
36190
36190
  Ae(() => {
36191
36191
  b(e);
36192
36192
  }, [e]);
@@ -36208,7 +36208,7 @@ function Lee({ title: t, items: e, className: n, activeItem: i, collapsible: r =
36208
36208
  children: M(j.children)
36209
36209
  } : j), N = M(y);
36210
36210
  b(N), l && l(k(N));
36211
- }, [y, l, k]), T = Ce(() => Qv(y, u), [y, u]);
36211
+ }, [y, l, k]), T = we(() => Qv(y, u), [y, u]);
36212
36212
  return x("nav", {
36213
36213
  className: D("flex h-full w-[248px] flex-col overflow-hidden", n),
36214
36214
  "aria-label": t,
@@ -36300,7 +36300,7 @@ function Aee({ children: t, header: e, embedded: n = !1 }) {
36300
36300
  }
36301
36301
  Aee.displayName = "Page";
36302
36302
  function Nee({ companies: t, selected: e, onChange: n, isLoading: i = !1, withNotification: r = !1, additionalOptions: s = [] }) {
36303
- const o = Ce(() => t.find((a) => a.id === e) || t[0], [t, e]);
36303
+ const o = we(() => t.find((a) => a.id === e) || t[0], [t, e]);
36304
36304
  return i ? x("div", {
36305
36305
  className: "flex w-fit items-center gap-2 p-1.5",
36306
36306
  children: [f(ye, {
@@ -36332,7 +36332,7 @@ function Nee({ companies: t, selected: e, onChange: n, isLoading: i = !1, withNo
36332
36332
  });
36333
36333
  }
36334
36334
  const Mee = ({ companies: t, selected: e, onChange: n, children: i, additionalOptions: r = [] }) => {
36335
- const s = Ye(), [o, a] = X(!1), l = Ce(() => [...t.map((d) => ({
36335
+ const s = Ye(), [o, a] = X(!1), l = we(() => [...t.map((d) => ({
36336
36336
  value: d.id,
36337
36337
  label: d.name,
36338
36338
  avatar: {
@@ -36368,7 +36368,7 @@ const Mee = ({ companies: t, selected: e, onChange: n, children: i, additionalOp
36368
36368
  className: "flex w-5 shrink-0 items-center justify-center",
36369
36369
  children: f("div", {
36370
36370
  className: "flex h-3 w-3 items-center justify-center rounded-2xs bg-f1-background-secondary transition-all",
36371
- children: f(we.div, {
36371
+ children: f(be.div, {
36372
36372
  animate: {
36373
36373
  rotate: o ? 180 : 0
36374
36374
  },
@@ -36581,7 +36581,7 @@ const Ree = ({ item: t, active: e }) => x("div", {
36581
36581
  }, Bee = ({ item: t, tooltip: e, dragConstraints: n, onRemove: i, index: r, total: s, onMove: o, onReorderFinish: a, isSortable: l = !0 }) => {
36582
36582
  const c = Ye(), { isDragging: d, setIsDragging: u, draggedItemId: h, setDraggedItemId: p } = J4(), { isActive: m } = d0(), g = m(t.href, {
36583
36583
  exact: t.exactMatch
36584
- }), v = Te(!1), [y, b] = X(!1), w = r === 0, k = r === s - 1, C = s === 1, S = Ce(() => {
36584
+ }), v = Te(!1), [y, b] = X(!1), w = r === 0, k = r === s - 1, C = s === 1, S = we(() => {
36585
36585
  const N = [];
36586
36586
  return !C && !w && N.push({
36587
36587
  label: c.actions.moveUp,
@@ -36605,7 +36605,7 @@ const Ree = ({ item: t, active: e }) => x("div", {
36605
36605
  u(!1), p(null), a(), setTimeout(() => {
36606
36606
  v.current = !1;
36607
36607
  }, 0);
36608
- }, _ = d && h === t.href, L = Ce(() => D("group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing", l && "touch-none", g ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary", y && "bg-f1-background-secondary", _ && "bg-f1-background-secondary"), [g, y, _, l]), M = Ce(() => x(Ke, {
36608
+ }, _ = d && h === t.href, L = we(() => D("group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing", l && "touch-none", g ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary", y && "bg-f1-background-secondary", _ && "bg-f1-background-secondary"), [g, y, _, l]), M = we(() => x(Ke, {
36609
36609
  children: [f("div", {
36610
36610
  className: "flex w-full items-center justify-between px-1.5 py-1.5",
36611
36611
  children: f($ee, {
@@ -36683,7 +36683,7 @@ const Ree = ({ item: t, active: e }) => x("div", {
36683
36683
  onKeyDown: (u) => {
36684
36684
  (u.key === "Enter" || u.key === " ") && d();
36685
36685
  },
36686
- children: [t, f(we.div, {
36686
+ children: [t, f(be.div, {
36687
36687
  initial: !1,
36688
36688
  animate: {
36689
36689
  rotate: a ? 0 : -90
@@ -36702,7 +36702,7 @@ const Ree = ({ item: t, active: e }) => x("div", {
36702
36702
  }), f(Y3, {
36703
36703
  forceMount: !0,
36704
36704
  className: "flex flex-col gap-1",
36705
- children: f(we.div, {
36705
+ children: f(be.div, {
36706
36706
  initial: !1,
36707
36707
  animate: {
36708
36708
  height: a ? "auto" : 0,
@@ -36846,7 +36846,7 @@ function Hee({ nonSortableItems: t, sortableItems: e, setSortableItems: n, conta
36846
36846
  window.removeEventListener("resize", j), T.current !== null && window.clearTimeout(T.current);
36847
36847
  };
36848
36848
  }, [i, e, l]);
36849
- const _ = "flex flex-col gap-0.5", L = Ce(() => v.reduce((j, z, Y) => (z.label in j || (j[z.label] = []), j[z.label].push(Y), j), {}), [v]), M = Ce(() => b && v.map((j, z) => f(Bee, {
36849
+ const _ = "flex flex-col gap-0.5", L = we(() => v.reduce((j, z, Y) => (z.label in j || (j[z.label] = []), j[z.label].push(Y), j), {}), [v]), M = we(() => b && v.map((j, z) => f(Bee, {
36850
36850
  isSortable: !c,
36851
36851
  tooltip: (L[j.label] ?? []).length > 1 ? j.tooltip : void 0,
36852
36852
  item: j,
@@ -36858,7 +36858,7 @@ function Hee({ nonSortableItems: t, sortableItems: e, setSortableItems: n, conta
36858
36858
  onReorderFinish: () => {
36859
36859
  a == null || a(v);
36860
36860
  }
36861
- }, `${j.href}-${j.label}`)), [b, v, L, k, C, a, c]), N = "flex flex-col gap-3", O = Ce(() => e.map((j) => f(sp, {
36861
+ }, `${j.href}-${j.label}`)), [b, v, L, k, C, a, c]), N = "flex flex-col gap-3", O = we(() => e.map((j) => f(sp, {
36862
36862
  category: j,
36863
36863
  isSortable: !c,
36864
36864
  dragConstraints: i,
@@ -36944,7 +36944,7 @@ function r4e({ onClick: t, placeholder: e, shortcut: n = ["cmd", "k"], ...i }) {
36944
36944
  })
36945
36945
  });
36946
36946
  }
36947
- const t9 = ({ position: t }) => f(we.div, {
36947
+ const t9 = ({ position: t }) => f(be.div, {
36948
36948
  initial: {
36949
36949
  opacity: 0
36950
36950
  },
@@ -36982,7 +36982,7 @@ function s4e({ header: t, body: e, footer: n, onFooterDropdownClick: i }) {
36982
36982
  }, p = () => n ? px(n) && i ? _3(n, {
36983
36983
  onDropdownClick: i
36984
36984
  }) : n : null;
36985
- return x(we.aside, {
36985
+ return x(be.aside, {
36986
36986
  initial: !1,
36987
36987
  "aria-label": u.navigation.sidebar.label,
36988
36988
  className: D("absolute bottom-0 left-0 top-0 z-10 flex w-[var(--ds-sidebar-width)] flex-col transition-[background-color]", r === "locked" ? "h-full" : D("shadow-lg ring-1 ring-f1-border-secondary backdrop-blur-2xl", s ? "h-full border-y-transparent border-l-transparent bg-f1-background/90" : "h-[calc(100%-16px)] bg-f1-background/60")),
@@ -37136,7 +37136,7 @@ function i9(t) {
37136
37136
  return Uee[t ?? "neutral"] ?? 0;
37137
37137
  }
37138
37138
  const Gee = ({ title: t, approvalsRequired: e = 1, status: n, approvers: i }) => {
37139
- const r = Ye(), s = e === 1 ? r.approvals.requiredNumbers.one : r.approvals.requiredNumbers.other.replace("{{count}}", e.toString()), o = r.approvals.statuses[n], a = Ce(() => i.map((l) => {
37139
+ const r = Ye(), s = e === 1 ? r.approvals.requiredNumbers.one : r.approvals.requiredNumbers.other.replace("{{count}}", e.toString()), o = r.approvals.statuses[n], a = we(() => i.map((l) => {
37140
37140
  const c = qee(l.status);
37141
37141
  return {
37142
37142
  firstName: l.firstName,
@@ -37280,7 +37280,7 @@ const tte = (t) => Array.isArray(t) ? t.every((e) => ete(e)) ? t : [{
37280
37280
  const o = Ye(), a = n === 1 ? o.status.selected.singular : o.status.selected.plural, l = e.slice(0, 2), c = e.slice(2).map((m) => ({
37281
37281
  ...m,
37282
37282
  critical: m.critical || !1
37283
- })), d = Ce(() => tte(s.primaryActions ?? []), [s.primaryActions]), u = Ce(() => d.map((m) => ({
37283
+ })), d = we(() => tte(s.primaryActions ?? []), [s.primaryActions]), u = we(() => d.map((m) => ({
37284
37284
  ...m,
37285
37285
  items: m.items.map((g) => ({
37286
37286
  value: g.label,
@@ -37290,9 +37290,9 @@ const tte = (t) => Array.isArray(t) ? t.every((e) => ete(e)) ? t : [{
37290
37290
  description: g.description,
37291
37291
  disabled: g.disabled
37292
37292
  }))
37293
- })), [d]), h = Ce(() => d.length === 1 && d[0].items.length === 1 ? d[0].items[0] : null, [d]), p = Je((m) => d.flatMap((g) => g.items).find((g) => g.label === m), [d]);
37293
+ })), [d]), h = we(() => d.length === 1 && d[0].items.length === 1 ? d[0].items[0] : null, [d]), p = Je((m) => d.flatMap((g) => g.items).find((g) => g.label === m), [d]);
37294
37294
  return f(ht, {
37295
- children: t && x(we.div, {
37295
+ children: t && x(be.div, {
37296
37296
  initial: {
37297
37297
  opacity: 0,
37298
37298
  y: 32,
@@ -37391,7 +37391,7 @@ const tte = (t) => Array.isArray(t) ? t.every((e) => ete(e)) ? t : [{
37391
37391
  })
37392
37392
  });
37393
37393
  }, ite = ({ primaryActions: t, secondaryActions: e, otherActions: n }) => {
37394
- const i = (Array.isArray(t) ? t : [t]).filter((l) => l !== void 0), r = e || [], s = Ce(() => (n || []).map((l) => l.items).reduce((l, c) => (l.length > 0 && l.push({
37394
+ const i = (Array.isArray(t) ? t : [t]).filter((l) => l !== void 0), r = e || [], s = we(() => (n || []).map((l) => l.items).reduce((l, c) => (l.length > 0 && l.push({
37395
37395
  type: "separator"
37396
37396
  }), l.push(...c), l), []), [n]), [o, a] = X(!1);
37397
37397
  return i.length === 0 && r.length === 0 && s.length === 0 ? null : x("div", {
@@ -37467,30 +37467,30 @@ const tte = (t) => Array.isArray(t) ? t.every((e) => ete(e)) ? t : [{
37467
37467
  ease: [0.175, 0.885, 0.32, 1.05]
37468
37468
  },
37469
37469
  children: f(ht, {
37470
- children: f(we.div, {
37470
+ children: f(be.div, {
37471
37471
  layout: !0,
37472
37472
  ref: o,
37473
37473
  className: D("relative flex h-8 w-fit min-w-8 max-w-[180px] items-center justify-center", (i || t) && "w-[180px]"),
37474
- children: i ? f(we.div, {
37474
+ children: i ? f(be.div, {
37475
37475
  layout: !0,
37476
37476
  layoutId: "search-container",
37477
37477
  className: "absolute inset-0 h-8 w-full bg-f1-border p-px transition-colors focus-within:bg-f1-border-hover",
37478
37478
  style: {
37479
37479
  borderRadius: 12
37480
37480
  },
37481
- children: x(we.div, {
37481
+ children: x(be.div, {
37482
37482
  layout: !0,
37483
37483
  className: "relative flex h-full w-full items-center justify-between gap-1 overflow-hidden bg-f1-background pr-1.5",
37484
37484
  style: {
37485
37485
  borderRadius: 11
37486
37486
  },
37487
- children: [f(we.div, {
37487
+ children: [f(be.div, {
37488
37488
  className: "absolute left-[5px] top-[5px] z-10 flex h-5 w-5 items-center justify-center text-f1-icon",
37489
37489
  layoutId: "search-icon",
37490
37490
  children: f(o9, {
37491
37491
  loading: n
37492
37492
  }, "loading")
37493
- }), f(we.input, {
37493
+ }), f(be.input, {
37494
37494
  layout: !0,
37495
37495
  ref: a,
37496
37496
  type: "text",
@@ -37508,7 +37508,7 @@ const tte = (t) => Array.isArray(t) ? t.every((e) => ete(e)) ? t : [{
37508
37508
  opacity: 0
37509
37509
  },
37510
37510
  onKeyDown: u
37511
- }), f(we.div, {
37511
+ }), f(be.div, {
37512
37512
  tabIndex: 0,
37513
37513
  className: D("flex h-5 w-5 items-center justify-center rounded-full", zt()),
37514
37514
  onClick: (h) => {
@@ -37526,7 +37526,7 @@ const tte = (t) => Array.isArray(t) ? t.every((e) => ete(e)) ? t : [{
37526
37526
  })
37527
37527
  })]
37528
37528
  })
37529
- }) : f(we.div, {
37529
+ }) : f(be.div, {
37530
37530
  role: "button",
37531
37531
  "aria-label": l.actions.search,
37532
37532
  tabIndex: 0,
@@ -37538,13 +37538,13 @@ const tte = (t) => Array.isArray(t) ? t.every((e) => ete(e)) ? t : [{
37538
37538
  style: {
37539
37539
  borderRadius: 10
37540
37540
  },
37541
- children: x(we.div, {
37541
+ children: x(be.div, {
37542
37542
  layout: !0,
37543
37543
  className: "relative flex h-full w-full items-center gap-1 overflow-hidden bg-f1-background",
37544
37544
  style: {
37545
37545
  borderRadius: 9
37546
37546
  },
37547
- children: [f(we.div, {
37547
+ children: [f(be.div, {
37548
37548
  className: "absolute left-[5px] top-[5px] flex h-5 w-5 items-center justify-center text-f1-icon-bold",
37549
37549
  layoutId: "search-icon",
37550
37550
  children: f(o9, {
@@ -37552,11 +37552,11 @@ const tte = (t) => Array.isArray(t) ? t.every((e) => ete(e)) ? t : [{
37552
37552
  })
37553
37553
  }), t && x("div", {
37554
37554
  className: "flex h-7 w-full items-center justify-between gap-1.5 overflow-hidden pr-1.5",
37555
- children: [f(we.div, {
37555
+ children: [f(be.div, {
37556
37556
  layout: !0,
37557
37557
  className: "line-clamp-1 overflow-hidden py-2 pl-7",
37558
37558
  children: t
37559
- }), f(we.div, {
37559
+ }), f(be.div, {
37560
37560
  tabIndex: 0,
37561
37561
  className: D("flex h-5 w-5 items-center justify-center rounded-full", zt()),
37562
37562
  onClick: (h) => {
@@ -37709,7 +37709,7 @@ T_.displayName = "PaginationEllipsis";
37709
37709
  function ate({ totalPages: t, currentPage: e = 1, onPageChange: n, showControls: i = !0, ariaLabel: r = "Page navigation", visibleRange: s = 3, hasNextPage: o = !0, disabled: a = !1 }) {
37710
37710
  const l = t === 0, c = Je((u) => {
37711
37711
  n && (l || u >= 1 && u <= t) && n(u);
37712
- }, [n, t, l]), d = Ce(() => {
37712
+ }, [n, t, l]), d = we(() => {
37713
37713
  if (l) return [];
37714
37714
  const u = [];
37715
37715
  if (t <= 5)
@@ -37828,7 +37828,7 @@ const X4 = ({ paginationInfo: t, setPage: e, className: n }) => {
37828
37828
  ..._,
37829
37829
  type: "item"
37830
37830
  })), C = w.find((_) => _.type === "primary") || void 0, S = w.filter((_) => _.type === "secondary") || [], E = !!t.selectable && v !== void 0, T = u(m, r);
37831
- return f(we.div, {
37831
+ return f(be.div, {
37832
37832
  layout: !0,
37833
37833
  initial: "hidden",
37834
37834
  animate: "visible",
@@ -37860,7 +37860,7 @@ const X4 = ({ paginationInfo: t, setPage: e, className: n }) => {
37860
37860
  });
37861
37861
  }, cte = ({ cardProperties: t, title: e, description: n, avatar: i, image: r, compact: s, source: o, onSelectItems: a, onLoadData: l, onLoadError: c, tmpFullWidth: d }) => {
37862
37862
  var T, _;
37863
- const u = Ce(() => {
37863
+ const u = we(() => {
37864
37864
  if (o.dataAdapter.paginationType === "pages") {
37865
37865
  const L = o.dataAdapter.perPage, M = lte(L ?? 24);
37866
37866
  return {
@@ -37987,7 +37987,7 @@ function fte(t, e) {
37987
37987
  return n;
37988
37988
  }
37989
37989
  const dte = ({ source: t, lane: e, onError: n, onHookUpdate: i }) => {
37990
- const r = Ce(() => fte(t.currentFilters, e.filters), [t.currentFilters, e.filters]), s = z0(t, {
37990
+ const r = we(() => fte(t.currentFilters, e.filters), [t.currentFilters, e.filters]), s = z0(t, {
37991
37991
  filters: r,
37992
37992
  onError: n
37993
37993
  });
@@ -37997,16 +37997,16 @@ const dte = ({ source: t, lane: e, onError: n, onHookUpdate: i }) => {
37997
37997
  };
37998
37998
  function ute(t, e = {}) {
37999
37999
  const { lanes: n } = t;
38000
- if (!Ce(() => n && n.length > 0, [n]))
38000
+ if (!we(() => n && n.length > 0, [n]))
38001
38001
  throw new Error("Lanes has not been configured on data source");
38002
38002
  const [r, s] = X({}), o = Je((v, y) => {
38003
38003
  s((b) => ({
38004
38004
  ...b,
38005
38005
  [v]: y
38006
38006
  }));
38007
- }, []), a = Ce(() => JSON.stringify(n), [n]), l = Ce(() => JSON.stringify(t.currentFilters), [t.currentFilters]), c = Ce(() => JSON.stringify(t.currentNavigationFilters), [t.currentNavigationFilters]), d = Ce(() => JSON.stringify(t.currentSortings), [t.currentSortings]), u = Ce(() => JSON.stringify(t.currentGrouping), [t.currentGrouping]), h = Ce(() => JSON.stringify(t.currentSearch), [t.currentSearch]), p = Ce(() => JSON.stringify(t.grouping), [t.grouping]), m = Ce(() => JSON.stringify(t.dataAdapter), [t.dataAdapter]);
38007
+ }, []), a = we(() => JSON.stringify(n), [n]), l = we(() => JSON.stringify(t.currentFilters), [t.currentFilters]), c = we(() => JSON.stringify(t.currentNavigationFilters), [t.currentNavigationFilters]), d = we(() => JSON.stringify(t.currentSortings), [t.currentSortings]), u = we(() => JSON.stringify(t.currentGrouping), [t.currentGrouping]), h = we(() => JSON.stringify(t.currentSearch), [t.currentSearch]), p = we(() => JSON.stringify(t.grouping), [t.grouping]), m = we(() => JSON.stringify(t.dataAdapter), [t.dataAdapter]);
38008
38008
  return {
38009
- lanesProvider: Ce(() => (n || []).map((v) => f(dte, {
38009
+ lanesProvider: we(() => (n || []).map((v) => f(dte, {
38010
38010
  lane: v,
38011
38011
  onError: e.onError,
38012
38012
  source: t,
@@ -38069,7 +38069,7 @@ const hte = (t) => {
38069
38069
  byLane: c
38070
38070
  }, a);
38071
38071
  }, [s]);
38072
- const l = Ce(() => (t || []).map((c) => f(pte, {
38072
+ const l = we(() => (t || []).map((c) => f(pte, {
38073
38073
  source: e,
38074
38074
  data: c.data || {
38075
38075
  type: "flat",
@@ -38350,7 +38350,7 @@ function Nte({ title: t, items: e, renderCard: n, getKey: i, emptyState: r, fetc
38350
38350
  children: a ? x(Mi, {
38351
38351
  className: D("relative h-full flex-1 rounded-lg", a && "select-none opacity-50 transition-opacity"),
38352
38352
  children: [f(R2, {}), f(ht, {
38353
- children: f(we.div, {
38353
+ children: f(be.div, {
38354
38354
  className: "absolute inset-0 m-auto flex w-10 cursor-progress items-center justify-center",
38355
38355
  initial: {
38356
38356
  opacity: 0
@@ -38386,7 +38386,7 @@ function Nte({ title: t, items: e, renderCard: n, getKey: i, emptyState: r, fetc
38386
38386
  })]
38387
38387
  })
38388
38388
  }), c && f(ht, {
38389
- children: f(we.div, {
38389
+ children: f(be.div, {
38390
38390
  className: "absolute inset-0 m-auto flex w-10 cursor-progress items-center justify-center",
38391
38391
  initial: {
38392
38392
  opacity: 0
@@ -38521,8 +38521,8 @@ function Rte({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
38521
38521
  return J.type === "list-droppable" && J.id === t;
38522
38522
  });
38523
38523
  l(z);
38524
- const Y = String(j.data.id), ve = String(((Ve = j.data.data) == null ? void 0 : Ve.laneId) ?? "") || String(((G = (R = O.initial.dropTargets.find((ne) => ne.data.type === "list-droppable")) == null ? void 0 : R.data) == null ? void 0 : G.id) ?? ""), he = String(ve) === String(t), be = i.items.findIndex((ne, J) => String(i.getKey(ne, J)) === Y);
38525
- if (z && he ? L(be) : (!z || !he) && L(-1), z && y && i.items.length === 0 ? (T(!0), k(null), S(null)) : z && y && i.items.length > 0 && T(!1), z && y) {
38524
+ const Y = String(j.data.id), ve = String(((Ve = j.data.data) == null ? void 0 : Ve.laneId) ?? "") || String(((G = (R = O.initial.dropTargets.find((ne) => ne.data.type === "list-droppable")) == null ? void 0 : R.data) == null ? void 0 : G.id) ?? ""), he = String(ve) === String(t), Ce = i.items.findIndex((ne, J) => String(i.getKey(ne, J)) === Y);
38525
+ if (z && he ? L(Ce) : (!z || !he) && L(-1), z && y && i.items.length === 0 ? (T(!0), k(null), S(null)) : z && y && i.items.length > 0 && T(!1), z && y) {
38526
38526
  const ne = p.current || r.current;
38527
38527
  if (ne) {
38528
38528
  const J = ne.getBoundingClientRect(), K = (U = O.current.input) == null ? void 0 : U.clientY, oe = (q = O.current.input) == null ? void 0 : q.clientX;
@@ -38545,7 +38545,7 @@ function Rte({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
38545
38545
  const Be = ge.getAttribute("data-index"), Ze = Be ? Number(Be) : -1, gt = ge.getBoundingClientRect(), vt = gt.top + gt.height / 2, Rt = Math.abs(K - vt);
38546
38546
  Rt < ie && (ie = Rt, Z = Ze, ke = K < vt ? "top" : "bottom");
38547
38547
  }
38548
- he && be >= 0 && (Z === be && ke === "top" || Z === be && ke === "bottom" || Z === be - 1 && ke === "bottom" || Z === be + 1 && ke === "top") ? (k(null), S(null)) : (k(Z >= 0 ? Z : null), S(Z >= 0 ? ke : null));
38548
+ he && Ce >= 0 && (Z === Ce && ke === "top" || Z === Ce && ke === "bottom" || Z === Ce - 1 && ke === "bottom" || Z === Ce + 1 && ke === "top") ? (k(null), S(null)) : (k(Z >= 0 ? Z : null), S(Z >= 0 ? ke : null));
38549
38549
  }
38550
38550
  }
38551
38551
  }
@@ -38654,9 +38654,9 @@ function Rte({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
38654
38654
  let O = null, j = null;
38655
38655
  const z = () => {
38656
38656
  var ne;
38657
- const be = (ne = N.parentElement) == null ? void 0 : ne.parentElement;
38658
- if (!be) return;
38659
- const Ve = be.offsetHeight, R = N.style.height;
38657
+ const Ce = (ne = N.parentElement) == null ? void 0 : ne.parentElement;
38658
+ if (!Ce) return;
38659
+ const Ve = Ce.offsetHeight, R = N.style.height;
38660
38660
  N.style.height = "auto", M.offsetHeight;
38661
38661
  const G = M.scrollHeight;
38662
38662
  N.style.height = R;
@@ -38821,8 +38821,8 @@ function l9(t) {
38821
38821
  return R;
38822
38822
  });
38823
38823
  c(he);
38824
- const be = he.map((R) => `${R.id}:[${R.items.map((G, U) => i(G, U, R.id)).join(",")}]`).join("|");
38825
- u.current = be, d.current = be;
38824
+ const Ce = he.map((R) => `${R.id}:[${R.items.map((G, U) => i(G, U, R.id)).join(",")}]`).join("|");
38825
+ u.current = Ce, d.current = Ce;
38826
38826
  try {
38827
38827
  const R = L == null ? null : N[j].items[L], G = await ((Ve = s == null ? void 0 : s.onMove) == null ? void 0 : Ve.call(s, E, T, Y, R ? {
38828
38828
  record: R,
@@ -38892,7 +38892,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
38892
38892
  }), p = rM();
38893
38893
  if (a.currentGrouping && p)
38894
38894
  throw new Error("Grouping is not supported in Kanban yet");
38895
- const [m] = X(() => Symbol("kanban-visualization")), g = a.idProvider, v = Ce(() => JSON.stringify(Object.values(h).map((N) => N.data)), [h]), y = Ce(() => t.map((N) => {
38895
+ const [m] = X(() => Symbol("kanban-visualization")), g = a.idProvider, v = we(() => JSON.stringify(Object.values(h).map((N) => N.data)), [h]), y = we(() => t.map((N) => {
38896
38896
  var O, j;
38897
38897
  return {
38898
38898
  ...N,
@@ -38927,7 +38927,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
38927
38927
  return j != null ? String(j) : String(O);
38928
38928
  },
38929
38929
  renderCard: (N, O, j, z) => {
38930
- const Y = String(g ? g(N, O) : (N == null ? void 0 : N.id) ?? O), ce = a.selectable ? a.selectable(N) : N.id, ve = M && z ? M.get(z) : void 0, he = (typeof ce == "string" || typeof ce == "number") && ve && (ve == null ? void 0 : ve.selectedItems.has(ce)), be = a.itemUrl ? a.itemUrl(N) : void 0, Ve = a.itemOnClick ? a.itemOnClick(N) : void 0;
38930
+ const Y = String(g ? g(N, O) : (N == null ? void 0 : N.id) ?? O), ce = a.selectable ? a.selectable(N) : N.id, ve = M && z ? M.get(z) : void 0, he = (typeof ce == "string" || typeof ce == "number") && ve && (ve == null ? void 0 : ve.selectedItems.has(ce)), Ce = a.itemUrl ? a.itemUrl(N) : void 0, Ve = a.itemOnClick ? a.itemOnClick(N) : void 0;
38931
38931
  return f(Tte, {
38932
38932
  drag: {
38933
38933
  id: Y,
@@ -38955,11 +38955,11 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
38955
38955
  ve && ve.handleSelectItemChange(N, R);
38956
38956
  },
38957
38957
  onClick: Ve,
38958
- link: be
38958
+ link: Ce
38959
38959
  }, Y);
38960
38960
  },
38961
38961
  onCreate: o
38962
- }, C = Ce(() => {
38962
+ }, C = we(() => {
38963
38963
  const N = Object.values(h);
38964
38964
  if (N.length !== 0)
38965
38965
  return N.reduce((O, j) => {
@@ -38967,7 +38967,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
38967
38967
  const z = ((Y = j.paginationInfo) == null ? void 0 : Y.total) ?? j.data.records.length;
38968
38968
  return O + (typeof z == "number" ? z : 0);
38969
38969
  }, 0);
38970
- }, [h]), S = Ce(() => {
38970
+ }, [h]), S = we(() => {
38971
38971
  const N = Object.values(h);
38972
38972
  return N.length === 0 ? !0 : N.some((O) => O.isInitialLoading);
38973
38973
  }, [h]);
@@ -38980,7 +38980,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
38980
38980
  data: Object.values(h).flatMap((N) => N.data.records)
38981
38981
  });
38982
38982
  }, [C, S]);
38983
- const E = a.currentSortings === null, T = Ce(() => {
38983
+ const E = a.currentSortings === null, T = we(() => {
38984
38984
  const N = /* @__PURE__ */ new Map();
38985
38985
  return y.forEach((O) => {
38986
38986
  const j = /* @__PURE__ */ new Map();
@@ -38999,7 +38999,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
38999
38999
  },
39000
39000
  onMove: s
39001
39001
  };
39002
- const _ = Ce(() => t.map((N) => {
39002
+ const _ = we(() => t.map((N) => {
39003
39003
  var O, j;
39004
39004
  return {
39005
39005
  id: N.id,
@@ -39374,7 +39374,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
39374
39374
  open: C[M.key],
39375
39375
  onOpenChange: (Y) => S(M.key, Y)
39376
39376
  }, `group-header-${M.key}`), f(ht, {
39377
- children: (!w || C[M.key]) && f(we.div, {
39377
+ children: (!w || C[M.key]) && f(be.div, {
39378
39378
  initial: {
39379
39379
  height: 0,
39380
39380
  opacity: 0
@@ -39489,7 +39489,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
39489
39489
  }, [JSON.stringify(n == null ? void 0 : n.hidden)]), Ae(() => {
39490
39490
  n != null && n.order && l(n.order);
39491
39491
  }, [JSON.stringify(n == null ? void 0 : n.order)]);
39492
- const c = Ce(() => {
39492
+ const c = we(() => {
39493
39493
  const u = [...t], h = e || 1;
39494
39494
  return [
39495
39495
  // Frozen columns can not be hidden even if the id is in status
@@ -39527,7 +39527,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
39527
39527
  r
39528
39528
  ]);
39529
39529
  return {
39530
- columns: Ce(() => c.filter((u) => u.visible).map((u) => u.column), [c]),
39530
+ columns: we(() => c.filter((u) => u.visible).map((u) => u.column), [c]),
39531
39531
  columnsWithStatus: c,
39532
39532
  colsHidden: s,
39533
39533
  setColsHidden: o,
@@ -39603,7 +39603,7 @@ const Pte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
39603
39603
  }, o.id))
39604
39604
  });
39605
39605
  }, Jte = ({ columns: t, frozenColumns: e, allowSorting: n, allowHiding: i }) => {
39606
- const r = Ye(), { settings: s, setVisualizationSettings: o } = W0(), { columnsWithStatus: a } = B_(t, e, s.visualization.table, n, i), l = Ce(() => a.filter((h) => i || h.visible).map((h) => ({
39606
+ const r = Ye(), { settings: s, setVisualizationSettings: o } = W0(), { columnsWithStatus: a } = B_(t, e, s.visualization.table, n, i), l = we(() => a.filter((h) => i || h.visible).map((h) => ({
39607
39607
  id: h.column.id,
39608
39608
  label: h.column.label,
39609
39609
  sortable: h.sortable,
@@ -39825,7 +39825,7 @@ function Mr({ children: t, href: e, onClick: n, width: i = "auto", firstCell: r
39825
39825
  right: y
39826
39826
  },
39827
39827
  children: [f(ht, {
39828
- children: (p && d || m && u) && f(we.div, {
39828
+ children: (p && d || m && u) && f(be.div, {
39829
39829
  className: D("absolute inset-y-0 h-full w-4 from-f1-foreground-secondary to-transparent", p && "-right-4 bg-gradient-to-r", m && "-left-4 bg-gradient-to-l"),
39830
39830
  initial: {
39831
39831
  opacity: 0
@@ -39915,7 +39915,7 @@ function td({ children: t, width: e = "auto", sortState: n = "none", onSortClick
39915
39915
  })
39916
39916
  })
39917
39917
  })
39918
- }), i && f(we.button, {
39918
+ }), i && f(be.button, {
39919
39919
  onClick: i,
39920
39920
  className: D("relative h-5 w-5 rounded-xs p-1 text-f1-foreground-secondary opacity-0 transition-all focus-within:opacity-100 hover:bg-f1-background-hover group-hover:opacity-100", zt()),
39921
39921
  "aria-label": "Sort",
@@ -39926,7 +39926,7 @@ function td({ children: t, width: e = "auto", sortState: n = "none", onSortClick
39926
39926
  duration: 0.1
39927
39927
  },
39928
39928
  children: x(ht, {
39929
- children: [f(we.div, {
39929
+ children: [f(be.div, {
39930
39930
  className: "absolute left-1 top-1 flex h-3 w-3 items-center justify-center",
39931
39931
  animate: {
39932
39932
  rotate: n === "desc" ? 0 : 180,
@@ -39942,7 +39942,7 @@ function td({ children: t, width: e = "auto", sortState: n = "none", onSortClick
39942
39942
  icon: Hc,
39943
39943
  size: "xs"
39944
39944
  })
39945
- }, "sort-arrow"), n === "none" && f(we.div, {
39945
+ }, "sort-arrow"), n === "none" && f(be.div, {
39946
39946
  className: "absolute left-1 top-1 flex h-3 w-3 items-center justify-center",
39947
39947
  initial: {
39948
39948
  opacity: 0,
@@ -39991,7 +39991,7 @@ function td({ children: t, width: e = "auto", sortState: n = "none", onSortClick
39991
39991
  children: [f("div", {
39992
39992
  className: "absolute inset-x-0 top-0 z-[1] h-px w-full bg-f1-border-secondary"
39993
39993
  }), f(ht, {
39994
- children: (h && d || p && u) && f(we.div, {
39994
+ children: (h && d || p && u) && f(be.div, {
39995
39995
  className: D("absolute inset-y-0 h-full w-4 from-f1-foreground-secondary to-transparent", h && "-right-4 bg-gradient-to-r", p && "-left-4 bg-gradient-to-l"),
39996
39996
  initial: {
39997
39997
  opacity: 0
@@ -40045,7 +40045,7 @@ function pne({ children: t, loading: e = !1 }) {
40045
40045
  "aria-busy": e ? "true" : void 0,
40046
40046
  children: t
40047
40047
  }), f(ht, {
40048
- children: e && f(we.div, {
40048
+ children: e && f(be.div, {
40049
40049
  className: "absolute inset-0 flex cursor-progress items-center justify-center",
40050
40050
  initial: {
40051
40051
  opacity: 0
@@ -40326,12 +40326,12 @@ const Y_ = (t, e, n) => {
40326
40326
  var Y, ce, ve, he;
40327
40327
  const L = T, M = (ce = (Y = t.source).itemsWithChildren) == null ? void 0 : ce.call(Y, L), N = _ === 0, O = _ === o.length - 1, j = (((ve = t.nestedRowProps) == null ? void 0 : ve.depth) ?? 0) + 1, z = () => {
40328
40328
  if (N)
40329
- return (be) => {
40330
- h(be);
40329
+ return (Ce) => {
40330
+ h(Ce);
40331
40331
  };
40332
40332
  if (O && !v)
40333
- return (be) => {
40334
- p(be);
40333
+ return (Ce) => {
40334
+ p(Ce);
40335
40335
  };
40336
40336
  };
40337
40337
  return M ? o2(eS, {
@@ -40474,7 +40474,7 @@ const Y_ = (t, e, n) => {
40474
40474
  }, k);
40475
40475
  }, hl = B(Mne), One = ({ columns: t, source: e, frozenColumns: n = 0, onSelectItems: i, onLoadData: r, onLoadError: s, allowColumnHiding: o, allowColumnReordering: a }) => {
40476
40476
  var q, ne, J;
40477
- const l = Ye(), [c] = X(() => we.create(hl)), { settings: d } = W0(), { columns: u } = B_(t, n, (q = d.visualization) == null ? void 0 : q.table, a, o), { data: h, paginationInfo: p, setPage: m, isInitialLoading: g, isLoadingMore: v, loadMore: y, summaries: b } = z0(e, {
40477
+ const l = Ye(), [c] = X(() => be.create(hl)), { settings: d } = W0(), { columns: u } = B_(t, n, (q = d.visualization) == null ? void 0 : q.table, a, o), { data: h, paginationInfo: p, setPage: m, isInitialLoading: g, isLoadingMore: v, loadMore: y, summaries: b } = z0(e, {
40478
40478
  onError: (K) => {
40479
40479
  s(K);
40480
40480
  }
@@ -40488,14 +40488,14 @@ const Y_ = (t, e, n) => {
40488
40488
  data: h.records
40489
40489
  });
40490
40490
  }, [p == null ? void 0 : p.total, h.records]);
40491
- const E = Ce(() => n, [n]), { selectedItems: T, allSelectedStatus: _, groupAllSelectedStatus: L, handleSelectItemChange: M, handleSelectAll: N, handleSelectGroupChange: O } = m0({
40491
+ const E = we(() => n, [n]), { selectedItems: T, allSelectedStatus: _, groupAllSelectedStatus: L, handleSelectItemChange: M, handleSelectAll: N, handleSelectGroupChange: O } = m0({
40492
40492
  data: h,
40493
40493
  paginationInfo: p,
40494
40494
  source: e,
40495
40495
  onSelectItems: i,
40496
40496
  selectionMode: "multi",
40497
40497
  selectedState: e.defaultSelectedItems
40498
- }), j = Ce(() => {
40498
+ }), j = we(() => {
40499
40499
  var K;
40500
40500
  return !b || !e.summaries ? null : {
40501
40501
  data: b,
@@ -40513,7 +40513,7 @@ const Y_ = (t, e, n) => {
40513
40513
  field: K,
40514
40514
  order: "desc"
40515
40515
  } : null);
40516
- }, ce = (ne = e.grouping) == null ? void 0 : ne.collapsible, ve = (J = e.grouping) == null ? void 0 : J.defaultOpenGroups, { openGroups: he, setGroupOpen: be } = v3((h == null ? void 0 : h.type) === "grouped" ? h.groups : [], ve), Ve = u.length + (e.itemActions ? 1 : 0) + (e.selectable ? 1 : 0), { getStickyPosition: R, checkColumnWidth: G } = Y_(E, u, !!e.selectable), U = h == null ? void 0 : h.records.some((K) => {
40516
+ }, ce = (ne = e.grouping) == null ? void 0 : ne.collapsible, ve = (J = e.grouping) == null ? void 0 : J.defaultOpenGroups, { openGroups: he, setGroupOpen: Ce } = v3((h == null ? void 0 : h.type) === "grouped" ? h.groups : [], ve), Ve = u.length + (e.itemActions ? 1 : 0) + (e.selectable ? 1 : 0), { getStickyPosition: R, checkColumnWidth: G } = Y_(E, u, !!e.selectable), U = h == null ? void 0 : h.records.some((K) => {
40517
40517
  var oe;
40518
40518
  return (oe = e.itemsWithChildren) == null ? void 0 : oe.call(e, K);
40519
40519
  });
@@ -40588,7 +40588,7 @@ const Y_ = (t, e, n) => {
40588
40588
  label: K.label,
40589
40589
  itemCount: se,
40590
40590
  open: he[K.key],
40591
- onOpenChange: (me) => be(K.key, me)
40591
+ onOpenChange: (me) => Ce(K.key, me)
40592
40592
  })
40593
40593
  }), f(Mr, {
40594
40594
  colSpan: u.length - (E || 1) + (e.selectable ? 1 : 0),
@@ -40856,9 +40856,9 @@ const Y_ = (t, e, n) => {
40856
40856
  h(!1), n(T);
40857
40857
  }, m = (T) => {
40858
40858
  s(T);
40859
- }, g = t && t.length > 1, v = i && d > 0, y = o && Object.keys(o).length > 0, b = Ce(() => t[e], [e]), w = Ce(() => f(Bne, {
40859
+ }, g = t && t.length > 1, v = i && d > 0, y = o && Object.keys(o).length > 0, b = we(() => t[e], [e]), w = we(() => f(Bne, {
40860
40860
  visualization: b
40861
- }, "visualization-settings"), [b]), k = Ce(() => Pne(b), [b]), C = Ce(() => {
40861
+ }, "visualization-settings"), [b]), k = we(() => Pne(b), [b]), C = we(() => {
40862
40862
  var L;
40863
40863
  const T = (L = t[e]) == null ? void 0 : L.type;
40864
40864
  if (!T) return "-";
@@ -40932,18 +40932,18 @@ const Y_ = (t, e, n) => {
40932
40932
  });
40933
40933
  }, nS = B(({ value: t, compareToValue: e, onDateChange: n, disabled: i, error: r, className: s, highlighted: o, onClick: a, navigation: l, granularity: c, hideGoToCurrent: d, ...u }, h) => {
40934
40934
  var E;
40935
- const p = Ye(), m = Ce(() => {
40935
+ const p = Ye(), m = we(() => {
40936
40936
  if (!t || !t.value)
40937
40937
  return [p.date.selectDate];
40938
40938
  const T = k3[t.granularity];
40939
40939
  return [t.value, Array.isArray(e) ? e[0] : e].filter((L) => L !== void 0).sort((L, M) => (L == null ? void 0 : L.from.getTime()) - (M == null ? void 0 : M.from.getTime())).map((L) => T.toString(L, p, "long"));
40940
- }, [t, p, e]), g = Ce(() => Object.values(m).join(" ⸱ "), [m]), v = (T) => {
40940
+ }, [t, p, e]), g = we(() => Object.values(m).join(" ⸱ "), [m]), v = (T) => {
40941
40941
  T && (n == null || n(T));
40942
- }, y = Ce(() => {
40942
+ }, y = we(() => {
40943
40943
  var T;
40944
40944
  if (u.minDate)
40945
40945
  return (T = c == null ? void 0 : c.toRange(u.minDate)) == null ? void 0 : T.from;
40946
- }, [u.minDate, c]), b = Ce(() => {
40946
+ }, [u.minDate, c]), b = we(() => {
40947
40947
  var T;
40948
40948
  if (u.maxDate)
40949
40949
  return (T = c == null ? void 0 : c.toRange(u.maxDate)) == null ? void 0 : T.to;
@@ -40980,6 +40980,7 @@ const Y_ = (t, e, n) => {
40980
40980
  disabled: !(C != null && C.prev),
40981
40981
  onClick: () => v((C == null ? void 0 : C.prev) ?? !1)
40982
40982
  }), f(Ft, {
40983
+ fontSize: "md",
40983
40984
  size: "sm",
40984
40985
  variant: "ghost",
40985
40986
  label: g,
@@ -40995,12 +40996,14 @@ const Y_ = (t, e, n) => {
40995
40996
  label: "Next",
40996
40997
  hideLabel: !0,
40997
40998
  size: "sm",
40999
+ fontSize: "md",
40998
41000
  disabled: !(C != null && C.next),
40999
41001
  onClick: () => v((C == null ? void 0 : C.next) ?? !1)
41000
41002
  })]
41001
41003
  }), !d && w && f("div", {
41002
41004
  className: "border-l-solid flex-shrink-0 border-[#f00]",
41003
41005
  children: f(Le, {
41006
+ fontSize: "md",
41004
41007
  size: "sm",
41005
41008
  variant: "ghost",
41006
41009
  label: (E = p.date.granularities[(t == null ? void 0 : t.granularity) ?? "day"]) == null ? void 0 : E.currentDate,
@@ -41015,7 +41018,7 @@ function $ne({ onSelect: t, defaultValue: e, presets: n = [], granularities: i =
41015
41018
  Ae(() => {
41016
41019
  dM(c, u) || h(c || e);
41017
41020
  }, [c, e]);
41018
- const [p, m] = X(), [g, v] = X(!1), y = Ce(() => k3[(u == null ? void 0 : u.granularity) ?? "day"], [u == null ? void 0 : u.granularity]), b = (C) => {
41021
+ const [p, m] = X(), [g, v] = X(!1), y = we(() => k3[(u == null ? void 0 : u.granularity) ?? "day"], [u == null ? void 0 : u.granularity]), b = (C) => {
41019
41022
  h(C), t == null || t(C);
41020
41023
  }, w = (C) => {
41021
41024
  m(C), l == null || l(C);
@@ -41146,12 +41149,12 @@ const zne = (t) => "date" in t, jne = {
41146
41149
  t && !qne(t) && console.error(
41147
41150
  `Invalid storage key format: "${t}". Key must follow the format "name/version" where name can be a path (e.g., "employees/list/") and version must start with "v" (e.g., "v1", "v2.1").`
41148
41151
  );
41149
- const a = Ce(
41152
+ const a = we(
41150
41153
  // Settings is always included
41151
41154
  () => [...Une(e), "settings"],
41152
41155
  // eslint-disable-next-line react-hooks/exhaustive-deps -- This is intentional
41153
41156
  [JSON.stringify(e)]
41154
- ), l = Ce(() => !i && !!t, [i, t]);
41157
+ ), l = we(() => !i && !!t, [i, t]);
41155
41158
  Ae(() => {
41156
41159
  if (!l) {
41157
41160
  s(!0);
@@ -41172,7 +41175,7 @@ const zne = (t) => "date" in t, jne = {
41172
41175
  );
41173
41176
  }), s(!0);
41174
41177
  }, [t, l]);
41175
- const c = Ce(
41178
+ const c = we(
41176
41179
  () => JSON.stringify(
41177
41180
  Object.entries(n).map(
41178
41181
  ([u, h]) => [
@@ -41215,16 +41218,16 @@ const zne = (t) => "date" in t, jne = {
41215
41218
  Ae(() => {
41216
41219
  ve(N);
41217
41220
  }, [ve, N]);
41218
- const he = Ce(() => Kee(S), [S]), be = Ce(() => Qee(Yee(E)), [E]), Ve = Ce(() => Math.min(E && "expanded" in E && E.expanded || 0, Zee), [E]), R = Ce(() => {
41221
+ const he = we(() => Kee(S), [S]), Ce = we(() => Qee(Yee(E)), [E]), Ve = we(() => Math.min(E && "expanded" in E && E.expanded || 0, Zee), [E]), R = we(() => {
41219
41222
  var ct;
41220
- return ((ct = be[0]) == null ? void 0 : ct.items.slice(0, Ve)) || [];
41221
- }, [be, Ve]), G = Ce(() => {
41223
+ return ((ct = Ce[0]) == null ? void 0 : ct.items.slice(0, Ve)) || [];
41224
+ }, [Ce, Ve]), G = we(() => {
41222
41225
  var ct;
41223
41226
  return [{
41224
- ...be[0],
41225
- items: ((ct = be[0]) == null ? void 0 : ct.items.slice(Ve)) || []
41226
- }, ...be.slice(1)].filter((xt) => xt.items.length > 0);
41227
- }, [be, Ve]), U = (he == null ? void 0 : he.length) > 0 || (be == null ? void 0 : be.length) > 0, [q, ne] = X(void 0), J = tx(), [K, oe] = X(void 0), se = Je((ct) => {
41227
+ ...Ce[0],
41228
+ items: ((ct = Ce[0]) == null ? void 0 : ct.items.slice(Ve)) || []
41229
+ }, ...Ce.slice(1)].filter((xt) => xt.items.length > 0);
41230
+ }, [Ce, Ve]), U = (he == null ? void 0 : he.length) > 0 || (Ce == null ? void 0 : Ce.length) > 0, [q, ne] = X(void 0), J = tx(), [K, oe] = X(void 0), se = Je((ct) => {
41228
41231
  if (!ct)
41229
41232
  return [];
41230
41233
  const xt = [];
@@ -41236,7 +41239,7 @@ const zne = (t) => "date" in t, jne = {
41236
41239
  return Et.length > 0 && xt.push({
41237
41240
  items: Et
41238
41241
  }), xt;
41239
- }, []), me = Ce(() => {
41242
+ }, []), me = we(() => {
41240
41243
  if (K)
41241
41244
  return "warningMessage" in K ? {
41242
41245
  warningMessage: K.warningMessage
@@ -41244,7 +41247,7 @@ const zne = (t) => "date" in t, jne = {
41244
41247
  primary: se(K.primary ?? []),
41245
41248
  secondary: ((K == null ? void 0 : K.secondary) ?? []).filter((ct) => !("type" in ct && ct.type === "separator"))
41246
41249
  };
41247
- }, [K, se]), [Ue, nt] = X(!1), [Re, Ct] = X(0), st = Ye(), Me = Ce(() => T === !0 ? (ct) => ct !== void 0 ? `${ct} ${st.collections.itemsCount}` : null : T || void 0, [T, st]), W = (ct, xt) => {
41250
+ }, [K, se]), [Ue, nt] = X(!1), [Re, Ct] = X(0), st = Ye(), Me = we(() => T === !0 ? (ct) => ct !== void 0 ? `${ct} ${st.collections.itemsCount}` : null : T || void 0, [T, st]), W = (ct, xt) => {
41248
41251
  n == null || n(ct, xt), nt(!!ct.allSelected || ct.itemsStatus.some((Sn) => Sn.checked)), Ct(ct.selectedCount), ne(() => xt);
41249
41252
  const Et = t.bulkActions ? t.bulkActions(ct) : void 0, pn = (Sn) => {
41250
41253
  if ("type" in Sn && Sn.type === "separator")
@@ -41265,7 +41268,7 @@ const zne = (t) => "date" in t, jne = {
41265
41268
  }) : "warningMessage" in Et && oe({
41266
41269
  warningMessage: Et.warningMessage
41267
41270
  }));
41268
- }, [Z, ie] = X(void 0), [ke, Ne] = X(!0), ge = Ce(() => [b == null ? void 0 : b.enabled, e.length > 1].some(Boolean), [b, e]), { emptyState: Be, setEmptyStateType: Ze } = ste(s, {
41271
+ }, [Z, ie] = X(void 0), [ke, Ne] = X(!0), ge = we(() => [b == null ? void 0 : b.enabled, e.length > 1].some(Boolean), [b, e]), { emptyState: Be, setEmptyStateType: Ze } = ste(s, {
41269
41272
  retry: () => {
41270
41273
  Ze(!1), h({
41271
41274
  ...u
@@ -41285,7 +41288,7 @@ const zne = (t) => "date" in t, jne = {
41285
41288
  Ae(() => {
41286
41289
  Ze(!1);
41287
41290
  }, [u, w, g, t.dataAdapter]);
41288
- const rr = Ce(() => Me !== void 0, [Me]), sr = Me === void 0 ? null : Z !== void 0 ? Me(Z) : null, { settings: _r, setSettings: Gr } = W0(), { storageReady: ae } = Gne(l, typeof a == "object" ? (a == null ? void 0 : a.features) ?? ["*"] : ["*"], {
41291
+ const rr = we(() => Me !== void 0, [Me]), sr = Me === void 0 ? null : Z !== void 0 ? Me(Z) : null, { settings: _r, setSettings: Gr } = W0(), { storageReady: ae } = Gne(l, typeof a == "object" ? (a == null ? void 0 : a.features) ?? ["*"] : ["*"], {
41289
41292
  settings: {
41290
41293
  value: _r,
41291
41294
  setValue: Gr
@@ -41329,11 +41332,11 @@ const zne = (t) => "date" in t, jne = {
41329
41332
  settings: _r
41330
41333
  });
41331
41334
  }, [u, w, g, N, z, _, _r]);
41332
- const Qe = Ce(() => {
41335
+ const Qe = we(() => {
41333
41336
  var pn, Sn;
41334
41337
  const ct = M ? Object.keys(M.groupBy).length + (M.mandatory ? 1 : 0) : 0, xt = Object.values(e).find((Kr) => Kr.type === "table"), Et = !!xt && (!!((pn = xt.options) != null && pn.allowColumnHiding) || !!((Sn = xt.options) != null && Sn.allowColumnReordering));
41335
41338
  return e && e.length > 1 || ct > 0 && !(M != null && M.hideSelector) || j && Object.keys(j).length > 0 || Et;
41336
- }, [e, M, j]), ut = Ce(() => ge || U || Qe || b && b.enabled, [ge, U, Qe, b]), it = Ce(() => rr ? d ? "top" : "bottom" : !1, [d, rr]), Ht = Ce(() => v ? ut ? "top" : "bottom" : !1, [v, ut]), _n = Ce(() => it === "top" || Ht === "top", [it, Ht]), Sr = Ce(() => d || ut || Ht === "bottom" || it === "bottom", [d, ut, Ht, it]);
41339
+ }, [e, M, j]), ut = we(() => ge || U || Qe || b && b.enabled, [ge, U, Qe, b]), it = we(() => rr ? d ? "top" : "bottom" : !1, [d, rr]), Ht = we(() => v ? ut ? "top" : "bottom" : !1, [v, ut]), _n = we(() => it === "top" || Ht === "top", [it, Ht]), Sr = we(() => d || ut || Ht === "bottom" || it === "bottom", [d, ut, Ht, it]);
41337
41340
  return x("div", {
41338
41341
  className: D("flex flex-col gap-4", J === "standard" && "-mx-6", o && "h-full flex-1"),
41339
41342
  style: {
@@ -41365,7 +41368,7 @@ const zne = (t) => "date" in t, jne = {
41365
41368
  presets: p,
41366
41369
  presetsLoading: _o,
41367
41370
  onChange: (ct) => h(ct),
41368
- children: [C && f(we.div, {
41371
+ children: [C && f(be.div, {
41369
41372
  className: "flex h-8 w-8 items-center justify-center",
41370
41373
  initial: {
41371
41374
  opacity: 0
@@ -41463,7 +41466,7 @@ const zne = (t) => "date" in t, jne = {
41463
41466
  lx(() => {
41464
41467
  s && l(s);
41465
41468
  }, [s]);
41466
- const c = Ce(() => r, e);
41469
+ const c = we(() => r, e);
41467
41470
  return {
41468
41471
  ...o,
41469
41472
  summaries: c,
@@ -54426,7 +54429,7 @@ function Ele(t) {
54426
54429
  E.set(M, he);
54427
54430
  }
54428
54431
  if (T)
54429
- for (var be = m ? 3 : 1, Ve = function(q) {
54432
+ for (var Ce = m ? 3 : 1, Ve = function(q) {
54430
54433
  var ne = k.find(function(J) {
54431
54434
  var K = E.get(J);
54432
54435
  if (K)
@@ -54436,7 +54439,7 @@ function Ele(t) {
54436
54439
  });
54437
54440
  if (ne)
54438
54441
  return _ = ne, "break";
54439
- }, R = be; R > 0; R--) {
54442
+ }, R = Ce; R > 0; R--) {
54440
54443
  var G = Ve(R);
54441
54444
  if (G === "break") break;
54442
54445
  }
@@ -54555,10 +54558,10 @@ function Rle(t) {
54555
54558
  };
54556
54559
  if (S) {
54557
54560
  if (s) {
54558
- var O, j = k === "y" ? gi : vi, z = k === "y" ? Qi : er, Y = k === "y" ? "height" : "width", ce = S[k], ve = ce + v[j], he = ce - v[z], be = p ? -T[Y] / 2 : 0, Ve = b === kl ? E[Y] : T[Y], R = b === kl ? -T[Y] : -E[Y], G = e.elements.arrow, U = p && G ? Ng(G) : {
54561
+ var O, j = k === "y" ? gi : vi, z = k === "y" ? Qi : er, Y = k === "y" ? "height" : "width", ce = S[k], ve = ce + v[j], he = ce - v[z], Ce = p ? -T[Y] / 2 : 0, Ve = b === kl ? E[Y] : T[Y], R = b === kl ? -T[Y] : -E[Y], G = e.elements.arrow, U = p && G ? Ng(G) : {
54559
54562
  width: 0,
54560
54563
  height: 0
54561
- }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZE(), ne = q[j], J = q[z], K = Ac(0, E[Y], U[Y]), oe = w ? E[Y] / 2 - be - K - ne - L.mainAxis : Ve - K - ne - L.mainAxis, se = w ? -E[Y] / 2 + be + K + J + L.mainAxis : R + K + J + L.mainAxis, me = e.elements.arrow && i1(e.elements.arrow), Ue = me ? k === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, nt = (O = M == null ? void 0 : M[k]) != null ? O : 0, Re = ce + oe - nt - Ue, Ct = ce + se - nt, st = Ac(p ? ku(ve, Re) : ve, ce, p ? qo(he, Ct) : he);
54564
+ }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZE(), ne = q[j], J = q[z], K = Ac(0, E[Y], U[Y]), oe = w ? E[Y] / 2 - Ce - K - ne - L.mainAxis : Ve - K - ne - L.mainAxis, se = w ? -E[Y] / 2 + Ce + K + J + L.mainAxis : R + K + J + L.mainAxis, me = e.elements.arrow && i1(e.elements.arrow), Ue = me ? k === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, nt = (O = M == null ? void 0 : M[k]) != null ? O : 0, Re = ce + oe - nt - Ue, Ct = ce + se - nt, st = Ac(p ? ku(ve, Re) : ve, ce, p ? qo(he, Ct) : he);
54562
54565
  S[k] = st, N[k] = st - ce;
54563
54566
  }
54564
54567
  if (a) {
@@ -55169,7 +55172,7 @@ function bce(t, e) {
55169
55172
  var T = b.map(function(ae) {
55170
55173
  return ae.fn(k);
55171
55174
  }), _ = t.hasAttribute("aria-expanded");
55172
- return me(), be(), ce(), ve("onCreate", [k]), n.showOnCreate && Ne(), S.addEventListener("mouseenter", function() {
55175
+ return me(), Ce(), ce(), ve("onCreate", [k]), n.showOnCreate && Ne(), S.addEventListener("mouseenter", function() {
55173
55176
  k.props.interactive && k.state.isVisible && k.clearDelayTimeouts();
55174
55177
  }), S.addEventListener("mouseleave", function() {
55175
55178
  k.props.interactive && k.props.trigger.indexOf("mouseenter") >= 0 && j().addEventListener("mousemove", m);
@@ -55224,7 +55227,7 @@ function bce(t, e) {
55224
55227
  });
55225
55228
  }
55226
55229
  }
55227
- function be() {
55230
+ function Ce() {
55228
55231
  if (!(_ || !k.props.aria.expanded)) {
55229
55232
  var ae = $a(k.props.triggerTarget || t);
55230
55233
  ae.forEach(function(ze) {
@@ -55327,7 +55330,7 @@ function bce(t, e) {
55327
55330
  var ze, Qe = !1;
55328
55331
  if (!(!k.state.isEnabled || Me(ae) || a)) {
55329
55332
  var ut = ((ze = d) == null ? void 0 : ze.type) === "focus";
55330
- d = ae, g = ae.currentTarget, be(), !k.state.isVisible && ice(ae) && M1.forEach(function(it) {
55333
+ d = ae, g = ae.currentTarget, Ce(), !k.state.isVisible && ice(ae) && M1.forEach(function(it) {
55331
55334
  return it(ae);
55332
55335
  }), ae.type === "click" && (k.props.trigger.indexOf("mouseenter") < 0 || o) && k.props.hideOnClick !== !1 && k.state.isVisible ? Qe = !0 : Ne(ae), ae.type === "click" && (o = !Qe), Qe && !ut && ge(ae);
55333
55336
  }
@@ -55473,7 +55476,7 @@ function bce(t, e) {
55473
55476
  }));
55474
55477
  k.props = Qe, me(), ze.interactiveDebounce !== Qe.interactiveDebounce && (Ve(), m = I8(Re, Qe.interactiveDebounce)), ze.triggerTarget && !Qe.triggerTarget ? $a(ze.triggerTarget).forEach(function(ut) {
55475
55478
  ut.removeAttribute("aria-expanded");
55476
- }) : Qe.triggerTarget && t.removeAttribute("aria-expanded"), be(), ce(), E && E(ze, Qe), k.popperInstance && (W(), ke().forEach(function(ut) {
55479
+ }) : Qe.triggerTarget && t.removeAttribute("aria-expanded"), Ce(), ce(), E && E(ze, Qe), k.popperInstance && (W(), ke().forEach(function(ut) {
55477
55480
  requestAnimationFrame(ut._tippy.popperInstance.forceUpdate);
55478
55481
  })), ve("onAfterUpdate", [k, ae]);
55479
55482
  }
@@ -55498,7 +55501,7 @@ function bce(t, e) {
55498
55501
  var Et = z(), pn = Et.box, Sn = Et.content;
55499
55502
  Ep([pn, Sn], it), B8([pn, Sn], "visible");
55500
55503
  }
55501
- he(), be(), R8(Tp, k), (xt = k.popperInstance) == null || xt.forceUpdate(), ve("onMount", [k]), k.props.animation && N() && K(it, function() {
55504
+ he(), Ce(), R8(Tp, k), (xt = k.popperInstance) == null || xt.forceUpdate(), ve("onMount", [k]), k.props.animation && N() && K(it, function() {
55502
55505
  k.state.isShown = !0, ve("onShown", [k]);
55503
55506
  });
55504
55507
  }
@@ -55513,7 +55516,7 @@ function bce(t, e) {
55513
55516
  var it = z(), Ht = it.box, _n = it.content;
55514
55517
  k.props.animation && (Ep([Ht, _n], ut), B8([Ht, _n], "hidden"));
55515
55518
  }
55516
- he(), be(), k.props.animation ? N() && J(ut, k.unmount) : k.unmount();
55519
+ he(), Ce(), k.props.animation ? N() && J(ut, k.unmount) : k.unmount();
55517
55520
  }
55518
55521
  }
55519
55522
  function sr(ae) {
@@ -56582,7 +56585,7 @@ const Gce = ({ editor: t, disabled: e, labels: n }) => {
56582
56585
  zIndex: 9999
56583
56586
  },
56584
56587
  children: f(ht, {
56585
- children: r && f(we.div, {
56588
+ children: r && f(be.div, {
56586
56589
  initial: {
56587
56590
  opacity: 0,
56588
56591
  y: 10,
@@ -56723,7 +56726,7 @@ const Y8 = ({ items: t, disabled: e = !1, activator: n, darkMode: i = !1, positi
56723
56726
  zIndex: 9999
56724
56727
  },
56725
56728
  children: f(ht, {
56726
- children: s && f(we.div, {
56729
+ children: s && f(be.div, {
56727
56730
  initial: {
56728
56731
  opacity: 0,
56729
56732
  scale: 0.95,
@@ -62391,7 +62394,7 @@ function WL({ pluginKey: t = bue, editor: e, char: n = "@", allowSpaces: i = !1,
62391
62394
  const L = (w = this.key) === null || w === void 0 ? void 0 : w.getState(b), M = (k = this.key) === null || k === void 0 ? void 0 : k.getState(y.state), N = L.active && M.active && L.range.from !== M.range.from, O = !L.active && M.active, j = L.active && !M.active, z = !O && !j && L.query !== M.query, Y = O || N && z, ce = z || N, ve = j || N && z;
62392
62395
  if (!Y && !ce && !ve)
62393
62396
  return;
62394
- const he = ve && !Y ? L : M, be = y.dom.querySelector(`[data-decoration-id="${he.decorationId}"]`);
62397
+ const he = ve && !Y ? L : M, Ce = y.dom.querySelector(`[data-decoration-id="${he.decorationId}"]`);
62395
62398
  m = {
62396
62399
  editor: e,
62397
62400
  range: he.range,
@@ -62403,10 +62406,10 @@ function WL({ pluginKey: t = bue, editor: e, char: n = "@", allowSpaces: i = !1,
62403
62406
  range: he.range,
62404
62407
  props: Ve
62405
62408
  }),
62406
- decorationNode: be,
62409
+ decorationNode: Ce,
62407
62410
  // virtual node for popper.js or tippy.js
62408
62411
  // this can be used for building popups without a DOM node
62409
- clientRect: be ? () => {
62412
+ clientRect: Ce ? () => {
62410
62413
  var Ve;
62411
62414
  const { decorationId: R } = (Ve = this.key) === null || Ve === void 0 ? void 0 : Ve.getState(e.state), G = y.dom.querySelector(`[data-decoration-id="${R}"]`);
62412
62415
  return (G == null ? void 0 : G.getBoundingClientRect()) || null;
@@ -63239,7 +63242,7 @@ const Tue = _ue.extend({
63239
63242
  currentConfig: l
63240
63243
  }), l5, a5(t), o5(t), YL(e, n)];
63241
63244
  }, Rue = (t, e, n, i, r) => {
63242
- const s = Ce(() => Iue(r.placeholder || "", r.toolbarLabels, r.slashCommandGroupLabels, r.moodTrackerLabels, r.liveCompanionLabels, r.transcriptLabels), [r]), o = Te(null), a = Je(({ editor: c }) => {
63245
+ const s = we(() => Iue(r.placeholder || "", r.toolbarLabels, r.slashCommandGroupLabels, r.moodTrackerLabels, r.liveCompanionLabels, r.transcriptLabels), [r]), o = Te(null), a = Je(({ editor: c }) => {
63243
63246
  o.current && clearTimeout(o.current), o.current = setTimeout(() => {
63244
63247
  const { from: d, to: u } = c.state.selection, h = c.isEmpty;
63245
63248
  h && (t != null && t.selectedAction) && !e ? i({
@@ -63295,7 +63298,7 @@ const Tue = _ue.extend({
63295
63298
  isLoading: e,
63296
63299
  setIsLoading: n
63297
63300
  };
63298
- }, Bue = (t, e) => Ce(() => {
63301
+ }, Bue = (t, e) => we(() => {
63299
63302
  var i;
63300
63303
  if (t != null && t.selectedTitle || t != null && t.selectedEmoji)
63301
63304
  return {
@@ -71622,7 +71625,7 @@ const y2e = (t) => {
71622
71625
  _ && _.chain().focus().insertContentAt(_.state.doc.content.size, z).run();
71623
71626
  }
71624
71627
  }));
71625
- const L = Ce(() => ({
71628
+ const L = we(() => ({
71626
71629
  offset: [0, 5]
71627
71630
  }), []), M = Je(({ node: z, pos: Y }) => {
71628
71631
  k.current = z ? {
@@ -71934,7 +71937,7 @@ const y2e = (t) => {
71934
71937
  accept: L2e(t),
71935
71938
  "aria-label": "Upload file"
71936
71939
  }), f(ht, {
71937
- children: e.length > 0 && f(we.div, {
71940
+ children: e.length > 0 && f(be.div, {
71938
71941
  initial: {
71939
71942
  height: 0,
71940
71943
  opacity: 0,
@@ -72041,7 +72044,7 @@ const y2e = (t) => {
72041
72044
  }, g.id))
72042
72045
  })]
72043
72046
  }), f(ht, {
72044
- children: r && r.subOptions && r.subOptions.length > 0 && f(we.div, {
72047
+ children: r && r.subOptions && r.subOptions.length > 0 && f(be.div, {
72045
72048
  ref: d,
72046
72049
  className: "absolute bottom-0 left-full z-50 max-h-60 w-60 overflow-y-auto rounded-lg border border-solid border-f1-border bg-f1-background p-1 drop-shadow-sm",
72047
72050
  style: {
@@ -72111,7 +72114,7 @@ const y2e = (t) => {
72111
72114
  zIndex: 9999
72112
72115
  },
72113
72116
  children: f(ht, {
72114
- children: c && f(we.div, {
72117
+ children: c && f(be.div, {
72115
72118
  initial: {
72116
72119
  opacity: 0,
72117
72120
  scale: 0.95,
@@ -72279,7 +72282,7 @@ const y2e = (t) => {
72279
72282
  className: "flex max-w-full items-center gap-2 py-3",
72280
72283
  children: [x("div", {
72281
72284
  className: "relative flex flex-grow items-center gap-2",
72282
- children: [f(we.div, {
72285
+ children: [f(be.div, {
72283
72286
  initial: {
72284
72287
  width: 0
72285
72288
  },
@@ -72305,7 +72308,7 @@ const y2e = (t) => {
72305
72308
  animationComplete: v,
72306
72309
  plainHtmlMode: g
72307
72310
  })
72308
- }), x(we.div, {
72311
+ }), x(be.div, {
72309
72312
  className: "flex items-center gap-2 overflow-hidden",
72310
72313
  initial: {
72311
72314
  opacity: 1
@@ -72515,7 +72518,7 @@ const W2e = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
72515
72518
  if (!t) return null;
72516
72519
  t.commands.setContent(e);
72517
72520
  }, X2e = B(function({ mentionsConfig: e, enhanceConfig: n, filesConfig: i, secondaryAction: r, primaryAction: s, maxCharacters: o, initialEditorState: a, onChange: l, placeholder: c, toolbarLabels: d, title: u, errorConfig: h, height: p = "auto", plainHtmlMode: m = !1, fullScreenMode: g = !0 }, v) {
72518
- const y = go(), b = Te(null), w = Te(null), k = Te(null), [C, S] = X(!1), [E, T] = X(!0), [_, L] = X(!1), [M, N] = X(!1), [O, j] = X(!1), [z, Y] = X(!1), [ce, ve] = X(null), [he, be] = X(!1), [Ve, R] = X(null), [G, U] = X((a == null ? void 0 : a.files) || []), [q, ne] = X((e == null ? void 0 : e.users) || []), [J, K] = X({
72521
+ const y = go(), b = Te(null), w = Te(null), k = Te(null), [C, S] = X(!1), [E, T] = X(!0), [_, L] = X(!1), [M, N] = X(!1), [O, j] = X(!1), [z, Y] = X(!1), [ce, ve] = X(null), [he, Ce] = X(!1), [Ve, R] = X(null), [G, U] = X((a == null ? void 0 : a.files) || []), [q, ne] = X((e == null ? void 0 : e.users) || []), [J, K] = X({
72519
72522
  html: (a == null ? void 0 : a.content) || "",
72520
72523
  json: null
72521
72524
  });
@@ -72612,7 +72615,7 @@ const W2e = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
72612
72615
  children: [f("div", {
72613
72616
  ref: k,
72614
72617
  className: D("scrollbar-macos relative flex w-full items-start justify-center overflow-y-auto pb-1 pl-3 pr-10 pt-3", M ? "h-full" : G2e(p)),
72615
- children: f(we.div, {
72618
+ children: f(be.div, {
72616
72619
  className: D("w-full overflow-hidden", M && "max-w-4xl"),
72617
72620
  initial: !1,
72618
72621
  animate: {
@@ -72629,7 +72632,7 @@ const W2e = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
72629
72632
  })
72630
72633
  })
72631
72634
  }), f(ht, {
72632
- children: _ && f(we.div, {
72635
+ children: _ && f(be.div, {
72633
72636
  initial: {
72634
72637
  opacity: 0,
72635
72638
  scale: 0.95
@@ -72656,7 +72659,7 @@ const W2e = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
72656
72659
  }), x("div", {
72657
72660
  className: D("relative z-40 rounded-b-lg bg-f1-background px-3", C && !E && "shadow-editor-tools"),
72658
72661
  children: [f(ht, {
72659
- children: (O || ce) && x(we.div, {
72662
+ children: (O || ce) && x(be.div, {
72660
72663
  initial: {
72661
72664
  height: 0,
72662
72665
  opacity: 0,
@@ -72711,7 +72714,7 @@ const W2e = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
72711
72714
  onEnhanceWithAI: Ue,
72712
72715
  setLastIntent: R,
72713
72716
  toolbarLabels: d,
72714
- setIsToolbarOpen: be,
72717
+ setIsToolbarOpen: Ce,
72715
72718
  isToolbarOpen: he,
72716
72719
  plainHtmlMode: m
72717
72720
  }), f(Xce, {
@@ -72975,7 +72978,7 @@ const W2e = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
72975
72978
  return f("div", {
72976
72979
  className: D("inline-flex ring-1 ring-inset ring-transparent transition-all duration-150", e && "select-none overflow-hidden rounded-sm bg-f1-background-tertiary ring-f1-border-secondary"),
72977
72980
  "aria-hidden": e,
72978
- children: f(we.div, {
72981
+ children: f(be.div, {
72979
72982
  className: "h-full w-full",
72980
72983
  animate: {
72981
72984
  opacity: e ? 0 : 1,
@@ -73800,25 +73803,25 @@ function A4e({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: i,
73800
73803
  trackedMinutes: t,
73801
73804
  remainingMinutes: e,
73802
73805
  canSeeRemainingTime: g
73803
- }), T = k === "clocked-out", _ = (u == null ? void 0 : u.map((be) => ({
73804
- value: be.id,
73805
- label: be.duration ? `${be.name} · ${be.duration}` : be.name,
73806
- description: be.description,
73807
- tag: be.isPaid ? i.paid : i.unpaid
73806
+ }), T = k === "clocked-out", _ = (u == null ? void 0 : u.map((Ce) => ({
73807
+ value: Ce.id,
73808
+ label: Ce.duration ? `${Ce.name} · ${Ce.duration}` : Ce.name,
73809
+ description: Ce.description,
73810
+ tag: Ce.isPaid ? i.paid : i.unpaid
73808
73811
  }))) ?? [], [L, M] = X(!1), N = () => {
73809
- var be;
73812
+ var Ce;
73810
73813
  if (_.length > 1)
73811
73814
  L || M(!0);
73812
73815
  else {
73813
- const Ve = (be = _ == null ? void 0 : _[0]) == null ? void 0 : be.value;
73816
+ const Ve = (Ce = _ == null ? void 0 : _[0]) == null ? void 0 : Ce.value;
73814
73817
  d == null || d(Ve);
73815
73818
  }
73816
- }, O = (be) => {
73817
- h == null || h(be), M(!1), d == null || d(be);
73818
- }, j = T && s.length && !a && o, z = s.find((be) => be.id === r), Y = s.map((be) => ({
73819
- value: be.id,
73820
- label: be.name,
73821
- icon: be.icon
73819
+ }, O = (Ce) => {
73820
+ h == null || h(Ce), M(!1), d == null || d(Ce);
73821
+ }, j = T && s.length && !a && o, z = s.find((Ce) => Ce.id === r), Y = s.map((Ce) => ({
73822
+ value: Ce.id,
73823
+ label: Ce.name,
73824
+ icon: Ce.icon
73822
73825
  })), ce = k === "break", [ve, he] = X(!1);
73823
73826
  return f("div", {
73824
73827
  className: "@container",
@@ -73837,7 +73840,7 @@ function A4e({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: i,
73837
73840
  children: C
73838
73841
  }), x("div", {
73839
73842
  className: "relative aspect-square h-4",
73840
- children: [f(we.div, {
73843
+ children: [f(be.div, {
73841
73844
  className: "absolute inset-0 rounded-full opacity-20",
73842
73845
  style: {
73843
73846
  backgroundColor: E
@@ -74194,7 +74197,7 @@ function Bme({ task: t, status: e, onClick: n, hideIcon: i = !1 }) {
74194
74197
  var o;
74195
74198
  const r = () => {
74196
74199
  n == null || n(t);
74197
- }, s = Ce(() => {
74200
+ }, s = we(() => {
74198
74201
  if (!i) {
74199
74202
  if (e === "todo")
74200
74203
  return Xm;