@factorialco/f0-react 1.355.2 → 1.356.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { a5 as zd, bC as Mp, bD as Pp, bE as zp, bF as Ro, bG as $p, bH as qi, D as jp, bI as Bp, ab as G, V as $d, J as Hp, bJ as Vp, ao as yi, bK as jd, bL as Wp, bM as Up, ak as Gp, bN as va, bO as Vr, bP as qp, a6 as C, a7 as St, u as X, bQ as Kp, bR as Jp, bS as Yp, bT as Qp, bU as Xp, av as we, bV as Zp, bW as ll, bX as Bd, aj as Ae, bY as eg, bZ as Hd, ah as q, b_ as Vd, b$ as Wd, ac as nt, c0 as Ud, c1 as ds, c2 as Gd, a8 as j, c3 as Ar, ag as M, c4 as mt, c5 as tg, c6 as ng, c7 as sr, aO as qd, c8 as Kd, a_ as Zt, c9 as Jd, ca as al, cb as dt, aP as cl, aQ as Vn, v as Yd, cc as Qd, cd as rg, ce as xa, cf as On, cg as dl, ch as Tr, ci as wi, cj as ig, ck as Xd, cl as og, cm as ul, cn as lr, co as Ke, cp as sg, cq as lg, cr as Vt, cs as Fo, ct as ag, cu as ir, cv as Cn, cw as cg, cx as Zd, cy as dg, cz as ug, cA as fg, cB as hg, ad as Ve, af as Ne, cC as on, aN as hn, bz as Dr, cD as eu, cE as fl, cF as mg, cG as pg, cH as gg, cI as bg, cJ as vg, cK as xg, cL as yg, cM as wg, cN as kg, cO as hl, cP as Cg, cQ as tu, cR as Ng, cS as Sg, cT as Ig, cU as Ag, cV as Tg, cW as Dg, cX as Eg, bb as Ct, cY as nu, cZ as _g, am as se, a9 as ar, c_ as ru, c$ as iu, aW as ml, t as Lg, d0 as Og, d1 as Rg, al as cr, d2 as Fg, d3 as Mo, d4 as Mg, d5 as pl, d6 as Wt, aI as ou, d7 as ya, d8 as wa, d9 as Pg, da as ka, db as su, dc as gl, aJ as lu, at as bl, au as vl, aw as xl, aG as ki, ai as Er, dd as zg, de as $g, df as au, dg as jg, ax as Nt, dh as Bg, di as cu, dj as du, dk as Hg, dl as _r, dm as yl, dn as Ki, bd as sn, dp as us, aH as dr, dq as Vg, dr as Wg, ds as Ug, dt as Gg, du as qg, dv as Kg, dw as uu, dx as Jg, dy as fu, dz as Yg, dA as Qg, dB as Xg, dC as Ca, dD as hu, dE as fs, aB as hs, dF as mu, dG as ms, aV as ln, b6 as Ji, dH as Yi, dI as Zg, dJ as eb, dK as tb, by as Qi, aU as pu, bB as nb, bA as rb, dL as gu, aD as In, dM as Na, dN as Ci, dO as ib, dP as ob, bc as sb, b7 as bu, a as lb, d as ab, dQ as wl, F as cb, dR as vu, dS as xu, dT as db, dU as ub, dV as fb, dW as hb, dX as mb, dY as yu, dZ as pb, b8 as wu, d_ as ku, d$ as gb, e0 as bb, e1 as vb, e2 as xb, e3 as yb, e4 as wb, e5 as kb, e6 as Cb, bm as Nb, bn as Sb, bu as Xi, bs as kl, e7 as Cl, bt as Cu, aC as Ib, bo as Ni, e8 as Nu, e9 as Ab, ea as ps, eb as Tb, ec as Sa, ed as Db, ee as Eb, ef as _b, eg as Lb, eh as Ob, ei as Rb, ej as Fb, aa as Su, bj as Mb, br as Pb, aX as zb, aY as $b, aZ as jb, an as pt, ek as Bb, el as Hb, em as Vb, en as Ia, eo as Aa, ep as Ta, eq as Wb, er as Ub, es as Gb, et as qb, eu as Iu, ev as Kb } from "./F0AiChat-DSTFlRy-.js";
2
- import { ey as IL, ex as AL, ew as TL, eD as DL, eE as EL, eA as _L, ez as LL, eC as OL, ba as RL, eB as FL } from "./F0AiChat-DSTFlRy-.js";
1
+ import { a5 as zd, bF as Mp, bG as Pp, bH as zp, bI as Ro, bJ as $p, bK as qi, D as jp, bL as Bp, ab as G, V as $d, J as Hp, bM as Vp, ao as yi, bN as jd, bO as Wp, bP as Up, ak as Gp, bQ as va, bR as Vr, bS as qp, a6 as C, a7 as St, u as X, bT as Kp, bU as Jp, bV as Yp, bW as Qp, bX as Xp, av as we, bY as Zp, bZ as ll, b_ as Bd, aj as Ae, b$ as eg, c0 as Hd, ah as q, c1 as Vd, c2 as Wd, ac as nt, c3 as Ud, c4 as ds, c5 as Gd, a8 as j, c6 as Ar, ag as M, c7 as mt, c8 as tg, c9 as ng, ca as sr, aO as qd, cb as Kd, a_ as Zt, cc as Jd, cd as al, ce as dt, aP as cl, aQ as Vn, v as Yd, cf as Qd, cg as rg, ch as xa, ci as On, cj as dl, ck as Tr, cl as wi, cm as ig, cn as Xd, co as og, cp as ul, cq as lr, cr as Ke, cs as sg, ct as lg, cu as Vt, cv as Fo, cw as ag, cx as ir, cy as Cn, cz as cg, cA as Zd, cB as dg, cC as ug, cD as fg, cE as hg, ad as Ve, af as Ne, cF as on, aN as hn, bC as Er, cG as eu, cH as fl, cI as mg, cJ as pg, cK as gg, cL as bg, cM as vg, cN as xg, cO as yg, cP as wg, cQ as kg, cR as hl, cS as Cg, cT as tu, cU as Ng, cV as Sg, cW as Ig, cX as Ag, cY as Tg, cZ as Eg, c_ as Dg, be as Ct, c$ as nu, d0 as _g, am as se, a9 as ar, d1 as ru, d2 as iu, aW as ml, t as Lg, d3 as Og, d4 as Rg, al as cr, d5 as Fg, d6 as Mo, d7 as Mg, d8 as pl, d9 as Wt, aI as ou, da as ya, db as wa, dc as Pg, dd as ka, de as su, df as gl, aJ as lu, at as bl, au as vl, aw as xl, aG as ki, ai as Dr, dg as zg, dh as $g, di as au, dj as jg, ax as Nt, dk as Bg, dl as cu, dm as du, dn as Hg, dp as _r, dq as yl, dr as Ki, bg as sn, ds as us, aH as dr, dt as Vg, du as Wg, dv as Ug, dw as Gg, dx as qg, dy as Kg, dz as uu, dA as Jg, dB as fu, dC as Yg, dD as Qg, dE as Xg, dF as Ca, dG as hu, dH as fs, aB as hs, dI as mu, dJ as ms, aV as ln, b9 as Ji, dK as Yi, dL as Zg, dM as eb, dN as tb, bB as Qi, aU as pu, bE as nb, bD as rb, dO as gu, aD as In, dP as Na, dQ as Ci, dR as ib, dS as ob, bf as sb, ba as bu, a as lb, d as ab, dT as wl, F as cb, dU as vu, dV as xu, dW as db, dX as ub, dY as fb, dZ as hb, d_ as mb, d$ as yu, e0 as pb, bb as wu, e1 as ku, e2 as gb, e3 as bb, e4 as vb, e5 as xb, e6 as yb, e7 as wb, e8 as kb, e9 as Cb, bp as Nb, bq as Sb, bx as Xi, bv as kl, a$ as Zi, ea as eo, eb as to, b0 as no, ec as Cl, bw as Cu, aC as Ib, br as Ni, ed as Nu, ee as Ab, ef as ps, eg as Tb, eh as Sa, ei as Eb, ej as Db, ek as _b, el as Lb, em as Ob, en as Rb, eo as Fb, aa as Su, bm as Mb, bu as Pb, aX as zb, aY as $b, aZ as jb, an as pt, ep as Iu, eq as Bb, er as Hb, es as Vb, et as Wb, b1 as Ub, eu as Gb, ev as Ia, ew as Aa, ex as Ta, ey as qb, ez as Kb, eA as Jb, eB as Yb, eC as Au, eD as Qb } from "./F0AiChat-CiIS6L-I.js";
2
+ import { eG as IL, eF as AL, eE as TL, eL as EL, eM as DL, eI as _L, eH as LL, eK as OL, bd as RL, eJ as FL } from "./F0AiChat-CiIS6L-I.js";
3
3
  import { jsx as l, jsxs as g, Fragment as ee } from "react/jsx-runtime";
4
4
  import * as Fe from "react";
5
- import Q, { createContext as zt, forwardRef as J, useRef as W, useEffect as V, useContext as $t, PureComponent as Jb, useTransition as Yb, useState as F, useLayoutEffect as Wn, useId as Nl, useCallback as ne, useMemo as z, useImperativeHandle as Au, memo as Zi, Fragment as Rn, isValidElement as Tu, cloneElement as Sl, createElement as Da, Children as Du } from "react";
6
- import { f as An, aR as ur, j as Wr, aS as Qb, b as Po, aT as Xb, A as Zb, d as Ur, i as e0, m as t0, G as n0, g as Ea, aU as r0, l as _a, aV as i0, p as o0, aW as Eu, aX as _u, aY as s0, aZ as gs, C as l0, aK as a0, ak as Fn, D as Me, a_ as gt, a$ as It, b0 as Ue, b1 as c0, b2 as si, b3 as st, b4 as Lu, b5 as Qe, b6 as Il, b7 as ut, b8 as La, b9 as d0, ba as Ou, bb as Be, bc as Ze, bd as fr, be as Si, bf as Ru, bg as u0, bh as mn, bi as f0, bj as h0, bk as m0, bl as eo, bm as to, bn as Al, bo as p0, bp as Fu, bq as Mu, br as Pu, bs as g0, bt as zu, bu as $u, bv as ju, bw as Bu, bx as Hu, by as Vu, bz as bs, bA as b0, bB as v0, bC as x0, bD as y0, t as w0, x as k0, y as C0, F as N0, M as Oa, N as Ra, O as S0, P as I0, a3 as A0, a4 as T0, bE as D0, bF as E0, a6 as _0, ah as L0, a8 as O0, a9 as R0, bG as F0, aa as M0, ab as P0, ac as z0, ag as $0, af as j0, bH as Wu, bI as B0, bJ as H0, bK as V0, aF as Tl, aw as Dl, bL as El, bM as Uu, av as vs, bN as W0, bO as U0, au as Gu, a2 as Lr, aq as G0, bP as q0, bQ as K0, bR as J0, am as no, bS as ro, bT as io, an as oo, az as _l, bU as Y0, aO as Q0, bV as xs, bW as X0, bX as Ii, bY as Z0, aP as ev, bZ as tv, aN as qu, aM as nv, aL as rv, b_ as iv, b$ as ov, c0 as sv, c1 as lv, c2 as av, c3 as cv, c4 as dv, c5 as uv, c6 as fv, c7 as hv, c8 as mv, c9 as pv, ca as gv, cb as bv, cc as vv, aQ as Ku, cd as Ju, aD as Yu, ce as xv, cf as yv, cg as wv, ap as kv, R as Cv, T as Nv, V as Sv, W as Iv, Z as Av, U as Tv, ch as Fa, ci as Dv, cj as Ev, n as _v } from "./DataCollectionStorageProvider-D464tg7a.js";
7
- import { ar as PL, ck as zL, ad as $L, ai as jL, aj as BL, co as HL, cn as VL, cl as WL, cm as UL, a5 as GL, ae as qL, aA as KL, aB as JL } from "./DataCollectionStorageProvider-D464tg7a.js";
5
+ import Q, { createContext as zt, forwardRef as J, useRef as W, useEffect as V, useContext as $t, PureComponent as Xb, useTransition as Zb, useState as F, useLayoutEffect as Wn, useId as Nl, useCallback as ne, useMemo as z, useImperativeHandle as Tu, memo as ro, Fragment as Rn, isValidElement as Eu, cloneElement as Sl, createElement as Ea, Children as Du } from "react";
6
+ import { f as An, aO as ur, j as Wr, aP as e0, b as Po, aQ as t0, A as n0, d as Ur, i as r0, m as i0, G as o0, g as Da, aR as s0, l as _a, aS as l0, p as a0, aT as _u, aU as Lu, aV as c0, aW as gs, C as d0, aH as u0, ak as Fn, D as Me, aX as gt, aY as It, aZ as Ue, a_ as f0, a$ as si, b0 as st, b1 as Ou, b2 as Qe, b3 as Il, b4 as ut, b5 as La, b6 as h0, b7 as Ru, b8 as Be, b9 as Ze, ba as fr, bb as Si, bc as Fu, bd as m0, be as mn, bf as p0, bg as g0, bh as b0, bi as io, bj as oo, bk as Al, bl as v0, bm as Mu, bn as Pu, bo as zu, bp as x0, bq as $u, br as ju, bs as Bu, bt as Hu, bu as Vu, bv as Wu, bw as bs, bx as y0, by as w0, bz as k0, bA as C0, t as N0, x as S0, y as I0, F as A0, M as Oa, N as Ra, O as T0, P as E0, a3 as D0, a4 as _0, bB as L0, bC as O0, a6 as R0, ah as F0, a8 as M0, a9 as P0, bD as z0, aa as $0, ab as j0, ac as B0, ag as H0, af as V0, bE as Uu, bF as W0, bG as U0, bH as G0, aC as Tl, at as El, bI as Dl, bJ as Gu, as as vs, bK as q0, bL as K0, ar as qu, a2 as Lr, an as J0, bM as Y0, bN as Q0, bO as X0, aw as _l, bP as Z0, aL as ev, bQ as xs, bR as tv, bS as Ii, bT as nv, aM as rv, bU as iv, aK as Ku, aJ as ov, aI as sv, bV as lv, bW as av, bX as cv, bY as dv, bZ as uv, b_ as fv, b$ as hv, c0 as mv, c1 as pv, c2 as gv, c3 as bv, c4 as vv, c5 as xv, c6 as yv, c7 as wv, aN as Ju, aA as Yu, c8 as kv, R as Cv, T as Nv, V as Sv, W as Iv, Z as Av, U as Tv, c9 as Fa, ca as Ev, cb as Dv, n as _v } from "./DataCollectionStorageProvider-CYjGlOJW.js";
7
+ import { ao as PL, cc as zL, ad as $L, ai as jL, aj as BL, cg as HL, cf as VL, cd as WL, ce as UL, a5 as GL, ae as qL, ax as KL, ay as JL } from "./DataCollectionStorageProvider-CYjGlOJW.js";
8
8
  import './experimental.css';function Qu(t, e) {
9
9
  const n = zd(e()), r = () => n.set(e());
10
10
  return r(), Mp(() => {
@@ -500,7 +500,7 @@ var Or = /* @__PURE__ */ (function(t) {
500
500
  points: r
501
501
  })) : Wr(o) ? f = o(ze(ze({}, this.props), {}, {
502
502
  points: r
503
- })) : f = /* @__PURE__ */ Q.createElement(Xb, Ai({}, An(this.props, !0), {
503
+ })) : f = /* @__PURE__ */ Q.createElement(t0, Ai({}, An(this.props, !0), {
504
504
  onMouseEnter: this.handleMouseEnter,
505
505
  onMouseLeave: this.handleMouseLeave,
506
506
  points: r,
@@ -514,7 +514,7 @@ var Or = /* @__PURE__ */ (function(t) {
514
514
  key: "renderPolygonWithAnimation",
515
515
  value: function() {
516
516
  var r = this, i = this.props, o = i.points, s = i.isAnimationActive, a = i.animationBegin, c = i.animationDuration, d = i.animationEasing, f = i.animationId, u = this.state.prevPoints;
517
- return /* @__PURE__ */ Q.createElement(Zb, {
517
+ return /* @__PURE__ */ Q.createElement(n0, {
518
518
  begin: a,
519
519
  duration: c,
520
520
  isActive: s,
@@ -532,10 +532,10 @@ var Or = /* @__PURE__ */ (function(t) {
532
532
  var m = h.t, p = u && u.length / o.length, b = o.map(function(v, x) {
533
533
  var w = u && u[Math.floor(x * p)];
534
534
  if (w) {
535
- var y = Ur(w.x, v.x), D = Ur(w.y, v.y);
535
+ var y = Ur(w.x, v.x), E = Ur(w.y, v.y);
536
536
  return ze(ze({}, v), {}, {
537
537
  x: y(m),
538
- y: D(m)
538
+ y: E(m)
539
539
  });
540
540
  }
541
541
  var S = Ur(v.cx, v.x), k = Ur(v.cy, v.y);
@@ -551,7 +551,7 @@ var Or = /* @__PURE__ */ (function(t) {
551
551
  key: "renderPolygon",
552
552
  value: function() {
553
553
  var r = this.props, i = r.points, o = r.isAnimationActive, s = r.isRange, a = this.state.prevPoints;
554
- return o && i && i.length && !s && (!a || !e0(a, i)) ? this.renderPolygonWithAnimation() : this.renderPolygonStatically(i);
554
+ return o && i && i.length && !s && (!a || !r0(a, i)) ? this.renderPolygonWithAnimation() : this.renderPolygonStatically(i);
555
555
  }
556
556
  }, {
557
557
  key: "render",
@@ -562,7 +562,7 @@ var Or = /* @__PURE__ */ (function(t) {
562
562
  var c = this.state.isAnimationFinished, d = yi("recharts-radar", o);
563
563
  return /* @__PURE__ */ Q.createElement(Po, {
564
564
  className: d
565
- }, this.renderPolygon(), (!a || c) && t0.renderCallByParent(this.props, s));
565
+ }, this.renderPolygon(), (!a || c) && i0.renderCallByParent(this.props, s));
566
566
  }
567
567
  }], [{
568
568
  key: "getDerivedStateFromProps",
@@ -585,7 +585,7 @@ var Or = /* @__PURE__ */ (function(t) {
585
585
  o = r(i);
586
586
  else {
587
587
  var s = i.key, a = ox(i, ix);
588
- o = /* @__PURE__ */ Q.createElement(Qb, Ai({}, a, {
588
+ o = /* @__PURE__ */ Q.createElement(e0, Ai({}, a, {
589
589
  key: s,
590
590
  className: yi("recharts-radar-dot", typeof r != "boolean" ? r.className : "")
591
591
  }));
@@ -593,7 +593,7 @@ var Or = /* @__PURE__ */ (function(t) {
593
593
  return o;
594
594
  }
595
595
  }]);
596
- })(Jb);
596
+ })(Xb);
597
597
  Ot(Or, "displayName", "Radar");
598
598
  Ot(Or, "defaultProps", {
599
599
  angleAxisId: 0,
@@ -602,7 +602,7 @@ Ot(Or, "defaultProps", {
602
602
  activeDot: !0,
603
603
  dot: !1,
604
604
  legendType: "rect",
605
- isAnimationActive: !n0.isSsr,
605
+ isAnimationActive: !o0.isSsr,
606
606
  animationBegin: 0,
607
607
  animationDuration: 1500,
608
608
  animationEasing: "ease"
@@ -610,7 +610,7 @@ Ot(Or, "defaultProps", {
610
610
  Ot(Or, "getComposedData", function(t) {
611
611
  var e = t.radiusAxis, n = t.angleAxis, r = t.displayedData, i = t.dataKey, o = t.bandSize, s = n.cx, a = n.cy, c = !1, d = [], f = n.type !== "number" ? o ?? 0 : 0;
612
612
  r.forEach(function(h, m) {
613
- var p = Ea(h, n.dataKey, m), b = Ea(h, i), v = n.scale(p) + f, x = Array.isArray(b) ? r0(b) : b, w = _a(x) ? void 0 : e.scale(x);
613
+ var p = Da(h, n.dataKey, m), b = Da(h, i), v = n.scale(p) + f, x = Array.isArray(b) ? s0(b) : b, w = _a(x) ? void 0 : e.scale(x);
614
614
  Array.isArray(b) && b.length >= 2 && (c = !0), d.push(ze(ze({}, ur(s, a, w, v)), {}, {
615
615
  name: p,
616
616
  value: b,
@@ -640,24 +640,24 @@ var jo, Va;
640
640
  function mx() {
641
641
  if (Va) return jo;
642
642
  Va = 1;
643
- var t = i0();
643
+ var t = l0();
644
644
  function e(n) {
645
645
  var r = n == null ? 0 : n.length;
646
646
  return r ? t(n, 1) : [];
647
647
  }
648
648
  return jo = e, jo;
649
649
  }
650
- var px = o0({
650
+ var px = a0({
651
651
  chartName: "RadarChart",
652
652
  GraphicalChild: Or,
653
653
  axisComponents: [{
654
654
  axisType: "angleAxis",
655
- AxisComp: Eu
655
+ AxisComp: _u
656
656
  }, {
657
657
  axisType: "radiusAxis",
658
- AxisComp: _u
658
+ AxisComp: Lu
659
659
  }],
660
- formatAxisMap: s0,
660
+ formatAxisMap: c0,
661
661
  defaultProps: {
662
662
  layout: "centric",
663
663
  startAngle: 90,
@@ -683,12 +683,12 @@ const nf = J(({ className: t, items: e }, n) => l(Wp, {
683
683
  })
684
684
  }));
685
685
  nf.displayName = "CollapsedBreadcrumbItem";
686
- const Ll = 50, gx = 120, Di = 8;
686
+ const Ll = 50, gx = 120, Ei = 8;
687
687
  function bx(t, e) {
688
688
  const n = e.length;
689
689
  if (n <= 2) return n;
690
690
  const r = e[0];
691
- let i = t - r - Di, o = 0, s = 1;
691
+ let i = t - r - Ei, o = 0, s = 1;
692
692
  for (let a = n - 1; a > 0; a--) {
693
693
  const c = e[a];
694
694
  if (i < c)
@@ -705,13 +705,13 @@ function Wa(t = []) {
705
705
  case 0:
706
706
  return;
707
707
  case 1:
708
- return t[0] + Di;
708
+ return t[0] + Ei;
709
709
  default:
710
- return t[0] + Ll + t[t.length - 1] + Di;
710
+ return t[0] + Ll + t[t.length - 1] + Ei;
711
711
  }
712
712
  }
713
713
  function vx(t, e) {
714
- return gx * t + (e ? Ll : 0) + Di;
714
+ return gx * t + (e ? Ll : 0) + Ei;
715
715
  }
716
716
  function xx(t, e, n = []) {
717
717
  if (!t) {
@@ -754,7 +754,7 @@ function xx(t, e, n = []) {
754
754
  };
755
755
  }
756
756
  function yx({ breadcrumbs: t, append: e }) {
757
- const n = W(null), r = W(null), [, i] = Yb(), [o, s] = F(null), a = (o?.collapsedItems || []).length > 0;
757
+ const n = W(null), r = W(null), [, i] = Zb(), [o, s] = F(null), a = (o?.collapsedItems || []).length > 0;
758
758
  return Wn(() => {
759
759
  const c = n.current, d = r.current;
760
760
  if (!c || !d || d.children.length < t.length) return;
@@ -1175,16 +1175,16 @@ const qa = G.create(q), Ka = {
1175
1175
  const y = ne(async () => {
1176
1176
  try {
1177
1177
  h("fetching");
1178
- const D = await n();
1179
- h("idle"), p(D);
1178
+ const E = await n();
1179
+ h("idle"), p(E);
1180
1180
  } catch {
1181
1181
  h("error");
1182
1182
  }
1183
1183
  }, [n]);
1184
1184
  return g(Vd, {
1185
1185
  open: x,
1186
- onOpenChange: async (D) => {
1187
- w(D), D && m === null && y(), s(D);
1186
+ onOpenChange: async (E) => {
1187
+ w(E), E && m === null && y(), s(E);
1188
1188
  },
1189
1189
  children: [l(Wd, {
1190
1190
  asChild: !0,
@@ -1208,7 +1208,7 @@ const qa = G.create(q), Ka = {
1208
1208
  style: {
1209
1209
  maxHeight: "min(90vh, 760px)"
1210
1210
  },
1211
- children: [l(Ex, {
1211
+ children: [l(Dx, {
1212
1212
  title: e,
1213
1213
  url: r,
1214
1214
  onClick: a
@@ -1228,8 +1228,8 @@ const qa = G.create(q), Ka = {
1228
1228
  }), m.length > 1 && l(ee, {
1229
1229
  children: l("div", {
1230
1230
  className: "pb-1",
1231
- children: v.map((D, S) => l(Dx, {
1232
- ...D,
1231
+ children: v.map((E, S) => l(Ex, {
1232
+ ...E,
1233
1233
  onClick: c
1234
1234
  }, S))
1235
1235
  })
@@ -1304,7 +1304,7 @@ const qa = G.create(q), Ka = {
1304
1304
  })]
1305
1305
  })
1306
1306
  });
1307
- }, Dx = ({ title: t, href: e, updated: n, unread: r = !1, onClick: i }) => {
1307
+ }, Ex = ({ title: t, href: e, updated: n, unread: r = !1, onClick: i }) => {
1308
1308
  const o = C("flex flex-col items-stretch gap-3 w-full");
1309
1309
  return l(sr, {
1310
1310
  asChild: !0,
@@ -1333,7 +1333,7 @@ const qa = G.create(q), Ka = {
1333
1333
  })
1334
1334
  })
1335
1335
  });
1336
- }, Ex = ({ title: t, url: e, onClick: n }) => g("a", {
1336
+ }, Dx = ({ title: t, url: e, onClick: n }) => g("a", {
1337
1337
  href: e,
1338
1338
  className: "flex items-center justify-between gap-4 px-4 pb-2 pt-3 text-f1-foreground no-underline visited:text-f1-foreground hover:text-f1-foreground",
1339
1339
  children: [l("h2", {
@@ -1455,13 +1455,13 @@ const qa = G.create(q), Ka = {
1455
1455
  label: "Close"
1456
1456
  })
1457
1457
  })]
1458
- }), l(l0, {
1458
+ }), l(d0, {
1459
1459
  columns: {
1460
1460
  default: 1
1461
1461
  },
1462
1462
  showDots: !0,
1463
1463
  showArrows: !1,
1464
- children: n?.products.map((c) => l(a0, {
1464
+ children: n?.products.map((c) => l(u0, {
1465
1465
  ...c,
1466
1466
  isVisible: !0,
1467
1467
  trackVisibility: c.trackVisibility,
@@ -1640,9 +1640,9 @@ function Fx({ action: t }) {
1640
1640
  })
1641
1641
  });
1642
1642
  }
1643
- const Ei = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Mx = (t, e, n) => {
1643
+ const Di = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Mx = (t, e, n) => {
1644
1644
  for (let r = t.depth; r > 0; r -= 1) {
1645
- const i = t.node(r), o = e(i), s = Ei(t.start(r), n);
1645
+ const i = t.node(r), o = e(i), s = Di(t.start(r), n);
1646
1646
  if (o && s)
1647
1647
  return {
1648
1648
  pos: r > 0 ? t.before(r) : 0,
@@ -1659,7 +1659,7 @@ const Ei = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Mx = (t, e,
1659
1659
  if (!f)
1660
1660
  return !1;
1661
1661
  const u = si(f.node, (x) => x.type === o.nodes.detailsContent);
1662
- if (!u.length || Ei(f.start + u[0].pos + 1, t))
1662
+ if (!u.length || Di(f.start + u[0].pos + 1, t))
1663
1663
  return !1;
1664
1664
  const m = n.doc.resolve(f.pos + f.node.nodeSize), p = La.findFrom(m, 1, !1);
1665
1665
  if (!p)
@@ -1810,10 +1810,10 @@ const Ei = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Mx = (t, e,
1810
1810
  const { state: e, view: n } = t, { schema: r, selection: i } = e, { $head: o } = i;
1811
1811
  if (o.parent.type !== r.nodes.detailsSummary)
1812
1812
  return !1;
1813
- const s = Ei(o.after() + 1, t), a = s ? e.doc.nodeAt(o.after()) : o.node(-2);
1813
+ const s = Di(o.after() + 1, t), a = s ? e.doc.nodeAt(o.after()) : o.node(-2);
1814
1814
  if (!a)
1815
1815
  return !1;
1816
- const c = s ? 0 : o.indexAfter(-1), d = Lu(a.contentMatchAt(c));
1816
+ const c = s ? 0 : o.indexAfter(-1), d = Ou(a.contentMatchAt(c));
1817
1817
  if (!d || !a.canReplaceWith(c, c, d))
1818
1818
  return !1;
1819
1819
  const f = d.createAndFill();
@@ -1836,10 +1836,10 @@ const Ei = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Mx = (t, e,
1836
1836
  key: new Ue("detailsSelection"),
1837
1837
  appendTransaction: (t, e, n) => {
1838
1838
  const { editor: r, type: i } = this;
1839
- if (!t.some((v) => v.selectionSet) || !e.selection.empty || !n.selection.empty || !c0(n, i.name))
1839
+ if (!t.some((v) => v.selectionSet) || !e.selection.empty || !n.selection.empty || !f0(n, i.name))
1840
1840
  return;
1841
1841
  const { $from: a } = n.selection;
1842
- if (Ei(a.pos, r))
1842
+ if (Di(a.pos, r))
1843
1843
  return;
1844
1844
  const d = Mx(a, (v) => v.type === i, r);
1845
1845
  if (!d)
@@ -1919,18 +1919,18 @@ const Ei = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Mx = (t, e,
1919
1919
  const x = i.node(-3);
1920
1920
  if (!x)
1921
1921
  return !1;
1922
- const w = i.indexAfter(-3), y = Lu(x.contentMatchAt(w));
1922
+ const w = i.indexAfter(-3), y = Ou(x.contentMatchAt(w));
1923
1923
  if (!y || !x.canReplaceWith(w, w, y))
1924
1924
  return !1;
1925
- const D = y.createAndFill();
1926
- if (!D)
1925
+ const E = y.createAndFill();
1926
+ if (!E)
1927
1927
  return !1;
1928
1928
  const { tr: S } = e, k = i.after(-2);
1929
- S.replaceWith(k, k, D);
1929
+ S.replaceWith(k, k, E);
1930
1930
  const I = S.doc.resolve(k), T = Qe.near(I, 1);
1931
1931
  S.setSelection(T);
1932
- const E = b, N = b + p.nodeSize;
1933
- return S.delete(E, N), S.scrollIntoView(), n.dispatch(S), !0;
1932
+ const D = b, N = b + p.nodeSize;
1933
+ return S.delete(D, N), S.scrollIntoView(), n.dispatch(S), !0;
1934
1934
  }
1935
1935
  };
1936
1936
  }
@@ -2077,9 +2077,9 @@ function jx(t) {
2077
2077
  });
2078
2078
  break;
2079
2079
  }
2080
- const D = i + y * e;
2080
+ const E = i + y * e;
2081
2081
  for (let S = 0; S < v; S++) {
2082
- r[D + S] == 0 ? r[D + S] = f : (o || (o = [])).push({
2082
+ r[E + S] == 0 ? r[E + S] = f : (o || (o = [])).push({
2083
2083
  type: "collision",
2084
2084
  row: d,
2085
2085
  pos: f,
@@ -2087,7 +2087,7 @@ function jx(t) {
2087
2087
  });
2088
2088
  const k = w && w[S];
2089
2089
  if (k) {
2090
- const I = (D + S) % e * 2, T = s[I];
2090
+ const I = (E + S) % e * 2, T = s[I];
2091
2091
  T == null || T != k && s[I + 1] == 1 ? (s[I] = k, s[I + 1] = 1) : T == k && s[I + 1]++;
2092
2092
  }
2093
2093
  }
@@ -2257,7 +2257,7 @@ var pe = class _t extends Qe {
2257
2257
  if (!u)
2258
2258
  throw RangeError(`No cell with offset ${f} found`);
2259
2259
  const h = o + f + 1;
2260
- return new Ou(
2260
+ return new Ru(
2261
2261
  a.resolve(h),
2262
2262
  a.resolve(h + u.content.size)
2263
2263
  );
@@ -2458,7 +2458,7 @@ function Qx({ $from: t, $to: e }) {
2458
2458
  function Xx(t, e, n) {
2459
2459
  const r = (e || t).selection, i = (e || t).doc;
2460
2460
  let o, s;
2461
- if (r instanceof Ru && (s = r.node.type.spec.tableRole)) {
2461
+ if (r instanceof Fu && (s = r.node.type.spec.tableRole)) {
2462
2462
  if (s == "cell" || s == "header_cell")
2463
2463
  o = pe.create(i, r.from);
2464
2464
  else if (s == "row") {
@@ -3034,7 +3034,7 @@ function vy(t, e) {
3034
3034
  }
3035
3035
  function Ns(t, e) {
3036
3036
  const n = t.createAndFill();
3037
- return new u0(n).replace(0, n.content.size, e).doc;
3037
+ return new m0(n).replace(0, n.content.size, e).doc;
3038
3038
  }
3039
3039
  function xy({ width: t, height: e, rows: n }, r, i) {
3040
3040
  if (t != r) {
@@ -3181,7 +3181,7 @@ function ic(t, e, n, r, i) {
3181
3181
  )
3182
3182
  ), e(u);
3183
3183
  }
3184
- var wy = d0({
3184
+ var wy = h0({
3185
3185
  ArrowLeft: qr("horiz", -1),
3186
3186
  ArrowRight: qr("horiz", 1),
3187
3187
  ArrowUp: qr("vert", -1),
@@ -3417,10 +3417,10 @@ function Iy({
3417
3417
  Ty(s, a, t, i);
3418
3418
  },
3419
3419
  mouseleave: (s) => {
3420
- Dy(s);
3420
+ Ey(s);
3421
3421
  },
3422
3422
  mousedown: (s, a) => {
3423
- Ey(s, a, e, n);
3423
+ Dy(s, a, e, n);
3424
3424
  }
3425
3425
  },
3426
3426
  decorations: (s) => {
@@ -3470,12 +3470,12 @@ function Ty(t, e, n, r) {
3470
3470
  }
3471
3471
  }
3472
3472
  }
3473
- function Dy(t) {
3473
+ function Ey(t) {
3474
3474
  if (!t.editable) return;
3475
3475
  const e = qe.getState(t.state);
3476
3476
  e && e.activeHandle > -1 && !e.dragging && yf(t, -1);
3477
3477
  }
3478
- function Ey(t, e, n, r) {
3478
+ function Dy(t, e, n, r) {
3479
3479
  var i;
3480
3480
  if (!t.editable) return !1;
3481
3481
  const o = (i = t.dom.ownerDocument.defaultView) != null ? i : window, s = qe.getState(t.state);
@@ -3751,13 +3751,13 @@ function cc(t, e, n, r, i, o) {
3751
3751
  const x = i === m ? o : b && b[v], w = x ? `${x}px` : "";
3752
3752
  if (a += x || r, x || (c = !1), d) {
3753
3753
  if (d.style.width !== w) {
3754
- const [y, D] = Is(r, x);
3755
- d.style.setProperty(y, D);
3754
+ const [y, E] = Is(r, x);
3755
+ d.style.setProperty(y, E);
3756
3756
  }
3757
3757
  d = d.nextSibling;
3758
3758
  } else {
3759
- const y = document.createElement("col"), [D, S] = Is(r, x);
3760
- y.style.setProperty(D, S), e.appendChild(y);
3759
+ const y = document.createElement("col"), [E, S] = Is(r, x);
3760
+ y.style.setProperty(E, S), e.appendChild(y);
3761
3761
  }
3762
3762
  }
3763
3763
  }
@@ -3831,7 +3831,7 @@ var Jr = ({ editor: t }) => {
3831
3831
  if (!Wy(e))
3832
3832
  return !1;
3833
3833
  let n = 0;
3834
- const r = m0(e.ranges[0].$from, (o) => o.type.name === "table");
3834
+ const r = b0(e.ranges[0].$from, (o) => o.type.name === "table");
3835
3835
  return r?.node.descendants((o) => {
3836
3836
  if (o.type.name === "table")
3837
3837
  return !1;
@@ -4001,7 +4001,7 @@ var Ky = qy, Jy = gt.create({
4001
4001
  storage: t.storage
4002
4002
  };
4003
4003
  return {
4004
- tableRole: f0(h0(t, "tableRole", e))
4004
+ tableRole: p0(g0(t, "tableRole", e))
4005
4005
  };
4006
4006
  }
4007
4007
  }), Yy = mn.create({
@@ -4049,16 +4049,16 @@ function Zy(t, e, n) {
4049
4049
  h.lastIndex = 0;
4050
4050
  let y = h.exec(d.value);
4051
4051
  for (; y; ) {
4052
- const D = y.index, S = {
4052
+ const E = y.index, S = {
4053
4053
  index: y.index,
4054
4054
  input: y.input,
4055
4055
  stack: [...f, d]
4056
4056
  };
4057
4057
  let k = m(...y, S);
4058
- if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? h.lastIndex = D + 1 : (p !== D && w.push({
4058
+ if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? h.lastIndex = E + 1 : (p !== E && w.push({
4059
4059
  type: "text",
4060
- value: d.value.slice(p, D)
4061
- }), Array.isArray(k) ? w.push(...k) : k && w.push(k), p = D + y[0].length, x = !0), !h.global)
4060
+ value: d.value.slice(p, E)
4061
+ }), Array.isArray(k) ? w.push(...k) : k && w.push(k), p = E + y[0].length, x = !0), !h.global)
4062
4062
  break;
4063
4063
  y = h.exec(d.value);
4064
4064
  }
@@ -4308,11 +4308,11 @@ Nf.peek = L1;
4308
4308
  function T1() {
4309
4309
  return {
4310
4310
  canContainEols: ["delete"],
4311
- enter: { strikethrough: E1 },
4311
+ enter: { strikethrough: D1 },
4312
4312
  exit: { strikethrough: _1 }
4313
4313
  };
4314
4314
  }
4315
- function D1() {
4315
+ function E1() {
4316
4316
  return {
4317
4317
  unsafe: [
4318
4318
  {
@@ -4324,7 +4324,7 @@ function D1() {
4324
4324
  handlers: { delete: Nf }
4325
4325
  };
4326
4326
  }
4327
- function E1(t) {
4327
+ function D1(t) {
4328
4328
  this.enter({ type: "delete", children: [] }, t);
4329
4329
  }
4330
4330
  function _1(t) {
@@ -4391,14 +4391,14 @@ function R1(t, e) {
4391
4391
  const x = [];
4392
4392
  for (; ++u < d; ) {
4393
4393
  const w = b[u] || "";
4394
- let y = "", D = "";
4394
+ let y = "", E = "";
4395
4395
  if (n.alignDelimiters !== !1) {
4396
4396
  const S = c[u] - (v[u] || 0), k = o[u];
4397
- k === 114 ? y = " ".repeat(S) : k === 99 ? S % 2 ? (y = " ".repeat(S / 2 + 0.5), D = " ".repeat(S / 2 - 0.5)) : (y = " ".repeat(S / 2), D = y) : D = " ".repeat(S);
4397
+ k === 114 ? y = " ".repeat(S) : k === 99 ? S % 2 ? (y = " ".repeat(S / 2 + 0.5), E = " ".repeat(S / 2 - 0.5)) : (y = " ".repeat(S / 2), E = y) : E = " ".repeat(S);
4398
4398
  }
4399
4399
  n.delimiterStart !== !1 && !u && x.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
4400
4400
  // empty: there will be a closing space.
4401
- !(n.alignDelimiters === !1 && w === "") && (n.delimiterStart !== !1 || u) && x.push(" "), n.alignDelimiters !== !1 && x.push(y), x.push(w), n.alignDelimiters !== !1 && x.push(D), n.padding !== !1 && x.push(" "), (n.delimiterEnd !== !1 || u !== d - 1) && x.push("|");
4401
+ !(n.alignDelimiters === !1 && w === "") && (n.delimiterStart !== !1 || u) && x.push(" "), n.alignDelimiters !== !1 && x.push(y), x.push(w), n.alignDelimiters !== !1 && x.push(E), n.padding !== !1 && x.push(" "), (n.delimiterEnd !== !1 || u !== d - 1) && x.push("|");
4402
4402
  }
4403
4403
  p.push(
4404
4404
  n.delimiterEnd === !1 ? x.join("").replace(/ +$/, "") : x.join("")
@@ -4713,8 +4713,8 @@ function Tf(t, e, n, r) {
4713
4713
  function Q1() {
4714
4714
  return "!";
4715
4715
  }
4716
- Df.peek = X1;
4717
- function Df(t, e, n) {
4716
+ Ef.peek = X1;
4717
+ function Ef(t, e, n) {
4718
4718
  let r = t.value || "", i = "`", o = -1;
4719
4719
  for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
4720
4720
  i += "`";
@@ -4732,7 +4732,7 @@ function Df(t, e, n) {
4732
4732
  function X1() {
4733
4733
  return "`";
4734
4734
  }
4735
- function Ef(t, e) {
4735
+ function Df(t, e) {
4736
4736
  const n = Xd(t);
4737
4737
  return !!(!e.options.resourceLink && // If there’s a url…
4738
4738
  t.url && // And there’s a no title…
@@ -4747,7 +4747,7 @@ _f.peek = Z1;
4747
4747
  function _f(t, e, n, r) {
4748
4748
  const i = Fl(n), o = i === '"' ? "Quote" : "Apostrophe", s = n.createTracker(r);
4749
4749
  let a, c;
4750
- if (Ef(t, n)) {
4750
+ if (Df(t, n)) {
4751
4751
  const f = n.stack;
4752
4752
  n.stack = [], a = n.enter("autolink");
4753
4753
  let u = s.move("<");
@@ -4786,7 +4786,7 @@ function _f(t, e, n, r) {
4786
4786
  ), d += s.move(i), c()), d += s.move(")"), a(), d;
4787
4787
  }
4788
4788
  function Z1(t, e, n) {
4789
- return Ef(t, n) ? "<" : "[";
4789
+ return Df(t, n) ? "<" : "[";
4790
4790
  }
4791
4791
  Lf.peek = ew;
4792
4792
  function Lf(t, e, n, r) {
@@ -4999,7 +4999,7 @@ const Ff = {
4999
4999
  html: If,
5000
5000
  image: Af,
5001
5001
  imageReference: Tf,
5002
- inlineCode: Df,
5002
+ inlineCode: Ef,
5003
5003
  link: _f,
5004
5004
  linkReference: Lf,
5005
5005
  list: rw,
@@ -5204,7 +5204,7 @@ function Iw(t) {
5204
5204
  extensions: [
5205
5205
  i1(),
5206
5206
  S1(t),
5207
- D1(),
5207
+ E1(),
5208
5208
  yw(t),
5209
5209
  kw()
5210
5210
  ]
@@ -5235,10 +5235,10 @@ const Aw = {
5235
5235
  previous: Hf
5236
5236
  }, jt = {
5237
5237
  name: "emailAutolink",
5238
- tokenize: Ew,
5238
+ tokenize: Dw,
5239
5239
  previous: Vf
5240
5240
  }, Tt = {};
5241
- function Dw() {
5241
+ function Ew() {
5242
5242
  return {
5243
5243
  text: Tt
5244
5244
  };
@@ -5254,7 +5254,7 @@ Tt[72] = [jt, jf];
5254
5254
  Tt[104] = [jt, jf];
5255
5255
  Tt[87] = [jt, $f];
5256
5256
  Tt[119] = [jt, $f];
5257
- function Ew(t, e, n) {
5257
+ function Dw(t, e, n) {
5258
5258
  const r = this;
5259
5259
  let i, o;
5260
5260
  return s;
@@ -5784,7 +5784,7 @@ function Xw(t, e, n) {
5784
5784
  return Cn(N) ? Vt(t, v, "whitespace")(N) : v(N);
5785
5785
  }
5786
5786
  function v(N) {
5787
- return N === 58 ? (o += 1, s = !0, t.enter("tableDelimiterMarker"), t.consume(N), t.exit("tableDelimiterMarker"), x) : N === 45 ? (o += 1, x(N)) : N === null || ir(N) ? D(N) : S(N);
5787
+ return N === 58 ? (o += 1, s = !0, t.enter("tableDelimiterMarker"), t.consume(N), t.exit("tableDelimiterMarker"), x) : N === 45 ? (o += 1, x(N)) : N === null || ir(N) ? E(N) : S(N);
5788
5788
  }
5789
5789
  function x(N) {
5790
5790
  return N === 45 ? (t.enter("tableDelimiterFiller"), w(N)) : S(N);
@@ -5793,9 +5793,9 @@ function Xw(t, e, n) {
5793
5793
  return N === 45 ? (t.consume(N), w) : N === 58 ? (s = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(N), t.exit("tableDelimiterMarker"), y) : (t.exit("tableDelimiterFiller"), y(N));
5794
5794
  }
5795
5795
  function y(N) {
5796
- return Cn(N) ? Vt(t, D, "whitespace")(N) : D(N);
5796
+ return Cn(N) ? Vt(t, E, "whitespace")(N) : E(N);
5797
5797
  }
5798
- function D(N) {
5798
+ function E(N) {
5799
5799
  return N === 124 ? p(N) : N === null || ir(N) ? !s || i !== o ? S(N) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), e(N)) : S(N);
5800
5800
  }
5801
5801
  function S(N) {
@@ -5808,9 +5808,9 @@ function Xw(t, e, n) {
5808
5808
  return N === 124 ? (t.enter("tableCellDivider"), t.consume(N), t.exit("tableCellDivider"), I) : N === null || ir(N) ? (t.exit("tableRow"), e(N)) : Cn(N) ? Vt(t, I, "whitespace")(N) : (t.enter("data"), T(N));
5809
5809
  }
5810
5810
  function T(N) {
5811
- return N === null || N === 124 || Ke(N) ? (t.exit("data"), I(N)) : (t.consume(N), N === 92 ? E : T);
5811
+ return N === null || N === 124 || Ke(N) ? (t.exit("data"), I(N)) : (t.consume(N), N === 92 ? D : T);
5812
5812
  }
5813
- function E(N) {
5813
+ function D(N) {
5814
5814
  return N === 92 || N === 124 ? (t.consume(N), T) : T(N);
5815
5815
  }
5816
5816
  }
@@ -5913,7 +5913,7 @@ function rk(t, e, n) {
5913
5913
  }
5914
5914
  function ik(t) {
5915
5915
  return cg([
5916
- Dw(),
5916
+ Ew(),
5917
5917
  $w(),
5918
5918
  qw(t),
5919
5919
  Qw(),
@@ -6027,7 +6027,7 @@ Wf.displayName = "F0AiBanner";
6027
6027
  const Uf = Ne(Wf, uk), fk = (t) => {
6028
6028
  if (!t?.content) return "";
6029
6029
  try {
6030
- return p0(t.content, [Fu, Mu, Pu, g0, zu, $u, ju, Bu, Hu, Vu, cf, uf, df]);
6030
+ return v0(t.content, [Mu, Pu, zu, x0, $u, ju, Bu, Hu, Vu, Wu, cf, uf, df]);
6031
6031
  } catch {
6032
6032
  return "";
6033
6033
  }
@@ -6143,7 +6143,7 @@ const Uf = Ne(Wf, uk), fk = (t) => {
6143
6143
  const s = t.attrs.data, a = r.options.currentConfig || t.attrs.config, { title: c } = hk(a, s), { isLoading: d, handleClick: f } = mk(a, e), u = !!(s?.selectedAction && !s?.content), h = d || u, m = fk(s);
6144
6144
  if (bk(i, n, o, s), pk(a, e, s), gk(s, f, e), !s || !a || !a.buttons?.length) return null;
6145
6145
  const p = !!s?.content, v = !!(s?.selectedTitle || s?.selectedAction) && p && !s?.isEditable;
6146
- return l(to, {
6146
+ return l(oo, {
6147
6147
  contentEditable: !1,
6148
6148
  children: g("div", {
6149
6149
  className: "mb-3",
@@ -6215,7 +6215,7 @@ const Uf = Ne(Wf, uk), fk = (t) => {
6215
6215
  }, `AI Block: ${r.title}`]];
6216
6216
  },
6217
6217
  addNodeView() {
6218
- return eo(yk);
6218
+ return io(yk);
6219
6219
  },
6220
6220
  addCommands() {
6221
6221
  return {
@@ -6400,7 +6400,7 @@ const Ik = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Ak = gt.c
6400
6400
  },
6401
6401
  addInputRules() {
6402
6402
  return [
6403
- b0({
6403
+ y0({
6404
6404
  find: Ik,
6405
6405
  type: this.type,
6406
6406
  getAttributes: (t) => {
@@ -6410,9 +6410,9 @@ const Ik = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Ak = gt.c
6410
6410
  })
6411
6411
  ];
6412
6412
  }
6413
- }), Tk = 15 * 1024 * 1024, zl = ["image/jpeg", "image/png", "image/gif", "image/webp"], Dk = ({ node: t, deleteNode: e, selected: n, editor: r }) => {
6413
+ }), Tk = 15 * 1024 * 1024, zl = ["image/jpeg", "image/png", "image/gif", "image/webp"], Ek = ({ node: t, deleteNode: e, selected: n, editor: r }) => {
6414
6414
  const { src: i, alt: o, title: s, uploading: a } = t.attrs, c = r.isEditable, d = X();
6415
- return l(to, {
6415
+ return l(oo, {
6416
6416
  className: "mb-2",
6417
6417
  children: g("div", {
6418
6418
  className: C("relative inline-block rounded-lg", n && "border-2 border-f1-border-selected-bold border-solid"),
@@ -6440,7 +6440,7 @@ const Ik = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Ak = gt.c
6440
6440
  })]
6441
6441
  })
6442
6442
  });
6443
- }, Ek = Ak.extend({
6443
+ }, Dk = Ak.extend({
6444
6444
  addAttributes() {
6445
6445
  return {
6446
6446
  ...this.parent?.(),
@@ -6457,7 +6457,7 @@ const Ik = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Ak = gt.c
6457
6457
  };
6458
6458
  },
6459
6459
  addNodeView() {
6460
- return eo(Dk);
6460
+ return io(Ek);
6461
6461
  },
6462
6462
  renderHTML({ HTMLAttributes: t }) {
6463
6463
  return ["img", ut(this.options.HTMLAttributes, t)];
@@ -6514,13 +6514,13 @@ const Ik = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Ak = gt.c
6514
6514
  }
6515
6515
  }), qf = (t, e, n) => {
6516
6516
  Ts(t, e, n);
6517
- }, Ds = {
6517
+ }, Es = {
6518
6518
  superNegative: vg,
6519
6519
  negative: bg,
6520
6520
  neutral: gg,
6521
6521
  positive: pg,
6522
6522
  superPositive: mg
6523
- }, Es = {
6523
+ }, Ds = {
6524
6524
  superNegative: "mood-super-negative",
6525
6525
  negative: "mood-negative",
6526
6526
  neutral: "mood-neutral",
@@ -6590,7 +6590,7 @@ const Ik = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Ak = gt.c
6590
6590
  },
6591
6591
  onAnimationComplete: () => d(!1),
6592
6592
  className: "absolute inset-0 flex select-none items-center justify-center text-4xl",
6593
- children: l(Dr, {
6593
+ children: l(Er, {
6594
6594
  emoji: "👋",
6595
6595
  size: "md"
6596
6596
  })
@@ -6640,8 +6640,8 @@ const Ik = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Ak = gt.c
6640
6640
  },
6641
6641
  "aria-label": a.actions.edit,
6642
6642
  children: l(q, {
6643
- icon: Ds[o],
6644
- color: Es[o],
6643
+ icon: Es[o],
6644
+ color: Ds[o],
6645
6645
  size: "sm"
6646
6646
  })
6647
6647
  })
@@ -6698,7 +6698,7 @@ const Lk = ({ node: t, deleteNode: e, updateAttributes: n }) => {
6698
6698
  critical: !0,
6699
6699
  onClick: () => e()
6700
6700
  }];
6701
- return g(to, {
6701
+ return g(oo, {
6702
6702
  contentEditable: !1,
6703
6703
  children: [g("div", {
6704
6704
  className: "editor-mood-tracker mb-4 flex w-full flex-col gap-4 rounded-md border border-solid border-f1-border-secondary p-3",
@@ -6719,9 +6719,9 @@ const Lk = ({ node: t, deleteNode: e, updateAttributes: n }) => {
6719
6719
  children: s.days.map((d, f) => l("div", {
6720
6720
  className: "-ml-1.5 flex items-center justify-center rounded-full bg-f1-background",
6721
6721
  children: l(q, {
6722
- icon: Ds[d.mood],
6722
+ icon: Es[d.mood],
6723
6723
  size: "lg",
6724
- color: Es[d.mood]
6724
+ color: Ds[d.mood]
6725
6725
  })
6726
6726
  }, f))
6727
6727
  })]
@@ -6753,9 +6753,9 @@ const Lk = ({ node: t, deleteNode: e, updateAttributes: n }) => {
6753
6753
  children: [l("div", {
6754
6754
  className: "flex items-center justify-center rounded-full",
6755
6755
  children: l(q, {
6756
- icon: Ds[d.mood],
6756
+ icon: Es[d.mood],
6757
6757
  size: "lg",
6758
- color: Es[d.mood]
6758
+ color: Ds[d.mood]
6759
6759
  })
6760
6760
  }), g("p", {
6761
6761
  className: "text-f1-text-primary text-md font-normal",
@@ -6819,7 +6819,7 @@ const Lk = ({ node: t, deleteNode: e, updateAttributes: n }) => {
6819
6819
  }, `Mood Tracker: ${n.title}`]] : ["div"];
6820
6820
  },
6821
6821
  addNodeView() {
6822
- return eo(Lk);
6822
+ return io(Lk);
6823
6823
  },
6824
6824
  addCommands() {
6825
6825
  return {
@@ -6992,7 +6992,7 @@ const Lk = ({ node: t, deleteNode: e, updateAttributes: n }) => {
6992
6992
  a.current && u(a.current);
6993
6993
  }, [i, u]), V(() => {
6994
6994
  o(0);
6995
- }, [t.length]), Au(r, () => ({
6995
+ }, [t.length]), Tu(r, () => ({
6996
6996
  onKeyDown: ({ event: v }) => v.key === "ArrowUp" ? (v.preventDefault(), h(), !0) : v.key === "ArrowDown" ? (v.preventDefault(), m(), !0) : v.key === "Enter" ? (v.preventDefault(), p(), !0) : !1
6997
6997
  }), [h, m, p]);
6998
6998
  const b = (v, x) => {
@@ -7014,14 +7014,14 @@ const Lk = ({ node: t, deleteNode: e, updateAttributes: n }) => {
7014
7014
  children: v.title
7015
7015
  })
7016
7016
  }), v.commands.map((w, y) => {
7017
- const D = b(x, y), S = D === i;
7017
+ const E = b(x, y), S = E === i;
7018
7018
  return g("div", {
7019
7019
  ref: S ? a : null,
7020
7020
  className: C("flex w-full cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-left text-sm hover:bg-f1-background-hover", S && "bg-f1-background-secondary"),
7021
7021
  onClick: () => {
7022
- o(D), f(D);
7022
+ o(E), f(E);
7023
7023
  },
7024
- onMouseEnter: () => o(D),
7024
+ onMouseEnter: () => o(E),
7025
7025
  children: [w.emoji ? l("span", {
7026
7026
  className: "text-base",
7027
7027
  children: w.emoji
@@ -7070,7 +7070,7 @@ const Mk = ({ aiBlockConfig: t, translations: e, imageUploadConfig: n }) => mn.c
7070
7070
  };
7071
7071
  },
7072
7072
  addProseMirrorPlugins() {
7073
- return [v0({
7073
+ return [w0({
7074
7074
  editor: this.editor,
7075
7075
  ...this.options.suggestion,
7076
7076
  items: ({ query: r }) => {
@@ -7113,12 +7113,12 @@ const Mk = ({ aiBlockConfig: t, translations: e, imageUploadConfig: n }) => mn.c
7113
7113
  modal: !1,
7114
7114
  children: [l("div", {
7115
7115
  style: f
7116
- }), l(Dg, {
7116
+ }), l(Eg, {
7117
7117
  asChild: !0,
7118
7118
  children: l("div", {
7119
7119
  style: f
7120
7120
  })
7121
- }), l(Eg, {
7121
+ }), l(Dg, {
7122
7122
  side: "bottom",
7123
7123
  align: "start",
7124
7124
  sideOffset: 15,
@@ -7156,7 +7156,7 @@ const Mk = ({ aiBlockConfig: t, translations: e, imageUploadConfig: n }) => mn.c
7156
7156
  commands: p.commands.filter((b) => b.title.toLowerCase().includes(m))
7157
7157
  })).filter((p) => p.commands.length > 0);
7158
7158
  }
7159
- r = new x0(Jf, {
7159
+ r = new k0(Jf, {
7160
7160
  props: {
7161
7161
  items: c.items,
7162
7162
  groups: f,
@@ -7171,7 +7171,7 @@ const Mk = ({ aiBlockConfig: t, translations: e, imageUploadConfig: n }) => mn.c
7171
7171
  }
7172
7172
  return s();
7173
7173
  })();
7174
- o = document.createElement("div"), document.body.appendChild(o), i = y0.createRoot(o), i.render(l(a, {
7174
+ o = document.createElement("div"), document.body.appendChild(o), i = C0.createRoot(o), i.render(l(a, {
7175
7175
  content: r.element,
7176
7176
  anchorRect: h,
7177
7177
  editor: c.editor
@@ -7247,7 +7247,7 @@ const Mk = ({ aiBlockConfig: t, translations: e, imageUploadConfig: n }) => mn.c
7247
7247
  return console.error(h), u;
7248
7248
  }
7249
7249
  };
7250
- return g(to, {
7250
+ return g(oo, {
7251
7251
  contentEditable: !1,
7252
7252
  children: [g("div", {
7253
7253
  className: "editor-transcript mb-4 flex w-full flex-col gap-4 rounded-md border border-solid border-f1-border-secondary p-3",
@@ -7366,7 +7366,7 @@ const Mk = ({ aiBlockConfig: t, translations: e, imageUploadConfig: n }) => mn.c
7366
7366
  }, `Transcript: ${n.title}`]] : ["div"];
7367
7367
  },
7368
7368
  addNodeView() {
7369
- return eo(Pk);
7369
+ return io(Pk);
7370
7370
  },
7371
7371
  addCommands() {
7372
7372
  return {
@@ -7712,7 +7712,7 @@ const y_ = Ne(Qf, Yk), Qk = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: r,
7712
7712
  subject: c.label,
7713
7713
  ...c.values
7714
7714
  }));
7715
- return l(k0, {
7715
+ return l(S0, {
7716
7716
  config: e,
7717
7717
  ref: o,
7718
7718
  aspect: i,
@@ -7720,18 +7720,18 @@ const y_ = Ne(Qf, Yk), Qk = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: r,
7720
7720
  children: g(px, {
7721
7721
  accessibilityLayer: !0,
7722
7722
  data: a,
7723
- children: [l(C0, {
7723
+ children: [l(I0, {
7724
7724
  cursor: !0,
7725
7725
  animationDuration: 100,
7726
7726
  offset: 20,
7727
- content: l(N0, {
7727
+ content: l(A0, {
7728
7728
  indicator: "dot"
7729
7729
  })
7730
7730
  }), l(Zu, {
7731
7731
  gridType: "circle"
7732
- }), l(Eu, {
7733
- dataKey: "subject"
7734
7732
  }), l(_u, {
7733
+ dataKey: "subject"
7734
+ }), l(Lu, {
7735
7735
  angle: 90,
7736
7736
  type: "number",
7737
7737
  domain: [n ?? "dataMin", r ?? "dataMax"]
@@ -7743,13 +7743,13 @@ const y_ = Ne(Qf, Yk), Qk = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: r,
7743
7743
  fillOpacity: 0.3,
7744
7744
  label: e[c].label,
7745
7745
  isAnimationActive: !1
7746
- }, c)), Object.keys(e).length > 1 && l(S0, {
7746
+ }, c)), Object.keys(e).length > 1 && l(T0, {
7747
7747
  iconType: "star",
7748
- content: l(I0, {})
7748
+ content: l(E0, {})
7749
7749
  })]
7750
7750
  })
7751
7751
  });
7752
- }, w_ = w0(se("RadarChart", Qk)), Xk = G.create(Lg), Zk = () => {
7752
+ }, w_ = N0(se("RadarChart", Qk)), Xk = G.create(Lg), Zk = () => {
7753
7753
  const t = X();
7754
7754
  return g("div", {
7755
7755
  className: "flex flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",
@@ -7787,7 +7787,7 @@ const y_ = Ne(Qf, Yk), Qk = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: r,
7787
7787
  children: t.t("coCreationForm.labels.applyingChanges")
7788
7788
  })]
7789
7789
  });
7790
- }, eC = Zi(Zk);
7790
+ }, eC = ro(Zk);
7791
7791
  var tC = mx();
7792
7792
  const yc = /* @__PURE__ */ jd(tC), Xf = (t) => {
7793
7793
  switch (t) {
@@ -7877,9 +7877,9 @@ function rC({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
7877
7877
  if (y)
7878
7878
  return y.type === "section" ? y.section.id : y.question.id;
7879
7879
  }, [t]), a = (y) => {
7880
- const D = y.id, S = t.map((k) => {
7880
+ const E = y.id, S = t.map((k) => {
7881
7881
  if (k.type === "question")
7882
- return k.question.id === D ? {
7882
+ return k.question.id === E ? {
7883
7883
  ...k,
7884
7884
  question: {
7885
7885
  ...k.question,
@@ -7887,7 +7887,7 @@ function rC({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
7887
7887
  }
7888
7888
  } : k;
7889
7889
  if (k.type === "section") {
7890
- const I = k.section.questions?.map((T) => T.id === D ? {
7890
+ const I = k.section.questions?.map((T) => T.id === E ? {
7891
7891
  ...T,
7892
7892
  ...y
7893
7893
  } : T);
@@ -7903,7 +7903,7 @@ function rC({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
7903
7903
  });
7904
7904
  i(S);
7905
7905
  }, c = (y) => {
7906
- const D = y.id, S = t.map((k) => k.type === "section" && k.section.id === D ? {
7906
+ const E = y.id, S = t.map((k) => k.type === "section" && k.section.id === E ? {
7907
7907
  ...k,
7908
7908
  section: {
7909
7909
  ...k.section,
@@ -7911,31 +7911,31 @@ function rC({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
7911
7911
  }
7912
7912
  } : k);
7913
7913
  i(S);
7914
- }, d = ne(({ element: y, afterId: D }) => {
7914
+ }, d = ne(({ element: y, afterId: E }) => {
7915
7915
  const S = [...t];
7916
- if (!D) {
7916
+ if (!E) {
7917
7917
  S.push(y), i(S);
7918
7918
  return;
7919
7919
  }
7920
7920
  ((I) => {
7921
- S.forEach((T, E) => {
7922
- T.type === "section" && T.section.id === I && S.splice(E + 1, 0, y), T.type === "question" && T.question.id === I && S.splice(E + 1, 0, y);
7921
+ S.forEach((T, D) => {
7922
+ T.type === "section" && T.section.id === I && S.splice(D + 1, 0, y), T.type === "question" && T.question.id === I && S.splice(D + 1, 0, y);
7923
7923
  });
7924
- })(D), y.type === "question" && S.length === t.length && S.forEach((I, T) => {
7924
+ })(E), y.type === "question" && S.length === t.length && S.forEach((I, T) => {
7925
7925
  if (I.type !== "section")
7926
7926
  return;
7927
- const E = [...I.section.questions ?? []];
7928
- E?.forEach((N, _) => {
7929
- N.id === D && E.splice(_ + 1, 0, y.question);
7927
+ const D = [...I.section.questions ?? []];
7928
+ D?.forEach((N, _) => {
7929
+ N.id === E && D.splice(_ + 1, 0, y.question);
7930
7930
  }), S.splice(T, 1, {
7931
7931
  ...I,
7932
7932
  section: {
7933
7933
  ...I.section,
7934
- questions: E
7934
+ questions: D
7935
7935
  }
7936
7936
  });
7937
7937
  }), i(S);
7938
- }, [t, i]), f = ne(({ type: y, afterId: D }) => {
7938
+ }, [t, i]), f = ne(({ type: y, afterId: E }) => {
7939
7939
  const S = Qr(y === "section" ? "section" : "question"), k = nC(o), I = y === "section" ? {
7940
7940
  type: "section",
7941
7941
  section: {
@@ -7963,7 +7963,7 @@ function rC({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
7963
7963
  };
7964
7964
  d({
7965
7965
  element: I,
7966
- afterId: D
7966
+ afterId: E
7967
7967
  });
7968
7968
  }, [d, o]), u = ({ elementId: y }) => {
7969
7969
  const S = yc(t.map((I) => I.type === "section" ? [I, ...I.section.questions ?? []] : [I.question])).find((I) => I.type === "section" ? I.section.id === y : I.id === y);
@@ -7985,20 +7985,20 @@ function rC({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
7985
7985
  afterId: y
7986
7986
  });
7987
7987
  }, h = (y) => yc(t.map((S) => S.type === "question" ? [S.question] : S.section.questions)).find((S) => S?.id === y), m = (y) => {
7988
- let D = t.filter((S) => S.type === "section" ? S.section.id !== y : S.type === "question" ? S.question.id !== y : !0);
7989
- D.length === t.length && (D = D.map((S) => S.type === "section" ? {
7988
+ let E = t.filter((S) => S.type === "section" ? S.section.id !== y : S.type === "question" ? S.question.id !== y : !0);
7989
+ E.length === t.length && (E = E.map((S) => S.type === "section" ? {
7990
7990
  ...S,
7991
7991
  section: {
7992
7992
  ...S.section,
7993
7993
  questions: S.section.questions?.filter((k) => k.id !== y)
7994
7994
  }
7995
- } : S)), i(D);
7995
+ } : S)), i(E);
7996
7996
  }, p = (y) => {
7997
- const D = t.find((S) => S.type === "section" ? S.section.questions?.some((k) => k.id === y) : !1);
7998
- return D?.type === "section" && D?.section.questions?.length === 1;
7997
+ const E = t.find((S) => S.type === "section" ? S.section.questions?.some((k) => k.id === y) : !1);
7998
+ return E?.type === "section" && E?.section.questions?.length === 1;
7999
7999
  }, b = (y) => {
8000
- const D = t.find((S) => S.type === "section" ? S.section.questions?.some((k) => k.id === y) : !1);
8001
- return D?.type === "section" ? D.section : void 0;
8000
+ const E = t.find((S) => S.type === "section" ? S.section.questions?.some((k) => k.id === y) : !1);
8001
+ return E?.type === "section" ? E.section : void 0;
8002
8002
  }, v = W(!0), x = !t.length;
8003
8003
  V(() => {
8004
8004
  if (v.current) {
@@ -8224,11 +8224,11 @@ function sC({ open: t, setOpen: e, questionId: n, questionType: r, canDeleteQues
8224
8224
  required: y
8225
8225
  });
8226
8226
  }, b = (y) => {
8227
- const D = y !== r && !((y === "select" || y === "multi-select") && u && "options" in u && u.options.length);
8227
+ const E = y !== r && !((y === "select" || y === "multi-select") && u && "options" in u && u.options.length);
8228
8228
  s?.({
8229
8229
  id: n,
8230
8230
  type: y,
8231
- ...D && {
8231
+ ...E && {
8232
8232
  ...Ls(y)
8233
8233
  }
8234
8234
  });
@@ -8300,7 +8300,7 @@ function sC({ open: t, setOpen: e, questionId: n, questionType: r, canDeleteQues
8300
8300
  const Nc = {
8301
8301
  fieldSizing: "content"
8302
8302
  }, Kn = ({ id: t, title: e, description: n, children: r, required: i, locked: o, type: s }) => {
8303
- const { onQuestionChange: a, onAddNewElement: c, isEditMode: d, getIsSingleQuestionInSection: f, getSectionContainingQuestion: u } = Je(), h = u(t), m = h?.locked || o, p = !!h, [b, v] = F(!1), [x, w] = F(!1), { isDragging: y } = co(), { t: D } = X(), S = (L) => {
8303
+ const { onQuestionChange: a, onAddNewElement: c, isEditMode: d, getIsSingleQuestionInSection: f, getSectionContainingQuestion: u } = Je(), h = u(t), m = h?.locked || o, p = !!h, [b, v] = F(!1), [x, w] = F(!1), { isDragging: y } = co(), { t: E } = X(), S = (L) => {
8304
8304
  a?.({
8305
8305
  id: t,
8306
8306
  type: s,
@@ -8322,13 +8322,13 @@ const Nc = {
8322
8322
  type: "section",
8323
8323
  afterId: t
8324
8324
  });
8325
- }, E = jl(), N = [...p ? [] : [{
8326
- label: D("coCreationForm.questionTypes.section"),
8325
+ }, D = jl(), N = [...p ? [] : [{
8326
+ label: E("coCreationForm.questionTypes.section"),
8327
8327
  icon: su,
8328
8328
  onClick: T
8329
8329
  }, {
8330
8330
  type: "separator"
8331
- }], ...E.map((L) => ({
8331
+ }], ...D.map((L) => ({
8332
8332
  ...L,
8333
8333
  onClick: () => I(L.questionType)
8334
8334
  }))], _ = f(t), A = !d || m;
@@ -8342,8 +8342,8 @@ const Nc = {
8342
8342
  className: "relative w-full",
8343
8343
  children: [l("textarea", {
8344
8344
  value: e,
8345
- "aria-label": D("coCreationForm.labels.title"),
8346
- placeholder: D("coCreationForm.labels.titlePlaceholder"),
8345
+ "aria-label": E("coCreationForm.labels.title"),
8346
+ placeholder: E("coCreationForm.labels.titlePlaceholder"),
8347
8347
  onChange: S,
8348
8348
  disabled: A,
8349
8349
  className: C("w-full resize-none px-2 py-1 text-lg font-semibold disabled:text-f1-foreground [&::-webkit-search-cancel-button]:hidden", A && "cursor-not-allowed"),
@@ -8353,7 +8353,7 @@ const Nc = {
8353
8353
  className: "textarea-overlay pointer-events-none absolute left-0 top-0 h-full w-full whitespace-pre-wrap break-words px-2 py-1 text-lg font-semibold",
8354
8354
  children: [l("span", {
8355
8355
  className: "opacity-0",
8356
- children: e || D("coCreationForm.labels.titlePlaceholder")
8356
+ children: e || E("coCreationForm.labels.titlePlaceholder")
8357
8357
  }), i && g("span", {
8358
8358
  className: C("text-f1-foreground-critical", !e && "text-f1-foreground-secondary"),
8359
8359
  children: [" ", "*"]
@@ -8371,8 +8371,8 @@ const Nc = {
8371
8371
  })]
8372
8372
  }), l("textarea", {
8373
8373
  value: n,
8374
- "aria-label": D("coCreationForm.labels.description"),
8375
- placeholder: D("coCreationForm.labels.questionDescriptionPlaceholder"),
8374
+ "aria-label": E("coCreationForm.labels.description"),
8375
+ placeholder: E("coCreationForm.labels.questionDescriptionPlaceholder"),
8376
8376
  onChange: k,
8377
8377
  disabled: A,
8378
8378
  className: C("w-full resize-none px-2 text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden", A && "cursor-not-allowed"),
@@ -8408,7 +8408,7 @@ const Nc = {
8408
8408
  ...e,
8409
8409
  children: l("div", {
8410
8410
  className: "px-0.5",
8411
- children: l(A0, {
8411
+ children: l(D0, {
8412
8412
  size: "md",
8413
8413
  value: s,
8414
8414
  onChange: o,
@@ -8452,7 +8452,7 @@ const Nc = {
8452
8452
  ...e,
8453
8453
  children: l("div", {
8454
8454
  className: "px-0.5",
8455
- children: l(T0, {
8455
+ children: l(_0, {
8456
8456
  locale: "en-US",
8457
8457
  size: "md",
8458
8458
  value: t,
@@ -8498,8 +8498,8 @@ const Nc = {
8498
8498
  onClick: (m) => {
8499
8499
  m.preventDefault(), m.stopPropagation();
8500
8500
  },
8501
- children: l(D0, {
8502
- data: E0,
8501
+ children: l(L0, {
8502
+ data: O0,
8503
8503
  onEmojiSelect: h,
8504
8504
  locale: "en",
8505
8505
  icons: "outline",
@@ -8520,7 +8520,7 @@ const Nc = {
8520
8520
  className: "text-base font-medium",
8521
8521
  children: c
8522
8522
  })
8523
- }) : l(Dr, {
8523
+ }) : l(Er, {
8524
8524
  emoji: c,
8525
8525
  size: "sm"
8526
8526
  })
@@ -8575,7 +8575,7 @@ const Nc = {
8575
8575
  });
8576
8576
  }, y = () => {
8577
8577
  w("mark-as-correct");
8578
- }, D = () => {
8578
+ }, E = () => {
8579
8579
  w("remove");
8580
8580
  }, S = (N) => {
8581
8581
  const _ = N.target.value;
@@ -8588,12 +8588,12 @@ const Nc = {
8588
8588
  h(!0), m(d);
8589
8589
  }, I = () => {
8590
8590
  h(!1), m(null);
8591
- }, T = u ? v : s, E = !!s && !c;
8591
+ }, T = u ? v : s, D = !!s && !c;
8592
8592
  return l(Un, {
8593
8593
  value: e,
8594
8594
  onDragStart: k,
8595
8595
  onDragEnd: I,
8596
- dragListener: E,
8596
+ dragListener: D,
8597
8597
  layout: "position",
8598
8598
  as: "div",
8599
8599
  children: g("div", {
@@ -8610,11 +8610,11 @@ const Nc = {
8610
8610
  hideLabel: !0
8611
8611
  })
8612
8612
  }), l("div", {
8613
- className: C("hidden scale-75 cursor-grab", E && "active:cursor-grabbing", T && "group-hover:block", u && "cursor-grabbing", !E && "cursor-not-allowed"),
8613
+ className: C("hidden scale-75 cursor-grab", D && "active:cursor-grabbing", T && "group-hover:block", u && "cursor-grabbing", !D && "cursor-not-allowed"),
8614
8614
  children: l("div", {
8615
8615
  className: "flex aspect-square w-6 scale-90 items-center justify-center",
8616
8616
  children: l(Wt, {
8617
- icon: Er,
8617
+ icon: Dr,
8618
8618
  size: "sm"
8619
8619
  })
8620
8620
  })
@@ -8643,7 +8643,7 @@ const Nc = {
8643
8643
  variant: "ghost",
8644
8644
  icon: hn,
8645
8645
  hideLabel: !0,
8646
- onClick: D
8646
+ onClick: E
8647
8647
  })]
8648
8648
  }) : l("div", {
8649
8649
  className: "min-h-8"
@@ -8797,7 +8797,7 @@ const Nc = {
8797
8797
  size: "md",
8798
8798
  clearable: !e.required,
8799
8799
  ...c
8800
- }), e.type === "longText" && l(_0, {
8800
+ }), e.type === "longText" && l(R0, {
8801
8801
  rows: 4,
8802
8802
  ...c
8803
8803
  })]
@@ -8859,7 +8859,7 @@ const Nc = {
8859
8859
  u && i.start(h);
8860
8860
  },
8861
8861
  children: l(q, {
8862
- icon: Er,
8862
+ icon: Dr,
8863
8863
  size: "sm"
8864
8864
  })
8865
8865
  }), l(nh, {
@@ -8874,20 +8874,20 @@ const Nc = {
8874
8874
  id: t,
8875
8875
  title: e,
8876
8876
  description: n
8877
- }), [t, e, n]), m = (D) => {
8877
+ }), [t, e, n]), m = (E) => {
8878
8878
  o?.({
8879
8879
  ...h,
8880
- title: D.target.value
8880
+ title: E.target.value
8881
8881
  });
8882
- }, p = (D) => {
8882
+ }, p = (E) => {
8883
8883
  o?.({
8884
8884
  ...h,
8885
- description: D.target.value
8885
+ description: E.target.value
8886
8886
  });
8887
- }, b = (D) => {
8887
+ }, b = (E) => {
8888
8888
  o?.({
8889
8889
  ...h,
8890
- questions: D
8890
+ questions: E
8891
8891
  });
8892
8892
  }, v = () => {
8893
8893
  c?.({
@@ -8956,9 +8956,9 @@ const Nc = {
8956
8956
  as: "div",
8957
8957
  children: l("div", {
8958
8958
  className: "group/section-list flex flex-col gap-4",
8959
- children: r.map((D) => l(bC, {
8960
- question: D
8961
- }, D.id))
8959
+ children: r.map((E) => l(bC, {
8960
+ question: E
8961
+ }, E.id))
8962
8962
  })
8963
8963
  })
8964
8964
  }), g("div", {
@@ -9027,7 +9027,7 @@ const Nc = {
9027
9027
  u && i.start(h);
9028
9028
  },
9029
9029
  children: l(q, {
9030
- icon: Er,
9030
+ icon: Dr,
9031
9031
  size: "sm"
9032
9032
  })
9033
9033
  }), t.type === "section" && l(xC, {
@@ -9327,7 +9327,7 @@ const SC = ({ entity: t, selected: e, onSelect: n, onRemove: r, marginLeft: i, s
9327
9327
  if (b) return;
9328
9328
  !i || o ? s(r) : i && a(r);
9329
9329
  } else k.key === "ArrowDown" ? uo(k.currentTarget, d) : k.key === "ArrowUp" && fo(k.currentTarget, f);
9330
- }, D = () => {
9330
+ }, E = () => {
9331
9331
  if (x)
9332
9332
  c(!e), w(!1);
9333
9333
  else {
@@ -9370,7 +9370,7 @@ const SC = ({ entity: t, selected: e, onSelect: n, onRemove: r, marginLeft: i, s
9370
9370
  }), l(yl, {
9371
9371
  checked: S,
9372
9372
  disabled: b,
9373
- onClick: D,
9373
+ onClick: E,
9374
9374
  onKeyDown: y,
9375
9375
  indeterminate: o,
9376
9376
  onPointerDown: (k) => {
@@ -9499,7 +9499,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9499
9499
  className: "cursor-pointer text-f1-icon-secondary"
9500
9500
  })]
9501
9501
  });
9502
- }, Go = 384, qo = 36, TC = 37, Ic = 1, Ac = 200, Tc = '[data-avatarname-navigator-element="true"]', DC = ({ groupView: t, entities: e, groups: n, selectedGroup: r, search: i, onSelect: o, onRemove: s, onSubItemRemove: a, onSubItemSelect: c, onClear: d, onSelectAll: f, onSearch: u, selectedEntities: h = [], onGroupChange: m, onToggleExpand: p, searchPlaceholder: b, selectAllLabel: v, clearLabel: x, notFoundTitle: w, notFoundSubtitle: y, className: D, actions: S, onCreate: k, onCreateLabel: I, singleSelector: T = !1, loading: E = !1, disabled: N = !1, hiddenAvatar: _ = !1 }) => {
9502
+ }, Go = 384, qo = 36, TC = 37, Ic = 1, Ac = 200, Tc = '[data-avatarname-navigator-element="true"]', EC = ({ groupView: t, entities: e, groups: n, selectedGroup: r, search: i, onSelect: o, onRemove: s, onSubItemRemove: a, onSubItemSelect: c, onClear: d, onSelectAll: f, onSearch: u, selectedEntities: h = [], onGroupChange: m, onToggleExpand: p, searchPlaceholder: b, selectAllLabel: v, clearLabel: x, notFoundTitle: w, notFoundSubtitle: y, className: E, actions: S, onCreate: k, onCreateLabel: I, singleSelector: T = !1, loading: D = !1, disabled: N = !1, hiddenAvatar: _ = !1 }) => {
9503
9503
  const A = Q.useRef(null), L = z(() => t ? e.reduce((P, Y) => P + (Y.subItems?.length ?? 0), 0) : e.length, [e, t]), O = ne(() => {
9504
9504
  setTimeout(() => {
9505
9505
  A.current?.scrollTo({
@@ -9524,7 +9524,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9524
9524
  selected: !!Y,
9525
9525
  partialSelected: !!Y
9526
9526
  };
9527
- const ie = (P.subItems ?? []).filter((be) => Y?.subItems?.some((Ee) => Ee.subId === be.subId)), ce = (P.subItems?.length ?? 0) === ie.length, ve = !ce && ie.length > 0;
9527
+ const ie = (P.subItems ?? []).filter((be) => Y?.subItems?.some((De) => De.subId === be.subId)), ce = (P.subItems?.length ?? 0) === ie.length, ve = !ce && ie.length > 0;
9528
9528
  return {
9529
9529
  selected: ce,
9530
9530
  partialSelected: ve
@@ -9548,7 +9548,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9548
9548
  onRemove: s,
9549
9549
  selected: ce,
9550
9550
  partialSelected: ve,
9551
- showGroupIcon: EC(n, r),
9551
+ showGroupIcon: DC(n, r),
9552
9552
  singleSelector: T,
9553
9553
  goToFirst: O,
9554
9554
  goToLast: R,
@@ -9599,7 +9599,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9599
9599
  subItems: ce.subItems,
9600
9600
  expanded: ce.expanded,
9601
9601
  searchKeys: ce.subSearchKeys
9602
- }, Ee = Xr(h, be.id), Se = (be?.subItems ?? []).filter((it) => Ee?.subItems?.some((bn) => bn.subId === it.subId)), Dt = (be.subItems?.length ?? 0) === Se.length, rt = !Dt && Se.length > 0;
9602
+ }, De = Xr(h, be.id), Se = (be?.subItems ?? []).filter((it) => De?.subItems?.some((bn) => bn.subId === it.subId)), Et = (be.subItems?.length ?? 0) === Se.length, rt = !Et && Se.length > 0;
9603
9603
  return l(ci, {
9604
9604
  groupView: !0,
9605
9605
  expanded: be.expanded ?? !1,
@@ -9608,7 +9608,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9608
9608
  entity: be,
9609
9609
  onSelect: o,
9610
9610
  onRemove: s,
9611
- selected: Dt,
9611
+ selected: Et,
9612
9612
  partialSelected: rt,
9613
9613
  showGroupIcon: n.find((it) => it.value === r)?.groupType === "team",
9614
9614
  singleSelector: T,
@@ -9622,7 +9622,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9622
9622
  let ve = !!Xr(h, ce.subId);
9623
9623
  if (!ve) {
9624
9624
  const be = Xr(h, ie.id);
9625
- ve = !!(ie?.subItems ?? []).filter((Se) => be?.subItems?.some((Dt) => Dt.subId === Se.subId)).find((Se) => Se.subId === ce.subId);
9625
+ ve = !!(ie?.subItems ?? []).filter((Se) => be?.subItems?.some((Et) => Et.subId === Se.subId)).find((Se) => Se.subId === ce.subId);
9626
9626
  }
9627
9627
  return l(ci, {
9628
9628
  expanded: !1,
@@ -9654,19 +9654,19 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9654
9654
  if (!t)
9655
9655
  P = e.length, Y = e.reduce((ve, { id: be }) => ve + ($.has(be) ? 1 : 0), 0);
9656
9656
  else {
9657
- const ve = new Set([...$.values()].flatMap((be) => be.subItems?.map((Ee) => Ee.subId) ?? []));
9657
+ const ve = new Set([...$.values()].flatMap((be) => be.subItems?.map((De) => De.subId) ?? []));
9658
9658
  e.forEach((be) => {
9659
- const Ee = be.subItems ?? [];
9660
- P += Ee.length, Y += Ee.filter((Se) => ve.has(Se.subId)).length;
9659
+ const De = be.subItems ?? [];
9660
+ P += De.length, Y += De.filter((Se) => ve.has(Se.subId)).length;
9661
9661
  });
9662
9662
  }
9663
9663
  const ie = P > 0 && Y === P, ce = Y > 0;
9664
9664
  return [ie, ce];
9665
- }, [e, $, t]), te = ae.length, re = !T && (v || x), ue = S && S.length > 0, B = !E && (!T && re || ue);
9665
+ }, [e, $, t]), te = ae.length, re = !T && (v || x), ue = S && S.length > 0, B = !D && (!T && re || ue);
9666
9666
  return g("div", {
9667
- className: C("flex w-full flex-col rounded-l-xl border-0", T || E ? "rounded-r-xl" : "", D),
9667
+ className: C("flex w-full flex-col rounded-l-xl border-0", T || D ? "rounded-r-xl" : "", E),
9668
9668
  children: [g("header", {
9669
- className: C("flex h-[48px] justify-between gap-2 rounded-tl-xl border-0 border-b-[1px] border-r-[1px] border-solid border-f1-border-secondary bg-f1-background/30 p-2 backdrop-blur-2xl", T || E ? "rounded-t-xl border-r-0" : ""),
9669
+ className: C("flex h-[48px] justify-between gap-2 rounded-tl-xl border-0 border-b-[1px] border-r-[1px] border-solid border-f1-border-secondary bg-f1-background/30 p-2 backdrop-blur-2xl", T || D ? "rounded-t-xl border-r-0" : ""),
9670
9670
  children: [l("div", {
9671
9671
  className: "flex-1",
9672
9672
  children: l(AC, {
@@ -9681,7 +9681,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9681
9681
  children: l(dr, {
9682
9682
  label: "Group",
9683
9683
  hideLabel: !0,
9684
- disabled: E,
9684
+ disabled: D,
9685
9685
  onChange: m,
9686
9686
  options: n,
9687
9687
  value: r,
@@ -9690,10 +9690,10 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9690
9690
  })]
9691
9691
  }), g("section", {
9692
9692
  className: C("flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background", B ? "" : "rounded-b-xl border-r-0"),
9693
- children: [E && l("div", {
9693
+ children: [D && l("div", {
9694
9694
  className: "flex h-full w-full flex-row items-center justify-center",
9695
9695
  children: l(on, {})
9696
- }), !E && !L && g("div", {
9696
+ }), !D && !L && g("div", {
9697
9697
  className: "absolute flex w-full flex-col items-center justify-center gap-0.5 p-5",
9698
9698
  style: {
9699
9699
  height: Go
@@ -9705,7 +9705,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9705
9705
  className: "text-center text-f1-foreground-secondary",
9706
9706
  children: y
9707
9707
  })]
9708
- }), !E && (!!L || k) && l("div", {
9708
+ }), !D && (!!L || k) && l("div", {
9709
9709
  className: "h-full",
9710
9710
  children: t ? l(Os, {
9711
9711
  height: Go,
@@ -9738,7 +9738,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9738
9738
  actions: S
9739
9739
  })]
9740
9740
  });
9741
- }, Xr = (t, e) => t.find((n) => n.id === e), EC = (t, e) => t.find((n) => n.value === e)?.groupType === "team", _C = ({ entity: t, onRemove: e, disabled: n = !1, deactivated: r = !1, hiddenAvatar: i = !1 }) => l("div", {
9741
+ }, Xr = (t, e) => t.find((n) => n.id === e), DC = (t, e) => t.find((n) => n.value === e)?.groupType === "team", _C = ({ entity: t, onRemove: e, disabled: n = !1, deactivated: r = !1, hiddenAvatar: i = !1 }) => l("div", {
9742
9742
  className: "pr-2 pt-1.5",
9743
9743
  children: l(Vg, {
9744
9744
  className: C("max-w-54 w-fit gap-1 text-ellipsis break-all border-[1px] border-solid border-f1-border-secondary py-[1px] pl-[1px]", "rounded-full", i ? "pl-2" : "pl-0"),
@@ -9812,8 +9812,8 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9812
9812
  })
9813
9813
  })]
9814
9814
  });
9815
- }, OC = 500, Dc = 520, Ec = 210, _c = ({ groupView: t, onRemove: e, onSubItemRemove: n, selectedEntities: r, selectedLabel: i, width: o, singleSelector: s = !1, loading: a = !1, hiddenAvatar: c = !1, actions: d, onCreate: f, onCreateLabel: u, ...h }) => {
9816
- const m = (o ?? Dc) < OC, p = !a && !s && !m, b = o ?? Dc, v = p ? b - Ec : b;
9815
+ }, OC = 500, Ec = 520, Dc = 210, _c = ({ groupView: t, onRemove: e, onSubItemRemove: n, selectedEntities: r, selectedLabel: i, width: o, singleSelector: s = !1, loading: a = !1, hiddenAvatar: c = !1, actions: d, onCreate: f, onCreateLabel: u, ...h }) => {
9816
+ const m = (o ?? Ec) < OC, p = !a && !s && !m, b = o ?? Ec, v = p ? b - Dc : b;
9817
9817
  return g("div", {
9818
9818
  className: "relative overflow-hidden",
9819
9819
  style: {
@@ -9823,7 +9823,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9823
9823
  children: [l("div", {
9824
9824
  className: "absolute right-0 top-0",
9825
9825
  style: {
9826
- width: Ec + "px"
9826
+ width: Dc + "px"
9827
9827
  },
9828
9828
  children: l(LC, {
9829
9829
  groupView: t,
@@ -9839,7 +9839,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9839
9839
  style: {
9840
9840
  width: v + 1 + "px"
9841
9841
  },
9842
- children: l(DC, {
9842
+ children: l(EC, {
9843
9843
  ...h,
9844
9844
  groupView: t,
9845
9845
  onRemove: e,
@@ -9856,9 +9856,9 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9856
9856
  })]
9857
9857
  });
9858
9858
  }, RC = ({ placeholder: t, selected: e, selectedEntities: n, disabled: r = !1, hiddenAvatar: i = !1, label: o, labelIcon: s, icon: a, error: c, status: d, hint: f, onClickContent: u, hideLabel: h = !1, maxLength: m, loading: p = !1, required: b = !1, readonly: v = !1, append: x, size: w = "sm", open: y }) => {
9859
- const D = z(() => n.some((T) => T.subItems && T.subItems.length > 0), [n]), S = z(() => D ? n.flatMap((T) => (T.subItems ?? []).map((E) => ({
9859
+ const E = z(() => n.some((T) => T.subItems && T.subItems.length > 0), [n]), S = z(() => E ? n.flatMap((T) => (T.subItems ?? []).map((D) => ({
9860
9860
  parent: T,
9861
- subItem: E
9861
+ subItem: D
9862
9862
  }))) : n.map((T) => ({
9863
9863
  parent: null,
9864
9864
  subItem: {
@@ -9867,7 +9867,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9867
9867
  subAvatar: T.avatar,
9868
9868
  subDeactivated: T.deactivated
9869
9869
  }
9870
- })), [D, n]), k = S.length === 0 ? void 0 : S.length === 1 ? S[0].subItem.subName : S.length + " " + e, I = S.length === 1 ? S[0].subItem.subName : void 0;
9870
+ })), [E, n]), k = S.length === 0 ? void 0 : S.length === 1 ? S[0].subItem.subName : S.length + " " + e, I = S.length === 1 ? S[0].subItem.subName : void 0;
9871
9871
  return l(Ug, {
9872
9872
  onClickContent: u,
9873
9873
  role: "combobox",
@@ -9928,9 +9928,9 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9928
9928
  const I = t.selectedEntities ?? [], T = i.find((L) => L.id === k.id);
9929
9929
  if (!T)
9930
9930
  return;
9931
- const E = new Set((T.subItems ?? []).map((L) => L.subId)), N = /* @__PURE__ */ new Set([T.id]);
9931
+ const D = new Set((T.subItems ?? []).map((L) => L.subId)), N = /* @__PURE__ */ new Set([T.id]);
9932
9932
  i.forEach((L) => {
9933
- L.id !== T.id && (L.subItems ?? []).some((R) => E.has(R.subId)) && N.add(L.id);
9933
+ L.id !== T.id && (L.subItems ?? []).some((R) => D.has(R.subId)) && N.add(L.id);
9934
9934
  });
9935
9935
  const _ = [...I];
9936
9936
  function A(L) {
@@ -9940,7 +9940,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9940
9940
  N.forEach((L) => {
9941
9941
  const O = i.find((U) => U.id === L);
9942
9942
  if (!O) return;
9943
- const R = O.subItems?.filter((U) => E.has(U.subId)) ?? [], $ = _.findIndex((U) => U.id === L);
9943
+ const R = O.subItems?.filter((U) => D.has(U.subId)) ?? [], $ = _.findIndex((U) => U.id === L);
9944
9944
  if ($ >= 0) {
9945
9945
  const U = _[$].subItems ?? [], Z = new Set(U.map((K) => K.subId)), ae = [...U, ...R.filter((K) => !Z.has(K.subId))];
9946
9946
  A({
@@ -9963,13 +9963,13 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9963
9963
  }]
9964
9964
  }), n(!1);
9965
9965
  else {
9966
- const T = t.selectedEntities ?? [], E = new Set(T.map((A) => A.id)), N = new Map(T.map((A) => [A.id, A.subItems ?? []]));
9967
- E.add(k.id), t.entities.forEach((A) => {
9968
- A.subItems?.some((O) => O.subId === I.subId) && E.add(A.id);
9966
+ const T = t.selectedEntities ?? [], D = new Set(T.map((A) => A.id)), N = new Map(T.map((A) => [A.id, A.subItems ?? []]));
9967
+ D.add(k.id), t.entities.forEach((A) => {
9968
+ A.subItems?.some((O) => O.subId === I.subId) && D.add(A.id);
9969
9969
  });
9970
9970
  const _ = [];
9971
9971
  t.entities.forEach((A) => {
9972
- if (E.has(A.id)) {
9972
+ if (D.has(A.id)) {
9973
9973
  let O = [...N.get(A.id) ?? []];
9974
9974
  A.subItems?.some((U) => U.subId === I.subId) && (O.some((Z) => Z.subId === I.subId) || O.push(I));
9975
9975
  const $ = new Set((A.subItems ?? []).map((U) => U.subId));
@@ -9989,10 +9989,10 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
9989
9989
  let I = [];
9990
9990
  const T = t.selectedEntities ?? [];
9991
9991
  if (f) {
9992
- const E = i.find((_) => _.id === k.id);
9993
- if (!E)
9992
+ const D = i.find((_) => _.id === k.id);
9993
+ if (!D)
9994
9994
  return;
9995
- const N = new Set((E.subItems ?? []).map((_) => _.subId));
9995
+ const N = new Set((D.subItems ?? []).map((_) => _.subId));
9996
9996
  for (const _ of T) {
9997
9997
  const A = (_.subItems ?? []).filter((L) => !N.has(L.subId));
9998
9998
  A.length > 0 && I.push({
@@ -10001,7 +10001,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
10001
10001
  });
10002
10002
  }
10003
10003
  } else
10004
- I = (T ?? []).filter((E) => E.id !== k.id);
10004
+ I = (T ?? []).filter((D) => D.id !== k.id);
10005
10005
  t.onSelect(I);
10006
10006
  }
10007
10007
  function p(k, I) {
@@ -10009,9 +10009,9 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
10009
10009
  t.onSelect(null);
10010
10010
  return;
10011
10011
  }
10012
- const T = t.selectedEntities ?? [], E = I.subId, N = [];
10012
+ const T = t.selectedEntities ?? [], D = I.subId, N = [];
10013
10013
  for (const _ of T) {
10014
- const A = _.subItems?.filter((L) => L.subId !== E) ?? [];
10014
+ const A = _.subItems?.filter((L) => L.subId !== D) ?? [];
10015
10015
  A.length > 0 && N.push({
10016
10016
  ..._,
10017
10017
  subItems: A
@@ -10027,32 +10027,32 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
10027
10027
  const k = t.selectedEntities ?? [];
10028
10028
  let I = [];
10029
10029
  if (f) {
10030
- const T = new Set(i.flatMap((E) => (E.subItems ?? []).map((N) => N.subId)));
10031
- for (const E of k) {
10032
- const N = (E.subItems ?? []).filter((_) => !T.has(_.subId));
10030
+ const T = new Set(i.flatMap((D) => (D.subItems ?? []).map((N) => N.subId)));
10031
+ for (const D of k) {
10032
+ const N = (D.subItems ?? []).filter((_) => !T.has(_.subId));
10033
10033
  N.length > 0 && I.push({
10034
- ...E,
10034
+ ...D,
10035
10035
  subItems: N
10036
10036
  });
10037
10037
  }
10038
10038
  } else {
10039
- const T = new Set(i.map((E) => E.id));
10040
- I = (k ?? []).filter((E) => !T.has(E.id));
10039
+ const T = new Set(i.map((D) => D.id));
10040
+ I = (k ?? []).filter((D) => !T.has(D.id));
10041
10041
  }
10042
10042
  t.onSelect(I);
10043
10043
  }
10044
10044
  function v() {
10045
10045
  const k = [...t.selectedEntities ?? []];
10046
10046
  i.forEach((I) => {
10047
- const T = k.find((E) => E.id === I.id);
10047
+ const T = k.find((D) => D.id === I.id);
10048
10048
  if (!T)
10049
10049
  k.push({
10050
10050
  ...I,
10051
10051
  subItems: I.subItems || []
10052
10052
  });
10053
10053
  else {
10054
- const E = Array.from(/* @__PURE__ */ new Set([...T.subItems ?? [], ...I.subItems ?? []]));
10055
- T.subItems = E;
10054
+ const D = Array.from(/* @__PURE__ */ new Set([...T.subItems ?? [], ...I.subItems ?? []]));
10055
+ T.subItems = D;
10056
10056
  }
10057
10057
  }), t.singleSelector || t.onSelect(k);
10058
10058
  }
@@ -10071,17 +10071,17 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
10071
10071
  }
10072
10072
  if (f && !t.applySearchToGroup) {
10073
10073
  const I = t.entities.map((T) => {
10074
- const E = FC(T, c), N = T.subItems?.map((_) => ({
10074
+ const D = FC(T, c), N = T.subItems?.map((_) => ({
10075
10075
  ..._,
10076
10076
  score: Li(c, _.subSearchKeys ?? [_.subName])
10077
10077
  })).filter((_) => _.score < 1 / 0).sort((_, A) => _.score - A.score);
10078
10078
  return {
10079
10079
  ...T,
10080
- score: E,
10080
+ score: D,
10081
10081
  expanded: T.expanded ?? (N?.length ?? 0) > 0,
10082
10082
  subItems: N
10083
10083
  };
10084
- }).filter((T) => T.score < 1 / 0).sort((T, E) => T.score - E.score);
10084
+ }).filter((T) => T.score < 1 / 0).sort((T, D) => T.score - D.score);
10085
10085
  o(I);
10086
10086
  } else {
10087
10087
  const k = t.entities.map((I) => {
@@ -10094,7 +10094,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
10094
10094
  o(k);
10095
10095
  }
10096
10096
  }, [c, t.entities, t.applySearchToGroup, f, o]);
10097
- const y = W(null), [D, S] = F(0);
10097
+ const y = W(null), [E, S] = F(0);
10098
10098
  return Wn(() => {
10099
10099
  const k = () => {
10100
10100
  y.current && S(y.current.offsetWidth);
@@ -10127,7 +10127,7 @@ const Sc = ({ label: t, onCreate: e, goToFirst: n, goToLast: r }) => l("div", {
10127
10127
  loading: t.loading,
10128
10128
  notFoundTitle: t.notFoundTitle,
10129
10129
  notFoundSubtitle: t.notFoundSubtitle,
10130
- width: t.width ?? D - 2,
10130
+ width: t.width ?? E - 2,
10131
10131
  disabled: t.disabled,
10132
10132
  hiddenAvatar: t.hiddenAvatar,
10133
10133
  onCreate: t.onCreate,
@@ -10403,7 +10403,7 @@ const gh = Fe.forwardRef(({ className: t, children: e, variant: n, size: r, ...i
10403
10403
  gh.displayName = fh.displayName;
10404
10404
  function S_({ onSubmit: t, children: e, ...n }) {
10405
10405
  const r = n.formState.errors.root;
10406
- return l(L0, {
10406
+ return l(F0, {
10407
10407
  ...n,
10408
10408
  children: g("form", {
10409
10409
  onSubmit: t,
@@ -10424,21 +10424,21 @@ function I_({ submitLabel: t, form: e }) {
10424
10424
  })
10425
10425
  });
10426
10426
  }
10427
- const A_ = ({ label: t, description: e, children: n, ...r }) => l(O0, {
10427
+ const A_ = ({ label: t, description: e, children: n, ...r }) => l(M0, {
10428
10428
  ...r,
10429
- render: ({ field: i }) => g(R0, {
10430
- children: [l(F0, {
10429
+ render: ({ field: i }) => g(P0, {
10430
+ children: [l(z0, {
10431
10431
  children: t
10432
- }), l(M0, {
10432
+ }), l($0, {
10433
10433
  children: n(i)
10434
- }), l(P0, {
10434
+ }), l(j0, {
10435
10435
  children: e
10436
- }), l(z0, {})]
10436
+ }), l(B0, {})]
10437
10437
  })
10438
10438
  });
10439
10439
  function T_(t, e, n) {
10440
- const r = $0({
10441
- resolver: j0(t),
10440
+ const r = H0({
10441
+ resolver: V0(t),
10442
10442
  mode: "onChange",
10443
10443
  ...e
10444
10444
  }), i = async (o) => {
@@ -10462,7 +10462,7 @@ const BC = ({ id: t, createdAt: e, title: n, description: r, icon: i, category:
10462
10462
  onChange(h) {
10463
10463
  h && c?.(t);
10464
10464
  }
10465
- }), f = Wu(e, {
10465
+ }), f = Uu(e, {
10466
10466
  yesterdayRelative: !1
10467
10467
  });
10468
10468
  return g("div", {
@@ -10536,13 +10536,13 @@ const BC = ({ id: t, createdAt: e, title: n, description: r, icon: i, category:
10536
10536
  children: Array.from({
10537
10537
  length: e
10538
10538
  }).map((n, r) => l(Hl.Skeleton, {}, r))
10539
- }), di = Ne(VC, WC), UC = 3, GC = ["today", "yesterday", "lastWeek", "lastMonth"], qC = (t) => V0(t, ([e]) => {
10539
+ }), di = Ne(VC, WC), UC = 3, GC = ["today", "yesterday", "lastWeek", "lastMonth"], qC = (t) => G0(t, ([e]) => {
10540
10540
  const n = GC.indexOf(e);
10541
10541
  return n === -1 ? -Number(e) : n - 4e3;
10542
10542
  }), Fs = () => l("div", {
10543
10543
  className: "-mx-2 h-px bg-f1-background-secondary"
10544
10544
  }), KC = ({ items: t, loadingMoreItems: e = !1, onClickItem: n, onEndReached: r, onEndReachedItemsThreshold: i = 5 }) => {
10545
- const o = X(), s = B0(t, "createdAt"), a = Object.values(s).slice().flatMap((f) => f.map((u) => u.id)).slice(-i), c = H0((f) => {
10545
+ const o = X(), s = W0(t, "createdAt"), a = Object.values(s).slice().flatMap((f) => f.map((u) => u.id)).slice(-i), c = U0((f) => {
10546
10546
  a.includes(f) && r?.();
10547
10547
  }, 1e3), d = qC(Object.entries(s).filter(([f, u]) => !!u.length));
10548
10548
  return g("div", {
@@ -10571,7 +10571,7 @@ const BC = ({ id: t, createdAt: e, title: n, description: r, icon: i, category:
10571
10571
  numItems: 5
10572
10572
  })]
10573
10573
  });
10574
- }, D_ = se("ActivityItemList", Ne(KC, JC)), YC = ({ description: t }) => {
10574
+ }, E_ = se("ActivityItemList", Ne(KC, JC)), YC = ({ description: t }) => {
10575
10575
  const [e, n] = F(!1), [r, i] = F(!1), o = X(), s = W(null), a = W(null), c = ms({
10576
10576
  ref: s
10577
10577
  }), d = ms({
@@ -10642,7 +10642,7 @@ function Ko({ item: t, collapse: e = !1 }) {
10642
10642
  variant: n.variant
10643
10643
  });
10644
10644
  case "list":
10645
- return l(Dl, {
10645
+ return l(El, {
10646
10646
  type: n.variant,
10647
10647
  avatars: n.avatars,
10648
10648
  size: "xs",
@@ -10758,7 +10758,7 @@ function eN({ item: t }) {
10758
10758
  })
10759
10759
  }), i && l("div", {
10760
10760
  className: "w-full md:hidden",
10761
- children: l(El, {
10761
+ children: l(Dl, {
10762
10762
  items: t.actions?.filter(XC).map((a) => ({
10763
10763
  label: a.label,
10764
10764
  icon: a.icon,
@@ -10822,7 +10822,7 @@ function eN({ item: t }) {
10822
10822
  })]
10823
10823
  });
10824
10824
  }
10825
- const tN = Zi(function({ items: e }) {
10825
+ const tN = ro(function({ items: e }) {
10826
10826
  const n = e.filter((r) => typeof r == "object");
10827
10827
  return l("div", {
10828
10828
  className: "flex flex-col items-start gap-x-3 gap-y-0 md:flex-row md:flex-wrap md:items-center",
@@ -10917,7 +10917,7 @@ function nN({ title: t, avatar: e, deactivated: n, description: r, primaryAction
10917
10917
  })
10918
10918
  }, x.label)), u.length > 0 && l("div", {
10919
10919
  className: "w-full [&>*]:w-full [&_button]:w-full",
10920
- children: l(El, {
10920
+ children: l(Dl, {
10921
10921
  items: u
10922
10922
  })
10923
10923
  })]
@@ -10983,7 +10983,7 @@ const rN = ({ avatar: t, title: e, description: n, primaryAction: r, secondaryAc
10983
10983
  status: s,
10984
10984
  metadata: a,
10985
10985
  deactivated: c
10986
- }), E_ = se("ResourceHeader", rN), iN = {
10986
+ }), D_ = se("ResourceHeader", rN), iN = {
10987
10987
  birthday: "🎂",
10988
10988
  anniversary: "🎉",
10989
10989
  "first-day": "💼"
@@ -11025,7 +11025,7 @@ function sN({ firstName: t, lastName: e, src: n, canReact: r, lastEmojiReaction:
11025
11025
  }), r && l("div", {
11026
11026
  ref: s,
11027
11027
  className: C("absolute -right-0.5", n ? "bottom-0.5" : "-bottom-[3px]"),
11028
- children: l(Uu, {
11028
+ children: l(Gu, {
11029
11029
  lastEmojiReaction: i,
11030
11030
  onSelect: o,
11031
11031
  size: "sm",
@@ -11073,9 +11073,9 @@ const aN = ({ link: t, firstName: e, lastName: n, src: r, onClick: i, canReact:
11073
11073
  V(() => {
11074
11074
  h(s);
11075
11075
  }, [s]);
11076
- const p = (D) => {
11077
- h(D), a?.(D);
11078
- }, b = Qi(), { canvasRef: v, handleMouseEnter: x, handleMouseLeave: w } = lN(b), y = Dr({
11076
+ const p = (E) => {
11077
+ h(E), a?.(E);
11078
+ }, b = Qi(), { canvasRef: v, handleMouseEnter: x, handleMouseLeave: w } = lN(b), y = Er({
11079
11079
  emoji: iN[c],
11080
11080
  size: "sm"
11081
11081
  });
@@ -11187,7 +11187,7 @@ function dN({ emoji: t, initialCount: e, hasReacted: n = !1, users: r, onInterac
11187
11187
  },
11188
11188
  className: C("flex items-center gap-1 px-[3px] font-medium leading-tight shadow-none transition-all active:scale-90 motion-reduce:transition-none motion-reduce:active:scale-100", o && "border-f1-border-selected bg-f1-background-selected hover:border-f1-border-selected-bold"),
11189
11189
  "aria-label": rb(t),
11190
- prepend: l(Dr, {
11190
+ prepend: l(Er, {
11191
11191
  emoji: t,
11192
11192
  size: "md"
11193
11193
  }),
@@ -11214,7 +11214,7 @@ function uN({ items: t, onInteraction: e, locale: n, action: r }) {
11214
11214
  onClick: r.onClick,
11215
11215
  variant: "outline",
11216
11216
  hideLabel: !0
11217
- }), l(Uu, {
11217
+ }), l(Gu, {
11218
11218
  onSelect: e,
11219
11219
  locale: n
11220
11220
  }), t.map((i) => l(dN, {
@@ -11342,7 +11342,7 @@ const fN = se("Reactions", uN), Rc = (t) => {
11342
11342
  const n = (t?.split(".")).at(-1);
11343
11343
  return !!n && pN.has(n);
11344
11344
  }, gN = ({ title: t, mediaUrl: e, place: n, date: r }) => {
11345
- let i = W0(r);
11345
+ let i = q0(r);
11346
11346
  const o = (s) => {
11347
11347
  s.stopPropagation();
11348
11348
  };
@@ -11370,7 +11370,7 @@ const fN = se("Reactions", uN), Rc = (t) => {
11370
11370
  }), l(Ps, {
11371
11371
  title: t,
11372
11372
  description: i,
11373
- color: U0.special.highlight,
11373
+ color: K0.special.highlight,
11374
11374
  isPending: !1,
11375
11375
  toDate: r,
11376
11376
  noBackground: !0
@@ -11399,10 +11399,10 @@ const fN = se("Reactions", uN), Rc = (t) => {
11399
11399
  })]
11400
11400
  })]
11401
11401
  }), yh = Ne(gN, bN), vN = ({ id: t, author: e, group: n, createdAt: r, title: i, description: o, onClick: s, mediaUrl: a, event: c, counters: d, reactions: f, inLabel: u, comment: h, dropdownItems: m, noReactionsButton: p = !1 }) => {
11402
- const b = [d.views, d.comments].filter(Boolean).join(" · "), v = Wu(r), x = () => {
11402
+ const b = [d.views, d.comments].filter(Boolean).join(" · "), v = Uu(r), x = () => {
11403
11403
  s(t);
11404
- }, w = (D) => {
11405
- D.stopPropagation();
11404
+ }, w = (E) => {
11405
+ E.stopPropagation();
11406
11406
  }, y = e ? `${e.firstName} ${e.lastName}` : void 0;
11407
11407
  return g("div", {
11408
11408
  className: "flex w-full cursor-pointer flex-row gap-3 rounded-xl border border-solid border-transparent p-3 pt-2 hover:bg-f1-background-hover focus:border-f1-border-secondary focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold md:pb-4 md:pt-3",
@@ -11676,7 +11676,7 @@ const fN = se("Reactions", uN), Rc = (t) => {
11676
11676
  })
11677
11677
  })]
11678
11678
  });
11679
- }, wh = Zi(({ children: t, className: e, ...n }) => g(mt, {
11679
+ }, wh = ro(({ children: t, className: e, ...n }) => g(mt, {
11680
11680
  ...n,
11681
11681
  className: C("text-inherit group flex items-center gap-1.5 rounded p-1.5 text-f1-foreground", "no-underline hover:bg-f1-background-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-f1-border-selected-bold active:bg-f1-background-secondary-hover", e),
11682
11682
  children: [t, l("div", {
@@ -11689,7 +11689,7 @@ const fN = se("Reactions", uN), Rc = (t) => {
11689
11689
  })]
11690
11690
  }));
11691
11691
  wh.displayName = "NavigateAction";
11692
- const kh = Zi(({ children: t, className: e, href: n, ...r }) => g(mt, {
11692
+ const kh = ro(({ children: t, className: e, href: n, ...r }) => g(mt, {
11693
11693
  ...r,
11694
11694
  target: "_blank",
11695
11695
  href: n,
@@ -11820,15 +11820,15 @@ const TN = se("TeamItem", Ah), Th = J(({ ...t }, e) => l("li", {
11820
11820
  })
11821
11821
  }));
11822
11822
  Th.displayName = "DotTagItem";
11823
- const DN = se("DotTagItem", Th), ho = (t, e) => t && t.type === "copy" ? {
11823
+ const EN = se("DotTagItem", Th), ho = (t, e) => t && t.type === "copy" ? {
11824
11824
  type: "copy",
11825
11825
  text: t.text ?? e
11826
- } : t, EN = se("DataList", Ch), Sn = Object.assign(EN, {
11826
+ } : t, DN = se("DataList", Ch), Sn = Object.assign(DN, {
11827
11827
  Item: SN,
11828
11828
  CompanyItem: AN,
11829
11829
  PersonItem: IN,
11830
11830
  TeamItem: TN,
11831
- DotTagItem: DN
11831
+ DotTagItem: EN
11832
11832
  }), _N = ({ content: t }) => g(ee, {
11833
11833
  children: [t.type === "weekdays" && l("li", {
11834
11834
  className: "list-none px-1.5 py-1",
@@ -11880,7 +11880,7 @@ const DN = se("DotTagItem", Th), ho = (t, e) => t && t.type === "copy" ? {
11880
11880
  }, o.title))
11881
11881
  })]
11882
11882
  });
11883
- }), R_ = se("DetailsItemsList", RN), Dh = Q.forwardRef(({ person: t, onClick: e, ...n }, r) => {
11883
+ }), R_ = se("DetailsItemsList", RN), Eh = Q.forwardRef(({ person: t, onClick: e, ...n }, r) => {
11884
11884
  const i = () => {
11885
11885
  e();
11886
11886
  };
@@ -11955,8 +11955,8 @@ const DN = se("DotTagItem", Th), ho = (t, e) => t && t.type === "copy" ? {
11955
11955
  })]
11956
11956
  })]
11957
11957
  });
11958
- Dh.displayName = "OnePersonListItem";
11959
- const F_ = se("OnePersonListItem", Ne(Dh, FN));
11958
+ Eh.displayName = "OnePersonListItem";
11959
+ const F_ = se("OnePersonListItem", Ne(Eh, FN));
11960
11960
  function MN({ children: t, sidebar: e, banner: n, ai: r, aiPromotion: i }) {
11961
11961
  const o = r?.enabled ? lb : i?.enabled ? qk : Rn, s = r?.enabled ? r : i?.enabled ? i : void 0;
11962
11962
  return l(Sx, {
@@ -12000,7 +12000,7 @@ function jN({ ai: t, aiPromotion: e, children: n, sidebar: r, banner: i }) {
12000
12000
  }, [f, c]), V(() => {
12001
12001
  c(u);
12002
12002
  }, [u, c]), $N(f, h), l(ee, {
12003
- children: l(Gu, {
12003
+ children: l(qu, {
12004
12004
  reducedMotion: d ? "always" : "never",
12005
12005
  transition: {
12006
12006
  ease: [0.25, 0.1, 0.25, 1],
@@ -12083,7 +12083,7 @@ const BN = St({
12083
12083
  period: "morning"
12084
12084
  }
12085
12085
  });
12086
- function Eh({ children: t, header: e, period: n, embedded: r = !1 }) {
12086
+ function Dh({ children: t, header: e, period: n, embedded: r = !1 }) {
12087
12087
  const { sidebarState: i, toggleSidebar: o, isSmallScreen: s } = Gn();
12088
12088
  return g("div", {
12089
12089
  className: `relative flex w-full flex-col overflow-hidden ${r ? "" : "xs:rounded-xl"} bg-f1-special-page shadow`,
@@ -12134,8 +12134,8 @@ function Eh({ children: t, header: e, period: n, embedded: r = !1 }) {
12134
12134
  })]
12135
12135
  });
12136
12136
  }
12137
- Eh.displayName = "DaytimePage";
12138
- const P_ = se("DaytimePage", Eh);
12137
+ Dh.displayName = "DaytimePage";
12138
+ const P_ = se("DaytimePage", Dh);
12139
12139
  function HN(t) {
12140
12140
  return t.filter((e) => !!e.title).map(({ title: e, description: n, href: r, onClick: i, target: o }) => ({
12141
12141
  label: e,
@@ -12459,13 +12459,13 @@ const YN = ({ item: t, active: e }) => g("div", {
12459
12459
  }, XN = ({ item: t, tooltip: e, dragConstraints: n, onRemove: r, index: i, total: o, onMove: s, onReorderFinish: a, isSortable: c = !0 }) => {
12460
12460
  const d = X(), { isDragging: f, setIsDragging: u, draggedItemId: h, setDraggedItemId: m } = Vl(), { isActive: p } = ll(), b = p(t.href, {
12461
12461
  exact: t.exactMatch
12462
- }), v = W(!1), [x, w] = F(!1), y = i === 0, D = i === o - 1, S = o === 1, k = z(() => {
12462
+ }), v = W(!1), [x, w] = F(!1), y = i === 0, E = i === o - 1, S = o === 1, k = z(() => {
12463
12463
  const A = [];
12464
12464
  return !S && !y && A.push({
12465
12465
  label: d.actions.moveUp,
12466
12466
  onClick: () => s?.(i, i - 1),
12467
12467
  icon: ub
12468
- }), !S && !D && A.push({
12468
+ }), !S && !E && A.push({
12469
12469
  label: d.actions.moveDown,
12470
12470
  onClick: () => s?.(i, i + 1),
12471
12471
  icon: fb
@@ -12477,13 +12477,13 @@ const YN = ({ item: t, active: e }) => g("div", {
12477
12477
  icon: hn,
12478
12478
  critical: !0
12479
12479
  }), A;
12480
- }, [S, y, D, d, s, i, r, t]), I = () => {
12480
+ }, [S, y, E, d, s, i, r, t]), I = () => {
12481
12481
  u(!0), w(!1), m(t.href || null), v.current = !0;
12482
12482
  }, T = () => {
12483
12483
  u(!1), m(null), a(), setTimeout(() => {
12484
12484
  v.current = !1;
12485
12485
  }, 0);
12486
- }, E = f && h === t.href, N = z(() => C("group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing", c && "touch-none", b ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary", x && "bg-f1-background-secondary", E && "bg-f1-background-secondary"), [b, x, E, c]), _ = z(() => g(ee, {
12486
+ }, D = f && h === t.href, N = z(() => C("group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing", c && "touch-none", b ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary", x && "bg-f1-background-secondary", D && "bg-f1-background-secondary"), [b, x, D, c]), _ = z(() => g(ee, {
12487
12487
  children: [l("div", {
12488
12488
  className: "flex w-full items-center justify-between px-1.5 py-1.5",
12489
12489
  children: l(eS, {
@@ -12492,7 +12492,7 @@ const YN = ({ item: t, active: e }) => g("div", {
12492
12492
  onClick: t.onClick,
12493
12493
  href: t.href,
12494
12494
  exactMatch: t.exactMatch,
12495
- className: C("flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline", E && "pointer-events-none"),
12495
+ className: C("flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline", D && "pointer-events-none"),
12496
12496
  draggable: !1,
12497
12497
  children: [t.type === "icon" ? l(q, {
12498
12498
  icon: t.icon,
@@ -12511,7 +12511,7 @@ const YN = ({ item: t, active: e }) => g("div", {
12511
12511
  })
12512
12512
  })
12513
12513
  }), l("div", {
12514
- className: C("absolute inset-y-1 right-1 z-10 flex h-6 w-6 items-center justify-center rounded-sm opacity-0 transition-opacity duration-100 hover:bg-f1-background-secondary group-hover:opacity-100", x && "bg-f1-background-secondary opacity-100", E && "opacity-100"),
12514
+ className: C("absolute inset-y-1 right-1 z-10 flex h-6 w-6 items-center justify-center rounded-sm opacity-0 transition-opacity duration-100 hover:bg-f1-background-secondary group-hover:opacity-100", x && "bg-f1-background-secondary opacity-100", D && "opacity-100"),
12515
12515
  children: l(Me, {
12516
12516
  open: x,
12517
12517
  onOpenChange: w,
@@ -12526,7 +12526,7 @@ const YN = ({ item: t, active: e }) => g("div", {
12526
12526
  })
12527
12527
  })
12528
12528
  })]
12529
- }), [t, b, x, E, k, e]);
12529
+ }), [t, b, x, D, k, e]);
12530
12530
  return c ? l(Un, {
12531
12531
  value: t,
12532
12532
  drag: "y",
@@ -12704,7 +12704,7 @@ function ZN({ nonSortableItems: t, sortableItems: e, setSortableItems: n, contai
12704
12704
  }, [s]);
12705
12705
  const y = (O) => {
12706
12706
  x(O);
12707
- }, D = ne((O) => {
12707
+ }, E = ne((O) => {
12708
12708
  const R = v.filter(($) => $.href !== O.href);
12709
12709
  x(R), a?.(R);
12710
12710
  }, [v, a]), S = ne((O, R) => {
@@ -12724,19 +12724,19 @@ function ZN({ nonSortableItems: t, sortableItems: e, setSortableItems: n, contai
12724
12724
  window.removeEventListener("resize", O), T.current !== null && window.clearTimeout(T.current);
12725
12725
  };
12726
12726
  }, [r, e, c]);
12727
- const E = "flex flex-col gap-0.5", N = z(() => v.reduce((O, R, $) => (R.label in O || (O[R.label] = []), O[R.label].push($), O), {}), [v]), _ = z(() => w && v.map((O, R) => l(XN, {
12727
+ const D = "flex flex-col gap-0.5", N = z(() => v.reduce((O, R, $) => (R.label in O || (O[R.label] = []), O[R.label].push($), O), {}), [v]), _ = z(() => w && v.map((O, R) => l(XN, {
12728
12728
  isSortable: !d,
12729
12729
  tooltip: (N[O.label] ?? []).length > 1 ? O.tooltip : void 0,
12730
12730
  item: O,
12731
12731
  dragConstraints: b,
12732
- onRemove: D,
12732
+ onRemove: E,
12733
12733
  index: R,
12734
12734
  total: v.length,
12735
12735
  onMove: S,
12736
12736
  onReorderFinish: () => {
12737
12737
  a?.(v);
12738
12738
  }
12739
- }, `${O.href}-${O.label}`)), [w, v, N, D, S, a, d]), A = "flex flex-col gap-3", L = z(() => e.map((O) => l(Yo, {
12739
+ }, `${O.href}-${O.label}`)), [w, v, N, E, S, a, d]), A = "flex flex-col gap-3", L = z(() => e.map((O) => l(Yo, {
12740
12740
  category: O,
12741
12741
  isSortable: !d,
12742
12742
  dragConstraints: r,
@@ -12759,13 +12759,13 @@ function ZN({ nonSortableItems: t, sortableItems: e, setSortableItems: n, contai
12759
12759
  children: l("div", {
12760
12760
  ref: b,
12761
12761
  children: d ? l("div", {
12762
- className: E,
12762
+ className: D,
12763
12763
  children: _
12764
12764
  }) : l(Mn, {
12765
12765
  axis: "y",
12766
12766
  values: v,
12767
12767
  onReorder: y,
12768
- className: E,
12768
+ className: D,
12769
12769
  children: _
12770
12770
  })
12771
12771
  })
@@ -12857,7 +12857,7 @@ function W_({ header: t, body: e, footer: n, onFooterDropdownClick: r }) {
12857
12857
  default: {
12858
12858
  duration: s ? 0 : 0.2
12859
12859
  }
12860
- }, m = () => n ? Tu(n) && r ? Sl(n, {
12860
+ }, m = () => n ? Eu(n) && r ? Sl(n, {
12861
12861
  onDropdownClick: r
12862
12862
  }) : n : null;
12863
12863
  return g(G.aside, {
@@ -12963,7 +12963,7 @@ const oS = ({ title: t, approvalsRequired: e = 1, status: n, approvers: r }) =>
12963
12963
  })]
12964
12964
  }), l("div", {
12965
12965
  className: "w-full",
12966
- children: l(Dl, {
12966
+ children: l(El, {
12967
12967
  avatars: a,
12968
12968
  layout: "fill",
12969
12969
  type: "person",
@@ -13029,7 +13029,7 @@ function Rh({ title: t, description: e, variant: n = "default", emoji: r, action
13029
13029
  })]
13030
13030
  }), i && l("div", {
13031
13031
  className: "flex w-full flex-col items-center justify-center gap-2 sm:w-fit sm:flex-row sm:gap-3 [&>div]:w-full",
13032
- children: i.map((o) => o.type === "upsell" ? l(G0, {
13032
+ children: i.map((o) => o.type === "upsell" ? l(J0, {
13033
13033
  label: o.label,
13034
13034
  onRequest: () => Promise.resolve(o.onClick()),
13035
13035
  errorMessage: o.errorMessage,
@@ -13149,7 +13149,7 @@ const mS = (t) => Array.isArray(t) ? t.every((e) => hS(e)) ? t : [{
13149
13149
  children: i ? l(Bc, {
13150
13150
  message: i
13151
13151
  }) : g(Rn, {
13152
- children: [l(El, {
13152
+ children: [l(Dl, {
13153
13153
  items: e
13154
13154
  }), h ? l(j, {
13155
13155
  label: h.label,
@@ -13248,7 +13248,7 @@ const mS = (t) => Array.isArray(t) ? t.every((e) => hS(e)) ? t : [{
13248
13248
  if (!t || !t.value)
13249
13249
  return [m.date.selectDate];
13250
13250
  const I = d || ku[t.granularity];
13251
- return [t.value, Array.isArray(e) ? e[0] : e].filter((E) => E !== void 0).sort((E, N) => E?.from.getTime() - N?.from.getTime()).map((E) => I.toString(E, m, "long"));
13251
+ return [t.value, Array.isArray(e) ? e[0] : e].filter((D) => D !== void 0).sort((D, N) => D?.from.getTime() - N?.from.getTime()).map((D) => I.toString(D, m, "long"));
13252
13252
  }, [t, m, e, d]), b = z(() => Object.values(p).join(" ⸱ "), [p]), v = (I) => {
13253
13253
  I && n?.(I);
13254
13254
  }, x = z(() => {
@@ -13257,12 +13257,12 @@ const mS = (t) => Array.isArray(t) ? t.every((e) => hS(e)) ? t : [{
13257
13257
  }, [u.minDate, d]), w = z(() => {
13258
13258
  if (u.maxDate)
13259
13259
  return d?.toRange(u.maxDate)?.to;
13260
- }, [u.maxDate, d]), [y, D] = F(null);
13260
+ }, [u.maxDate, d]), [y, E] = F(null);
13261
13261
  V(() => {
13262
- D(d?.toRange(/* @__PURE__ */ new Date()) ?? null);
13262
+ E(d?.toRange(/* @__PURE__ */ new Date()) ?? null);
13263
13263
  const I = () => {
13264
- const E = d?.toRange(/* @__PURE__ */ new Date()) ?? null;
13265
- E && gb(E.from, x) && bb(E.to || E.from, w) ? D(E) : D(null);
13264
+ const D = d?.toRange(/* @__PURE__ */ new Date()) ?? null;
13265
+ D && gb(D.from, x) && bb(D.to || D.from, w) ? E(D) : E(null);
13266
13266
  }, T = setInterval(() => {
13267
13267
  I();
13268
13268
  }, 6e4);
@@ -13326,23 +13326,23 @@ Fh.displayName = "DatePickerTrigger";
13326
13326
  function bS({ onSelect: t, defaultValue: e, presets: n = [], granularities: r = ["day"], hideNavigation: i = !1, hideGoToCurrent: o = !1, compareTo: s, defaultCompareTo: a, onCompareToChange: c, value: d, ...f }) {
13327
13327
  const [u, h] = F(e ?? d);
13328
13328
  V(() => {
13329
- q0(d, u) || h(d || e);
13329
+ Y0(d, u) || h(d || e);
13330
13330
  }, [d, e]);
13331
13331
  const [m, p] = F(), [b, v] = F(!1), x = au(), w = f.weekStartsOn ?? x.date?.weekStartsOn ?? vb.Monday, y = z(() => {
13332
13332
  const I = u?.granularity ?? "day";
13333
13333
  return xb(w)[I];
13334
- }, [u?.granularity, w]), D = (I) => {
13334
+ }, [u?.granularity, w]), E = (I) => {
13335
13335
  h(I), t?.(I);
13336
13336
  }, S = (I) => {
13337
13337
  p(I), c?.(I);
13338
13338
  }, k = (I) => {
13339
- D({
13339
+ E({
13340
13340
  value: y.toRange(I),
13341
13341
  granularity: u?.granularity ?? "day"
13342
13342
  });
13343
13343
  };
13344
- return l(K0, {
13345
- onSelect: D,
13344
+ return l(Q0, {
13345
+ onSelect: E,
13346
13346
  value: u,
13347
13347
  defaultValue: e,
13348
13348
  presets: n,
@@ -13450,7 +13450,7 @@ const xS = (t) => "date" in t, yS = {
13450
13450
  };
13451
13451
  return l(wl, {
13452
13452
  id: o,
13453
- children: l(Gu, {
13453
+ children: l(qu, {
13454
13454
  transition: {
13455
13455
  duration: 0.2,
13456
13456
  ease: [0.175, 0.885, 0.32, 1.05]
@@ -13600,7 +13600,7 @@ const xS = (t) => "date" in t, yS = {
13600
13600
  const n = t.substring(0, e), r = t.substring(e + 1);
13601
13601
  return !(!n || n.trim() === "" || !r || !/^v[0-9]+$/.test(r));
13602
13602
  }, SS = (t, e, n, r) => {
13603
- const [i, o] = F(!1), s = J0();
13603
+ const [i, o] = F(!1), s = X0();
13604
13604
  t && !NS(t) && console.error(
13605
13605
  `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").`
13606
13606
  );
@@ -13853,7 +13853,7 @@ function TS({ totalPages: t, currentPage: e = 1, onPageChange: n, showControls:
13853
13853
  })
13854
13854
  });
13855
13855
  }
13856
- const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, className: n }) => {
13856
+ const ES = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, className: n }) => {
13857
13857
  const r = X();
13858
13858
  return Sb(t) && g("div", {
13859
13859
  className: C("flex w-full items-center justify-between px-4", n),
@@ -13862,7 +13862,7 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
13862
13862
  children: t.total > 0 && `${(t.currentPage - 1) * t.perPage + 1}-${Math.min(t.currentPage * t.perPage, t.total)} ${r.collections.visualizations.pagination.of} ${t.total}`
13863
13863
  }), l("div", {
13864
13864
  className: "flex items-center",
13865
- children: l(DS, {
13865
+ children: l(ES, {
13866
13866
  totalPages: t.pagesCount,
13867
13867
  currentPage: t.currentPage,
13868
13868
  onPageChange: e,
@@ -13870,7 +13870,7 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
13870
13870
  })
13871
13871
  })]
13872
13872
  });
13873
- }, ES = (t) => Math.ceil(t / 12) * 12, Hh = ({ children: t, tmpFullWidth: e }) => l("div", {
13873
+ }, DS = (t) => Math.ceil(t / 12) * 12, Hh = ({ children: t, tmpFullWidth: e }) => l("div", {
13874
13874
  className: C("grid grid-cols-1 gap-4 px-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4", e && "px-0"),
13875
13875
  children: t
13876
13876
  }), Gc = ({ source: t, items: e, selectedItems: n, handleSelectItemChange: r, cardProperties: i, title: o, description: s, avatar: a, image: c, imageFit: d, imageSize: f, blurredBackground: u, compact: h, tmpFullWidth: m }) => {
@@ -13878,10 +13878,10 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
13878
13878
  return w.map((y) => {
13879
13879
  if (y.hide?.(x))
13880
13880
  return null;
13881
- const D = y.render(x);
13882
- if (D === void 0)
13881
+ const E = y.render(x);
13882
+ if (E === void 0)
13883
13883
  return null;
13884
- const S = b(D);
13884
+ const S = b(E);
13885
13885
  return S ? S.type === "file" ? {
13886
13886
  property: S
13887
13887
  } : {
@@ -13904,15 +13904,15 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
13904
13904
  if (typeof x != "object" || x === null || !("type" in x))
13905
13905
  return !1;
13906
13906
  const w = x.type;
13907
- return typeof w == "string" && w in Y0;
13907
+ return typeof w == "string" && w in Z0;
13908
13908
  }
13909
13909
  return l(Hh, {
13910
13910
  tmpFullWidth: m,
13911
13911
  children: e.map((x, w) => {
13912
- const y = t.selectable ? t.selectable(x) : void 0, D = t.itemUrl ? t.itemUrl(x) : void 0, S = t.itemOnClick ? t.itemOnClick(x) : void 0, k = (t.itemActions ? t.itemActions(x) || [] : []).filter((A) => A.type !== "separator"), I = (k.filter((A) => A.type === "other" || !A.type) || []).map((A) => ({
13912
+ const y = t.selectable ? t.selectable(x) : void 0, E = t.itemUrl ? t.itemUrl(x) : void 0, S = t.itemOnClick ? t.itemOnClick(x) : void 0, k = (t.itemActions ? t.itemActions(x) || [] : []).filter((A) => A.type !== "separator"), I = (k.filter((A) => A.type === "other" || !A.type) || []).map((A) => ({
13913
13913
  ...A,
13914
13914
  type: "item"
13915
- })), T = k.find((A) => A.type === "primary") || void 0, E = k.filter((A) => A.type === "secondary") || [], N = !!t.selectable && y !== void 0, _ = p(x, i);
13915
+ })), T = k.find((A) => A.type === "primary") || void 0, D = k.filter((A) => A.type === "secondary") || [], N = !!t.selectable && y !== void 0, _ = p(x, i);
13916
13916
  return l(G.div, {
13917
13917
  layout: !0,
13918
13918
  initial: "hidden",
@@ -13934,11 +13934,11 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
13934
13934
  blurredBackground: u,
13935
13935
  selected: N && n.has(y),
13936
13936
  onSelect: (A) => r(x, A),
13937
- secondaryActions: E,
13937
+ secondaryActions: D,
13938
13938
  primaryAction: T,
13939
13939
  otherActions: I,
13940
13940
  onClick: S,
13941
- link: D,
13941
+ link: E,
13942
13942
  compact: h || !1,
13943
13943
  metadata: _,
13944
13944
  fullHeight: !0
@@ -13949,7 +13949,7 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
13949
13949
  }, _S = ({ cardProperties: t, title: e, description: n, avatar: r, image: i, imageFit: o, imageSize: s, blurredBackground: a, compact: c, source: d, onSelectItems: f, onLoadData: u, onLoadError: h, tmpFullWidth: m }) => {
13950
13950
  const p = z(() => {
13951
13951
  if (d.dataAdapter.paginationType === "pages") {
13952
- const _ = d.dataAdapter.perPage, A = ES(_ ?? 24);
13952
+ const _ = d.dataAdapter.perPage, A = DS(_ ?? 24);
13953
13953
  return {
13954
13954
  ...d.dataAdapter,
13955
13955
  perPage: A
@@ -13973,14 +13973,14 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
13973
13973
  data: b.records
13974
13974
  });
13975
13975
  }, [v?.total, b.records]);
13976
- const { selectedItems: y, groupAllSelectedStatus: D, handleSelectItemChange: S, handleSelectGroupChange: k } = Xi({
13976
+ const { selectedItems: y, groupAllSelectedStatus: E, handleSelectItemChange: S, handleSelectGroupChange: k } = Xi({
13977
13977
  data: b,
13978
13978
  paginationInfo: v,
13979
13979
  source: d,
13980
13980
  onSelectItems: f,
13981
13981
  selectionMode: "multi",
13982
13982
  selectedState: d.defaultSelectedItems
13983
- }), I = d.grouping?.collapsible, T = d.grouping?.defaultOpenGroups, { openGroups: E, setGroupOpen: N } = kl(b?.type === "grouped" ? b.groups : [], T);
13983
+ }), I = d.grouping?.collapsible, T = d.grouping?.defaultOpenGroups, { openGroups: D, setGroupOpen: N } = kl(b?.type === "grouped" ? b.groups : [], T);
13984
13984
  return g("div", {
13985
13985
  className: "flex h-full min-h-0 flex-1 flex-col gap-4",
13986
13986
  children: [l("div", {
@@ -13989,15 +13989,15 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
13989
13989
  tmpFullWidth: m,
13990
13990
  children: Array.from({
13991
13991
  length: 8
13992
- }).map((_, A) => g(no, {
13993
- children: [l(ro, {
13994
- children: l(io, {
13992
+ }).map((_, A) => g(Zi, {
13993
+ children: [l(eo, {
13994
+ children: l(to, {
13995
13995
  "aria-label": "Loading card",
13996
13996
  children: l(M, {
13997
13997
  className: "h-4 w-3/4"
13998
13998
  })
13999
13999
  })
14000
- }), l(oo, {
14000
+ }), l(no, {
14001
14001
  className: "space-y-2",
14002
14002
  children: t.map((L) => g("div", {
14003
14003
  className: "space-y-1",
@@ -14015,14 +14015,14 @@ const DS = se("OnePagination", TS), Wl = ({ paginationInfo: t, setPage: e, class
14015
14015
  label: _.label,
14016
14016
  itemCount: _.itemCount,
14017
14017
  onOpenChange: (A) => N(_.key, A),
14018
- open: E[_.key],
14018
+ open: D[_.key],
14019
14019
  selectable: !!d.selectable,
14020
14020
  showOpenChange: I,
14021
- select: D[_.key]?.checked ? !0 : D[_.key]?.indeterminate ? "indeterminate" : !1,
14021
+ select: E[_.key]?.checked ? !0 : E[_.key]?.indeterminate ? "indeterminate" : !1,
14022
14022
  onSelectChange: (A) => k(_, A),
14023
14023
  className: "px-4 pb-2 pt-4"
14024
14024
  }), l(Ae, {
14025
- children: (!I || E[_.key]) && l(Gc, {
14025
+ children: (!I || D[_.key]) && l(Gc, {
14026
14026
  source: d,
14027
14027
  items: _.records,
14028
14028
  selectedItems: y,
@@ -14280,7 +14280,7 @@ function qS(t) {
14280
14280
  const KS = 'button, a[href], input, select, textarea, [role="button"], [role="checkbox"], [role="menuitem"], [role="option"], [role="radio"], [role="switch"]', JS = (t) => t instanceof HTMLElement ? !!t.closest(KS) : !1;
14281
14281
  function YS({ drag: t, id: e, index: n, total: r, laneId: i, draggable: o = !1, showIndicator: s = !0, disabledEdges: a = [], forcedEdge: c = null, ...d }) {
14282
14282
  const f = W(null), u = W(null), [h, m] = F(null);
14283
- Q0({
14283
+ ev({
14284
14284
  ref: f,
14285
14285
  payload: {
14286
14286
  kind: t.type ?? "list-card",
@@ -14291,7 +14291,7 @@ function YS({ drag: t, id: e, index: n, total: r, laneId: i, draggable: o = !1,
14291
14291
  if (f.current)
14292
14292
  return xs({
14293
14293
  element: f.current,
14294
- getData: ({ input: x, element: w }) => X0({
14294
+ getData: ({ input: x, element: w }) => tv({
14295
14295
  type: "list-card-target",
14296
14296
  id: e,
14297
14297
  index: n,
@@ -14337,7 +14337,7 @@ function YS({ drag: t, id: e, index: n, total: r, laneId: i, draggable: o = !1,
14337
14337
  "data-index": n,
14338
14338
  "data-lane-id": i,
14339
14339
  onClick: v,
14340
- children: [l(Z0, {
14340
+ children: [l(nv, {
14341
14341
  ...d,
14342
14342
  disableOverlayLink: o
14343
14343
  }), d.link && l(In, {
@@ -14565,8 +14565,8 @@ function rI(t) {
14565
14565
  };
14566
14566
  }
14567
14567
  function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14568
- const i = W(null), o = W(null), s = W(null), [a, c] = F(!1), [d, f] = F(null), u = !!(t && e), h = W(null), m = W(null), p = W(null), b = W(0), v = W(null), [x, w] = F(!1), [y, D] = F(null), [S, k] = F(null), [I, T] = F(!1), [E, N] = F(-1);
14569
- return ev(u ? {
14568
+ const i = W(null), o = W(null), s = W(null), [a, c] = F(!1), [d, f] = F(null), u = !!(t && e), h = W(null), m = W(null), p = W(null), b = W(0), v = W(null), [x, w] = F(!1), [y, E] = F(null), [S, k] = F(null), [I, T] = F(!1), [D, N] = F(-1);
14569
+ return rv(u ? {
14570
14570
  ref: i,
14571
14571
  id: t,
14572
14572
  accepts: ["list-card"]
@@ -14601,7 +14601,7 @@ function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14601
14601
  });
14602
14602
  }));
14603
14603
  }, A = (L) => ZS(t, L);
14604
- return tv({
14604
+ return iv({
14605
14605
  onDropTargetChange: ({ location: L, source: O }) => {
14606
14606
  const R = L.current.dropTargets.some((H) => {
14607
14607
  const le = H.data;
@@ -14609,7 +14609,7 @@ function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14609
14609
  });
14610
14610
  c(R);
14611
14611
  const $ = String(O.data.id), Z = String(O.data.data?.laneId ?? "") || String(L.initial.dropTargets.find((H) => H.data.type === "list-droppable")?.data?.id ?? ""), ae = String(Z) === String(t), K = r.items.findIndex((H, le) => String(r.getKey(H, le)) === $);
14612
- if (R && ae ? N(K) : (!R || !ae) && N(-1), R && x && r.items.length === 0 ? (T(!0), D(null), k(null)) : R && x && r.items.length > 0 && T(!1), R && x) {
14612
+ if (R && ae ? N(K) : (!R || !ae) && N(-1), R && x && r.items.length === 0 ? (T(!0), E(null), k(null)) : R && x && r.items.length > 0 && T(!1), R && x) {
14613
14613
  const H = m.current || i.current;
14614
14614
  if (H) {
14615
14615
  const le = H.getBoundingClientRect(), te = L.current.input?.clientY, re = L.current.input?.clientX;
@@ -14617,29 +14617,29 @@ function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14617
14617
  const ue = le.top + le.height / 2, B = te - ue, P = 24, Y = 300, ie = le.height / 2;
14618
14618
  let ce = 0;
14619
14619
  if (Math.abs(B) > P) {
14620
- const Ee = Math.min(Math.abs(B) - P, ie) / ie;
14621
- ce = Math.sign(B) * Y * Ee;
14620
+ const De = Math.min(Math.abs(B) - P, ie) / ie;
14621
+ ce = Math.sign(B) * Y * De;
14622
14622
  }
14623
14623
  if (b.current = ce, _(), L.current.dropTargets.some((be) => be.data.type === "list-card-target"))
14624
- (y !== null || S !== null) && (D(null), k(null));
14624
+ (y !== null || S !== null) && (E(null), k(null));
14625
14625
  else {
14626
14626
  const be = i.current;
14627
14627
  if (be) {
14628
- const Ee = Array.from(be.querySelectorAll(`[data-kanban-card="true"][data-lane-id="${t}"]`));
14629
- if (Ee.length > 0) {
14630
- let Se = -1, Dt = Number.POSITIVE_INFINITY, rt = "top";
14631
- for (const bn of Ee) {
14632
- const Zn = bn.getAttribute("data-index"), Eo = Zn ? Number(Zn) : -1, jr = bn.getBoundingClientRect(), Br = jr.top + jr.height / 2, vn = Math.abs(te - Br);
14633
- vn < Dt && (Dt = vn, Se = Eo, rt = te < Br ? "top" : "bottom");
14628
+ const De = Array.from(be.querySelectorAll(`[data-kanban-card="true"][data-lane-id="${t}"]`));
14629
+ if (De.length > 0) {
14630
+ let Se = -1, Et = Number.POSITIVE_INFINITY, rt = "top";
14631
+ for (const bn of De) {
14632
+ const Zn = bn.getAttribute("data-index"), Do = Zn ? Number(Zn) : -1, jr = bn.getBoundingClientRect(), Br = jr.top + jr.height / 2, vn = Math.abs(te - Br);
14633
+ vn < Et && (Et = vn, Se = Do, rt = te < Br ? "top" : "bottom");
14634
14634
  }
14635
- ae && K >= 0 && (Se === K && rt === "top" || Se === K && rt === "bottom" || Se === K - 1 && rt === "bottom" || Se === K + 1 && rt === "top") ? (D(null), k(null)) : (D(Se >= 0 ? Se : null), k(Se >= 0 ? rt : null));
14635
+ ae && K >= 0 && (Se === K && rt === "top" || Se === K && rt === "bottom" || Se === K - 1 && rt === "bottom" || Se === K + 1 && rt === "top") ? (E(null), k(null)) : (E(Se >= 0 ? Se : null), k(Se >= 0 ? rt : null));
14636
14636
  }
14637
14637
  }
14638
14638
  }
14639
14639
  }
14640
14640
  }
14641
14641
  } else
14642
- b.current = 0, R || (D(null), k(null), T(!1), N(-1));
14642
+ b.current = 0, R || (E(null), k(null), T(!1), N(-1));
14643
14643
  },
14644
14644
  onDrop: async ({ location: L, source: O }) => {
14645
14645
  c(!1), T(!1);
@@ -14658,7 +14658,7 @@ function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14658
14658
  }
14659
14659
  }
14660
14660
  if (!ae && y !== null && S !== null && (y === $ && S === "top" || y === $ && S === "bottom" || y === $ - 1 && S === "bottom" || y === $ + 1 && S === "top")) {
14661
- D(null), k(null);
14661
+ E(null), k(null);
14662
14662
  return;
14663
14663
  }
14664
14664
  if (!L.current.dropTargets.some((re) => {
@@ -14704,7 +14704,7 @@ function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14704
14704
  if (re === $ && ue === "above" || re === $ && ue === "below" || re === $ - 1 && ue === "below" || re === $ + 1 && ue === "above")
14705
14705
  return;
14706
14706
  }
14707
- await n?.(H), D(null), k(null);
14707
+ await n?.(H), E(null), k(null);
14708
14708
  }
14709
14709
  }
14710
14710
  });
@@ -14723,8 +14723,8 @@ function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14723
14723
  subtree: !0,
14724
14724
  childList: !0
14725
14725
  }), () => L.disconnect();
14726
- }, [t]), qu(({ phase: _ }) => {
14727
- _ === "start" && w(!0), (_ === "drop" || _ === "cancel") && (w(!1), T(!1), D(null), k(null), N(-1));
14726
+ }, [t]), Ku(({ phase: _ }) => {
14727
+ _ === "start" && w(!0), (_ === "drop" || _ === "cancel") && (w(!1), T(!1), E(null), k(null), N(-1));
14728
14728
  }), V(() => {
14729
14729
  const _ = (A) => {
14730
14730
  if (!t) return;
@@ -14782,9 +14782,9 @@ function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14782
14782
  dropPlaceholderIndex: I && r.items.length === 0 ? 0 : void 0,
14783
14783
  renderCard: (_, A) => {
14784
14784
  const L = r.renderCard(_, A);
14785
- if (Tu(L)) {
14785
+ if (Eu(L)) {
14786
14786
  const O = A === y ? S : null, R = [];
14787
- return E >= 0 && (A === E ? R.push("top", "bottom") : A === E - 1 ? R.push("bottom") : A === E + 1 && R.push("top")), Sl(L, {
14787
+ return D >= 0 && (A === D ? R.push("top", "bottom") : A === D - 1 ? R.push("bottom") : A === D + 1 && R.push("top")), Sl(L, {
14788
14788
  forcedEdge: O,
14789
14789
  disabledEdges: R
14790
14790
  });
@@ -14799,7 +14799,7 @@ function iI({ id: t, getLaneResourceIndexById: e, onMove: n, ...r }) {
14799
14799
  function qc(t) {
14800
14800
  const { lanes: e, renderCard: n, getKey: r, className: i, dnd: o, loading: s, onCreate: a } = t, [c, d] = F(() => e), f = W(""), u = W(null);
14801
14801
  V(() => {
14802
- const k = e.map((I) => `${I.id}:[${I.items.map((T, E) => r(T, E, I.id)).join(",")}]`).join("|");
14802
+ const k = e.map((I) => `${I.id}:[${I.items.map((T, D) => r(T, D, I.id)).join(",")}]`).join("|");
14803
14803
  if (u.current !== null)
14804
14804
  if (k === u.current)
14805
14805
  u.current = null, f.current = k, d(e);
@@ -14808,7 +14808,7 @@ function qc(t) {
14808
14808
  else k !== f.current && (f.current = k, d(e));
14809
14809
  }, [e, r, c]);
14810
14810
  const [h, m] = F(!1), p = W(null), b = W(null), v = W(null), x = W(null), w = W(0), y = W(null);
14811
- qu(({ phase: k }) => {
14811
+ Ku(({ phase: k }) => {
14812
14812
  k === "start" && m(!0), (k === "drop" || k === "cancel") && m(!1);
14813
14813
  }), V(() => {
14814
14814
  const k = () => {
@@ -14824,8 +14824,8 @@ function qc(t) {
14824
14824
  w.current = N, x.current == null && (y.current = null, x.current = window.requestAnimationFrame(k));
14825
14825
  }, T = () => {
14826
14826
  w.current = 0, x.current != null && (window.cancelAnimationFrame(x.current), x.current = null), y.current = null;
14827
- }, E = [];
14828
- return p.current && E.push(xs({
14827
+ }, D = [];
14828
+ return p.current && D.push(xs({
14829
14829
  element: p.current,
14830
14830
  getData: () => ({
14831
14831
  type: "board-scroll-edge",
@@ -14835,7 +14835,7 @@ function qc(t) {
14835
14835
  onDrag: () => I(-400),
14836
14836
  onDragLeave: () => T(),
14837
14837
  onDrop: () => T()
14838
- })), b.current && E.push(xs({
14838
+ })), b.current && D.push(xs({
14839
14839
  element: b.current,
14840
14840
  getData: () => ({
14841
14841
  type: "board-scroll-edge",
@@ -14846,21 +14846,21 @@ function qc(t) {
14846
14846
  onDragLeave: () => T(),
14847
14847
  onDrop: () => T()
14848
14848
  })), () => {
14849
- E.forEach((N) => N()), T();
14849
+ D.forEach((N) => N()), T();
14850
14850
  };
14851
14851
  }, [h]);
14852
- const D = (k, I) => {
14853
- const T = c.find((E) => E.id === k);
14854
- return T ? T.items.findIndex((E, N) => String(r(E, N, k)) === String(I)) : -1;
14852
+ const E = (k, I) => {
14853
+ const T = c.find((D) => D.id === k);
14854
+ return T ? T.items.findIndex((D, N) => String(r(D, N, k)) === String(I)) : -1;
14855
14855
  }, S = async (k) => {
14856
- const { fromLaneId: I, toLaneId: T, sourceId: E, indexOfTarget: N, position: _ } = k, A = c;
14856
+ const { fromLaneId: I, toLaneId: T, sourceId: D, indexOfTarget: N, position: _ } = k, A = c;
14857
14857
  let L = A.findIndex((H) => H.id === I);
14858
14858
  const O = A.findIndex((H) => H.id === T);
14859
14859
  if (O === -1) return Promise.reject(new Error("Lane not found"));
14860
14860
  let R = -1;
14861
- if (L !== -1 && (R = A[L].items.findIndex((H, le) => String(r(H, le, I)) === String(E))), R === -1)
14861
+ if (L !== -1 && (R = A[L].items.findIndex((H, le) => String(r(H, le, I)) === String(D))), R === -1)
14862
14862
  for (let H = 0; H < A.length; H++) {
14863
- const le = A[H].id, te = A[H].items.findIndex((re, ue) => String(r(re, ue, le)) === String(E));
14863
+ const le = A[H].id, te = A[H].items.findIndex((re, ue) => String(r(re, ue, le)) === String(D));
14864
14864
  if (te !== -1) {
14865
14865
  L = H, R = te;
14866
14866
  break;
@@ -14914,7 +14914,7 @@ function qc(t) {
14914
14914
  return le && d((te) => {
14915
14915
  const re = te.map((B) => {
14916
14916
  if (B.id !== T) return B;
14917
- const P = [...B.items], Y = P.findIndex((ie, ce) => String(r(ie, ce, T)) === String(E));
14917
+ const P = [...B.items], Y = P.findIndex((ie, ce) => String(r(ie, ce, T)) === String(D));
14918
14918
  return Y !== -1 && P.splice(Y, 1, le), {
14919
14919
  ...B,
14920
14920
  items: P
@@ -14939,12 +14939,12 @@ function qc(t) {
14939
14939
  className: "relative shrink-0",
14940
14940
  children: l(iI, {
14941
14941
  id: k.id,
14942
- getLaneResourceIndexById: k.id ? (E) => D(k.id, E) : void 0,
14942
+ getLaneResourceIndexById: k.id ? (D) => E(k.id, D) : void 0,
14943
14943
  onMove: S,
14944
14944
  title: k.title,
14945
14945
  items: k.items,
14946
- getKey: (E, N) => r(E, N, k.id),
14947
- renderCard: (E, N) => n(E, N, T, k.id),
14946
+ getKey: (D, N) => r(D, N, k.id),
14947
+ renderCard: (D, N) => n(D, N, T, k.id),
14948
14948
  emptyState: k.emptyState,
14949
14949
  loading: s || k.loading,
14950
14950
  variant: k.variant,
@@ -14984,7 +14984,7 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
14984
14984
  icon: L,
14985
14985
  tooltip: O,
14986
14986
  property: R
14987
- }), y = (A) => !!(A && A.type === "infinite-scroll"), D = {
14987
+ }), y = (A) => !!(A && A.type === "infinite-scroll"), E = {
14988
14988
  lanes: x.map((A) => {
14989
14989
  const L = h[A.id], O = L?.paginationInfo?.total, R = y(L?.paginationInfo) && L?.paginationInfo?.hasMore;
14990
14990
  return {
@@ -15068,7 +15068,7 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15068
15068
  }), A.set(L.id, O);
15069
15069
  }), A;
15070
15070
  }, [x, b]);
15071
- D.dnd = {
15071
+ E.dnd = {
15072
15072
  instanceId: p,
15073
15073
  getIndexById: (A, L) => {
15074
15074
  const O = T.get(A)?.get(L) ?? -1;
@@ -15076,7 +15076,7 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15076
15076
  },
15077
15077
  onMove: o
15078
15078
  };
15079
- const E = z(() => t.map((A) => ({
15079
+ const D = z(() => t.map((A) => ({
15080
15080
  id: A.id,
15081
15081
  data: h[A.id]?.data || {
15082
15082
  type: "flat",
@@ -15084,17 +15084,17 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15084
15084
  groups: []
15085
15085
  },
15086
15086
  paginationInfo: h[A.id]?.paginationInfo || null
15087
- })), [t, h]), { lanesSelectProvider: N, lanesUseSelectable: _ } = PS(E, a, (A, L) => {
15087
+ })), [t, h]), { lanesSelectProvider: N, lanesUseSelectable: _ } = PS(D, a, (A, L) => {
15088
15088
  c?.(A, L);
15089
15089
  });
15090
15090
  return g(ee, {
15091
- children: [u, N, o ? l(nv, {
15092
- driver: rv(p),
15091
+ children: [u, N, o ? l(ov, {
15092
+ driver: sv(p),
15093
15093
  children: l(qc, {
15094
- ...D
15094
+ ...E
15095
15095
  })
15096
15096
  }) : l(qc, {
15097
- ...D
15097
+ ...E
15098
15098
  })]
15099
15099
  });
15100
15100
  }, Wh = ({ items: t, onOpenChange: e, align: n = "end", label: r = "Actions", className: i }) => {
@@ -15199,7 +15199,7 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15199
15199
  list: void 0
15200
15200
  }, Jh = (t, e, n, r) => {
15201
15201
  const i = e.render(t), o = n in Qo ? Qo[n] : Qo.default;
15202
- return iv(
15202
+ return lv(
15203
15203
  i,
15204
15204
  {
15205
15205
  visualization: n,
@@ -15374,8 +15374,8 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15374
15374
  }, `skeleton-item-${s}`))
15375
15375
  }), dI = ({ fields: t, itemDefinition: e, source: n, onSelectItems: r, onLoadData: i, onLoadError: o, tmpFullWidth: s }) => {
15376
15376
  const { data: a, paginationInfo: c, setPage: d, isInitialLoading: f, isLoadingMore: u, loadMore: h } = mo(n, {
15377
- onError: (E) => {
15378
- o(E);
15377
+ onError: (D) => {
15378
+ o(D);
15379
15379
  }
15380
15380
  });
15381
15381
  V(() => {
@@ -15394,7 +15394,7 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15394
15394
  onSelectItems: r,
15395
15395
  selectionMode: "multi",
15396
15396
  selectedState: n.defaultSelectedItems
15397
- }), y = n.grouping?.collapsible, D = n.grouping?.defaultOpenGroups, { openGroups: S, setGroupOpen: k } = kl(a?.type === "grouped" ? a.groups : [], D);
15397
+ }), y = n.grouping?.collapsible, E = n.grouping?.defaultOpenGroups, { openGroups: S, setGroupOpen: k } = kl(a?.type === "grouped" ? a.groups : [], E);
15398
15398
  if (zs({
15399
15399
  value: f,
15400
15400
  delay: 100
@@ -15405,8 +15405,8 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15405
15405
  count: 30,
15406
15406
  isInitialLoading: !0
15407
15407
  });
15408
- n.sortings || t.forEach((E) => {
15409
- E.sorting && console.warn("Sorting is defined on a property but no sortings are provided in the data source");
15408
+ n.sortings || t.forEach((D) => {
15409
+ D.sorting && console.warn("Sorting is defined on a property but no sortings are provided in the data source");
15410
15410
  });
15411
15411
  const T = f || m && n.dataAdapter.paginationType === "pages";
15412
15412
  return g("div", {
@@ -15417,22 +15417,22 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15417
15417
  "aria-busy": T ? "true" : void 0,
15418
15418
  children: g("div", {
15419
15419
  className: "min-h-0 flex-1 overflow-auto pb-3",
15420
- children: [a.type === "grouped" && a.groups.map((E, N) => {
15421
- const _ = E.itemCount;
15420
+ children: [a.type === "grouped" && a.groups.map((D, N) => {
15421
+ const _ = D.itemCount;
15422
15422
  return g("div", {
15423
15423
  className: "flex flex-col gap-0 pt-2 first:pt-0",
15424
15424
  children: [l(Cl, {
15425
15425
  className: "cursor-pointer select-none rounded-md px-3.5 py-3 transition-colors hover:bg-f1-background-hover",
15426
15426
  selectable: !!n.selectable,
15427
- select: v[E.key]?.checked ? !0 : v[E.key]?.indeterminate ? "indeterminate" : !1,
15428
- onSelectChange: (A) => w(E, A),
15427
+ select: v[D.key]?.checked ? !0 : v[D.key]?.indeterminate ? "indeterminate" : !1,
15428
+ onSelectChange: (A) => w(D, A),
15429
15429
  showOpenChange: y,
15430
- label: E.label,
15430
+ label: D.label,
15431
15431
  itemCount: _,
15432
- open: S[E.key],
15433
- onOpenChange: (A) => k(E.key, A)
15434
- }, `group-header-${E.key}`), l(Ae, {
15435
- children: (!y || S[E.key]) && l(G.div, {
15432
+ open: S[D.key],
15433
+ onOpenChange: (A) => k(D.key, A)
15434
+ }, `group-header-${D.key}`), l(Ae, {
15435
+ children: (!y || S[D.key]) && l(G.div, {
15436
15436
  initial: {
15437
15437
  height: 0,
15438
15438
  opacity: 0
@@ -15452,16 +15452,16 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15452
15452
  className: "mt-0.5",
15453
15453
  children: l(Jc, {
15454
15454
  source: n,
15455
- items: E.records,
15455
+ items: D.records,
15456
15456
  selectedItems: b,
15457
15457
  handleSelectItemChange: x,
15458
15458
  fields: t,
15459
15459
  itemDefinition: e,
15460
15460
  isLoadingMore: u && N === a.groups.length - 1
15461
- }, `list-group-${E.key}`)
15461
+ }, `list-group-${D.key}`)
15462
15462
  })
15463
15463
  })]
15464
- }, `group-header-${E.key}`);
15464
+ }, `group-header-${D.key}`);
15465
15465
  }), a?.type === "flat" && l(Jc, {
15466
15466
  source: n,
15467
15467
  items: a.records,
@@ -15609,7 +15609,7 @@ const oI = ({ lanes: t, title: e, description: n, avatar: r, metadata: i, onMove
15609
15609
  t.sortable && o.start(a);
15610
15610
  },
15611
15611
  children: t.sortable ? l(q, {
15612
- icon: Er,
15612
+ icon: Dr,
15613
15613
  size: "xs"
15614
15614
  }) : l(q, {
15615
15615
  icon: Ab,
@@ -15793,7 +15793,7 @@ const bo = 32, Ri = 24, fi = 18, CI = "1px", Gt = 8, lm = 32, am = 4, js = 40, N
15793
15793
  }) => Kl({
15794
15794
  depth: t,
15795
15795
  padding: e ? -lm / 2 : -am
15796
- }), cm = (t, e) => t && e > 0, dm = (t, e) => t && e, II = (t, e) => t && e, um = (t, e) => t && e, AI = (t, e, n) => !e && um(t, n), TI = (t, e) => t && e?.nestedVariant === "detailed", DI = ({ width: t, linkRef: e, firstCell: n, nestedRowProps: r, children: i, onClick: o }) => {
15796
+ }), cm = (t, e) => t && e > 0, dm = (t, e) => t && e, II = (t, e) => t && e, um = (t, e) => t && e, AI = (t, e, n) => !e && um(t, n), TI = (t, e) => t && e?.nestedVariant === "detailed", EI = ({ width: t, linkRef: e, firstCell: n, nestedRowProps: r, children: i, onClick: o }) => {
15797
15797
  const s = dm(n, !!r?.rowWithChildren), a = cm(n, r?.depth ?? 0), c = AI(n, !!r?.rowWithChildren, !!r?.tableWithChildren), d = TI(n, r), f = r?.onLoadMoreChildren, u = r?.depth ?? 0, h = a ? Kl({
15798
15798
  depth: s ? u : u + 1
15799
15799
  }) : void 0;
@@ -15845,7 +15845,7 @@ const bo = 32, Ri = 24, fi = 18, CI = "1px", Gt = 8, lm = 32, am = 4, js = 40, N
15845
15845
  })]
15846
15846
  })
15847
15847
  });
15848
- }, EI = (t, e) => {
15848
+ }, DI = (t, e) => {
15849
15849
  const { rowWithChildren: n, nestedVariant: r, onLoadMoreChildren: i } = e ?? {}, o = r === "detailed", s = i ? lm / 2 - Gt : Ri / 2 - Gt, a = n && !i ? NI : o ? js - 6 : js, c = t !== 0 && `calc(${t}px - ${Ri + Gt}px )`;
15850
15850
  return {
15851
15851
  "--line-left": `-${2 * fi}px`,
@@ -15867,13 +15867,13 @@ const bo = 32, Ri = 24, fi = 18, CI = "1px", Gt = 8, lm = 32, am = 4, js = 40, N
15867
15867
  className: C("absolute inset-0 h-full", e?.parentHasChildren && r && _I, e?.parentHasChildren && n && s && !a && LI),
15868
15868
  style: {
15869
15869
  marginLeft: c,
15870
- ...EI(d, e)
15870
+ ...DI(d, e)
15871
15871
  }
15872
15872
  });
15873
15873
  };
15874
15874
  function wt({ children: t, href: e, onClick: n, width: r = "auto", firstCell: i = !1, sticky: o, colSpan: s, className: a, loading: c = !1, nestedRowProps: d }) {
15875
- const { isScrolled: f, isScrolledRight: u } = sm(), { actions: h } = X(), m = o?.left !== void 0, p = o?.right !== void 0, b = m || p, v = o?.left, x = o?.right, w = om(r), y = W(null), D = d?.depth ?? 0, S = d?.nestedVariant === "detailed", k = um(i, !!d?.tableWithChildren) && {
15876
- marginLeft: `${(D + (S ? 0 : 1)) * bo}px`
15875
+ const { isScrolled: f, isScrolledRight: u } = sm(), { actions: h } = X(), m = o?.left !== void 0, p = o?.right !== void 0, b = m || p, v = o?.left, x = o?.right, w = om(r), y = W(null), E = d?.depth ?? 0, S = d?.nestedVariant === "detailed", k = um(i, !!d?.tableWithChildren) && {
15876
+ marginLeft: `${(E + (S ? 0 : 1)) * bo}px`
15877
15877
  };
15878
15878
  return g(rm, {
15879
15879
  colSpan: s,
@@ -15911,7 +15911,7 @@ function wt({ children: t, href: e, onClick: n, width: r = "auto", firstCell: i
15911
15911
  }), !c && g(ee, {
15912
15912
  children: [l("div", {
15913
15913
  className: C("[&:has([role=checkbox])]:relative [&:has([role=checkbox])]:z-[1]", "[&:has([type=button])]:relative [&:has([type=button])]:z-[1]", "[&:has(a)]:relative [&:has(a)]:z-[1]", "pointer-events-none h-full items-start"),
15914
- children: dm(i, !!d?.rowWithChildren) ? l(DI, {
15914
+ children: dm(i, !!d?.rowWithChildren) ? l(EI, {
15915
15915
  linkRef: y,
15916
15916
  firstCell: i,
15917
15917
  nestedRowProps: d,
@@ -16206,10 +16206,10 @@ const hm = (t, e, n) => {
16206
16206
  a(T);
16207
16207
  };
16208
16208
  y();
16209
- const D = new MutationObserver(() => {
16209
+ const E = new MutationObserver(() => {
16210
16210
  y();
16211
16211
  }), S = n.parentElement;
16212
- S && D.observe(S, {
16212
+ S && E.observe(S, {
16213
16213
  childList: !0,
16214
16214
  subtree: !0,
16215
16215
  attributes: !0
@@ -16218,7 +16218,7 @@ const hm = (t, e, n) => {
16218
16218
  y();
16219
16219
  });
16220
16220
  return k.observe(n), i && k.observe(i), () => {
16221
- D.disconnect(), k.disconnect();
16221
+ E.disconnect(), k.disconnect();
16222
16222
  };
16223
16223
  }, [n, i, t]), { setFirstChildRef: f, setLastChildRef: u, calculatedHeight: s };
16224
16224
  }, mm = zt(void 0), zI = ({ children: t }) => {
@@ -16280,7 +16280,7 @@ const hm = (t, e, n) => {
16280
16280
  return o(t, T), p(Zc(S)), f(S?.paginationInfo), k;
16281
16281
  },
16282
16282
  [a, t, o]
16283
- ), D = ne(() => {
16283
+ ), E = ne(() => {
16284
16284
  if (a.length > 0 && !d?.hasMore) return a;
16285
16285
  w.current?.unsubscribe(), h(!0);
16286
16286
  const S = n.fetchChildren?.({
@@ -16312,7 +16312,7 @@ const hm = (t, e, n) => {
16312
16312
  w.current?.unsubscribe();
16313
16313
  }, []), {
16314
16314
  children: a,
16315
- loadChildren: D,
16315
+ loadChildren: E,
16316
16316
  isLoading: u,
16317
16317
  childrenType: m,
16318
16318
  paginationInfo: d
@@ -16414,7 +16414,7 @@ const hm = (t, e, n) => {
16414
16414
  onExpand: w,
16415
16415
  nestedVariant: d,
16416
16416
  connectorHeight: p
16417
- }, D = (t.nestedRowProps?.depth ?? 0) === 0, S = (t.nestedRowProps?.isLastChild || D) ?? !1, k = n || !S;
16417
+ }, E = (t.nestedRowProps?.depth ?? 0) === 0, S = (t.nestedRowProps?.isLastChild || E) ?? !1, k = n || !S;
16418
16418
  return g(ee, {
16419
16419
  children: [l(zn, {
16420
16420
  ...t,
@@ -16429,7 +16429,7 @@ const hm = (t, e, n) => {
16429
16429
  },
16430
16430
  tableWithChildren: t.tableWithChildren
16431
16431
  }), h && s.map((I, T) => {
16432
- const E = I, N = t.source.itemsWithChildren?.(E), _ = T === 0, A = T === s.length - 1, L = (t.nestedRowProps?.depth ?? 0) + 1, O = () => {
16432
+ const D = I, N = t.source.itemsWithChildren?.(D), _ = T === 0, A = T === s.length - 1, L = (t.nestedRowProps?.depth ?? 0) + 1, O = () => {
16433
16433
  if (_)
16434
16434
  return ($) => {
16435
16435
  b($);
@@ -16440,11 +16440,11 @@ const hm = (t, e, n) => {
16440
16440
  };
16441
16441
  }, R = A && S && !m;
16442
16442
  if (N)
16443
- return Da(pm, {
16443
+ return Ea(pm, {
16444
16444
  ...t,
16445
16445
  key: `nested-row-${t.groupIndex}-${I.id}-${t.index}-${T}`,
16446
16446
  index: T,
16447
- item: E,
16447
+ item: D,
16448
16448
  tableWithChildren: t.tableWithChildren,
16449
16449
  ref: O(),
16450
16450
  nestedRowProps: {
@@ -16456,11 +16456,11 @@ const hm = (t, e, n) => {
16456
16456
  });
16457
16457
  {
16458
16458
  const $ = !R;
16459
- return Da(zn, {
16459
+ return Ea(zn, {
16460
16460
  ...t,
16461
16461
  key: `row-${t.groupIndex}-${t.index}-${T}`,
16462
16462
  index: T,
16463
- item: E,
16463
+ item: D,
16464
16464
  noBorder: $,
16465
16465
  ref: O(),
16466
16466
  nestedRowProps: {
@@ -16506,7 +16506,7 @@ const hm = (t, e, n) => {
16506
16506
  ...t,
16507
16507
  ref: e
16508
16508
  }), ed = J(JI), pm = J(YI), QI = ({ source: t, item: e, onCheckedChange: n, selectedItems: r, columns: i, frozenColumnsLeft: o, checkColumnWidth: s, index: a, groupIndex: c, noBorder: d = !1, loading: f = !1, nestedRowProps: u, tableWithChildren: h, disableHover: m = !1 }, p) => {
16509
- const b = t.itemUrl ? t.itemUrl(e) : void 0, v = t.itemOnClick ? t.itemOnClick(e) : void 0, x = t.selectable ? t.selectable(e) : void 0, w = !!t.itemsWithChildren?.(e), y = X(), D = (O, R) => Jh(O, R, "table", y), S = `table-row-${c}-${a}`, { getStickyPosition: k } = hm(o, i, !!t.selectable), { hasItemActions: I, primaryItemActions: T, dropdownItemActions: E, mobileDropdownItemActions: N, handleDropDownOpenChange: _, dropDownOpen: A } = Kh({
16509
+ const b = t.itemUrl ? t.itemUrl(e) : void 0, v = t.itemOnClick ? t.itemOnClick(e) : void 0, x = t.selectable ? t.selectable(e) : void 0, w = !!t.itemsWithChildren?.(e), y = X(), E = (O, R) => Jh(O, R, "table", y), S = `table-row-${c}-${a}`, { getStickyPosition: k } = hm(o, i, !!t.selectable), { hasItemActions: I, primaryItemActions: T, dropdownItemActions: D, mobileDropdownItemActions: N, handleDropDownOpenChange: _, dropDownOpen: A } = Kh({
16510
16510
  source: t,
16511
16511
  item: e
16512
16512
  }), L = u?.hasLoadedChildren === void 0 || u?.hasLoadedChildren;
@@ -16554,7 +16554,7 @@ const hm = (t, e, n) => {
16554
16554
  },
16555
16555
  children: l("div", {
16556
16556
  className: C(O.align === "right" ? "justify-end" : "", "flex"),
16557
- children: D(e, O)
16557
+ children: E(e, O)
16558
16558
  })
16559
16559
  }, `table-cell-${c}-${a}-${R}`)), I && !f && !u?.onLoadMoreChildren && g(ee, {
16560
16560
  children: [l("td", {
@@ -16563,7 +16563,7 @@ const hm = (t, e, n) => {
16563
16563
  dropDownOpen: A,
16564
16564
  children: l(Gh, {
16565
16565
  primaryItemActions: T,
16566
- dropdownItemActions: E,
16566
+ dropdownItemActions: D,
16567
16567
  handleDropDownOpenChange: _
16568
16568
  })
16569
16569
  })
@@ -16587,7 +16587,7 @@ const hm = (t, e, n) => {
16587
16587
  onError: (B) => {
16588
16588
  o(B);
16589
16589
  }
16590
- }), { currentSortings: y, setCurrentSortings: D, isLoading: S } = e, { loadingIndicatorRef: k } = Ul(m, S, v, x);
16590
+ }), { currentSortings: y, setCurrentSortings: E, isLoading: S } = e, { loadingIndicatorRef: k } = Ul(m, S, v, x);
16591
16591
  V(() => {
16592
16592
  i({
16593
16593
  totalItems: m?.total || h.records.length,
@@ -16597,7 +16597,7 @@ const hm = (t, e, n) => {
16597
16597
  data: h.records
16598
16598
  });
16599
16599
  }, [m?.total, h.records]);
16600
- const I = z(() => n, [n]), T = (B, P) => "id" in B && B.id !== void 0 && B.id !== null ? `id:${String(B.id)}` : `index:${String(P)}`, { selectedItems: E, allSelectedStatus: N, groupAllSelectedStatus: _, handleSelectItemChange: A, handleSelectAll: L, handleSelectGroupChange: O } = Xi({
16600
+ const I = z(() => n, [n]), T = (B, P) => "id" in B && B.id !== void 0 && B.id !== null ? `id:${String(B.id)}` : `index:${String(P)}`, { selectedItems: D, allSelectedStatus: N, groupAllSelectedStatus: _, handleSelectItemChange: A, handleSelectAll: L, handleSelectGroupChange: O } = Xi({
16601
16601
  data: h,
16602
16602
  paginationInfo: m,
16603
16603
  source: e,
@@ -16612,7 +16612,7 @@ const hm = (t, e, n) => {
16612
16612
  if (!(!B || !P))
16613
16613
  return Y === null ? "none" : Y.field === B ? Y.order : "none";
16614
16614
  }, U = (B) => {
16615
- D(() => !y || y.field !== B ? {
16615
+ E(() => !y || y.field !== B ? {
16616
16616
  field: B,
16617
16617
  order: "asc"
16618
16618
  } : y.order === "asc" ? {
@@ -16710,7 +16710,7 @@ const hm = (t, e, n) => {
16710
16710
  index: ce,
16711
16711
  groupIndex: P,
16712
16712
  onCheckedChange: (ve) => A(ie, ve),
16713
- selectedItems: E,
16713
+ selectedItems: D,
16714
16714
  columns: u,
16715
16715
  frozenColumnsLeft: I,
16716
16716
  checkColumnWidth: re
@@ -16723,7 +16723,7 @@ const hm = (t, e, n) => {
16723
16723
  item: B,
16724
16724
  index: P,
16725
16725
  onCheckedChange: (Y) => A(B, Y),
16726
- selectedItems: E,
16726
+ selectedItems: D,
16727
16727
  columns: u,
16728
16728
  frozenColumnsLeft: I,
16729
16729
  checkColumnWidth: re,
@@ -16798,7 +16798,7 @@ const hm = (t, e, n) => {
16798
16798
  }, Fr = {
16799
16799
  table: {
16800
16800
  name: "Table",
16801
- icon: Db,
16801
+ icon: Eb,
16802
16802
  render: (t) => l(XI, {
16803
16803
  ...t
16804
16804
  }),
@@ -16896,7 +16896,7 @@ const hm = (t, e, n) => {
16896
16896
  hideLabel: !0,
16897
16897
  label: r.collections.sorting.toggleDirection,
16898
16898
  variant: "outline",
16899
- icon: o?.order === "asc" ? Eb : _b,
16899
+ icon: o?.order === "asc" ? Db : _b,
16900
16900
  onClick: () => a({
16901
16901
  field: o?.field,
16902
16902
  order: o?.order === "asc" ? "desc" : "asc"
@@ -16952,11 +16952,11 @@ const hm = (t, e, n) => {
16952
16952
  o(T);
16953
16953
  }, b = t && t.length > 1, v = r && f > 0, x = s && Object.keys(s).length > 0, w = z(() => t[e], [e, t?.[e]]), y = z(() => l(iA, {
16954
16954
  visualization: w
16955
- }, "visualization-settings"), [w]), D = z(() => rA(w), [w]), S = z(() => {
16955
+ }, "visualization-settings"), [w]), E = z(() => rA(w), [w]), S = z(() => {
16956
16956
  const T = t[e]?.type;
16957
16957
  if (!T) return "-";
16958
- const E = d.collections.visualizations[T] ?? "-";
16959
- return d.collections.visualizations.settings.replace("{{visualizationName}}", E);
16958
+ const D = d.collections.visualizations[T] ?? "-";
16959
+ return d.collections.visualizations.settings.replace("{{visualizationName}}", D);
16960
16960
  }, [e]), k = go(), I = () => {
16961
16961
  Object.values(Fr).forEach((T) => {
16962
16962
  T.settings.resetHandler?.(k);
@@ -17003,7 +17003,7 @@ const hm = (t, e, n) => {
17003
17003
  onChange: c,
17004
17004
  sortings: s
17005
17005
  }, "sorting")
17006
- }), D && g("section", {
17006
+ }), E && g("section", {
17007
17007
  className: "p-3 pb-0",
17008
17008
  children: [l("h3", {
17009
17009
  className: "mb-2 text-sm font-medium text-f1-foreground-secondary",
@@ -17023,7 +17023,7 @@ const hm = (t, e, n) => {
17023
17023
  })
17024
17024
  });
17025
17025
  }, sA = ({ source: t, visualizations: e, onSelectItems: n, onBulkAction: r, onStateChange: i, emptyStates: o, fullHeight: s, storage: a, id: c, tmpFullWidth: d }) => {
17026
- const { filters: f, currentFilters: u, setCurrentFilters: h, presets: m, presetsLoading: p, currentNavigationFilters: b, navigationFilters: v, setCurrentNavigationFilters: x, search: w, currentSearch: y, setCurrentSearch: D, isLoading: S, primaryActions: k, secondaryActions: I, totalItemSummary: T, currentGrouping: E, setCurrentGrouping: N, grouping: _, currentSortings: A, setCurrentSortings: L, sortings: O } = t, [R, $] = F(0), U = W(A), { emitSortingChange: Z } = Fb({
17026
+ const { filters: f, currentFilters: u, setCurrentFilters: h, presets: m, presetsLoading: p, currentNavigationFilters: b, navigationFilters: v, setCurrentNavigationFilters: x, search: w, currentSearch: y, setCurrentSearch: E, isLoading: S, primaryActions: k, secondaryActions: I, totalItemSummary: T, currentGrouping: D, setCurrentGrouping: N, grouping: _, currentSortings: A, setCurrentSortings: L, sortings: O } = t, [R, $] = F(0), U = W(A), { emitSortingChange: Z } = Fb({
17027
17027
  defaultSorting: U.current
17028
17028
  });
17029
17029
  V(() => {
@@ -17032,7 +17032,7 @@ const hm = (t, e, n) => {
17032
17032
  const ae = z(() => lS(k), [k]), K = z(() => fS(uS(I)), [I]), H = z(() => Math.min(I && "expanded" in I && I.expanded || 0, aS), [I]), le = z(() => K[0]?.items.slice(0, H) || [], [K, H]), te = z(() => [{
17033
17033
  ...K[0],
17034
17034
  items: K[0]?.items.slice(H) || []
17035
- }, ...K.slice(1)].filter((fe) => fe.items.length > 0), [K, H]), re = ae?.length > 0 || K?.length > 0, [ue, B] = F(void 0), P = ov(), [Y, ie] = F(void 0), ce = ne((fe) => {
17035
+ }, ...K.slice(1)].filter((fe) => fe.items.length > 0), [K, H]), re = ae?.length > 0 || K?.length > 0, [ue, B] = F(void 0), P = av(), [Y, ie] = F(void 0), ce = ne((fe) => {
17036
17036
  if (!fe)
17037
17037
  return [];
17038
17038
  const _e = [];
@@ -17052,8 +17052,8 @@ const hm = (t, e, n) => {
17052
17052
  primary: ce(Y.primary ?? []),
17053
17053
  secondary: (Y?.secondary ?? []).filter((fe) => !("type" in fe && fe.type === "separator"))
17054
17054
  };
17055
- }, [Y, ce]), [be, Ee] = F(!1), [Se, Dt] = F(0), rt = X(), it = z(() => T === !0 ? (fe) => fe !== void 0 ? `${fe} ${rt.collections.itemsCount}` : null : T || void 0, [T, rt]), bn = (fe, _e) => {
17056
- n?.(fe, _e), Ee(!!fe.allSelected || fe.itemsStatus.some((tr) => tr.checked)), Dt(fe.selectedCount), B(() => _e);
17055
+ }, [Y, ce]), [be, De] = F(!1), [Se, Et] = F(0), rt = X(), it = z(() => T === !0 ? (fe) => fe !== void 0 ? `${fe} ${rt.collections.itemsCount}` : null : T || void 0, [T, rt]), bn = (fe, _e) => {
17056
+ n?.(fe, _e), De(!!fe.allSelected || fe.itemsStatus.some((tr) => tr.checked)), Et(fe.selectedCount), B(() => _e);
17057
17057
  const Ie = t.bulkActions ? t.bulkActions(fe) : void 0, xt = (tr) => {
17058
17058
  if ("type" in tr && tr.type === "separator")
17059
17059
  return {
@@ -17073,18 +17073,18 @@ const hm = (t, e, n) => {
17073
17073
  }) : "warningMessage" in Ie && ie({
17074
17074
  warningMessage: Ie.warningMessage
17075
17075
  }));
17076
- }, [Zn, Eo] = F(void 0), [jr, Br] = F(!0), vn = z(() => [w?.enabled, e.length > 1].some(Boolean), [w, e]), { emptyState: xn, setEmptyStateType: er } = IS(o, {
17076
+ }, [Zn, Do] = F(void 0), [jr, Br] = F(!0), vn = z(() => [w?.enabled, e.length > 1].some(Boolean), [w, e]), { emptyState: xn, setEmptyStateType: er } = IS(o, {
17077
17077
  retry: () => {
17078
17078
  er(!1), h({
17079
17079
  ...u
17080
17080
  });
17081
17081
  },
17082
17082
  clearFilters: () => {
17083
- er(!1), h({}), D(void 0);
17083
+ er(!1), h({}), E(void 0);
17084
17084
  }
17085
- }), Tp = (fe, _e, Ie) => fe === 0 ? Object.keys(_e).length > 0 || Ie ? "no-results" : "no-data" : !1, Dp = ({ totalItems: fe, filters: _e, isInitialLoading: Ie, search: xt }) => {
17086
- Ie || (Br(Ie), Eo(fe), er(Tp(fe, _e, xt)));
17087
- }, Ep = (fe) => {
17085
+ }), Tp = (fe, _e, Ie) => fe === 0 ? Object.keys(_e).length > 0 || Ie ? "no-results" : "no-data" : !1, Ep = ({ totalItems: fe, filters: _e, isInitialLoading: Ie, search: xt }) => {
17086
+ Ie || (Br(Ie), Do(fe), er(Tp(fe, _e, xt)));
17087
+ }, Dp = (fe) => {
17088
17088
  er("error", fe.cause instanceof Error ? fe.cause.message : fe.message);
17089
17089
  }, _p = zs({
17090
17090
  value: !!p,
@@ -17103,7 +17103,7 @@ const hm = (t, e, n) => {
17103
17103
  setValue: L
17104
17104
  },
17105
17105
  grouping: {
17106
- value: E,
17106
+ value: D,
17107
17107
  setValue: N
17108
17108
  },
17109
17109
  navigationFilters: {
@@ -17116,7 +17116,7 @@ const hm = (t, e, n) => {
17116
17116
  },
17117
17117
  search: {
17118
17118
  value: y,
17119
- setValue: D
17119
+ setValue: E
17120
17120
  },
17121
17121
  filters: {
17122
17122
  value: u,
@@ -17131,12 +17131,12 @@ const hm = (t, e, n) => {
17131
17131
  filters: u,
17132
17132
  sortings: A,
17133
17133
  visualization: R,
17134
- grouping: E,
17134
+ grouping: D,
17135
17135
  search: y,
17136
17136
  navigationFilters: b,
17137
17137
  settings: _o
17138
17138
  });
17139
- }, [u, y, b, A, R, E, _o]);
17139
+ }, [u, y, b, A, R, D, _o]);
17140
17140
  const Lo = z(() => {
17141
17141
  const fe = _ ? Object.keys(_.groupBy).length + (_.mandatory ? 1 : 0) : 0, _e = Object.values(e).find((xt) => xt.type === "table"), Ie = !!_e && (!!_e.options?.allowColumnHiding || !!_e.options?.allowColumnReordering);
17142
17142
  return e && e.length > 1 || fe > 0 && !_?.hideSelector || O && Object.keys(O).length > 0 || Ie;
@@ -17187,14 +17187,14 @@ const hm = (t, e, n) => {
17187
17187
  size: "small"
17188
17188
  })
17189
17189
  }), w && l(wS, {
17190
- onChange: D,
17190
+ onChange: E,
17191
17191
  value: y
17192
17192
  }), Lo && l(oA, {
17193
17193
  visualizations: e,
17194
17194
  currentVisualization: R,
17195
17195
  onVisualizationChange: $,
17196
17196
  grouping: _,
17197
- currentGrouping: E,
17197
+ currentGrouping: D,
17198
17198
  onGroupingChange: N,
17199
17199
  sortings: O,
17200
17200
  currentSortings: A,
@@ -17220,8 +17220,8 @@ const hm = (t, e, n) => {
17220
17220
  visualization: e[R],
17221
17221
  source: t,
17222
17222
  onSelectItems: bn,
17223
- onLoadData: Dp,
17224
- onLoadError: Ep,
17223
+ onLoadData: Ep,
17224
+ onLoadError: Dp,
17225
17225
  tmpFullWidth: d
17226
17226
  })
17227
17227
  }), xn ? l("div", {
@@ -17292,7 +17292,7 @@ const hm = (t, e, n) => {
17292
17292
  children: g($b, {
17293
17293
  ref: i,
17294
17294
  className: "bottom-3 top-auto max-w-[400px]",
17295
- children: [g(sv, {
17295
+ children: [g(cv, {
17296
17296
  className: "flex flex-col gap-4 px-4 py-5",
17297
17297
  children: [l(Lr, {
17298
17298
  type: t.type,
@@ -17302,12 +17302,12 @@ const hm = (t, e, n) => {
17302
17302
  children: [l(jb, {
17303
17303
  className: "text-xl sm:text-lg",
17304
17304
  children: t.title
17305
- }), l(lv, {
17305
+ }), l(dv, {
17306
17306
  className: "text-lg sm:text-base",
17307
17307
  children: t.description
17308
17308
  })]
17309
17309
  })]
17310
- }), e && g(av, {
17310
+ }), e && g(uv, {
17311
17311
  className: "px-4 pb-4 pt-2",
17312
17312
  children: [g("div", {
17313
17313
  className: "hidden sm:flex sm:flex-row sm:justify-between sm:gap-3 [&>div]:w-full",
@@ -17482,7 +17482,7 @@ const Pr = () => new Mr(), NA = (t) => {
17482
17482
  Te(t, Us[r]);
17483
17483
  } else
17484
17484
  Ge(t, CA(e));
17485
- }, DA = (t, e) => {
17485
+ }, EA = (t, e) => {
17486
17486
  const n = unescape(encodeURIComponent(e)), r = n.length;
17487
17487
  de(t, r);
17488
17488
  for (let i = 0; i < r; i++)
@@ -17492,7 +17492,7 @@ const Pr = () => new Mr(), NA = (t) => {
17492
17492
  n.codePointAt(i)
17493
17493
  );
17494
17494
  }, Tn = vr && /** @type {any} */
17495
- vr.encodeInto ? TA : DA, xo = (t, e) => {
17495
+ vr.encodeInto ? TA : EA, xo = (t, e) => {
17496
17496
  const n = t.cbuf.length, r = t.cpos, i = $n(n - r, e.length), o = e.length - i;
17497
17497
  t.cbuf.set(e.subarray(0, i), r), t.cpos += i, o > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Jt(n * 2, o)), t.cbuf.set(e.subarray(i)), t.cpos = o);
17498
17498
  }, Ge = (t, e) => {
@@ -17501,7 +17501,7 @@ vr.encodeInto ? TA : DA, xo = (t, e) => {
17501
17501
  IA(t, e);
17502
17502
  const n = new DataView(t.cbuf.buffer, t.cpos, e);
17503
17503
  return t.cpos += e, n;
17504
- }, EA = (t, e) => Yl(t, 4).setFloat32(0, e, !1), _A = (t, e) => Yl(t, 8).setFloat64(0, e, !1), LA = (t, e) => (
17504
+ }, DA = (t, e) => Yl(t, 4).setFloat32(0, e, !1), _A = (t, e) => Yl(t, 8).setFloat64(0, e, !1), LA = (t, e) => (
17505
17505
  /** @type {any} */
17506
17506
  Yl(t, 8).setBigInt64(0, e, !1)
17507
17507
  ), id = new DataView(new ArrayBuffer(4)), OA = (t) => (id.setFloat32(0, t), id.getFloat32(0) === t), jn = (t, e) => {
@@ -17510,7 +17510,7 @@ vr.encodeInto ? TA : DA, xo = (t, e) => {
17510
17510
  Te(t, 119), Tn(t, e);
17511
17511
  break;
17512
17512
  case "number":
17513
- pA(e) && mi(e) <= mA ? (Te(t, 125), Jl(t, e)) : OA(e) ? (Te(t, 124), EA(t, e)) : (Te(t, 123), _A(t, e));
17513
+ pA(e) && mi(e) <= mA ? (Te(t, 125), Jl(t, e)) : OA(e) ? (Te(t, 124), DA(t, e)) : (Te(t, 123), _A(t, e));
17514
17514
  break;
17515
17515
  case "bigint":
17516
17516
  Te(t, 122), LA(t, e);
@@ -17864,10 +17864,10 @@ const s2 = () => {
17864
17864
  }
17865
17865
  })) : yt = at();
17866
17866
  return yt;
17867
- }, qs = (t) => s2().has(t), Mi = (t) => dd(Bn ? process.env[t.toUpperCase().replaceAll("-", "_")] : XA.getItem(t)), Dm = (t) => qs("--" + t) || Mi(t) !== null;
17868
- Dm("production");
17867
+ }, qs = (t) => s2().has(t), Mi = (t) => dd(Bn ? process.env[t.toUpperCase().replaceAll("-", "_")] : XA.getItem(t)), Em = (t) => qs("--" + t) || Mi(t) !== null;
17868
+ Em("production");
17869
17869
  const l2 = Bn && o2(process.env.FORCE_COLOR, ["true", "1", "2"]), a2 = l2 || !qs("--no-colors") && // @todo deprecate --no-colors
17870
- !Dm("no-color") && (!Bn || process.stdout.isTTY) && (!Bn || qs("--color") || Mi("COLORTERM") !== null || (Mi("TERM") || "").includes("color")), c2 = (t) => {
17870
+ !Em("no-color") && (!Bn || process.stdout.isTTY) && (!Bn || qs("--color") || Mi("COLORTERM") !== null || (Mi("TERM") || "").includes("color")), c2 = (t) => {
17871
17871
  let e = "";
17872
17872
  for (let n = 0; n < t.byteLength; n++)
17873
17873
  e += gA(t[n]);
@@ -17882,7 +17882,7 @@ class h2 {
17882
17882
  this.left = e, this.right = n;
17883
17883
  }
17884
17884
  }
17885
- const Et = (t, e) => new h2(t, e), m2 = (
17885
+ const Dt = (t, e) => new h2(t, e), m2 = (
17886
17886
  /** @type {Document} */
17887
17887
  typeof document < "u" ? document : {}
17888
17888
  );
@@ -17897,7 +17897,7 @@ const p2 = (t) => cA(t, (e, n) => `${n}:${e};`).join(""), g2 = (t) => class {
17897
17897
  destroy() {
17898
17898
  t(this._);
17899
17899
  }
17900
- }, b2 = g2(clearTimeout), Em = (t, e) => new b2(setTimeout(e, t)), Ht = Symbol, _m = Ht(), Lm = Ht(), v2 = Ht(), x2 = Ht(), y2 = Ht(), Om = Ht(), w2 = Ht(), ta = Ht(), k2 = Ht(), C2 = (t) => {
17900
+ }, b2 = g2(clearTimeout), Dm = (t, e) => new b2(setTimeout(e, t)), Ht = Symbol, _m = Ht(), Lm = Ht(), v2 = Ht(), x2 = Ht(), y2 = Ht(), Om = Ht(), w2 = Ht(), ta = Ht(), k2 = Ht(), C2 = (t) => {
17901
17901
  t.length === 1 && t[0]?.constructor === Function && (t = /** @type {Array<string|Symbol|Object|number>} */
17902
17902
  /** @type {[function]} */
17903
17903
  t[0]());
@@ -17918,16 +17918,16 @@ const p2 = (t) => cA(t, (e, n) => `${n}:${e};`).join(""), g2 = (t) => class {
17918
17918
  }
17919
17919
  return n;
17920
17920
  }, N2 = {
17921
- [_m]: Et("font-weight", "bold"),
17922
- [Lm]: Et("font-weight", "normal"),
17923
- [v2]: Et("color", "blue"),
17924
- [y2]: Et("color", "green"),
17925
- [x2]: Et("color", "grey"),
17926
- [Om]: Et("color", "red"),
17927
- [w2]: Et("color", "purple"),
17928
- [ta]: Et("color", "orange"),
17921
+ [_m]: Dt("font-weight", "bold"),
17922
+ [Lm]: Dt("font-weight", "normal"),
17923
+ [v2]: Dt("color", "blue"),
17924
+ [y2]: Dt("color", "green"),
17925
+ [x2]: Dt("color", "grey"),
17926
+ [Om]: Dt("color", "red"),
17927
+ [w2]: Dt("color", "purple"),
17928
+ [ta]: Dt("color", "orange"),
17929
17929
  // not well supported in chrome when debugging node with inspector - TODO: deprecate
17930
- [k2]: Et("color", "black")
17930
+ [k2]: Dt("color", "black")
17931
17931
  }, S2 = (t) => {
17932
17932
  t.length === 1 && t[0]?.constructor === Function && (t = /** @type {Array<string|Symbol|Object|number>} */
17933
17933
  /** @type {[function]} */
@@ -18042,7 +18042,7 @@ const Qt = (t, e, n) => e.clients.forEach((r, i) => {
18042
18042
  /** @type {Array<DeleteItem>} */
18043
18043
  []
18044
18044
  )).push(new na(n, r));
18045
- }, zm = () => new Yn(), D2 = (t) => {
18045
+ }, zm = () => new Yn(), E2 = (t) => {
18046
18046
  const e = zm();
18047
18047
  return t.clients.forEach((n, r) => {
18048
18048
  const i = [];
@@ -18069,7 +18069,7 @@ const Qt = (t, e, n) => e.clients.forEach((r, i) => {
18069
18069
  t.writeDsClock(s.clock), t.writeDsLen(s.len);
18070
18070
  }
18071
18071
  });
18072
- }, E2 = (t) => {
18072
+ }, D2 = (t) => {
18073
18073
  const e = new Yn(), n = ge(t.restDecoder);
18074
18074
  for (let r = 0; r < n; r++) {
18075
18075
  t.resetDsCurVal();
@@ -18196,14 +18196,14 @@ class pn extends vm {
18196
18196
  */
18197
18197
  get(e, n = (
18198
18198
  /** @type {any} */
18199
- De
18199
+ Ee
18200
18200
  )) {
18201
18201
  const r = Bt(this.share, e, () => {
18202
18202
  const o = new n();
18203
18203
  return o._integrate(this, null), o;
18204
18204
  }), i = r.constructor;
18205
- if (n !== De && i !== n)
18206
- if (i === De) {
18205
+ if (n !== Ee && i !== n)
18206
+ if (i === Ee) {
18207
18207
  const o = new n();
18208
18208
  o._map = r._map, r._map.forEach(
18209
18209
  /** @param {Item?} n */
@@ -18354,13 +18354,13 @@ class Pi extends _2 {
18354
18354
  * @return {ID}
18355
18355
  */
18356
18356
  readLeftID() {
18357
- return new Dn(this.clientDecoder.read(), this.leftClockDecoder.read());
18357
+ return new En(this.clientDecoder.read(), this.leftClockDecoder.read());
18358
18358
  }
18359
18359
  /**
18360
18360
  * @return {ID}
18361
18361
  */
18362
18362
  readRightID() {
18363
- return new Dn(this.clientDecoder.read(), this.rightClockDecoder.read());
18363
+ return new En(this.clientDecoder.read(), this.rightClockDecoder.read());
18364
18364
  }
18365
18365
  /**
18366
18366
  * Read the next client id.
@@ -18853,7 +18853,7 @@ const hd = () => new j2(), md = (t, e) => t.l.push(e), pd = (t, e) => {
18853
18853
  const n = t.l, r = n.length;
18854
18854
  t.l = n.filter((i) => e !== i), r === t.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist.");
18855
18855
  }, Bm = (t, e, n) => ea(t.l, [e, n]);
18856
- class Dn {
18856
+ class En {
18857
18857
  /**
18858
18858
  * @param {number} client client id
18859
18859
  * @param {number} clock unique per client id, continuous number
@@ -18862,7 +18862,7 @@ class Dn {
18862
18862
  this.client = e, this.clock = n;
18863
18863
  }
18864
18864
  }
18865
- const ei = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, oe = (t, e) => new Dn(t, e), wr = (t) => {
18865
+ const ei = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, oe = (t, e) => new En(t, e), wr = (t) => {
18866
18866
  for (const [e, n] of t.doc.share.entries())
18867
18867
  if (n === t)
18868
18868
  return e;
@@ -18919,7 +18919,7 @@ const H2 = (t, e, n = 0) => new B2(t, e, n), ti = (t, e, n) => {
18919
18919
  }
18920
18920
  return ti(t, null, n);
18921
18921
  }, V2 = (t, e) => {
18922
- const n = En(t, e), r = e.clock - n.id.clock;
18922
+ const n = Dn(t, e), r = e.clock - n.id.clock;
18923
18923
  return {
18924
18924
  item: n,
18925
18925
  diff: r
@@ -18946,7 +18946,7 @@ const H2 = (t, e, n = 0) => new B2(t, e, n), ti = (t, e, n) => {
18946
18946
  else if (o !== null) {
18947
18947
  if (ke(r, o.client) <= o.clock)
18948
18948
  return null;
18949
- const { item: f } = n ? Zs(r, o) : { item: En(r, o) };
18949
+ const { item: f } = n ? Zs(r, o) : { item: Dn(r, o) };
18950
18950
  if (f instanceof me && f.content instanceof vt)
18951
18951
  c = f.content.type;
18952
18952
  else
@@ -18966,7 +18966,7 @@ class oa {
18966
18966
  this.ds = e, this.sv = n;
18967
18967
  }
18968
18968
  }
18969
- const Hm = (t, e) => new oa(t, e), os = (t) => Hm(D2(t.store), ko(t.store)), tn = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !Qn(e.ds, t.id), Ys = (t, e) => {
18969
+ const Hm = (t, e) => new oa(t, e), os = (t) => Hm(E2(t.store), ko(t.store)), tn = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !Qn(e.ds, t.id), Ys = (t, e) => {
18970
18970
  const n = Bt(t.meta, Ys, cn), r = t.doc.store;
18971
18971
  n.has(e) || (e.sv.forEach((i, o) => {
18972
18972
  i < ke(r, o) && je(t, oe(o, i));
@@ -19018,7 +19018,7 @@ const ko = (t) => {
19018
19018
  }, U2 = (t, e) => {
19019
19019
  const n = t.clients.get(e.client);
19020
19020
  return n[ft(n, e.clock)];
19021
- }, En = (
19021
+ }, Dn = (
19022
19022
  /** @type {function(StructStore,ID):Item} */
19023
19023
  U2
19024
19024
  ), Qs = (t, e, n) => {
@@ -19300,7 +19300,7 @@ class qm extends vm {
19300
19300
  addToScope(e) {
19301
19301
  const n = new Set(this.scope);
19302
19302
  e = Hs(e) ? e : [e], e.forEach((r) => {
19303
- n.has(r) || (n.add(r), (r instanceof De ? r.doc !== this.doc : r !== this.doc) && Fm("[yjs#509] Not same Y.Doc"), this.scope.push(r));
19303
+ n.has(r) || (n.add(r), (r instanceof Ee ? r.doc !== this.doc : r !== this.doc) && Fm("[yjs#509] Not same Y.Doc"), this.scope.push(r));
19304
19304
  });
19305
19305
  }
19306
19306
  /**
@@ -19536,7 +19536,7 @@ const eT = (t, e) => {
19536
19536
  rr(a, o.struct, o.offset), o = { struct: h, offset: 0 };
19537
19537
  }
19538
19538
  o !== null && (rr(a, o.struct, o.offset), o = null), tT(a);
19539
- const c = r.map((f) => E2(f)), d = Ks(c);
19539
+ const c = r.map((f) => D2(f)), d = Ks(c);
19540
19540
  return ia(s, d), s.toUint8Array();
19541
19541
  }, Km = (t) => {
19542
19542
  t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: lt(t.encoder.restEncoder) }), t.encoder.restEncoder = Pr(), t.written = 0);
@@ -19769,7 +19769,7 @@ const iT = (t) => {
19769
19769
  t._item.parent;
19770
19770
  Bm(r._eH, n, e);
19771
19771
  };
19772
- class De {
19772
+ class Ee {
19773
19773
  constructor() {
19774
19774
  this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH = hd(), this._dEH = hd(), this._searchMarker = null;
19775
19775
  }
@@ -20002,7 +20002,7 @@ const Qm = (t, e, n) => {
20002
20002
  )), i.integrate(t, 0);
20003
20003
  break;
20004
20004
  default:
20005
- if (u instanceof De)
20005
+ if (u instanceof Ee)
20006
20006
  i = new me(oe(s, ke(a, s)), i, i && i.lastId, c, c && c.id, e, null, new vt(u)), i.integrate(t, 0);
20007
20007
  else
20008
20008
  throw new Error("Unexpected content type in insert operation");
@@ -20080,7 +20080,7 @@ const Qm = (t, e, n) => {
20080
20080
  );
20081
20081
  break;
20082
20082
  default:
20083
- if (r instanceof De)
20083
+ if (r instanceof Ee)
20084
20084
  a = new vt(r);
20085
20085
  else
20086
20086
  throw new Error("Unexpected content type");
@@ -20114,7 +20114,7 @@ const Qm = (t, e, n) => {
20114
20114
  ));
20115
20115
  class cT extends Co {
20116
20116
  }
20117
- class _n extends De {
20117
+ class _n extends Ee {
20118
20118
  constructor() {
20119
20119
  super(), this._prelimContent = [], this._searchMarker = [];
20120
20120
  }
@@ -20161,7 +20161,7 @@ class _n extends De {
20161
20161
  clone() {
20162
20162
  const e = new _n();
20163
20163
  return e.insert(0, this.toArray().map(
20164
- (n) => n instanceof De ? (
20164
+ (n) => n instanceof Ee ? (
20165
20165
  /** @type {typeof el} */
20166
20166
  n.clone()
20167
20167
  ) : n
@@ -20276,7 +20276,7 @@ class _n extends De {
20276
20276
  * @return {Array<any>}
20277
20277
  */
20278
20278
  toJSON() {
20279
- return this.map((e) => e instanceof De ? e.toJSON() : e);
20279
+ return this.map((e) => e instanceof Ee ? e.toJSON() : e);
20280
20280
  }
20281
20281
  /**
20282
20282
  * Returns an Array with the result of calling a provided function on every
@@ -20326,7 +20326,7 @@ class uT extends Co {
20326
20326
  super(e, n), this.keysChanged = r;
20327
20327
  }
20328
20328
  }
20329
- class Hn extends De {
20329
+ class Hn extends Ee {
20330
20330
  /**
20331
20331
  *
20332
20332
  * @param {Iterable<readonly [string, any]>=} entries - an optional iterable to initialize the YMap
@@ -20365,7 +20365,7 @@ class Hn extends De {
20365
20365
  clone() {
20366
20366
  const e = new Hn();
20367
20367
  return this.forEach((n, r) => {
20368
- e.set(r, n instanceof De ? (
20368
+ e.set(r, n instanceof Ee ? (
20369
20369
  /** @type {typeof value} */
20370
20370
  n.clone()
20371
20371
  ) : n);
@@ -20391,7 +20391,7 @@ class Hn extends De {
20391
20391
  return this._map.forEach((n, r) => {
20392
20392
  if (!n.deleted) {
20393
20393
  const i = n.content.getContent()[n.length - 1];
20394
- e[r] = i instanceof De ? i.toJSON() : i;
20394
+ e[r] = i instanceof Ee ? i.toJSON() : i;
20395
20395
  }
20396
20396
  }), e;
20397
20397
  }
@@ -20619,7 +20619,7 @@ const Cd = (t, e, n) => {
20619
20619
  const a = cp(t, e, n, i), c = r.constructor === String ? new ht(
20620
20620
  /** @type {string} */
20621
20621
  r
20622
- ) : r instanceof De ? new vt(r) : new gn(r);
20622
+ ) : r instanceof Ee ? new vt(r) : new gn(r);
20623
20623
  let { left: d, right: f, index: u } = n;
20624
20624
  e._searchMarker && Cr(e._searchMarker, n.index, c.getLength()), f = new me(oe(s, ke(o.store, s)), d, d && d.lastId, f, f && f.id, e, null, c), f.integrate(t, 0), n.right = f, n.index = u, n.forward(), lp(t, e, n, a);
20625
20625
  }, Nd = (t, e, n, r, i) => {
@@ -20905,7 +20905,7 @@ class gT extends Co {
20905
20905
  );
20906
20906
  }
20907
20907
  }
20908
- class Xt extends De {
20908
+ class Xt extends Ee {
20909
20909
  /**
20910
20910
  * @param {String} [string] The initial value of the YText.
20911
20911
  */
@@ -21260,7 +21260,7 @@ class ls {
21260
21260
  ), done: !1 });
21261
21261
  }
21262
21262
  }
21263
- class un extends De {
21263
+ class un extends Ee {
21264
21264
  constructor() {
21265
21265
  super(), this._prelimContent = [];
21266
21266
  }
@@ -21300,7 +21300,7 @@ class un extends De {
21300
21300
  */
21301
21301
  clone() {
21302
21302
  const e = new un();
21303
- return e.insert(0, this.toArray().map((n) => n instanceof De ? n.clone() : n)), e;
21303
+ return e.insert(0, this.toArray().map((n) => n instanceof Ee ? n.clone() : n)), e;
21304
21304
  }
21305
21305
  get length() {
21306
21306
  return this.doc ?? Re(), this._prelimContent === null ? this._length : this._prelimContent.length;
@@ -21431,7 +21431,7 @@ class un extends De {
21431
21431
  insertAfter(e, n) {
21432
21432
  if (this.doc !== null)
21433
21433
  he(this.doc, (r) => {
21434
- const i = e && e instanceof De ? e._item : e;
21434
+ const i = e && e instanceof Ee ? e._item : e;
21435
21435
  $i(r, this, i, n);
21436
21436
  });
21437
21437
  else {
@@ -21581,7 +21581,7 @@ class Oe extends un {
21581
21581
  const e = new Oe(this.nodeName), n = this.getAttributes();
21582
21582
  return e2(n, (r, i) => {
21583
21583
  typeof r == "string" && e.setAttribute(i, r);
21584
- }), e.insert(0, this.toArray().map((r) => r instanceof De ? r.clone() : r)), e;
21584
+ }), e.insert(0, this.toArray().map((r) => r instanceof Ee ? r.clone() : r)), e;
21585
21585
  }
21586
21586
  /**
21587
21587
  * Returns the XML serialization of this YXmlElement.
@@ -22434,20 +22434,20 @@ class Hi {
22434
22434
  return 2;
22435
22435
  }
22436
22436
  }
22437
- const DT = (t) => {
22437
+ const ET = (t) => {
22438
22438
  const e = t.readLen(), n = [];
22439
22439
  for (let r = 0; r < e; r++) {
22440
22440
  const i = t.readString();
22441
22441
  i === "undefined" ? n.push(void 0) : n.push(JSON.parse(i));
22442
22442
  }
22443
22443
  return new Hi(n);
22444
- }, ET = Mi("node_env") === "development";
22444
+ }, DT = Mi("node_env") === "development";
22445
22445
  class fn {
22446
22446
  /**
22447
22447
  * @param {Array<any>} arr
22448
22448
  */
22449
22449
  constructor(e) {
22450
- this.arr = e, ET && Am(e);
22450
+ this.arr = e, DT && Am(e);
22451
22451
  }
22452
22452
  /**
22453
22453
  * @return {number}
@@ -22711,7 +22711,7 @@ class vt {
22711
22711
  const BT = (t) => new vt(OT[t.readTypeRef()](t)), Zs = (t, e) => {
22712
22712
  let n = e, r = 0, i;
22713
22713
  do
22714
- r > 0 && (n = oe(n.client, n.clock + r)), i = En(t, n), r = n.clock - i.id.clock, n = i.redone;
22714
+ r > 0 && (n = oe(n.client, n.clock + r)), i = Dn(t, n), r = n.clock - i.id.clock, n = i.redone;
22715
22715
  while (n !== null && i instanceof me);
22716
22716
  return {
22717
22717
  item: i,
@@ -22864,14 +22864,14 @@ let me = class el extends ca {
22864
22864
  return this.origin.client;
22865
22865
  if (this.rightOrigin && this.rightOrigin.client !== this.id.client && this.rightOrigin.clock >= ke(n, this.rightOrigin.client))
22866
22866
  return this.rightOrigin.client;
22867
- if (this.parent && this.parent.constructor === Dn && this.id.client !== this.parent.client && this.parent.clock >= ke(n, this.parent.client))
22867
+ if (this.parent && this.parent.constructor === En && this.id.client !== this.parent.client && this.parent.clock >= ke(n, this.parent.client))
22868
22868
  return this.parent.client;
22869
22869
  if (this.origin && (this.left = gd(e, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = je(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Xe || this.right && this.right.constructor === Xe)
22870
22870
  this.parent = null;
22871
22871
  else if (!this.parent)
22872
22872
  this.left && this.left.constructor === el ? (this.parent = this.left.parent, this.parentSub = this.left.parentSub) : this.right && this.right.constructor === el && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
22873
- else if (this.parent.constructor === Dn) {
22874
- const r = En(n, this.parent);
22873
+ else if (this.parent.constructor === En) {
22874
+ const r = Dn(n, this.parent);
22875
22875
  r.constructor === Xe ? this.parent = null : this.parent = /** @type {ContentType} */
22876
22876
  r.content.type;
22877
22877
  }
@@ -22901,8 +22901,8 @@ let me = class el extends ca {
22901
22901
  r = i, o.clear();
22902
22902
  else if (ei(this.rightOrigin, i.rightOrigin))
22903
22903
  break;
22904
- } else if (i.origin !== null && s.has(En(e.doc.store, i.origin)))
22905
- o.has(En(e.doc.store, i.origin)) || (r = i, o.clear());
22904
+ } else if (i.origin !== null && s.has(Dn(e.doc.store, i.origin)))
22905
+ o.has(Dn(e.doc.store, i.origin)) || (r = i, o.clear());
22906
22906
  else
22907
22907
  break;
22908
22908
  i = i.right;
@@ -23024,7 +23024,7 @@ let me = class el extends ca {
23024
23024
  e.writeParentInfo(!0), e.writeString(d);
23025
23025
  } else
23026
23026
  e.writeParentInfo(!1), e.writeLeftID(c.id);
23027
- } else a.constructor === String ? (e.writeParentInfo(!0), e.writeString(a)) : a.constructor === Dn ? (e.writeParentInfo(!1), e.writeLeftID(a)) : We();
23027
+ } else a.constructor === String ? (e.writeParentInfo(!0), e.writeString(a)) : a.constructor === En ? (e.writeParentInfo(!1), e.writeLeftID(a)) : We();
23028
23028
  o !== null && e.writeString(o);
23029
23029
  }
23030
23030
  this.content.write(e, n);
@@ -23037,7 +23037,7 @@ const hp = (t, e) => HT[e & vo](t), HT = [
23037
23037
  // GC is not ItemContent
23038
23038
  ST,
23039
23039
  // 1
23040
- DT,
23040
+ ET,
23041
23041
  // 2
23042
23042
  NT,
23043
23043
  // 3
@@ -23190,7 +23190,7 @@ const kt = (t, e) => t >>> e | t << 32 - e, JT = (t) => kt(t, 2) ^ kt(t, 13) ^ k
23190
23190
  2756734187,
23191
23191
  3204031479,
23192
23192
  3329325298
23193
- ]), eD = new Uint32Array([
23193
+ ]), eE = new Uint32Array([
23194
23194
  1779033703,
23195
23195
  3144134277,
23196
23196
  1013904242,
@@ -23200,10 +23200,10 @@ const kt = (t, e) => t >>> e | t << 32 - e, JT = (t) => kt(t, 2) ^ kt(t, 13) ^ k
23200
23200
  528734635,
23201
23201
  1541459225
23202
23202
  ]);
23203
- class tD {
23203
+ class tE {
23204
23204
  constructor() {
23205
23205
  const e = new ArrayBuffer(320);
23206
- this._H = new Uint32Array(e, 0, 8), this._H.set(eD), this._W = new Uint32Array(e, 64, 64);
23206
+ this._H = new Uint32Array(e, 0, 8), this._H.set(eE), this._W = new Uint32Array(e, 64, 64);
23207
23207
  }
23208
23208
  _updateHash() {
23209
23209
  const e = this._H, n = this._W;
@@ -23246,12 +23246,12 @@ class tD {
23246
23246
  return o;
23247
23247
  }
23248
23248
  }
23249
- const nD = (t) => new tD().digest(t), rD = (t) => {
23249
+ const nE = (t) => new tE().digest(t), rE = (t) => {
23250
23250
  for (let n = 6; n < t.length; n++)
23251
23251
  t[n % 6] = t[n % 6] ^ t[n];
23252
23252
  return t.slice(0, 6);
23253
- }, iD = (t) => u2(rD(nD(f2(t)))), Wi = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && /** @type {number} */
23254
- e.sv.get(t.id.client) > t.id.clock && !Qn(e.ds, t.id), oD = [{ light: "#ecd44433", dark: "#ecd444" }], sD = (t, e, n) => {
23253
+ }, iE = (t) => u2(rE(nE(f2(t)))), Wi = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && /** @type {number} */
23254
+ e.sv.get(t.id.client) > t.id.clock && !Qn(e.ds, t.id), oE = [{ light: "#ecd44433", dark: "#ecd444" }], sE = (t, e, n) => {
23255
23255
  if (!t.has(n)) {
23256
23256
  if (t.size < e.length) {
23257
23257
  const r = cn();
@@ -23263,8 +23263,8 @@ e.sv.get(t.id.client) > t.id.clock && !Qn(e.ds, t.id), oD = [{ light: "#ecd44433
23263
23263
  /** @type {ColorDef} */
23264
23264
  t.get(n)
23265
23265
  );
23266
- }, lD = (t, {
23267
- colors: e = oD,
23266
+ }, lE = (t, {
23267
+ colors: e = oE,
23268
23268
  colorMapping: n = /* @__PURE__ */ new Map(),
23269
23269
  permanentUserData: r = null,
23270
23270
  onFirstRender: i = () => {
@@ -23272,7 +23272,7 @@ e.sv.get(t.id.client) > t.id.clock && !Qn(e.ds, t.id), oD = [{ light: "#ecd44433
23272
23272
  mapping: o
23273
23273
  } = {}) => {
23274
23274
  let s = !1;
23275
- const a = new cD(t, o), c = new It({
23275
+ const a = new cE(t, o), c = new It({
23276
23276
  props: {
23277
23277
  editable: (d) => {
23278
23278
  const f = xe.getState(d);
@@ -23304,7 +23304,7 @@ e.sv.get(t.id.client) > t.id.clock && !Qn(e.ds, t.id), oD = [{ light: "#ecd44433
23304
23304
  for (const h in u)
23305
23305
  f[h] = u[h];
23306
23306
  }
23307
- return f.addToHistory = d.getMeta("addToHistory") !== !1, f.isChangeOrigin = u !== void 0 && !!u.isChangeOrigin, f.isUndoRedoOperation = u !== void 0 && !!u.isChangeOrigin && !!u.isUndoRedoOperation, a.prosemirrorView !== null && u !== void 0 && (u.snapshot != null || u.prevSnapshot != null) && Em(0, () => {
23307
+ return f.addToHistory = d.getMeta("addToHistory") !== !1, f.isChangeOrigin = u !== void 0 && !!u.isChangeOrigin, f.isUndoRedoOperation = u !== void 0 && !!u.isChangeOrigin && !!u.isUndoRedoOperation, a.prosemirrorView !== null && u !== void 0 && (u.snapshot != null || u.prevSnapshot != null) && Dm(0, () => {
23308
23308
  a.prosemirrorView != null && (u.restore == null ? a._renderSnapshot(
23309
23309
  u.snapshot,
23310
23310
  u.prevSnapshot,
@@ -23347,10 +23347,10 @@ e.sv.get(t.id.client) > t.id.clock && !Qn(e.ds, t.id), oD = [{ light: "#ecd44433
23347
23347
  })
23348
23348
  });
23349
23349
  return c;
23350
- }, aD = (t, e, n) => {
23350
+ }, aE = (t, e, n) => {
23351
23351
  if (e !== null && e.anchor !== null && e.head !== null)
23352
23352
  if (e.type === "all")
23353
- t.setSelection(new cv(t.doc));
23353
+ t.setSelection(new fv(t.doc));
23354
23354
  else if (e.type === "node") {
23355
23355
  const r = xi(
23356
23356
  n.doc,
@@ -23358,7 +23358,7 @@ e.sv.get(t.id.client) > t.id.clock && !Qn(e.ds, t.id), oD = [{ light: "#ecd44433
23358
23358
  e.anchor,
23359
23359
  n.mapping
23360
23360
  );
23361
- t.setSelection(Ru.create(t.doc, r));
23361
+ t.setSelection(Fu.create(t.doc, r));
23362
23362
  } else {
23363
23363
  const r = xi(
23364
23364
  n.doc,
@@ -23392,7 +23392,7 @@ e.sv.get(t.id.client) > t.id.clock && !Qn(e.ds, t.id), oD = [{ light: "#ecd44433
23392
23392
  t.mapping
23393
23393
  )
23394
23394
  });
23395
- class cD {
23395
+ class cE {
23396
23396
  /**
23397
23397
  * @param {Y.XmlFragment} yXmlFragment The bind source
23398
23398
  * @param {ProsemirrorMapping} mapping
@@ -23416,7 +23416,7 @@ class cD {
23416
23416
  return this.prosemirrorView.state.tr.setMeta("addToHistory", !1);
23417
23417
  }
23418
23418
  _isLocalCursorInView() {
23419
- return this.prosemirrorView.hasFocus() ? (Tm && this._domSelectionInView === null && (Em(0, () => {
23419
+ return this.prosemirrorView.hasFocus() ? (Tm && this._domSelectionInView === null && (Dm(0, () => {
23420
23420
  this._domSelectionInView = null;
23421
23421
  }), this._domSelectionInView = this._isDomSelectionInView()), this._domSelectionInView) : !1;
23422
23422
  }
@@ -23512,7 +23512,7 @@ class cD {
23512
23512
  return {
23513
23513
  user: m,
23514
23514
  type: u,
23515
- color: sD(
23515
+ color: sE(
23516
23516
  r.colorMapping,
23517
23517
  r.colors,
23518
23518
  m
@@ -23579,7 +23579,7 @@ class cD {
23579
23579
  this.prosemirrorView.state.doc.content.size,
23580
23580
  new Ze(Be.from(o), 0, 0)
23581
23581
  );
23582
- aD(s, this.beforeTransactionSelection, this), s = s.setMeta(xe, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof qm }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && s.scrollIntoView(), this.prosemirrorView.dispatch(s);
23582
+ aE(s, this.beforeTransactionSelection, this), s = s.setMeta(xe, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof qm }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && s.scrollIntoView(), this.prosemirrorView.dispatch(s);
23583
23583
  });
23584
23584
  }
23585
23585
  /**
@@ -23645,7 +23645,7 @@ const gp = (t, e, n, r, i, o) => {
23645
23645
  ]), d.doc.transact((u) => {
23646
23646
  d._item.delete(u);
23647
23647
  }));
23648
- const f = dD(
23648
+ const f = dE(
23649
23649
  c,
23650
23650
  e,
23651
23651
  n,
@@ -23685,12 +23685,12 @@ const gp = (t, e, n, r, i, o) => {
23685
23685
  t._item.delete(d);
23686
23686
  }, xe), n.mapping.delete(t), null;
23687
23687
  }
23688
- }, dD = (t, e, n, r, i, o) => {
23688
+ }, dE = (t, e, n, r, i, o) => {
23689
23689
  const s = [], a = t.toDelta(r, i, o);
23690
23690
  try {
23691
23691
  for (let c = 0; c < a.length; c++) {
23692
23692
  const d = a[c];
23693
- s.push(e.text(d.insert, gD(d.attributes, e)));
23693
+ s.push(e.text(d.insert, gE(d.attributes, e)));
23694
23694
  }
23695
23695
  } catch {
23696
23696
  return t.doc.transact((d) => {
@@ -23698,14 +23698,14 @@ const gp = (t, e, n, r, i, o) => {
23698
23698
  }, xe), null;
23699
23699
  }
23700
23700
  return s;
23701
- }, uD = (t, e) => {
23701
+ }, uE = (t, e) => {
23702
23702
  const n = new He(), r = t.map((i) => ({
23703
23703
  // @ts-ignore
23704
23704
  insert: i.text,
23705
23705
  attributes: vp(i.marks, e)
23706
23706
  }));
23707
23707
  return n.applyDelta(r), e.mapping.set(n, t), n;
23708
- }, fD = (t, e) => {
23708
+ }, fE = (t, e) => {
23709
23709
  const n = new Oe(t.type.name);
23710
23710
  for (const r in t.attrs) {
23711
23711
  const i = t.attrs[r];
@@ -23717,7 +23717,7 @@ const gp = (t, e, n, r, i, o) => {
23717
23717
  (r) => nl(r, e)
23718
23718
  )
23719
23719
  ), e.mapping.set(n, t), n;
23720
- }, nl = (t, e) => t instanceof Array ? uD(t, e) : fD(t, e), Ad = (t) => typeof t == "object" && t !== null, ua = (t, e) => {
23720
+ }, nl = (t, e) => t instanceof Array ? uE(t, e) : fE(t, e), Ad = (t) => typeof t == "object" && t !== null, ua = (t, e) => {
23721
23721
  const n = Object.keys(t).filter((i) => t[i] !== null);
23722
23722
  let r = n.length === (e == null ? 0 : Object.keys(e).filter((i) => e[i] !== null).length);
23723
23723
  for (let i = 0; i < n.length && r; i++) {
@@ -23782,7 +23782,7 @@ const gp = (t, e, n, r, i, o) => {
23782
23782
  equalityFactor: c + d,
23783
23783
  foundMappedChild: f
23784
23784
  };
23785
- }, hD = (t) => {
23785
+ }, hE = (t) => {
23786
23786
  let e = "", n = t._start;
23787
23787
  const r = {};
23788
23788
  for (; n !== null; )
@@ -23791,9 +23791,9 @@ const gp = (t, e, n, r, i, o) => {
23791
23791
  str: e,
23792
23792
  nAttrs: r
23793
23793
  };
23794
- }, mD = (t, e, n) => {
23794
+ }, mE = (t, e, n) => {
23795
23795
  n.mapping.set(t, e);
23796
- const { nAttrs: r, str: i } = hD(t), o = e.map((d) => ({
23796
+ const { nAttrs: r, str: i } = hE(t), o = e.map((d) => ({
23797
23797
  insert: (
23798
23798
  /** @type {any} */
23799
23799
  d.text
@@ -23806,7 +23806,7 @@ const gp = (t, e, n, r, i, o) => {
23806
23806
  t.delete(c, a), t.insert(c, s), t.applyDelta(
23807
23807
  o.map((d) => ({ retain: d.insert.length, attributes: d.attributes }))
23808
23808
  );
23809
- }, pD = /(.*)(--[a-zA-Z0-9+/=]{8})$/, fa = (t) => pD.exec(t)?.[1] ?? t, gD = (t, e) => {
23809
+ }, pE = /(.*)(--[a-zA-Z0-9+/=]{8})$/, fa = (t) => pE.exec(t)?.[1] ?? t, gE = (t, e) => {
23810
23810
  const n = [];
23811
23811
  for (const r in t)
23812
23812
  n.push(e.mark(fa(r), t[r]));
@@ -23816,7 +23816,7 @@ const gp = (t, e, n, r, i, o) => {
23816
23816
  return t.forEach((r) => {
23817
23817
  if (r.type.name !== "ychange") {
23818
23818
  const i = Bt(e.isOMark, r.type, () => !r.type.excludes(r.type));
23819
- n[i ? `${r.type.name}--${iD(r.toJSON())}` : r.type.name] = r.attrs;
23819
+ n[i ? `${r.type.name}--${iE(r.toJSON())}` : r.type.name] = r.attrs;
23820
23820
  }
23821
23821
  }), n;
23822
23822
  }, rl = (t, e, n, r) => {
@@ -23851,7 +23851,7 @@ const gp = (t, e, n, r, i, o) => {
23851
23851
  for (; a - d - f > 0 && o - d - f > 0; ) {
23852
23852
  const h = s[d], m = i[d], p = s[a - f - 1], b = i[o - f - 1];
23853
23853
  if (h instanceof He && m instanceof Array)
23854
- bp(h, m) || mD(h, m, r), d += 1;
23854
+ bp(h, m) || mE(h, m, r), d += 1;
23855
23855
  else {
23856
23856
  let v = h instanceof Oe && il(h, m), x = p instanceof Oe && il(p, b);
23857
23857
  if (v && x) {
@@ -23953,10 +23953,10 @@ const gp = (t, e, n, r, i, o) => {
23953
23953
  if (r === null)
23954
23954
  throw We();
23955
23955
  if (t === 0 && r.constructor !== He && r !== e)
23956
- return bD(r._item.parent, r._item);
23956
+ return bE(r._item.parent, r._item);
23957
23957
  }
23958
23958
  return is(e, e._length, e.length === 0 ? -1 : 0);
23959
- }, bD = (t, e) => {
23959
+ }, bE = (t, e) => {
23960
23960
  let n = null, r = null;
23961
23961
  return t._item === null ? r = wr(t) : n = oe(t._item.id.client, t._item.id.clock), new zi(n, r, e.id);
23962
23962
  }, xi = (t, e, n, r) => {
@@ -24006,7 +24006,7 @@ const gp = (t, e, n, r, i, o) => {
24006
24006
  }
24007
24007
  return s - 1;
24008
24008
  };
24009
- function vD(t) {
24009
+ function vE(t) {
24010
24010
  const e = t.toArray(), n = (r) => {
24011
24011
  let i;
24012
24012
  if (r instanceof He)
@@ -24042,13 +24042,13 @@ function vD(t) {
24042
24042
  content: e.map(n)
24043
24043
  };
24044
24044
  }
24045
- const xD = (t) => Ft.getState(t)?.undoManager?.undo() != null, yD = (t) => Ft.getState(t)?.undoManager?.redo() != null, wD = /* @__PURE__ */ new Set(["paragraph"]), kD = (t, e) => !(t instanceof me) || !(t.content instanceof vt) || !(t.content.type instanceof Xt || t.content.type instanceof Oe && e.has(t.content.type.nodeName)) || t.content.type._length === 0, CD = ({ protectedNodes: t = wD, trackedOrigins: e = [], undoManager: n = null } = {}) => new It({
24045
+ const xE = (t) => Ft.getState(t)?.undoManager?.undo() != null, yE = (t) => Ft.getState(t)?.undoManager?.redo() != null, wE = /* @__PURE__ */ new Set(["paragraph"]), kE = (t, e) => !(t instanceof me) || !(t.content instanceof vt) || !(t.content.type instanceof Xt || t.content.type instanceof Oe && e.has(t.content.type.nodeName)) || t.content.type._length === 0, CE = ({ protectedNodes: t = wE, trackedOrigins: e = [], undoManager: n = null } = {}) => new It({
24046
24046
  key: Ft,
24047
24047
  state: {
24048
24048
  init: (r, i) => {
24049
24049
  const o = xe.getState(i), s = n || new qm(o.type, {
24050
24050
  trackedOrigins: new Set([xe].concat(e)),
24051
- deleteFilter: (a) => kD(a, t),
24051
+ deleteFilter: (a) => kE(a, t),
24052
24052
  captureTransaction: (a) => a.meta.get("addToHistory") !== !1
24053
24053
  });
24054
24054
  return {
@@ -24106,8 +24106,8 @@ mn.create({
24106
24106
  },
24107
24107
  addCommands() {
24108
24108
  return {
24109
- undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), Ft.getState(e).undoManager.undoStack.length === 0 ? !1 : n ? xD(e) : !0),
24110
- redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), Ft.getState(e).undoManager.redoStack.length === 0 ? !1 : n ? yD(e) : !0)
24109
+ undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), Ft.getState(e).undoManager.undoStack.length === 0 ? !1 : n ? xE(e) : !0),
24110
+ redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), Ft.getState(e).undoManager.redoStack.length === 0 ? !1 : n ? yE(e) : !0)
24111
24111
  };
24112
24112
  },
24113
24113
  addKeyboardShortcuts() {
@@ -24119,7 +24119,7 @@ mn.create({
24119
24119
  },
24120
24120
  addProseMirrorPlugins() {
24121
24121
  var t;
24122
- const e = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n = CD(this.options.yUndoOptions), r = n.spec.view;
24122
+ const e = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n = CE(this.options.yUndoOptions), r = n.spec.view;
24123
24123
  n.spec.view = (s) => {
24124
24124
  const { undoManager: a } = Ft.getState(s.state);
24125
24125
  a.restore && (a.restore(), a.restore = () => {
@@ -24137,10 +24137,10 @@ mn.create({
24137
24137
  const i = {
24138
24138
  ...this.options.ySyncOptions,
24139
24139
  onFirstRender: this.options.onFirstRender
24140
- }, o = lD(e, i);
24140
+ }, o = lE(e, i);
24141
24141
  return this.editor.options.enableContentCheck && ((t = e.doc) === null || t === void 0 || t.on("beforeTransaction", () => {
24142
24142
  try {
24143
- const s = vD(e);
24143
+ const s = vE(e);
24144
24144
  if (s.content.length === 0)
24145
24145
  return;
24146
24146
  this.editor.schema.nodeFromJSON(s).check();
@@ -24168,10 +24168,10 @@ mn.create({
24168
24168
  ].filter(Boolean);
24169
24169
  }
24170
24170
  });
24171
- function ND(t) {
24171
+ function NE(t) {
24172
24172
  return !!t.getMeta(xe);
24173
24173
  }
24174
- function Dd(t) {
24174
+ function Ed(t) {
24175
24175
  if (!t.length)
24176
24176
  return fr.empty;
24177
24177
  const e = [], n = t[0].$from.node(0);
@@ -24185,12 +24185,12 @@ function Dd(t) {
24185
24185
  function Ao(t, e, n) {
24186
24186
  const r = [], i = t.node(0);
24187
24187
  n = typeof n == "number" && n >= 0 ? n : t.sameParent(e) ? Math.max(0, t.sharedDepth(e.pos) - 1) : t.sharedDepth(e.pos);
24188
- const o = new dv(t, e, n), s = o.depth === 0 ? 0 : i.resolve(o.start).posAtIndex(0);
24188
+ const o = new hv(t, e, n), s = o.depth === 0 ? 0 : i.resolve(o.start).posAtIndex(0);
24189
24189
  return o.parent.forEach((a, c) => {
24190
24190
  const d = s + c, f = d + a.nodeSize;
24191
24191
  if (d < o.start || d >= o.end)
24192
24192
  return;
24193
- const u = new Ou(i.resolve(d), i.resolve(f));
24193
+ const u = new Ru(i.resolve(d), i.resolve(f));
24194
24194
  r.push(u);
24195
24195
  }), r;
24196
24196
  }
@@ -24336,29 +24336,29 @@ mn.create({
24336
24336
  decorations: (n) => {
24337
24337
  const { selection: r } = n, i = ii(r);
24338
24338
  if (t = !1, !e)
24339
- return i ? (t = !0, Dd(r.ranges)) : null;
24339
+ return i ? (t = !0, Ed(r.ranges)) : null;
24340
24340
  const { $from: o, $to: s } = r;
24341
24341
  if (!i && o.sameParent(s))
24342
24342
  return null;
24343
24343
  const a = Ao(o, s, this.options.depth);
24344
- return a.length ? (t = !0, Dd(a)) : null;
24344
+ return a.length ? (t = !0, Ed(a)) : null;
24345
24345
  }
24346
24346
  }
24347
24347
  })
24348
24348
  ];
24349
24349
  }
24350
24350
  });
24351
- function SD(t) {
24351
+ function SE(t) {
24352
24352
  let e = "";
24353
24353
  const n = getComputedStyle(t);
24354
24354
  for (let r = 0; r < n.length; r += 1)
24355
24355
  e += `${n[r]}:${n.getPropertyValue(n[r])};`;
24356
24356
  return e;
24357
24357
  }
24358
- function ID(t) {
24358
+ function IE(t) {
24359
24359
  const e = t.cloneNode(!0), n = [t, ...Array.from(t.getElementsByTagName("*"))], r = [e, ...Array.from(e.getElementsByTagName("*"))];
24360
24360
  return n.forEach((i, o) => {
24361
- r[o].style.cssText = SD(i);
24361
+ r[o].style.cssText = SE(i);
24362
24362
  }), e;
24363
24363
  }
24364
24364
  const xp = (t) => {
@@ -24380,13 +24380,13 @@ const xp = (t) => {
24380
24380
  function oi(t, e) {
24381
24381
  return window.getComputedStyle(t)[e];
24382
24382
  }
24383
- function AD(t = 0, e = 0, n = 0) {
24383
+ function AE(t = 0, e = 0, n = 0) {
24384
24384
  return Math.min(Math.max(t, e), n);
24385
24385
  }
24386
- function TD(t, e, n) {
24386
+ function TE(t, e, n) {
24387
24387
  const r = parseInt(oi(t.dom, "paddingLeft"), 10), i = parseInt(oi(t.dom, "paddingRight"), 10), o = parseInt(oi(t.dom, "borderLeftWidth"), 10), s = parseInt(oi(t.dom, "borderLeftWidth"), 10), a = t.dom.getBoundingClientRect();
24388
24388
  return {
24389
- left: AD(e, a.left + r + o, a.right - i - s),
24389
+ left: AE(e, a.left + r + o, a.right - i - s),
24390
24390
  top: n
24391
24391
  };
24392
24392
  }
@@ -24394,7 +24394,7 @@ function yp(t) {
24394
24394
  var e;
24395
24395
  (e = t.parentNode) === null || e === void 0 || e.removeChild(t);
24396
24396
  }
24397
- function DD(t, e) {
24397
+ function EE(t, e) {
24398
24398
  const { doc: n } = e.view.state, r = xp({
24399
24399
  editor: e,
24400
24400
  x: t.clientX,
@@ -24403,7 +24403,7 @@ function DD(t, e) {
24403
24403
  });
24404
24404
  if (!r.resultNode || r.pos === null)
24405
24405
  return [];
24406
- const i = t.clientX, o = TD(e.view, i, t.clientY), s = e.view.posAtCoords(o);
24406
+ const i = t.clientX, o = TE(e.view, i, t.clientY), s = e.view.posAtCoords(o);
24407
24407
  if (!s)
24408
24408
  return [];
24409
24409
  const { pos: a } = s;
@@ -24412,20 +24412,20 @@ function DD(t, e) {
24412
24412
  const d = n.resolve(r.pos), f = n.resolve(r.pos + 1);
24413
24413
  return Ao(d, f, 0);
24414
24414
  }
24415
- function ED(t, e) {
24415
+ function DE(t, e) {
24416
24416
  const { view: n } = e;
24417
24417
  if (!t.dataTransfer)
24418
24418
  return;
24419
- const { empty: r, $from: i, $to: o } = n.state.selection, s = DD(t, e), a = Ao(i, o, 0), c = a.some((v) => s.find((x) => x.$from === v.$from && x.$to === v.$to)), d = r || !c ? s : a;
24419
+ const { empty: r, $from: i, $to: o } = n.state.selection, s = EE(t, e), a = Ao(i, o, 0), c = a.some((v) => s.find((x) => x.$from === v.$from && x.$to === v.$to)), d = r || !c ? s : a;
24420
24420
  if (!d.length)
24421
24421
  return;
24422
24422
  const { tr: f } = n.state, u = document.createElement("div"), h = d[0].$from.pos, m = d[d.length - 1].$to.pos, p = Le.create(n.state.doc, h, m), b = p.content();
24423
24423
  d.forEach((v) => {
24424
- const x = n.nodeDOM(v.$from.pos), w = ID(x);
24424
+ const x = n.nodeDOM(v.$from.pos), w = IE(x);
24425
24425
  u.append(w);
24426
24426
  }), u.style.position = "absolute", u.style.top = "-10000px", document.body.append(u), t.dataTransfer.clearData(), t.dataTransfer.setDragImage(u, 0, 0), n.dragging = { slice: b, move: !0 }, f.setSelection(p), n.dispatch(f), document.addEventListener("drop", () => yp(u), { once: !0 });
24427
24427
  }
24428
- const Ed = (t, e) => {
24428
+ const Dd = (t, e) => {
24429
24429
  const n = t.resolve(e), { depth: r } = n;
24430
24430
  return r === 0 ? e : n.pos - n.parentOffset - 1;
24431
24431
  }, _d = (t, e) => {
@@ -24439,7 +24439,7 @@ const Ed = (t, e) => {
24439
24439
  }, as = (t, e) => {
24440
24440
  const n = xe.getState(t);
24441
24441
  return n ? ol(e, n.type, n.binding.mapping) : null;
24442
- }, _D = (t, e) => {
24442
+ }, _E = (t, e) => {
24443
24443
  const n = xe.getState(t);
24444
24444
  return n ? xi(n.doc, n.type, e, n.binding.mapping) || 0 : -1;
24445
24445
  }, Ld = (t, e) => {
@@ -24451,7 +24451,7 @@ const Ed = (t, e) => {
24451
24451
  const o = document.createElement("div");
24452
24452
  let s = null, a = !1, c = null, d = -1, f;
24453
24453
  return e.addEventListener("dragstart", (u) => {
24454
- ED(u, n), setTimeout(() => {
24454
+ DE(u, n), setTimeout(() => {
24455
24455
  e && (e.style.pointerEvents = "none");
24456
24456
  }, 0);
24457
24457
  }), e.addEventListener("dragend", () => {
@@ -24467,8 +24467,8 @@ const Ed = (t, e) => {
24467
24467
  if (b !== void 0 && (a = b), v && s)
24468
24468
  return s.hide(), a = !1, c = null, d = -1, i?.({ editor: n, node: null, pos: -1 }), h;
24469
24469
  if (u.docChanged && d !== -1 && e && s)
24470
- if (ND(u)) {
24471
- const x = _D(p, f);
24470
+ if (NE(u)) {
24471
+ const x = _E(p, f);
24472
24472
  x !== d && (d = x);
24473
24473
  } else {
24474
24474
  const x = u.mapping.map(d);
@@ -24487,7 +24487,7 @@ const Ed = (t, e) => {
24487
24487
  s?.destroy(), s = null;
24488
24488
  return;
24489
24489
  }
24490
- if (s || (s = uv(u.dom, {
24490
+ if (s || (s = mv(u.dom, {
24491
24491
  getReferenceClientRect: null,
24492
24492
  interactive: !0,
24493
24493
  trigger: "manual",
@@ -24514,7 +24514,7 @@ const Ed = (t, e) => {
24514
24514
  let b = u.nodeDOM(d);
24515
24515
  if (b = Ld(u, b), b === u.dom || b?.nodeType !== 1)
24516
24516
  return;
24517
- const v = u.posAtDOM(b, 0), x = _d(n.state.doc, v), w = Ed(n.state.doc, v);
24517
+ const v = u.posAtDOM(b, 0), x = _d(n.state.doc, v), w = Dd(n.state.doc, v);
24518
24518
  c = x, d = w, f = as(u.state, d), i?.({ editor: n, node: c, pos: d }), s.setProps({
24519
24519
  getReferenceClientRect: () => b.getBoundingClientRect()
24520
24520
  });
@@ -24546,7 +24546,7 @@ const Ed = (t, e) => {
24546
24546
  return !1;
24547
24547
  const b = u.posAtDOM(p, 0), v = _d(n.state.doc, b);
24548
24548
  if (v !== c) {
24549
- const x = Ed(n.state.doc, b);
24549
+ const x = Dd(n.state.doc, b);
24550
24550
  c = v, d = x, f = as(u.state, d), i?.({ editor: n, node: c, pos: d }), s.setProps({
24551
24551
  getReferenceClientRect: () => p.getBoundingClientRect()
24552
24552
  }), s.show();
@@ -24589,7 +24589,7 @@ mn.create({
24589
24589
  ];
24590
24590
  }
24591
24591
  });
24592
- const LD = (t) => {
24592
+ const LE = (t) => {
24593
24593
  const { className: e = "drag-handle", children: n, editor: r, pluginKey: i = wp, onNodeChange: o, tippyOptions: s } = t, [a, c] = F(null), d = W(null);
24594
24594
  return V(() => a ? r.isDestroyed ? () => {
24595
24595
  d.current = null;
@@ -24604,13 +24604,13 @@ const LD = (t) => {
24604
24604
  }) : () => {
24605
24605
  d.current = null;
24606
24606
  }, [a, r, o, i, s]), Q.createElement("div", { className: e, ref: c }, n);
24607
- }, OD = ({ placeholder: t, translations: e, aiBlockConfig: n, imageUploadConfig: r }) => [Fu, Mu, Pu, zu, $u, ju, Bu, Hu, Vu, cf, uf, df, Qy, Rk, $k, kk.configure({
24607
+ }, OE = ({ placeholder: t, translations: e, aiBlockConfig: n, imageUploadConfig: r }) => [Mu, Pu, zu, $u, ju, Bu, Hu, Vu, Wu, cf, uf, df, Qy, Rk, $k, kk.configure({
24608
24608
  currentConfig: n
24609
- }), Ek, ...r ? [_k(r)] : [], Ck, fv, hv(t), mv(t), Mk({
24609
+ }), Dk, ...r ? [_k(r)] : [], Ck, pv, gv(t), bv(t), Mk({
24610
24610
  aiBlockConfig: n,
24611
24611
  translations: e,
24612
24612
  imageUploadConfig: r
24613
- })], RD = St({
24613
+ })], RE = St({
24614
24614
  base: "flex flex-row items-center justify-center gap-2 p-3",
24615
24615
  variants: {
24616
24616
  variant: {
@@ -24624,8 +24624,8 @@ const LD = (t) => {
24624
24624
  defaultVariants: {
24625
24625
  variant: "info"
24626
24626
  }
24627
- }), Od = (t) => t.isVisible !== !1, FD = (t) => "isVisible" in t ? t.isVisible !== !1 : !0, MD = (t) => !!t && "items" in t, PD = (t) => !!t && "label" in t && !("items" in t), zD = ({ primaryAction: t, secondaryActions: e = [], metadata: n, otherActions: r = [], banner: i }) => {
24628
- const o = e.filter(Od), s = r.filter(FD), a = t && Od(t), c = o.length > 0, d = s.length > 0, f = c || d || a;
24627
+ }), Od = (t) => t.isVisible !== !1, FE = (t) => "isVisible" in t ? t.isVisible !== !1 : !0, ME = (t) => !!t && "items" in t, PE = (t) => !!t && "label" in t && !("items" in t), zE = ({ primaryAction: t, secondaryActions: e = [], metadata: n, otherActions: r = [], banner: i }) => {
24628
+ const o = e.filter(Od), s = r.filter(FE), a = t && Od(t), c = o.length > 0, d = s.length > 0, f = c || d || a;
24629
24629
  return g("div", {
24630
24630
  className: "flex flex-col",
24631
24631
  children: [(n && n.length > 0 || f) && g("div", {
@@ -24646,14 +24646,14 @@ const LD = (t) => {
24646
24646
  tooltip: u.tooltip
24647
24647
  }, h)), a && (c || d) && l("div", {
24648
24648
  className: "mx-1 h-4 w-px bg-f1-background-secondary-hover"
24649
- }), a && PD(t) && l(j, {
24649
+ }), a && PE(t) && l(j, {
24650
24650
  label: t.label,
24651
24651
  onClick: t.onClick,
24652
24652
  variant: "default",
24653
24653
  icon: t.icon,
24654
24654
  disabled: t.disabled,
24655
24655
  tooltip: t.tooltip
24656
- }), a && MD(t) && l(sn, {
24656
+ }), a && ME(t) && l(sn, {
24657
24657
  items: t.items,
24658
24658
  onClick: t.onClick,
24659
24659
  variant: "default",
@@ -24663,7 +24663,7 @@ const LD = (t) => {
24663
24663
  })]
24664
24664
  })]
24665
24665
  }), i && g("div", {
24666
- className: RD({
24666
+ className: RE({
24667
24667
  variant: i.variant
24668
24668
  }),
24669
24669
  children: [l(q, {
@@ -24673,7 +24673,7 @@ const LD = (t) => {
24673
24673
  })]
24674
24674
  })]
24675
24675
  });
24676
- }, $D = ({ value: t, onChange: e, placeholder: n, disabled: r = !1 }) => l("div", {
24676
+ }, $E = ({ value: t, onChange: e, placeholder: n, disabled: r = !1 }) => l("div", {
24677
24677
  className: "mx-auto flex w-full max-w-[824px] flex-col pb-4 pt-5 transition-all duration-300 sm:px-14 px-0",
24678
24678
  children: l("textarea", {
24679
24679
  ref: (s) => {
@@ -24693,7 +24693,7 @@ const LD = (t) => {
24693
24693
  rows: 1
24694
24694
  })
24695
24695
  }), Y_ = J(function({ onChange: e, placeholder: n, initialEditorState: r, readonly: i = !1, aiBlockConfig: o, imageUploadConfig: s, onTitleChange: a, primaryAction: c, secondaryActions: d, otherActions: f, metadata: u, banner: h, showBubbleMenu: m = !1, titlePlaceholder: p }, b) {
24696
- const v = X(), x = W(null), w = W(null), y = Nl(), [D] = F(() => r?.content || ""), [S, k] = F(r?.title || ""), [I, T] = F(null), E = ($) => {
24696
+ const v = X(), x = W(null), w = W(null), y = Nl(), [E] = F(() => r?.content || ""), [S, k] = F(r?.title || ""), [I, T] = F(null), D = ($) => {
24697
24697
  switch ($) {
24698
24698
  case "file-too-large":
24699
24699
  return v.imageUpload.errors.fileTooLarge;
@@ -24708,8 +24708,8 @@ const LD = (t) => {
24708
24708
  V(() => {
24709
24709
  a && a(S);
24710
24710
  }, [S, a]);
24711
- const N = pv({
24712
- extensions: OD({
24711
+ const N = vv({
24712
+ extensions: OE({
24713
24713
  placeholder: n,
24714
24714
  translations: v,
24715
24715
  aiBlockConfig: o,
@@ -24720,7 +24720,7 @@ const LD = (t) => {
24720
24720
  }
24721
24721
  } : void 0
24722
24722
  }),
24723
- content: D,
24723
+ content: E,
24724
24724
  onUpdate: ({ editor: $ }) => {
24725
24725
  e($.isEmpty ? {
24726
24726
  json: null,
@@ -24732,7 +24732,7 @@ const LD = (t) => {
24732
24732
  },
24733
24733
  editable: !i
24734
24734
  });
24735
- Au(b, () => ({
24735
+ Tu(b, () => ({
24736
24736
  clear: () => N?.commands.clearContent(),
24737
24737
  focus: () => N?.commands.focus(),
24738
24738
  setContent: ($) => N?.commands.setContent($),
@@ -24802,7 +24802,7 @@ const LD = (t) => {
24802
24802
  className: "relative flex h-full w-full flex-col",
24803
24803
  ref: x,
24804
24804
  id: y,
24805
- children: [O && l(zD, {
24805
+ children: [O && l(zE, {
24806
24806
  primaryAction: c,
24807
24807
  secondaryActions: d,
24808
24808
  metadata: u,
@@ -24822,8 +24822,8 @@ const LD = (t) => {
24822
24822
  })
24823
24823
  }), l("p", {
24824
24824
  className: "w-full max-w-xl flex-grow truncate text-ellipsis text-sm font-semibold text-f1-foreground-critical",
24825
- title: E(I),
24826
- children: E(I)
24825
+ title: D(I),
24826
+ children: D(I)
24827
24827
  })]
24828
24828
  }), l("div", {
24829
24829
  className: "flex-shrink-0",
@@ -24837,7 +24837,7 @@ const LD = (t) => {
24837
24837
  })
24838
24838
  }), !i && !m && l("div", {
24839
24839
  className: "absolute bottom-8 left-1/2 z-50 max-w-[calc(100%-48px)] -translate-x-1/2 rounded-lg border border-solid border-f1-border-secondary bg-f1-background p-2 shadow-md",
24840
- children: l(gv, {
24840
+ children: l(xv, {
24841
24841
  editor: N,
24842
24842
  disableButtons: !1,
24843
24843
  showEmojiPicker: !1,
@@ -24845,7 +24845,7 @@ const LD = (t) => {
24845
24845
  })
24846
24846
  }), g(Nt, {
24847
24847
  className: "h-full gap-6",
24848
- children: [R && l($D, {
24848
+ children: [R && l($E, {
24849
24849
  value: S,
24850
24850
  onChange: a ? k : void 0,
24851
24851
  placeholder: p,
@@ -24853,7 +24853,7 @@ const LD = (t) => {
24853
24853
  }), g("div", {
24854
24854
  className: "notes-text-editor h-full",
24855
24855
  onClick: () => N.commands.focus(),
24856
- children: [!i && l(LD, {
24856
+ children: [!i && l(LE, {
24857
24857
  editor: N,
24858
24858
  tippyOptions: _,
24859
24859
  onNodeChange: A,
@@ -24873,17 +24873,17 @@ const LD = (t) => {
24873
24873
  draggable: !0,
24874
24874
  "data-drag-handle": !0,
24875
24875
  children: l(q, {
24876
- icon: Er,
24876
+ icon: Dr,
24877
24877
  size: "xs"
24878
24878
  })
24879
24879
  })]
24880
24880
  })
24881
- }), l(bv, {
24881
+ }), l(yv, {
24882
24882
  editor: N,
24883
24883
  className: "pb-28 [&>div]:mx-auto [&>div]:w-full [&>div]:max-w-[824px] [&>div]:transition-[padding] [&>div]:duration-300 sm:[&>div]:px-14 [&>div]:px-0"
24884
24884
  })]
24885
24885
  })]
24886
- }), !i && l(vv, {
24886
+ }), !i && l(wv, {
24887
24887
  editorId: y,
24888
24888
  editor: N,
24889
24889
  disableButtons: !1,
@@ -25005,7 +25005,7 @@ const LD = (t) => {
25005
25005
  md: "gap-2",
25006
25006
  lg: "gap-3",
25007
25007
  xl: "gap-4"
25008
- }, jD = St({
25008
+ }, jE = St({
25009
25009
  base: "grid grid-cols-1",
25010
25010
  variants: {
25011
25011
  tileSize: {
@@ -25021,13 +25021,13 @@ const LD = (t) => {
25021
25021
  tileSize: "md",
25022
25022
  gap: "4"
25023
25023
  }
25024
- }), BD = Q.forwardRef(function({ className: e, gap: n, children: r, tileSize: i, ...o }, s) {
25024
+ }), BE = Q.forwardRef(function({ className: e, gap: n, children: r, tileSize: i, ...o }, s) {
25025
25025
  return l("div", {
25026
25026
  className: C("@container", "grow"),
25027
25027
  ref: s,
25028
25028
  ...o,
25029
25029
  children: l("div", {
25030
- className: C(jD({
25030
+ className: C(jE({
25031
25031
  gap: n,
25032
25032
  tileSize: i
25033
25033
  }), e),
@@ -25036,7 +25036,7 @@ const LD = (t) => {
25036
25036
  children: r
25037
25037
  })
25038
25038
  });
25039
- }), HD = St({
25039
+ }), HE = St({
25040
25040
  base: "flex",
25041
25041
  variants: {
25042
25042
  overflow: {
@@ -25115,7 +25115,7 @@ const LD = (t) => {
25115
25115
  }
25116
25116
  }), Cp = J(function({ className: e, grow: n, basis: r, shrink: i, paddingX: o, paddingY: s, inline: a, overflow: c, maxWidth: d, justifyContent: f, alignItems: u, height: h, width: m, ...p }, b) {
25117
25117
  return l("div", {
25118
- className: C(HD({
25118
+ className: C(HE({
25119
25119
  paddingX: o,
25120
25120
  basis: r,
25121
25121
  paddingY: s,
@@ -25132,7 +25132,7 @@ const LD = (t) => {
25132
25132
  ref: b,
25133
25133
  ...p
25134
25134
  });
25135
- }), VD = St({
25135
+ }), VE = St({
25136
25136
  base: "flex-row",
25137
25137
  variants: {
25138
25138
  gap: {
@@ -25145,16 +25145,16 @@ const LD = (t) => {
25145
25145
  defaultVariants: {
25146
25146
  wrap: !0
25147
25147
  }
25148
- }), WD = Q.forwardRef(function({ className: e, gap: n, wrap: r, ...i }, o) {
25148
+ }), WE = Q.forwardRef(function({ className: e, gap: n, wrap: r, ...i }, o) {
25149
25149
  return l(Cp, {
25150
- className: C(VD({
25150
+ className: C(VE({
25151
25151
  gap: n,
25152
25152
  wrap: r
25153
25153
  }), e),
25154
25154
  ref: o,
25155
25155
  ...i
25156
25156
  });
25157
- }), UD = St({
25157
+ }), UE = St({
25158
25158
  base: "flex-col",
25159
25159
  variants: {
25160
25160
  gap: {
@@ -25162,9 +25162,9 @@ const LD = (t) => {
25162
25162
  }
25163
25163
  },
25164
25164
  defaultVariants: {}
25165
- }), GD = J(function({ className: e, gap: n, children: r, ...i }, o) {
25165
+ }), GE = J(function({ className: e, gap: n, children: r, ...i }, o) {
25166
25166
  return l(Cp, {
25167
- className: C(UD({
25167
+ className: C(UE({
25168
25168
  gap: n
25169
25169
  }), e),
25170
25170
  ref: o,
@@ -25174,14 +25174,14 @@ const LD = (t) => {
25174
25174
  }), X_ = pt({
25175
25175
  name: "Stack",
25176
25176
  type: "layout"
25177
- }, GD), Z_ = pt({
25177
+ }, GE), Z_ = pt({
25178
25178
  name: "Split",
25179
25179
  type: "layout"
25180
- }, WD), eL = pt({
25180
+ }, WE), eL = pt({
25181
25181
  name: "AutoGrid",
25182
25182
  type: "layout"
25183
- }, BD), qD = ({ children: t }) => {
25184
- const { enabled: e } = Ku();
25183
+ }, BE), qE = ({ children: t }) => {
25184
+ const { enabled: e } = Ju();
25185
25185
  return l("div", {
25186
25186
  className: C("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"),
25187
25187
  "aria-hidden": e,
@@ -25197,10 +25197,10 @@ const LD = (t) => {
25197
25197
  children: t
25198
25198
  })
25199
25199
  });
25200
- }, KD = () => l("div", {
25200
+ }, KE = () => l("div", {
25201
25201
  className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary"
25202
- }), JD = J(function({ header: e, children: n, action: r, summaries: i, alert: o, status: s, fullHeight: a = !1 }, c) {
25203
- const { enabled: d, toggle: f } = Ku();
25202
+ }), JE = J(function({ header: e, children: n, action: r, summaries: i, alert: o, status: s, fullHeight: a = !1 }, c) {
25203
+ const { enabled: d, toggle: f } = Ju();
25204
25204
  V(() => {
25205
25205
  if (o && s)
25206
25206
  throw Error("You cannot pass both alert and status at the same time to this component");
@@ -25208,10 +25208,10 @@ const LD = (t) => {
25208
25208
  const u = (m) => !!m && !(Q.isValidElement(m) && m.type === Q.Fragment && Q.Children.count(m.props.children) === 0), h = () => {
25209
25209
  e?.link?.onClick?.();
25210
25210
  };
25211
- return g(no, {
25211
+ return g(Zi, {
25212
25212
  className: C(a ? "h-full" : "", "relative flex gap-3 border-f1-border-secondary"),
25213
25213
  ref: c,
25214
- children: [e && l(ro, {
25214
+ children: [e && l(eo, {
25215
25215
  className: "-mr-1 -mt-1",
25216
25216
  children: g("div", {
25217
25217
  className: "flex w-full flex-1 flex-col gap-4",
@@ -25219,12 +25219,12 @@ const LD = (t) => {
25219
25219
  className: "flex flex-1 flex-row flex-nowrap items-center justify-between gap-2",
25220
25220
  children: [g("div", {
25221
25221
  className: "flex min-h-6 grow flex-row items-center gap-1 truncate",
25222
- children: [e.title && l(io, {
25222
+ children: [e.title && l(to, {
25223
25223
  className: "truncate",
25224
25224
  children: e.title
25225
25225
  }), e.subtitle && g("div", {
25226
25226
  className: "flex flex-row items-center gap-1",
25227
- children: [l(KD, {}), l(Ju, {
25227
+ children: [l(KE, {}), l(Iu, {
25228
25228
  className: "truncate",
25229
25229
  children: e.subtitle
25230
25230
  })]
@@ -25249,7 +25249,7 @@ const LD = (t) => {
25249
25249
  }), s && l(Fn, {
25250
25250
  text: s.text,
25251
25251
  variant: s.variant
25252
- }), e.link && l(xv, {
25252
+ }), e.link && l(Bb, {
25253
25253
  onClick: h,
25254
25254
  href: e.link.url,
25255
25255
  title: e.link.title,
@@ -25258,13 +25258,13 @@ const LD = (t) => {
25258
25258
  })]
25259
25259
  }), e.comment && g("div", {
25260
25260
  className: "flex flex-row items-center gap-3 overflow-visible",
25261
- children: [l(qD, {
25262
- children: l(yv, {
25261
+ children: [l(qE, {
25262
+ children: l(Hb, {
25263
25263
  children: e.comment
25264
25264
  })
25265
25265
  }), !!e.canBeBlurred && l("span", {
25266
25266
  children: l(j, {
25267
- icon: d ? Bb : Hb,
25267
+ icon: d ? Vb : Wb,
25268
25268
  hideLabel: !0,
25269
25269
  label: "hide/show",
25270
25270
  variant: "outline",
@@ -25274,7 +25274,7 @@ const LD = (t) => {
25274
25274
  })]
25275
25275
  })]
25276
25276
  })
25277
- }), g(oo, {
25277
+ }), g(no, {
25278
25278
  className: "flex h-full flex-col gap-4",
25279
25279
  children: [i && l("div", {
25280
25280
  className: "flex flex-row",
@@ -25295,11 +25295,11 @@ const LD = (t) => {
25295
25295
  })]
25296
25296
  }, p))
25297
25297
  }), Q.Children.toArray(n).filter(u).map((m, p) => g(Q.Fragment, {
25298
- children: [p > 0 && l(wv, {
25298
+ children: [p > 0 && l(kv, {
25299
25299
  bare: !0
25300
25300
  }), m]
25301
25301
  }, p))]
25302
- }), r && l(kv, {
25302
+ }), r && l(Ub, {
25303
25303
  children: l(j, {
25304
25304
  variant: "neutral",
25305
25305
  size: "sm",
@@ -25307,7 +25307,7 @@ const LD = (t) => {
25307
25307
  })
25308
25308
  })]
25309
25309
  });
25310
- }), YD = St({
25310
+ }), YE = St({
25311
25311
  variants: {
25312
25312
  height: {
25313
25313
  sm: "h-36",
@@ -25315,28 +25315,28 @@ const LD = (t) => {
25315
25315
  lg: "h-60"
25316
25316
  }
25317
25317
  }
25318
- }), QD = J(function({ header: e, height: n }, r) {
25319
- return g(no, {
25318
+ }), QE = J(function({ header: e, height: n }, r) {
25319
+ return g(Zi, {
25320
25320
  className: C("flex gap-4 border-f1-border-secondary", n === "full" && "h-full"),
25321
25321
  ref: r,
25322
25322
  "aria-live": "polite",
25323
25323
  "aria-busy": !0,
25324
- children: [l(ro, {
25324
+ children: [l(eo, {
25325
25325
  className: "-mr-1 -mt-1",
25326
25326
  children: g("div", {
25327
25327
  className: "flex h-6 w-full flex-row items-center gap-1.5",
25328
25328
  "aria-hidden": !0,
25329
- children: [e?.title ? l(io, {
25329
+ children: [e?.title ? l(to, {
25330
25330
  children: e.title
25331
25331
  }) : l(M, {
25332
25332
  className: "h-4 w-full max-w-16"
25333
- }), e?.subtitle && l(Ju, {
25333
+ }), e?.subtitle && l(Iu, {
25334
25334
  children: e.subtitle
25335
25335
  })]
25336
25336
  })
25337
- }), l(oo, {
25337
+ }), l(no, {
25338
25338
  "aria-hidden": !0,
25339
- className: C(n !== "full" && YD({
25339
+ className: C(n !== "full" && YE({
25340
25340
  height: n
25341
25341
  })),
25342
25342
  children: [...Array(4)].map((i, o) => l(M, {
@@ -25344,7 +25344,7 @@ const LD = (t) => {
25344
25344
  }, o))
25345
25345
  })]
25346
25346
  });
25347
- }), Ln = se("Widget", Ne(JD, QD)), tt = Object.assign(J(function({ chart: e, summaries: n, ...r }, i) {
25347
+ }), Ln = se("Widget", Ne(JE, QE)), tt = Object.assign(J(function({ chart: e, summaries: n, ...r }, i) {
25348
25348
  return l(Ln, {
25349
25349
  ref: i,
25350
25350
  ...r,
@@ -25356,7 +25356,7 @@ const LD = (t) => {
25356
25356
  });
25357
25357
  }), {
25358
25358
  Skeleton: Ln.Skeleton
25359
- }), XD = Ne(J(function({ canBeBlurred: e, ...n }, r) {
25359
+ }), XE = Ne(J(function({ canBeBlurred: e, ...n }, r) {
25360
25360
  const i = {
25361
25361
  ...n,
25362
25362
  header: {
@@ -25379,7 +25379,7 @@ const LD = (t) => {
25379
25379
  canBeBlurred: e
25380
25380
  })
25381
25381
  });
25382
- }), tt.Skeleton), ZD = se("AreaChartWidget", XD), eE = J(function(e, n) {
25382
+ }), tt.Skeleton), ZE = se("AreaChartWidget", XE), eD = J(function(e, n) {
25383
25383
  return l(tt, {
25384
25384
  ref: n,
25385
25385
  ...e,
@@ -25390,7 +25390,7 @@ const LD = (t) => {
25390
25390
  ...e.chart
25391
25391
  })
25392
25392
  });
25393
- }), tE = se("BarChartWidget", Ne(eE, tt.Skeleton)), nE = Ne(J(function(e, n) {
25393
+ }), tD = se("BarChartWidget", Ne(eD, tt.Skeleton)), nD = Ne(J(function(e, n) {
25394
25394
  return l(tt, {
25395
25395
  ref: n,
25396
25396
  ...e,
@@ -25401,7 +25401,7 @@ const LD = (t) => {
25401
25401
  ...e.chart
25402
25402
  })
25403
25403
  });
25404
- }), tt.Skeleton), rE = se("LineChartWidget", nE), iE = Ne(J(function(e, n) {
25404
+ }), tt.Skeleton), rD = se("LineChartWidget", nD), iD = Ne(J(function(e, n) {
25405
25405
  return l(tt, {
25406
25406
  ref: n,
25407
25407
  ...e,
@@ -25409,13 +25409,13 @@ const LD = (t) => {
25409
25409
  ...e.chart
25410
25410
  })
25411
25411
  });
25412
- }), tt.Skeleton), oE = se("PieChartWidget", iE), sE = Ne(J(function(e, n) {
25412
+ }), tt.Skeleton), oD = se("PieChartWidget", iD), sD = Ne(J(function(e, n) {
25413
25413
  return l(tt, {
25414
25414
  ref: n,
25415
25415
  ...e,
25416
25416
  chart: null
25417
25417
  });
25418
- }), tt.Skeleton), lE = se("SummariesWidget", sE), aE = Ne(J(function(e, n) {
25418
+ }), tt.Skeleton), lD = se("SummariesWidget", sD), aD = Ne(J(function(e, n) {
25419
25419
  return l(tt, {
25420
25420
  ref: n,
25421
25421
  ...e,
@@ -25426,25 +25426,25 @@ const LD = (t) => {
25426
25426
  ...e.chart
25427
25427
  })
25428
25428
  });
25429
- }), tt.Skeleton), cE = se("VerticalBarChartWidget", aE), tL = pt({
25429
+ }), tt.Skeleton), cD = se("VerticalBarChartWidget", aD), tL = pt({
25430
25430
  name: "AreaChartWidget",
25431
25431
  type: "info"
25432
- }, ZD), nL = pt({
25432
+ }, ZE), nL = pt({
25433
25433
  name: "BarChartWidget",
25434
25434
  type: "info"
25435
- }, tE), rL = pt({
25435
+ }, tD), rL = pt({
25436
25436
  name: "LineChartWidget",
25437
25437
  type: "info"
25438
- }, rE), iL = pt({
25438
+ }, rD), iL = pt({
25439
25439
  name: "PieChartWidget",
25440
25440
  type: "info"
25441
- }, oE), oL = pt({
25441
+ }, oD), oL = pt({
25442
25442
  name: "VerticalBarChartWidget",
25443
25443
  type: "info"
25444
- }, cE), sL = pt({
25444
+ }, cD), sL = pt({
25445
25445
  name: "SummariesWidget",
25446
25446
  type: "info"
25447
- }, lE), dE = (t, e) => g("svg", {
25447
+ }, lD), dD = (t, e) => g("svg", {
25448
25448
  width: "366",
25449
25449
  height: "146",
25450
25450
  viewBox: "0 0 366 146",
@@ -25628,7 +25628,7 @@ const LD = (t) => {
25628
25628
  })]
25629
25629
  })]
25630
25630
  })]
25631
- }), uE = J(dE), fE = (t, e) => g("svg", {
25631
+ }), uD = J(dD), fD = (t, e) => g("svg", {
25632
25632
  width: "406",
25633
25633
  height: "179",
25634
25634
  viewBox: "0 0 406 179",
@@ -25663,38 +25663,38 @@ const LD = (t) => {
25663
25663
  })]
25664
25664
  })
25665
25665
  })]
25666
- }), hE = J(fE), mE = {
25666
+ }), hD = J(fD), mD = {
25667
25667
  "line-chart": "border-f1-border",
25668
25668
  "bar-chart": "border-f1-border-promote"
25669
- }, pE = {
25669
+ }, pD = {
25670
25670
  "line-chart": "min-h-48",
25671
25671
  "bar-chart": "min-h-64"
25672
- }, gE = {
25672
+ }, gD = {
25673
25673
  "line-chart": "from-f1-background-accent",
25674
25674
  "bar-chart": "from-f1-background-promote"
25675
- }, bE = {
25675
+ }, bD = {
25676
25676
  "line-chart": "default",
25677
25677
  "bar-chart": "promote"
25678
- }, vE = J(function({ title: e, content: n, buttonLabel: r, buttonIcon: i, buttonAction: o, type: s }, a) {
25679
- const c = mE[s], d = pE[s], f = gE[s], u = bE[s];
25680
- return g(no, {
25678
+ }, vD = J(function({ title: e, content: n, buttonLabel: r, buttonIcon: i, buttonAction: o, type: s }, a) {
25679
+ const c = mD[s], d = pD[s], f = gD[s], u = bD[s];
25680
+ return g(Zi, {
25681
25681
  className: C("relative flex gap-4 overflow-hidden border-dashed", c),
25682
25682
  ref: a,
25683
- children: [l(ro, {
25683
+ children: [l(eo, {
25684
25684
  className: "-mt-0.5",
25685
- children: l(io, {
25685
+ children: l(to, {
25686
25686
  children: e
25687
25687
  })
25688
- }), g(oo, {
25688
+ }), g(no, {
25689
25689
  className: C("flex flex-col gap-4", d),
25690
25690
  children: [g("div", {
25691
25691
  className: C("absolute -top-12 bottom-0 left-0 right-0 flex flex-col justify-end bg-gradient-to-b to-transparent opacity-30", f),
25692
25692
  children: [s === "bar-chart" && l("div", {
25693
25693
  className: "absolute bottom-1 left-4 right-4",
25694
- children: l(uE, {
25694
+ children: l(uD, {
25695
25695
  className: "w-full"
25696
25696
  })
25697
- }), s === "line-chart" && l(hE, {
25697
+ }), s === "line-chart" && l(hD, {
25698
25698
  className: "w-full"
25699
25699
  })]
25700
25700
  }), g("div", {
@@ -25711,8 +25711,8 @@ const LD = (t) => {
25711
25711
  })]
25712
25712
  })]
25713
25713
  });
25714
- }), lL = se("ChartWidgetEmptyState", vE);
25715
- function xE(t, e) {
25714
+ }), lL = se("ChartWidgetEmptyState", vD);
25715
+ function xD(t, e) {
25716
25716
  const n = W(null), r = W(null), [i, o] = F({
25717
25717
  visibleItems: [],
25718
25718
  overflowItems: []
@@ -25760,7 +25760,7 @@ function xE(t, e) {
25760
25760
  };
25761
25761
  }
25762
25762
  const To = function({ items: e, renderListItem: n, className: r, gap: i = 0, minSize: o, onVisibleItemsChange: s }) {
25763
- const { containerRef: a, measurementContainerRef: c, visibleItems: d } = xE(e, i);
25763
+ const { containerRef: a, measurementContainerRef: c, visibleItems: d } = xD(e, i);
25764
25764
  return V(() => {
25765
25765
  s?.(d);
25766
25766
  }, [s, d]), g("div", {
@@ -25804,7 +25804,7 @@ const aL = ({ events: t, showAllItems: e, gap: n = 8, minSize: r = 184 }) => t.l
25804
25804
  renderListItem: (i) => l(Ps, {
25805
25805
  ...i
25806
25806
  }, i.title)
25807
- }) : null, yE = ({ onClick: t, children: e }) => {
25807
+ }) : null, yD = ({ onClick: t, children: e }) => {
25808
25808
  const n = "block rounded-lg border border-solid border-transparent p-[1px] -m-1";
25809
25809
  return t ? l("a", {
25810
25810
  className: C(n, "cursor-pointer focus:border-f1-background-selected-bold focus:outline-none"),
@@ -25818,7 +25818,7 @@ const aL = ({ events: t, showAllItems: e, gap: n = 8, minSize: r = 184 }) => t.l
25818
25818
  });
25819
25819
  };
25820
25820
  function cL({ label: t, count: e, icon: n, iconClassName: r, onClick: i }) {
25821
- return l(yE, {
25821
+ return l(yD, {
25822
25822
  onClick: i,
25823
25823
  children: g("div", {
25824
25824
  className: C("flex flex-col gap-0.5 rounded-md border border-solid border-f1-border-secondary px-3 py-2.5", i && "hover:border-f1-border-hover"),
@@ -25839,7 +25839,7 @@ function cL({ label: t, count: e, icon: n, iconClassName: r, onClick: i }) {
25839
25839
  })
25840
25840
  });
25841
25841
  }
25842
- const wE = J(function({ content: e, label: n, color: r, ...i }, o) {
25842
+ const wD = J(function({ content: e, label: n, color: r, ...i }, o) {
25843
25843
  return g("div", {
25844
25844
  className: "flex flex-col gap-1",
25845
25845
  ref: o,
@@ -25859,7 +25859,7 @@ const wE = J(function({ content: e, label: n, color: r, ...i }, o) {
25859
25859
  })
25860
25860
  }), "emoji" in i && i.emoji && l("span", {
25861
25861
  className: C("flex", r),
25862
- children: l(Dr, {
25862
+ children: l(Er, {
25863
25863
  emoji: i.emoji,
25864
25864
  size: "md"
25865
25865
  })
@@ -25870,14 +25870,14 @@ const wE = J(function({ content: e, label: n, color: r, ...i }, o) {
25870
25870
  return l("div", {
25871
25871
  ref: n,
25872
25872
  className: "grid auto-cols-fr grid-flow-col items-end gap-x-3",
25873
- children: e.map(({ label: r, content: i, color: o, ...s }) => l(wE, {
25873
+ children: e.map(({ label: r, content: i, color: o, ...s }) => l(wD, {
25874
25874
  label: r,
25875
25875
  content: i,
25876
25876
  color: o,
25877
25877
  ...s
25878
25878
  }, `${r}-${i}`))
25879
25879
  });
25880
- }), kE = ({ onClick: t, withEmoji: e, withPointerCursor: n, children: r }) => {
25880
+ }), kD = ({ onClick: t, withEmoji: e, withPointerCursor: n, children: r }) => {
25881
25881
  const i = C("flex flex-row items-center rounded-md border border-solid border-transparent p-2 text-f1-foreground", e ? "gap-2" : "gap-2.5", n ? "cursor-pointer" : "cursor-default", t ? "hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0);
25882
25882
  return t ? l("a", {
25883
25883
  className: i,
@@ -25889,7 +25889,7 @@ const wE = J(function({ content: e, label: n, color: r, ...i }, o) {
25889
25889
  });
25890
25890
  };
25891
25891
  function uL({ id: t, title: e, subtitle: n, avatars: r, remainingCount: i, withPointerCursor: o = !1, onClick: s, ...a }) {
25892
- return g(kE, {
25892
+ return g(kD, {
25893
25893
  onClick: (d) => {
25894
25894
  d.preventDefault(), s?.(t);
25895
25895
  },
@@ -25910,7 +25910,7 @@ function uL({ id: t, title: e, subtitle: n, avatars: r, remainingCount: i, withP
25910
25910
  })]
25911
25911
  }), l("div", {
25912
25912
  className: "min-w-0 flex-1",
25913
- children: l(Dl, {
25913
+ children: l(El, {
25914
25914
  avatars: r,
25915
25915
  remainingCount: i,
25916
25916
  size: "emoji" in a && a.emoji ? "md" : "sm",
@@ -25919,7 +25919,7 @@ function uL({ id: t, title: e, subtitle: n, avatars: r, remainingCount: i, withP
25919
25919
  })]
25920
25920
  });
25921
25921
  }
25922
- const CE = ({ onClick: t, className: e, children: n }) => t ? l("a", {
25922
+ const CD = ({ onClick: t, className: e, children: n }) => t ? l("a", {
25923
25923
  className: e,
25924
25924
  onClick: t,
25925
25925
  tabIndex: 0,
@@ -25931,7 +25931,7 @@ const CE = ({ onClick: t, className: e, children: n }) => t ? l("a", {
25931
25931
  });
25932
25932
  function Rd({ id: t, title: e, subtitle: n, onClick: r, module: i }) {
25933
25933
  const o = C("flex flex-row gap-2 rounded-md border border-solid border-transparent p-2 text-f1-foreground", r ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0);
25934
- return g(CE, {
25934
+ return g(CD, {
25935
25935
  onClick: (a) => {
25936
25936
  a.preventDefault(), r?.(t);
25937
25937
  },
@@ -25951,7 +25951,7 @@ function Rd({ id: t, title: e, subtitle: n, onClick: r, module: i }) {
25951
25951
  })]
25952
25952
  });
25953
25953
  }
25954
- const NE = ({ onClick: t, className: e, children: n }) => t ? l("a", {
25954
+ const ND = ({ onClick: t, className: e, children: n }) => t ? l("a", {
25955
25955
  className: e,
25956
25956
  onClick: t,
25957
25957
  tabIndex: 0,
@@ -25963,7 +25963,7 @@ const NE = ({ onClick: t, className: e, children: n }) => t ? l("a", {
25963
25963
  });
25964
25964
  function sl({ id: t, title: e, alert: n, rawTag: r, count: i, icon: o, rightIcon: s, iconClassName: a = "text-f1-icon-secondary", rightIconClassName: c = "text-f1-icon-secondary", onClick: d }) {
25965
25965
  const f = C("flex flex-row items-start gap-1 rounded-md border border-solid border-transparent px-2 py-1.5 text-f1-foreground", d ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0);
25966
- return g(NE, {
25966
+ return g(ND, {
25967
25967
  onClick: (h) => {
25968
25968
  h.preventDefault(), d?.(t);
25969
25969
  },
@@ -26032,7 +26032,7 @@ function hL({ items: t, gap: e, minSize: n = 184, onClickItem: r, showAllItems:
26032
26032
  minSize: n
26033
26033
  });
26034
26034
  }
26035
- const SE = ({ title: t, info: e }) => g("div", {
26035
+ const SD = ({ title: t, info: e }) => g("div", {
26036
26036
  className: "flex items-center justify-between",
26037
26037
  children: [l("p", {
26038
26038
  className: "flex text-f1-foreground-secondary",
@@ -26065,7 +26065,7 @@ const SE = ({ title: t, info: e }) => g("div", {
26065
26065
  }), n && l("div", {
26066
26066
  children: n
26067
26067
  })]
26068
- }), i.map((s) => l(SE, {
26068
+ }), i.map((s) => l(SD, {
26069
26069
  title: s.title,
26070
26070
  info: s.info
26071
26071
  }, s.title))]
@@ -26098,7 +26098,7 @@ function pL({ title: t, subtitle: e, data: n, helpText: r, legend: i = !1, hideT
26098
26098
  })]
26099
26099
  });
26100
26100
  }
26101
- const Np = (t, e) => ((e ?? 0) < -1 * (t ?? 0) ? -1 * t : e) ?? 0, IE = ({
26101
+ const Np = (t, e) => ((e ?? 0) < -1 * (t ?? 0) ? -1 * t : e) ?? 0, ID = ({
26102
26102
  data: t = [],
26103
26103
  labels: e,
26104
26104
  trackedMinutes: n,
@@ -26123,7 +26123,7 @@ const Np = (t, e) => ((e ?? 0) < -1 * (t ?? 0) ? -1 * t : e) ?? 0, IE = ({
26123
26123
  subtitle: c,
26124
26124
  statusColor: d
26125
26125
  };
26126
- }, cs = "--:--", AE = (t, e) => {
26126
+ }, cs = "--:--", AD = (t, e) => {
26127
26127
  if (t && t > 0)
26128
26128
  return {
26129
26129
  value: t * 60 / e,
@@ -26134,7 +26134,7 @@ const Np = (t, e) => ((e ?? 0) < -1 * (t ?? 0) ? -1 * t : e) ?? 0, IE = ({
26134
26134
  value: 1,
26135
26135
  color: nn.empty
26136
26136
  };
26137
- }, TE = ({
26137
+ }, TD = ({
26138
26138
  data: t = [],
26139
26139
  trackedMinutes: e,
26140
26140
  remainingMinutes: n = 0
@@ -26145,7 +26145,7 @@ const Np = (t, e) => ((e ?? 0) < -1 * (t ?? 0) ? -1 * t : e) ?? 0, IE = ({
26145
26145
  ), o = t.reduce(
26146
26146
  (f, u) => f + (u.to.getTime() - u.from.getTime()) / 1e3,
26147
26147
  0
26148
- ) + (i ?? 0) * 60, s = r || (i ?? 0) < 0 ? void 0 : AE(
26148
+ ) + (i ?? 0) * 60, s = r || (i ?? 0) < 0 ? void 0 : AD(
26149
26149
  i ?? 0,
26150
26150
  o
26151
26151
  );
@@ -26179,7 +26179,7 @@ const Np = (t, e) => ((e ?? 0) < -1 * (t ?? 0) ? -1 * t : e) ?? 0, IE = ({
26179
26179
  value: 1,
26180
26180
  color: nn.empty
26181
26181
  }), d;
26182
- }, DE = ({
26182
+ }, ED = ({
26183
26183
  data: t = [],
26184
26184
  remainingMinutes: e,
26185
26185
  trackedMinutes: n = 0
@@ -26197,22 +26197,22 @@ const Np = (t, e) => ((e ?? 0) < -1 * (t ?? 0) ? -1 * t : e) ?? 0, IE = ({
26197
26197
  "clocked-out": "hsl(var(--neutral-10))",
26198
26198
  overtime: "hsl(var(--warning-50))"
26199
26199
  };
26200
- function EE({ data: t = [], trackedMinutes: e = 0, remainingMinutes: n }) {
26201
- const r = TE({
26200
+ function DD({ data: t = [], trackedMinutes: e = 0, remainingMinutes: n }) {
26201
+ const r = TD({
26202
26202
  data: t,
26203
26203
  trackedMinutes: e,
26204
26204
  remainingMinutes: n
26205
- }), { primaryLabel: i, secondaryLabel: o, time: s } = DE({
26205
+ }), { primaryLabel: i, secondaryLabel: o, time: s } = ED({
26206
26206
  data: t,
26207
26207
  trackedMinutes: e,
26208
26208
  remainingMinutes: n
26209
26209
  });
26210
26210
  return g("div", {
26211
26211
  className: "relative h-40 w-40",
26212
- children: [l(Dv, {
26212
+ children: [l(Ev, {
26213
26213
  width: 156,
26214
26214
  height: 156,
26215
- children: l(Ev, {
26215
+ children: l(Dv, {
26216
26216
  data: r,
26217
26217
  cx: 74,
26218
26218
  cy: 74,
@@ -26249,7 +26249,7 @@ function EE({ data: t = [], trackedMinutes: e = 0, remainingMinutes: n }) {
26249
26249
  })]
26250
26250
  });
26251
26251
  }
26252
- function _E({ text: t, placeholder: e, icon: n, onClick: r }) {
26252
+ function _D({ text: t, placeholder: e, icon: n, onClick: r }) {
26253
26253
  return g("div", {
26254
26254
  className: "flex cursor-default flex-row items-center gap-1 rounded-xs px-1 py-0.5 hover:bg-f1-background-hover",
26255
26255
  onClick: r,
@@ -26260,27 +26260,27 @@ function _E({ text: t, placeholder: e, icon: n, onClick: r }) {
26260
26260
  className: C("font-medium", t ? "text-f1-foreground" : "text-f1-foreground-secondary"),
26261
26261
  children: t ?? e
26262
26262
  }), l(q, {
26263
- icon: Vb
26263
+ icon: Gb
26264
26264
  })]
26265
26265
  });
26266
26266
  }
26267
26267
  function gL({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: r, locationId: i, locations: o, canShowLocation: s = !0, locationSelectorDisabled: a = !1, onClockIn: c, onClockOut: d, onBreak: f, breakTypes: u, onChangeBreakTypeId: h, canShowBreakButton: m = !0, canSeeGraph: p = !0, canSeeRemainingTime: b = !0, onChangeLocationId: v, canShowProject: x = !0, projectSelectorElement: w, breakTypeName: y }) {
26268
- const { status: D, statusText: S, subtitle: k, statusColor: I } = IE({
26268
+ const { status: E, statusText: S, subtitle: k, statusColor: I } = ID({
26269
26269
  data: n,
26270
26270
  labels: r,
26271
26271
  trackedMinutes: t,
26272
26272
  remainingMinutes: e,
26273
26273
  canSeeRemainingTime: b
26274
- }), T = D === "clocked-out", E = u?.map((K) => ({
26274
+ }), T = E === "clocked-out", D = u?.map((K) => ({
26275
26275
  value: K.id,
26276
26276
  label: K.duration ? `${K.name} · ${K.duration}` : K.name,
26277
26277
  description: K.description,
26278
26278
  tag: K.isPaid ? r.paid : r.unpaid
26279
26279
  })) ?? [], [N, _] = F(!1), A = () => {
26280
- if (E.length > 1)
26280
+ if (D.length > 1)
26281
26281
  N || _(!0);
26282
26282
  else {
26283
- const K = E?.[0]?.value;
26283
+ const K = D?.[0]?.value;
26284
26284
  f?.(K);
26285
26285
  }
26286
26286
  }, L = (K) => {
@@ -26289,7 +26289,7 @@ function gL({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: r, l
26289
26289
  value: K.id,
26290
26290
  label: K.name,
26291
26291
  icon: K.icon
26292
- })), U = D === "break", [Z, ae] = F(!1);
26292
+ })), U = E === "break", [Z, ae] = F(!1);
26293
26293
  return l("div", {
26294
26294
  className: "@container",
26295
26295
  children: g("div", {
@@ -26338,20 +26338,20 @@ function gL({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: r, l
26338
26338
  })]
26339
26339
  }), g("div", {
26340
26340
  className: "flex justify-center gap-2 @xs:justify-start",
26341
- children: [D === "clocked-out" && l("div", {
26341
+ children: [E === "clocked-out" && l("div", {
26342
26342
  className: "mr-3 @xs:mr-0",
26343
26343
  children: l(j, {
26344
26344
  onClick: c,
26345
26345
  label: r.clockIn,
26346
26346
  icon: Ia
26347
26347
  })
26348
- }), D === "clocked-in" && g(ee, {
26348
+ }), E === "clocked-in" && g(ee, {
26349
26349
  children: [m && l(ee, {
26350
- children: E.length > 1 && h ? l(dr, {
26350
+ children: D.length > 1 && h ? l(dr, {
26351
26351
  label: r.break,
26352
26352
  hideLabel: !0,
26353
26353
  value: "",
26354
- options: E,
26354
+ options: D,
26355
26355
  onChange: L,
26356
26356
  open: N,
26357
26357
  onOpenChange: _,
@@ -26378,7 +26378,7 @@ function gL({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: r, l
26378
26378
  variant: "neutral",
26379
26379
  icon: Ta
26380
26380
  })]
26381
- }), D === "break" && g(ee, {
26381
+ }), E === "break" && g(ee, {
26382
26382
  children: [l(j, {
26383
26383
  onClick: d,
26384
26384
  label: r.clockOut,
@@ -26392,7 +26392,7 @@ function gL({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: r, l
26392
26392
  })]
26393
26393
  })]
26394
26394
  })]
26395
- }), p && l(EE, {
26395
+ }), p && l(DD, {
26396
26396
  data: n,
26397
26397
  trackedMinutes: t,
26398
26398
  remainingMinutes: b ? e : 0
@@ -26411,7 +26411,7 @@ function gL({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: r, l
26411
26411
  disabled: a,
26412
26412
  children: l("div", {
26413
26413
  "aria-label": "Select location",
26414
- children: l(_E, {
26414
+ children: l(_D, {
26415
26415
  text: R?.name,
26416
26416
  placeholder: r.selectLocation,
26417
26417
  icon: R?.icon
@@ -26432,34 +26432,34 @@ function gL({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: r, l
26432
26432
  })
26433
26433
  });
26434
26434
  }
26435
- const LE = {
26436
- done: Gb,
26437
- "in-progress": Ub,
26438
- todo: Wb
26439
- }, OE = {
26435
+ const LD = {
26436
+ done: Jb,
26437
+ "in-progress": Kb,
26438
+ todo: qb
26439
+ }, OD = {
26440
26440
  done: "text-f1-icon-success",
26441
26441
  "in-progress": "text-f1-icon-info",
26442
26442
  todo: "text-f1-icon"
26443
26443
  };
26444
- function RE({ task: t, status: e, onClick: n, hideIcon: r = !1 }) {
26444
+ function RD({ task: t, status: e, onClick: n, hideIcon: r = !1 }) {
26445
26445
  const i = () => {
26446
26446
  n?.(t);
26447
26447
  }, o = z(() => {
26448
26448
  if (!r)
26449
- return LE[e];
26449
+ return LD[e];
26450
26450
  }, [e, r]);
26451
26451
  return l(sl, {
26452
26452
  id: t.id,
26453
26453
  title: t.text,
26454
26454
  icon: o,
26455
- iconClassName: OE[e],
26455
+ iconClassName: OD[e],
26456
26456
  alert: t.badge?.isPastDue ? {
26457
26457
  text: t.badge.text,
26458
26458
  level: "critical"
26459
26459
  } : void 0,
26460
26460
  rawTag: t.badge && !t.badge.isPastDue ? {
26461
26461
  text: t.badge.text,
26462
- icon: qb
26462
+ icon: Yb
26463
26463
  } : void 0,
26464
26464
  count: t.counter,
26465
26465
  onClick: i
@@ -26490,7 +26490,7 @@ function bL({ tasks: t, onClickTask: e, hideIcons: n = !1, maxTasksToShow: r = 5
26490
26490
  children: a ? l("p", {
26491
26491
  className: "pl-2 font-medium",
26492
26492
  children: i
26493
- }) : s.slice(0, r).map((c) => l(RE, {
26493
+ }) : s.slice(0, r).map((c) => l(RD, {
26494
26494
  task: c,
26495
26495
  status: c.status,
26496
26496
  hideIcon: n,
@@ -26498,45 +26498,45 @@ function bL({ tasks: t, onClickTask: e, hideIcons: n = !1, maxTasksToShow: r = 5
26498
26498
  }, c.id))
26499
26499
  });
26500
26500
  }
26501
- var FE = Object.defineProperty, ME = Object.defineProperties, PE = Object.getOwnPropertyDescriptors, Gi = Object.getOwnPropertySymbols, Sp = Object.prototype.hasOwnProperty, Ip = Object.prototype.propertyIsEnumerable, Fd = (t, e, n) => e in t ? FE(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, et = (t, e) => {
26501
+ var FD = Object.defineProperty, MD = Object.defineProperties, PD = Object.getOwnPropertyDescriptors, Gi = Object.getOwnPropertySymbols, Sp = Object.prototype.hasOwnProperty, Ip = Object.prototype.propertyIsEnumerable, Fd = (t, e, n) => e in t ? FD(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, et = (t, e) => {
26502
26502
  for (var n in e || (e = {})) Sp.call(e, n) && Fd(t, n, e[n]);
26503
26503
  if (Gi) for (var n of Gi(e)) Ip.call(e, n) && Fd(t, n, e[n]);
26504
26504
  return t;
26505
- }, Do = (t, e) => ME(t, PE(e)), zE = (t, e) => {
26505
+ }, Eo = (t, e) => MD(t, PD(e)), zD = (t, e) => {
26506
26506
  var n = {};
26507
26507
  for (var r in t) Sp.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
26508
26508
  if (t != null && Gi) for (var r of Gi(t)) e.indexOf(r) < 0 && Ip.call(t, r) && (n[r] = t[r]);
26509
26509
  return n;
26510
- }, $E = (t) => t.right - t.left < 5 || t.bottom && t.bottom - t.top < 5, jE = ({ spotsList: t, usedSpot: e }) => t.some((n) => n !== e && e.left === n.left), BE = ({ position: t, spot: e, stone: n }) => {
26510
+ }, $D = (t) => t.right - t.left < 5 || t.bottom && t.bottom - t.top < 5, jD = ({ spotsList: t, usedSpot: e }) => t.some((n) => n !== e && e.left === n.left), BD = ({ position: t, spot: e, stone: n }) => {
26511
26511
  if (t.left > e.left && e.right >= t.left && t.top + n.height > e.top) {
26512
26512
  if (e.bottom && e.bottom < t.top) return e;
26513
26513
  let r = et({}, e);
26514
26514
  return r.right = t.left, r;
26515
26515
  }
26516
26516
  return null;
26517
- }, HE = ({ position: t, stone: e, spot: n }) => {
26517
+ }, HD = ({ position: t, stone: e, spot: n }) => {
26518
26518
  if (t.left + e.width > n.left && t.top >= n.top) {
26519
26519
  if (n.bottom && n.bottom < t.top || n.right < t.left) return n;
26520
26520
  let r = et({}, n);
26521
26521
  return r.bottom = t.top, r;
26522
26522
  }
26523
26523
  return null;
26524
- }, VE = ({ stone: t, position: e, spotsList: n, optimalSpot: r }) => {
26524
+ }, VD = ({ stone: t, position: e, spotsList: n, optimalSpot: r }) => {
26525
26525
  let i = et({}, r);
26526
- return i.left = e.left + t.width, $E(i) || jE({ usedSpot: i, spotsList: n }) ? null : i;
26527
- }, WE = ({ spots: t, position: e, optimalSpot: n, stone: r }) => t.map((i, o, s) => {
26528
- if (i === n) return VE({ stone: r, position: e, optimalSpot: n, spotsList: s });
26529
- let a = BE({ position: e, spot: i, stone: r });
26530
- return a || HE({ position: e, stone: r, spot: i }) || i;
26526
+ return i.left = e.left + t.width, $D(i) || jD({ usedSpot: i, spotsList: n }) ? null : i;
26527
+ }, WD = ({ spots: t, position: e, optimalSpot: n, stone: r }) => t.map((i, o, s) => {
26528
+ if (i === n) return VD({ stone: r, position: e, optimalSpot: n, spotsList: s });
26529
+ let a = BD({ position: e, spot: i, stone: r });
26530
+ return a || HD({ position: e, stone: r, spot: i }) || i;
26531
26531
  });
26532
- function UE(t, e) {
26532
+ function UD(t, e) {
26533
26533
  for (let n = 0, r = e.length; n < r; n++) {
26534
26534
  let i = e[n];
26535
26535
  if (t(i)) return i;
26536
26536
  }
26537
26537
  return null;
26538
26538
  }
26539
- var GE = (t, e) => e.filter(t), qE = (t, e) => [...e].sort(t), KE = (t, e) => t.top === e.top ? t.left < e.left ? -1 : 1 : t.top < e.top ? -1 : 1, JE = (t) => qE(KE, t), YE = ({ availableSpots: t, optimalSpot: e, containerSize: n, stone: r }) => {
26539
+ var GD = (t, e) => e.filter(t), qD = (t, e) => [...e].sort(t), KD = (t, e) => t.top === e.top ? t.left < e.left ? -1 : 1 : t.top < e.top ? -1 : 1, JD = (t) => qD(KD, t), YD = ({ availableSpots: t, optimalSpot: e, containerSize: n, stone: r }) => {
26540
26540
  let i = { right: n, top: e.top + r.height, left: e.left };
26541
26541
  e.bottom && (i.bottom = e.bottom);
26542
26542
  for (let o = 0, s = t.length; o < s; o += 1) {
@@ -26547,22 +26547,22 @@ var GE = (t, e) => e.filter(t), qE = (t, e) => [...e].sort(t), KE = (t, e) => t.
26547
26547
  }
26548
26548
  }
26549
26549
  return i;
26550
- }, QE = (t, e) => {
26550
+ }, QD = (t, e) => {
26551
26551
  let n = t.right - t.left >= e.width;
26552
26552
  if (!t.bottom) return n;
26553
26553
  let r = t.bottom - t.top >= e.height;
26554
26554
  return n && r;
26555
- }, XE = ({ availableSpots: t, stone: e }) => UE((n) => QE(n, e), t);
26556
- function ZE({ stone: t, availableSpots: e, containerSize: n }) {
26557
- let r = XE({ availableSpots: e, stone: t }), i = { left: r.left, top: r.top }, o = YE({ optimalSpot: r, availableSpots: e.filter((c) => c !== r), stone: t, containerSize: n }), s = [...e, o], a = WE({ spots: s, position: i, optimalSpot: r, stone: t });
26558
- return s = [...GE(Boolean, a)], s = JE(s), { position: i, availableSpots: s };
26555
+ }, XD = ({ availableSpots: t, stone: e }) => UD((n) => QD(n, e), t);
26556
+ function ZD({ stone: t, availableSpots: e, containerSize: n }) {
26557
+ let r = XD({ availableSpots: e, stone: t }), i = { left: r.left, top: r.top }, o = YD({ optimalSpot: r, availableSpots: e.filter((c) => c !== r), stone: t, containerSize: n }), s = [...e, o], a = WD({ spots: s, position: i, optimalSpot: r, stone: t });
26558
+ return s = [...GD(Boolean, a)], s = JD(s), { position: i, availableSpots: s };
26559
26559
  }
26560
26560
  var e_ = ({ stones: t, containerSize: e }) => {
26561
26561
  let n = { positions: [], containerHeight: 0, availableSpots: [] };
26562
26562
  if (!t.length) return n;
26563
26563
  let r = 0, i = [], o = [{ top: 0, left: 0, right: e }];
26564
26564
  for (let s of t) {
26565
- let a = ZE({ availableSpots: o, stone: s, containerSize: e }), c = a.position.top + s.height;
26565
+ let a = ZD({ availableSpots: o, stone: s, containerSize: e }), c = a.position.top + s.height;
26566
26566
  r < c && (r = c), i.push(a.position), o = a.availableSpots;
26567
26567
  }
26568
26568
  return { availableSpots: o, positions: i, containerHeight: r };
@@ -26577,7 +26577,7 @@ var e_ = ({ stones: t, containerSize: e }) => {
26577
26577
  let h = t_(t.current), m = (u = (f = e.current) == null ? void 0 : f.offsetWidth) != null ? u : 0;
26578
26578
  if (m === null) return;
26579
26579
  let p = e_({ stones: h, containerSize: m });
26580
- d(Do(et({}, p), { stones: h }));
26580
+ d(Eo(et({}, p), { stones: h }));
26581
26581
  }, [n, t, e, r, i]), { positions: o, containerHeight: s, stones: a, availableSpots: c };
26582
26582
  }, r_ = (t) => ({ fade: `${t}ms opacity ease`, fadeMove: `
26583
26583
  ${t}ms opacity ease,
@@ -26586,7 +26586,7 @@ var e_ = ({ stones: t, containerSize: e }) => {
26586
26586
  `, move: `
26587
26587
  ${t}ms top ease,
26588
26588
  ${t}ms left ease
26589
- ` }), i_ = ({ transition: t, transitionDuration: e }) => t ? { transition: r_(e)[t] } : null, o_ = (t) => t ? Do(et({}, t), { opacity: 1 }) : { opacity: 0, top: 0, left: 0 }, s_ = ({ style: t, position: e, transition: n, transitionDuration: r }) => et(et(Do(et({}, t), { position: "absolute" }), o_(e)), i_({ transition: n, transitionDuration: r }));
26589
+ ` }), i_ = ({ transition: t, transitionDuration: e }) => t ? { transition: r_(e)[t] } : null, o_ = (t) => t ? Eo(et({}, t), { opacity: 1 }) : { opacity: 0, top: 0, left: 0 }, s_ = ({ style: t, position: e, transition: n, transitionDuration: r }) => et(et(Eo(et({}, t), { position: "absolute" }), o_(e)), i_({ transition: n, transitionDuration: r }));
26590
26590
  function l_(t, e, n) {
26591
26591
  let r;
26592
26592
  return function(...i) {
@@ -26616,9 +26616,9 @@ var a_ = () => {
26616
26616
  };
26617
26617
  }, [t]), e;
26618
26618
  }, d_ = (t) => {
26619
- var e = t, { children: n, style: r, transition: i = !1, transitionDuration: o = 500, transitionStep: s = 50 } = e, a = zE(e, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
26619
+ var e = t, { children: n, style: r, transition: i = !1, transitionDuration: o = 500, transitionStep: s = 50 } = e, a = zD(e, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
26620
26620
  let c = W([]), d = W(null), f = a_(), u = c_(d), { positions: h, containerHeight: m } = n_({ boxesRefs: c, wrapperRef: d, children: n, windowWidth: f, wrapperWidth: u }), p = et({ minHeight: m ?? 0, position: "relative" }, r);
26621
- return l("div", Do(et({ ref: d, style: p }, a), { children: Du.map(n, (b, v) => {
26621
+ return l("div", Eo(et({ ref: d, style: p }, a), { children: Du.map(n, (b, v) => {
26622
26622
  if (typeof b != "object" || !b || !("type" in b)) return b;
26623
26623
  let x = { style: s_({ style: b.props.style, position: h[v], transition: i, transitionDuration: o }), ref: (w) => c.current[v] = w };
26624
26624
  return Sl(b, et(et({}, b.props), x));
@@ -26660,7 +26660,7 @@ const u_ = {
26660
26660
  })
26661
26661
  })
26662
26662
  });
26663
- }), f_ = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], vL = Ne(Md, () => l(Iu, {
26663
+ }), f_ = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], vL = Ne(Md, () => l(Au, {
26664
26664
  children: l(Md, {
26665
26665
  children: f_.map((t, e) => l(Ln.Skeleton, {
26666
26666
  height: t
@@ -26677,7 +26677,7 @@ const u_ = {
26677
26677
  children: e
26678
26678
  })
26679
26679
  });
26680
- }), () => l(Iu, {
26680
+ }), () => l(Au, {
26681
26681
  orientation: "horizontal",
26682
26682
  children: g(Pd, {
26683
26683
  children: [l(Ln.Skeleton, {}), l(Ln.Skeleton, {}), l(Ln.Skeleton, {})]
@@ -26697,7 +26697,7 @@ function h_({ title: t, description: e, emoji: n, actions: r }) {
26697
26697
  actions: r
26698
26698
  });
26699
26699
  }
26700
- const yL = se("WidgetEmptyState", h_), Ap = J(({ title: t, children: e }, n) => (Kb(t, {
26700
+ const yL = se("WidgetEmptyState", h_), Ap = J(({ title: t, children: e }, n) => (Qb(t, {
26701
26701
  disallowEmpty: !0
26702
26702
  }, {
26703
26703
  componentName: "WidgetSection"
@@ -26724,7 +26724,7 @@ const wL = se("WidgetSection", Ap), kL = ({ identifier: t, allowedRoutes: e, dis
26724
26724
  Nt
26725
26725
  );
26726
26726
  export {
26727
- D_ as ActivityItemList,
26727
+ E_ as ActivityItemList,
26728
26728
  JC as ActivityItemListSkeleton,
26729
26729
  Gk as AiPromotionChat,
26730
26730
  qk as AiPromotionChatProvider,
@@ -26744,7 +26744,7 @@ export {
26744
26744
  aL as CalendarEventList,
26745
26745
  zL as CardSelectable,
26746
26746
  $L as CardSelectableContainer,
26747
- l0 as Carousel,
26747
+ d0 as Carousel,
26748
26748
  pL as CategoryBarSection,
26749
26749
  __ as Celebration,
26750
26750
  cN as CelebrationSkeleton,
@@ -26781,26 +26781,26 @@ export {
26781
26781
  UL as ItemSectionHeader,
26782
26782
  rL as LineChartWidget,
26783
26783
  H_ as Menu,
26784
- El as MobileDropdown,
26784
+ Dl as MobileDropdown,
26785
26785
  Y_ as NotesTextEditor,
26786
26786
  Q_ as NotesTextEditorSkeleton,
26787
- T0 as NumberInput,
26787
+ _0 as NumberInput,
26788
26788
  z_ as OmniButton,
26789
26789
  U_ as OneApprovalHistory,
26790
- DL as OneCalendar,
26791
- EL as OneCalendarInternal,
26790
+ EL as OneCalendar,
26791
+ DL as OneCalendarInternal,
26792
26792
  G_ as OneDataCollection,
26793
26793
  bS as OneDateNavigator,
26794
26794
  Rh as OneEmptyState,
26795
- DS as OnePagination,
26795
+ ES as OnePagination,
26796
26796
  F_ as OnePersonListItem,
26797
26797
  kL as OneRestrictComponent,
26798
26798
  $_ as Page,
26799
26799
  v_ as PageHeader,
26800
26800
  iL as PieChartWidget,
26801
- qD as PrivateBox,
26801
+ qE as PrivateBox,
26802
26802
  w_ as RadarChart,
26803
- E_ as ResourceHeader,
26803
+ D_ as ResourceHeader,
26804
26804
  ak as RichTextDisplay,
26805
26805
  GL as RichTextEditor,
26806
26806
  CL as ScrollArea,
@@ -26819,7 +26819,7 @@ export {
26819
26819
  _L as Tabs,
26820
26820
  LL as TabsSkeleton,
26821
26821
  bL as TasksList,
26822
- _0 as Textarea,
26822
+ R0 as Textarea,
26823
26823
  ph as ToggleGroup,
26824
26824
  gh as ToggleGroupItem,
26825
26825
  dt as Tooltip,
@@ -26849,7 +26849,7 @@ export {
26849
26849
  lo as useAiPromotionChat,
26850
26850
  mo as useDataCollectionData,
26851
26851
  q_ as useDataCollectionSource,
26852
- $0 as useForm,
26852
+ H0 as useForm,
26853
26853
  T_ as useFormSchema,
26854
26854
  Ul as useInfiniteScrollPagination,
26855
26855
  Gn as useSidebar