rently-components 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +136 -136
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import Ce, { useState as pn, useLayoutEffect as Ys, forwardRef as _r, createElement as mn, Fragment as Us, memo as Gs, useMemo as
|
|
2
|
+
import Ce, { useState as pn, useLayoutEffect as Ys, forwardRef as _r, createElement as mn, Fragment as Us, memo as Gs, useMemo as Vn } from "react";
|
|
3
3
|
import * as Dt from "react-dom";
|
|
4
4
|
import Ks from "react-dom";
|
|
5
5
|
function Xs(e) {
|
|
@@ -48,7 +48,7 @@ function Js() {
|
|
|
48
48
|
return "Suspense";
|
|
49
49
|
case T:
|
|
50
50
|
return "SuspenseList";
|
|
51
|
-
case
|
|
51
|
+
case z:
|
|
52
52
|
return "Activity";
|
|
53
53
|
}
|
|
54
54
|
if (typeof b == "object")
|
|
@@ -66,7 +66,7 @@ function Js() {
|
|
|
66
66
|
return b = b.displayName, b || (b = D.displayName || D.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
|
|
67
67
|
case O:
|
|
68
68
|
return D = b.displayName || null, D !== null ? D : e(b.type) || "Memo";
|
|
69
|
-
case
|
|
69
|
+
case V:
|
|
70
70
|
D = b._payload, b = b._init;
|
|
71
71
|
try {
|
|
72
72
|
return e(b(D));
|
|
@@ -97,7 +97,7 @@ function Js() {
|
|
|
97
97
|
}
|
|
98
98
|
function r(b) {
|
|
99
99
|
if (b === x) return "<>";
|
|
100
|
-
if (typeof b == "object" && b !== null && b.$$typeof ===
|
|
100
|
+
if (typeof b == "object" && b !== null && b.$$typeof === V)
|
|
101
101
|
return "<...>";
|
|
102
102
|
try {
|
|
103
103
|
var D = e(b);
|
|
@@ -220,12 +220,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
function m(b) {
|
|
223
|
-
h(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof ===
|
|
223
|
+
h(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof === V && (b._payload.status === "fulfilled" ? h(b._payload.value) && b._payload.value._store && (b._payload.value._store.validated = 1) : b._store && (b._store.validated = 1));
|
|
224
224
|
}
|
|
225
225
|
function h(b) {
|
|
226
226
|
return typeof b == "object" && b !== null && b.$$typeof === y;
|
|
227
227
|
}
|
|
228
|
-
var g = Ce, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), k = /* @__PURE__ */ Symbol.for("react.context"), _ = /* @__PURE__ */ Symbol.for("react.forward_ref"), j = /* @__PURE__ */ Symbol.for("react.suspense"), T = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"),
|
|
228
|
+
var g = Ce, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), k = /* @__PURE__ */ Symbol.for("react.context"), _ = /* @__PURE__ */ Symbol.for("react.forward_ref"), j = /* @__PURE__ */ Symbol.for("react.suspense"), T = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), V = /* @__PURE__ */ Symbol.for("react.lazy"), z = /* @__PURE__ */ Symbol.for("react.activity"), I = /* @__PURE__ */ Symbol.for("react.client.reference"), Y = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, N = Array.isArray, R = console.createTask ? console.createTask : function() {
|
|
229
229
|
return null;
|
|
230
230
|
};
|
|
231
231
|
g = {
|
|
@@ -557,13 +557,13 @@ const Qs = (e, t) => {
|
|
|
557
557
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
558
558
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
559
559
|
Ci.test(e) && !Ei.test(e)
|
|
560
|
-
), $r = () => !1, _i = (e) => Ri.test(e), Oi = (e) => Pi.test(e), Ni = (e) => !L(e) && !$(e), Ti = (e) => Xe(e, Br, $r), L = (e) => Ir.test(e), Te = (e) => Xe(e,
|
|
560
|
+
), $r = () => !1, _i = (e) => Ri.test(e), Oi = (e) => Pi.test(e), Ni = (e) => !L(e) && !$(e), Ti = (e) => Xe(e, Br, $r), L = (e) => Ir.test(e), Te = (e) => Xe(e, zr, ki), tn = (e) => Xe(e, Li, U), qn = (e) => Xe(e, Fr, $r), Mi = (e) => Xe(e, Wr, Oi), ft = (e) => Xe(e, Vr, _i), $ = (e) => Lr.test(e), ot = (e) => qe(e, zr), Di = (e) => qe(e, $i), Jn = (e) => qe(e, Fr), ji = (e) => qe(e, Br), Ii = (e) => qe(e, Wr), pt = (e) => qe(e, Vr, !0), Xe = (e, t, n) => {
|
|
561
561
|
const r = Ir.exec(e);
|
|
562
562
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
563
563
|
}, qe = (e, t, n = !1) => {
|
|
564
564
|
const r = Lr.exec(e);
|
|
565
565
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
566
|
-
}, Fr = (e) => e === "position" || e === "percentage", Wr = (e) => e === "image" || e === "url", Br = (e) => e === "length" || e === "size" || e === "bg-size",
|
|
566
|
+
}, Fr = (e) => e === "position" || e === "percentage", Wr = (e) => e === "image" || e === "url", Br = (e) => e === "length" || e === "size" || e === "bg-size", zr = (e) => e === "length", Li = (e) => e === "number", $i = (e) => e === "family-name", Vr = (e) => e === "shadow", Fi = () => {
|
|
567
567
|
const e = oe("color"), t = oe("font"), n = oe("text"), r = oe("font-weight"), o = oe("tracking"), s = oe("leading"), i = oe("breakpoint"), a = oe("container"), c = oe("spacing"), l = oe("radius"), d = oe("shadow"), m = oe("inset-shadow"), h = oe("text-shadow"), g = oe("drop-shadow"), y = oe("blur"), p = oe("perspective"), x = oe("aspect"), w = oe("ease"), S = oe("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
|
|
568
568
|
"center",
|
|
569
569
|
"top",
|
|
@@ -582,7 +582,7 @@ const Qs = (e, t) => {
|
|
|
582
582
|
"bottom-left",
|
|
583
583
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
584
584
|
"left-bottom"
|
|
585
|
-
], _ = () => [...k(), $, L], j = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], O = () => [$, L, c],
|
|
585
|
+
], _ = () => [...k(), $, L], j = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], O = () => [$, L, c], V = () => [We, "full", "auto", ...O()], z = () => [Se, "none", "subgrid", $, L], I = () => ["auto", {
|
|
586
586
|
span: ["full", Se, $, L]
|
|
587
587
|
}, Se, $, L], Y = () => [Se, "auto", $, L], K = () => ["auto", "min", "max", "fr", $, L], N = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], R = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], C = () => ["auto", ...O()], P = () => [We, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], v = () => [e, $, L], M = () => [...k(), Jn, qn, {
|
|
588
588
|
position: [$, L]
|
|
@@ -783,63 +783,63 @@ const Qs = (e, t) => {
|
|
|
783
783
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
784
784
|
*/
|
|
785
785
|
inset: [{
|
|
786
|
-
inset:
|
|
786
|
+
inset: V()
|
|
787
787
|
}],
|
|
788
788
|
/**
|
|
789
789
|
* Right / Left
|
|
790
790
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
791
791
|
*/
|
|
792
792
|
"inset-x": [{
|
|
793
|
-
"inset-x":
|
|
793
|
+
"inset-x": V()
|
|
794
794
|
}],
|
|
795
795
|
/**
|
|
796
796
|
* Top / Bottom
|
|
797
797
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
798
798
|
*/
|
|
799
799
|
"inset-y": [{
|
|
800
|
-
"inset-y":
|
|
800
|
+
"inset-y": V()
|
|
801
801
|
}],
|
|
802
802
|
/**
|
|
803
803
|
* Start
|
|
804
804
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
805
805
|
*/
|
|
806
806
|
start: [{
|
|
807
|
-
start:
|
|
807
|
+
start: V()
|
|
808
808
|
}],
|
|
809
809
|
/**
|
|
810
810
|
* End
|
|
811
811
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
812
812
|
*/
|
|
813
813
|
end: [{
|
|
814
|
-
end:
|
|
814
|
+
end: V()
|
|
815
815
|
}],
|
|
816
816
|
/**
|
|
817
817
|
* Top
|
|
818
818
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
819
819
|
*/
|
|
820
820
|
top: [{
|
|
821
|
-
top:
|
|
821
|
+
top: V()
|
|
822
822
|
}],
|
|
823
823
|
/**
|
|
824
824
|
* Right
|
|
825
825
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
826
826
|
*/
|
|
827
827
|
right: [{
|
|
828
|
-
right:
|
|
828
|
+
right: V()
|
|
829
829
|
}],
|
|
830
830
|
/**
|
|
831
831
|
* Bottom
|
|
832
832
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
833
833
|
*/
|
|
834
834
|
bottom: [{
|
|
835
|
-
bottom:
|
|
835
|
+
bottom: V()
|
|
836
836
|
}],
|
|
837
837
|
/**
|
|
838
838
|
* Left
|
|
839
839
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
840
840
|
*/
|
|
841
841
|
left: [{
|
|
842
|
-
left:
|
|
842
|
+
left: V()
|
|
843
843
|
}],
|
|
844
844
|
/**
|
|
845
845
|
* Visibility
|
|
@@ -910,7 +910,7 @@ const Qs = (e, t) => {
|
|
|
910
910
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
911
911
|
*/
|
|
912
912
|
"grid-cols": [{
|
|
913
|
-
"grid-cols":
|
|
913
|
+
"grid-cols": z()
|
|
914
914
|
}],
|
|
915
915
|
/**
|
|
916
916
|
* Grid Column Start / End
|
|
@@ -938,7 +938,7 @@ const Qs = (e, t) => {
|
|
|
938
938
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
939
939
|
*/
|
|
940
940
|
"grid-rows": [{
|
|
941
|
-
"grid-rows":
|
|
941
|
+
"grid-rows": z()
|
|
942
942
|
}],
|
|
943
943
|
/**
|
|
944
944
|
* Grid Row Start / End
|
|
@@ -3089,7 +3089,7 @@ function ne(...e) {
|
|
|
3089
3089
|
// @__NO_SIDE_EFFECTS__
|
|
3090
3090
|
function Ue(e) {
|
|
3091
3091
|
const t = /* @__PURE__ */ Bi(e), n = u.forwardRef((r, o) => {
|
|
3092
|
-
const { children: s, ...i } = r, a = u.Children.toArray(s), c = a.find(
|
|
3092
|
+
const { children: s, ...i } = r, a = u.Children.toArray(s), c = a.find(Vi);
|
|
3093
3093
|
if (c) {
|
|
3094
3094
|
const l = c.props.children, d = a.map((m) => m === c ? u.Children.count(l) > 1 ? u.Children.only(null) : u.isValidElement(l) ? l.props.children : null : m);
|
|
3095
3095
|
return /* @__PURE__ */ f.jsx(t, { ...i, ref: o, children: u.isValidElement(l) ? u.cloneElement(l, void 0, d) : null });
|
|
@@ -3110,9 +3110,9 @@ function Bi(e) {
|
|
|
3110
3110
|
});
|
|
3111
3111
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3112
3112
|
}
|
|
3113
|
-
var
|
|
3114
|
-
function
|
|
3115
|
-
return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
3113
|
+
var zi = /* @__PURE__ */ Symbol("radix.slottable");
|
|
3114
|
+
function Vi(e) {
|
|
3115
|
+
return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === zi;
|
|
3116
3116
|
}
|
|
3117
3117
|
function Hi(e, t) {
|
|
3118
3118
|
const n = { ...t };
|
|
@@ -3445,11 +3445,11 @@ var ua = "DismissableLayer", gn = "dismissableLayer.update", da = "dismissableLa
|
|
|
3445
3445
|
onDismiss: a,
|
|
3446
3446
|
...c
|
|
3447
3447
|
} = e, l = u.useContext(Ur), [d, m] = u.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, g] = u.useState({}), y = ne(t, (T) => m(T)), p = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = p.indexOf(x), S = d ? p.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, k = S >= w, _ = ha((T) => {
|
|
3448
|
-
const O = T.target,
|
|
3449
|
-
!k ||
|
|
3448
|
+
const O = T.target, V = [...l.branches].some((z) => z.contains(O));
|
|
3449
|
+
!k || V || (o?.(T), i?.(T), T.defaultPrevented || a?.());
|
|
3450
3450
|
}, h), j = ga((T) => {
|
|
3451
3451
|
const O = T.target;
|
|
3452
|
-
[...l.branches].some((
|
|
3452
|
+
[...l.branches].some((z) => z.contains(O)) || (s?.(T), i?.(T), T.defaultPrevented || a?.());
|
|
3453
3453
|
}, h);
|
|
3454
3454
|
return la((T) => {
|
|
3455
3455
|
S === l.layers.size - 1 && (r?.(T), !T.defaultPrevented && a && (T.preventDefault(), a()));
|
|
@@ -3911,13 +3911,13 @@ var Fa = function() {
|
|
|
3911
3911
|
gap: 0
|
|
3912
3912
|
}, cn = function(e) {
|
|
3913
3913
|
return parseInt(e || "", 10) || 0;
|
|
3914
|
-
},
|
|
3914
|
+
}, za = function(e) {
|
|
3915
3915
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3916
3916
|
return [cn(n), cn(r), cn(o)];
|
|
3917
|
-
},
|
|
3917
|
+
}, Va = function(e) {
|
|
3918
3918
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3919
3919
|
return Ba;
|
|
3920
|
-
var t =
|
|
3920
|
+
var t = za(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
3921
3921
|
return {
|
|
3922
3922
|
left: t[0],
|
|
3923
3923
|
top: t[1],
|
|
@@ -3982,7 +3982,7 @@ var Fa = function() {
|
|
|
3982
3982
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
3983
3983
|
Ua();
|
|
3984
3984
|
var s = u.useMemo(function() {
|
|
3985
|
-
return
|
|
3985
|
+
return Va(o);
|
|
3986
3986
|
}, [o]);
|
|
3987
3987
|
return u.createElement(Ha, { styles: Ya(s, !t, o, n ? "" : "!important") });
|
|
3988
3988
|
}, vn = !1;
|
|
@@ -4073,7 +4073,7 @@ var Be = vn ? { passive: !1 } : !1, Ka = function(e) {
|
|
|
4073
4073
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
4074
4074
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
4075
4075
|
`);
|
|
4076
|
-
}, rc = 0,
|
|
4076
|
+
}, rc = 0, ze = [];
|
|
4077
4077
|
function oc(e) {
|
|
4078
4078
|
var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(rc++)[0], s = u.useState(Zr)[0], i = u.useRef(e);
|
|
4079
4079
|
u.useEffect(function() {
|
|
@@ -4097,8 +4097,8 @@ function oc(e) {
|
|
|
4097
4097
|
var w = gt(p), S = n.current, E = "deltaX" in p ? p.deltaX : S[0] - w[0], k = "deltaY" in p ? p.deltaY : S[1] - w[1], _, j = p.target, T = Math.abs(E) > Math.abs(k) ? "h" : "v";
|
|
4098
4098
|
if ("touches" in p && T === "h" && j.type === "range")
|
|
4099
4099
|
return !1;
|
|
4100
|
-
var O = window.getSelection(),
|
|
4101
|
-
if (
|
|
4100
|
+
var O = window.getSelection(), V = O && O.anchorNode, z = V ? V === j || V.contains(j) : !1;
|
|
4101
|
+
if (z)
|
|
4102
4102
|
return !1;
|
|
4103
4103
|
var I = cr(T, j);
|
|
4104
4104
|
if (!I)
|
|
@@ -4111,7 +4111,7 @@ function oc(e) {
|
|
|
4111
4111
|
return ec(Y, x, p, Y === "h" ? E : k);
|
|
4112
4112
|
}, []), c = u.useCallback(function(p) {
|
|
4113
4113
|
var x = p;
|
|
4114
|
-
if (!(!
|
|
4114
|
+
if (!(!ze.length || ze[ze.length - 1] !== s)) {
|
|
4115
4115
|
var w = "deltaY" in x ? lr(x) : gt(x), S = t.current.filter(function(_) {
|
|
4116
4116
|
return _.name === x.type && (_.target === x.target || x.target === _.shadowParent) && tc(_.delta, w);
|
|
4117
4117
|
})[0];
|
|
@@ -4141,12 +4141,12 @@ function oc(e) {
|
|
|
4141
4141
|
l(p.type, gt(p), p.target, a(p, e.lockRef.current));
|
|
4142
4142
|
}, []);
|
|
4143
4143
|
u.useEffect(function() {
|
|
4144
|
-
return
|
|
4144
|
+
return ze.push(s), e.setCallbacks({
|
|
4145
4145
|
onScrollCapture: m,
|
|
4146
4146
|
onWheelCapture: m,
|
|
4147
4147
|
onTouchMoveCapture: h
|
|
4148
4148
|
}), document.addEventListener("wheel", c, Be), document.addEventListener("touchmove", c, Be), document.addEventListener("touchstart", d, Be), function() {
|
|
4149
|
-
|
|
4149
|
+
ze = ze.filter(function(p) {
|
|
4150
4150
|
return p !== s;
|
|
4151
4151
|
}), document.removeEventListener("wheel", c, Be), document.removeEventListener("touchmove", c, Be), document.removeEventListener("touchstart", d, Be);
|
|
4152
4152
|
};
|
|
@@ -4174,7 +4174,7 @@ var ac = function(e) {
|
|
|
4174
4174
|
return null;
|
|
4175
4175
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4176
4176
|
return t.ownerDocument.body;
|
|
4177
|
-
},
|
|
4177
|
+
}, Ve = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), xt = {}, ln = 0, no = function(e) {
|
|
4178
4178
|
return e && (e.host || no(e.parentNode));
|
|
4179
4179
|
}, cc = function(e, t) {
|
|
4180
4180
|
return t.map(function(n) {
|
|
@@ -4198,8 +4198,8 @@ var ac = function(e) {
|
|
|
4198
4198
|
d(h);
|
|
4199
4199
|
else
|
|
4200
4200
|
try {
|
|
4201
|
-
var g = h.getAttribute(r), y = g !== null && g !== "false", p = (
|
|
4202
|
-
|
|
4201
|
+
var g = h.getAttribute(r), y = g !== null && g !== "false", p = (Ve.get(h) || 0) + 1, x = (s.get(h) || 0) + 1;
|
|
4202
|
+
Ve.set(h, p), s.set(h, x), i.push(h), p === 1 && y && vt.set(h, !0), x === 1 && h.setAttribute(n, "true"), y || h.setAttribute(r, "true");
|
|
4203
4203
|
} catch (w) {
|
|
4204
4204
|
console.error("aria-hidden: cannot operate on ", h, w);
|
|
4205
4205
|
}
|
|
@@ -4207,9 +4207,9 @@ var ac = function(e) {
|
|
|
4207
4207
|
};
|
|
4208
4208
|
return d(t), a.clear(), ln++, function() {
|
|
4209
4209
|
i.forEach(function(m) {
|
|
4210
|
-
var h =
|
|
4211
|
-
|
|
4212
|
-
}), ln--, ln || (
|
|
4210
|
+
var h = Ve.get(m) - 1, g = s.get(m) - 1;
|
|
4211
|
+
Ve.set(m, h), s.set(m, g), h || (vt.has(m) || m.removeAttribute(r), vt.delete(m)), g || m.removeAttribute(n);
|
|
4212
|
+
}), ln--, ln || (Ve = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), xt = {});
|
|
4213
4213
|
};
|
|
4214
4214
|
}, kn = function(e, t, n) {
|
|
4215
4215
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -4749,7 +4749,7 @@ const Fc = (e) => ({
|
|
|
4749
4749
|
}, g = Dn(o), y = Mn(g), p = await i.getDimensions(l), x = g === "y", w = x ? "top" : "left", S = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", k = s.reference[y] + s.reference[g] - h[g] - s.floating[y], _ = h[g] - s.reference[g], j = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
4750
4750
|
let T = j ? j[E] : 0;
|
|
4751
4751
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(j))) && (T = a.floating[E] || s.floating[y]);
|
|
4752
|
-
const O = k / 2 - _ / 2,
|
|
4752
|
+
const O = k / 2 - _ / 2, V = T / 2 - p[y] / 2 - 1, z = Pe(m[w], V), I = Pe(m[S], V), Y = z, K = T - p[y] - I, N = T / 2 - p[y] / 2 + O, R = xn(Y, N, K), C = !c.arrow && Qe(o) != null && N !== R && s.reference[y] / 2 - (N < Y ? z : I) - p[y] / 2 < 0, P = C ? N < Y ? N - Y : N - K : 0;
|
|
4753
4753
|
return {
|
|
4754
4754
|
[g]: h[g] + P,
|
|
4755
4755
|
data: {
|
|
@@ -4788,36 +4788,36 @@ const Fc = (e) => ({
|
|
|
4788
4788
|
return {};
|
|
4789
4789
|
const w = we(o), S = me(a), E = we(a) === a, k = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), _ = h || (E || !p ? [_t(a)] : Tc(a)), j = y !== "none";
|
|
4790
4790
|
!h && j && _.push(...Ic(a, p, y, k));
|
|
4791
|
-
const T = [a, ..._], O = await at(t, x),
|
|
4792
|
-
let
|
|
4793
|
-
if (d &&
|
|
4791
|
+
const T = [a, ..._], O = await at(t, x), V = [];
|
|
4792
|
+
let z = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4793
|
+
if (d && V.push(O[w]), m) {
|
|
4794
4794
|
const N = Nc(o, i, k);
|
|
4795
|
-
|
|
4795
|
+
V.push(O[N[0]], O[N[1]]);
|
|
4796
4796
|
}
|
|
4797
|
-
if (
|
|
4797
|
+
if (z = [...z, {
|
|
4798
4798
|
placement: o,
|
|
4799
|
-
overflows:
|
|
4800
|
-
}], !
|
|
4799
|
+
overflows: V
|
|
4800
|
+
}], !V.every((N) => N <= 0)) {
|
|
4801
4801
|
var I, Y;
|
|
4802
4802
|
const N = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1, R = T[N];
|
|
4803
4803
|
if (R && (!(m === "alignment" ? S !== me(R) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4804
4804
|
// overflows the main axis.
|
|
4805
|
-
|
|
4805
|
+
z.every((v) => me(v.placement) === S ? v.overflows[0] > 0 : !0)))
|
|
4806
4806
|
return {
|
|
4807
4807
|
data: {
|
|
4808
4808
|
index: N,
|
|
4809
|
-
overflows:
|
|
4809
|
+
overflows: z
|
|
4810
4810
|
},
|
|
4811
4811
|
reset: {
|
|
4812
4812
|
placement: R
|
|
4813
4813
|
}
|
|
4814
4814
|
};
|
|
4815
|
-
let C = (Y =
|
|
4815
|
+
let C = (Y = z.filter((P) => P.overflows[0] <= 0).sort((P, v) => P.overflows[1] - v.overflows[1])[0]) == null ? void 0 : Y.placement;
|
|
4816
4816
|
if (!C)
|
|
4817
4817
|
switch (g) {
|
|
4818
4818
|
case "bestFit": {
|
|
4819
4819
|
var K;
|
|
4820
|
-
const P = (K =
|
|
4820
|
+
const P = (K = z.filter((v) => {
|
|
4821
4821
|
if (j) {
|
|
4822
4822
|
const M = me(v.placement);
|
|
4823
4823
|
return M === S || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -4897,7 +4897,7 @@ const Bc = function(e) {
|
|
|
4897
4897
|
}
|
|
4898
4898
|
};
|
|
4899
4899
|
}, Co = /* @__PURE__ */ new Set(["left", "top"]);
|
|
4900
|
-
async function
|
|
4900
|
+
async function zc(e, t) {
|
|
4901
4901
|
const {
|
|
4902
4902
|
placement: n,
|
|
4903
4903
|
platform: r,
|
|
@@ -4924,7 +4924,7 @@ async function Vc(e, t) {
|
|
|
4924
4924
|
y: g * d
|
|
4925
4925
|
};
|
|
4926
4926
|
}
|
|
4927
|
-
const
|
|
4927
|
+
const Vc = function(e) {
|
|
4928
4928
|
return e === void 0 && (e = 0), {
|
|
4929
4929
|
name: "offset",
|
|
4930
4930
|
options: e,
|
|
@@ -4935,7 +4935,7 @@ const zc = function(e) {
|
|
|
4935
4935
|
y: s,
|
|
4936
4936
|
placement: i,
|
|
4937
4937
|
middlewareData: a
|
|
4938
|
-
} = t, c = await
|
|
4938
|
+
} = t, c = await zc(t, e);
|
|
4939
4939
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
4940
4940
|
x: o + c.x,
|
|
4941
4941
|
y: s + c.y,
|
|
@@ -5068,16 +5068,16 @@ const zc = function(e) {
|
|
|
5068
5068
|
const S = p - d.top - d.bottom, E = y - d.left - d.right, k = Pe(p - d[x], S), _ = Pe(y - d[w], E), j = !t.middlewareData.shift;
|
|
5069
5069
|
let T = k, O = _;
|
|
5070
5070
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = E), (r = t.middlewareData.shift) != null && r.enabled.y && (T = S), j && !h) {
|
|
5071
|
-
const
|
|
5072
|
-
g ? O = y - 2 * (
|
|
5071
|
+
const z = ae(d.left, 0), I = ae(d.right, 0), Y = ae(d.top, 0), K = ae(d.bottom, 0);
|
|
5072
|
+
g ? O = y - 2 * (z !== 0 || I !== 0 ? z + I : ae(d.left, d.right)) : T = p - 2 * (Y !== 0 || K !== 0 ? Y + K : ae(d.top, d.bottom));
|
|
5073
5073
|
}
|
|
5074
5074
|
await c({
|
|
5075
5075
|
...t,
|
|
5076
5076
|
availableWidth: O,
|
|
5077
5077
|
availableHeight: T
|
|
5078
5078
|
});
|
|
5079
|
-
const
|
|
5080
|
-
return y !==
|
|
5079
|
+
const V = await i.getDimensions(a.floating);
|
|
5080
|
+
return y !== V.width || p !== V.height ? {
|
|
5081
5081
|
reset: {
|
|
5082
5082
|
rects: !0
|
|
5083
5083
|
}
|
|
@@ -5126,7 +5126,7 @@ function Xc(e) {
|
|
|
5126
5126
|
return Kc.has(et(e));
|
|
5127
5127
|
}
|
|
5128
5128
|
const qc = [":popover-open", ":modal"];
|
|
5129
|
-
function
|
|
5129
|
+
function zt(e) {
|
|
5130
5130
|
return qc.some((t) => {
|
|
5131
5131
|
try {
|
|
5132
5132
|
return e.matches(t);
|
|
@@ -5145,7 +5145,7 @@ function el(e) {
|
|
|
5145
5145
|
for (; ge(t) && !Ge(t); ) {
|
|
5146
5146
|
if (jn(t))
|
|
5147
5147
|
return t;
|
|
5148
|
-
if (
|
|
5148
|
+
if (zt(t))
|
|
5149
5149
|
return null;
|
|
5150
5150
|
t = Ae(t);
|
|
5151
5151
|
}
|
|
@@ -5161,7 +5161,7 @@ function Ge(e) {
|
|
|
5161
5161
|
function de(e) {
|
|
5162
5162
|
return ce(e).getComputedStyle(e);
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Vt(e) {
|
|
5165
5165
|
return ue(e) ? {
|
|
5166
5166
|
scrollLeft: e.scrollLeft,
|
|
5167
5167
|
scrollTop: e.scrollTop
|
|
@@ -5261,7 +5261,7 @@ function Ie(e, t, n, r) {
|
|
|
5261
5261
|
});
|
|
5262
5262
|
}
|
|
5263
5263
|
function Ht(e, t) {
|
|
5264
|
-
const n =
|
|
5264
|
+
const n = Vt(e).scrollLeft;
|
|
5265
5265
|
return t ? t.left + n : Ie(ve(e)).left + n;
|
|
5266
5266
|
}
|
|
5267
5267
|
function ko(e, t) {
|
|
@@ -5278,7 +5278,7 @@ function ol(e) {
|
|
|
5278
5278
|
offsetParent: r,
|
|
5279
5279
|
strategy: o
|
|
5280
5280
|
} = e;
|
|
5281
|
-
const s = o === "fixed", i = ve(r), a = t ?
|
|
5281
|
+
const s = o === "fixed", i = ve(r), a = t ? zt(t.floating) : !1;
|
|
5282
5282
|
if (r === i || a && s)
|
|
5283
5283
|
return n;
|
|
5284
5284
|
let c = {
|
|
@@ -5286,7 +5286,7 @@ function ol(e) {
|
|
|
5286
5286
|
scrollTop: 0
|
|
5287
5287
|
}, l = he(1);
|
|
5288
5288
|
const d = he(0), m = ge(r);
|
|
5289
|
-
if ((m || !m && !s) && ((et(r) !== "body" || lt(i)) && (c =
|
|
5289
|
+
if ((m || !m && !s) && ((et(r) !== "body" || lt(i)) && (c = Vt(r)), ge(r))) {
|
|
5290
5290
|
const g = Ie(r);
|
|
5291
5291
|
l = Ye(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
|
|
5292
5292
|
}
|
|
@@ -5302,7 +5302,7 @@ function sl(e) {
|
|
|
5302
5302
|
return Array.from(e.getClientRects());
|
|
5303
5303
|
}
|
|
5304
5304
|
function il(e) {
|
|
5305
|
-
const t = ve(e), n =
|
|
5305
|
+
const t = ve(e), n = Vt(e), r = e.ownerDocument.body, o = ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5306
5306
|
let i = -n.scrollLeft + Ht(e);
|
|
5307
5307
|
const a = -n.scrollTop;
|
|
5308
5308
|
return de(r).direction === "rtl" && (i += ae(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -5386,7 +5386,7 @@ function dl(e) {
|
|
|
5386
5386
|
rootBoundary: r,
|
|
5387
5387
|
strategy: o
|
|
5388
5388
|
} = e;
|
|
5389
|
-
const i = [...n === "clippingAncestors" ?
|
|
5389
|
+
const i = [...n === "clippingAncestors" ? zt(t) ? [] : ul(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, d) => {
|
|
5390
5390
|
const m = xr(t, d, o);
|
|
5391
5391
|
return l.top = ae(m.top, l.top), l.right = Pe(m.right, l.right), l.bottom = Pe(m.bottom, l.bottom), l.left = ae(m.left, l.left), l;
|
|
5392
5392
|
}, xr(t, a, o));
|
|
@@ -5418,7 +5418,7 @@ function pl(e, t, n) {
|
|
|
5418
5418
|
c.x = Ht(o);
|
|
5419
5419
|
}
|
|
5420
5420
|
if (r || !r && !s)
|
|
5421
|
-
if ((et(t) !== "body" || lt(o)) && (a =
|
|
5421
|
+
if ((et(t) !== "body" || lt(o)) && (a = Vt(t)), r) {
|
|
5422
5422
|
const g = Ie(t, !0, s, t);
|
|
5423
5423
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
5424
5424
|
} else o && l();
|
|
@@ -5444,7 +5444,7 @@ function br(e, t) {
|
|
|
5444
5444
|
}
|
|
5445
5445
|
function Oo(e, t) {
|
|
5446
5446
|
const n = ce(e);
|
|
5447
|
-
if (
|
|
5447
|
+
if (zt(e))
|
|
5448
5448
|
return n;
|
|
5449
5449
|
if (!ge(e)) {
|
|
5450
5450
|
let o = Ae(e);
|
|
@@ -5572,7 +5572,7 @@ function xl(e, t, n, r) {
|
|
|
5572
5572
|
}), m?.(), (w = g) == null || w.disconnect(), g = null, c && cancelAnimationFrame(y);
|
|
5573
5573
|
};
|
|
5574
5574
|
}
|
|
5575
|
-
const bl =
|
|
5575
|
+
const bl = Vc, yl = Hc, wl = Wc, Sl = Uc, Cl = Bc, yr = Fc, El = Yc, Rl = (e, t, n) => {
|
|
5576
5576
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5577
5577
|
platform: gl,
|
|
5578
5578
|
...n
|
|
@@ -5657,7 +5657,7 @@ function kl(e) {
|
|
|
5657
5657
|
v !== j.current && (j.current = v, p(v));
|
|
5658
5658
|
}, []), E = u.useCallback((v) => {
|
|
5659
5659
|
v !== T.current && (T.current = v, w(v));
|
|
5660
|
-
}, []), k = s || y, _ = i || x, j = u.useRef(null), T = u.useRef(null), O = u.useRef(d),
|
|
5660
|
+
}, []), k = s || y, _ = i || x, j = u.useRef(null), T = u.useRef(null), O = u.useRef(d), V = c != null, z = dn(c), I = dn(o), Y = dn(l), K = u.useCallback(() => {
|
|
5661
5661
|
if (!j.current || !T.current)
|
|
5662
5662
|
return;
|
|
5663
5663
|
const v = {
|
|
@@ -5690,11 +5690,11 @@ function kl(e) {
|
|
|
5690
5690
|
N.current = !1;
|
|
5691
5691
|
}), []), St(() => {
|
|
5692
5692
|
if (k && (j.current = k), _ && (T.current = _), k && _) {
|
|
5693
|
-
if (
|
|
5694
|
-
return
|
|
5693
|
+
if (z.current)
|
|
5694
|
+
return z.current(k, _, K);
|
|
5695
5695
|
K();
|
|
5696
5696
|
}
|
|
5697
|
-
}, [k, _, K,
|
|
5697
|
+
}, [k, _, K, z, V]);
|
|
5698
5698
|
const R = u.useMemo(() => ({
|
|
5699
5699
|
reference: j,
|
|
5700
5700
|
floating: T,
|
|
@@ -5823,15 +5823,15 @@ var Fn = "PopperContent", [Wl, Bl] = Do(Fn), Fo = u.forwardRef(
|
|
|
5823
5823
|
updatePositionStrategy: g = "optimized",
|
|
5824
5824
|
onPlaced: y,
|
|
5825
5825
|
...p
|
|
5826
|
-
} = e, x = jo(Fn, n), [w, S] = u.useState(null), E = ne(t, (A) => S(A)), [k, _] = u.useState(null), j = wo(k), T = j?.width ?? 0, O = j?.height ?? 0,
|
|
5827
|
-
padding:
|
|
5828
|
-
boundary: I.filter(
|
|
5826
|
+
} = e, x = jo(Fn, n), [w, S] = u.useState(null), E = ne(t, (A) => S(A)), [k, _] = u.useState(null), j = wo(k), T = j?.width ?? 0, O = j?.height ?? 0, V = r + (s !== "center" ? "-" + s : ""), z = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, I = Array.isArray(l) ? l : [l], Y = I.length > 0, K = {
|
|
5827
|
+
padding: z,
|
|
5828
|
+
boundary: I.filter(Vl),
|
|
5829
5829
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5830
5830
|
altBoundary: Y
|
|
5831
5831
|
}, { refs: N, floatingStyles: R, placement: C, isPositioned: P, middlewareData: v } = kl({
|
|
5832
5832
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5833
5833
|
strategy: "fixed",
|
|
5834
|
-
placement:
|
|
5834
|
+
placement: V,
|
|
5835
5835
|
whileElementsMounted: (...A) => xl(...A, {
|
|
5836
5836
|
animationFrame: g === "always"
|
|
5837
5837
|
}),
|
|
@@ -5858,7 +5858,7 @@ var Fn = "PopperContent", [Wl, Bl] = Do(Fn), Fo = u.forwardRef(
|
|
|
5858
5858
|
Hl({ arrowWidth: T, arrowHeight: O }),
|
|
5859
5859
|
h && jl({ strategy: "referenceHidden", ...K })
|
|
5860
5860
|
]
|
|
5861
|
-
}), [M, W] =
|
|
5861
|
+
}), [M, W] = zo(C), b = De(y);
|
|
5862
5862
|
ie(() => {
|
|
5863
5863
|
P && b?.();
|
|
5864
5864
|
}, [P, b]);
|
|
@@ -5920,13 +5920,13 @@ var Fn = "PopperContent", [Wl, Bl] = Do(Fn), Fo = u.forwardRef(
|
|
|
5920
5920
|
}
|
|
5921
5921
|
);
|
|
5922
5922
|
Fo.displayName = Fn;
|
|
5923
|
-
var Wo = "PopperArrow",
|
|
5923
|
+
var Wo = "PopperArrow", zl = {
|
|
5924
5924
|
top: "bottom",
|
|
5925
5925
|
right: "left",
|
|
5926
5926
|
bottom: "top",
|
|
5927
5927
|
left: "right"
|
|
5928
5928
|
}, Bo = u.forwardRef(function(t, n) {
|
|
5929
|
-
const { __scopePopper: r, ...o } = t, s = Bl(Wo, r), i =
|
|
5929
|
+
const { __scopePopper: r, ...o } = t, s = Bl(Wo, r), i = zl[s.placedSide];
|
|
5930
5930
|
return (
|
|
5931
5931
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5932
5932
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -5971,23 +5971,23 @@ var Wo = "PopperArrow", Vl = {
|
|
|
5971
5971
|
);
|
|
5972
5972
|
});
|
|
5973
5973
|
Bo.displayName = Wo;
|
|
5974
|
-
function
|
|
5974
|
+
function Vl(e) {
|
|
5975
5975
|
return e !== null;
|
|
5976
5976
|
}
|
|
5977
5977
|
var Hl = (e) => ({
|
|
5978
5978
|
name: "transformOrigin",
|
|
5979
5979
|
options: e,
|
|
5980
5980
|
fn(t) {
|
|
5981
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [l, d] =
|
|
5981
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [l, d] = zo(n), m = { start: "0%", center: "50%", end: "100%" }[d], h = (o.arrow?.x ?? 0) + a / 2, g = (o.arrow?.y ?? 0) + c / 2;
|
|
5982
5982
|
let y = "", p = "";
|
|
5983
5983
|
return l === "bottom" ? (y = i ? m : `${h}px`, p = `${-c}px`) : l === "top" ? (y = i ? m : `${h}px`, p = `${r.floating.height + c}px`) : l === "right" ? (y = `${-c}px`, p = i ? m : `${g}px`) : l === "left" && (y = `${r.floating.width + c}px`, p = i ? m : `${g}px`), { data: { x: y, y: p } };
|
|
5984
5984
|
}
|
|
5985
5985
|
});
|
|
5986
|
-
function
|
|
5986
|
+
function zo(e) {
|
|
5987
5987
|
const [t, n = "center"] = e.split("-");
|
|
5988
5988
|
return [t, n];
|
|
5989
5989
|
}
|
|
5990
|
-
var
|
|
5990
|
+
var Vo = Io, Wn = $o, Ho = Fo, Yo = Bo;
|
|
5991
5991
|
function Sr(e, [t, n]) {
|
|
5992
5992
|
return Math.min(n, Math.max(t, e));
|
|
5993
5993
|
}
|
|
@@ -6007,7 +6007,7 @@ var Ut = "Popover", [Uo] = Je(Ut, [
|
|
|
6007
6007
|
onChange: s,
|
|
6008
6008
|
caller: Ut
|
|
6009
6009
|
});
|
|
6010
|
-
return /* @__PURE__ */ f.jsx(
|
|
6010
|
+
return /* @__PURE__ */ f.jsx(Vo, { ...a, children: /* @__PURE__ */ f.jsx(
|
|
6011
6011
|
Yl,
|
|
6012
6012
|
{
|
|
6013
6013
|
scope: t,
|
|
@@ -6223,13 +6223,13 @@ var tu = Go, nu = qo, ru = Jo, ou = Zo, su = [" ", "Enter", "ArrowUp", "ArrowDow
|
|
|
6223
6223
|
defaultProp: o ?? !1,
|
|
6224
6224
|
onChange: s,
|
|
6225
6225
|
caller: Le
|
|
6226
|
-
}), [
|
|
6226
|
+
}), [V, z] = it({
|
|
6227
6227
|
prop: i,
|
|
6228
6228
|
defaultProp: a,
|
|
6229
6229
|
onChange: c,
|
|
6230
6230
|
caller: Le
|
|
6231
6231
|
}), I = u.useRef(null), Y = x ? y || !!x.closest("form") : !0, [K, N] = u.useState(/* @__PURE__ */ new Set()), R = Array.from(K).map((C) => C.props.value).join(";");
|
|
6232
|
-
return /* @__PURE__ */ f.jsx(
|
|
6232
|
+
return /* @__PURE__ */ f.jsx(Vo, { ...p, children: /* @__PURE__ */ f.jsxs(
|
|
6233
6233
|
cu,
|
|
6234
6234
|
{
|
|
6235
6235
|
required: g,
|
|
@@ -6241,8 +6241,8 @@ var tu = Go, nu = qo, ru = Jo, ou = Zo, su = [" ", "Enter", "ArrowUp", "ArrowDow
|
|
|
6241
6241
|
valueNodeHasChildren: k,
|
|
6242
6242
|
onValueNodeHasChildrenChange: _,
|
|
6243
6243
|
contentId: Me(),
|
|
6244
|
-
value:
|
|
6245
|
-
onValueChange:
|
|
6244
|
+
value: V,
|
|
6245
|
+
onValueChange: z,
|
|
6246
6246
|
open: T,
|
|
6247
6247
|
onOpenChange: O,
|
|
6248
6248
|
dir: j,
|
|
@@ -6273,12 +6273,12 @@ var tu = Go, nu = qo, ru = Jo, ou = Zo, su = [" ", "Enter", "ArrowUp", "ArrowDow
|
|
|
6273
6273
|
tabIndex: -1,
|
|
6274
6274
|
name: d,
|
|
6275
6275
|
autoComplete: m,
|
|
6276
|
-
value:
|
|
6277
|
-
onChange: (C) =>
|
|
6276
|
+
value: V,
|
|
6277
|
+
onChange: (C) => z(C.target.value),
|
|
6278
6278
|
disabled: h,
|
|
6279
6279
|
form: y,
|
|
6280
6280
|
children: [
|
|
6281
|
-
|
|
6281
|
+
V === void 0 ? /* @__PURE__ */ f.jsx("option", { value: "" }) : null,
|
|
6282
6282
|
Array.from(K)
|
|
6283
6283
|
]
|
|
6284
6284
|
},
|
|
@@ -6397,7 +6397,7 @@ var le = 10, [us, Oe] = tt($e), pu = "SelectContentImpl", mu = /* @__PURE__ */ U
|
|
|
6397
6397
|
avoidCollisions: x,
|
|
6398
6398
|
//
|
|
6399
6399
|
...w
|
|
6400
|
-
} = e, S = _e($e, n), [E, k] = u.useState(null), [_, j] = u.useState(null), T = ne(t, (A) => k(A)), [O,
|
|
6400
|
+
} = e, S = _e($e, n), [E, k] = u.useState(null), [_, j] = u.useState(null), T = ne(t, (A) => k(A)), [O, V] = u.useState(null), [z, I] = u.useState(
|
|
6401
6401
|
null
|
|
6402
6402
|
), Y = Kt(n), [K, N] = u.useState(!1), R = u.useRef(!1);
|
|
6403
6403
|
u.useEffect(() => {
|
|
@@ -6445,7 +6445,7 @@ var le = 10, [us, Oe] = tt($e), pu = "SelectContentImpl", mu = /* @__PURE__ */ U
|
|
|
6445
6445
|
}), D = u.useCallback(
|
|
6446
6446
|
(A, G, q) => {
|
|
6447
6447
|
const H = !R.current && !q;
|
|
6448
|
-
(S.value !== void 0 && S.value === G || H) && (
|
|
6448
|
+
(S.value !== void 0 && S.value === G || H) && (V(A), H && (R.current = !0));
|
|
6449
6449
|
},
|
|
6450
6450
|
[S.value]
|
|
6451
6451
|
), F = u.useCallback(() => E?.focus(), [E]), B = u.useCallback(
|
|
@@ -6478,7 +6478,7 @@ var le = 10, [us, Oe] = tt($e), pu = "SelectContentImpl", mu = /* @__PURE__ */ U
|
|
|
6478
6478
|
onItemLeave: F,
|
|
6479
6479
|
itemTextRefCallback: B,
|
|
6480
6480
|
focusSelectedItem: P,
|
|
6481
|
-
selectedItemText:
|
|
6481
|
+
selectedItemText: z,
|
|
6482
6482
|
position: r,
|
|
6483
6483
|
isPositioned: K,
|
|
6484
6484
|
searchRef: W,
|
|
@@ -6547,9 +6547,9 @@ ds.displayName = pu;
|
|
|
6547
6547
|
var hu = "SelectItemAlignedPosition", fs = u.forwardRef((e, t) => {
|
|
6548
6548
|
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = _e($e, n), i = Oe($e, n), [a, c] = u.useState(null), [l, d] = u.useState(null), m = ne(t, (T) => d(T)), h = Kt(n), g = u.useRef(!1), y = u.useRef(!0), { viewport: p, selectedItem: x, selectedItemText: w, focusSelectedItem: S } = i, E = u.useCallback(() => {
|
|
6549
6549
|
if (s.trigger && s.valueNode && a && l && p && x && w) {
|
|
6550
|
-
const T = s.trigger.getBoundingClientRect(), O = l.getBoundingClientRect(),
|
|
6550
|
+
const T = s.trigger.getBoundingClientRect(), O = l.getBoundingClientRect(), V = s.valueNode.getBoundingClientRect(), z = w.getBoundingClientRect();
|
|
6551
6551
|
if (s.dir !== "rtl") {
|
|
6552
|
-
const X =
|
|
6552
|
+
const X = z.left - O.left, Z = V.left - X, se = T.left - Z, Ne = T.width + se, Jt = Math.max(Ne, O.width), Zt = window.innerWidth - le, Qt = Sr(Z, [
|
|
6553
6553
|
le,
|
|
6554
6554
|
// Prevents the content from going off the starting edge of the
|
|
6555
6555
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -6560,7 +6560,7 @@ var hu = "SelectItemAlignedPosition", fs = u.forwardRef((e, t) => {
|
|
|
6560
6560
|
]);
|
|
6561
6561
|
a.style.minWidth = Ne + "px", a.style.left = Qt + "px";
|
|
6562
6562
|
} else {
|
|
6563
|
-
const X = O.right -
|
|
6563
|
+
const X = O.right - z.right, Z = window.innerWidth - V.right - X, se = window.innerWidth - T.right - Z, Ne = T.width + se, Jt = Math.max(Ne, O.width), Zt = window.innerWidth - le, Qt = Sr(Z, [
|
|
6564
6564
|
le,
|
|
6565
6565
|
Math.max(le, Zt - Jt)
|
|
6566
6566
|
]);
|
|
@@ -6678,9 +6678,9 @@ var gu = "SelectPopperPosition", wn = u.forwardRef((e, t) => {
|
|
|
6678
6678
|
);
|
|
6679
6679
|
});
|
|
6680
6680
|
wn.displayName = gu;
|
|
6681
|
-
var [vu,
|
|
6681
|
+
var [vu, zn] = tt($e, {}), Sn = "SelectViewport", ps = u.forwardRef(
|
|
6682
6682
|
(e, t) => {
|
|
6683
|
-
const { __scopeSelect: n, nonce: r, ...o } = e, s = Oe(Sn, n), i =
|
|
6683
|
+
const { __scopeSelect: n, nonce: r, ...o } = e, s = Oe(Sn, n), i = zn(Sn, n), a = ne(t, s.onViewportChange), c = u.useRef(0);
|
|
6684
6684
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
6685
6685
|
/* @__PURE__ */ f.jsx(
|
|
6686
6686
|
"style",
|
|
@@ -6849,7 +6849,7 @@ var bs = "SelectItemIndicator", ys = u.forwardRef(
|
|
|
6849
6849
|
);
|
|
6850
6850
|
ys.displayName = bs;
|
|
6851
6851
|
var Cn = "SelectScrollUpButton", ws = u.forwardRef((e, t) => {
|
|
6852
|
-
const n = Oe(Cn, e.__scopeSelect), r =
|
|
6852
|
+
const n = Oe(Cn, e.__scopeSelect), r = zn(Cn, e.__scopeSelect), [o, s] = u.useState(!1), i = ne(t, r.onScrollButtonChange);
|
|
6853
6853
|
return ie(() => {
|
|
6854
6854
|
if (n.viewport && n.isPositioned) {
|
|
6855
6855
|
let a = function() {
|
|
@@ -6873,7 +6873,7 @@ var Cn = "SelectScrollUpButton", ws = u.forwardRef((e, t) => {
|
|
|
6873
6873
|
});
|
|
6874
6874
|
ws.displayName = Cn;
|
|
6875
6875
|
var En = "SelectScrollDownButton", Ss = u.forwardRef((e, t) => {
|
|
6876
|
-
const n = Oe(En, e.__scopeSelect), r =
|
|
6876
|
+
const n = Oe(En, e.__scopeSelect), r = zn(En, e.__scopeSelect), [o, s] = u.useState(!1), i = ne(t, r.onScrollButtonChange);
|
|
6877
6877
|
return ie(() => {
|
|
6878
6878
|
if (n.viewport && n.isPositioned) {
|
|
6879
6879
|
let a = function() {
|
|
@@ -7105,7 +7105,7 @@ Ns.displayName = Bu;
|
|
|
7105
7105
|
function Ts(e) {
|
|
7106
7106
|
return e ? "checked" : "unchecked";
|
|
7107
7107
|
}
|
|
7108
|
-
var
|
|
7108
|
+
var zu = ks, Vu = Os;
|
|
7109
7109
|
const Hu = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Yu = (e) => e.replace(
|
|
7110
7110
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
7111
7111
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
@@ -7463,11 +7463,11 @@ const id = [
|
|
|
7463
7463
|
children: n,
|
|
7464
7464
|
...r
|
|
7465
7465
|
}) => /* @__PURE__ */ f.jsx("button", { className: J(md({ variant: e, className: t })), ...r, children: n }), fn = Gs(hd), jd = (e) => /* @__PURE__ */ f.jsx(
|
|
7466
|
-
|
|
7466
|
+
zu,
|
|
7467
7467
|
{
|
|
7468
7468
|
className: "h-6 w-10 bg-bg-1 rounded-full relative cursor-pointer data-[state=checked]:bg-primary-500 border-border-2 border",
|
|
7469
7469
|
...e,
|
|
7470
|
-
children: /* @__PURE__ */ f.jsx(
|
|
7470
|
+
children: /* @__PURE__ */ f.jsx(Vu, { className: "transition-transform will-change-transform block w-5 h-5 bg-text-2 rounded-full translate-x-0.5 data-[state=checked]:translate-x-4 data-[state=checked]:bg-text-3" })
|
|
7471
7471
|
}
|
|
7472
7472
|
), Id = ({ text: e = "Badge", type: t = "success" }) => {
|
|
7473
7473
|
const n = {
|
|
@@ -7515,7 +7515,7 @@ function Ds() {
|
|
|
7515
7515
|
j[_] = S;
|
|
7516
7516
|
var T = "$isDayjsObject", O = function(N) {
|
|
7517
7517
|
return N instanceof Y || !(!N || !N[T]);
|
|
7518
|
-
},
|
|
7518
|
+
}, V = function N(R, C, P) {
|
|
7519
7519
|
var v;
|
|
7520
7520
|
if (!R) return _;
|
|
7521
7521
|
if (typeof R == "string") {
|
|
@@ -7528,17 +7528,17 @@ function Ds() {
|
|
|
7528
7528
|
j[b] = R, v = b;
|
|
7529
7529
|
}
|
|
7530
7530
|
return !P && v && (_ = v), v || !P && _;
|
|
7531
|
-
},
|
|
7531
|
+
}, z = function(N, R) {
|
|
7532
7532
|
if (O(N)) return N.clone();
|
|
7533
7533
|
var C = typeof R == "object" ? R : {};
|
|
7534
7534
|
return C.date = N, C.args = arguments, new Y(C);
|
|
7535
7535
|
}, I = k;
|
|
7536
|
-
I.l =
|
|
7537
|
-
return
|
|
7536
|
+
I.l = V, I.i = O, I.w = function(N, R) {
|
|
7537
|
+
return z(N, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
|
|
7538
7538
|
};
|
|
7539
7539
|
var Y = (function() {
|
|
7540
7540
|
function N(C) {
|
|
7541
|
-
this.$L =
|
|
7541
|
+
this.$L = V(C.locale, null, !0), this.parse(C), this.$x = this.$x || C.x || {}, this[T] = !0;
|
|
7542
7542
|
}
|
|
7543
7543
|
var R = N.prototype;
|
|
7544
7544
|
return R.parse = function(C) {
|
|
@@ -7564,12 +7564,12 @@ function Ds() {
|
|
|
7564
7564
|
}, R.isValid = function() {
|
|
7565
7565
|
return this.$d.toString() !== p;
|
|
7566
7566
|
}, R.isSame = function(C, P) {
|
|
7567
|
-
var v =
|
|
7567
|
+
var v = z(C);
|
|
7568
7568
|
return this.startOf(P) <= v && v <= this.endOf(P);
|
|
7569
7569
|
}, R.isAfter = function(C, P) {
|
|
7570
|
-
return
|
|
7570
|
+
return z(C) < this.startOf(P);
|
|
7571
7571
|
}, R.isBefore = function(C, P) {
|
|
7572
|
-
return this.endOf(P) <
|
|
7572
|
+
return this.endOf(P) < z(C);
|
|
7573
7573
|
}, R.$g = function(C, P, v) {
|
|
7574
7574
|
return I.u(C) ? this[P] : this.set(v, C);
|
|
7575
7575
|
}, R.unix = function() {
|
|
@@ -7620,7 +7620,7 @@ function Ds() {
|
|
|
7620
7620
|
var v, M = this;
|
|
7621
7621
|
C = Number(C);
|
|
7622
7622
|
var W = I.p(P), b = function(B) {
|
|
7623
|
-
var te =
|
|
7623
|
+
var te = z(M);
|
|
7624
7624
|
return I.w(te.date(te.date() + Math.round(B * C)), M);
|
|
7625
7625
|
};
|
|
7626
7626
|
if (W === m) return this.set(m, this.$M + C);
|
|
@@ -7700,7 +7700,7 @@ function Ds() {
|
|
|
7700
7700
|
}, R.utcOffset = function() {
|
|
7701
7701
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
7702
7702
|
}, R.diff = function(C, P, v) {
|
|
7703
|
-
var M, W = this, b = I.p(P), D =
|
|
7703
|
+
var M, W = this, b = I.p(P), D = z(C), F = (D.utcOffset() - this.utcOffset()) * r, B = this - D, te = function() {
|
|
7704
7704
|
return I.m(W, D);
|
|
7705
7705
|
};
|
|
7706
7706
|
switch (b) {
|
|
@@ -7738,7 +7738,7 @@ function Ds() {
|
|
|
7738
7738
|
return j[this.$L];
|
|
7739
7739
|
}, R.locale = function(C, P) {
|
|
7740
7740
|
if (!C) return this.$L;
|
|
7741
|
-
var v = this.clone(), M =
|
|
7741
|
+
var v = this.clone(), M = V(C, P, !0);
|
|
7742
7742
|
return M && (v.$L = M), v;
|
|
7743
7743
|
}, R.clone = function() {
|
|
7744
7744
|
return I.w(this.$d, this);
|
|
@@ -7752,15 +7752,15 @@ function Ds() {
|
|
|
7752
7752
|
return this.$d.toUTCString();
|
|
7753
7753
|
}, N;
|
|
7754
7754
|
})(), K = Y.prototype;
|
|
7755
|
-
return
|
|
7755
|
+
return z.prototype = K, [["$ms", s], ["$s", i], ["$m", a], ["$H", c], ["$W", l], ["$M", m], ["$y", g], ["$D", y]].forEach((function(N) {
|
|
7756
7756
|
K[N[1]] = function(R) {
|
|
7757
7757
|
return this.$g(R, N[0], N[1]);
|
|
7758
7758
|
};
|
|
7759
|
-
})),
|
|
7760
|
-
return N.$i || (N(R, Y,
|
|
7761
|
-
},
|
|
7762
|
-
return
|
|
7763
|
-
},
|
|
7759
|
+
})), z.extend = function(N, R) {
|
|
7760
|
+
return N.$i || (N(R, Y, z), N.$i = !0), z;
|
|
7761
|
+
}, z.locale = V, z.isDayjs = O, z.unix = function(N) {
|
|
7762
|
+
return z(1e3 * N);
|
|
7763
|
+
}, z.en = j[_], z.Ls = j, z.p = {}, z;
|
|
7764
7764
|
}));
|
|
7765
7765
|
})(Ct)), Ct.exports;
|
|
7766
7766
|
}
|
|
@@ -7870,7 +7870,7 @@ const Re = /* @__PURE__ */ Xs(vd), xd = (e, t) => {
|
|
|
7870
7870
|
buttonDayClassName: o,
|
|
7871
7871
|
containerMonthDaysClassName: s
|
|
7872
7872
|
}) => {
|
|
7873
|
-
const i =
|
|
7873
|
+
const i = Vn(() => Re(), []), [a, c] = pn(i.month()), [l, d] = pn(i.year()), m = Vn(
|
|
7874
7874
|
() => xd(a, l),
|
|
7875
7875
|
[a, l]
|
|
7876
7876
|
);
|
|
@@ -7901,7 +7901,7 @@ const Re = /* @__PURE__ */ Xs(vd), xd = (e, t) => {
|
|
|
7901
7901
|
/* @__PURE__ */ f.jsx(
|
|
7902
7902
|
"select",
|
|
7903
7903
|
{
|
|
7904
|
-
className: "text-sm h-full w-full appearance-none px-2 outline-none border-none",
|
|
7904
|
+
className: "text-sm h-full w-full appearance-none px-2 outline-none border-none text-text-1 placeholder:text-text-2",
|
|
7905
7905
|
value: a,
|
|
7906
7906
|
onChange: (h) => c(parseInt(h.target.value)),
|
|
7907
7907
|
children: wd.map((h, g) => /* @__PURE__ */ f.jsx("option", { value: g, className: "bg-bg-2", children: h[e] }, g))
|
|
@@ -7920,7 +7920,7 @@ const Re = /* @__PURE__ */ Xs(vd), xd = (e, t) => {
|
|
|
7920
7920
|
/* @__PURE__ */ f.jsx(
|
|
7921
7921
|
"select",
|
|
7922
7922
|
{
|
|
7923
|
-
className: "text-sm h-full w-full appearance-none px-2 outline-none border-none",
|
|
7923
|
+
className: "text-sm h-full w-full appearance-none px-2 outline-none border-none text-text-1 placeholder:text-text-2",
|
|
7924
7924
|
value: l,
|
|
7925
7925
|
onChange: (h) => d(parseInt(h.target.value)),
|
|
7926
7926
|
children: yd.map((h) => /* @__PURE__ */ f.jsx("option", { value: h, className: "bg-bg-2", children: h }, h))
|
|
@@ -8016,13 +8016,13 @@ const Re = /* @__PURE__ */ Xs(vd), xd = (e, t) => {
|
|
|
8016
8016
|
children: t
|
|
8017
8017
|
}
|
|
8018
8018
|
)
|
|
8019
|
-
] }), Ws = ({ className: e, ...t }) => /* @__PURE__ */ f.jsx("div", { className: J("flex flex-col gap-1.5 mb-4", e), ...t }), Bs = ({ className: e, ...t }) => /* @__PURE__ */ f.jsx("div", { className: J("flex justify-end gap-3 mt-6", e), ...t }),
|
|
8019
|
+
] }), Ws = ({ className: e, ...t }) => /* @__PURE__ */ f.jsx("div", { className: J("flex flex-col gap-1.5 mb-4", e), ...t }), Bs = ({ className: e, ...t }) => /* @__PURE__ */ f.jsx("div", { className: J("flex justify-end gap-3 mt-6", e), ...t }), zs = ({ className: e, ...t }) => /* @__PURE__ */ f.jsx(
|
|
8020
8020
|
Ec,
|
|
8021
8021
|
{
|
|
8022
8022
|
className: J("text-lg font-semibold text-text-1", e),
|
|
8023
8023
|
...t
|
|
8024
8024
|
}
|
|
8025
|
-
),
|
|
8025
|
+
), Vs = ({
|
|
8026
8026
|
className: e,
|
|
8027
8027
|
...t
|
|
8028
8028
|
}) => /* @__PURE__ */ f.jsx(
|
|
@@ -8061,8 +8061,8 @@ const Re = /* @__PURE__ */ Xs(vd), xd = (e, t) => {
|
|
|
8061
8061
|
/* @__PURE__ */ f.jsxs(Fs, { className: i, children: [
|
|
8062
8062
|
a && /* @__PURE__ */ f.jsx(Hs, {}),
|
|
8063
8063
|
(r || o) && /* @__PURE__ */ f.jsxs(Ws, { children: [
|
|
8064
|
-
r && /* @__PURE__ */ f.jsx(
|
|
8065
|
-
o && /* @__PURE__ */ f.jsx(
|
|
8064
|
+
r && /* @__PURE__ */ f.jsx(zs, { children: r }),
|
|
8065
|
+
o && /* @__PURE__ */ f.jsx(Vs, { children: o })
|
|
8066
8066
|
] }),
|
|
8067
8067
|
s,
|
|
8068
8068
|
c && /* @__PURE__ */ f.jsx(Bs, { children: c })
|
|
@@ -8075,8 +8075,8 @@ xe.Overlay = $s;
|
|
|
8075
8075
|
xe.Content = Fs;
|
|
8076
8076
|
xe.Header = Ws;
|
|
8077
8077
|
xe.Footer = Bs;
|
|
8078
|
-
xe.Title =
|
|
8079
|
-
xe.Description =
|
|
8078
|
+
xe.Title = zs;
|
|
8079
|
+
xe.Description = Vs;
|
|
8080
8080
|
xe.Close = Hs;
|
|
8081
8081
|
var Et = { exports: {} }, Ed = Et.exports, Ar;
|
|
8082
8082
|
function Rd() {
|
|
@@ -8141,7 +8141,7 @@ const Ld = ({
|
|
|
8141
8141
|
sideOffset: 8,
|
|
8142
8142
|
align: "start",
|
|
8143
8143
|
className: J(
|
|
8144
|
-
"p-2 border-border-2 rounded-lg border bg-bg-1 data-[state=open]:animate-popover-in"
|
|
8144
|
+
"p-2 z-999 border-border-2 rounded-lg border bg-bg-1 data-[state=open]:animate-popover-in"
|
|
8145
8145
|
),
|
|
8146
8146
|
children: /* @__PURE__ */ f.jsx(
|
|
8147
8147
|
Cd,
|