@namuna-nur/ui-kit 1.4.1 → 1.4.3
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/lib/shared/Avatar.tokens.js +895 -893
- package/lib/shared/FloorItem.tokens.js +3714 -14666
- package/lib/shared/twMerge.js +27 -22
- package/lib/src/atoms/Select/Select.d.ts +1 -1
- package/lib/src/molecules/DateOfBirth/DateOfBirth.stories.d.ts +3 -5
- package/lib/src/molecules/DateOfBirth/DateOfBirth.types.d.ts +4 -3
- package/lib/src/molecules/DateOfBirth/DateOfBirth.utils.d.ts +5 -0
- package/lib/src/molecules/SelectGroup/SelectGroup.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import V, { forwardRef as
|
|
2
|
+
import V, { forwardRef as fe, useLayoutEffect as da, useEffect as fa, useState as Po, createElement as Se, useRef as pa } from "react";
|
|
3
3
|
import { a as O, f as ma } from "./twMerge.js";
|
|
4
4
|
import * as Tn from "react-dom";
|
|
5
|
-
import
|
|
5
|
+
import Ao from "react-dom";
|
|
6
6
|
import { u as va } from "./useOption.js";
|
|
7
7
|
var hn = { exports: {} }, Qe = {};
|
|
8
8
|
/**
|
|
@@ -14,10 +14,10 @@ var hn = { exports: {} }, Qe = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
17
|
+
var $r;
|
|
18
18
|
function ha() {
|
|
19
|
-
if (
|
|
20
|
-
|
|
19
|
+
if ($r) return Qe;
|
|
20
|
+
$r = 1;
|
|
21
21
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
22
22
|
function n(r, o, s) {
|
|
23
23
|
var i = null;
|
|
@@ -46,9 +46,9 @@ var et = {};
|
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
48
|
*/
|
|
49
|
-
var
|
|
49
|
+
var Dr;
|
|
50
50
|
function ga() {
|
|
51
|
-
return
|
|
51
|
+
return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
52
|
function e(E) {
|
|
53
53
|
if (E == null) return null;
|
|
54
54
|
if (typeof E == "function")
|
|
@@ -61,7 +61,7 @@ function ga() {
|
|
|
61
61
|
return "Profiler";
|
|
62
62
|
case b:
|
|
63
63
|
return "StrictMode";
|
|
64
|
-
case
|
|
64
|
+
case S:
|
|
65
65
|
return "Suspense";
|
|
66
66
|
case P:
|
|
67
67
|
return "SuspenseList";
|
|
@@ -74,14 +74,14 @@ function ga() {
|
|
|
74
74
|
), E.$$typeof) {
|
|
75
75
|
case g:
|
|
76
76
|
return "Portal";
|
|
77
|
-
case w:
|
|
78
|
-
return (E.displayName || "Context") + ".Provider";
|
|
79
77
|
case y:
|
|
78
|
+
return (E.displayName || "Context") + ".Provider";
|
|
79
|
+
case w:
|
|
80
80
|
return (E._context.displayName || "Context") + ".Consumer";
|
|
81
81
|
case C:
|
|
82
82
|
var _ = E.render;
|
|
83
83
|
return E = E.displayName, E || (E = _.displayName || _.name || "", E = E !== "" ? "ForwardRef(" + E + ")" : "ForwardRef"), E;
|
|
84
|
-
case
|
|
84
|
+
case R:
|
|
85
85
|
return _ = E.displayName || null, _ !== null ? _ : e(E.type) || "Memo";
|
|
86
86
|
case T:
|
|
87
87
|
_ = E._payload, E = E._init;
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function d(E) {
|
|
241
241
|
typeof E == "object" && E !== null && E.$$typeof === v && E._store && (E._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var p = V, v = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"),
|
|
243
|
+
var p = V, v = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), y = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), L = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, j = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
p = {
|
|
@@ -332,7 +332,7 @@ const tt = {
|
|
|
332
332
|
hover: "hover:bg-transparent hover:text-primary-20 hover:border-transparent"
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
},
|
|
335
|
+
}, Mm = fe(
|
|
336
336
|
({
|
|
337
337
|
children: e,
|
|
338
338
|
classNames: t,
|
|
@@ -404,7 +404,7 @@ const tt = {
|
|
|
404
404
|
}
|
|
405
405
|
);
|
|
406
406
|
}
|
|
407
|
-
),
|
|
407
|
+
), Im = fe(
|
|
408
408
|
({
|
|
409
409
|
classNames: e,
|
|
410
410
|
disabled: t = !1,
|
|
@@ -523,7 +523,7 @@ const tt = {
|
|
|
523
523
|
label: "size-2.5"
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
},
|
|
526
|
+
}, jr = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 38, height: 30, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "M32.3 3.75h-3.01l-1.9-1.87A7.2 7.2 0 0 0 22.8 0h-7.6c-1.56 0-3.49.79-4.59 1.88l-1.9 1.87H5.7A5.67 5.67 0 0 0 0 9.38v15C0 27.48 2.56 30 5.7 30h26.6c3.14 0 5.7-2.52 5.7-5.62v-15c0-3.1-2.56-5.63-5.7-5.63M19 22.5a6.7 6.7 0 0 1-4.7-1.92 6.5 6.5 0 0 1 0-9.29 6.7 6.7 0 0 1 9.4 0 6.5 6.5 0 0 1 0 9.29A6.7 6.7 0 0 1 19 22.5m11.4-8.81a2.5 2.5 0 0 1-2.28-1.5 2.4 2.4 0 0 1 1.33-3.2 2.5 2.5 0 0 1 2.7.53 2.4 2.4 0 0 1 0 3.45c-.47.46-1.1.72-1.75.72" })), ba = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentFill", ...e }, /* @__PURE__ */ c.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m5.67 7.5 3.1 3.5L15 4M2 7.5 5.11 11m6.22-7L8.97 6.69" })), xa = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m9.55 15.15 8.48-8.48a.96.96 0 0 1 1.4 0q.3.3.3.72 0 .4-.3.71l-9.18 9.2a.96.96 0 0 1-1.4 0L4.55 13a1 1 0 0 1-.29-.71q.01-.41.32-.71.3-.3.7-.3.42 0 .72.3z" })), _o = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "none", ...e }, /* @__PURE__ */ c.createElement("g", { mask: "url(#mask0_770_8096)" }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m7.96 12.63 7.06-7.07a.8.8 0 0 1 1.17 0q.24.25.25.6 0 .34-.25.59l-7.65 7.67a.8.8 0 0 1-1.16 0l-3.59-3.59a.8.8 0 0 1-.24-.59q.01-.34.26-.6a.8.8 0 0 1 .6-.24q.34 0 .59.25z" }))), ya = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, fill: "none", ...e }, /* @__PURE__ */ c.createElement("path", { fill: "currentFill", d: "m12 15.33-5-5h10z" })), wa = (e) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentFill", viewBox: "0 0 19 19", ...e }, /* @__PURE__ */ c.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ c.createElement("path", { d: "M4.95 5.54a4.55 4.55 0 1 1 9.1 0 4.55 4.55 0 0 1-9.1 0m4.39 5.75h.32l5.77 1.02h.03c1.07.25 2.21.92 2.43 2.24v.02l.1.7c.2 1.58-1.05 2.74-2.54 2.74H3.55c-1.49 0-2.75-1.16-2.54-2.76l.1-.68v-.03c.22-1.29 1.37-2 2.43-2.23h.02z" })), /* @__PURE__ */ c.createElement("defs", null, /* @__PURE__ */ c.createElement("clipPath", { id: "a" }, /* @__PURE__ */ c.createElement("path", { d: "M0 0h19v19H0z" })))), Nm = fe(
|
|
527
527
|
({
|
|
528
528
|
checked: e = !1,
|
|
529
529
|
className: t = "",
|
|
@@ -565,7 +565,7 @@ const tt = {
|
|
|
565
565
|
}
|
|
566
566
|
),
|
|
567
567
|
/* @__PURE__ */ h.jsx(
|
|
568
|
-
|
|
568
|
+
_o,
|
|
569
569
|
{
|
|
570
570
|
width: 20,
|
|
571
571
|
height: 18,
|
|
@@ -584,7 +584,7 @@ const tt = {
|
|
|
584
584
|
h4: "text-h4",
|
|
585
585
|
h5: "text-h5",
|
|
586
586
|
h6: "text-h6"
|
|
587
|
-
},
|
|
587
|
+
}, km = ({
|
|
588
588
|
children: e,
|
|
589
589
|
className: t = "",
|
|
590
590
|
variant: n = "h1",
|
|
@@ -600,7 +600,7 @@ const tt = {
|
|
|
600
600
|
children: e
|
|
601
601
|
}
|
|
602
602
|
);
|
|
603
|
-
},
|
|
603
|
+
}, $m = fe(
|
|
604
604
|
({
|
|
605
605
|
disabled: e,
|
|
606
606
|
onChange: t,
|
|
@@ -675,9 +675,9 @@ const tt = {
|
|
|
675
675
|
success: "absolute -bottom-5 text-success-10 text-xs text-left",
|
|
676
676
|
info: "absolute -bottom-5 text-info-10 text-xs text-left"
|
|
677
677
|
}
|
|
678
|
-
},
|
|
678
|
+
}, Dm = c.forwardRef(
|
|
679
679
|
({ htmlFor: e, className: t, children: n, disabled: r, ...o }, s) => {
|
|
680
|
-
const i =
|
|
680
|
+
const i = Lr.base, a = Lr.disabled;
|
|
681
681
|
return /* @__PURE__ */ h.jsx(
|
|
682
682
|
"label",
|
|
683
683
|
{
|
|
@@ -691,7 +691,7 @@ const tt = {
|
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
693
|
}
|
|
694
|
-
),
|
|
694
|
+
), Lr = {
|
|
695
695
|
base: "text-secondary-10 text-sm font-sans font-semibold leading-none",
|
|
696
696
|
disabled: "text-dark-30/25 cursor-not-allowed"
|
|
697
697
|
};
|
|
@@ -745,29 +745,29 @@ function Ea(...e) {
|
|
|
745
745
|
};
|
|
746
746
|
return n.scopeName = t.scopeName, n;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function Fr(e, t) {
|
|
749
749
|
if (typeof e == "function")
|
|
750
750
|
return e(t);
|
|
751
751
|
e != null && (e.current = t);
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Oo(...e) {
|
|
754
754
|
return (t) => {
|
|
755
755
|
let n = !1;
|
|
756
756
|
const r = e.map((o) => {
|
|
757
|
-
const s =
|
|
757
|
+
const s = Fr(o, t);
|
|
758
758
|
return !n && typeof s == "function" && (n = !0), s;
|
|
759
759
|
});
|
|
760
760
|
if (n)
|
|
761
761
|
return () => {
|
|
762
762
|
for (let o = 0; o < r.length; o++) {
|
|
763
763
|
const s = r[o];
|
|
764
|
-
typeof s == "function" ? s() :
|
|
764
|
+
typeof s == "function" ? s() : Fr(e[o], null);
|
|
765
765
|
}
|
|
766
766
|
};
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
769
|
function se(...e) {
|
|
770
|
-
return c.useCallback(
|
|
770
|
+
return c.useCallback(Oo(...e), e);
|
|
771
771
|
}
|
|
772
772
|
var ot = c.forwardRef((e, t) => {
|
|
773
773
|
const { children: n, ...r } = e, o = c.Children.toArray(n), s = o.find(Ra);
|
|
@@ -782,7 +782,7 @@ var gn = c.forwardRef((e, t) => {
|
|
|
782
782
|
const { children: n, ...r } = e;
|
|
783
783
|
if (c.isValidElement(n)) {
|
|
784
784
|
const o = Aa(n), s = Pa(r, n.props);
|
|
785
|
-
return n.type !== c.Fragment && (s.ref = t ?
|
|
785
|
+
return n.type !== c.Fragment && (s.ref = t ? Oo(t, o) : o), c.cloneElement(n, s);
|
|
786
786
|
}
|
|
787
787
|
return c.Children.count(n) > 1 ? c.Children.only(null) : null;
|
|
788
788
|
});
|
|
@@ -806,7 +806,7 @@ function Aa(e) {
|
|
|
806
806
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
807
807
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function jm(e) {
|
|
810
810
|
const t = e + "CollectionProvider", [n, r] = jt(t), [o, s] = n(
|
|
811
811
|
t,
|
|
812
812
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -817,15 +817,15 @@ function Lm(e) {
|
|
|
817
817
|
i.displayName = t;
|
|
818
818
|
const a = e + "CollectionSlot", l = V.forwardRef(
|
|
819
819
|
(v, g) => {
|
|
820
|
-
const { scope: m, children: b } = v, x = s(a, m),
|
|
821
|
-
return /* @__PURE__ */ h.jsx(ot, { ref:
|
|
820
|
+
const { scope: m, children: b } = v, x = s(a, m), w = se(g, x.collectionRef);
|
|
821
|
+
return /* @__PURE__ */ h.jsx(ot, { ref: w, children: b });
|
|
822
822
|
}
|
|
823
823
|
);
|
|
824
824
|
l.displayName = a;
|
|
825
825
|
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", d = V.forwardRef(
|
|
826
826
|
(v, g) => {
|
|
827
|
-
const { scope: m, children: b, ...x } = v,
|
|
828
|
-
return V.useEffect(() => (C.itemMap.set(
|
|
827
|
+
const { scope: m, children: b, ...x } = v, w = V.useRef(null), y = se(g, w), C = s(u, m);
|
|
828
|
+
return V.useEffect(() => (C.itemMap.set(w, { ref: w, ...x }), () => void C.itemMap.delete(w))), /* @__PURE__ */ h.jsx(ot, { [f]: "", ref: y, children: b });
|
|
829
829
|
}
|
|
830
830
|
);
|
|
831
831
|
d.displayName = u;
|
|
@@ -836,7 +836,7 @@ function Lm(e) {
|
|
|
836
836
|
if (!b) return [];
|
|
837
837
|
const x = Array.from(b.querySelectorAll(`[${f}]`));
|
|
838
838
|
return Array.from(g.itemMap.values()).sort(
|
|
839
|
-
(C,
|
|
839
|
+
(C, S) => x.indexOf(C.ref.current) - x.indexOf(S.ref.current)
|
|
840
840
|
);
|
|
841
841
|
}, [g.collectionRef, g.itemMap]);
|
|
842
842
|
}
|
|
@@ -861,7 +861,7 @@ function Re(e) {
|
|
|
861
861
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
862
862
|
}, []);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function To({
|
|
865
865
|
prop: e,
|
|
866
866
|
defaultProp: t,
|
|
867
867
|
onChange: n = () => {
|
|
@@ -905,7 +905,7 @@ var Oa = [
|
|
|
905
905
|
"span",
|
|
906
906
|
"svg",
|
|
907
907
|
"ul"
|
|
908
|
-
],
|
|
908
|
+
], ce = Oa.reduce((e, t) => {
|
|
909
909
|
const n = c.forwardRef((r, o) => {
|
|
910
910
|
const { asChild: s, ...i } = r, a = s ? ot : t;
|
|
911
911
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(a, { ...i, ref: o });
|
|
@@ -999,7 +999,7 @@ function ja(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
999
999
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
1000
1000
|
}, [n, t]);
|
|
1001
1001
|
}
|
|
1002
|
-
var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLayer.pointerDownOutside", Wa = "dismissableLayer.focusOutside",
|
|
1002
|
+
var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLayer.pointerDownOutside", Wa = "dismissableLayer.focusOutside", Wr, Mo = c.createContext({
|
|
1003
1003
|
layers: /* @__PURE__ */ new Set(),
|
|
1004
1004
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1005
1005
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -1013,56 +1013,56 @@ var La = "DismissableLayer", bn = "dismissableLayer.update", Fa = "dismissableLa
|
|
|
1013
1013
|
onInteractOutside: i,
|
|
1014
1014
|
onDismiss: a,
|
|
1015
1015
|
...l
|
|
1016
|
-
} = e, u = c.useContext(
|
|
1017
|
-
const T =
|
|
1018
|
-
!C || k || (o == null || o(
|
|
1019
|
-
}, p), P = Va((
|
|
1020
|
-
const T =
|
|
1021
|
-
[...u.branches].some((I) => I.contains(T)) || (s == null || s(
|
|
1016
|
+
} = e, u = c.useContext(Mo), [f, d] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = c.useState({}), g = se(t, (R) => d(R)), m = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(b), w = f ? m.indexOf(f) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, S = Ua((R) => {
|
|
1017
|
+
const T = R.target, k = [...u.branches].some((I) => I.contains(T));
|
|
1018
|
+
!C || k || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
|
|
1019
|
+
}, p), P = Va((R) => {
|
|
1020
|
+
const T = R.target;
|
|
1021
|
+
[...u.branches].some((I) => I.contains(T)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
|
|
1022
1022
|
}, p);
|
|
1023
|
-
return ja((
|
|
1024
|
-
|
|
1023
|
+
return ja((R) => {
|
|
1024
|
+
w === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
|
|
1025
1025
|
}, p), c.useEffect(() => {
|
|
1026
1026
|
if (f)
|
|
1027
|
-
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
1028
|
-
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents =
|
|
1027
|
+
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Wr = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), Br(), () => {
|
|
1028
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Wr);
|
|
1029
1029
|
};
|
|
1030
1030
|
}, [f, p, n, u]), c.useEffect(() => () => {
|
|
1031
|
-
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
1031
|
+
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Br());
|
|
1032
1032
|
}, [f, u]), c.useEffect(() => {
|
|
1033
|
-
const
|
|
1034
|
-
return document.addEventListener(bn,
|
|
1033
|
+
const R = () => v({});
|
|
1034
|
+
return document.addEventListener(bn, R), () => document.removeEventListener(bn, R);
|
|
1035
1035
|
}, []), /* @__PURE__ */ h.jsx(
|
|
1036
|
-
|
|
1036
|
+
ce.div,
|
|
1037
1037
|
{
|
|
1038
1038
|
...l,
|
|
1039
1039
|
ref: g,
|
|
1040
1040
|
style: {
|
|
1041
|
-
pointerEvents:
|
|
1041
|
+
pointerEvents: y ? C ? "auto" : "none" : void 0,
|
|
1042
1042
|
...e.style
|
|
1043
1043
|
},
|
|
1044
1044
|
onFocusCapture: ve(e.onFocusCapture, P.onFocusCapture),
|
|
1045
1045
|
onBlurCapture: ve(e.onBlurCapture, P.onBlurCapture),
|
|
1046
1046
|
onPointerDownCapture: ve(
|
|
1047
1047
|
e.onPointerDownCapture,
|
|
1048
|
-
|
|
1048
|
+
S.onPointerDownCapture
|
|
1049
1049
|
)
|
|
1050
1050
|
}
|
|
1051
1051
|
);
|
|
1052
1052
|
}
|
|
1053
1053
|
);
|
|
1054
1054
|
In.displayName = La;
|
|
1055
|
-
var Ba = "DismissableLayerBranch",
|
|
1056
|
-
const n = c.useContext(
|
|
1055
|
+
var Ba = "DismissableLayerBranch", Io = c.forwardRef((e, t) => {
|
|
1056
|
+
const n = c.useContext(Mo), r = c.useRef(null), o = se(t, r);
|
|
1057
1057
|
return c.useEffect(() => {
|
|
1058
1058
|
const s = r.current;
|
|
1059
1059
|
if (s)
|
|
1060
1060
|
return n.branches.add(s), () => {
|
|
1061
1061
|
n.branches.delete(s);
|
|
1062
1062
|
};
|
|
1063
|
-
}, [n.branches]), /* @__PURE__ */ h.jsx(
|
|
1063
|
+
}, [n.branches]), /* @__PURE__ */ h.jsx(ce.div, { ...e, ref: o });
|
|
1064
1064
|
});
|
|
1065
|
-
|
|
1065
|
+
Io.displayName = Ba;
|
|
1066
1066
|
function Ua(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1067
1067
|
const n = Re(e), r = c.useRef(!1), o = c.useRef(() => {
|
|
1068
1068
|
});
|
|
@@ -1070,7 +1070,7 @@ function Ua(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1070
1070
|
const s = (a) => {
|
|
1071
1071
|
if (a.target && !r.current) {
|
|
1072
1072
|
let l = function() {
|
|
1073
|
-
|
|
1073
|
+
No(
|
|
1074
1074
|
Fa,
|
|
1075
1075
|
n,
|
|
1076
1076
|
u,
|
|
@@ -1097,7 +1097,7 @@ function Va(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1097
1097
|
const n = Re(e), r = c.useRef(!1);
|
|
1098
1098
|
return c.useEffect(() => {
|
|
1099
1099
|
const o = (s) => {
|
|
1100
|
-
s.target && !r.current &&
|
|
1100
|
+
s.target && !r.current && No(Wa, n, { originalEvent: s }, {
|
|
1101
1101
|
discrete: !1
|
|
1102
1102
|
});
|
|
1103
1103
|
};
|
|
@@ -1107,28 +1107,28 @@ function Va(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1107
1107
|
onBlurCapture: () => r.current = !1
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function Br() {
|
|
1111
1111
|
const e = new CustomEvent(bn);
|
|
1112
1112
|
document.dispatchEvent(e);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function No(e, t, n, { discrete: r }) {
|
|
1115
1115
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
1116
1116
|
t && o.addEventListener(e, t, { once: !0 }), r ? Ta(o, s) : o.dispatchEvent(s);
|
|
1117
1117
|
}
|
|
1118
|
-
var
|
|
1118
|
+
var Lm = In, Fm = Io, Jt = 0;
|
|
1119
1119
|
function za() {
|
|
1120
1120
|
c.useEffect(() => {
|
|
1121
1121
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
1122
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
1122
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ur()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ur()), Jt++, () => {
|
|
1123
1123
|
Jt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Jt--;
|
|
1124
1124
|
};
|
|
1125
1125
|
}, []);
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function Ur() {
|
|
1128
1128
|
const e = document.createElement("span");
|
|
1129
1129
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
1130
1130
|
}
|
|
1131
|
-
var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount",
|
|
1131
|
+
var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount", Vr = { bubbles: !1, cancelable: !0 }, Ga = "FocusScope", ko = c.forwardRef((e, t) => {
|
|
1132
1132
|
const {
|
|
1133
1133
|
loop: n = !1,
|
|
1134
1134
|
trapped: r = !1,
|
|
@@ -1146,37 +1146,37 @@ var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount", zr
|
|
|
1146
1146
|
}).current;
|
|
1147
1147
|
c.useEffect(() => {
|
|
1148
1148
|
if (r) {
|
|
1149
|
-
let m = function(
|
|
1149
|
+
let m = function(y) {
|
|
1150
1150
|
if (v.paused || !a) return;
|
|
1151
|
-
const C =
|
|
1151
|
+
const C = y.target;
|
|
1152
1152
|
a.contains(C) ? d.current = C : Ce(d.current, { select: !0 });
|
|
1153
|
-
}, b = function(
|
|
1153
|
+
}, b = function(y) {
|
|
1154
1154
|
if (v.paused || !a) return;
|
|
1155
|
-
const C =
|
|
1155
|
+
const C = y.relatedTarget;
|
|
1156
1156
|
C !== null && (a.contains(C) || Ce(d.current, { select: !0 }));
|
|
1157
|
-
}, x = function(
|
|
1157
|
+
}, x = function(y) {
|
|
1158
1158
|
if (document.activeElement === document.body)
|
|
1159
|
-
for (const
|
|
1160
|
-
|
|
1159
|
+
for (const S of y)
|
|
1160
|
+
S.removedNodes.length > 0 && Ce(a);
|
|
1161
1161
|
};
|
|
1162
1162
|
document.addEventListener("focusin", m), document.addEventListener("focusout", b);
|
|
1163
|
-
const
|
|
1164
|
-
return a &&
|
|
1165
|
-
document.removeEventListener("focusin", m), document.removeEventListener("focusout", b),
|
|
1163
|
+
const w = new MutationObserver(x);
|
|
1164
|
+
return a && w.observe(a, { childList: !0, subtree: !0 }), () => {
|
|
1165
|
+
document.removeEventListener("focusin", m), document.removeEventListener("focusout", b), w.disconnect();
|
|
1166
1166
|
};
|
|
1167
1167
|
}
|
|
1168
1168
|
}, [r, a, v.paused]), c.useEffect(() => {
|
|
1169
1169
|
if (a) {
|
|
1170
|
-
|
|
1170
|
+
Gr.add(v);
|
|
1171
1171
|
const m = document.activeElement;
|
|
1172
1172
|
if (!a.contains(m)) {
|
|
1173
|
-
const x = new CustomEvent(Qt,
|
|
1174
|
-
a.addEventListener(Qt, u), a.dispatchEvent(x), x.defaultPrevented || (Ka(Za(
|
|
1173
|
+
const x = new CustomEvent(Qt, Vr);
|
|
1174
|
+
a.addEventListener(Qt, u), a.dispatchEvent(x), x.defaultPrevented || (Ka(Za($o(a)), { select: !0 }), document.activeElement === m && Ce(a));
|
|
1175
1175
|
}
|
|
1176
1176
|
return () => {
|
|
1177
1177
|
a.removeEventListener(Qt, u), setTimeout(() => {
|
|
1178
|
-
const x = new CustomEvent(en,
|
|
1179
|
-
a.addEventListener(en, f), a.dispatchEvent(x), x.defaultPrevented || Ce(m ?? document.body, { select: !0 }), a.removeEventListener(en, f),
|
|
1178
|
+
const x = new CustomEvent(en, Vr);
|
|
1179
|
+
a.addEventListener(en, f), a.dispatchEvent(x), x.defaultPrevented || Ce(m ?? document.body, { select: !0 }), a.removeEventListener(en, f), Gr.remove(v);
|
|
1180
1180
|
}, 0);
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
@@ -1186,25 +1186,25 @@ var Qt = "focusScope.autoFocusOnMount", en = "focusScope.autoFocusOnUnmount", zr
|
|
|
1186
1186
|
if (!n && !r || v.paused) return;
|
|
1187
1187
|
const b = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, x = document.activeElement;
|
|
1188
1188
|
if (b && x) {
|
|
1189
|
-
const
|
|
1190
|
-
|
|
1189
|
+
const w = m.currentTarget, [y, C] = Ha(w);
|
|
1190
|
+
y && C ? !m.shiftKey && x === C ? (m.preventDefault(), n && Ce(y, { select: !0 })) : m.shiftKey && x === y && (m.preventDefault(), n && Ce(C, { select: !0 })) : x === w && m.preventDefault();
|
|
1191
1191
|
}
|
|
1192
1192
|
},
|
|
1193
1193
|
[n, r, v.paused]
|
|
1194
1194
|
);
|
|
1195
|
-
return /* @__PURE__ */ h.jsx(
|
|
1195
|
+
return /* @__PURE__ */ h.jsx(ce.div, { tabIndex: -1, ...i, ref: p, onKeyDown: g });
|
|
1196
1196
|
});
|
|
1197
|
-
|
|
1197
|
+
ko.displayName = Ga;
|
|
1198
1198
|
function Ka(e, { select: t = !1 } = {}) {
|
|
1199
1199
|
const n = document.activeElement;
|
|
1200
1200
|
for (const r of e)
|
|
1201
1201
|
if (Ce(r, { select: t }), document.activeElement !== n) return;
|
|
1202
1202
|
}
|
|
1203
1203
|
function Ha(e) {
|
|
1204
|
-
const t =
|
|
1204
|
+
const t = $o(e), n = zr(t, e), r = zr(t.reverse(), e);
|
|
1205
1205
|
return [n, r];
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function $o(e) {
|
|
1208
1208
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1209
1209
|
acceptNode: (r) => {
|
|
1210
1210
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -1214,7 +1214,7 @@ function jo(e) {
|
|
|
1214
1214
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
1215
1215
|
return t;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function zr(e, t) {
|
|
1218
1218
|
for (const n of e)
|
|
1219
1219
|
if (!Ya(n, { upTo: t })) return n;
|
|
1220
1220
|
}
|
|
@@ -1236,28 +1236,28 @@ function Ce(e, { select: t = !1 } = {}) {
|
|
|
1236
1236
|
e.focus({ preventScroll: !0 }), e !== n && Xa(e) && t && e.select();
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
var
|
|
1239
|
+
var Gr = qa();
|
|
1240
1240
|
function qa() {
|
|
1241
1241
|
let e = [];
|
|
1242
1242
|
return {
|
|
1243
1243
|
add(t) {
|
|
1244
1244
|
const n = e[0];
|
|
1245
|
-
t !== n && (n == null || n.pause()), e =
|
|
1245
|
+
t !== n && (n == null || n.pause()), e = Kr(e, t), e.unshift(t);
|
|
1246
1246
|
},
|
|
1247
1247
|
remove(t) {
|
|
1248
1248
|
var n;
|
|
1249
|
-
e =
|
|
1249
|
+
e = Kr(e, t), (n = e[0]) == null || n.resume();
|
|
1250
1250
|
}
|
|
1251
1251
|
};
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function Kr(e, t) {
|
|
1254
1254
|
const n = [...e], r = n.indexOf(t);
|
|
1255
1255
|
return r !== -1 && n.splice(r, 1), n;
|
|
1256
1256
|
}
|
|
1257
1257
|
function Za(e) {
|
|
1258
1258
|
return e.filter((t) => t.tagName !== "A");
|
|
1259
1259
|
}
|
|
1260
|
-
const Ja = ["top", "right", "bottom", "left"], Pe = Math.min, J = Math.max, _t = Math.round, gt = Math.floor,
|
|
1260
|
+
const Ja = ["top", "right", "bottom", "left"], Pe = Math.min, J = Math.max, _t = Math.round, gt = Math.floor, ue = (e) => ({
|
|
1261
1261
|
x: e,
|
|
1262
1262
|
y: e
|
|
1263
1263
|
}), Qa = {
|
|
@@ -1336,7 +1336,7 @@ function sc(e) {
|
|
|
1336
1336
|
...e
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function Do(e) {
|
|
1340
1340
|
return typeof e != "number" ? sc(e) : {
|
|
1341
1341
|
top: e,
|
|
1342
1342
|
right: e,
|
|
@@ -1362,7 +1362,7 @@ function Tt(e) {
|
|
|
1362
1362
|
y: n
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function Hr(e, t, n) {
|
|
1366
1366
|
let {
|
|
1367
1367
|
reference: r,
|
|
1368
1368
|
floating: o
|
|
@@ -1424,16 +1424,16 @@ const ic = async (e, t, n) => {
|
|
|
1424
1424
|
}), {
|
|
1425
1425
|
x: f,
|
|
1426
1426
|
y: d
|
|
1427
|
-
} =
|
|
1427
|
+
} = Hr(u, r, l), p = r, v = {}, g = 0;
|
|
1428
1428
|
for (let m = 0; m < a.length; m++) {
|
|
1429
1429
|
const {
|
|
1430
1430
|
name: b,
|
|
1431
1431
|
fn: x
|
|
1432
1432
|
} = a[m], {
|
|
1433
|
-
x:
|
|
1434
|
-
y
|
|
1433
|
+
x: w,
|
|
1434
|
+
y,
|
|
1435
1435
|
data: C,
|
|
1436
|
-
reset:
|
|
1436
|
+
reset: S
|
|
1437
1437
|
} = await x({
|
|
1438
1438
|
x: f,
|
|
1439
1439
|
y: d,
|
|
@@ -1448,20 +1448,20 @@ const ic = async (e, t, n) => {
|
|
|
1448
1448
|
floating: t
|
|
1449
1449
|
}
|
|
1450
1450
|
});
|
|
1451
|
-
f =
|
|
1451
|
+
f = w ?? f, d = y ?? d, v = {
|
|
1452
1452
|
...v,
|
|
1453
1453
|
[b]: {
|
|
1454
1454
|
...v[b],
|
|
1455
1455
|
...C
|
|
1456
1456
|
}
|
|
1457
|
-
},
|
|
1457
|
+
}, S && g <= 50 && (g++, typeof S == "object" && (S.placement && (p = S.placement), S.rects && (u = S.rects === !0 ? await i.getElementRects({
|
|
1458
1458
|
reference: e,
|
|
1459
1459
|
floating: t,
|
|
1460
1460
|
strategy: o
|
|
1461
|
-
}) :
|
|
1461
|
+
}) : S.rects), {
|
|
1462
1462
|
x: f,
|
|
1463
1463
|
y: d
|
|
1464
|
-
} =
|
|
1464
|
+
} = Hr(u, p, l)), m = -1);
|
|
1465
1465
|
}
|
|
1466
1466
|
return {
|
|
1467
1467
|
x: f,
|
|
@@ -1487,33 +1487,33 @@ async function st(e, t) {
|
|
|
1487
1487
|
elementContext: d = "floating",
|
|
1488
1488
|
altBoundary: p = !1,
|
|
1489
1489
|
padding: v = 0
|
|
1490
|
-
} = ge(t, e), g =
|
|
1490
|
+
} = ge(t, e), g = Do(v), b = a[p ? d === "floating" ? "reference" : "floating" : d], x = Tt(await s.getClippingRect({
|
|
1491
1491
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(b))) == null || n ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
1492
1492
|
boundary: u,
|
|
1493
1493
|
rootBoundary: f,
|
|
1494
1494
|
strategy: l
|
|
1495
|
-
})),
|
|
1495
|
+
})), w = d === "floating" ? {
|
|
1496
1496
|
x: r,
|
|
1497
1497
|
y: o,
|
|
1498
1498
|
width: i.floating.width,
|
|
1499
1499
|
height: i.floating.height
|
|
1500
|
-
} : i.reference,
|
|
1500
|
+
} : i.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), C = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
1501
1501
|
x: 1,
|
|
1502
1502
|
y: 1
|
|
1503
1503
|
} : {
|
|
1504
1504
|
x: 1,
|
|
1505
1505
|
y: 1
|
|
1506
|
-
},
|
|
1506
|
+
}, S = Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1507
1507
|
elements: a,
|
|
1508
|
-
rect:
|
|
1509
|
-
offsetParent:
|
|
1508
|
+
rect: w,
|
|
1509
|
+
offsetParent: y,
|
|
1510
1510
|
strategy: l
|
|
1511
|
-
}) :
|
|
1511
|
+
}) : w);
|
|
1512
1512
|
return {
|
|
1513
|
-
top: (x.top -
|
|
1514
|
-
bottom: (
|
|
1515
|
-
left: (x.left -
|
|
1516
|
-
right: (
|
|
1513
|
+
top: (x.top - S.top + g.top) / C.y,
|
|
1514
|
+
bottom: (S.bottom - x.bottom + g.bottom) / C.y,
|
|
1515
|
+
left: (x.left - S.left + g.left) / C.x,
|
|
1516
|
+
right: (S.right - x.right + g.right) / C.x
|
|
1517
1517
|
};
|
|
1518
1518
|
}
|
|
1519
1519
|
const ac = (e) => ({
|
|
@@ -1534,13 +1534,13 @@ const ac = (e) => ({
|
|
|
1534
1534
|
} = ge(e, t) || {};
|
|
1535
1535
|
if (u == null)
|
|
1536
1536
|
return {};
|
|
1537
|
-
const d =
|
|
1537
|
+
const d = Do(f), p = {
|
|
1538
1538
|
x: n,
|
|
1539
1539
|
y: r
|
|
1540
|
-
}, v = $n(o), g = kn(v), m = await i.getDimensions(u), b = v === "y", x = b ? "top" : "left",
|
|
1541
|
-
let
|
|
1542
|
-
(!
|
|
1543
|
-
const T = C / 2 -
|
|
1540
|
+
}, v = $n(o), g = kn(v), m = await i.getDimensions(u), b = v === "y", x = b ? "top" : "left", w = b ? "bottom" : "right", y = b ? "clientHeight" : "clientWidth", C = s.reference[g] + s.reference[v] - p[v] - s.floating[g], S = p[v] - s.reference[v], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
1541
|
+
let R = P ? P[y] : 0;
|
|
1542
|
+
(!R || !await (i.isElement == null ? void 0 : i.isElement(P))) && (R = a.floating[y] || s.floating[g]);
|
|
1543
|
+
const T = C / 2 - S / 2, k = R / 2 - m[g] / 2 - 1, I = Pe(d[x], k), L = Pe(d[w], k), W = I, j = R - m[g] - L, D = R / 2 - m[g] / 2 + T, G = xn(W, D, j), $ = !l.arrow && Xe(o) != null && D !== G && s.reference[g] / 2 - (D < W ? I : L) - m[g] / 2 < 0, F = $ ? D < W ? D - W : D - j : 0;
|
|
1544
1544
|
return {
|
|
1545
1545
|
[v]: p[v] + F,
|
|
1546
1546
|
data: {
|
|
@@ -1577,9 +1577,9 @@ const ac = (e) => ({
|
|
|
1577
1577
|
} = ge(e, t);
|
|
1578
1578
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
1579
1579
|
return {};
|
|
1580
|
-
const x = be(o),
|
|
1581
|
-
!p && P &&
|
|
1582
|
-
const
|
|
1580
|
+
const x = be(o), w = Ae(a), y = be(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = p || (y || !m ? [Ot(a)] : nc(a)), P = g !== "none";
|
|
1581
|
+
!p && P && S.push(...oc(a, m, g, C));
|
|
1582
|
+
const R = [a, ...S], T = await st(t, b), k = [];
|
|
1583
1583
|
let I = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
1584
1584
|
if (f && k.push(T[x]), d) {
|
|
1585
1585
|
const D = tc(o, i, C);
|
|
@@ -1590,7 +1590,7 @@ const ac = (e) => ({
|
|
|
1590
1590
|
overflows: k
|
|
1591
1591
|
}], !k.every((D) => D <= 0)) {
|
|
1592
1592
|
var L, W;
|
|
1593
|
-
const D = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, G =
|
|
1593
|
+
const D = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, G = R[D];
|
|
1594
1594
|
if (G)
|
|
1595
1595
|
return {
|
|
1596
1596
|
data: {
|
|
@@ -1609,7 +1609,7 @@ const ac = (e) => ({
|
|
|
1609
1609
|
const F = (j = I.filter((M) => {
|
|
1610
1610
|
if (P) {
|
|
1611
1611
|
const A = Ae(M.placement);
|
|
1612
|
-
return A ===
|
|
1612
|
+
return A === w || // Create a bias to the `y` side axis due to horizontal
|
|
1613
1613
|
// reading directions favoring greater width.
|
|
1614
1614
|
A === "y";
|
|
1615
1615
|
}
|
|
@@ -1633,7 +1633,7 @@ const ac = (e) => ({
|
|
|
1633
1633
|
}
|
|
1634
1634
|
};
|
|
1635
1635
|
};
|
|
1636
|
-
function
|
|
1636
|
+
function Yr(e, t) {
|
|
1637
1637
|
return {
|
|
1638
1638
|
top: e.top - t.height,
|
|
1639
1639
|
right: e.right - t.width,
|
|
@@ -1641,7 +1641,7 @@ function Xr(e, t) {
|
|
|
1641
1641
|
left: e.left - t.width
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function Xr(e) {
|
|
1645
1645
|
return Ja.some((t) => e[t] >= 0);
|
|
1646
1646
|
}
|
|
1647
1647
|
const lc = function(e) {
|
|
@@ -1660,11 +1660,11 @@ const lc = function(e) {
|
|
|
1660
1660
|
const s = await st(t, {
|
|
1661
1661
|
...o,
|
|
1662
1662
|
elementContext: "reference"
|
|
1663
|
-
}), i =
|
|
1663
|
+
}), i = Yr(s, n.reference);
|
|
1664
1664
|
return {
|
|
1665
1665
|
data: {
|
|
1666
1666
|
referenceHiddenOffsets: i,
|
|
1667
|
-
referenceHidden:
|
|
1667
|
+
referenceHidden: Xr(i)
|
|
1668
1668
|
}
|
|
1669
1669
|
};
|
|
1670
1670
|
}
|
|
@@ -1672,11 +1672,11 @@ const lc = function(e) {
|
|
|
1672
1672
|
const s = await st(t, {
|
|
1673
1673
|
...o,
|
|
1674
1674
|
altBoundary: !0
|
|
1675
|
-
}), i =
|
|
1675
|
+
}), i = Yr(s, n.floating);
|
|
1676
1676
|
return {
|
|
1677
1677
|
data: {
|
|
1678
1678
|
escapedOffsets: i,
|
|
1679
|
-
escaped:
|
|
1679
|
+
escaped: Xr(i)
|
|
1680
1680
|
}
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
@@ -1751,11 +1751,11 @@ const dc = function(e) {
|
|
|
1751
1751
|
fn: (b) => {
|
|
1752
1752
|
let {
|
|
1753
1753
|
x,
|
|
1754
|
-
y
|
|
1754
|
+
y: w
|
|
1755
1755
|
} = b;
|
|
1756
1756
|
return {
|
|
1757
1757
|
x,
|
|
1758
|
-
y
|
|
1758
|
+
y: w
|
|
1759
1759
|
};
|
|
1760
1760
|
}
|
|
1761
1761
|
},
|
|
@@ -1766,12 +1766,12 @@ const dc = function(e) {
|
|
|
1766
1766
|
}, f = await st(t, l), d = Ae(be(o)), p = Nn(d);
|
|
1767
1767
|
let v = u[p], g = u[d];
|
|
1768
1768
|
if (s) {
|
|
1769
|
-
const b = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right",
|
|
1770
|
-
v = xn(
|
|
1769
|
+
const b = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", w = v + f[b], y = v - f[x];
|
|
1770
|
+
v = xn(w, v, y);
|
|
1771
1771
|
}
|
|
1772
1772
|
if (i) {
|
|
1773
|
-
const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right",
|
|
1774
|
-
g = xn(
|
|
1773
|
+
const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", w = g + f[b], y = g - f[x];
|
|
1774
|
+
g = xn(w, g, y);
|
|
1775
1775
|
}
|
|
1776
1776
|
const m = a.fn({
|
|
1777
1777
|
...t,
|
|
@@ -1819,13 +1819,13 @@ const dc = function(e) {
|
|
|
1819
1819
|
...m
|
|
1820
1820
|
};
|
|
1821
1821
|
if (l) {
|
|
1822
|
-
const
|
|
1823
|
-
v < C ? v = C : v >
|
|
1822
|
+
const y = p === "y" ? "height" : "width", C = s.reference[p] - s.floating[y] + b.mainAxis, S = s.reference[p] + s.reference[y] - b.mainAxis;
|
|
1823
|
+
v < C ? v = C : v > S && (v = S);
|
|
1824
1824
|
}
|
|
1825
1825
|
if (u) {
|
|
1826
|
-
var x,
|
|
1827
|
-
const
|
|
1828
|
-
g <
|
|
1826
|
+
var x, w;
|
|
1827
|
+
const y = p === "y" ? "width" : "height", C = ["top", "left"].includes(be(o)), S = s.reference[d] - s.floating[y] + (C && ((x = i.offset) == null ? void 0 : x[d]) || 0) + (C ? 0 : b.crossAxis), P = s.reference[d] + s.reference[y] + (C ? 0 : ((w = i.offset) == null ? void 0 : w[d]) || 0) - (C ? b.crossAxis : 0);
|
|
1828
|
+
g < S ? g = S : g > P && (g = P);
|
|
1829
1829
|
}
|
|
1830
1830
|
return {
|
|
1831
1831
|
[p]: v,
|
|
@@ -1854,16 +1854,16 @@ const dc = function(e) {
|
|
|
1854
1854
|
} = s.floating;
|
|
1855
1855
|
let b, x;
|
|
1856
1856
|
d === "top" || d === "bottom" ? (b = d, x = p === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (x = d, b = p === "end" ? "top" : "bottom");
|
|
1857
|
-
const
|
|
1858
|
-
let
|
|
1859
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (T =
|
|
1857
|
+
const w = m - f.top - f.bottom, y = g - f.left - f.right, C = Pe(m - f[b], w), S = Pe(g - f[x], y), P = !t.middlewareData.shift;
|
|
1858
|
+
let R = C, T = S;
|
|
1859
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = y), (r = t.middlewareData.shift) != null && r.enabled.y && (R = w), P && !p) {
|
|
1860
1860
|
const I = J(f.left, 0), L = J(f.right, 0), W = J(f.top, 0), j = J(f.bottom, 0);
|
|
1861
|
-
v ? T = g - 2 * (I !== 0 || L !== 0 ? I + L : J(f.left, f.right)) :
|
|
1861
|
+
v ? T = g - 2 * (I !== 0 || L !== 0 ? I + L : J(f.left, f.right)) : R = m - 2 * (W !== 0 || j !== 0 ? W + j : J(f.top, f.bottom));
|
|
1862
1862
|
}
|
|
1863
1863
|
await l({
|
|
1864
1864
|
...t,
|
|
1865
1865
|
availableWidth: T,
|
|
1866
|
-
availableHeight:
|
|
1866
|
+
availableHeight: R
|
|
1867
1867
|
});
|
|
1868
1868
|
const k = await i.getDimensions(a.floating);
|
|
1869
1869
|
return g !== k.width || m !== k.height ? {
|
|
@@ -1878,7 +1878,7 @@ function Lt() {
|
|
|
1878
1878
|
return typeof window < "u";
|
|
1879
1879
|
}
|
|
1880
1880
|
function qe(e) {
|
|
1881
|
-
return
|
|
1881
|
+
return jo(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1882
1882
|
}
|
|
1883
1883
|
function Q(e) {
|
|
1884
1884
|
var t;
|
|
@@ -1886,18 +1886,18 @@ function Q(e) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
function pe(e) {
|
|
1888
1888
|
var t;
|
|
1889
|
-
return (t = (
|
|
1889
|
+
return (t = (jo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function jo(e) {
|
|
1892
1892
|
return Lt() ? e instanceof Node || e instanceof Q(e).Node : !1;
|
|
1893
1893
|
}
|
|
1894
1894
|
function ie(e) {
|
|
1895
1895
|
return Lt() ? e instanceof Element || e instanceof Q(e).Element : !1;
|
|
1896
1896
|
}
|
|
1897
|
-
function
|
|
1897
|
+
function de(e) {
|
|
1898
1898
|
return Lt() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function qr(e) {
|
|
1901
1901
|
return !Lt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
|
|
1902
1902
|
}
|
|
1903
1903
|
function lt(e) {
|
|
@@ -1927,7 +1927,7 @@ function Dn(e) {
|
|
|
1927
1927
|
}
|
|
1928
1928
|
function hc(e) {
|
|
1929
1929
|
let t = _e(e);
|
|
1930
|
-
for (;
|
|
1930
|
+
for (; de(t) && !He(t); ) {
|
|
1931
1931
|
if (Dn(t))
|
|
1932
1932
|
return t;
|
|
1933
1933
|
if (Ft(t))
|
|
@@ -1961,19 +1961,19 @@ function _e(e) {
|
|
|
1961
1961
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1962
1962
|
e.assignedSlot || // DOM Element detected.
|
|
1963
1963
|
e.parentNode || // ShadowRoot detected.
|
|
1964
|
-
|
|
1964
|
+
qr(e) && e.host || // Fallback.
|
|
1965
1965
|
pe(e)
|
|
1966
1966
|
);
|
|
1967
|
-
return
|
|
1967
|
+
return qr(t) ? t.host : t;
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function Lo(e) {
|
|
1970
1970
|
const t = _e(e);
|
|
1971
|
-
return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
1971
|
+
return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : de(t) && lt(t) ? t : Lo(t);
|
|
1972
1972
|
}
|
|
1973
1973
|
function it(e, t, n) {
|
|
1974
1974
|
var r;
|
|
1975
1975
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1976
|
-
const o =
|
|
1976
|
+
const o = Lo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Q(o);
|
|
1977
1977
|
if (s) {
|
|
1978
1978
|
const a = wn(i);
|
|
1979
1979
|
return t.concat(i, i.visualViewport || [], lt(o) ? o : [], a && n ? it(a) : []);
|
|
@@ -1983,10 +1983,10 @@ function it(e, t, n) {
|
|
|
1983
1983
|
function wn(e) {
|
|
1984
1984
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function Fo(e) {
|
|
1987
1987
|
const t = ae(e);
|
|
1988
1988
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1989
|
-
const o =
|
|
1989
|
+
const o = de(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = _t(n) !== s || _t(r) !== i;
|
|
1990
1990
|
return a && (n = s, r = i), {
|
|
1991
1991
|
width: n,
|
|
1992
1992
|
height: r,
|
|
@@ -1998,21 +1998,21 @@ function Ln(e) {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
function ze(e) {
|
|
2000
2000
|
const t = Ln(e);
|
|
2001
|
-
if (!
|
|
2002
|
-
return
|
|
2001
|
+
if (!de(t))
|
|
2002
|
+
return ue(1);
|
|
2003
2003
|
const n = t.getBoundingClientRect(), {
|
|
2004
2004
|
width: r,
|
|
2005
2005
|
height: o,
|
|
2006
2006
|
$: s
|
|
2007
|
-
} =
|
|
2007
|
+
} = Fo(t);
|
|
2008
2008
|
let i = (s ? _t(n.width) : n.width) / r, a = (s ? _t(n.height) : n.height) / o;
|
|
2009
2009
|
return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
2010
2010
|
x: i,
|
|
2011
2011
|
y: a
|
|
2012
2012
|
};
|
|
2013
2013
|
}
|
|
2014
|
-
const gc = /* @__PURE__ */
|
|
2015
|
-
function
|
|
2014
|
+
const gc = /* @__PURE__ */ ue(0);
|
|
2015
|
+
function Wo(e) {
|
|
2016
2016
|
const t = Q(e);
|
|
2017
2017
|
return !jn() || !t.visualViewport ? gc : {
|
|
2018
2018
|
x: t.visualViewport.offsetLeft,
|
|
@@ -2025,16 +2025,16 @@ function bc(e, t, n) {
|
|
|
2025
2025
|
function $e(e, t, n, r) {
|
|
2026
2026
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2027
2027
|
const o = e.getBoundingClientRect(), s = Ln(e);
|
|
2028
|
-
let i =
|
|
2028
|
+
let i = ue(1);
|
|
2029
2029
|
t && (r ? ie(r) && (i = ze(r)) : i = ze(e));
|
|
2030
|
-
const a = bc(s, n, r) ?
|
|
2030
|
+
const a = bc(s, n, r) ? Wo(s) : ue(0);
|
|
2031
2031
|
let l = (o.left + a.x) / i.x, u = (o.top + a.y) / i.y, f = o.width / i.x, d = o.height / i.y;
|
|
2032
2032
|
if (s) {
|
|
2033
2033
|
const p = Q(s), v = r && ie(r) ? Q(r) : r;
|
|
2034
2034
|
let g = p, m = wn(g);
|
|
2035
2035
|
for (; m && r && v !== g; ) {
|
|
2036
|
-
const b = ze(m), x = m.getBoundingClientRect(),
|
|
2037
|
-
l *= b.x, u *= b.y, f *= b.x, d *= b.y, l +=
|
|
2036
|
+
const b = ze(m), x = m.getBoundingClientRect(), w = ae(m), y = x.left + (m.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = x.top + (m.clientTop + parseFloat(w.paddingTop)) * b.y;
|
|
2037
|
+
l *= b.x, u *= b.y, f *= b.x, d *= b.y, l += y, u += C, g = Q(m), m = wn(g);
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
return Tt({
|
|
@@ -2048,7 +2048,7 @@ function Fn(e, t) {
|
|
|
2048
2048
|
const n = Wt(e).scrollLeft;
|
|
2049
2049
|
return t ? t.left + n : $e(pe(e)).left + n;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function Bo(e, t, n) {
|
|
2052
2052
|
n === void 0 && (n = !1);
|
|
2053
2053
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
2054
2054
|
// RTL <body> scrollbar.
|
|
@@ -2072,13 +2072,13 @@ function xc(e) {
|
|
|
2072
2072
|
let l = {
|
|
2073
2073
|
scrollLeft: 0,
|
|
2074
2074
|
scrollTop: 0
|
|
2075
|
-
}, u =
|
|
2076
|
-
const f =
|
|
2077
|
-
if ((d || !d && !s) && ((qe(r) !== "body" || lt(i)) && (l = Wt(r)),
|
|
2075
|
+
}, u = ue(1);
|
|
2076
|
+
const f = ue(0), d = de(r);
|
|
2077
|
+
if ((d || !d && !s) && ((qe(r) !== "body" || lt(i)) && (l = Wt(r)), de(r))) {
|
|
2078
2078
|
const v = $e(r);
|
|
2079
2079
|
u = ze(r), f.x = v.x + r.clientLeft, f.y = v.y + r.clientTop;
|
|
2080
2080
|
}
|
|
2081
|
-
const p = i && !d && !s ?
|
|
2081
|
+
const p = i && !d && !s ? Bo(i, l, !0) : ue(0);
|
|
2082
2082
|
return {
|
|
2083
2083
|
width: n.width * u.x,
|
|
2084
2084
|
height: n.height * u.y,
|
|
@@ -2116,7 +2116,7 @@ function Cc(e, t) {
|
|
|
2116
2116
|
};
|
|
2117
2117
|
}
|
|
2118
2118
|
function Ec(e, t) {
|
|
2119
|
-
const n = $e(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s =
|
|
2119
|
+
const n = $e(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = de(e) ? ze(e) : ue(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, u = r * s.y;
|
|
2120
2120
|
return {
|
|
2121
2121
|
width: i,
|
|
2122
2122
|
height: a,
|
|
@@ -2124,7 +2124,7 @@ function Ec(e, t) {
|
|
|
2124
2124
|
y: u
|
|
2125
2125
|
};
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2127
|
+
function Zr(e, t, n) {
|
|
2128
2128
|
let r;
|
|
2129
2129
|
if (t === "viewport")
|
|
2130
2130
|
r = Cc(e, n);
|
|
@@ -2133,7 +2133,7 @@ function Jr(e, t, n) {
|
|
|
2133
2133
|
else if (ie(t))
|
|
2134
2134
|
r = Ec(t, n);
|
|
2135
2135
|
else {
|
|
2136
|
-
const o =
|
|
2136
|
+
const o = Wo(e);
|
|
2137
2137
|
r = {
|
|
2138
2138
|
x: t.x - o.x,
|
|
2139
2139
|
y: t.y - o.y,
|
|
@@ -2143,9 +2143,9 @@ function Jr(e, t, n) {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
return Tt(r);
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Uo(e, t) {
|
|
2147
2147
|
const n = _e(e);
|
|
2148
|
-
return n === t || !ie(n) || He(n) ? !1 : ae(n).position === "fixed" ||
|
|
2148
|
+
return n === t || !ie(n) || He(n) ? !1 : ae(n).position === "fixed" || Uo(n, t);
|
|
2149
2149
|
}
|
|
2150
2150
|
function Sc(e, t) {
|
|
2151
2151
|
const n = t.get(e);
|
|
@@ -2156,7 +2156,7 @@ function Sc(e, t) {
|
|
|
2156
2156
|
let i = s ? _e(e) : e;
|
|
2157
2157
|
for (; ie(i) && !He(i); ) {
|
|
2158
2158
|
const a = ae(i), l = Dn(i);
|
|
2159
|
-
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(i) && !l &&
|
|
2159
|
+
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(i) && !l && Uo(e, i)) ? r = r.filter((f) => f !== i) : o = a, i = _e(i);
|
|
2160
2160
|
}
|
|
2161
2161
|
return t.set(e, r), r;
|
|
2162
2162
|
}
|
|
@@ -2168,9 +2168,9 @@ function Rc(e) {
|
|
|
2168
2168
|
strategy: o
|
|
2169
2169
|
} = e;
|
|
2170
2170
|
const i = [...n === "clippingAncestors" ? Ft(t) ? [] : Sc(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((u, f) => {
|
|
2171
|
-
const d =
|
|
2171
|
+
const d = Zr(t, f, o);
|
|
2172
2172
|
return u.top = J(d.top, u.top), u.right = Pe(d.right, u.right), u.bottom = Pe(d.bottom, u.bottom), u.left = J(d.left, u.left), u;
|
|
2173
|
-
},
|
|
2173
|
+
}, Zr(t, a, o));
|
|
2174
2174
|
return {
|
|
2175
2175
|
width: l.right - l.left,
|
|
2176
2176
|
height: l.bottom - l.top,
|
|
@@ -2182,25 +2182,25 @@ function Pc(e) {
|
|
|
2182
2182
|
const {
|
|
2183
2183
|
width: t,
|
|
2184
2184
|
height: n
|
|
2185
|
-
} =
|
|
2185
|
+
} = Fo(e);
|
|
2186
2186
|
return {
|
|
2187
2187
|
width: t,
|
|
2188
2188
|
height: n
|
|
2189
2189
|
};
|
|
2190
2190
|
}
|
|
2191
2191
|
function Ac(e, t, n) {
|
|
2192
|
-
const r =
|
|
2192
|
+
const r = de(t), o = pe(t), s = n === "fixed", i = $e(e, !0, s, t);
|
|
2193
2193
|
let a = {
|
|
2194
2194
|
scrollLeft: 0,
|
|
2195
2195
|
scrollTop: 0
|
|
2196
2196
|
};
|
|
2197
|
-
const l =
|
|
2197
|
+
const l = ue(0);
|
|
2198
2198
|
if (r || !r && !s)
|
|
2199
2199
|
if ((qe(t) !== "body" || lt(o)) && (a = Wt(t)), r) {
|
|
2200
2200
|
const p = $e(t, !0, s, t);
|
|
2201
2201
|
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
2202
2202
|
} else o && (l.x = Fn(o));
|
|
2203
|
-
const u = o && !r && !s ?
|
|
2203
|
+
const u = o && !r && !s ? Bo(o, a) : ue(0), f = i.left + a.scrollLeft - l.x - u.x, d = i.top + a.scrollTop - l.y - u.y;
|
|
2204
2204
|
return {
|
|
2205
2205
|
x: f,
|
|
2206
2206
|
y: d,
|
|
@@ -2211,19 +2211,19 @@ function Ac(e, t, n) {
|
|
|
2211
2211
|
function tn(e) {
|
|
2212
2212
|
return ae(e).position === "static";
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2215
|
-
if (!
|
|
2214
|
+
function Jr(e, t) {
|
|
2215
|
+
if (!de(e) || ae(e).position === "fixed")
|
|
2216
2216
|
return null;
|
|
2217
2217
|
if (t)
|
|
2218
2218
|
return t(e);
|
|
2219
2219
|
let n = e.offsetParent;
|
|
2220
2220
|
return pe(e) === n && (n = n.ownerDocument.body), n;
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function Vo(e, t) {
|
|
2223
2223
|
const n = Q(e);
|
|
2224
2224
|
if (Ft(e))
|
|
2225
2225
|
return n;
|
|
2226
|
-
if (!
|
|
2226
|
+
if (!de(e)) {
|
|
2227
2227
|
let o = _e(e);
|
|
2228
2228
|
for (; o && !He(o); ) {
|
|
2229
2229
|
if (ie(o) && !tn(o))
|
|
@@ -2232,13 +2232,13 @@ function Go(e, t) {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
return n;
|
|
2234
2234
|
}
|
|
2235
|
-
let r =
|
|
2235
|
+
let r = Jr(e, t);
|
|
2236
2236
|
for (; r && vc(r) && tn(r); )
|
|
2237
|
-
r =
|
|
2237
|
+
r = Jr(r, t);
|
|
2238
2238
|
return r && He(r) && tn(r) && !Dn(r) ? n : r || hc(e) || n;
|
|
2239
2239
|
}
|
|
2240
2240
|
const _c = async function(e) {
|
|
2241
|
-
const t = this.getOffsetParent ||
|
|
2241
|
+
const t = this.getOffsetParent || Vo, n = this.getDimensions, r = await n(e.floating);
|
|
2242
2242
|
return {
|
|
2243
2243
|
reference: Ac(e.reference, await t(e.floating), e.strategy),
|
|
2244
2244
|
floating: {
|
|
@@ -2256,7 +2256,7 @@ const Tc = {
|
|
|
2256
2256
|
convertOffsetParentRelativeRectToViewportRelativeRect: xc,
|
|
2257
2257
|
getDocumentElement: pe,
|
|
2258
2258
|
getClippingRect: Rc,
|
|
2259
|
-
getOffsetParent:
|
|
2259
|
+
getOffsetParent: Vo,
|
|
2260
2260
|
getElementRects: _c,
|
|
2261
2261
|
getClientRects: yc,
|
|
2262
2262
|
getDimensions: Pc,
|
|
@@ -2264,7 +2264,7 @@ const Tc = {
|
|
|
2264
2264
|
isElement: ie,
|
|
2265
2265
|
isRTL: Oc
|
|
2266
2266
|
};
|
|
2267
|
-
function
|
|
2267
|
+
function zo(e, t) {
|
|
2268
2268
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2269
2269
|
}
|
|
2270
2270
|
function Mc(e, t) {
|
|
@@ -2284,36 +2284,36 @@ function Mc(e, t) {
|
|
|
2284
2284
|
} = u;
|
|
2285
2285
|
if (a || t(), !p || !v)
|
|
2286
2286
|
return;
|
|
2287
|
-
const g = gt(d), m = gt(o.clientWidth - (f + p)), b = gt(o.clientHeight - (d + v)), x = gt(f),
|
|
2287
|
+
const g = gt(d), m = gt(o.clientWidth - (f + p)), b = gt(o.clientHeight - (d + v)), x = gt(f), y = {
|
|
2288
2288
|
rootMargin: -g + "px " + -m + "px " + -b + "px " + -x + "px",
|
|
2289
2289
|
threshold: J(0, Pe(1, l)) || 1
|
|
2290
2290
|
};
|
|
2291
2291
|
let C = !0;
|
|
2292
|
-
function
|
|
2293
|
-
const
|
|
2294
|
-
if (
|
|
2292
|
+
function S(P) {
|
|
2293
|
+
const R = P[0].intersectionRatio;
|
|
2294
|
+
if (R !== l) {
|
|
2295
2295
|
if (!C)
|
|
2296
2296
|
return i();
|
|
2297
|
-
|
|
2297
|
+
R ? i(!1, R) : r = setTimeout(() => {
|
|
2298
2298
|
i(!1, 1e-7);
|
|
2299
2299
|
}, 1e3);
|
|
2300
2300
|
}
|
|
2301
|
-
|
|
2301
|
+
R === 1 && !zo(u, e.getBoundingClientRect()) && i(), C = !1;
|
|
2302
2302
|
}
|
|
2303
2303
|
try {
|
|
2304
|
-
n = new IntersectionObserver(
|
|
2305
|
-
...
|
|
2304
|
+
n = new IntersectionObserver(S, {
|
|
2305
|
+
...y,
|
|
2306
2306
|
// Handle <iframe>s
|
|
2307
2307
|
root: o.ownerDocument
|
|
2308
2308
|
});
|
|
2309
2309
|
} catch {
|
|
2310
|
-
n = new IntersectionObserver(
|
|
2310
|
+
n = new IntersectionObserver(S, y);
|
|
2311
2311
|
}
|
|
2312
2312
|
n.observe(e);
|
|
2313
2313
|
}
|
|
2314
2314
|
return i(!0), s;
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function Go(e, t, n, r) {
|
|
2317
2317
|
r === void 0 && (r = {});
|
|
2318
2318
|
const {
|
|
2319
2319
|
ancestorScroll: o = !0,
|
|
@@ -2330,26 +2330,26 @@ function Ho(e, t, n, r) {
|
|
|
2330
2330
|
const d = u && a ? Mc(u, n) : null;
|
|
2331
2331
|
let p = -1, v = null;
|
|
2332
2332
|
i && (v = new ResizeObserver((x) => {
|
|
2333
|
-
let [
|
|
2334
|
-
|
|
2335
|
-
var
|
|
2336
|
-
(
|
|
2333
|
+
let [w] = x;
|
|
2334
|
+
w && w.target === u && v && (v.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
2335
|
+
var y;
|
|
2336
|
+
(y = v) == null || y.observe(t);
|
|
2337
2337
|
})), n();
|
|
2338
2338
|
}), u && !l && v.observe(u), v.observe(t));
|
|
2339
2339
|
let g, m = l ? $e(e) : null;
|
|
2340
2340
|
l && b();
|
|
2341
2341
|
function b() {
|
|
2342
2342
|
const x = $e(e);
|
|
2343
|
-
m && !
|
|
2343
|
+
m && !zo(m, x) && n(), m = x, g = requestAnimationFrame(b);
|
|
2344
2344
|
}
|
|
2345
2345
|
return n(), () => {
|
|
2346
2346
|
var x;
|
|
2347
|
-
f.forEach((
|
|
2348
|
-
o &&
|
|
2347
|
+
f.forEach((w) => {
|
|
2348
|
+
o && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
|
|
2349
2349
|
}), d == null || d(), (x = v) == null || x.disconnect(), v = null, l && cancelAnimationFrame(g);
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
|
-
const Ic = dc, Nc = fc, kc = cc, $c = mc, Dc = lc,
|
|
2352
|
+
const Ic = dc, Nc = fc, kc = cc, $c = mc, Dc = lc, Qr = ac, jc = pc, Lc = (e, t, n) => {
|
|
2353
2353
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
2354
2354
|
platform: Tc,
|
|
2355
2355
|
...n
|
|
@@ -2362,7 +2362,7 @@ const Ic = dc, Nc = fc, kc = cc, $c = mc, Dc = lc, eo = ac, jc = pc, Lc = (e, t,
|
|
|
2362
2362
|
platform: s
|
|
2363
2363
|
});
|
|
2364
2364
|
};
|
|
2365
|
-
var Rt = typeof document < "u" ?
|
|
2365
|
+
var Rt = typeof document < "u" ? da : fa;
|
|
2366
2366
|
function Mt(e, t) {
|
|
2367
2367
|
if (e === t)
|
|
2368
2368
|
return !0;
|
|
@@ -2393,11 +2393,11 @@ function Mt(e, t) {
|
|
|
2393
2393
|
}
|
|
2394
2394
|
return e !== e && t !== t;
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function Ko(e) {
|
|
2397
2397
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2400
|
-
const n =
|
|
2399
|
+
function eo(e, t) {
|
|
2400
|
+
const n = Ko(e);
|
|
2401
2401
|
return Math.round(t * n) / n;
|
|
2402
2402
|
}
|
|
2403
2403
|
function nn(e) {
|
|
@@ -2406,7 +2406,7 @@ function nn(e) {
|
|
|
2406
2406
|
t.current = e;
|
|
2407
2407
|
}), t;
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function Ho(e) {
|
|
2410
2410
|
e === void 0 && (e = {});
|
|
2411
2411
|
const {
|
|
2412
2412
|
placement: t = "bottom",
|
|
@@ -2429,19 +2429,19 @@ function Xo(e) {
|
|
|
2429
2429
|
isPositioned: !1
|
|
2430
2430
|
}), [p, v] = c.useState(r);
|
|
2431
2431
|
Mt(p, r) || v(r);
|
|
2432
|
-
const [g, m] = c.useState(null), [b, x] = c.useState(null),
|
|
2432
|
+
const [g, m] = c.useState(null), [b, x] = c.useState(null), w = c.useCallback((M) => {
|
|
2433
2433
|
M !== P.current && (P.current = M, m(M));
|
|
2434
|
-
}, []),
|
|
2435
|
-
M !==
|
|
2436
|
-
}, []), C = s || g,
|
|
2437
|
-
if (!P.current || !
|
|
2434
|
+
}, []), y = c.useCallback((M) => {
|
|
2435
|
+
M !== R.current && (R.current = M, x(M));
|
|
2436
|
+
}, []), C = s || g, S = i || b, P = c.useRef(null), R = c.useRef(null), T = c.useRef(f), k = l != null, I = nn(l), L = nn(o), W = nn(u), j = c.useCallback(() => {
|
|
2437
|
+
if (!P.current || !R.current)
|
|
2438
2438
|
return;
|
|
2439
2439
|
const M = {
|
|
2440
2440
|
placement: t,
|
|
2441
2441
|
strategy: n,
|
|
2442
2442
|
middleware: p
|
|
2443
2443
|
};
|
|
2444
|
-
L.current && (M.platform = L.current), Lc(P.current,
|
|
2444
|
+
L.current && (M.platform = L.current), Lc(P.current, R.current, M).then((A) => {
|
|
2445
2445
|
const E = {
|
|
2446
2446
|
...A,
|
|
2447
2447
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -2465,21 +2465,21 @@ function Xo(e) {
|
|
|
2465
2465
|
Rt(() => (D.current = !0, () => {
|
|
2466
2466
|
D.current = !1;
|
|
2467
2467
|
}), []), Rt(() => {
|
|
2468
|
-
if (C && (P.current = C),
|
|
2468
|
+
if (C && (P.current = C), S && (R.current = S), C && S) {
|
|
2469
2469
|
if (I.current)
|
|
2470
|
-
return I.current(C,
|
|
2470
|
+
return I.current(C, S, j);
|
|
2471
2471
|
j();
|
|
2472
2472
|
}
|
|
2473
|
-
}, [C,
|
|
2473
|
+
}, [C, S, j, I, k]);
|
|
2474
2474
|
const G = c.useMemo(() => ({
|
|
2475
2475
|
reference: P,
|
|
2476
|
-
floating:
|
|
2477
|
-
setReference:
|
|
2478
|
-
setFloating:
|
|
2479
|
-
}), [
|
|
2476
|
+
floating: R,
|
|
2477
|
+
setReference: w,
|
|
2478
|
+
setFloating: y
|
|
2479
|
+
}), [w, y]), $ = c.useMemo(() => ({
|
|
2480
2480
|
reference: C,
|
|
2481
|
-
floating:
|
|
2482
|
-
}), [C,
|
|
2481
|
+
floating: S
|
|
2482
|
+
}), [C, S]), F = c.useMemo(() => {
|
|
2483
2483
|
const M = {
|
|
2484
2484
|
position: n,
|
|
2485
2485
|
left: 0,
|
|
@@ -2487,11 +2487,11 @@ function Xo(e) {
|
|
|
2487
2487
|
};
|
|
2488
2488
|
if (!$.floating)
|
|
2489
2489
|
return M;
|
|
2490
|
-
const A =
|
|
2490
|
+
const A = eo($.floating, f.x), E = eo($.floating, f.y);
|
|
2491
2491
|
return a ? {
|
|
2492
2492
|
...M,
|
|
2493
2493
|
transform: "translate(" + A + "px, " + E + "px)",
|
|
2494
|
-
...
|
|
2494
|
+
...Ko($.floating) >= 1.5 && {
|
|
2495
2495
|
willChange: "transform"
|
|
2496
2496
|
}
|
|
2497
2497
|
} : {
|
|
@@ -2520,41 +2520,41 @@ const Fc = (e) => {
|
|
|
2520
2520
|
element: r,
|
|
2521
2521
|
padding: o
|
|
2522
2522
|
} = typeof e == "function" ? e(n) : e;
|
|
2523
|
-
return r && t(r) ? r.current != null ?
|
|
2523
|
+
return r && t(r) ? r.current != null ? Qr({
|
|
2524
2524
|
element: r.current,
|
|
2525
2525
|
padding: o
|
|
2526
|
-
}).fn(n) : {} : r ?
|
|
2526
|
+
}).fn(n) : {} : r ? Qr({
|
|
2527
2527
|
element: r,
|
|
2528
2528
|
padding: o
|
|
2529
2529
|
}).fn(n) : {};
|
|
2530
2530
|
}
|
|
2531
2531
|
};
|
|
2532
|
-
},
|
|
2532
|
+
}, Yo = (e, t) => ({
|
|
2533
2533
|
...Ic(e),
|
|
2534
2534
|
options: [e, t]
|
|
2535
|
-
}),
|
|
2535
|
+
}), Xo = (e, t) => ({
|
|
2536
2536
|
...Nc(e),
|
|
2537
2537
|
options: [e, t]
|
|
2538
|
-
}),
|
|
2538
|
+
}), qo = (e, t) => ({
|
|
2539
2539
|
...jc(e),
|
|
2540
2540
|
options: [e, t]
|
|
2541
|
-
}),
|
|
2541
|
+
}), Zo = (e, t) => ({
|
|
2542
2542
|
...kc(e),
|
|
2543
2543
|
options: [e, t]
|
|
2544
|
-
}),
|
|
2544
|
+
}), Jo = (e, t) => ({
|
|
2545
2545
|
...$c(e),
|
|
2546
2546
|
options: [e, t]
|
|
2547
|
-
}),
|
|
2547
|
+
}), Qo = (e, t) => ({
|
|
2548
2548
|
...Dc(e),
|
|
2549
2549
|
options: [e, t]
|
|
2550
|
-
}),
|
|
2550
|
+
}), es = (e, t) => ({
|
|
2551
2551
|
...Fc(e),
|
|
2552
2552
|
options: [e, t]
|
|
2553
2553
|
});
|
|
2554
|
-
var Wc = "Arrow",
|
|
2554
|
+
var Wc = "Arrow", ts = c.forwardRef((e, t) => {
|
|
2555
2555
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
2556
2556
|
return /* @__PURE__ */ h.jsx(
|
|
2557
|
-
|
|
2557
|
+
ce.svg,
|
|
2558
2558
|
{
|
|
2559
2559
|
...s,
|
|
2560
2560
|
ref: t,
|
|
@@ -2566,9 +2566,9 @@ var Wc = "Arrow", rs = c.forwardRef((e, t) => {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
);
|
|
2568
2568
|
});
|
|
2569
|
-
|
|
2570
|
-
var Bc =
|
|
2571
|
-
function
|
|
2569
|
+
ts.displayName = Wc;
|
|
2570
|
+
var Bc = ts;
|
|
2571
|
+
function ns(e) {
|
|
2572
2572
|
const [t, n] = c.useState(void 0);
|
|
2573
2573
|
return ke(() => {
|
|
2574
2574
|
if (e) {
|
|
@@ -2590,21 +2590,21 @@ function os(e) {
|
|
|
2590
2590
|
n(void 0);
|
|
2591
2591
|
}, [e]), t;
|
|
2592
2592
|
}
|
|
2593
|
-
var Wn = "Popper", [
|
|
2593
|
+
var Wn = "Popper", [rs, os] = jt(Wn), [Uc, ss] = rs(Wn), is = (e) => {
|
|
2594
2594
|
const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
|
|
2595
2595
|
return /* @__PURE__ */ h.jsx(Uc, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
2596
2596
|
};
|
|
2597
|
-
|
|
2598
|
-
var
|
|
2597
|
+
is.displayName = Wn;
|
|
2598
|
+
var as = "PopperAnchor", cs = c.forwardRef(
|
|
2599
2599
|
(e, t) => {
|
|
2600
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s = as
|
|
2600
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = ss(as, n), i = c.useRef(null), a = se(t, i);
|
|
2601
2601
|
return c.useEffect(() => {
|
|
2602
2602
|
s.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
2603
|
-
}), r ? null : /* @__PURE__ */ h.jsx(
|
|
2603
|
+
}), r ? null : /* @__PURE__ */ h.jsx(ce.div, { ...o, ref: a });
|
|
2604
2604
|
}
|
|
2605
2605
|
);
|
|
2606
|
-
|
|
2607
|
-
var Bn = "PopperContent", [Vc, zc] =
|
|
2606
|
+
cs.displayName = as;
|
|
2607
|
+
var Bn = "PopperContent", [Vc, zc] = rs(Bn), ls = c.forwardRef(
|
|
2608
2608
|
(e, t) => {
|
|
2609
2609
|
var X, B, K, te, Me, Ze;
|
|
2610
2610
|
const {
|
|
@@ -2622,42 +2622,42 @@ var Bn = "PopperContent", [Vc, zc] = ss(Bn), ds = c.forwardRef(
|
|
|
2622
2622
|
updatePositionStrategy: v = "optimized",
|
|
2623
2623
|
onPlaced: g,
|
|
2624
2624
|
...m
|
|
2625
|
-
} = e, b =
|
|
2625
|
+
} = e, b = ss(Bn, n), [x, w] = c.useState(null), y = se(t, (oe) => w(oe)), [C, S] = c.useState(null), P = ns(C), R = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, k = r + (s !== "center" ? "-" + s : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u], W = L.length > 0, j = {
|
|
2626
2626
|
padding: I,
|
|
2627
2627
|
boundary: L.filter(Kc),
|
|
2628
2628
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2629
2629
|
altBoundary: W
|
|
2630
|
-
}, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } =
|
|
2630
|
+
}, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = Ho({
|
|
2631
2631
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2632
2632
|
strategy: "fixed",
|
|
2633
2633
|
placement: k,
|
|
2634
|
-
whileElementsMounted: (...oe) =>
|
|
2634
|
+
whileElementsMounted: (...oe) => Go(...oe, {
|
|
2635
2635
|
animationFrame: v === "always"
|
|
2636
2636
|
}),
|
|
2637
2637
|
elements: {
|
|
2638
2638
|
reference: b.anchor
|
|
2639
2639
|
},
|
|
2640
2640
|
middleware: [
|
|
2641
|
-
|
|
2642
|
-
l &&
|
|
2641
|
+
Yo({ mainAxis: o + T, alignmentAxis: i }),
|
|
2642
|
+
l && Xo({
|
|
2643
2643
|
mainAxis: !0,
|
|
2644
2644
|
crossAxis: !1,
|
|
2645
|
-
limiter: d === "partial" ?
|
|
2645
|
+
limiter: d === "partial" ? qo() : void 0,
|
|
2646
2646
|
...j
|
|
2647
2647
|
}),
|
|
2648
|
-
l &&
|
|
2649
|
-
|
|
2648
|
+
l && Zo({ ...j }),
|
|
2649
|
+
Jo({
|
|
2650
2650
|
...j,
|
|
2651
2651
|
apply: ({ elements: oe, rects: Je, availableWidth: Yt, availableHeight: Xt }) => {
|
|
2652
2652
|
const { width: qt, height: Zt } = Je.reference, me = oe.floating.style;
|
|
2653
2653
|
me.setProperty("--radix-popper-available-width", `${Yt}px`), me.setProperty("--radix-popper-available-height", `${Xt}px`), me.setProperty("--radix-popper-anchor-width", `${qt}px`), me.setProperty("--radix-popper-anchor-height", `${Zt}px`);
|
|
2654
2654
|
}
|
|
2655
2655
|
}),
|
|
2656
|
-
C &&
|
|
2657
|
-
Hc({ arrowWidth:
|
|
2658
|
-
p &&
|
|
2656
|
+
C && es({ element: C, padding: a }),
|
|
2657
|
+
Hc({ arrowWidth: R, arrowHeight: T }),
|
|
2658
|
+
p && Qo({ strategy: "referenceHidden", ...j })
|
|
2659
2659
|
]
|
|
2660
|
-
}), [A, E] =
|
|
2660
|
+
}), [A, E] = fs($), _ = Re(g);
|
|
2661
2661
|
ke(() => {
|
|
2662
2662
|
F && (_ == null || _());
|
|
2663
2663
|
}, [F, _]);
|
|
@@ -2693,17 +2693,17 @@ var Bn = "PopperContent", [Vc, zc] = ss(Bn), ds = c.forwardRef(
|
|
|
2693
2693
|
{
|
|
2694
2694
|
scope: n,
|
|
2695
2695
|
placedSide: A,
|
|
2696
|
-
onArrowChange:
|
|
2696
|
+
onArrowChange: S,
|
|
2697
2697
|
arrowX: N,
|
|
2698
2698
|
arrowY: U,
|
|
2699
2699
|
shouldHideArrow: Y,
|
|
2700
2700
|
children: /* @__PURE__ */ h.jsx(
|
|
2701
|
-
|
|
2701
|
+
ce.div,
|
|
2702
2702
|
{
|
|
2703
2703
|
"data-side": A,
|
|
2704
2704
|
"data-align": E,
|
|
2705
2705
|
...m,
|
|
2706
|
-
ref:
|
|
2706
|
+
ref: y,
|
|
2707
2707
|
style: {
|
|
2708
2708
|
...m.style,
|
|
2709
2709
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -2718,14 +2718,14 @@ var Bn = "PopperContent", [Vc, zc] = ss(Bn), ds = c.forwardRef(
|
|
|
2718
2718
|
);
|
|
2719
2719
|
}
|
|
2720
2720
|
);
|
|
2721
|
-
|
|
2722
|
-
var
|
|
2721
|
+
ls.displayName = Bn;
|
|
2722
|
+
var us = "PopperArrow", Gc = {
|
|
2723
2723
|
top: "bottom",
|
|
2724
2724
|
right: "left",
|
|
2725
2725
|
bottom: "top",
|
|
2726
2726
|
left: "right"
|
|
2727
|
-
},
|
|
2728
|
-
const { __scopePopper: r, ...o } = t, s = zc(
|
|
2727
|
+
}, ds = c.forwardRef(function(t, n) {
|
|
2728
|
+
const { __scopePopper: r, ...o } = t, s = zc(us, r), i = Gc[s.placedSide];
|
|
2729
2729
|
return (
|
|
2730
2730
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2731
2731
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2769,7 +2769,7 @@ var fs = "PopperArrow", Gc = {
|
|
|
2769
2769
|
)
|
|
2770
2770
|
);
|
|
2771
2771
|
});
|
|
2772
|
-
|
|
2772
|
+
ds.displayName = us;
|
|
2773
2773
|
function Kc(e) {
|
|
2774
2774
|
return e !== null;
|
|
2775
2775
|
}
|
|
@@ -2777,36 +2777,36 @@ var Hc = (e) => ({
|
|
|
2777
2777
|
name: "transformOrigin",
|
|
2778
2778
|
options: e,
|
|
2779
2779
|
fn(t) {
|
|
2780
|
-
var b, x,
|
|
2781
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, f] =
|
|
2780
|
+
var b, x, w;
|
|
2781
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, f] = fs(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + a / 2, v = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + l / 2;
|
|
2782
2782
|
let g = "", m = "";
|
|
2783
2783
|
return u === "bottom" ? (g = i ? d : `${p}px`, m = `${-l}px`) : u === "top" ? (g = i ? d : `${p}px`, m = `${r.floating.height + l}px`) : u === "right" ? (g = `${-l}px`, m = i ? d : `${v}px`) : u === "left" && (g = `${r.floating.width + l}px`, m = i ? d : `${v}px`), { data: { x: g, y: m } };
|
|
2784
2784
|
}
|
|
2785
2785
|
});
|
|
2786
|
-
function
|
|
2786
|
+
function fs(e) {
|
|
2787
2787
|
const [t, n = "center"] = e.split("-");
|
|
2788
2788
|
return [t, n];
|
|
2789
2789
|
}
|
|
2790
|
-
var Yc =
|
|
2790
|
+
var Yc = is, ps = cs, Xc = ls, qc = ds, Zc = "Portal", ms = c.forwardRef((e, t) => {
|
|
2791
2791
|
var a;
|
|
2792
2792
|
const { container: n, ...r } = e, [o, s] = c.useState(!1);
|
|
2793
2793
|
ke(() => s(!0), []);
|
|
2794
2794
|
const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
2795
|
-
return i ?
|
|
2795
|
+
return i ? Ao.createPortal(/* @__PURE__ */ h.jsx(ce.div, { ...r, ref: t }), i) : null;
|
|
2796
2796
|
});
|
|
2797
|
-
|
|
2797
|
+
ms.displayName = Zc;
|
|
2798
2798
|
var Jc = function(e) {
|
|
2799
2799
|
if (typeof document > "u")
|
|
2800
2800
|
return null;
|
|
2801
2801
|
var t = Array.isArray(e) ? e[0] : e;
|
|
2802
2802
|
return t.ownerDocument.body;
|
|
2803
|
-
}, We = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {}, rn = 0,
|
|
2804
|
-
return e && (e.host ||
|
|
2803
|
+
}, We = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {}, rn = 0, vs = function(e) {
|
|
2804
|
+
return e && (e.host || vs(e.parentNode));
|
|
2805
2805
|
}, Qc = function(e, t) {
|
|
2806
2806
|
return t.map(function(n) {
|
|
2807
2807
|
if (e.contains(n))
|
|
2808
2808
|
return n;
|
|
2809
|
-
var r =
|
|
2809
|
+
var r = vs(n);
|
|
2810
2810
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
2811
2811
|
}).filter(function(n) {
|
|
2812
2812
|
return !!n;
|
|
@@ -2837,22 +2837,22 @@ var Jc = function(e) {
|
|
|
2837
2837
|
We.set(d, p), s.set(d, v), p || (bt.has(d) || d.removeAttribute(r), bt.delete(d)), v || d.removeAttribute(n);
|
|
2838
2838
|
}), rn--, rn || (We = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = {});
|
|
2839
2839
|
};
|
|
2840
|
-
},
|
|
2840
|
+
}, hs = function(e, t, n) {
|
|
2841
2841
|
n === void 0 && (n = "data-aria-hidden");
|
|
2842
2842
|
var r = Array.from(Array.isArray(e) ? e : [e]), o = Jc(e);
|
|
2843
2843
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), el(r, o, n, "aria-hidden")) : function() {
|
|
2844
2844
|
return null;
|
|
2845
2845
|
};
|
|
2846
|
-
},
|
|
2847
|
-
return
|
|
2846
|
+
}, le = function() {
|
|
2847
|
+
return le = Object.assign || function(t) {
|
|
2848
2848
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
2849
2849
|
n = arguments[r];
|
|
2850
2850
|
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
2851
2851
|
}
|
|
2852
2852
|
return t;
|
|
2853
|
-
},
|
|
2853
|
+
}, le.apply(this, arguments);
|
|
2854
2854
|
};
|
|
2855
|
-
function
|
|
2855
|
+
function gs(e, t) {
|
|
2856
2856
|
var n = {};
|
|
2857
2857
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2858
2858
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2870,7 +2870,7 @@ function on(e, t) {
|
|
|
2870
2870
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2871
2871
|
}
|
|
2872
2872
|
function ol(e, t) {
|
|
2873
|
-
var n =
|
|
2873
|
+
var n = Po(function() {
|
|
2874
2874
|
return {
|
|
2875
2875
|
// value
|
|
2876
2876
|
value: e,
|
|
@@ -2890,7 +2890,7 @@ function ol(e, t) {
|
|
|
2890
2890
|
})[0];
|
|
2891
2891
|
return n.callback = t, n.facade;
|
|
2892
2892
|
}
|
|
2893
|
-
var sl = typeof window < "u" ? c.useLayoutEffect : c.useEffect,
|
|
2893
|
+
var sl = typeof window < "u" ? c.useLayoutEffect : c.useEffect, to = /* @__PURE__ */ new WeakMap();
|
|
2894
2894
|
function il(e, t) {
|
|
2895
2895
|
var n = ol(null, function(r) {
|
|
2896
2896
|
return e.forEach(function(o) {
|
|
@@ -2898,7 +2898,7 @@ function il(e, t) {
|
|
|
2898
2898
|
});
|
|
2899
2899
|
});
|
|
2900
2900
|
return sl(function() {
|
|
2901
|
-
var r =
|
|
2901
|
+
var r = to.get(n);
|
|
2902
2902
|
if (r) {
|
|
2903
2903
|
var o = new Set(r), s = new Set(e), i = n.current;
|
|
2904
2904
|
o.forEach(function(a) {
|
|
@@ -2907,7 +2907,7 @@ function il(e, t) {
|
|
|
2907
2907
|
o.has(a) || on(a, i);
|
|
2908
2908
|
});
|
|
2909
2909
|
}
|
|
2910
|
-
|
|
2910
|
+
to.set(n, e);
|
|
2911
2911
|
}, [e]), n;
|
|
2912
2912
|
}
|
|
2913
2913
|
function al(e) {
|
|
@@ -2971,33 +2971,33 @@ function cl(e, t) {
|
|
|
2971
2971
|
function ll(e) {
|
|
2972
2972
|
e === void 0 && (e = {});
|
|
2973
2973
|
var t = cl(null);
|
|
2974
|
-
return t.options =
|
|
2974
|
+
return t.options = le({ async: !0, ssr: !1 }, e), t;
|
|
2975
2975
|
}
|
|
2976
|
-
var
|
|
2977
|
-
var t = e.sideCar, n =
|
|
2976
|
+
var bs = function(e) {
|
|
2977
|
+
var t = e.sideCar, n = gs(e, ["sideCar"]);
|
|
2978
2978
|
if (!t)
|
|
2979
2979
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2980
2980
|
var r = t.read();
|
|
2981
2981
|
if (!r)
|
|
2982
2982
|
throw new Error("Sidecar medium not found");
|
|
2983
|
-
return c.createElement(r,
|
|
2983
|
+
return c.createElement(r, le({}, n));
|
|
2984
2984
|
};
|
|
2985
|
-
|
|
2985
|
+
bs.isSideCarExport = !0;
|
|
2986
2986
|
function ul(e, t) {
|
|
2987
|
-
return e.useMedium(t),
|
|
2987
|
+
return e.useMedium(t), bs;
|
|
2988
2988
|
}
|
|
2989
|
-
var
|
|
2989
|
+
var xs = ll(), sn = function() {
|
|
2990
2990
|
}, Bt = c.forwardRef(function(e, t) {
|
|
2991
2991
|
var n = c.useRef(null), r = c.useState({
|
|
2992
2992
|
onScrollCapture: sn,
|
|
2993
2993
|
onWheelCapture: sn,
|
|
2994
2994
|
onTouchMoveCapture: sn
|
|
2995
|
-
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, v = e.noIsolation, g = e.inert, m = e.allowPinchZoom, b = e.as, x = b === void 0 ? "div" : b,
|
|
2995
|
+
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, v = e.noIsolation, g = e.inert, m = e.allowPinchZoom, b = e.as, x = b === void 0 ? "div" : b, w = e.gapMode, y = gs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = p, S = il([n, t]), P = le(le({}, y), o);
|
|
2996
2996
|
return c.createElement(
|
|
2997
2997
|
c.Fragment,
|
|
2998
2998
|
null,
|
|
2999
|
-
f && c.createElement(C, { sideCar:
|
|
3000
|
-
i ? c.cloneElement(c.Children.only(a),
|
|
2999
|
+
f && c.createElement(C, { sideCar: xs, removeScrollBar: u, shards: d, noIsolation: v, inert: g, setCallbacks: s, allowPinchZoom: !!m, lockRef: n, gapMode: w }),
|
|
3000
|
+
i ? c.cloneElement(c.Children.only(a), le(le({}, P), { ref: S })) : c.createElement(x, le({}, P, { className: l, ref: S }), a)
|
|
3001
3001
|
);
|
|
3002
3002
|
});
|
|
3003
3003
|
Bt.defaultProps = {
|
|
@@ -3047,7 +3047,7 @@ var vl = function() {
|
|
|
3047
3047
|
};
|
|
3048
3048
|
}, [t && n]);
|
|
3049
3049
|
};
|
|
3050
|
-
},
|
|
3050
|
+
}, ys = function() {
|
|
3051
3051
|
var e = hl(), t = function(n) {
|
|
3052
3052
|
var r = n.styles, o = n.dynamic;
|
|
3053
3053
|
return e(r, o), null;
|
|
@@ -3073,7 +3073,7 @@ var vl = function() {
|
|
|
3073
3073
|
right: t[2],
|
|
3074
3074
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3075
3075
|
};
|
|
3076
|
-
}, yl =
|
|
3076
|
+
}, yl = ys(), Ge = "data-scroll-locked", wl = function(e, t, n, r) {
|
|
3077
3077
|
var o = e.left, s = e.top, i = e.right, a = e.gap;
|
|
3078
3078
|
return n === void 0 && (n = "margin"), `
|
|
3079
3079
|
.`.concat(nl, ` {
|
|
@@ -3117,13 +3117,13 @@ var vl = function() {
|
|
|
3117
3117
|
`).concat(rl, ": ").concat(a, `px;
|
|
3118
3118
|
}
|
|
3119
3119
|
`);
|
|
3120
|
-
},
|
|
3120
|
+
}, no = function() {
|
|
3121
3121
|
var e = parseInt(document.body.getAttribute(Ge) || "0", 10);
|
|
3122
3122
|
return isFinite(e) ? e : 0;
|
|
3123
3123
|
}, Cl = function() {
|
|
3124
3124
|
c.useEffect(function() {
|
|
3125
|
-
return document.body.setAttribute(Ge, (
|
|
3126
|
-
var e =
|
|
3125
|
+
return document.body.setAttribute(Ge, (no() + 1).toString()), function() {
|
|
3126
|
+
var e = no() - 1;
|
|
3127
3127
|
e <= 0 ? document.body.removeAttribute(Ge) : document.body.setAttribute(Ge, e.toString());
|
|
3128
3128
|
};
|
|
3129
3129
|
}, []);
|
|
@@ -3148,7 +3148,7 @@ if (typeof window < "u")
|
|
|
3148
3148
|
}
|
|
3149
3149
|
var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
|
|
3150
3150
|
return e.tagName === "TEXTAREA";
|
|
3151
|
-
},
|
|
3151
|
+
}, ws = function(e, t) {
|
|
3152
3152
|
if (!(e instanceof Element))
|
|
3153
3153
|
return !1;
|
|
3154
3154
|
var n = window.getComputedStyle(e);
|
|
@@ -3158,16 +3158,16 @@ var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
|
|
|
3158
3158
|
!(n.overflowY === n.overflowX && !Sl(e) && n[t] === "visible")
|
|
3159
3159
|
);
|
|
3160
3160
|
}, Rl = function(e) {
|
|
3161
|
-
return
|
|
3161
|
+
return ws(e, "overflowY");
|
|
3162
3162
|
}, Pl = function(e) {
|
|
3163
|
-
return
|
|
3164
|
-
},
|
|
3163
|
+
return ws(e, "overflowX");
|
|
3164
|
+
}, ro = function(e, t) {
|
|
3165
3165
|
var n = t.ownerDocument, r = t;
|
|
3166
3166
|
do {
|
|
3167
3167
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
3168
|
-
var o =
|
|
3168
|
+
var o = Cs(e, r);
|
|
3169
3169
|
if (o) {
|
|
3170
|
-
var s =
|
|
3170
|
+
var s = Es(e, r), i = s[1], a = s[2];
|
|
3171
3171
|
if (i > a)
|
|
3172
3172
|
return !0;
|
|
3173
3173
|
}
|
|
@@ -3188,17 +3188,17 @@ var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
|
|
|
3188
3188
|
n,
|
|
3189
3189
|
r
|
|
3190
3190
|
];
|
|
3191
|
-
},
|
|
3191
|
+
}, Cs = function(e, t) {
|
|
3192
3192
|
return e === "v" ? Rl(t) : Pl(t);
|
|
3193
|
-
},
|
|
3193
|
+
}, Es = function(e, t) {
|
|
3194
3194
|
return e === "v" ? Al(t) : _l(t);
|
|
3195
3195
|
}, Ol = function(e, t) {
|
|
3196
3196
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3197
3197
|
}, Tl = function(e, t, n, r, o) {
|
|
3198
3198
|
var s = Ol(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, l = t.contains(a), u = !1, f = i > 0, d = 0, p = 0;
|
|
3199
3199
|
do {
|
|
3200
|
-
var v =
|
|
3201
|
-
(g || x) &&
|
|
3200
|
+
var v = Es(e, a), g = v[0], m = v[1], b = v[2], x = m - b - s * g;
|
|
3201
|
+
(g || x) && Cs(e, a) && (d += x, p += g), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
|
|
3202
3202
|
} while (
|
|
3203
3203
|
// portaled content
|
|
3204
3204
|
!l && a !== document.body || // self content
|
|
@@ -3207,9 +3207,9 @@ var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
|
|
|
3207
3207
|
return (f && Math.abs(d) < 1 || !f && Math.abs(p) < 1) && (u = !0), u;
|
|
3208
3208
|
}, wt = function(e) {
|
|
3209
3209
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
3210
|
-
},
|
|
3210
|
+
}, oo = function(e) {
|
|
3211
3211
|
return [e.deltaX, e.deltaY];
|
|
3212
|
-
},
|
|
3212
|
+
}, so = function(e) {
|
|
3213
3213
|
return e && "current" in e ? e.current : e;
|
|
3214
3214
|
}, Ml = function(e, t) {
|
|
3215
3215
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -3220,13 +3220,13 @@ var Be = Cn ? { passive: !1 } : !1, Sl = function(e) {
|
|
|
3220
3220
|
`);
|
|
3221
3221
|
}, Nl = 0, Ue = [];
|
|
3222
3222
|
function kl(e) {
|
|
3223
|
-
var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Nl++)[0], s = c.useState(
|
|
3223
|
+
var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Nl++)[0], s = c.useState(ys)[0], i = c.useRef(e);
|
|
3224
3224
|
c.useEffect(function() {
|
|
3225
3225
|
i.current = e;
|
|
3226
3226
|
}, [e]), c.useEffect(function() {
|
|
3227
3227
|
if (e.inert) {
|
|
3228
3228
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
3229
|
-
var m = tl([e.lockRef.current], (e.shards || []).map(
|
|
3229
|
+
var m = tl([e.lockRef.current], (e.shards || []).map(so), !0).filter(Boolean);
|
|
3230
3230
|
return m.forEach(function(b) {
|
|
3231
3231
|
return b.classList.add("allow-interactivity-".concat(o));
|
|
3232
3232
|
}), function() {
|
|
@@ -3239,46 +3239,46 @@ function kl(e) {
|
|
|
3239
3239
|
var a = c.useCallback(function(m, b) {
|
|
3240
3240
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
3241
3241
|
return !i.current.allowPinchZoom;
|
|
3242
|
-
var x = wt(m),
|
|
3243
|
-
if ("touches" in m &&
|
|
3242
|
+
var x = wt(m), w = n.current, y = "deltaX" in m ? m.deltaX : w[0] - x[0], C = "deltaY" in m ? m.deltaY : w[1] - x[1], S, P = m.target, R = Math.abs(y) > Math.abs(C) ? "h" : "v";
|
|
3243
|
+
if ("touches" in m && R === "h" && P.type === "range")
|
|
3244
3244
|
return !1;
|
|
3245
|
-
var T =
|
|
3245
|
+
var T = ro(R, P);
|
|
3246
3246
|
if (!T)
|
|
3247
3247
|
return !0;
|
|
3248
|
-
if (T ?
|
|
3248
|
+
if (T ? S = R : (S = R === "v" ? "h" : "v", T = ro(R, P)), !T)
|
|
3249
3249
|
return !1;
|
|
3250
|
-
if (!r.current && "changedTouches" in m && (
|
|
3250
|
+
if (!r.current && "changedTouches" in m && (y || C) && (r.current = S), !S)
|
|
3251
3251
|
return !0;
|
|
3252
|
-
var k = r.current ||
|
|
3253
|
-
return Tl(k, b, m, k === "h" ?
|
|
3252
|
+
var k = r.current || S;
|
|
3253
|
+
return Tl(k, b, m, k === "h" ? y : C);
|
|
3254
3254
|
}, []), l = c.useCallback(function(m) {
|
|
3255
3255
|
var b = m;
|
|
3256
3256
|
if (!(!Ue.length || Ue[Ue.length - 1] !== s)) {
|
|
3257
|
-
var x = "deltaY" in b ?
|
|
3258
|
-
return
|
|
3257
|
+
var x = "deltaY" in b ? oo(b) : wt(b), w = t.current.filter(function(S) {
|
|
3258
|
+
return S.name === b.type && (S.target === b.target || b.target === S.shadowParent) && Ml(S.delta, x);
|
|
3259
3259
|
})[0];
|
|
3260
|
-
if (
|
|
3260
|
+
if (w && w.should) {
|
|
3261
3261
|
b.cancelable && b.preventDefault();
|
|
3262
3262
|
return;
|
|
3263
3263
|
}
|
|
3264
|
-
if (!
|
|
3265
|
-
var
|
|
3266
|
-
return
|
|
3267
|
-
}), C =
|
|
3264
|
+
if (!w) {
|
|
3265
|
+
var y = (i.current.shards || []).map(so).filter(Boolean).filter(function(S) {
|
|
3266
|
+
return S.contains(b.target);
|
|
3267
|
+
}), C = y.length > 0 ? a(b, y[0]) : !i.current.noIsolation;
|
|
3268
3268
|
C && b.cancelable && b.preventDefault();
|
|
3269
3269
|
}
|
|
3270
3270
|
}
|
|
3271
|
-
}, []), u = c.useCallback(function(m, b, x,
|
|
3272
|
-
var
|
|
3273
|
-
t.current.push(
|
|
3271
|
+
}, []), u = c.useCallback(function(m, b, x, w) {
|
|
3272
|
+
var y = { name: m, delta: b, target: x, should: w, shadowParent: $l(x) };
|
|
3273
|
+
t.current.push(y), setTimeout(function() {
|
|
3274
3274
|
t.current = t.current.filter(function(C) {
|
|
3275
|
-
return C !==
|
|
3275
|
+
return C !== y;
|
|
3276
3276
|
});
|
|
3277
3277
|
}, 1);
|
|
3278
3278
|
}, []), f = c.useCallback(function(m) {
|
|
3279
3279
|
n.current = wt(m), r.current = void 0;
|
|
3280
3280
|
}, []), d = c.useCallback(function(m) {
|
|
3281
|
-
u(m.type,
|
|
3281
|
+
u(m.type, oo(m), m.target, a(m, e.lockRef.current));
|
|
3282
3282
|
}, []), p = c.useCallback(function(m) {
|
|
3283
3283
|
u(m.type, wt(m), m.target, a(m, e.lockRef.current));
|
|
3284
3284
|
}, []);
|
|
@@ -3306,14 +3306,14 @@ function $l(e) {
|
|
|
3306
3306
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3307
3307
|
return t;
|
|
3308
3308
|
}
|
|
3309
|
-
const Dl = ul(
|
|
3309
|
+
const Dl = ul(xs, kl);
|
|
3310
3310
|
var Un = c.forwardRef(function(e, t) {
|
|
3311
|
-
return c.createElement(Bt,
|
|
3311
|
+
return c.createElement(Bt, le({}, e, { ref: t, sideCar: Dl }));
|
|
3312
3312
|
});
|
|
3313
3313
|
Un.classNames = Bt.classNames;
|
|
3314
|
-
var Vn = "Popover", [
|
|
3315
|
-
|
|
3316
|
-
]), ut =
|
|
3314
|
+
var Vn = "Popover", [Ss, jl] = jt(Vn, [
|
|
3315
|
+
os
|
|
3316
|
+
]), ut = os(), [Ll, Oe] = Ss(Vn), zn = (e) => {
|
|
3317
3317
|
const {
|
|
3318
3318
|
__scopePopover: t,
|
|
3319
3319
|
children: n,
|
|
@@ -3321,7 +3321,7 @@ var Vn = "Popover", [Ps, jl] = jt(Vn, [
|
|
|
3321
3321
|
defaultOpen: o,
|
|
3322
3322
|
onOpenChange: s,
|
|
3323
3323
|
modal: i = !1
|
|
3324
|
-
} = e, a = ut(t), l = c.useRef(null), [u, f] = c.useState(!1), [d = !1, p] =
|
|
3324
|
+
} = e, a = ut(t), l = c.useRef(null), [u, f] = c.useState(!1), [d = !1, p] = To({
|
|
3325
3325
|
prop: r,
|
|
3326
3326
|
defaultProp: o,
|
|
3327
3327
|
onChange: s
|
|
@@ -3344,37 +3344,37 @@ var Vn = "Popover", [Ps, jl] = jt(Vn, [
|
|
|
3344
3344
|
) });
|
|
3345
3345
|
};
|
|
3346
3346
|
zn.displayName = Vn;
|
|
3347
|
-
var
|
|
3347
|
+
var Rs = "PopoverAnchor", Gn = c.forwardRef(
|
|
3348
3348
|
(e, t) => {
|
|
3349
|
-
const { __scopePopover: n, ...r } = e, o = Oe(
|
|
3350
|
-
return c.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ h.jsx(
|
|
3349
|
+
const { __scopePopover: n, ...r } = e, o = Oe(Rs, n), s = ut(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = o;
|
|
3350
|
+
return c.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ h.jsx(ps, { ...s, ...r, ref: t });
|
|
3351
3351
|
}
|
|
3352
3352
|
);
|
|
3353
|
-
Gn.displayName =
|
|
3354
|
-
var
|
|
3353
|
+
Gn.displayName = Rs;
|
|
3354
|
+
var Ps = "PopoverTrigger", Kn = c.forwardRef(
|
|
3355
3355
|
(e, t) => {
|
|
3356
|
-
const { __scopePopover: n, ...r } = e, o = Oe(
|
|
3357
|
-
|
|
3356
|
+
const { __scopePopover: n, ...r } = e, o = Oe(Ps, n), s = ut(n), i = se(t, o.triggerRef), a = /* @__PURE__ */ h.jsx(
|
|
3357
|
+
ce.button,
|
|
3358
3358
|
{
|
|
3359
3359
|
type: "button",
|
|
3360
3360
|
"aria-haspopup": "dialog",
|
|
3361
3361
|
"aria-expanded": o.open,
|
|
3362
3362
|
"aria-controls": o.contentId,
|
|
3363
|
-
"data-state":
|
|
3363
|
+
"data-state": Os(o.open),
|
|
3364
3364
|
...r,
|
|
3365
3365
|
ref: i,
|
|
3366
3366
|
onClick: ve(e.onClick, o.onOpenToggle)
|
|
3367
3367
|
}
|
|
3368
3368
|
);
|
|
3369
|
-
return o.hasCustomAnchor ? a : /* @__PURE__ */ h.jsx(
|
|
3369
|
+
return o.hasCustomAnchor ? a : /* @__PURE__ */ h.jsx(ps, { asChild: !0, ...s, children: a });
|
|
3370
3370
|
}
|
|
3371
3371
|
);
|
|
3372
|
-
Kn.displayName =
|
|
3373
|
-
var Hn = "PopoverPortal", [Fl, Wl] =
|
|
3372
|
+
Kn.displayName = Ps;
|
|
3373
|
+
var Hn = "PopoverPortal", [Fl, Wl] = Ss(Hn, {
|
|
3374
3374
|
forceMount: void 0
|
|
3375
3375
|
}), Yn = (e) => {
|
|
3376
3376
|
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = Oe(Hn, t);
|
|
3377
|
-
return /* @__PURE__ */ h.jsx(Fl, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(Mn, { present: n || s.open, children: /* @__PURE__ */ h.jsx(
|
|
3377
|
+
return /* @__PURE__ */ h.jsx(Fl, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(Mn, { present: n || s.open, children: /* @__PURE__ */ h.jsx(ms, { asChild: !0, container: o, children: r }) }) });
|
|
3378
3378
|
};
|
|
3379
3379
|
Yn.displayName = Hn;
|
|
3380
3380
|
var Ye = "PopoverContent", Xn = c.forwardRef(
|
|
@@ -3389,9 +3389,9 @@ var Bl = c.forwardRef(
|
|
|
3389
3389
|
const n = Oe(Ye, e.__scopePopover), r = c.useRef(null), o = se(t, r), s = c.useRef(!1);
|
|
3390
3390
|
return c.useEffect(() => {
|
|
3391
3391
|
const i = r.current;
|
|
3392
|
-
if (i) return
|
|
3392
|
+
if (i) return hs(i);
|
|
3393
3393
|
}, []), /* @__PURE__ */ h.jsx(Un, { as: ot, allowPinchZoom: !0, children: /* @__PURE__ */ h.jsx(
|
|
3394
|
-
|
|
3394
|
+
As,
|
|
3395
3395
|
{
|
|
3396
3396
|
...e,
|
|
3397
3397
|
ref: o,
|
|
@@ -3421,7 +3421,7 @@ var Bl = c.forwardRef(
|
|
|
3421
3421
|
(e, t) => {
|
|
3422
3422
|
const n = Oe(Ye, e.__scopePopover), r = c.useRef(!1), o = c.useRef(!1);
|
|
3423
3423
|
return /* @__PURE__ */ h.jsx(
|
|
3424
|
-
|
|
3424
|
+
As,
|
|
3425
3425
|
{
|
|
3426
3426
|
...e,
|
|
3427
3427
|
ref: t,
|
|
@@ -3440,7 +3440,7 @@ var Bl = c.forwardRef(
|
|
|
3440
3440
|
}
|
|
3441
3441
|
);
|
|
3442
3442
|
}
|
|
3443
|
-
),
|
|
3443
|
+
), As = c.forwardRef(
|
|
3444
3444
|
(e, t) => {
|
|
3445
3445
|
const {
|
|
3446
3446
|
__scopePopover: n,
|
|
@@ -3455,7 +3455,7 @@ var Bl = c.forwardRef(
|
|
|
3455
3455
|
...d
|
|
3456
3456
|
} = e, p = Oe(Ye, n), v = ut(n);
|
|
3457
3457
|
return za(), /* @__PURE__ */ h.jsx(
|
|
3458
|
-
|
|
3458
|
+
ko,
|
|
3459
3459
|
{
|
|
3460
3460
|
asChild: !0,
|
|
3461
3461
|
loop: !0,
|
|
@@ -3475,7 +3475,7 @@ var Bl = c.forwardRef(
|
|
|
3475
3475
|
children: /* @__PURE__ */ h.jsx(
|
|
3476
3476
|
Xc,
|
|
3477
3477
|
{
|
|
3478
|
-
"data-state":
|
|
3478
|
+
"data-state": Os(p.open),
|
|
3479
3479
|
role: "dialog",
|
|
3480
3480
|
id: p.contentId,
|
|
3481
3481
|
...v,
|
|
@@ -3496,11 +3496,11 @@ var Bl = c.forwardRef(
|
|
|
3496
3496
|
}
|
|
3497
3497
|
);
|
|
3498
3498
|
}
|
|
3499
|
-
),
|
|
3499
|
+
), _s = "PopoverClose", qn = c.forwardRef(
|
|
3500
3500
|
(e, t) => {
|
|
3501
|
-
const { __scopePopover: n, ...r } = e, o = Oe(
|
|
3501
|
+
const { __scopePopover: n, ...r } = e, o = Oe(_s, n);
|
|
3502
3502
|
return /* @__PURE__ */ h.jsx(
|
|
3503
|
-
|
|
3503
|
+
ce.button,
|
|
3504
3504
|
{
|
|
3505
3505
|
type: "button",
|
|
3506
3506
|
...r,
|
|
@@ -3510,7 +3510,7 @@ var Bl = c.forwardRef(
|
|
|
3510
3510
|
);
|
|
3511
3511
|
}
|
|
3512
3512
|
);
|
|
3513
|
-
qn.displayName =
|
|
3513
|
+
qn.displayName = _s;
|
|
3514
3514
|
var Vl = "PopoverArrow", Zn = c.forwardRef(
|
|
3515
3515
|
(e, t) => {
|
|
3516
3516
|
const { __scopePopover: n, ...r } = e, o = ut(n);
|
|
@@ -3518,10 +3518,10 @@ var Vl = "PopoverArrow", Zn = c.forwardRef(
|
|
|
3518
3518
|
}
|
|
3519
3519
|
);
|
|
3520
3520
|
Zn.displayName = Vl;
|
|
3521
|
-
function
|
|
3521
|
+
function Os(e) {
|
|
3522
3522
|
return e ? "open" : "closed";
|
|
3523
3523
|
}
|
|
3524
|
-
var
|
|
3524
|
+
var Ts = zn, zl = Gn, Ms = Kn, Gl = Yn, Kl = Xn, Hl = qn, Yl = Zn;
|
|
3525
3525
|
const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3526
3526
|
__proto__: null,
|
|
3527
3527
|
Anchor: zl,
|
|
@@ -3536,10 +3536,10 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3536
3536
|
PopoverPortal: Yn,
|
|
3537
3537
|
PopoverTrigger: Kn,
|
|
3538
3538
|
Portal: Gl,
|
|
3539
|
-
Root:
|
|
3540
|
-
Trigger:
|
|
3539
|
+
Root: Ts,
|
|
3540
|
+
Trigger: Ms,
|
|
3541
3541
|
createPopoverScope: jl
|
|
3542
|
-
}, Symbol.toStringTag, { value: "Module" })), { Content: ql, Portal: Zl } = Xl, Jl =
|
|
3542
|
+
}, Symbol.toStringTag, { value: "Module" })), { Content: ql, Portal: Zl } = Xl, Jl = Ts, Ql = Ms, eu = c.forwardRef(
|
|
3543
3543
|
({ align: e = "center", className: t, sideOffset: n = 4, container: r, ...o }, s) => /* @__PURE__ */ h.jsx(Zl, { container: r, children: /* @__PURE__ */ h.jsx(
|
|
3544
3544
|
ql,
|
|
3545
3545
|
{
|
|
@@ -3560,23 +3560,23 @@ function It(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
3560
3560
|
return t == null ? void 0 : t(o);
|
|
3561
3561
|
};
|
|
3562
3562
|
}
|
|
3563
|
-
function
|
|
3563
|
+
function io(e, t) {
|
|
3564
3564
|
if (typeof e == "function")
|
|
3565
3565
|
return e(t);
|
|
3566
3566
|
e != null && (e.current = t);
|
|
3567
3567
|
}
|
|
3568
|
-
function
|
|
3568
|
+
function Is(...e) {
|
|
3569
3569
|
return (t) => {
|
|
3570
3570
|
let n = !1;
|
|
3571
3571
|
const r = e.map((o) => {
|
|
3572
|
-
const s =
|
|
3572
|
+
const s = io(o, t);
|
|
3573
3573
|
return !n && typeof s == "function" && (n = !0), s;
|
|
3574
3574
|
});
|
|
3575
3575
|
if (n)
|
|
3576
3576
|
return () => {
|
|
3577
3577
|
for (let o = 0; o < r.length; o++) {
|
|
3578
3578
|
const s = r[o];
|
|
3579
|
-
typeof s == "function" ? s() :
|
|
3579
|
+
typeof s == "function" ? s() : io(e[o], null);
|
|
3580
3580
|
}
|
|
3581
3581
|
};
|
|
3582
3582
|
};
|
|
@@ -3631,9 +3631,9 @@ function nu(...e) {
|
|
|
3631
3631
|
};
|
|
3632
3632
|
return n.scopeName = t.scopeName, n;
|
|
3633
3633
|
}
|
|
3634
|
-
var
|
|
3635
|
-
}, ru = c[" useInsertionEffect ".trim().toString()] ||
|
|
3636
|
-
function
|
|
3634
|
+
var Ns = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
3635
|
+
}, ru = c[" useInsertionEffect ".trim().toString()] || Ns;
|
|
3636
|
+
function ks({
|
|
3637
3637
|
prop: e,
|
|
3638
3638
|
defaultProp: t,
|
|
3639
3639
|
onChange: n = () => {
|
|
@@ -3699,7 +3699,7 @@ function au(e) {
|
|
|
3699
3699
|
const { children: o, ...s } = n;
|
|
3700
3700
|
if (c.isValidElement(o)) {
|
|
3701
3701
|
const i = du(o), a = uu(s, o.props);
|
|
3702
|
-
return o.type !== c.Fragment && (a.ref = r ?
|
|
3702
|
+
return o.type !== c.Fragment && (a.ref = r ? Is(r, i) : i), c.cloneElement(o, a);
|
|
3703
3703
|
}
|
|
3704
3704
|
return c.Children.count(o) > 1 ? c.Children.only(null) : null;
|
|
3705
3705
|
});
|
|
@@ -3806,7 +3806,7 @@ function mu(...e) {
|
|
|
3806
3806
|
};
|
|
3807
3807
|
return n.scopeName = t.scopeName, n;
|
|
3808
3808
|
}
|
|
3809
|
-
function
|
|
3809
|
+
function ao(e, t) {
|
|
3810
3810
|
if (typeof e == "function")
|
|
3811
3811
|
return e(t);
|
|
3812
3812
|
e != null && (e.current = t);
|
|
@@ -3815,14 +3815,14 @@ function Qn(...e) {
|
|
|
3815
3815
|
return (t) => {
|
|
3816
3816
|
let n = !1;
|
|
3817
3817
|
const r = e.map((o) => {
|
|
3818
|
-
const s =
|
|
3818
|
+
const s = ao(o, t);
|
|
3819
3819
|
return !n && typeof s == "function" && (n = !0), s;
|
|
3820
3820
|
});
|
|
3821
3821
|
if (n)
|
|
3822
3822
|
return () => {
|
|
3823
3823
|
for (let o = 0; o < r.length; o++) {
|
|
3824
3824
|
const s = r[o];
|
|
3825
|
-
typeof s == "function" ? s() :
|
|
3825
|
+
typeof s == "function" ? s() : ao(e[o], null);
|
|
3826
3826
|
}
|
|
3827
3827
|
};
|
|
3828
3828
|
};
|
|
@@ -3879,32 +3879,32 @@ function yu(e) {
|
|
|
3879
3879
|
t,
|
|
3880
3880
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3881
3881
|
), i = (m) => {
|
|
3882
|
-
const { scope: b, children: x } = m,
|
|
3883
|
-
return /* @__PURE__ */ h.jsx(o, { scope: b, itemMap:
|
|
3882
|
+
const { scope: b, children: x } = m, w = V.useRef(null), y = V.useRef(/* @__PURE__ */ new Map()).current;
|
|
3883
|
+
return /* @__PURE__ */ h.jsx(o, { scope: b, itemMap: y, collectionRef: w, children: x });
|
|
3884
3884
|
};
|
|
3885
3885
|
i.displayName = t;
|
|
3886
3886
|
const a = e + "CollectionSlot", l = /* @__PURE__ */ Nt(a), u = V.forwardRef(
|
|
3887
3887
|
(m, b) => {
|
|
3888
|
-
const { scope: x, children:
|
|
3889
|
-
return /* @__PURE__ */ h.jsx(l, { ref: C, children:
|
|
3888
|
+
const { scope: x, children: w } = m, y = s(a, x), C = ee(b, y.collectionRef);
|
|
3889
|
+
return /* @__PURE__ */ h.jsx(l, { ref: C, children: w });
|
|
3890
3890
|
}
|
|
3891
3891
|
);
|
|
3892
3892
|
u.displayName = a;
|
|
3893
3893
|
const f = e + "CollectionItemSlot", d = "data-radix-collection-item", p = /* @__PURE__ */ Nt(f), v = V.forwardRef(
|
|
3894
3894
|
(m, b) => {
|
|
3895
|
-
const { scope: x, children:
|
|
3896
|
-
return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...
|
|
3895
|
+
const { scope: x, children: w, ...y } = m, C = V.useRef(null), S = ee(b, C), P = s(f, x);
|
|
3896
|
+
return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...y }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: S, children: w });
|
|
3897
3897
|
}
|
|
3898
3898
|
);
|
|
3899
3899
|
v.displayName = f;
|
|
3900
3900
|
function g(m) {
|
|
3901
3901
|
const b = s(e + "CollectionConsumer", m);
|
|
3902
3902
|
return V.useCallback(() => {
|
|
3903
|
-
const
|
|
3904
|
-
if (!
|
|
3905
|
-
const
|
|
3903
|
+
const w = b.collectionRef.current;
|
|
3904
|
+
if (!w) return [];
|
|
3905
|
+
const y = Array.from(w.querySelectorAll(`[${d}]`));
|
|
3906
3906
|
return Array.from(b.itemMap.values()).sort(
|
|
3907
|
-
(P,
|
|
3907
|
+
(P, R) => y.indexOf(P.ref.current) - y.indexOf(R.ref.current)
|
|
3908
3908
|
);
|
|
3909
3909
|
}, [b.collectionRef, b.itemMap]);
|
|
3910
3910
|
}
|
|
@@ -3944,7 +3944,7 @@ var Eu = [
|
|
|
3944
3944
|
});
|
|
3945
3945
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
3946
3946
|
}, {});
|
|
3947
|
-
function
|
|
3947
|
+
function $s(e, t) {
|
|
3948
3948
|
e && Tn.flushSync(() => e.dispatchEvent(t));
|
|
3949
3949
|
}
|
|
3950
3950
|
function xe(e) {
|
|
@@ -3965,11 +3965,11 @@ function Su(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3965
3965
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3966
3966
|
}, [n, t]);
|
|
3967
3967
|
}
|
|
3968
|
-
var Ru = "DismissableLayer", En = "dismissableLayer.update", Pu = "dismissableLayer.pointerDownOutside", Au = "dismissableLayer.focusOutside",
|
|
3968
|
+
var Ru = "DismissableLayer", En = "dismissableLayer.update", Pu = "dismissableLayer.pointerDownOutside", Au = "dismissableLayer.focusOutside", co, Ds = c.createContext({
|
|
3969
3969
|
layers: /* @__PURE__ */ new Set(),
|
|
3970
3970
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3971
3971
|
branches: /* @__PURE__ */ new Set()
|
|
3972
|
-
}),
|
|
3972
|
+
}), js = c.forwardRef(
|
|
3973
3973
|
(e, t) => {
|
|
3974
3974
|
const {
|
|
3975
3975
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -3979,47 +3979,47 @@ var Ru = "DismissableLayer", En = "dismissableLayer.update", Pu = "dismissableLa
|
|
|
3979
3979
|
onInteractOutside: i,
|
|
3980
3980
|
onDismiss: a,
|
|
3981
3981
|
...l
|
|
3982
|
-
} = e, u = c.useContext(
|
|
3983
|
-
const T =
|
|
3984
|
-
!C || k || (o == null || o(
|
|
3985
|
-
}, p), P = Mu((
|
|
3986
|
-
const T =
|
|
3987
|
-
[...u.branches].some((I) => I.contains(T)) || (s == null || s(
|
|
3982
|
+
} = e, u = c.useContext(Ds), [f, d] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = c.useState({}), g = ee(t, (R) => d(R)), m = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(b), w = f ? m.indexOf(f) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= x, S = Tu((R) => {
|
|
3983
|
+
const T = R.target, k = [...u.branches].some((I) => I.contains(T));
|
|
3984
|
+
!C || k || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
|
|
3985
|
+
}, p), P = Mu((R) => {
|
|
3986
|
+
const T = R.target;
|
|
3987
|
+
[...u.branches].some((I) => I.contains(T)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
|
|
3988
3988
|
}, p);
|
|
3989
|
-
return Su((
|
|
3990
|
-
|
|
3989
|
+
return Su((R) => {
|
|
3990
|
+
w === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
|
|
3991
3991
|
}, p), c.useEffect(() => {
|
|
3992
3992
|
if (f)
|
|
3993
|
-
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
3994
|
-
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents =
|
|
3993
|
+
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (co = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), lo(), () => {
|
|
3994
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = co);
|
|
3995
3995
|
};
|
|
3996
3996
|
}, [f, p, n, u]), c.useEffect(() => () => {
|
|
3997
|
-
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
3997
|
+
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), lo());
|
|
3998
3998
|
}, [f, u]), c.useEffect(() => {
|
|
3999
|
-
const
|
|
4000
|
-
return document.addEventListener(En,
|
|
3999
|
+
const R = () => v({});
|
|
4000
|
+
return document.addEventListener(En, R), () => document.removeEventListener(En, R);
|
|
4001
4001
|
}, []), /* @__PURE__ */ h.jsx(
|
|
4002
4002
|
re.div,
|
|
4003
4003
|
{
|
|
4004
4004
|
...l,
|
|
4005
4005
|
ref: g,
|
|
4006
4006
|
style: {
|
|
4007
|
-
pointerEvents:
|
|
4007
|
+
pointerEvents: y ? C ? "auto" : "none" : void 0,
|
|
4008
4008
|
...e.style
|
|
4009
4009
|
},
|
|
4010
4010
|
onFocusCapture: z(e.onFocusCapture, P.onFocusCapture),
|
|
4011
4011
|
onBlurCapture: z(e.onBlurCapture, P.onBlurCapture),
|
|
4012
4012
|
onPointerDownCapture: z(
|
|
4013
4013
|
e.onPointerDownCapture,
|
|
4014
|
-
|
|
4014
|
+
S.onPointerDownCapture
|
|
4015
4015
|
)
|
|
4016
4016
|
}
|
|
4017
4017
|
);
|
|
4018
4018
|
}
|
|
4019
4019
|
);
|
|
4020
|
-
|
|
4020
|
+
js.displayName = Ru;
|
|
4021
4021
|
var _u = "DismissableLayerBranch", Ou = c.forwardRef((e, t) => {
|
|
4022
|
-
const n = c.useContext(
|
|
4022
|
+
const n = c.useContext(Ds), r = c.useRef(null), o = ee(t, r);
|
|
4023
4023
|
return c.useEffect(() => {
|
|
4024
4024
|
const s = r.current;
|
|
4025
4025
|
if (s)
|
|
@@ -4036,7 +4036,7 @@ function Tu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4036
4036
|
const s = (a) => {
|
|
4037
4037
|
if (a.target && !r.current) {
|
|
4038
4038
|
let l = function() {
|
|
4039
|
-
|
|
4039
|
+
Ls(
|
|
4040
4040
|
Pu,
|
|
4041
4041
|
n,
|
|
4042
4042
|
u,
|
|
@@ -4063,7 +4063,7 @@ function Mu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4063
4063
|
const n = xe(e), r = c.useRef(!1);
|
|
4064
4064
|
return c.useEffect(() => {
|
|
4065
4065
|
const o = (s) => {
|
|
4066
|
-
s.target && !r.current &&
|
|
4066
|
+
s.target && !r.current && Ls(Au, n, { originalEvent: s }, {
|
|
4067
4067
|
discrete: !1
|
|
4068
4068
|
});
|
|
4069
4069
|
};
|
|
@@ -4073,28 +4073,28 @@ function Mu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4073
4073
|
onBlurCapture: () => r.current = !1
|
|
4074
4074
|
};
|
|
4075
4075
|
}
|
|
4076
|
-
function
|
|
4076
|
+
function lo() {
|
|
4077
4077
|
const e = new CustomEvent(En);
|
|
4078
4078
|
document.dispatchEvent(e);
|
|
4079
4079
|
}
|
|
4080
|
-
function
|
|
4080
|
+
function Ls(e, t, n, { discrete: r }) {
|
|
4081
4081
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
4082
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
4082
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? $s(o, s) : o.dispatchEvent(s);
|
|
4083
4083
|
}
|
|
4084
4084
|
var cn = 0;
|
|
4085
4085
|
function Iu() {
|
|
4086
4086
|
c.useEffect(() => {
|
|
4087
4087
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
4088
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
4088
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? uo()), document.body.insertAdjacentElement("beforeend", e[1] ?? uo()), cn++, () => {
|
|
4089
4089
|
cn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), cn--;
|
|
4090
4090
|
};
|
|
4091
4091
|
}, []);
|
|
4092
4092
|
}
|
|
4093
|
-
function
|
|
4093
|
+
function uo() {
|
|
4094
4094
|
const e = document.createElement("span");
|
|
4095
4095
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4096
4096
|
}
|
|
4097
|
-
var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount",
|
|
4097
|
+
var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount", fo = { bubbles: !1, cancelable: !0 }, Nu = "FocusScope", Fs = c.forwardRef((e, t) => {
|
|
4098
4098
|
const {
|
|
4099
4099
|
loop: n = !1,
|
|
4100
4100
|
trapped: r = !1,
|
|
@@ -4112,37 +4112,37 @@ var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount", po
|
|
|
4112
4112
|
}).current;
|
|
4113
4113
|
c.useEffect(() => {
|
|
4114
4114
|
if (r) {
|
|
4115
|
-
let m = function(
|
|
4115
|
+
let m = function(y) {
|
|
4116
4116
|
if (v.paused || !a) return;
|
|
4117
|
-
const C =
|
|
4117
|
+
const C = y.target;
|
|
4118
4118
|
a.contains(C) ? d.current = C : Ee(d.current, { select: !0 });
|
|
4119
|
-
}, b = function(
|
|
4119
|
+
}, b = function(y) {
|
|
4120
4120
|
if (v.paused || !a) return;
|
|
4121
|
-
const C =
|
|
4121
|
+
const C = y.relatedTarget;
|
|
4122
4122
|
C !== null && (a.contains(C) || Ee(d.current, { select: !0 }));
|
|
4123
|
-
}, x = function(
|
|
4123
|
+
}, x = function(y) {
|
|
4124
4124
|
if (document.activeElement === document.body)
|
|
4125
|
-
for (const
|
|
4126
|
-
|
|
4125
|
+
for (const S of y)
|
|
4126
|
+
S.removedNodes.length > 0 && Ee(a);
|
|
4127
4127
|
};
|
|
4128
4128
|
document.addEventListener("focusin", m), document.addEventListener("focusout", b);
|
|
4129
|
-
const
|
|
4130
|
-
return a &&
|
|
4131
|
-
document.removeEventListener("focusin", m), document.removeEventListener("focusout", b),
|
|
4129
|
+
const w = new MutationObserver(x);
|
|
4130
|
+
return a && w.observe(a, { childList: !0, subtree: !0 }), () => {
|
|
4131
|
+
document.removeEventListener("focusin", m), document.removeEventListener("focusout", b), w.disconnect();
|
|
4132
4132
|
};
|
|
4133
4133
|
}
|
|
4134
4134
|
}, [r, a, v.paused]), c.useEffect(() => {
|
|
4135
4135
|
if (a) {
|
|
4136
|
-
|
|
4136
|
+
mo.add(v);
|
|
4137
4137
|
const m = document.activeElement;
|
|
4138
4138
|
if (!a.contains(m)) {
|
|
4139
|
-
const x = new CustomEvent(ln,
|
|
4140
|
-
a.addEventListener(ln, u), a.dispatchEvent(x), x.defaultPrevented || (ku(Fu(
|
|
4139
|
+
const x = new CustomEvent(ln, fo);
|
|
4140
|
+
a.addEventListener(ln, u), a.dispatchEvent(x), x.defaultPrevented || (ku(Fu(Ws(a)), { select: !0 }), document.activeElement === m && Ee(a));
|
|
4141
4141
|
}
|
|
4142
4142
|
return () => {
|
|
4143
4143
|
a.removeEventListener(ln, u), setTimeout(() => {
|
|
4144
|
-
const x = new CustomEvent(un,
|
|
4145
|
-
a.addEventListener(un, f), a.dispatchEvent(x), x.defaultPrevented || Ee(m ?? document.body, { select: !0 }), a.removeEventListener(un, f),
|
|
4144
|
+
const x = new CustomEvent(un, fo);
|
|
4145
|
+
a.addEventListener(un, f), a.dispatchEvent(x), x.defaultPrevented || Ee(m ?? document.body, { select: !0 }), a.removeEventListener(un, f), mo.remove(v);
|
|
4146
4146
|
}, 0);
|
|
4147
4147
|
};
|
|
4148
4148
|
}
|
|
@@ -4152,25 +4152,25 @@ var ln = "focusScope.autoFocusOnMount", un = "focusScope.autoFocusOnUnmount", po
|
|
|
4152
4152
|
if (!n && !r || v.paused) return;
|
|
4153
4153
|
const b = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, x = document.activeElement;
|
|
4154
4154
|
if (b && x) {
|
|
4155
|
-
const
|
|
4156
|
-
|
|
4155
|
+
const w = m.currentTarget, [y, C] = $u(w);
|
|
4156
|
+
y && C ? !m.shiftKey && x === C ? (m.preventDefault(), n && Ee(y, { select: !0 })) : m.shiftKey && x === y && (m.preventDefault(), n && Ee(C, { select: !0 })) : x === w && m.preventDefault();
|
|
4157
4157
|
}
|
|
4158
4158
|
},
|
|
4159
4159
|
[n, r, v.paused]
|
|
4160
4160
|
);
|
|
4161
4161
|
return /* @__PURE__ */ h.jsx(re.div, { tabIndex: -1, ...i, ref: p, onKeyDown: g });
|
|
4162
4162
|
});
|
|
4163
|
-
|
|
4163
|
+
Fs.displayName = Nu;
|
|
4164
4164
|
function ku(e, { select: t = !1 } = {}) {
|
|
4165
4165
|
const n = document.activeElement;
|
|
4166
4166
|
for (const r of e)
|
|
4167
4167
|
if (Ee(r, { select: t }), document.activeElement !== n) return;
|
|
4168
4168
|
}
|
|
4169
4169
|
function $u(e) {
|
|
4170
|
-
const t =
|
|
4170
|
+
const t = Ws(e), n = po(t, e), r = po(t.reverse(), e);
|
|
4171
4171
|
return [n, r];
|
|
4172
4172
|
}
|
|
4173
|
-
function
|
|
4173
|
+
function Ws(e) {
|
|
4174
4174
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4175
4175
|
acceptNode: (r) => {
|
|
4176
4176
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -4180,7 +4180,7 @@ function Us(e) {
|
|
|
4180
4180
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
4181
4181
|
return t;
|
|
4182
4182
|
}
|
|
4183
|
-
function
|
|
4183
|
+
function po(e, t) {
|
|
4184
4184
|
for (const n of e)
|
|
4185
4185
|
if (!Du(n, { upTo: t })) return n;
|
|
4186
4186
|
}
|
|
@@ -4202,21 +4202,21 @@ function Ee(e, { select: t = !1 } = {}) {
|
|
|
4202
4202
|
e.focus({ preventScroll: !0 }), e !== n && ju(e) && t && e.select();
|
|
4203
4203
|
}
|
|
4204
4204
|
}
|
|
4205
|
-
var
|
|
4205
|
+
var mo = Lu();
|
|
4206
4206
|
function Lu() {
|
|
4207
4207
|
let e = [];
|
|
4208
4208
|
return {
|
|
4209
4209
|
add(t) {
|
|
4210
4210
|
const n = e[0];
|
|
4211
|
-
t !== n && (n == null || n.pause()), e =
|
|
4211
|
+
t !== n && (n == null || n.pause()), e = vo(e, t), e.unshift(t);
|
|
4212
4212
|
},
|
|
4213
4213
|
remove(t) {
|
|
4214
4214
|
var n;
|
|
4215
|
-
e =
|
|
4215
|
+
e = vo(e, t), (n = e[0]) == null || n.resume();
|
|
4216
4216
|
}
|
|
4217
4217
|
};
|
|
4218
4218
|
}
|
|
4219
|
-
function
|
|
4219
|
+
function vo(e, t) {
|
|
4220
4220
|
const n = [...e], r = n.indexOf(t);
|
|
4221
4221
|
return r !== -1 && n.splice(r, 1), n;
|
|
4222
4222
|
}
|
|
@@ -4226,13 +4226,13 @@ function Fu(e) {
|
|
|
4226
4226
|
var De = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
4227
4227
|
}, Wu = c[" useId ".trim().toString()] || (() => {
|
|
4228
4228
|
}), Bu = 0;
|
|
4229
|
-
function
|
|
4229
|
+
function ho(e) {
|
|
4230
4230
|
const [t, n] = c.useState(Wu());
|
|
4231
4231
|
return De(() => {
|
|
4232
4232
|
n((r) => r ?? String(Bu++));
|
|
4233
4233
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
4234
4234
|
}
|
|
4235
|
-
var Uu = "Arrow",
|
|
4235
|
+
var Uu = "Arrow", Bs = c.forwardRef((e, t) => {
|
|
4236
4236
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
4237
4237
|
return /* @__PURE__ */ h.jsx(
|
|
4238
4238
|
re.svg,
|
|
@@ -4247,8 +4247,8 @@ var Uu = "Arrow", Vs = c.forwardRef((e, t) => {
|
|
|
4247
4247
|
}
|
|
4248
4248
|
);
|
|
4249
4249
|
});
|
|
4250
|
-
|
|
4251
|
-
var Vu =
|
|
4250
|
+
Bs.displayName = Uu;
|
|
4251
|
+
var Vu = Bs;
|
|
4252
4252
|
function zu(e) {
|
|
4253
4253
|
const [t, n] = c.useState(void 0);
|
|
4254
4254
|
return De(() => {
|
|
@@ -4271,21 +4271,21 @@ function zu(e) {
|
|
|
4271
4271
|
n(void 0);
|
|
4272
4272
|
}, [e]), t;
|
|
4273
4273
|
}
|
|
4274
|
-
var er = "Popper", [
|
|
4274
|
+
var er = "Popper", [Us, Vs] = Jn(er), [Gu, zs] = Us(er), Gs = (e) => {
|
|
4275
4275
|
const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
|
|
4276
4276
|
return /* @__PURE__ */ h.jsx(Gu, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
4277
4277
|
};
|
|
4278
|
-
|
|
4279
|
-
var
|
|
4278
|
+
Gs.displayName = er;
|
|
4279
|
+
var Ks = "PopperAnchor", Hs = c.forwardRef(
|
|
4280
4280
|
(e, t) => {
|
|
4281
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s = Ks
|
|
4281
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = zs(Ks, n), i = c.useRef(null), a = ee(t, i);
|
|
4282
4282
|
return c.useEffect(() => {
|
|
4283
4283
|
s.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
4284
4284
|
}), r ? null : /* @__PURE__ */ h.jsx(re.div, { ...o, ref: a });
|
|
4285
4285
|
}
|
|
4286
4286
|
);
|
|
4287
|
-
|
|
4288
|
-
var tr = "PopperContent", [Ku, Hu] =
|
|
4287
|
+
Hs.displayName = Ks;
|
|
4288
|
+
var tr = "PopperContent", [Ku, Hu] = Us(tr), Ys = c.forwardRef(
|
|
4289
4289
|
(e, t) => {
|
|
4290
4290
|
var X, B, K, te, Me, Ze;
|
|
4291
4291
|
const {
|
|
@@ -4303,42 +4303,42 @@ var tr = "PopperContent", [Ku, Hu] = zs(tr), qs = c.forwardRef(
|
|
|
4303
4303
|
updatePositionStrategy: v = "optimized",
|
|
4304
4304
|
onPlaced: g,
|
|
4305
4305
|
...m
|
|
4306
|
-
} = e, b =
|
|
4306
|
+
} = e, b = zs(tr, n), [x, w] = c.useState(null), y = ee(t, (oe) => w(oe)), [C, S] = c.useState(null), P = zu(C), R = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, k = r + (s !== "center" ? "-" + s : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u], W = L.length > 0, j = {
|
|
4307
4307
|
padding: I,
|
|
4308
4308
|
boundary: L.filter(Xu),
|
|
4309
4309
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
4310
4310
|
altBoundary: W
|
|
4311
|
-
}, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } =
|
|
4311
|
+
}, { refs: D, floatingStyles: G, placement: $, isPositioned: F, middlewareData: M } = Ho({
|
|
4312
4312
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
4313
4313
|
strategy: "fixed",
|
|
4314
4314
|
placement: k,
|
|
4315
|
-
whileElementsMounted: (...oe) =>
|
|
4315
|
+
whileElementsMounted: (...oe) => Go(...oe, {
|
|
4316
4316
|
animationFrame: v === "always"
|
|
4317
4317
|
}),
|
|
4318
4318
|
elements: {
|
|
4319
4319
|
reference: b.anchor
|
|
4320
4320
|
},
|
|
4321
4321
|
middleware: [
|
|
4322
|
-
|
|
4323
|
-
l &&
|
|
4322
|
+
Yo({ mainAxis: o + T, alignmentAxis: i }),
|
|
4323
|
+
l && Xo({
|
|
4324
4324
|
mainAxis: !0,
|
|
4325
4325
|
crossAxis: !1,
|
|
4326
|
-
limiter: d === "partial" ?
|
|
4326
|
+
limiter: d === "partial" ? qo() : void 0,
|
|
4327
4327
|
...j
|
|
4328
4328
|
}),
|
|
4329
|
-
l &&
|
|
4330
|
-
|
|
4329
|
+
l && Zo({ ...j }),
|
|
4330
|
+
Jo({
|
|
4331
4331
|
...j,
|
|
4332
4332
|
apply: ({ elements: oe, rects: Je, availableWidth: Yt, availableHeight: Xt }) => {
|
|
4333
4333
|
const { width: qt, height: Zt } = Je.reference, me = oe.floating.style;
|
|
4334
4334
|
me.setProperty("--radix-popper-available-width", `${Yt}px`), me.setProperty("--radix-popper-available-height", `${Xt}px`), me.setProperty("--radix-popper-anchor-width", `${qt}px`), me.setProperty("--radix-popper-anchor-height", `${Zt}px`);
|
|
4335
4335
|
}
|
|
4336
4336
|
}),
|
|
4337
|
-
C &&
|
|
4338
|
-
qu({ arrowWidth:
|
|
4339
|
-
p &&
|
|
4337
|
+
C && es({ element: C, padding: a }),
|
|
4338
|
+
qu({ arrowWidth: R, arrowHeight: T }),
|
|
4339
|
+
p && Qo({ strategy: "referenceHidden", ...j })
|
|
4340
4340
|
]
|
|
4341
|
-
}), [A, E] =
|
|
4341
|
+
}), [A, E] = Zs($), _ = xe(g);
|
|
4342
4342
|
De(() => {
|
|
4343
4343
|
F && (_ == null || _());
|
|
4344
4344
|
}, [F, _]);
|
|
@@ -4374,7 +4374,7 @@ var tr = "PopperContent", [Ku, Hu] = zs(tr), qs = c.forwardRef(
|
|
|
4374
4374
|
{
|
|
4375
4375
|
scope: n,
|
|
4376
4376
|
placedSide: A,
|
|
4377
|
-
onArrowChange:
|
|
4377
|
+
onArrowChange: S,
|
|
4378
4378
|
arrowX: N,
|
|
4379
4379
|
arrowY: U,
|
|
4380
4380
|
shouldHideArrow: Y,
|
|
@@ -4384,7 +4384,7 @@ var tr = "PopperContent", [Ku, Hu] = zs(tr), qs = c.forwardRef(
|
|
|
4384
4384
|
"data-side": A,
|
|
4385
4385
|
"data-align": E,
|
|
4386
4386
|
...m,
|
|
4387
|
-
ref:
|
|
4387
|
+
ref: y,
|
|
4388
4388
|
style: {
|
|
4389
4389
|
...m.style,
|
|
4390
4390
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -4399,14 +4399,14 @@ var tr = "PopperContent", [Ku, Hu] = zs(tr), qs = c.forwardRef(
|
|
|
4399
4399
|
);
|
|
4400
4400
|
}
|
|
4401
4401
|
);
|
|
4402
|
-
|
|
4403
|
-
var
|
|
4402
|
+
Ys.displayName = tr;
|
|
4403
|
+
var Xs = "PopperArrow", Yu = {
|
|
4404
4404
|
top: "bottom",
|
|
4405
4405
|
right: "left",
|
|
4406
4406
|
bottom: "top",
|
|
4407
4407
|
left: "right"
|
|
4408
|
-
},
|
|
4409
|
-
const { __scopePopper: r, ...o } = t, s = Hu(
|
|
4408
|
+
}, qs = c.forwardRef(function(t, n) {
|
|
4409
|
+
const { __scopePopper: r, ...o } = t, s = Hu(Xs, r), i = Yu[s.placedSide];
|
|
4410
4410
|
return (
|
|
4411
4411
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
4412
4412
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -4450,7 +4450,7 @@ var Zs = "PopperArrow", Yu = {
|
|
|
4450
4450
|
)
|
|
4451
4451
|
);
|
|
4452
4452
|
});
|
|
4453
|
-
|
|
4453
|
+
qs.displayName = Xs;
|
|
4454
4454
|
function Xu(e) {
|
|
4455
4455
|
return e !== null;
|
|
4456
4456
|
}
|
|
@@ -4458,24 +4458,24 @@ var qu = (e) => ({
|
|
|
4458
4458
|
name: "transformOrigin",
|
|
4459
4459
|
options: e,
|
|
4460
4460
|
fn(t) {
|
|
4461
|
-
var b, x,
|
|
4462
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, f] =
|
|
4461
|
+
var b, x, w;
|
|
4462
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, f] = Zs(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + a / 2, v = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + l / 2;
|
|
4463
4463
|
let g = "", m = "";
|
|
4464
4464
|
return u === "bottom" ? (g = i ? d : `${p}px`, m = `${-l}px`) : u === "top" ? (g = i ? d : `${p}px`, m = `${r.floating.height + l}px`) : u === "right" ? (g = `${-l}px`, m = i ? d : `${v}px`) : u === "left" && (g = `${r.floating.width + l}px`, m = i ? d : `${v}px`), { data: { x: g, y: m } };
|
|
4465
4465
|
}
|
|
4466
4466
|
});
|
|
4467
|
-
function
|
|
4467
|
+
function Zs(e) {
|
|
4468
4468
|
const [t, n = "center"] = e.split("-");
|
|
4469
4469
|
return [t, n];
|
|
4470
4470
|
}
|
|
4471
|
-
var
|
|
4471
|
+
var Js = Gs, Zu = Hs, Ju = Ys, Qu = qs, ed = "Portal", Qs = c.forwardRef((e, t) => {
|
|
4472
4472
|
var a;
|
|
4473
4473
|
const { container: n, ...r } = e, [o, s] = c.useState(!1);
|
|
4474
4474
|
De(() => s(!0), []);
|
|
4475
4475
|
const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
4476
|
-
return i ?
|
|
4476
|
+
return i ? Ao.createPortal(/* @__PURE__ */ h.jsx(re.div, { ...r, ref: t }), i) : null;
|
|
4477
4477
|
});
|
|
4478
|
-
|
|
4478
|
+
Qs.displayName = ed;
|
|
4479
4479
|
function td(e, t) {
|
|
4480
4480
|
return c.useReducer((n, r) => t[n][r] ?? n, e);
|
|
4481
4481
|
}
|
|
@@ -4547,7 +4547,7 @@ function Ke(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
4547
4547
|
return t == null ? void 0 : t(o);
|
|
4548
4548
|
};
|
|
4549
4549
|
}
|
|
4550
|
-
function
|
|
4550
|
+
function ei(e, t = []) {
|
|
4551
4551
|
let n = [];
|
|
4552
4552
|
function r(s, i) {
|
|
4553
4553
|
const a = c.createContext(i), l = n.length;
|
|
@@ -4597,29 +4597,29 @@ function od(...e) {
|
|
|
4597
4597
|
};
|
|
4598
4598
|
return n.scopeName = t.scopeName, n;
|
|
4599
4599
|
}
|
|
4600
|
-
function
|
|
4600
|
+
function go(e, t) {
|
|
4601
4601
|
if (typeof e == "function")
|
|
4602
4602
|
return e(t);
|
|
4603
4603
|
e != null && (e.current = t);
|
|
4604
4604
|
}
|
|
4605
|
-
function
|
|
4605
|
+
function ti(...e) {
|
|
4606
4606
|
return (t) => {
|
|
4607
4607
|
let n = !1;
|
|
4608
4608
|
const r = e.map((o) => {
|
|
4609
|
-
const s =
|
|
4609
|
+
const s = go(o, t);
|
|
4610
4610
|
return !n && typeof s == "function" && (n = !0), s;
|
|
4611
4611
|
});
|
|
4612
4612
|
if (n)
|
|
4613
4613
|
return () => {
|
|
4614
4614
|
for (let o = 0; o < r.length; o++) {
|
|
4615
4615
|
const s = r[o];
|
|
4616
|
-
typeof s == "function" ? s() :
|
|
4616
|
+
typeof s == "function" ? s() : go(e[o], null);
|
|
4617
4617
|
}
|
|
4618
4618
|
};
|
|
4619
4619
|
};
|
|
4620
4620
|
}
|
|
4621
4621
|
function Sn(...e) {
|
|
4622
|
-
return c.useCallback(
|
|
4622
|
+
return c.useCallback(ti(...e), e);
|
|
4623
4623
|
}
|
|
4624
4624
|
// @__NO_SIDE_EFFECTS__
|
|
4625
4625
|
function Rn(e) {
|
|
@@ -4639,7 +4639,7 @@ function sd(e) {
|
|
|
4639
4639
|
const { children: o, ...s } = n;
|
|
4640
4640
|
if (c.isValidElement(o)) {
|
|
4641
4641
|
const i = ld(o), a = cd(s, o.props);
|
|
4642
|
-
return o.type !== c.Fragment && (a.ref = r ?
|
|
4642
|
+
return o.type !== c.Fragment && (a.ref = r ? ti(r, i) : i), c.cloneElement(o, a);
|
|
4643
4643
|
}
|
|
4644
4644
|
return c.Children.count(o) > 1 ? c.Children.only(null) : null;
|
|
4645
4645
|
});
|
|
@@ -4666,36 +4666,36 @@ function ld(e) {
|
|
|
4666
4666
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4667
4667
|
}
|
|
4668
4668
|
function ud(e) {
|
|
4669
|
-
const t = e + "CollectionProvider", [n, r] =
|
|
4669
|
+
const t = e + "CollectionProvider", [n, r] = ei(t), [o, s] = n(
|
|
4670
4670
|
t,
|
|
4671
4671
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
4672
4672
|
), i = (m) => {
|
|
4673
|
-
const { scope: b, children: x } = m,
|
|
4674
|
-
return /* @__PURE__ */ h.jsx(o, { scope: b, itemMap:
|
|
4673
|
+
const { scope: b, children: x } = m, w = V.useRef(null), y = V.useRef(/* @__PURE__ */ new Map()).current;
|
|
4674
|
+
return /* @__PURE__ */ h.jsx(o, { scope: b, itemMap: y, collectionRef: w, children: x });
|
|
4675
4675
|
};
|
|
4676
4676
|
i.displayName = t;
|
|
4677
4677
|
const a = e + "CollectionSlot", l = /* @__PURE__ */ Rn(a), u = V.forwardRef(
|
|
4678
4678
|
(m, b) => {
|
|
4679
|
-
const { scope: x, children:
|
|
4680
|
-
return /* @__PURE__ */ h.jsx(l, { ref: C, children:
|
|
4679
|
+
const { scope: x, children: w } = m, y = s(a, x), C = Sn(b, y.collectionRef);
|
|
4680
|
+
return /* @__PURE__ */ h.jsx(l, { ref: C, children: w });
|
|
4681
4681
|
}
|
|
4682
4682
|
);
|
|
4683
4683
|
u.displayName = a;
|
|
4684
4684
|
const f = e + "CollectionItemSlot", d = "data-radix-collection-item", p = /* @__PURE__ */ Rn(f), v = V.forwardRef(
|
|
4685
4685
|
(m, b) => {
|
|
4686
|
-
const { scope: x, children:
|
|
4687
|
-
return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...
|
|
4686
|
+
const { scope: x, children: w, ...y } = m, C = V.useRef(null), S = Sn(b, C), P = s(f, x);
|
|
4687
|
+
return V.useEffect(() => (P.itemMap.set(C, { ref: C, ...y }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h.jsx(p, { [d]: "", ref: S, children: w });
|
|
4688
4688
|
}
|
|
4689
4689
|
);
|
|
4690
4690
|
v.displayName = f;
|
|
4691
4691
|
function g(m) {
|
|
4692
4692
|
const b = s(e + "CollectionConsumer", m);
|
|
4693
4693
|
return V.useCallback(() => {
|
|
4694
|
-
const
|
|
4695
|
-
if (!
|
|
4696
|
-
const
|
|
4694
|
+
const w = b.collectionRef.current;
|
|
4695
|
+
if (!w) return [];
|
|
4696
|
+
const y = Array.from(w.querySelectorAll(`[${d}]`));
|
|
4697
4697
|
return Array.from(b.itemMap.values()).sort(
|
|
4698
|
-
(P,
|
|
4698
|
+
(P, R) => y.indexOf(P.ref.current) - y.indexOf(R.ref.current)
|
|
4699
4699
|
);
|
|
4700
4700
|
}, [b.collectionRef, b.itemMap]);
|
|
4701
4701
|
}
|
|
@@ -4705,12 +4705,12 @@ function ud(e) {
|
|
|
4705
4705
|
r
|
|
4706
4706
|
];
|
|
4707
4707
|
}
|
|
4708
|
-
var
|
|
4708
|
+
var ni = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
4709
4709
|
}, dd = c[" useId ".trim().toString()] || (() => {
|
|
4710
4710
|
}), fd = 0;
|
|
4711
4711
|
function pd(e) {
|
|
4712
4712
|
const [t, n] = c.useState(dd());
|
|
4713
|
-
return
|
|
4713
|
+
return ni(() => {
|
|
4714
4714
|
n((r) => r ?? String(fd++));
|
|
4715
4715
|
}, [e]), t ? `radix-${t}` : "";
|
|
4716
4716
|
}
|
|
@@ -4732,7 +4732,7 @@ var md = [
|
|
|
4732
4732
|
"span",
|
|
4733
4733
|
"svg",
|
|
4734
4734
|
"ul"
|
|
4735
|
-
],
|
|
4735
|
+
], ri = md.reduce((e, t) => {
|
|
4736
4736
|
const n = /* @__PURE__ */ Rn(`Primitive.${t}`), r = c.forwardRef((o, s) => {
|
|
4737
4737
|
const { asChild: i, ...a } = o, l = i ? n : t;
|
|
4738
4738
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(l, { ...a, ref: s });
|
|
@@ -4748,7 +4748,7 @@ function vd(e) {
|
|
|
4748
4748
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
4749
4749
|
}, []);
|
|
4750
4750
|
}
|
|
4751
|
-
var hd = c[" useInsertionEffect ".trim().toString()] ||
|
|
4751
|
+
var hd = c[" useInsertionEffect ".trim().toString()] || ni;
|
|
4752
4752
|
function gd({
|
|
4753
4753
|
prop: e,
|
|
4754
4754
|
defaultProp: t,
|
|
@@ -4802,13 +4802,13 @@ function wd(e) {
|
|
|
4802
4802
|
const t = c.useContext(yd);
|
|
4803
4803
|
return e || t || "ltr";
|
|
4804
4804
|
}
|
|
4805
|
-
var dn = "rovingFocusGroup.onEntryFocus", Cd = { bubbles: !1, cancelable: !0 }, ft = "RovingFocusGroup", [Pn,
|
|
4805
|
+
var dn = "rovingFocusGroup.onEntryFocus", Cd = { bubbles: !1, cancelable: !0 }, ft = "RovingFocusGroup", [Pn, oi, Ed] = ud(ft), [Sd, Ut] = ei(
|
|
4806
4806
|
ft,
|
|
4807
4807
|
[Ed]
|
|
4808
|
-
), [Rd, Pd] = Sd(ft),
|
|
4808
|
+
), [Rd, Pd] = Sd(ft), si = c.forwardRef(
|
|
4809
4809
|
(e, t) => /* @__PURE__ */ h.jsx(Pn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Pn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Ad, { ...e, ref: t }) }) })
|
|
4810
4810
|
);
|
|
4811
|
-
|
|
4811
|
+
si.displayName = ft;
|
|
4812
4812
|
var Ad = c.forwardRef((e, t) => {
|
|
4813
4813
|
const {
|
|
4814
4814
|
__scopeRovingFocusGroup: n,
|
|
@@ -4826,12 +4826,12 @@ var Ad = c.forwardRef((e, t) => {
|
|
|
4826
4826
|
defaultProp: a ?? null,
|
|
4827
4827
|
onChange: l,
|
|
4828
4828
|
caller: ft
|
|
4829
|
-
}), [x,
|
|
4829
|
+
}), [x, w] = c.useState(!1), y = vd(u), C = oi(n), S = c.useRef(!1), [P, R] = c.useState(0);
|
|
4830
4830
|
return c.useEffect(() => {
|
|
4831
4831
|
const T = p.current;
|
|
4832
4832
|
if (T)
|
|
4833
|
-
return T.addEventListener(dn,
|
|
4834
|
-
}, [
|
|
4833
|
+
return T.addEventListener(dn, y), () => T.removeEventListener(dn, y);
|
|
4834
|
+
}, [y]), /* @__PURE__ */ h.jsx(
|
|
4835
4835
|
Rd,
|
|
4836
4836
|
{
|
|
4837
4837
|
scope: n,
|
|
@@ -4843,17 +4843,17 @@ var Ad = c.forwardRef((e, t) => {
|
|
|
4843
4843
|
(T) => b(T),
|
|
4844
4844
|
[b]
|
|
4845
4845
|
),
|
|
4846
|
-
onItemShiftTab: c.useCallback(() =>
|
|
4846
|
+
onItemShiftTab: c.useCallback(() => w(!0), []),
|
|
4847
4847
|
onFocusableItemAdd: c.useCallback(
|
|
4848
|
-
() =>
|
|
4848
|
+
() => R((T) => T + 1),
|
|
4849
4849
|
[]
|
|
4850
4850
|
),
|
|
4851
4851
|
onFocusableItemRemove: c.useCallback(
|
|
4852
|
-
() =>
|
|
4852
|
+
() => R((T) => T - 1),
|
|
4853
4853
|
[]
|
|
4854
4854
|
),
|
|
4855
4855
|
children: /* @__PURE__ */ h.jsx(
|
|
4856
|
-
|
|
4856
|
+
ri.div,
|
|
4857
4857
|
{
|
|
4858
4858
|
tabIndex: x || P === 0 ? -1 : 0,
|
|
4859
4859
|
"data-orientation": r,
|
|
@@ -4861,27 +4861,27 @@ var Ad = c.forwardRef((e, t) => {
|
|
|
4861
4861
|
ref: v,
|
|
4862
4862
|
style: { outline: "none", ...e.style },
|
|
4863
4863
|
onMouseDown: Ke(e.onMouseDown, () => {
|
|
4864
|
-
|
|
4864
|
+
S.current = !0;
|
|
4865
4865
|
}),
|
|
4866
4866
|
onFocus: Ke(e.onFocus, (T) => {
|
|
4867
|
-
const k = !
|
|
4867
|
+
const k = !S.current;
|
|
4868
4868
|
if (T.target === T.currentTarget && k && !x) {
|
|
4869
4869
|
const I = new CustomEvent(dn, Cd);
|
|
4870
4870
|
if (T.currentTarget.dispatchEvent(I), !I.defaultPrevented) {
|
|
4871
4871
|
const L = C().filter(($) => $.focusable), W = L.find(($) => $.active), j = L.find(($) => $.id === m), G = [W, j, ...L].filter(
|
|
4872
4872
|
Boolean
|
|
4873
4873
|
).map(($) => $.ref.current);
|
|
4874
|
-
|
|
4874
|
+
ci(G, f);
|
|
4875
4875
|
}
|
|
4876
4876
|
}
|
|
4877
|
-
|
|
4877
|
+
S.current = !1;
|
|
4878
4878
|
}),
|
|
4879
|
-
onBlur: Ke(e.onBlur, () =>
|
|
4879
|
+
onBlur: Ke(e.onBlur, () => w(!1))
|
|
4880
4880
|
}
|
|
4881
4881
|
)
|
|
4882
4882
|
}
|
|
4883
4883
|
);
|
|
4884
|
-
}),
|
|
4884
|
+
}), ii = "RovingFocusGroupItem", ai = c.forwardRef(
|
|
4885
4885
|
(e, t) => {
|
|
4886
4886
|
const {
|
|
4887
4887
|
__scopeRovingFocusGroup: n,
|
|
@@ -4890,7 +4890,7 @@ var Ad = c.forwardRef((e, t) => {
|
|
|
4890
4890
|
tabStopId: s,
|
|
4891
4891
|
children: i,
|
|
4892
4892
|
...a
|
|
4893
|
-
} = e, l = pd(), u = s || l, f = Pd(
|
|
4893
|
+
} = e, l = pd(), u = s || l, f = Pd(ii, n), d = f.currentTabStopId === u, p = oi(n), { onFocusableItemAdd: v, onFocusableItemRemove: g, currentTabStopId: m } = f;
|
|
4894
4894
|
return c.useEffect(() => {
|
|
4895
4895
|
if (r)
|
|
4896
4896
|
return v(), () => g();
|
|
@@ -4902,7 +4902,7 @@ var Ad = c.forwardRef((e, t) => {
|
|
|
4902
4902
|
focusable: r,
|
|
4903
4903
|
active: o,
|
|
4904
4904
|
children: /* @__PURE__ */ h.jsx(
|
|
4905
|
-
|
|
4905
|
+
ri.span,
|
|
4906
4906
|
{
|
|
4907
4907
|
tabIndex: d ? 0 : -1,
|
|
4908
4908
|
"data-orientation": f.orientation,
|
|
@@ -4922,14 +4922,14 @@ var Ad = c.forwardRef((e, t) => {
|
|
|
4922
4922
|
if (x !== void 0) {
|
|
4923
4923
|
if (b.metaKey || b.ctrlKey || b.altKey || b.shiftKey) return;
|
|
4924
4924
|
b.preventDefault();
|
|
4925
|
-
let
|
|
4926
|
-
if (x === "last")
|
|
4925
|
+
let y = p().filter((C) => C.focusable).map((C) => C.ref.current);
|
|
4926
|
+
if (x === "last") y.reverse();
|
|
4927
4927
|
else if (x === "prev" || x === "next") {
|
|
4928
|
-
x === "prev" &&
|
|
4929
|
-
const C =
|
|
4930
|
-
|
|
4928
|
+
x === "prev" && y.reverse();
|
|
4929
|
+
const C = y.indexOf(b.currentTarget);
|
|
4930
|
+
y = f.loop ? Md(y, C + 1) : y.slice(C + 1);
|
|
4931
4931
|
}
|
|
4932
|
-
setTimeout(() =>
|
|
4932
|
+
setTimeout(() => ci(y));
|
|
4933
4933
|
}
|
|
4934
4934
|
}),
|
|
4935
4935
|
children: typeof i == "function" ? i({ isCurrentTabStop: d, hasTabStop: m != null }) : i
|
|
@@ -4939,7 +4939,7 @@ var Ad = c.forwardRef((e, t) => {
|
|
|
4939
4939
|
);
|
|
4940
4940
|
}
|
|
4941
4941
|
);
|
|
4942
|
-
|
|
4942
|
+
ai.displayName = ii;
|
|
4943
4943
|
var _d = {
|
|
4944
4944
|
ArrowLeft: "prev",
|
|
4945
4945
|
ArrowUp: "prev",
|
|
@@ -4958,7 +4958,7 @@ function Td(e, t, n) {
|
|
|
4958
4958
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
4959
4959
|
return _d[r];
|
|
4960
4960
|
}
|
|
4961
|
-
function
|
|
4961
|
+
function ci(e, t = !1) {
|
|
4962
4962
|
const n = document.activeElement;
|
|
4963
4963
|
for (const r of e)
|
|
4964
4964
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
@@ -4966,17 +4966,17 @@ function ui(e, t = !1) {
|
|
|
4966
4966
|
function Md(e, t) {
|
|
4967
4967
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
4968
4968
|
}
|
|
4969
|
-
var
|
|
4969
|
+
var li = si, ui = ai, An = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"], di = ["ArrowUp", "PageDown", "End"], Nd = [...Id, ...di], kd = {
|
|
4970
4970
|
ltr: [...An, "ArrowRight"],
|
|
4971
4971
|
rtl: [...An, "ArrowLeft"]
|
|
4972
4972
|
}, $d = {
|
|
4973
4973
|
ltr: ["ArrowLeft"],
|
|
4974
4974
|
rtl: ["ArrowRight"]
|
|
4975
|
-
}, pt = "Menu", [at, Dd, jd] = yu(pt), [je,
|
|
4975
|
+
}, pt = "Menu", [at, Dd, jd] = yu(pt), [je, fi] = Jn(pt, [
|
|
4976
4976
|
jd,
|
|
4977
|
-
|
|
4977
|
+
Vs,
|
|
4978
4978
|
Ut
|
|
4979
|
-
]), mt =
|
|
4979
|
+
]), mt = Vs(), pi = Ut(), [mi, Te] = je(pt), [Ld, vt] = je(pt), vi = (e) => {
|
|
4980
4980
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = mt(t), [l, u] = c.useState(null), f = c.useRef(!1), d = xe(s), p = Cu(o);
|
|
4981
4981
|
return c.useEffect(() => {
|
|
4982
4982
|
const v = () => {
|
|
@@ -4985,8 +4985,8 @@ var di = ai, fi = li, An = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"],
|
|
|
4985
4985
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
4986
4986
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
|
|
4987
4987
|
};
|
|
4988
|
-
}, []), /* @__PURE__ */ h.jsx(
|
|
4989
|
-
|
|
4988
|
+
}, []), /* @__PURE__ */ h.jsx(Js, { ...a, children: /* @__PURE__ */ h.jsx(
|
|
4989
|
+
mi,
|
|
4990
4990
|
{
|
|
4991
4991
|
scope: t,
|
|
4992
4992
|
open: n,
|
|
@@ -5007,7 +5007,7 @@ var di = ai, fi = li, An = ["Enter", " "], Id = ["ArrowDown", "PageUp", "Home"],
|
|
|
5007
5007
|
}
|
|
5008
5008
|
) });
|
|
5009
5009
|
};
|
|
5010
|
-
|
|
5010
|
+
vi.displayName = pt;
|
|
5011
5011
|
var Fd = "MenuAnchor", nr = c.forwardRef(
|
|
5012
5012
|
(e, t) => {
|
|
5013
5013
|
const { __scopeMenu: n, ...r } = e, o = mt(n);
|
|
@@ -5015,16 +5015,16 @@ var Fd = "MenuAnchor", nr = c.forwardRef(
|
|
|
5015
5015
|
}
|
|
5016
5016
|
);
|
|
5017
5017
|
nr.displayName = Fd;
|
|
5018
|
-
var rr = "MenuPortal", [Wd,
|
|
5018
|
+
var rr = "MenuPortal", [Wd, hi] = je(rr, {
|
|
5019
5019
|
forceMount: void 0
|
|
5020
|
-
}),
|
|
5020
|
+
}), gi = (e) => {
|
|
5021
5021
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(rr, t);
|
|
5022
|
-
return /* @__PURE__ */ h.jsx(Wd, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(dt, { present: n || s.open, children: /* @__PURE__ */ h.jsx(
|
|
5022
|
+
return /* @__PURE__ */ h.jsx(Wd, { scope: t, forceMount: n, children: /* @__PURE__ */ h.jsx(dt, { present: n || s.open, children: /* @__PURE__ */ h.jsx(Qs, { asChild: !0, container: o, children: r }) }) });
|
|
5023
5023
|
};
|
|
5024
|
-
|
|
5025
|
-
var ne = "MenuContent", [Bd, or] = je(ne),
|
|
5024
|
+
gi.displayName = rr;
|
|
5025
|
+
var ne = "MenuContent", [Bd, or] = je(ne), bi = c.forwardRef(
|
|
5026
5026
|
(e, t) => {
|
|
5027
|
-
const n =
|
|
5027
|
+
const n = hi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu);
|
|
5028
5028
|
return /* @__PURE__ */ h.jsx(at.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ h.jsx(dt, { present: r || s.open, children: /* @__PURE__ */ h.jsx(at.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ h.jsx(Ud, { ...o, ref: t }) : /* @__PURE__ */ h.jsx(Vd, { ...o, ref: t }) }) }) });
|
|
5029
5029
|
}
|
|
5030
5030
|
), Ud = c.forwardRef(
|
|
@@ -5032,7 +5032,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), yi = c.forwardRef(
|
|
|
5032
5032
|
const n = Te(ne, e.__scopeMenu), r = c.useRef(null), o = ee(t, r);
|
|
5033
5033
|
return c.useEffect(() => {
|
|
5034
5034
|
const s = r.current;
|
|
5035
|
-
if (s) return
|
|
5035
|
+
if (s) return hs(s);
|
|
5036
5036
|
}, []), /* @__PURE__ */ h.jsx(
|
|
5037
5037
|
sr,
|
|
5038
5038
|
{
|
|
@@ -5080,7 +5080,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), yi = c.forwardRef(
|
|
|
5080
5080
|
onDismiss: v,
|
|
5081
5081
|
disableOutsideScroll: g,
|
|
5082
5082
|
...m
|
|
5083
|
-
} = e, b = Te(ne, n), x = vt(ne, n),
|
|
5083
|
+
} = e, b = Te(ne, n), x = vt(ne, n), w = mt(n), y = pi(n), C = Dd(n), [S, P] = c.useState(null), R = c.useRef(null), T = ee(t, R, b.onContentChange), k = c.useRef(0), I = c.useRef(""), L = c.useRef(0), W = c.useRef(null), j = c.useRef("right"), D = c.useRef(0), G = g ? Un : c.Fragment, $ = g ? { as: zd, allowPinchZoom: !0 } : void 0, F = (A) => {
|
|
5084
5084
|
var X, B;
|
|
5085
5085
|
const E = I.current + A, _ = C().filter((K) => !K.disabled), N = document.activeElement, U = (X = _.find((K) => K.ref.current === N)) == null ? void 0 : X.textValue, Y = _.map((K) => K.textValue), H = nf(Y, E, U), Z = (B = _.find((K) => K.textValue === H)) == null ? void 0 : B.ref.current;
|
|
5086
5086
|
(function K(te) {
|
|
@@ -5106,7 +5106,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), yi = c.forwardRef(
|
|
|
5106
5106
|
onItemLeave: c.useCallback(
|
|
5107
5107
|
(A) => {
|
|
5108
5108
|
var E;
|
|
5109
|
-
M(A) || ((E =
|
|
5109
|
+
M(A) || ((E = R.current) == null || E.focus(), P(null));
|
|
5110
5110
|
},
|
|
5111
5111
|
[M]
|
|
5112
5112
|
),
|
|
@@ -5121,17 +5121,17 @@ var ne = "MenuContent", [Bd, or] = je(ne), yi = c.forwardRef(
|
|
|
5121
5121
|
W.current = A;
|
|
5122
5122
|
}, []),
|
|
5123
5123
|
children: /* @__PURE__ */ h.jsx(G, { ...$, children: /* @__PURE__ */ h.jsx(
|
|
5124
|
-
|
|
5124
|
+
Fs,
|
|
5125
5125
|
{
|
|
5126
5126
|
asChild: !0,
|
|
5127
5127
|
trapped: o,
|
|
5128
5128
|
onMountAutoFocus: z(s, (A) => {
|
|
5129
5129
|
var E;
|
|
5130
|
-
A.preventDefault(), (E =
|
|
5130
|
+
A.preventDefault(), (E = R.current) == null || E.focus({ preventScroll: !0 });
|
|
5131
5131
|
}),
|
|
5132
5132
|
onUnmountAutoFocus: i,
|
|
5133
5133
|
children: /* @__PURE__ */ h.jsx(
|
|
5134
|
-
|
|
5134
|
+
js,
|
|
5135
5135
|
{
|
|
5136
5136
|
asChild: !0,
|
|
5137
5137
|
disableOutsidePointerEvents: a,
|
|
@@ -5141,14 +5141,14 @@ var ne = "MenuContent", [Bd, or] = je(ne), yi = c.forwardRef(
|
|
|
5141
5141
|
onInteractOutside: p,
|
|
5142
5142
|
onDismiss: v,
|
|
5143
5143
|
children: /* @__PURE__ */ h.jsx(
|
|
5144
|
-
|
|
5144
|
+
li,
|
|
5145
5145
|
{
|
|
5146
5146
|
asChild: !0,
|
|
5147
|
-
...
|
|
5147
|
+
...y,
|
|
5148
5148
|
dir: x.dir,
|
|
5149
5149
|
orientation: "vertical",
|
|
5150
5150
|
loop: r,
|
|
5151
|
-
currentTabStopId:
|
|
5151
|
+
currentTabStopId: S,
|
|
5152
5152
|
onCurrentTabStopIdChange: P,
|
|
5153
5153
|
onEntryFocus: z(l, (A) => {
|
|
5154
5154
|
x.isUsingKeyboardRef.current || A.preventDefault();
|
|
@@ -5159,21 +5159,21 @@ var ne = "MenuContent", [Bd, or] = je(ne), yi = c.forwardRef(
|
|
|
5159
5159
|
{
|
|
5160
5160
|
role: "menu",
|
|
5161
5161
|
"aria-orientation": "vertical",
|
|
5162
|
-
"data-state":
|
|
5162
|
+
"data-state": $i(b.open),
|
|
5163
5163
|
"data-radix-menu-content": "",
|
|
5164
5164
|
dir: x.dir,
|
|
5165
|
-
...
|
|
5165
|
+
...w,
|
|
5166
5166
|
...m,
|
|
5167
5167
|
ref: T,
|
|
5168
5168
|
style: { outline: "none", ...m.style },
|
|
5169
5169
|
onKeyDown: z(m.onKeyDown, (A) => {
|
|
5170
5170
|
const _ = A.target.closest("[data-radix-menu-content]") === A.currentTarget, N = A.ctrlKey || A.altKey || A.metaKey, U = A.key.length === 1;
|
|
5171
5171
|
_ && (A.key === "Tab" && A.preventDefault(), !N && U && F(A.key));
|
|
5172
|
-
const Y =
|
|
5172
|
+
const Y = R.current;
|
|
5173
5173
|
if (A.target !== Y || !Nd.includes(A.key)) return;
|
|
5174
5174
|
A.preventDefault();
|
|
5175
5175
|
const Z = C().filter((X) => !X.disabled).map((X) => X.ref.current);
|
|
5176
|
-
|
|
5176
|
+
di.includes(A.key) && Z.reverse(), ef(Z);
|
|
5177
5177
|
}),
|
|
5178
5178
|
onBlur: z(e.onBlur, (A) => {
|
|
5179
5179
|
A.currentTarget.contains(A.target) || (window.clearTimeout(k.current), I.current = "");
|
|
@@ -5200,7 +5200,7 @@ var ne = "MenuContent", [Bd, or] = je(ne), yi = c.forwardRef(
|
|
|
5200
5200
|
);
|
|
5201
5201
|
}
|
|
5202
5202
|
);
|
|
5203
|
-
|
|
5203
|
+
bi.displayName = ne;
|
|
5204
5204
|
var Gd = "MenuGroup", ir = c.forwardRef(
|
|
5205
5205
|
(e, t) => {
|
|
5206
5206
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -5208,24 +5208,24 @@ var Gd = "MenuGroup", ir = c.forwardRef(
|
|
|
5208
5208
|
}
|
|
5209
5209
|
);
|
|
5210
5210
|
ir.displayName = Gd;
|
|
5211
|
-
var Kd = "MenuLabel",
|
|
5211
|
+
var Kd = "MenuLabel", xi = c.forwardRef(
|
|
5212
5212
|
(e, t) => {
|
|
5213
5213
|
const { __scopeMenu: n, ...r } = e;
|
|
5214
5214
|
return /* @__PURE__ */ h.jsx(re.div, { ...r, ref: t });
|
|
5215
5215
|
}
|
|
5216
5216
|
);
|
|
5217
|
-
|
|
5218
|
-
var kt = "MenuItem",
|
|
5217
|
+
xi.displayName = Kd;
|
|
5218
|
+
var kt = "MenuItem", bo = "menu.itemSelect", Vt = c.forwardRef(
|
|
5219
5219
|
(e, t) => {
|
|
5220
5220
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = vt(kt, e.__scopeMenu), a = or(kt, e.__scopeMenu), l = ee(t, s), u = c.useRef(!1), f = () => {
|
|
5221
5221
|
const d = s.current;
|
|
5222
5222
|
if (!n && d) {
|
|
5223
|
-
const p = new CustomEvent(
|
|
5224
|
-
d.addEventListener(
|
|
5223
|
+
const p = new CustomEvent(bo, { bubbles: !0, cancelable: !0 });
|
|
5224
|
+
d.addEventListener(bo, (v) => r == null ? void 0 : r(v), { once: !0 }), $s(d, p), p.defaultPrevented ? u.current = !1 : i.onClose();
|
|
5225
5225
|
}
|
|
5226
5226
|
};
|
|
5227
5227
|
return /* @__PURE__ */ h.jsx(
|
|
5228
|
-
|
|
5228
|
+
yi,
|
|
5229
5229
|
{
|
|
5230
5230
|
...o,
|
|
5231
5231
|
ref: l,
|
|
@@ -5248,9 +5248,9 @@ var kt = "MenuItem", xo = "menu.itemSelect", Vt = c.forwardRef(
|
|
|
5248
5248
|
}
|
|
5249
5249
|
);
|
|
5250
5250
|
Vt.displayName = kt;
|
|
5251
|
-
var
|
|
5251
|
+
var yi = c.forwardRef(
|
|
5252
5252
|
(e, t) => {
|
|
5253
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = or(kt, n), a =
|
|
5253
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = or(kt, n), a = pi(n), l = c.useRef(null), u = ee(t, l), [f, d] = c.useState(!1), [p, v] = c.useState("");
|
|
5254
5254
|
return c.useEffect(() => {
|
|
5255
5255
|
const g = l.current;
|
|
5256
5256
|
g && v((g.textContent ?? "").trim());
|
|
@@ -5260,7 +5260,7 @@ var Ci = c.forwardRef(
|
|
|
5260
5260
|
scope: n,
|
|
5261
5261
|
disabled: r,
|
|
5262
5262
|
textValue: o ?? p,
|
|
5263
|
-
children: /* @__PURE__ */ h.jsx(
|
|
5263
|
+
children: /* @__PURE__ */ h.jsx(ui, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ h.jsx(
|
|
5264
5264
|
re.div,
|
|
5265
5265
|
{
|
|
5266
5266
|
role: "menuitem",
|
|
@@ -5286,10 +5286,10 @@ var Ci = c.forwardRef(
|
|
|
5286
5286
|
}
|
|
5287
5287
|
);
|
|
5288
5288
|
}
|
|
5289
|
-
), Hd = "MenuCheckboxItem",
|
|
5289
|
+
), Hd = "MenuCheckboxItem", wi = c.forwardRef(
|
|
5290
5290
|
(e, t) => {
|
|
5291
5291
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
5292
|
-
return /* @__PURE__ */ h.jsx(
|
|
5292
|
+
return /* @__PURE__ */ h.jsx(Pi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ h.jsx(
|
|
5293
5293
|
Vt,
|
|
5294
5294
|
{
|
|
5295
5295
|
role: "menuitemcheckbox",
|
|
@@ -5306,22 +5306,22 @@ var Ci = c.forwardRef(
|
|
|
5306
5306
|
) });
|
|
5307
5307
|
}
|
|
5308
5308
|
);
|
|
5309
|
-
|
|
5310
|
-
var
|
|
5311
|
-
|
|
5309
|
+
wi.displayName = Hd;
|
|
5310
|
+
var Ci = "MenuRadioGroup", [Yd, Xd] = je(
|
|
5311
|
+
Ci,
|
|
5312
5312
|
{ value: void 0, onValueChange: () => {
|
|
5313
5313
|
} }
|
|
5314
|
-
),
|
|
5314
|
+
), Ei = c.forwardRef(
|
|
5315
5315
|
(e, t) => {
|
|
5316
5316
|
const { value: n, onValueChange: r, ...o } = e, s = xe(r);
|
|
5317
5317
|
return /* @__PURE__ */ h.jsx(Yd, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ h.jsx(ir, { ...o, ref: t }) });
|
|
5318
5318
|
}
|
|
5319
5319
|
);
|
|
5320
|
-
|
|
5321
|
-
var
|
|
5320
|
+
Ei.displayName = Ci;
|
|
5321
|
+
var Si = "MenuRadioItem", Ri = c.forwardRef(
|
|
5322
5322
|
(e, t) => {
|
|
5323
|
-
const { value: n, ...r } = e, o = Xd(
|
|
5324
|
-
return /* @__PURE__ */ h.jsx(
|
|
5323
|
+
const { value: n, ...r } = e, o = Xd(Si, e.__scopeMenu), s = n === o.value;
|
|
5324
|
+
return /* @__PURE__ */ h.jsx(Pi, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ h.jsx(
|
|
5325
5325
|
Vt,
|
|
5326
5326
|
{
|
|
5327
5327
|
role: "menuitemradio",
|
|
@@ -5341,11 +5341,11 @@ var Pi = "MenuRadioItem", Ai = c.forwardRef(
|
|
|
5341
5341
|
) });
|
|
5342
5342
|
}
|
|
5343
5343
|
);
|
|
5344
|
-
|
|
5345
|
-
var ar = "MenuItemIndicator", [
|
|
5344
|
+
Ri.displayName = Si;
|
|
5345
|
+
var ar = "MenuItemIndicator", [Pi, qd] = je(
|
|
5346
5346
|
ar,
|
|
5347
5347
|
{ checked: !1 }
|
|
5348
|
-
),
|
|
5348
|
+
), Ai = c.forwardRef(
|
|
5349
5349
|
(e, t) => {
|
|
5350
5350
|
const { __scopeMenu: n, forceMount: r, ...o } = e, s = qd(ar, n);
|
|
5351
5351
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -5364,8 +5364,8 @@ var ar = "MenuItemIndicator", [_i, qd] = je(
|
|
|
5364
5364
|
);
|
|
5365
5365
|
}
|
|
5366
5366
|
);
|
|
5367
|
-
|
|
5368
|
-
var Zd = "MenuSeparator",
|
|
5367
|
+
Ai.displayName = ar;
|
|
5368
|
+
var Zd = "MenuSeparator", _i = c.forwardRef(
|
|
5369
5369
|
(e, t) => {
|
|
5370
5370
|
const { __scopeMenu: n, ...r } = e;
|
|
5371
5371
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -5379,18 +5379,18 @@ var Zd = "MenuSeparator", Ti = c.forwardRef(
|
|
|
5379
5379
|
);
|
|
5380
5380
|
}
|
|
5381
5381
|
);
|
|
5382
|
-
|
|
5383
|
-
var Jd = "MenuArrow",
|
|
5382
|
+
_i.displayName = Zd;
|
|
5383
|
+
var Jd = "MenuArrow", Oi = c.forwardRef(
|
|
5384
5384
|
(e, t) => {
|
|
5385
5385
|
const { __scopeMenu: n, ...r } = e, o = mt(n);
|
|
5386
5386
|
return /* @__PURE__ */ h.jsx(Qu, { ...o, ...r, ref: t });
|
|
5387
5387
|
}
|
|
5388
5388
|
);
|
|
5389
|
-
|
|
5390
|
-
var cr = "MenuSub", [Qd,
|
|
5389
|
+
Oi.displayName = Jd;
|
|
5390
|
+
var cr = "MenuSub", [Qd, Ti] = je(cr), Mi = (e) => {
|
|
5391
5391
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(cr, t), i = mt(t), [a, l] = c.useState(null), [u, f] = c.useState(null), d = xe(o);
|
|
5392
|
-
return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ h.jsx(
|
|
5393
|
-
|
|
5392
|
+
return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ h.jsx(Js, { ...i, children: /* @__PURE__ */ h.jsx(
|
|
5393
|
+
mi,
|
|
5394
5394
|
{
|
|
5395
5395
|
scope: t,
|
|
5396
5396
|
open: r,
|
|
@@ -5401,8 +5401,8 @@ var cr = "MenuSub", [Qd, Ii] = je(cr), Ni = (e) => {
|
|
|
5401
5401
|
Qd,
|
|
5402
5402
|
{
|
|
5403
5403
|
scope: t,
|
|
5404
|
-
contentId:
|
|
5405
|
-
triggerId:
|
|
5404
|
+
contentId: ho(),
|
|
5405
|
+
triggerId: ho(),
|
|
5406
5406
|
trigger: a,
|
|
5407
5407
|
onTriggerChange: l,
|
|
5408
5408
|
children: n
|
|
@@ -5411,10 +5411,10 @@ var cr = "MenuSub", [Qd, Ii] = je(cr), Ni = (e) => {
|
|
|
5411
5411
|
}
|
|
5412
5412
|
) });
|
|
5413
5413
|
};
|
|
5414
|
-
|
|
5415
|
-
var rt = "MenuSubTrigger",
|
|
5414
|
+
Mi.displayName = cr;
|
|
5415
|
+
var rt = "MenuSubTrigger", Ii = c.forwardRef(
|
|
5416
5416
|
(e, t) => {
|
|
5417
|
-
const n = Te(rt, e.__scopeMenu), r = vt(rt, e.__scopeMenu), o =
|
|
5417
|
+
const n = Te(rt, e.__scopeMenu), r = vt(rt, e.__scopeMenu), o = Ti(rt, e.__scopeMenu), s = or(rt, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, u = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
|
|
5418
5418
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
5419
5419
|
}, []);
|
|
5420
5420
|
return c.useEffect(() => f, [f]), c.useEffect(() => {
|
|
@@ -5423,13 +5423,13 @@ var rt = "MenuSubTrigger", ki = c.forwardRef(
|
|
|
5423
5423
|
window.clearTimeout(d), l(null);
|
|
5424
5424
|
};
|
|
5425
5425
|
}, [a, l]), /* @__PURE__ */ h.jsx(nr, { asChild: !0, ...u, children: /* @__PURE__ */ h.jsx(
|
|
5426
|
-
|
|
5426
|
+
yi,
|
|
5427
5427
|
{
|
|
5428
5428
|
id: o.triggerId,
|
|
5429
5429
|
"aria-haspopup": "menu",
|
|
5430
5430
|
"aria-expanded": n.open,
|
|
5431
5431
|
"aria-controls": o.contentId,
|
|
5432
|
-
"data-state":
|
|
5432
|
+
"data-state": $i(n.open),
|
|
5433
5433
|
...e,
|
|
5434
5434
|
ref: Qn(t, o.onTriggerChange),
|
|
5435
5435
|
onClick: (d) => {
|
|
@@ -5451,16 +5451,16 @@ var rt = "MenuSubTrigger", ki = c.forwardRef(
|
|
|
5451
5451
|
f();
|
|
5452
5452
|
const p = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
5453
5453
|
if (p) {
|
|
5454
|
-
const m = (g = n.content) == null ? void 0 : g.dataset.side, b = m === "right", x = b ? -5 : 5,
|
|
5454
|
+
const m = (g = n.content) == null ? void 0 : g.dataset.side, b = m === "right", x = b ? -5 : 5, w = p[b ? "left" : "right"], y = p[b ? "right" : "left"];
|
|
5455
5455
|
s.onPointerGraceIntentChange({
|
|
5456
5456
|
area: [
|
|
5457
5457
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
5458
5458
|
// consistently within polygon bounds
|
|
5459
5459
|
{ x: d.clientX + x, y: d.clientY },
|
|
5460
|
-
{ x: y, y: p.top },
|
|
5461
5460
|
{ x: w, y: p.top },
|
|
5462
|
-
{ x:
|
|
5463
|
-
{ x: y, y: p.bottom }
|
|
5461
|
+
{ x: y, y: p.top },
|
|
5462
|
+
{ x: y, y: p.bottom },
|
|
5463
|
+
{ x: w, y: p.bottom }
|
|
5464
5464
|
],
|
|
5465
5465
|
side: m
|
|
5466
5466
|
}), window.clearTimeout(a.current), a.current = window.setTimeout(
|
|
@@ -5482,10 +5482,10 @@ var rt = "MenuSubTrigger", ki = c.forwardRef(
|
|
|
5482
5482
|
) });
|
|
5483
5483
|
}
|
|
5484
5484
|
);
|
|
5485
|
-
|
|
5486
|
-
var
|
|
5485
|
+
Ii.displayName = rt;
|
|
5486
|
+
var Ni = "MenuSubContent", ki = c.forwardRef(
|
|
5487
5487
|
(e, t) => {
|
|
5488
|
-
const n =
|
|
5488
|
+
const n = hi(ne, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ne, e.__scopeMenu), i = vt(ne, e.__scopeMenu), a = Ti(Ni, e.__scopeMenu), l = c.useRef(null), u = ee(t, l);
|
|
5489
5489
|
return /* @__PURE__ */ h.jsx(at.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ h.jsx(dt, { present: r || s.open, children: /* @__PURE__ */ h.jsx(at.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ h.jsx(
|
|
5490
5490
|
sr,
|
|
5491
5491
|
{
|
|
@@ -5518,8 +5518,8 @@ var $i = "MenuSubContent", Di = c.forwardRef(
|
|
|
5518
5518
|
) }) }) });
|
|
5519
5519
|
}
|
|
5520
5520
|
);
|
|
5521
|
-
|
|
5522
|
-
function
|
|
5521
|
+
ki.displayName = Ni;
|
|
5522
|
+
function $i(e) {
|
|
5523
5523
|
return e ? "open" : "closed";
|
|
5524
5524
|
}
|
|
5525
5525
|
function $t(e) {
|
|
@@ -5562,18 +5562,18 @@ function of(e, t) {
|
|
|
5562
5562
|
function ct(e) {
|
|
5563
5563
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
5564
5564
|
}
|
|
5565
|
-
var sf =
|
|
5565
|
+
var sf = vi, af = nr, cf = gi, lf = bi, uf = ir, df = xi, ff = Vt, pf = wi, mf = Ei, vf = Ri, hf = Ai, gf = _i, bf = Oi, xf = Mi, yf = Ii, wf = ki, Cf = c[" useId ".trim().toString()] || (() => {
|
|
5566
5566
|
}), Ef = 0;
|
|
5567
|
-
function
|
|
5567
|
+
function xo(e) {
|
|
5568
5568
|
const [t, n] = c.useState(Cf());
|
|
5569
|
-
return
|
|
5569
|
+
return Ns(() => {
|
|
5570
5570
|
n((r) => r ?? String(Ef++));
|
|
5571
5571
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
5572
5572
|
}
|
|
5573
5573
|
var zt = "DropdownMenu", [Sf, Rf] = tu(
|
|
5574
5574
|
zt,
|
|
5575
|
-
[
|
|
5576
|
-
), q =
|
|
5575
|
+
[fi]
|
|
5576
|
+
), q = fi(), [Pf, Di] = Sf(zt), ur = (e) => {
|
|
5577
5577
|
const {
|
|
5578
5578
|
__scopeDropdownMenu: t,
|
|
5579
5579
|
children: n,
|
|
@@ -5582,7 +5582,7 @@ var zt = "DropdownMenu", [Sf, Rf] = tu(
|
|
|
5582
5582
|
defaultOpen: s,
|
|
5583
5583
|
onOpenChange: i,
|
|
5584
5584
|
modal: a = !0
|
|
5585
|
-
} = e, l = q(t), u = c.useRef(null), [f, d] =
|
|
5585
|
+
} = e, l = q(t), u = c.useRef(null), [f, d] = ks({
|
|
5586
5586
|
prop: o,
|
|
5587
5587
|
defaultProp: s ?? !1,
|
|
5588
5588
|
onChange: i,
|
|
@@ -5592,9 +5592,9 @@ var zt = "DropdownMenu", [Sf, Rf] = tu(
|
|
|
5592
5592
|
Pf,
|
|
5593
5593
|
{
|
|
5594
5594
|
scope: t,
|
|
5595
|
-
triggerId:
|
|
5595
|
+
triggerId: xo(),
|
|
5596
5596
|
triggerRef: u,
|
|
5597
|
-
contentId:
|
|
5597
|
+
contentId: xo(),
|
|
5598
5598
|
open: f,
|
|
5599
5599
|
onOpenChange: d,
|
|
5600
5600
|
onOpenToggle: c.useCallback(() => d((p) => !p), [d]),
|
|
@@ -5604,9 +5604,9 @@ var zt = "DropdownMenu", [Sf, Rf] = tu(
|
|
|
5604
5604
|
);
|
|
5605
5605
|
};
|
|
5606
5606
|
ur.displayName = zt;
|
|
5607
|
-
var
|
|
5607
|
+
var ji = "DropdownMenuTrigger", dr = c.forwardRef(
|
|
5608
5608
|
(e, t) => {
|
|
5609
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s =
|
|
5609
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Di(ji, n), i = q(n);
|
|
5610
5610
|
return /* @__PURE__ */ h.jsx(af, { asChild: !0, ...i, children: /* @__PURE__ */ h.jsx(
|
|
5611
5611
|
pu.button,
|
|
5612
5612
|
{
|
|
@@ -5619,7 +5619,7 @@ var Fi = "DropdownMenuTrigger", dr = c.forwardRef(
|
|
|
5619
5619
|
"data-disabled": r ? "" : void 0,
|
|
5620
5620
|
disabled: r,
|
|
5621
5621
|
...o,
|
|
5622
|
-
ref:
|
|
5622
|
+
ref: Is(t, s.triggerRef),
|
|
5623
5623
|
onPointerDown: It(e.onPointerDown, (a) => {
|
|
5624
5624
|
!r && a.button === 0 && a.ctrlKey === !1 && (s.onOpenToggle(), s.open || a.preventDefault());
|
|
5625
5625
|
}),
|
|
@@ -5630,15 +5630,15 @@ var Fi = "DropdownMenuTrigger", dr = c.forwardRef(
|
|
|
5630
5630
|
) });
|
|
5631
5631
|
}
|
|
5632
5632
|
);
|
|
5633
|
-
dr.displayName =
|
|
5633
|
+
dr.displayName = ji;
|
|
5634
5634
|
var Af = "DropdownMenuPortal", fr = (e) => {
|
|
5635
5635
|
const { __scopeDropdownMenu: t, ...n } = e, r = q(t);
|
|
5636
5636
|
return /* @__PURE__ */ h.jsx(cf, { ...r, ...n });
|
|
5637
5637
|
};
|
|
5638
5638
|
fr.displayName = Af;
|
|
5639
|
-
var
|
|
5639
|
+
var Li = "DropdownMenuContent", pr = c.forwardRef(
|
|
5640
5640
|
(e, t) => {
|
|
5641
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = Li
|
|
5641
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = Di(Li, n), s = q(n), i = c.useRef(!1);
|
|
5642
5642
|
return /* @__PURE__ */ h.jsx(
|
|
5643
5643
|
lf,
|
|
5644
5644
|
{
|
|
@@ -5667,7 +5667,7 @@ var Wi = "DropdownMenuContent", pr = c.forwardRef(
|
|
|
5667
5667
|
);
|
|
5668
5668
|
}
|
|
5669
5669
|
);
|
|
5670
|
-
pr.displayName =
|
|
5670
|
+
pr.displayName = Li;
|
|
5671
5671
|
var _f = "DropdownMenuGroup", mr = c.forwardRef(
|
|
5672
5672
|
(e, t) => {
|
|
5673
5673
|
const { __scopeDropdownMenu: n, ...r } = e, o = q(n);
|
|
@@ -5721,8 +5721,8 @@ var Df = "DropdownMenuArrow", Cr = c.forwardRef(
|
|
|
5721
5721
|
}
|
|
5722
5722
|
);
|
|
5723
5723
|
Cr.displayName = Df;
|
|
5724
|
-
var
|
|
5725
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = q(t), [a, l] =
|
|
5724
|
+
var Fi = (e) => {
|
|
5725
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = q(t), [a, l] = ks({
|
|
5726
5726
|
prop: r,
|
|
5727
5727
|
defaultProp: s ?? !1,
|
|
5728
5728
|
onChange: o,
|
|
@@ -5754,7 +5754,7 @@ var Lf = "DropdownMenuSubContent", Sr = c.forwardRef((e, t) => {
|
|
|
5754
5754
|
);
|
|
5755
5755
|
});
|
|
5756
5756
|
Sr.displayName = Lf;
|
|
5757
|
-
var Ff = ur, Wf = dr, Bf = fr, Uf = pr, Vf = mr,
|
|
5757
|
+
var Ff = ur, Wf = dr, Bf = fr, Uf = pr, Vf = mr, Wi = vr, zf = hr, Gf = gr, Kf = br, Bi = xr, Ui = yr, Vi = wr, Hf = Cr, Yf = Fi, zi = Er, Gi = Sr;
|
|
5758
5758
|
const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5759
5759
|
__proto__: null,
|
|
5760
5760
|
Arrow: Hf,
|
|
@@ -5772,22 +5772,22 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5772
5772
|
DropdownMenuRadioGroup: br,
|
|
5773
5773
|
DropdownMenuRadioItem: xr,
|
|
5774
5774
|
DropdownMenuSeparator: wr,
|
|
5775
|
-
DropdownMenuSub:
|
|
5775
|
+
DropdownMenuSub: Fi,
|
|
5776
5776
|
DropdownMenuSubContent: Sr,
|
|
5777
5777
|
DropdownMenuSubTrigger: Er,
|
|
5778
5778
|
DropdownMenuTrigger: dr,
|
|
5779
5779
|
Group: Vf,
|
|
5780
5780
|
Item: zf,
|
|
5781
|
-
ItemIndicator:
|
|
5782
|
-
Label:
|
|
5781
|
+
ItemIndicator: Ui,
|
|
5782
|
+
Label: Wi,
|
|
5783
5783
|
Portal: Bf,
|
|
5784
5784
|
RadioGroup: Kf,
|
|
5785
|
-
RadioItem:
|
|
5785
|
+
RadioItem: Bi,
|
|
5786
5786
|
Root: Ff,
|
|
5787
|
-
Separator:
|
|
5787
|
+
Separator: Vi,
|
|
5788
5788
|
Sub: Yf,
|
|
5789
|
-
SubContent:
|
|
5790
|
-
SubTrigger:
|
|
5789
|
+
SubContent: Gi,
|
|
5790
|
+
SubTrigger: zi,
|
|
5791
5791
|
Trigger: Wf,
|
|
5792
5792
|
createDropdownMenuScope: Rf
|
|
5793
5793
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5798,7 +5798,7 @@ function Gt(e, t) {
|
|
|
5798
5798
|
o = r[s], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
5799
5799
|
return n;
|
|
5800
5800
|
}
|
|
5801
|
-
var qf = ["color"], Zf = /* @__PURE__ */
|
|
5801
|
+
var qf = ["color"], Zf = /* @__PURE__ */ fe(function(e, t) {
|
|
5802
5802
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = Gt(e, qf);
|
|
5803
5803
|
return Se("svg", Object.assign({
|
|
5804
5804
|
width: "15",
|
|
@@ -5814,7 +5814,7 @@ var qf = ["color"], Zf = /* @__PURE__ */ ce(function(e, t) {
|
|
|
5814
5814
|
fillRule: "evenodd",
|
|
5815
5815
|
clipRule: "evenodd"
|
|
5816
5816
|
}));
|
|
5817
|
-
}), Jf = ["color"], Qf = /* @__PURE__ */
|
|
5817
|
+
}), Jf = ["color"], Qf = /* @__PURE__ */ fe(function(e, t) {
|
|
5818
5818
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = Gt(e, Jf);
|
|
5819
5819
|
return Se("svg", Object.assign({
|
|
5820
5820
|
width: "15",
|
|
@@ -5830,7 +5830,7 @@ var qf = ["color"], Zf = /* @__PURE__ */ ce(function(e, t) {
|
|
|
5830
5830
|
fillRule: "evenodd",
|
|
5831
5831
|
clipRule: "evenodd"
|
|
5832
5832
|
}));
|
|
5833
|
-
}), ep = ["color"],
|
|
5833
|
+
}), ep = ["color"], Wm = /* @__PURE__ */ fe(function(e, t) {
|
|
5834
5834
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = Gt(e, ep);
|
|
5835
5835
|
return Se("svg", Object.assign({
|
|
5836
5836
|
width: "15",
|
|
@@ -5846,7 +5846,7 @@ var qf = ["color"], Zf = /* @__PURE__ */ ce(function(e, t) {
|
|
|
5846
5846
|
fillRule: "evenodd",
|
|
5847
5847
|
clipRule: "evenodd"
|
|
5848
5848
|
}));
|
|
5849
|
-
}), tp = ["color"], np = /* @__PURE__ */
|
|
5849
|
+
}), tp = ["color"], np = /* @__PURE__ */ fe(function(e, t) {
|
|
5850
5850
|
var n = e.color, r = n === void 0 ? "currentColor" : n, o = Gt(e, tp);
|
|
5851
5851
|
return Se("svg", Object.assign({
|
|
5852
5852
|
width: "15",
|
|
@@ -5862,10 +5862,10 @@ var qf = ["color"], Zf = /* @__PURE__ */ ce(function(e, t) {
|
|
|
5862
5862
|
}));
|
|
5863
5863
|
});
|
|
5864
5864
|
const {
|
|
5865
|
-
CheckboxItem:
|
|
5866
|
-
Content:
|
|
5865
|
+
CheckboxItem: Ki,
|
|
5866
|
+
Content: Hi,
|
|
5867
5867
|
SubContent: rp,
|
|
5868
|
-
Item:
|
|
5868
|
+
Item: Yi,
|
|
5869
5869
|
ItemIndicator: op,
|
|
5870
5870
|
Portal: sp,
|
|
5871
5871
|
Root: ip,
|
|
@@ -5874,8 +5874,8 @@ const {
|
|
|
5874
5874
|
RadioItem: lp,
|
|
5875
5875
|
Label: up,
|
|
5876
5876
|
Separator: dp
|
|
5877
|
-
} = Xf,
|
|
5878
|
-
|
|
5877
|
+
} = Xf, Bm = ip, Um = ap, fp = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ h.jsxs(
|
|
5878
|
+
zi,
|
|
5879
5879
|
{
|
|
5880
5880
|
ref: o,
|
|
5881
5881
|
className: O(
|
|
@@ -5892,7 +5892,7 @@ const {
|
|
|
5892
5892
|
));
|
|
5893
5893
|
fp.displayName = cp.displayName;
|
|
5894
5894
|
const pp = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ h.jsx(sp, { children: /* @__PURE__ */ h.jsx(
|
|
5895
|
-
|
|
5895
|
+
Hi,
|
|
5896
5896
|
{
|
|
5897
5897
|
ref: r,
|
|
5898
5898
|
sideOffset: t,
|
|
@@ -5904,9 +5904,9 @@ const pp = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
5904
5904
|
...n
|
|
5905
5905
|
}
|
|
5906
5906
|
) }));
|
|
5907
|
-
pp.displayName =
|
|
5907
|
+
pp.displayName = Hi.displayName;
|
|
5908
5908
|
const mp = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
|
|
5909
|
-
|
|
5909
|
+
Gi,
|
|
5910
5910
|
{
|
|
5911
5911
|
ref: n,
|
|
5912
5912
|
className: O(
|
|
@@ -5918,7 +5918,7 @@ const mp = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
|
|
|
5918
5918
|
));
|
|
5919
5919
|
mp.displayName = rp.displayName;
|
|
5920
5920
|
const vp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ h.jsx(
|
|
5921
|
-
|
|
5921
|
+
Yi,
|
|
5922
5922
|
{
|
|
5923
5923
|
ref: r,
|
|
5924
5924
|
className: O(
|
|
@@ -5929,9 +5929,9 @@ const vp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
5929
5929
|
...n
|
|
5930
5930
|
}
|
|
5931
5931
|
));
|
|
5932
|
-
vp.displayName =
|
|
5932
|
+
vp.displayName = Yi.displayName;
|
|
5933
5933
|
const hp = c.forwardRef(({ checked: e, children: t, className: n, ...r }, o) => /* @__PURE__ */ h.jsxs(
|
|
5934
|
-
|
|
5934
|
+
Ki,
|
|
5935
5935
|
{
|
|
5936
5936
|
ref: o,
|
|
5937
5937
|
className: O(
|
|
@@ -5946,9 +5946,9 @@ const hp = c.forwardRef(({ checked: e, children: t, className: n, ...r }, o) =>
|
|
|
5946
5946
|
]
|
|
5947
5947
|
}
|
|
5948
5948
|
));
|
|
5949
|
-
hp.displayName =
|
|
5949
|
+
hp.displayName = Ki.displayName;
|
|
5950
5950
|
const gp = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h.jsxs(
|
|
5951
|
-
|
|
5951
|
+
Bi,
|
|
5952
5952
|
{
|
|
5953
5953
|
ref: r,
|
|
5954
5954
|
className: O(
|
|
@@ -5957,14 +5957,14 @@ const gp = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
5957
5957
|
),
|
|
5958
5958
|
...n,
|
|
5959
5959
|
children: [
|
|
5960
|
-
/* @__PURE__ */ h.jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ h.jsx(
|
|
5960
|
+
/* @__PURE__ */ h.jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ h.jsx(Ui, { children: /* @__PURE__ */ h.jsx(np, { className: "size-2 fill-current" }) }) }),
|
|
5961
5961
|
t
|
|
5962
5962
|
]
|
|
5963
5963
|
}
|
|
5964
5964
|
));
|
|
5965
5965
|
gp.displayName = lp.displayName;
|
|
5966
5966
|
const bp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ h.jsx(
|
|
5967
|
-
|
|
5967
|
+
Wi,
|
|
5968
5968
|
{
|
|
5969
5969
|
ref: r,
|
|
5970
5970
|
className: O(
|
|
@@ -5977,7 +5977,7 @@ const bp = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
5977
5977
|
));
|
|
5978
5978
|
bp.displayName = up.displayName;
|
|
5979
5979
|
const xp = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
|
|
5980
|
-
|
|
5980
|
+
Vi,
|
|
5981
5981
|
{
|
|
5982
5982
|
ref: n,
|
|
5983
5983
|
className: O(
|
|
@@ -6044,40 +6044,40 @@ function wp(...e) {
|
|
|
6044
6044
|
};
|
|
6045
6045
|
return n.scopeName = t.scopeName, n;
|
|
6046
6046
|
}
|
|
6047
|
-
function
|
|
6047
|
+
function yo(e, t) {
|
|
6048
6048
|
if (typeof e == "function")
|
|
6049
6049
|
return e(t);
|
|
6050
6050
|
e != null && (e.current = t);
|
|
6051
6051
|
}
|
|
6052
|
-
function
|
|
6052
|
+
function Xi(...e) {
|
|
6053
6053
|
return (t) => {
|
|
6054
6054
|
let n = !1;
|
|
6055
6055
|
const r = e.map((o) => {
|
|
6056
|
-
const s =
|
|
6056
|
+
const s = yo(o, t);
|
|
6057
6057
|
return !n && typeof s == "function" && (n = !0), s;
|
|
6058
6058
|
});
|
|
6059
6059
|
if (n)
|
|
6060
6060
|
return () => {
|
|
6061
6061
|
for (let o = 0; o < r.length; o++) {
|
|
6062
6062
|
const s = r[o];
|
|
6063
|
-
typeof s == "function" ? s() :
|
|
6063
|
+
typeof s == "function" ? s() : yo(e[o], null);
|
|
6064
6064
|
}
|
|
6065
6065
|
};
|
|
6066
6066
|
};
|
|
6067
6067
|
}
|
|
6068
6068
|
function Cp(...e) {
|
|
6069
|
-
return c.useCallback(
|
|
6069
|
+
return c.useCallback(Xi(...e), e);
|
|
6070
6070
|
}
|
|
6071
6071
|
var Dt = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
6072
6072
|
};
|
|
6073
6073
|
function Ep(e, t) {
|
|
6074
6074
|
return c.useReducer((n, r) => t[n][r] ?? n, e);
|
|
6075
6075
|
}
|
|
6076
|
-
var
|
|
6076
|
+
var qi = (e) => {
|
|
6077
6077
|
const { present: t, children: n } = e, r = Sp(t), o = typeof n == "function" ? n({ present: r.isPresent }) : c.Children.only(n), s = Cp(r.ref, Rp(o));
|
|
6078
6078
|
return typeof n == "function" || r.isPresent ? c.cloneElement(o, { ref: s }) : null;
|
|
6079
6079
|
};
|
|
6080
|
-
|
|
6080
|
+
qi.displayName = "Presence";
|
|
6081
6081
|
function Sp(e) {
|
|
6082
6082
|
const [t, n] = c.useState(), r = c.useRef(null), o = c.useRef(e), s = c.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = Ep(i, {
|
|
6083
6083
|
mounted: {
|
|
@@ -6153,7 +6153,7 @@ function Ap(e) {
|
|
|
6153
6153
|
const { children: o, ...s } = n;
|
|
6154
6154
|
if (c.isValidElement(o)) {
|
|
6155
6155
|
const i = Mp(o), a = Tp(s, o.props);
|
|
6156
|
-
return o.type !== c.Fragment && (a.ref = r ?
|
|
6156
|
+
return o.type !== c.Fragment && (a.ref = r ? Xi(r, i) : i), c.cloneElement(o, a);
|
|
6157
6157
|
}
|
|
6158
6158
|
return c.Children.count(o) > 1 ? c.Children.only(null) : null;
|
|
6159
6159
|
});
|
|
@@ -6267,7 +6267,7 @@ function Bp(e) {
|
|
|
6267
6267
|
}
|
|
6268
6268
|
var Ht = "Tabs", [Up, Vp] = yp(Ht, [
|
|
6269
6269
|
Ut
|
|
6270
|
-
]),
|
|
6270
|
+
]), Zi = Ut(), [zp, Rr] = Up(Ht), Pr = c.forwardRef(
|
|
6271
6271
|
(e, t) => {
|
|
6272
6272
|
const {
|
|
6273
6273
|
__scopeTabs: n,
|
|
@@ -6308,11 +6308,11 @@ var Ht = "Tabs", [Up, Vp] = yp(Ht, [
|
|
|
6308
6308
|
}
|
|
6309
6309
|
);
|
|
6310
6310
|
Pr.displayName = Ht;
|
|
6311
|
-
var
|
|
6311
|
+
var Ji = "TabsList", Ar = c.forwardRef(
|
|
6312
6312
|
(e, t) => {
|
|
6313
|
-
const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Rr(
|
|
6313
|
+
const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Rr(Ji, n), i = Zi(n);
|
|
6314
6314
|
return /* @__PURE__ */ h.jsx(
|
|
6315
|
-
|
|
6315
|
+
li,
|
|
6316
6316
|
{
|
|
6317
6317
|
asChild: !0,
|
|
6318
6318
|
...i,
|
|
@@ -6332,12 +6332,12 @@ var ea = "TabsList", Ar = c.forwardRef(
|
|
|
6332
6332
|
);
|
|
6333
6333
|
}
|
|
6334
6334
|
);
|
|
6335
|
-
Ar.displayName =
|
|
6336
|
-
var
|
|
6335
|
+
Ar.displayName = Ji;
|
|
6336
|
+
var Qi = "TabsTrigger", _r = c.forwardRef(
|
|
6337
6337
|
(e, t) => {
|
|
6338
|
-
const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = Rr(
|
|
6338
|
+
const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, i = Rr(Qi, n), a = Zi(n), l = ta(i.baseId, r), u = na(i.baseId, r), f = r === i.value;
|
|
6339
6339
|
return /* @__PURE__ */ h.jsx(
|
|
6340
|
-
|
|
6340
|
+
ui,
|
|
6341
6341
|
{
|
|
6342
6342
|
asChild: !0,
|
|
6343
6343
|
...a,
|
|
@@ -6372,14 +6372,14 @@ var ta = "TabsTrigger", _r = c.forwardRef(
|
|
|
6372
6372
|
);
|
|
6373
6373
|
}
|
|
6374
6374
|
);
|
|
6375
|
-
_r.displayName =
|
|
6376
|
-
var
|
|
6375
|
+
_r.displayName = Qi;
|
|
6376
|
+
var ea = "TabsContent", Or = c.forwardRef(
|
|
6377
6377
|
(e, t) => {
|
|
6378
|
-
const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = Rr(
|
|
6378
|
+
const { __scopeTabs: n, value: r, forceMount: o, children: s, ...i } = e, a = Rr(ea, n), l = ta(a.baseId, r), u = na(a.baseId, r), f = r === a.value, d = c.useRef(f);
|
|
6379
6379
|
return c.useEffect(() => {
|
|
6380
6380
|
const p = requestAnimationFrame(() => d.current = !1);
|
|
6381
6381
|
return () => cancelAnimationFrame(p);
|
|
6382
|
-
}, []), /* @__PURE__ */ h.jsx(
|
|
6382
|
+
}, []), /* @__PURE__ */ h.jsx(qi, { present: o || f, children: ({ present: p }) => /* @__PURE__ */ h.jsx(
|
|
6383
6383
|
Kt.div,
|
|
6384
6384
|
{
|
|
6385
6385
|
"data-state": f ? "active" : "inactive",
|
|
@@ -6400,15 +6400,15 @@ var na = "TabsContent", Or = c.forwardRef(
|
|
|
6400
6400
|
) });
|
|
6401
6401
|
}
|
|
6402
6402
|
);
|
|
6403
|
-
Or.displayName =
|
|
6404
|
-
function
|
|
6403
|
+
Or.displayName = ea;
|
|
6404
|
+
function ta(e, t) {
|
|
6405
6405
|
return `${e}-trigger-${t}`;
|
|
6406
6406
|
}
|
|
6407
|
-
function
|
|
6407
|
+
function na(e, t) {
|
|
6408
6408
|
return `${e}-content-${t}`;
|
|
6409
6409
|
}
|
|
6410
6410
|
var Gp = Pr, Kp = Ar, Hp = _r, Yp = Or;
|
|
6411
|
-
const
|
|
6411
|
+
const Vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6412
6412
|
__proto__: null,
|
|
6413
6413
|
Content: Yp,
|
|
6414
6414
|
List: Kp,
|
|
@@ -6522,7 +6522,7 @@ const Ve = {
|
|
|
6522
6522
|
sender: "text-primary-10 text-sm font-sans font-medium",
|
|
6523
6523
|
message: "text-dark-30 text-xs font-sans font-medium",
|
|
6524
6524
|
timestamp: "text-xs text-dark-40/50 leading-none"
|
|
6525
|
-
}, qp =
|
|
6525
|
+
}, qp = fe(
|
|
6526
6526
|
({ checked: e, disabled: t, id: n, onChange: r, size: o = "large", className: s, ...i }, a) => {
|
|
6527
6527
|
const l = ye.sizes[o];
|
|
6528
6528
|
return /* @__PURE__ */ h.jsxs(
|
|
@@ -6591,18 +6591,18 @@ const ye = {
|
|
|
6591
6591
|
label: "size-5 min-w-5"
|
|
6592
6592
|
}
|
|
6593
6593
|
}
|
|
6594
|
-
},
|
|
6594
|
+
}, zm = ({
|
|
6595
6595
|
text: e,
|
|
6596
6596
|
variant: t = "default",
|
|
6597
6597
|
className: n
|
|
6598
6598
|
}) => /* @__PURE__ */ h.jsx(
|
|
6599
6599
|
he,
|
|
6600
6600
|
{
|
|
6601
|
-
className: O(
|
|
6601
|
+
className: O(wo.base, wo.status[t], n),
|
|
6602
6602
|
"data-testid": "status",
|
|
6603
6603
|
children: e
|
|
6604
6604
|
}
|
|
6605
|
-
),
|
|
6605
|
+
), wo = {
|
|
6606
6606
|
base: "inline-flex rounded-[50px] cursor-pointer px-2.5 py-1.5 text-dark-40/[.80] text-xs font-medium leading-none",
|
|
6607
6607
|
status: {
|
|
6608
6608
|
success: "bg-success-30",
|
|
@@ -6629,27 +6629,27 @@ var Tr = "Switch", [Jp, Qp] = jt(Tr), [em, tm] = Jp(Tr), Mr = c.forwardRef(
|
|
|
6629
6629
|
onCheckedChange: u,
|
|
6630
6630
|
form: f,
|
|
6631
6631
|
...d
|
|
6632
|
-
} = e, [p, v] = c.useState(null), g = se(t, (
|
|
6632
|
+
} = e, [p, v] = c.useState(null), g = se(t, (y) => v(y)), m = c.useRef(!1), b = p ? f || !!p.closest("form") : !0, [x = !1, w] = To({
|
|
6633
6633
|
prop: o,
|
|
6634
6634
|
defaultProp: s,
|
|
6635
6635
|
onChange: u
|
|
6636
6636
|
});
|
|
6637
6637
|
return /* @__PURE__ */ h.jsxs(em, { scope: n, checked: x, disabled: a, children: [
|
|
6638
6638
|
/* @__PURE__ */ h.jsx(
|
|
6639
|
-
|
|
6639
|
+
ce.button,
|
|
6640
6640
|
{
|
|
6641
6641
|
type: "button",
|
|
6642
6642
|
role: "switch",
|
|
6643
6643
|
"aria-checked": x,
|
|
6644
6644
|
"aria-required": i,
|
|
6645
|
-
"data-state":
|
|
6645
|
+
"data-state": oa(x),
|
|
6646
6646
|
"data-disabled": a ? "" : void 0,
|
|
6647
6647
|
disabled: a,
|
|
6648
6648
|
value: l,
|
|
6649
6649
|
...d,
|
|
6650
6650
|
ref: g,
|
|
6651
|
-
onClick: ve(e.onClick, (
|
|
6652
|
-
|
|
6651
|
+
onClick: ve(e.onClick, (y) => {
|
|
6652
|
+
w((C) => !C), b && (m.current = y.isPropagationStopped(), m.current || y.stopPropagation());
|
|
6653
6653
|
})
|
|
6654
6654
|
}
|
|
6655
6655
|
),
|
|
@@ -6671,13 +6671,13 @@ var Tr = "Switch", [Jp, Qp] = jt(Tr), [em, tm] = Jp(Tr), Mr = c.forwardRef(
|
|
|
6671
6671
|
}
|
|
6672
6672
|
);
|
|
6673
6673
|
Mr.displayName = Tr;
|
|
6674
|
-
var
|
|
6674
|
+
var ra = "SwitchThumb", Ir = c.forwardRef(
|
|
6675
6675
|
(e, t) => {
|
|
6676
|
-
const { __scopeSwitch: n, ...r } = e, o = tm(
|
|
6676
|
+
const { __scopeSwitch: n, ...r } = e, o = tm(ra, n);
|
|
6677
6677
|
return /* @__PURE__ */ h.jsx(
|
|
6678
|
-
|
|
6678
|
+
ce.span,
|
|
6679
6679
|
{
|
|
6680
|
-
"data-state":
|
|
6680
|
+
"data-state": oa(o.checked),
|
|
6681
6681
|
"data-disabled": o.disabled ? "" : void 0,
|
|
6682
6682
|
...r,
|
|
6683
6683
|
ref: t
|
|
@@ -6685,9 +6685,9 @@ var sa = "SwitchThumb", Ir = c.forwardRef(
|
|
|
6685
6685
|
);
|
|
6686
6686
|
}
|
|
6687
6687
|
);
|
|
6688
|
-
Ir.displayName =
|
|
6688
|
+
Ir.displayName = ra;
|
|
6689
6689
|
var nm = (e) => {
|
|
6690
|
-
const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = c.useRef(null), i = Zp(n), a =
|
|
6690
|
+
const { control: t, checked: n, bubbles: r = !0, ...o } = e, s = c.useRef(null), i = Zp(n), a = ns(t);
|
|
6691
6691
|
return c.useEffect(() => {
|
|
6692
6692
|
const l = s.current, u = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(u, "checked").set;
|
|
6693
6693
|
if (i !== n && d) {
|
|
@@ -6714,7 +6714,7 @@ var nm = (e) => {
|
|
|
6714
6714
|
}
|
|
6715
6715
|
);
|
|
6716
6716
|
};
|
|
6717
|
-
function
|
|
6717
|
+
function oa(e) {
|
|
6718
6718
|
return e ? "checked" : "unchecked";
|
|
6719
6719
|
}
|
|
6720
6720
|
var rm = Mr, om = Ir;
|
|
@@ -6755,7 +6755,7 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6755
6755
|
active: "fill-white",
|
|
6756
6756
|
disabled: "fill-dark-30/25"
|
|
6757
6757
|
}
|
|
6758
|
-
},
|
|
6758
|
+
}, Gm = fe(
|
|
6759
6759
|
({
|
|
6760
6760
|
variant: e = "small",
|
|
6761
6761
|
active: t,
|
|
@@ -6810,7 +6810,7 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6810
6810
|
}) => {
|
|
6811
6811
|
const o = n;
|
|
6812
6812
|
return /* @__PURE__ */ h.jsx(o, { ...r, className: O(t), children: e });
|
|
6813
|
-
},
|
|
6813
|
+
}, Km = c.forwardRef(
|
|
6814
6814
|
({
|
|
6815
6815
|
className: e = "",
|
|
6816
6816
|
disabled: t,
|
|
@@ -6822,7 +6822,7 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6822
6822
|
maxLength: a,
|
|
6823
6823
|
...l
|
|
6824
6824
|
}, u) => {
|
|
6825
|
-
var x,
|
|
6825
|
+
var x, w;
|
|
6826
6826
|
const f = we.base, d = we.state, p = we.disabled, v = we.styles, g = we.maxLength, m = we.message;
|
|
6827
6827
|
return /* @__PURE__ */ h.jsxs("div", { className: we.root, children: [
|
|
6828
6828
|
/* @__PURE__ */ h.jsx(
|
|
@@ -6857,7 +6857,7 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6857
6857
|
String(l.value).length === a ? "bg-danger-10 text-sidebar-10" : "bg-transparent"
|
|
6858
6858
|
),
|
|
6859
6859
|
children: [
|
|
6860
|
-
(
|
|
6860
|
+
(w = (x = l.value || "") == null ? void 0 : x.toString()) == null ? void 0 : w.length,
|
|
6861
6861
|
"/",
|
|
6862
6862
|
a
|
|
6863
6863
|
]
|
|
@@ -6891,7 +6891,7 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6891
6891
|
success: "text-success-10 text-xs text-left",
|
|
6892
6892
|
info: "text-info-10 text-xs text-left"
|
|
6893
6893
|
}
|
|
6894
|
-
}, { Root: im, Thumb: am } = sm,
|
|
6894
|
+
}, { Root: im, Thumb: am } = sm, Hm = c.forwardRef(
|
|
6895
6895
|
({ label: e = "", labelPosition: t = "right", disabled: n, classNames: r, ...o }, s) => /* @__PURE__ */ h.jsxs(
|
|
6896
6896
|
"div",
|
|
6897
6897
|
{
|
|
@@ -6935,130 +6935,132 @@ const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6935
6935
|
base: "inline-flex h-8 w-[52px] shrink-0 p-1 cursor-pointer items-center rounded-full border border-success-20 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-success-20 data-[state=unchecked]:bg-secondary-10/[.08] data-[state=unchecked]:border-secondary-10/[.30] disabled:data-[state=unchecked]:bg-secondary-10/[.15] disabled:data-[state=unchecked]:border-transparent",
|
|
6936
6936
|
label: "mr-2 text-dark-30 text-sm",
|
|
6937
6937
|
thumb: "pointer-events-none block size-6 transition-transform rounded-full ring-0 data-[state=checked]:translate-x-3/4 data-[state=unchecked]:translate-x-0 data-[state=checked]:bg-white data-[state=unchecked]:bg-secondary-10/[.30]"
|
|
6938
|
-
},
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
)
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6938
|
+
}, Ym = ({
|
|
6939
|
+
classNames: e,
|
|
6940
|
+
disabled: t,
|
|
6941
|
+
message: n,
|
|
6942
|
+
onChange: r,
|
|
6943
|
+
options: o,
|
|
6944
|
+
placeholder: s = "Choose",
|
|
6945
|
+
value: i,
|
|
6946
|
+
isDotable: a
|
|
6947
|
+
}) => {
|
|
6948
|
+
const [l, u] = Po(!1), d = va(o)(i), p = pa(null), v = Ne.base, g = Ne.options, m = Ne.message.base, b = Ne.message.styles, x = Ne.disabled.trigger, w = Ne.disabled.triggerText, y = ({
|
|
6949
|
+
className: S,
|
|
6950
|
+
text: P = ""
|
|
6951
|
+
}) => /* @__PURE__ */ h.jsx(
|
|
6952
|
+
he,
|
|
6953
|
+
{
|
|
6954
|
+
className: O(
|
|
6955
|
+
v.placeholder,
|
|
6956
|
+
t && w,
|
|
6957
|
+
S
|
|
6958
|
+
),
|
|
6959
|
+
children: P
|
|
6960
|
+
}
|
|
6961
|
+
), C = (S) => {
|
|
6962
|
+
if (S.preventDefault(), i && p.current) {
|
|
6963
|
+
const P = p.current.querySelector(
|
|
6964
|
+
`[data-value="${i}"]`
|
|
6965
|
+
);
|
|
6966
|
+
P && P.scrollIntoView({
|
|
6967
|
+
block: "center",
|
|
6968
|
+
behavior: "auto"
|
|
6969
|
+
});
|
|
6970
|
+
}
|
|
6971
|
+
};
|
|
6972
|
+
return /* @__PURE__ */ h.jsxs("div", { className: O("w-full", e == null ? void 0 : e.parent), children: [
|
|
6973
|
+
/* @__PURE__ */ h.jsxs(Jl, { open: l, onOpenChange: u, children: [
|
|
6974
|
+
/* @__PURE__ */ h.jsxs(
|
|
6975
|
+
Ql,
|
|
6976
|
+
{
|
|
6977
|
+
role: "listbox",
|
|
6978
|
+
disabled: t,
|
|
6979
|
+
className: O(
|
|
6980
|
+
v.trigger,
|
|
6981
|
+
t && x,
|
|
6982
|
+
!l && n && b[n == null ? void 0 : n.type].trigger,
|
|
6983
|
+
l && v.focus,
|
|
6984
|
+
!l && !t && v.hover,
|
|
6985
|
+
e == null ? void 0 : e.trigger
|
|
6986
|
+
),
|
|
6987
|
+
children: [
|
|
6988
|
+
i ? /* @__PURE__ */ h.jsx(
|
|
6989
|
+
y,
|
|
6990
|
+
{
|
|
6991
|
+
text: d == null ? void 0 : d.label,
|
|
6992
|
+
className: O(
|
|
6993
|
+
v.selected,
|
|
6994
|
+
t && Ne.disabled.selectedDisabled,
|
|
6995
|
+
e == null ? void 0 : e.selected
|
|
6996
|
+
)
|
|
6997
|
+
}
|
|
6998
|
+
) : /* @__PURE__ */ h.jsx(
|
|
6999
|
+
y,
|
|
7000
|
+
{
|
|
7001
|
+
text: s,
|
|
7002
|
+
className: e == null ? void 0 : e.placeholder
|
|
7003
|
+
}
|
|
6982
7004
|
),
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7005
|
+
/* @__PURE__ */ h.jsx(
|
|
7006
|
+
ya,
|
|
7007
|
+
{
|
|
7008
|
+
className: O(
|
|
7009
|
+
v.icon,
|
|
7010
|
+
t && v.iconDisabled,
|
|
7011
|
+
l && "rotate-180"
|
|
7012
|
+
)
|
|
7013
|
+
}
|
|
7014
|
+
)
|
|
7015
|
+
]
|
|
7016
|
+
}
|
|
7017
|
+
),
|
|
7018
|
+
/* @__PURE__ */ h.jsx(
|
|
7019
|
+
eu,
|
|
7020
|
+
{
|
|
7021
|
+
className: O(g.content, e == null ? void 0 : e.content),
|
|
7022
|
+
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
7023
|
+
onOpenAutoFocus: C,
|
|
7024
|
+
ref: p,
|
|
7025
|
+
children: o && (o == null ? void 0 : o.map((S) => /* @__PURE__ */ h.jsx(
|
|
7026
|
+
"div",
|
|
7027
|
+
{
|
|
7028
|
+
"data-value": S.value,
|
|
7029
|
+
className: O(g.items),
|
|
7030
|
+
onClick: (P) => {
|
|
7031
|
+
P.preventDefault(), P.stopPropagation(), r(S.value), u(!1);
|
|
7032
|
+
},
|
|
7033
|
+
children: /* @__PURE__ */ h.jsx(
|
|
7034
|
+
he,
|
|
7003
7035
|
{
|
|
7004
7036
|
className: O(
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7037
|
+
g.itemsText,
|
|
7038
|
+
!a && i === S.value && g.active,
|
|
7039
|
+
a && g.dot,
|
|
7040
|
+
a && i === S.value && "before:bg-dark-10 !font-bold"
|
|
7041
|
+
),
|
|
7042
|
+
children: S.label
|
|
7009
7043
|
}
|
|
7010
7044
|
)
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
/* @__PURE__ */ h.jsx("div", { ref: g, children: /* @__PURE__ */ h.jsx(
|
|
7015
|
-
eu,
|
|
7016
|
-
{
|
|
7017
|
-
container: g.current,
|
|
7018
|
-
className: O(b.content, e == null ? void 0 : e.content),
|
|
7019
|
-
style: { minWidth: "var(--radix-popper-anchor-width)" },
|
|
7020
|
-
ref: l,
|
|
7021
|
-
children: o && (o == null ? void 0 : o.map((P) => /* @__PURE__ */ h.jsx(
|
|
7022
|
-
"div",
|
|
7023
|
-
{
|
|
7024
|
-
className: O(b.items),
|
|
7025
|
-
onClick: (S) => {
|
|
7026
|
-
S.preventDefault(), S.stopPropagation(), r(P.value), f(!1);
|
|
7027
|
-
},
|
|
7028
|
-
children: /* @__PURE__ */ h.jsx(
|
|
7029
|
-
he,
|
|
7030
|
-
{
|
|
7031
|
-
className: O(
|
|
7032
|
-
b.itemsText,
|
|
7033
|
-
!a && i === P.value && b.active,
|
|
7034
|
-
a && b.dot,
|
|
7035
|
-
a && i === P.value && "before:bg-dark-10 !font-bold"
|
|
7036
|
-
),
|
|
7037
|
-
children: P.label
|
|
7038
|
-
}
|
|
7039
|
-
)
|
|
7040
|
-
},
|
|
7041
|
-
P.value
|
|
7042
|
-
)))
|
|
7043
|
-
}
|
|
7044
|
-
) })
|
|
7045
|
-
] }),
|
|
7046
|
-
n && /* @__PURE__ */ h.jsx(
|
|
7047
|
-
he,
|
|
7048
|
-
{
|
|
7049
|
-
variant: "span",
|
|
7050
|
-
className: O(
|
|
7051
|
-
x,
|
|
7052
|
-
y[n.type].message
|
|
7053
|
-
),
|
|
7054
|
-
children: n.text
|
|
7045
|
+
},
|
|
7046
|
+
S.value
|
|
7047
|
+
)))
|
|
7055
7048
|
}
|
|
7056
7049
|
)
|
|
7057
|
-
] })
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7050
|
+
] }),
|
|
7051
|
+
n && /* @__PURE__ */ h.jsx(
|
|
7052
|
+
he,
|
|
7053
|
+
{
|
|
7054
|
+
variant: "span",
|
|
7055
|
+
className: O(
|
|
7056
|
+
m,
|
|
7057
|
+
b[n.type].message
|
|
7058
|
+
),
|
|
7059
|
+
children: n.text
|
|
7060
|
+
}
|
|
7061
|
+
)
|
|
7062
|
+
] });
|
|
7063
|
+
}, Ne = {
|
|
7062
7064
|
container: "w-full flex items-start flex-col gap-1.5",
|
|
7063
7065
|
base: {
|
|
7064
7066
|
icon: "text-dark-40 fill-dark-40",
|
|
@@ -7101,7 +7103,7 @@ const Ne = {
|
|
|
7101
7103
|
}
|
|
7102
7104
|
}
|
|
7103
7105
|
};
|
|
7104
|
-
function
|
|
7106
|
+
function cm(e, t = []) {
|
|
7105
7107
|
let n = [];
|
|
7106
7108
|
function r(s, i) {
|
|
7107
7109
|
const a = c.createContext(i), l = n.length;
|
|
@@ -7131,9 +7133,9 @@ function lm(e, t = []) {
|
|
|
7131
7133
|
);
|
|
7132
7134
|
};
|
|
7133
7135
|
};
|
|
7134
|
-
return o.scopeName = e, [r,
|
|
7136
|
+
return o.scopeName = e, [r, lm(o, ...t)];
|
|
7135
7137
|
}
|
|
7136
|
-
function
|
|
7138
|
+
function lm(...e) {
|
|
7137
7139
|
const t = e[0];
|
|
7138
7140
|
if (e.length === 1) return t;
|
|
7139
7141
|
const n = () => {
|
|
@@ -7151,7 +7153,7 @@ function um(...e) {
|
|
|
7151
7153
|
};
|
|
7152
7154
|
return n.scopeName = t.scopeName, n;
|
|
7153
7155
|
}
|
|
7154
|
-
function
|
|
7156
|
+
function um(e) {
|
|
7155
7157
|
const t = c.useRef(e);
|
|
7156
7158
|
return c.useEffect(() => {
|
|
7157
7159
|
t.current = e;
|
|
@@ -7162,31 +7164,31 @@ function dm(e) {
|
|
|
7162
7164
|
}
|
|
7163
7165
|
var _n = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
7164
7166
|
};
|
|
7165
|
-
function
|
|
7167
|
+
function Co(e, t) {
|
|
7166
7168
|
if (typeof e == "function")
|
|
7167
7169
|
return e(t);
|
|
7168
7170
|
e != null && (e.current = t);
|
|
7169
7171
|
}
|
|
7170
|
-
function
|
|
7172
|
+
function dm(...e) {
|
|
7171
7173
|
return (t) => {
|
|
7172
7174
|
let n = !1;
|
|
7173
7175
|
const r = e.map((o) => {
|
|
7174
|
-
const s =
|
|
7176
|
+
const s = Co(o, t);
|
|
7175
7177
|
return !n && typeof s == "function" && (n = !0), s;
|
|
7176
7178
|
});
|
|
7177
7179
|
if (n)
|
|
7178
7180
|
return () => {
|
|
7179
7181
|
for (let o = 0; o < r.length; o++) {
|
|
7180
7182
|
const s = r[o];
|
|
7181
|
-
typeof s == "function" ? s() :
|
|
7183
|
+
typeof s == "function" ? s() : Co(e[o], null);
|
|
7182
7184
|
}
|
|
7183
7185
|
};
|
|
7184
7186
|
};
|
|
7185
7187
|
}
|
|
7186
7188
|
// @__NO_SIDE_EFFECTS__
|
|
7187
|
-
function
|
|
7188
|
-
const t = /* @__PURE__ */
|
|
7189
|
-
const { children: s, ...i } = r, a = c.Children.toArray(s), l = a.find(
|
|
7189
|
+
function fm(e) {
|
|
7190
|
+
const t = /* @__PURE__ */ pm(e), n = c.forwardRef((r, o) => {
|
|
7191
|
+
const { children: s, ...i } = r, a = c.Children.toArray(s), l = a.find(vm);
|
|
7190
7192
|
if (l) {
|
|
7191
7193
|
const u = l.props.children, f = a.map((d) => d === l ? c.Children.count(u) > 1 ? c.Children.only(null) : c.isValidElement(u) ? u.props.children : null : d);
|
|
7192
7194
|
return /* @__PURE__ */ h.jsx(t, { ...i, ref: o, children: c.isValidElement(u) ? c.cloneElement(u, void 0, f) : null });
|
|
@@ -7196,22 +7198,22 @@ function pm(e) {
|
|
|
7196
7198
|
return n.displayName = `${e}.Slot`, n;
|
|
7197
7199
|
}
|
|
7198
7200
|
// @__NO_SIDE_EFFECTS__
|
|
7199
|
-
function
|
|
7201
|
+
function pm(e) {
|
|
7200
7202
|
const t = c.forwardRef((n, r) => {
|
|
7201
7203
|
const { children: o, ...s } = n;
|
|
7202
7204
|
if (c.isValidElement(o)) {
|
|
7203
|
-
const i =
|
|
7204
|
-
return o.type !== c.Fragment && (a.ref = r ?
|
|
7205
|
+
const i = gm(o), a = hm(s, o.props);
|
|
7206
|
+
return o.type !== c.Fragment && (a.ref = r ? dm(r, i) : i), c.cloneElement(o, a);
|
|
7205
7207
|
}
|
|
7206
7208
|
return c.Children.count(o) > 1 ? c.Children.only(null) : null;
|
|
7207
7209
|
});
|
|
7208
7210
|
return t.displayName = `${e}.SlotClone`, t;
|
|
7209
7211
|
}
|
|
7210
|
-
var
|
|
7211
|
-
function
|
|
7212
|
-
return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
7212
|
+
var mm = Symbol("radix.slottable");
|
|
7213
|
+
function vm(e) {
|
|
7214
|
+
return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === mm;
|
|
7213
7215
|
}
|
|
7214
|
-
function
|
|
7216
|
+
function hm(e, t) {
|
|
7215
7217
|
const n = { ...t };
|
|
7216
7218
|
for (const r in t) {
|
|
7217
7219
|
const o = e[r], s = t[r];
|
|
@@ -7222,12 +7224,12 @@ function gm(e, t) {
|
|
|
7222
7224
|
}
|
|
7223
7225
|
return { ...e, ...n };
|
|
7224
7226
|
}
|
|
7225
|
-
function
|
|
7227
|
+
function gm(e) {
|
|
7226
7228
|
var r, o;
|
|
7227
7229
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
7228
7230
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
7229
7231
|
}
|
|
7230
|
-
var
|
|
7232
|
+
var bm = [
|
|
7231
7233
|
"a",
|
|
7232
7234
|
"button",
|
|
7233
7235
|
"div",
|
|
@@ -7245,8 +7247,8 @@ var xm = [
|
|
|
7245
7247
|
"span",
|
|
7246
7248
|
"svg",
|
|
7247
7249
|
"ul"
|
|
7248
|
-
], Nr =
|
|
7249
|
-
const n = /* @__PURE__ */
|
|
7250
|
+
], Nr = bm.reduce((e, t) => {
|
|
7251
|
+
const n = /* @__PURE__ */ fm(`Primitive.${t}`), r = c.forwardRef((o, s) => {
|
|
7250
7252
|
const { asChild: i, ...a } = o, l = i ? n : t;
|
|
7251
7253
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(l, { ...a, ref: s });
|
|
7252
7254
|
});
|
|
@@ -7261,10 +7263,10 @@ var xm = [
|
|
|
7261
7263
|
* This source code is licensed under the MIT license found in the
|
|
7262
7264
|
* LICENSE file in the root directory of this source tree.
|
|
7263
7265
|
*/
|
|
7264
|
-
var
|
|
7265
|
-
function
|
|
7266
|
-
if (
|
|
7267
|
-
|
|
7266
|
+
var Eo;
|
|
7267
|
+
function xm() {
|
|
7268
|
+
if (Eo) return mn;
|
|
7269
|
+
Eo = 1;
|
|
7268
7270
|
var e = V;
|
|
7269
7271
|
function t(d, p) {
|
|
7270
7272
|
return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
|
|
@@ -7312,9 +7314,9 @@ var vn = {};
|
|
|
7312
7314
|
* This source code is licensed under the MIT license found in the
|
|
7313
7315
|
* LICENSE file in the root directory of this source tree.
|
|
7314
7316
|
*/
|
|
7315
|
-
var
|
|
7316
|
-
function
|
|
7317
|
-
return
|
|
7317
|
+
var So;
|
|
7318
|
+
function ym() {
|
|
7319
|
+
return So || (So = 1, process.env.NODE_ENV !== "production" && function() {
|
|
7318
7320
|
function e(v, g) {
|
|
7319
7321
|
return v === g && (v !== 0 || 1 / v === 1 / g) || v !== v && g !== g;
|
|
7320
7322
|
}
|
|
@@ -7332,16 +7334,16 @@ function wm() {
|
|
|
7332
7334
|
b = i({
|
|
7333
7335
|
inst: { value: m, getSnapshot: g }
|
|
7334
7336
|
});
|
|
7335
|
-
var x = b[0].inst,
|
|
7337
|
+
var x = b[0].inst, w = b[1];
|
|
7336
7338
|
return l(
|
|
7337
7339
|
function() {
|
|
7338
|
-
x.value = m, x.getSnapshot = g, n(x) &&
|
|
7340
|
+
x.value = m, x.getSnapshot = g, n(x) && w({ inst: x });
|
|
7339
7341
|
},
|
|
7340
7342
|
[v, m, g]
|
|
7341
7343
|
), a(
|
|
7342
7344
|
function() {
|
|
7343
|
-
return n(x) &&
|
|
7344
|
-
n(x) &&
|
|
7345
|
+
return n(x) && w({ inst: x }), v(function() {
|
|
7346
|
+
n(x) && w({ inst: x });
|
|
7345
7347
|
});
|
|
7346
7348
|
},
|
|
7347
7349
|
[v]
|
|
@@ -7365,24 +7367,24 @@ function wm() {
|
|
|
7365
7367
|
vn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
7366
7368
|
}()), vn;
|
|
7367
7369
|
}
|
|
7368
|
-
process.env.NODE_ENV === "production" ? On.exports =
|
|
7369
|
-
var
|
|
7370
|
-
function
|
|
7371
|
-
return
|
|
7372
|
-
|
|
7370
|
+
process.env.NODE_ENV === "production" ? On.exports = xm() : On.exports = ym();
|
|
7371
|
+
var wm = On.exports;
|
|
7372
|
+
function Cm() {
|
|
7373
|
+
return wm.useSyncExternalStore(
|
|
7374
|
+
Em,
|
|
7373
7375
|
() => !0,
|
|
7374
7376
|
() => !1
|
|
7375
7377
|
);
|
|
7376
7378
|
}
|
|
7377
|
-
function
|
|
7379
|
+
function Em() {
|
|
7378
7380
|
return () => {
|
|
7379
7381
|
};
|
|
7380
7382
|
}
|
|
7381
|
-
var kr = "Avatar", [
|
|
7383
|
+
var kr = "Avatar", [Sm, Xm] = cm(kr), [Rm, sa] = Sm(kr), ia = c.forwardRef(
|
|
7382
7384
|
(e, t) => {
|
|
7383
7385
|
const { __scopeAvatar: n, ...r } = e, [o, s] = c.useState("idle");
|
|
7384
7386
|
return /* @__PURE__ */ h.jsx(
|
|
7385
|
-
|
|
7387
|
+
Rm,
|
|
7386
7388
|
{
|
|
7387
7389
|
scope: n,
|
|
7388
7390
|
imageLoadingStatus: o,
|
|
@@ -7392,11 +7394,11 @@ var kr = "Avatar", [Rm, Xm] = lm(kr), [Pm, aa] = Rm(kr), ca = c.forwardRef(
|
|
|
7392
7394
|
);
|
|
7393
7395
|
}
|
|
7394
7396
|
);
|
|
7395
|
-
|
|
7396
|
-
var
|
|
7397
|
+
ia.displayName = kr;
|
|
7398
|
+
var aa = "AvatarImage", ca = c.forwardRef(
|
|
7397
7399
|
(e, t) => {
|
|
7398
7400
|
const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
|
|
7399
|
-
}, ...s } = e, i = aa
|
|
7401
|
+
}, ...s } = e, i = sa(aa, n), a = Pm(r, s), l = um((u) => {
|
|
7400
7402
|
o(u), i.onImageLoadingStatusChange(u);
|
|
7401
7403
|
});
|
|
7402
7404
|
return _n(() => {
|
|
@@ -7404,10 +7406,10 @@ var la = "AvatarImage", ua = c.forwardRef(
|
|
|
7404
7406
|
}, [a, l]), a === "loaded" ? /* @__PURE__ */ h.jsx(Nr.img, { ...s, ref: t, src: r }) : null;
|
|
7405
7407
|
}
|
|
7406
7408
|
);
|
|
7407
|
-
|
|
7408
|
-
var
|
|
7409
|
+
ca.displayName = aa;
|
|
7410
|
+
var la = "AvatarFallback", ua = c.forwardRef(
|
|
7409
7411
|
(e, t) => {
|
|
7410
|
-
const { __scopeAvatar: n, delayMs: r, ...o } = e, s =
|
|
7412
|
+
const { __scopeAvatar: n, delayMs: r, ...o } = e, s = sa(la, n), [i, a] = c.useState(r === void 0);
|
|
7411
7413
|
return c.useEffect(() => {
|
|
7412
7414
|
if (r !== void 0) {
|
|
7413
7415
|
const l = window.setTimeout(() => a(!0), r);
|
|
@@ -7416,16 +7418,16 @@ var da = "AvatarFallback", fa = c.forwardRef(
|
|
|
7416
7418
|
}, [r]), i && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ h.jsx(Nr.span, { ...o, ref: t }) : null;
|
|
7417
7419
|
}
|
|
7418
7420
|
);
|
|
7419
|
-
|
|
7420
|
-
function
|
|
7421
|
+
ua.displayName = la;
|
|
7422
|
+
function Ro(e, t) {
|
|
7421
7423
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
7422
7424
|
}
|
|
7423
|
-
function
|
|
7424
|
-
const r =
|
|
7425
|
-
() =>
|
|
7425
|
+
function Pm(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
7426
|
+
const r = Cm(), o = c.useRef(null), s = r ? (o.current || (o.current = new window.Image()), o.current) : null, [i, a] = c.useState(
|
|
7427
|
+
() => Ro(s, e)
|
|
7426
7428
|
);
|
|
7427
7429
|
return _n(() => {
|
|
7428
|
-
a(
|
|
7430
|
+
a(Ro(s, e));
|
|
7429
7431
|
}, [s, e]), _n(() => {
|
|
7430
7432
|
const l = (d) => () => {
|
|
7431
7433
|
a(d);
|
|
@@ -7448,7 +7450,7 @@ const qm = ({
|
|
|
7448
7450
|
}) => {
|
|
7449
7451
|
const a = St.root, l = St.image, u = St.badge;
|
|
7450
7452
|
return /* @__PURE__ */ h.jsxs(
|
|
7451
|
-
|
|
7453
|
+
ia,
|
|
7452
7454
|
{
|
|
7453
7455
|
role: "group",
|
|
7454
7456
|
"data-testid": "avatar-root",
|
|
@@ -7460,7 +7462,7 @@ const qm = ({
|
|
|
7460
7462
|
),
|
|
7461
7463
|
children: [
|
|
7462
7464
|
e ? /* @__PURE__ */ h.jsx(
|
|
7463
|
-
|
|
7465
|
+
ca,
|
|
7464
7466
|
{
|
|
7465
7467
|
role: "img",
|
|
7466
7468
|
"data-testid": "avatar-img",
|
|
@@ -7468,8 +7470,8 @@ const qm = ({
|
|
|
7468
7470
|
alt: t ?? "empty-avatar",
|
|
7469
7471
|
className: O(l, i == null ? void 0 : i.img)
|
|
7470
7472
|
}
|
|
7471
|
-
) : /* @__PURE__ */ h.jsx(
|
|
7472
|
-
|
|
7473
|
+
) : /* @__PURE__ */ h.jsx(ua, { children: s ? /* @__PURE__ */ h.jsx(
|
|
7474
|
+
jr,
|
|
7473
7475
|
{
|
|
7474
7476
|
width: 38,
|
|
7475
7477
|
height: 30,
|
|
@@ -7496,7 +7498,7 @@ const qm = ({
|
|
|
7496
7498
|
"data-testid": "avatar-badge",
|
|
7497
7499
|
className: O(u.wrapper, i == null ? void 0 : i.badge),
|
|
7498
7500
|
children: o ? /* @__PURE__ */ h.jsx(
|
|
7499
|
-
|
|
7501
|
+
_o,
|
|
7500
7502
|
{
|
|
7501
7503
|
width: 14,
|
|
7502
7504
|
height: 14,
|
|
@@ -7504,7 +7506,7 @@ const qm = ({
|
|
|
7504
7506
|
className: "fill-sidebar-10"
|
|
7505
7507
|
}
|
|
7506
7508
|
) : /* @__PURE__ */ h.jsx(
|
|
7507
|
-
|
|
7509
|
+
jr,
|
|
7508
7510
|
{
|
|
7509
7511
|
width: 16,
|
|
7510
7512
|
height: 13,
|
|
@@ -7528,40 +7530,40 @@ const qm = ({
|
|
|
7528
7530
|
export {
|
|
7529
7531
|
Kp as $,
|
|
7530
7532
|
qm as A,
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
+
Mm as B,
|
|
7534
|
+
Nm as C,
|
|
7533
7535
|
Re as D,
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
+
Lm as E,
|
|
7537
|
+
ms as F,
|
|
7536
7538
|
Ta as G,
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
+
km as H,
|
|
7540
|
+
Im as I,
|
|
7539
7541
|
ke as J,
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
+
Wm as K,
|
|
7543
|
+
Dm as L,
|
|
7542
7544
|
Xp as M,
|
|
7543
7545
|
sm as N,
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
+
os as O,
|
|
7547
|
+
ce as P,
|
|
7546
7548
|
qc as Q,
|
|
7547
7549
|
qp as R,
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
+
zm as S,
|
|
7551
|
+
Gm as T,
|
|
7550
7552
|
Da as U,
|
|
7551
7553
|
Yc as V,
|
|
7552
|
-
|
|
7554
|
+
ps as W,
|
|
7553
7555
|
In as X,
|
|
7554
7556
|
Xc as Y,
|
|
7555
7557
|
Sa as Z,
|
|
7556
7558
|
Gp as _,
|
|
7557
|
-
|
|
7559
|
+
$m as a,
|
|
7558
7560
|
Hp as a0,
|
|
7559
|
-
|
|
7561
|
+
Vm as a1,
|
|
7560
7562
|
Jl as a2,
|
|
7561
7563
|
Ql as a3,
|
|
7562
7564
|
eu as a4,
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
+
Bm as a5,
|
|
7566
|
+
Um as a6,
|
|
7565
7567
|
pp as a7,
|
|
7566
7568
|
vp as a8,
|
|
7567
7569
|
ya as a9,
|
|
@@ -7570,25 +7572,25 @@ export {
|
|
|
7570
7572
|
Fe as c,
|
|
7571
7573
|
Ie as d,
|
|
7572
7574
|
he as e,
|
|
7573
|
-
|
|
7575
|
+
Km as f,
|
|
7574
7576
|
we as g,
|
|
7575
|
-
|
|
7577
|
+
Hm as h,
|
|
7576
7578
|
Le as i,
|
|
7577
7579
|
pn as j,
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
+
Ym as k,
|
|
7581
|
+
Lr as l,
|
|
7580
7582
|
Ve as m,
|
|
7581
7583
|
Ne as n,
|
|
7582
7584
|
St as o,
|
|
7583
7585
|
h as p,
|
|
7584
|
-
|
|
7586
|
+
jm as q,
|
|
7585
7587
|
ye as r,
|
|
7586
|
-
|
|
7588
|
+
wo as s,
|
|
7587
7589
|
nt as t,
|
|
7588
7590
|
jt as u,
|
|
7589
7591
|
se as v,
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
+
Fm as w,
|
|
7593
|
+
To as x,
|
|
7592
7594
|
Mn as y,
|
|
7593
7595
|
ve as z
|
|
7594
7596
|
};
|