@factorialco/f0-react 12.20.0 → 12.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArchiveThumbnail-B3rbpXVF.js → ArchiveThumbnail-DjGqm8M-.js} +1 -1
- package/dist/{ArchiveViewer-e1fxWtqq.js → ArchiveViewer-BJJfbi_U.js} +2 -2
- package/dist/{ChatPostComposerDialog-B7KUyMhn.js → ChatPostComposerDialog-D7SGJJAs.js} +2 -2
- package/dist/{CoachmarkProvider-CPaXTd-j.js → CoachmarkProvider-CoAVh7dJ.js} +492 -484
- package/dist/{CodeThumbnail-Y5t2jitc.js → CodeThumbnail-CPLxU3Ih.js} +1 -1
- package/dist/{CodeViewer-CVZL3m1j.js → CodeViewer-rQ7Em-Gy.js} +3 -3
- package/dist/{DocumentToolbar-BxucP3u-.js → DocumentToolbar-Ds1E9q0M.js} +1 -1
- package/dist/{DocxViewer-BkcBPKQ9.js → DocxViewer-C0T0z8Vs.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CBkyL1_h.js → F0AiProcessingOverlay-BFpxgMh2.js} +1 -1
- package/dist/{F0Alert-Rklc_Vxl.js → F0Alert-Bjvtxn3H.js} +1 -1
- package/dist/F0AudioPlayer-0tGyuoCw.js +2 -0
- package/dist/{F0CanvasPanel-BuTcey0-.js → F0CanvasPanel-CKf9KGYf.js} +4548 -4542
- package/dist/{F0DocumentViewer-DMutXRO1.js → F0DocumentViewer-Db7Df7NG.js} +2 -2
- package/dist/{F0DocumentViewer-BofWB9ez.js → F0DocumentViewer-keL5XY86.js} +1 -1
- package/dist/{F0Map-moAdMP9K.js → F0Map-C7tyIliG.js} +3 -3
- package/dist/F0VideoPlayer-BRfsQaLa.js +1 -0
- package/dist/{F0VideoPlayer-BF6JEDD9.js → F0VideoPlayer-CNjhk2KG.js} +1 -1
- package/dist/{HtmlViewer-GGtMSGvj.js → HtmlViewer-DLFZ5Ssa.js} +3 -3
- package/dist/{Map-1iG6fqM7.js → Map-BBymB_r3.js} +3 -3
- package/dist/{PdfThumbnail-DXCNIgMo.js → PdfThumbnail-COj6Xf_h.js} +1 -1
- package/dist/{PdfViewer-BFbpiCYO.js → PdfViewer-BFlZkPXF.js} +2 -2
- package/dist/{SheetViewer-DkxEJy-a.js → SheetViewer-BiG8XWoD.js} +2 -2
- package/dist/{TextViewer-C-ciXmbv.js → TextViewer-d55mf95-.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +6 -5
- package/dist/experimental.js +20 -26
- package/dist/f0.d.ts +1 -1
- package/dist/f0.js +6 -6
- package/dist/{highlight-CLTEoOBu.js → highlight-Dsp6kNdi.js} +1 -1
- package/dist/{maplibre-53AFhR3J.js → maplibre-BP9M6gr5.js} +1 -1
- package/dist/{pdfWorker-CbtWjaTA.js → pdfWorker-CWeWN68D.js} +1 -1
- package/dist/{types-BY2VUBWt.d.ts → types-BtO3HMh4.d.ts} +23 -0
- package/package.json +1 -1
- package/dist/F0AudioPlayer-C4597ZNk.js +0 -2
- package/dist/F0VideoPlayer-DT-pLuut.js +0 -1
|
@@ -2,9 +2,9 @@ import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
|
|
|
2
2
|
import { a as r, c as i, i as a, r as o, s } from "./i18n-provider-Bdgo-LeP.js";
|
|
3
3
|
import { n as c, t as l } from "./skeleton-AC0Fb8zj.js";
|
|
4
4
|
import { L as u, R as d, i as f, r as p, t as m, u as h, z as g } from "./tooltip-BX4dSfeL.js";
|
|
5
|
-
import { B as _, Dt as v, E as y, Et as b, F as x, J as S, N as C, O as w, Ot as T, R as E, S as D, St as O, T as k, Tt as A, U as j, X as M, Y as N, _t as P, b as F, bt as I, dt as ee, g as
|
|
5
|
+
import { B as _, Dt as v, E as y, Et as b, F as x, J as S, N as C, O as w, Ot as T, R as E, S as D, St as O, T as k, Tt as A, U as j, X as M, Y as N, _t as P, b as F, bt as I, dt as ee, g as te, h as ne, ht as L, k as re, n as R, pt as ie, r as z, st as ae, t as B, vt as oe, w as se, wt as ce, x as le, xt as ue, yt as de } from "./F0Button-d91IgOnc.js";
|
|
6
6
|
import { t as fe } from "./LayoutGroup-BGb5jMxE.js";
|
|
7
|
-
import { $a as pe, $i as me, $n as he, $r as ge, $s as _e, Aa as ve, Ac as ye, Ai as be, Ao as xe, As as Se, Bi as Ce, Bn as we, Bs as Te, Ca as Ee, Cn as De, Cr as Oe, Da as ke, Dc as Ae, Dn as je, Ds as Me, Ea as Ne, Ec as Pe, En as Fe, Er as Ie, Es as Le, Fa as Re, Fc as ze, Fi as Be, Fn as Ve, Fr as He, Fs as Ue, Gi as We, Gn as Ge, Go as Ke, Hc as qe, Hi as Je, Hn as Ye, Hr as Xe, Ia as Ze, Ic as Qe, Ii as $e, In as et, Ir as tt, Ji as nt, Jn as rt, Jo as it, Js as at, Ki as ot, Kn as st, Ko as ct, La as lt, Lc as ut, Li as dt, Ln as ft, Lo as pt, Lr as mt, Ls as ht, Ma as gt, Mi as _t, Mn as vt, Mr as yt, Na as bt, Nc as xt, Ni as St, Nn as Ct, Ns as wt, Oa as Tt, Oi as Et, On as Dt, Oo as Ot, Os as kt, Pa as At, Pc as jt, Pi as Mt, Pn as Nt, Pr as Pt, Ps as Ft, Qa as It, Qi as Lt, Qn as Rt, Qs as zt, Ra as Bt, Rc as Vt, Ri as Ht, Rn as Ut, Sn as Wt, Sr as Gt, Ss as Kt, Ta as qt, Tc as Jt, Tn as Yt, Ui as Xt, Un as Zt, Us as Qt, Vc as $t, Vi as en, Vn as tn, Vo as nn, Vs as rn, Wi as an, Wn as on, Wo as sn, Ws as cn, Xa as ln, Xi as un, Xn as dn, Xo as fn, Xr as pn, Yi as mn, Yn as hn, Yr as gn, Za as _n, Zi as vn, Zn as yn, Zo as bn, _a as xn, _c as Sn, _i as Cn, _n as wn, _o as Tn, aa as En, ac as eee, ai as tee, ao as nee, ar as ree, ba as iee, bi as aee, bn as Dn, bs as On, ca as oee, cc as see, ci as cee, co as kn, cr as lee, cs as uee, da as An, dn as jn, do as Mn, ds as dee, ea as fee, ec as pee, en as mee, eo as hee, er as Nn, fa as gee, fn as Pn, fo as _ee, fs as Fn, ga as In, gn as Ln, go as Rn, ha as zn, hc as vee, hi as yee, hn as bee, ho as Bn, hr as Vn, ia as Hn, ii as Un, in as xee, io as Wn, ir as See, ja as Gn, ji as Kn, jn as qn, jo as Cee, js as Jn, ka as Yn, kc as wee, ki as Tee, ko as Xn, kr as Eee, la as Dee, lc as Zn, ln as Oee, lo as Qn, lr as kee, ma as $n, mi as Aee, mn as er, mo as jee, na as tr, nc as Mee, ni as Nee, no as Pee, nr as Fee, ns as Iee, oa as Lee, oc as Ree, on as zee, oo as Bee, or as nr, pa as rr, pc as Vee, pi as Hee, pn as Uee, po as ir, qi as Wee, qn as Gee, ra as Kee, rc as qee, ri as ar, ro as Jee, rr as Yee, rs as Xee, si as or, sr as Zee, ss as Qee, ta as sr, tc as $ee, tn as ete, to as tte, tr as nte, ua as rte, uc as cr, un as ite, ur as ate, va as ote, vn as lr, vo as ste, vr as ur, wa as dr, wn as cte, wr as fr, xa as pr, xn as mr, xo as hr, xr as gr, yo as lte, yr as _r, ys as ute, za as dte, zi as fte, zn as vr, zo as pte, zr as mte, zs as yr } from "./F0CanvasPanel-
|
|
7
|
+
import { $a as pe, $i as me, $n as he, $r as ge, $s as _e, Aa as ve, Ac as ye, Ai as be, Ao as xe, As as Se, Bi as Ce, Bn as we, Bs as Te, Ca as Ee, Cn as De, Cr as Oe, Da as ke, Dc as Ae, Dn as je, Ds as Me, Ea as Ne, Ec as Pe, En as Fe, Er as Ie, Es as Le, Fa as Re, Fc as ze, Fi as Be, Fn as Ve, Fr as He, Fs as Ue, Gi as We, Gn as Ge, Go as Ke, Hc as qe, Hi as Je, Hn as Ye, Hr as Xe, Ia as Ze, Ic as Qe, Ii as $e, In as et, Ir as tt, Ji as nt, Jn as rt, Jo as it, Js as at, Ki as ot, Kn as st, Ko as ct, La as lt, Lc as ut, Li as dt, Ln as ft, Lo as pt, Lr as mt, Ls as ht, Ma as gt, Mi as _t, Mn as vt, Mr as yt, Na as bt, Nc as xt, Ni as St, Nn as Ct, Ns as wt, Oa as Tt, Oi as Et, On as Dt, Oo as Ot, Os as kt, Pa as At, Pc as jt, Pi as Mt, Pn as Nt, Pr as Pt, Ps as Ft, Qa as It, Qi as Lt, Qn as Rt, Qs as zt, Ra as Bt, Rc as Vt, Ri as Ht, Rn as Ut, Sn as Wt, Sr as Gt, Ss as Kt, Ta as qt, Tc as Jt, Tn as Yt, Ui as Xt, Un as Zt, Us as Qt, Vc as $t, Vi as en, Vn as tn, Vo as nn, Vs as rn, Wi as an, Wn as on, Wo as sn, Ws as cn, Xa as ln, Xi as un, Xn as dn, Xo as fn, Xr as pn, Yi as mn, Yn as hn, Yr as gn, Za as _n, Zi as vn, Zn as yn, Zo as bn, _a as xn, _c as Sn, _i as Cn, _n as wn, _o as Tn, aa as En, ac as eee, ai as tee, ao as nee, ar as ree, ba as iee, bi as aee, bn as Dn, bs as On, ca as oee, cc as see, ci as cee, co as kn, cr as lee, cs as uee, da as An, dn as jn, do as Mn, ds as dee, ea as fee, ec as pee, en as mee, eo as hee, er as Nn, fa as gee, fn as Pn, fo as _ee, fs as Fn, ga as In, gn as Ln, go as Rn, ha as zn, hc as vee, hi as yee, hn as bee, ho as Bn, hr as Vn, ia as Hn, ii as Un, in as xee, io as Wn, ir as See, ja as Gn, ji as Kn, jn as qn, jo as Cee, js as Jn, ka as Yn, kc as wee, ki as Tee, ko as Xn, kr as Eee, la as Dee, lc as Zn, ln as Oee, lo as Qn, lr as kee, ma as $n, mi as Aee, mn as er, mo as jee, na as tr, nc as Mee, ni as Nee, no as Pee, nr as Fee, ns as Iee, oa as Lee, oc as Ree, on as zee, oo as Bee, or as nr, pa as rr, pc as Vee, pi as Hee, pn as Uee, po as ir, qi as Wee, qn as Gee, ra as Kee, rc as qee, ri as ar, ro as Jee, rr as Yee, rs as Xee, si as or, sr as Zee, ss as Qee, ta as sr, tc as $ee, tn as ete, to as tte, tr as nte, ua as rte, uc as cr, un as ite, ur as ate, va as ote, vn as lr, vo as ste, vr as ur, wa as dr, wn as cte, wr as fr, xa as pr, xn as mr, xo as hr, xr as gr, yo as lte, yr as _r, ys as ute, za as dte, zi as fte, zn as vr, zo as pte, zr as mte, zs as yr } from "./F0CanvasPanel-CKf9KGYf.js";
|
|
8
8
|
import { n as br, o as xr, r as Sr, t as Cr } from "./F0Icon-DmCBV0gK.js";
|
|
9
9
|
import { B as hte, F as gte, H as wr, I as _te, O as Tr, P as Er, R as Dr, S as Or, U as kr, V as Ar, _ as jr, b as Mr, c as vte, f as Nr, g as Pr, h as Fr, i as Ir, k as yte, n as Lr, o as bte, r as xte, v as Ste, y as Rr, z as zr } from "./useData-BYkiGUHX.js";
|
|
10
10
|
import { $ as Cte, $t as Br, B as Vr, Bt as wte, C as Tte, Cr as Hr, Ct as Ete, D as Ur, Dr as Wr, E as Dte, En as Ote, Er as kte, Et as Gr, G as Kr, Gt as qr, H as Jr, Ht as Yr, I as Xr, Jt as Ate, K as Zr, Kt as jte, L as Qr, Lt as Mte, M as $r, Nn as Nte, O as Pte, Or as ei, Ot as ti, Pn as Fte, Q as ni, Qt as ri, R as ii, S as Ite, Sr as ai, St as oi, T as Lte, Tn as si, Tr as Rte, Ut as ci, V as zte, Vt as Bte, Wt as li, X as ui, Xt as Vte, Y as Hte, Yt as Ute, Z as di, Zt as Wte, _n as fi, _t as pi, at as Gte, b as Kte, cn as mi, cr as hi, d as qte, dn as gi, en as Jte, er as Yte, et as _i, f as Xte, ft as Zte, g as Qte, gn as $te, gt as ene, hr as tne, in as vi, it as nne, j as rne, jt as ine, k as ane, kn as one, l as sne, lt as yi, m as cne, mr as lne, n as une, nn as bi, nt as xi, or as Si, ot as dne, p as Ci, pn as fne, qt as pne, r as mne, rn as hne, rt as gne, sn as _ne, st as vne, t as wi, tt as Ti, ur as Ei, ut as yne, vt as bne, x as xne, xn as Sne, xr as Di, xt as Cne, zt as wne } from "./F0Select-CvMv06GW.js";
|
|
@@ -18,7 +18,7 @@ import { c as Gne, l as Kne, n as Bi, r as qne } from "./scrollarea-cxaFAWG5.js"
|
|
|
18
18
|
import { t as Vi } from "./F0Text-CXHuzMbj.js";
|
|
19
19
|
import { t as Hi } from "./dist-Cuwaibqg.js";
|
|
20
20
|
import { i as Jne, r as Yne } from "./dist-DtILhk4w.js";
|
|
21
|
-
import { t as Ui } from "./F0Alert-
|
|
21
|
+
import { t as Ui } from "./F0Alert-Bjvtxn3H.js";
|
|
22
22
|
import './RichText.css';import './CoachmarkProvider.css';/* empty css */
|
|
23
23
|
import { t as Xne } from "./dist-Dt-cTb6D.js";
|
|
24
24
|
import * as Wi from "react";
|
|
@@ -742,15 +742,15 @@ function jre(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
|
|
|
742
742
|
function ee() {
|
|
743
743
|
C.clear(), w.clear();
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function te() {
|
|
746
746
|
let e = F ? n : t;
|
|
747
747
|
w.add(e, "touchmove", ie, S).add(e, "touchend", z).add(e, "mousemove", ie, S).add(e, "mouseup", z);
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function ne(e) {
|
|
750
750
|
let t = e.nodeName || "";
|
|
751
751
|
return x.includes(t);
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function L() {
|
|
754
754
|
return (m ? D : E)[F ? "mouse" : "touch"];
|
|
755
755
|
}
|
|
756
756
|
function re(e, t) {
|
|
@@ -759,7 +759,7 @@ function jre(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
|
|
|
759
759
|
}
|
|
760
760
|
function R(e) {
|
|
761
761
|
let t = za(e, r);
|
|
762
|
-
F = t, P = m && t && !e.buttons && k, k = ja(i.get(), o.get()) >= 2, !(t && e.button !== 0) && (
|
|
762
|
+
F = t, P = m && t && !e.buttons && k, k = ja(i.get(), o.get()) >= 2, !(t && e.button !== 0) && (ne(e.target) || (M = !0, a.pointerDown(e), l.useFriction(0).useDuration(0), i.set(o), te(), A = a.readPoint(e), j = a.readPoint(e, y), f.emit("pointerDown")));
|
|
763
763
|
}
|
|
764
764
|
function ie(e) {
|
|
765
765
|
if (!za(e, r) && e.touches.length >= 2) return z(e);
|
|
@@ -769,7 +769,7 @@ function jre(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
|
|
|
769
769
|
o > h && (P = !0), l.useFriction(.3).useDuration(.75), s.start(), i.add(b(u)), e.preventDefault();
|
|
770
770
|
}
|
|
771
771
|
function z(e) {
|
|
772
|
-
let t = u.byDistance(0, !1).index !== d.get(), n = a.pointerUp(e) *
|
|
772
|
+
let t = u.byDistance(0, !1).index !== d.get(), n = a.pointerUp(e) * L(), r = re(b(n), t), i = Ere(n, r), o = O - 10 * i, s = _ + i / 50;
|
|
773
773
|
N = !1, M = !1, w.clear(), l.useDuration(o).useFriction(s), c.distance(r, !m), F = !1, f.emit("pointerUp");
|
|
774
774
|
}
|
|
775
775
|
function ae(e) {
|
|
@@ -1296,14 +1296,14 @@ function Zre(e, t, n, r, i, a, o, s, c) {
|
|
|
1296
1296
|
return { groupSlides: h };
|
|
1297
1297
|
}
|
|
1298
1298
|
function Qre(e, t, n, r, i, a, o) {
|
|
1299
|
-
let { align: s, axis: c, direction: l, startIndex: u, loop: d, duration: f, dragFree: p, dragThreshold: m, inViewThreshold: h, slidesToScroll: g, skipSnaps: _, containScroll: v, watchResize: y, watchSlides: b, watchDrag: x, watchFocus: S } = a, C = Nre(), w = C.measure(t), T = n.map(C.measure), E = Are(c, l), D = E.measureSize(w), O = Pre(D), k = Ore(s, D), A = !d && !!v, { slideSizes: j, slideSizesWithGaps: M, startGap: N, endGap: P } = Xre(E, w, T, n, d || !!v, i), F = Zre(E, D, g, d, w, T, N, P, 2), { snaps: I, snapsAligned: ee } = Hre(E, k, w, T, F),
|
|
1299
|
+
let { align: s, axis: c, direction: l, startIndex: u, loop: d, duration: f, dragFree: p, dragThreshold: m, inViewThreshold: h, slidesToScroll: g, skipSnaps: _, containScroll: v, watchResize: y, watchSlides: b, watchDrag: x, watchFocus: S } = a, C = Nre(), w = C.measure(t), T = n.map(C.measure), E = Are(c, l), D = E.measureSize(w), O = Pre(D), k = Ore(s, D), A = !d && !!v, { slideSizes: j, slideSizesWithGaps: M, startGap: N, endGap: P } = Xre(E, w, T, n, d || !!v, i), F = Zre(E, D, g, d, w, T, N, P, 2), { snaps: I, snapsAligned: ee } = Hre(E, k, w, T, F), te = -Na(I) + Na(M), { snapsContained: ne, scrollContainLimit: L } = Rre(D, te, ee, v, 2), re = A ? ne : ee, { limit: R } = zre(te, re, d), ie = Ha(Pa(re), u, d), z = ie.clone(), ae = Ma(n), B = ({ dragHandler: e, scrollBody: t, scrollBounds: n, options: { loop: r } }) => {
|
|
1300
1300
|
r || n.constrain(e.pointerDown()), t.seek();
|
|
1301
1301
|
}, oe = ({ scrollBody: e, translate: t, location: n, offsetLocation: r, previousLocation: i, scrollLooper: a, slideLooper: o, dragHandler: s, animation: c, eventHandler: l, scrollBounds: u, options: { loop: d } }, f) => {
|
|
1302
1302
|
let p = e.settled(), m = !u.shouldConstrain(), h = d ? p : p && m, g = h && !s.pointerDown();
|
|
1303
1303
|
g && c.stop();
|
|
1304
1304
|
let _ = n.get() * f + i.get() * (1 - f);
|
|
1305
1305
|
r.set(_), d && (a.loop(e.direction()), o.loop()), t.to(r.get()), g && l.emit("settle"), h || l.emit("scroll");
|
|
1306
|
-
}, se = kre(r, i, () => B(Se), (e) => oe(Se, e)), ce = .68, le = re[ie.get()], ue = Ua(le), de = Ua(le), fe = Ua(le), pe = Ua(le), me = Ire(ue, fe, de, pe, f, ce), he = Wre(d, re,
|
|
1306
|
+
}, se = kre(r, i, () => B(Se), (e) => oe(Se, e)), ce = .68, le = re[ie.get()], ue = Ua(le), de = Ua(le), fe = Ua(le), pe = Ua(le), me = Ire(ue, fe, de, pe, f, ce), he = Wre(d, re, te, R, pe), ge = Gre(se, ie, z, me, he, pe, o), _e = Vre(R), ve = Ba(), ye = Yre(t, n, o, h), { slideRegistry: be } = Ure(A, v, re, L, F, ae), xe = Kre(e, n, be, ge, me, ve, o, S), Se = {
|
|
1307
1307
|
ownerDocument: r,
|
|
1308
1308
|
ownerWindow: i,
|
|
1309
1309
|
eventHandler: o,
|
|
@@ -1324,7 +1324,7 @@ function Qre(e, t, n, r, i, a, o) {
|
|
|
1324
1324
|
resizeHandler: Fre(t, o, i, n, E, y, C),
|
|
1325
1325
|
scrollBody: me,
|
|
1326
1326
|
scrollBounds: Lre(R, fe, pe, me, O),
|
|
1327
|
-
scrollLooper: Bre(
|
|
1327
|
+
scrollLooper: Bre(te, R, fe, [
|
|
1328
1328
|
ue,
|
|
1329
1329
|
fe,
|
|
1330
1330
|
de,
|
|
@@ -1335,7 +1335,7 @@ function Qre(e, t, n, r, i, a, o) {
|
|
|
1335
1335
|
scrollSnaps: re,
|
|
1336
1336
|
scrollTarget: he,
|
|
1337
1337
|
scrollTo: ge,
|
|
1338
|
-
slideLooper: qre(E, D,
|
|
1338
|
+
slideLooper: qre(E, D, te, j, M, I, re, fe, n),
|
|
1339
1339
|
slideFocus: xe,
|
|
1340
1340
|
slidesHandler: Jre(t, o, b),
|
|
1341
1341
|
slidesInView: ye,
|
|
@@ -1477,13 +1477,13 @@ function Ga(e, t, n) {
|
|
|
1477
1477
|
function ee() {
|
|
1478
1478
|
return _.index.get();
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function te() {
|
|
1481
1481
|
return _.indexPrevious.get();
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function ne() {
|
|
1484
1484
|
return _.slidesInView.get();
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function L() {
|
|
1487
1487
|
return _.slidesInView.get(!1);
|
|
1488
1488
|
}
|
|
1489
1489
|
function re() {
|
|
@@ -1511,7 +1511,7 @@ function Ga(e, t, n) {
|
|
|
1511
1511
|
on: f,
|
|
1512
1512
|
emit: m,
|
|
1513
1513
|
plugins: re,
|
|
1514
|
-
previousScrollSnap:
|
|
1514
|
+
previousScrollSnap: te,
|
|
1515
1515
|
reInit: h,
|
|
1516
1516
|
rootNode: ie,
|
|
1517
1517
|
scrollNext: j,
|
|
@@ -1521,8 +1521,8 @@ function Ga(e, t, n) {
|
|
|
1521
1521
|
scrollTo: A,
|
|
1522
1522
|
selectedScrollSnap: ee,
|
|
1523
1523
|
slideNodes: ae,
|
|
1524
|
-
slidesInView:
|
|
1525
|
-
slidesNotInView:
|
|
1524
|
+
slidesInView: ne,
|
|
1525
|
+
slidesNotInView: L
|
|
1526
1526
|
};
|
|
1527
1527
|
return E(t, n), setTimeout(() => c.emit("init"), 0), B;
|
|
1528
1528
|
}
|
|
@@ -1641,7 +1641,7 @@ function sie(e, t, n, r) {
|
|
|
1641
1641
|
let a = r > 0 ? 1 : -1, o = e[i + a];
|
|
1642
1642
|
if (!o) return e;
|
|
1643
1643
|
let s = e[i], c = o.layout, l = ee(c.min, c.max, .5);
|
|
1644
|
-
return a === 1 && s.layout.max + n > l || a === -1 && s.layout.min + n < l ?
|
|
1644
|
+
return a === 1 && s.layout.max + n > l || a === -1 && s.layout.min + n < l ? L(e, i, i + a) : e;
|
|
1645
1645
|
}
|
|
1646
1646
|
//#endregion
|
|
1647
1647
|
//#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/Reorder/Group.mjs
|
|
@@ -4049,14 +4049,14 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4049
4049
|
dragging: g,
|
|
4050
4050
|
dependencies: [y.x, y.y],
|
|
4051
4051
|
config: M.droppable
|
|
4052
|
-
}), I = vae(v, _), ee = W(() => D ? Go(D) : null, [D]),
|
|
4052
|
+
}), I = vae(v, _), ee = W(() => D ? Go(D) : null, [D]), te = Oe(), ne = xae(I, M.draggable.measure);
|
|
4053
4053
|
Vae({
|
|
4054
4054
|
activeNode: _ == null ? null : v.get(_),
|
|
4055
|
-
config:
|
|
4056
|
-
initialRect:
|
|
4055
|
+
config: te.layoutShiftCompensation,
|
|
4056
|
+
initialRect: ne,
|
|
4057
4057
|
measure: M.draggable.measure
|
|
4058
4058
|
});
|
|
4059
|
-
let
|
|
4059
|
+
let L = Us(I, M.draggable.measure, ne), re = Us(I ? I.parentElement : null), R = G({
|
|
4060
4060
|
activatorEvent: null,
|
|
4061
4061
|
active: null,
|
|
4062
4062
|
activeNode: I,
|
|
@@ -4070,7 +4070,7 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4070
4070
|
over: null,
|
|
4071
4071
|
scrollableAncestors: [],
|
|
4072
4072
|
scrollAdjustedTranslate: null
|
|
4073
|
-
}), ie = b.getNodeFor(R.current.over?.id), z = Aae({ measure: M.dragOverlay.measure }), ae = z.nodeRef.current ?? I, B = g ? z.rect ??
|
|
4073
|
+
}), ie = b.getNodeFor(R.current.over?.id), z = Aae({ measure: M.dragOverlay.measure }), ae = z.nodeRef.current ?? I, B = g ? z.rect ?? L : null, oe = !!(z.nodeRef.current && z.rect), se = wae(oe ? null : L), ce = Ks(ae ? Oo(ae) : null), le = Tae(g ? ie ?? I : null), ue = kae(le), de = zae(c, {
|
|
4074
4074
|
transform: {
|
|
4075
4075
|
x: y.x - se.x,
|
|
4076
4076
|
y: y.y - se.y,
|
|
@@ -4079,7 +4079,7 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4079
4079
|
},
|
|
4080
4080
|
activatorEvent: D,
|
|
4081
4081
|
active: C,
|
|
4082
|
-
activeNodeRect:
|
|
4082
|
+
activeNodeRect: L,
|
|
4083
4083
|
containerNodeRect: re,
|
|
4084
4084
|
draggingNodeRect: B,
|
|
4085
4085
|
over: R.current.over,
|
|
@@ -4087,13 +4087,13 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4087
4087
|
scrollableAncestors: le,
|
|
4088
4088
|
scrollableAncestorRects: ue,
|
|
4089
4089
|
windowRect: ce
|
|
4090
|
-
}), fe = ee ? Ho(ee, y) : null, pe = Eae(le), me = Gs(pe), he = Gs(pe, [
|
|
4090
|
+
}), fe = ee ? Ho(ee, y) : null, pe = Eae(le), me = Gs(pe), he = Gs(pe, [L]), ge = Ho(de, me), _e = B ? Xie(B, de) : null, ve = C && _e ? o({
|
|
4091
4091
|
active: C,
|
|
4092
4092
|
collisionRect: _e,
|
|
4093
4093
|
droppableRects: N,
|
|
4094
4094
|
droppableContainers: j,
|
|
4095
4095
|
pointerCoordinates: fe
|
|
4096
|
-
}) : null, ye = rs(ve, "id"), [be, xe] = K(null), Se = Jie(oe ? de : Ho(de, he), be?.rect ?? null,
|
|
4096
|
+
}) : null, ye = rs(ve, "id"), [be, xe] = K(null), Se = Jie(oe ? de : Ho(de, he), be?.rect ?? null, L), Ce = G(null), we = H((e, t) => {
|
|
4097
4097
|
let { sensor: n, options: r } = t;
|
|
4098
4098
|
if (w.current == null) return;
|
|
4099
4099
|
let i = v.get(w.current);
|
|
@@ -4192,8 +4192,8 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4192
4192
|
e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, w.current = r, we(n, t));
|
|
4193
4193
|
}, [v, we]));
|
|
4194
4194
|
Dae(a), No(() => {
|
|
4195
|
-
|
|
4196
|
-
}, [
|
|
4195
|
+
L && m === $s.Initializing && h($s.Initialized);
|
|
4196
|
+
}, [L, m]), U(() => {
|
|
4197
4197
|
let { onDragMove: e } = k.current, { active: t, activatorEvent: n, collisions: r, over: i } = R.current;
|
|
4198
4198
|
if (!t || !n) return;
|
|
4199
4199
|
let a = {
|
|
@@ -4269,7 +4269,7 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4269
4269
|
le,
|
|
4270
4270
|
ge
|
|
4271
4271
|
]), hae({
|
|
4272
|
-
...
|
|
4272
|
+
...te,
|
|
4273
4273
|
delta: y,
|
|
4274
4274
|
draggingRect: _e,
|
|
4275
4275
|
pointerCoordinates: fe,
|
|
@@ -4279,7 +4279,7 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4279
4279
|
let Ee = W(() => ({
|
|
4280
4280
|
active: C,
|
|
4281
4281
|
activeNode: I,
|
|
4282
|
-
activeNodeRect:
|
|
4282
|
+
activeNodeRect: L,
|
|
4283
4283
|
activatorEvent: D,
|
|
4284
4284
|
collisions: ve,
|
|
4285
4285
|
containerNodeRect: re,
|
|
@@ -4297,7 +4297,7 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4297
4297
|
}), [
|
|
4298
4298
|
C,
|
|
4299
4299
|
I,
|
|
4300
|
-
|
|
4300
|
+
L,
|
|
4301
4301
|
D,
|
|
4302
4302
|
ve,
|
|
4303
4303
|
re,
|
|
@@ -4316,7 +4316,7 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4316
4316
|
activatorEvent: D,
|
|
4317
4317
|
activators: Te,
|
|
4318
4318
|
active: C,
|
|
4319
|
-
activeNodeRect:
|
|
4319
|
+
activeNodeRect: L,
|
|
4320
4320
|
ariaDescribedById: { draggable: A },
|
|
4321
4321
|
dispatch: d,
|
|
4322
4322
|
draggableNodes: v,
|
|
@@ -4326,7 +4326,7 @@ var Hae = /*#__PURE__*/ Qi(function(e) {
|
|
|
4326
4326
|
D,
|
|
4327
4327
|
Te,
|
|
4328
4328
|
C,
|
|
4329
|
-
|
|
4329
|
+
L,
|
|
4330
4330
|
d,
|
|
4331
4331
|
A,
|
|
4332
4332
|
v,
|
|
@@ -4809,7 +4809,7 @@ function Toe(e) {
|
|
|
4809
4809
|
...n
|
|
4810
4810
|
},
|
|
4811
4811
|
disabled: y.draggable
|
|
4812
|
-
}), ee = kie(E, j),
|
|
4812
|
+
}), ee = kie(E, j), te = !!D, ne = te && !m && tc(f) && tc(g), L = !_ && N, re = ne ? (L && ne ? I : null) ?? (s ?? v)({
|
|
4813
4813
|
rects: h,
|
|
4814
4814
|
activeNodeRect: k,
|
|
4815
4815
|
activeIndex: f,
|
|
@@ -4829,7 +4829,7 @@ function Toe(e) {
|
|
|
4829
4829
|
active: D,
|
|
4830
4830
|
containerId: d,
|
|
4831
4831
|
isDragging: N,
|
|
4832
|
-
isSorting:
|
|
4832
|
+
isSorting: te,
|
|
4833
4833
|
id: o,
|
|
4834
4834
|
index: b,
|
|
4835
4835
|
items: u,
|
|
@@ -4845,9 +4845,9 @@ function Toe(e) {
|
|
|
4845
4845
|
rect: C
|
|
4846
4846
|
});
|
|
4847
4847
|
return U(() => {
|
|
4848
|
-
|
|
4848
|
+
te && z.current.newIndex !== R && (z.current.newIndex = R), d !== z.current.containerId && (z.current.containerId = d), u !== z.current.items && (z.current.items = u);
|
|
4849
4849
|
}, [
|
|
4850
|
-
|
|
4850
|
+
te,
|
|
4851
4851
|
R,
|
|
4852
4852
|
d,
|
|
4853
4853
|
u
|
|
@@ -4871,7 +4871,7 @@ function Toe(e) {
|
|
|
4871
4871
|
newIndex: R,
|
|
4872
4872
|
items: u,
|
|
4873
4873
|
isOver: T,
|
|
4874
|
-
isSorting:
|
|
4874
|
+
isSorting: te,
|
|
4875
4875
|
isDragging: N,
|
|
4876
4876
|
listeners: M,
|
|
4877
4877
|
node: w,
|
|
@@ -4886,7 +4886,7 @@ function Toe(e) {
|
|
|
4886
4886
|
};
|
|
4887
4887
|
function se() {
|
|
4888
4888
|
if (oe || ae && z.current.newIndex === b) return Soe;
|
|
4889
|
-
if (!(
|
|
4889
|
+
if (!(L && !Wo(O) || !l) && (te || B)) return Ko.Transition.toString({
|
|
4890
4890
|
...l,
|
|
4891
4891
|
property: xoe
|
|
4892
4892
|
});
|
|
@@ -15115,11 +15115,11 @@ function wpe(e, t, n, r, i) {
|
|
|
15115
15115
|
if (typeof I == "string" && I.charAt(I.length - 1) === "%") k.percentWidth = I, _.push(k), k.contentWidth = wm(ym(N), k.text);
|
|
15116
15116
|
else {
|
|
15117
15117
|
if (ee) {
|
|
15118
|
-
var
|
|
15119
|
-
|
|
15118
|
+
var te = A.backgroundColor, ne = te && te.image;
|
|
15119
|
+
ne && (ne = vpe(ne), sg(ne) && (k.width = Math.max(k.width, ne.width * P / ne.height)));
|
|
15120
15120
|
}
|
|
15121
|
-
var
|
|
15122
|
-
|
|
15121
|
+
var L = b && u != null ? u - D : null;
|
|
15122
|
+
L != null && L < k.width ? !ee || L < M ? (k.text = "", k.width = k.contentWidth = 0) : (ype(S, k.text, L - M, N, t.ellipsis, { minChar: t.truncateMinChar }), k.text = S.text, a.isTruncated = a.isTruncated || S.isTruncated, k.width = k.contentWidth = wm(ym(N), k.text)) : k.contentWidth = wm(ym(N), k.text);
|
|
15123
15123
|
}
|
|
15124
15124
|
k.width += M, D += k.width, A && (E = Math.max(E, k.lineHeight));
|
|
15125
15125
|
}
|
|
@@ -15608,13 +15608,13 @@ var r_ = function() {
|
|
|
15608
15608
|
e.quadraticCurveTo(k, A, j, M), c = j, l = M;
|
|
15609
15609
|
break;
|
|
15610
15610
|
case zg.A:
|
|
15611
|
-
var F = n[x++], I = n[x++], ee = n[x++],
|
|
15611
|
+
var F = n[x++], I = n[x++], ee = n[x++], te = n[x++], ne = n[x++], L = n[x++], re = n[x++], R = !n[x++], ie = ee > te ? ee : te, z = Xg(ee - te) > .001, ae = ne + L, B = !1;
|
|
15612
15612
|
if (f) {
|
|
15613
15613
|
var E = p[g++];
|
|
15614
|
-
h + E > _ && (ae =
|
|
15614
|
+
h + E > _ && (ae = ne + L * (_ - h) / E, B = !0), h += E;
|
|
15615
15615
|
}
|
|
15616
|
-
if (z && e.ellipse ? e.ellipse(F, I, ee,
|
|
15617
|
-
C && (o = Jg(
|
|
15616
|
+
if (z && e.ellipse ? e.ellipse(F, I, ee, te, re, ne, ae, R) : e.arc(F, I, ie, ne, ae, R), B) break lo;
|
|
15617
|
+
C && (o = Jg(ne) * ee + F, s = Yg(ne) * te + I), c = Jg(ae) * ee + F, l = Yg(ae) * te + I;
|
|
15618
15618
|
break;
|
|
15619
15619
|
case zg.R:
|
|
15620
15620
|
o = c = n[x], s = l = n[x + 1], u = n[x++], d = n[x++];
|
|
@@ -16993,7 +16993,7 @@ function vhe(e, t) {
|
|
|
16993
16993
|
if (v = _v(I, g), y = _v(I, _), b = _v(I, m), x = _v(I, h), w = S = gv(v, y), T = C = gv(b, x), (S > vv || C > vv) && (E = r * pv(c), D = r * fv(c), O = i * pv(s), k = i * fv(s), f < phe)) {
|
|
16994
16994
|
var ee = ghe(A, j, O, k, E, D, M, N);
|
|
16995
16995
|
if (ee) {
|
|
16996
|
-
var
|
|
16996
|
+
var te = A - ee[0], ne = j - ee[1], L = E - ee[0], re = D - ee[1], R = 1 / fv(mhe((te * L + ne * re) / (hv(te * te + ne * ne) * hv(L * L + re * re))) / 2), ie = hv(ee[0] * ee[0] + ee[1] * ee[1]);
|
|
16997
16997
|
w = _v(S, (r - ie) / (R + 1)), T = _v(C, (i - ie) / (R - 1));
|
|
16998
16998
|
}
|
|
16999
16999
|
}
|
|
@@ -28253,8 +28253,8 @@ function sTe(e, t, n, r, i, a, o, s) {
|
|
|
28253
28253
|
return h[e] - h[t];
|
|
28254
28254
|
});
|
|
28255
28255
|
for (var M = l.length, N = AC(M), P = AC(M), F = AC(M), I = AC(M), ee = [], y = 0; y < m.length; y++) {
|
|
28256
|
-
var
|
|
28257
|
-
N[
|
|
28256
|
+
var te = m[y], ne = y * 2, L = te * 2;
|
|
28257
|
+
N[ne] = l[L], N[ne + 1] = l[L + 1], P[ne] = u[L], P[ne + 1] = u[L + 1], F[ne] = d[L], F[ne + 1] = d[L + 1], I[ne] = f[L], I[ne + 1] = f[L + 1], ee[y] = p[te];
|
|
28258
28258
|
}
|
|
28259
28259
|
return {
|
|
28260
28260
|
current: N,
|
|
@@ -29818,11 +29818,11 @@ function HTe(e) {
|
|
|
29818
29818
|
else {
|
|
29819
29819
|
var F = (P ? (d.r + d.r0) / 2 * O : d.r * O) + r, I = (P ? (d.r + d.r0) / 2 * k : d.r * k) + i;
|
|
29820
29820
|
if (A = F + O * 3, j = I + k * 3, !P) {
|
|
29821
|
-
var ee = F + O * (T + c - d.r),
|
|
29822
|
-
A = x === "edge" ? O < 0 ? u + S : u + l - S :
|
|
29821
|
+
var ee = F + O * (T + c - d.r), te = I + k * (T + c - d.r), ne = ee + (O < 0 ? -1 : 1) * E, L = te;
|
|
29822
|
+
A = x === "edge" ? O < 0 ? u + S : u + l - S : ne + (O < 0 ? -b : b), j = L, M = [
|
|
29823
29823
|
[F, I],
|
|
29824
|
-
[ee,
|
|
29825
|
-
[
|
|
29824
|
+
[ee, te],
|
|
29825
|
+
[ne, L]
|
|
29826
29826
|
];
|
|
29827
29827
|
}
|
|
29828
29828
|
N = P ? "center" : x === "edge" ? O > 0 ? "right" : "left" : O > 0 ? "left" : "right";
|
|
@@ -35566,7 +35566,7 @@ function IOe(e, t, n, r, i, a, o, s, c, l) {
|
|
|
35566
35566
|
width: p,
|
|
35567
35567
|
height: m,
|
|
35568
35568
|
r: E
|
|
35569
|
-
}), g)
|
|
35569
|
+
}), g) te(n);
|
|
35570
35570
|
else {
|
|
35571
35571
|
n.invisible = !1;
|
|
35572
35572
|
var a = o.getVisual("style"), s = a.stroke, c = aA(S);
|
|
@@ -35578,7 +35578,7 @@ function IOe(e, t, n, r, i, a, o, s, c, l) {
|
|
|
35578
35578
|
var d = iA(T);
|
|
35579
35579
|
if (d.fill = T.get("borderColor"), r) {
|
|
35580
35580
|
var f = p - 2 * h;
|
|
35581
|
-
|
|
35581
|
+
ne(n, s, a.opacity, {
|
|
35582
35582
|
x: h,
|
|
35583
35583
|
y: 0,
|
|
35584
35584
|
width: f,
|
|
@@ -35599,20 +35599,20 @@ function IOe(e, t, n, r, i, a, o, s, c, l) {
|
|
|
35599
35599
|
width: i,
|
|
35600
35600
|
height: a,
|
|
35601
35601
|
r: E
|
|
35602
|
-
}), g)
|
|
35602
|
+
}), g) te(n);
|
|
35603
35603
|
else {
|
|
35604
35604
|
n.invisible = !1;
|
|
35605
35605
|
var s = o.getVisual("style"), c = s.fill, l = aA(S);
|
|
35606
35606
|
l.fill = c, l.decal = s.decal;
|
|
35607
35607
|
var u = iA(C), d = iA(w), f = iA(T);
|
|
35608
|
-
|
|
35608
|
+
ne(n, c, s.opacity, null), n.setStyle(l), n.ensureState("emphasis").style = u, n.ensureState("blur").style = d, n.ensureState("select").style = f, H_(n);
|
|
35609
35609
|
}
|
|
35610
35610
|
t.add(n);
|
|
35611
35611
|
}
|
|
35612
|
-
function
|
|
35612
|
+
function te(e) {
|
|
35613
35613
|
!e.invisible && a.push(e);
|
|
35614
35614
|
}
|
|
35615
|
-
function
|
|
35615
|
+
function ne(t, n, r, i) {
|
|
35616
35616
|
var a = f.getModel(i ? rA : nA), s = Fh(f.get("name"), null), c = a.getShallow("show");
|
|
35617
35617
|
xy(t, Sy(f, i ? rA : nA), {
|
|
35618
35618
|
defaultText: c ? s : null,
|
|
@@ -35630,12 +35630,12 @@ function IOe(e, t, n, r, i, a, o, s, c, l) {
|
|
|
35630
35630
|
width: e,
|
|
35631
35631
|
height: n
|
|
35632
35632
|
});
|
|
35633
|
-
}, d.truncateMinChar = 2, d.lineOverflow = "truncate",
|
|
35633
|
+
}, d.truncateMinChar = 2, d.lineOverflow = "truncate", L(d, i, u);
|
|
35634
35634
|
var m = l.getState("emphasis");
|
|
35635
|
-
|
|
35635
|
+
L(m ? m.style : null, i, u);
|
|
35636
35636
|
}
|
|
35637
35637
|
}
|
|
35638
|
-
function
|
|
35638
|
+
function L(t, n, r) {
|
|
35639
35639
|
var i = t ? t.text : null;
|
|
35640
35640
|
if (!n && r.isLeafRoot && i != null) {
|
|
35641
35641
|
var a = e.get("drillDownIcon", !0);
|
|
@@ -37882,8 +37882,8 @@ var Lke = function(e) {
|
|
|
37882
37882
|
T.stroke === "auto" && M.setStyle({ stroke: r(A / v) }), l.add(M);
|
|
37883
37883
|
}
|
|
37884
37884
|
if (_.get("show")) {
|
|
37885
|
-
var j = _.get("distance") + D, N = Mj($m(A / v * (m - p) + p), _.get("formatter")), P = r(A / v), F = O * (f - b - j) + u, I = k * (f - b - j) + d, ee = _.get("rotate"),
|
|
37886
|
-
ee === "radial" ? (
|
|
37885
|
+
var j = _.get("distance") + D, N = Mj($m(A / v * (m - p) + p), _.get("formatter")), P = r(A / v), F = O * (f - b - j) + u, I = k * (f - b - j) + d, ee = _.get("rotate"), te = 0;
|
|
37886
|
+
ee === "radial" ? (te = -S + 2 * Math.PI, te > Math.PI / 2 && (te += Math.PI)) : ee === "tangential" ? te = -S - Math.PI / 2 : Cu(ee) && (te = ee * Math.PI / 180), te === 0 ? l.add(new E_({
|
|
37887
37887
|
style: Cy(_, {
|
|
37888
37888
|
text: N,
|
|
37889
37889
|
x: F,
|
|
@@ -37903,15 +37903,15 @@ var Lke = function(e) {
|
|
|
37903
37903
|
silent: !0,
|
|
37904
37904
|
originX: F,
|
|
37905
37905
|
originY: I,
|
|
37906
|
-
rotation:
|
|
37906
|
+
rotation: te
|
|
37907
37907
|
}));
|
|
37908
37908
|
}
|
|
37909
37909
|
if (g.get("show") && A !== v) {
|
|
37910
37910
|
var j = g.get("distance");
|
|
37911
37911
|
j = j ? j + c : c;
|
|
37912
|
-
for (var
|
|
37912
|
+
for (var ne = 0; ne <= y; ne++) {
|
|
37913
37913
|
O = Math.cos(S), k = Math.sin(S);
|
|
37914
|
-
var
|
|
37914
|
+
var L = new wv({
|
|
37915
37915
|
shape: {
|
|
37916
37916
|
x1: O * (f - j) + u,
|
|
37917
37917
|
y1: k * (f - j) + d,
|
|
@@ -37921,7 +37921,7 @@ var Lke = function(e) {
|
|
|
37921
37921
|
silent: !0,
|
|
37922
37922
|
style: E
|
|
37923
37923
|
});
|
|
37924
|
-
E.stroke === "auto" &&
|
|
37924
|
+
E.stroke === "auto" && L.setStyle({ stroke: r((A + ne / y) / v) }), l.add(L), S += w;
|
|
37925
37925
|
}
|
|
37926
37926
|
S -= w;
|
|
37927
37927
|
} else S += C;
|
|
@@ -55345,9 +55345,9 @@ function nBe(e) {
|
|
|
55345
55345
|
};
|
|
55346
55346
|
}
|
|
55347
55347
|
function rBe(e, { categories: t, series: n, orientation: r = "vertical", stacked: i = !1, highlightOverachievement: a = !1, showTargetProgress: s = !1, showLegend: c = !0, showGrid: l = !0, showLabels: u = !1, hideOverflowingLabels: d = !0, labelFitPadding: f, hideAllLabelsOnOverflow: p = !0, windowCategories: m = !1, showAllCategories: h = !1, valueFormatter: g, tooltipValueFormatter: _, categoryFormatter: v, labelFontSize: y, valueAxisSplitNumber: b = 2, referenceLines: x, echartsOptions: S, ariaLabel: C }, w, T = null) {
|
|
55348
|
-
let E = Gl(e), D = o(), { width: O, height: k } = Kl(e), A =
|
|
55348
|
+
let E = Gl(e), D = o(), { width: O, height: k } = Kl(e), A = ne(), j = Dze();
|
|
55349
55349
|
return W(() => {
|
|
55350
|
-
let e = r === "vertical", o = T ? n.filter((e) => T[e.name] !== !1) : n, j = y ?? Oze, M = S?.grid?.right, N = Ize(M, O), P = nBe(w), F = P.showLegend && c, { showCategoryAxis: I } = P, ee = !e && u,
|
|
55350
|
+
let e = r === "vertical", o = T ? n.filter((e) => T[e.name] !== !1) : n, j = y ?? Oze, M = S?.grid?.right, N = Ize(M, O), P = nBe(w), F = P.showLegend && c, { showCategoryAxis: I } = P, ee = !e && u, te = P.showValueAxis && !ee, ne = ee ? Qze(o, i, t.length) : void 0, L = !e && I ? zze(t, E, O, v) : void 0, re = Kze(n, e, i), R;
|
|
55351
55351
|
if (d && u) {
|
|
55352
55352
|
let r = `700 ${j}px ${E.textStyle.fontFamily}`, a = t.map((e, t) => {
|
|
55353
55353
|
let i = 0;
|
|
@@ -55416,14 +55416,14 @@ function rBe(e, { categories: t, series: n, orientation: r = "vertical", stacked
|
|
|
55416
55416
|
showGrid: l,
|
|
55417
55417
|
showLegend: F,
|
|
55418
55418
|
showCategoryAxis: I,
|
|
55419
|
-
showValueAxis:
|
|
55419
|
+
showValueAxis: te,
|
|
55420
55420
|
...le === void 0 ? {} : { categoryVisibleCount: le },
|
|
55421
55421
|
valueFormatter: g,
|
|
55422
55422
|
categoryFormatter: v,
|
|
55423
55423
|
tooltipValueFormatter: _,
|
|
55424
55424
|
valueAxisSplitNumber: b,
|
|
55425
|
-
...
|
|
55426
|
-
...
|
|
55425
|
+
...ne === void 0 ? {} : { valueAxisMax: ne },
|
|
55426
|
+
...L === void 0 ? {} : { categoryMaxLabelWidth: L },
|
|
55427
55427
|
echartsOptions: S,
|
|
55428
55428
|
containerWidth: O,
|
|
55429
55429
|
containerHeight: k
|
|
@@ -55481,9 +55481,9 @@ function rBe(e, { categories: t, series: n, orientation: r = "vertical", stacked
|
|
|
55481
55481
|
let e = S?.grid?.top, t = ue.grid;
|
|
55482
55482
|
e === void 0 && t && typeof t.top == "number" && (t.top += Nze(j));
|
|
55483
55483
|
}
|
|
55484
|
-
if (
|
|
55484
|
+
if (L !== void 0) {
|
|
55485
55485
|
let e = S?.grid?.left, t = ue.grid;
|
|
55486
|
-
e === void 0 && t && typeof t.left == "number" && (t.left += Math.ceil(
|
|
55486
|
+
e === void 0 && t && typeof t.left == "number" && (t.left += Math.ceil(L * Rze));
|
|
55487
55487
|
}
|
|
55488
55488
|
return le !== void 0 && (ue.dataZoom = [{
|
|
55489
55489
|
type: "inside",
|
|
@@ -57138,7 +57138,7 @@ function oVe({ checked: e }) {
|
|
|
57138
57138
|
});
|
|
57139
57139
|
}
|
|
57140
57140
|
function sVe({ item: e, selected: t, disabled: n, multiple: r, onSelect: i, isToggle: a, grouped: s, compact: c }) {
|
|
57141
|
-
let { forms: l } = o(), d =
|
|
57141
|
+
let { forms: l } = o(), d = ne(), f = n || e.disabled, p = () => {
|
|
57142
57142
|
f || i();
|
|
57143
57143
|
}, m = a ? "switch" : r ? "checkbox" : "radio", h = () => q(a ? oVe : r ? aVe : iVe, { checked: t }), g = !!e.selectedContent, _ = e.moreInfoLink;
|
|
57144
57144
|
return /* @__PURE__ */ J("div", {
|
|
@@ -57547,11 +57547,11 @@ function hVe(e) {
|
|
|
57547
57547
|
w,
|
|
57548
57548
|
h,
|
|
57549
57549
|
f
|
|
57550
|
-
]), I = W(() => M === -1 || !r ? null : r.type === "pages" ? (r.currentPage - 1) * r.perPage + M : M, [M, r]), ee = W(() => r ? r.type === "pages" ? r.currentPage < r.pagesCount : r.type === "infinite-scroll" && r.hasMore : !1, [r]),
|
|
57550
|
+
]), I = W(() => M === -1 || !r ? null : r.type === "pages" ? (r.currentPage - 1) * r.perPage + M : M, [M, r]), ee = W(() => r ? r.type === "pages" ? r.currentPage < r.pagesCount : r.type === "infinite-scroll" && r.hasMore : !1, [r]), te = W(() => r ? r.type === "pages" && r.currentPage > 1 : !1, [r]), ne = W(() => M === -1 ? !1 : M < w.length - 1 || ee, [
|
|
57551
57551
|
M,
|
|
57552
57552
|
w.length,
|
|
57553
57553
|
ee
|
|
57554
|
-
]),
|
|
57554
|
+
]), L = W(() => M === -1 ? !1 : M > 0 || te, [M, te]), re = H(() => {
|
|
57555
57555
|
if (!(g.current !== null || o) && M !== -1) {
|
|
57556
57556
|
if (M < w.length - 1) {
|
|
57557
57557
|
let e = w[M + 1];
|
|
@@ -57591,7 +57591,7 @@ function hVe(e) {
|
|
|
57591
57591
|
if (M > 0) {
|
|
57592
57592
|
let e = w[M - 1];
|
|
57593
57593
|
C(f(e, M - 1));
|
|
57594
|
-
} else if (
|
|
57594
|
+
} else if (te && r && r.type === "pages") {
|
|
57595
57595
|
g.current = {
|
|
57596
57596
|
type: "last",
|
|
57597
57597
|
targetPage: r.currentPage - 1
|
|
@@ -57607,7 +57607,7 @@ function hVe(e) {
|
|
|
57607
57607
|
M,
|
|
57608
57608
|
o,
|
|
57609
57609
|
w,
|
|
57610
|
-
|
|
57610
|
+
te,
|
|
57611
57611
|
r,
|
|
57612
57612
|
i,
|
|
57613
57613
|
f,
|
|
@@ -57677,8 +57677,8 @@ function hVe(e) {
|
|
|
57677
57677
|
activeItemUrl: ae,
|
|
57678
57678
|
goToNext: re,
|
|
57679
57679
|
goToPrevious: R,
|
|
57680
|
-
hasNext:
|
|
57681
|
-
hasPrevious:
|
|
57680
|
+
hasNext: ne,
|
|
57681
|
+
hasPrevious: L,
|
|
57682
57682
|
setActiveItemId: C,
|
|
57683
57683
|
isNavigating: ie,
|
|
57684
57684
|
nextItemUrl: z,
|
|
@@ -57806,9 +57806,9 @@ function NV({ onSelect: e, defaultValue: t, presets: n = [], granularities: r =
|
|
|
57806
57806
|
value: y?.value,
|
|
57807
57807
|
granularity: e
|
|
57808
57808
|
});
|
|
57809
|
-
}, ee = W(() => n.length > 0 && !P, [n, P]),
|
|
57809
|
+
}, ee = W(() => n.length > 0 && !P, [n, P]), te = () => {
|
|
57810
57810
|
F(!1);
|
|
57811
|
-
},
|
|
57811
|
+
}, ne = W(() => O.calendarView || "day", [O]), [L, re] = K(s || void 0), R = W(() => {
|
|
57812
57812
|
let e = (a ?? {})[E] || [];
|
|
57813
57813
|
if (!y?.value) return [];
|
|
57814
57814
|
let t = y.value, n = e.map((e, n) => {
|
|
@@ -57839,9 +57839,9 @@ function NV({ onSelect: e, defaultValue: t, presets: n = [], granularities: r =
|
|
|
57839
57839
|
re(e);
|
|
57840
57840
|
};
|
|
57841
57841
|
return U(() => {
|
|
57842
|
-
c?.(
|
|
57842
|
+
c?.(L ? R[+L]?.dateValue : void 0);
|
|
57843
57843
|
}, [
|
|
57844
|
-
|
|
57844
|
+
L,
|
|
57845
57845
|
c,
|
|
57846
57846
|
R
|
|
57847
57847
|
]), /* @__PURE__ */ J(Ri, {
|
|
@@ -57868,7 +57868,7 @@ function NV({ onSelect: e, defaultValue: t, presets: n = [], granularities: r =
|
|
|
57868
57868
|
size: "sm",
|
|
57869
57869
|
hideLabel: !0,
|
|
57870
57870
|
label: "Back",
|
|
57871
|
-
onClick:
|
|
57871
|
+
onClick: te
|
|
57872
57872
|
}) : null, k.length > 1 ? /* @__PURE__ */ q(yVe, {
|
|
57873
57873
|
granularities: k,
|
|
57874
57874
|
value: E,
|
|
@@ -57879,7 +57879,7 @@ function NV({ onSelect: e, defaultValue: t, presets: n = [], granularities: r =
|
|
|
57879
57879
|
children: [/* @__PURE__ */ q(Qte, {
|
|
57880
57880
|
showInput: !l,
|
|
57881
57881
|
mode: A,
|
|
57882
|
-
view:
|
|
57882
|
+
view: ne,
|
|
57883
57883
|
onSelect: j,
|
|
57884
57884
|
defaultSelected: y?.value,
|
|
57885
57885
|
minDate: h.minDate,
|
|
@@ -57902,7 +57902,7 @@ function NV({ onSelect: e, defaultValue: t, presets: n = [], granularities: r =
|
|
|
57902
57902
|
description: e.description ?? ""
|
|
57903
57903
|
})),
|
|
57904
57904
|
onChange: ie,
|
|
57905
|
-
value:
|
|
57905
|
+
value: L
|
|
57906
57906
|
})]
|
|
57907
57907
|
}) : null]
|
|
57908
57908
|
})]
|
|
@@ -58655,13 +58655,13 @@ var NVe = () => F("(max-width: 560px)", { initializeWithValue: !1 }), PVe = xr({
|
|
|
58655
58655
|
if (m || e.target instanceof HTMLInputElement) return;
|
|
58656
58656
|
let t = S[0];
|
|
58657
58657
|
t && b.current.get(t)?.focus();
|
|
58658
|
-
}, [m, S]),
|
|
58658
|
+
}, [m, S]), te = H((e) => (t) => {
|
|
58659
58659
|
t ? b.current.set(e, t) : b.current.delete(e);
|
|
58660
|
-
}, []),
|
|
58660
|
+
}, []), ne = (i && i.trim().length > 0 ? i : void 0) || r || void 0;
|
|
58661
58661
|
U(() => {
|
|
58662
|
-
process.env.NODE_ENV !== "production" && !
|
|
58663
|
-
}, [
|
|
58664
|
-
let
|
|
58662
|
+
process.env.NODE_ENV !== "production" && !ne && !x.current && (x.current = !0, console.warn("F0DurationInput: provide a non-empty label or ariaLabel for accessibility."));
|
|
58663
|
+
}, [ne]);
|
|
58664
|
+
let L = p?.type ?? "default", re = !a && r.length > 0;
|
|
58665
58665
|
return /* @__PURE__ */ J("div", {
|
|
58666
58666
|
ref: v,
|
|
58667
58667
|
className: u("flex flex-col gap-2", "pointer-events-none", m && "cursor-not-allowed"),
|
|
@@ -58678,17 +58678,17 @@ var NVe = () => F("(max-width: 560px)", { initializeWithValue: !1 }), PVe = xr({
|
|
|
58678
58678
|
"data-testid": "input-field-wrapper",
|
|
58679
58679
|
className: u("pointer-events-auto", zVe({
|
|
58680
58680
|
size: _,
|
|
58681
|
-
status:
|
|
58681
|
+
status: L,
|
|
58682
58682
|
disabled: m,
|
|
58683
58683
|
readonly: g
|
|
58684
58684
|
})),
|
|
58685
58685
|
onClick: ee,
|
|
58686
58686
|
role: "group",
|
|
58687
|
-
"aria-label":
|
|
58687
|
+
"aria-label": ne,
|
|
58688
58688
|
"aria-describedby": t,
|
|
58689
58689
|
"aria-invalid": n,
|
|
58690
58690
|
"aria-disabled": m || void 0,
|
|
58691
|
-
"data-status":
|
|
58691
|
+
"data-status": L,
|
|
58692
58692
|
"data-disabled": m ? "" : void 0,
|
|
58693
58693
|
children: S.map((e, r) => {
|
|
58694
58694
|
let i = f?.[e]?.max, a = k[e], o = f?.[e]?.suffix ?? IVe[e], s = a > 0 ? String(a) : "", c = A && r === 0, l = c ? `-${s}` : s, d = f?.[e]?.maxVisibleDigits, p = (typeof d == "number" && Number.isFinite(d) ? Math.max(1, Math.floor(d)) : RVe) + +!!c;
|
|
@@ -58700,7 +58700,7 @@ var NVe = () => F("(max-width: 560px)", { initializeWithValue: !1 }), PVe = xr({
|
|
|
58700
58700
|
"aria-hidden": "true"
|
|
58701
58701
|
}) : null,
|
|
58702
58702
|
/* @__PURE__ */ q("input", {
|
|
58703
|
-
ref:
|
|
58703
|
+
ref: te(e),
|
|
58704
58704
|
id: `${y}-${e}`,
|
|
58705
58705
|
className: u("border-none bg-transparent p-0 text-inherit outline-none", "font-inherit text-[length:inherit] leading-[inherit]", "placeholder:text-f1-foreground-secondary", m && "pointer-events-none"),
|
|
58706
58706
|
style: { width: `${Math.min(Math.max(l.length, 1), p)}ch` },
|
|
@@ -61702,15 +61702,15 @@ function ZUe(e = {}) {
|
|
|
61702
61702
|
}, ee = (e) => {
|
|
61703
61703
|
let t = { ...o.mount ? a : i };
|
|
61704
61704
|
return DU(e) ? t : WU(e) ? OU(t, e) : e.map((e) => OU(t, e));
|
|
61705
|
-
},
|
|
61705
|
+
}, te = (e, t) => ({
|
|
61706
61706
|
invalid: !!OU((t || n).errors, e),
|
|
61707
61707
|
isDirty: !!OU((t || n).dirtyFields, e),
|
|
61708
61708
|
error: OU((t || n).errors, e),
|
|
61709
61709
|
isValidating: !!OU(n.validatingFields, e),
|
|
61710
61710
|
isTouched: !!OU((t || n).touchedFields, e)
|
|
61711
|
-
}),
|
|
61711
|
+
}), ne = (e) => {
|
|
61712
61712
|
e && VU(e).forEach((e) => dW(n.errors, e)), d.state.next({ errors: e ? n.errors : {} });
|
|
61713
|
-
},
|
|
61713
|
+
}, L = (e, t, i) => {
|
|
61714
61714
|
let a = (OU(r, e, { _f: {} })._f || {}).ref, { ref: o, message: s, type: c, ...l } = OU(n.errors, e) || {};
|
|
61715
61715
|
MU(n.errors, e, {
|
|
61716
61716
|
...l,
|
|
@@ -61858,9 +61858,9 @@ function ZUe(e = {}) {
|
|
|
61858
61858
|
control: {
|
|
61859
61859
|
register: z,
|
|
61860
61860
|
unregister: R,
|
|
61861
|
-
getFieldState:
|
|
61861
|
+
getFieldState: te,
|
|
61862
61862
|
handleSubmit: oe,
|
|
61863
|
-
setError:
|
|
61863
|
+
setError: L,
|
|
61864
61864
|
_executeSchema: w,
|
|
61865
61865
|
_getWatch: k,
|
|
61866
61866
|
_getDirty: O,
|
|
@@ -61928,9 +61928,9 @@ function ZUe(e = {}) {
|
|
|
61928
61928
|
getValues: ee,
|
|
61929
61929
|
reset: le,
|
|
61930
61930
|
resetField: se,
|
|
61931
|
-
clearErrors:
|
|
61931
|
+
clearErrors: ne,
|
|
61932
61932
|
unregister: R,
|
|
61933
|
-
setError:
|
|
61933
|
+
setError: L,
|
|
61934
61934
|
setFocus: (e, t = {}) => {
|
|
61935
61935
|
let n = OU(r, e), i = n && n._f;
|
|
61936
61936
|
if (i) {
|
|
@@ -61938,7 +61938,7 @@ function ZUe(e = {}) {
|
|
|
61938
61938
|
e.focus && (e.focus(), t.shouldSelect && QU(e.select) && e.select());
|
|
61939
61939
|
}
|
|
61940
61940
|
},
|
|
61941
|
-
getFieldState:
|
|
61941
|
+
getFieldState: te
|
|
61942
61942
|
};
|
|
61943
61943
|
}
|
|
61944
61944
|
function EW(e = {}) {
|
|
@@ -63911,7 +63911,7 @@ function jG({ item: e, counter: t, isActive: n, collapsible: r = !1, isExpanded:
|
|
|
63911
63911
|
//#endregion
|
|
63912
63912
|
//#region src/blocks/F0TableOfContent/ItemSectionHeader/CollapsibleItemSectionHeader.tsx
|
|
63913
63913
|
function ZWe({ item: e, children: t, isActive: n, isExpanded: r, onToggleExpanded: i, sortable: a, hideChildrenCounter: o, canDropInside: s = !1, onDragOver: c, onDragLeave: l, onDrop: u, currentParentId: d, draggedItemId: f }) {
|
|
63914
|
-
let p =
|
|
63914
|
+
let p = ne();
|
|
63915
63915
|
return /* @__PURE__ */ J(Aee, {
|
|
63916
63916
|
open: r,
|
|
63917
63917
|
onOpenChange: (t) => {
|
|
@@ -64365,7 +64365,7 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64365
64365
|
}, [M]), ee = H((e, t) => {
|
|
64366
64366
|
let n = BG(N, e, t);
|
|
64367
64367
|
P(n), g && g(zG(n));
|
|
64368
|
-
}, [N, g]),
|
|
64368
|
+
}, [N, g]), te = H((e) => (t) => {
|
|
64369
64369
|
let n = IG(N, e);
|
|
64370
64370
|
if (n) {
|
|
64371
64371
|
let r = {
|
|
@@ -64378,7 +64378,7 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64378
64378
|
N,
|
|
64379
64379
|
ee,
|
|
64380
64380
|
g
|
|
64381
|
-
]),
|
|
64381
|
+
]), ne = H((e, t, n) => {
|
|
64382
64382
|
if (RG(N, e, t)) return;
|
|
64383
64383
|
let r = IG(N, e);
|
|
64384
64384
|
if (!r) return;
|
|
@@ -64387,13 +64387,13 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64387
64387
|
let n = new Set(e);
|
|
64388
64388
|
return n.add(t), n;
|
|
64389
64389
|
}), g && g(zG(a));
|
|
64390
|
-
}, [N, g]),
|
|
64390
|
+
}, [N, g]), L = W(() => k(N, C), [
|
|
64391
64391
|
k,
|
|
64392
64392
|
N,
|
|
64393
64393
|
C
|
|
64394
64394
|
]), [re, R] = K(null), [ie, ae] = K(null), [B, oe] = K(null), [se, ce] = K(null), le = G(null), ue = G(!1), de = G(null), fe = G(null), pe = G(null), me = G(null), he = G(null), ge = G(0), _e = G(0), ve = G(!1), ye = G(null), be = H((e, t) => {
|
|
64395
64395
|
pe.current &&= (clearTimeout(pe.current), null);
|
|
64396
|
-
let n = (a ?
|
|
64396
|
+
let n = (a ? L : A).findIndex((t) => t.id === e), r = he.current !== null && n < he.current;
|
|
64397
64397
|
he.current = n, `${e}-${t}` !== (ie && B ? `${ie}-${B}` : null) && (me.current = {
|
|
64398
64398
|
itemId: e,
|
|
64399
64399
|
position: t
|
|
@@ -64403,7 +64403,7 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64403
64403
|
ae(e.itemId), oe(e.position), de.current = e.itemId, fe.current = e.position;
|
|
64404
64404
|
let t = Date.now();
|
|
64405
64405
|
ge.current = t, _e.current = t;
|
|
64406
|
-
let n = (a ?
|
|
64406
|
+
let n = (a ? L : A)[0];
|
|
64407
64407
|
e.itemId === n?.id && e.position === "before" && (ve.current = !0);
|
|
64408
64408
|
}
|
|
64409
64409
|
pe.current = null;
|
|
@@ -64412,7 +64412,7 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64412
64412
|
ie,
|
|
64413
64413
|
B,
|
|
64414
64414
|
a,
|
|
64415
|
-
|
|
64415
|
+
L,
|
|
64416
64416
|
A
|
|
64417
64417
|
]);
|
|
64418
64418
|
U(() => () => {
|
|
@@ -64432,7 +64432,7 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64432
64432
|
else if (t < (ve.current ? 800 : 500)) pe.current = null;
|
|
64433
64433
|
else {
|
|
64434
64434
|
if (ve.current) {
|
|
64435
|
-
let e = (a ?
|
|
64435
|
+
let e = (a ? L : A)[0];
|
|
64436
64436
|
if (ie === e?.id && B === "before") {
|
|
64437
64437
|
if (n < 2e3) {
|
|
64438
64438
|
pe.current = null;
|
|
@@ -64448,7 +64448,7 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64448
64448
|
ie,
|
|
64449
64449
|
B,
|
|
64450
64450
|
a,
|
|
64451
|
-
|
|
64451
|
+
L,
|
|
64452
64452
|
A
|
|
64453
64453
|
]), Se = H((e, t) => {
|
|
64454
64454
|
ue.current = !0;
|
|
@@ -64480,14 +64480,14 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64480
64480
|
let e = IG(N, s);
|
|
64481
64481
|
e && (c = e.item.children?.findIndex((e) => e.id === n) ?? -1);
|
|
64482
64482
|
}
|
|
64483
|
-
(a !== s || a === s && c !== o) && (ce(n),
|
|
64483
|
+
(a !== s || a === s && c !== o) && (ce(n), ne(n, a, o), setTimeout(() => {
|
|
64484
64484
|
ce(null);
|
|
64485
64485
|
}, 300));
|
|
64486
64486
|
}
|
|
64487
64487
|
ve.current = !1, le.current = null, ue.current = !0, he.current = null, ge.current = 0, _e.current = 0, ye.current &&= (clearTimeout(ye.current), null), R(null), setTimeout(() => {
|
|
64488
64488
|
ue.current = !1;
|
|
64489
64489
|
}, 600);
|
|
64490
|
-
}, [N,
|
|
64490
|
+
}, [N, ne]), Ce = H(() => {
|
|
64491
64491
|
pe.current &&= (clearTimeout(pe.current), null), ye.current &&= (clearTimeout(ye.current), null);
|
|
64492
64492
|
}, []), we = H((e) => {
|
|
64493
64493
|
Ce(), le.current = e, ue.current = !1, me.current = null, R(e);
|
|
@@ -64516,7 +64516,7 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64516
64516
|
Te,
|
|
64517
64517
|
Ee
|
|
64518
64518
|
]));
|
|
64519
|
-
let De = a ?
|
|
64519
|
+
let De = a ? L : A, { items: Oe, hidden: ke } = D ? iGe(De, d) : {
|
|
64520
64520
|
items: De,
|
|
64521
64521
|
hidden: 0
|
|
64522
64522
|
}, Ae = c && D ? FG(Oe) : [], je = new Set(Ae.map((e) => e.id)), Me = `${x}-list`, Ne = (e) => `${x}-option-${e}`, Pe = (e) => je.has(e) ? Ne(e) : void 0, Fe = Ae.length === 0 || T === UG ? UG : Math.min(T, Ae.length - 1), Ie = Fe === UG ? void 0 : Ae[Fe], Le = (e) => sGe(e, {
|
|
@@ -64586,7 +64586,7 @@ function dGe({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
64586
64586
|
draggedItemId: re,
|
|
64587
64587
|
dragOverItemId: ie,
|
|
64588
64588
|
dragOverPosition: B,
|
|
64589
|
-
onChildrenReorder: a ?
|
|
64589
|
+
onChildrenReorder: a ? te : void 0,
|
|
64590
64590
|
currentParentId: null,
|
|
64591
64591
|
onDragOver: be,
|
|
64592
64592
|
onDragLeave: xe,
|
|
@@ -69144,7 +69144,7 @@ var Zqe = ({ header: e, description: t, onClick: n, collapsible: r, selectable:
|
|
|
69144
69144
|
}
|
|
69145
69145
|
}), r;
|
|
69146
69146
|
}, wJe = (e, { headerGroups: t, onCollapsedChange: n, preservedColumnIds: r = yJe } = {}) => {
|
|
69147
|
-
let i = W(() => bJe(t), [t]), [a, o] = K(() => new Set(Object.entries(i ?? {}).filter(([, e]) => e.defaultCollapsed).map(([e]) => e))), [s, c] = K(/* @__PURE__ */ new Set()), l =
|
|
69147
|
+
let i = W(() => bJe(t), [t]), [a, o] = K(() => new Set(Object.entries(i ?? {}).filter(([, e]) => e.defaultCollapsed).map(([e]) => e))), [s, c] = K(/* @__PURE__ */ new Set()), l = ne(), u = H((e) => {
|
|
69148
69148
|
c((t) => {
|
|
69149
69149
|
if (!t.has(e)) return t;
|
|
69150
69150
|
let n = new Set(t);
|
|
@@ -69222,19 +69222,19 @@ var Zqe = ({ header: e, description: t, onClick: n, collapsible: r, selectable:
|
|
|
69222
69222
|
striped: "bg-[repeating-linear-gradient(45deg,transparent_0px,transparent_8px,hsl(var(--neutral-20))_8px,hsl(var(--neutral-20))_9px)] [background-size:100%_100px]",
|
|
69223
69223
|
striked: "[&_*:not([data-no-strike]):not([data-no-strike]_*)]:line-through text-f1-foreground-secondary"
|
|
69224
69224
|
}, cJ = Zi(({ source: e, item: t, onItemCheckedChange: n, isSelected: r, columns: i, frozenColumnsLeft: a, checkColumnWidth: s, index: c, groupIndex: l, noBorder: d = !1, loading: f = !1, nestedRowProps: p, tableWithChildren: m, disableHover: h = !1, isNew: g = !1, referenceRowType: _, itemActionsOnHover: v = !1, boldRootRows: y = !1, cellRenderer: b, fromVisualization: x, headerGroups: S, collapsingCellClasses: C, registerSelectable: w, unregisterSelectable: T }, E) => {
|
|
69225
|
-
let D = x === "editableTable" && !v, O = e.itemUrl ? e.itemUrl(t) : void 0, k = e.itemOnClick ? e.itemOnClick(t) : void 0, j = e.selectable ? e.selectable(t) : void 0, M = j !== void 0 && e.selectionInherited?.(t) === !0, N = j !== void 0 && (M || e.selectionDisabled?.(t) === !0), P = !!e.itemsWithChildren?.(t), F = H((e) => n?.(t, e), [n, t]), I = o(), [ee,
|
|
69225
|
+
let D = x === "editableTable" && !v, O = e.itemUrl ? e.itemUrl(t) : void 0, k = e.itemOnClick ? e.itemOnClick(t) : void 0, j = e.selectable ? e.selectable(t) : void 0, M = j !== void 0 && e.selectionInherited?.(t) === !0, N = j !== void 0 && (M || e.selectionDisabled?.(t) === !0), P = !!e.itemsWithChildren?.(t), F = H((e) => n?.(t, e), [n, t]), I = o(), [ee, te] = K(g);
|
|
69226
69226
|
U(() => {
|
|
69227
69227
|
if (!ee) return;
|
|
69228
|
-
let e = setTimeout(() =>
|
|
69228
|
+
let e = setTimeout(() => te(!1), EJe);
|
|
69229
69229
|
return () => clearTimeout(e);
|
|
69230
69230
|
}, [ee]);
|
|
69231
|
-
let
|
|
69231
|
+
let ne = (e, t) => AK({
|
|
69232
69232
|
item: e,
|
|
69233
69233
|
property: t,
|
|
69234
69234
|
visualization: "table",
|
|
69235
69235
|
i18n: I,
|
|
69236
69236
|
tableAlign: t.align ?? "left"
|
|
69237
|
-
}),
|
|
69237
|
+
}), L = `table-row-${l}-${c}`, { getStickyPosition: re } = TJe(a, i, !!e.selectable), { hasItemActions: R, hasMobileItemActions: ie, primaryItemActions: z, dropdownItemActions: ae, mobileDropdownItemActions: B, handleDropDownOpenChange: oe, dropDownOpen: se } = fJe({
|
|
69238
69238
|
source: e,
|
|
69239
69239
|
item: t
|
|
69240
69240
|
}), ce = A(), le = j !== void 0 && !N && ce, ue = G(t);
|
|
@@ -69280,7 +69280,7 @@ var Zqe = ({ header: e, description: t, onClick: n, collapsible: r, selectable:
|
|
|
69280
69280
|
i.map((n, r) => {
|
|
69281
69281
|
let a = S?.find((e) => e.type === "group" && e.columnIndices.includes(r)), o = !!S && (!a || a.columnIndices[a.columnIndices.length - 1] === r), s = /* @__PURE__ */ q("div", {
|
|
69282
69282
|
className: u(n.align === "right" ? "justify-end" : "", "flex", Cne),
|
|
69283
|
-
children:
|
|
69283
|
+
children: ne(t, n)
|
|
69284
69284
|
});
|
|
69285
69285
|
return /* @__PURE__ */ q(rq, {
|
|
69286
69286
|
firstCell: r === 0,
|
|
@@ -69343,7 +69343,7 @@ var Zqe = ({ header: e, description: t, onClick: n, collapsible: r, selectable:
|
|
|
69343
69343
|
})
|
|
69344
69344
|
}, `table-cell-${l}-${c}-actions`) : null] }) : null
|
|
69345
69345
|
]
|
|
69346
|
-
},
|
|
69346
|
+
}, L);
|
|
69347
69347
|
}), OJe = Zi((e, t) => {
|
|
69348
69348
|
let n = G(null), r = e.rowRef?.current;
|
|
69349
69349
|
ra(() => {
|
|
@@ -70014,12 +70014,12 @@ var BJe = (e, t, n, r = !0) => {
|
|
|
70014
70014
|
allowHiding: c,
|
|
70015
70015
|
lockedColumnIds: p,
|
|
70016
70016
|
usesExplicitColumnLocking: N
|
|
70017
|
-
}), { columns: I, headerGroups: ee, toggleHeaderGroup:
|
|
70017
|
+
}), { columns: I, headerGroups: ee, toggleHeaderGroup: te, collapsingCellClasses: ne, collapseTransitions: L, settleHeaderGroup: re } = wJe(P, {
|
|
70018
70018
|
headerGroups: v,
|
|
70019
70019
|
onCollapsedChange: y,
|
|
70020
70020
|
preservedColumnIds: W(() => new Set(F), [F])
|
|
70021
70021
|
}), R = G(null);
|
|
70022
|
-
BJe(R,
|
|
70022
|
+
BJe(R, L, re);
|
|
70023
70023
|
let { data: ie, paginationInfo: z, setPage: ae, isInitialLoading: oe, isLoadingMore: se, loadMore: le, summaries: ue, committedQuery: de } = Jq(t, { onError: (e) => {
|
|
70024
70024
|
s(e);
|
|
70025
70025
|
} }), { currentSortings: fe, setCurrentSortings: pe, isLoading: me } = t, he = C !== !1 && !!t.itemActions, ge = T === "editableTable", _e = ge && !g, ve = ge ? 1 : 2, ye = W(() => C === !1 ? {
|
|
@@ -70109,7 +70109,7 @@ var BJe = (e, t, n, r = !0) => {
|
|
|
70109
70109
|
colSpan: e.colSpan,
|
|
70110
70110
|
className: r,
|
|
70111
70111
|
highlighted: e.columnIndices.some((e) => I[e].highlighted),
|
|
70112
|
-
onClick: e.collapsible ? () =>
|
|
70112
|
+
onClick: e.collapsible ? () => te(e.id) : void 0,
|
|
70113
70113
|
children: e.collapsible ? /* @__PURE__ */ J("button", {
|
|
70114
70114
|
type: "button",
|
|
70115
70115
|
"aria-expanded": !e.collapsed,
|
|
@@ -70175,7 +70175,7 @@ var BJe = (e, t, n, r = !0) => {
|
|
|
70175
70175
|
sticky: $e(i),
|
|
70176
70176
|
...r,
|
|
70177
70177
|
hidden: !1,
|
|
70178
|
-
className: u(ee && "[&>div:first-child]:hidden", o && "border-0 border-r border-solid border-f1-border-secondary", T === "editableTable" && (i !== I.length - 1 || he) && "border-0 border-r-[1px] border-solid border-f1-border-secondary",
|
|
70178
|
+
className: u(ee && "[&>div:first-child]:hidden", o && "border-0 border-r border-solid border-f1-border-secondary", T === "editableTable" && (i !== I.length - 1 || he) && "border-0 border-r-[1px] border-solid border-f1-border-secondary", ne.get(sJ({
|
|
70179
70179
|
id: r.id,
|
|
70180
70180
|
label: n
|
|
70181
70181
|
}))) || void 0,
|
|
@@ -70287,7 +70287,7 @@ var BJe = (e, t, n, r = !0) => {
|
|
|
70287
70287
|
rowWrapper: x,
|
|
70288
70288
|
cellRenderer: S,
|
|
70289
70289
|
headerGroups: ee,
|
|
70290
|
-
collapsingCellClasses:
|
|
70290
|
+
collapsingCellClasses: ne,
|
|
70291
70291
|
fromVisualization: T,
|
|
70292
70292
|
registerSelectable: Oe.register,
|
|
70293
70293
|
unregisterSelectable: Oe.unregister
|
|
@@ -70326,7 +70326,7 @@ var BJe = (e, t, n, r = !0) => {
|
|
|
70326
70326
|
cellRenderer: S,
|
|
70327
70327
|
fromVisualization: T,
|
|
70328
70328
|
headerGroups: ee,
|
|
70329
|
-
collapsingCellClasses:
|
|
70329
|
+
collapsingCellClasses: ne,
|
|
70330
70330
|
registerSelectable: Oe.register,
|
|
70331
70331
|
unregisterSelectable: Oe.unregister
|
|
70332
70332
|
}, n);
|
|
@@ -70363,7 +70363,7 @@ var BJe = (e, t, n, r = !0) => {
|
|
|
70363
70363
|
maxWidth: e.maxWidth,
|
|
70364
70364
|
sticky: $e(n),
|
|
70365
70365
|
highlighted: !!e.highlighted,
|
|
70366
|
-
className: u(ge && (n !== I.length - 1 || he) && "border-0 border-r-[1px] border-solid border-f1-border-secondary",
|
|
70366
|
+
className: u(ge && (n !== I.length - 1 || he) && "border-0 border-r-[1px] border-solid border-f1-border-secondary", ne.get(sJ(e))),
|
|
70367
70367
|
children: n === 0 && !t.selectable && Ue.label ? /* @__PURE__ */ q("div", {
|
|
70368
70368
|
className: "font-medium text-f1-foreground-secondary",
|
|
70369
70369
|
children: Ue.label
|
|
@@ -73593,16 +73593,16 @@ function $$e(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i
|
|
|
73593
73593
|
if (!j || !A) return;
|
|
73594
73594
|
let N = Y$e(i, A, r, c, t);
|
|
73595
73595
|
if (!N) return;
|
|
73596
|
-
let P = kY(e, j), F = !1, I = null, ee = !1,
|
|
73597
|
-
function
|
|
73596
|
+
let P = kY(e, j), F = !1, I = null, ee = !1, te = null;
|
|
73597
|
+
function ne() {
|
|
73598
73598
|
if (!u || !j) return;
|
|
73599
73599
|
let [e, t] = JQe(P, j, S);
|
|
73600
73600
|
f({
|
|
73601
73601
|
x: e,
|
|
73602
73602
|
y: t
|
|
73603
|
-
}), E = requestAnimationFrame(
|
|
73603
|
+
}), E = requestAnimationFrame(ne);
|
|
73604
73604
|
}
|
|
73605
|
-
let
|
|
73605
|
+
let L = {
|
|
73606
73606
|
...N,
|
|
73607
73607
|
nodeId: i,
|
|
73608
73608
|
type: A,
|
|
@@ -73610,13 +73610,13 @@ function $$e(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i
|
|
|
73610
73610
|
}, re = c.get(i), R = {
|
|
73611
73611
|
inProgress: !0,
|
|
73612
73612
|
isValid: null,
|
|
73613
|
-
from: PY(re,
|
|
73614
|
-
fromHandle:
|
|
73615
|
-
fromPosition:
|
|
73613
|
+
from: PY(re, L, aY.Left, !0),
|
|
73614
|
+
fromHandle: L,
|
|
73615
|
+
fromPosition: L.position,
|
|
73616
73616
|
fromNode: re,
|
|
73617
73617
|
to: P,
|
|
73618
73618
|
toHandle: null,
|
|
73619
|
-
toPosition: IQe[
|
|
73619
|
+
toPosition: IQe[L.position],
|
|
73620
73620
|
toNode: null,
|
|
73621
73621
|
pointer: P
|
|
73622
73622
|
};
|
|
@@ -73634,12 +73634,12 @@ function $$e(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i
|
|
|
73634
73634
|
if (!(r * r + i * i > C * C)) return;
|
|
73635
73635
|
ie();
|
|
73636
73636
|
}
|
|
73637
|
-
if (!x() || !
|
|
73637
|
+
if (!x() || !L) {
|
|
73638
73638
|
ae(e);
|
|
73639
73639
|
return;
|
|
73640
73640
|
}
|
|
73641
73641
|
let a = b();
|
|
73642
|
-
P = kY(e, j), D = J$e(bY(P, a, !1, [1, 1]), n, c,
|
|
73642
|
+
P = kY(e, j), D = J$e(bY(P, a, !1, [1, 1]), n, c, L), F ||= (ne(), !0);
|
|
73643
73643
|
let s = e1e(e, {
|
|
73644
73644
|
handle: D,
|
|
73645
73645
|
connectionMode: t,
|
|
@@ -73652,8 +73652,8 @@ function $$e(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i
|
|
|
73652
73652
|
flowId: d,
|
|
73653
73653
|
nodeLookup: c
|
|
73654
73654
|
});
|
|
73655
|
-
|
|
73656
|
-
let u = c.get(i), f = u ? PY(u,
|
|
73655
|
+
te = s.handleDomNode, I = s.connection, ee = Z$e(!!D, s.isValid);
|
|
73656
|
+
let u = c.get(i), f = u ? PY(u, L, aY.Left, !0) : R.from, p = {
|
|
73657
73657
|
...R,
|
|
73658
73658
|
from: f,
|
|
73659
73659
|
isValid: ee,
|
|
@@ -73662,7 +73662,7 @@ function $$e(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i
|
|
|
73662
73662
|
y: s.toHandle.y
|
|
73663
73663
|
}, a) : P,
|
|
73664
73664
|
toHandle: s.toHandle,
|
|
73665
|
-
toPosition: ee && s.toHandle ? s.toHandle.position : IQe[
|
|
73665
|
+
toPosition: ee && s.toHandle ? s.toHandle.position : IQe[L.position],
|
|
73666
73666
|
toNode: s.toHandle ? c.get(s.toHandle.nodeId) : null,
|
|
73667
73667
|
pointer: P
|
|
73668
73668
|
};
|
|
@@ -73671,14 +73671,14 @@ function $$e(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i
|
|
|
73671
73671
|
function ae(e) {
|
|
73672
73672
|
if (!("touches" in e && e.touches.length > 0)) {
|
|
73673
73673
|
if (M) {
|
|
73674
|
-
(D ||
|
|
73674
|
+
(D || te) && I && ee && h?.(I);
|
|
73675
73675
|
let { inProgress: t, ...n } = R, r = {
|
|
73676
73676
|
...n,
|
|
73677
73677
|
toPosition: R.toHandle ? R.toPosition : null
|
|
73678
73678
|
};
|
|
73679
73679
|
g?.(e, r), a && v?.(e, r);
|
|
73680
73680
|
}
|
|
73681
|
-
p(), cancelAnimationFrame(E), F = !1, ee = !1, I = null,
|
|
73681
|
+
p(), cancelAnimationFrame(E), F = !1, ee = !1, I = null, te = null, T.removeEventListener("mousemove", z), T.removeEventListener("mouseup", ae), T.removeEventListener("touchmove", z), T.removeEventListener("touchend", ae);
|
|
73682
73682
|
}
|
|
73683
73683
|
}
|
|
73684
73684
|
T.addEventListener("mousemove", z), T.addEventListener("mouseup", ae), T.addEventListener("touchmove", z), T.addEventListener("touchend", ae);
|
|
@@ -75335,7 +75335,7 @@ var W0e = typeof window < "u" ? window : void 0, G0e = (e) => ({
|
|
|
75335
75335
|
userSelectionActive: e.userSelectionActive
|
|
75336
75336
|
});
|
|
75337
75337
|
function K0e({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: a, onPaneScroll: o, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: d, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: m, panActivationKeyCode: h, zoomActivationKeyCode: g, elementsSelectable: _, zoomOnScroll: v, zoomOnPinch: y, panOnScroll: b, panOnScrollSpeed: x, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: w, defaultViewport: T, translateExtent: E, minZoom: D, maxZoom: O, preventScrolling: k, onSelectionContextMenu: A, noWheelClassName: j, noPanClassName: M, disableKeyboardA11y: N, onViewportChange: P, isControlledViewport: F }) {
|
|
75338
|
-
let { nodesSelectionActive: I, userSelectionActive: ee } = eX(G0e, QY),
|
|
75338
|
+
let { nodesSelectionActive: I, userSelectionActive: ee } = eX(G0e, QY), te = aX(l, { target: W0e }), ne = aX(h, { target: W0e }), L = ne || w, re = ne || b, R = u && L !== !0, ie = te || ee || R;
|
|
75339
75339
|
return x0e({
|
|
75340
75340
|
deleteKeyCode: c,
|
|
75341
75341
|
multiSelectionKeyCode: m
|
|
@@ -75348,7 +75348,7 @@ function K0e({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove
|
|
|
75348
75348
|
panOnScrollSpeed: x,
|
|
75349
75349
|
panOnScrollMode: S,
|
|
75350
75350
|
zoomOnDoubleClick: C,
|
|
75351
|
-
panOnDrag: !
|
|
75351
|
+
panOnDrag: !te && L,
|
|
75352
75352
|
defaultViewport: T,
|
|
75353
75353
|
translateExtent: E,
|
|
75354
75354
|
minZoom: D,
|
|
@@ -75370,10 +75370,10 @@ function K0e({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove
|
|
|
75370
75370
|
onPaneMouseLeave: i,
|
|
75371
75371
|
onPaneContextMenu: a,
|
|
75372
75372
|
onPaneScroll: o,
|
|
75373
|
-
panOnDrag:
|
|
75373
|
+
panOnDrag: L,
|
|
75374
75374
|
isSelecting: !!ie,
|
|
75375
75375
|
selectionMode: d,
|
|
75376
|
-
selectionKeyPressed:
|
|
75376
|
+
selectionKeyPressed: te,
|
|
75377
75377
|
paneClickDistance: s,
|
|
75378
75378
|
selectionOnDrag: R,
|
|
75379
75379
|
children: [e, I && q(U0e, {
|
|
@@ -75458,7 +75458,7 @@ function $0e({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
|
|
|
75458
75458
|
nodeClickDistance: _
|
|
75459
75459
|
}), M = j0e();
|
|
75460
75460
|
if (y.hidden) return null;
|
|
75461
|
-
let N = EY(y), P = V0e(y), F = T || w || t || n || r || i, I = n ? (e) => n(e, { ...b.userNode }) : void 0, ee = r ? (e) => r(e, { ...b.userNode }) : void 0,
|
|
75461
|
+
let N = EY(y), P = V0e(y), F = T || w || t || n || r || i, I = n ? (e) => n(e, { ...b.userNode }) : void 0, ee = r ? (e) => r(e, { ...b.userNode }) : void 0, te = i ? (e) => i(e, { ...b.userNode }) : void 0, ne = a ? (e) => a(e, { ...b.userNode }) : void 0, L = o ? (e) => o(e, { ...b.userNode }) : void 0, re = (n) => {
|
|
75462
75462
|
let { selectNodesOnDrag: r, nodeDragThreshold: i } = O.getState();
|
|
75463
75463
|
T && (!r || !w || i > 0) && dX({
|
|
75464
75464
|
id: e,
|
|
@@ -75525,10 +75525,10 @@ function $0e({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
|
|
|
75525
75525
|
"data-testid": `rf__node-${e}`,
|
|
75526
75526
|
onMouseEnter: I,
|
|
75527
75527
|
onMouseMove: ee,
|
|
75528
|
-
onMouseLeave:
|
|
75529
|
-
onContextMenu:
|
|
75528
|
+
onMouseLeave: te,
|
|
75529
|
+
onContextMenu: ne,
|
|
75530
75530
|
onClick: re,
|
|
75531
|
-
onDoubleClick:
|
|
75531
|
+
onDoubleClick: L,
|
|
75532
75532
|
onKeyDown: D ? R : void 0,
|
|
75533
75533
|
tabIndex: D ? 0 : void 0,
|
|
75534
75534
|
onFocus: D ? ie : void 0,
|
|
@@ -76040,7 +76040,7 @@ function R2e({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
|
|
|
76040
76040
|
} : y;
|
|
76041
76041
|
let x = y.type || "default", S = h?.[x] || j2e[x];
|
|
76042
76042
|
S === void 0 && (_?.("011", QJ.error011(x)), x = "default", S = h?.default || j2e.default);
|
|
76043
|
-
let C = !!(y.focusable || t && y.focusable === void 0), w = d !== void 0 && (y.reconnectable || n && y.reconnectable === void 0), T = !!(y.selectable || r && y.selectable === void 0), E = G(null), [D, O] = K(!1), [k, A] = K(!1), j = tX(), { zIndex: M, sourceX: N, sourceY: P, targetX: F, targetY: I, sourcePosition: ee, targetPosition:
|
|
76043
|
+
let C = !!(y.focusable || t && y.focusable === void 0), w = d !== void 0 && (y.reconnectable || n && y.reconnectable === void 0), T = !!(y.selectable || r && y.selectable === void 0), E = G(null), [D, O] = K(!1), [k, A] = K(!1), j = tX(), { zIndex: M, sourceX: N, sourceY: P, targetX: F, targetY: I, sourcePosition: ee, targetPosition: te } = eX(H((t) => {
|
|
76044
76044
|
let n = t.nodeLookup.get(y.source), r = t.nodeLookup.get(y.target);
|
|
76045
76045
|
if (!n || !r) return {
|
|
76046
76046
|
zIndex: y.zIndex,
|
|
@@ -76073,7 +76073,7 @@ function R2e({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
|
|
|
76073
76073
|
y.targetHandle,
|
|
76074
76074
|
y.selected,
|
|
76075
76075
|
y.zIndex
|
|
76076
|
-
]), QY),
|
|
76076
|
+
]), QY), ne = W(() => y.markerStart ? `url('#${FY(y.markerStart, m)}')` : void 0, [y.markerStart, m]), L = W(() => y.markerEnd ? `url('#${FY(y.markerEnd, m)}')` : void 0, [y.markerEnd, m]);
|
|
76077
76077
|
if (y.hidden || N === null || P === null || F === null || I === null) return null;
|
|
76078
76078
|
let re = (t) => {
|
|
76079
76079
|
let { addSelectedEdges: n, unselectNodesAndEdges: r, multiSelectionActive: a } = j.getState();
|
|
@@ -76149,13 +76149,13 @@ function R2e({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
|
|
|
76149
76149
|
targetX: F,
|
|
76150
76150
|
targetY: I,
|
|
76151
76151
|
sourcePosition: ee,
|
|
76152
|
-
targetPosition:
|
|
76152
|
+
targetPosition: te,
|
|
76153
76153
|
data: y.data,
|
|
76154
76154
|
style: y.style,
|
|
76155
76155
|
sourceHandleId: y.sourceHandle,
|
|
76156
76156
|
targetHandleId: y.targetHandle,
|
|
76157
|
-
markerStart:
|
|
76158
|
-
markerEnd:
|
|
76157
|
+
markerStart: ne,
|
|
76158
|
+
markerEnd: L,
|
|
76159
76159
|
pathOptions: "pathOptions" in y ? y.pathOptions : void 0,
|
|
76160
76160
|
interactionWidth: y.interactionWidth
|
|
76161
76161
|
}), w && q(L2e, {
|
|
@@ -76170,7 +76170,7 @@ function R2e({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
|
|
|
76170
76170
|
targetX: F,
|
|
76171
76171
|
targetY: I,
|
|
76172
76172
|
sourcePosition: ee,
|
|
76173
|
-
targetPosition:
|
|
76173
|
+
targetPosition: te,
|
|
76174
76174
|
setUpdateHover: O,
|
|
76175
76175
|
setReconnecting: A
|
|
76176
76176
|
})]
|
|
@@ -76354,9 +76354,9 @@ function n4e() {
|
|
|
76354
76354
|
}
|
|
76355
76355
|
}, []);
|
|
76356
76356
|
}
|
|
76357
|
-
function r4e({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: g, connectionLineContainerStyle: _, selectionKeyCode: v, selectionOnDrag: y, selectionMode: b, multiSelectionKeyCode: x, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: w, onlyRenderVisibleElements: T, elementsSelectable: E, defaultViewport: D, translateExtent: O, minZoom: k, maxZoom: A, preventScrolling: j, defaultMarkerColor: M, zoomOnScroll: N, zoomOnPinch: P, panOnScroll: F, panOnScrollSpeed: I, panOnScrollMode: ee, zoomOnDoubleClick:
|
|
76357
|
+
function r4e({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: g, connectionLineContainerStyle: _, selectionKeyCode: v, selectionOnDrag: y, selectionMode: b, multiSelectionKeyCode: x, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: w, onlyRenderVisibleElements: T, elementsSelectable: E, defaultViewport: D, translateExtent: O, minZoom: k, maxZoom: A, preventScrolling: j, defaultMarkerColor: M, zoomOnScroll: N, zoomOnPinch: P, panOnScroll: F, panOnScrollSpeed: I, panOnScrollMode: ee, zoomOnDoubleClick: te, panOnDrag: ne, onPaneClick: L, onPaneMouseEnter: re, onPaneMouseMove: R, onPaneMouseLeave: ie, onPaneScroll: z, onPaneContextMenu: ae, paneClickDistance: B, nodeClickDistance: oe, onEdgeContextMenu: se, onEdgeMouseEnter: ce, onEdgeMouseMove: le, onEdgeMouseLeave: ue, reconnectRadius: de, onReconnect: fe, onReconnectStart: pe, onReconnectEnd: me, noDragClassName: he, noWheelClassName: ge, noPanClassName: _e, disableKeyboardA11y: ve, nodeExtent: ye, rfId: be, viewport: xe, onViewportChange: Se }) {
|
|
76358
76358
|
return t4e(e), t4e(t), n4e(), G2e(n), q2e(xe), q(q0e, {
|
|
76359
|
-
onPaneClick:
|
|
76359
|
+
onPaneClick: L,
|
|
76360
76360
|
onPaneMouseEnter: re,
|
|
76361
76361
|
onPaneMouseMove: R,
|
|
76362
76362
|
onPaneMouseLeave: ie,
|
|
@@ -76375,11 +76375,11 @@ function r4e({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClic
|
|
|
76375
76375
|
elementsSelectable: E,
|
|
76376
76376
|
zoomOnScroll: N,
|
|
76377
76377
|
zoomOnPinch: P,
|
|
76378
|
-
zoomOnDoubleClick:
|
|
76378
|
+
zoomOnDoubleClick: te,
|
|
76379
76379
|
panOnScroll: F,
|
|
76380
76380
|
panOnScrollSpeed: I,
|
|
76381
76381
|
panOnScrollMode: ee,
|
|
76382
|
-
panOnDrag:
|
|
76382
|
+
panOnDrag: ne,
|
|
76383
76383
|
defaultViewport: D,
|
|
76384
76384
|
translateExtent: O,
|
|
76385
76385
|
minZoom: k,
|
|
@@ -76767,7 +76767,7 @@ var l4e = {
|
|
|
76767
76767
|
position: "relative",
|
|
76768
76768
|
zIndex: 0
|
|
76769
76769
|
};
|
|
76770
|
-
function u4e({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: a, edgeTypes: o, onNodeClick: s, onEdgeClick: c, onInit: l, onMove: u, onMoveStart: d, onMoveEnd: f, onConnect: p, onConnectStart: m, onConnectEnd: h, onClickConnectStart: g, onClickConnectEnd: _, onNodeMouseEnter: v, onNodeMouseMove: y, onNodeMouseLeave: b, onNodeContextMenu: x, onNodeDoubleClick: S, onNodeDragStart: C, onNodeDrag: w, onNodeDragStop: T, onNodesDelete: E, onEdgesDelete: D, onDelete: O, onSelectionChange: k, onSelectionDragStart: A, onSelectionDrag: j, onSelectionDragStop: M, onSelectionContextMenu: N, onSelectionStart: P, onSelectionEnd: F, onBeforeDelete: I, connectionMode: ee, connectionLineType:
|
|
76770
|
+
function u4e({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: a, edgeTypes: o, onNodeClick: s, onEdgeClick: c, onInit: l, onMove: u, onMoveStart: d, onMoveEnd: f, onConnect: p, onConnectStart: m, onConnectEnd: h, onClickConnectStart: g, onClickConnectEnd: _, onNodeMouseEnter: v, onNodeMouseMove: y, onNodeMouseLeave: b, onNodeContextMenu: x, onNodeDoubleClick: S, onNodeDragStart: C, onNodeDrag: w, onNodeDragStop: T, onNodesDelete: E, onEdgesDelete: D, onDelete: O, onSelectionChange: k, onSelectionDragStart: A, onSelectionDrag: j, onSelectionDragStop: M, onSelectionContextMenu: N, onSelectionStart: P, onSelectionEnd: F, onBeforeDelete: I, connectionMode: ee, connectionLineType: te = rY.Bezier, connectionLineStyle: ne, connectionLineComponent: L, connectionLineContainerStyle: re, deleteKeyCode: R = "Backspace", selectionKeyCode: ie = "Shift", selectionOnDrag: z = !1, selectionMode: ae = nY.Full, panActivationKeyCode: B = "Space", multiSelectionKeyCode: oe = wY() ? "Meta" : "Control", zoomActivationKeyCode: se = wY() ? "Meta" : "Control", snapToGrid: ce, snapGrid: le, onlyRenderVisibleElements: ue = !1, selectNodesOnDrag: de, nodesDraggable: fe, autoPanOnNodeFocus: pe, nodesConnectable: me, nodesFocusable: he, nodeOrigin: ge = K1e, edgesFocusable: _e, edgesReconnectable: ve, elementsSelectable: ye = !0, defaultViewport: be = q1e, minZoom: xe = .5, maxZoom: Se = 2, translateExtent: Ce = $J, preventScrolling: we = !0, nodeExtent: Te, defaultMarkerColor: Ee = "#b1b1b7", zoomOnScroll: De = !0, zoomOnPinch: Oe = !0, panOnScroll: ke = !1, panOnScrollSpeed: Ae = .5, panOnScrollMode: je = tY.Free, zoomOnDoubleClick: Me = !0, panOnDrag: Ne = !0, onPaneClick: Pe, onPaneMouseEnter: Fe, onPaneMouseMove: Ie, onPaneMouseLeave: Le, onPaneScroll: Re, onPaneContextMenu: ze, paneClickDistance: Be = 1, nodeClickDistance: Ve = 0, children: He, onReconnect: Ue, onReconnectStart: We, onReconnectEnd: Ge, onEdgeContextMenu: Ke, onEdgeDoubleClick: qe, onEdgeMouseEnter: Je, onEdgeMouseMove: Ye, onEdgeMouseLeave: Xe, reconnectRadius: Ze = 10, onNodesChange: Qe, onEdgesChange: $e, noDragClassName: et = "nodrag", noWheelClassName: tt = "nowheel", noPanClassName: nt = "nopan", fitView: rt, fitViewOptions: it, connectOnClick: at, attributionPosition: ot, proOptions: st, defaultEdgeOptions: ct, elevateNodesOnSelect: lt = !0, elevateEdgesOnSelect: ut = !1, disableKeyboardA11y: dt = !1, autoPanOnConnect: ft, autoPanOnNodeDrag: pt, autoPanSpeed: mt, connectionRadius: ht, isValidConnection: gt, onError: _t, style: vt, id: yt, nodeDragThreshold: bt, connectionDragThreshold: xt, viewport: St, onViewportChange: Ct, width: wt, height: Tt, colorMode: Et = "light", debug: Dt, onScroll: Ot, ariaLabelConfig: kt, zIndexMode: At = "basic", ...jt }, Mt) {
|
|
76771
76771
|
let Nt = yt || "1", Pt = $1e(Et), Ft = H((e) => {
|
|
76772
76772
|
e.currentTarget.scrollTo({
|
|
76773
76773
|
top: 0,
|
|
@@ -76876,9 +76876,9 @@ function u4e({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className:
|
|
|
76876
76876
|
onNodeDoubleClick: S,
|
|
76877
76877
|
nodeTypes: a,
|
|
76878
76878
|
edgeTypes: o,
|
|
76879
|
-
connectionLineType:
|
|
76880
|
-
connectionLineStyle:
|
|
76881
|
-
connectionLineComponent:
|
|
76879
|
+
connectionLineType: te,
|
|
76880
|
+
connectionLineStyle: ne,
|
|
76881
|
+
connectionLineComponent: L,
|
|
76882
76882
|
connectionLineContainerStyle: re,
|
|
76883
76883
|
selectionKeyCode: ie,
|
|
76884
76884
|
selectionOnDrag: z,
|
|
@@ -77222,7 +77222,7 @@ var A4e = Qi(k4e), j4e = Qi(O4e), M4e = 200, N4e = 150, P4e = (e) => !e.hidden,
|
|
|
77222
77222
|
};
|
|
77223
77223
|
}, I4e = "react-flow__minimap-desc";
|
|
77224
77224
|
function L4e({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClassName: i = "", nodeBorderRadius: a = 5, nodeStrokeWidth: o, nodeComponent: s, bgColor: c, maskColor: l, maskStrokeColor: u, maskStrokeWidth: d, position: f = "bottom-right", onClick: p, onNodeClick: m, pannable: h = !1, zoomable: g = !1, ariaLabel: _, inversePan: v, zoomStep: y = 1, offsetScale: b = 5 }) {
|
|
77225
|
-
let x = tX(), S = G(null), { boundingRect: C, viewBB: w, rfId: T, panZoom: E, translateExtent: D, flowWidth: O, flowHeight: k, ariaLabelConfig: A } = eX(F4e, QY), j = e?.width ?? M4e, M = e?.height ?? N4e, N = C.width / j, P = C.height / M, F = Math.max(N, P), I = F * j, ee = F * M,
|
|
77225
|
+
let x = tX(), S = G(null), { boundingRect: C, viewBB: w, rfId: T, panZoom: E, translateExtent: D, flowWidth: O, flowHeight: k, ariaLabelConfig: A } = eX(F4e, QY), j = e?.width ?? M4e, M = e?.height ?? N4e, N = C.width / j, P = C.height / M, F = Math.max(N, P), I = F * j, ee = F * M, te = b * F, ne = C.x - (I - C.width) / 2 - te, L = C.y - (ee - C.height) / 2 - te, re = I + te * 2, R = ee + te * 2, ie = `${I4e}-${T}`, z = G(0), ae = G();
|
|
77226
77226
|
z.current = F, U(() => {
|
|
77227
77227
|
if (S.current && E) return ae.current = t1e({
|
|
77228
77228
|
domNode: S.current,
|
|
@@ -77278,7 +77278,7 @@ function L4e({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeCla
|
|
|
77278
77278
|
children: J("svg", {
|
|
77279
77279
|
width: j,
|
|
77280
77280
|
height: M,
|
|
77281
|
-
viewBox: `${
|
|
77281
|
+
viewBox: `${ne} ${L} ${re} ${R}`,
|
|
77282
77282
|
className: "react-flow__minimap-svg",
|
|
77283
77283
|
role: "img",
|
|
77284
77284
|
"aria-labelledby": ie,
|
|
@@ -77300,7 +77300,7 @@ function L4e({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeCla
|
|
|
77300
77300
|
}),
|
|
77301
77301
|
q("path", {
|
|
77302
77302
|
className: "react-flow__minimap-mask",
|
|
77303
|
-
d: `M${
|
|
77303
|
+
d: `M${ne - te},${L - te}h${re + te * 2}v${R + te * 2}h${-re - te * 2}z
|
|
77304
77304
|
M${w.x},${w.y}h${w.width}v${w.height}h${-w.width}z`,
|
|
77305
77305
|
fillRule: "evenodd",
|
|
77306
77306
|
pointerEvents: "none"
|
|
@@ -78390,20 +78390,20 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78390
78390
|
stackedNodeHeight: (f ?? 44) + P,
|
|
78391
78391
|
stackedNodeGap: p,
|
|
78392
78392
|
snapGrid: 32
|
|
78393
|
-
}), ee = m ?? I,
|
|
78393
|
+
}), ee = m ?? I, te = W(() => ee.computeLayout(k, A, g), [
|
|
78394
78394
|
ee,
|
|
78395
78395
|
k,
|
|
78396
78396
|
A,
|
|
78397
78397
|
g
|
|
78398
|
-
]),
|
|
78398
|
+
]), ne = W(() => new Map(te.nodes.map((e) => [e.id, e])), [te.nodes]), L = W(() => s3e(x, T, ne, g), [
|
|
78399
78399
|
x,
|
|
78400
78400
|
T,
|
|
78401
|
-
|
|
78401
|
+
ne,
|
|
78402
78402
|
g
|
|
78403
78403
|
]), re = W(() => {
|
|
78404
78404
|
let e = [];
|
|
78405
|
-
for (let [t, n] of
|
|
78406
|
-
let r =
|
|
78405
|
+
for (let [t, n] of L.groups) {
|
|
78406
|
+
let r = ne.get(t);
|
|
78407
78407
|
if (!r) continue;
|
|
78408
78408
|
let i = Math.min(r.x, n.x), a = Math.min(r.y, n.y);
|
|
78409
78409
|
e.push({
|
|
@@ -78415,7 +78415,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78415
78415
|
});
|
|
78416
78416
|
}
|
|
78417
78417
|
return e;
|
|
78418
|
-
}, [
|
|
78418
|
+
}, [L, ne]), R = W(() => l3e(te.nodes), [te.nodes]), ie = H((e) => ne.get(e), [ne]), z = H3e({
|
|
78419
78419
|
enabled: y ?? !1,
|
|
78420
78420
|
padding: b
|
|
78421
78421
|
}), ae = S3e[h], B = C3e[h], oe = Y4e[h], se = G(/* @__PURE__ */ new Map()), ce = W(() => {
|
|
@@ -78424,7 +78424,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78424
78424
|
dx: 0,
|
|
78425
78425
|
dy: 0
|
|
78426
78426
|
};
|
|
78427
|
-
let t =
|
|
78427
|
+
let t = te.nodes.find((t) => t.id === e), n = se.current.get(e);
|
|
78428
78428
|
return n && t ? {
|
|
78429
78429
|
dx: n.x - t.x,
|
|
78430
78430
|
dy: n.y - t.y
|
|
@@ -78432,10 +78432,10 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78432
78432
|
dx: 0,
|
|
78433
78433
|
dy: 0
|
|
78434
78434
|
};
|
|
78435
|
-
}, [
|
|
78435
|
+
}, [te.nodes, r]);
|
|
78436
78436
|
ra(() => {
|
|
78437
78437
|
let { dx: e, dy: a } = ce;
|
|
78438
|
-
se.current = new Map(
|
|
78438
|
+
se.current = new Map(te.nodes.map((e) => [e.id, {
|
|
78439
78439
|
x: e.x,
|
|
78440
78440
|
y: e.y
|
|
78441
78441
|
}]));
|
|
@@ -78446,7 +78446,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78446
78446
|
s !== void 0 && n.has(o) && s.childrenCount > 0 && s.children.length === 0 || (r.current = null);
|
|
78447
78447
|
}
|
|
78448
78448
|
}, [
|
|
78449
|
-
|
|
78449
|
+
te.nodes,
|
|
78450
78450
|
ce,
|
|
78451
78451
|
t,
|
|
78452
78452
|
n,
|
|
@@ -78456,7 +78456,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78456
78456
|
let le = W(() => {
|
|
78457
78457
|
if (!y || !z) return null;
|
|
78458
78458
|
let e = u ?? 256, n = /* @__PURE__ */ new Set();
|
|
78459
|
-
for (let t of
|
|
78459
|
+
for (let t of te.nodes) o3e(t.x, t.y, t.width || e, t.height || F, z) && n.add(t.id);
|
|
78460
78460
|
let r = Array.from(n);
|
|
78461
78461
|
for (let e of r) {
|
|
78462
78462
|
let r = t.get(e)?.parentId ?? null;
|
|
@@ -78465,7 +78465,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78465
78465
|
let i = new Set(r);
|
|
78466
78466
|
for (let e of D) i.has(e.source) !== i.has(e.target) && (n.add(e.source), n.add(e.target));
|
|
78467
78467
|
for (let e of Array.from(n)) {
|
|
78468
|
-
let t =
|
|
78468
|
+
let t = L.previousRow.get(e);
|
|
78469
78469
|
t && n.add(t);
|
|
78470
78470
|
}
|
|
78471
78471
|
return n;
|
|
@@ -78473,11 +78473,11 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78473
78473
|
y,
|
|
78474
78474
|
z,
|
|
78475
78475
|
D,
|
|
78476
|
-
|
|
78476
|
+
te.nodes,
|
|
78477
78477
|
u,
|
|
78478
78478
|
F,
|
|
78479
78479
|
t,
|
|
78480
|
-
|
|
78480
|
+
L
|
|
78481
78481
|
]), ue = G(/* @__PURE__ */ new Map()), de = W(() => {
|
|
78482
78482
|
let e = u ?? 256, t = F, r = (e) => !le || le.has(e), i = le !== null, a = g === "LR" || g === "RL", s = g === "TB" ? aY.Bottom : g === "BT" ? aY.Top : g === "LR" ? aY.Right : aY.Left, c = g === "TB" ? aY.Top : g === "BT" ? aY.Bottom : g === "LR" ? aY.Left : aY.Right, l = (e, t, n = t) => {
|
|
78483
78483
|
let r = (t) => t === aY.Top ? {
|
|
@@ -78507,7 +78507,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78507
78507
|
height: 1
|
|
78508
78508
|
}];
|
|
78509
78509
|
}, p = l(e, t, d ?? 56), m = [];
|
|
78510
|
-
for (let e of
|
|
78510
|
+
for (let e of L.groups.values()) [...e.rows.keys()].some(r) && m.push({
|
|
78511
78511
|
id: e.id,
|
|
78512
78512
|
type: "stackGroup",
|
|
78513
78513
|
position: {
|
|
@@ -78527,7 +78527,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78527
78527
|
let h = [];
|
|
78528
78528
|
for (let a of x) {
|
|
78529
78529
|
if (!r(a.id)) continue;
|
|
78530
|
-
let u =
|
|
78530
|
+
let u = ne.get(a.id), d = ue.current.get(a.id), m;
|
|
78531
78531
|
d !== void 0 && d.parentId === a.parentId && d.data === a.data && d.childrenCount === a.childrenCount && d.childrenLoaded === a.childrenLoaded && d.dataLoaded === a.dataLoaded ? m = d : (m = {
|
|
78532
78532
|
id: a.id,
|
|
78533
78533
|
parentId: a.parentId,
|
|
@@ -78541,7 +78541,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78541
78541
|
let e = a.children.map((e) => e.id).filter((e) => r(e));
|
|
78542
78542
|
_ = e.length > 0 ? e : void 0;
|
|
78543
78543
|
}
|
|
78544
|
-
let v = T.has(a.id), y =
|
|
78544
|
+
let v = T.has(a.id), y = L.groupOf.get(a.id), b = y ? L.groups.get(a.parentId ?? "")?.rows.get(a.id) : void 0, x = b ? b.width : v ? u?.width ?? e : e, C = b ? b.height : v ? u?.height ?? t : t;
|
|
78545
78545
|
h.push({
|
|
78546
78546
|
id: a.id,
|
|
78547
78547
|
type: "graphNode",
|
|
@@ -78573,7 +78573,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78573
78573
|
}
|
|
78574
78574
|
for (let i of O) {
|
|
78575
78575
|
if (!r(i.id)) continue;
|
|
78576
|
-
let o =
|
|
78576
|
+
let o = ne.get(i.parentId) ?? {
|
|
78577
78577
|
x: 0,
|
|
78578
78578
|
y: 0,
|
|
78579
78579
|
width: e,
|
|
@@ -78600,7 +78600,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78600
78600
|
}
|
|
78601
78601
|
for (let i of x) {
|
|
78602
78602
|
if (!n.has(i.id) || i.children.length === 0 || !r(i.id)) continue;
|
|
78603
|
-
let o =
|
|
78603
|
+
let o = ne.get(i.id), l = o?.x ?? 0, u = o?.y ?? 0, d = o?.width ?? e, f = o?.height ?? t, p = w.has(i.id) ? B : ae, m = a ? g === "LR" ? l + d + p + oe : l - d : l, v = a ? u * 1 : g === "TB" ? u * 1 + f + p + oe : u * 1 - f;
|
|
78604
78604
|
h.push({
|
|
78605
78605
|
id: `collapser-${i.id}`,
|
|
78606
78606
|
type: "collapserNode",
|
|
@@ -78622,8 +78622,8 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78622
78622
|
return [...m, ...h];
|
|
78623
78623
|
}, [
|
|
78624
78624
|
le,
|
|
78625
|
-
te,
|
|
78626
78625
|
ne,
|
|
78626
|
+
L,
|
|
78627
78627
|
x,
|
|
78628
78628
|
O,
|
|
78629
78629
|
n,
|
|
@@ -78651,9 +78651,9 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78651
78651
|
visibleTreeNodes: x,
|
|
78652
78652
|
rfNodes: de,
|
|
78653
78653
|
rfEdges: W(() => {
|
|
78654
|
-
let e = new Set(x.filter((e) => n.has(e.id) && e.children.length > 0).map((e) => e.id)), t = (e) =>
|
|
78654
|
+
let e = new Set(x.filter((e) => n.has(e.id) && e.children.length > 0).map((e) => e.id)), t = (e) => L.previousRow.get(e.target) ?? e.source;
|
|
78655
78655
|
return D.filter((e) => !le || le.has(t(e)) && le.has(e.target)).map((n) => {
|
|
78656
|
-
let r =
|
|
78656
|
+
let r = L.previousRow.get(n.target), i = t(n), a = !!(n.onEdgeClick || n.onEdgeHover) && n.id === v, o = n.data;
|
|
78657
78657
|
return {
|
|
78658
78658
|
id: n.id,
|
|
78659
78659
|
source: i,
|
|
@@ -78674,7 +78674,7 @@ function q3e({ roots: e, nodeMap: t, expandedNodes: n, anchorNodeRef: r, onAncho
|
|
|
78674
78674
|
v,
|
|
78675
78675
|
le,
|
|
78676
78676
|
T,
|
|
78677
|
-
|
|
78677
|
+
L
|
|
78678
78678
|
]),
|
|
78679
78679
|
reservedTagHeight: P,
|
|
78680
78680
|
tagsAffectLayout: j,
|
|
@@ -79194,7 +79194,7 @@ function _6e({ rootNodes: e, loadChildren: t, nodes: n, edges: r, deferredNodes:
|
|
|
79194
79194
|
};
|
|
79195
79195
|
}
|
|
79196
79196
|
function v6e(e) {
|
|
79197
|
-
let { handleRef: t, nodes: n, edges: r, rootNodes: i, loadChildren: a, deferredNodes: s, onDeferredLoadComplete: c, onDeferredLoadError: l, renderNode: u, zoomPreset: d, zoomThresholds: f, defaultZoom: p = 1, minZoom: m = .05, maxZoom: h = 2, expandedNodes: g, defaultExpandedNodes: _, defaultExpandDepth: v, onExpandToggle: y, onExpandedNodesChange: b, selectionMode: x = "single", selectedNodes: S, onNodeSelect: C, onSelectedNodesChange: w, onPaneClick: T, focusedNode: E, initialFocusNodeId: D, centerOnNodeClick: O = !0, nodeClickZoom: k, viewportInset: A, highlightedNodes: j, nodeWidth: M, nodeHeight: N, stackedNodeHeight: P, stackedNodeGap: F, canvasActions: I, canvasFooterActions: ee, showControls:
|
|
79197
|
+
let { handleRef: t, nodes: n, edges: r, rootNodes: i, loadChildren: a, deferredNodes: s, onDeferredLoadComplete: c, onDeferredLoadError: l, renderNode: u, zoomPreset: d, zoomThresholds: f, defaultZoom: p = 1, minZoom: m = .05, maxZoom: h = 2, expandedNodes: g, defaultExpandedNodes: _, defaultExpandDepth: v, onExpandToggle: y, onExpandedNodesChange: b, selectionMode: x = "single", selectedNodes: S, onNodeSelect: C, onSelectedNodesChange: w, onPaneClick: T, focusedNode: E, initialFocusNodeId: D, centerOnNodeClick: O = !0, nodeClickZoom: k, viewportInset: A, highlightedNodes: j, nodeWidth: M, nodeHeight: N, stackedNodeHeight: P, stackedNodeGap: F, canvasActions: I, canvasFooterActions: ee, showControls: te = !1, onZoomLevelChange: ne, onViewportChange: L, renderEdge: re, nodeTagTypes: R, visibleTagTypes: ie, defaultVisibleTagTypes: z, reserveTagRow: ae, onVisibleNodesChange: B, onRenderedNodesChange: oe, enableNodeWindowing: se, nodeWindowPadding: ce, loadVisibleNodeData: le, visibleDataDebounceMs: ue, layoutEngine: de, controlLabels: fe, currentUserNodeId: pe, onFocusUser: me } = e, he = o(), ge = cX(), _e = tX(), [ve, ye] = K(null), [be, xe] = K(null), Se = G(null), Ce = G(null), we = (ie ?? z ?? R ?? J4e).join("\0"), Te = W(() => new Set(we ? we.split("\0") : []), [we]), Ee = G(u);
|
|
79198
79198
|
Ee.current = u;
|
|
79199
79199
|
let De = W(() => (e, t) => Ee.current(e, t), []), Oe = re ? g6e : h6e, { isLazyMode: ke, lazyTree: Ae, resolvedNodes: je, resolvedEdgesProp: Me, deferredStatus: Ne } = _6e({
|
|
79200
79200
|
rootNodes: i,
|
|
@@ -79219,8 +79219,8 @@ function v6e(e) {
|
|
|
79219
79219
|
zoomPreset: d,
|
|
79220
79220
|
zoomThresholds: f,
|
|
79221
79221
|
currentUserNodeId: pe,
|
|
79222
|
-
onZoomLevelChange:
|
|
79223
|
-
onViewportChange:
|
|
79222
|
+
onZoomLevelChange: ne,
|
|
79223
|
+
onViewportChange: L,
|
|
79224
79224
|
nodeWindowingActive: se ?? !1,
|
|
79225
79225
|
getContentBounds: Ye,
|
|
79226
79226
|
getNodePosition: Xe,
|
|
@@ -79545,7 +79545,7 @@ function v6e(e) {
|
|
|
79545
79545
|
className: "absolute bottom-6 right-6 z-10 flex flex-col items-end gap-2",
|
|
79546
79546
|
children: ee
|
|
79547
79547
|
}) : null,
|
|
79548
|
-
|
|
79548
|
+
te ? /* @__PURE__ */ q("div", {
|
|
79549
79549
|
className: "absolute bottom-6 left-6 z-10",
|
|
79550
79550
|
children: /* @__PURE__ */ q(s6e, {
|
|
79551
79551
|
onZoomIn: tt,
|
|
@@ -79843,7 +79843,7 @@ var I6e = xr({
|
|
|
79843
79843
|
onKeyDown: (e) => {
|
|
79844
79844
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), f?.()), e.key === "ArrowRight" && s && !n && (e.preventDefault(), d?.()), e.key === "ArrowLeft" && s && n && (e.preventDefault(), d?.());
|
|
79845
79845
|
}
|
|
79846
|
-
},
|
|
79846
|
+
}, te = e === "compact", ne = e === "dot", L = e === "detail", re = !!C && typeof _ == "string" && _.trim() !== "", R = y ? b ? y.filter((e) => b.has(zX(e))) : y : void 0, ie = L && !!R && R.length > 0, z = (e) => ie ? /* @__PURE__ */ q("div", {
|
|
79847
79847
|
className: u(e, "rounded-[13px] backdrop-blur-[400px]"),
|
|
79848
79848
|
"data-no-node-select": !0,
|
|
79849
79849
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -79881,7 +79881,7 @@ var I6e = xr({
|
|
|
79881
79881
|
height: D
|
|
79882
79882
|
}), z("max-w-full")]
|
|
79883
79883
|
});
|
|
79884
|
-
let ae = g != null && g.type !== "person", B =
|
|
79884
|
+
let ae = g != null && g.type !== "person", B = ne ? !!(_ || v || R?.length) : te ? !!(v || R?.length) : !1, oe = /* @__PURE__ */ J("div", {
|
|
79885
79885
|
...ee,
|
|
79886
79886
|
"data-zoom-level": e,
|
|
79887
79887
|
className: u(I6e({
|
|
@@ -79890,14 +79890,14 @@ var I6e = xr({
|
|
|
79890
79890
|
}), "flex-col gap-1.5", "group outline-none"),
|
|
79891
79891
|
children: [
|
|
79892
79892
|
/* @__PURE__ */ J("div", {
|
|
79893
|
-
className: u("group/pill relative inline-flex max-w-full flex-col items-stretch", "outline-none", ae ? "rounded-2xl" : "rounded-full", !
|
|
79893
|
+
className: u("group/pill relative inline-flex max-w-full flex-col items-stretch", "outline-none", ae ? "rounded-2xl" : "rounded-full", !ne && (t === "selected" || t === "highlighted") && "ring-2 ring-f1-background-selected ring-offset-0", t === "dimmed" && ne && "opacity-40", !ne && "group-focus-visible:ring-2 group-focus-visible:ring-f1-background-selected group-focus-visible:ring-offset-0", ae ? "p-2.5" : "px-2.5 py-2", "min-h-11"),
|
|
79894
79894
|
style: { contain: "layout" },
|
|
79895
79895
|
children: [/* @__PURE__ */ q("div", {
|
|
79896
79896
|
"aria-hidden": !0,
|
|
79897
|
-
className: u("pointer-events-none absolute inset-0 border border-solid bg-f1-background", ae ? "rounded-2xl" : "rounded-full", (!
|
|
79897
|
+
className: u("pointer-events-none absolute inset-0 border border-solid bg-f1-background", ae ? "rounded-2xl" : "rounded-full", (!ne || F) && "backdrop-blur-[7px]", ne ? "border-f1-border-secondary" : "border-f1-border", t !== "selected" && t !== "highlighted" && !ne && "group-hover/pill:bg-f1-background-hover", (t === "selected" || t === "highlighted") && "border-f1-border-selected-bold"),
|
|
79898
79898
|
style: {
|
|
79899
|
-
borderWidth:
|
|
79900
|
-
opacity: +!
|
|
79899
|
+
borderWidth: ne ? 1.5 : 1,
|
|
79900
|
+
opacity: +!ne,
|
|
79901
79901
|
transition: N ? "none" : L6e,
|
|
79902
79902
|
willChange: "opacity",
|
|
79903
79903
|
transform: "translateZ(0)"
|
|
@@ -79905,9 +79905,9 @@ var I6e = xr({
|
|
|
79905
79905
|
}), /* @__PURE__ */ J("div", {
|
|
79906
79906
|
className: "relative inline-flex items-center",
|
|
79907
79907
|
children: [/* @__PURE__ */ q("div", {
|
|
79908
|
-
className: u("flex shrink-0 items-center justify-center", ae ? "rounded-md" : "rounded-full",
|
|
79908
|
+
className: u("flex shrink-0 items-center justify-center", ae ? "rounded-md" : "rounded-full", ne && (t === "selected" || t === "highlighted") && "ring-2 ring-f1-background-selected ring-offset-0", ne && "group-focus-visible:ring-2 group-focus-visible:ring-f1-background-selected group-focus-visible:ring-offset-0"),
|
|
79909
79909
|
style: {
|
|
79910
|
-
transform: `translateZ(0) scale(${
|
|
79910
|
+
transform: `translateZ(0) scale(${ne ? 96 / 40 : 1})`,
|
|
79911
79911
|
transformOrigin: "center center",
|
|
79912
79912
|
transition: N ? "none" : R6e,
|
|
79913
79913
|
willChange: "transform"
|
|
@@ -79918,11 +79918,11 @@ var I6e = xr({
|
|
|
79918
79918
|
})
|
|
79919
79919
|
}), /* @__PURE__ */ q("div", {
|
|
79920
79920
|
style: {
|
|
79921
|
-
width:
|
|
79922
|
-
marginLeft:
|
|
79923
|
-
opacity: +!
|
|
79921
|
+
width: ne ? 0 : 176,
|
|
79922
|
+
marginLeft: ne ? 0 : 8,
|
|
79923
|
+
opacity: +!ne,
|
|
79924
79924
|
transition: N ? "none" : z6e,
|
|
79925
|
-
transitionDelay: N ||
|
|
79925
|
+
transitionDelay: N || ne ? "0ms" : "36ms"
|
|
79926
79926
|
},
|
|
79927
79927
|
className: "relative min-w-0 flex-1 self-stretch overflow-hidden whitespace-nowrap",
|
|
79928
79928
|
children: /* @__PURE__ */ q(ce, {
|
|
@@ -79957,10 +79957,10 @@ var I6e = xr({
|
|
|
79957
79957
|
children: [/* @__PURE__ */ q(l, {
|
|
79958
79958
|
className: "rounded-xs",
|
|
79959
79959
|
style: {
|
|
79960
|
-
height:
|
|
79961
|
-
width:
|
|
79960
|
+
height: te ? 20 : 12,
|
|
79961
|
+
width: te ? 120 : 96
|
|
79962
79962
|
}
|
|
79963
|
-
}), !
|
|
79963
|
+
}), !te && !ne ? /* @__PURE__ */ q(l, {
|
|
79964
79964
|
className: "rounded-xs",
|
|
79965
79965
|
style: {
|
|
79966
79966
|
height: 12,
|
|
@@ -79970,12 +79970,12 @@ var I6e = xr({
|
|
|
79970
79970
|
}) : /* @__PURE__ */ J(oa, { children: [/* @__PURE__ */ q("p", {
|
|
79971
79971
|
className: "w-full truncate tracking-[-0.07px] text-f1-foreground",
|
|
79972
79972
|
style: {
|
|
79973
|
-
fontSize:
|
|
79974
|
-
lineHeight:
|
|
79973
|
+
fontSize: te ? 24 : 14,
|
|
79974
|
+
lineHeight: te ? "32px" : "20px",
|
|
79975
79975
|
fontWeight: 500
|
|
79976
79976
|
},
|
|
79977
79977
|
children: _
|
|
79978
|
-
}), !
|
|
79978
|
+
}), !te && !ne && C ? /* @__PURE__ */ q(l, { className: "mt-1 h-3 w-16 rounded-xs" }) : !te && !ne && v ? /* @__PURE__ */ q("p", {
|
|
79979
79979
|
className: "w-full truncate tracking-[-0.07px] text-f1-foreground-secondary",
|
|
79980
79980
|
style: {
|
|
79981
79981
|
fontSize: 14,
|
|
@@ -79989,7 +79989,7 @@ var I6e = xr({
|
|
|
79989
79989
|
})]
|
|
79990
79990
|
})]
|
|
79991
79991
|
}),
|
|
79992
|
-
|
|
79992
|
+
L && S ? /* @__PURE__ */ q(K4e, {
|
|
79993
79993
|
nodeId: m,
|
|
79994
79994
|
isVisible: t === "selected",
|
|
79995
79995
|
position: aY.Top,
|
|
@@ -80337,8 +80337,8 @@ function Z6e(e, t, n) {
|
|
|
80337
80337
|
}
|
|
80338
80338
|
//#endregion
|
|
80339
80339
|
//#region src/addons/data-collection/OneDataCollection/visualizations/collection/Graph/Graph.tsx
|
|
80340
|
-
var Q6e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions: a, nodeTagTypes: o, defaultVisibleTagTypes: s, pinnedTagTypes: c, lockedTagTypes: l, currentUserNodeId: u, getNodeId: d, getChildrenCount: f, stackNodes: p, stackedTrailing: m, childrenFilters: h, defaultExpandDepth: g, revealNodeId: _, searchSelectionNonce: v, focusOnEntry: y, initialSelectedNodeId: b, loadNodePath: x, getParentId: S, loadNodeData: C, liveUpdate: w, zoomPreset: T, minZoom: E, maxZoom: D, centerOnNodeClick: O, nodeClickZoom: k, viewportInset: A, showControls: j, canvasFooterActions: M, enableNodeWindowing: N, nodeWindowPadding: P, loadVisibleNodeData: F, visibleDataDebounceMs: I, onLoadData: ee, onLoadError:
|
|
80341
|
-
let { nodes:
|
|
80340
|
+
var Q6e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions: a, nodeTagTypes: o, defaultVisibleTagTypes: s, pinnedTagTypes: c, lockedTagTypes: l, currentUserNodeId: u, getNodeId: d, getChildrenCount: f, stackNodes: p, stackedTrailing: m, childrenFilters: h, defaultExpandDepth: g, revealNodeId: _, searchSelectionNonce: v, focusOnEntry: y, initialSelectedNodeId: b, loadNodePath: x, getParentId: S, loadNodeData: C, liveUpdate: w, zoomPreset: T, minZoom: E, maxZoom: D, centerOnNodeClick: O, nodeClickZoom: k, viewportInset: A, showControls: j, canvasFooterActions: M, enableNodeWindowing: N, nodeWindowPadding: P, loadVisibleNodeData: F, visibleDataDebounceMs: I, onLoadData: ee, onLoadError: te }) => {
|
|
80341
|
+
let { nodes: ne, expandedNodes: L, setExpandedNodes: re, focusedNode: R, highlightedNodes: ie, revealNode: z, clearFocus: ae, loadVisibleNodeData: B, isInitialLoading: oe } = Z6e(e, {
|
|
80342
80342
|
title: t,
|
|
80343
80343
|
subtitle: n,
|
|
80344
80344
|
avatar: r,
|
|
@@ -80357,7 +80357,7 @@ var Q6e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions:
|
|
|
80357
80357
|
showControls: j
|
|
80358
80358
|
}, {
|
|
80359
80359
|
onLoadData: ee,
|
|
80360
|
-
onLoadError:
|
|
80360
|
+
onLoadError: te
|
|
80361
80361
|
}), se = G(null), [ce] = K(() => b !== void 0), [le, ue] = K(() => b ? /* @__PURE__ */ new Set([b]) : /* @__PURE__ */ new Set()), de = G(R);
|
|
80362
80362
|
U(() => {
|
|
80363
80363
|
de.current = R;
|
|
@@ -80390,8 +80390,8 @@ var Q6e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions:
|
|
|
80390
80390
|
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))]",
|
|
80391
80391
|
children: oe ? /* @__PURE__ */ q(O6e, { showTags: i !== void 0 }) : /* @__PURE__ */ q(b6e, {
|
|
80392
80392
|
ref: se,
|
|
80393
|
-
nodes:
|
|
80394
|
-
expandedNodes:
|
|
80393
|
+
nodes: ne,
|
|
80394
|
+
expandedNodes: L,
|
|
80395
80395
|
onExpandedNodesChange: re,
|
|
80396
80396
|
focusedNode: R,
|
|
80397
80397
|
initialFocusNodeId: y,
|
|
@@ -80551,7 +80551,7 @@ function d8e(e) {
|
|
|
80551
80551
|
//#region src/addons/data-collection/Kanban/components/KanbanCard.tsx
|
|
80552
80552
|
var f8e = "button, a[href], input, select, textarea, [role=\"button\"], [role=\"checkbox\"], [role=\"menuitem\"], [role=\"option\"], [role=\"radio\"], [role=\"switch\"]", p8e = (e) => e instanceof HTMLElement && !!e.closest(f8e);
|
|
80553
80553
|
function m8e({ drag: e, id: t, index: n, total: r, laneId: i, draggable: a = !1, showIndicator: o = !0, disabledEdges: s = [], forcedEdge: c = null, isNew: l = !1, onFlash: f, ...p }) {
|
|
80554
|
-
let m = G(null), h = G(null), [g, _] = K(null), v =
|
|
80554
|
+
let m = G(null), h = G(null), [g, _] = K(null), v = ne(), [y] = K(l), [b, x] = K(l && !v);
|
|
80555
80555
|
U(function() {
|
|
80556
80556
|
y && f?.(e.id);
|
|
80557
80557
|
}, [
|
|
@@ -81538,7 +81538,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81538
81538
|
children: /* @__PURE__ */ q(R8e, { ...f })
|
|
81539
81539
|
}) : /* @__PURE__ */ q(R8e, { ...f });
|
|
81540
81540
|
}, z8e = (e) => !!(e && e.type === "infinite-scroll"), B8e = ({ lanes: e, title: t, description: n, avatar: r, metadata: a, onMove: o, onCreate: s, source: c, onSelectItems: l, onLoadError: d, onLoadData: f, getLanesForGroup: p, selectableGroups: m = !0 }) => {
|
|
81541
|
-
let { lanesProvider: h, lanesHooks: g } = v8e(c, { onError: (e) => d(e) }), _ = c.idProvider, v =
|
|
81541
|
+
let { lanesProvider: h, lanesHooks: g } = v8e(c, { onError: (e) => d(e) }), _ = c.idProvider, v = ne(), y = c.currentSortings === null, { totalItemsAggregated: b, isInitialLoadingAggregated: x } = W(() => {
|
|
81542
81542
|
let t = Object.values(g), n = t.length === e.length;
|
|
81543
81543
|
if (t.length === 0 || !n) return {
|
|
81544
81544
|
totalItemsAggregated: void 0,
|
|
@@ -81661,7 +81661,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81661
81661
|
}), [e, g]), A = !!c.currentGrouping, M = i(), N = c.currentGrouping?.order ?? "asc", P = c.currentGrouping?.field, F = c.dataAdapter?.paginationType, I = W(() => {
|
|
81662
81662
|
let e = c.currentGrouping?.field;
|
|
81663
81663
|
if (e != null) return c.grouping?.groupBy?.[e];
|
|
81664
|
-
}, [c.currentGrouping?.field, c.grouping]), ee = W(() => new Set(e.map((e) => e.id)), [e]),
|
|
81664
|
+
}, [c.currentGrouping?.field, c.grouping]), ee = W(() => new Set(e.map((e) => e.id)), [e]), te = W(() => {
|
|
81665
81665
|
if (!A) return [];
|
|
81666
81666
|
let t = /* @__PURE__ */ new Set();
|
|
81667
81667
|
for (let n of e) {
|
|
@@ -81677,7 +81677,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81677
81677
|
e,
|
|
81678
81678
|
g,
|
|
81679
81679
|
N
|
|
81680
|
-
]),
|
|
81680
|
+
]), L = W(() => A ? te.map((t) => {
|
|
81681
81681
|
let n = (p ? p(t) : e).filter((e) => ee.has(e.id)).map((e) => {
|
|
81682
81682
|
let n = g[e.id], r = (n?.data?.type === "grouped" ? n.data.groups.find((e) => e.key === t) : void 0)?.records ?? [];
|
|
81683
81683
|
return {
|
|
@@ -81705,7 +81705,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81705
81705
|
};
|
|
81706
81706
|
}) : [], [
|
|
81707
81707
|
A,
|
|
81708
|
-
|
|
81708
|
+
te,
|
|
81709
81709
|
e,
|
|
81710
81710
|
g,
|
|
81711
81711
|
p,
|
|
@@ -81715,12 +81715,12 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81715
81715
|
]), re = W(() => {
|
|
81716
81716
|
if (!A || !p) return [];
|
|
81717
81717
|
let e = /* @__PURE__ */ new Set();
|
|
81718
|
-
for (let t of
|
|
81718
|
+
for (let t of te) for (let n of p(t)) ee.has(n.id) || e.add(n.id);
|
|
81719
81719
|
return Array.from(e);
|
|
81720
81720
|
}, [
|
|
81721
81721
|
A,
|
|
81722
81722
|
p,
|
|
81723
|
-
|
|
81723
|
+
te,
|
|
81724
81724
|
ee
|
|
81725
81725
|
]);
|
|
81726
81726
|
U(() => {
|
|
@@ -81733,7 +81733,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81733
81733
|
I,
|
|
81734
81734
|
re
|
|
81735
81735
|
]);
|
|
81736
|
-
let R = c.grouping?.collapsible, ie = c.grouping?.defaultOpenGroups, { openGroups: z, setGroupOpen: ae } = Jr(
|
|
81736
|
+
let R = c.grouping?.collapsible, ie = c.grouping?.defaultOpenGroups, { openGroups: z, setGroupOpen: ae } = Jr(L.map((e) => ({
|
|
81737
81737
|
key: e.key,
|
|
81738
81738
|
label: e.label,
|
|
81739
81739
|
itemCount: e.itemCount,
|
|
@@ -81746,7 +81746,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81746
81746
|
className: "flex max-h-full min-h-0 flex-1 flex-col gap-6 overflow-auto",
|
|
81747
81747
|
"aria-busy": S,
|
|
81748
81748
|
"aria-live": S ? "polite" : void 0,
|
|
81749
|
-
children:
|
|
81749
|
+
children: L.length === 0 ? /* @__PURE__ */ q(qX, {
|
|
81750
81750
|
lanes: k,
|
|
81751
81751
|
renderCard: O,
|
|
81752
81752
|
getKey: T,
|
|
@@ -81755,7 +81755,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81755
81755
|
idProvider: _,
|
|
81756
81756
|
allowReorder: !1,
|
|
81757
81757
|
loading: S
|
|
81758
|
-
}) :
|
|
81758
|
+
}) : L.map((e) => {
|
|
81759
81759
|
let t = m && c.selectable !== void 0, n = 0, r = 0;
|
|
81760
81760
|
for (let t of e.lanes) {
|
|
81761
81761
|
if (t.id === void 0) continue;
|
|
@@ -82067,7 +82067,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
82067
82067
|
/* @__PURE__ */ q(l, { className: "h-3 w-32" })
|
|
82068
82068
|
]
|
|
82069
82069
|
}), n5e = ({ source: e, rowId: t, item: n, selectedItems: r, handleSelectItemChange: i, fields: a, itemDefinition: s }) => {
|
|
82070
|
-
let c = o(), l =
|
|
82070
|
+
let c = o(), l = ne(), d = ta(), { expandedRowIds: f, setRowExpanded: p, resetGeneration: m } = aJ(), h = f[t] ?? !1, { children: g, loadChildren: _, isLoading: v, paginationInfo: y } = uJe({
|
|
82071
82071
|
rowId: t,
|
|
82072
82072
|
item: n,
|
|
82073
82073
|
source: e
|
|
@@ -82335,7 +82335,7 @@ var qX = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
82335
82335
|
})]
|
|
82336
82336
|
})
|
|
82337
82337
|
});
|
|
82338
|
-
}, o5e = $ne(() => import("./Map-
|
|
82338
|
+
}, o5e = $ne(() => import("./Map-BBymB_r3.js").then((e) => ({ default: e.MapCollection }))), ZX = {
|
|
82339
82339
|
table: {
|
|
82340
82340
|
name: "Table",
|
|
82341
82341
|
icon: pte,
|
|
@@ -82590,7 +82590,7 @@ var v5e = [
|
|
|
82590
82590
|
u,
|
|
82591
82591
|
a
|
|
82592
82592
|
]);
|
|
82593
|
-
let m = W(() => JSON.stringify(Object.entries(n).map(([e, t]) => [e, t.value])), [n]), h =
|
|
82593
|
+
let m = W(() => JSON.stringify(Object.entries(n).map(([e, t]) => [e, t.value])), [n]), h = te((t) => {
|
|
82594
82594
|
if (!p || !c.current?.writable || c.current.cancelled) return;
|
|
82595
82595
|
let n = Object.fromEntries(Object.entries(t).map(([e, t]) => l.includes(e) ? [e, t.value] : [e, void 0]).filter(([e, t]) => t !== void 0));
|
|
82596
82596
|
Object.keys(n).length === 0 ? a.set(e, {}) : a.set(e, n);
|
|
@@ -82753,7 +82753,7 @@ var v5e = [
|
|
|
82753
82753
|
k.current = O;
|
|
82754
82754
|
let A = G(), j = H(({ state: e, url: t }) => {
|
|
82755
82755
|
typeof window < "u" && window.location.href === t && (Q5e(e), A.current = window.location.href);
|
|
82756
|
-
}, []), M =
|
|
82756
|
+
}, []), M = te(j, e7e), N = () => {
|
|
82757
82757
|
M.cancel(), A.current = typeof window > "u" ? void 0 : window.location.href;
|
|
82758
82758
|
let e = typeof window < "u" ? window.location.search : "", t = iZ(e).visualization, n = t === void 0 ? u : d.indexOf(t), r = D && n >= 0 ? n : u, o = iZ(e, a?.[r] ?? i);
|
|
82759
82759
|
Object.keys(o).length === 0 && r === u ? y(!0) : (E({
|
|
@@ -82821,9 +82821,9 @@ var v5e = [
|
|
|
82821
82821
|
j
|
|
82822
82822
|
]), I = H((t) => {
|
|
82823
82823
|
!e && n && S(t);
|
|
82824
|
-
}, [e, n]), ee = e || t && (v || b) && !T,
|
|
82825
|
-
ee &&
|
|
82826
|
-
let
|
|
82824
|
+
}, [e, n]), ee = e || t && (v || b) && !T, ne = G();
|
|
82825
|
+
ee && ne.current === void 0 && (ne.current = u);
|
|
82826
|
+
let L = W(() => C || ne.current !== void 0 && u !== ne.current ? {
|
|
82827
82827
|
page: x,
|
|
82828
82828
|
search: s
|
|
82829
82829
|
} : void 0, [
|
|
@@ -82833,7 +82833,7 @@ var v5e = [
|
|
|
82833
82833
|
]);
|
|
82834
82834
|
return {
|
|
82835
82835
|
ready: ee,
|
|
82836
|
-
pageRequest: e || !n ? void 0 :
|
|
82836
|
+
pageRequest: e || !n ? void 0 : L,
|
|
82837
82837
|
onPageRequested: F,
|
|
82838
82838
|
onPageLoaded: I
|
|
82839
82839
|
};
|
|
@@ -83461,7 +83461,7 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83461
83461
|
})
|
|
83462
83462
|
});
|
|
83463
83463
|
}, F7e = 1500, I7e = 2e3, L7e = ({ source: e, visualizations: t, quickFilter: n, onSelectItems: r, onBulkAction: i, autoManageBulkActionStatus: a = !1, bulkActionStatus: s, onStateChange: c, emptyStates: l, fullHeight: d, storage: f, id: p, disableUrlParams: m, tmpFullWidth: h, csvExport: g, savingViewsDisabled: _, initialVisualization: v = 0, primaryActionsMenuVariant: y }) => {
|
|
83464
|
-
let { filters: b, currentFilters: x, setCurrentFilters: S, presets: C, presetsLoading: w, currentNavigationFilters: T, navigationFilters: E, setCurrentNavigationFilters: D, search: O, currentSearch: k, setCurrentSearch: A, isLoading: M, primaryActions: N, primaryActionsLabel: P, secondaryActions: F, upsellAction: I, totalItemSummary: ee, currentGrouping:
|
|
83464
|
+
let { filters: b, currentFilters: x, setCurrentFilters: S, presets: C, presetsLoading: w, currentNavigationFilters: T, navigationFilters: E, setCurrentNavigationFilters: D, search: O, currentSearch: k, setCurrentSearch: A, isLoading: M, primaryActions: N, primaryActionsLabel: P, secondaryActions: F, upsellAction: I, totalItemSummary: ee, currentGrouping: te, setCurrentGrouping: ne, grouping: L, currentSortings: re, setCurrentSortings: R, sortings: ie } = e, [z, ae] = K(v), [B, oe] = K(void 0), [se, ce] = K([]), [le, ue] = K(null), [de] = K(() => typeof window > "u" ? null : E7e(new URLSearchParams(window.location.search).get(dZ))), fe = Eqe(e.searchPreview, e.debouncedCurrentSearch), { effectiveFilters: pe, effectivePresets: me, currentFilters: he, setCurrentFilters: ge, allVisualizationFilters: _e, setAllVisualizationFilters: ve, hasPerVisualizationFilters: ye } = y7e({
|
|
83465
83465
|
sourceFilters: b,
|
|
83466
83466
|
sourcePresets: C,
|
|
83467
83467
|
sourceCurrentFilters: x,
|
|
@@ -83502,7 +83502,7 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83502
83502
|
he,
|
|
83503
83503
|
ge,
|
|
83504
83504
|
Ee
|
|
83505
|
-
]), Oe = G(re), ke = G(
|
|
83505
|
+
]), Oe = G(re), ke = G(te), Ae = G(he), { emitSortingChange: je } = Tte({
|
|
83506
83506
|
defaultSorting: Oe.current,
|
|
83507
83507
|
currentVisualization: ye ? z : void 0
|
|
83508
83508
|
});
|
|
@@ -83623,14 +83623,14 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83623
83623
|
let Wt = W(() => ({
|
|
83624
83624
|
filters: he,
|
|
83625
83625
|
sortings: re,
|
|
83626
|
-
grouping:
|
|
83626
|
+
grouping: te,
|
|
83627
83627
|
visualization: z,
|
|
83628
83628
|
settings: Ft,
|
|
83629
83629
|
quickFilter: Bt
|
|
83630
83630
|
}), [
|
|
83631
83631
|
he,
|
|
83632
83632
|
re,
|
|
83633
|
-
|
|
83633
|
+
te,
|
|
83634
83634
|
z,
|
|
83635
83635
|
Ft,
|
|
83636
83636
|
Vt
|
|
@@ -83649,7 +83649,7 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83649
83649
|
settings: b7e(),
|
|
83650
83650
|
quickFilter: void 0
|
|
83651
83651
|
}), []), Xt = H((e) => {
|
|
83652
|
-
R(e.sortings),
|
|
83652
|
+
R(e.sortings), ne(e.grouping), It(e.settings), e.visualization === z ? ge(e.filters) : (Jt.current = {
|
|
83653
83653
|
filters: e.filters,
|
|
83654
83654
|
visualization: e.visualization
|
|
83655
83655
|
}, ae(e.visualization)), Ut(e.quickFilter);
|
|
@@ -83657,7 +83657,7 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83657
83657
|
z,
|
|
83658
83658
|
ge,
|
|
83659
83659
|
R,
|
|
83660
|
-
|
|
83660
|
+
ne,
|
|
83661
83661
|
It,
|
|
83662
83662
|
Ut
|
|
83663
83663
|
]);
|
|
@@ -83723,7 +83723,7 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83723
83723
|
} : {
|
|
83724
83724
|
filter: he,
|
|
83725
83725
|
sortings: re,
|
|
83726
|
-
grouping:
|
|
83726
|
+
grouping: te,
|
|
83727
83727
|
visualization: z,
|
|
83728
83728
|
settings: Ft,
|
|
83729
83729
|
quickFilter: zt.current?.capture?.()
|
|
@@ -83738,7 +83738,7 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83738
83738
|
le,
|
|
83739
83739
|
he,
|
|
83740
83740
|
re,
|
|
83741
|
-
|
|
83741
|
+
te,
|
|
83742
83742
|
z,
|
|
83743
83743
|
Ft,
|
|
83744
83744
|
Lt
|
|
@@ -83799,8 +83799,8 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83799
83799
|
setValue: R
|
|
83800
83800
|
},
|
|
83801
83801
|
grouping: {
|
|
83802
|
-
value:
|
|
83803
|
-
setValue:
|
|
83802
|
+
value: te,
|
|
83803
|
+
setValue: ne
|
|
83804
83804
|
},
|
|
83805
83805
|
navigationFilters: {
|
|
83806
83806
|
value: T,
|
|
@@ -83834,7 +83834,7 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83834
83834
|
definition: {
|
|
83835
83835
|
filters: b,
|
|
83836
83836
|
sortings: ie,
|
|
83837
|
-
grouping:
|
|
83837
|
+
grouping: L,
|
|
83838
83838
|
navigationFilters: E,
|
|
83839
83839
|
search: O,
|
|
83840
83840
|
visualizationCount: t.length
|
|
@@ -83881,7 +83881,7 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83881
83881
|
filters: he,
|
|
83882
83882
|
sortings: re,
|
|
83883
83883
|
visualization: z,
|
|
83884
|
-
grouping:
|
|
83884
|
+
grouping: te,
|
|
83885
83885
|
search: k,
|
|
83886
83886
|
navigationFilters: T,
|
|
83887
83887
|
settings: Ft,
|
|
@@ -83893,16 +83893,16 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83893
83893
|
T,
|
|
83894
83894
|
re,
|
|
83895
83895
|
z,
|
|
83896
|
-
|
|
83896
|
+
te,
|
|
83897
83897
|
Ft,
|
|
83898
83898
|
_e
|
|
83899
83899
|
]);
|
|
83900
83900
|
let vn = W(() => {
|
|
83901
|
-
let e =
|
|
83902
|
-
return e > 0 && !
|
|
83901
|
+
let e = L ? Object.keys(L.groupBy).length + +!!L.mandatory : 0, n = Object.values(t).find((e) => e.type === "table"), r = !!n && (!!n.options?.allowColumnHiding || !!n.options?.allowColumnReordering);
|
|
83902
|
+
return e > 0 && !L?.hideSelector || ie && Object.keys(ie).length > 0 || r;
|
|
83903
83903
|
}, [
|
|
83904
83904
|
t,
|
|
83905
|
-
|
|
83905
|
+
L,
|
|
83906
83906
|
ie
|
|
83907
83907
|
]), yn = W(() => Et || Be || vn || O && O.enabled, [
|
|
83908
83908
|
Et,
|
|
@@ -83989,9 +83989,9 @@ var dZ = "dc_shared_view", C7e = (e) => {
|
|
|
83989
83989
|
vn ? /* @__PURE__ */ q(P7e, {
|
|
83990
83990
|
visualizations: t,
|
|
83991
83991
|
currentVisualization: z,
|
|
83992
|
-
grouping:
|
|
83993
|
-
currentGrouping:
|
|
83994
|
-
onGroupingChange:
|
|
83992
|
+
grouping: L,
|
|
83993
|
+
currentGrouping: te,
|
|
83994
|
+
onGroupingChange: ne,
|
|
83995
83995
|
sortings: ie,
|
|
83996
83996
|
currentSortings: re,
|
|
83997
83997
|
defaultSortings: Oe.current,
|
|
@@ -84354,18 +84354,18 @@ function Z7e({ field: e, formField: t, error: n }) {
|
|
|
84354
84354
|
M(e);
|
|
84355
84355
|
let n = e.map(({ __key: e, ...t }) => k(t));
|
|
84356
84356
|
I.current = JSON.stringify(n), t.onChange(n);
|
|
84357
|
-
}, [t, k]),
|
|
84358
|
-
let { __key: n, ...r } = e, i = k(r), o =
|
|
84357
|
+
}, [t, k]), te = e.onRemove, ne = e.confirmRemove, L = H(async (e) => {
|
|
84358
|
+
let { __key: n, ...r } = e, i = k(r), o = ne ? ne(i) : {
|
|
84359
84359
|
type: "critical",
|
|
84360
84360
|
title: a.removeConfirmTitle,
|
|
84361
84361
|
msg: a.removeConfirmMessage,
|
|
84362
84362
|
confirm: { label: g }
|
|
84363
84363
|
};
|
|
84364
84364
|
if (await Pq.confirmation(o)) {
|
|
84365
|
-
if (
|
|
84365
|
+
if (te) {
|
|
84366
84366
|
P((e) => new Set(e).add(n));
|
|
84367
84367
|
try {
|
|
84368
|
-
let e = await
|
|
84368
|
+
let e = await te(i);
|
|
84369
84369
|
if (e && e.success === !1) {
|
|
84370
84370
|
await Pq.alert({
|
|
84371
84371
|
type: "critical",
|
|
@@ -84394,8 +84394,8 @@ function Z7e({ field: e, formField: t, error: n }) {
|
|
|
84394
84394
|
j,
|
|
84395
84395
|
ee,
|
|
84396
84396
|
t,
|
|
84397
|
-
L,
|
|
84398
84397
|
te,
|
|
84398
|
+
ne,
|
|
84399
84399
|
k,
|
|
84400
84400
|
a,
|
|
84401
84401
|
g
|
|
@@ -84539,7 +84539,7 @@ function Z7e({ field: e, formField: t, error: n }) {
|
|
|
84539
84539
|
item: r,
|
|
84540
84540
|
index: t,
|
|
84541
84541
|
update: (t) => ee(q7e(j, e.__key, t)),
|
|
84542
|
-
remove: () => void
|
|
84542
|
+
remove: () => void L(e)
|
|
84543
84543
|
})
|
|
84544
84544
|
}));
|
|
84545
84545
|
} : void 0, { hasInvalidRow: ve, hasInvalidExistingRow: ye } = W(() => {
|
|
@@ -84577,8 +84577,8 @@ function Z7e({ field: e, formField: t, error: n }) {
|
|
|
84577
84577
|
t && le("edit", t);
|
|
84578
84578
|
}, [xe, le]), Ce = H((e) => {
|
|
84579
84579
|
let t = xe(e);
|
|
84580
|
-
t &&
|
|
84581
|
-
}, [xe,
|
|
84580
|
+
t && L(t);
|
|
84581
|
+
}, [xe, L]), we = H((e) => {
|
|
84582
84582
|
let t = xe(e);
|
|
84583
84583
|
return !t || ie(t);
|
|
84584
84584
|
}, [xe, ie]), Te = H((e) => {
|
|
@@ -84603,7 +84603,7 @@ function Z7e({ field: e, formField: t, error: n }) {
|
|
|
84603
84603
|
item: r,
|
|
84604
84604
|
index: t,
|
|
84605
84605
|
update: (t) => ee(q7e(j, e, t)),
|
|
84606
|
-
remove: () => void
|
|
84606
|
+
remove: () => void L(j[t])
|
|
84607
84607
|
})
|
|
84608
84608
|
}));
|
|
84609
84609
|
}, [
|
|
@@ -84611,7 +84611,7 @@ function Z7e({ field: e, formField: t, error: n }) {
|
|
|
84611
84611
|
j,
|
|
84612
84612
|
ee,
|
|
84613
84613
|
t,
|
|
84614
|
-
|
|
84614
|
+
L
|
|
84615
84615
|
]), Ae = e.validation ? JH(e.validation, "entitiesList") : !1, je = /* @__PURE__ */ J("div", {
|
|
84616
84616
|
className: "flex w-full items-center justify-between gap-3",
|
|
84617
84617
|
children: [/* @__PURE__ */ J("label", {
|
|
@@ -84677,7 +84677,7 @@ function Z7e({ field: e, formField: t, error: n }) {
|
|
|
84677
84677
|
},
|
|
84678
84678
|
sortableRows: e.sortable !== !1,
|
|
84679
84679
|
onReorderRows: ({ items: e }) => ee(e),
|
|
84680
|
-
onRemoveRow: (e) => void
|
|
84680
|
+
onRemoveRow: (e) => void L(e),
|
|
84681
84681
|
onEditRow: E ? (e) => le("edit", e) : void 0,
|
|
84682
84682
|
canEditRow: ie,
|
|
84683
84683
|
canRemoveRow: z,
|
|
@@ -84966,14 +84966,14 @@ function c9e({ field: e, formField: t, error: n, statusType: r, initialFiles: i
|
|
|
84966
84966
|
g,
|
|
84967
84967
|
h,
|
|
84968
84968
|
t
|
|
84969
|
-
]),
|
|
84969
|
+
]), te = H((e, t) => {
|
|
84970
84970
|
_((n) => n.map((n) => n.key === e ? {
|
|
84971
84971
|
...n,
|
|
84972
84972
|
error: t
|
|
84973
84973
|
} : n));
|
|
84974
|
-
}, []),
|
|
84974
|
+
}, []), ne = p ? x.dropzoneActive : e.description ?? (h ? x.dropzoneMultiple : x.dropzone), L = !!(n || y || r === "error"), re = L || r === "warning" || r === "info", R = a9e({
|
|
84975
84975
|
isDragOver: p,
|
|
84976
|
-
hasCriticalStatus:
|
|
84976
|
+
hasCriticalStatus: L,
|
|
84977
84977
|
statusType: r
|
|
84978
84978
|
});
|
|
84979
84979
|
return /* @__PURE__ */ J("div", {
|
|
@@ -84985,7 +84985,7 @@ function c9e({ field: e, formField: t, error: n, statusType: r, initialFiles: i
|
|
|
84985
84985
|
}) : null,
|
|
84986
84986
|
!u && T ? /* @__PURE__ */ q(s9e, {
|
|
84987
84987
|
disabled: e.disabled,
|
|
84988
|
-
text:
|
|
84988
|
+
text: ne,
|
|
84989
84989
|
acceptedTypesLabel: D,
|
|
84990
84990
|
acceptedTypesTemplate: x.acceptedTypes,
|
|
84991
84991
|
statusClasses: R,
|
|
@@ -85028,7 +85028,7 @@ function c9e({ field: e, formField: t, error: n, statusType: r, initialFiles: i
|
|
|
85028
85028
|
useUpload: t.file ? c : void 0,
|
|
85029
85029
|
onUploadComplete: (e) => I(t.key, e),
|
|
85030
85030
|
onRemove: () => ee(t.key),
|
|
85031
|
-
onError: (e) =>
|
|
85031
|
+
onError: (e) => te(t.key, e),
|
|
85032
85032
|
disabled: e.disabled,
|
|
85033
85033
|
position: i,
|
|
85034
85034
|
translations: {
|
|
@@ -85135,74 +85135,78 @@ var l9e = {
|
|
|
85135
85135
|
emptyMessage: i,
|
|
85136
85136
|
liveStatus: e === "searching" ? r.locationInput.searching : e === "error" || e === "empty" ? i : n ? r.t(n === 1 ? "locationInput.resultsCount.one" : "locationInput.resultsCount.other", { count: n }) : ""
|
|
85137
85137
|
};
|
|
85138
|
-
}, _9e = ({ label: e, hideLabel: t, labelIcon: n, placeholder: r, text: i, placeId: a, country: s, searchPlaces: c, onPick: l, onClear: u, onEnterManually: d,
|
|
85139
|
-
let
|
|
85138
|
+
}, _9e = ({ label: e, hideLabel: t, labelIcon: n, placeholder: r, text: i, placeId: a, country: s, searchPlaces: c, onPick: l, onClear: u, onEnterManually: d, keepTyped: f, onKeepTyped: p, status: m, required: h, disabled: g, readonly: _, loading: v, clearable: y, size: b, name: x }) => {
|
|
85139
|
+
let S = o(), C = g || _, { suggestions: w, status: T, answer: E, isSearching: D, query: O, search: k, reset: A } = p9e({
|
|
85140
85140
|
searchPlaces: c,
|
|
85141
85141
|
country: s,
|
|
85142
|
-
enabled: !
|
|
85143
|
-
}),
|
|
85142
|
+
enabled: !C
|
|
85143
|
+
}), j = W(() => w.map((e) => ({
|
|
85144
85144
|
value: e.id,
|
|
85145
85145
|
label: [e.label, e.description].filter(Boolean).join(", ")
|
|
85146
|
-
})), [
|
|
85147
|
-
value:
|
|
85146
|
+
})), [w]), M = i ? a ?? m9e : void 0, N = W(() => M ? {
|
|
85147
|
+
value: M,
|
|
85148
85148
|
label: i
|
|
85149
|
-
} : void 0, [
|
|
85150
|
-
status:
|
|
85151
|
-
answer:
|
|
85152
|
-
resultCount:
|
|
85153
|
-
}),
|
|
85149
|
+
} : void 0, [M, i]), [P, F] = K(!1), I = G(!1), ee = P && E !== void 0, { emptyMessage: te, liveStatus: ne } = g9e({
|
|
85150
|
+
status: T,
|
|
85151
|
+
answer: E,
|
|
85152
|
+
resultCount: w.length
|
|
85153
|
+
}), L = E === "empty" && d ? /* @__PURE__ */ q("div", {
|
|
85154
85154
|
className: "flex w-full justify-center",
|
|
85155
85155
|
children: /* @__PURE__ */ q(B, {
|
|
85156
85156
|
type: "button",
|
|
85157
85157
|
variant: "ghost",
|
|
85158
85158
|
size: "sm",
|
|
85159
|
-
label:
|
|
85160
|
-
onClick: () => d(
|
|
85159
|
+
label: S.locationInput.enterManually,
|
|
85160
|
+
onClick: () => d(O.trim())
|
|
85161
85161
|
})
|
|
85162
|
-
}) : void 0,
|
|
85162
|
+
}) : void 0, re = {
|
|
85163
85163
|
label: e,
|
|
85164
85164
|
hideLabel: t,
|
|
85165
85165
|
labelIcon: n,
|
|
85166
|
-
placeholder: r ??
|
|
85167
|
-
options:
|
|
85166
|
+
placeholder: r ?? S.locationInput.placeholder,
|
|
85167
|
+
options: j,
|
|
85168
85168
|
searchFn: h9e,
|
|
85169
|
-
value:
|
|
85170
|
-
defaultItem:
|
|
85169
|
+
value: M,
|
|
85170
|
+
defaultItem: N,
|
|
85171
85171
|
onChange: (e) => {
|
|
85172
|
-
if (e ===
|
|
85173
|
-
let t =
|
|
85174
|
-
t && l(t);
|
|
85172
|
+
if (e === M) return;
|
|
85173
|
+
let t = w.find((t) => t.id === e);
|
|
85174
|
+
t && (I.current = !0, l(t));
|
|
85175
85175
|
},
|
|
85176
85176
|
hideArrow: !0,
|
|
85177
85177
|
showSearchBox: !0,
|
|
85178
|
-
searchBoxPlaceholder:
|
|
85179
|
-
searchEmptyMessage:
|
|
85180
|
-
searchEmptyAction:
|
|
85178
|
+
searchBoxPlaceholder: S.locationInput.placeholder,
|
|
85179
|
+
searchEmptyMessage: te,
|
|
85180
|
+
searchEmptyAction: L,
|
|
85181
85181
|
spaciousEmptyState: !0,
|
|
85182
|
-
onSearchChange:
|
|
85183
|
-
open:
|
|
85182
|
+
onSearchChange: k,
|
|
85183
|
+
open: ee,
|
|
85184
85184
|
onOpenChange: (e) => {
|
|
85185
|
-
|
|
85185
|
+
if (F(e), e) I.current = !1;
|
|
85186
|
+
else {
|
|
85187
|
+
let e = O.trim();
|
|
85188
|
+
f && e && e !== i && !I.current && p(e), A();
|
|
85189
|
+
}
|
|
85186
85190
|
},
|
|
85187
|
-
status:
|
|
85188
|
-
required:
|
|
85189
|
-
disabled:
|
|
85190
|
-
loading:
|
|
85191
|
-
size:
|
|
85192
|
-
name:
|
|
85193
|
-
},
|
|
85191
|
+
status: m,
|
|
85192
|
+
required: h,
|
|
85193
|
+
disabled: C,
|
|
85194
|
+
loading: v || D,
|
|
85195
|
+
size: b,
|
|
85196
|
+
name: x
|
|
85197
|
+
}, R = /* @__PURE__ */ q("span", {
|
|
85194
85198
|
className: "sr-only",
|
|
85195
85199
|
role: "status",
|
|
85196
85200
|
"aria-live": "polite",
|
|
85197
|
-
children:
|
|
85201
|
+
children: ne
|
|
85198
85202
|
});
|
|
85199
|
-
return /* @__PURE__ */ J(oa, { children: [
|
|
85200
|
-
...
|
|
85203
|
+
return /* @__PURE__ */ J(oa, { children: [y ? /* @__PURE__ */ q(wi, {
|
|
85204
|
+
...re,
|
|
85201
85205
|
clearable: !0,
|
|
85202
85206
|
onChangeSelectedOption: (e, t) => {
|
|
85203
|
-
(!e || !t) && u();
|
|
85207
|
+
(!e || !t) && (I.current = !0, u());
|
|
85204
85208
|
}
|
|
85205
|
-
}) : /* @__PURE__ */ q(wi, { ...
|
|
85209
|
+
}) : /* @__PURE__ */ q(wi, { ...re }), R] });
|
|
85206
85210
|
}, v9e = (e, t) => (t ?? Object.keys(e)).filter((t) => t in e).map((t) => ({
|
|
85207
85211
|
value: t,
|
|
85208
85212
|
label: e[t],
|
|
@@ -85271,133 +85275,137 @@ var l9e = {
|
|
|
85271
85275
|
} : t ? {
|
|
85272
85276
|
type: "default",
|
|
85273
85277
|
message: t
|
|
85274
|
-
} : e, S9e = Zi(function({ label: e, value: t, defaultValue: n, onChange: r, manualEntry: i = !1, manualEntryFallback: a = !0,
|
|
85275
|
-
let
|
|
85278
|
+
} : e, S9e = Zi(function({ label: e, value: t, defaultValue: n, onChange: r, manualEntry: i = !1, manualEntryFallback: a = !0, keepTypedAddress: s = !1, partLabels: c, allowedCountries: l, defaultCountry: u, searchPlaces: d, resolvePlace: f, placeholder: p, hideLabel: m = !1, labelIcon: h, hint: g, error: _, status: v, required: y = !1, disabled: b = !1, readonly: x = !1, loading: S = !1, clearable: C = !1, size: w = "md", name: T, autoFocus: E, onBlur: D, onFocus: O }, k) {
|
|
85279
|
+
let A = o(), { value: j, setPart: M, setUnlistedAddress: N, setCountry: P, applyResolved: F, clear: I } = b9e({
|
|
85276
85280
|
value: t,
|
|
85277
85281
|
defaultValue: n,
|
|
85278
85282
|
onChange: r,
|
|
85279
|
-
getCountryName: H((e) => e ?
|
|
85280
|
-
}), [
|
|
85281
|
-
addressLine1:
|
|
85282
|
-
addressLine2:
|
|
85283
|
-
city:
|
|
85284
|
-
state:
|
|
85285
|
-
postalCode:
|
|
85286
|
-
country:
|
|
85283
|
+
getCountryName: H((e) => e ? A.countries[e] : void 0, [A.countries])
|
|
85284
|
+
}), [ee, te] = K(!1), ne = i || ee, L = W(() => ({
|
|
85285
|
+
addressLine1: c?.addressLine1 ?? (ne ? A.locationInput.addressLine1 : e),
|
|
85286
|
+
addressLine2: c?.addressLine2 ?? A.locationInput.addressLine2,
|
|
85287
|
+
city: c?.city ?? A.locationInput.city,
|
|
85288
|
+
state: c?.state ?? A.locationInput.state,
|
|
85289
|
+
postalCode: c?.postalCode ?? A.locationInput.postalCode,
|
|
85290
|
+
country: c?.country ?? A.locationInput.country
|
|
85287
85291
|
}), [
|
|
85288
|
-
|
|
85289
|
-
|
|
85292
|
+
c,
|
|
85293
|
+
ne,
|
|
85290
85294
|
e,
|
|
85291
|
-
|
|
85292
|
-
]),
|
|
85295
|
+
A.locationInput
|
|
85296
|
+
]), re = u ?? (l?.length === 1 ? l[0] : void 0), [R, ie] = K(), [z, ae] = K(!1), B = G(0);
|
|
85293
85297
|
U(() => () => {
|
|
85294
|
-
|
|
85298
|
+
B.current += 1;
|
|
85295
85299
|
}, []);
|
|
85296
|
-
let
|
|
85297
|
-
|
|
85298
|
-
},
|
|
85299
|
-
let t = ++
|
|
85300
|
-
|
|
85301
|
-
t ===
|
|
85300
|
+
let oe = () => {
|
|
85301
|
+
B.current += 1, ie(void 0), ae(!1);
|
|
85302
|
+
}, se = (e) => {
|
|
85303
|
+
let t = ++B.current;
|
|
85304
|
+
f ? (ie(e.label), ae(!0), d9e(() => f(e.id)).then((n) => {
|
|
85305
|
+
t === B.current && (n ? F({
|
|
85302
85306
|
...n,
|
|
85303
85307
|
placeId: n.placeId ?? e.id
|
|
85304
|
-
}) :
|
|
85308
|
+
}) : N(e.label));
|
|
85305
85309
|
}).catch((n) => {
|
|
85306
|
-
t ===
|
|
85310
|
+
t === B.current && (process.env.NODE_ENV !== "production" && console.warn("F0LocationInput: resolvePlace rejected", n), N(e.label));
|
|
85307
85311
|
}).finally(() => {
|
|
85308
|
-
t ===
|
|
85309
|
-
})) :
|
|
85310
|
-
},
|
|
85311
|
-
|
|
85312
|
-
},
|
|
85313
|
-
|
|
85314
|
-
},
|
|
85315
|
-
|
|
85316
|
-
|
|
85317
|
-
|
|
85318
|
-
|
|
85319
|
-
|
|
85320
|
-
|
|
85321
|
-
|
|
85322
|
-
|
|
85323
|
-
|
|
85324
|
-
|
|
85325
|
-
|
|
85326
|
-
|
|
85327
|
-
|
|
85328
|
-
|
|
85329
|
-
|
|
85330
|
-
|
|
85331
|
-
|
|
85332
|
-
|
|
85333
|
-
|
|
85334
|
-
|
|
85335
|
-
|
|
85336
|
-
|
|
85337
|
-
|
|
85338
|
-
|
|
85339
|
-
|
|
85340
|
-
|
|
85341
|
-
|
|
85342
|
-
|
|
85343
|
-
|
|
85344
|
-
|
|
85345
|
-
|
|
85346
|
-
|
|
85347
|
-
|
|
85348
|
-
|
|
85349
|
-
|
|
85350
|
-
|
|
85351
|
-
|
|
85352
|
-
|
|
85353
|
-
|
|
85354
|
-
|
|
85355
|
-
|
|
85356
|
-
|
|
85357
|
-
|
|
85358
|
-
|
|
85312
|
+
t === B.current && (ie(void 0), ae(!1));
|
|
85313
|
+
})) : N(e.label);
|
|
85314
|
+
}, ce = (e) => {
|
|
85315
|
+
oe(), e && N(e), te(!0);
|
|
85316
|
+
}, le = (e) => {
|
|
85317
|
+
oe(), M("addressLine1", e);
|
|
85318
|
+
}, ue = () => {
|
|
85319
|
+
oe(), I();
|
|
85320
|
+
}, de = x9e({
|
|
85321
|
+
status: v,
|
|
85322
|
+
hint: g,
|
|
85323
|
+
error: _
|
|
85324
|
+
}), fe = ta(), pe = ne && de ? { type: de.type } : de, me = d && !ne ? /* @__PURE__ */ q(_9e, {
|
|
85325
|
+
label: L.addressLine1,
|
|
85326
|
+
hideLabel: m,
|
|
85327
|
+
labelIcon: h,
|
|
85328
|
+
placeholder: p,
|
|
85329
|
+
text: R ?? j?.formatted ?? j?.addressLine1 ?? "",
|
|
85330
|
+
placeId: j?.placeId,
|
|
85331
|
+
country: re,
|
|
85332
|
+
searchPlaces: d,
|
|
85333
|
+
onPick: se,
|
|
85334
|
+
onClear: ue,
|
|
85335
|
+
onEnterManually: a ? ce : void 0,
|
|
85336
|
+
keepTyped: s,
|
|
85337
|
+
onKeepTyped: le,
|
|
85338
|
+
status: pe,
|
|
85339
|
+
required: y,
|
|
85340
|
+
disabled: b,
|
|
85341
|
+
readonly: x,
|
|
85342
|
+
loading: S || z,
|
|
85343
|
+
clearable: C,
|
|
85344
|
+
size: w,
|
|
85345
|
+
name: T
|
|
85346
|
+
}) : ne ? null : /* @__PURE__ */ q(_r, {
|
|
85347
|
+
ref: k,
|
|
85348
|
+
label: L.addressLine1,
|
|
85349
|
+
hideLabel: m,
|
|
85350
|
+
labelIcon: h,
|
|
85351
|
+
placeholder: p,
|
|
85352
|
+
value: j?.addressLine1 ?? "",
|
|
85353
|
+
onChange: (e) => M("addressLine1", e),
|
|
85354
|
+
status: pe,
|
|
85355
|
+
required: y,
|
|
85356
|
+
disabled: b,
|
|
85357
|
+
readonly: x,
|
|
85358
|
+
loading: S,
|
|
85359
|
+
clearable: C,
|
|
85360
|
+
size: w,
|
|
85361
|
+
name: T,
|
|
85362
|
+
autoFocus: E
|
|
85363
|
+
});
|
|
85364
|
+
return ne ? /* @__PURE__ */ J("fieldset", {
|
|
85365
|
+
onFocus: O,
|
|
85366
|
+
onBlur: D,
|
|
85359
85367
|
className: "m-0 flex min-w-0 flex-col gap-3 border-0 p-0",
|
|
85360
85368
|
"aria-label": e,
|
|
85361
|
-
"aria-busy":
|
|
85362
|
-
"aria-required":
|
|
85363
|
-
"aria-describedby":
|
|
85364
|
-
"aria-invalid":
|
|
85369
|
+
"aria-busy": z || void 0,
|
|
85370
|
+
"aria-required": y || void 0,
|
|
85371
|
+
"aria-describedby": de?.message ? fe : void 0,
|
|
85372
|
+
"aria-invalid": de?.type === "error" || void 0,
|
|
85365
85373
|
children: [
|
|
85366
85374
|
/* @__PURE__ */ q(y9e, {
|
|
85367
|
-
label:
|
|
85368
|
-
value:
|
|
85369
|
-
onChange:
|
|
85370
|
-
allowedCountries:
|
|
85371
|
-
size:
|
|
85372
|
-
disabled:
|
|
85373
|
-
readonly:
|
|
85374
|
-
name:
|
|
85375
|
+
label: L.country,
|
|
85376
|
+
value: j?.country,
|
|
85377
|
+
onChange: P,
|
|
85378
|
+
allowedCountries: l,
|
|
85379
|
+
size: w,
|
|
85380
|
+
disabled: b,
|
|
85381
|
+
readonly: x,
|
|
85382
|
+
name: T ? `${T}.country` : void 0
|
|
85375
85383
|
}),
|
|
85376
85384
|
/* @__PURE__ */ q(u9e, {
|
|
85377
|
-
autoFocus:
|
|
85378
|
-
required:
|
|
85379
|
-
value:
|
|
85380
|
-
labels:
|
|
85385
|
+
autoFocus: E || ee,
|
|
85386
|
+
required: y,
|
|
85387
|
+
value: j,
|
|
85388
|
+
labels: L,
|
|
85381
85389
|
onChangePart: (e, t) => {
|
|
85382
|
-
|
|
85390
|
+
oe(), M(e, t);
|
|
85383
85391
|
},
|
|
85384
|
-
size:
|
|
85385
|
-
disabled:
|
|
85386
|
-
readonly:
|
|
85387
|
-
name:
|
|
85392
|
+
size: w,
|
|
85393
|
+
disabled: b,
|
|
85394
|
+
readonly: x,
|
|
85395
|
+
name: T
|
|
85388
85396
|
}),
|
|
85389
85397
|
/* @__PURE__ */ q("div", {
|
|
85390
|
-
id:
|
|
85391
|
-
role:
|
|
85398
|
+
id: fe,
|
|
85399
|
+
role: de?.type === "error" ? "alert" : "status",
|
|
85392
85400
|
"aria-live": "polite",
|
|
85393
|
-
children: /* @__PURE__ */ q(di, { status:
|
|
85401
|
+
children: /* @__PURE__ */ q(di, { status: de })
|
|
85394
85402
|
})
|
|
85395
85403
|
]
|
|
85396
|
-
}) :
|
|
85397
|
-
onFocus:
|
|
85398
|
-
onBlur:
|
|
85399
|
-
children:
|
|
85400
|
-
}) :
|
|
85404
|
+
}) : O || D ? /* @__PURE__ */ q("div", {
|
|
85405
|
+
onFocus: O,
|
|
85406
|
+
onBlur: D,
|
|
85407
|
+
children: me
|
|
85408
|
+
}) : me;
|
|
85401
85409
|
}), mZ = c("F0LocationInput", S9e);
|
|
85402
85410
|
//#endregion
|
|
85403
85411
|
//#region src/blocks/F0Form/fields/location/LocationFieldRenderer.tsx
|
|
@@ -87930,11 +87938,11 @@ var pnt = {
|
|
|
87930
87938
|
let k = o(), A = ta(), j = w ?? A, [M, N] = Fne({
|
|
87931
87939
|
prop: t,
|
|
87932
87940
|
defaultProp: n
|
|
87933
|
-
}), P = vt(a), F = W(() => Ct(M, P), [M, P]), [I, ee] = K(() => Fe(M) ?? P),
|
|
87934
|
-
|
|
87935
|
-
},
|
|
87936
|
-
let t = Dt(e,
|
|
87937
|
-
N(t), r?.(t, cte(e,
|
|
87941
|
+
}), P = vt(a), F = W(() => Ct(M, P), [M, P]), [I, ee] = K(() => Fe(M) ?? P), te = G(I), ne = (e) => {
|
|
87942
|
+
te.current = e, ee(e), i?.(qn(e));
|
|
87943
|
+
}, L = (e) => {
|
|
87944
|
+
let t = Dt(e, te.current);
|
|
87945
|
+
N(t), r?.(t, cte(e, te.current));
|
|
87938
87946
|
}, re = W(() => {
|
|
87939
87947
|
let e = { country: k.phoneInput.country };
|
|
87940
87948
|
for (let [t, n] of Object.entries(k.countries)) e[t.toUpperCase()] = n;
|
|
@@ -87992,8 +88000,8 @@ var pnt = {
|
|
|
87992
88000
|
children: [/* @__PURE__ */ q(lnt, {
|
|
87993
88001
|
className: "flex h-full min-w-0 flex-1 items-center",
|
|
87994
88002
|
value: F ?? void 0,
|
|
87995
|
-
onChange:
|
|
87996
|
-
onCountryChange:
|
|
88003
|
+
onChange: L,
|
|
88004
|
+
onCountryChange: ne,
|
|
87997
88005
|
defaultCountry: I ?? P,
|
|
87998
88006
|
countries: z,
|
|
87999
88007
|
countryOptionsOrder: R,
|
|
@@ -88027,7 +88035,7 @@ var pnt = {
|
|
|
88027
88035
|
tabIndex: 0,
|
|
88028
88036
|
"data-testid": "clear-button",
|
|
88029
88037
|
onClick: (e) => {
|
|
88030
|
-
e.stopPropagation(),
|
|
88038
|
+
e.stopPropagation(), L(void 0);
|
|
88031
88039
|
},
|
|
88032
88040
|
children: /* @__PURE__ */ q(Cr, {
|
|
88033
88041
|
icon: Ar,
|
|
@@ -98444,10 +98452,10 @@ function ydt(e) {
|
|
|
98444
98452
|
};
|
|
98445
98453
|
if (S) {
|
|
98446
98454
|
if (a) {
|
|
98447
|
-
var k = b === "y" ? "top" : T0, A = b === "y" ? C0 : w0, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], F = p ? -w[j] / 2 : 0, I = v === "start" ? C[j] : w[j], ee = v === "start" ? -w[j] : -C[j],
|
|
98455
|
+
var k = b === "y" ? "top" : T0, A = b === "y" ? C0 : w0, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], F = p ? -w[j] / 2 : 0, I = v === "start" ? C[j] : w[j], ee = v === "start" ? -w[j] : -C[j], te = t.elements.arrow, ne = p && te ? z0(te) : {
|
|
98448
98456
|
width: 0,
|
|
98449
98457
|
height: 0
|
|
98450
|
-
},
|
|
98458
|
+
}, L = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Put(), re = L[k], R = L[A], ie = G0(0, C[j], ne[j]), z = y ? C[j] / 2 - F - ie - re - E.mainAxis : I - ie - re - E.mainAxis, ae = y ? -C[j] / 2 + F + ie + R + E.mainAxis : ee + ie + R + E.mainAxis, B = t.elements.arrow && U0(t.elements.arrow), oe = B ? b === "y" ? B.clientTop || 0 : B.clientLeft || 0 : 0, se = D?.[b] ?? 0, ce = M + z - se - oe, le = M + ae - se, ue = G0(p ? F0(N, ce) : N, M, p ? P0(P, le) : P);
|
|
98451
98459
|
S[b] = ue, O[b] = ue - M;
|
|
98452
98460
|
}
|
|
98453
98461
|
if (s) {
|
|
@@ -99093,19 +99101,19 @@ function Tft(e, t) {
|
|
|
99093
99101
|
}
|
|
99094
99102
|
}
|
|
99095
99103
|
}
|
|
99096
|
-
function
|
|
99104
|
+
function te() {
|
|
99097
99105
|
c = !0;
|
|
99098
99106
|
}
|
|
99099
|
-
function
|
|
99107
|
+
function ne() {
|
|
99100
99108
|
c = !1;
|
|
99101
99109
|
}
|
|
99102
|
-
function
|
|
99110
|
+
function L() {
|
|
99103
99111
|
var e = k();
|
|
99104
|
-
e.addEventListener("mousedown", ee, !0), e.addEventListener("touchend", ee, t2), e.addEventListener("touchstart",
|
|
99112
|
+
e.addEventListener("mousedown", ee, !0), e.addEventListener("touchend", ee, t2), e.addEventListener("touchstart", ne, t2), e.addEventListener("touchmove", te, t2);
|
|
99105
99113
|
}
|
|
99106
99114
|
function re() {
|
|
99107
99115
|
var e = k();
|
|
99108
|
-
e.removeEventListener("mousedown", ee, !0), e.removeEventListener("touchend", ee, t2), e.removeEventListener("touchstart",
|
|
99116
|
+
e.removeEventListener("mousedown", ee, !0), e.removeEventListener("touchend", ee, t2), e.removeEventListener("touchstart", ne, t2), e.removeEventListener("touchmove", te, t2);
|
|
99109
99117
|
}
|
|
99110
99118
|
function R(e, t) {
|
|
99111
99119
|
z(e, function() {
|
|
@@ -99265,7 +99273,7 @@ function Tft(e, t) {
|
|
|
99265
99273
|
return a2(x.querySelectorAll("[data-tippy-root]"));
|
|
99266
99274
|
}
|
|
99267
99275
|
function ge(e) {
|
|
99268
|
-
y.clearDelayTimeouts(), e && N("onTrigger", [y, e]),
|
|
99276
|
+
y.clearDelayTimeouts(), e && N("onTrigger", [y, e]), L();
|
|
99269
99277
|
var t = j(!0), n = T(), i = n[0], a = n[1];
|
|
99270
99278
|
u2.isTouch && i === "hold" && a && (t = a), t ? r = setTimeout(function() {
|
|
99271
99279
|
y.show();
|
|
@@ -99310,7 +99318,7 @@ function Tft(e, t) {
|
|
|
99310
99318
|
process.env.NODE_ENV !== "production" && p2(y.state.isDestroyed, d2("show"));
|
|
99311
99319
|
var e = y.state.isVisible, t = y.state.isDestroyed, n = !y.state.isEnabled, r = u2.isTouch && !y.props.touch, i = n2(y.props.duration, 0, h2.duration);
|
|
99312
99320
|
if (!(e || t || n || r) && !O().hasAttribute("disabled") && (N("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
99313
|
-
if (y.state.isVisible = !0, D() && (x.style.visibility = "visible"), M(),
|
|
99321
|
+
if (y.state.isVisible = !0, D() && (x.style.visibility = "visible"), M(), L(), y.state.isMounted || (x.style.transition = "none"), D()) {
|
|
99314
99322
|
var a = A(), o = a.box, s = a.content;
|
|
99315
99323
|
c2([o, s], 0);
|
|
99316
99324
|
}
|
|
@@ -100359,9 +100367,9 @@ var M2 = ({ onSelect: e, enhancementOptions: t, inputPlaceholder: n, darkMode: r
|
|
|
100359
100367
|
})
|
|
100360
100368
|
});
|
|
100361
100369
|
}, N2 = Qi(function({ enhance: e, disabled: t, hideLabel: n, darkMode: r = !1, menuWidth: i, menuContainerRef: a, lockToViewportOnLock: s = !1, onOpenChange: c, hideReviewPanel: l = !1 }) {
|
|
100362
|
-
let { config: d, handleEnhanceWithAI: f, isLoading: p, isAcceptChangesOpen: m, acceptChanges: h, rejectChanges: g, retryChanges: _, reviewAnchorTop: v } = e, y = o(), b = G(null), x = G(!1), S = G(!1), [C, w] = K(!1), [T, E] = K(0), [D, O] = K(-5), [k, A] = K(-T), [M, N] = K(i), [P, F] = K(null), [I, ee] = K(null),
|
|
100370
|
+
let { config: d, handleEnhanceWithAI: f, isLoading: p, isAcceptChangesOpen: m, acceptChanges: h, rejectChanges: g, retryChanges: _, reviewAnchorTop: v } = e, y = o(), b = G(null), x = G(!1), S = G(!1), [C, w] = K(!1), [T, E] = K(0), [D, O] = K(-5), [k, A] = K(-T), [M, N] = K(i), [P, F] = K(null), [I, ee] = K(null), te = p || m;
|
|
100363
100371
|
ra(() => {
|
|
100364
|
-
if (!C ||
|
|
100372
|
+
if (!C || te && x.current) return;
|
|
100365
100373
|
let e = () => {
|
|
100366
100374
|
if (!b.current) return;
|
|
100367
100375
|
if (E(b.current.offsetHeight), !a?.current) {
|
|
@@ -100384,16 +100392,16 @@ var M2 = ({ onSelect: e, enhancementOptions: t, inputPlaceholder: n, darkMode: r
|
|
|
100384
100392
|
a,
|
|
100385
100393
|
i
|
|
100386
100394
|
]);
|
|
100387
|
-
let
|
|
100395
|
+
let ne = (e) => {
|
|
100388
100396
|
e.preventDefault(), b.current ? w((e) => {
|
|
100389
100397
|
let t = !e;
|
|
100390
100398
|
return x.current = t, t;
|
|
100391
100399
|
}) : (x.current = !1, w(!1));
|
|
100392
100400
|
};
|
|
100393
100401
|
ra(() => {
|
|
100394
|
-
|
|
100395
|
-
}, [
|
|
100396
|
-
let e =
|
|
100402
|
+
te && x.current && w(!0);
|
|
100403
|
+
}, [te]), ra(() => {
|
|
100404
|
+
let e = te && x.current, t = S.current;
|
|
100397
100405
|
if (e && !t) {
|
|
100398
100406
|
let e = b.current?.getBoundingClientRect();
|
|
100399
100407
|
if (e && s) {
|
|
@@ -100412,7 +100420,7 @@ var M2 = ({ onSelect: e, enhancementOptions: t, inputPlaceholder: n, darkMode: r
|
|
|
100412
100420
|
}
|
|
100413
100421
|
!e && t && (F(null), ee(null), l && (x.current = !1, w(!1))), S.current = e;
|
|
100414
100422
|
}, [
|
|
100415
|
-
|
|
100423
|
+
te,
|
|
100416
100424
|
D,
|
|
100417
100425
|
k,
|
|
100418
100426
|
M,
|
|
@@ -100420,7 +100428,7 @@ var M2 = ({ onSelect: e, enhancementOptions: t, inputPlaceholder: n, darkMode: r
|
|
|
100420
100428
|
]), U(() => {
|
|
100421
100429
|
c?.(C);
|
|
100422
100430
|
}, [C, c]);
|
|
100423
|
-
let
|
|
100431
|
+
let L = P?.alignOffset ?? D, re = P?.sideOffset ?? k, ie = P?.menuWidth ?? M, z = s && te && x.current && !!I, ae = () => {
|
|
100424
100432
|
x.current = !1, w(!1);
|
|
100425
100433
|
}, B = {
|
|
100426
100434
|
onSelect: ({ selectedIntent: e, customIntent: t }) => {
|
|
@@ -100439,16 +100447,16 @@ var M2 = ({ onSelect: e, enhancementOptions: t, inputPlaceholder: n, darkMode: r
|
|
|
100439
100447
|
g?.(), ae();
|
|
100440
100448
|
},
|
|
100441
100449
|
onRetry: _,
|
|
100442
|
-
canShowOptions: !
|
|
100450
|
+
canShowOptions: !te,
|
|
100443
100451
|
compactReview: s
|
|
100444
100452
|
}, oe = (e) => {
|
|
100445
|
-
|
|
100453
|
+
te && e.preventDefault();
|
|
100446
100454
|
};
|
|
100447
100455
|
return /* @__PURE__ */ J(Ii, {
|
|
100448
100456
|
open: C,
|
|
100449
100457
|
modal: !1,
|
|
100450
100458
|
onOpenChange: (e) => {
|
|
100451
|
-
(e || !
|
|
100459
|
+
(e || !te) && (e || (x.current = !1), w(e));
|
|
100452
100460
|
},
|
|
100453
100461
|
children: [/* @__PURE__ */ q(zi, {
|
|
100454
100462
|
asChild: !0,
|
|
@@ -100458,7 +100466,7 @@ var M2 = ({ onSelect: e, enhancementOptions: t, inputPlaceholder: n, darkMode: r
|
|
|
100458
100466
|
ref: b,
|
|
100459
100467
|
icon: yie,
|
|
100460
100468
|
label: y.richTextEditor.ai.enhanceButtonLabel,
|
|
100461
|
-
onClick:
|
|
100469
|
+
onClick: ne,
|
|
100462
100470
|
disabled: t,
|
|
100463
100471
|
hideLabel: n
|
|
100464
100472
|
})
|
|
@@ -100491,7 +100499,7 @@ var M2 = ({ onSelect: e, enhancementOptions: t, inputPlaceholder: n, darkMode: r
|
|
|
100491
100499
|
side: "bottom",
|
|
100492
100500
|
align: "start",
|
|
100493
100501
|
sideOffset: re + 0,
|
|
100494
|
-
alignOffset:
|
|
100502
|
+
alignOffset: L,
|
|
100495
100503
|
collisionPadding: 10,
|
|
100496
100504
|
onEscapeKeyDown: oe,
|
|
100497
100505
|
onPointerDownOutside: oe,
|
|
@@ -110947,7 +110955,7 @@ var sSt = ({ aiBlockConfig: e, translations: t, imageUploadConfig: n }) => {
|
|
|
110947
110955
|
onRetry: t.retryChanges
|
|
110948
110956
|
})
|
|
110949
110957
|
}) }) : null }), ISt = Zi(function({ mentionsConfig: e, variablesConfig: t, enhanceConfig: n, filesConfig: r, secondaryAction: i, primaryAction: a, maxCharacters: s, initialEditorState: c, onChange: l, placeholder: d, title: f, height: p = "auto", plainHtmlMode: m = !1, isMarkdownOnly: h = !1, fullScreenMode: g = !0, onFullscreenChange: _, disabled: v = !1, error: y = !1, loading: b = !1, onTranscribe: x }, S) {
|
|
110950
|
-
let C = o(), w = ta(), T = G(null), E = G(null), D = G(null), O = G(null), [k, A] = K(!1), [M, N] = K(!0), [P, F] = K(!1), [I, ee] = K(!1), [
|
|
110958
|
+
let C = o(), w = ta(), T = G(null), E = G(null), D = G(null), O = G(null), [k, A] = K(!1), [M, N] = K(!0), [P, F] = K(!1), [I, ee] = K(!1), [te, ne] = K(0), [L, re] = K(c?.files || []), [R, ie] = K(e?.users || []);
|
|
110951
110959
|
U(() => (P ? (document.body.style.overflow = "hidden", ee(!0)) : (document.body.style.overflow = "", ee(!1)), () => {
|
|
110952
110960
|
document.body.style.overflow = "";
|
|
110953
110961
|
}), [P]), U(() => {
|
|
@@ -110961,7 +110969,7 @@ var sSt = ({ aiBlockConfig: e, translations: t, imageUploadConfig: n }) => {
|
|
|
110961
110969
|
}, [p, P]), U(() => {
|
|
110962
110970
|
if (!P || !I) return;
|
|
110963
110971
|
let e = () => {
|
|
110964
|
-
O.current &&
|
|
110972
|
+
O.current && ne(O.current.offsetWidth);
|
|
110965
110973
|
};
|
|
110966
110974
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
110967
110975
|
}, [P, I]);
|
|
@@ -111125,7 +111133,7 @@ var sSt = ({ aiBlockConfig: e, translations: t, imageUploadConfig: n }) => {
|
|
|
111125
111133
|
plainHtmlMode: m,
|
|
111126
111134
|
isMarkdownOnly: h,
|
|
111127
111135
|
toolbarRef: O,
|
|
111128
|
-
toolbarWidth:
|
|
111136
|
+
toolbarWidth: te,
|
|
111129
111137
|
onClose: () => {
|
|
111130
111138
|
ee(!1), queueMicrotask(() => de.commands.focus());
|
|
111131
111139
|
}
|
|
@@ -111188,7 +111196,7 @@ var sSt = ({ aiBlockConfig: e, translations: t, imageUploadConfig: n }) => {
|
|
|
111188
111196
|
}, "dictation-error") : null
|
|
111189
111197
|
}),
|
|
111190
111198
|
/* @__PURE__ */ q(pSt, {
|
|
111191
|
-
files:
|
|
111199
|
+
files: L,
|
|
111192
111200
|
disabled: pe.disableButtons,
|
|
111193
111201
|
filesConfig: r,
|
|
111194
111202
|
setFiles: re,
|
|
@@ -112695,9 +112703,9 @@ function MCt({ formName: e, sectionId: t, schema: n, sectionConfig: r, defaultVa
|
|
|
112695
112703
|
A,
|
|
112696
112704
|
M
|
|
112697
112705
|
]);
|
|
112698
|
-
let { registerInlineRow: F, openRowsWithErrors: I, closeRows: ee } = _Ct(H((e) => M.getFieldState(e).error, [M])),
|
|
112706
|
+
let { registerInlineRow: F, openRowsWithErrors: I, closeRows: ee } = _Ct(H((e) => M.getFieldState(e).error, [M])), te = H(() => {
|
|
112699
112707
|
M.reset(), ee();
|
|
112700
|
-
}, [M, ee]),
|
|
112708
|
+
}, [M, ee]), ne = M.formState.errors.root, { isSubmitting: L, isDirty: re } = M.formState, R = Object.keys(M.formState.errors).filter((e) => e !== "root"), ie = W(() => new Map(E8(S).filter((e) => !!e.renderIf).map((e) => [e.id, e])), [S]), z = R.some((e) => ie.has(e)), ae = z ? jn(j, M.getValues()) : void 0, oe = R.filter((e) => {
|
|
112701
112709
|
let t = ie.get(e);
|
|
112702
112710
|
return !t || !ae || F8(t, ae);
|
|
112703
112711
|
}), se = oe.length > 0, ce = oe.join(","), le = G(null), ue = H(async (e) => {
|
|
@@ -112720,7 +112728,7 @@ function MCt({ formName: e, sectionId: t, schema: n, sectionConfig: r, defaultVa
|
|
|
112720
112728
|
I(), t(/* @__PURE__ */ Error("Form validation failed"));
|
|
112721
112729
|
})();
|
|
112722
112730
|
}),
|
|
112723
|
-
reset:
|
|
112731
|
+
reset: te,
|
|
112724
112732
|
isDirty: () => M.formState.isDirty,
|
|
112725
112733
|
getValues: () => jn(j, M.getValues()),
|
|
112726
112734
|
setValue: (e, t, n) => {
|
|
@@ -112752,13 +112760,13 @@ function MCt({ formName: e, sectionId: t, schema: n, sectionConfig: r, defaultVa
|
|
|
112752
112760
|
N,
|
|
112753
112761
|
ue,
|
|
112754
112762
|
I,
|
|
112755
|
-
|
|
112763
|
+
te
|
|
112756
112764
|
]), U(() => {
|
|
112757
112765
|
le.current && le.current({
|
|
112758
|
-
isSubmitting:
|
|
112766
|
+
isSubmitting: L,
|
|
112759
112767
|
hasErrors: se
|
|
112760
112768
|
});
|
|
112761
|
-
}, [
|
|
112769
|
+
}, [L, se]), U(() => {
|
|
112762
112770
|
v?.({
|
|
112763
112771
|
isDirty: re,
|
|
112764
112772
|
errorIds: ce === "" ? [] : ce.split(",")
|
|
@@ -112878,9 +112886,9 @@ function MCt({ formName: e, sectionId: t, schema: n, sectionConfig: r, defaultVa
|
|
|
112878
112886
|
}
|
|
112879
112887
|
})
|
|
112880
112888
|
}),
|
|
112881
|
-
|
|
112889
|
+
ne ? /* @__PURE__ */ q("p", {
|
|
112882
112890
|
className: "mt-4 text-base font-medium text-f1-foreground-critical",
|
|
112883
|
-
children:
|
|
112891
|
+
children: ne.message
|
|
112884
112892
|
}) : null,
|
|
112885
112893
|
!_ && !E && (!T || re) ? /* @__PURE__ */ q("div", {
|
|
112886
112894
|
className: "mt-4 flex justify-end",
|
|
@@ -112888,7 +112896,7 @@ function MCt({ formName: e, sectionId: t, schema: n, sectionConfig: r, defaultVa
|
|
|
112888
112896
|
type: "submit",
|
|
112889
112897
|
label: C,
|
|
112890
112898
|
icon: w,
|
|
112891
|
-
loading:
|
|
112899
|
+
loading: L,
|
|
112892
112900
|
disabled: se || g
|
|
112893
112901
|
})
|
|
112894
112902
|
}) : null
|
|
@@ -113275,7 +113283,7 @@ var QCt = 800, $Ct = {}, ewt = {
|
|
|
113275
113283
|
contentRef: m,
|
|
113276
113284
|
formName: i,
|
|
113277
113285
|
sectionIds: a
|
|
113278
|
-
}), v =
|
|
113286
|
+
}), v = ne();
|
|
113279
113287
|
U(function() {
|
|
113280
113288
|
g && h && p.current && YCt(p.current, v ? "auto" : "smooth");
|
|
113281
113289
|
}, [
|
|
@@ -113366,14 +113374,14 @@ function owt(e) {
|
|
|
113366
113374
|
behavior: "smooth",
|
|
113367
113375
|
block: "start"
|
|
113368
113376
|
});
|
|
113369
|
-
}, [t, I]), [
|
|
113370
|
-
|
|
113377
|
+
}, [t, I]), [te, ne] = K(j[0]), L = te && M.includes(te) ? te : M[0], re = H((e) => {
|
|
113378
|
+
ne(e), ee(e);
|
|
113371
113379
|
}, [ee]), R = ECt({
|
|
113372
113380
|
formName: t,
|
|
113373
113381
|
enabled: w,
|
|
113374
113382
|
reveal: H((e, t, n) => {
|
|
113375
|
-
I && t !==
|
|
113376
|
-
}, [I,
|
|
113383
|
+
I && t !== L ? (ne(t), requestAnimationFrame(() => I8(e, t, n))) : I8(e, t, n);
|
|
113384
|
+
}, [I, L])
|
|
113377
113385
|
}), ie = W(() => {
|
|
113378
113386
|
if (!w) return {};
|
|
113379
113387
|
let e = {};
|
|
@@ -113489,7 +113497,7 @@ function owt(e) {
|
|
|
113489
113497
|
children: M.map((e, r) => {
|
|
113490
113498
|
let a = n[e], o = D?.[e], c = i?.[e], d = _ ? void 0 : o?.submitConfig ?? s;
|
|
113491
113499
|
_ && o?.submitConfig && lCt(t, e);
|
|
113492
|
-
let v = u(fK, r !== 0 && !I && "mt-6", I && e !==
|
|
113500
|
+
let v = u(fK, r !== 0 && !I && "mt-6", I && e !== L && "hidden");
|
|
113493
113501
|
return a ? (R8(o) && LCt(t, e, "content-with-schema"), /* @__PURE__ */ q("div", {
|
|
113494
113502
|
id: cU(t, e),
|
|
113495
113503
|
className: v,
|
|
@@ -113543,7 +113551,7 @@ function owt(e) {
|
|
|
113543
113551
|
inline: _,
|
|
113544
113552
|
perSection: !0,
|
|
113545
113553
|
items: z,
|
|
113546
|
-
activeItem:
|
|
113554
|
+
activeItem: L,
|
|
113547
113555
|
formName: t,
|
|
113548
113556
|
followedSectionIds: I ? void 0 : M,
|
|
113549
113557
|
railOffset: C,
|
|
@@ -113762,15 +113770,15 @@ function hwt(e, t, n) {
|
|
|
113762
113770
|
}), n ? jn(t, e.getValues()) : void 0;
|
|
113763
113771
|
}
|
|
113764
113772
|
function gwt(e) {
|
|
113765
|
-
let t = o(), { forms: n } = t, { name: r, schema: i, sections: a, defaultValues: s, onSubmit: c, submitConfig: l, className: d, errorTriggerMode: f = "on-submit", styling: p, formRef: m, isLoading: h, defaultValuesParamsSchema: g, defaultValuesFn: _, description: v, module: y, inline: b = !1 } = e, { useUpload: x } = e, S = twt(), C = (p?.showSectionsSidepanel ?? !1) && !S, w = p?.noPadding ?? !1, T = p?.sectionsSidepanelOffset, E = (p?.sectionsSearch ?? !1) && C, { isActionBar: D, isAutosubmit: O, submitLabel: k, submitIcon: A, showSubmitWhenDirty: j, hideActionBar: M, showSubmitButton: N, discardableChanges: P, discardLabel: F, discardIcon: I, actionBarIdleLabel: ee, actionBarSavingLabel:
|
|
113773
|
+
let t = o(), { forms: n } = t, { name: r, schema: i, sections: a, defaultValues: s, onSubmit: c, submitConfig: l, className: d, errorTriggerMode: f = "on-submit", styling: p, formRef: m, isLoading: h, defaultValuesParamsSchema: g, defaultValuesFn: _, description: v, module: y, inline: b = !1 } = e, { useUpload: x } = e, S = twt(), C = (p?.showSectionsSidepanel ?? !1) && !S, w = p?.noPadding ?? !1, T = p?.sectionsSidepanelOffset, E = (p?.sectionsSearch ?? !1) && C, { isActionBar: D, isAutosubmit: O, submitLabel: k, submitIcon: A, showSubmitWhenDirty: j, hideActionBar: M, showSubmitButton: N, discardableChanges: P, discardLabel: F, discardIcon: I, actionBarIdleLabel: ee, actionBarSavingLabel: te, successMessageDuration: ne } = mwt(l, n), L = $H(i, a), re = W(() => L.filter((e) => e.type === "section").map((e) => e.id), [L]), R = W(() => {
|
|
113766
113774
|
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
113767
113775
|
t.autoSave && e.add(t.id);
|
|
113768
113776
|
};
|
|
113769
|
-
for (let e of
|
|
113777
|
+
for (let e of L) if (e.type === "field") t(e.field);
|
|
113770
113778
|
else if (e.type === "row") e.fields.forEach(t);
|
|
113771
113779
|
else if (e.type === "section") for (let n of e.section.fields) n.type === "field" ? t(n.field) : n.type === "row" && n.fields.forEach(t);
|
|
113772
113780
|
return e;
|
|
113773
|
-
}, [
|
|
113781
|
+
}, [L]), ie = R.size > 0, z = G(R);
|
|
113774
113782
|
z.current = R;
|
|
113775
113783
|
let [ae, oe] = K(re[0]), se = G(null), ce = H((e) => {
|
|
113776
113784
|
oe(e);
|
|
@@ -113792,12 +113800,12 @@ function gwt(e) {
|
|
|
113792
113800
|
fe,
|
|
113793
113801
|
me
|
|
113794
113802
|
]);
|
|
113795
|
-
let be = W(() =>
|
|
113803
|
+
let be = W(() => L.some((e) => e.type === "section" && !!e.section.renderIf), [L]), xe = W(() => L.some((e) => e.type === "section" && E8(e.section.fields).some((e) => !!e.renderIf)), [L]), Se = Object.keys(me.formState.errors).filter((e) => e !== "root"), Ce = be || E, we = C && Ce ? jn(pe, me.watch()) : void 0, Te = hwt(me, pe, C && !Ce && xe && Se.length > 0), Ee = we ?? Te, De = ECt({
|
|
113796
113804
|
formName: r,
|
|
113797
113805
|
enabled: E
|
|
113798
113806
|
}), { effectiveActiveSection: Oe, tocItems: ke, visibleSectionIds: Ae } = pwt({
|
|
113799
113807
|
formValues: Ee,
|
|
113800
|
-
definition:
|
|
113808
|
+
definition: L,
|
|
113801
113809
|
sectionIds: re,
|
|
113802
113810
|
sections: a,
|
|
113803
113811
|
showSectionsSidepanel: C,
|
|
@@ -113818,7 +113826,7 @@ function gwt(e) {
|
|
|
113818
113826
|
let [Be, Ve] = K("idle"), [He, Ue] = K(), We = G(null), Ge = G(null), Ke = G(null), qe = G(!0), Je = G(null), Ye = G(null), { hasErrors: Xe, errorCount: Ze, goToPreviousError: Qe, goToNextError: $e, resetErrorNavigation: et } = zCt({
|
|
113819
113827
|
formName: r,
|
|
113820
113828
|
errors: Pe
|
|
113821
|
-
}), tt = Be === "loading" ?
|
|
113829
|
+
}), tt = Be === "loading" ? te : Be === "success" ? He ?? n.actionBar.saved : ee, nt = async (e) => {
|
|
113822
113830
|
if (ze.current) return;
|
|
113823
113831
|
We.current &&= (clearTimeout(We.current), null), tre(() => {
|
|
113824
113832
|
Ve("loading");
|
|
@@ -113828,7 +113836,7 @@ function gwt(e) {
|
|
|
113828
113836
|
let n = await c(t);
|
|
113829
113837
|
qe.current && (n.success ? (me.reset(me.getValues()), et(), Ue(n.message), Ve("success"), We.current = setTimeout(() => {
|
|
113830
113838
|
qe.current && (Ve("idle"), Ue(void 0), We.current = null);
|
|
113831
|
-
},
|
|
113839
|
+
}, ne ?? 2e3)) : (Ve("idle"), n.errors && Object.entries(n.errors).forEach(([e, t]) => {
|
|
113832
113840
|
me.setError(e, { message: t });
|
|
113833
113841
|
}), n.rootMessage && me.setError("root", { message: n.rootMessage }), _e()));
|
|
113834
113842
|
};
|
|
@@ -113958,10 +113966,10 @@ function gwt(e) {
|
|
|
113958
113966
|
hasErrors: Xe
|
|
113959
113967
|
});
|
|
113960
113968
|
}, [Ne, Xe]);
|
|
113961
|
-
let ht = j8(
|
|
113969
|
+
let ht = j8(L), gt = W(() => {
|
|
113962
113970
|
if (!b) return [];
|
|
113963
113971
|
let e = [];
|
|
113964
|
-
for (let t of
|
|
113972
|
+
for (let t of L) {
|
|
113965
113973
|
if (t.type === "section") {
|
|
113966
113974
|
e.push({
|
|
113967
113975
|
type: "section",
|
|
@@ -113976,7 +113984,7 @@ function gwt(e) {
|
|
|
113976
113984
|
});
|
|
113977
113985
|
}
|
|
113978
113986
|
return e;
|
|
113979
|
-
}, [b,
|
|
113987
|
+
}, [b, L]), _t = W(() => ({
|
|
113980
113988
|
formName: r,
|
|
113981
113989
|
initialFiles: e.initialFiles,
|
|
113982
113990
|
isLoadingInitialFiles: e.isLoadingInitialFiles,
|
|
@@ -119732,7 +119740,7 @@ var cAt = (e, t) => (t === 1 ? e.one : e.other).replace("{{count}}", String(t)),
|
|
|
119732
119740
|
return () => clearTimeout(n);
|
|
119733
119741
|
}, [e, t]), n;
|
|
119734
119742
|
}, jAt = ({ target: e, container: t, onOutsideInteraction: n }) => {
|
|
119735
|
-
let r = DAt(e), i = OAt(e), a = AAt(e, !
|
|
119743
|
+
let r = DAt(e), i = OAt(e), a = AAt(e, !ne());
|
|
119736
119744
|
return U(() => {
|
|
119737
119745
|
if (typeof e.scrollIntoView != "function") return;
|
|
119738
119746
|
let t = () => e.scrollIntoView({
|
|
@@ -119787,7 +119795,7 @@ var cAt = (e, t) => (t === 1 ? e.one : e.other).replace("{{count}}", String(t)),
|
|
|
119787
119795
|
n
|
|
119788
119796
|
]), r;
|
|
119789
119797
|
}, RAt = () => W(() => ({ current: { getBoundingClientRect: () => new DOMRect(window.innerWidth / 2, window.innerHeight / 2, 0, 0) } }), []), zAt = (e) => {
|
|
119790
|
-
let t =
|
|
119798
|
+
let t = ne();
|
|
119791
119799
|
return H(() => {
|
|
119792
119800
|
let n = e.current;
|
|
119793
119801
|
n && !t && typeof n.animate == "function" && n.animate(MAt.map((e) => ({ translate: e })), {
|
|
@@ -119973,7 +119981,7 @@ var VAt = c("F0Coachmark", BAt), G9 = [], K9 = G9, q9 = /* @__PURE__ */ new Set(
|
|
|
119973
119981
|
}), () => i.disconnect();
|
|
119974
119982
|
}, [e]), t;
|
|
119975
119983
|
}, qAt = 5, JAt = 150, YAt = ({ item: e, container: t }) => {
|
|
119976
|
-
let [n, r] = K(0), [i, a] = K(!1), o = G(), s =
|
|
119984
|
+
let [n, r] = K(0), [i, a] = K(!1), o = G(), s = ne(), c = Math.min(n, e.steps.length - 1), l = e.steps[c], u = c === e.steps.length - 1;
|
|
119977
119985
|
U(() => () => clearTimeout(o.current), []);
|
|
119978
119986
|
let d = (e) => {
|
|
119979
119987
|
s ? r(e) : (a(!0), o.current = setTimeout(() => {
|