uhuu-components 0.2.83 → 0.2.84
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/uhuu-components.es.js
CHANGED
|
@@ -8967,7 +8967,7 @@ const $b = ({
|
|
|
8967
8967
|
] }),
|
|
8968
8968
|
$s(l, N)
|
|
8969
8969
|
] });
|
|
8970
|
-
},
|
|
8970
|
+
}, Px = (e) => {
|
|
8971
8971
|
const { computedOverlaySvg: t, computedOptions: n, computedDirectDialog: r } = X(() => {
|
|
8972
8972
|
const { annotation: A, dialog: D, overlaySvg: B, options: L, src: F } = e;
|
|
8973
8973
|
if (!A && !D)
|
|
@@ -9632,7 +9632,13 @@ function oy(e) {
|
|
|
9632
9632
|
height: Math.max(...t.map((n) => n.height))
|
|
9633
9633
|
} : null;
|
|
9634
9634
|
}
|
|
9635
|
-
function sy({
|
|
9635
|
+
function sy(e, t) {
|
|
9636
|
+
if (e === "two_pages")
|
|
9637
|
+
return oy(t);
|
|
9638
|
+
const n = t.find(({ width: r, height: o }) => r > 0 && o > 0);
|
|
9639
|
+
return n ? { width: n.width, height: n.height } : null;
|
|
9640
|
+
}
|
|
9641
|
+
function iy({
|
|
9636
9642
|
mode: e,
|
|
9637
9643
|
contentWidth: t,
|
|
9638
9644
|
contentHeight: n,
|
|
@@ -9647,7 +9653,7 @@ function sy({
|
|
|
9647
9653
|
return Math.min(Math.max(c, s), i);
|
|
9648
9654
|
}
|
|
9649
9655
|
const _r = Mt({ zoom: 100, scaleValue: 1, hideUI: !1 });
|
|
9650
|
-
function
|
|
9656
|
+
function ay({ children: e, layout: t = "spread", pageItemId: n }) {
|
|
9651
9657
|
const { scaleValue: r } = xe(_r), o = fe(null);
|
|
9652
9658
|
return de(() => {
|
|
9653
9659
|
if (!o.current) return;
|
|
@@ -9676,17 +9682,20 @@ function iy({ children: e, layout: t = "spread", pageItemId: n }) {
|
|
|
9676
9682
|
}
|
|
9677
9683
|
);
|
|
9678
9684
|
}
|
|
9679
|
-
function
|
|
9685
|
+
function ly(e) {
|
|
9680
9686
|
const t = Number.parseFloat(e.getAttribute("data-natural-width") || "0"), n = Number.parseFloat(e.getAttribute("data-natural-height") || "0");
|
|
9681
9687
|
return t > 0 && n > 0 ? { width: t, height: n } : null;
|
|
9682
9688
|
}
|
|
9683
|
-
function
|
|
9689
|
+
function cy(e, t) {
|
|
9684
9690
|
const n = t === "two_pages" ? e.querySelector(".two-pages-pair") : e;
|
|
9685
9691
|
if (!n) return null;
|
|
9686
|
-
const r = Array.from(n.querySelectorAll("[data-section-content]"))
|
|
9692
|
+
const r = t === "two_pages" ? Array.from(n.querySelectorAll("[data-section-content]")) : (() => {
|
|
9693
|
+
const s = n.querySelector("[data-section-content]");
|
|
9694
|
+
return s ? [s] : [];
|
|
9695
|
+
})();
|
|
9687
9696
|
if (!r.length) return null;
|
|
9688
|
-
const o = r.map(
|
|
9689
|
-
return
|
|
9697
|
+
const o = r.map(ly).filter((s) => s !== null);
|
|
9698
|
+
return sy(t, o);
|
|
9690
9699
|
}
|
|
9691
9700
|
function Io({ children: e, title: t, className: n = "", controls: r, origin: o = "center" }) {
|
|
9692
9701
|
const { scaleValue: s, hideUI: i } = xe(_r), a = fe(null), [l, c] = ie(0), [d, u] = ie(0);
|
|
@@ -9754,7 +9763,7 @@ function Io({ children: e, title: t, className: n = "", controls: r, origin: o =
|
|
|
9754
9763
|
}
|
|
9755
9764
|
);
|
|
9756
9765
|
}
|
|
9757
|
-
function
|
|
9766
|
+
function uy({
|
|
9758
9767
|
children: e,
|
|
9759
9768
|
className: t = "",
|
|
9760
9769
|
defaultZoom: n = 100,
|
|
@@ -9768,9 +9777,9 @@ function cy({
|
|
|
9768
9777
|
}) {
|
|
9769
9778
|
const d = ds(), u = a ?? d, [h, m] = ie(n), [v, g] = ie(() => ry(c)), y = fe(null), w = fe(null), N = he(() => {
|
|
9770
9779
|
if (v === "none" || !y.current || !w.current) return;
|
|
9771
|
-
const C =
|
|
9780
|
+
const C = cy(w.current, l);
|
|
9772
9781
|
if (!C) return;
|
|
9773
|
-
const x = y.current.getBoundingClientRect(), I = window.visualViewport, k = I?.width ?? window.innerWidth, E = I?.height ?? window.innerHeight, T = Math.min(x.width || k, k) - 32, $ = E - Math.max(x.top, 0) - 120, O =
|
|
9782
|
+
const x = y.current.getBoundingClientRect(), I = window.visualViewport, k = I?.width ?? window.innerWidth, E = I?.height ?? window.innerHeight, T = Math.min(x.width || k, k) - 32, $ = E - Math.max(x.top, 0) - 120, O = iy({
|
|
9774
9783
|
mode: v,
|
|
9775
9784
|
contentWidth: C.width,
|
|
9776
9785
|
contentHeight: C.height,
|
|
@@ -9913,7 +9922,7 @@ function cy({
|
|
|
9913
9922
|
/* @__PURE__ */ f("div", { className: "pb-16" })
|
|
9914
9923
|
] }) });
|
|
9915
9924
|
}
|
|
9916
|
-
var Jr = "Dialog", [cu, uu] = gt(Jr), [
|
|
9925
|
+
var Jr = "Dialog", [cu, uu] = gt(Jr), [dy, Ze] = cu(Jr), Ks = (e) => {
|
|
9917
9926
|
const {
|
|
9918
9927
|
__scopeDialog: t,
|
|
9919
9928
|
children: n,
|
|
@@ -9928,7 +9937,7 @@ var Jr = "Dialog", [cu, uu] = gt(Jr), [uy, Ze] = cu(Jr), Ks = (e) => {
|
|
|
9928
9937
|
caller: Jr
|
|
9929
9938
|
});
|
|
9930
9939
|
return /* @__PURE__ */ f(
|
|
9931
|
-
|
|
9940
|
+
dy,
|
|
9932
9941
|
{
|
|
9933
9942
|
scope: t,
|
|
9934
9943
|
triggerRef: a,
|
|
@@ -9964,27 +9973,27 @@ var du = "DialogTrigger", fu = p.forwardRef(
|
|
|
9964
9973
|
}
|
|
9965
9974
|
);
|
|
9966
9975
|
fu.displayName = du;
|
|
9967
|
-
var Gs = "DialogPortal", [
|
|
9976
|
+
var Gs = "DialogPortal", [fy, hu] = cu(Gs, {
|
|
9968
9977
|
forceMount: void 0
|
|
9969
9978
|
}), Ws = (e) => {
|
|
9970
9979
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Ze(Gs, t);
|
|
9971
|
-
return /* @__PURE__ */ f(
|
|
9980
|
+
return /* @__PURE__ */ f(fy, { scope: t, forceMount: n, children: p.Children.map(r, (i) => /* @__PURE__ */ f(_t, { present: n || s.open, children: /* @__PURE__ */ f(Ps, { asChild: !0, container: o, children: i }) })) });
|
|
9972
9981
|
};
|
|
9973
9982
|
Ws.displayName = Gs;
|
|
9974
9983
|
var Fr = "DialogOverlay", Qr = p.forwardRef(
|
|
9975
9984
|
(e, t) => {
|
|
9976
9985
|
const n = hu(Fr, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Ze(Fr, e.__scopeDialog);
|
|
9977
|
-
return s.modal ? /* @__PURE__ */ f(_t, { present: r || s.open, children: /* @__PURE__ */ f(
|
|
9986
|
+
return s.modal ? /* @__PURE__ */ f(_t, { present: r || s.open, children: /* @__PURE__ */ f(my, { ...o, ref: t }) }) : null;
|
|
9978
9987
|
}
|
|
9979
9988
|
);
|
|
9980
9989
|
Qr.displayName = Fr;
|
|
9981
|
-
var
|
|
9990
|
+
var hy = /* @__PURE__ */ On("DialogOverlay.RemoveScroll"), my = p.forwardRef(
|
|
9982
9991
|
(e, t) => {
|
|
9983
9992
|
const { __scopeDialog: n, ...r } = e, o = Ze(Fr, n), s = Hm(), i = me(t, s);
|
|
9984
9993
|
return (
|
|
9985
9994
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
9986
9995
|
// ie. when `Overlay` and `Content` are siblings
|
|
9987
|
-
/* @__PURE__ */ f(Is, { as:
|
|
9996
|
+
/* @__PURE__ */ f(Is, { as: hy, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ f(
|
|
9988
9997
|
pe.div,
|
|
9989
9998
|
{
|
|
9990
9999
|
"data-state": js(o.open),
|
|
@@ -9998,11 +10007,11 @@ var fy = /* @__PURE__ */ On("DialogOverlay.RemoveScroll"), hy = p.forwardRef(
|
|
|
9998
10007
|
), un = "DialogContent", eo = p.forwardRef(
|
|
9999
10008
|
(e, t) => {
|
|
10000
10009
|
const n = hu(un, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Ze(un, e.__scopeDialog);
|
|
10001
|
-
return /* @__PURE__ */ f(_t, { present: r || s.open, children: s.modal ? /* @__PURE__ */ f(
|
|
10010
|
+
return /* @__PURE__ */ f(_t, { present: r || s.open, children: s.modal ? /* @__PURE__ */ f(py, { ...o, ref: t }) : /* @__PURE__ */ f(gy, { ...o, ref: t }) });
|
|
10002
10011
|
}
|
|
10003
10012
|
);
|
|
10004
10013
|
eo.displayName = un;
|
|
10005
|
-
var
|
|
10014
|
+
var py = p.forwardRef(
|
|
10006
10015
|
(e, t) => {
|
|
10007
10016
|
const n = Ze(un, e.__scopeDialog), r = p.useRef(null), o = me(t, n.contentRef, r);
|
|
10008
10017
|
return p.useEffect(() => {
|
|
@@ -10029,7 +10038,7 @@ var my = p.forwardRef(
|
|
|
10029
10038
|
}
|
|
10030
10039
|
);
|
|
10031
10040
|
}
|
|
10032
|
-
),
|
|
10041
|
+
), gy = p.forwardRef(
|
|
10033
10042
|
(e, t) => {
|
|
10034
10043
|
const n = Ze(un, e.__scopeDialog), r = p.useRef(!1), o = p.useRef(!1);
|
|
10035
10044
|
return /* @__PURE__ */ f(
|
|
@@ -10110,7 +10119,7 @@ ro.displayName = vu;
|
|
|
10110
10119
|
function js(e) {
|
|
10111
10120
|
return e ? "open" : "closed";
|
|
10112
10121
|
}
|
|
10113
|
-
const bu = Ks,
|
|
10122
|
+
const bu = Ks, vy = Ws, yu = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
10114
10123
|
Qr,
|
|
10115
10124
|
{
|
|
10116
10125
|
className: le(
|
|
@@ -10124,7 +10133,7 @@ const bu = Ks, gy = Ws, yu = p.forwardRef(({ className: e, ...t }, n) => /* @__P
|
|
|
10124
10133
|
yu.displayName = Qr.displayName;
|
|
10125
10134
|
const Vs = p.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => {
|
|
10126
10135
|
const { portalContainer: s } = cs();
|
|
10127
|
-
return /* @__PURE__ */ _(
|
|
10136
|
+
return /* @__PURE__ */ _(vy, { container: s || void 0, children: [
|
|
10128
10137
|
/* @__PURE__ */ f(yu, {}),
|
|
10129
10138
|
/* @__PURE__ */ _(
|
|
10130
10139
|
eo,
|
|
@@ -10318,7 +10327,7 @@ function Xs(e) {
|
|
|
10318
10327
|
}
|
|
10319
10328
|
};
|
|
10320
10329
|
}
|
|
10321
|
-
function
|
|
10330
|
+
function by({
|
|
10322
10331
|
open: e,
|
|
10323
10332
|
onOpenChange: t,
|
|
10324
10333
|
availableItems: n,
|
|
@@ -10452,7 +10461,7 @@ function vy({
|
|
|
10452
10461
|
}) }) }) })
|
|
10453
10462
|
] }) });
|
|
10454
10463
|
}
|
|
10455
|
-
function
|
|
10464
|
+
function yy() {
|
|
10456
10465
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
10457
10466
|
t[n] = arguments[n];
|
|
10458
10467
|
return X(
|
|
@@ -10502,7 +10511,7 @@ function so(e) {
|
|
|
10502
10511
|
return t.current == null ? void 0 : t.current(...r);
|
|
10503
10512
|
}, []);
|
|
10504
10513
|
}
|
|
10505
|
-
function
|
|
10514
|
+
function wy() {
|
|
10506
10515
|
const e = fe(null), t = he((r, o) => {
|
|
10507
10516
|
e.current = setInterval(r, o);
|
|
10508
10517
|
}, []), n = he(() => {
|
|
@@ -10570,7 +10579,7 @@ function Cu(e) {
|
|
|
10570
10579
|
};
|
|
10571
10580
|
}
|
|
10572
10581
|
const cn = /* @__PURE__ */ Cu(1), Bn = /* @__PURE__ */ Cu(-1);
|
|
10573
|
-
function
|
|
10582
|
+
function xy(e) {
|
|
10574
10583
|
return "clientX" in e && "clientY" in e;
|
|
10575
10584
|
}
|
|
10576
10585
|
function io(e) {
|
|
@@ -10581,7 +10590,7 @@ function io(e) {
|
|
|
10581
10590
|
} = _e(e.target);
|
|
10582
10591
|
return t && e instanceof t;
|
|
10583
10592
|
}
|
|
10584
|
-
function
|
|
10593
|
+
function Cy(e) {
|
|
10585
10594
|
if (!e)
|
|
10586
10595
|
return !1;
|
|
10587
10596
|
const {
|
|
@@ -10590,7 +10599,7 @@ function xy(e) {
|
|
|
10590
10599
|
return t && e instanceof t;
|
|
10591
10600
|
}
|
|
10592
10601
|
function Br(e) {
|
|
10593
|
-
if (
|
|
10602
|
+
if (Cy(e)) {
|
|
10594
10603
|
if (e.touches && e.touches.length) {
|
|
10595
10604
|
const {
|
|
10596
10605
|
clientX: t,
|
|
@@ -10611,7 +10620,7 @@ function Br(e) {
|
|
|
10611
10620
|
};
|
|
10612
10621
|
}
|
|
10613
10622
|
}
|
|
10614
|
-
return
|
|
10623
|
+
return xy(e) ? {
|
|
10615
10624
|
x: e.clientX,
|
|
10616
10625
|
y: e.clientY
|
|
10617
10626
|
} : null;
|
|
@@ -10656,23 +10665,23 @@ const Dt = /* @__PURE__ */ Object.freeze({
|
|
|
10656
10665
|
}
|
|
10657
10666
|
}
|
|
10658
10667
|
}), la = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
10659
|
-
function
|
|
10668
|
+
function Sy(e) {
|
|
10660
10669
|
return e.matches(la) ? e : e.querySelector(la);
|
|
10661
10670
|
}
|
|
10662
|
-
const
|
|
10671
|
+
const Ny = {
|
|
10663
10672
|
display: "none"
|
|
10664
10673
|
};
|
|
10665
|
-
function
|
|
10674
|
+
function ky(e) {
|
|
10666
10675
|
let {
|
|
10667
10676
|
id: t,
|
|
10668
10677
|
value: n
|
|
10669
10678
|
} = e;
|
|
10670
10679
|
return be.createElement("div", {
|
|
10671
10680
|
id: t,
|
|
10672
|
-
style:
|
|
10681
|
+
style: Ny
|
|
10673
10682
|
}, n);
|
|
10674
10683
|
}
|
|
10675
|
-
function
|
|
10684
|
+
function Ry(e) {
|
|
10676
10685
|
let {
|
|
10677
10686
|
id: t,
|
|
10678
10687
|
announcement: n,
|
|
@@ -10700,7 +10709,7 @@ function ky(e) {
|
|
|
10700
10709
|
"aria-atomic": !0
|
|
10701
10710
|
}, n);
|
|
10702
10711
|
}
|
|
10703
|
-
function
|
|
10712
|
+
function Py() {
|
|
10704
10713
|
const [e, t] = ie("");
|
|
10705
10714
|
return {
|
|
10706
10715
|
announce: he((r) => {
|
|
@@ -10710,7 +10719,7 @@ function Ry() {
|
|
|
10710
10719
|
};
|
|
10711
10720
|
}
|
|
10712
10721
|
const Su = /* @__PURE__ */ Mt(null);
|
|
10713
|
-
function
|
|
10722
|
+
function Iy(e) {
|
|
10714
10723
|
const t = xe(Su);
|
|
10715
10724
|
de(() => {
|
|
10716
10725
|
if (!t)
|
|
@@ -10718,7 +10727,7 @@ function Py(e) {
|
|
|
10718
10727
|
return t(e);
|
|
10719
10728
|
}, [e, t]);
|
|
10720
10729
|
}
|
|
10721
|
-
function
|
|
10730
|
+
function Ey() {
|
|
10722
10731
|
const [e] = ie(() => /* @__PURE__ */ new Set()), t = he((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
10723
10732
|
return [he((r) => {
|
|
10724
10733
|
let {
|
|
@@ -10731,13 +10740,13 @@ function Iy() {
|
|
|
10731
10740
|
});
|
|
10732
10741
|
}, [e]), t];
|
|
10733
10742
|
}
|
|
10734
|
-
const
|
|
10743
|
+
const Ay = {
|
|
10735
10744
|
draggable: `
|
|
10736
10745
|
To pick up a draggable item, press the space bar.
|
|
10737
10746
|
While dragging, use the arrow keys to move the item.
|
|
10738
10747
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
10739
10748
|
`
|
|
10740
|
-
},
|
|
10749
|
+
}, Dy = {
|
|
10741
10750
|
onDragStart(e) {
|
|
10742
10751
|
let {
|
|
10743
10752
|
active: t
|
|
@@ -10765,20 +10774,20 @@ const Ey = {
|
|
|
10765
10774
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
10766
10775
|
}
|
|
10767
10776
|
};
|
|
10768
|
-
function
|
|
10777
|
+
function My(e) {
|
|
10769
10778
|
let {
|
|
10770
|
-
announcements: t =
|
|
10779
|
+
announcements: t = Dy,
|
|
10771
10780
|
container: n,
|
|
10772
10781
|
hiddenTextDescribedById: r,
|
|
10773
|
-
screenReaderInstructions: o =
|
|
10782
|
+
screenReaderInstructions: o = Ay
|
|
10774
10783
|
} = e;
|
|
10775
10784
|
const {
|
|
10776
10785
|
announce: s,
|
|
10777
10786
|
announcement: i
|
|
10778
|
-
} =
|
|
10787
|
+
} = Py(), a = Xn("DndLiveRegion"), [l, c] = ie(!1);
|
|
10779
10788
|
if (de(() => {
|
|
10780
10789
|
c(!0);
|
|
10781
|
-
}, []),
|
|
10790
|
+
}, []), Iy(X(() => ({
|
|
10782
10791
|
onDragStart(u) {
|
|
10783
10792
|
let {
|
|
10784
10793
|
active: h
|
|
@@ -10829,10 +10838,10 @@ function Dy(e) {
|
|
|
10829
10838
|
}
|
|
10830
10839
|
}), [s, t])), !l)
|
|
10831
10840
|
return null;
|
|
10832
|
-
const d = be.createElement(be.Fragment, null, be.createElement(
|
|
10841
|
+
const d = be.createElement(be.Fragment, null, be.createElement(ky, {
|
|
10833
10842
|
id: r,
|
|
10834
10843
|
value: o.draggable
|
|
10835
|
-
}), be.createElement(
|
|
10844
|
+
}), be.createElement(Ry, {
|
|
10836
10845
|
id: a,
|
|
10837
10846
|
announcement: i
|
|
10838
10847
|
}));
|
|
@@ -10854,7 +10863,7 @@ function ca(e, t) {
|
|
|
10854
10863
|
[e, t]
|
|
10855
10864
|
);
|
|
10856
10865
|
}
|
|
10857
|
-
function
|
|
10866
|
+
function Oy() {
|
|
10858
10867
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
10859
10868
|
t[n] = arguments[n];
|
|
10860
10869
|
return X(
|
|
@@ -10870,7 +10879,7 @@ const Xe = /* @__PURE__ */ Object.freeze({
|
|
|
10870
10879
|
function Nu(e, t) {
|
|
10871
10880
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
10872
10881
|
}
|
|
10873
|
-
function
|
|
10882
|
+
function Ty(e, t) {
|
|
10874
10883
|
const n = Br(e);
|
|
10875
10884
|
if (!n)
|
|
10876
10885
|
return "0 0";
|
|
@@ -10892,7 +10901,7 @@ function ku(e, t) {
|
|
|
10892
10901
|
} = t;
|
|
10893
10902
|
return n - r;
|
|
10894
10903
|
}
|
|
10895
|
-
function
|
|
10904
|
+
function _y(e, t) {
|
|
10896
10905
|
let {
|
|
10897
10906
|
data: {
|
|
10898
10907
|
value: n
|
|
@@ -10937,7 +10946,7 @@ function da(e, t, n) {
|
|
|
10937
10946
|
y: n + e.height * 0.5
|
|
10938
10947
|
};
|
|
10939
10948
|
}
|
|
10940
|
-
const
|
|
10949
|
+
const Fy = (e) => {
|
|
10941
10950
|
let {
|
|
10942
10951
|
collisionRect: t,
|
|
10943
10952
|
droppableRects: n,
|
|
@@ -10960,7 +10969,7 @@ const _y = (e) => {
|
|
|
10960
10969
|
}
|
|
10961
10970
|
}
|
|
10962
10971
|
return s.sort(ku);
|
|
10963
|
-
},
|
|
10972
|
+
}, Ly = (e) => {
|
|
10964
10973
|
let {
|
|
10965
10974
|
collisionRect: t,
|
|
10966
10975
|
droppableRects: n,
|
|
@@ -10984,7 +10993,7 @@ const _y = (e) => {
|
|
|
10984
10993
|
}
|
|
10985
10994
|
return s.sort(ku);
|
|
10986
10995
|
};
|
|
10987
|
-
function
|
|
10996
|
+
function $y(e, t) {
|
|
10988
10997
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), i = o - r, a = s - n;
|
|
10989
10998
|
if (r < o && n < s) {
|
|
10990
10999
|
const l = t.width * t.height, c = e.width * e.height, d = i * a, u = d / (l + c - d);
|
|
@@ -10992,7 +11001,7 @@ function Ly(e, t) {
|
|
|
10992
11001
|
}
|
|
10993
11002
|
return 0;
|
|
10994
11003
|
}
|
|
10995
|
-
const
|
|
11004
|
+
const By = (e) => {
|
|
10996
11005
|
let {
|
|
10997
11006
|
collisionRect: t,
|
|
10998
11007
|
droppableRects: n,
|
|
@@ -11004,7 +11013,7 @@ const $y = (e) => {
|
|
|
11004
11013
|
id: i
|
|
11005
11014
|
} = s, a = n.get(i);
|
|
11006
11015
|
if (a) {
|
|
11007
|
-
const l =
|
|
11016
|
+
const l = $y(a, t);
|
|
11008
11017
|
l > 0 && o.push({
|
|
11009
11018
|
id: i,
|
|
11010
11019
|
data: {
|
|
@@ -11014,9 +11023,9 @@ const $y = (e) => {
|
|
|
11014
11023
|
});
|
|
11015
11024
|
}
|
|
11016
11025
|
}
|
|
11017
|
-
return o.sort(
|
|
11026
|
+
return o.sort(_y);
|
|
11018
11027
|
};
|
|
11019
|
-
function
|
|
11028
|
+
function zy(e, t, n) {
|
|
11020
11029
|
return {
|
|
11021
11030
|
...e,
|
|
11022
11031
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -11029,7 +11038,7 @@ function Pu(e, t) {
|
|
|
11029
11038
|
y: e.top - t.top
|
|
11030
11039
|
} : Xe;
|
|
11031
11040
|
}
|
|
11032
|
-
function
|
|
11041
|
+
function Hy(e) {
|
|
11033
11042
|
return function(n) {
|
|
11034
11043
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
11035
11044
|
o[s - 1] = arguments[s];
|
|
@@ -11044,7 +11053,7 @@ function zy(e) {
|
|
|
11044
11053
|
});
|
|
11045
11054
|
};
|
|
11046
11055
|
}
|
|
11047
|
-
const
|
|
11056
|
+
const Ky = /* @__PURE__ */ Hy(1);
|
|
11048
11057
|
function Iu(e) {
|
|
11049
11058
|
if (e.startsWith("matrix3d(")) {
|
|
11050
11059
|
const t = e.slice(9, -1).split(/, /);
|
|
@@ -11065,7 +11074,7 @@ function Iu(e) {
|
|
|
11065
11074
|
}
|
|
11066
11075
|
return null;
|
|
11067
11076
|
}
|
|
11068
|
-
function
|
|
11077
|
+
function Gy(e, t, n) {
|
|
11069
11078
|
const r = Iu(t);
|
|
11070
11079
|
if (!r)
|
|
11071
11080
|
return e;
|
|
@@ -11084,18 +11093,18 @@ function Ky(e, t, n) {
|
|
|
11084
11093
|
left: l
|
|
11085
11094
|
};
|
|
11086
11095
|
}
|
|
11087
|
-
const
|
|
11096
|
+
const Wy = {
|
|
11088
11097
|
ignoreTransform: !1
|
|
11089
11098
|
};
|
|
11090
11099
|
function bn(e, t) {
|
|
11091
|
-
t === void 0 && (t =
|
|
11100
|
+
t === void 0 && (t = Wy);
|
|
11092
11101
|
let n = e.getBoundingClientRect();
|
|
11093
11102
|
if (t.ignoreTransform) {
|
|
11094
11103
|
const {
|
|
11095
11104
|
transform: c,
|
|
11096
11105
|
transformOrigin: d
|
|
11097
11106
|
} = _e(e).getComputedStyle(e);
|
|
11098
|
-
c && (n =
|
|
11107
|
+
c && (n = Gy(n, c, d));
|
|
11099
11108
|
}
|
|
11100
11109
|
const {
|
|
11101
11110
|
top: r,
|
|
@@ -11119,7 +11128,7 @@ function fa(e) {
|
|
|
11119
11128
|
ignoreTransform: !0
|
|
11120
11129
|
});
|
|
11121
11130
|
}
|
|
11122
|
-
function
|
|
11131
|
+
function jy(e) {
|
|
11123
11132
|
const t = e.innerWidth, n = e.innerHeight;
|
|
11124
11133
|
return {
|
|
11125
11134
|
top: 0,
|
|
@@ -11130,10 +11139,10 @@ function Wy(e) {
|
|
|
11130
11139
|
height: n
|
|
11131
11140
|
};
|
|
11132
11141
|
}
|
|
11133
|
-
function
|
|
11142
|
+
function Vy(e, t) {
|
|
11134
11143
|
return t === void 0 && (t = _e(e).getComputedStyle(e)), t.position === "fixed";
|
|
11135
11144
|
}
|
|
11136
|
-
function
|
|
11145
|
+
function Uy(e, t) {
|
|
11137
11146
|
t === void 0 && (t = _e(e).getComputedStyle(e));
|
|
11138
11147
|
const n = /(auto|scroll|overlay)/;
|
|
11139
11148
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
@@ -11151,7 +11160,7 @@ function ao(e, t) {
|
|
|
11151
11160
|
if (!Yn(o) || xu(o) || n.includes(o))
|
|
11152
11161
|
return n;
|
|
11153
11162
|
const s = _e(e).getComputedStyle(o);
|
|
11154
|
-
return o !== e &&
|
|
11163
|
+
return o !== e && Uy(o, s) && n.push(o), Vy(o, s) ? n : r(o.parentNode);
|
|
11155
11164
|
}
|
|
11156
11165
|
return e ? r(e) : n;
|
|
11157
11166
|
}
|
|
@@ -11204,18 +11213,18 @@ function Ou(e) {
|
|
|
11204
11213
|
minScroll: t
|
|
11205
11214
|
};
|
|
11206
11215
|
}
|
|
11207
|
-
const
|
|
11216
|
+
const Yy = {
|
|
11208
11217
|
x: 0.2,
|
|
11209
11218
|
y: 0.2
|
|
11210
11219
|
};
|
|
11211
|
-
function
|
|
11220
|
+
function qy(e, t, n, r, o) {
|
|
11212
11221
|
let {
|
|
11213
11222
|
top: s,
|
|
11214
11223
|
left: i,
|
|
11215
11224
|
right: a,
|
|
11216
11225
|
bottom: l
|
|
11217
11226
|
} = n;
|
|
11218
|
-
r === void 0 && (r = 10), o === void 0 && (o =
|
|
11227
|
+
r === void 0 && (r = 10), o === void 0 && (o = Yy);
|
|
11219
11228
|
const {
|
|
11220
11229
|
isTop: c,
|
|
11221
11230
|
isBottom: d,
|
|
@@ -11236,7 +11245,7 @@ function Yy(e, t, n, r, o) {
|
|
|
11236
11245
|
speed: v
|
|
11237
11246
|
};
|
|
11238
11247
|
}
|
|
11239
|
-
function
|
|
11248
|
+
function Xy(e) {
|
|
11240
11249
|
if (e === document.scrollingElement) {
|
|
11241
11250
|
const {
|
|
11242
11251
|
innerWidth: s,
|
|
@@ -11269,10 +11278,10 @@ function qy(e) {
|
|
|
11269
11278
|
function Tu(e) {
|
|
11270
11279
|
return e.reduce((t, n) => cn(t, Xo(n)), Xe);
|
|
11271
11280
|
}
|
|
11272
|
-
function
|
|
11281
|
+
function Zy(e) {
|
|
11273
11282
|
return e.reduce((t, n) => t + Au(n), 0);
|
|
11274
11283
|
}
|
|
11275
|
-
function
|
|
11284
|
+
function Jy(e) {
|
|
11276
11285
|
return e.reduce((t, n) => t + Du(n), 0);
|
|
11277
11286
|
}
|
|
11278
11287
|
function _u(e, t) {
|
|
@@ -11289,7 +11298,7 @@ function _u(e, t) {
|
|
|
11289
11298
|
inline: "center"
|
|
11290
11299
|
});
|
|
11291
11300
|
}
|
|
11292
|
-
const
|
|
11301
|
+
const Qy = [["x", ["left", "right"], Zy], ["y", ["top", "bottom"], Jy]];
|
|
11293
11302
|
class Qs {
|
|
11294
11303
|
constructor(t, n) {
|
|
11295
11304
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
@@ -11297,7 +11306,7 @@ class Qs {
|
|
|
11297
11306
|
this.rect = {
|
|
11298
11307
|
...t
|
|
11299
11308
|
}, this.width = t.width, this.height = t.height;
|
|
11300
|
-
for (const [s, i, a] of
|
|
11309
|
+
for (const [s, i, a] of Qy)
|
|
11301
11310
|
for (const l of i)
|
|
11302
11311
|
Object.defineProperty(this, l, {
|
|
11303
11312
|
get: () => {
|
|
@@ -11325,7 +11334,7 @@ class In {
|
|
|
11325
11334
|
(o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
11326
11335
|
}
|
|
11327
11336
|
}
|
|
11328
|
-
function
|
|
11337
|
+
function ew(e) {
|
|
11329
11338
|
const {
|
|
11330
11339
|
EventTarget: t
|
|
11331
11340
|
} = _e(e);
|
|
@@ -11342,7 +11351,7 @@ var Ge;
|
|
|
11342
11351
|
function ha(e) {
|
|
11343
11352
|
e.preventDefault();
|
|
11344
11353
|
}
|
|
11345
|
-
function
|
|
11354
|
+
function tw(e) {
|
|
11346
11355
|
e.stopPropagation();
|
|
11347
11356
|
}
|
|
11348
11357
|
var ce;
|
|
@@ -11353,7 +11362,7 @@ const Fu = {
|
|
|
11353
11362
|
start: [ce.Space, ce.Enter],
|
|
11354
11363
|
cancel: [ce.Esc],
|
|
11355
11364
|
end: [ce.Space, ce.Enter, ce.Tab]
|
|
11356
|
-
},
|
|
11365
|
+
}, nw = (e, t) => {
|
|
11357
11366
|
let {
|
|
11358
11367
|
currentCoordinates: n
|
|
11359
11368
|
} = t;
|
|
@@ -11408,7 +11417,7 @@ class ei {
|
|
|
11408
11417
|
options: o
|
|
11409
11418
|
} = this.props, {
|
|
11410
11419
|
keyboardCodes: s = Fu,
|
|
11411
|
-
coordinateGetter: i =
|
|
11420
|
+
coordinateGetter: i = nw,
|
|
11412
11421
|
scrollBehavior: a = "smooth"
|
|
11413
11422
|
} = o, {
|
|
11414
11423
|
code: l
|
|
@@ -11448,7 +11457,7 @@ class ei {
|
|
|
11448
11457
|
isBottom: b,
|
|
11449
11458
|
maxScroll: R,
|
|
11450
11459
|
minScroll: P
|
|
11451
|
-
} = Ou(g), C =
|
|
11460
|
+
} = Ou(g), C = Xy(g), x = {
|
|
11452
11461
|
x: Math.min(y === ce.Right ? C.right - C.width / 2 : C.right, Math.max(y === ce.Right ? C.left : C.left + C.width / 2, u.x)),
|
|
11453
11462
|
y: Math.min(y === ce.Down ? C.bottom - C.height / 2 : C.bottom, Math.max(y === ce.Down ? C.top : C.top + C.height / 2, u.y))
|
|
11454
11463
|
}, I = y === ce.Right && !N || y === ce.Left && !S, k = y === ce.Down && !b || y === ce.Up && !w;
|
|
@@ -11538,7 +11547,7 @@ function pa(e) {
|
|
|
11538
11547
|
class ti {
|
|
11539
11548
|
constructor(t, n, r) {
|
|
11540
11549
|
var o;
|
|
11541
|
-
r === void 0 && (r =
|
|
11550
|
+
r === void 0 && (r = ew(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
11542
11551
|
const {
|
|
11543
11552
|
event: s
|
|
11544
11553
|
} = t, {
|
|
@@ -11592,7 +11601,7 @@ class ti {
|
|
|
11592
11601
|
} = this, {
|
|
11593
11602
|
onStart: n
|
|
11594
11603
|
} = this.props;
|
|
11595
|
-
t && (this.activated = !0, this.documentListeners.add(Ge.Click,
|
|
11604
|
+
t && (this.activated = !0, this.documentListeners.add(Ge.Click, tw, {
|
|
11596
11605
|
capture: !0
|
|
11597
11606
|
}), this.removeTextSelection(), this.documentListeners.add(Ge.SelectionChange, this.removeTextSelection), n(t));
|
|
11598
11607
|
}
|
|
@@ -11647,7 +11656,7 @@ class ti {
|
|
|
11647
11656
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
11648
11657
|
}
|
|
11649
11658
|
}
|
|
11650
|
-
const
|
|
11659
|
+
const rw = {
|
|
11651
11660
|
cancel: {
|
|
11652
11661
|
name: "pointercancel"
|
|
11653
11662
|
},
|
|
@@ -11663,7 +11672,7 @@ class ni extends ti {
|
|
|
11663
11672
|
const {
|
|
11664
11673
|
event: n
|
|
11665
11674
|
} = t, r = vn(n.target);
|
|
11666
|
-
super(t,
|
|
11675
|
+
super(t, rw, r);
|
|
11667
11676
|
}
|
|
11668
11677
|
}
|
|
11669
11678
|
ni.activators = [{
|
|
@@ -11679,7 +11688,7 @@ ni.activators = [{
|
|
|
11679
11688
|
}), !0);
|
|
11680
11689
|
}
|
|
11681
11690
|
}];
|
|
11682
|
-
const
|
|
11691
|
+
const ow = {
|
|
11683
11692
|
move: {
|
|
11684
11693
|
name: "mousemove"
|
|
11685
11694
|
},
|
|
@@ -11691,12 +11700,12 @@ var Zo;
|
|
|
11691
11700
|
(function(e) {
|
|
11692
11701
|
e[e.RightClick = 2] = "RightClick";
|
|
11693
11702
|
})(Zo || (Zo = {}));
|
|
11694
|
-
class
|
|
11703
|
+
class sw extends ti {
|
|
11695
11704
|
constructor(t) {
|
|
11696
|
-
super(t,
|
|
11705
|
+
super(t, ow, vn(t.event.target));
|
|
11697
11706
|
}
|
|
11698
11707
|
}
|
|
11699
|
-
|
|
11708
|
+
sw.activators = [{
|
|
11700
11709
|
eventName: "onMouseDown",
|
|
11701
11710
|
handler: (e, t) => {
|
|
11702
11711
|
let {
|
|
@@ -11720,7 +11729,7 @@ const Mo = {
|
|
|
11720
11729
|
name: "touchend"
|
|
11721
11730
|
}
|
|
11722
11731
|
};
|
|
11723
|
-
class
|
|
11732
|
+
class iw extends ti {
|
|
11724
11733
|
constructor(t) {
|
|
11725
11734
|
super(t, Mo);
|
|
11726
11735
|
}
|
|
@@ -11735,7 +11744,7 @@ class sw extends ti {
|
|
|
11735
11744
|
}
|
|
11736
11745
|
}
|
|
11737
11746
|
}
|
|
11738
|
-
|
|
11747
|
+
iw.activators = [{
|
|
11739
11748
|
eventName: "onTouchStart",
|
|
11740
11749
|
handler: (e, t) => {
|
|
11741
11750
|
let {
|
|
@@ -11759,7 +11768,7 @@ var Hr;
|
|
|
11759
11768
|
(function(e) {
|
|
11760
11769
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
11761
11770
|
})(Hr || (Hr = {}));
|
|
11762
|
-
function
|
|
11771
|
+
function aw(e) {
|
|
11763
11772
|
let {
|
|
11764
11773
|
acceleration: t,
|
|
11765
11774
|
activator: n = En.Pointer,
|
|
@@ -11774,10 +11783,10 @@ function iw(e) {
|
|
|
11774
11783
|
delta: u,
|
|
11775
11784
|
threshold: h
|
|
11776
11785
|
} = e;
|
|
11777
|
-
const m =
|
|
11786
|
+
const m = cw({
|
|
11778
11787
|
delta: u,
|
|
11779
11788
|
disabled: !s
|
|
11780
|
-
}), [v, g] =
|
|
11789
|
+
}), [v, g] = wy(), y = fe({
|
|
11781
11790
|
x: 0,
|
|
11782
11791
|
y: 0
|
|
11783
11792
|
}), w = fe({
|
|
@@ -11817,7 +11826,7 @@ function iw(e) {
|
|
|
11817
11826
|
const {
|
|
11818
11827
|
direction: I,
|
|
11819
11828
|
speed: k
|
|
11820
|
-
} =
|
|
11829
|
+
} = qy(P, x, N, t, h);
|
|
11821
11830
|
for (const E of ["x", "y"])
|
|
11822
11831
|
m[E][I[E]] || (k[E] = 0, I[E] = 0);
|
|
11823
11832
|
if (k.x > 0 || k.y > 0) {
|
|
@@ -11854,7 +11863,7 @@ function iw(e) {
|
|
|
11854
11863
|
]
|
|
11855
11864
|
);
|
|
11856
11865
|
}
|
|
11857
|
-
const
|
|
11866
|
+
const lw = {
|
|
11858
11867
|
x: {
|
|
11859
11868
|
[ke.Backward]: !1,
|
|
11860
11869
|
[ke.Forward]: !1
|
|
@@ -11864,7 +11873,7 @@ const aw = {
|
|
|
11864
11873
|
[ke.Forward]: !1
|
|
11865
11874
|
}
|
|
11866
11875
|
};
|
|
11867
|
-
function
|
|
11876
|
+
function cw(e) {
|
|
11868
11877
|
let {
|
|
11869
11878
|
delta: t,
|
|
11870
11879
|
disabled: n
|
|
@@ -11872,7 +11881,7 @@ function lw(e) {
|
|
|
11872
11881
|
const r = $r(t);
|
|
11873
11882
|
return qn((o) => {
|
|
11874
11883
|
if (n || !r || !o)
|
|
11875
|
-
return
|
|
11884
|
+
return lw;
|
|
11876
11885
|
const s = {
|
|
11877
11886
|
x: Math.sign(t.x - r.x),
|
|
11878
11887
|
y: Math.sign(t.y - r.y)
|
|
@@ -11889,14 +11898,14 @@ function lw(e) {
|
|
|
11889
11898
|
};
|
|
11890
11899
|
}, [n, t, r]);
|
|
11891
11900
|
}
|
|
11892
|
-
function
|
|
11901
|
+
function uw(e, t) {
|
|
11893
11902
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
11894
11903
|
return qn((o) => {
|
|
11895
11904
|
var s;
|
|
11896
11905
|
return t == null ? null : (s = r ?? o) != null ? s : null;
|
|
11897
11906
|
}, [r, t]);
|
|
11898
11907
|
}
|
|
11899
|
-
function
|
|
11908
|
+
function dw(e, t) {
|
|
11900
11909
|
return X(() => e.reduce((n, r) => {
|
|
11901
11910
|
const {
|
|
11902
11911
|
sensor: o
|
|
@@ -11916,7 +11925,7 @@ var Jo;
|
|
|
11916
11925
|
e.Optimized = "optimized";
|
|
11917
11926
|
})(Jo || (Jo = {}));
|
|
11918
11927
|
const ga = /* @__PURE__ */ new Map();
|
|
11919
|
-
function
|
|
11928
|
+
function fw(e, t) {
|
|
11920
11929
|
let {
|
|
11921
11930
|
dragging: n,
|
|
11922
11931
|
dependencies: r,
|
|
@@ -11988,10 +11997,10 @@ function dw(e, t) {
|
|
|
11988
11997
|
function ri(e, t) {
|
|
11989
11998
|
return qn((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
11990
11999
|
}
|
|
11991
|
-
function
|
|
12000
|
+
function hw(e, t) {
|
|
11992
12001
|
return ri(e, t);
|
|
11993
12002
|
}
|
|
11994
|
-
function
|
|
12003
|
+
function mw(e) {
|
|
11995
12004
|
let {
|
|
11996
12005
|
callback: t,
|
|
11997
12006
|
disabled: n
|
|
@@ -12025,11 +12034,11 @@ function lo(e) {
|
|
|
12025
12034
|
);
|
|
12026
12035
|
return de(() => () => o?.disconnect(), [o]), o;
|
|
12027
12036
|
}
|
|
12028
|
-
function
|
|
12037
|
+
function pw(e) {
|
|
12029
12038
|
return new Qs(bn(e), e);
|
|
12030
12039
|
}
|
|
12031
12040
|
function va(e, t, n) {
|
|
12032
|
-
t === void 0 && (t =
|
|
12041
|
+
t === void 0 && (t = pw);
|
|
12033
12042
|
const [r, o] = ie(null);
|
|
12034
12043
|
function s() {
|
|
12035
12044
|
o((l) => {
|
|
@@ -12043,7 +12052,7 @@ function va(e, t, n) {
|
|
|
12043
12052
|
return JSON.stringify(l) === JSON.stringify(d) ? l : d;
|
|
12044
12053
|
});
|
|
12045
12054
|
}
|
|
12046
|
-
const i =
|
|
12055
|
+
const i = mw({
|
|
12047
12056
|
callback(l) {
|
|
12048
12057
|
if (e)
|
|
12049
12058
|
for (const c of l) {
|
|
@@ -12067,18 +12076,18 @@ function va(e, t, n) {
|
|
|
12067
12076
|
})) : (a?.disconnect(), i?.disconnect());
|
|
12068
12077
|
}, [e]), r;
|
|
12069
12078
|
}
|
|
12070
|
-
function
|
|
12079
|
+
function gw(e) {
|
|
12071
12080
|
const t = ri(e);
|
|
12072
12081
|
return Pu(e, t);
|
|
12073
12082
|
}
|
|
12074
12083
|
const ba = [];
|
|
12075
|
-
function
|
|
12084
|
+
function vw(e) {
|
|
12076
12085
|
const t = fe(e), n = qn((r) => e ? r && r !== ba && e && t.current && e.parentNode === t.current.parentNode ? r : ao(e) : ba, [e]);
|
|
12077
12086
|
return de(() => {
|
|
12078
12087
|
t.current = e;
|
|
12079
12088
|
}, [e]), n;
|
|
12080
12089
|
}
|
|
12081
|
-
function
|
|
12090
|
+
function bw(e) {
|
|
12082
12091
|
const [t, n] = ie(null), r = fe(e), o = he((s) => {
|
|
12083
12092
|
const i = Ao(s.target);
|
|
12084
12093
|
i && n((a) => a ? (a.set(i, Xo(i)), new Map(a)) : null);
|
|
@@ -12120,7 +12129,7 @@ function ya(e, t) {
|
|
|
12120
12129
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
12121
12130
|
}, [e]), n.current ? Bn(e, n.current) : Xe;
|
|
12122
12131
|
}
|
|
12123
|
-
function
|
|
12132
|
+
function yw(e) {
|
|
12124
12133
|
de(
|
|
12125
12134
|
() => {
|
|
12126
12135
|
if (!oo)
|
|
@@ -12146,7 +12155,7 @@ function bw(e) {
|
|
|
12146
12155
|
})
|
|
12147
12156
|
);
|
|
12148
12157
|
}
|
|
12149
|
-
function
|
|
12158
|
+
function ww(e, t) {
|
|
12150
12159
|
return X(() => e.reduce((n, r) => {
|
|
12151
12160
|
let {
|
|
12152
12161
|
eventName: o,
|
|
@@ -12158,10 +12167,10 @@ function yw(e, t) {
|
|
|
12158
12167
|
}, {}), [e, t]);
|
|
12159
12168
|
}
|
|
12160
12169
|
function Lu(e) {
|
|
12161
|
-
return X(() => e ?
|
|
12170
|
+
return X(() => e ? jy(e) : null, [e]);
|
|
12162
12171
|
}
|
|
12163
12172
|
const wa = [];
|
|
12164
|
-
function
|
|
12173
|
+
function xw(e, t) {
|
|
12165
12174
|
t === void 0 && (t = bn);
|
|
12166
12175
|
const [n] = e, r = Lu(n ? _e(n) : null), [o, s] = ie(wa);
|
|
12167
12176
|
function i() {
|
|
@@ -12182,7 +12191,7 @@ function $u(e) {
|
|
|
12182
12191
|
const t = e.children[0];
|
|
12183
12192
|
return Yn(t) ? t : e;
|
|
12184
12193
|
}
|
|
12185
|
-
function
|
|
12194
|
+
function Cw(e) {
|
|
12186
12195
|
let {
|
|
12187
12196
|
measure: t
|
|
12188
12197
|
} = e;
|
|
@@ -12213,13 +12222,13 @@ function xw(e) {
|
|
|
12213
12222
|
setRef: l
|
|
12214
12223
|
}), [n, a, l]);
|
|
12215
12224
|
}
|
|
12216
|
-
const
|
|
12225
|
+
const Sw = [{
|
|
12217
12226
|
sensor: ni,
|
|
12218
12227
|
options: {}
|
|
12219
12228
|
}, {
|
|
12220
12229
|
sensor: ei,
|
|
12221
12230
|
options: {}
|
|
12222
|
-
}],
|
|
12231
|
+
}], Nw = {
|
|
12223
12232
|
current: {}
|
|
12224
12233
|
}, xr = {
|
|
12225
12234
|
draggable: {
|
|
@@ -12255,7 +12264,7 @@ class An extends Map {
|
|
|
12255
12264
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
12256
12265
|
}
|
|
12257
12266
|
}
|
|
12258
|
-
const
|
|
12267
|
+
const kw = {
|
|
12259
12268
|
activatorEvent: null,
|
|
12260
12269
|
active: null,
|
|
12261
12270
|
activeNode: null,
|
|
@@ -12291,8 +12300,8 @@ const Nw = {
|
|
|
12291
12300
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
12292
12301
|
over: null,
|
|
12293
12302
|
measureDroppableContainers: zr
|
|
12294
|
-
}, Zn = /* @__PURE__ */ Mt(Bu), zu = /* @__PURE__ */ Mt(
|
|
12295
|
-
function
|
|
12303
|
+
}, Zn = /* @__PURE__ */ Mt(Bu), zu = /* @__PURE__ */ Mt(kw);
|
|
12304
|
+
function Rw() {
|
|
12296
12305
|
return {
|
|
12297
12306
|
draggable: {
|
|
12298
12307
|
active: null,
|
|
@@ -12311,7 +12320,7 @@ function kw() {
|
|
|
12311
12320
|
}
|
|
12312
12321
|
};
|
|
12313
12322
|
}
|
|
12314
|
-
function
|
|
12323
|
+
function Pw(e, t) {
|
|
12315
12324
|
switch (t.type) {
|
|
12316
12325
|
case Se.DragStart:
|
|
12317
12326
|
return {
|
|
@@ -12404,7 +12413,7 @@ function Rw(e, t) {
|
|
|
12404
12413
|
return e;
|
|
12405
12414
|
}
|
|
12406
12415
|
}
|
|
12407
|
-
function
|
|
12416
|
+
function Iw(e) {
|
|
12408
12417
|
let {
|
|
12409
12418
|
disabled: t
|
|
12410
12419
|
} = e;
|
|
@@ -12430,7 +12439,7 @@ function Pw(e) {
|
|
|
12430
12439
|
for (const d of [l.current, c.current]) {
|
|
12431
12440
|
if (!d)
|
|
12432
12441
|
continue;
|
|
12433
|
-
const u =
|
|
12442
|
+
const u = Sy(d);
|
|
12434
12443
|
if (u) {
|
|
12435
12444
|
u.focus();
|
|
12436
12445
|
break;
|
|
@@ -12450,7 +12459,7 @@ function Hu(e, t) {
|
|
|
12450
12459
|
...r
|
|
12451
12460
|
}), n) : n;
|
|
12452
12461
|
}
|
|
12453
|
-
function
|
|
12462
|
+
function Ew(e) {
|
|
12454
12463
|
return X(
|
|
12455
12464
|
() => ({
|
|
12456
12465
|
draggable: {
|
|
@@ -12470,7 +12479,7 @@ function Iw(e) {
|
|
|
12470
12479
|
[e?.draggable, e?.droppable, e?.dragOverlay]
|
|
12471
12480
|
);
|
|
12472
12481
|
}
|
|
12473
|
-
function
|
|
12482
|
+
function Aw(e) {
|
|
12474
12483
|
let {
|
|
12475
12484
|
activeNode: t,
|
|
12476
12485
|
measure: n,
|
|
@@ -12513,20 +12522,20 @@ var Rt;
|
|
|
12513
12522
|
(function(e) {
|
|
12514
12523
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
12515
12524
|
})(Rt || (Rt = {}));
|
|
12516
|
-
const
|
|
12525
|
+
const Dw = /* @__PURE__ */ Zd(function(t) {
|
|
12517
12526
|
var n, r, o, s;
|
|
12518
12527
|
let {
|
|
12519
12528
|
id: i,
|
|
12520
12529
|
accessibility: a,
|
|
12521
12530
|
autoScroll: l = !0,
|
|
12522
12531
|
children: c,
|
|
12523
|
-
sensors: d =
|
|
12524
|
-
collisionDetection: u =
|
|
12532
|
+
sensors: d = Sw,
|
|
12533
|
+
collisionDetection: u = By,
|
|
12525
12534
|
measuring: h,
|
|
12526
12535
|
modifiers: m,
|
|
12527
12536
|
...v
|
|
12528
12537
|
} = t;
|
|
12529
|
-
const g = Jd(
|
|
12538
|
+
const g = Jd(Pw, void 0, Rw), [y, w] = g, [N, S] = Ey(), [b, R] = ie(Rt.Uninitialized), P = b === Rt.Initialized, {
|
|
12530
12539
|
draggable: {
|
|
12531
12540
|
active: C,
|
|
12532
12541
|
nodes: x,
|
|
@@ -12543,19 +12552,19 @@ const Aw = /* @__PURE__ */ Zd(function(t) {
|
|
|
12543
12552
|
return C != null ? {
|
|
12544
12553
|
id: C,
|
|
12545
12554
|
// It's possible for the active node to unmount while dragging
|
|
12546
|
-
data: (Ne = E?.data) != null ? Ne :
|
|
12555
|
+
data: (Ne = E?.data) != null ? Ne : Nw,
|
|
12547
12556
|
rect: T
|
|
12548
12557
|
} : null;
|
|
12549
|
-
}, [C, E]), O = fe(null), [z, A] = ie(null), [D, B] = ie(null), L = $n(v, Object.values(v)), F = Xn("DndDescribedBy", i), K = X(() => k.getEnabled(), [k]), V =
|
|
12558
|
+
}, [C, E]), O = fe(null), [z, A] = ie(null), [D, B] = ie(null), L = $n(v, Object.values(v)), F = Xn("DndDescribedBy", i), K = X(() => k.getEnabled(), [k]), V = Ew(h), {
|
|
12550
12559
|
droppableRects: U,
|
|
12551
12560
|
measureDroppableContainers: ne,
|
|
12552
12561
|
measuringScheduled: re
|
|
12553
|
-
} =
|
|
12562
|
+
} = fw(K, {
|
|
12554
12563
|
dragging: P,
|
|
12555
12564
|
dependencies: [I.x, I.y],
|
|
12556
12565
|
config: V.droppable
|
|
12557
|
-
}), H =
|
|
12558
|
-
|
|
12566
|
+
}), H = uw(x, C), j = X(() => D ? Br(D) : null, [D]), J = nr(), Z = hw(H, V.draggable.measure);
|
|
12567
|
+
Aw({
|
|
12559
12568
|
activeNode: C != null ? x.get(C) : null,
|
|
12560
12569
|
config: J.layoutShiftCompensation,
|
|
12561
12570
|
initialRect: Z,
|
|
@@ -12575,9 +12584,9 @@ const Aw = /* @__PURE__ */ Zd(function(t) {
|
|
|
12575
12584
|
over: null,
|
|
12576
12585
|
scrollableAncestors: [],
|
|
12577
12586
|
scrollAdjustedTranslate: null
|
|
12578
|
-
}), ge = k.getNodeFor((n = ue.current.over) == null ? void 0 : n.id), ae =
|
|
12587
|
+
}), ge = k.getNodeFor((n = ue.current.over) == null ? void 0 : n.id), ae = Cw({
|
|
12579
12588
|
measure: V.dragOverlay.measure
|
|
12580
|
-
}), Pe = (r = ae.nodeRef.current) != null ? r : H, je = P ? (o = ae.rect) != null ? o : Y : null, Xt = !!(ae.nodeRef.current && ae.rect), ct =
|
|
12589
|
+
}), Pe = (r = ae.nodeRef.current) != null ? r : H, je = P ? (o = ae.rect) != null ? o : Y : null, Xt = !!(ae.nodeRef.current && ae.rect), ct = gw(Xt ? null : Y), Zt = Lu(Pe ? _e(Pe) : null), Be = vw(P ? ge ?? H : null), yt = xw(Be), Lt = Hu(m, {
|
|
12581
12590
|
transform: {
|
|
12582
12591
|
x: I.x - ct.x,
|
|
12583
12592
|
y: I.y - ct.y,
|
|
@@ -12594,13 +12603,13 @@ const Aw = /* @__PURE__ */ Zd(function(t) {
|
|
|
12594
12603
|
scrollableAncestors: Be,
|
|
12595
12604
|
scrollableAncestorRects: yt,
|
|
12596
12605
|
windowRect: Zt
|
|
12597
|
-
}), Jt = j ? cn(j, I) : null, wn =
|
|
12606
|
+
}), Jt = j ? cn(j, I) : null, wn = bw(Be), Qn = ya(wn), fo = ya(wn, [Y]), Ve = cn(Lt, Qn), wt = je ? Ky(je, Lt) : null, $t = $ && wt ? u({
|
|
12598
12607
|
active: $,
|
|
12599
12608
|
collisionRect: wt,
|
|
12600
12609
|
droppableRects: U,
|
|
12601
12610
|
droppableContainers: K,
|
|
12602
12611
|
pointerCoordinates: Jt
|
|
12603
|
-
}) : null, Qt = Ru($t, "id"), [Je, er] = ie(null), ho = Xt ? Lt : cn(Lt, fo), xn =
|
|
12612
|
+
}) : null, Qt = Ru($t, "id"), [Je, er] = ie(null), ho = Xt ? Lt : cn(Lt, fo), xn = zy(ho, (s = Je?.rect) != null ? s : null, Y), en = fe(null), Cn = he(
|
|
12604
12613
|
(Ne, Ie) => {
|
|
12605
12614
|
let {
|
|
12606
12615
|
sensor: Ee,
|
|
@@ -12740,8 +12749,8 @@ const Aw = /* @__PURE__ */ Zd(function(t) {
|
|
|
12740
12749
|
Ne(Ee, Ie.options, ze) === !0 && (Me.dndKit = {
|
|
12741
12750
|
capturedBy: Ie.sensor
|
|
12742
12751
|
}, O.current = Ue, Cn(Ee, Ie));
|
|
12743
|
-
}, [x, Cn]), xt =
|
|
12744
|
-
|
|
12752
|
+
}, [x, Cn]), xt = dw(d, tr);
|
|
12753
|
+
yw(d), qe(() => {
|
|
12745
12754
|
Y && b === Rt.Initializing && R(Rt.Initialized);
|
|
12746
12755
|
}, [Y, b]), de(
|
|
12747
12756
|
() => {
|
|
@@ -12830,7 +12839,7 @@ const Aw = /* @__PURE__ */ Zd(function(t) {
|
|
|
12830
12839
|
initial: je,
|
|
12831
12840
|
translated: wt
|
|
12832
12841
|
};
|
|
12833
|
-
}, [$, H, $t, wt, x, Pe, je, U, k, Je, Be, Ve]),
|
|
12842
|
+
}, [$, H, $t, wt, x, Pe, je, U, k, Je, Be, Ve]), aw({
|
|
12834
12843
|
...J,
|
|
12835
12844
|
delta: I,
|
|
12836
12845
|
draggingRect: wt,
|
|
@@ -12877,9 +12886,9 @@ const Aw = /* @__PURE__ */ Zd(function(t) {
|
|
|
12877
12886
|
value: Bt
|
|
12878
12887
|
}, be.createElement(co.Provider, {
|
|
12879
12888
|
value: xn
|
|
12880
|
-
}, c)), be.createElement(
|
|
12889
|
+
}, c)), be.createElement(Iw, {
|
|
12881
12890
|
disabled: a?.restoreFocus === !1
|
|
12882
|
-
})), be.createElement(
|
|
12891
|
+
})), be.createElement(My, {
|
|
12883
12892
|
...a,
|
|
12884
12893
|
hiddenTextDescribedById: F
|
|
12885
12894
|
}));
|
|
@@ -12892,15 +12901,15 @@ const Aw = /* @__PURE__ */ Zd(function(t) {
|
|
|
12892
12901
|
enabled: Ee
|
|
12893
12902
|
};
|
|
12894
12903
|
}
|
|
12895
|
-
}),
|
|
12896
|
-
function
|
|
12904
|
+
}), Mw = /* @__PURE__ */ Mt(null), xa = "button", Ow = "Draggable";
|
|
12905
|
+
function Tw(e) {
|
|
12897
12906
|
let {
|
|
12898
12907
|
id: t,
|
|
12899
12908
|
data: n,
|
|
12900
12909
|
disabled: r = !1,
|
|
12901
12910
|
attributes: o
|
|
12902
12911
|
} = e;
|
|
12903
|
-
const s = Xn(
|
|
12912
|
+
const s = Xn(Ow), {
|
|
12904
12913
|
activators: i,
|
|
12905
12914
|
activatorEvent: a,
|
|
12906
12915
|
active: l,
|
|
@@ -12912,7 +12921,7 @@ function Ow(e) {
|
|
|
12912
12921
|
role: m = xa,
|
|
12913
12922
|
roleDescription: v = "draggable",
|
|
12914
12923
|
tabIndex: g = 0
|
|
12915
|
-
} = o ?? {}, y = l?.id === t, w = xe(y ? co :
|
|
12924
|
+
} = o ?? {}, y = l?.id === t, w = xe(y ? co : Mw), [N, S] = Lr(), [b, R] = Lr(), P = ww(i, t), C = $n(n);
|
|
12916
12925
|
qe(
|
|
12917
12926
|
() => (u.set(t, {
|
|
12918
12927
|
id: t,
|
|
@@ -12952,17 +12961,17 @@ function Ow(e) {
|
|
|
12952
12961
|
function Ku() {
|
|
12953
12962
|
return xe(zu);
|
|
12954
12963
|
}
|
|
12955
|
-
const
|
|
12964
|
+
const _w = "Droppable", Fw = {
|
|
12956
12965
|
timeout: 25
|
|
12957
12966
|
};
|
|
12958
|
-
function
|
|
12967
|
+
function Lw(e) {
|
|
12959
12968
|
let {
|
|
12960
12969
|
data: t,
|
|
12961
12970
|
disabled: n = !1,
|
|
12962
12971
|
id: r,
|
|
12963
12972
|
resizeObserverConfig: o
|
|
12964
12973
|
} = e;
|
|
12965
|
-
const s = Xn(
|
|
12974
|
+
const s = Xn(_w), {
|
|
12966
12975
|
active: i,
|
|
12967
12976
|
dispatch: a,
|
|
12968
12977
|
over: l,
|
|
@@ -12974,7 +12983,7 @@ function Fw(e) {
|
|
|
12974
12983
|
updateMeasurementsFor: g,
|
|
12975
12984
|
timeout: y
|
|
12976
12985
|
} = {
|
|
12977
|
-
...
|
|
12986
|
+
...Fw,
|
|
12978
12987
|
...o
|
|
12979
12988
|
}, w = $n(g ?? r), N = he(
|
|
12980
12989
|
() => {
|
|
@@ -13030,7 +13039,7 @@ function Fw(e) {
|
|
|
13030
13039
|
setNodeRef: P
|
|
13031
13040
|
};
|
|
13032
13041
|
}
|
|
13033
|
-
function
|
|
13042
|
+
function $w(e) {
|
|
13034
13043
|
let {
|
|
13035
13044
|
animation: t,
|
|
13036
13045
|
children: n
|
|
@@ -13051,26 +13060,26 @@ function Lw(e) {
|
|
|
13051
13060
|
ref: i
|
|
13052
13061
|
}) : null);
|
|
13053
13062
|
}
|
|
13054
|
-
const
|
|
13063
|
+
const Bw = {
|
|
13055
13064
|
x: 0,
|
|
13056
13065
|
y: 0,
|
|
13057
13066
|
scaleX: 1,
|
|
13058
13067
|
scaleY: 1
|
|
13059
13068
|
};
|
|
13060
|
-
function
|
|
13069
|
+
function zw(e) {
|
|
13061
13070
|
let {
|
|
13062
13071
|
children: t
|
|
13063
13072
|
} = e;
|
|
13064
13073
|
return be.createElement(Zn.Provider, {
|
|
13065
13074
|
value: Bu
|
|
13066
13075
|
}, be.createElement(co.Provider, {
|
|
13067
|
-
value:
|
|
13076
|
+
value: Bw
|
|
13068
13077
|
}, t));
|
|
13069
13078
|
}
|
|
13070
|
-
const
|
|
13079
|
+
const Hw = {
|
|
13071
13080
|
position: "fixed",
|
|
13072
13081
|
touchAction: "none"
|
|
13073
|
-
},
|
|
13082
|
+
}, Kw = (e) => io(e) ? "transform 250ms ease" : void 0, Gw = /* @__PURE__ */ Gr((e, t) => {
|
|
13074
13083
|
let {
|
|
13075
13084
|
as: n,
|
|
13076
13085
|
activatorEvent: r,
|
|
@@ -13080,7 +13089,7 @@ const zw = {
|
|
|
13080
13089
|
rect: a,
|
|
13081
13090
|
style: l,
|
|
13082
13091
|
transform: c,
|
|
13083
|
-
transition: d =
|
|
13092
|
+
transition: d = Kw
|
|
13084
13093
|
} = e;
|
|
13085
13094
|
if (!a)
|
|
13086
13095
|
return null;
|
|
@@ -13089,13 +13098,13 @@ const zw = {
|
|
|
13089
13098
|
scaleX: 1,
|
|
13090
13099
|
scaleY: 1
|
|
13091
13100
|
}, h = {
|
|
13092
|
-
...
|
|
13101
|
+
...Hw,
|
|
13093
13102
|
width: a.width,
|
|
13094
13103
|
height: a.height,
|
|
13095
13104
|
top: a.top,
|
|
13096
13105
|
left: a.left,
|
|
13097
13106
|
transform: Dt.Transform.toString(u),
|
|
13098
|
-
transformOrigin: o && r ?
|
|
13107
|
+
transformOrigin: o && r ? Ty(r, a) : void 0,
|
|
13099
13108
|
transition: typeof d == "function" ? d(r) : d,
|
|
13100
13109
|
...l
|
|
13101
13110
|
};
|
|
@@ -13104,7 +13113,7 @@ const zw = {
|
|
|
13104
13113
|
style: h,
|
|
13105
13114
|
ref: t
|
|
13106
13115
|
}, s);
|
|
13107
|
-
}),
|
|
13116
|
+
}), Ww = (e) => (t) => {
|
|
13108
13117
|
let {
|
|
13109
13118
|
active: n,
|
|
13110
13119
|
dragOverlay: r
|
|
@@ -13124,7 +13133,7 @@ const zw = {
|
|
|
13124
13133
|
n.node.style.setProperty(l, c);
|
|
13125
13134
|
i != null && i.active && n.node.classList.remove(i.active);
|
|
13126
13135
|
};
|
|
13127
|
-
},
|
|
13136
|
+
}, jw = (e) => {
|
|
13128
13137
|
let {
|
|
13129
13138
|
transform: {
|
|
13130
13139
|
initial: t,
|
|
@@ -13136,11 +13145,11 @@ const zw = {
|
|
|
13136
13145
|
}, {
|
|
13137
13146
|
transform: Dt.Transform.toString(n)
|
|
13138
13147
|
}];
|
|
13139
|
-
},
|
|
13148
|
+
}, Vw = {
|
|
13140
13149
|
duration: 250,
|
|
13141
13150
|
easing: "ease",
|
|
13142
|
-
keyframes:
|
|
13143
|
-
sideEffects: /* @__PURE__ */
|
|
13151
|
+
keyframes: jw,
|
|
13152
|
+
sideEffects: /* @__PURE__ */ Ww({
|
|
13144
13153
|
styles: {
|
|
13145
13154
|
active: {
|
|
13146
13155
|
opacity: "0"
|
|
@@ -13148,7 +13157,7 @@ const zw = {
|
|
|
13148
13157
|
}
|
|
13149
13158
|
})
|
|
13150
13159
|
};
|
|
13151
|
-
function
|
|
13160
|
+
function Uw(e) {
|
|
13152
13161
|
let {
|
|
13153
13162
|
config: t,
|
|
13154
13163
|
draggableNodes: n,
|
|
@@ -13172,7 +13181,7 @@ function Vw(e) {
|
|
|
13172
13181
|
} = _e(i).getComputedStyle(i), u = Iu(d);
|
|
13173
13182
|
if (!u)
|
|
13174
13183
|
return;
|
|
13175
|
-
const h = typeof t == "function" ? t :
|
|
13184
|
+
const h = typeof t == "function" ? t : Yw(t);
|
|
13176
13185
|
return _u(l, o.draggable.measure), h({
|
|
13177
13186
|
active: {
|
|
13178
13187
|
id: s,
|
|
@@ -13191,14 +13200,14 @@ function Vw(e) {
|
|
|
13191
13200
|
});
|
|
13192
13201
|
});
|
|
13193
13202
|
}
|
|
13194
|
-
function
|
|
13203
|
+
function Yw(e) {
|
|
13195
13204
|
const {
|
|
13196
13205
|
duration: t,
|
|
13197
13206
|
easing: n,
|
|
13198
13207
|
sideEffects: r,
|
|
13199
13208
|
keyframes: o
|
|
13200
13209
|
} = {
|
|
13201
|
-
...
|
|
13210
|
+
...Vw,
|
|
13202
13211
|
...e
|
|
13203
13212
|
};
|
|
13204
13213
|
return (s) => {
|
|
@@ -13248,13 +13257,13 @@ function Uw(e) {
|
|
|
13248
13257
|
};
|
|
13249
13258
|
}
|
|
13250
13259
|
let Ca = 0;
|
|
13251
|
-
function
|
|
13260
|
+
function qw(e) {
|
|
13252
13261
|
return X(() => {
|
|
13253
13262
|
if (e != null)
|
|
13254
13263
|
return Ca++, Ca;
|
|
13255
13264
|
}, [e]);
|
|
13256
13265
|
}
|
|
13257
|
-
const
|
|
13266
|
+
const Xw = /* @__PURE__ */ be.memo((e) => {
|
|
13258
13267
|
let {
|
|
13259
13268
|
adjustScale: t = !1,
|
|
13260
13269
|
children: n,
|
|
@@ -13279,7 +13288,7 @@ const qw = /* @__PURE__ */ be.memo((e) => {
|
|
|
13279
13288
|
scrollableAncestors: S,
|
|
13280
13289
|
scrollableAncestorRects: b,
|
|
13281
13290
|
windowRect: R
|
|
13282
|
-
} = Ku(), P = xe(co), C =
|
|
13291
|
+
} = Ku(), P = xe(co), C = qw(u?.id), x = Hu(i, {
|
|
13283
13292
|
activatorEvent: d,
|
|
13284
13293
|
active: u,
|
|
13285
13294
|
activeNodeRect: h,
|
|
@@ -13291,15 +13300,15 @@ const qw = /* @__PURE__ */ be.memo((e) => {
|
|
|
13291
13300
|
scrollableAncestorRects: b,
|
|
13292
13301
|
transform: P,
|
|
13293
13302
|
windowRect: R
|
|
13294
|
-
}), I = ri(h), k =
|
|
13303
|
+
}), I = ri(h), k = Uw({
|
|
13295
13304
|
config: r,
|
|
13296
13305
|
draggableNodes: v,
|
|
13297
13306
|
droppableContainers: g,
|
|
13298
13307
|
measuringConfiguration: N
|
|
13299
13308
|
}), E = I ? y.setRef : void 0;
|
|
13300
|
-
return be.createElement(
|
|
13309
|
+
return be.createElement(zw, null, be.createElement($w, {
|
|
13301
13310
|
animation: k
|
|
13302
|
-
}, u && C ? be.createElement(
|
|
13311
|
+
}, u && C ? be.createElement(Gw, {
|
|
13303
13312
|
key: C,
|
|
13304
13313
|
id: u.id,
|
|
13305
13314
|
ref: E,
|
|
@@ -13320,7 +13329,7 @@ function oi(e, t, n) {
|
|
|
13320
13329
|
const r = e.slice();
|
|
13321
13330
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
13322
13331
|
}
|
|
13323
|
-
function
|
|
13332
|
+
function Zw(e, t) {
|
|
13324
13333
|
return e.reduce((n, r, o) => {
|
|
13325
13334
|
const s = t.get(r);
|
|
13326
13335
|
return s && (n[o] = s), n;
|
|
@@ -13329,7 +13338,7 @@ function Xw(e, t) {
|
|
|
13329
13338
|
function vr(e) {
|
|
13330
13339
|
return e !== null && e >= 0;
|
|
13331
13340
|
}
|
|
13332
|
-
function
|
|
13341
|
+
function Jw(e, t) {
|
|
13333
13342
|
if (e === t)
|
|
13334
13343
|
return !0;
|
|
13335
13344
|
if (e.length !== t.length)
|
|
@@ -13339,7 +13348,7 @@ function Zw(e, t) {
|
|
|
13339
13348
|
return !1;
|
|
13340
13349
|
return !0;
|
|
13341
13350
|
}
|
|
13342
|
-
function
|
|
13351
|
+
function Qw(e) {
|
|
13343
13352
|
return typeof e == "boolean" ? {
|
|
13344
13353
|
draggable: e,
|
|
13345
13354
|
droppable: e
|
|
@@ -13373,7 +13382,7 @@ const si = (e) => {
|
|
|
13373
13382
|
droppable: !1
|
|
13374
13383
|
}
|
|
13375
13384
|
});
|
|
13376
|
-
function
|
|
13385
|
+
function e0(e) {
|
|
13377
13386
|
let {
|
|
13378
13387
|
children: t,
|
|
13379
13388
|
id: n,
|
|
@@ -13387,7 +13396,7 @@ function Qw(e) {
|
|
|
13387
13396
|
droppableRects: l,
|
|
13388
13397
|
over: c,
|
|
13389
13398
|
measureDroppableContainers: d
|
|
13390
|
-
} = Ku(), u = Xn(Gu, n), h = a.rect !== null, m = X(() => r.map((P) => typeof P == "object" && "id" in P ? P.id : P), [r]), v = i != null, g = i ? m.indexOf(i.id) : -1, y = c ? m.indexOf(c.id) : -1, w = fe(m), N = !
|
|
13399
|
+
} = Ku(), u = Xn(Gu, n), h = a.rect !== null, m = X(() => r.map((P) => typeof P == "object" && "id" in P ? P.id : P), [r]), v = i != null, g = i ? m.indexOf(i.id) : -1, y = c ? m.indexOf(c.id) : -1, w = fe(m), N = !Jw(m, w.current), S = y !== -1 && g === -1 || N, b = Qw(s);
|
|
13391
13400
|
qe(() => {
|
|
13392
13401
|
N && v && d(m);
|
|
13393
13402
|
}, [N, m, v, d]), de(() => {
|
|
@@ -13402,7 +13411,7 @@ function Qw(e) {
|
|
|
13402
13411
|
items: m,
|
|
13403
13412
|
overIndex: y,
|
|
13404
13413
|
useDragOverlay: h,
|
|
13405
|
-
sortedRects:
|
|
13414
|
+
sortedRects: Zw(m, l),
|
|
13406
13415
|
strategy: o
|
|
13407
13416
|
}),
|
|
13408
13417
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -13412,7 +13421,7 @@ function Qw(e) {
|
|
|
13412
13421
|
value: R
|
|
13413
13422
|
}, t);
|
|
13414
13423
|
}
|
|
13415
|
-
const
|
|
13424
|
+
const t0 = (e) => {
|
|
13416
13425
|
let {
|
|
13417
13426
|
id: t,
|
|
13418
13427
|
items: n,
|
|
@@ -13420,7 +13429,7 @@ const e0 = (e) => {
|
|
|
13420
13429
|
overIndex: o
|
|
13421
13430
|
} = e;
|
|
13422
13431
|
return oi(n, r, o).indexOf(t);
|
|
13423
|
-
},
|
|
13432
|
+
}, n0 = (e) => {
|
|
13424
13433
|
let {
|
|
13425
13434
|
containerId: t,
|
|
13426
13435
|
isSorting: n,
|
|
@@ -13433,17 +13442,17 @@ const e0 = (e) => {
|
|
|
13433
13442
|
transition: c
|
|
13434
13443
|
} = e;
|
|
13435
13444
|
return !c || !r || a !== s && o === i ? !1 : n ? !0 : i !== o && t === l;
|
|
13436
|
-
},
|
|
13445
|
+
}, r0 = {
|
|
13437
13446
|
duration: 200,
|
|
13438
13447
|
easing: "ease"
|
|
13439
|
-
}, ju = "transform",
|
|
13448
|
+
}, ju = "transform", o0 = /* @__PURE__ */ Dt.Transition.toString({
|
|
13440
13449
|
property: ju,
|
|
13441
13450
|
duration: 0,
|
|
13442
13451
|
easing: "linear"
|
|
13443
|
-
}),
|
|
13452
|
+
}), s0 = {
|
|
13444
13453
|
roleDescription: "sortable"
|
|
13445
13454
|
};
|
|
13446
|
-
function
|
|
13455
|
+
function i0(e) {
|
|
13447
13456
|
let {
|
|
13448
13457
|
disabled: t,
|
|
13449
13458
|
index: n,
|
|
@@ -13471,17 +13480,17 @@ function s0(e) {
|
|
|
13471
13480
|
s && i(null);
|
|
13472
13481
|
}, [s]), s;
|
|
13473
13482
|
}
|
|
13474
|
-
function
|
|
13483
|
+
function a0(e) {
|
|
13475
13484
|
let {
|
|
13476
|
-
animateLayoutChanges: t =
|
|
13485
|
+
animateLayoutChanges: t = n0,
|
|
13477
13486
|
attributes: n,
|
|
13478
13487
|
disabled: r,
|
|
13479
13488
|
data: o,
|
|
13480
|
-
getNewIndex: s =
|
|
13489
|
+
getNewIndex: s = t0,
|
|
13481
13490
|
id: i,
|
|
13482
13491
|
strategy: a,
|
|
13483
13492
|
resizeObserverConfig: l,
|
|
13484
|
-
transition: c =
|
|
13493
|
+
transition: c = r0
|
|
13485
13494
|
} = e;
|
|
13486
13495
|
const {
|
|
13487
13496
|
items: d,
|
|
@@ -13493,7 +13502,7 @@ function i0(e) {
|
|
|
13493
13502
|
overIndex: y,
|
|
13494
13503
|
useDragOverlay: w,
|
|
13495
13504
|
strategy: N
|
|
13496
|
-
} = xe(Wu), S =
|
|
13505
|
+
} = xe(Wu), S = l0(r, m), b = d.indexOf(i), R = X(() => ({
|
|
13497
13506
|
sortable: {
|
|
13498
13507
|
containerId: u,
|
|
13499
13508
|
index: b,
|
|
@@ -13505,7 +13514,7 @@ function i0(e) {
|
|
|
13505
13514
|
node: x,
|
|
13506
13515
|
isOver: I,
|
|
13507
13516
|
setNodeRef: k
|
|
13508
|
-
} =
|
|
13517
|
+
} = Lw({
|
|
13509
13518
|
id: i,
|
|
13510
13519
|
data: R,
|
|
13511
13520
|
disabled: S.droppable,
|
|
@@ -13524,15 +13533,15 @@ function i0(e) {
|
|
|
13524
13533
|
over: B,
|
|
13525
13534
|
setActivatorNodeRef: L,
|
|
13526
13535
|
transform: F
|
|
13527
|
-
} =
|
|
13536
|
+
} = Tw({
|
|
13528
13537
|
id: i,
|
|
13529
13538
|
data: R,
|
|
13530
13539
|
attributes: {
|
|
13531
|
-
...
|
|
13540
|
+
...s0,
|
|
13532
13541
|
...n
|
|
13533
13542
|
},
|
|
13534
13543
|
disabled: S.draggable
|
|
13535
|
-
}), K =
|
|
13544
|
+
}), K = yy(k, z), V = !!E, U = V && !v && vr(h) && vr(y), ne = !w && D, re = ne && U ? F : null, j = U ? re ?? (a ?? N)({
|
|
13536
13545
|
rects: g,
|
|
13537
13546
|
activeNodeRect: $,
|
|
13538
13547
|
activeIndex: h,
|
|
@@ -13561,7 +13570,7 @@ function i0(e) {
|
|
|
13561
13570
|
previousContainerId: Y.current.containerId,
|
|
13562
13571
|
transition: c,
|
|
13563
13572
|
wasDragging: Y.current.activeId != null
|
|
13564
|
-
}), ge =
|
|
13573
|
+
}), ge = i0({
|
|
13565
13574
|
disabled: !ue,
|
|
13566
13575
|
index: b,
|
|
13567
13576
|
node: x,
|
|
@@ -13609,7 +13618,7 @@ function i0(e) {
|
|
|
13609
13618
|
ge || // Or to prevent items jumping to back to their "new" position when items change
|
|
13610
13619
|
te && Y.current.newIndex === b
|
|
13611
13620
|
)
|
|
13612
|
-
return
|
|
13621
|
+
return o0;
|
|
13613
13622
|
if (!(ne && !io(T) || !c) && (V || ue))
|
|
13614
13623
|
return Dt.Transition.toString({
|
|
13615
13624
|
...c,
|
|
@@ -13617,7 +13626,7 @@ function i0(e) {
|
|
|
13617
13626
|
});
|
|
13618
13627
|
}
|
|
13619
13628
|
}
|
|
13620
|
-
function
|
|
13629
|
+
function l0(e, t) {
|
|
13621
13630
|
var n, r;
|
|
13622
13631
|
return typeof e == "boolean" ? {
|
|
13623
13632
|
draggable: e,
|
|
@@ -13634,7 +13643,7 @@ function Kr(e) {
|
|
|
13634
13643
|
const t = e.data.current;
|
|
13635
13644
|
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
13636
13645
|
}
|
|
13637
|
-
const
|
|
13646
|
+
const c0 = [ce.Down, ce.Right, ce.Up, ce.Left], u0 = (e, t) => {
|
|
13638
13647
|
let {
|
|
13639
13648
|
context: {
|
|
13640
13649
|
active: n,
|
|
@@ -13645,7 +13654,7 @@ const l0 = [ce.Down, ce.Right, ce.Up, ce.Left], c0 = (e, t) => {
|
|
|
13645
13654
|
scrollableAncestors: a
|
|
13646
13655
|
}
|
|
13647
13656
|
} = t;
|
|
13648
|
-
if (
|
|
13657
|
+
if (c0.includes(e.code)) {
|
|
13649
13658
|
if (e.preventDefault(), !n || !r)
|
|
13650
13659
|
return;
|
|
13651
13660
|
const l = [];
|
|
@@ -13669,7 +13678,7 @@ const l0 = [ce.Down, ce.Right, ce.Up, ce.Left], c0 = (e, t) => {
|
|
|
13669
13678
|
break;
|
|
13670
13679
|
}
|
|
13671
13680
|
});
|
|
13672
|
-
const c =
|
|
13681
|
+
const c = Ly({
|
|
13673
13682
|
collisionRect: r,
|
|
13674
13683
|
droppableRects: o,
|
|
13675
13684
|
droppableContainers: l
|
|
@@ -13678,7 +13687,7 @@ const l0 = [ce.Down, ce.Right, ce.Up, ce.Left], c0 = (e, t) => {
|
|
|
13678
13687
|
if (d === i?.id && c.length > 1 && (d = c[1].id), d != null) {
|
|
13679
13688
|
const u = s.get(n.id), h = s.get(d), m = h ? o.get(h.id) : null, v = h?.node.current;
|
|
13680
13689
|
if (v && m && u && h) {
|
|
13681
|
-
const y = ao(v).some((P, C) => a[C] !== P), w = Vu(u, h), N =
|
|
13690
|
+
const y = ao(v).some((P, C) => a[C] !== P), w = Vu(u, h), N = d0(u, h), S = y || !w ? {
|
|
13682
13691
|
x: 0,
|
|
13683
13692
|
y: 0
|
|
13684
13693
|
} : {
|
|
@@ -13696,10 +13705,10 @@ const l0 = [ce.Down, ce.Right, ce.Up, ce.Left], c0 = (e, t) => {
|
|
|
13696
13705
|
function Vu(e, t) {
|
|
13697
13706
|
return !Kr(e) || !Kr(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
13698
13707
|
}
|
|
13699
|
-
function
|
|
13708
|
+
function d0(e, t) {
|
|
13700
13709
|
return !Kr(e) || !Kr(t) || !Vu(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
|
|
13701
13710
|
}
|
|
13702
|
-
function
|
|
13711
|
+
function f0({
|
|
13703
13712
|
item: e,
|
|
13704
13713
|
index: t,
|
|
13705
13714
|
renderItem: n,
|
|
@@ -13707,7 +13716,7 @@ function d0({
|
|
|
13707
13716
|
keyExtractor: o,
|
|
13708
13717
|
disabled: s = !1
|
|
13709
13718
|
}) {
|
|
13710
|
-
const { attributes: i, listeners: a, setNodeRef: l, transform: c, transition: d, isDragging: u } =
|
|
13719
|
+
const { attributes: i, listeners: a, setNodeRef: l, transform: c, transition: d, isDragging: u } = a0({
|
|
13711
13720
|
id: o(e),
|
|
13712
13721
|
disabled: s
|
|
13713
13722
|
}), h = {
|
|
@@ -13729,14 +13738,14 @@ function d0({
|
|
|
13729
13738
|
))
|
|
13730
13739
|
] });
|
|
13731
13740
|
}
|
|
13732
|
-
function
|
|
13741
|
+
function h0({
|
|
13733
13742
|
item: e,
|
|
13734
13743
|
index: t,
|
|
13735
13744
|
renderItem: n
|
|
13736
13745
|
}) {
|
|
13737
13746
|
return /* @__PURE__ */ f("div", { className: "rotate-2", children: n(e, t, !0) });
|
|
13738
13747
|
}
|
|
13739
|
-
function
|
|
13748
|
+
function m0({
|
|
13740
13749
|
items: e,
|
|
13741
13750
|
onChange: t,
|
|
13742
13751
|
renderItem: n,
|
|
@@ -13755,10 +13764,10 @@ function h0({
|
|
|
13755
13764
|
de(() => {
|
|
13756
13765
|
v(e);
|
|
13757
13766
|
}, [e]);
|
|
13758
|
-
const [g, y] = ie(null), w =
|
|
13767
|
+
const [g, y] = ie(null), w = Oy(
|
|
13759
13768
|
ca(ni),
|
|
13760
13769
|
ca(ei, {
|
|
13761
|
-
coordinateGetter:
|
|
13770
|
+
coordinateGetter: u0
|
|
13762
13771
|
})
|
|
13763
13772
|
), N = (P) => {
|
|
13764
13773
|
const C = m.find((x) => o(x) === P.active.id);
|
|
@@ -13787,15 +13796,15 @@ function h0({
|
|
|
13787
13796
|
return /* @__PURE__ */ _("div", { className: `w-full ${i}`, children: [
|
|
13788
13797
|
a && /* @__PURE__ */ f("div", { className: "mb-6", children: a() }),
|
|
13789
13798
|
m.length === 0 && l ? l() : /* @__PURE__ */ f("div", { className: "mb-6", children: /* @__PURE__ */ _(
|
|
13790
|
-
|
|
13799
|
+
Dw,
|
|
13791
13800
|
{
|
|
13792
13801
|
sensors: w,
|
|
13793
|
-
collisionDetection:
|
|
13802
|
+
collisionDetection: Fy,
|
|
13794
13803
|
onDragStart: N,
|
|
13795
13804
|
onDragEnd: S,
|
|
13796
13805
|
children: [
|
|
13797
|
-
/* @__PURE__ */ f(
|
|
13798
|
-
|
|
13806
|
+
/* @__PURE__ */ f(e0, { items: m.map(o), strategy: si, children: /* @__PURE__ */ f("div", { className: s, children: m.map((P, C) => /* @__PURE__ */ f(
|
|
13807
|
+
f0,
|
|
13799
13808
|
{
|
|
13800
13809
|
item: P,
|
|
13801
13810
|
index: C,
|
|
@@ -13806,7 +13815,7 @@ function h0({
|
|
|
13806
13815
|
},
|
|
13807
13816
|
o(P)
|
|
13808
13817
|
)) }) }),
|
|
13809
|
-
/* @__PURE__ */ f(
|
|
13818
|
+
/* @__PURE__ */ f(Xw, { children: b ? d ? /* @__PURE__ */ f("div", { className: "rotate-2 shadow-lg", children: d(b, R) }) : /* @__PURE__ */ f(h0, { item: b, index: R, renderItem: n }) : null })
|
|
13810
13819
|
]
|
|
13811
13820
|
}
|
|
13812
13821
|
) }),
|
|
@@ -13825,7 +13834,7 @@ function h0({
|
|
|
13825
13834
|
] })
|
|
13826
13835
|
] });
|
|
13827
13836
|
}
|
|
13828
|
-
const
|
|
13837
|
+
const p0 = gl(
|
|
13829
13838
|
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",
|
|
13830
13839
|
{
|
|
13831
13840
|
variants: {
|
|
@@ -13841,9 +13850,9 @@ const m0 = gl(
|
|
|
13841
13850
|
}
|
|
13842
13851
|
);
|
|
13843
13852
|
function ii({ className: e, variant: t, ...n }) {
|
|
13844
|
-
return /* @__PURE__ */ f("div", { className: le(
|
|
13853
|
+
return /* @__PURE__ */ f("div", { className: le(p0({ variant: t }), e), ...n });
|
|
13845
13854
|
}
|
|
13846
|
-
function
|
|
13855
|
+
function g0({
|
|
13847
13856
|
page: e,
|
|
13848
13857
|
index: t,
|
|
13849
13858
|
isDragging: n
|
|
@@ -13876,7 +13885,7 @@ function p0({
|
|
|
13876
13885
|
}
|
|
13877
13886
|
);
|
|
13878
13887
|
}
|
|
13879
|
-
function
|
|
13888
|
+
function v0({
|
|
13880
13889
|
open: e,
|
|
13881
13890
|
onOpenChange: t,
|
|
13882
13891
|
pages: n,
|
|
@@ -13910,7 +13919,7 @@ function g0({
|
|
|
13910
13919
|
}, b = p.useMemo(() => (!s || typeof s != "function") && i ? Xs({ pageComponents: i, payload: a, setup: l }) : null, [s, i, a, l]), R = (I, k, E) => {
|
|
13911
13920
|
const T = I.strictPosition, O = !!o && !(T === "start" || T === "end"), z = (D) => {
|
|
13912
13921
|
D.preventDefault(), D.stopPropagation(), o && (o(I), m((B) => B.filter((L) => y(L) !== y(I))), g(!0));
|
|
13913
|
-
}, A = s && typeof s == "function" ? s(I, k, E) : b ? b(I, k, E) : /* @__PURE__ */ f(
|
|
13922
|
+
}, A = s && typeof s == "function" ? s(I, k, E) : b ? b(I, k, E) : /* @__PURE__ */ f(g0, { page: I, index: k, isDragging: E });
|
|
13914
13923
|
return /* @__PURE__ */ _("div", { className: "relative inline-block align-top", children: [
|
|
13915
13924
|
A,
|
|
13916
13925
|
O && /* @__PURE__ */ _(
|
|
@@ -13974,7 +13983,7 @@ function g0({
|
|
|
13974
13983
|
] })
|
|
13975
13984
|
] }) }),
|
|
13976
13985
|
/* @__PURE__ */ f("div", { className: "flex-1 overflow-hidden flex flex-col", children: /* @__PURE__ */ f("div", { className: "flex-1 overflow-auto p-6 bg-gray-50", children: /* @__PURE__ */ f(
|
|
13977
|
-
|
|
13986
|
+
m0,
|
|
13978
13987
|
{
|
|
13979
13988
|
items: h,
|
|
13980
13989
|
onChange: w,
|
|
@@ -14010,7 +14019,7 @@ function g0({
|
|
|
14010
14019
|
}
|
|
14011
14020
|
) });
|
|
14012
14021
|
}
|
|
14013
|
-
function
|
|
14022
|
+
function b0({
|
|
14014
14023
|
pageId: e,
|
|
14015
14024
|
templateId: t,
|
|
14016
14025
|
componentKey: n,
|
|
@@ -14134,8 +14143,8 @@ function Yu(e) {
|
|
|
14134
14143
|
const t = p.useRef({ value: e, previous: e });
|
|
14135
14144
|
return p.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
14136
14145
|
}
|
|
14137
|
-
var uo = "Switch", [
|
|
14138
|
-
function
|
|
14146
|
+
var uo = "Switch", [y0] = gt(uo), [w0, ai] = y0(uo);
|
|
14147
|
+
function x0(e) {
|
|
14139
14148
|
const {
|
|
14140
14149
|
__scopeSwitch: t,
|
|
14141
14150
|
checked: n,
|
|
@@ -14173,7 +14182,7 @@ function w0(e) {
|
|
|
14173
14182
|
bubbleInput: y,
|
|
14174
14183
|
setBubbleInput: w
|
|
14175
14184
|
};
|
|
14176
|
-
return /* @__PURE__ */ f(
|
|
14185
|
+
return /* @__PURE__ */ f(w0, { scope: t, ...b, children: C0(u) ? u(b) : r });
|
|
14177
14186
|
}
|
|
14178
14187
|
var qu = "SwitchTrigger", Xu = p.forwardRef(
|
|
14179
14188
|
({ __scopeSwitch: e, onClick: t, ...n }, r) => {
|
|
@@ -14232,7 +14241,7 @@ var li = p.forwardRef(
|
|
|
14232
14241
|
...u
|
|
14233
14242
|
} = e;
|
|
14234
14243
|
return /* @__PURE__ */ f(
|
|
14235
|
-
|
|
14244
|
+
x0,
|
|
14236
14245
|
{
|
|
14237
14246
|
__scopeSwitch: n,
|
|
14238
14247
|
checked: o,
|
|
@@ -14338,7 +14347,7 @@ var Qu = "SwitchBubbleInput", ed = p.forwardRef(
|
|
|
14338
14347
|
}
|
|
14339
14348
|
);
|
|
14340
14349
|
ed.displayName = Qu;
|
|
14341
|
-
function
|
|
14350
|
+
function C0(e) {
|
|
14342
14351
|
return typeof e == "function";
|
|
14343
14352
|
}
|
|
14344
14353
|
function td(e) {
|
|
@@ -14372,9 +14381,9 @@ var od = ["PageUp", "PageDown"], sd = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
14372
14381
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
14373
14382
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
14374
14383
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
14375
|
-
}, yn = "Slider", [Qo,
|
|
14376
|
-
|
|
14377
|
-
]), [
|
|
14384
|
+
}, yn = "Slider", [Qo, S0, N0] = fs(yn), [ci] = gt(yn, [
|
|
14385
|
+
N0
|
|
14386
|
+
]), [k0, Jn] = ci(yn), ui = p.forwardRef(
|
|
14378
14387
|
(e, t) => {
|
|
14379
14388
|
const {
|
|
14380
14389
|
name: n,
|
|
@@ -14393,7 +14402,7 @@ var od = ["PageUp", "PageDown"], sd = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
14393
14402
|
inverted: m = !1,
|
|
14394
14403
|
form: v,
|
|
14395
14404
|
...g
|
|
14396
|
-
} = e, y = p.useRef(/* @__PURE__ */ new Set()), w = p.useRef(0), N = p.useRef(!1), b = i === "horizontal" ?
|
|
14405
|
+
} = e, y = p.useRef(/* @__PURE__ */ new Set()), w = p.useRef(0), N = p.useRef(!1), b = i === "horizontal" ? R0 : P0, [R, P] = p.useState(null), C = me(t, P), [x = [], I] = fn({
|
|
14397
14406
|
prop: d,
|
|
14398
14407
|
defaultProp: c,
|
|
14399
14408
|
onChange: (A) => {
|
|
@@ -14411,7 +14420,7 @@ var od = ["PageUp", "PageDown"], sd = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
14411
14420
|
}
|
|
14412
14421
|
}, [R, v, I]);
|
|
14413
14422
|
function T(A) {
|
|
14414
|
-
const D =
|
|
14423
|
+
const D = D0(x, A);
|
|
14415
14424
|
z(A, D);
|
|
14416
14425
|
}
|
|
14417
14426
|
function $(A) {
|
|
@@ -14424,8 +14433,8 @@ var od = ["PageUp", "PageDown"], sd = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
14424
14433
|
function z(A, D, { commit: B } = { commit: !1 }) {
|
|
14425
14434
|
const L = Cd(s), F = Sr(Math.round((A - r) / s) * s + r, L), K = rd(F, [r, o]);
|
|
14426
14435
|
I((V = []) => {
|
|
14427
|
-
const U =
|
|
14428
|
-
if (
|
|
14436
|
+
const U = E0(V, K, D);
|
|
14437
|
+
if (T0(U, l * s)) {
|
|
14429
14438
|
w.current = U.indexOf(K);
|
|
14430
14439
|
const ne = String(U) !== String(V);
|
|
14431
14440
|
return ne && B && h(U), ne ? U : V;
|
|
@@ -14434,7 +14443,7 @@ var od = ["PageUp", "PageDown"], sd = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
14434
14443
|
});
|
|
14435
14444
|
}
|
|
14436
14445
|
return /* @__PURE__ */ f(
|
|
14437
|
-
|
|
14446
|
+
k0,
|
|
14438
14447
|
{
|
|
14439
14448
|
scope: e.__scopeSlider,
|
|
14440
14449
|
name: n,
|
|
@@ -14471,7 +14480,7 @@ var od = ["PageUp", "PageDown"], sd = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
14471
14480
|
onStepKeyDown: ({ event: A, direction: D }) => {
|
|
14472
14481
|
if (!a) {
|
|
14473
14482
|
N.current = !0;
|
|
14474
|
-
const F = od.includes(A.key) || A.shiftKey && sd.includes(A.key) ? 10 : 1, K = w.current, V = x[K], U =
|
|
14483
|
+
const F = od.includes(A.key) || A.shiftKey && sd.includes(A.key) ? 10 : 1, K = w.current, V = x[K], U = _0(V, {
|
|
14475
14484
|
min: r,
|
|
14476
14485
|
step: s,
|
|
14477
14486
|
direction: D,
|
|
@@ -14492,7 +14501,7 @@ var [ad, ld] = ci(yn, {
|
|
|
14492
14501
|
endEdge: "right",
|
|
14493
14502
|
size: "width",
|
|
14494
14503
|
direction: 1
|
|
14495
|
-
}),
|
|
14504
|
+
}), R0 = p.forwardRef(
|
|
14496
14505
|
(e, t) => {
|
|
14497
14506
|
const {
|
|
14498
14507
|
min: n,
|
|
@@ -14548,7 +14557,7 @@ var [ad, ld] = ci(yn, {
|
|
|
14548
14557
|
}
|
|
14549
14558
|
);
|
|
14550
14559
|
}
|
|
14551
|
-
),
|
|
14560
|
+
), P0 = p.forwardRef(
|
|
14552
14561
|
(e, t) => {
|
|
14553
14562
|
const {
|
|
14554
14563
|
min: n,
|
|
@@ -14673,7 +14682,7 @@ var es = "SliderRange", fd = p.forwardRef(
|
|
|
14673
14682
|
}
|
|
14674
14683
|
);
|
|
14675
14684
|
fd.displayName = es;
|
|
14676
|
-
var hd = "SliderThumb", [
|
|
14685
|
+
var hd = "SliderThumb", [I0, md] = ci(hd), pd = "SliderThumbProvider";
|
|
14677
14686
|
function gd(e) {
|
|
14678
14687
|
const {
|
|
14679
14688
|
__scopeSlider: t,
|
|
@@ -14681,7 +14690,7 @@ function gd(e) {
|
|
|
14681
14690
|
children: r,
|
|
14682
14691
|
// @ts-expect-error internal render prop
|
|
14683
14692
|
internal_do_not_use_render: o
|
|
14684
|
-
} = e, s = Jn(pd, t), i =
|
|
14693
|
+
} = e, s = Jn(pd, t), i = S0(t), [a, l] = p.useState(null), c = p.useMemo(
|
|
14685
14694
|
() => a ? i().findIndex((y) => y.ref.current === a) : -1,
|
|
14686
14695
|
[i, a]
|
|
14687
14696
|
), d = Ss(a), u = a ? !!s.form || !!a.closest("form") : !0, h = s.values[c], m = n ?? (s.name ? s.name + (s.values.length > 1 ? "[]" : "") : void 0), v = h === void 0 ? 0 : xd(h, s.min, s.max);
|
|
@@ -14702,7 +14711,7 @@ function gd(e) {
|
|
|
14702
14711
|
percent: v,
|
|
14703
14712
|
size: d
|
|
14704
14713
|
};
|
|
14705
|
-
return /* @__PURE__ */ f(
|
|
14714
|
+
return /* @__PURE__ */ f(I0, { scope: t, ...g, children: F0(o) ? o(g) : r });
|
|
14706
14715
|
}
|
|
14707
14716
|
gd.displayName = pd;
|
|
14708
14717
|
var Cr = "SliderThumbTrigger", vd = p.forwardRef(
|
|
@@ -14710,7 +14719,7 @@ var Cr = "SliderThumbTrigger", vd = p.forwardRef(
|
|
|
14710
14719
|
const { __scopeSlider: n, ...r } = e, o = Jn(Cr, n), s = ld(Cr, n), { index: i, value: a, percent: l, size: c, onThumbChange: d } = md(
|
|
14711
14720
|
Cr,
|
|
14712
14721
|
n
|
|
14713
|
-
), u = me(t, d), h =
|
|
14722
|
+
), u = me(t, d), h = A0(i, o.values.length), m = c?.[s.size], v = m ? M0(m, l, s.direction) : 0;
|
|
14714
14723
|
return /* @__PURE__ */ f(
|
|
14715
14724
|
"span",
|
|
14716
14725
|
{
|
|
@@ -14799,7 +14808,7 @@ var yd = "SliderBubbleInput", wd = p.forwardRef(
|
|
|
14799
14808
|
}
|
|
14800
14809
|
);
|
|
14801
14810
|
wd.displayName = yd;
|
|
14802
|
-
function
|
|
14811
|
+
function E0(e = [], t, n) {
|
|
14803
14812
|
const r = [...e];
|
|
14804
14813
|
return r[n] = t, r.sort((o, s) => o - s);
|
|
14805
14814
|
}
|
|
@@ -14807,24 +14816,24 @@ function xd(e, t, n) {
|
|
|
14807
14816
|
const s = 100 / (n - t) * (e - t);
|
|
14808
14817
|
return rd(s, [0, 100]);
|
|
14809
14818
|
}
|
|
14810
|
-
function
|
|
14819
|
+
function A0(e, t) {
|
|
14811
14820
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
14812
14821
|
}
|
|
14813
|
-
function
|
|
14822
|
+
function D0(e, t) {
|
|
14814
14823
|
if (e.length === 1) return 0;
|
|
14815
14824
|
const n = e.map((o) => Math.abs(o - t)), r = Math.min(...n);
|
|
14816
14825
|
return n.indexOf(r);
|
|
14817
14826
|
}
|
|
14818
|
-
function
|
|
14827
|
+
function M0(e, t, n) {
|
|
14819
14828
|
const r = e / 2, s = di([0, 50], [0, r]);
|
|
14820
14829
|
return (r - s(t) * n) * n;
|
|
14821
14830
|
}
|
|
14822
|
-
function
|
|
14831
|
+
function O0(e) {
|
|
14823
14832
|
return e.slice(0, -1).map((t, n) => e[n + 1] - t);
|
|
14824
14833
|
}
|
|
14825
|
-
function
|
|
14834
|
+
function T0(e, t) {
|
|
14826
14835
|
if (t > 0) {
|
|
14827
|
-
const n =
|
|
14836
|
+
const n = O0(e);
|
|
14828
14837
|
return Math.min(...n) >= t;
|
|
14829
14838
|
}
|
|
14830
14839
|
return !0;
|
|
@@ -14850,7 +14859,7 @@ function Sr(e, t) {
|
|
|
14850
14859
|
const n = Math.pow(10, t);
|
|
14851
14860
|
return Math.round(e * n) / n;
|
|
14852
14861
|
}
|
|
14853
|
-
function
|
|
14862
|
+
function _0(e, {
|
|
14854
14863
|
min: t,
|
|
14855
14864
|
step: n,
|
|
14856
14865
|
direction: r,
|
|
@@ -14860,7 +14869,7 @@ function T0(e, {
|
|
|
14860
14869
|
let c;
|
|
14861
14870
|
return l ? c = a + o * r : r > 0 ? c = Math.ceil(i) : c = Math.floor(i), Sr(c * n + t, s);
|
|
14862
14871
|
}
|
|
14863
|
-
function
|
|
14872
|
+
function F0(e) {
|
|
14864
14873
|
return typeof e == "function";
|
|
14865
14874
|
}
|
|
14866
14875
|
const fi = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(
|
|
@@ -14879,7 +14888,7 @@ const fi = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(
|
|
|
14879
14888
|
}
|
|
14880
14889
|
));
|
|
14881
14890
|
fi.displayName = ui.displayName;
|
|
14882
|
-
var
|
|
14891
|
+
var L0 = "Label", Sd = p.forwardRef((e, t) => /* @__PURE__ */ f(
|
|
14883
14892
|
pe.label,
|
|
14884
14893
|
{
|
|
14885
14894
|
...e,
|
|
@@ -14889,7 +14898,7 @@ var F0 = "Label", Sd = p.forwardRef((e, t) => /* @__PURE__ */ f(
|
|
|
14889
14898
|
}
|
|
14890
14899
|
}
|
|
14891
14900
|
));
|
|
14892
|
-
Sd.displayName =
|
|
14901
|
+
Sd.displayName = L0;
|
|
14893
14902
|
var Nd = Sd;
|
|
14894
14903
|
const sn = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
14895
14904
|
Nd,
|
|
@@ -14911,7 +14920,7 @@ function kd(e, t) {
|
|
|
14911
14920
|
return r.type === "select" || r.type === "color-series" ? o !== "" : !0;
|
|
14912
14921
|
});
|
|
14913
14922
|
}
|
|
14914
|
-
function
|
|
14923
|
+
function $0({
|
|
14915
14924
|
pageOptions: e,
|
|
14916
14925
|
targetItem: t,
|
|
14917
14926
|
onChange: n
|
|
@@ -15033,7 +15042,7 @@ function L0({
|
|
|
15033
15042
|
};
|
|
15034
15043
|
return /* @__PURE__ */ f("div", { className: "space-y-3", children: r.map((s) => o(s)) });
|
|
15035
15044
|
}
|
|
15036
|
-
function
|
|
15045
|
+
function B0({
|
|
15037
15046
|
pageOptions: e,
|
|
15038
15047
|
targetItem: t,
|
|
15039
15048
|
onChange: n,
|
|
@@ -15055,7 +15064,7 @@ function $0({
|
|
|
15055
15064
|
}
|
|
15056
15065
|
) }),
|
|
15057
15066
|
/* @__PURE__ */ f(pn, { className: "min-w-48 p-3", align: "center", children: /* @__PURE__ */ f(
|
|
15058
|
-
|
|
15067
|
+
$0,
|
|
15059
15068
|
{
|
|
15060
15069
|
pageOptions: e,
|
|
15061
15070
|
targetItem: t,
|
|
@@ -15064,7 +15073,7 @@ function $0({
|
|
|
15064
15073
|
) })
|
|
15065
15074
|
] });
|
|
15066
15075
|
}
|
|
15067
|
-
function
|
|
15076
|
+
function z0({
|
|
15068
15077
|
name: e,
|
|
15069
15078
|
canRename: t,
|
|
15070
15079
|
canMoveUp: n,
|
|
@@ -15149,7 +15158,7 @@ function B0({
|
|
|
15149
15158
|
] })
|
|
15150
15159
|
] }) : /* @__PURE__ */ f("span", { className: "text-xs font-medium text-gray-600 truncate max-w-[120px]", children: e });
|
|
15151
15160
|
}
|
|
15152
|
-
function
|
|
15161
|
+
function H0(e) {
|
|
15153
15162
|
const {
|
|
15154
15163
|
initialItems: t,
|
|
15155
15164
|
availableItems: n = [],
|
|
@@ -15350,7 +15359,7 @@ function z0(e) {
|
|
|
15350
15359
|
defaultRenderThumbnail: z
|
|
15351
15360
|
};
|
|
15352
15361
|
}
|
|
15353
|
-
function
|
|
15362
|
+
function K0({
|
|
15354
15363
|
items: e,
|
|
15355
15364
|
reorderItems: t,
|
|
15356
15365
|
availableItemsToAdd: n,
|
|
@@ -15381,7 +15390,7 @@ function H0({
|
|
|
15381
15390
|
[e, s, t, n, r, o]
|
|
15382
15391
|
);
|
|
15383
15392
|
}
|
|
15384
|
-
function
|
|
15393
|
+
function G0(e = [], t = {}) {
|
|
15385
15394
|
const n = [];
|
|
15386
15395
|
let r = 1;
|
|
15387
15396
|
for (const o of e) {
|
|
@@ -15398,7 +15407,7 @@ function K0(e = [], t = {}) {
|
|
|
15398
15407
|
}
|
|
15399
15408
|
return n;
|
|
15400
15409
|
}
|
|
15401
|
-
function
|
|
15410
|
+
function W0({
|
|
15402
15411
|
logicalPages: e,
|
|
15403
15412
|
pageFilter: t,
|
|
15404
15413
|
layoutKey: n = ""
|
|
@@ -15441,7 +15450,7 @@ function G0({
|
|
|
15441
15450
|
};
|
|
15442
15451
|
});
|
|
15443
15452
|
}, [a, n]), d = X(
|
|
15444
|
-
() =>
|
|
15453
|
+
() => G0(e, l),
|
|
15445
15454
|
[e, l]
|
|
15446
15455
|
), u = d.length, h = X(
|
|
15447
15456
|
() => d.filter((m) => Ub(m.pageNum, u, t)),
|
|
@@ -15457,10 +15466,10 @@ function G0({
|
|
|
15457
15466
|
function Sa(e, t) {
|
|
15458
15467
|
return e ? t ? `${e}.${t}` : e : null;
|
|
15459
15468
|
}
|
|
15460
|
-
function
|
|
15469
|
+
function j0(e, t, n) {
|
|
15461
15470
|
return t?.meta?.imageGalleryPath ?? t?.config?.imageGalleryPath ?? t?.imageGalleryPath ?? e?.options?.imageGalleryPath ?? e?.templateSetup?.options?.imageGalleryPath ?? n?.imageGalleryPath;
|
|
15462
15471
|
}
|
|
15463
|
-
function
|
|
15472
|
+
function V0({
|
|
15464
15473
|
payload: e,
|
|
15465
15474
|
page: t,
|
|
15466
15475
|
parentGroup: n,
|
|
@@ -15485,7 +15494,7 @@ function j0({
|
|
|
15485
15494
|
document: (c) => c ?? null
|
|
15486
15495
|
},
|
|
15487
15496
|
defaults: {
|
|
15488
|
-
imageGalleryPath:
|
|
15497
|
+
imageGalleryPath: j0(
|
|
15489
15498
|
e,
|
|
15490
15499
|
s.integration,
|
|
15491
15500
|
o
|
|
@@ -15526,7 +15535,7 @@ const Na = (e, t, n = !1, r) => {
|
|
|
15526
15535
|
item: void 0,
|
|
15527
15536
|
// Not available during initial construction
|
|
15528
15537
|
parent: void 0
|
|
15529
|
-
}, i =
|
|
15538
|
+
}, i = Y0(e.pageComponentKeys, o).map((a) => {
|
|
15530
15539
|
const l = r?.[a], c = l?.dataKey, d = l?.hasFlow;
|
|
15531
15540
|
return c || d ? { key: a, ...c ? { dataKey: c } : {}, ...d ? { hasFlow: d } : {} } : a;
|
|
15532
15541
|
});
|
|
@@ -15560,7 +15569,7 @@ const Na = (e, t, n = !1, r) => {
|
|
|
15560
15569
|
integration: e.integration,
|
|
15561
15570
|
strictPosition: e.strictPosition
|
|
15562
15571
|
});
|
|
15563
|
-
},
|
|
15572
|
+
}, U0 = (e) => e ? Array.isArray(e) ? e : Object.entries(e).map(([t, n]) => ({ ...n, id: t })) : [], Y0 = (e, t) => {
|
|
15564
15573
|
if (!e) return [];
|
|
15565
15574
|
if (Array.isArray(e)) return e;
|
|
15566
15575
|
try {
|
|
@@ -15572,7 +15581,7 @@ const Na = (e, t, n = !1, r) => {
|
|
|
15572
15581
|
} catch (n) {
|
|
15573
15582
|
return console.error("[uhuu-components] Error evaluating pageComponentKeys function:", n), [];
|
|
15574
15583
|
}
|
|
15575
|
-
},
|
|
15584
|
+
}, q0 = (e) => {
|
|
15576
15585
|
const {
|
|
15577
15586
|
initial: t,
|
|
15578
15587
|
groups: n,
|
|
@@ -15580,7 +15589,7 @@ const Na = (e, t, n = !1, r) => {
|
|
|
15580
15589
|
pages: o = {},
|
|
15581
15590
|
pageComponents: s = {},
|
|
15582
15591
|
payload: i
|
|
15583
|
-
} = e, a =
|
|
15592
|
+
} = e, a = U0(n), l = /* @__PURE__ */ new Map();
|
|
15584
15593
|
a.forEach((g) => l.set(g.id, g));
|
|
15585
15594
|
const c = r.length ? r : Object.keys(o), d = { ...s };
|
|
15586
15595
|
Object.entries(o).forEach(([g, y]) => {
|
|
@@ -15628,36 +15637,36 @@ const Na = (e, t, n = !1, r) => {
|
|
|
15628
15637
|
];
|
|
15629
15638
|
return { initialItems: u, availableItems: v, pageComponents: d };
|
|
15630
15639
|
};
|
|
15631
|
-
var Rd = "AlertDialog", [
|
|
15640
|
+
var Rd = "AlertDialog", [X0] = gt(Rd, [
|
|
15632
15641
|
uu
|
|
15633
15642
|
]), bt = uu(), Pd = (e) => {
|
|
15634
15643
|
const { __scopeAlertDialog: t, ...n } = e, r = bt(t);
|
|
15635
15644
|
return /* @__PURE__ */ f(Ks, { ...r, ...n, modal: !0 });
|
|
15636
15645
|
};
|
|
15637
15646
|
Pd.displayName = Rd;
|
|
15638
|
-
var
|
|
15647
|
+
var Z0 = "AlertDialogTrigger", J0 = p.forwardRef(
|
|
15639
15648
|
(e, t) => {
|
|
15640
15649
|
const { __scopeAlertDialog: n, ...r } = e, o = bt(n);
|
|
15641
15650
|
return /* @__PURE__ */ f(fu, { ...o, ...r, ref: t });
|
|
15642
15651
|
}
|
|
15643
15652
|
);
|
|
15644
|
-
|
|
15645
|
-
var
|
|
15653
|
+
J0.displayName = Z0;
|
|
15654
|
+
var Q0 = "AlertDialogPortal", Id = (e) => {
|
|
15646
15655
|
const { __scopeAlertDialog: t, ...n } = e, r = bt(t);
|
|
15647
15656
|
return /* @__PURE__ */ f(Ws, { ...r, ...n });
|
|
15648
15657
|
};
|
|
15649
|
-
Id.displayName =
|
|
15650
|
-
var
|
|
15658
|
+
Id.displayName = Q0;
|
|
15659
|
+
var ex = "AlertDialogOverlay", Ed = p.forwardRef(
|
|
15651
15660
|
(e, t) => {
|
|
15652
15661
|
const { __scopeAlertDialog: n, ...r } = e, o = bt(n);
|
|
15653
15662
|
return /* @__PURE__ */ f(Qr, { ...o, ...r, ref: t });
|
|
15654
15663
|
}
|
|
15655
15664
|
);
|
|
15656
|
-
Ed.displayName =
|
|
15657
|
-
var Ad = "AlertDialogContent", [
|
|
15665
|
+
Ed.displayName = ex;
|
|
15666
|
+
var Ad = "AlertDialogContent", [tx, nx] = X0(Ad), Dd = p.forwardRef(
|
|
15658
15667
|
(e, t) => {
|
|
15659
15668
|
const { __scopeAlertDialog: n, children: r, ...o } = e, s = bt(n), i = p.useRef(null), a = me(t, i), l = p.useRef(null);
|
|
15660
|
-
return /* @__PURE__ */ f(
|
|
15669
|
+
return /* @__PURE__ */ f(tx, { scope: n, cancelRef: l, children: /* @__PURE__ */ f(
|
|
15661
15670
|
eo,
|
|
15662
15671
|
{
|
|
15663
15672
|
role: "alertdialog",
|
|
@@ -15675,34 +15684,34 @@ var Ad = "AlertDialogContent", [ex, tx] = q0(Ad), Dd = p.forwardRef(
|
|
|
15675
15684
|
}
|
|
15676
15685
|
);
|
|
15677
15686
|
Dd.displayName = Ad;
|
|
15678
|
-
var
|
|
15687
|
+
var rx = "AlertDialogTitle", Md = p.forwardRef(
|
|
15679
15688
|
(e, t) => {
|
|
15680
15689
|
const { __scopeAlertDialog: n, ...r } = e, o = bt(n);
|
|
15681
15690
|
return /* @__PURE__ */ f(to, { ...o, ...r, ref: t });
|
|
15682
15691
|
}
|
|
15683
15692
|
);
|
|
15684
|
-
Md.displayName =
|
|
15685
|
-
var
|
|
15693
|
+
Md.displayName = rx;
|
|
15694
|
+
var ox = "AlertDialogDescription", Od = p.forwardRef((e, t) => {
|
|
15686
15695
|
const { __scopeAlertDialog: n, ...r } = e, o = bt(n);
|
|
15687
15696
|
return /* @__PURE__ */ f(no, { ...o, ...r, ref: t });
|
|
15688
15697
|
});
|
|
15689
|
-
Od.displayName =
|
|
15690
|
-
var
|
|
15698
|
+
Od.displayName = ox;
|
|
15699
|
+
var sx = "AlertDialogAction", Td = p.forwardRef(
|
|
15691
15700
|
(e, t) => {
|
|
15692
15701
|
const { __scopeAlertDialog: n, ...r } = e, o = bt(n);
|
|
15693
15702
|
return /* @__PURE__ */ f(ro, { ...o, ...r, ref: t });
|
|
15694
15703
|
}
|
|
15695
15704
|
);
|
|
15696
|
-
Td.displayName =
|
|
15705
|
+
Td.displayName = sx;
|
|
15697
15706
|
var _d = "AlertDialogCancel", Fd = p.forwardRef(
|
|
15698
15707
|
(e, t) => {
|
|
15699
|
-
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } =
|
|
15708
|
+
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } = nx(_d, n), s = bt(n), i = me(t, o);
|
|
15700
15709
|
return /* @__PURE__ */ f(ro, { ...s, ...r, ref: i });
|
|
15701
15710
|
}
|
|
15702
15711
|
);
|
|
15703
15712
|
Fd.displayName = _d;
|
|
15704
|
-
var
|
|
15705
|
-
const
|
|
15713
|
+
var ix = Pd, ax = Id, Ld = Ed, $d = Dd, Bd = Td, zd = Fd, Hd = Md, Kd = Od;
|
|
15714
|
+
const lx = ix, cx = ax, Gd = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
15706
15715
|
Ld,
|
|
15707
15716
|
{
|
|
15708
15717
|
ref: n,
|
|
@@ -15716,7 +15725,7 @@ const ax = sx, lx = ix, Gd = p.forwardRef(({ className: e, ...t }, n) => /* @__P
|
|
|
15716
15725
|
Gd.displayName = Ld.displayName;
|
|
15717
15726
|
const Wd = p.forwardRef(({ className: e, ...t }, n) => {
|
|
15718
15727
|
const { portalContainer: r } = cs();
|
|
15719
|
-
return /* @__PURE__ */ _(
|
|
15728
|
+
return /* @__PURE__ */ _(cx, { container: r || void 0, children: [
|
|
15720
15729
|
/* @__PURE__ */ f(Gd, {}),
|
|
15721
15730
|
/* @__PURE__ */ f(
|
|
15722
15731
|
$d,
|
|
@@ -15779,7 +15788,7 @@ const qd = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
15779
15788
|
}
|
|
15780
15789
|
));
|
|
15781
15790
|
qd.displayName = Bd.displayName;
|
|
15782
|
-
const
|
|
15791
|
+
const ux = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
15783
15792
|
zd,
|
|
15784
15793
|
{
|
|
15785
15794
|
ref: n,
|
|
@@ -15790,7 +15799,7 @@ const cx = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
|
|
|
15790
15799
|
...t
|
|
15791
15800
|
}
|
|
15792
15801
|
));
|
|
15793
|
-
|
|
15802
|
+
ux.displayName = zd.displayName;
|
|
15794
15803
|
const Oo = "__edit__", To = "__print__";
|
|
15795
15804
|
function Ra({
|
|
15796
15805
|
checked: e,
|
|
@@ -15821,7 +15830,7 @@ function Pa({ label: e, value: t }) {
|
|
|
15821
15830
|
] })
|
|
15822
15831
|
] });
|
|
15823
15832
|
}
|
|
15824
|
-
function
|
|
15833
|
+
function dx({
|
|
15825
15834
|
modes: e,
|
|
15826
15835
|
selectedMode: t,
|
|
15827
15836
|
onModeChange: n,
|
|
@@ -15940,11 +15949,11 @@ function ux({
|
|
|
15940
15949
|
] })
|
|
15941
15950
|
] });
|
|
15942
15951
|
}
|
|
15943
|
-
const
|
|
15944
|
-
function
|
|
15952
|
+
const fx = { width: 210, height: 297 };
|
|
15953
|
+
function hx(e, t) {
|
|
15945
15954
|
return t ? `${t.id}/${e.id}` : e.id;
|
|
15946
15955
|
}
|
|
15947
|
-
function
|
|
15956
|
+
function mx({ label: e, onDone: t, onAddAnother: n }) {
|
|
15948
15957
|
return e ? /* @__PURE__ */ f("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ _("div", { className: "bg-white rounded-lg border border-gray-200/80 shadow-xl p-6 w-full max-w-sm mx-4 flex flex-col items-center text-center", children: [
|
|
15949
15958
|
/* @__PURE__ */ f("div", { className: "rounded-full bg-emerald-100 p-3 mb-4", children: /* @__PURE__ */ f(ls, { className: "h-6 w-6 text-emerald-600", strokeWidth: 2.5 }) }),
|
|
15950
15959
|
/* @__PURE__ */ _("h2", { className: "text-base font-medium text-gray-900 mb-5", children: [
|
|
@@ -15984,7 +15993,7 @@ function Ia({
|
|
|
15984
15993
|
onSelectBrandKit: C,
|
|
15985
15994
|
onAddBrandKit: x
|
|
15986
15995
|
}) {
|
|
15987
|
-
const I = o ??
|
|
15996
|
+
const I = o ?? fx, { interactive: k, setInteractive: E, enableDevTools: T } = us(), $ = ds(), [O, z] = ie(null), [A, D] = ie(null), [B, L] = ie(void 0), [F, K] = ie(0), [V, U] = ie(0), ne = O ?? N, re = X(() => A ? { ...I, ...A } : I, [I, A]), H = xe(Un), j = H?.payload ?? r, [J, Z] = ie(!1), Y = re?.preview ?? "single_page", te = X(
|
|
15988
15997
|
() => Y === "two_pages" ? { ...re, preview: "single_page" } : re,
|
|
15989
15998
|
[Y, re]
|
|
15990
15999
|
), ue = X(() => Hs(e), [e]), ge = X(() => s?.length ? s.map((M) => "getValue" in M ? M : H?.setPageOptionValue ? ny(
|
|
@@ -16007,7 +16016,7 @@ function Ia({
|
|
|
16007
16016
|
itemsForReorder: Je,
|
|
16008
16017
|
handleReorder: er,
|
|
16009
16018
|
defaultRenderThumbnail: ho
|
|
16010
|
-
} =
|
|
16019
|
+
} = H0({
|
|
16011
16020
|
initialItems: ue,
|
|
16012
16021
|
availableItems: t,
|
|
16013
16022
|
pageComponents: n,
|
|
@@ -16032,7 +16041,7 @@ function Ia({
|
|
|
16032
16041
|
pageNum: oe.pageNum ?? M.length + 1,
|
|
16033
16042
|
basePageNum: oe.pageNum ?? M.length + 1,
|
|
16034
16043
|
parentGroup: ve,
|
|
16035
|
-
flowKey:
|
|
16044
|
+
flowKey: hx(oe, ve)
|
|
16036
16045
|
});
|
|
16037
16046
|
}
|
|
16038
16047
|
}
|
|
@@ -16051,7 +16060,7 @@ function Ia({
|
|
|
16051
16060
|
renderedVirtualPages: xt,
|
|
16052
16061
|
virtualTotalPageCount: Bt,
|
|
16053
16062
|
registerMeasurement: mo
|
|
16054
|
-
} =
|
|
16063
|
+
} = W0({
|
|
16055
16064
|
logicalPages: xn,
|
|
16056
16065
|
pageFilter: ne,
|
|
16057
16066
|
layoutKey: en
|
|
@@ -16069,7 +16078,7 @@ function Ia({
|
|
|
16069
16078
|
}, 300);
|
|
16070
16079
|
return () => clearTimeout(M);
|
|
16071
16080
|
}, [ct]);
|
|
16072
|
-
const Ie =
|
|
16081
|
+
const Ie = K0({
|
|
16073
16082
|
items: yt,
|
|
16074
16083
|
reorderItems: fo,
|
|
16075
16084
|
availableItemsToAdd: Jt,
|
|
@@ -16118,14 +16127,14 @@ function Ia({
|
|
|
16118
16127
|
j,
|
|
16119
16128
|
M,
|
|
16120
16129
|
Q
|
|
16121
|
-
), or =
|
|
16130
|
+
), or = V0({
|
|
16122
16131
|
payload: j,
|
|
16123
16132
|
page: M,
|
|
16124
16133
|
parentGroup: Q,
|
|
16125
16134
|
pagePayload: rr
|
|
16126
16135
|
});
|
|
16127
16136
|
return /* @__PURE__ */ f(
|
|
16128
|
-
|
|
16137
|
+
b0,
|
|
16129
16138
|
{
|
|
16130
16139
|
pageId: M.id,
|
|
16131
16140
|
templateId: Qe,
|
|
@@ -16175,7 +16184,7 @@ function Ia({
|
|
|
16175
16184
|
return /* @__PURE__ */ _("div", { "data-uhuu-editor": !0, className: "pl-0 flex items-center h-9", children: [
|
|
16176
16185
|
/* @__PURE__ */ f("span", { className: "page-number shrink-0 text-xs tabular-nums text-gray-400 font-medium pr-1", children: M.pageNum }),
|
|
16177
16186
|
/* @__PURE__ */ f(
|
|
16178
|
-
|
|
16187
|
+
z0,
|
|
16179
16188
|
{
|
|
16180
16189
|
name: Qe,
|
|
16181
16190
|
canRename: !0,
|
|
@@ -16193,7 +16202,7 @@ function Ia({
|
|
|
16193
16202
|
}
|
|
16194
16203
|
),
|
|
16195
16204
|
/* @__PURE__ */ f("span", { className: "pl-1", children: ge.length > 0 && /* @__PURE__ */ f(
|
|
16196
|
-
|
|
16205
|
+
B0,
|
|
16197
16206
|
{
|
|
16198
16207
|
pageOptions: ge,
|
|
16199
16208
|
targetItem: Re,
|
|
@@ -16228,7 +16237,7 @@ function Ia({
|
|
|
16228
16237
|
Bt === 1 ? "Page" : "Pages"
|
|
16229
16238
|
] }),
|
|
16230
16239
|
T && /* @__PURE__ */ f(
|
|
16231
|
-
|
|
16240
|
+
dx,
|
|
16232
16241
|
{
|
|
16233
16242
|
modes: S,
|
|
16234
16243
|
selectedMode: B,
|
|
@@ -16299,7 +16308,7 @@ function Ia({
|
|
|
16299
16308
|
}
|
|
16300
16309
|
),
|
|
16301
16310
|
/* @__PURE__ */ f(
|
|
16302
|
-
|
|
16311
|
+
uy,
|
|
16303
16312
|
{
|
|
16304
16313
|
defaultZoom: 80,
|
|
16305
16314
|
defaultZoomMode: b,
|
|
@@ -16310,7 +16319,7 @@ function Ia({
|
|
|
16310
16319
|
preview: Y,
|
|
16311
16320
|
children: Y === "two_pages" ? Ke.map((M, q) => {
|
|
16312
16321
|
const Q = M.left ?? M.right, oe = M.right ?? M.left, ve = Q?.parentGroup?.id ?? Q?.id ?? null, Re = oe?.parentGroup?.id ?? oe?.id ?? null, Qe = M.left?.parentGroup?.id ?? M.left?.id, ut = M.right?.parentGroup?.id ?? M.right?.id, rr = Qe === ct, po = ut === ct, or = (Sn, Xd) => Ie(Sn ? Sn.parentGroup ?? Sn : void 0, Xd);
|
|
16313
|
-
return /* @__PURE__ */ _(
|
|
16322
|
+
return /* @__PURE__ */ _(ay, { layout: M.layout, pageItemId: Re ?? void 0, children: [
|
|
16314
16323
|
M.left && /* @__PURE__ */ f(
|
|
16315
16324
|
"div",
|
|
16316
16325
|
{
|
|
@@ -16370,7 +16379,7 @@ function Ia({
|
|
|
16370
16379
|
),
|
|
16371
16380
|
k && !$ && /* @__PURE__ */ _(Te, { children: [
|
|
16372
16381
|
/* @__PURE__ */ f(
|
|
16373
|
-
|
|
16382
|
+
by,
|
|
16374
16383
|
{
|
|
16375
16384
|
open: wt,
|
|
16376
16385
|
onOpenChange: $t,
|
|
@@ -16384,7 +16393,7 @@ function Ia({
|
|
|
16384
16393
|
}
|
|
16385
16394
|
),
|
|
16386
16395
|
/* @__PURE__ */ f(
|
|
16387
|
-
|
|
16396
|
+
v0,
|
|
16388
16397
|
{
|
|
16389
16398
|
open: J,
|
|
16390
16399
|
onOpenChange: Z,
|
|
@@ -16405,7 +16414,7 @@ function Ia({
|
|
|
16405
16414
|
)
|
|
16406
16415
|
] }),
|
|
16407
16416
|
/* @__PURE__ */ f(
|
|
16408
|
-
|
|
16417
|
+
mx,
|
|
16409
16418
|
{
|
|
16410
16419
|
label: ae ? ae.label ?? ae.id : null,
|
|
16411
16420
|
onDone: () => Pe(null),
|
|
@@ -16417,7 +16426,7 @@ function Ia({
|
|
|
16417
16426
|
)
|
|
16418
16427
|
] });
|
|
16419
16428
|
}
|
|
16420
|
-
function
|
|
16429
|
+
function px(e) {
|
|
16421
16430
|
const { templateConfig: t, ...n } = e;
|
|
16422
16431
|
return xe(Un) || !e.payload && !e.onPayloadChange ? /* @__PURE__ */ f(Ia, { ...n }) : /* @__PURE__ */ f(
|
|
16423
16432
|
lu,
|
|
@@ -16429,9 +16438,9 @@ function mx(e) {
|
|
|
16429
16438
|
}
|
|
16430
16439
|
);
|
|
16431
16440
|
}
|
|
16432
|
-
function
|
|
16441
|
+
function gx(e) {
|
|
16433
16442
|
const n = xe(Un)?.payload ?? e.payload, r = p.useMemo(
|
|
16434
|
-
() =>
|
|
16443
|
+
() => q0({ ...e.templateConfig, payload: n }),
|
|
16435
16444
|
[e.templateConfig, n]
|
|
16436
16445
|
), [o, s] = p.useState({
|
|
16437
16446
|
open: !1,
|
|
@@ -16492,7 +16501,7 @@ function px(e) {
|
|
|
16492
16501
|
}, [a?.items, r.initialItems, n, e.templateConfig.groups, e.templateConfig.pages]);
|
|
16493
16502
|
return /* @__PURE__ */ _(Te, { children: [
|
|
16494
16503
|
/* @__PURE__ */ f(
|
|
16495
|
-
|
|
16504
|
+
px,
|
|
16496
16505
|
{
|
|
16497
16506
|
...e,
|
|
16498
16507
|
payload: n,
|
|
@@ -16503,7 +16512,7 @@ function px(e) {
|
|
|
16503
16512
|
}
|
|
16504
16513
|
),
|
|
16505
16514
|
/* @__PURE__ */ f(
|
|
16506
|
-
|
|
16515
|
+
lx,
|
|
16507
16516
|
{
|
|
16508
16517
|
open: o.open,
|
|
16509
16518
|
onOpenChange: (c) => {
|
|
@@ -16520,7 +16529,7 @@ function px(e) {
|
|
|
16520
16529
|
)
|
|
16521
16530
|
] });
|
|
16522
16531
|
}
|
|
16523
|
-
function
|
|
16532
|
+
function vx(e, t) {
|
|
16524
16533
|
if (!(!e || !t)) {
|
|
16525
16534
|
if (e.includes("??")) {
|
|
16526
16535
|
const n = e.split("??").map((r) => r.trim());
|
|
@@ -16544,24 +16553,24 @@ function Ea(e, t) {
|
|
|
16544
16553
|
}
|
|
16545
16554
|
return r;
|
|
16546
16555
|
}
|
|
16547
|
-
function
|
|
16556
|
+
function bx(e, t, n) {
|
|
16548
16557
|
const r = {};
|
|
16549
16558
|
for (const [o, s] of Object.entries(e))
|
|
16550
16559
|
if (typeof s == "function")
|
|
16551
16560
|
r[o] = s(t);
|
|
16552
16561
|
else if (typeof s == "string") {
|
|
16553
16562
|
const i = s.startsWith("integration.") ? s.slice(12) : s;
|
|
16554
|
-
r[o] =
|
|
16563
|
+
r[o] = vx(i, t);
|
|
16555
16564
|
}
|
|
16556
16565
|
return r;
|
|
16557
16566
|
}
|
|
16558
|
-
function bx(e, t, n) {
|
|
16559
|
-
return e(t, n);
|
|
16560
|
-
}
|
|
16561
16567
|
function yx(e, t, n) {
|
|
16562
|
-
return
|
|
16568
|
+
return e(t, n);
|
|
16563
16569
|
}
|
|
16564
16570
|
function wx(e, t, n) {
|
|
16571
|
+
return typeof e == "function" ? yx(e, t, n) : bx(e, t);
|
|
16572
|
+
}
|
|
16573
|
+
function xx(e, t, n) {
|
|
16565
16574
|
if (e?.defaults?.imageGalleryPath)
|
|
16566
16575
|
return e.defaults.imageGalleryPath;
|
|
16567
16576
|
if (n) {
|
|
@@ -16573,7 +16582,7 @@ function wx(e, t, n) {
|
|
|
16573
16582
|
}
|
|
16574
16583
|
return t?.media?.images ? "media.images" : t?.listing?.media?.images ? "listing.media.images" : t?.pba_listing?.media?.images ? "pba_listing.media.images" : t?.property?.media?.images ? "property.media.images" : null;
|
|
16575
16584
|
}
|
|
16576
|
-
function
|
|
16585
|
+
function Cx(e, t, n = {}, r, o = null) {
|
|
16577
16586
|
const s = e?.integration?.path?.();
|
|
16578
16587
|
if (!s) return null;
|
|
16579
16588
|
const i = n.type === "assistant", a = n.type === "image" || n.imagePath, l = i ? e.integration.path(t) ?? [s, t].filter(Boolean).join(".") : [s, t].filter(Boolean).join(".");
|
|
@@ -16607,9 +16616,9 @@ function xx(e, t, n = {}, r, o = null) {
|
|
|
16607
16616
|
...n
|
|
16608
16617
|
};
|
|
16609
16618
|
}
|
|
16610
|
-
function
|
|
16611
|
-
const { dataBinding: t, integration: n, resolver: r, galleryPath: o, defaults: s } = e, i = p.useMemo(() =>
|
|
16612
|
-
(d, u = {}, h) =>
|
|
16619
|
+
function Sx(e) {
|
|
16620
|
+
const { dataBinding: t, integration: n, resolver: r, galleryPath: o, defaults: s } = e, i = p.useMemo(() => wx(r, n, t?.payload), [r, n, t?.payload]), a = p.useMemo(() => xx(t, n, o), [t, n, o]), l = p.useCallback(
|
|
16621
|
+
(d, u = {}, h) => Cx(
|
|
16613
16622
|
t,
|
|
16614
16623
|
d,
|
|
16615
16624
|
u,
|
|
@@ -16644,7 +16653,7 @@ function Cx(e) {
|
|
|
16644
16653
|
[i, l, c, a, t, n]
|
|
16645
16654
|
);
|
|
16646
16655
|
}
|
|
16647
|
-
const
|
|
16656
|
+
const Ix = {
|
|
16648
16657
|
Pagination: Fo,
|
|
16649
16658
|
Sheet: Lo,
|
|
16650
16659
|
FlowArea: Ha,
|
|
@@ -16658,17 +16667,17 @@ const Px = {
|
|
|
16658
16667
|
FlowDocument: Pf,
|
|
16659
16668
|
markdownToFlowItems: Tf,
|
|
16660
16669
|
htmlToFlowItems: Va
|
|
16661
|
-
},
|
|
16670
|
+
}, Ex = {
|
|
16662
16671
|
TemplateDataProvider: lu,
|
|
16663
|
-
PageEditor:
|
|
16672
|
+
PageEditor: gx,
|
|
16664
16673
|
InteractiveModeProvider: bm,
|
|
16665
16674
|
useInteractive: us,
|
|
16666
|
-
useIntegrationAdapter:
|
|
16675
|
+
useIntegrationAdapter: Sx
|
|
16667
16676
|
};
|
|
16668
16677
|
export {
|
|
16669
16678
|
pf as Editable,
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
|
|
16679
|
+
Ex as EditorShell,
|
|
16680
|
+
Px as ImageBlock,
|
|
16681
|
+
Ix as Static
|
|
16673
16682
|
};
|
|
16674
16683
|
//# sourceMappingURL=uhuu-components.es.js.map
|