@factorialco/f0-react 8.31.0 → 8.32.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.
Files changed (29) hide show
  1. package/dist/{ChatPdfThumbnail-BV2Jg190.js → ChatPdfThumbnail-BUhJ6HP6.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-HUWH5YDx.js → ChatPostComposerDialog-CHjfT7-l.js} +3 -3
  3. package/dist/{DocumentToolbar-B7xL5ZMj.js → DocumentToolbar-B3NIH3q3.js} +2 -2
  4. package/dist/{DocxViewer-DGRqy9zY.js → DocxViewer-BUAnXdmC.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-BcPRamzV.js → F0AiProcessingOverlay-CLBRUF77.js} +1 -1
  6. package/dist/{F0CanvasPanel-CfvO8PxL.js → F0CanvasPanel-j19rKA2q.js} +4382 -4353
  7. package/dist/{F0Map-B4HIPrvH.js → F0Map-BTk4yvPQ.js} +4 -4
  8. package/dist/{F0VideoPlayer-M3lXV3UP.js → F0VideoPlayer-nWajwPop.js} +2 -2
  9. package/dist/{MapProvider-C4KvsJZe.js → MapProvider-Dpmg5JJI.js} +650 -646
  10. package/dist/{SheetViewer-b5uT0_Qv.js → SheetViewer-BJaHI6WN.js} +3 -3
  11. package/dist/{TextViewer-FWSP_8YL.js → TextViewer-COgJ9RWf.js} +2 -2
  12. package/dist/ai.d.ts +2 -2
  13. package/dist/ai.js +2 -2
  14. package/dist/component-status.d.ts +2 -2
  15. package/dist/component-status.js +1 -1
  16. package/dist/{experimental-DC1y5Glz.js → experimental-CSyzqqBz.js} +7 -7
  17. package/dist/experimental.d.ts +93 -79
  18. package/dist/experimental.js +4 -4
  19. package/dist/f0.d.ts +93 -79
  20. package/dist/f0.js +11 -11
  21. package/dist/i18n-provider-defaults.d.ts +2 -2
  22. package/dist/{index-CnTrb9LA.js → index-B2K8G-bZ.js} +3 -3
  23. package/dist/{index-DBJKw-y0.js → index-BkbdSCfV.js} +2 -2
  24. package/dist/{index-Cm9nv-w0.js → index-C3TI3gMf.js} +3 -3
  25. package/dist/index-UmB4D11_.js +4 -0
  26. package/dist/{index-BMDmI7wS.js → index-XRldN0kV.js} +1 -1
  27. package/dist/{pdfWorker-OP_0l0ae.js → pdfWorker-E3HZ7Tdj.js} +2 -2
  28. package/package.json +1 -1
  29. package/dist/index-D2Nqi0Iu.js +0 -4
@@ -1,7 +1,7 @@
1
1
  import { jsx as m, jsxs as R, Fragment as We } from "react/jsx-runtime";
2
2
  import * as qe from "react";
3
3
  import oe, { useRef as L, useState as J, useCallback as K, useEffect as ie, useContext as ht, useMemo as X, createContext as Ft, forwardRef as Qe, useLayoutEffect as Lt, memo as Mt, useReducer as _z, cloneElement as iO, PureComponent as cd, useId as mi, useImperativeHandle as ia, Fragment as Vf, createElement as Im, isValidElement as Sz, Suspense as Cz, lazy as Ez, useDebugValue as rO, version as N4, createRef as oO, useSyncExternalStore as A4 } from "react";
4
- import { f5 as T4, f6 as Zu, f7 as Nz, cQ as sO, f8 as Az, f9 as Tz, fa as Oz, fb as Dv, fc as Iz, fd as Dz, fe as Mz, ff as Pz, fg as Rz, fh as Lz, fi as Fz, a8 as it, fj as aO, fk as $z, co as Vt, aL as Qu, aM as dd, aw as Bz, ax as zz, cS as go, G as $t, H as ii, J as fd, dk as Pk, ey as Rk, ez as Dm, S as Be, fl as lO, eA as Lk, u as Re, v as st, bm as eh, cr as xc, bu as Fy, r as Fk, cW as jz, cD as cO, cT as Hz, dh as Vz, e6 as dO, z as De, a_ as th, fm as Wz, b6 as Uz, b7 as qz, fn as Kz, cy as fO, dK as uO, fo as hO, db as pO, fp as Gz, fq as Yz, fr as _a, fs as zt, ft as Ni, fu as mO, fv as Xz, fw as gO, fx as Jz, fy as Xn, fz as $y, fA as pn, fB as yO, fC as By, fD as $k, fE as Bk, fF as zk, fG as Wn, fH as Ci, fI as Vb, fJ as zy, fK as Zz, fL as ai, fM as $o, fN as ki, fO as gl, fP as jk, fQ as jy, fR as Yp, fS as Hy, eD as Hk, fT as Qz, fU as Xh, fV as Mm, fW as ej, fX as tj, fY as nj, fZ as ij, f_ as rj, f$ as oj, g0 as vO, g1 as bO, g2 as wO, g3 as xO, g4 as kO, g5 as sj, g6 as Pm, g7 as aj, g8 as lj, g9 as nh, ga as ra, c_ as Jo, gb as Vk, gc as Wo, gd as _O, c$ as SO, ge as cj, gf as dj, cY as fj, gg as uj, cZ as hj, dm as li, gh as ci, gi as pj, gj as mj, gk as gj, gl as yj, gm as vj, gn as Wb, go as bj, a9 as CO, gp as EO, ex as _r, a7 as Jt, eO as wj, dt as mr, cn as ud, d6 as Xa, ao as ih, ap as xj, dJ as kj, gq as NO, gr as AO, o as TO, af as is, i as hd, eB as OO, cG as IO, cH as Wk, a6 as rh, N as Vy, gs as _j, et as DO, dg as Sj, gt as MO, eS as $n, gu as PO, gv as RO, gw as Ub, gx as Cj, gy as O4, gz as LO, eu as oa, e_ as FO, dy as $O, eU as Wy, K as Uy, L as Uk, M as qy, eY as Ej, l as Qn, aG as I4, aO as Nj, b0 as Aj, bz as qk, gA as BO, gB as Tj, eT as Kk, gC as Gk, gD as zO, gE as yl, gF as Mv, bY as jO, cx as vl, ak as br, dn as Gs, er as Oj, gG as D4, en as Yk, gH as Ij, dV as Dj, ea as Mj, e8 as Pj, gI as HO, gJ as Rj, cR as Lj, gK as Fj, gL as VO, ah as WO, gM as $j, gN as Bj, gO as zj, gP as M4, gQ as P4, gR as R4, gS as L4, gT as jj, aE as Hj, gU as UO, dv as Vj, gV as Wj, cM as pd, O as qO, Q as KO, U as GO, gW as Uj, gX as qj, gY as F4, dT as Rm, eM as Wf, W as YO, X as XO, Z as JO, _ as ZO, w as sa, cs as Hr, s as Kj, x as Gj, gZ as Yj, A as Ky, g_ as QO, g$ as eI, h0 as Xj, h1 as Lm, h2 as Jj, h3 as Zj, h4 as Ba, h5 as Qj, h6 as $4, h7 as eH, h8 as tH, h9 as Fm, ha as nH, hb as iH, hc as rH, hd as tI, he as oH, hf as nI, hg as sH, hh as Gy, hi as md, hj as aH, hk as Xk, hl as ln, hm as lH, cP as Uf, hn as ti, ho as cH, d0 as oh, hp as dH, ad as Ja, av as qb, dq as fH, dr as uH, cz as iI, cA as rI, cB as oI, hq as Jk, hr as hH, d5 as sI, bS as sh, aU as rs, el as aI, em as lI, aI as cI, aX as pH, ch as dI, dI as mH, hs as gH, ht as yH, hu as $m, hv as Do, n as vH, c5 as bH, hw as wH, e0 as xH, aT as Bm, c8 as fI, c3 as kH, E as B4, ek as _H, a$ as SH, hx as CH, hy as Yy, hz as Xy, hA as Jy, cC as Zy, hB as EH, hC as zm, hD as NH, hE as AH, ds as TH, hF as uI, bB as Pv, hG as OH, hH as IH, bE as DH, bK as MH, hI as z4, hJ as PH, hK as j4, hL as Rv, hM as hI, a3 as pI, c4 as RH, ab as LH, j as Zk, hN as FH, hO as $H, dQ as BH, k as Qk, eH as zH, bX as jH, bO as HH, bw as H4, bA as e2, cd as VH, ei as WH, hP as mI, hQ as UH, hR as t2, m as qH, az as KH, aV as GH, c6 as YH, hS as XH, hT as JH, B as ZH, hU as QH, hV as eV, hW as tV, hX as nV, hY as gI, cg as iV, hZ as n2, h_ as rV, h$ as oV, i0 as sV, i1 as Lv, i2 as aV, i3 as Ie, i4 as ah, i5 as lV, i6 as cV, i7 as dV, i8 as fV, i9 as V4, ia as uV, ib as jm, V as hV, ic as pV, id as Fv, ie as Jh, ig as mV, ih as gV, ii as yV, ij as vV, ik as bV, ay as wV, c as xV, c7 as kV, Y as $v, il as lh, im as i2, io as r2, ip as ch, iq as _V, c1 as SV, eI as o2, ed as W4, an as CV, aj as EV, eg as NV, aB as AV, bv as TV, cf as OV, cb as IV, bo as yI, bp as vI, bq as bI, bN as wI, aK as xI, as as kI, aq as _I, at as SI, ar as CI, aQ as EI, c0 as NI, cE as AI, ir as TI, is as DV, cL as MV, bc as PV, ba as RV, b9 as LV, b8 as FV, bb as $V, br as BV, ci as zV, cq as jV, cp as HV, ce as VV, bI as WV, bR as UV, a4 as qV, cv as KV, it as GV, iu as Bv, iv as YV, bx as XV, iw as OI, ix as s2, iy as Fs, iz as ac, iA as II, iB as DI, cK as JV, iC as ZV, iD as QV, iE as eW, iF as tW, cF as nW, dS as iW, cu as rW, iG as oW } from "./F0CanvasPanel-CfvO8PxL.js";
4
+ import { f5 as T4, f6 as Zu, f7 as Nz, cQ as sO, f8 as Az, f9 as Tz, fa as Oz, fb as Dv, fc as Iz, fd as Dz, fe as Mz, ff as Pz, fg as Rz, fh as Lz, fi as Fz, a8 as it, fj as aO, fk as $z, co as Vt, aL as Qu, aM as dd, aw as Bz, ax as zz, cS as go, G as $t, H as ii, J as fd, dk as Pk, ey as Rk, ez as Dm, S as Be, fl as lO, eA as Lk, u as Re, v as st, bm as eh, cr as xc, bu as Fy, r as Fk, cW as jz, cD as cO, cT as Hz, dh as Vz, e6 as dO, z as De, a_ as th, fm as Wz, b6 as Uz, b7 as qz, fn as Kz, cy as fO, dK as uO, fo as hO, db as pO, fp as Gz, fq as Yz, fr as _a, fs as zt, ft as Ni, fu as mO, fv as Xz, fw as gO, fx as Jz, fy as Xn, fz as $y, fA as pn, fB as yO, fC as By, fD as $k, fE as Bk, fF as zk, fG as Wn, fH as Ci, fI as Vb, fJ as zy, fK as Zz, fL as ai, fM as $o, fN as ki, fO as gl, fP as jk, fQ as jy, fR as Yp, fS as Hy, eD as Hk, fT as Qz, fU as Xh, fV as Mm, fW as ej, fX as tj, fY as nj, fZ as ij, f_ as rj, f$ as oj, g0 as vO, g1 as bO, g2 as wO, g3 as xO, g4 as kO, g5 as sj, g6 as Pm, g7 as aj, g8 as lj, g9 as nh, ga as ra, c_ as Jo, gb as Vk, gc as Wo, gd as _O, c$ as SO, ge as cj, gf as dj, cY as fj, gg as uj, cZ as hj, dm as li, gh as ci, gi as pj, gj as mj, gk as gj, gl as yj, gm as vj, gn as Wb, go as bj, a9 as CO, gp as EO, ex as _r, a7 as Jt, eO as wj, dt as mr, cn as ud, d6 as Xa, ao as ih, ap as xj, dJ as kj, gq as NO, gr as AO, o as TO, af as is, i as hd, eB as OO, cG as IO, cH as Wk, a6 as rh, N as Vy, gs as _j, et as DO, dg as Sj, gt as MO, eS as $n, gu as PO, gv as RO, gw as Ub, gx as Cj, gy as O4, gz as LO, eu as oa, e_ as FO, dy as $O, eU as Wy, K as Uy, L as Uk, M as qy, eY as Ej, l as Qn, aG as I4, aO as Nj, b0 as Aj, bz as qk, gA as BO, gB as Tj, eT as Kk, gC as Gk, gD as zO, gE as yl, gF as Mv, bY as jO, cx as vl, ak as br, dn as Gs, er as Oj, gG as D4, en as Yk, gH as Ij, dV as Dj, ea as Mj, e8 as Pj, gI as HO, gJ as Rj, cR as Lj, gK as Fj, gL as VO, ah as WO, gM as $j, gN as Bj, gO as zj, gP as M4, gQ as P4, gR as R4, gS as L4, gT as jj, aE as Hj, gU as UO, dv as Vj, gV as Wj, cM as pd, O as qO, Q as KO, U as GO, gW as Uj, gX as qj, gY as F4, dT as Rm, eM as Wf, W as YO, X as XO, Z as JO, _ as ZO, w as sa, cs as Hr, s as Kj, x as Gj, gZ as Yj, A as Ky, g_ as QO, g$ as eI, h0 as Xj, h1 as Lm, h2 as Jj, h3 as Zj, h4 as Ba, h5 as Qj, h6 as $4, h7 as eH, h8 as tH, h9 as Fm, ha as nH, hb as iH, hc as rH, hd as tI, he as oH, hf as nI, hg as sH, hh as Gy, hi as md, hj as aH, hk as Xk, hl as ln, hm as lH, cP as Uf, hn as ti, ho as cH, d0 as oh, hp as dH, ad as Ja, av as qb, dq as fH, dr as uH, cz as iI, cA as rI, cB as oI, hq as Jk, hr as hH, d5 as sI, bS as sh, aU as rs, el as aI, em as lI, aI as cI, aX as pH, ch as dI, dI as mH, hs as gH, ht as yH, hu as $m, hv as Do, n as vH, c5 as bH, hw as wH, e0 as xH, aT as Bm, c8 as fI, c3 as kH, E as B4, ek as _H, a$ as SH, hx as CH, hy as Yy, hz as Xy, hA as Jy, cC as Zy, hB as EH, hC as zm, hD as NH, hE as AH, ds as TH, hF as uI, bB as Pv, hG as OH, hH as IH, bE as DH, bK as MH, hI as z4, hJ as PH, hK as j4, hL as Rv, hM as hI, a3 as pI, c4 as RH, ab as LH, j as Zk, hN as FH, hO as $H, dQ as BH, k as Qk, eH as zH, bX as jH, bO as HH, bw as H4, bA as e2, cd as VH, ei as WH, hP as mI, hQ as UH, hR as t2, m as qH, az as KH, aV as GH, c6 as YH, hS as XH, hT as JH, B as ZH, hU as QH, hV as eV, hW as tV, hX as nV, hY as gI, cg as iV, hZ as n2, h_ as rV, h$ as oV, i0 as sV, i1 as Lv, i2 as aV, i3 as Ie, i4 as ah, i5 as lV, i6 as cV, i7 as dV, i8 as fV, i9 as V4, ia as uV, ib as jm, V as hV, ic as pV, id as Fv, ie as Jh, ig as mV, ih as gV, ii as yV, ij as vV, ik as bV, ay as wV, c as xV, c7 as kV, Y as $v, il as lh, im as i2, io as r2, ip as ch, iq as _V, c1 as SV, eI as o2, ed as W4, an as CV, aj as EV, eg as NV, aB as AV, bv as TV, cf as OV, cb as IV, bo as yI, bp as vI, bq as bI, bN as wI, aK as xI, as as kI, aq as _I, at as SI, ar as CI, aQ as EI, c0 as NI, cE as AI, ir as TI, is as DV, cL as MV, bc as PV, ba as RV, b9 as LV, b8 as FV, bb as $V, br as BV, ci as zV, cq as jV, cp as HV, ce as VV, bI as WV, bR as UV, a4 as qV, cv as KV, it as GV, iu as Bv, iv as YV, bx as XV, iw as OI, ix as s2, iy as Fs, iz as ac, iA as II, iB as DI, cK as JV, iC as ZV, iD as QV, iE as eW, iF as tW, cF as nW, dS as iW, cu as rW, iG as oW } from "./F0CanvasPanel-j19rKA2q.js";
5
5
  import { d as U, g as sW, e as di, T as dh, a as fh, b as uh, f as tn, u as a2, S as aW, c as Qy } from "./tooltip-CrXp1Uaz.js";
6
6
  import { g as hh } from "./_commonjsHelpers-ByX85dGu.js";
7
7
  import MI, { unstable_batchedUpdates as Zh, createPortal as e1, flushSync as lW } from "react-dom";
@@ -737,10 +737,10 @@ function zW(e, t, n, i, r, o, s, a, l, c, d, f, u, h, p, y, g, v, b) {
737
737
  touch: 600
738
738
  }, I = p ? 43 : 25;
739
739
  let D = !1, N = 0, M = 0, O = !1, P = !1, F = !1, z = !1;
740
- function H(te) {
740
+ function H(Q) {
741
741
  if (!b) return;
742
742
  function ue(ge) {
743
- (t1(b) || b(te, ge)) && Y(ge);
743
+ (t1(b) || b(Q, ge)) && Y(ge);
744
744
  }
745
745
  const me = t;
746
746
  S.add(me, "dragstart", (ge) => ge.preventDefault(), _).add(me, "touchmove", () => {
@@ -751,38 +751,38 @@ function zW(e, t, n, i, r, o, s, a, l, c, d, f, u, h, p, y, g, v, b) {
751
751
  S.clear(), E.clear();
752
752
  }
753
753
  function V() {
754
- const te = z ? n : t;
755
- E.add(te, "touchmove", W, _).add(te, "touchend", j).add(te, "mousemove", W, _).add(te, "mouseup", j);
754
+ const Q = z ? n : t;
755
+ E.add(Q, "touchmove", W, _).add(Q, "touchend", j).add(Q, "mousemove", W, _).add(Q, "mouseup", j);
756
756
  }
757
- function Z(te) {
758
- const ue = te.nodeName || "";
757
+ function Z(Q) {
758
+ const ue = Q.nodeName || "";
759
759
  return k.includes(ue);
760
760
  }
761
761
  function G() {
762
762
  return (p ? T : A)[z ? "mouse" : "touch"];
763
763
  }
764
- function B(te, ue) {
765
- const me = f.add(u2(te) * -1), ge = d.byDistance(te, !p).distance;
766
- return p || cn(te) < C ? ge : g && ue ? ge * 0.5 : d.byIndex(me.get(), 0).distance;
764
+ function B(Q, ue) {
765
+ const me = f.add(u2(Q) * -1), ge = d.byDistance(Q, !p).distance;
766
+ return p || cn(Q) < C ? ge : g && ue ? ge * 0.5 : d.byIndex(me.get(), 0).distance;
767
767
  }
768
- function Y(te) {
769
- const ue = Gb(te, i);
770
- z = ue, F = p && ue && !te.buttons && D, D = cf(r.get(), s.get()) >= 2, !(ue && te.button !== 0) && (Z(te.target) || (O = !0, o.pointerDown(te), c.useFriction(0).useDuration(0), r.set(s), V(), N = o.readPoint(te), M = o.readPoint(te, w), u.emit("pointerDown")));
768
+ function Y(Q) {
769
+ const ue = Gb(Q, i);
770
+ z = ue, F = p && ue && !Q.buttons && D, D = cf(r.get(), s.get()) >= 2, !(ue && Q.button !== 0) && (Z(Q.target) || (O = !0, o.pointerDown(Q), c.useFriction(0).useDuration(0), r.set(s), V(), N = o.readPoint(Q), M = o.readPoint(Q, w), u.emit("pointerDown")));
771
771
  }
772
- function W(te) {
773
- if (!Gb(te, i) && te.touches.length >= 2) return j(te);
774
- const me = o.readPoint(te), ge = o.readPoint(te, w), ye = cf(me, N), Se = cf(ge, M);
775
- if (!P && !z && (!te.cancelable || (P = ye > Se, !P)))
776
- return j(te);
777
- const q = o.pointerMove(te);
778
- ye > y && (F = !0), c.useFriction(0.3).useDuration(0.75), a.start(), r.add(x(q)), te.preventDefault();
772
+ function W(Q) {
773
+ if (!Gb(Q, i) && Q.touches.length >= 2) return j(Q);
774
+ const me = o.readPoint(Q), ge = o.readPoint(Q, w), ye = cf(me, N), Se = cf(ge, M);
775
+ if (!P && !z && (!Q.cancelable || (P = ye > Se, !P)))
776
+ return j(Q);
777
+ const q = o.pointerMove(Q);
778
+ ye > y && (F = !0), c.useFriction(0.3).useDuration(0.75), a.start(), r.add(x(q)), Q.preventDefault();
779
779
  }
780
- function j(te) {
781
- const me = d.byDistance(0, !1).index !== f.get(), ge = o.pointerUp(te) * G(), ye = B(x(ge), me), Se = RW(ge, ye), q = I - 10 * Se, ee = v + Se / 50;
780
+ function j(Q) {
781
+ const me = d.byDistance(0, !1).index !== f.get(), ge = o.pointerUp(Q) * G(), ye = B(x(ge), me), Se = RW(ge, ye), q = I - 10 * Se, ee = v + Se / 50;
782
782
  P = !1, O = !1, E.clear(), c.useDuration(q).useFriction(ee), l.distance(ye, !p), z = !1, u.emit("pointerUp");
783
783
  }
784
- function ne(te) {
785
- F && (te.stopPropagation(), te.preventDefault(), F = !1);
784
+ function ne(Q) {
785
+ F && (Q.stopPropagation(), Q.preventDefault(), F = !1);
786
786
  }
787
787
  function le() {
788
788
  return O;
@@ -1424,7 +1424,7 @@ function aU(e, t, n, i, r, o, s) {
1424
1424
  scrollContainLimit: Y
1425
1425
  } = KW(I, G, Z, b, S), W = M ? B : Z, {
1426
1426
  limit: j
1427
- } = GW(G, W, f), ne = RI(ph(W), d, f), le = ne.clone(), Q = qf(n), te = ({
1427
+ } = GW(G, W, f), ne = RI(ph(W), d, f), le = ne.clone(), te = qf(n), Q = ({
1428
1428
  dragHandler: Ge,
1429
1429
  scrollBody: ut,
1430
1430
  scrollBounds: ke,
@@ -1441,21 +1441,21 @@ function aU(e, t, n, i, r, o, s) {
1441
1441
  previousLocation: pe,
1442
1442
  scrollLooper: se,
1443
1443
  slideLooper: ce,
1444
- dragHandler: be,
1445
- animation: we,
1444
+ dragHandler: we,
1445
+ animation: xe,
1446
1446
  eventHandler: Ae,
1447
1447
  scrollBounds: Ee,
1448
1448
  options: {
1449
1449
  loop: ze
1450
1450
  }
1451
1451
  }, Me) => {
1452
- const Ue = Ge.settled(), et = !Ee.shouldConstrain(), dt = ze ? Ue : Ue && et, ct = dt && !be.pointerDown();
1453
- ct && we.stop();
1452
+ const Ue = Ge.settled(), et = !Ee.shouldConstrain(), dt = ze ? Ue : Ue && et, ct = dt && !we.pointerDown();
1453
+ ct && xe.stop();
1454
1454
  const Je = ke.get() * Me + pe.get() * (1 - Me);
1455
1455
  at.set(Je), ze && (se.loop(Ge.direction()), ce.loop()), ut.to(at.get()), ct && Ae.emit("settle"), dt || Ae.emit("scroll");
1456
- }, me = $W(i, r, () => te(pt), (Ge) => ue(pt, Ge)), ge = 0.68, ye = W[ne.get()], Se = tf(ye), q = tf(ye), ee = tf(ye), re = tf(ye), fe = UW(Se, ee, q, re, u, ge), ae = QW(f, W, G, j, re), de = eU(me, ne, le, fe, ae, re, s), he = XW(j), ve = Gf(), Te = rU(t, n, s, y), {
1456
+ }, me = $W(i, r, () => Q(pt), (Ge) => ue(pt, Ge)), ge = 0.68, ye = W[ne.get()], Se = tf(ye), q = tf(ye), ee = tf(ye), re = tf(ye), fe = UW(Se, ee, q, re, u, ge), ae = QW(f, W, G, j, re), de = eU(me, ne, le, fe, ae, re, s), he = XW(j), ve = Gf(), Te = rU(t, n, s, y), {
1457
1457
  slideRegistry: He
1458
- } = ZW(M, b, W, Y, $, Q), Xe = tU(e, n, He, de, fe, ve, s, _), pt = {
1458
+ } = ZW(M, b, W, Y, $, te), Xe = tU(e, n, He, de, fe, ve, s, _), pt = {
1459
1459
  ownerDocument: i,
1460
1460
  ownerWindow: r,
1461
1461
  eventHandler: s,
@@ -1486,7 +1486,7 @@ function aU(e, t, n, i, r, o, s) {
1486
1486
  slideFocus: Xe,
1487
1487
  slidesHandler: iU(t, s, x),
1488
1488
  slidesInView: Te,
1489
- slideIndexes: Q,
1489
+ slideIndexes: te,
1490
1490
  slideRegistry: He,
1491
1491
  slidesToScroll: $,
1492
1492
  target: re,
@@ -1592,33 +1592,33 @@ function Hm(e, t, n) {
1592
1592
  let g = !1, v, b = c(cU, Hm.globalOptions), w = c(b), x = [], k, _, S;
1593
1593
  function E() {
1594
1594
  const {
1595
- container: Q,
1596
- slides: te
1595
+ container: te,
1596
+ slides: Q
1597
1597
  } = w;
1598
- _ = (Kb(Q) ? e.querySelector(Q) : Q) || e.children[0];
1599
- const me = Kb(te) ? _.querySelectorAll(te) : te;
1598
+ _ = (Kb(te) ? e.querySelector(te) : te) || e.children[0];
1599
+ const me = Kb(Q) ? _.querySelectorAll(Q) : Q;
1600
1600
  S = [].slice.call(me || _.children);
1601
1601
  }
1602
- function C(Q) {
1603
- const te = aU(e, _, S, i, r, Q, l);
1604
- if (Q.loop && !te.slideLooper.canLoop()) {
1605
- const ue = Object.assign({}, Q, {
1602
+ function C(te) {
1603
+ const Q = aU(e, _, S, i, r, te, l);
1604
+ if (te.loop && !Q.slideLooper.canLoop()) {
1605
+ const ue = Object.assign({}, te, {
1606
1606
  loop: !1
1607
1607
  });
1608
1608
  return C(ue);
1609
1609
  }
1610
- return te;
1610
+ return Q;
1611
1611
  }
1612
- function A(Q, te) {
1613
- g || (b = c(b, Q), w = d(b), x = te || x, E(), v = C(w), f([b, ...x.map(({
1612
+ function A(te, Q) {
1613
+ g || (b = c(b, te), w = d(b), x = Q || x, E(), v = C(w), f([b, ...x.map(({
1614
1614
  options: ue
1615
1615
  }) => ue)]).forEach((ue) => a.add(ue, "change", T)), w.active && (v.translate.to(v.location.get()), v.animation.init(), v.slidesInView.init(), v.slideFocus.init(le), v.eventHandler.init(le), v.resizeHandler.init(le), v.slidesHandler.init(le), v.options.loop && v.slideLooper.loop(), _.offsetParent && S.length && v.dragHandler.init(le), k = s.init(le, x)));
1616
1616
  }
1617
- function T(Q, te) {
1617
+ function T(te, Q) {
1618
1618
  const ue = $();
1619
1619
  I(), A(c({
1620
1620
  startIndex: ue
1621
- }, Q), te), l.emit("reInit");
1621
+ }, te), Q), l.emit("reInit");
1622
1622
  }
1623
1623
  function I() {
1624
1624
  v.dragHandler.destroy(), v.eventStore.clear(), v.translate.clear(), v.slideLooper.clear(), v.resizeHandler.destroy(), v.slidesHandler.destroy(), v.slidesInView.destroy(), v.animation.destroy(), s.destroy(), a.clear();
@@ -1626,16 +1626,16 @@ function Hm(e, t, n) {
1626
1626
  function D() {
1627
1627
  g || (g = !0, a.clear(), I(), l.emit("destroy"), l.clear());
1628
1628
  }
1629
- function N(Q, te, ue) {
1630
- !w.active || g || (v.scrollBody.useBaseFriction().useDuration(te === !0 ? 0 : w.duration), v.scrollTo.index(Q, ue || 0));
1629
+ function N(te, Q, ue) {
1630
+ !w.active || g || (v.scrollBody.useBaseFriction().useDuration(Q === !0 ? 0 : w.duration), v.scrollTo.index(te, ue || 0));
1631
1631
  }
1632
- function M(Q) {
1633
- const te = v.index.add(1).get();
1634
- N(te, Q, -1);
1632
+ function M(te) {
1633
+ const Q = v.index.add(1).get();
1634
+ N(Q, te, -1);
1635
1635
  }
1636
- function O(Q) {
1637
- const te = v.index.add(-1).get();
1638
- N(te, Q, 1);
1636
+ function O(te) {
1637
+ const Q = v.index.add(-1).get();
1638
+ N(Q, te, 1);
1639
1639
  }
1640
1640
  function P() {
1641
1641
  return v.index.add(1).get() !== $();
@@ -4969,7 +4969,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
4969
4969
  initialRect: ne,
4970
4970
  measure: V.draggable.measure
4971
4971
  });
4972
- const le = pS(Y, V.draggable.measure, ne), Q = pS(Y ? Y.parentElement : null), te = L({
4972
+ const le = pS(Y, V.draggable.measure, ne), te = pS(Y ? Y.parentElement : null), Q = L({
4973
4973
  activatorEvent: null,
4974
4974
  active: null,
4975
4975
  activeNode: Y,
@@ -4983,7 +4983,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
4983
4983
  over: null,
4984
4984
  scrollableAncestors: [],
4985
4985
  scrollAdjustedTranslate: null
4986
- }), ue = A.getNodeFor((n = te.current.over) == null ? void 0 : n.id), me = Kq({
4986
+ }), ue = A.getNodeFor((n = Q.current.over) == null ? void 0 : n.id), me = Kq({
4987
4987
  measure: V.dragOverlay.measure
4988
4988
  }), ge = (i = me.nodeRef.current) != null ? i : Y, ye = _ ? (r = me.rect) != null ? r : le : null, Se = !!(me.nodeRef.current && me.rect), q = jq(Se ? null : le), ee = fD(ge ? gi(ge) : null), re = Hq(_ ? ue ?? Y : null), fe = qq(re), ae = mD(h, {
4989
4989
  transform: {
@@ -4995,9 +4995,9 @@ const nK = /* @__PURE__ */ Mt(function(t) {
4995
4995
  activatorEvent: P,
4996
4996
  active: D,
4997
4997
  activeNodeRect: le,
4998
- containerNodeRect: Q,
4998
+ containerNodeRect: te,
4999
4999
  draggingNodeRect: ye,
5000
- over: te.current.over,
5000
+ over: Q.current.over,
5001
5001
  overlayNodeRect: me.rect,
5002
5002
  scrollableAncestors: re,
5003
5003
  scrollableAncestorRects: fe,
@@ -5026,7 +5026,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5026
5026
  options: dt,
5027
5027
  // Sensors need to be instantiated with refs for arguments that change over time
5028
5028
  // otherwise they are frozen in time with the stale arguments
5029
- context: te,
5029
+ context: Q,
5030
5030
  onAbort(yt) {
5031
5031
  if (!E.get(yt))
5032
5032
  return;
@@ -5101,7 +5101,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5101
5101
  collisions: Ut,
5102
5102
  over: Un,
5103
5103
  scrollAdjustedTranslate: kn
5104
- } = te.current;
5104
+ } = Q.current;
5105
5105
  let dn = null;
5106
5106
  if (Wt && kn) {
5107
5107
  const {
@@ -5133,7 +5133,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5133
5133
  },
5134
5134
  // eslint-disable-next-line react-hooks/exhaustive-deps
5135
5135
  [E]
5136
- ), be = K((Me, Ue) => (et, dt) => {
5136
+ ), we = K((Me, Ue) => (et, dt) => {
5137
5137
  const ct = et.nativeEvent, Je = E.get(dt);
5138
5138
  if (
5139
5139
  // Another sensor is already instantiating
@@ -5148,7 +5148,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5148
5148
  Me(et, Ue.options, nt) === !0 && (ct.dndKit = {
5149
5149
  capturedBy: Ue.sensor
5150
5150
  }, N.current = dt, ce(et, Ue));
5151
- }, [E, ce]), we = Lq(d, be);
5151
+ }, [E, ce]), xe = Lq(d, we);
5152
5152
  Wq(d), Vr(() => {
5153
5153
  le && x === Ns.Initializing && k(Ns.Initialized);
5154
5154
  }, [le, x]), ie(
@@ -5160,7 +5160,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5160
5160
  activatorEvent: et,
5161
5161
  collisions: dt,
5162
5162
  over: ct
5163
- } = te.current;
5163
+ } = Q.current;
5164
5164
  if (!Ue || !et)
5165
5165
  return;
5166
5166
  const Je = {
@@ -5190,7 +5190,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5190
5190
  collisions: et,
5191
5191
  droppableContainers: dt,
5192
5192
  scrollAdjustedTranslate: ct
5193
- } = te.current;
5193
+ } = Q.current;
5194
5194
  if (!Me || N.current == null || !Ue || !ct)
5195
5195
  return;
5196
5196
  const {
@@ -5220,7 +5220,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5220
5220
  // eslint-disable-next-line react-hooks/exhaustive-deps
5221
5221
  [Ge]
5222
5222
  ), Vr(() => {
5223
- te.current = {
5223
+ Q.current = {
5224
5224
  activatorEvent: P,
5225
5225
  active: D,
5226
5226
  activeNode: Y,
@@ -5252,7 +5252,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5252
5252
  activeNodeRect: le,
5253
5253
  activatorEvent: P,
5254
5254
  collisions: pt,
5255
- containerNodeRect: Q,
5255
+ containerNodeRect: te,
5256
5256
  dragOverlay: me,
5257
5257
  draggableNodes: E,
5258
5258
  droppableContainers: A,
@@ -5264,9 +5264,9 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5264
5264
  measuringConfiguration: V,
5265
5265
  measuringScheduled: B,
5266
5266
  windowRect: ee
5267
- }), [D, Y, le, P, pt, Q, me, E, A, Z, ut, G, re, fe, V, B, ee]), Ee = X(() => ({
5267
+ }), [D, Y, le, P, pt, te, me, E, A, Z, ut, G, re, fe, V, B, ee]), Ee = X(() => ({
5268
5268
  activatorEvent: P,
5269
- activators: we,
5269
+ activators: xe,
5270
5270
  active: D,
5271
5271
  activeNodeRect: le,
5272
5272
  ariaDescribedById: {
@@ -5276,7 +5276,7 @@ const nK = /* @__PURE__ */ Mt(function(t) {
5276
5276
  draggableNodes: E,
5277
5277
  over: ut,
5278
5278
  measureDroppableContainers: G
5279
- }), [P, we, D, le, v, H, E, ut, G]);
5279
+ }), [P, xe, D, le, v, H, E, ut, G]);
5280
5280
  return oe.createElement(JI.Provider, {
5281
5281
  value: w
5282
5282
  }, oe.createElement(vh.Provider, {
@@ -5998,7 +5998,7 @@ function MK(e) {
5998
5998
  items: d,
5999
5999
  newIndex: j,
6000
6000
  containerId: f
6001
- }), Q = d !== le.current.items, te = t({
6001
+ }), te = d !== le.current.items, Q = t({
6002
6002
  active: T,
6003
6003
  containerId: f,
6004
6004
  isDragging: P,
@@ -6012,7 +6012,7 @@ function MK(e) {
6012
6012
  transition: c,
6013
6013
  wasDragging: le.current.activeId != null
6014
6014
  }), ue = DK({
6015
- disabled: !te,
6015
+ disabled: !Q,
6016
6016
  index: x,
6017
6017
  node: E,
6018
6018
  rect: S
@@ -6057,10 +6057,10 @@ function MK(e) {
6057
6057
  if (
6058
6058
  // Temporarily disable transitions for a single frame to set up derived transforms
6059
6059
  ue || // Or to prevent items jumping to back to their "new" position when items change
6060
- Q && le.current.newIndex === x
6060
+ te && le.current.newIndex === x
6061
6061
  )
6062
6062
  return OK;
6063
- if (!(G && !r1(I) || !c) && (V || te))
6063
+ if (!(G && !r1(I) || !c) && (V || Q))
6064
6064
  return Ys.Transition.toString({
6065
6065
  ...c,
6066
6066
  property: wD
@@ -11650,29 +11650,29 @@ function pOe(e) {
11650
11650
  activeItemId: c,
11651
11651
  defaultActiveItemId: d,
11652
11652
  onActiveItemChange: f
11653
- } = e, u = X(() => a || (t.idProvider ? (Q, te) => t.idProvider(Q, te) : fJ), [a, t.idProvider]), [h, p] = a2({
11653
+ } = e, u = X(() => a || (t.idProvider ? (te, Q) => t.idProvider(te, Q) : fJ), [a, t.idProvider]), [h, p] = a2({
11654
11654
  prop: c,
11655
11655
  defaultProp: d ?? null,
11656
- onChange: (Q) => f?.(Q ?? null)
11656
+ onChange: (te) => f?.(te ?? null)
11657
11657
  }), y = h ?? null, g = L(null), v = L(!1), b = L(null), [w, x] = J(!1), k = K(() => {
11658
11658
  b.current !== null && (clearTimeout(b.current), b.current = null);
11659
11659
  }, []), _ = K(() => {
11660
11660
  k(), g.current = null, v.current = !1, x(!1);
11661
11661
  }, [k]), S = K(
11662
- (Q) => {
11663
- _(), p(Q);
11662
+ (te) => {
11663
+ _(), p(te);
11664
11664
  },
11665
11665
  [_, p]
11666
11666
  ), E = n.records, C = L(E), A = L(s), T = L(i), I = L(u), D = L(S);
11667
11667
  C.current = E, A.current = s, T.current = i, I.current = u, D.current = S;
11668
11668
  const N = K(
11669
- (Q) => {
11670
- const te = C.current;
11671
- if (te.length <= Q.loadedItemsCount)
11669
+ (te) => {
11670
+ const Q = C.current;
11671
+ if (Q.length <= te.loadedItemsCount)
11672
11672
  return;
11673
- const ue = Q.previousId == null ? -1 : te.findIndex(
11674
- (ge, ye) => I.current(ge, ye) === Q.previousId
11675
- ), me = te[ue + 1];
11673
+ const ue = te.previousId == null ? -1 : Q.findIndex(
11674
+ (ge, ye) => I.current(ge, ye) === te.previousId
11675
+ ), me = Q[ue + 1];
11676
11676
  me && D.current(
11677
11677
  I.current(me, ue + 1)
11678
11678
  );
@@ -11682,15 +11682,15 @@ function pOe(e) {
11682
11682
  k(), b.current = setTimeout(() => {
11683
11683
  if (b.current = null, g.current === null || v.current || A.current)
11684
11684
  return;
11685
- const Q = g.current;
11686
- if (Q.type === "first" || Q.type === "last") {
11687
- const te = T.current;
11688
- if (te?.type === "pages") {
11689
- if (te.currentPage === Q.targetPage)
11685
+ const te = g.current;
11686
+ if (te.type === "first" || te.type === "last") {
11687
+ const Q = T.current;
11688
+ if (Q?.type === "pages") {
11689
+ if (Q.currentPage === te.targetPage)
11690
11690
  return;
11691
11691
  _();
11692
11692
  }
11693
- } else Q.type === "next-after-current" && N(Q);
11693
+ } else te.type === "next-after-current" && N(te);
11694
11694
  _();
11695
11695
  }, 0);
11696
11696
  }, [_, k, N]);
@@ -11703,8 +11703,8 @@ function pOe(e) {
11703
11703
  ), H = X(() => O === -1 || !i ? null : i.type === "pages" ? (i.currentPage - 1) * i.perPage + O : O, [O, i]), $ = X(() => i ? i.type === "pages" ? i.currentPage < i.pagesCount : i.type === "infinite-scroll" ? i.hasMore : !1 : !1, [i]), V = X(() => i && i.type === "pages" ? i.currentPage > 1 : !1, [i]), Z = X(() => O === -1 ? !1 : O < E.length - 1 ? !0 : $, [O, E.length, $]), G = X(() => O === -1 ? !1 : O > 0 ? !0 : V, [O, V]), B = K(() => {
11704
11704
  if (!(g.current !== null || s) && O !== -1) {
11705
11705
  if (O < E.length - 1) {
11706
- const Q = E[O + 1];
11707
- S(u(Q, O + 1));
11706
+ const te = E[O + 1];
11707
+ S(u(te, O + 1));
11708
11708
  return;
11709
11709
  }
11710
11710
  if (!(!$ || !i))
@@ -11715,8 +11715,8 @@ function pOe(e) {
11715
11715
  }, x(!0);
11716
11716
  try {
11717
11717
  r(i.currentPage + 1);
11718
- } catch (Q) {
11719
- throw _(), Q;
11718
+ } catch (te) {
11719
+ throw _(), te;
11720
11720
  }
11721
11721
  } else i.type === "infinite-scroll" && (g.current = {
11722
11722
  type: "next-after-current",
@@ -11739,8 +11739,8 @@ function pOe(e) {
11739
11739
  ]), Y = K(() => {
11740
11740
  if (!(g.current !== null || s) && O !== -1) {
11741
11741
  if (O > 0) {
11742
- const Q = E[O - 1];
11743
- S(u(Q, O - 1));
11742
+ const te = E[O - 1];
11743
+ S(u(te, O - 1));
11744
11744
  return;
11745
11745
  }
11746
11746
  if (!(!V || !i) && i.type === "pages") {
@@ -11750,8 +11750,8 @@ function pOe(e) {
11750
11750
  }, x(!0);
11751
11751
  try {
11752
11752
  r(i.currentPage - 1);
11753
- } catch (Q) {
11754
- throw _(), Q;
11753
+ } catch (te) {
11754
+ throw _(), te;
11755
11755
  }
11756
11756
  }
11757
11757
  }
@@ -11777,33 +11777,33 @@ function pOe(e) {
11777
11777
  _();
11778
11778
  return;
11779
11779
  }
11780
- const Q = g.current;
11781
- if (Q.type === "first") {
11782
- if (i?.type === "pages" && i.currentPage !== Q.targetPage) {
11780
+ const te = g.current;
11781
+ if (te.type === "first") {
11782
+ if (i?.type === "pages" && i.currentPage !== te.targetPage) {
11783
11783
  v.current && _();
11784
11784
  return;
11785
11785
  }
11786
- const te = E[0];
11787
- S(u(te, 0));
11788
- } else if (Q.type === "last") {
11789
- if (i?.type === "pages" && i.currentPage !== Q.targetPage) {
11786
+ const Q = E[0];
11787
+ S(u(Q, 0));
11788
+ } else if (te.type === "last") {
11789
+ if (i?.type === "pages" && i.currentPage !== te.targetPage) {
11790
11790
  v.current && _();
11791
11791
  return;
11792
11792
  }
11793
- const te = E[E.length - 1];
11794
- S(u(te, E.length - 1));
11795
- } else if (Q.type === "next-after-current") {
11796
- if (E.length <= Q.loadedItemsCount) {
11793
+ const Q = E[E.length - 1];
11794
+ S(u(Q, E.length - 1));
11795
+ } else if (te.type === "next-after-current") {
11796
+ if (E.length <= te.loadedItemsCount) {
11797
11797
  v.current && _();
11798
11798
  return;
11799
11799
  }
11800
- if (Q.previousId != null) {
11801
- const te = E.findIndex(
11802
- (ue, me) => u(ue, me) === Q.previousId
11800
+ if (te.previousId != null) {
11801
+ const Q = E.findIndex(
11802
+ (ue, me) => u(ue, me) === te.previousId
11803
11803
  );
11804
- if (te >= 0 && te < E.length - 1) {
11805
- const ue = E[te + 1];
11806
- S(u(ue, te + 1));
11804
+ if (Q >= 0 && Q < E.length - 1) {
11805
+ const ue = E[Q + 1];
11806
+ S(u(ue, Q + 1));
11807
11807
  } else {
11808
11808
  _();
11809
11809
  return;
@@ -12005,15 +12005,15 @@ function ZD({
12005
12005
  const j = (o ?? {})[A] || [];
12006
12006
  if (!b?.value)
12007
12007
  return [];
12008
- const ne = b.value, le = j.map((Q, te) => {
12009
- const ue = typeof Q.value == "function" ? Q.value(I.toRange(ne)) : uJ(
12008
+ const ne = b.value, le = j.map((te, Q) => {
12009
+ const ue = typeof te.value == "function" ? te.value(I.toRange(ne)) : uJ(
12010
12010
  I.toRange(ne),
12011
- Q.value.delta,
12012
- Q.value.units
12011
+ te.value.delta,
12012
+ te.value.units
12013
12013
  ), me = Array.isArray(ue) ? ue.map((ge) => I.toString(ge, g)).join(", ") : I.toString(ue, g);
12014
12014
  return {
12015
- label: Q.label,
12016
- value: (te + 1).toString(),
12015
+ label: te.label,
12016
+ value: (Q + 1).toString(),
12017
12017
  // This leaves index 0 spot vacant for the 'none' option.
12018
12018
  description: me,
12019
12019
  dateValue: ue
@@ -13230,21 +13230,21 @@ const RJ = () => WO("(max-width: 560px)", {
13230
13230
  [l, O, S]
13231
13231
  ), F = K(
13232
13232
  (Y, W) => (j) => {
13233
- const ne = j.target.value, le = Y === _[0], Q = c && le && ne.trimStart().startsWith("-");
13233
+ const ne = j.target.value, le = Y === _[0], te = c && le && ne.trimStart().startsWith("-");
13234
13234
  if (ne === "") {
13235
13235
  const ye = le ? !1 : N;
13236
13236
  P({ ...D, [Y]: 0 }, ye);
13237
13237
  return;
13238
13238
  }
13239
- const te = ne.replace(/\D/g, "");
13240
- if (te === "") {
13241
- Q && P({ ...D, [Y]: 0 }, !0);
13239
+ const Q = ne.replace(/\D/g, "");
13240
+ if (Q === "") {
13241
+ te && P({ ...D, [Y]: 0 }, !0);
13242
13242
  return;
13243
13243
  }
13244
- const ue = parseInt(te, 10);
13244
+ const ue = parseInt(Q, 10);
13245
13245
  if (isNaN(ue))
13246
13246
  return;
13247
- const me = jj(ue, W), ge = c && le ? Q : N;
13247
+ const me = jj(ue, W), ge = c && le ? te : N;
13248
13248
  P({ ...D, [Y]: me }, ge);
13249
13249
  },
13250
13250
  [D, P, c, N, _]
@@ -13331,7 +13331,7 @@ const RJ = () => WO("(max-width: 560px)", {
13331
13331
  "data-status": G,
13332
13332
  "data-disabled": p ? "" : void 0,
13333
13333
  children: _.map((Y, W) => {
13334
- const j = u?.[Y]?.max, ne = D[Y], le = u?.[Y]?.suffix ?? BJ[Y], Q = ne > 0 ? String(ne) : "", te = N && W === 0, ue = te ? `-${Q}` : Q, me = u?.[Y]?.maxVisibleDigits, ge = (typeof me == "number" && Number.isFinite(me) ? Math.max(1, Math.floor(me)) : jJ) + (te ? 1 : 0);
13334
+ const j = u?.[Y]?.max, ne = D[Y], le = u?.[Y]?.suffix ?? BJ[Y], te = ne > 0 ? String(ne) : "", Q = N && W === 0, ue = Q ? `-${te}` : te, me = u?.[Y]?.maxVisibleDigits, ge = (typeof me == "number" && Number.isFinite(me) ? Math.max(1, Math.floor(me)) : jJ) + (Q ? 1 : 0);
13335
13335
  return /* @__PURE__ */ R(Vf, { children: [
13336
13336
  W > 0 ? /* @__PURE__ */ m(
13337
13337
  st,
@@ -14488,7 +14488,7 @@ function fZ(e = {}) {
14488
14488
  ae.disabled = fe._f.disabled || q;
14489
14489
  }));
14490
14490
  }, 0, !1));
14491
- }, Q = (q, ee) => async (re) => {
14491
+ }, te = (q, ee) => async (re) => {
14492
14492
  let fe;
14493
14493
  re && (re.preventDefault && re.preventDefault(), re.persist && re.persist());
14494
14494
  let ae = wi(o);
@@ -14521,7 +14521,7 @@ function fZ(e = {}) {
14521
14521
  errors: n.errors
14522
14522
  }), fe)
14523
14523
  throw fe;
14524
- }, te = (q, ee = {}) => {
14524
+ }, Q = (q, ee = {}) => {
14525
14525
  Le(i, q) && (yn(ee.defaultValue) ? P(q, wi(Le(r, q))) : (P(q, ee.defaultValue), jt(r, q, wi(ee.defaultValue))), ee.keepTouched || Nn(n.touchedFields, q), ee.keepDirty || (Nn(n.dirtyFields, q), n.isDirty = ee.defaultValue ? I(q, wi(Le(r, q))) : I()), ee.keepError || (Nn(n.errors, q), d.isValid && g()), f.state.next({ ...n }));
14526
14526
  }, ue = (q, ee = {}) => {
14527
14527
  const re = q ? wi(q) : r, fe = wi(re), ae = xi(q), de = ae ? r : fe;
@@ -14580,7 +14580,7 @@ function fZ(e = {}) {
14580
14580
  register: j,
14581
14581
  unregister: Y,
14582
14582
  getFieldState: V,
14583
- handleSubmit: Q,
14583
+ handleSubmit: te,
14584
14584
  setError: G,
14585
14585
  _executeSchema: E,
14586
14586
  _getWatch: D,
@@ -14645,12 +14645,12 @@ function fZ(e = {}) {
14645
14645
  },
14646
14646
  trigger: H,
14647
14647
  register: j,
14648
- handleSubmit: Q,
14648
+ handleSubmit: te,
14649
14649
  watch: B,
14650
14650
  setValue: P,
14651
14651
  getValues: $,
14652
14652
  reset: me,
14653
- resetField: te,
14653
+ resetField: Q,
14654
14654
  clearErrors: Z,
14655
14655
  unregister: Y,
14656
14656
  setError: G,
@@ -17260,7 +17260,7 @@ function xQ({
17260
17260
  null
17261
17261
  ), [ne, le] = J(
17262
17262
  null
17263
- ), Q = L(null), te = L(!1), ue = L(null), me = L(null), ge = L(null), ye = L(null), Se = L(null), q = L(0), ee = L(0), re = L(!1), fe = L(null), ae = K(
17263
+ ), te = L(null), Q = L(!1), ue = L(null), me = L(null), ge = L(null), ye = L(null), Se = L(null), q = L(0), ee = L(0), re = L(!1), fe = L(null), ae = K(
17264
17264
  (Ee, ze) => {
17265
17265
  ge.current && (clearTimeout(ge.current), ge.current = null);
17266
17266
  const Ue = (o ? V : I).findIndex((nt) => nt.id === Ee), et = Se.current !== null && Ue < Se.current;
@@ -17294,12 +17294,12 @@ function xQ({
17294
17294
  ge.current && clearTimeout(ge.current);
17295
17295
  }, []);
17296
17296
  const de = K(() => {
17297
- if (te.current)
17297
+ if (Q.current)
17298
17298
  return;
17299
17299
  ge.current && clearTimeout(ge.current);
17300
17300
  const Ee = re.current ? 1e3 : 800;
17301
17301
  ge.current = setTimeout(() => {
17302
- if (te.current) {
17302
+ if (Q.current) {
17303
17303
  ge.current = null;
17304
17304
  return;
17305
17305
  }
@@ -17334,10 +17334,10 @@ function xQ({
17334
17334
  I
17335
17335
  ]), he = K(
17336
17336
  (Ee, ze) => {
17337
- te.current = !0;
17338
- const Me = Q.current;
17337
+ Q.current = !0;
17338
+ const Me = te.current;
17339
17339
  if (re.current = !1, Y(null), j(null), ue.current = null, me.current = null, ge.current && (clearTimeout(ge.current), ge.current = null), !Me || Me === Ee) {
17340
- Q.current = null, G(null), Y(null), j(null);
17340
+ te.current = null, G(null), Y(null), j(null);
17341
17341
  return;
17342
17342
  }
17343
17343
  const Ue = Hi(M, Ee), et = Hi(M, Me);
@@ -17377,8 +17377,8 @@ function xQ({
17377
17377
  le(null);
17378
17378
  }, 300));
17379
17379
  }
17380
- re.current = !1, Q.current = null, te.current = !0, Se.current = null, q.current = 0, ee.current = 0, fe.current && (clearTimeout(fe.current), fe.current = null), G(null), setTimeout(() => {
17381
- te.current = !1;
17380
+ re.current = !1, te.current = null, Q.current = !0, Se.current = null, q.current = 0, ee.current = 0, fe.current && (clearTimeout(fe.current), fe.current = null), G(null), setTimeout(() => {
17381
+ Q.current = !1;
17382
17382
  }, 600);
17383
17383
  },
17384
17384
  [M, $]
@@ -17386,24 +17386,24 @@ function xQ({
17386
17386
  ge.current && (clearTimeout(ge.current), ge.current = null), fe.current && (clearTimeout(fe.current), fe.current = null);
17387
17387
  }, []), Te = K(
17388
17388
  (Ee) => {
17389
- ve(), Q.current = Ee, te.current = !1, ye.current = null, G(Ee);
17389
+ ve(), te.current = Ee, Q.current = !1, ye.current = null, G(Ee);
17390
17390
  },
17391
17391
  [ve]
17392
17392
  ), He = K(() => {
17393
- re.current = !1, te.current = !1, ye.current = null, Se.current = null, q.current = 0, ee.current = 0, ve(), Y(null), j(null), ue.current = null, me.current = null, G(null), Q.current = null;
17393
+ re.current = !1, Q.current = !1, ye.current = null, Se.current = null, q.current = 0, ee.current = 0, ve(), Y(null), j(null), ue.current = null, me.current = null, G(null), te.current = null;
17394
17394
  }, [ve]), Xe = K(() => {
17395
17395
  ge.current && (clearTimeout(ge.current), ge.current = null), re.current = !1;
17396
17396
  const Ee = ue.current || ye.current?.itemId, ze = me.current || ye.current?.position;
17397
- !te.current && Ee && ze && Q.current && Q.current !== Ee && requestAnimationFrame(() => {
17397
+ !Q.current && Ee && ze && te.current && te.current !== Ee && requestAnimationFrame(() => {
17398
17398
  requestAnimationFrame(() => {
17399
- if (!te.current) {
17399
+ if (!Q.current) {
17400
17400
  const Ue = ue.current || ye.current?.itemId, et = me.current || ye.current?.position;
17401
17401
  Ue && et && he(Ue, et);
17402
17402
  }
17403
17403
  });
17404
17404
  }), fe.current && (clearTimeout(fe.current), fe.current = null);
17405
17405
  const Me = setTimeout(() => {
17406
- te.current || (ye.current = null, Se.current = null, q.current = 0, ee.current = 0, Y(null), j(null), ue.current = null, me.current = null, G(null), Q.current = null), fe.current === Me && (fe.current = null);
17406
+ Q.current || (ye.current = null, Se.current = null, q.current = 0, ee.current = 0, Y(null), j(null), ue.current = null, me.current = null, G(null), te.current = null), fe.current === Me && (fe.current = null);
17407
17407
  }, 500);
17408
17408
  fe.current = Me;
17409
17409
  }, [he]);
@@ -17415,9 +17415,9 @@ function xQ({
17415
17415
  [Te, He, Xe]
17416
17416
  )
17417
17417
  );
17418
- const pt = o ? V : I, { items: Ge, hidden: ut } = C ? pQ(pt, c) : { items: pt, hidden: 0 }, ke = a && C ? K9(Ge) : [], at = new Set(ke.map((Ee) => Ee.id)), pe = `${w}-list`, se = (Ee) => `${w}-option-${Ee}`, ce = (Ee) => at.has(Ee) ? se(Ee) : void 0, be = ke.length === 0 || S === Gl ? Gl : Math.min(S, ke.length - 1), we = be === Gl ? void 0 : ke[be], Ae = (Ee) => yQ(Ee, {
17418
+ const pt = o ? V : I, { items: Ge, hidden: ut } = C ? pQ(pt, c) : { items: pt, hidden: 0 }, ke = a && C ? K9(Ge) : [], at = new Set(ke.map((Ee) => Ee.id)), pe = `${w}-list`, se = (Ee) => `${w}-option-${Ee}`, ce = (Ee) => at.has(Ee) ? se(Ee) : void 0, we = ke.length === 0 || S === Gl ? Gl : Math.min(S, ke.length - 1), xe = we === Gl ? void 0 : ke[we], Ae = (Ee) => yQ(Ee, {
17419
17419
  results: ke,
17420
- activeIndex: be,
17420
+ activeIndex: we,
17421
17421
  hasQuery: k !== "",
17422
17422
  onClear: () => A(""),
17423
17423
  onActiveIndexChange: (ze) => {
@@ -17444,7 +17444,7 @@ function xQ({
17444
17444
  onKeyDown: Ae,
17445
17445
  listId: pe,
17446
17446
  expanded: C,
17447
- activeOptionId: we && se(we.id)
17447
+ activeOptionId: xe && se(xe.id)
17448
17448
  })
17449
17449
  }
17450
17450
  ) }) : null,
@@ -17492,7 +17492,7 @@ function xQ({
17492
17492
  onDrop: he,
17493
17493
  justDroppedItemId: ne,
17494
17494
  optionIdOf: ce,
17495
- activeOptionItemId: we?.id ?? null
17495
+ activeOptionItemId: xe?.id ?? null
17496
17496
  })
17497
17497
  ),
17498
17498
  o && ze ? /* @__PURE__ */ m(
@@ -17882,7 +17882,7 @@ const DC = "bg-repeat-x bg-origin-border [background-image:repeating-linear-grad
17882
17882
  /* @__PURE__ */ R("div", { className: "flex grow flex-col gap-3", children: [
17883
17883
  /* @__PURE__ */ R("div", { className: "flex max-w-[640px] flex-col gap-1", children: [
17884
17884
  /* @__PURE__ */ m("h2", { className: "text-lg font-semibold text-f1-foreground", children: e }),
17885
- /* @__PURE__ */ m("p", { className: "text-f1-foreground-secondary", children: t })
17885
+ /* @__PURE__ */ m("p", { className: "whitespace-pre-line text-f1-foreground-secondary", children: t })
17886
17886
  ] }),
17887
17887
  i ? /* @__PURE__ */ m("div", { className: "w-fit", children: /* @__PURE__ */ m(
17888
17888
  hd,
@@ -24381,6 +24381,7 @@ const gie = $t(
24381
24381
  label: I.label,
24382
24382
  itemCount: I.itemCount,
24383
24383
  avatar: I.avatar,
24384
+ metadata: I.metadata,
24384
24385
  onOpenChange: (D) => T(I.key, D),
24385
24386
  open: A[I.key],
24386
24387
  selectable: !!d.selectable,
@@ -25471,16 +25472,16 @@ const Lie = (e, t) => /* @__PURE__ */ m(
25471
25472
  w ? h.map((z, H) => {
25472
25473
  const $ = z, V = e.source.itemsWithChildren?.($), Z = H === 0, G = H === h.length - 1, B = (e.nestedRowProps?.depth ?? 0) + 1, Y = () => {
25473
25474
  if (Z)
25474
- return (Q) => {
25475
- A(Q);
25475
+ return (te) => {
25476
+ A(te);
25476
25477
  };
25477
25478
  if (G && !x && !_)
25478
- return (Q) => {
25479
- T(Q);
25479
+ return (te) => {
25480
+ T(te);
25480
25481
  };
25481
25482
  }, W = G && P && !x, j = e.rowWrapper;
25482
25483
  if (V) {
25483
- const Q = /* @__PURE__ */ Im(
25484
+ const te = /* @__PURE__ */ Im(
25484
25485
  yP,
25485
25486
  {
25486
25487
  ...e,
@@ -25504,10 +25505,10 @@ const Lie = (e, t) => /* @__PURE__ */ m(
25504
25505
  {
25505
25506
  item: $,
25506
25507
  index: H,
25507
- children: Q
25508
+ children: te
25508
25509
  },
25509
25510
  `nested-row-${e.groupIndex}-${z.id}-${e.index}-${H}`
25510
- ) : Q;
25511
+ ) : te;
25511
25512
  }
25512
25513
  const ne = !W && O, le = /* @__PURE__ */ Im(
25513
25514
  fu,
@@ -25657,8 +25658,8 @@ const Lie = (e, t) => /* @__PURE__ */ m(
25657
25658
  primaryItemActions: j,
25658
25659
  dropdownItemActions: ne,
25659
25660
  mobileDropdownItemActions: le,
25660
- handleDropDownOpenChange: Q,
25661
- dropDownOpen: te
25661
+ handleDropDownOpenChange: te,
25662
+ dropDownOpen: Q
25662
25663
  } = lP({ source: e, item: n }), ue = h?.hasLoadedChildren === void 0 || h?.hasLoadedChildren, me = AH(), ge = F && ue && !!t, Se = M !== void 0 && !P && !ge && me, q = L(n);
25663
25664
  if (q.current = n, ie(() => {
25664
25665
  if (!(M === void 0 || !Se || !C))
@@ -25813,7 +25814,7 @@ const Lie = (e, t) => /* @__PURE__ */ m(
25813
25814
  className: "flex flex-nowrap justify-center",
25814
25815
  primaryItemActions: j,
25815
25816
  dropdownItemActions: ne,
25816
- handleDropDownOpenChange: Q
25817
+ handleDropDownOpenChange: te
25817
25818
  }
25818
25819
  )
25819
25820
  },
@@ -25822,14 +25823,14 @@ const Lie = (e, t) => /* @__PURE__ */ m(
25822
25823
  /* @__PURE__ */ m("td", { className: "sticky right-0 top-0 z-10 hidden md:table-cell", children: /* @__PURE__ */ m(
25823
25824
  i3,
25824
25825
  {
25825
- dropDownOpen: te,
25826
+ dropDownOpen: Q,
25826
25827
  className: "pl-8",
25827
25828
  children: /* @__PURE__ */ m(
25828
25829
  ug,
25829
25830
  {
25830
25831
  primaryItemActions: j,
25831
25832
  dropdownItemActions: ne,
25832
- handleDropDownOpenChange: Q
25833
+ handleDropDownOpenChange: te
25833
25834
  }
25834
25835
  )
25835
25836
  }
@@ -25848,7 +25849,7 @@ const Lie = (e, t) => /* @__PURE__ */ m(
25848
25849
  n3,
25849
25850
  {
25850
25851
  items: le,
25851
- onOpenChange: Q
25852
+ onOpenChange: te
25852
25853
  }
25853
25854
  )
25854
25855
  },
@@ -26407,10 +26408,10 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26407
26408
  summaries: ne,
26408
26409
  committedQuery: le
26409
26410
  } = E1(t, {
26410
- onError: (xe) => {
26411
- s(xe);
26411
+ onError: (be) => {
26412
+ s(be);
26412
26413
  }
26413
- }), { currentSortings: Q, setCurrentSortings: te, isLoading: ue } = t, me = w !== !1 && !!t.itemActions, ge = k === "editableTable", ye = ge && !u, Se = ge ? 1 : 2, q = X(
26414
+ }), { currentSortings: te, setCurrentSortings: Q, isLoading: ue } = t, me = w !== !1 && !!t.itemActions, ge = k === "editableTable", ye = ge && !u, Se = ge ? 1 : 2, q = X(
26414
26415
  () => w === !1 ? {
26415
26416
  ...t,
26416
26417
  itemActions: void 0
@@ -26420,12 +26421,12 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26420
26421
  ), ee = t.definition ?? t, re = X(
26421
26422
  () => w === !1 ? { ...ee, itemActions: void 0 } : ee,
26422
26423
  [ee, w]
26423
- ), fe = (xe) => q.itemsWithChildren?.(xe) ? q : void 0, ae = X(() => IH(), []), { loadingIndicatorRef: de } = t3(
26424
+ ), fe = (be) => q.itemsWithChildren?.(be) ? q : void 0, ae = X(() => IH(), []), { loadingIndicatorRef: de } = t3(
26424
26425
  G,
26425
26426
  ue,
26426
26427
  W,
26427
26428
  j
26428
- ), he = N.length, ve = (xe, je) => "id" in xe && xe.id !== void 0 && xe.id !== null ? `id:${String(xe.id)}` : `index:${String(je)}`, Te = Z?.type === "flat" ? Z.records.map((xe, je) => `row-${ve(xe, je)}`) : [], He = Xie(Te, le), Xe = Qie(), {
26429
+ ), he = N.length, ve = (be, je) => "id" in be && be.id !== void 0 && be.id !== null ? `id:${String(be.id)}` : `index:${String(je)}`, Te = Z?.type === "flat" ? Z.records.map((be, je) => `row-${ve(be, je)}`) : [], He = Xie(Te, le), Xe = Qie(), {
26429
26430
  selectedItems: pt,
26430
26431
  allSelectedStatus: Ge,
26431
26432
  groupAllSelectedStatus: ut,
@@ -26442,41 +26443,41 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26442
26443
  selectedState: t.defaultSelectedItems,
26443
26444
  getRenderedSelectableEntries: Xe.getEntries,
26444
26445
  renderedSelectableCount: Xe.ids.length
26445
- }), ce = Xe.ids.length > 0 ? Xe.ids : (Z?.records ?? []).filter((xe) => !t.selectionDisabled?.(xe)).map((xe) => t.selectable?.(xe)).filter((xe) => xe !== void 0), be = Math.max(
26446
+ }), ce = Xe.ids.length > 0 ? Xe.ids : (Z?.records ?? []).filter((be) => !t.selectionDisabled?.(be)).map((be) => t.selectable?.(be)).filter((be) => be !== void 0), we = Math.max(
26446
26447
  G?.total ?? 0,
26447
26448
  ce.length
26448
26449
  );
26449
26450
  ie(() => {
26450
26451
  o({
26451
26452
  totalItems: G?.total || Z.records.length,
26452
- selectableTotal: be,
26453
+ selectableTotal: we,
26453
26454
  filters: t.currentFilters,
26454
26455
  search: t.currentSearch,
26455
26456
  isInitialLoading: Y,
26456
26457
  data: Z.records
26457
26458
  });
26458
- }, [G?.total, Z.records, be]);
26459
- const we = L(ke);
26460
- we.current = ke;
26459
+ }, [G?.total, Z.records, we]);
26460
+ const xe = L(ke);
26461
+ xe.current = ke;
26461
26462
  const Ae = X(
26462
- () => (xe, je) => we.current(xe, je),
26463
+ () => (be, je) => xe.current(be, je),
26463
26464
  []
26464
- ), Ee = (xe) => {
26465
- const je = q.selectable?.(xe);
26465
+ ), Ee = (be) => {
26466
+ const je = q.selectable?.(be);
26466
26467
  return je !== void 0 && pt.has(je);
26467
- }, ze = (xe) => q.itemsWithChildren?.(xe) ? pt : void 0, Me = X(() => !ne || !t.summaries ? null : {
26468
+ }, ze = (be) => q.itemsWithChildren?.(be) ? pt : void 0, Me = X(() => !ne || !t.summaries ? null : {
26468
26469
  data: ne,
26469
26470
  sticky: !0,
26470
26471
  label: t.summaries?.label
26471
- }, [ne, t.summaries]), Ue = (xe, je, Ct) => {
26472
- if (!(!xe || !je))
26473
- return Ct === null ? "none" : Ct.field === xe ? Ct.order : "none";
26474
- }, et = (xe) => xe == null || xe === "", dt = (xe) => xe ?? _, ct = (xe) => {
26475
- te(() => !Q || Q.field !== xe ? {
26476
- field: xe,
26472
+ }, [ne, t.summaries]), Ue = (be, je, Ct) => {
26473
+ if (!(!be || !je))
26474
+ return Ct === null ? "none" : Ct.field === be ? Ct.order : "none";
26475
+ }, et = (be) => be == null || be === "", dt = (be) => be ?? _, ct = (be) => {
26476
+ Q(() => !te || te.field !== be ? {
26477
+ field: be,
26477
26478
  order: "asc"
26478
- } : Q.order === "asc" ? {
26479
- field: xe,
26479
+ } : te.order === "asc" ? {
26480
+ field: be,
26480
26481
  order: "desc"
26481
26482
  } : null);
26482
26483
  }, Je = t.grouping?.collapsible, nt = t.grouping?.defaultOpenGroups, { openGroups: gt, setGroupOpen: yt } = Xy(
@@ -26487,16 +26488,16 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26487
26488
  O,
26488
26489
  !!t.selectable
26489
26490
  ), Un = Z?.records.some(
26490
- (xe) => t.itemsWithChildren?.(xe)
26491
+ (be) => t.itemsWithChildren?.(be)
26491
26492
  );
26492
26493
  if (Y)
26493
26494
  return /* @__PURE__ */ m(Sw.Skeleton, { columns: sn });
26494
- t.sortings || O.forEach((xe) => {
26495
- xe.sorting && console.warn(
26495
+ t.sortings || O.forEach((be) => {
26496
+ be.sorting && console.warn(
26496
26497
  "Sorting is defined on a column but no sortings are provided in the data source"
26497
26498
  );
26498
26499
  });
26499
- const kn = Ge.selectedCount > 0 || Ge.checked, dn = t.disableSelectAll ?? !1, _n = ce.length > 0 && ce.every((xe) => pt.has(xe)), Tn = Ge.checked && !Ge.indeterminate || _n, yi = !dn && !!t.allPagesSelection && (!Ge.checked || Ge.indeterminate) && G?.total !== void 0 && be > Ge.selectedCount, Xi = O.length + (me ? Se : 0), Pi = Ge.selectedCount === 1 ? E.status.selected.singular : E.status.selected.plural;
26500
+ const kn = Ge.selectedCount > 0 || Ge.checked, dn = t.disableSelectAll ?? !1, _n = ce.length > 0 && ce.every((be) => pt.has(be)), Tn = Ge.checked && !Ge.indeterminate || _n, yi = !dn && !!t.allPagesSelection && (!Ge.checked || Ge.indeterminate) && G?.total !== void 0 && we > Ge.selectedCount, Xi = O.length + (me ? Se : 0), Pi = Ge.selectedCount === 1 ? E.status.selected.singular : E.status.selected.plural;
26500
26501
  return /* @__PURE__ */ m("div", { className: "flex h-full min-h-0 flex-col gap-4", children: /* @__PURE__ */ R(
26501
26502
  hP,
26502
26503
  {
@@ -26529,28 +26530,28 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26529
26530
  children: /* @__PURE__ */ m("div", { className: "ml-3.5 flex w-full items-center justify-start" })
26530
26531
  }
26531
26532
  ) : null,
26532
- P.map((xe, je) => {
26533
- const Ct = xe.type === "group" && xe.collapsible, Bt = U(
26533
+ P.map((be, je) => {
26534
+ const Ct = be.type === "group" && be.collapsible, Bt = U(
26534
26535
  nc,
26535
26536
  !Ct && "hover:after:bg-transparent"
26536
- ), St = xe.columnIndices.every(
26537
+ ), St = be.columnIndices.every(
26537
26538
  (gn) => O[gn].align === "right"
26538
26539
  ) ? "right" : "left";
26539
- return xe.type === "group" ? /* @__PURE__ */ m(
26540
+ return be.type === "group" ? /* @__PURE__ */ m(
26540
26541
  zi,
26541
26542
  {
26542
26543
  align: St,
26543
- colSpan: xe.colSpan,
26544
+ colSpan: be.colSpan,
26544
26545
  className: Bt,
26545
- highlighted: xe.columnIndices.some(
26546
+ highlighted: be.columnIndices.some(
26546
26547
  (gn) => O[gn].highlighted
26547
26548
  ),
26548
- onClick: xe.collapsible ? () => F(xe.id) : void 0,
26549
- children: xe.collapsible ? /* @__PURE__ */ R(
26549
+ onClick: be.collapsible ? () => F(be.id) : void 0,
26550
+ children: be.collapsible ? /* @__PURE__ */ R(
26550
26551
  "button",
26551
26552
  {
26552
26553
  type: "button",
26553
- "aria-expanded": !xe.collapsed,
26554
+ "aria-expanded": !be.collapsed,
26554
26555
  className: U(
26555
26556
  "flex max-w-full items-center gap-1 rounded-xs font-medium text-f1-foreground-secondary",
26556
26557
  // The icon takes the side the label is not
@@ -26560,32 +26561,32 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26560
26561
  tn()
26561
26562
  ),
26562
26563
  children: [
26563
- /* @__PURE__ */ m("span", { className: "truncate", children: xe.label }),
26564
+ /* @__PURE__ */ m("span", { className: "truncate", children: be.label }),
26564
26565
  /* @__PURE__ */ m(
26565
26566
  st,
26566
26567
  {
26567
26568
  "aria-hidden": "true",
26568
26569
  size: "sm",
26569
- icon: xe.collapsed ? DH : MH
26570
+ icon: be.collapsed ? DH : MH
26570
26571
  }
26571
26572
  )
26572
26573
  ]
26573
26574
  }
26574
- ) : xe.label
26575
+ ) : be.label
26575
26576
  },
26576
- `header-group-${xe.id}-${je}`
26577
+ `header-group-${be.id}-${je}`
26577
26578
  ) : /* @__PURE__ */ m(
26578
26579
  zi,
26579
26580
  {
26580
26581
  align: St,
26581
26582
  className: Bt,
26582
- width: O[xe.columnIndices[0]].width,
26583
- minWidth: O[xe.columnIndices[0]].minWidth,
26584
- highlighted: !!O[xe.columnIndices[0]].highlighted,
26585
- sticky: Wt(xe.columnIndices[0]),
26583
+ width: O[be.columnIndices[0]].width,
26584
+ minWidth: O[be.columnIndices[0]].minWidth,
26585
+ highlighted: !!O[be.columnIndices[0]].highlighted,
26586
+ sticky: Wt(be.columnIndices[0]),
26586
26587
  children: /* @__PURE__ */ m("span", {})
26587
26588
  },
26588
- `header-ungrouped-${xe.columnIndices[0]}`
26589
+ `header-ungrouped-${be.columnIndices[0]}`
26589
26590
  );
26590
26591
  }),
26591
26592
  me ? ye ? /* @__PURE__ */ m(
@@ -26635,7 +26636,7 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26635
26636
  ) })
26636
26637
  }
26637
26638
  ) : null,
26638
- O.map(({ sorting: xe, label: je, ...Ct }, Bt) => {
26639
+ O.map(({ sorting: be, label: je, ...Ct }, Bt) => {
26639
26640
  const St = P?.find(
26640
26641
  (Sn) => Sn.type === "group" && Sn.columnIndices.includes(Bt)
26641
26642
  ), gn = !!P && (!St || St.columnIndices[St.columnIndices.length - 1] === Bt);
@@ -26643,9 +26644,9 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26643
26644
  zi,
26644
26645
  {
26645
26646
  sortState: Ue(
26646
- xe,
26647
+ be,
26647
26648
  t.sortings,
26648
- Q
26649
+ te
26649
26650
  ),
26650
26651
  width: Ct.width,
26651
26652
  align: Ct.align,
@@ -26660,8 +26661,8 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26660
26661
  qt({ id: Ct.id, label: je })
26661
26662
  )
26662
26663
  ) || void 0,
26663
- onSortClick: xe ? () => {
26664
- xe && ct(xe);
26664
+ onSortClick: be ? () => {
26665
+ be && ct(be);
26665
26666
  } : void 0,
26666
26667
  children: je
26667
26668
  },
@@ -26695,11 +26696,11 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26695
26696
  are,
26696
26697
  {
26697
26698
  text: Ge.checked && !Ge.indeterminate ? S("status.selected.allItemsSelected", {
26698
- total: be
26699
+ total: we
26699
26700
  }) : _n ? S("status.selected.allOnPage", {
26700
26701
  count: Ge.selectedCount
26701
26702
  }) : `${Ge.selectedCount} ${Pi}`,
26702
- count: Ge.checked && !Ge.indeterminate ? be : Ge.selectedCount
26703
+ count: Ge.checked && !Ge.indeterminate ? we : Ge.selectedCount
26703
26704
  }
26704
26705
  ),
26705
26706
  yi ? /* @__PURE__ */ m(
@@ -26707,7 +26708,7 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26707
26708
  {
26708
26709
  variant: "outline",
26709
26710
  label: S("status.selected.selectAllItems", {
26710
- total: be
26711
+ total: we
26711
26712
  }),
26712
26713
  onClick: () => pe(!0),
26713
26714
  size: "sm"
@@ -26718,18 +26719,19 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26718
26719
  ) }) : null
26719
26720
  ] }),
26720
26721
  /* @__PURE__ */ R(Y2, { children: [
26721
- Z?.type === "grouped" ? Z.groups.map((xe, je) => {
26722
- const Ct = xe.itemCount, Bt = /* @__PURE__ */ m(
26722
+ Z?.type === "grouped" ? Z.groups.map((be, je) => {
26723
+ const Ct = be.itemCount, Bt = /* @__PURE__ */ m(
26723
26724
  Jy,
26724
26725
  {
26725
26726
  ...A1,
26726
26727
  selectable: !1,
26727
26728
  showOpenChange: Je,
26728
- label: xe.label,
26729
+ label: be.label,
26729
26730
  itemCount: Ct,
26730
- avatar: xe.avatar,
26731
- open: gt[xe.key],
26732
- onOpenChange: (St) => yt(xe.key, St)
26731
+ avatar: be.avatar,
26732
+ metadata: be.metadata,
26733
+ open: gt[be.key],
26734
+ onOpenChange: (St) => yt(be.key, St)
26733
26735
  }
26734
26736
  );
26735
26737
  return /* @__PURE__ */ R(Vf, { children: [
@@ -26737,7 +26739,7 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26737
26739
  _i,
26738
26740
  {
26739
26741
  sticky: !0,
26740
- className: xe.actions ? "[&>td]:align-middle" : void 0,
26742
+ className: be.actions ? "[&>td]:align-middle" : void 0,
26741
26743
  children: [
26742
26744
  t.selectable ? /* @__PURE__ */ m(
26743
26745
  jn,
@@ -26748,14 +26750,14 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26748
26750
  Uf,
26749
26751
  {
26750
26752
  checked: !!d5(
26751
- ut[xe.key]
26753
+ ut[be.key]
26752
26754
  ),
26753
26755
  indeterminate: d5(
26754
- ut[xe.key]
26756
+ ut[be.key]
26755
26757
  ) === "indeterminate",
26756
26758
  title: E.actions.selectAll,
26757
26759
  hideLabel: !0,
26758
- onCheckedChange: (St) => se(xe, St)
26760
+ onCheckedChange: (St) => se(be, St)
26759
26761
  }
26760
26762
  ) })
26761
26763
  }
@@ -26763,13 +26765,13 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26763
26765
  /* @__PURE__ */ m(
26764
26766
  jn,
26765
26767
  {
26766
- firstCell: !!xe.onClick,
26767
- onClick: xe.onClick,
26768
+ firstCell: !!be.onClick,
26769
+ onClick: be.onClick,
26768
26770
  sticky: {
26769
26771
  left: t.selectable ? Ut : 0
26770
26772
  },
26771
26773
  colSpan: he || 1,
26772
- children: Je && xe.onClick ? (
26774
+ children: Je && be.onClick ? (
26773
26775
  // Opening or closing the group is not the row's onClick.
26774
26776
  /* @__PURE__ */ m(
26775
26777
  "div",
@@ -26786,16 +26788,16 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26786
26788
  jn,
26787
26789
  {
26788
26790
  colSpan: O.length - (he || 1),
26789
- onClick: xe.onClick,
26791
+ onClick: be.onClick,
26790
26792
  children: " "
26791
26793
  }
26792
26794
  ) : null,
26793
- xe.actions ? /* @__PURE__ */ m(_ie, { actions: xe.actions }) : null
26795
+ be.actions ? /* @__PURE__ */ m(_ie, { actions: be.actions }) : null
26794
26796
  ]
26795
26797
  },
26796
- `group-header-${xe.key}`
26798
+ `group-header-${be.key}`
26797
26799
  ),
26798
- /* @__PURE__ */ m(Jt, { children: !Je || gt[xe.key] ? xe.records.map((St, gn) => {
26800
+ /* @__PURE__ */ m(Jt, { children: !Je || gt[be.key] ? be.records.map((St, gn) => {
26799
26801
  const Sn = `row-${je}-${ve(St, gn)}`, Ri = /* @__PURE__ */ m(
26800
26802
  A,
26801
26803
  {
@@ -26839,10 +26841,10 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26839
26841
  Sn
26840
26842
  ) : Ri;
26841
26843
  }) : null }, `group-animate-${je}`)
26842
- ] }, `group-${xe.key}`);
26844
+ ] }, `group-${be.key}`);
26843
26845
  }) : null,
26844
- Z?.type === "flat" ? Z.records.map((xe, je) => {
26845
- const Ct = `row-${ve(xe, je)}`, Bt = He.has(Ct), St = /* @__PURE__ */ m(
26846
+ Z?.type === "flat" ? Z.records.map((be, je) => {
26847
+ const Ct = `row-${ve(be, je)}`, Bt = He.has(Ct), St = /* @__PURE__ */ m(
26846
26848
  A,
26847
26849
  {
26848
26850
  variants: ae,
@@ -26853,12 +26855,12 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26853
26855
  isNew: Bt,
26854
26856
  groupIndex: 0,
26855
26857
  source: re,
26856
- liveSource: fe(xe),
26857
- item: xe,
26858
+ liveSource: fe(be),
26859
+ item: be,
26858
26860
  index: je,
26859
26861
  onItemCheckedChange: Ae,
26860
- isSelected: Ee(xe),
26861
- selectedItems: ze(xe),
26862
+ isSelected: Ee(be),
26863
+ selectedItems: ze(be),
26862
26864
  columns: O,
26863
26865
  frozenColumnsLeft: he,
26864
26866
  checkColumnWidth: Ut,
@@ -26876,9 +26878,9 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26876
26878
  },
26877
26879
  Ct
26878
26880
  );
26879
- return v ? /* @__PURE__ */ m(v, { item: xe, index: je, children: St }, Ct) : St;
26881
+ return v ? /* @__PURE__ */ m(v, { item: be, index: je, children: St }, Ct) : St;
26880
26882
  }) : null,
26881
- G?.type === "infinite-scroll" && W ? Array.from({ length: 5 }).map((xe, je) => /* @__PURE__ */ m(_i, { children: Array.from({ length: sn }).map(
26883
+ G?.type === "infinite-scroll" && W ? Array.from({ length: 5 }).map((be, je) => /* @__PURE__ */ m(_i, { children: Array.from({ length: sn }).map(
26882
26884
  (Ct, Bt) => /* @__PURE__ */ m(
26883
26885
  jn,
26884
26886
  {
@@ -26898,8 +26900,8 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26898
26900
  ) }) : null
26899
26901
  ] }),
26900
26902
  (() => {
26901
- const xe = sre(C?.addRowActions?.());
26902
- return !Me && xe.length === 0 ? null : /* @__PURE__ */ R(Wte, { children: [
26903
+ const be = sre(C?.addRowActions?.());
26904
+ return !Me && be.length === 0 ? null : /* @__PURE__ */ R(Wte, { children: [
26903
26905
  Me ? /* @__PURE__ */ R(
26904
26906
  _i,
26905
26907
  {
@@ -26978,7 +26980,7 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26978
26980
  ]
26979
26981
  }
26980
26982
  ) : null,
26981
- xe.length > 0 ? /* @__PURE__ */ m(_i, { children: /* @__PURE__ */ m(
26983
+ be.length > 0 ? /* @__PURE__ */ m(_i, { children: /* @__PURE__ */ m(
26982
26984
  jn,
26983
26985
  {
26984
26986
  colSpan: O.length + (t.selectable ? 1 : 0) + (me ? Se : 0),
@@ -26989,18 +26991,18 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
26989
26991
  className: "pointer-events-auto flex h-full items-center",
26990
26992
  onClick: (je) => je.stopPropagation(),
26991
26993
  onMouseDownCapture: (je) => je.stopPropagation(),
26992
- children: xe.length === 1 ? /* @__PURE__ */ m(
26994
+ children: be.length === 1 ? /* @__PURE__ */ m(
26993
26995
  De,
26994
26996
  {
26995
26997
  variant: "outline",
26996
- icon: xe[0].icon ?? Ja,
26997
- label: xe[0].label,
26998
- onClick: xe[0].onClick,
26999
- loading: xe[0].loading,
27000
- disabled: xe[0].disabled,
26998
+ icon: be[0].icon ?? Ja,
26999
+ label: be[0].label,
27000
+ onClick: be[0].onClick,
27001
+ loading: be[0].loading,
27002
+ disabled: be[0].disabled,
27001
27003
  size: "sm"
27002
27004
  }
27003
- ) : xe.some(
27005
+ ) : be.some(
27004
27006
  (je) => je.description !== void 0
27005
27007
  ) ? /* @__PURE__ */ m(
27006
27008
  mr,
@@ -27009,16 +27011,16 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
27009
27011
  variant: "outline",
27010
27012
  size: "sm",
27011
27013
  trigger: C?.addRowActionsLabel,
27012
- disabled: xe.every((je) => je.disabled),
27013
- loading: xe.some((je) => je.loading),
27014
- items: xe.map((je, Ct) => ({
27014
+ disabled: be.every((je) => je.disabled),
27015
+ loading: be.some((je) => je.loading),
27016
+ items: be.map((je, Ct) => ({
27015
27017
  value: Ct.toString(),
27016
27018
  label: je.label,
27017
27019
  icon: je.icon,
27018
27020
  description: je.description
27019
27021
  })),
27020
27022
  onClick: (je) => {
27021
- xe[Number(je)]?.onClick?.();
27023
+ be[Number(je)]?.onClick?.();
27022
27024
  }
27023
27025
  }
27024
27026
  ) : /* @__PURE__ */ m(
@@ -27026,15 +27028,15 @@ const Jie = 220, Zie = (e, t, n, i = !0) => {
27026
27028
  {
27027
27029
  variant: "outline",
27028
27030
  size: "sm",
27029
- disabled: xe.every((je) => je.disabled),
27030
- loading: xe.some((je) => je.loading),
27031
- items: xe.map((je, Ct) => ({
27031
+ disabled: be.every((je) => je.disabled),
27032
+ loading: be.some((je) => je.loading),
27033
+ items: be.map((je, Ct) => ({
27032
27034
  value: Ct.toString(),
27033
27035
  label: je.label,
27034
27036
  icon: je.icon
27035
27037
  })),
27036
27038
  onClick: (je) => {
27037
- xe[Number(je)]?.onClick?.();
27039
+ be[Number(je)]?.onClick?.();
27038
27040
  }
27039
27041
  }
27040
27042
  )
@@ -29786,7 +29788,7 @@ function Uae({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: i,
29786
29788
  [ge, Se]
29787
29789
  ];
29788
29790
  }
29789
- const { position: Q, positionAbsolute: te } = XP({
29791
+ const { position: te, positionAbsolute: Q } = XP({
29790
29792
  nodeId: W,
29791
29793
  nextPosition: ne,
29792
29794
  nodeLookup: N,
@@ -29794,7 +29796,7 @@ function Uae({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: i,
29794
29796
  nodeOrigin: F,
29795
29797
  onError: $
29796
29798
  });
29797
- Z = Z || j.position.x !== Q.x || j.position.y !== Q.y, j.position = Q, j.internals.positionAbsolute = te;
29799
+ Z = Z || j.position.x !== te.x || j.position.y !== te.y, j.position = te, j.internals.positionAbsolute = Q;
29798
29800
  }
29799
29801
  if (p = p || Z, !!Z && (V(a, !0), y && (i || z || !_ && H))) {
29800
29802
  const [W, j] = k0({
@@ -29930,8 +29932,8 @@ function Xae(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
29930
29932
  function Z() {
29931
29933
  if (!d || !M)
29932
29934
  return;
29933
- const [Q, te] = ZP(F, M, _);
29934
- u({ x: Q, y: te }), A = requestAnimationFrame(Z);
29935
+ const [te, Q] = ZP(F, M, _);
29936
+ u({ x: te, y: Q }), A = requestAnimationFrame(Z);
29935
29937
  }
29936
29938
  const G = {
29937
29939
  ...P,
@@ -29956,20 +29958,20 @@ function Xae(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
29956
29958
  O = !0, w(W), p?.(e, { nodeId: r, handleId: i, handleType: N });
29957
29959
  }
29958
29960
  S === 0 && j();
29959
- function ne(Q) {
29961
+ function ne(te) {
29960
29962
  if (!O) {
29961
- const { x: Se, y: q } = Lr(Q), ee = Se - I, re = q - D;
29963
+ const { x: Se, y: q } = Lr(te), ee = Se - I, re = q - D;
29962
29964
  if (!(ee * ee + re * re > S * S))
29963
29965
  return;
29964
29966
  j();
29965
29967
  }
29966
29968
  if (!k() || !G) {
29967
- le(Q);
29969
+ le(te);
29968
29970
  return;
29969
29971
  }
29970
- const te = x();
29971
- F = Lr(Q, M), T = Gae(Mh(F, te, !1, [1, 1]), n, l, G), z || (Z(), z = !0);
29972
- const ue = mR(Q, {
29972
+ const Q = x();
29973
+ F = Lr(te, M), T = Gae(Mh(F, Q, !1, [1, 1]), n, l, G), z || (Z(), z = !0);
29974
+ const ue = mR(te, {
29973
29975
  handle: T,
29974
29976
  connectionMode: t,
29975
29977
  fromNodeId: r,
@@ -29986,7 +29988,7 @@ function Xae(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
29986
29988
  ...W,
29987
29989
  from: ge,
29988
29990
  isValid: $,
29989
- to: ue.toHandle && $ ? bg({ x: ue.toHandle.x, y: ue.toHandle.y }, te) : F,
29991
+ to: ue.toHandle && $ ? bg({ x: ue.toHandle.x, y: ue.toHandle.y }, Q) : F,
29990
29992
  toHandle: ue.toHandle,
29991
29993
  toPosition: $ && ue.toHandle ? ue.toHandle.position : E5[G.position],
29992
29994
  toNode: ue.toHandle ? l.get(ue.toHandle.nodeId) : null,
@@ -29994,15 +29996,15 @@ function Xae(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
29994
29996
  };
29995
29997
  w(ye), W = ye;
29996
29998
  }
29997
- function le(Q) {
29998
- if (!("touches" in Q && Q.touches.length > 0)) {
29999
+ function le(te) {
30000
+ if (!("touches" in te && te.touches.length > 0)) {
29999
30001
  if (O) {
30000
30002
  (T || V) && H && $ && y?.(H);
30001
- const { inProgress: te, ...ue } = W, me = {
30003
+ const { inProgress: Q, ...ue } = W, me = {
30002
30004
  ...ue,
30003
30005
  toPosition: W.toHandle ? W.toPosition : null
30004
30006
  };
30005
- g?.(Q, me), o && b?.(Q, me);
30007
+ g?.(te, me), o && b?.(te, me);
30006
30008
  }
30007
30009
  h(), cancelAnimationFrame(A), z = !1, $ = !1, H = null, V = null, C.removeEventListener("mousemove", ne), C.removeEventListener("mouseup", le), C.removeEventListener("touchmove", ne), C.removeEventListener("touchend", le);
30008
30010
  }
@@ -30218,12 +30220,12 @@ function ole({ domNode: e, minZoom: t, maxZoom: n, translateExtent: i, viewport:
30218
30220
  d3ZoomHandler: h
30219
30221
  });
30220
30222
  if (u.on("wheel.zoom", le, { passive: !1 }), !N) {
30221
- const te = tle({
30223
+ const Q = tle({
30222
30224
  zoomPanValues: c,
30223
30225
  onDraggingChange: l,
30224
30226
  onPanZoomStart: s
30225
30227
  });
30226
- f.on("start", te);
30228
+ f.on("start", Q);
30227
30229
  const ue = nle({
30228
30230
  zoomPanValues: c,
30229
30231
  panOnDrag: O,
@@ -30242,7 +30244,7 @@ function ole({ domNode: e, minZoom: t, maxZoom: n, translateExtent: i, viewport:
30242
30244
  });
30243
30245
  f.on("end", me);
30244
30246
  }
30245
- const Q = rle({
30247
+ const te = rle({
30246
30248
  zoomActivationKeyPressed: Z,
30247
30249
  panOnDrag: O,
30248
30250
  zoomOnScroll: $,
@@ -30255,7 +30257,7 @@ function ole({ domNode: e, minZoom: t, maxZoom: n, translateExtent: i, viewport:
30255
30257
  lib: G,
30256
30258
  connectionInProgress: Y
30257
30259
  });
30258
- f.filter(Q), V ? u.on("dblclick.zoom", p) : u.on("dblclick.zoom", null);
30260
+ f.filter(te), V ? u.on("dblclick.zoom", p) : u.on("dblclick.zoom", null);
30259
30261
  }
30260
30262
  function v() {
30261
30263
  f.on("zoom", null);
@@ -30473,10 +30475,10 @@ function fle({ domNode: e, nodeId: t, getStoreItems: n, onChange: i, onEnd: r })
30473
30475
  }), P = [];
30474
30476
  if (!w)
30475
30477
  return;
30476
- const { x: F, y: z, width: H, height: $ } = v, V = {}, Z = w.origin ?? M, { width: G, height: B, x: Y, y: W } = ale(b, s.controlDirection, O, s.boundaries, s.keepAspectRatio, Z, S, E), j = G !== H, ne = B !== $, le = Y !== F && j, Q = W !== z && ne;
30477
- if (!le && !Q && !j && !ne)
30478
+ const { x: F, y: z, width: H, height: $ } = v, V = {}, Z = w.origin ?? M, { width: G, height: B, x: Y, y: W } = ale(b, s.controlDirection, O, s.boundaries, s.keepAspectRatio, Z, S, E), j = G !== H, ne = B !== $, le = Y !== F && j, te = W !== z && ne;
30479
+ if (!le && !te && !j && !ne)
30478
30480
  return;
30479
- if ((le || Q || Z[0] === 1 || Z[1] === 1) && (V.x = le ? Y : v.x, V.y = Q ? W : v.y, v.x = V.x, v.y = V.y, k.length > 0)) {
30481
+ if ((le || te || Z[0] === 1 || Z[1] === 1) && (V.x = le ? Y : v.x, V.y = te ? W : v.y, v.x = V.x, v.y = V.y, k.length > 0)) {
30480
30482
  const ge = Y - F, ye = W - z;
30481
30483
  for (const Se of k)
30482
30484
  Se.position = {
@@ -30490,14 +30492,14 @@ function fle({ domNode: e, nodeId: t, getStoreItems: n, onChange: i, onEnd: r })
30490
30492
  const ye = Z[1] * (V.height ?? 0);
30491
30493
  V.y && V.y < ye && (v.y = ye, b.y = b.y - (V.y - ye));
30492
30494
  }
30493
- const te = sle({
30495
+ const Q = sle({
30494
30496
  width: v.width,
30495
30497
  prevWidth: H,
30496
30498
  height: v.height,
30497
30499
  prevHeight: $,
30498
30500
  affectsX: s.controlDirection.affectsX,
30499
30501
  affectsY: s.controlDirection.affectsY
30500
- }), ue = { ...v, direction: te };
30502
+ }), ue = { ...v, direction: Q };
30501
30503
  g?.(T, ue) !== !1 && (C = !0, p?.(T, ue), i(V, P));
30502
30504
  }).on("end", (T) => {
30503
30505
  C && (y?.(T, { ...v }), r?.({ ...v }), C = !1);
@@ -31422,23 +31424,23 @@ function rce({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = mu.Ful
31422
31424
  const { userSelectionRect: z, transform: H, nodeLookup: $, edgeLookup: V, connectionLookup: Z, triggerNodeChanges: G, triggerEdgeChanges: B, defaultEdgeOptions: Y, resetSelectedElements: W } = y.getState();
31423
31425
  if (!_.current || !z)
31424
31426
  return;
31425
- const { x: j, y: ne } = Lr(F.nativeEvent, _.current), { startX: le, startY: Q } = z;
31427
+ const { x: j, y: ne } = Lr(F.nativeEvent, _.current), { startX: le, startY: te } = z;
31426
31428
  if (!C.current) {
31427
31429
  const ye = t ? 0 : r;
31428
- if (Math.hypot(j - le, ne - Q) <= ye)
31430
+ if (Math.hypot(j - le, ne - te) <= ye)
31429
31431
  return;
31430
31432
  W(), s?.(F);
31431
31433
  }
31432
31434
  C.current = !0;
31433
- const te = {
31435
+ const Q = {
31434
31436
  startX: le,
31435
- startY: Q,
31437
+ startY: te,
31436
31438
  x: j < le ? j : le,
31437
- y: ne < Q ? ne : Q,
31439
+ y: ne < te ? ne : te,
31438
31440
  width: Math.abs(j - le),
31439
- height: Math.abs(ne - Q)
31441
+ height: Math.abs(ne - te)
31440
31442
  }, ue = S.current, me = E.current;
31441
- S.current = new Set(f3($, te, H, n === mu.Partial, !0).map((ye) => ye.id)), E.current = /* @__PURE__ */ new Set();
31443
+ S.current = new Set(f3($, Q, H, n === mu.Partial, !0).map((ye) => ye.id)), E.current = /* @__PURE__ */ new Set();
31442
31444
  const ge = Y?.selectable ?? !0;
31443
31445
  for (const ye of S.current) {
31444
31446
  const Se = Z.get(ye);
@@ -31457,7 +31459,7 @@ function rce({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = mu.Ful
31457
31459
  B(ye);
31458
31460
  }
31459
31461
  y.setState({
31460
- userSelectionRect: te,
31462
+ userSelectionRect: Q,
31461
31463
  userSelectionActive: !0,
31462
31464
  nodesSelectionActive: !1
31463
31465
  });
@@ -31823,10 +31825,10 @@ function Sce({ id: e, onClick: t, onMouseEnter: n, onMouseMove: i, onMouseLeave:
31823
31825
  }, W = () => {
31824
31826
  if (p || !N.current?.matches(":focus-visible"))
31825
31827
  return;
31826
- const { transform: j, width: ne, height: le, autoPanOnNodeFocus: Q, setCenter: te } = I.getState();
31827
- if (!Q)
31828
+ const { transform: j, width: ne, height: le, autoPanOnNodeFocus: te, setCenter: Q } = I.getState();
31829
+ if (!te)
31828
31830
  return;
31829
- f3(/* @__PURE__ */ new Map([[e, w]]), { x: 0, y: 0, width: ne, height: le }, j, !0).length > 0 || te(w.position.x + P.width / 2, w.position.y + P.height / 2, {
31831
+ f3(/* @__PURE__ */ new Map([[e, w]]), { x: 0, y: 0, width: ne, height: le }, j, !0).length > 0 || Q(w.position.x + P.width / 2, w.position.y + P.height / 2, {
31830
31832
  zoom: j[2]
31831
31833
  });
31832
31834
  };
@@ -32126,13 +32128,13 @@ function jce({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: i, sour
32126
32128
  return R(We, { children: [(e === !0 || e === "source") && m(fE, { position: a, centerX: i, centerY: r, radius: t, onMouseDown: g, onMouseEnter: b, onMouseOut: w, type: "source" }), (e === !0 || e === "target") && m(fE, { position: l, centerX: o, centerY: s, radius: t, onMouseDown: v, onMouseEnter: b, onMouseOut: w, type: "target" })] });
32127
32129
  }
32128
32130
  function Hce({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectable: i, onClick: r, onDoubleClick: o, onContextMenu: s, onMouseEnter: a, onMouseMove: l, onMouseLeave: c, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, rfId: p, edgeTypes: y, noPanClassName: g, onError: v, disableKeyboardA11y: b }) {
32129
- let w = kt((te) => te.edgeLookup.get(e));
32130
- const x = kt((te) => te.defaultEdgeOptions);
32131
+ let w = kt((Q) => Q.edgeLookup.get(e));
32132
+ const x = kt((Q) => Q.defaultEdgeOptions);
32131
32133
  w = x ? { ...x, ...w } : w;
32132
32134
  let k = w.type || "default", _ = y?.[k] || lE[k];
32133
32135
  _ === void 0 && (v?.("011", Gi.error011(k)), k = "default", _ = y?.default || lE.default);
32134
- const S = !!(w.focusable || t && typeof w.focusable > "u"), E = typeof f < "u" && (w.reconnectable || n && typeof w.reconnectable > "u"), C = !!(w.selectable || i && typeof w.selectable > "u"), A = L(null), [T, I] = J(!1), [D, N] = J(!1), M = on(), { zIndex: O, sourceX: P, sourceY: F, targetX: z, targetY: H, sourcePosition: $, targetPosition: V } = kt(K((te) => {
32135
- const ue = te.nodeLookup.get(w.source), me = te.nodeLookup.get(w.target);
32136
+ const S = !!(w.focusable || t && typeof w.focusable > "u"), E = typeof f < "u" && (w.reconnectable || n && typeof w.reconnectable > "u"), C = !!(w.selectable || i && typeof w.selectable > "u"), A = L(null), [T, I] = J(!1), [D, N] = J(!1), M = on(), { zIndex: O, sourceX: P, sourceY: F, targetX: z, targetY: H, sourcePosition: $, targetPosition: V } = kt(K((Q) => {
32137
+ const ue = Q.nodeLookup.get(w.source), me = Q.nodeLookup.get(w.target);
32136
32138
  if (!ue || !me)
32137
32139
  return {
32138
32140
  zIndex: w.zIndex,
@@ -32144,7 +32146,7 @@ function Hce({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
32144
32146
  targetNode: me,
32145
32147
  sourceHandle: w.sourceHandle || null,
32146
32148
  targetHandle: w.targetHandle || null,
32147
- connectionMode: te.connectionMode,
32149
+ connectionMode: Q.connectionMode,
32148
32150
  onError: v
32149
32151
  });
32150
32152
  return {
@@ -32153,31 +32155,31 @@ function Hce({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
32153
32155
  zIndex: w.zIndex,
32154
32156
  sourceNode: ue,
32155
32157
  targetNode: me,
32156
- elevateOnSelect: te.elevateEdgesOnSelect,
32157
- zIndexMode: te.zIndexMode
32158
+ elevateOnSelect: Q.elevateEdgesOnSelect,
32159
+ zIndexMode: Q.zIndexMode
32158
32160
  }),
32159
32161
  ...ge || cE
32160
32162
  };
32161
32163
  }, [w.source, w.target, w.sourceHandle, w.targetHandle, w.selected, w.zIndex]), rn), Z = X(() => w.markerStart ? `url('#${zw(w.markerStart, p)}')` : void 0, [w.markerStart, p]), G = X(() => w.markerEnd ? `url('#${zw(w.markerEnd, p)}')` : void 0, [w.markerEnd, p]);
32162
32164
  if (w.hidden || P === null || F === null || z === null || H === null)
32163
32165
  return null;
32164
- const B = (te) => {
32166
+ const B = (Q) => {
32165
32167
  const { addSelectedEdges: ue, unselectNodesAndEdges: me, multiSelectionActive: ge } = M.getState();
32166
- C && (M.setState({ nodesSelectionActive: !1 }), w.selected && ge ? (me({ nodes: [], edges: [w] }), A.current?.blur()) : ue([e])), r && r(te, w);
32167
- }, Y = o ? (te) => {
32168
- o(te, { ...w });
32169
- } : void 0, W = s ? (te) => {
32170
- s(te, { ...w });
32171
- } : void 0, j = a ? (te) => {
32172
- a(te, { ...w });
32173
- } : void 0, ne = l ? (te) => {
32174
- l(te, { ...w });
32175
- } : void 0, le = c ? (te) => {
32176
- c(te, { ...w });
32177
- } : void 0, Q = (te) => {
32178
- if (!b && UP.includes(te.key) && C) {
32168
+ C && (M.setState({ nodesSelectionActive: !1 }), w.selected && ge ? (me({ nodes: [], edges: [w] }), A.current?.blur()) : ue([e])), r && r(Q, w);
32169
+ }, Y = o ? (Q) => {
32170
+ o(Q, { ...w });
32171
+ } : void 0, W = s ? (Q) => {
32172
+ s(Q, { ...w });
32173
+ } : void 0, j = a ? (Q) => {
32174
+ a(Q, { ...w });
32175
+ } : void 0, ne = l ? (Q) => {
32176
+ l(Q, { ...w });
32177
+ } : void 0, le = c ? (Q) => {
32178
+ c(Q, { ...w });
32179
+ } : void 0, te = (Q) => {
32180
+ if (!b && UP.includes(Q.key) && C) {
32179
32181
  const { unselectNodesAndEdges: ue, addSelectedEdges: me } = M.getState();
32180
- te.key === "Escape" ? (A.current?.blur(), ue({ edges: [w] })) : me([e]);
32182
+ Q.key === "Escape" ? (A.current?.blur(), ue({ edges: [w] })) : me([e]);
32181
32183
  }
32182
32184
  };
32183
32185
  return m("svg", { style: { zIndex: O }, children: R("g", { className: xn([
@@ -32192,7 +32194,7 @@ function Hce({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
32192
32194
  updating: T,
32193
32195
  selectable: C
32194
32196
  }
32195
- ]), onClick: B, onDoubleClick: Y, onContextMenu: W, onMouseEnter: j, onMouseMove: ne, onMouseLeave: le, onKeyDown: S ? Q : void 0, tabIndex: S ? 0 : void 0, role: w.ariaRole ?? (S ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": w.ariaLabel === null ? void 0 : w.ariaLabel || `Edge from ${w.source} to ${w.target}`, "aria-describedby": S ? `${kR}-${p}` : void 0, ref: A, ...w.domAttributes, children: [!D && m(_, { id: e, source: w.source, target: w.target, type: w.type, selected: w.selected, animated: w.animated, selectable: C, deletable: w.deletable ?? !0, label: w.label, labelStyle: w.labelStyle, labelShowBg: w.labelShowBg, labelBgStyle: w.labelBgStyle, labelBgPadding: w.labelBgPadding, labelBgBorderRadius: w.labelBgBorderRadius, sourceX: P, sourceY: F, targetX: z, targetY: H, sourcePosition: $, targetPosition: V, data: w.data, style: w.style, sourceHandleId: w.sourceHandle, targetHandleId: w.targetHandle, markerStart: Z, markerEnd: G, pathOptions: "pathOptions" in w ? w.pathOptions : void 0, interactionWidth: w.interactionWidth }), E && m(jce, { edge: w, isReconnectable: E, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, sourceX: P, sourceY: F, targetX: z, targetY: H, sourcePosition: $, targetPosition: V, setUpdateHover: I, setReconnecting: N })] }) });
32197
+ ]), onClick: B, onDoubleClick: Y, onContextMenu: W, onMouseEnter: j, onMouseMove: ne, onMouseLeave: le, onKeyDown: S ? te : void 0, tabIndex: S ? 0 : void 0, role: w.ariaRole ?? (S ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": w.ariaLabel === null ? void 0 : w.ariaLabel || `Edge from ${w.source} to ${w.target}`, "aria-describedby": S ? `${kR}-${p}` : void 0, ref: A, ...w.domAttributes, children: [!D && m(_, { id: e, source: w.source, target: w.target, type: w.type, selected: w.selected, animated: w.animated, selectable: C, deletable: w.deletable ?? !0, label: w.label, labelStyle: w.labelStyle, labelShowBg: w.labelShowBg, labelBgStyle: w.labelBgStyle, labelBgPadding: w.labelBgPadding, labelBgBorderRadius: w.labelBgBorderRadius, sourceX: P, sourceY: F, targetX: z, targetY: H, sourcePosition: $, targetPosition: V, data: w.data, style: w.style, sourceHandleId: w.sourceHandle, targetHandleId: w.targetHandle, markerStart: Z, markerEnd: G, pathOptions: "pathOptions" in w ? w.pathOptions : void 0, interactionWidth: w.interactionWidth }), E && m(jce, { edge: w, isReconnectable: E, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, sourceX: P, sourceY: F, targetX: z, targetY: H, sourcePosition: $, targetPosition: V, setUpdateHover: I, setReconnecting: N })] }) });
32196
32198
  }
32197
32199
  var Vce = Mt(Hce);
32198
32200
  const Wce = (e) => ({
@@ -32307,8 +32309,8 @@ function ide() {
32307
32309
  }
32308
32310
  }, []);
32309
32311
  }
32310
- function KR({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: i, onEdgeClick: r, onNodeDoubleClick: o, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: p, connectionLineStyle: y, connectionLineComponent: g, connectionLineContainerStyle: v, selectionKeyCode: b, selectionOnDrag: w, selectionMode: x, multiSelectionKeyCode: k, panActivationKeyCode: _, zoomActivationKeyCode: S, deleteKeyCode: E, onlyRenderVisibleElements: C, elementsSelectable: A, defaultViewport: T, translateExtent: I, minZoom: D, maxZoom: N, preventScrolling: M, defaultMarkerColor: O, zoomOnScroll: P, zoomOnPinch: F, panOnScroll: z, panOnScrollSpeed: H, panOnScrollMode: $, zoomOnDoubleClick: V, panOnDrag: Z, onPaneClick: G, onPaneMouseEnter: B, onPaneMouseMove: Y, onPaneMouseLeave: W, onPaneScroll: j, onPaneContextMenu: ne, paneClickDistance: le, nodeClickDistance: Q, onEdgeContextMenu: te, onEdgeMouseEnter: ue, onEdgeMouseMove: me, onEdgeMouseLeave: ge, reconnectRadius: ye, onReconnect: Se, onReconnectStart: q, onReconnectEnd: ee, noDragClassName: re, noWheelClassName: fe, noPanClassName: ae, disableKeyboardA11y: de, nodeExtent: he, rfId: ve, viewport: Te, onViewportChange: He }) {
32311
- return uE(e), uE(t), ide(), Gce(n), Xce(Te), m(vce, { onPaneClick: G, onPaneMouseEnter: B, onPaneMouseMove: Y, onPaneMouseLeave: W, onPaneContextMenu: ne, onPaneScroll: j, paneClickDistance: le, deleteKeyCode: E, selectionKeyCode: b, selectionOnDrag: w, selectionMode: x, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: k, panActivationKeyCode: _, zoomActivationKeyCode: S, elementsSelectable: A, zoomOnScroll: P, zoomOnPinch: F, zoomOnDoubleClick: V, panOnScroll: z, panOnScrollSpeed: H, panOnScrollMode: $, panOnDrag: Z, defaultViewport: T, translateExtent: I, minZoom: D, maxZoom: N, onSelectionContextMenu: f, preventScrolling: M, noDragClassName: re, noWheelClassName: fe, noPanClassName: ae, disableKeyboardA11y: de, onViewportChange: He, isControlledViewport: !!Te, children: R(Kce, { children: [m(Uce, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: s, onReconnect: Se, onReconnectStart: q, onReconnectEnd: ee, onlyRenderVisibleElements: C, onEdgeContextMenu: te, onEdgeMouseEnter: ue, onEdgeMouseMove: me, onEdgeMouseLeave: ge, reconnectRadius: ye, defaultMarkerColor: O, noPanClassName: ae, disableKeyboardA11y: de, rfId: ve }), m(tde, { style: y, type: p, component: g, containerStyle: v }), m("div", { className: "react-flow__edgelabel-renderer" }), m(Nce, { nodeTypes: e, onNodeClick: i, onNodeDoubleClick: o, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: Q, onlyRenderVisibleElements: C, noPanClassName: ae, noDragClassName: re, disableKeyboardA11y: de, nodeExtent: he, rfId: ve }), m("div", { className: "react-flow__viewport-portal" })] }) });
32312
+ function KR({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: i, onEdgeClick: r, onNodeDoubleClick: o, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: p, connectionLineStyle: y, connectionLineComponent: g, connectionLineContainerStyle: v, selectionKeyCode: b, selectionOnDrag: w, selectionMode: x, multiSelectionKeyCode: k, panActivationKeyCode: _, zoomActivationKeyCode: S, deleteKeyCode: E, onlyRenderVisibleElements: C, elementsSelectable: A, defaultViewport: T, translateExtent: I, minZoom: D, maxZoom: N, preventScrolling: M, defaultMarkerColor: O, zoomOnScroll: P, zoomOnPinch: F, panOnScroll: z, panOnScrollSpeed: H, panOnScrollMode: $, zoomOnDoubleClick: V, panOnDrag: Z, onPaneClick: G, onPaneMouseEnter: B, onPaneMouseMove: Y, onPaneMouseLeave: W, onPaneScroll: j, onPaneContextMenu: ne, paneClickDistance: le, nodeClickDistance: te, onEdgeContextMenu: Q, onEdgeMouseEnter: ue, onEdgeMouseMove: me, onEdgeMouseLeave: ge, reconnectRadius: ye, onReconnect: Se, onReconnectStart: q, onReconnectEnd: ee, noDragClassName: re, noWheelClassName: fe, noPanClassName: ae, disableKeyboardA11y: de, nodeExtent: he, rfId: ve, viewport: Te, onViewportChange: He }) {
32313
+ return uE(e), uE(t), ide(), Gce(n), Xce(Te), m(vce, { onPaneClick: G, onPaneMouseEnter: B, onPaneMouseMove: Y, onPaneMouseLeave: W, onPaneContextMenu: ne, onPaneScroll: j, paneClickDistance: le, deleteKeyCode: E, selectionKeyCode: b, selectionOnDrag: w, selectionMode: x, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: k, panActivationKeyCode: _, zoomActivationKeyCode: S, elementsSelectable: A, zoomOnScroll: P, zoomOnPinch: F, zoomOnDoubleClick: V, panOnScroll: z, panOnScrollSpeed: H, panOnScrollMode: $, panOnDrag: Z, defaultViewport: T, translateExtent: I, minZoom: D, maxZoom: N, onSelectionContextMenu: f, preventScrolling: M, noDragClassName: re, noWheelClassName: fe, noPanClassName: ae, disableKeyboardA11y: de, onViewportChange: He, isControlledViewport: !!Te, children: R(Kce, { children: [m(Uce, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: s, onReconnect: Se, onReconnectStart: q, onReconnectEnd: ee, onlyRenderVisibleElements: C, onEdgeContextMenu: Q, onEdgeMouseEnter: ue, onEdgeMouseMove: me, onEdgeMouseLeave: ge, reconnectRadius: ye, defaultMarkerColor: O, noPanClassName: ae, disableKeyboardA11y: de, rfId: ve }), m(tde, { style: y, type: p, component: g, containerStyle: v }), m("div", { className: "react-flow__edgelabel-renderer" }), m(Nce, { nodeTypes: e, onNodeClick: i, onNodeDoubleClick: o, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: te, onlyRenderVisibleElements: C, noPanClassName: ae, noDragClassName: re, disableKeyboardA11y: de, nodeExtent: he, rfId: ve }), m("div", { className: "react-flow__viewport-portal" })] }) });
32312
32314
  }
32313
32315
  KR.displayName = "GraphView";
32314
32316
  const rde = Mt(KR), hE = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, width: r, height: o, fitView: s, fitViewOptions: a, minZoom: l = 0.5, maxZoom: c = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: u = "basic" } = {}) => {
@@ -32627,11 +32629,11 @@ const ade = {
32627
32629
  position: "relative",
32628
32630
  zIndex: 0
32629
32631
  };
32630
- function lde({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, className: r, nodeTypes: o, edgeTypes: s, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: p, onConnectEnd: y, onClickConnectStart: g, onClickConnectEnd: v, onNodeMouseEnter: b, onNodeMouseMove: w, onNodeMouseLeave: x, onNodeContextMenu: k, onNodeDoubleClick: _, onNodeDragStart: S, onNodeDrag: E, onNodeDragStop: C, onNodesDelete: A, onEdgesDelete: T, onDelete: I, onSelectionChange: D, onSelectionDragStart: N, onSelectionDrag: M, onSelectionDragStop: O, onSelectionContextMenu: P, onSelectionStart: F, onSelectionEnd: z, onBeforeDelete: H, connectionMode: $, connectionLineType: V = Ms.Bezier, connectionLineStyle: Z, connectionLineComponent: G, connectionLineContainerStyle: B, deleteKeyCode: Y = "Backspace", selectionKeyCode: W = "Shift", selectionOnDrag: j = !1, selectionMode: ne = mu.Full, panActivationKeyCode: le = "Space", multiSelectionKeyCode: Q = yu() ? "Meta" : "Control", zoomActivationKeyCode: te = yu() ? "Meta" : "Control", snapToGrid: ue, snapGrid: me, onlyRenderVisibleElements: ge = !1, selectNodesOnDrag: ye, nodesDraggable: Se, autoPanOnNodeFocus: q, nodesConnectable: ee, nodesFocusable: re, nodeOrigin: fe = _R, edgesFocusable: ae, edgesReconnectable: de, elementsSelectable: he = !0, defaultViewport: ve = Lle, minZoom: Te = 0.5, maxZoom: He = 2, translateExtent: Xe = pu, preventScrolling: pt = !0, nodeExtent: Ge, defaultMarkerColor: ut = "#b1b1b7", zoomOnScroll: ke = !0, zoomOnPinch: at = !0, panOnScroll: pe = !1, panOnScrollSpeed: se = 0.5, panOnScrollMode: ce = ja.Free, zoomOnDoubleClick: be = !0, panOnDrag: we = !0, onPaneClick: Ae, onPaneMouseEnter: Ee, onPaneMouseMove: ze, onPaneMouseLeave: Me, onPaneScroll: Ue, onPaneContextMenu: et, paneClickDistance: dt = 1, nodeClickDistance: ct = 0, children: Je, onReconnect: nt, onReconnectStart: gt, onReconnectEnd: yt, onEdgeContextMenu: sn, onEdgeDoubleClick: Wt, onEdgeMouseEnter: Ut, onEdgeMouseMove: Un, onEdgeMouseLeave: kn, reconnectRadius: dn = 10, onNodesChange: _n, onEdgesChange: Tn, noDragClassName: yi = "nodrag", noWheelClassName: Xi = "nowheel", noPanClassName: Pi = "nopan", fitView: xe, fitViewOptions: je, connectOnClick: Ct, attributionPosition: Bt, proOptions: St, defaultEdgeOptions: gn, elevateNodesOnSelect: Sn = !0, elevateEdgesOnSelect: Ri = !1, disableKeyboardA11y: Cr = !1, autoPanOnConnect: hs, autoPanOnNodeDrag: bo, autoPanSpeed: Ji, connectionRadius: Li, isValidConnection: Zi, onError: El, style: Qi, id: Fe, nodeDragThreshold: Ve, connectionDragThreshold: ft, viewport: mt, onViewportChange: er, width: Jr, height: Zr, colorMode: wo = "light", debug: Pd, onScroll: xo, ariaLabelConfig: Rd, zIndexMode: Nl = "basic", ...Al }, Tl) {
32632
+ function lde({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, className: r, nodeTypes: o, edgeTypes: s, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: p, onConnectEnd: y, onClickConnectStart: g, onClickConnectEnd: v, onNodeMouseEnter: b, onNodeMouseMove: w, onNodeMouseLeave: x, onNodeContextMenu: k, onNodeDoubleClick: _, onNodeDragStart: S, onNodeDrag: E, onNodeDragStop: C, onNodesDelete: A, onEdgesDelete: T, onDelete: I, onSelectionChange: D, onSelectionDragStart: N, onSelectionDrag: M, onSelectionDragStop: O, onSelectionContextMenu: P, onSelectionStart: F, onSelectionEnd: z, onBeforeDelete: H, connectionMode: $, connectionLineType: V = Ms.Bezier, connectionLineStyle: Z, connectionLineComponent: G, connectionLineContainerStyle: B, deleteKeyCode: Y = "Backspace", selectionKeyCode: W = "Shift", selectionOnDrag: j = !1, selectionMode: ne = mu.Full, panActivationKeyCode: le = "Space", multiSelectionKeyCode: te = yu() ? "Meta" : "Control", zoomActivationKeyCode: Q = yu() ? "Meta" : "Control", snapToGrid: ue, snapGrid: me, onlyRenderVisibleElements: ge = !1, selectNodesOnDrag: ye, nodesDraggable: Se, autoPanOnNodeFocus: q, nodesConnectable: ee, nodesFocusable: re, nodeOrigin: fe = _R, edgesFocusable: ae, edgesReconnectable: de, elementsSelectable: he = !0, defaultViewport: ve = Lle, minZoom: Te = 0.5, maxZoom: He = 2, translateExtent: Xe = pu, preventScrolling: pt = !0, nodeExtent: Ge, defaultMarkerColor: ut = "#b1b1b7", zoomOnScroll: ke = !0, zoomOnPinch: at = !0, panOnScroll: pe = !1, panOnScrollSpeed: se = 0.5, panOnScrollMode: ce = ja.Free, zoomOnDoubleClick: we = !0, panOnDrag: xe = !0, onPaneClick: Ae, onPaneMouseEnter: Ee, onPaneMouseMove: ze, onPaneMouseLeave: Me, onPaneScroll: Ue, onPaneContextMenu: et, paneClickDistance: dt = 1, nodeClickDistance: ct = 0, children: Je, onReconnect: nt, onReconnectStart: gt, onReconnectEnd: yt, onEdgeContextMenu: sn, onEdgeDoubleClick: Wt, onEdgeMouseEnter: Ut, onEdgeMouseMove: Un, onEdgeMouseLeave: kn, reconnectRadius: dn = 10, onNodesChange: _n, onEdgesChange: Tn, noDragClassName: yi = "nodrag", noWheelClassName: Xi = "nowheel", noPanClassName: Pi = "nopan", fitView: be, fitViewOptions: je, connectOnClick: Ct, attributionPosition: Bt, proOptions: St, defaultEdgeOptions: gn, elevateNodesOnSelect: Sn = !0, elevateEdgesOnSelect: Ri = !1, disableKeyboardA11y: Cr = !1, autoPanOnConnect: hs, autoPanOnNodeDrag: bo, autoPanSpeed: Ji, connectionRadius: Li, isValidConnection: Zi, onError: El, style: Qi, id: Fe, nodeDragThreshold: Ve, connectionDragThreshold: ft, viewport: mt, onViewportChange: er, width: Jr, height: Zr, colorMode: wo = "light", debug: Pd, onScroll: xo, ariaLabelConfig: Rd, zIndexMode: Nl = "basic", ...Al }, Tl) {
32631
32633
  const Fi = Fe || "1", pa = zle(wo), On = K((ko) => {
32632
32634
  ko.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), xo?.(ko);
32633
32635
  }, [xo]);
32634
- return m("div", { "data-testid": "rf__wrapper", ...Al, onScroll: On, style: { ...Qi, ...ade }, ref: Tl, className: xn(["react-flow", r, pa]), id: Fe, role: "application", children: R(sde, { nodes: e, edges: t, width: Jr, height: Zr, fitView: xe, fitViewOptions: je, minZoom: Te, maxZoom: He, nodeOrigin: fe, nodeExtent: Ge, zIndexMode: Nl, children: [m(Ble, { nodes: e, edges: t, defaultNodes: n, defaultEdges: i, onConnect: h, onConnectStart: p, onConnectEnd: y, onClickConnectStart: g, onClickConnectEnd: v, nodesDraggable: Se, autoPanOnNodeFocus: q, nodesConnectable: ee, nodesFocusable: re, edgesFocusable: ae, edgesReconnectable: de, elementsSelectable: he, elevateNodesOnSelect: Sn, elevateEdgesOnSelect: Ri, minZoom: Te, maxZoom: He, nodeExtent: Ge, onNodesChange: _n, onEdgesChange: Tn, snapToGrid: ue, snapGrid: me, connectionMode: $, translateExtent: Xe, connectOnClick: Ct, defaultEdgeOptions: gn, fitView: xe, fitViewOptions: je, onNodesDelete: A, onEdgesDelete: T, onDelete: I, onNodeDragStart: S, onNodeDrag: E, onNodeDragStop: C, onSelectionDrag: M, onSelectionDragStart: N, onSelectionDragStop: O, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: Pi, nodeOrigin: fe, rfId: Fi, autoPanOnConnect: hs, autoPanOnNodeDrag: bo, autoPanSpeed: Ji, onError: El, connectionRadius: Li, isValidConnection: Zi, selectNodesOnDrag: ye, nodeDragThreshold: Ve, connectionDragThreshold: ft, onBeforeDelete: H, debug: Pd, ariaLabelConfig: Rd, zIndexMode: Nl }), m(rde, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: b, onNodeMouseMove: w, onNodeMouseLeave: x, onNodeContextMenu: k, onNodeDoubleClick: _, nodeTypes: o, edgeTypes: s, connectionLineType: V, connectionLineStyle: Z, connectionLineComponent: G, connectionLineContainerStyle: B, selectionKeyCode: W, selectionOnDrag: j, selectionMode: ne, deleteKeyCode: Y, multiSelectionKeyCode: Q, panActivationKeyCode: le, zoomActivationKeyCode: te, onlyRenderVisibleElements: ge, defaultViewport: ve, translateExtent: Xe, minZoom: Te, maxZoom: He, preventScrolling: pt, zoomOnScroll: ke, zoomOnPinch: at, zoomOnDoubleClick: be, panOnScroll: pe, panOnScrollSpeed: se, panOnScrollMode: ce, panOnDrag: we, onPaneClick: Ae, onPaneMouseEnter: Ee, onPaneMouseMove: ze, onPaneMouseLeave: Me, onPaneScroll: Ue, onPaneContextMenu: et, paneClickDistance: dt, nodeClickDistance: ct, onSelectionContextMenu: P, onSelectionStart: F, onSelectionEnd: z, onReconnect: nt, onReconnectStart: gt, onReconnectEnd: yt, onEdgeContextMenu: sn, onEdgeDoubleClick: Wt, onEdgeMouseEnter: Ut, onEdgeMouseMove: Un, onEdgeMouseLeave: kn, reconnectRadius: dn, defaultMarkerColor: ut, noDragClassName: yi, noWheelClassName: Xi, noPanClassName: Pi, rfId: Fi, disableKeyboardA11y: Cr, nodeExtent: Ge, viewport: mt, onViewportChange: er }), m(Rle, { onSelectionChange: D }), Je, m(Ole, { proOptions: St, position: Bt }), m(Tle, { rfId: Fi, disableKeyboardA11y: Cr })] }) });
32636
+ return m("div", { "data-testid": "rf__wrapper", ...Al, onScroll: On, style: { ...Qi, ...ade }, ref: Tl, className: xn(["react-flow", r, pa]), id: Fe, role: "application", children: R(sde, { nodes: e, edges: t, width: Jr, height: Zr, fitView: be, fitViewOptions: je, minZoom: Te, maxZoom: He, nodeOrigin: fe, nodeExtent: Ge, zIndexMode: Nl, children: [m(Ble, { nodes: e, edges: t, defaultNodes: n, defaultEdges: i, onConnect: h, onConnectStart: p, onConnectEnd: y, onClickConnectStart: g, onClickConnectEnd: v, nodesDraggable: Se, autoPanOnNodeFocus: q, nodesConnectable: ee, nodesFocusable: re, edgesFocusable: ae, edgesReconnectable: de, elementsSelectable: he, elevateNodesOnSelect: Sn, elevateEdgesOnSelect: Ri, minZoom: Te, maxZoom: He, nodeExtent: Ge, onNodesChange: _n, onEdgesChange: Tn, snapToGrid: ue, snapGrid: me, connectionMode: $, translateExtent: Xe, connectOnClick: Ct, defaultEdgeOptions: gn, fitView: be, fitViewOptions: je, onNodesDelete: A, onEdgesDelete: T, onDelete: I, onNodeDragStart: S, onNodeDrag: E, onNodeDragStop: C, onSelectionDrag: M, onSelectionDragStart: N, onSelectionDragStop: O, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: Pi, nodeOrigin: fe, rfId: Fi, autoPanOnConnect: hs, autoPanOnNodeDrag: bo, autoPanSpeed: Ji, onError: El, connectionRadius: Li, isValidConnection: Zi, selectNodesOnDrag: ye, nodeDragThreshold: Ve, connectionDragThreshold: ft, onBeforeDelete: H, debug: Pd, ariaLabelConfig: Rd, zIndexMode: Nl }), m(rde, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: b, onNodeMouseMove: w, onNodeMouseLeave: x, onNodeContextMenu: k, onNodeDoubleClick: _, nodeTypes: o, edgeTypes: s, connectionLineType: V, connectionLineStyle: Z, connectionLineComponent: G, connectionLineContainerStyle: B, selectionKeyCode: W, selectionOnDrag: j, selectionMode: ne, deleteKeyCode: Y, multiSelectionKeyCode: te, panActivationKeyCode: le, zoomActivationKeyCode: Q, onlyRenderVisibleElements: ge, defaultViewport: ve, translateExtent: Xe, minZoom: Te, maxZoom: He, preventScrolling: pt, zoomOnScroll: ke, zoomOnPinch: at, zoomOnDoubleClick: we, panOnScroll: pe, panOnScrollSpeed: se, panOnScrollMode: ce, panOnDrag: xe, onPaneClick: Ae, onPaneMouseEnter: Ee, onPaneMouseMove: ze, onPaneMouseLeave: Me, onPaneScroll: Ue, onPaneContextMenu: et, paneClickDistance: dt, nodeClickDistance: ct, onSelectionContextMenu: P, onSelectionStart: F, onSelectionEnd: z, onReconnect: nt, onReconnectStart: gt, onReconnectEnd: yt, onEdgeContextMenu: sn, onEdgeDoubleClick: Wt, onEdgeMouseEnter: Ut, onEdgeMouseMove: Un, onEdgeMouseLeave: kn, reconnectRadius: dn, defaultMarkerColor: ut, noDragClassName: yi, noWheelClassName: Xi, noPanClassName: Pi, rfId: Fi, disableKeyboardA11y: Cr, nodeExtent: Ge, viewport: mt, onViewportChange: er }), m(Rle, { onSelectionChange: D }), Je, m(Ole, { proOptions: St, position: Bt }), m(Tle, { rfId: Fi, disableKeyboardA11y: Cr })] }) });
32635
32637
  }
32636
32638
  var cde = CR(lde);
32637
32639
  function dde({ dimensions: e, lineWidth: t, variant: n, className: i }) {
@@ -32841,10 +32843,10 @@ function JR({
32841
32843
  const le = h ? (ue) => {
32842
32844
  const [me, ge] = ne.current?.pointer(ue) || [0, 0];
32843
32845
  h(ue, { x: me, y: ge });
32844
- } : void 0, Q = p ? K((ue, me) => {
32846
+ } : void 0, te = p ? K((ue, me) => {
32845
32847
  const ge = k.getState().nodeLookup.get(me).internals.userNode;
32846
32848
  p(ue, ge);
32847
- }, []) : void 0, te = v ?? N["minimap.ariaLabel"];
32849
+ }, []) : void 0, Q = v ?? N["minimap.ariaLabel"];
32848
32850
  return m(z1, { position: u, style: {
32849
32851
  ...e,
32850
32852
  "--xy-minimap-background-color-props": typeof l == "string" ? l : void 0,
@@ -32854,7 +32856,7 @@ function JR({
32854
32856
  "--xy-minimap-node-background-color-props": typeof i == "string" ? i : void 0,
32855
32857
  "--xy-minimap-node-stroke-color-props": typeof n == "string" ? n : void 0,
32856
32858
  "--xy-minimap-node-stroke-width-props": typeof s == "number" ? s : void 0
32857
- }, className: xn(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: R("svg", { width: M, height: O, viewBox: `${Z} ${G} ${B} ${Y}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": W, ref: _, onClick: le, children: [te && m("title", { id: W, children: te }), m(Nde, { onClick: Q, nodeColor: i, nodeStrokeColor: n, nodeBorderRadius: o, nodeClassName: r, nodeStrokeWidth: s, nodeComponent: a }), m("path", { className: "react-flow__minimap-mask", d: `M${Z - V},${G - V}h${B + V * 2}v${Y + V * 2}h${-B - V * 2}z
32859
+ }, className: xn(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: R("svg", { width: M, height: O, viewBox: `${Z} ${G} ${B} ${Y}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": W, ref: _, onClick: le, children: [Q && m("title", { id: W, children: Q }), m(Nde, { onClick: te, nodeColor: i, nodeStrokeColor: n, nodeBorderRadius: o, nodeClassName: r, nodeStrokeWidth: s, nodeComponent: a }), m("path", { className: "react-flow__minimap-mask", d: `M${Z - V},${G - V}h${B + V * 2}v${Y + V * 2}h${-B - V * 2}z
32858
32860
  M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) });
32859
32861
  }
32860
32862
  JR.displayName = "MiniMap";
@@ -33828,13 +33830,13 @@ function Lfe(e, t, n, i) {
33828
33830
  });
33829
33831
  const W = Z[Z.length - 1], j = S(W).length > 0, ne = G - (j ? k : a);
33830
33832
  let le = (B + Y) / 2;
33831
- const Q = le - w / 2, te = le + w / 2;
33833
+ const te = le - w / 2, Q = le + w / 2;
33832
33834
  let ue = ne;
33833
- if (Q < $) {
33834
- const me = $ - Q;
33835
+ if (te < $) {
33836
+ const me = $ - te;
33835
33837
  C(H, me), le += me, ue = ne + me;
33836
33838
  }
33837
- return te > ue && (ue = te), _.set(H, { cross: le, depth: V }), { crossEnd: ue, centerCross: le };
33839
+ return Q > ue && (ue = Q), _.set(H, { cross: le, depth: V }), { crossEnd: ue, centerCross: le };
33838
33840
  }
33839
33841
  function C(H, $) {
33840
33842
  const V = [H];
@@ -33889,7 +33891,7 @@ function Lfe(e, t, n, i) {
33889
33891
  const $ = H.id.startsWith("expander-");
33890
33892
  let V = _.get(H.id);
33891
33893
  !V && $ && H.parentId && (V = _.get(H.parentId));
33892
- const Z = V?.cross ?? 0, G = V?.depth ?? 0, B = V?.stackIndex, Y = B !== void 0, W = $ ? Ofe : Y && g ? c : r, j = $ ? Ife : Y && !g ? c : o, ne = (v ? I - G : G) * x, le = Y ? B * (c + d) : 0, Q = s * (1 - t8), te = Y ? v ? ne + b - c / 2 - le + Q : ne + c / 2 + le - Q : ne + b / 2, ue = $ ? Z : P(Z), me = Math.round(te), ge = g ? me : ue, ye = g ? ue : me, Se = Math.round(ge - W / 2), q = Math.round(ye - j / 2);
33894
+ const Z = V?.cross ?? 0, G = V?.depth ?? 0, B = V?.stackIndex, Y = B !== void 0, W = $ ? Ofe : Y && g ? c : r, j = $ ? Ife : Y && !g ? c : o, ne = (v ? I - G : G) * x, le = Y ? B * (c + d) : 0, te = s * (1 - t8), Q = Y ? v ? ne + b - c / 2 - le + te : ne + c / 2 + le - te : ne + b / 2, ue = $ ? Z : P(Z), me = Math.round(Q), ge = g ? me : ue, ye = g ? ue : me, Se = Math.round(ge - W / 2), q = Math.round(ye - j / 2);
33893
33895
  return Se < D && (D = Se), q < N && (N = q), Se + W > M && (M = Se + W), q + j > O && (O = q + j), { id: H.id, x: Se, y: q, width: W, height: j };
33894
33896
  }), z = t.map((H) => ({
33895
33897
  id: H.id,
@@ -34059,7 +34061,7 @@ function Hfe({
34059
34061
  ), ne = Ffe({
34060
34062
  enabled: w ?? !1,
34061
34063
  padding: x
34062
- }), le = xfe[y], Q = a8[y], te = ZR[y], ue = L(
34064
+ }), le = xfe[y], te = a8[y], Q = ZR[y], ue = L(
34063
34065
  /* @__PURE__ */ new Map()
34064
34066
  ), me = X(() => {
34065
34067
  const fe = i.current;
@@ -34180,12 +34182,12 @@ function Hfe({
34180
34182
  dataLoaded: ke.dataLoaded
34181
34183
  }, ye.current.set(ke.id, se));
34182
34184
  const ce = _.get(ke.id);
34183
- let be;
34185
+ let we;
34184
34186
  if (n.has(ke.id) && ke.children.length > 0) {
34185
34187
  const Ue = ke.children.map((et) => et.id).filter((et) => he(et));
34186
- be = Ue.length > 0 ? Ue : void 0;
34188
+ we = Ue.length > 0 ? Ue : void 0;
34187
34189
  }
34188
- const we = C.has(ke.id), Ae = B.groupOf.get(ke.id), Ee = Ae ? B.groups.get(ke.parentId ?? "")?.rows.get(ke.id) : void 0, ze = Ee ? Ee.width : we ? at?.width ?? fe : fe, Me = Ee ? Ee.height : we ? at?.height ?? ae : ae;
34190
+ const xe = C.has(ke.id), Ae = B.groupOf.get(ke.id), Ee = Ae ? B.groups.get(ke.parentId ?? "")?.rows.get(ke.id) : void 0, ze = Ee ? Ee.width : xe ? at?.width ?? fe : fe, Me = Ee ? Ee.height : xe ? at?.height ?? ae : ae;
34189
34191
  ut.push({
34190
34192
  id: ke.id,
34191
34193
  type: "graphNode",
@@ -34212,7 +34214,7 @@ function Hfe({
34212
34214
  // React Flow's own viewport culling keeps its original behavior.
34213
34215
  ...ve ? {
34214
34216
  height: Me,
34215
- handles: we ? Xe(
34217
+ handles: xe ? Xe(
34216
34218
  ze,
34217
34219
  Me,
34218
34220
  u ?? xu
@@ -34226,8 +34228,8 @@ function Hfe({
34226
34228
  ariaLevel: ce?.level ?? 1,
34227
34229
  ariaSetSize: ce?.setSize ?? 1,
34228
34230
  ariaPosInSet: ce?.posInSet ?? 1,
34229
- visibleChildIds: be,
34230
- stacked: we || void 0
34231
+ visibleChildIds: we,
34232
+ stacked: xe || void 0
34231
34233
  }
34232
34234
  });
34233
34235
  }
@@ -34241,11 +34243,11 @@ function Hfe({
34241
34243
  height: ae
34242
34244
  };
34243
34245
  pe.width;
34244
- const se = pe.height ?? ae, ce = E.has(ke.parentId) ? Q : le, be = pe.x, we = pe.y * de + se + ce;
34246
+ const se = pe.height ?? ae, ce = E.has(ke.parentId) ? te : le, we = pe.x, xe = pe.y * de + se + ce;
34245
34247
  ut.push({
34246
34248
  id: ke.id,
34247
34249
  type: "expanderNode",
34248
- position: { x: be, y: we },
34250
+ position: { x: we, y: xe },
34249
34251
  sourcePosition: Te,
34250
34252
  targetPosition: He,
34251
34253
  data: {
@@ -34263,12 +34265,12 @@ function Hfe({
34263
34265
  continue;
34264
34266
  const at = G.get(ke.id), pe = at?.x ?? 0, se = at?.y ?? 0;
34265
34267
  at?.width;
34266
- const ce = at?.height ?? ae, be = E.has(ke.id) ? Q : le, we = pe, Ae = se * de + ce + be + te;
34268
+ const ce = at?.height ?? ae, we = E.has(ke.id) ? te : le, xe = pe, Ae = se * de + ce + we + Q;
34267
34269
  ut.push({
34268
34270
  id: `collapser-${ke.id}`,
34269
34271
  type: "collapserNode",
34270
34272
  zIndex: 10,
34271
- position: { x: we, y: Ae },
34273
+ position: { x: xe, y: Ae },
34272
34274
  sourcePosition: Te,
34273
34275
  targetPosition: He,
34274
34276
  data: {
@@ -34289,8 +34291,8 @@ function Hfe({
34289
34291
  n,
34290
34292
  s,
34291
34293
  le,
34292
- Q,
34293
34294
  te,
34295
+ Q,
34294
34296
  E,
34295
34297
  d,
34296
34298
  z,
@@ -34992,8 +34994,8 @@ function aue(e) {
34992
34994
  reserveTagRow: j,
34993
34995
  onVisibleNodesChange: ne,
34994
34996
  onRenderedNodesChange: le,
34995
- enableNodeWindowing: Q,
34996
- nodeWindowPadding: te,
34997
+ enableNodeWindowing: te,
34998
+ nodeWindowPadding: Q,
34997
34999
  loadVisibleNodeData: ue,
34998
35000
  visibleDataDebounceMs: me,
34999
35001
  layoutEngine: ge,
@@ -35013,7 +35015,7 @@ function aue(e) {
35013
35015
  lazyTree: pe,
35014
35016
  resolvedNodes: se,
35015
35017
  resolvedEdgesProp: ce,
35016
- deferredStatus: be
35018
+ deferredStatus: we
35017
35019
  } = sue({
35018
35020
  rootNodes: r,
35019
35021
  loadChildren: o,
@@ -35022,7 +35024,7 @@ function aue(e) {
35022
35024
  deferredNodes: s,
35023
35025
  onDeferredLoadComplete: a,
35024
35026
  onDeferredLoadError: l
35025
- }), { roots: we, nodeMap: Ae } = Xfe(se), Ee = L(null), ze = L(null), Me = L(
35027
+ }), { roots: xe, nodeMap: Ae } = Xfe(se), Ee = L(null), ze = L(null), Me = L(
35026
35028
  null
35027
35029
  ), {
35028
35030
  expandedNodes: Ue,
@@ -35032,7 +35034,7 @@ function aue(e) {
35032
35034
  expandAll: Je,
35033
35035
  collapseAll: nt
35034
35036
  } = yfe({
35035
- roots: we,
35037
+ roots: xe,
35036
35038
  nodeMap: Ae,
35037
35039
  isLazyMode: at,
35038
35040
  lazyTree: pe,
@@ -35055,7 +35057,7 @@ function aue(e) {
35055
35057
  handleZoomOut: yi,
35056
35058
  handleFitView: Xi,
35057
35059
  handleFocusUser: Pi,
35058
- centerOnNode: xe,
35060
+ centerOnNode: be,
35059
35061
  getFitPadding: je,
35060
35062
  hasViewportInset: Ct
35061
35063
  } = Kfe({
@@ -35065,11 +35067,11 @@ function aue(e) {
35065
35067
  currentUserNodeId: Se,
35066
35068
  onZoomLevelChange: V,
35067
35069
  onViewportChange: Z,
35068
- nodeWindowingActive: Q ?? !1,
35070
+ nodeWindowingActive: te ?? !1,
35069
35071
  getContentBounds: Ut,
35070
35072
  getNodePosition: Un,
35071
35073
  viewportInset: D
35072
- }), Bt = (Q ?? !1) && dn, {
35074
+ }), Bt = (te ?? !1) && dn, {
35073
35075
  selectedNodes: St,
35074
35076
  focusedNodeId: gn,
35075
35077
  setFocusedNodeId: Sn,
@@ -35080,7 +35082,7 @@ function aue(e) {
35080
35082
  selectNode: Ji,
35081
35083
  clearSelection: Li
35082
35084
  } = Yfe({
35083
- roots: we,
35085
+ roots: xe,
35084
35086
  expandedNodes: Ue,
35085
35087
  selectionMode: x,
35086
35088
  controlledSelected: k,
@@ -35109,7 +35111,7 @@ function aue(e) {
35109
35111
  getNodePosition: wo,
35110
35112
  stackHoverZones: Pd
35111
35113
  } = Hfe({
35112
- roots: we,
35114
+ roots: xe,
35113
35115
  nodeMap: Ae,
35114
35116
  expandedNodes: Ue,
35115
35117
  anchorNodeRef: dt,
@@ -35131,7 +35133,7 @@ function aue(e) {
35131
35133
  // Gate windowing on the first settled viewport so the mount-time `fitView`
35132
35134
  // frames the whole graph before the camera decides which nodes to keep.
35133
35135
  enableNodeWindowing: Bt,
35134
- nodeWindowPadding: te
35136
+ nodeWindowPadding: Q
35135
35137
  });
35136
35138
  gt.current = Zr, yt.current = wo, sn.current = Pd, Wt.current = kn;
35137
35139
  const xo = K(
@@ -35187,12 +35189,12 @@ function aue(e) {
35187
35189
  nodeIds: er,
35188
35190
  loadVisibleNodeData: ue,
35189
35191
  debounceMs: me,
35190
- enabled: !Q || dn
35192
+ enabled: !te || dn
35191
35193
  });
35192
35194
  const On = L(() => {
35193
35195
  });
35194
35196
  On.current = (ot) => {
35195
- if (Q && xe(ot, 300))
35197
+ if (te && be(ot, 300))
35196
35198
  return;
35197
35199
  const Pt = Ae.get(ot)?.children.map((nr) => nr.id) ?? [], Yt = lfe(
35198
35200
  ot,
@@ -35210,7 +35212,7 @@ function aue(e) {
35210
35212
  });
35211
35213
  ko.current = (ot) => {
35212
35214
  const Pt = Math.min(I ?? nfe, p);
35213
- xe(ot, 300, Pt) || re.fitView({
35215
+ be(ot, 300, Pt) || re.fitView({
35214
35216
  nodes: [{ id: ot }],
35215
35217
  duration: 300,
35216
35218
  padding: je(jc),
@@ -35289,7 +35291,7 @@ function aue(e) {
35289
35291
  ), Rl = X(
35290
35292
  () => ({ toggleExpand: ct, selectNode: Ji, expandAll: Je, collapseAll: nt }),
35291
35293
  [ct, Ji, Je, nt]
35292
- ), Fd = !at && s !== void 0 && be === "loading", Ll = Qi.length > efe, Ev = X(
35294
+ ), Fd = !at && s !== void 0 && we === "loading", Ll = Qi.length > efe, Ev = X(
35293
35295
  () => ({
35294
35296
  renderEdge: G,
35295
35297
  // Only publish a Set when the consumer opted in via `nodeTagTypes`.
@@ -36372,8 +36374,8 @@ function Mue(e, t, n) {
36372
36374
  return;
36373
36375
  const Z = r.current;
36374
36376
  a((G) => {
36375
- const B = new Map(G.map((te) => [te.id, te])), Y = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), j = (te) => {
36376
- for (const ue of Tue(te, B)) {
36377
+ const B = new Map(G.map((Q) => [Q.id, Q])), Y = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), j = (Q) => {
36378
+ for (const ue of Tue(Q, B)) {
36377
36379
  const me = B.get(ue)?.parentId;
36378
36380
  me != null && W.add(me), B.delete(ue), x.current.delete(ue), Y.add(ue);
36379
36381
  }
@@ -36388,15 +36390,15 @@ function Mue(e, t, n) {
36388
36390
  stackNodes: Z.stackNodes,
36389
36391
  hydrates: !!Z.loadNodeData
36390
36392
  }), j(Oue(B)), Due(B, W, x.current), Y.size > 0) {
36391
- const te = f.current, ue = new Set(
36392
- [...te].filter((me) => !Y.has(me))
36393
+ const Q = f.current, ue = new Set(
36394
+ [...Q].filter((me) => !Y.has(me))
36393
36395
  );
36394
- ue.size !== te.size && d(ue);
36396
+ ue.size !== Q.size && d(ue);
36395
36397
  }
36396
- const ne = G.map((te) => B.get(te.id)).filter((te) => !!te), le = new Set(ne.map((te) => te.id)), Q = [...B.values()].filter(
36397
- (te) => !le.has(te.id)
36398
+ const ne = G.map((Q) => B.get(Q.id)).filter((Q) => !!Q), le = new Set(ne.map((Q) => Q.id)), te = [...B.values()].filter(
36399
+ (Q) => !le.has(Q.id)
36398
36400
  );
36399
- return [...ne, ...Q];
36401
+ return [...ne, ...te];
36400
36402
  });
36401
36403
  },
36402
36404
  [k]
@@ -36416,7 +36418,7 @@ function Mue(e, t, n) {
36416
36418
  const ne = await Promise.all(
36417
36419
  j.map((le) => E(le.id))
36418
36420
  );
36419
- j.forEach((le) => G.add(le.id)), B = j.flatMap((le, Q) => ne[Q]);
36421
+ j.forEach((le) => G.add(le.id)), B = j.flatMap((le, te) => ne[te]);
36420
36422
  }
36421
36423
  const Y = r.current.focusOnEntry;
36422
36424
  if (Y && r.current.loadNodePath)
@@ -36510,7 +36512,7 @@ const Pue = ({
36510
36512
  revealNode: j,
36511
36513
  clearFocus: ne,
36512
36514
  loadVisibleNodeData: le,
36513
- isInitialLoading: Q
36515
+ isInitialLoading: te
36514
36516
  } = Mue(
36515
36517
  e,
36516
36518
  {
@@ -36532,19 +36534,19 @@ const Pue = ({
36532
36534
  showControls: M
36533
36535
  },
36534
36536
  { onLoadData: $, onLoadError: V }
36535
- ), te = L(null), [ue] = J(() => x !== void 0), [me, ge] = J(
36537
+ ), Q = L(null), [ue] = J(() => x !== void 0), [me, ge] = J(
36536
36538
  () => x ? /* @__PURE__ */ new Set([x]) : /* @__PURE__ */ new Set()
36537
36539
  ), ye = K(
36538
36540
  async (ke) => {
36539
- await j(ke), te.current?.clearSelection(), te.current?.focusNode(ke);
36541
+ await j(ke), Q.current?.clearSelection(), Q.current?.focusNode(ke);
36540
36542
  },
36541
36543
  [j]
36542
36544
  ), Se = L(void 0), q = L(void 0), ee = L(!1);
36543
36545
  ie(() => {
36544
- if (Q)
36546
+ if (te)
36545
36547
  return;
36546
36548
  const ke = Sue({
36547
- isInitialLoading: Q,
36549
+ isInitialLoading: te,
36548
36550
  initialConsumed: ee.current,
36549
36551
  revealNodeId: v,
36550
36552
  lastRevealed: Se.current,
@@ -36552,7 +36554,7 @@ const Pue = ({
36552
36554
  lastNonce: q.current
36553
36555
  });
36554
36556
  ke.consumeInitial && (ee.current = !0), Se.current = ke.lastRevealed, q.current = ke.lastNonce, ke.revealId && ye(ke.revealId);
36555
- }, [v, b, ye, Q]);
36557
+ }, [v, b, ye, te]);
36556
36558
  const re = L(e.setCurrentSearch);
36557
36559
  re.current = e.setCurrentSearch, ie(() => (re.current(void 0), () => re.current(void 0)), []);
36558
36560
  const { settings: fe } = cs(), ae = fe.visualization.graph, de = s ? [...s] : [], he = new Set(a ?? de), ve = new Set(l ?? []), Te = new Set(Object.keys(c ?? {})), He = new Set(
@@ -36564,10 +36566,10 @@ const Pue = ({
36564
36566
  ), ut = r ? (ke) => [...r(ke)].sort(
36565
36567
  (at, pe) => pt.indexOf(kg(at)) - pt.indexOf(kg(pe))
36566
36568
  ) : void 0;
36567
- return /* @__PURE__ */ m("div", { className: "flex h-full min-h-0 flex-1 flex-col border-0 border-t border-solid border-f1-border-secondary bg-[hsl(var(--neutral-3))]", children: Q ? /* @__PURE__ */ m(fue, { showTags: r !== void 0 }) : /* @__PURE__ */ m(
36569
+ return /* @__PURE__ */ m("div", { className: "flex h-full min-h-0 flex-1 flex-col border-0 border-t border-solid border-f1-border-secondary bg-[hsl(var(--neutral-3))]", children: te ? /* @__PURE__ */ m(fue, { showTags: r !== void 0 }) : /* @__PURE__ */ m(
36568
36570
  p8,
36569
36571
  {
36570
- ref: te,
36572
+ ref: Q,
36571
36573
  nodes: Z,
36572
36574
  expandedNodes: G,
36573
36575
  onExpandedNodesChange: B,
@@ -37422,15 +37424,15 @@ function dhe({
37422
37424
  const Z = V.getBoundingClientRect(), G = N.current.input?.clientY, B = N.current.input?.clientX;
37423
37425
  if (typeof G == "number" && typeof B == "number") {
37424
37426
  const Y = Z.top + Z.height / 2, W = G - Y, j = 24, ne = 300, le = Z.height / 2;
37425
- let Q = 0;
37427
+ let te = 0;
37426
37428
  if (Math.abs(W) > j) {
37427
37429
  const me = Math.min(
37428
37430
  Math.abs(W) - j,
37429
37431
  le
37430
37432
  ) / le;
37431
- Q = Math.sign(W) * ne * me;
37433
+ te = Math.sign(W) * ne * me;
37432
37434
  }
37433
- if (g.current = Q, I(), N.current.dropTargets.some((ue) => ue.data.type === "list-card-target"))
37435
+ if (g.current = te, I(), N.current.dropTargets.some((ue) => ue.data.type === "list-card-target"))
37434
37436
  (x !== null || _ !== null) && (k(null), S(null));
37435
37437
  else {
37436
37438
  const ue = o.current;
@@ -37850,7 +37852,7 @@ function CE(e) {
37850
37852
  return B && d((Y) => Y.map((j) => {
37851
37853
  if (j.id !== A)
37852
37854
  return j;
37853
- const ne = [...j.items], le = ne.findIndex((Q, te) => String(i(Q, te, A)) === String(T));
37855
+ const ne = [...j.items], le = ne.findIndex((te, Q) => String(i(te, Q, A)) === String(T));
37854
37856
  return le !== -1 && ne.splice(le, 1, B), { ...j, items: ne };
37855
37857
  })), B;
37856
37858
  } catch (G) {
@@ -38065,7 +38067,7 @@ const P0 = ({
38065
38067
  (B, Y, W, j) => {
38066
38068
  const ne = String(
38067
38069
  y ? y(B, Y) : B?.id ?? Y
38068
- ), le = a.selectable ? a.selectable(B) : B.id, Q = S && j ? S.get(j) : void 0, te = (typeof le == "string" || typeof le == "number") && Q && Q?.selectedItems.has(le), ue = a.itemUrl ? a.itemUrl(B) : void 0, me = a.itemOnClick ? a.itemOnClick(B) : void 0;
38070
+ ), le = a.selectable ? a.selectable(B) : B.id, te = S && j ? S.get(j) : void 0, Q = (typeof le == "string" || typeof le == "number") && te && te?.selectedItems.has(le), ue = a.itemUrl ? a.itemUrl(B) : void 0, me = a.itemOnClick ? a.itemOnClick(B) : void 0;
38069
38071
  return /* @__PURE__ */ m(
38070
38072
  nhe,
38071
38073
  {
@@ -38083,10 +38085,10 @@ const P0 = ({
38083
38085
  compact: !0,
38084
38086
  forceVerticalMetadata: !0,
38085
38087
  selectable: a.selectable !== void 0,
38086
- selected: te,
38088
+ selected: Q,
38087
38089
  "data-testid": `kanban-card-${String(B.id)}`,
38088
38090
  onSelect: (ge) => {
38089
- Q && Q.handleSelectItemChange(B, ge);
38091
+ te && te.handleSelectItemChange(B, ge);
38090
38092
  },
38091
38093
  onClick: me,
38092
38094
  link: ue
@@ -38144,22 +38146,22 @@ const P0 = ({
38144
38146
  });
38145
38147
  }, [T, e, p, D]), z = X(() => T ? F.map((B) => {
38146
38148
  const W = (f ? f(B) : e).filter((Q) => P.has(Q.id)).map((Q) => {
38147
- const te = p[Q.id], me = (te?.data?.type === "grouped" ? te.data.groups.find((ge) => ge.key === B) : void 0)?.records ?? [];
38149
+ const ue = p[Q.id], ge = (ue?.data?.type === "grouped" ? ue.data.groups.find((ye) => ye.key === B) : void 0)?.records ?? [];
38148
38150
  return {
38149
38151
  id: Q.id,
38150
38152
  title: Q.title,
38151
- items: me,
38153
+ items: ge,
38152
38154
  variant: Q.variant,
38153
38155
  color: Q.color,
38154
38156
  info: Q.info,
38155
- total: me.length,
38157
+ total: ge.length,
38156
38158
  hasMore: !1,
38157
- loading: te ? te.isInitialLoading : !0,
38159
+ loading: ue ? ue.isInitialLoading : !0,
38158
38160
  loadingMore: !1,
38159
38161
  fetchMore: void 0
38160
38162
  };
38161
- }), j = O ? O.label(B, a.currentFilters) : B, ne = O?.itemCount ? O.itemCount(B, a.currentFilters) : W.reduce((Q, te) => Q + te.items.length, 0), le = O?.avatar?.(B, a.currentFilters);
38162
- return { key: B, label: j, itemCount: ne, avatar: le, lanes: W };
38163
+ }), j = O ? O.label(B, a.currentFilters) : B, ne = O?.itemCount ? O.itemCount(B, a.currentFilters) : W.reduce((Q, ue) => Q + ue.items.length, 0), le = O?.avatar?.(B, a.currentFilters), te = O?.metadata?.(B, a.currentFilters);
38164
+ return { key: B, label: j, itemCount: ne, avatar: le, metadata: te, lanes: W };
38163
38165
  }) : [], [
38164
38166
  T,
38165
38167
  F,
@@ -38234,8 +38236,8 @@ const P0 = ({
38234
38236
  for (const le of B.lanes) {
38235
38237
  if (le.id === void 0)
38236
38238
  continue;
38237
- const Q = S.get(le.id)?.groupAllSelectedStatus[B.key];
38238
- W += Q?.selectedCount ?? 0, j += Q?.unselectedCount ?? 0;
38239
+ const te = S.get(le.id)?.groupAllSelectedStatus[B.key];
38240
+ W += te?.selectedCount ?? 0, j += te?.unselectedCount ?? 0;
38239
38241
  }
38240
38242
  const ne = W === 0 ? !1 : j === 0 ? !0 : "indeterminate";
38241
38243
  return /* @__PURE__ */ R(
@@ -38259,10 +38261,11 @@ const P0 = ({
38259
38261
  label: B.label,
38260
38262
  itemCount: B.itemCount,
38261
38263
  avatar: B.avatar,
38264
+ metadata: B.metadata,
38262
38265
  selectable: Y,
38263
38266
  select: ne,
38264
- onSelectChange: (le) => B.lanes.forEach((Q) => {
38265
- Q.id !== void 0 && S.get(Q.id)?.handleSelectGroupChange(B.key, le);
38267
+ onSelectChange: (le) => B.lanes.forEach((te) => {
38268
+ te.id !== void 0 && S.get(te.id)?.handleSelectGroupChange(B.key, le);
38266
38269
  }),
38267
38270
  open: Z[B.key],
38268
38271
  onOpenChange: (le) => G(B.key, le)
@@ -38933,6 +38936,7 @@ const P0 = ({
38933
38936
  label: C.label,
38934
38937
  itemCount: T,
38935
38938
  avatar: C.avatar,
38939
+ metadata: C.metadata,
38936
38940
  open: k[C.key],
38937
38941
  onOpenChange: (I) => _(C.key, I)
38938
38942
  },
@@ -38999,7 +39003,7 @@ const P0 = ({
38999
39003
  }
39000
39004
  );
39001
39005
  }, Ihe = Ez(
39002
- () => import("./index-CnTrb9LA.js").then((e) => ({ default: e.MapCollection }))
39006
+ () => import("./index-B2K8G-bZ.js").then((e) => ({ default: e.MapCollection }))
39003
39007
  ), Xs = {
39004
39008
  table: {
39005
39009
  name: "Table",
@@ -40508,7 +40512,7 @@ const Jw = "dc_shared_view", Npe = (e) => {
40508
40512
  sortings: G
40509
40513
  } = e, [B, Y] = J(g), [W, j] = J(
40510
40514
  void 0
40511
- ), [ne, le] = J([]), [Q, te] = J(null), [ue] = J(() => {
40515
+ ), [ne, le] = J([]), [te, Q] = J(null), [ue] = J(() => {
40512
40516
  if (typeof window > "u")
40513
40517
  return null;
40514
40518
  const _e = new URLSearchParams(window.location.search);
@@ -40573,13 +40577,13 @@ const Jw = "dc_shared_view", Npe = (e) => {
40573
40577
  ), ce = X(
40574
40578
  () => Xne(Yne(O)),
40575
40579
  [O]
40576
- ), be = X(
40580
+ ), we = X(
40577
40581
  () => Jne(P),
40578
40582
  [P]
40579
- ), we = p && typeof p == "object" ? p.filename : f ? `${f}_export` : void 0, Ae = kpe({
40583
+ ), xe = p && typeof p == "object" ? p.filename : f ? `${f}_export` : void 0, Ae = kpe({
40580
40584
  source: Ge,
40581
40585
  currentVisualization: t[B],
40582
- filename: we,
40586
+ filename: xe,
40583
40587
  enabled: !!p
40584
40588
  }), Ee = X(
40585
40589
  () => Math.min(
@@ -40606,7 +40610,7 @@ const Jw = "dc_shared_view", Npe = (e) => {
40606
40610
  Ae.loading,
40607
40611
  Ae.disabled,
40608
40612
  Ae.onClick
40609
- ]), Ue = se?.length > 0 || ce?.length > 0 || !!be || !!p, [et, dt] = J(void 0), ct = QO(), [Je, nt] = J(void 0), gt = K((_e) => {
40613
+ ]), Ue = se?.length > 0 || ce?.length > 0 || !!we || !!p, [et, dt] = J(void 0), ct = QO(), [Je, nt] = J(void 0), gt = K((_e) => {
40610
40614
  if (!_e)
40611
40615
  return [];
40612
40616
  const Ke = [];
@@ -40624,7 +40628,7 @@ const Jw = "dc_shared_view", Npe = (e) => {
40624
40628
  (_e) => !("type" in _e && _e.type === "separator")
40625
40629
  )
40626
40630
  };
40627
- }, [Je, gt]), [sn, Wt] = J(!1), [Ut, Un] = J(0), [kn, dn] = J(!1), [_n, Tn] = J("idle"), [yi, Xi] = J(!1), Pi = L(null), xe = L(null), je = L(null), Ct = L(null), Bt = L(null), St = hie(
40631
+ }, [Je, gt]), [sn, Wt] = J(!1), [Ut, Un] = J(0), [kn, dn] = J(!1), [_n, Tn] = J("idle"), [yi, Xi] = J(!1), Pi = L(null), be = L(null), je = L(null), Ct = L(null), Bt = L(null), St = hie(
40628
40632
  je,
40629
40633
  Ct,
40630
40634
  Bt
@@ -40636,8 +40640,8 @@ const Jw = "dc_shared_view", Npe = (e) => {
40636
40640
  Cr.current = Ri;
40637
40641
  const hs = s !== void 0, bo = K(
40638
40642
  (_e, Ke = !0) => {
40639
- xe.current && clearTimeout(xe.current), xe.current = setTimeout(() => {
40640
- Ke && Wt(!1), _e(), xe.current = null;
40643
+ be.current && clearTimeout(be.current), be.current = setTimeout(() => {
40644
+ Ke && Wt(!1), _e(), be.current = null;
40641
40645
  }, Fpe);
40642
40646
  },
40643
40647
  // setShowActionBar is a stable setState ref — safe to omit from deps.
@@ -40645,14 +40649,14 @@ const Jw = "dc_shared_view", Npe = (e) => {
40645
40649
  []
40646
40650
  );
40647
40651
  ie(() => () => {
40648
- xe.current && clearTimeout(xe.current);
40652
+ be.current && clearTimeout(be.current);
40649
40653
  }, []);
40650
40654
  const Ji = L(void 0);
40651
40655
  ie(() => {
40652
40656
  const _e = Ji.current;
40653
40657
  Ji.current = s, s === "success" && _e !== "success" ? (Xi(!1), bo(() => {
40654
40658
  et?.(), Xi(!0);
40655
- })) : _e === "success" && s !== "success" && (xe.current && (clearTimeout(xe.current), xe.current = null), Xi(!1));
40659
+ })) : _e === "success" && s !== "success" && (be.current && (clearTimeout(be.current), be.current = null), Xi(!1));
40656
40660
  }, [s, et, bo]);
40657
40661
  const Li = Re(), Zi = X(() => F === !0 ? (_e) => _e !== void 0 ? `${_e} ${Li.collections.itemsCount}` : null : F || void 0, [F, Li]), El = (_e, Ke, Ot) => {
40658
40662
  i?.(_e, Ke, Ot), Wt(
@@ -40875,7 +40879,7 @@ const Jw = "dc_shared_view", Npe = (e) => {
40875
40879
  ps
40876
40880
  ]), Yt = K(
40877
40881
  (_e) => {
40878
- const Ke = Q?.mode === "create" ? Q.shared : void 0, Ot = Ke ? {
40882
+ const Ke = te?.mode === "create" ? te.shared : void 0, Ot = Ke ? {
40879
40883
  filter: Ke.filter,
40880
40884
  sortings: Ke.sortings,
40881
40885
  grouping: Ke.grouping,
@@ -40901,10 +40905,10 @@ const Jw = "dc_shared_view", Npe = (e) => {
40901
40905
  description: _e.description,
40902
40906
  ...Ot
40903
40907
  };
40904
- le((vi) => [...vi, Rt]), j(Rt.id), Pl.current = !1, te(null);
40908
+ le((vi) => [...vi, Rt]), j(Rt.id), Pl.current = !1, Q(null);
40905
40909
  },
40906
40910
  [
40907
- Q,
40911
+ te,
40908
40912
  Se,
40909
40913
  V,
40910
40914
  z,
@@ -40914,7 +40918,7 @@ const Jw = "dc_shared_view", Npe = (e) => {
40914
40918
  ]
40915
40919
  ), nr = K(
40916
40920
  (_e) => {
40917
- const Ke = Q?.mode === "update" ? Q.presetId : void 0;
40921
+ const Ke = te?.mode === "update" ? te.presetId : void 0;
40918
40922
  if (!Ke)
40919
40923
  return;
40920
40924
  const Ot = FE(
@@ -40930,21 +40934,21 @@ const Jw = "dc_shared_view", Npe = (e) => {
40930
40934
  description: _e.description
40931
40935
  } : vi
40932
40936
  )
40933
- ), j((Rt) => Rt === Ke ? Ot : Rt), te(null);
40937
+ ), j((Rt) => Rt === Ke ? Ot : Rt), Q(null);
40934
40938
  },
40935
- [Q, On]
40939
+ [te, On]
40936
40940
  ), ya = K(() => {
40937
- const _e = Q?.mode === "update" ? Q.presetId : void 0;
40941
+ const _e = te?.mode === "update" ? te.presetId : void 0;
40938
40942
  _e && (le((Ke) => Ke.filter((Ot) => Ot.id !== _e)), j(
40939
40943
  (Ke) => Ke === _e ? void 0 : Ke
40940
- ), te(null));
40941
- }, [Q]), ms = K(() => {
40942
- te({ mode: "create" });
40944
+ ), Q(null));
40945
+ }, [te]), ms = K(() => {
40946
+ Q({ mode: "create" });
40943
40947
  }, []), Kh = X(
40944
40948
  () => Array.from(ko).filter((_e) => !!_e),
40945
40949
  [ko]
40946
40950
  ), vz = K(
40947
- (_e) => te({ mode: "update", presetId: _e }),
40951
+ (_e) => Q({ mode: "update", presetId: _e }),
40948
40952
  []
40949
40953
  ), bz = K(
40950
40954
  (_e) => {
@@ -40974,7 +40978,7 @@ const Jw = "dc_shared_view", Npe = (e) => {
40974
40978
  );
40975
40979
  return () => clearTimeout(_e);
40976
40980
  }, [Av]), ie(() => {
40977
- if (ue && (ot && te({ mode: "create", shared: ue }), typeof window < "u")) {
40981
+ if (ue && (ot && Q({ mode: "create", shared: ue }), typeof window < "u")) {
40978
40982
  const _e = new URLSearchParams(window.location.search);
40979
40983
  _e.delete(Jw);
40980
40984
  const Ke = _e.toString();
@@ -40986,8 +40990,8 @@ const Jw = "dc_shared_view", Npe = (e) => {
40986
40990
  }
40987
40991
  }, []);
40988
40992
  const Tv = X(
40989
- () => Q?.mode === "update" ? ne.find((_e) => _e.id === Q.presetId) : void 0,
40990
- [Q, ne]
40993
+ () => te?.mode === "update" ? ne.find((_e) => _e.id === te.presetId) : void 0,
40994
+ [te, ne]
40991
40995
  ), { storageReady: Gh } = Ghe(
40992
40996
  f,
40993
40997
  typeof d == "object" ? d?.features ?? ["*"] : ["*"],
@@ -41233,7 +41237,7 @@ const Jw = "dc_shared_view", Npe = (e) => {
41233
41237
  primaryActionsLabel: M,
41234
41238
  secondaryActions: ze,
41235
41239
  otherActions: Me,
41236
- upsellAction: be,
41240
+ upsellAction: we,
41237
41241
  primaryActionsMenuVariant: v
41238
41242
  }
41239
41243
  )
@@ -41307,21 +41311,21 @@ const Jw = "dc_shared_view", Npe = (e) => {
41307
41311
  /* @__PURE__ */ m(
41308
41312
  sie,
41309
41313
  {
41310
- isOpen: Q !== null,
41311
- mode: Q?.mode ?? "create",
41314
+ isOpen: te !== null,
41315
+ mode: te?.mode ?? "create",
41312
41316
  initialValues: Tv ? {
41313
41317
  title: Tv.label,
41314
41318
  description: Tv.description
41315
- } : Q?.mode === "create" && Q.shared ? {
41316
- title: Q.shared.label,
41317
- description: Q.shared.description
41319
+ } : te?.mode === "create" && te.shared ? {
41320
+ title: te.shared.label,
41321
+ description: te.shared.description
41318
41322
  } : void 0,
41319
- onClose: () => te(null),
41320
- onSubmit: Q?.mode === "update" ? nr : Yt,
41321
- onDelete: Q?.mode === "update" ? ya : void 0,
41322
- onShare: Q?.mode === "update" ? () => bz(Q.presetId) : void 0,
41323
+ onClose: () => Q(null),
41324
+ onSubmit: te?.mode === "update" ? nr : Yt,
41325
+ onDelete: te?.mode === "update" ? ya : void 0,
41326
+ onShare: te?.mode === "update" ? () => bz(te.presetId) : void 0,
41323
41327
  existingNames: On.filter(
41324
- (_e) => !(Q?.mode === "update" && _e.id === Q.presetId)
41328
+ (_e) => !(te?.mode === "update" && _e.id === te.presetId)
41325
41329
  ).map((_e) => _e.label)
41326
41330
  }
41327
41331
  ),
@@ -41683,8 +41687,8 @@ function Zpe({
41683
41687
  if (A.length === 0)
41684
41688
  return se;
41685
41689
  const ce = { ...se };
41686
- for (const be of A)
41687
- ce[be] instanceof Date && (ce[be] = ce[be].toISOString());
41690
+ for (const we of A)
41691
+ ce[we] instanceof Date && (ce[we] = ce[we].toISOString());
41688
41692
  return ce;
41689
41693
  },
41690
41694
  [A]
@@ -41693,12 +41697,12 @@ function Zpe({
41693
41697
  if (A.length === 0)
41694
41698
  return se;
41695
41699
  const ce = { ...se };
41696
- for (const be of A) {
41697
- const we = ce[be];
41698
- if (typeof we == "string" && we !== "") {
41699
- const Ae = Ym(we);
41700
- ce[be] = Number.isNaN(Ae.getTime()) ? void 0 : Ae;
41701
- } else we === "" && (ce[be] = void 0);
41700
+ for (const we of A) {
41701
+ const xe = ce[we];
41702
+ if (typeof xe == "string" && xe !== "") {
41703
+ const Ae = Ym(xe);
41704
+ ce[we] = Number.isNaN(Ae.getTime()) ? void 0 : Ae;
41705
+ } else xe === "" && (ce[we] = void 0);
41702
41706
  }
41703
41707
  return ce;
41704
41708
  },
@@ -41725,14 +41729,14 @@ function Zpe({
41725
41729
  (se) => {
41726
41730
  M(se);
41727
41731
  const ce = se.map(
41728
- ({ __key: be, ...we }) => I(we)
41732
+ ({ __key: we, ...xe }) => I(xe)
41729
41733
  );
41730
41734
  z.current = JSON.stringify(ce), t.onChange(ce);
41731
41735
  },
41732
41736
  [t, I]
41733
41737
  ), $ = e.onRemove, V = e.confirmRemove, Z = K(
41734
41738
  async (se) => {
41735
- const { __key: ce, ...be } = se, we = I(be), Ae = V ? V(we) : {
41739
+ const { __key: ce, ...we } = se, xe = I(we), Ae = V ? V(xe) : {
41736
41740
  type: "critical",
41737
41741
  title: o.removeConfirmTitle,
41738
41742
  msg: o.removeConfirmMessage,
@@ -41742,7 +41746,7 @@ function Zpe({
41742
41746
  if ($) {
41743
41747
  P((ze) => new Set(ze).add(ce));
41744
41748
  try {
41745
- const ze = await $(we);
41749
+ const ze = await $(xe);
41746
41750
  if (ze && ze.success === !1) {
41747
41751
  await y0.alert({
41748
41752
  type: "critical",
@@ -41781,11 +41785,11 @@ function Zpe({
41781
41785
  ), G = K(
41782
41786
  (se) => {
41783
41787
  const ce = { ...se };
41784
- for (const be of _) {
41785
- const we = ti(k[be]);
41786
- if (ln(we, "ZodNumber") && typeof ce[be] == "string") {
41787
- const Ae = ce[be].trim();
41788
- ce[be] = Ae === "" ? void 0 : Number(Ae);
41788
+ for (const we of _) {
41789
+ const xe = ti(k[we]);
41790
+ if (ln(xe, "ZodNumber") && typeof ce[we] == "string") {
41791
+ const Ae = ce[we].trim();
41792
+ ce[we] = Ae === "" ? void 0 : Number(Ae);
41789
41793
  }
41790
41794
  }
41791
41795
  return ce;
@@ -41810,15 +41814,15 @@ function Zpe({
41810
41814
  [e.removableIds]
41811
41815
  ), j = K(
41812
41816
  (se) => {
41813
- const ce = {}, be = se?.shape ?? {};
41814
- for (const we of Object.keys(be)) {
41815
- const Ae = be[we];
41817
+ const ce = {}, we = se?.shape ?? {};
41818
+ for (const xe of Object.keys(we)) {
41819
+ const Ae = we[xe];
41816
41820
  if (ln(Ae, "ZodDefault")) {
41817
- ce[we] = Ae._def.defaultValue();
41821
+ ce[xe] = Ae._def.defaultValue();
41818
41822
  continue;
41819
41823
  }
41820
41824
  const Ee = ti(Ae);
41821
- ln(Ee, "ZodString") ? ce[we] = "" : ln(Ee, "ZodArray") ? ce[we] = [] : ln(Ee, "ZodBoolean") && (ce[we] = !1);
41825
+ ln(Ee, "ZodString") ? ce[xe] = "" : ln(Ee, "ZodArray") ? ce[xe] = [] : ln(Ee, "ZodBoolean") && (ce[xe] = !1);
41822
41826
  }
41823
41827
  return ce;
41824
41828
  },
@@ -41831,13 +41835,13 @@ function Zpe({
41831
41835
  schema: ne,
41832
41836
  defaultValues: {},
41833
41837
  onSubmit: async () => ({ success: !0 })
41834
- }), Q = e.createFormDefinition ?? le, te = e.updateFormDefinition ?? le, ue = K(
41838
+ }), te = e.createFormDefinition ?? le, Q = e.updateFormDefinition ?? le, ue = K(
41835
41839
  async (se, ce) => {
41836
- const be = se === "add" ? Q : te;
41837
- let we = be;
41840
+ const we = se === "add" ? te : Q;
41841
+ let xe = we;
41838
41842
  const Ae = (Me) => {
41839
- we = {
41840
- ...be,
41843
+ xe = {
41844
+ ...we,
41841
41845
  defaultValues: void 0,
41842
41846
  asyncDefaultValues: (async () => Me)
41843
41847
  };
@@ -41847,7 +41851,7 @@ function Zpe({
41847
41851
  Ae(I(Ue));
41848
41852
  } else se === "add" && !e.createFormDefinition && Ae(j(e.itemSchema));
41849
41853
  const Ee = await Pne({
41850
- formDefinition: we,
41854
+ formDefinition: xe,
41851
41855
  title: se === "add" ? c : f,
41852
41856
  description: se === "add" ? d : u,
41853
41857
  ...se === "add" ? { labels: { submit: l } } : {}
@@ -41867,8 +41871,8 @@ function Zpe({
41867
41871
  e.createFormDefinition,
41868
41872
  I,
41869
41873
  T,
41870
- Q,
41871
41874
  te,
41875
+ Q,
41872
41876
  c,
41873
41877
  f,
41874
41878
  d,
@@ -41882,53 +41886,53 @@ function Zpe({
41882
41886
  const ce = jE(k[se]);
41883
41887
  if (!ce)
41884
41888
  return null;
41885
- const be = e.columns?.[se], we = {
41889
+ const we = e.columns?.[se], xe = {
41886
41890
  id: se,
41887
- label: be?.label ?? md(k[se])?.label ?? N8(se),
41888
- width: be?.width,
41889
- inputPlaceholder: be?.placeholder
41891
+ label: we?.label ?? md(k[se])?.label ?? N8(se),
41892
+ width: we?.width,
41893
+ inputPlaceholder: we?.placeholder
41890
41894
  };
41891
41895
  switch (ce.kind) {
41892
41896
  case "select":
41893
41897
  return {
41894
- ...we,
41898
+ ...xe,
41895
41899
  editType: (Ae) => ye(Ae, "select"),
41896
41900
  selectConfig: { options: ce.options }
41897
41901
  };
41898
41902
  case "multiselect":
41899
41903
  return {
41900
- ...we,
41904
+ ...xe,
41901
41905
  editType: (Ae) => ye(Ae, "multiselect"),
41902
41906
  selectConfig: { options: ce.options }
41903
41907
  };
41904
41908
  case "number":
41905
41909
  return {
41906
- ...we,
41910
+ ...xe,
41907
41911
  editType: (Ae) => ye(Ae, "number"),
41908
41912
  numberConfig: {
41909
41913
  ...ce.units ? { units: ce.units } : {},
41910
- ...be?.grouping !== void 0 ? { grouping: be.grouping } : {}
41914
+ ...we?.grouping !== void 0 ? { grouping: we.grouping } : {}
41911
41915
  }
41912
41916
  };
41913
41917
  case "money":
41914
41918
  return {
41915
- ...we,
41919
+ ...xe,
41916
41920
  editType: (Ae) => ye(Ae, "money"),
41917
41921
  numberConfig: {
41918
41922
  ...ce.units ? { units: ce.units } : {},
41919
- ...be?.grouping !== void 0 ? { grouping: be.grouping } : {}
41923
+ ...we?.grouping !== void 0 ? { grouping: we.grouping } : {}
41920
41924
  }
41921
41925
  };
41922
41926
  case "date":
41923
41927
  return {
41924
- ...we,
41928
+ ...xe,
41925
41929
  editType: (Ae) => ye(Ae, "date"),
41926
41930
  // Present so read-only cells format the value as a date.
41927
41931
  dateConfig: {}
41928
41932
  };
41929
41933
  case "text":
41930
41934
  return {
41931
- ...we,
41935
+ ...xe,
41932
41936
  editType: (Ae) => ye(Ae, "text"),
41933
41937
  textConfig: { inputType: ce.inputType }
41934
41938
  };
@@ -41936,21 +41940,21 @@ function Zpe({
41936
41940
  }).filter(
41937
41941
  (se) => se !== null
41938
41942
  ), q = i?.root?.message ?? i?.message, ee = K(
41939
- (se, ce, be) => {
41943
+ (se, ce, we) => {
41940
41944
  if (x(se.__key, ce))
41941
- return i?.[be]?.[ce]?.message;
41945
+ return i?.[we]?.[ce]?.message;
41942
41946
  },
41943
41947
  [i, x]
41944
41948
  ), re = e.rowActions, fe = re ? (se, ce) => {
41945
- const { __key: be, ...we } = se;
41946
- return re(we, ce).map((Ae) => ({
41949
+ const { __key: we, ...xe } = se;
41950
+ return re(xe, ce).map((Ae) => ({
41947
41951
  icon: Ae.icon,
41948
41952
  label: Ae.label,
41949
41953
  showLabel: Ae.showLabel,
41950
41954
  critical: Ae.critical,
41951
41955
  disabled: Ae.disabled,
41952
41956
  onClick: () => Ae.onClick({
41953
- item: we,
41957
+ item: xe,
41954
41958
  index: ce,
41955
41959
  update: (Ee) => H(HE(N, se.__key, Ee)),
41956
41960
  // Route through the confirm + persist path so custom actions that
@@ -41962,9 +41966,9 @@ function Zpe({
41962
41966
  }));
41963
41967
  } : void 0, { hasInvalidRow: ae, hasInvalidExistingRow: de } = X(() => {
41964
41968
  let se = !1, ce = !1;
41965
- for (const { __key: be, ...we } of N) {
41966
- const Ae = e.itemSchema?.safeParse(I(we));
41967
- Ae && !Ae.success && (se = !0, b.current.has(be) || (ce = !0));
41969
+ for (const { __key: we, ...xe } of N) {
41970
+ const Ae = e.itemSchema?.safeParse(I(xe));
41971
+ Ae && !Ae.success && (se = !0, b.current.has(we) || (ce = !0));
41968
41972
  }
41969
41973
  return { hasInvalidRow: se, hasInvalidExistingRow: ce };
41970
41974
  }, [N, e.itemSchema, I]), he = ge ? {
@@ -42013,8 +42017,8 @@ function Zpe({
42013
42017
  const ce = ve(se);
42014
42018
  if (!ce || !Ge)
42015
42019
  return;
42016
- const { __key: be, ...we } = ce;
42017
- return Ge(we);
42020
+ const { __key: we, ...xe } = ce;
42021
+ return Ge(xe);
42018
42022
  },
42019
42023
  [ve, Ge]
42020
42024
  ), ke = K(
@@ -42024,14 +42028,14 @@ function Zpe({
42024
42028
  const ce = N.findIndex((Ae) => Ae.__key === se);
42025
42029
  if (ce < 0)
42026
42030
  return [];
42027
- const { __key: be, ...we } = N[ce];
42028
- return re(we, ce).map((Ae) => ({
42031
+ const { __key: we, ...xe } = N[ce];
42032
+ return re(xe, ce).map((Ae) => ({
42029
42033
  label: Ae.label,
42030
42034
  icon: Ae.icon,
42031
42035
  critical: Ae.critical,
42032
42036
  disabled: Ae.disabled,
42033
42037
  onClick: () => Ae.onClick({
42034
- item: we,
42038
+ item: xe,
42035
42039
  index: ce,
42036
42040
  update: (Ee) => H(HE(N, se, Ee)),
42037
42041
  // Route through the confirm + persist path so custom actions that
@@ -42051,9 +42055,9 @@ function Zpe({
42051
42055
  he ? /* @__PURE__ */ m(Xpe, { config: he }) : null
42052
42056
  ] });
42053
42057
  if (S) {
42054
- const se = !E && !!e.itemHref, ce = N.map(({ __key: be, ...we }) => ({
42055
- __key: be,
42056
- ...I(we)
42058
+ const se = !E && !!e.itemHref, ce = N.map(({ __key: we, ...xe }) => ({
42059
+ __key: we,
42060
+ ...I(xe)
42057
42061
  }));
42058
42062
  return /* @__PURE__ */ R("div", { className: "flex flex-col items-start gap-3", children: [
42059
42063
  pe,
@@ -42061,13 +42065,13 @@ function Zpe({
42061
42065
  Upe,
42062
42066
  {
42063
42067
  rows: ce,
42064
- fields: Se.map((be) => {
42065
- const we = e.columns?.[be.id]?.listTag;
42068
+ fields: Se.map((we) => {
42069
+ const xe = e.columns?.[we.id]?.listTag;
42066
42070
  return {
42067
- id: be.id,
42068
- label: be.label,
42071
+ id: we.id,
42072
+ label: we.label,
42069
42073
  // A field with a `listTag` renders as a right-side colored tag.
42070
- tag: we ? (Ae) => we(Ae[be.id], Ae) : void 0
42074
+ tag: xe ? (Ae) => xe(Ae[we.id], Ae) : void 0
42071
42075
  };
42072
42076
  }),
42073
42077
  listItem: e.listItem,
@@ -42097,11 +42101,11 @@ function Zpe({
42097
42101
  columns: Se,
42098
42102
  getCellError: ee,
42099
42103
  onCellChange: async ({ updatedItem: se, changes: ce }) => {
42100
- const be = G(se);
42101
- for (const we of Object.keys(ce))
42102
- w.current.add(`${be.__key}:${we}`);
42104
+ const we = G(se);
42105
+ for (const xe of Object.keys(ce))
42106
+ w.current.add(`${we.__key}:${xe}`);
42103
42107
  H(
42104
- N.map((we) => we.__key === be.__key ? be : we)
42108
+ N.map((xe) => xe.__key === we.__key ? we : xe)
42105
42109
  );
42106
42110
  },
42107
42111
  sortableRows: e.sortable !== !1,
@@ -42334,15 +42338,15 @@ function sme({
42334
42338
  ), v = L(l != null);
42335
42339
  ie(() => {
42336
42340
  v.current || l == null || !(p ? Array.isArray(t.value) && t.value.length > 0 : t.value) || (v.current = !0, g((j) => {
42337
- const ne = j.filter((te) => te.file), le = new Set(
42338
- ne.map((te) => te.value).filter((te) => te != null)
42341
+ const ne = j.filter((Q) => Q.file), le = new Set(
42342
+ ne.map((Q) => Q.value).filter((Q) => Q != null)
42339
42343
  );
42340
42344
  return [...UE(
42341
42345
  l,
42342
42346
  t.value,
42343
42347
  p
42344
42348
  ).filter(
42345
- (te) => te.value == null || !le.has(te.value)
42349
+ (Q) => Q.value == null || !le.has(Q.value)
42346
42350
  ), ...ne];
42347
42351
  }));
42348
42352
  }, [l, t.value, p]);
@@ -42368,7 +42372,7 @@ function sme({
42368
42372
  ), D = K(
42369
42373
  (W) => {
42370
42374
  if (w(null), !p) {
42371
- const te = W[0], ue = I(te);
42375
+ const Q = W[0], ue = I(Q);
42372
42376
  if (ue) {
42373
42377
  w(ue);
42374
42378
  return;
@@ -42376,8 +42380,8 @@ function sme({
42376
42380
  a || console.warn(
42377
42381
  "[F0Form] No useUpload hook provided. Pass useUpload to <F0Form> or to the file field config."
42378
42382
  );
42379
- const me = `${te.name}-${te.size}-${Date.now()}-${Math.random()}`;
42380
- g([{ key: me, file: te }]);
42383
+ const me = `${Q.name}-${Q.size}-${Date.now()}-${Math.random()}`;
42384
+ g([{ key: me, file: Q }]);
42381
42385
  return;
42382
42386
  }
42383
42387
  const j = e.maxFiles != null ? e.maxFiles - y.length : 1 / 0;
@@ -42395,21 +42399,21 @@ function sme({
42395
42399
  "{{maxFiles}}",
42396
42400
  String(e.maxFiles)
42397
42401
  ) : null;
42398
- const Q = [];
42399
- for (const te of ne) {
42400
- const ue = I(te);
42402
+ const te = [];
42403
+ for (const Q of ne) {
42404
+ const ue = I(Q);
42401
42405
  if (ue) {
42402
42406
  le = ue;
42403
42407
  continue;
42404
42408
  }
42405
42409
  a || console.warn(
42406
42410
  "[F0Form] No useUpload hook provided. Pass useUpload to <F0Form> or to the file field config."
42407
- ), Q.push({
42408
- key: `${te.name}-${te.size}-${Date.now()}-${Math.random()}`,
42409
- file: te
42411
+ ), te.push({
42412
+ key: `${Q.name}-${Q.size}-${Date.now()}-${Math.random()}`,
42413
+ file: Q
42410
42414
  });
42411
42415
  }
42412
- le !== null && w(le), Q.length > 0 && g((te) => [...te, ...Q]);
42416
+ le !== null && w(le), te.length > 0 && g((Q) => [...Q, ...te]);
42413
42417
  },
42414
42418
  [
42415
42419
  p,
@@ -42530,9 +42534,9 @@ function sme({
42530
42534
  className: j > 0 ? "-mt-px" : void 0,
42531
42535
  entry: W,
42532
42536
  useUpload: W.file ? a : void 0,
42533
- onUploadComplete: (Q) => H(W.key, Q),
42537
+ onUploadComplete: (te) => H(W.key, te),
42534
42538
  onRemove: () => $(W.key),
42535
- onError: (Q) => V(W.key, Q),
42539
+ onError: (te) => V(W.key, te),
42536
42540
  disabled: e.disabled,
42537
42541
  position: le,
42538
42542
  translations: {
@@ -42927,9 +42931,9 @@ const ame = {
42927
42931
  },
42928
42932
  []
42929
42933
  );
42930
- const Q = () => {
42934
+ const te = () => {
42931
42935
  le.current += 1, W(void 0), ne(!1);
42932
- }, te = (ee) => {
42936
+ }, Q = (ee) => {
42933
42937
  const re = ++le.current;
42934
42938
  if (!f) {
42935
42939
  P(ee.label);
@@ -42946,9 +42950,9 @@ const ame = {
42946
42950
  re === le.current && (W(void 0), ne(!1));
42947
42951
  });
42948
42952
  }, ue = (ee) => {
42949
- Q(), ee && P(ee), V(!0);
42953
+ te(), ee && P(ee), V(!0);
42950
42954
  }, me = () => {
42951
- Q(), H();
42955
+ te(), H();
42952
42956
  }, ge = bme({ status: v, hint: y, error: g }), ye = mi(), Se = Z && ge ? { type: ge.type } : ge, q = d && !Z ? /* @__PURE__ */ m(
42953
42957
  mme,
42954
42958
  {
@@ -42960,7 +42964,7 @@ const ame = {
42960
42964
  placeId: M?.placeId,
42961
42965
  country: B,
42962
42966
  searchPlaces: d,
42963
- onPick: te,
42967
+ onPick: Q,
42964
42968
  onClear: me,
42965
42969
  onEnterManually: s ? ue : void 0,
42966
42970
  status: Se,
@@ -43029,7 +43033,7 @@ const ame = {
43029
43033
  value: M,
43030
43034
  labels: G,
43031
43035
  onChangePart: (ee, re) => {
43032
- Q(), O(ee, re);
43036
+ te(), O(ee, re);
43033
43037
  },
43034
43038
  size: S,
43035
43039
  disabled: w,
@@ -45931,45 +45935,45 @@ const Q8 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2
45931
45935
  [N, O]
45932
45936
  ), [F, z] = J(
45933
45937
  () => gV(N) ?? O
45934
- ), H = L(F), $ = (Q) => {
45935
- H.current = Q, z(Q), o?.(jm(Q));
45936
- }, V = (Q) => {
45937
- const te = vV(Q, H.current);
45938
- M(te), r?.(te, bV(Q, H.current));
45938
+ ), H = L(F), $ = (te) => {
45939
+ H.current = te, z(te), o?.(jm(te));
45940
+ }, V = (te) => {
45941
+ const Q = vV(te, H.current);
45942
+ M(Q), r?.(Q, bV(te, H.current));
45939
45943
  }, Z = X(() => {
45940
- const Q = {
45944
+ const te = {
45941
45945
  country: T.phoneInput.country
45942
45946
  };
45943
- for (const [te, ue] of Object.entries(T.countries))
45944
- Q[te.toUpperCase()] = ue;
45945
- return Q;
45947
+ for (const [Q, ue] of Object.entries(T.countries))
45948
+ te[Q.toUpperCase()] = ue;
45949
+ return te;
45946
45950
  }, [T]), G = X(() => {
45947
- const Q = (a ?? []).map(Jh).filter((te) => !!te);
45948
- if (Q.length)
45949
- return [...Q, "|", "..."];
45951
+ const te = (a ?? []).map(Jh).filter((Q) => !!Q);
45952
+ if (te.length)
45953
+ return [...te, "|", "..."];
45950
45954
  }, [a]), B = X(
45951
45955
  () => (a ?? []).map(Jh).find(Boolean) ?? "ES",
45952
45956
  [a]
45953
45957
  ), Y = X(() => {
45954
45958
  if (!l)
45955
45959
  return;
45956
- const Q = l.map(Jh).filter((te) => !!te);
45957
- if (!Q.length) {
45960
+ const te = l.map(Jh).filter((Q) => !!Q);
45961
+ if (!te.length) {
45958
45962
  process.env.NODE_ENV !== "production" && console.warn(
45959
45963
  "F0PhoneInput: `allowedCountries` resolved to no valid country codes — the restriction was ignored.",
45960
45964
  l
45961
45965
  );
45962
45966
  return;
45963
45967
  }
45964
- return Q;
45968
+ return te;
45965
45969
  }, [l]), W = L(
45966
45970
  null
45967
45971
  );
45968
45972
  ie(() => {
45969
45973
  if (F || !P)
45970
45974
  return;
45971
- const Q = yV(P, Y);
45972
- Q && W.current?.(Q);
45975
+ const te = yV(P, Y);
45976
+ te && W.current?.(te);
45973
45977
  }, [F, P, Y]);
45974
45978
  let j = p;
45975
45979
  u && (j = { type: "default", message: u }), h && (j = {
@@ -46060,8 +46064,8 @@ const Q8 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2
46060
46064
  type: "button",
46061
46065
  tabIndex: 0,
46062
46066
  "data-testid": "clear-button",
46063
- onClick: (Q) => {
46064
- Q.stopPropagation(), V(void 0);
46067
+ onClick: (te) => {
46068
+ te.stopPropagation(), V(void 0);
46065
46069
  },
46066
46070
  children: /* @__PURE__ */ m(st, { icon: Bm, color: "default", size: "md" })
46067
46071
  }
@@ -59125,7 +59129,7 @@ function hxe(e) {
59125
59129
  var D, N = x === "y" ? Oi : Ii, M = x === "y" ? xr : kr, O = x === "y" ? "height" : "width", P = _[x], F = P + g[N], z = P - g[M], H = h ? -E[O] / 2 : 0, $ = b === Xc ? S[O] : E[O], V = b === Xc ? -E[O] : -S[O], Z = t.elements.arrow, G = h && Z ? p_(Z) : {
59126
59130
  width: 0,
59127
59131
  height: 0
59128
- }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : q7(), Y = B[N], W = B[M], j = Of(0, S[O], G[O]), ne = w ? S[O] / 2 - H - j - Y - A.mainAxis : $ - j - Y - A.mainAxis, le = w ? -S[O] / 2 + H + j + W + A.mainAxis : V + j + W + A.mainAxis, Q = t.elements.arrow && zh(t.elements.arrow), te = Q ? x === "y" ? Q.clientTop || 0 : Q.clientLeft || 0 : 0, ue = (D = T?.[x]) != null ? D : 0, me = P + ne - ue - te, ge = P + le - ue, ye = Of(h ? jg(F, me) : F, P, h ? qa(z, ge) : z);
59132
+ }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : q7(), Y = B[N], W = B[M], j = Of(0, S[O], G[O]), ne = w ? S[O] / 2 - H - j - Y - A.mainAxis : $ - j - Y - A.mainAxis, le = w ? -S[O] / 2 + H + j + W + A.mainAxis : V + j + W + A.mainAxis, te = t.elements.arrow && zh(t.elements.arrow), Q = te ? x === "y" ? te.clientTop || 0 : te.clientLeft || 0 : 0, ue = (D = T?.[x]) != null ? D : 0, me = P + ne - ue - Q, ge = P + le - ue, ye = Of(h ? jg(F, me) : F, P, h ? qa(z, ge) : z);
59129
59133
  _[x] = ye, I[x] = ye - P;
59130
59134
  }
59131
59135
  if (a) {
@@ -59736,7 +59740,7 @@ function Qxe(e, t) {
59736
59740
  var E = b.map(function(pe) {
59737
59741
  return pe.fn(x);
59738
59742
  }), C = e.hasAttribute("aria-expanded");
59739
- return Q(), H(), P(), F("onCreate", [x]), n.showOnCreate && ae(), _.addEventListener("mouseenter", function() {
59743
+ return te(), H(), P(), F("onCreate", [x]), n.showOnCreate && ae(), _.addEventListener("mouseenter", function() {
59740
59744
  x.props.interactive && x.state.isVisible && x.clearDelayTimeouts();
59741
59745
  }), _.addEventListener("mouseleave", function() {
59742
59746
  x.props.interactive && x.props.trigger.indexOf("mouseenter") >= 0 && N().addEventListener("mousemove", p);
@@ -59769,24 +59773,24 @@ function Qxe(e, t) {
59769
59773
  pe === void 0 && (pe = !1), _.style.pointerEvents = x.props.interactive && !pe ? "" : "none", _.style.zIndex = "" + x.props.zIndex;
59770
59774
  }
59771
59775
  function F(pe, se, ce) {
59772
- if (ce === void 0 && (ce = !0), E.forEach(function(we) {
59773
- we[pe] && we[pe].apply(we, se);
59776
+ if (ce === void 0 && (ce = !0), E.forEach(function(xe) {
59777
+ xe[pe] && xe[pe].apply(xe, se);
59774
59778
  }), ce) {
59775
- var be;
59776
- (be = x.props)[pe].apply(be, se);
59779
+ var we;
59780
+ (we = x.props)[pe].apply(we, se);
59777
59781
  }
59778
59782
  }
59779
59783
  function z() {
59780
59784
  var pe = x.props.aria;
59781
59785
  if (pe.content) {
59782
- var se = "aria-" + pe.content, ce = _.id, be = Jl(x.props.triggerTarget || e);
59783
- be.forEach(function(we) {
59784
- var Ae = we.getAttribute(se);
59786
+ var se = "aria-" + pe.content, ce = _.id, we = Jl(x.props.triggerTarget || e);
59787
+ we.forEach(function(xe) {
59788
+ var Ae = xe.getAttribute(se);
59785
59789
  if (x.state.isVisible)
59786
- we.setAttribute(se, Ae ? Ae + " " + ce : ce);
59790
+ xe.setAttribute(se, Ae ? Ae + " " + ce : ce);
59787
59791
  else {
59788
59792
  var Ee = Ae && Ae.replace(ce, "").trim();
59789
- Ee ? we.setAttribute(se, Ee) : we.removeAttribute(se);
59793
+ Ee ? xe.setAttribute(se, Ee) : xe.removeAttribute(se);
59790
59794
  }
59791
59795
  });
59792
59796
  }
@@ -59845,26 +59849,26 @@ function Qxe(e, t) {
59845
59849
  }
59846
59850
  function ne(pe, se) {
59847
59851
  var ce = M().box;
59848
- function be(we) {
59849
- we.target === ce && (ob(ce, "remove", be), se());
59852
+ function we(xe) {
59853
+ xe.target === ce && (ob(ce, "remove", we), se());
59850
59854
  }
59851
59855
  if (pe === 0)
59852
59856
  return se();
59853
- ob(ce, "remove", f), ob(ce, "add", be), f = be;
59857
+ ob(ce, "remove", f), ob(ce, "add", we), f = we;
59854
59858
  }
59855
59859
  function le(pe, se, ce) {
59856
59860
  ce === void 0 && (ce = !1);
59857
- var be = Jl(x.props.triggerTarget || e);
59858
- be.forEach(function(we) {
59859
- we.addEventListener(pe, se, ce), h.push({
59860
- node: we,
59861
+ var we = Jl(x.props.triggerTarget || e);
59862
+ we.forEach(function(xe) {
59863
+ xe.addEventListener(pe, se, ce), h.push({
59864
+ node: xe,
59861
59865
  eventType: pe,
59862
59866
  handler: se,
59863
59867
  options: ce
59864
59868
  });
59865
59869
  });
59866
59870
  }
59867
- function Q() {
59871
+ function te() {
59868
59872
  T() && (le("touchstart", ue, {
59869
59873
  passive: !0
59870
59874
  }), le("touchend", ge, {
@@ -59884,33 +59888,33 @@ function Qxe(e, t) {
59884
59888
  }
59885
59889
  });
59886
59890
  }
59887
- function te() {
59891
+ function Q() {
59888
59892
  h.forEach(function(pe) {
59889
- var se = pe.node, ce = pe.eventType, be = pe.handler, we = pe.options;
59890
- se.removeEventListener(ce, be, we);
59893
+ var se = pe.node, ce = pe.eventType, we = pe.handler, xe = pe.options;
59894
+ se.removeEventListener(ce, we, xe);
59891
59895
  }), h = [];
59892
59896
  }
59893
59897
  function ue(pe) {
59894
59898
  var se, ce = !1;
59895
59899
  if (!(!x.state.isEnabled || Se(pe) || a)) {
59896
- var be = ((se = d) == null ? void 0 : se.type) === "focus";
59897
- d = pe, y = pe.currentTarget, H(), !x.state.isVisible && Pxe(pe) && Np.forEach(function(we) {
59898
- return we(pe);
59899
- }), pe.type === "click" && (x.props.trigger.indexOf("mouseenter") < 0 || s) && x.props.hideOnClick !== !1 && x.state.isVisible ? ce = !0 : ae(pe), pe.type === "click" && (s = !ce), ce && !be && de(pe);
59900
+ var we = ((se = d) == null ? void 0 : se.type) === "focus";
59901
+ d = pe, y = pe.currentTarget, H(), !x.state.isVisible && Pxe(pe) && Np.forEach(function(xe) {
59902
+ return xe(pe);
59903
+ }), pe.type === "click" && (x.props.trigger.indexOf("mouseenter") < 0 || s) && x.props.hideOnClick !== !1 && x.state.isVisible ? ce = !0 : ae(pe), pe.type === "click" && (s = !ce), ce && !we && de(pe);
59900
59904
  }
59901
59905
  }
59902
59906
  function me(pe) {
59903
59907
  var se = pe.target, ce = D().contains(se) || _.contains(se);
59904
59908
  if (!(pe.type === "mousemove" && ce)) {
59905
- var be = fe().concat(_).map(function(we) {
59906
- var Ae, Ee = we._tippy, ze = (Ae = Ee.popperInstance) == null ? void 0 : Ae.state;
59909
+ var we = fe().concat(_).map(function(xe) {
59910
+ var Ae, Ee = xe._tippy, ze = (Ae = Ee.popperInstance) == null ? void 0 : Ae.state;
59907
59911
  return ze ? {
59908
- popperRect: we.getBoundingClientRect(),
59912
+ popperRect: xe.getBoundingClientRect(),
59909
59913
  popperState: ze,
59910
59914
  props: n
59911
59915
  } : null;
59912
59916
  }).filter(Boolean);
59913
- $xe(be, pe) && ($(), de(pe));
59917
+ $xe(we, pe) && ($(), de(pe));
59914
59918
  }
59915
59919
  }
59916
59920
  function ge(pe) {
@@ -59931,9 +59935,9 @@ function Qxe(e, t) {
59931
59935
  }
59932
59936
  function q() {
59933
59937
  ee();
59934
- var pe = x.props, se = pe.popperOptions, ce = pe.placement, be = pe.offset, we = pe.getReferenceClientRect, Ae = pe.moveTransition, Ee = I() ? Px(_).arrow : null, ze = we ? {
59935
- getBoundingClientRect: we,
59936
- contextElement: we.contextElement || D()
59938
+ var pe = x.props, se = pe.popperOptions, ce = pe.placement, we = pe.offset, xe = pe.getReferenceClientRect, Ae = pe.moveTransition, Ee = I() ? Px(_).arrow : null, ze = xe ? {
59939
+ getBoundingClientRect: xe,
59940
+ contextElement: xe.contextElement || D()
59937
59941
  } : e, Me = {
59938
59942
  name: "$$tippy",
59939
59943
  enabled: !0,
@@ -59951,7 +59955,7 @@ function Qxe(e, t) {
59951
59955
  }, Ue = [{
59952
59956
  name: "offset",
59953
59957
  options: {
59954
- offset: be
59958
+ offset: we
59955
59959
  }
59956
59960
  }, {
59957
59961
  name: "preventOverflow",
@@ -60004,8 +60008,8 @@ function Qxe(e, t) {
60004
60008
  }
60005
60009
  function ae(pe) {
60006
60010
  x.clearDelayTimeouts(), pe && F("onTrigger", [x, pe]), B();
60007
- var se = O(!0), ce = A(), be = ce[0], we = ce[1];
60008
- no.isTouch && be === "hold" && we && (se = we), se ? i = setTimeout(function() {
60011
+ var se = O(!0), ce = A(), we = ce[0], xe = ce[1];
60012
+ no.isTouch && we === "hold" && xe && (se = xe), se ? i = setTimeout(function() {
60009
60013
  x.show();
60010
60014
  }, se) : x.show();
60011
60015
  }
@@ -60034,14 +60038,14 @@ function Qxe(e, t) {
60034
60038
  }
60035
60039
  function He(pe) {
60036
60040
  if (process.env.NODE_ENV !== "production" && Lo(x.state.isDestroyed, Kl("setProps")), !x.state.isDestroyed) {
60037
- F("onBeforeUpdate", [x, pe]), te();
60041
+ F("onBeforeUpdate", [x, pe]), Q();
60038
60042
  var se = x.props, ce = PN(e, Object.assign({}, se, TN(pe), {
60039
60043
  ignoreAttributes: !0
60040
60044
  }));
60041
- x.props = ce, Q(), se.interactiveDebounce !== ce.interactiveDebounce && ($(), p = NN(me, ce.interactiveDebounce)), se.triggerTarget && !ce.triggerTarget ? Jl(se.triggerTarget).forEach(function(be) {
60042
- be.removeAttribute("aria-expanded");
60043
- }) : ce.triggerTarget && e.removeAttribute("aria-expanded"), H(), P(), S && S(se, ce), x.popperInstance && (q(), fe().forEach(function(be) {
60044
- requestAnimationFrame(be._tippy.popperInstance.forceUpdate);
60045
+ x.props = ce, te(), se.interactiveDebounce !== ce.interactiveDebounce && ($(), p = NN(me, ce.interactiveDebounce)), se.triggerTarget && !ce.triggerTarget ? Jl(se.triggerTarget).forEach(function(we) {
60046
+ we.removeAttribute("aria-expanded");
60047
+ }) : ce.triggerTarget && e.removeAttribute("aria-expanded"), H(), P(), S && S(se, ce), x.popperInstance && (q(), fe().forEach(function(we) {
60048
+ requestAnimationFrame(we._tippy.popperInstance.forceUpdate);
60045
60049
  })), F("onAfterUpdate", [x, pe]);
60046
60050
  }
60047
60051
  }
@@ -60052,8 +60056,8 @@ function Qxe(e, t) {
60052
60056
  }
60053
60057
  function pt() {
60054
60058
  process.env.NODE_ENV !== "production" && Lo(x.state.isDestroyed, Kl("show"));
60055
- var pe = x.state.isVisible, se = x.state.isDestroyed, ce = !x.state.isEnabled, be = no.isTouch && !x.props.touch, we = ib(x.props.duration, 0, Ui.duration);
60056
- if (!(pe || se || ce || be) && !D().hasAttribute("disabled") && (F("onShow", [x], !1), x.props.onShow(x) !== !1)) {
60059
+ var pe = x.state.isVisible, se = x.state.isDestroyed, ce = !x.state.isEnabled, we = no.isTouch && !x.props.touch, xe = ib(x.props.duration, 0, Ui.duration);
60060
+ if (!(pe || se || ce || we) && !D().hasAttribute("disabled") && (F("onShow", [x], !1), x.props.onShow(x) !== !1)) {
60057
60061
  if (x.state.isVisible = !0, I() && (_.style.visibility = "visible"), P(), B(), x.state.isMounted || (_.style.transition = "none"), I()) {
60058
60062
  var Ae = M(), Ee = Ae.box, ze = Ae.content;
60059
60063
  rb([Ee, ze], 0);
@@ -60063,9 +60067,9 @@ function Qxe(e, t) {
60063
60067
  if (!(!x.state.isVisible || c)) {
60064
60068
  if (c = !0, _.offsetHeight, _.style.transition = x.props.moveTransition, I() && x.props.animation) {
60065
60069
  var et = M(), dt = et.box, ct = et.content;
60066
- rb([dt, ct], we), ON([dt, ct], "visible");
60070
+ rb([dt, ct], xe), ON([dt, ct], "visible");
60067
60071
  }
60068
- z(), H(), AN(sb, x), (Ue = x.popperInstance) == null || Ue.forceUpdate(), F("onMount", [x]), x.props.animation && I() && j(we, function() {
60072
+ z(), H(), AN(sb, x), (Ue = x.popperInstance) == null || Ue.forceUpdate(), F("onMount", [x]), x.props.animation && I() && j(xe, function() {
60069
60073
  x.state.isShown = !0, F("onShown", [x]);
60070
60074
  });
60071
60075
  }
@@ -60074,13 +60078,13 @@ function Qxe(e, t) {
60074
60078
  }
60075
60079
  function Ge() {
60076
60080
  process.env.NODE_ENV !== "production" && Lo(x.state.isDestroyed, Kl("hide"));
60077
- var pe = !x.state.isVisible, se = x.state.isDestroyed, ce = !x.state.isEnabled, be = ib(x.props.duration, 1, Ui.duration);
60081
+ var pe = !x.state.isVisible, se = x.state.isDestroyed, ce = !x.state.isEnabled, we = ib(x.props.duration, 1, Ui.duration);
60078
60082
  if (!(pe || se || ce) && (F("onHide", [x], !1), x.props.onHide(x) !== !1)) {
60079
60083
  if (x.state.isVisible = !1, x.state.isShown = !1, c = !1, s = !1, I() && (_.style.visibility = "hidden"), $(), Y(), P(!0), I()) {
60080
- var we = M(), Ae = we.box, Ee = we.content;
60081
- x.props.animation && (rb([Ae, Ee], be), ON([Ae, Ee], "hidden"));
60084
+ var xe = M(), Ae = xe.box, Ee = xe.content;
60085
+ x.props.animation && (rb([Ae, Ee], we), ON([Ae, Ee], "hidden"));
60082
60086
  }
60083
- z(), H(), x.props.animation ? I() && W(be, x.unmount) : x.unmount();
60087
+ z(), H(), x.props.animation ? I() && W(we, x.unmount) : x.unmount();
60084
60088
  }
60085
60089
  }
60086
60090
  function ut(pe) {
@@ -60094,7 +60098,7 @@ function Qxe(e, t) {
60094
60098
  }), x.state.isMounted = !1, F("onHidden", [x]));
60095
60099
  }
60096
60100
  function at() {
60097
- process.env.NODE_ENV !== "production" && Lo(x.state.isDestroyed, Kl("destroy")), !x.state.isDestroyed && (x.clearDelayTimeouts(), x.unmount(), te(), delete e._tippy, x.state.isDestroyed = !0, F("onDestroy", [x]));
60101
+ process.env.NODE_ENV !== "production" && Lo(x.state.isDestroyed, Kl("destroy")), !x.state.isDestroyed && (x.clearDelayTimeouts(), x.unmount(), Q(), delete e._tippy, x.state.isDestroyed = !0, F("onDestroy", [x]));
60098
60102
  }
60099
60103
  }
60100
60104
  function Td(e, t) {
@@ -61334,9 +61338,9 @@ const Vg = ({
61334
61338
  }
61335
61339
  const ue = w.current.getBoundingClientRect(), me = s.current.getBoundingClientRect(), ge = s.current.offsetWidth || o || ue.width, ye = Math.min(ge, window.innerWidth - 24), Se = me.left, q = 12, ee = Math.max(q, window.innerWidth - 12 - ye), re = Math.min(Math.max(Se, q), ee);
61336
61340
  T(Math.round(re - ue.left)), D(Math.round(me.top - ue.bottom)), M(ye);
61337
- }, Q = requestAnimationFrame(le), te = new ResizeObserver(le);
61338
- return w.current && te.observe(w.current), s?.current && te.observe(s.current), window.addEventListener("resize", le), () => {
61339
- cancelAnimationFrame(Q), te.disconnect(), window.removeEventListener("resize", le);
61341
+ }, te = requestAnimationFrame(le), Q = new ResizeObserver(le);
61342
+ return w.current && Q.observe(w.current), s?.current && Q.observe(s.current), window.addEventListener("resize", le), () => {
61343
+ cancelAnimationFrame(te), Q.disconnect(), window.removeEventListener("resize", le);
61340
61344
  };
61341
61345
  }, [_, s, o]);
61342
61346
  const V = (le) => {
@@ -61344,19 +61348,19 @@ const Vg = ({
61344
61348
  x.current = !1, S(!1);
61345
61349
  return;
61346
61350
  }
61347
- S((Q) => {
61348
- const te = !Q;
61349
- return x.current = te, te;
61351
+ S((te) => {
61352
+ const Q = !te;
61353
+ return x.current = Q, Q;
61350
61354
  });
61351
61355
  };
61352
61356
  Lt(() => {
61353
61357
  H && x.current && S(!0);
61354
61358
  }, [H]), Lt(() => {
61355
- const le = H && x.current, Q = k.current;
61356
- if (le && !Q) {
61357
- const te = w.current?.getBoundingClientRect();
61358
- if (te && a) {
61359
- const ue = N, me = te.left + A, ge = te.bottom + I + $;
61359
+ const le = H && x.current, te = k.current;
61360
+ if (le && !te) {
61361
+ const Q = w.current?.getBoundingClientRect();
61362
+ if (Q && a) {
61363
+ const ue = N, me = Q.left + A, ge = Q.bottom + I + $;
61360
61364
  z({ left: me, top: ge, width: ue });
61361
61365
  }
61362
61366
  P({
@@ -61365,7 +61369,7 @@ const Vg = ({
61365
61369
  menuWidth: N
61366
61370
  });
61367
61371
  }
61368
- !le && Q && (P(null), z(null), c && (x.current = !1, S(!1))), k.current = le;
61372
+ !le && te && (P(null), z(null), c && (x.current = !1, S(!1))), k.current = le;
61369
61373
  }, [
61370
61374
  H,
61371
61375
  A,
@@ -61380,9 +61384,9 @@ const Vg = ({
61380
61384
  }, j = {
61381
61385
  onSelect: ({
61382
61386
  selectedIntent: le,
61383
- customIntent: Q
61387
+ customIntent: te
61384
61388
  }) => {
61385
- f(le, Q);
61389
+ f(le, te);
61386
61390
  },
61387
61391
  enhancementOptions: d?.enhancementOptions || [],
61388
61392
  inputPlaceholder: b.richTextEditor.ai.customPromptPlaceholder,
@@ -73847,14 +73851,14 @@ const lCe = ({
73847
73851
  ie(() => {
73848
73852
  (ne.error || y) && j ? j.setEditable(!1) : j && !ne.error && !y && j.setEditable(!0);
73849
73853
  }, [ne.error, y, j]);
73850
- const le = L(null), [Q, te] = J(null), ue = L(
73854
+ const le = L(null), [te, Q] = J(null), ue = L(
73851
73855
  null
73852
73856
  ), me = K((ae) => {
73853
- ue.current && clearTimeout(ue.current), te(ae), ue.current = setTimeout(() => {
73854
- te(null), ue.current = null;
73857
+ ue.current && clearTimeout(ue.current), Q(ae), ue.current = setTimeout(() => {
73858
+ Q(null), ue.current = null;
73855
73859
  }, OCe);
73856
73860
  }, []), ge = K(() => {
73857
- ue.current && (clearTimeout(ue.current), ue.current = null), te(null);
73861
+ ue.current && (clearTimeout(ue.current), ue.current = null), Q(null);
73858
73862
  }, []);
73859
73863
  ie(
73860
73864
  () => () => {
@@ -74012,7 +74016,7 @@ const lCe = ({
74012
74016
  },
74013
74017
  "accordion"
74014
74018
  ) : null }),
74015
- /* @__PURE__ */ m(Jt, { initial: !1, children: Q ? /* @__PURE__ */ m(
74019
+ /* @__PURE__ */ m(Jt, { initial: !1, children: te ? /* @__PURE__ */ m(
74016
74020
  it.div,
74017
74021
  {
74018
74022
  role: "alert",
@@ -74024,7 +74028,7 @@ const lCe = ({
74024
74028
  children: /* @__PURE__ */ m(
74025
74029
  Wx,
74026
74030
  {
74027
- error: Q,
74031
+ error: te,
74028
74032
  onDismiss: ge,
74029
74033
  dismissLabel: x.actions.close
74030
74034
  }
@@ -76481,7 +76485,7 @@ function z5e({
76481
76485
  ) : void 0, ne = B.filter((ee) => {
76482
76486
  const re = Y.get(ee);
76483
76487
  return !re || !j || Z_(re, j);
76484
- }), le = ne.length > 0, Q = ne.join(","), te = L(null), ue = K(
76488
+ }), le = ne.length > 0, te = ne.join(","), Q = L(null), ue = K(
76485
76489
  async (ee) => {
76486
76490
  const re = N.getValues(), fe = { ...ee };
76487
76491
  for (const de of Object.keys(fe))
@@ -76553,7 +76557,7 @@ function z5e({
76553
76557
  }
76554
76558
  },
76555
76559
  _setStateCallback: (re) => {
76556
- te.current = re;
76560
+ Q.current = re;
76557
76561
  }
76558
76562
  };
76559
76563
  f.current = ee;
@@ -76570,13 +76574,13 @@ function z5e({
76570
76574
  z,
76571
76575
  $
76572
76576
  ]), ie(() => {
76573
- te.current && te.current({ isSubmitting: Z, hasErrors: le });
76577
+ Q.current && Q.current({ isSubmitting: Z, hasErrors: le });
76574
76578
  }, [Z, le]), ie(() => {
76575
76579
  g?.({
76576
76580
  isDirty: G,
76577
- errorIds: Q === "" ? [] : Q.split(",")
76581
+ errorIds: te === "" ? [] : te.split(",")
76578
76582
  });
76579
- }, [g, G, Q]), ie(() => {
76583
+ }, [g, G, te]), ie(() => {
76580
76584
  if (v)
76581
76585
  return v({
76582
76586
  // Resolve false on failure so the section stays dirty and savable.
@@ -77333,8 +77337,8 @@ function Q$(e) {
77333
77337
  (se) => {
77334
77338
  if (F)
77335
77339
  return;
77336
- const ce = Br(t, se), be = document.getElementById(ce);
77337
- be && be.scrollIntoView({ behavior: "smooth", block: "start" });
77340
+ const ce = Br(t, se), we = document.getElementById(ce);
77341
+ we && we.scrollIntoView({ behavior: "smooth", block: "start" });
77338
77342
  },
77339
77343
  [t, F]
77340
77344
  ), [H, $] = J(
@@ -77345,14 +77349,14 @@ function Q$(e) {
77345
77349
  },
77346
77350
  [z]
77347
77351
  ), G = K(
77348
- (se, ce, be) => {
77352
+ (se, ce, we) => {
77349
77353
  if (F && ce !== V) {
77350
77354
  $(ce), requestAnimationFrame(
77351
- () => ck(se, ce, be)
77355
+ () => ck(se, ce, we)
77352
77356
  );
77353
77357
  return;
77354
77358
  }
77355
- ck(se, ce, be);
77359
+ ck(se, ce, we);
77356
77360
  },
77357
77361
  [F, V]
77358
77362
  ), B = V$({
@@ -77364,9 +77368,9 @@ function Q$(e) {
77364
77368
  return {};
77365
77369
  const se = {};
77366
77370
  for (const ce of E) {
77367
- const be = n[ce];
77368
- be && (se[ce] = fl(
77369
- $5e(be)
77371
+ const we = n[ce];
77372
+ we && (se[ce] = fl(
77373
+ $5e(we)
77370
77374
  ));
77371
77375
  }
77372
77376
  return se;
@@ -77409,8 +77413,8 @@ function Q$(e) {
77409
77413
  ]), j = s && "type" in s && s.type === "action-bar" ? s : iEe, {
77410
77414
  submitLabel: ne,
77411
77415
  submitIcon: le,
77412
- discardableChanges: Q,
77413
- discardLabel: te,
77416
+ discardableChanges: te,
77417
+ discardLabel: Q,
77414
77418
  discardIcon: ue,
77415
77419
  actionBarIdleLabel: me,
77416
77420
  actionBarSavingLabel: ge,
@@ -77441,12 +77445,12 @@ function Q$(e) {
77441
77445
  if (se.length === 0)
77442
77446
  return !0;
77443
77447
  q("loading");
77444
- const be = (await Promise.allSettled(
77445
- se.map((we) => we.submit())
77448
+ const we = (await Promise.allSettled(
77449
+ se.map((xe) => xe.submit())
77446
77450
  )).every(
77447
- (we) => we.status === "fulfilled" && we.value
77451
+ (xe) => xe.status === "fulfilled" && xe.value
77448
77452
  );
77449
- return q(be ? "success" : "idle"), be;
77453
+ return q(we ? "success" : "idle"), we;
77450
77454
  }, [de]), ve = K(() => {
77451
77455
  for (const se of P().values())
77452
77456
  se.closeRows(), se.isDirty() ? se.reset() : se.clearErrors();
@@ -77469,26 +77473,26 @@ function Q$(e) {
77469
77473
  isDirty: () => se().some((ce) => ce.isDirty()),
77470
77474
  getValues: () => Object.fromEntries(
77471
77475
  Array.from(P().entries()).map(
77472
- ([ce, be]) => [ce, be.getValues()]
77476
+ ([ce, we]) => [ce, we.getValues()]
77473
77477
  )
77474
77478
  ),
77475
- setValue: (ce, be, we) => {
77479
+ setValue: (ce, we, xe) => {
77476
77480
  for (const Ae of se())
77477
- if (Ae.setValue(ce, be, we))
77481
+ if (Ae.setValue(ce, we, xe))
77478
77482
  return;
77479
77483
  },
77480
- setValues: (ce, be) => {
77481
- for (const [we, Ae] of Object.entries(ce))
77484
+ setValues: (ce, we) => {
77485
+ for (const [xe, Ae] of Object.entries(ce))
77482
77486
  for (const Ee of se())
77483
- if (Ee.setValue(we, Ae, {
77487
+ if (Ee.setValue(xe, Ae, {
77484
77488
  shouldValidate: !1,
77485
- shouldDirty: be?.shouldDirty ?? !0
77489
+ shouldDirty: we?.shouldDirty ?? !0
77486
77490
  }))
77487
77491
  break;
77488
- be?.shouldValidate !== !1 && Promise.all(se().map((we) => we.trigger()));
77492
+ we?.shouldValidate !== !1 && Promise.all(se().map((xe) => xe.trigger()));
77489
77493
  },
77490
77494
  trigger: async (ce) => (await Promise.all(
77491
- se().map((we) => we.trigger(ce))
77495
+ se().map((xe) => xe.trigger(ce))
77492
77496
  )).every(Boolean),
77493
77497
  getErrors: () => Object.assign({}, ...se().map((ce) => ce.getErrors())),
77494
77498
  getFieldNames: () => se().flatMap((ce) => ce.getFieldNames()),
@@ -77517,8 +77521,8 @@ function Q$(e) {
77517
77521
  const ke = Se === "loading" ? ge : Se === "success" ? v.actionBar.saved : me;
77518
77522
  H5e(t, E, C);
77519
77523
  const at = /* @__PURE__ */ m("div", { className: U("flex w-full flex-col max-w-content", a), children: N.map((se, ce) => {
77520
- const be = n[se], we = C?.[se], Ae = r?.[se], Ee = y ? void 0 : we?.submitConfig ?? s;
77521
- y && we?.submitConfig && C5e(t, se);
77524
+ const we = n[se], xe = C?.[se], Ae = r?.[se], Ee = y ? void 0 : xe?.submitConfig ?? s;
77525
+ y && xe?.submitConfig && C5e(t, se);
77522
77526
  const ze = U(
77523
77527
  pM,
77524
77528
  ce !== 0 && !F && ww,
@@ -77526,7 +77530,7 @@ function Q$(e) {
77526
77530
  // section form keeps its values and dirty state.
77527
77531
  F && se !== V && "hidden"
77528
77532
  );
77529
- return be ? (e4(we) && K$(t, se, "content-with-schema"), /* @__PURE__ */ m(
77533
+ return we ? (e4(xe) && K$(t, se, "content-with-schema"), /* @__PURE__ */ m(
77530
77534
  "div",
77531
77535
  {
77532
77536
  id: Br(t, se),
@@ -77536,8 +77540,8 @@ function Q$(e) {
77536
77540
  {
77537
77541
  formName: t,
77538
77542
  sectionId: se,
77539
- schema: be,
77540
- sectionConfig: we,
77543
+ schema: we,
77544
+ sectionConfig: xe,
77541
77545
  defaultValues: Ae,
77542
77546
  onSubmit: M[se].onSubmit,
77543
77547
  submitConfig: Ee,
@@ -77563,7 +77567,7 @@ function Q$(e) {
77563
77567
  children: /* @__PURE__ */ m(
77564
77568
  AQ,
77565
77569
  {
77566
- config: we
77570
+ config: xe
77567
77571
  }
77568
77572
  )
77569
77573
  },
@@ -77582,8 +77586,8 @@ function Q$(e) {
77582
77586
  resolvedActionBarLabel: ke,
77583
77587
  submitLabel: ne,
77584
77588
  submitIcon: le,
77585
- discardableChanges: Q,
77586
- discardLabel: te,
77589
+ discardableChanges: te,
77590
+ discardLabel: Q,
77587
77591
  discardIcon: ue,
77588
77592
  issuesOneLabel: v.actionBar.issues.one,
77589
77593
  issuesOtherLabel: v.actionBar.issues.other,
@@ -77999,15 +78003,15 @@ function nB(e) {
77999
78003
  }
78000
78004
  },
78001
78005
  [i, b]
78002
- ), Q = X(() => q$(t), [t]), te = sEe[d], ue = X(
78003
- () => hM(r, { errorMap: Q }),
78004
- [r, Q]
78006
+ ), te = X(() => q$(t), [t]), Q = sEe[d], ue = X(
78007
+ () => hM(r, { errorMap: te }),
78008
+ [r, te]
78005
78009
  ), me = X(
78006
78010
  () => II(r, s),
78007
78011
  [r, s]
78008
78012
  ), ge = DI(r), ye = O9({
78009
78013
  resolver: ue,
78010
- mode: te,
78014
+ mode: Q,
78011
78015
  defaultValues: me
78012
78016
  }), Se = K(
78013
78017
  (Fe) => Le(ye.control._defaultValues, Fe),
@@ -78052,7 +78056,7 @@ function nB(e) {
78052
78056
  searching: Ge.searching,
78053
78057
  onFieldClick: Ge.onSelectField,
78054
78058
  errorFieldIds: ve
78055
- }), pe = ye.formState.errors.root, { isDirty: se, isSubmitting: ce, errors: be } = ye.formState, [we, Ae] = J(
78059
+ }), pe = ye.formState.errors.root, { isDirty: se, isSubmitting: ce, errors: we } = ye.formState, [xe, Ae] = J(
78056
78060
  () => /* @__PURE__ */ new Set()
78057
78061
  ), Ee = K(
78058
78062
  (Fe, Ve) => {
@@ -78064,7 +78068,7 @@ function nB(e) {
78064
78068
  });
78065
78069
  },
78066
78070
  []
78067
- ), ze = we.size > 0, Me = L(ze);
78071
+ ), ze = xe.size > 0, Me = L(ze);
78068
78072
  Me.current = ze;
78069
78073
  const [Ue, et] = J("idle"), [dt, ct] = J(), Je = L(null), nt = L(null), gt = L(null), yt = L(!0), sn = L(null), Wt = L(null), {
78070
78074
  hasErrors: Ut,
@@ -78074,7 +78078,7 @@ function nB(e) {
78074
78078
  resetErrorNavigation: _n
78075
78079
  } = G$({
78076
78080
  formName: i,
78077
- errors: be
78081
+ errors: we
78078
78082
  }), Tn = Ue === "loading" ? H : Ue === "success" ? dt ?? n.actionBar.saved : z, yi = async (Fe) => {
78079
78083
  if (Me.current)
78080
78084
  return;
@@ -78106,10 +78110,10 @@ function nB(e) {
78106
78110
  selectionStart: ft,
78107
78111
  selectionEnd: mt
78108
78112
  };
78109
- }, []), xe = L(ye.formState.isSubmitting);
78113
+ }, []), be = L(ye.formState.isSubmitting);
78110
78114
  ie(() => {
78111
- const Fe = xe.current;
78112
- if (xe.current = ce, !Fe || ce)
78115
+ const Fe = be.current;
78116
+ if (be.current = ce, !Fe || ce)
78113
78117
  return;
78114
78118
  const Ve = sn.current;
78115
78119
  if (sn.current = null, !!Ve) {