@local-logic/design-system 0.7.43 → 0.7.45
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as H, jsx as E, Fragment as Bt } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as f from "react";
|
|
3
3
|
import Ve, { useImperativeHandle as Yf, useEffect as ue, createElement as Le, createContext as dt, Children as Fr, useContext as me, useMemo as Ue, useRef as be, useState as _e, useCallback as se, useLayoutEffect as Gl, forwardRef as Yl, Component as wi, useId as Ti, useInsertionEffect as Xl, isValidElement as Xf, Fragment as ql } from "react";
|
|
4
4
|
import * as Ql from "react-dom";
|
|
5
5
|
import qf from "react-dom";
|
|
@@ -123,11 +123,11 @@ const Ei = "-", Qf = (e) => {
|
|
|
123
123
|
}
|
|
124
124
|
m === "[" ? s++ : m === "]" ? s-- : m === "(" ? a++ : m === ")" && a--;
|
|
125
125
|
}
|
|
126
|
-
const u = i.length === 0 ? o : o.substring(l),
|
|
126
|
+
const u = i.length === 0 ? o : o.substring(l), d = ih(u), h = d !== u, p = c && c > l ? c - l : void 0;
|
|
127
127
|
return {
|
|
128
128
|
modifiers: i,
|
|
129
129
|
hasImportantModifier: h,
|
|
130
|
-
baseClassName:
|
|
130
|
+
baseClassName: d,
|
|
131
131
|
maybePostfixModifierPosition: p
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -175,13 +175,13 @@ const Ei = "-", Qf = (e) => {
|
|
|
175
175
|
let l = "";
|
|
176
176
|
for (let c = a.length - 1; c >= 0; c -= 1) {
|
|
177
177
|
const u = a[c], {
|
|
178
|
-
isExternal:
|
|
178
|
+
isExternal: d,
|
|
179
179
|
modifiers: h,
|
|
180
180
|
hasImportantModifier: p,
|
|
181
181
|
baseClassName: y,
|
|
182
182
|
maybePostfixModifierPosition: m
|
|
183
183
|
} = n(u);
|
|
184
|
-
if (
|
|
184
|
+
if (d) {
|
|
185
185
|
l = u + (l.length > 0 ? " " + l : l);
|
|
186
186
|
continue;
|
|
187
187
|
}
|
|
@@ -227,7 +227,7 @@ const ec = (e) => {
|
|
|
227
227
|
function dh(e, ...t) {
|
|
228
228
|
let n, r, o, i = s;
|
|
229
229
|
function s(l) {
|
|
230
|
-
const c = t.reduce((u,
|
|
230
|
+
const c = t.reduce((u, d) => d(u), e());
|
|
231
231
|
return n = ah(c), r = n.cache.get, o = n.cache.set, i = a, a(l);
|
|
232
232
|
}
|
|
233
233
|
function a(l) {
|
|
@@ -256,7 +256,7 @@ const ge = (e) => {
|
|
|
256
256
|
const r = nc.exec(e);
|
|
257
257
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
258
258
|
}, oc = (e) => e === "position" || e === "percentage", ic = (e) => e === "image" || e === "url", sc = (e) => e === "length" || e === "size" || e === "bg-size", ac = (e) => e === "length", Mh = (e) => e === "number", Rh = (e) => e === "family-name", lc = (e) => e === "shadow", Dh = () => {
|
|
259
|
-
const e = ge("color"), t = ge("font"), n = ge("text"), r = ge("font-weight"), o = ge("tracking"), i = ge("leading"), s = ge("breakpoint"), a = ge("container"), l = ge("spacing"), c = ge("radius"), u = ge("shadow"),
|
|
259
|
+
const e = ge("color"), t = ge("font"), n = ge("text"), r = ge("font-weight"), o = ge("tracking"), i = ge("leading"), s = ge("breakpoint"), a = ge("container"), l = ge("spacing"), c = ge("radius"), u = ge("shadow"), d = ge("inset-shadow"), h = ge("text-shadow"), p = ge("drop-shadow"), y = ge("blur"), m = ge("perspective"), g = ge("aspect"), v = ge("ease"), T = ge("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
|
|
260
260
|
"center",
|
|
261
261
|
"top",
|
|
262
262
|
"bottom",
|
|
@@ -1663,7 +1663,7 @@ const ge = (e) => {
|
|
|
1663
1663
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1664
1664
|
*/
|
|
1665
1665
|
"inset-shadow": [{
|
|
1666
|
-
"inset-shadow": ["none",
|
|
1666
|
+
"inset-shadow": ["none", d, tr, er]
|
|
1667
1667
|
}],
|
|
1668
1668
|
/**
|
|
1669
1669
|
* Inset Box Shadow Color
|
|
@@ -2784,7 +2784,7 @@ const ge = (e) => {
|
|
|
2784
2784
|
onClick: l,
|
|
2785
2785
|
type: c = "button",
|
|
2786
2786
|
...u
|
|
2787
|
-
},
|
|
2787
|
+
}, d) => /* @__PURE__ */ H(
|
|
2788
2788
|
"button",
|
|
2789
2789
|
{
|
|
2790
2790
|
onClick: (p) => {
|
|
@@ -3586,16 +3586,16 @@ function On(e, t, n, r, o, i) {
|
|
|
3586
3586
|
if (s = Eg(e), !a)
|
|
3587
3587
|
return Rc(e, s);
|
|
3588
3588
|
} else {
|
|
3589
|
-
var
|
|
3589
|
+
var d = it(e), h = d == Nc || d == c0;
|
|
3590
3590
|
if (xc(e))
|
|
3591
3591
|
return ig(e, a);
|
|
3592
|
-
if (
|
|
3592
|
+
if (d == kc || d == Ic || h && !o) {
|
|
3593
3593
|
if (s = l || h ? {} : Yg(e), !a)
|
|
3594
3594
|
return l ? dg(e, rg(s, e)) : cg(e, Qm(s, e));
|
|
3595
3595
|
} else {
|
|
3596
|
-
if (!K[
|
|
3596
|
+
if (!K[d])
|
|
3597
3597
|
return o ? e : {};
|
|
3598
|
-
s = Kg(e,
|
|
3598
|
+
s = Kg(e, d, a);
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
i || (i = new bn());
|
|
@@ -3627,7 +3627,7 @@ function D0() {
|
|
|
3627
3627
|
function o(i, s) {
|
|
3628
3628
|
if (i === s) return !0;
|
|
3629
3629
|
if (i && s && typeof i == "object" && typeof s == "object") {
|
|
3630
|
-
var a = e(i), l = e(s), c, u,
|
|
3630
|
+
var a = e(i), l = e(s), c, u, d;
|
|
3631
3631
|
if (a && l) {
|
|
3632
3632
|
if (u = i.length, u != s.length) return !1;
|
|
3633
3633
|
for (c = u; c-- !== 0; )
|
|
@@ -3649,7 +3649,7 @@ function D0() {
|
|
|
3649
3649
|
if (r && i instanceof Element && s instanceof Element)
|
|
3650
3650
|
return i === s;
|
|
3651
3651
|
for (c = u; c-- !== 0; )
|
|
3652
|
-
if (
|
|
3652
|
+
if (d = g[c], !(d === "_owner" && i.$$typeof) && !o(i[d], s[d]))
|
|
3653
3653
|
return !1;
|
|
3654
3654
|
return !0;
|
|
3655
3655
|
}
|
|
@@ -3746,7 +3746,7 @@ var sa;
|
|
|
3746
3746
|
function W0() {
|
|
3747
3747
|
if (sa) return W;
|
|
3748
3748
|
sa = 1;
|
|
3749
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, a = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112,
|
|
3749
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, a = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, g = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, v = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
3750
3750
|
function w(b) {
|
|
3751
3751
|
if (typeof b == "object" && b !== null) {
|
|
3752
3752
|
var C = b.$$typeof;
|
|
@@ -3758,7 +3758,7 @@ function W0() {
|
|
|
3758
3758
|
case r:
|
|
3759
3759
|
case i:
|
|
3760
3760
|
case o:
|
|
3761
|
-
case
|
|
3761
|
+
case d:
|
|
3762
3762
|
return b;
|
|
3763
3763
|
default:
|
|
3764
3764
|
switch (b = b && b.$$typeof, b) {
|
|
@@ -3780,7 +3780,7 @@ function W0() {
|
|
|
3780
3780
|
function P(b) {
|
|
3781
3781
|
return w(b) === c;
|
|
3782
3782
|
}
|
|
3783
|
-
return W.AsyncMode = l, W.ConcurrentMode = c, W.ContextConsumer = a, W.ContextProvider = s, W.Element = t, W.ForwardRef = u, W.Fragment = r, W.Lazy = y, W.Memo = p, W.Portal = n, W.Profiler = i, W.StrictMode = o, W.Suspense =
|
|
3783
|
+
return W.AsyncMode = l, W.ConcurrentMode = c, W.ContextConsumer = a, W.ContextProvider = s, W.Element = t, W.ForwardRef = u, W.Fragment = r, W.Lazy = y, W.Memo = p, W.Portal = n, W.Profiler = i, W.StrictMode = o, W.Suspense = d, W.isAsyncMode = function(b) {
|
|
3784
3784
|
return P(b) || w(b) === l;
|
|
3785
3785
|
}, W.isConcurrentMode = P, W.isContextConsumer = function(b) {
|
|
3786
3786
|
return w(b) === a;
|
|
@@ -3803,18 +3803,18 @@ function W0() {
|
|
|
3803
3803
|
}, W.isStrictMode = function(b) {
|
|
3804
3804
|
return w(b) === o;
|
|
3805
3805
|
}, W.isSuspense = function(b) {
|
|
3806
|
-
return w(b) ===
|
|
3806
|
+
return w(b) === d;
|
|
3807
3807
|
}, W.isValidElementType = function(b) {
|
|
3808
|
-
return typeof b == "string" || typeof b == "function" || b === r || b === c || b === i || b === o || b ===
|
|
3808
|
+
return typeof b == "string" || typeof b == "function" || b === r || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === y || b.$$typeof === p || b.$$typeof === s || b.$$typeof === a || b.$$typeof === u || b.$$typeof === g || b.$$typeof === v || b.$$typeof === T || b.$$typeof === m);
|
|
3809
3809
|
}, W.typeOf = w, W;
|
|
3810
3810
|
}
|
|
3811
3811
|
var z = {}, aa;
|
|
3812
3812
|
function z0() {
|
|
3813
3813
|
return aa || (aa = 1, re.env.NODE_ENV !== "production" && (function() {
|
|
3814
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, a = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112,
|
|
3814
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, a = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, g = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, v = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
3815
3815
|
function w(V) {
|
|
3816
3816
|
return typeof V == "string" || typeof V == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
3817
|
-
V === r || V === c || V === i || V === o || V ===
|
|
3817
|
+
V === r || V === c || V === i || V === o || V === d || V === h || typeof V == "object" && V !== null && (V.$$typeof === y || V.$$typeof === p || V.$$typeof === s || V.$$typeof === a || V.$$typeof === u || V.$$typeof === g || V.$$typeof === v || V.$$typeof === T || V.$$typeof === m);
|
|
3818
3818
|
}
|
|
3819
3819
|
function P(V) {
|
|
3820
3820
|
if (typeof V == "object" && V !== null) {
|
|
@@ -3828,7 +3828,7 @@ function z0() {
|
|
|
3828
3828
|
case r:
|
|
3829
3829
|
case i:
|
|
3830
3830
|
case o:
|
|
3831
|
-
case
|
|
3831
|
+
case d:
|
|
3832
3832
|
return Qt;
|
|
3833
3833
|
default:
|
|
3834
3834
|
var Jn = Qt && Qt.$$typeof;
|
|
@@ -3848,7 +3848,7 @@ function z0() {
|
|
|
3848
3848
|
}
|
|
3849
3849
|
}
|
|
3850
3850
|
}
|
|
3851
|
-
var b = l, C = c, S = a, A = s, N = t, j = u, X = r, Se = y, le = p, k = n, q = i, te = o, B =
|
|
3851
|
+
var b = l, C = c, S = a, A = s, N = t, j = u, X = r, Se = y, le = p, k = n, q = i, te = o, B = d, M = !1;
|
|
3852
3852
|
function he(V) {
|
|
3853
3853
|
return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Te(V) || P(V) === l;
|
|
3854
3854
|
}
|
|
@@ -3886,7 +3886,7 @@ function z0() {
|
|
|
3886
3886
|
return P(V) === o;
|
|
3887
3887
|
}
|
|
3888
3888
|
function rt(V) {
|
|
3889
|
-
return P(V) ===
|
|
3889
|
+
return P(V) === d;
|
|
3890
3890
|
}
|
|
3891
3891
|
z.AsyncMode = b, z.ConcurrentMode = C, z.ContextConsumer = S, z.ContextProvider = A, z.Element = N, z.ForwardRef = j, z.Fragment = X, z.Lazy = Se, z.Memo = le, z.Portal = k, z.Profiler = q, z.StrictMode = te, z.Suspense = B, z.isAsyncMode = he, z.isConcurrentMode = Te, z.isContextConsumer = De, z.isContextProvider = Ae, z.isElement = G, z.isForwardRef = ie, z.isFragment = Oe, z.isLazy = Rt, z.isMemo = Q, z.isPortal = Dt, z.isProfiler = tt, z.isStrictMode = nt, z.isSuspense = rt, z.isValidElementType = w, z.typeOf = P;
|
|
3892
3892
|
})()), z;
|
|
@@ -3937,11 +3937,11 @@ function H0() {
|
|
|
3937
3937
|
function s(y) {
|
|
3938
3938
|
return e.isMemo(y) ? o : i[y.$$typeof] || t;
|
|
3939
3939
|
}
|
|
3940
|
-
var a = Object.defineProperty, l = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor,
|
|
3940
|
+
var a = Object.defineProperty, l = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, h = Object.prototype;
|
|
3941
3941
|
function p(y, m, g) {
|
|
3942
3942
|
if (typeof m != "string") {
|
|
3943
3943
|
if (h) {
|
|
3944
|
-
var v =
|
|
3944
|
+
var v = d(m);
|
|
3945
3945
|
v && v !== h && p(y, v, g);
|
|
3946
3946
|
}
|
|
3947
3947
|
var T = l(m);
|
|
@@ -4107,12 +4107,12 @@ function J0(e, t) {
|
|
|
4107
4107
|
}
|
|
4108
4108
|
var Vt = {}, or = {};
|
|
4109
4109
|
function ey(e) {
|
|
4110
|
-
var t = e.validateOnChange, n = t === void 0 ? !0 : t, r = e.validateOnBlur, o = r === void 0 ? !0 : r, i = e.validateOnMount, s = i === void 0 ? !1 : i, a = e.isInitialValid, l = e.enableReinitialize, c = l === void 0 ? !1 : l, u = e.onSubmit,
|
|
4110
|
+
var t = e.validateOnChange, n = t === void 0 ? !0 : t, r = e.validateOnBlur, o = r === void 0 ? !0 : r, i = e.validateOnMount, s = i === void 0 ? !1 : i, a = e.isInitialValid, l = e.enableReinitialize, c = l === void 0 ? !1 : l, u = e.onSubmit, d = bt(e, ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"]), h = Z({
|
|
4111
4111
|
validateOnChange: n,
|
|
4112
4112
|
validateOnBlur: o,
|
|
4113
4113
|
validateOnMount: s,
|
|
4114
4114
|
onSubmit: u
|
|
4115
|
-
},
|
|
4115
|
+
}, d), p = be(h.initialValues), y = be(h.initialErrors || Vt), m = be(h.initialTouched || or), g = be(h.initialStatus), v = be(!1), T = be({});
|
|
4116
4116
|
re.env.NODE_ENV !== "production" && ue(function() {
|
|
4117
4117
|
typeof a > "u" || (re.env.NODE_ENV !== "production" ? ae(!1, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : ae());
|
|
4118
4118
|
}, []), ue(function() {
|
|
@@ -4612,24 +4612,24 @@ function Kn(e) {
|
|
|
4612
4612
|
c && s(c);
|
|
4613
4613
|
};
|
|
4614
4614
|
}, [i, s, c, u]), re.env.NODE_ENV !== "production" && (t || (re.env.NODE_ENV !== "production" ? ae(!1, "useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component") : ae())), c || (re.env.NODE_ENV !== "production" ? ae(!1, "Invalid field name. Either pass `useField` a string or an object containing a `name` key.") : ae());
|
|
4615
|
-
var
|
|
4615
|
+
var d = Ue(function() {
|
|
4616
4616
|
return o(c);
|
|
4617
4617
|
}, [o, c]);
|
|
4618
|
-
return [n(l), r(c),
|
|
4618
|
+
return [n(l), r(c), d];
|
|
4619
4619
|
}
|
|
4620
4620
|
function Fi(e) {
|
|
4621
4621
|
var t = e.validate, n = e.name, r = e.render, o = e.children, i = e.as, s = e.component, a = e.className, l = bt(e, ["validate", "name", "render", "children", "as", "component", "className"]), c = Yt(), u = bt(c, ["validate", "validationSchema"]);
|
|
4622
4622
|
re.env.NODE_ENV !== "production" && ue(function() {
|
|
4623
4623
|
r && (re.env.NODE_ENV !== "production" ? ae(!1, '<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="' + n + '" render={({field, form}) => ...} /> with <Field name="' + n + '">{({field, form, meta}) => ...}</Field>') : ae()), i && o && ye(o) && (re.env.NODE_ENV !== "production" ? ae(!1, "You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.") : ae()), s && o && ye(o) && (re.env.NODE_ENV !== "production" ? ae(!1, "You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.") : ae()), r && o && !Vi(o) && (re.env.NODE_ENV !== "production" ? ae(!1, "You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored") : ae());
|
|
4624
4624
|
}, []);
|
|
4625
|
-
var
|
|
4625
|
+
var d = u.registerField, h = u.unregisterField;
|
|
4626
4626
|
ue(function() {
|
|
4627
|
-
return
|
|
4627
|
+
return d(n, {
|
|
4628
4628
|
validate: t
|
|
4629
4629
|
}), function() {
|
|
4630
4630
|
h(n);
|
|
4631
4631
|
};
|
|
4632
|
-
}, [
|
|
4632
|
+
}, [d, h, n, t]);
|
|
4633
4633
|
var p = u.getFieldProps(Z({
|
|
4634
4634
|
name: n
|
|
4635
4635
|
}, l)), y = u.getFieldMeta(n), m = {
|
|
@@ -4737,12 +4737,12 @@ var uy = function(t, n, r) {
|
|
|
4737
4737
|
var o;
|
|
4738
4738
|
return o = e.call(this, r) || this, o.updateArrayField = function(i, s, a) {
|
|
4739
4739
|
var l = o.props, c = l.name, u = l.formik.setFormikState;
|
|
4740
|
-
u(function(
|
|
4741
|
-
var h = ha(a, i), p = ha(s, i), y = qe(
|
|
4742
|
-
return da(m) && (m = void 0), da(g) && (g = void 0), Z({},
|
|
4740
|
+
u(function(d) {
|
|
4741
|
+
var h = ha(a, i), p = ha(s, i), y = qe(d.values, c, i(J(d.values, c))), m = a ? h(J(d.errors, c)) : void 0, g = s ? p(J(d.touched, c)) : void 0;
|
|
4742
|
+
return da(m) && (m = void 0), da(g) && (g = void 0), Z({}, d, {
|
|
4743
4743
|
values: y,
|
|
4744
|
-
errors: a ? qe(
|
|
4745
|
-
touched: s ? qe(
|
|
4744
|
+
errors: a ? qe(d.errors, c, m) : d.errors,
|
|
4745
|
+
touched: s ? qe(d.touched, c, g) : d.touched
|
|
4746
4746
|
});
|
|
4747
4747
|
});
|
|
4748
4748
|
}, o.push = function(i) {
|
|
@@ -4858,8 +4858,8 @@ var uy = function(t, n, r) {
|
|
|
4858
4858
|
handleReplace: this.handleReplace,
|
|
4859
4859
|
handleUnshift: this.handleUnshift,
|
|
4860
4860
|
handleRemove: this.handleRemove
|
|
4861
|
-
}, i = this.props, s = i.component, a = i.render, l = i.children, c = i.name, u = i.formik,
|
|
4862
|
-
form:
|
|
4861
|
+
}, i = this.props, s = i.component, a = i.render, l = i.children, c = i.name, u = i.formik, d = bt(u, ["validate", "validationSchema"]), h = Z({}, o, {
|
|
4862
|
+
form: d,
|
|
4863
4863
|
name: c
|
|
4864
4864
|
});
|
|
4865
4865
|
return s ? Le(s, h) : a ? a(h) : l ? typeof l == "function" ? l(h) : Vi(l) ? null : Fr.only(l) : null;
|
|
@@ -4877,8 +4877,8 @@ var py = /* @__PURE__ */ (function(e) {
|
|
|
4877
4877
|
return n.shouldComponentUpdate = function(o) {
|
|
4878
4878
|
return J(this.props.formik.errors, this.props.name) !== J(o.formik.errors, this.props.name) || J(this.props.formik.touched, this.props.name) !== J(o.formik.touched, this.props.name) || Object.keys(this.props).length !== Object.keys(o).length;
|
|
4879
4879
|
}, n.render = function() {
|
|
4880
|
-
var o = this.props, i = o.component, s = o.formik, a = o.render, l = o.children, c = o.name, u = bt(o, ["component", "formik", "render", "children", "name"]),
|
|
4881
|
-
return
|
|
4880
|
+
var o = this.props, i = o.component, s = o.formik, a = o.render, l = o.children, c = o.name, u = bt(o, ["component", "formik", "render", "children", "name"]), d = J(s.touched, c), h = J(s.errors, c);
|
|
4881
|
+
return d && h ? a ? ye(a) ? a(h) : null : l ? ye(l) ? l(h) : null : i ? Le(i, u, h) : h : null;
|
|
4882
4882
|
}, t;
|
|
4883
4883
|
})(wi), Ii = /* @__PURE__ */ cy(py);
|
|
4884
4884
|
const Wc = Ve.createContext({}), _r = () => me(Wc), my = "w-full", Ni = "flex ml-5 mt-2 text-xs text-feedback-danger-200";
|
|
@@ -4891,7 +4891,7 @@ function gy({
|
|
|
4891
4891
|
}) {
|
|
4892
4892
|
const { isSubmitting: i, dirty: s, isValid: a } = Yt(), { isForcedDirty: l, onNavigationEvent: c } = _r(), u = (h) => {
|
|
4893
4893
|
c(() => o.onClick);
|
|
4894
|
-
},
|
|
4894
|
+
}, d = Ue(() => !!(r || e && i || t && !s || t && typeof l == "boolean" && !l || n && !a), [
|
|
4895
4895
|
e,
|
|
4896
4896
|
t,
|
|
4897
4897
|
r,
|
|
@@ -4905,7 +4905,7 @@ function gy({
|
|
|
4905
4905
|
Sr,
|
|
4906
4906
|
{
|
|
4907
4907
|
...o,
|
|
4908
|
-
isDisabled:
|
|
4908
|
+
isDisabled: d,
|
|
4909
4909
|
onClick: o.type !== "submit" && (s || typeof l < "u" && l) ? u : o.onClick
|
|
4910
4910
|
}
|
|
4911
4911
|
);
|
|
@@ -5164,9 +5164,9 @@ function Ry(e, t) {
|
|
|
5164
5164
|
/**
|
|
5165
5165
|
* Schedule a process to run on the next frame.
|
|
5166
5166
|
*/
|
|
5167
|
-
schedule: (u,
|
|
5167
|
+
schedule: (u, d = !1, h = !1) => {
|
|
5168
5168
|
const y = h && o ? n : r;
|
|
5169
|
-
return
|
|
5169
|
+
return d && s.add(u), y.has(u) || y.add(u), u;
|
|
5170
5170
|
},
|
|
5171
5171
|
/**
|
|
5172
5172
|
* Cancel the provided callback from running on the next frame.
|
|
@@ -5194,9 +5194,9 @@ function cu(e, t) {
|
|
|
5194
5194
|
delta: 0,
|
|
5195
5195
|
timestamp: 0,
|
|
5196
5196
|
isProcessing: !1
|
|
5197
|
-
}, i = () => n = !0, s = ir.reduce((w, P) => (w[P] = Ry(i), w), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update:
|
|
5197
|
+
}, i = () => n = !0, s = ir.reduce((w, P) => (w[P] = Ry(i), w), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: d, preRender: h, render: p, postRender: y } = s, m = () => {
|
|
5198
5198
|
const w = ut.useManualTiming ? o.timestamp : performance.now();
|
|
5199
|
-
n = !1, ut.useManualTiming || (o.delta = r ? 1e3 / 60 : Math.max(Math.min(w - o.timestamp, Dy), 1)), o.timestamp = w, o.isProcessing = !0, a.process(o), l.process(o), c.process(o), u.process(o),
|
|
5199
|
+
n = !1, ut.useManualTiming || (o.delta = r ? 1e3 / 60 : Math.max(Math.min(w - o.timestamp, Dy), 1)), o.timestamp = w, o.isProcessing = !0, a.process(o), l.process(o), c.process(o), u.process(o), d.process(o), h.process(o), p.process(o), y.process(o), o.isProcessing = !1, n && t && (r = !1, e(m));
|
|
5200
5200
|
}, g = () => {
|
|
5201
5201
|
n = !0, r = !0, o.isProcessing || e(m);
|
|
5202
5202
|
};
|
|
@@ -5479,17 +5479,17 @@ function ov({ duration: e = ne.duration, bounce: t = ne.bounce, velocity: n = ne
|
|
|
5479
5479
|
Tn(e <= /* @__PURE__ */ Be(ne.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
5480
5480
|
let s = 1 - t;
|
|
5481
5481
|
s = lt(ne.minDamping, ne.maxDamping, s), e = lt(ne.minDuration, ne.maxDuration, /* @__PURE__ */ Qe(e)), s < 1 ? (o = (c) => {
|
|
5482
|
-
const u = c * s,
|
|
5482
|
+
const u = c * s, d = u * e, h = u - n, p = Go(c, s), y = Math.exp(-d);
|
|
5483
5483
|
return uo - h / p * y;
|
|
5484
5484
|
}, i = (c) => {
|
|
5485
|
-
const
|
|
5485
|
+
const d = c * s * e, h = d * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * e, y = Math.exp(-d), m = Go(Math.pow(c, 2), s);
|
|
5486
5486
|
return (-o(c) + uo > 0 ? -1 : 1) * ((h - p) * y) / m;
|
|
5487
5487
|
}) : (o = (c) => {
|
|
5488
|
-
const u = Math.exp(-c * e),
|
|
5489
|
-
return -uo + u *
|
|
5488
|
+
const u = Math.exp(-c * e), d = (c - n) * e + 1;
|
|
5489
|
+
return -uo + u * d;
|
|
5490
5490
|
}, i = (c) => {
|
|
5491
|
-
const u = Math.exp(-c * e),
|
|
5492
|
-
return u *
|
|
5491
|
+
const u = Math.exp(-c * e), d = (n - c) * (e * e);
|
|
5492
|
+
return u * d;
|
|
5493
5493
|
});
|
|
5494
5494
|
const a = 5 / e, l = sv(o, i, a);
|
|
5495
5495
|
if (e = /* @__PURE__ */ Be(e), isNaN(l))
|
|
@@ -5556,7 +5556,7 @@ function Mr(e = ne.visualDuration, t = ne.bounce) {
|
|
|
5556
5556
|
bounce: t
|
|
5557
5557
|
} : e;
|
|
5558
5558
|
let { restSpeed: r, restDelta: o } = n;
|
|
5559
|
-
const i = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: i }, { stiffness: l, damping: c, mass: u, duration:
|
|
5559
|
+
const i = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: i }, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: p } = cv({
|
|
5560
5560
|
...n,
|
|
5561
5561
|
velocity: -/* @__PURE__ */ Qe(n.velocity || 0)
|
|
5562
5562
|
}), y = h || 0, m = c / (2 * Math.sqrt(l * u)), g = s - i, v = /* @__PURE__ */ Qe(Math.sqrt(l / u)), T = Math.abs(g) < 5;
|
|
@@ -5578,11 +5578,11 @@ function Mr(e = ne.visualDuration, t = ne.bounce) {
|
|
|
5578
5578
|
};
|
|
5579
5579
|
}
|
|
5580
5580
|
const P = {
|
|
5581
|
-
calculatedDuration: p &&
|
|
5581
|
+
calculatedDuration: p && d || null,
|
|
5582
5582
|
next: (b) => {
|
|
5583
5583
|
const C = w(b);
|
|
5584
5584
|
if (p)
|
|
5585
|
-
a.done = b >=
|
|
5585
|
+
a.done = b >= d;
|
|
5586
5586
|
else {
|
|
5587
5587
|
let S = b === 0 ? y : 0;
|
|
5588
5588
|
m < 1 && (S = b === 0 ? /* @__PURE__ */ Be(y) : bu(w, b, C));
|
|
@@ -5605,13 +5605,13 @@ Mr.applyToOptions = (e) => {
|
|
|
5605
5605
|
return e.ease = t.ease, e.duration = /* @__PURE__ */ Be(t.duration), e.type = "keyframes", e;
|
|
5606
5606
|
};
|
|
5607
5607
|
function Yo({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: o = 10, bounceStiffness: i = 500, modifyTarget: s, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
|
5608
|
-
const
|
|
5608
|
+
const d = e[0], h = {
|
|
5609
5609
|
done: !1,
|
|
5610
|
-
value:
|
|
5610
|
+
value: d
|
|
5611
5611
|
}, p = (A) => a !== void 0 && A < a || l !== void 0 && A > l, y = (A) => a === void 0 ? l : l === void 0 || Math.abs(a - A) < Math.abs(l - A) ? a : l;
|
|
5612
5612
|
let m = n * t;
|
|
5613
|
-
const g =
|
|
5614
|
-
v !== g && (m = v -
|
|
5613
|
+
const g = d + m, v = s === void 0 ? g : s(g);
|
|
5614
|
+
v !== g && (m = v - d);
|
|
5615
5615
|
const T = (A) => -m * Math.exp(-A / r), w = (A) => v + T(A), P = (A) => {
|
|
5616
5616
|
const N = T(A), j = w(A);
|
|
5617
5617
|
h.done = Math.abs(N) <= c, h.value = h.done ? v : j;
|
|
@@ -5659,12 +5659,12 @@ function dv(e, t, { clamp: n = !0, ease: r, mixer: o } = {}) {
|
|
|
5659
5659
|
const a = uv(t, r, o), l = a.length, c = (u) => {
|
|
5660
5660
|
if (s && u < e[0])
|
|
5661
5661
|
return t[0];
|
|
5662
|
-
let
|
|
5662
|
+
let d = 0;
|
|
5663
5663
|
if (l > 1)
|
|
5664
|
-
for (;
|
|
5664
|
+
for (; d < e.length - 2 && !(u < e[d + 1]); d++)
|
|
5665
5665
|
;
|
|
5666
|
-
const h = /* @__PURE__ */ $n(e[
|
|
5667
|
-
return a[
|
|
5666
|
+
const h = /* @__PURE__ */ $n(e[d], e[d + 1], u);
|
|
5667
|
+
return a[d](h);
|
|
5668
5668
|
};
|
|
5669
5669
|
return n ? (u) => c(lt(e[0], e[i - 1], u)) : c;
|
|
5670
5670
|
}
|
|
@@ -5773,15 +5773,15 @@ class es extends Ji {
|
|
|
5773
5773
|
const { generator: r, totalDuration: o, mixKeyframes: i, mirroredGenerator: s, resolvedDuration: a, calculatedDuration: l } = this;
|
|
5774
5774
|
if (this.startTime === null)
|
|
5775
5775
|
return r.next(0);
|
|
5776
|
-
const { delay: c = 0, keyframes: u, repeat:
|
|
5776
|
+
const { delay: c = 0, keyframes: u, repeat: d, repeatType: h, repeatDelay: p, type: y, onUpdate: m, finalKeyframe: g } = this.options;
|
|
5777
5777
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - o / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
|
|
5778
5778
|
const v = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), T = this.playbackSpeed >= 0 ? v < 0 : v > o;
|
|
5779
5779
|
this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = o);
|
|
5780
5780
|
let w = this.currentTime, P = r;
|
|
5781
|
-
if (
|
|
5781
|
+
if (d) {
|
|
5782
5782
|
const A = Math.min(this.currentTime, o) / a;
|
|
5783
5783
|
let N = Math.floor(A), j = A % 1;
|
|
5784
|
-
!j && A >= 1 && (j = 1), j === 1 && N--, N = Math.min(N,
|
|
5784
|
+
!j && A >= 1 && (j = 1), j === 1 && N--, N = Math.min(N, d + 1), N % 2 && (h === "reverse" ? (j = 1 - j, p && (j -= p / a)) : h === "mirror" && (P = s)), w = lt(0, 1, j) * a;
|
|
5785
5785
|
}
|
|
5786
5786
|
const b = T ? { done: !1, value: u[0] } : P.next(w);
|
|
5787
5787
|
i && (b.value = i(b.value));
|
|
@@ -6055,12 +6055,12 @@ function Fv(e, t, n, { delay: r = 0, duration: o = 300, repeat: i = 0, repeatTyp
|
|
|
6055
6055
|
[t]: n
|
|
6056
6056
|
};
|
|
6057
6057
|
l && (u.offset = l);
|
|
6058
|
-
const
|
|
6059
|
-
Array.isArray(
|
|
6058
|
+
const d = Su(a, o);
|
|
6059
|
+
Array.isArray(d) && (u.easing = d);
|
|
6060
6060
|
const h = {
|
|
6061
6061
|
delay: r,
|
|
6062
6062
|
duration: o,
|
|
6063
|
-
easing: Array.isArray(
|
|
6063
|
+
easing: Array.isArray(d) ? "linear" : d,
|
|
6064
6064
|
fill: "both",
|
|
6065
6065
|
iterations: i + 1,
|
|
6066
6066
|
direction: s === "reverse" ? "alternate" : "normal"
|
|
@@ -6244,7 +6244,7 @@ function Wv(e) {
|
|
|
6244
6244
|
}
|
|
6245
6245
|
const zv = 40;
|
|
6246
6246
|
class Zv extends Ji {
|
|
6247
|
-
constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: o = 0, repeatDelay: i = 0, repeatType: s = "loop", keyframes: a, name: l, motionValue: c, element: u, ...
|
|
6247
|
+
constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: o = 0, repeatDelay: i = 0, repeatType: s = "loop", keyframes: a, name: l, motionValue: c, element: u, ...d }) {
|
|
6248
6248
|
super(), this.stop = () => {
|
|
6249
6249
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
6250
6250
|
}, this.createdAt = Me.now();
|
|
@@ -6258,7 +6258,7 @@ class Zv extends Ji {
|
|
|
6258
6258
|
name: l,
|
|
6259
6259
|
motionValue: c,
|
|
6260
6260
|
element: u,
|
|
6261
|
-
...
|
|
6261
|
+
...d
|
|
6262
6262
|
}, p = u?.KeyframeResolver || ts;
|
|
6263
6263
|
this.keyframeResolver = new p(a, (y, m, g) => this.onKeyframesResolved(y, m, h, !g), l, c, u), this.keyframeResolver?.scheduleResolve();
|
|
6264
6264
|
}
|
|
@@ -6788,8 +6788,8 @@ function c1(e, t, n = {}) {
|
|
|
6788
6788
|
const { target: l } = a, c = t(l, a);
|
|
6789
6789
|
if (typeof c != "function" || !l)
|
|
6790
6790
|
return;
|
|
6791
|
-
const u = (
|
|
6792
|
-
Va(
|
|
6791
|
+
const u = (d) => {
|
|
6792
|
+
Va(d) && (c(d), l.removeEventListener("pointerleave", u));
|
|
6793
6793
|
};
|
|
6794
6794
|
l.addEventListener("pointerleave", u, o);
|
|
6795
6795
|
};
|
|
@@ -6841,13 +6841,13 @@ function h1(e, t, n = {}) {
|
|
|
6841
6841
|
return;
|
|
6842
6842
|
br.add(l);
|
|
6843
6843
|
const c = t(l, a), u = (p, y) => {
|
|
6844
|
-
window.removeEventListener("pointerup",
|
|
6845
|
-
},
|
|
6844
|
+
window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", h), br.has(l) && br.delete(l), Ia(p) && typeof c == "function" && c(p, { success: y });
|
|
6845
|
+
}, d = (p) => {
|
|
6846
6846
|
u(p, l === window || l === document || n.useGlobalTarget || Lu(l, p.target));
|
|
6847
6847
|
}, h = (p) => {
|
|
6848
6848
|
u(p, !1);
|
|
6849
6849
|
};
|
|
6850
|
-
window.addEventListener("pointerup",
|
|
6850
|
+
window.addEventListener("pointerup", d, o), window.addEventListener("pointercancel", h, o);
|
|
6851
6851
|
};
|
|
6852
6852
|
return r.forEach((a) => {
|
|
6853
6853
|
(n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, o), Iu(a) && (a.addEventListener("focus", (c) => f1(c, o)), !d1(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
|
|
@@ -6864,7 +6864,7 @@ const Pe = (e) => !!(e && e.getVelocity), m1 = [...Du, pe, St], g1 = (e) => m1.f
|
|
|
6864
6864
|
isStatic: !1,
|
|
6865
6865
|
reducedMotion: "never"
|
|
6866
6866
|
});
|
|
6867
|
-
class y1 extends
|
|
6867
|
+
class y1 extends f.Component {
|
|
6868
6868
|
getSnapshotBeforeUpdate(t) {
|
|
6869
6869
|
const n = this.props.childRef.current;
|
|
6870
6870
|
if (n && t.isPresent && !this.props.isPresent) {
|
|
@@ -6891,10 +6891,10 @@ function v1({ children: e, isPresent: t, anchorX: n, root: r }) {
|
|
|
6891
6891
|
right: 0
|
|
6892
6892
|
}), { nonce: a } = me(ss);
|
|
6893
6893
|
return Xl(() => {
|
|
6894
|
-
const { width: l, height: c, top: u, left:
|
|
6894
|
+
const { width: l, height: c, top: u, left: d, right: h } = s.current;
|
|
6895
6895
|
if (t || !i.current || !l || !c)
|
|
6896
6896
|
return;
|
|
6897
|
-
const p = n === "left" ? `left: ${
|
|
6897
|
+
const p = n === "left" ? `left: ${d}` : `right: ${h}`;
|
|
6898
6898
|
i.current.dataset.motionPopId = o;
|
|
6899
6899
|
const y = document.createElement("style");
|
|
6900
6900
|
a && (y.nonce = a);
|
|
@@ -6910,11 +6910,11 @@ function v1({ children: e, isPresent: t, anchorX: n, root: r }) {
|
|
|
6910
6910
|
`), () => {
|
|
6911
6911
|
m.contains(y) && m.removeChild(y);
|
|
6912
6912
|
};
|
|
6913
|
-
}, [t]), E(y1, { isPresent: t, childRef: i, sizeRef: s, children:
|
|
6913
|
+
}, [t]), E(y1, { isPresent: t, childRef: i, sizeRef: s, children: f.cloneElement(e, { ref: i }) });
|
|
6914
6914
|
}
|
|
6915
6915
|
const b1 = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: i, mode: s, anchorX: a, root: l }) => {
|
|
6916
6916
|
const c = Li(w1), u = Ti();
|
|
6917
|
-
let
|
|
6917
|
+
let d = !0, h = Ue(() => (d = !1, {
|
|
6918
6918
|
id: u,
|
|
6919
6919
|
initial: t,
|
|
6920
6920
|
isPresent: n,
|
|
@@ -6928,9 +6928,9 @@ const b1 = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
|
|
|
6928
6928
|
},
|
|
6929
6929
|
register: (p) => (c.set(p, !1), () => c.delete(p))
|
|
6930
6930
|
}), [n, c, r]);
|
|
6931
|
-
return i &&
|
|
6931
|
+
return i && d && (h = { ...h }), Ue(() => {
|
|
6932
6932
|
c.forEach((p, y) => c.set(y, !1));
|
|
6933
|
-
}, [n]),
|
|
6933
|
+
}, [n]), f.useEffect(() => {
|
|
6934
6934
|
!n && !c.size && r && r();
|
|
6935
6935
|
}, [n]), s === "popLayout" && (e = E(v1, { isPresent: n, anchorX: a, root: l, children: e })), E($r.Provider, { value: h, children: e });
|
|
6936
6936
|
};
|
|
@@ -6957,27 +6957,27 @@ function Na(e) {
|
|
|
6957
6957
|
}), t;
|
|
6958
6958
|
}
|
|
6959
6959
|
const T1 = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: s = !1, anchorX: a = "left", root: l }) => {
|
|
6960
|
-
const [c, u] = $u(s),
|
|
6960
|
+
const [c, u] = $u(s), d = Ue(() => Na(e), [e]), h = s && !c ? [] : d.map(ar), p = be(!0), y = be(d), m = Li(() => /* @__PURE__ */ new Map()), [g, v] = _e(d), [T, w] = _e(d);
|
|
6961
6961
|
Gc(() => {
|
|
6962
|
-
p.current = !1, y.current =
|
|
6962
|
+
p.current = !1, y.current = d;
|
|
6963
6963
|
for (let C = 0; C < T.length; C++) {
|
|
6964
6964
|
const S = ar(T[C]);
|
|
6965
6965
|
h.includes(S) ? m.delete(S) : m.get(S) !== !0 && m.set(S, !1);
|
|
6966
6966
|
}
|
|
6967
6967
|
}, [T, h.length, h.join("-")]);
|
|
6968
6968
|
const P = [];
|
|
6969
|
-
if (
|
|
6970
|
-
let C = [...
|
|
6969
|
+
if (d !== g) {
|
|
6970
|
+
let C = [...d];
|
|
6971
6971
|
for (let S = 0; S < T.length; S++) {
|
|
6972
6972
|
const A = T[S], N = ar(A);
|
|
6973
6973
|
h.includes(N) || (C.splice(S, 0, A), P.push(A));
|
|
6974
6974
|
}
|
|
6975
|
-
return i === "wait" && P.length && (C = P), w(Na(C)), v(
|
|
6975
|
+
return i === "wait" && P.length && (C = P), w(Na(C)), v(d), null;
|
|
6976
6976
|
}
|
|
6977
6977
|
Xt.env.NODE_ENV !== "production" && i === "wait" && T.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
6978
6978
|
const { forceRender: b } = me(ki);
|
|
6979
6979
|
return E(Bt, { children: T.map((C) => {
|
|
6980
|
-
const S = ar(C), A = s && !c ? !1 :
|
|
6980
|
+
const S = ar(C), A = s && !c ? !1 : d === T || h.includes(S), N = () => {
|
|
6981
6981
|
if (m.has(S))
|
|
6982
6982
|
m.set(S, !0);
|
|
6983
6983
|
else
|
|
@@ -7216,8 +7216,8 @@ function Zu(e, {
|
|
|
7216
7216
|
return;
|
|
7217
7217
|
}
|
|
7218
7218
|
e.attrs = e.style, e.style = {};
|
|
7219
|
-
const { attrs:
|
|
7220
|
-
|
|
7219
|
+
const { attrs: d, style: h } = e;
|
|
7220
|
+
d.transform && (h.transform = d.transform, delete d.transform), (h.transform || d.transformOrigin) && (h.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), h.transform && (h.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), o !== void 0 && L1(d, o, i, s, !1);
|
|
7221
7221
|
}
|
|
7222
7222
|
const Hu = () => ({
|
|
7223
7223
|
...us(),
|
|
@@ -7285,10 +7285,10 @@ function ds(e) {
|
|
|
7285
7285
|
);
|
|
7286
7286
|
}
|
|
7287
7287
|
function j1(e, t, n, { latestValues: r }, o, i = !1) {
|
|
7288
|
-
const a = (ds(e) ? _1 : I1)(t, r, o, e), l = A1(t, typeof e == "string", i), c = e !== ql ? { ...l, ...a, ref: n } : {}, { children: u } = t,
|
|
7288
|
+
const a = (ds(e) ? _1 : I1)(t, r, o, e), l = A1(t, typeof e == "string", i), c = e !== ql ? { ...l, ...a, ref: n } : {}, { children: u } = t, d = Ue(() => Pe(u) ? u.get() : u, [u]);
|
|
7289
7289
|
return Le(e, {
|
|
7290
7290
|
...c,
|
|
7291
|
-
children:
|
|
7291
|
+
children: d
|
|
7292
7292
|
});
|
|
7293
7293
|
}
|
|
7294
7294
|
function _a(e) {
|
|
@@ -7326,9 +7326,9 @@ function U1(e, t, n, r) {
|
|
|
7326
7326
|
t && c && !l && e.inherit !== !1 && (s === void 0 && (s = t.initial), a === void 0 && (a = t.animate));
|
|
7327
7327
|
let u = n ? n.initial === !1 : !1;
|
|
7328
7328
|
u = u || s === !1;
|
|
7329
|
-
const
|
|
7330
|
-
if (
|
|
7331
|
-
const h = Array.isArray(
|
|
7329
|
+
const d = u ? a : s;
|
|
7330
|
+
if (d && typeof d != "boolean" && !Br(d)) {
|
|
7331
|
+
const h = Array.isArray(d) ? d : [d];
|
|
7332
7332
|
for (let p = 0; p < h.length; p++) {
|
|
7333
7333
|
const y = fs(e, h[p]);
|
|
7334
7334
|
if (y) {
|
|
@@ -7402,8 +7402,8 @@ function G1(e, t, n, r, o) {
|
|
|
7402
7402
|
blockInitialAnimation: a ? a.initial === !1 : !1,
|
|
7403
7403
|
reducedMotionConfig: l
|
|
7404
7404
|
}));
|
|
7405
|
-
const u = c.current,
|
|
7406
|
-
u && !u.projection && o && (u.type === "html" || u.type === "svg") && Y1(c.current, n, o,
|
|
7405
|
+
const u = c.current, d = me(qu);
|
|
7406
|
+
u && !u.projection && o && (u.type === "html" || u.type === "svg") && Y1(c.current, n, o, d);
|
|
7407
7407
|
const h = be(!1);
|
|
7408
7408
|
Xl(() => {
|
|
7409
7409
|
u && h.current && u.update(n, a);
|
|
@@ -7451,13 +7451,13 @@ function ho(e, { forwardMotionProps: t = !1 } = {}, n, r) {
|
|
|
7451
7451
|
...me(ss),
|
|
7452
7452
|
...a,
|
|
7453
7453
|
layoutId: X1(a)
|
|
7454
|
-
}, { isStatic:
|
|
7455
|
-
if (!
|
|
7454
|
+
}, { isStatic: d } = u, h = C1(a), p = o(a, d);
|
|
7455
|
+
if (!d && _i) {
|
|
7456
7456
|
q1(u, n);
|
|
7457
7457
|
const y = Q1(u);
|
|
7458
7458
|
c = y.MeasureLayout, h.visualElement = G1(e, p, u, r, y.ProjectionNode);
|
|
7459
7459
|
}
|
|
7460
|
-
return H(jr.Provider, { value: h, children: [c && h.visualElement ? E(c, { visualElement: h.visualElement, ...u }) : null, j1(e, a, H1(p, h.visualElement, l), p,
|
|
7460
|
+
return H(jr.Provider, { value: h, children: [c && h.visualElement ? E(c, { visualElement: h.visualElement, ...u }) : null, j1(e, a, H1(p, h.visualElement, l), p, d, t)] });
|
|
7461
7461
|
}
|
|
7462
7462
|
i.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
7463
7463
|
const s = Yl(i);
|
|
@@ -7649,9 +7649,9 @@ class ab {
|
|
|
7649
7649
|
};
|
|
7650
7650
|
const { latestValues: l, renderState: c } = s;
|
|
7651
7651
|
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = o, this.options = a, this.blockInitialAnimation = !!i, this.isControllingVariants = Ur(n), this.isVariantNode = Uu(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
7652
|
-
const { willChange: u, ...
|
|
7653
|
-
for (const h in
|
|
7654
|
-
const p =
|
|
7652
|
+
const { willChange: u, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
7653
|
+
for (const h in d) {
|
|
7654
|
+
const p = d[h];
|
|
7655
7655
|
l[h] !== void 0 && Pe(p) && p.set(l[h]);
|
|
7656
7656
|
}
|
|
7657
7657
|
}
|
|
@@ -8028,8 +8028,8 @@ const ms = (e, t, n, r = {}, o, i) => (s) => {
|
|
|
8028
8028
|
element: i ? void 0 : o
|
|
8029
8029
|
};
|
|
8030
8030
|
Sb(a) || Object.assign(u, xb(e, u)), u.duration && (u.duration = /* @__PURE__ */ Be(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ Be(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
8031
|
-
let
|
|
8032
|
-
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (ri(u), u.delay === 0 && (
|
|
8031
|
+
let d = !1;
|
|
8032
|
+
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (ri(u), u.delay === 0 && (d = !0)), (ut.instantAnimations || ut.skipAnimations) && (d = !0, ri(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !i && t.get() !== void 0) {
|
|
8033
8033
|
const h = vb(u.keyframes, a);
|
|
8034
8034
|
if (h !== void 0) {
|
|
8035
8035
|
ee.update(() => {
|
|
@@ -8049,14 +8049,14 @@ function ld(e, t, { delay: n = 0, transitionOverride: r, type: o } = {}) {
|
|
|
8049
8049
|
r && (i = r);
|
|
8050
8050
|
const l = [], c = o && e.animationState && e.animationState.getState()[o];
|
|
8051
8051
|
for (const u in a) {
|
|
8052
|
-
const
|
|
8052
|
+
const d = e.getValue(u, e.latestValues[u] ?? null), h = a[u];
|
|
8053
8053
|
if (h === void 0 || c && Ab(c, u))
|
|
8054
8054
|
continue;
|
|
8055
8055
|
const p = {
|
|
8056
8056
|
delay: n,
|
|
8057
8057
|
...ns(i || {}, u)
|
|
8058
|
-
}, y =
|
|
8059
|
-
if (y !== void 0 && !
|
|
8058
|
+
}, y = d.get();
|
|
8059
|
+
if (y !== void 0 && !d.isAnimating && !Array.isArray(h) && h === y && !p.velocity)
|
|
8060
8060
|
continue;
|
|
8061
8061
|
let m = !1;
|
|
8062
8062
|
if (window.MotionHandoffAnimation) {
|
|
@@ -8066,8 +8066,8 @@ function ld(e, t, { delay: n = 0, transitionOverride: r, type: o } = {}) {
|
|
|
8066
8066
|
T !== null && (p.startTime = T, m = !0);
|
|
8067
8067
|
}
|
|
8068
8068
|
}
|
|
8069
|
-
ci(e, u),
|
|
8070
|
-
const g =
|
|
8069
|
+
ci(e, u), d.start(ms(u, d, h, e.shouldReduceMotion && Mu.has(u) ? { type: !1 } : p, e, m));
|
|
8070
|
+
const g = d.animation;
|
|
8071
8071
|
g && l.push(g);
|
|
8072
8072
|
}
|
|
8073
8073
|
return s && Promise.all(l).then(() => {
|
|
@@ -8085,8 +8085,8 @@ function ui(e, t, n = {}) {
|
|
|
8085
8085
|
let { transition: o = e.getDefaultTransition() || {} } = r || {};
|
|
8086
8086
|
n.transitionOverride && (o = n.transitionOverride);
|
|
8087
8087
|
const i = r ? () => Promise.all(ld(e, r, n)) : () => Promise.resolve(), s = e.variantChildren && e.variantChildren.size ? (l = 0) => {
|
|
8088
|
-
const { delayChildren: c = 0, staggerChildren: u, staggerDirection:
|
|
8089
|
-
return Pb(e, t, l, c, u,
|
|
8088
|
+
const { delayChildren: c = 0, staggerChildren: u, staggerDirection: d } = o;
|
|
8089
|
+
return Pb(e, t, l, c, u, d, n);
|
|
8090
8090
|
} : () => Promise.resolve(), { when: a } = o;
|
|
8091
8091
|
if (a) {
|
|
8092
8092
|
const [l, c] = a === "beforeChildren" ? [i, s] : [s, i];
|
|
@@ -8152,9 +8152,9 @@ function Ob(e) {
|
|
|
8152
8152
|
function Vb(e) {
|
|
8153
8153
|
let t = Ob(e), n = Ka(), r = !0;
|
|
8154
8154
|
const o = (l) => (c, u) => {
|
|
8155
|
-
const
|
|
8156
|
-
if (
|
|
8157
|
-
const { transition: h, transitionEnd: p, ...y } =
|
|
8155
|
+
const d = fn(e, u, l === "exit" ? e.presenceContext?.custom : void 0);
|
|
8156
|
+
if (d) {
|
|
8157
|
+
const { transition: h, transitionEnd: p, ...y } = d;
|
|
8158
8158
|
c = { ...c, ...y, ...p };
|
|
8159
8159
|
}
|
|
8160
8160
|
return c;
|
|
@@ -8163,7 +8163,7 @@ function Vb(e) {
|
|
|
8163
8163
|
t = l(e);
|
|
8164
8164
|
}
|
|
8165
8165
|
function s(l) {
|
|
8166
|
-
const { props: c } = e, u = dd(e.parent) || {},
|
|
8166
|
+
const { props: c } = e, u = dd(e.parent) || {}, d = [], h = /* @__PURE__ */ new Set();
|
|
8167
8167
|
let p = {}, y = 1 / 0;
|
|
8168
8168
|
for (let g = 0; g < Db; g++) {
|
|
8169
8169
|
const v = Rb[g], T = n[v], w = c[v] !== void 0 ? c[v] : u[v], P = Un(w), b = v === l ? T.isActive : null;
|
|
@@ -8198,7 +8198,7 @@ function Vb(e) {
|
|
|
8198
8198
|
}
|
|
8199
8199
|
T.prevProp = w, T.prevResolvedValues = X, T.isActive && (p = { ...p, ...X }), r && e.blockInitialAnimation && (A = !1);
|
|
8200
8200
|
const q = C && S;
|
|
8201
|
-
A && (!q || N) &&
|
|
8201
|
+
A && (!q || N) && d.push(...j.map((B) => {
|
|
8202
8202
|
const M = { type: v };
|
|
8203
8203
|
if (typeof B == "string" && r && !q && e.manuallyAnimateOnMount && e.parent) {
|
|
8204
8204
|
const { parent: he } = e, Te = fn(he, B);
|
|
@@ -8222,18 +8222,18 @@ function Vb(e) {
|
|
|
8222
8222
|
h.forEach((v) => {
|
|
8223
8223
|
const T = e.getBaseTarget(v), w = e.getValue(v);
|
|
8224
8224
|
w && (w.liveStyle = !0), g[v] = T ?? null;
|
|
8225
|
-
}),
|
|
8225
|
+
}), d.push({ animation: g });
|
|
8226
8226
|
}
|
|
8227
|
-
let m = !!
|
|
8228
|
-
return r && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (m = !1), r = !1, m ? t(
|
|
8227
|
+
let m = !!d.length;
|
|
8228
|
+
return r && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (m = !1), r = !1, m ? t(d) : Promise.resolve();
|
|
8229
8229
|
}
|
|
8230
8230
|
function a(l, c) {
|
|
8231
8231
|
if (n[l].isActive === c)
|
|
8232
8232
|
return Promise.resolve();
|
|
8233
|
-
e.variantChildren?.forEach((
|
|
8233
|
+
e.variantChildren?.forEach((d) => d.animationState?.setActive(l, c)), n[l].isActive = c;
|
|
8234
8234
|
const u = s(l);
|
|
8235
|
-
for (const
|
|
8236
|
-
n[
|
|
8235
|
+
for (const d in n)
|
|
8236
|
+
n[d].protectedKeys = {};
|
|
8237
8237
|
return u;
|
|
8238
8238
|
}
|
|
8239
8239
|
return {
|
|
@@ -8407,8 +8407,8 @@ class md {
|
|
|
8407
8407
|
this.dragSnapToOrigin = i, this.handlers = n, this.transformPagePoint = r, this.distanceThreshold = s, this.contextWindow = o || window;
|
|
8408
8408
|
const a = qn(t), l = mo(a, this.transformPagePoint), { point: c } = l, { timestamp: u } = xe;
|
|
8409
8409
|
this.history = [{ ...c, timestamp: u }];
|
|
8410
|
-
const { onSessionStart:
|
|
8411
|
-
|
|
8410
|
+
const { onSessionStart: d } = n;
|
|
8411
|
+
d && d(t, go(l, this.history)), this.removeListeners = Gn(Fn(this.contextWindow, "pointermove", this.handlePointerMove), Fn(this.contextWindow, "pointerup", this.handlePointerUp), Fn(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
8412
8412
|
}
|
|
8413
8413
|
updateHandlers(t) {
|
|
8414
8414
|
this.handlers = t;
|
|
@@ -8514,14 +8514,14 @@ class tw {
|
|
|
8514
8514
|
const { presenceContext: o } = this.visualElement;
|
|
8515
8515
|
if (o && o.isPresent === !1)
|
|
8516
8516
|
return;
|
|
8517
|
-
const i = (
|
|
8517
|
+
const i = (d) => {
|
|
8518
8518
|
const { dragSnapToOrigin: h } = this.getProps();
|
|
8519
|
-
h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(qn(
|
|
8520
|
-
}, s = (
|
|
8519
|
+
h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(qn(d).point);
|
|
8520
|
+
}, s = (d, h) => {
|
|
8521
8521
|
const { drag: p, dragPropagation: y, onDragStart: m } = this.getProps();
|
|
8522
8522
|
if (p && !y && (this.openDragLock && this.openDragLock(), this.openDragLock = l1(p), !this.openDragLock))
|
|
8523
8523
|
return;
|
|
8524
|
-
this.latestPointerEvent =
|
|
8524
|
+
this.latestPointerEvent = d, this.latestPanInfo = h, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ke((v) => {
|
|
8525
8525
|
let T = this.getAxisMotionValue(v).get() || 0;
|
|
8526
8526
|
if (Je.test(T)) {
|
|
8527
8527
|
const { projection: w } = this.visualElement;
|
|
@@ -8531,11 +8531,11 @@ class tw {
|
|
|
8531
8531
|
}
|
|
8532
8532
|
}
|
|
8533
8533
|
this.originPoint[v] = T;
|
|
8534
|
-
}), m && ee.postRender(() => m(
|
|
8534
|
+
}), m && ee.postRender(() => m(d, h)), ci(this.visualElement, "transform");
|
|
8535
8535
|
const { animationState: g } = this.visualElement;
|
|
8536
8536
|
g && g.setActive("whileDrag", !0);
|
|
8537
|
-
}, a = (
|
|
8538
|
-
this.latestPointerEvent =
|
|
8537
|
+
}, a = (d, h) => {
|
|
8538
|
+
this.latestPointerEvent = d, this.latestPanInfo = h;
|
|
8539
8539
|
const { dragPropagation: p, dragDirectionLock: y, onDirectionLock: m, onDrag: g } = this.getProps();
|
|
8540
8540
|
if (!p && !this.openDragLock)
|
|
8541
8541
|
return;
|
|
@@ -8544,10 +8544,10 @@ class tw {
|
|
|
8544
8544
|
this.currentDirection = nw(v), this.currentDirection !== null && m && m(this.currentDirection);
|
|
8545
8545
|
return;
|
|
8546
8546
|
}
|
|
8547
|
-
this.updateAxis("x", h.point, v), this.updateAxis("y", h.point, v), this.visualElement.render(), g && g(
|
|
8548
|
-
}, l = (
|
|
8549
|
-
this.latestPointerEvent =
|
|
8550
|
-
}, c = () => ke((
|
|
8547
|
+
this.updateAxis("x", h.point, v), this.updateAxis("y", h.point, v), this.visualElement.render(), g && g(d, h);
|
|
8548
|
+
}, l = (d, h) => {
|
|
8549
|
+
this.latestPointerEvent = d, this.latestPanInfo = h, this.stop(d, h), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
8550
|
+
}, c = () => ke((d) => this.getAnimationState(d) === "paused" && this.getAxisMotionValue(d).animation?.play()), { dragSnapToOrigin: u } = this.getProps();
|
|
8551
8551
|
this.panSession = new md(t, {
|
|
8552
8552
|
onSessionStart: i,
|
|
8553
8553
|
onStart: s,
|
|
@@ -8618,8 +8618,8 @@ class tw {
|
|
|
8618
8618
|
const { drag: n, dragMomentum: r, dragElastic: o, dragTransition: i, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = ke((u) => {
|
|
8619
8619
|
if (!lr(u, n, this.currentDirection))
|
|
8620
8620
|
return;
|
|
8621
|
-
let
|
|
8622
|
-
s && (
|
|
8621
|
+
let d = l && l[u] || {};
|
|
8622
|
+
s && (d = { min: 0, max: 0 });
|
|
8623
8623
|
const h = o ? 200 : 1e6, p = o ? 40 : 1e7, y = {
|
|
8624
8624
|
type: "inertia",
|
|
8625
8625
|
velocity: r ? t[u] : 0,
|
|
@@ -8629,7 +8629,7 @@ class tw {
|
|
|
8629
8629
|
restDelta: 1,
|
|
8630
8630
|
restSpeed: 10,
|
|
8631
8631
|
...i,
|
|
8632
|
-
...
|
|
8632
|
+
...d
|
|
8633
8633
|
};
|
|
8634
8634
|
return this.startAxisValueAnimation(u, y);
|
|
8635
8635
|
});
|
|
@@ -8712,8 +8712,8 @@ class tw {
|
|
|
8712
8712
|
o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), ee.read(r);
|
|
8713
8713
|
const s = zn(window, "resize", () => this.scalePositionWithinConstraints()), a = o.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: c }) => {
|
|
8714
8714
|
this.isDragging && c && (ke((u) => {
|
|
8715
|
-
const
|
|
8716
|
-
|
|
8715
|
+
const d = this.getAxisMotionValue(u);
|
|
8716
|
+
d && (this.originPoint[u] += l[u].translate, d.set(d.get() + l[u].translate));
|
|
8717
8717
|
}), this.visualElement.render());
|
|
8718
8718
|
}));
|
|
8719
8719
|
return () => {
|
|
@@ -9037,8 +9037,8 @@ function Tw(e, t, n) {
|
|
|
9037
9037
|
let r = "";
|
|
9038
9038
|
const o = e.x.translate / t.x, i = e.y.translate / t.y, s = n?.z || 0;
|
|
9039
9039
|
if ((o || i || s) && (r = `translate3d(${o}px, ${i}px, ${s}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
9040
|
-
const { transformPerspective: c, rotate: u, rotateX:
|
|
9041
|
-
c && (r = `perspective(${c}px) ${r}`), u && (r += `rotate(${u}deg) `),
|
|
9040
|
+
const { transformPerspective: c, rotate: u, rotateX: d, rotateY: h, skewX: p, skewY: y } = n;
|
|
9041
|
+
c && (r = `perspective(${c}px) ${r}`), u && (r += `rotate(${u}deg) `), d && (r += `rotateX(${d}deg) `), h && (r += `rotateY(${h}deg) `), p && (r += `skewX(${p}deg) `), y && (r += `skewY(${y}deg) `);
|
|
9042
9042
|
}
|
|
9043
9043
|
const a = e.x.scale * t.x, l = e.y.scale * t.y;
|
|
9044
9044
|
return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none";
|
|
@@ -9094,22 +9094,22 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9094
9094
|
this.isSVG = _u(s) && !p1(s), this.instance = s;
|
|
9095
9095
|
const { layoutId: a, layout: l, visualElement: c } = this.options;
|
|
9096
9096
|
if (c && !c.current && c.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), e) {
|
|
9097
|
-
let u,
|
|
9097
|
+
let u, d = 0;
|
|
9098
9098
|
const h = () => this.root.updateBlockedByResize = !1;
|
|
9099
9099
|
ee.read(() => {
|
|
9100
|
-
|
|
9100
|
+
d = window.innerWidth;
|
|
9101
9101
|
}), e(s, () => {
|
|
9102
9102
|
const p = window.innerWidth;
|
|
9103
|
-
p !==
|
|
9103
|
+
p !== d && (d = p, this.root.updateBlockedByResize = !0, u && u(), u = dw(h, 250), Tr.hasAnimatedSinceResize && (Tr.hasAnimatedSinceResize = !1, this.nodes.forEach(wl)));
|
|
9104
9104
|
});
|
|
9105
9105
|
}
|
|
9106
|
-
a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged:
|
|
9106
|
+
a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: d, hasRelativeLayoutChanged: h, layout: p }) => {
|
|
9107
9107
|
if (this.isTreeAnimationBlocked()) {
|
|
9108
9108
|
this.target = void 0, this.relativeTarget = void 0;
|
|
9109
9109
|
return;
|
|
9110
9110
|
}
|
|
9111
|
-
const y = this.options.transition || c.getDefaultTransition() || kw, { onLayoutAnimationStart: m, onLayoutAnimationComplete: g } = c.getProps(), v = !this.targetLayout || !Td(this.targetLayout, p), T = !
|
|
9112
|
-
if (this.options.layoutRoot || this.resumeFrom || T ||
|
|
9111
|
+
const y = this.options.transition || c.getDefaultTransition() || kw, { onLayoutAnimationStart: m, onLayoutAnimationComplete: g } = c.getProps(), v = !this.targetLayout || !Td(this.targetLayout, p), T = !d && h;
|
|
9112
|
+
if (this.options.layoutRoot || this.resumeFrom || T || d && (v || !this.currentAnimation)) {
|
|
9113
9113
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
9114
9114
|
const w = {
|
|
9115
9115
|
...ns(y, "layout"),
|
|
@@ -9118,7 +9118,7 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9118
9118
|
};
|
|
9119
9119
|
(c.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w), this.setAnimationOrigin(u, T);
|
|
9120
9120
|
} else
|
|
9121
|
-
|
|
9121
|
+
d || wl(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
9122
9122
|
this.targetLayout = p;
|
|
9123
9123
|
});
|
|
9124
9124
|
}
|
|
@@ -9157,8 +9157,8 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9157
9157
|
return;
|
|
9158
9158
|
this.isLayoutDirty = !0;
|
|
9159
9159
|
for (let u = 0; u < this.path.length; u++) {
|
|
9160
|
-
const
|
|
9161
|
-
|
|
9160
|
+
const d = this.path[u];
|
|
9161
|
+
d.shouldResetTransform = !0, d.updateScroll("snapshot"), d.options.layoutRoot && d.willUpdate(!1);
|
|
9162
9162
|
}
|
|
9163
9163
|
const { layoutId: a, layout: l } = this.options;
|
|
9164
9164
|
if (a === void 0 && !l)
|
|
@@ -9256,8 +9256,8 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9256
9256
|
if (Ne(a, s), this.scroll?.wasRoot)
|
|
9257
9257
|
return a;
|
|
9258
9258
|
for (let l = 0; l < this.path.length; l++) {
|
|
9259
|
-
const c = this.path[l], { scroll: u, options:
|
|
9260
|
-
c !== this.root && u &&
|
|
9259
|
+
const c = this.path[l], { scroll: u, options: d } = c;
|
|
9260
|
+
c !== this.root && u && d.layoutScroll && (u.wasRoot && Ne(a, s), an(a.x, u.offset.x), an(a.y, u.offset.y));
|
|
9261
9261
|
}
|
|
9262
9262
|
return a;
|
|
9263
9263
|
}
|
|
@@ -9281,8 +9281,8 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9281
9281
|
if (!c.instance || !It(c.latestValues))
|
|
9282
9282
|
continue;
|
|
9283
9283
|
ii(c.latestValues) && c.updateSnapshot();
|
|
9284
|
-
const u = ce(),
|
|
9285
|
-
Ne(u,
|
|
9284
|
+
const u = ce(), d = c.measurePageBox();
|
|
9285
|
+
Ne(u, d), fl(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
9286
9286
|
}
|
|
9287
9287
|
return It(this.latestValues) && fl(a, this.latestValues), a;
|
|
9288
9288
|
}
|
|
@@ -9308,8 +9308,8 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9308
9308
|
const l = !!this.resumingFrom || this !== a;
|
|
9309
9309
|
if (!(s || l && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
|
|
9310
9310
|
return;
|
|
9311
|
-
const { layout: u, layoutId:
|
|
9312
|
-
if (!(!this.layout || !(u ||
|
|
9311
|
+
const { layout: u, layoutId: d } = this.options;
|
|
9312
|
+
if (!(!this.layout || !(u || d))) {
|
|
9313
9313
|
if (this.resolvedRelativeTargetAt = xe.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
9314
9314
|
const h = this.getClosestProjectingParent();
|
|
9315
9315
|
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ce(), this.relativeTargetOrigin = ce(), Nn(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), Ne(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -9337,14 +9337,14 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9337
9337
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u))
|
|
9338
9338
|
return;
|
|
9339
9339
|
Ne(this.layoutCorrected, this.layout.layoutBox);
|
|
9340
|
-
const
|
|
9340
|
+
const d = this.treeScale.x, h = this.treeScale.y;
|
|
9341
9341
|
nb(this.layoutCorrected, this.treeScale, this.path, a), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms = ce());
|
|
9342
9342
|
const { target: p } = s;
|
|
9343
9343
|
if (!p) {
|
|
9344
9344
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
9345
9345
|
return;
|
|
9346
9346
|
}
|
|
9347
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (cl(this.prevProjectionDelta.x, this.projectionDelta.x), cl(this.prevProjectionDelta.y, this.projectionDelta.y)), In(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !==
|
|
9347
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (cl(this.prevProjectionDelta.x, this.projectionDelta.x), cl(this.prevProjectionDelta.y, this.projectionDelta.y)), In(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== h || !yl(this.projectionDelta.x, this.prevProjectionDelta.x) || !yl(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p));
|
|
9348
9348
|
}
|
|
9349
9349
|
hide() {
|
|
9350
9350
|
this.isVisible = !1;
|
|
@@ -9363,14 +9363,14 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9363
9363
|
this.prevProjectionDelta = cn(), this.projectionDelta = cn(), this.projectionDeltaWithTransform = cn();
|
|
9364
9364
|
}
|
|
9365
9365
|
setAnimationOrigin(s, a = !1) {
|
|
9366
|
-
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues },
|
|
9366
|
+
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = cn();
|
|
9367
9367
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
9368
9368
|
const h = ce(), p = l ? l.source : void 0, y = this.layout ? this.layout.source : void 0, m = p !== y, g = this.getStack(), v = !g || g.members.length <= 1, T = !!(m && !v && this.options.crossfade === !0 && !this.path.some(Nw));
|
|
9369
9369
|
this.animationProgress = 0;
|
|
9370
9370
|
let w;
|
|
9371
9371
|
this.mixTargetDelta = (P) => {
|
|
9372
9372
|
const b = P / 1e3;
|
|
9373
|
-
Tl(
|
|
9373
|
+
Tl(d.x, s.x, b), Tl(d.y, s.y, b), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Nn(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Iw(this.relativeTarget, this.relativeTargetOrigin, h, b), w && bw(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = ce()), Ne(w, this.relativeTarget)), m && (this.animationValues = u, hw(u, c, this.latestValues, b, T, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = b;
|
|
9374
9374
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
9375
9375
|
}
|
|
9376
9376
|
startAnimation(s) {
|
|
@@ -9404,8 +9404,8 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9404
9404
|
if (!(!a || !l || !c)) {
|
|
9405
9405
|
if (this !== s && this.layout && c && Sd(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
|
|
9406
9406
|
l = this.target || ce();
|
|
9407
|
-
const
|
|
9408
|
-
l.x.min = s.target.x.min, l.x.max = l.x.min +
|
|
9407
|
+
const d = Ce(this.layout.layoutBox.x);
|
|
9408
|
+
l.x.min = s.target.x.min, l.x.max = l.x.min + d;
|
|
9409
9409
|
const h = Ce(this.layout.layoutBox.y);
|
|
9410
9410
|
l.y.min = s.target.y.min, l.y.max = l.y.min + h;
|
|
9411
9411
|
}
|
|
@@ -9482,14 +9482,14 @@ function xd({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
9482
9482
|
s.visibility = "";
|
|
9483
9483
|
const u = c.animationValues || c.latestValues;
|
|
9484
9484
|
this.applyTransformsToTarget();
|
|
9485
|
-
let
|
|
9486
|
-
l && (
|
|
9485
|
+
let d = Tw(this.projectionDeltaWithTransform, this.treeScale, u);
|
|
9486
|
+
l && (d = l(u, d)), s.transform = d;
|
|
9487
9487
|
const { x: h, y: p } = this.projectionDelta;
|
|
9488
9488
|
s.transformOrigin = `${h.origin * 100}% ${p.origin * 100}% 0`, c.animationValues ? s.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : s.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
|
|
9489
9489
|
for (const y in Wn) {
|
|
9490
9490
|
if (u[y] === void 0)
|
|
9491
9491
|
continue;
|
|
9492
|
-
const { correct: m, applyTo: g, isCSSVariable: v } = Wn[y], T =
|
|
9492
|
+
const { correct: m, applyTo: g, isCSSVariable: v } = Wn[y], T = d === "none" ? u[y] : m(u[y], c);
|
|
9493
9493
|
if (g) {
|
|
9494
9494
|
const w = g.length;
|
|
9495
9495
|
for (let P = 0; P < w; P++)
|
|
@@ -9516,11 +9516,11 @@ function Aw(e) {
|
|
|
9516
9516
|
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
9517
9517
|
const { layoutBox: n, measuredBox: r } = e.layout, { animationType: o } = e.options, i = t.source !== e.layout.source;
|
|
9518
9518
|
o === "size" ? ke((u) => {
|
|
9519
|
-
const
|
|
9520
|
-
|
|
9519
|
+
const d = i ? t.measuredBox[u] : t.layoutBox[u], h = Ce(d);
|
|
9520
|
+
d.min = n[u].min, d.max = d.min + h;
|
|
9521
9521
|
}) : Sd(o, t.layoutBox, n) && ke((u) => {
|
|
9522
|
-
const
|
|
9523
|
-
|
|
9522
|
+
const d = i ? t.measuredBox[u] : t.layoutBox[u], h = Ce(n[u]);
|
|
9523
|
+
d.max = d.min + h, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[u].max = e.relativeTarget[u].min + h);
|
|
9524
9524
|
});
|
|
9525
9525
|
const s = cn();
|
|
9526
9526
|
In(s, n, t.layoutBox);
|
|
@@ -9531,10 +9531,10 @@ function Aw(e) {
|
|
|
9531
9531
|
if (!e.resumeFrom) {
|
|
9532
9532
|
const u = e.getClosestProjectingParent();
|
|
9533
9533
|
if (u && !u.resumeFrom) {
|
|
9534
|
-
const { snapshot:
|
|
9535
|
-
if (
|
|
9534
|
+
const { snapshot: d, layout: h } = u;
|
|
9535
|
+
if (d && h) {
|
|
9536
9536
|
const p = ce();
|
|
9537
|
-
Nn(p, t.layoutBox,
|
|
9537
|
+
Nn(p, t.layoutBox, d.layoutBox);
|
|
9538
9538
|
const y = ce();
|
|
9539
9539
|
Nn(y, n, h.layoutBox), Td(p, y) || (c = !0), u.options.layoutRoot && (e.relativeTarget = y, e.relativeTargetOrigin = p, e.relativeParent = u);
|
|
9540
9540
|
}
|
|
@@ -9740,7 +9740,7 @@ class Yw extends Ct {
|
|
|
9740
9740
|
if (this.isInView === c || (this.isInView = c, i && !c && this.hasEnteredView))
|
|
9741
9741
|
return;
|
|
9742
9742
|
c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c);
|
|
9743
|
-
const { onViewportEnter: u, onViewportLeave:
|
|
9743
|
+
const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), h = c ? u : d;
|
|
9744
9744
|
h && h(l);
|
|
9745
9745
|
};
|
|
9746
9746
|
return Kw(this.node.current, s, a);
|
|
@@ -9834,14 +9834,14 @@ function Pd({
|
|
|
9834
9834
|
fieldClassName: l,
|
|
9835
9835
|
onChange: c,
|
|
9836
9836
|
onFocus: u,
|
|
9837
|
-
onBlur:
|
|
9837
|
+
onBlur: d
|
|
9838
9838
|
}) {
|
|
9839
9839
|
const { isLoading: h } = _r(), { isSubmitting: p } = Yt(), [y, m] = Kn(e), g = (w) => {
|
|
9840
9840
|
typeof c < "u" && c(w), y.onChange(w);
|
|
9841
9841
|
}, v = (w) => {
|
|
9842
9842
|
typeof u < "u" && u(w);
|
|
9843
9843
|
}, T = (w) => {
|
|
9844
|
-
typeof
|
|
9844
|
+
typeof d < "u" && d(w), y.onBlur(w);
|
|
9845
9845
|
};
|
|
9846
9846
|
return /* @__PURE__ */ H("div", { className: wt(eT, a || ""), children: [
|
|
9847
9847
|
/* @__PURE__ */ E(
|
|
@@ -9854,6 +9854,7 @@ function Pd({
|
|
|
9854
9854
|
placeholder: t,
|
|
9855
9855
|
...n === "text" ? { maxLength: o } : { max: o },
|
|
9856
9856
|
disabled: h || r || p,
|
|
9857
|
+
"data-testid": `input-${e}`,
|
|
9857
9858
|
"data-is-loading": h,
|
|
9858
9859
|
"data-has-error": !!m.error && m.touched,
|
|
9859
9860
|
"data-has-prefix-icon": !!i,
|
|
@@ -9869,6 +9870,7 @@ function Pd({
|
|
|
9869
9870
|
/* @__PURE__ */ E(
|
|
9870
9871
|
Ii,
|
|
9871
9872
|
{
|
|
9873
|
+
"data-testid": `error-${e}`,
|
|
9872
9874
|
name: e,
|
|
9873
9875
|
component: "span",
|
|
9874
9876
|
className: Ni
|
|
@@ -9927,14 +9929,14 @@ function dT({
|
|
|
9927
9929
|
className: a,
|
|
9928
9930
|
onChange: l
|
|
9929
9931
|
}) {
|
|
9930
|
-
const { isLoading: c } = _r(), { isSubmitting: u } = Yt(),
|
|
9932
|
+
const { isLoading: c } = _r(), { isSubmitting: u } = Yt(), d = be(null), [h, p] = Kn(e);
|
|
9931
9933
|
ue(() => {
|
|
9932
|
-
!i || !
|
|
9933
|
-
}, [i,
|
|
9934
|
+
!i || !d || d.current && (d.current.style.height = "0px", d.current.style.height = `${d.current.scrollHeight}px`);
|
|
9935
|
+
}, [i, d, h.value]);
|
|
9934
9936
|
const y = (g) => {
|
|
9935
9937
|
typeof l < "u" && l(g), h.onChange(g);
|
|
9936
9938
|
}, m = () => {
|
|
9937
|
-
|
|
9939
|
+
d.current?.focus();
|
|
9938
9940
|
};
|
|
9939
9941
|
return /* @__PURE__ */ H("div", { className: `${iT} ${a || ""}`, children: [
|
|
9940
9942
|
/* @__PURE__ */ H(
|
|
@@ -9949,7 +9951,7 @@ function dT({
|
|
|
9949
9951
|
/* @__PURE__ */ E(
|
|
9950
9952
|
Fi,
|
|
9951
9953
|
{
|
|
9952
|
-
innerRef:
|
|
9954
|
+
innerRef: d,
|
|
9953
9955
|
component: "textarea",
|
|
9954
9956
|
rows: o,
|
|
9955
9957
|
className: aT,
|
|
@@ -9982,202 +9984,202 @@ function dT({
|
|
|
9982
9984
|
const fT = /* @__PURE__ */ new Map([
|
|
9983
9985
|
[
|
|
9984
9986
|
"bold",
|
|
9985
|
-
/* @__PURE__ */
|
|
9987
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z" }))
|
|
9986
9988
|
],
|
|
9987
9989
|
[
|
|
9988
9990
|
"duotone",
|
|
9989
|
-
/* @__PURE__ */
|
|
9991
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M160,48V208L80,128Z", opacity: "0.2" }), /* @__PURE__ */ f.createElement("path", { d: "M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z" }))
|
|
9990
9992
|
],
|
|
9991
9993
|
[
|
|
9992
9994
|
"fill",
|
|
9993
|
-
/* @__PURE__ */
|
|
9995
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z" }))
|
|
9994
9996
|
],
|
|
9995
9997
|
[
|
|
9996
9998
|
"light",
|
|
9997
|
-
/* @__PURE__ */
|
|
9999
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z" }))
|
|
9998
10000
|
],
|
|
9999
10001
|
[
|
|
10000
10002
|
"regular",
|
|
10001
|
-
/* @__PURE__ */
|
|
10003
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z" }))
|
|
10002
10004
|
],
|
|
10003
10005
|
[
|
|
10004
10006
|
"thin",
|
|
10005
|
-
/* @__PURE__ */
|
|
10007
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z" }))
|
|
10006
10008
|
]
|
|
10007
10009
|
]), hT = /* @__PURE__ */ new Map([
|
|
10008
10010
|
[
|
|
10009
10011
|
"bold",
|
|
10010
|
-
/* @__PURE__ */
|
|
10012
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z" }))
|
|
10011
10013
|
],
|
|
10012
10014
|
[
|
|
10013
10015
|
"duotone",
|
|
10014
|
-
/* @__PURE__ */
|
|
10016
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M176,128,96,208V48Z", opacity: "0.2" }), /* @__PURE__ */ f.createElement("path", { d: "M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z" }))
|
|
10015
10017
|
],
|
|
10016
10018
|
[
|
|
10017
10019
|
"fill",
|
|
10018
|
-
/* @__PURE__ */
|
|
10020
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z" }))
|
|
10019
10021
|
],
|
|
10020
10022
|
[
|
|
10021
10023
|
"light",
|
|
10022
|
-
/* @__PURE__ */
|
|
10024
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z" }))
|
|
10023
10025
|
],
|
|
10024
10026
|
[
|
|
10025
10027
|
"regular",
|
|
10026
|
-
/* @__PURE__ */
|
|
10028
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" }))
|
|
10027
10029
|
],
|
|
10028
10030
|
[
|
|
10029
10031
|
"thin",
|
|
10030
|
-
/* @__PURE__ */
|
|
10032
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z" }))
|
|
10031
10033
|
]
|
|
10032
10034
|
]), pT = /* @__PURE__ */ new Map([
|
|
10033
10035
|
[
|
|
10034
10036
|
"bold",
|
|
10035
|
-
/* @__PURE__ */
|
|
10037
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z" }))
|
|
10036
10038
|
],
|
|
10037
10039
|
[
|
|
10038
10040
|
"duotone",
|
|
10039
|
-
/* @__PURE__ */
|
|
10041
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
10040
10042
|
"path",
|
|
10041
10043
|
{
|
|
10042
10044
|
d: "M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",
|
|
10043
10045
|
opacity: "0.2"
|
|
10044
10046
|
}
|
|
10045
|
-
), /* @__PURE__ */
|
|
10047
|
+
), /* @__PURE__ */ f.createElement("path", { d: "M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
10046
10048
|
],
|
|
10047
10049
|
[
|
|
10048
10050
|
"fill",
|
|
10049
|
-
/* @__PURE__ */
|
|
10051
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
10050
10052
|
],
|
|
10051
10053
|
[
|
|
10052
10054
|
"light",
|
|
10053
|
-
/* @__PURE__ */
|
|
10055
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z" }))
|
|
10054
10056
|
],
|
|
10055
10057
|
[
|
|
10056
10058
|
"regular",
|
|
10057
|
-
/* @__PURE__ */
|
|
10059
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" }))
|
|
10058
10060
|
],
|
|
10059
10061
|
[
|
|
10060
10062
|
"thin",
|
|
10061
|
-
/* @__PURE__ */
|
|
10063
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z" }))
|
|
10062
10064
|
]
|
|
10063
10065
|
]), mT = /* @__PURE__ */ new Map([
|
|
10064
10066
|
[
|
|
10065
10067
|
"bold",
|
|
10066
|
-
/* @__PURE__ */
|
|
10068
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z" }))
|
|
10067
10069
|
],
|
|
10068
10070
|
[
|
|
10069
10071
|
"duotone",
|
|
10070
|
-
/* @__PURE__ */
|
|
10072
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
10071
10073
|
"path",
|
|
10072
10074
|
{
|
|
10073
10075
|
d: "M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",
|
|
10074
10076
|
opacity: "0.2"
|
|
10075
10077
|
}
|
|
10076
|
-
), /* @__PURE__ */
|
|
10078
|
+
), /* @__PURE__ */ f.createElement("path", { d: "M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z" }))
|
|
10077
10079
|
],
|
|
10078
10080
|
[
|
|
10079
10081
|
"fill",
|
|
10080
|
-
/* @__PURE__ */
|
|
10082
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z" }))
|
|
10081
10083
|
],
|
|
10082
10084
|
[
|
|
10083
10085
|
"light",
|
|
10084
|
-
/* @__PURE__ */
|
|
10086
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z" }))
|
|
10085
10087
|
],
|
|
10086
10088
|
[
|
|
10087
10089
|
"regular",
|
|
10088
|
-
/* @__PURE__ */
|
|
10090
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z" }))
|
|
10089
10091
|
],
|
|
10090
10092
|
[
|
|
10091
10093
|
"thin",
|
|
10092
|
-
/* @__PURE__ */
|
|
10094
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z" }))
|
|
10093
10095
|
]
|
|
10094
10096
|
]), gT = /* @__PURE__ */ new Map([
|
|
10095
10097
|
[
|
|
10096
10098
|
"bold",
|
|
10097
|
-
/* @__PURE__ */
|
|
10099
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z" }))
|
|
10098
10100
|
],
|
|
10099
10101
|
[
|
|
10100
10102
|
"duotone",
|
|
10101
|
-
/* @__PURE__ */
|
|
10103
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ f.createElement("path", { d: "M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z" }))
|
|
10102
10104
|
],
|
|
10103
10105
|
[
|
|
10104
10106
|
"fill",
|
|
10105
|
-
/* @__PURE__ */
|
|
10107
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z" }))
|
|
10106
10108
|
],
|
|
10107
10109
|
[
|
|
10108
10110
|
"light",
|
|
10109
|
-
/* @__PURE__ */
|
|
10111
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z" }))
|
|
10110
10112
|
],
|
|
10111
10113
|
[
|
|
10112
10114
|
"regular",
|
|
10113
|
-
/* @__PURE__ */
|
|
10115
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z" }))
|
|
10114
10116
|
],
|
|
10115
10117
|
[
|
|
10116
10118
|
"thin",
|
|
10117
|
-
/* @__PURE__ */
|
|
10119
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z" }))
|
|
10118
10120
|
]
|
|
10119
10121
|
]), yT = /* @__PURE__ */ new Map([
|
|
10120
10122
|
[
|
|
10121
10123
|
"bold",
|
|
10122
|
-
/* @__PURE__ */
|
|
10124
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z" }))
|
|
10123
10125
|
],
|
|
10124
10126
|
[
|
|
10125
10127
|
"duotone",
|
|
10126
|
-
/* @__PURE__ */
|
|
10128
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
10127
10129
|
"path",
|
|
10128
10130
|
{
|
|
10129
10131
|
d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
|
|
10130
10132
|
opacity: "0.2"
|
|
10131
10133
|
}
|
|
10132
|
-
), /* @__PURE__ */
|
|
10134
|
+
), /* @__PURE__ */ f.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
10133
10135
|
],
|
|
10134
10136
|
[
|
|
10135
10137
|
"fill",
|
|
10136
|
-
/* @__PURE__ */
|
|
10138
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
10137
10139
|
],
|
|
10138
10140
|
[
|
|
10139
10141
|
"light",
|
|
10140
|
-
/* @__PURE__ */
|
|
10142
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z" }))
|
|
10141
10143
|
],
|
|
10142
10144
|
[
|
|
10143
10145
|
"regular",
|
|
10144
|
-
/* @__PURE__ */
|
|
10146
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
10145
10147
|
],
|
|
10146
10148
|
[
|
|
10147
10149
|
"thin",
|
|
10148
|
-
/* @__PURE__ */
|
|
10150
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z" }))
|
|
10149
10151
|
]
|
|
10150
10152
|
]), vT = /* @__PURE__ */ new Map([
|
|
10151
10153
|
[
|
|
10152
10154
|
"bold",
|
|
10153
|
-
/* @__PURE__ */
|
|
10155
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" }))
|
|
10154
10156
|
],
|
|
10155
10157
|
[
|
|
10156
10158
|
"duotone",
|
|
10157
|
-
/* @__PURE__ */
|
|
10159
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ f.createElement("path", { d: "M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))
|
|
10158
10160
|
],
|
|
10159
10161
|
[
|
|
10160
10162
|
"fill",
|
|
10161
|
-
/* @__PURE__ */
|
|
10163
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
10162
10164
|
],
|
|
10163
10165
|
[
|
|
10164
10166
|
"light",
|
|
10165
|
-
/* @__PURE__ */
|
|
10167
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z" }))
|
|
10166
10168
|
],
|
|
10167
10169
|
[
|
|
10168
10170
|
"regular",
|
|
10169
|
-
/* @__PURE__ */
|
|
10171
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))
|
|
10170
10172
|
],
|
|
10171
10173
|
[
|
|
10172
10174
|
"thin",
|
|
10173
|
-
/* @__PURE__ */
|
|
10175
|
+
/* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("path", { d: "M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))
|
|
10174
10176
|
]
|
|
10175
10177
|
]), bT = dt({
|
|
10176
10178
|
color: "currentColor",
|
|
10177
10179
|
size: "1em",
|
|
10178
10180
|
weight: "regular",
|
|
10179
10181
|
mirrored: !1
|
|
10180
|
-
}), Mt =
|
|
10182
|
+
}), Mt = f.forwardRef(
|
|
10181
10183
|
(e, t) => {
|
|
10182
10184
|
const {
|
|
10183
10185
|
alt: n,
|
|
@@ -10190,44 +10192,44 @@ const fT = /* @__PURE__ */ new Map([
|
|
|
10190
10192
|
...c
|
|
10191
10193
|
} = e, {
|
|
10192
10194
|
color: u = "currentColor",
|
|
10193
|
-
size:
|
|
10195
|
+
size: d,
|
|
10194
10196
|
weight: h = "regular",
|
|
10195
10197
|
mirrored: p = !1,
|
|
10196
10198
|
...y
|
|
10197
|
-
} =
|
|
10198
|
-
return /* @__PURE__ */
|
|
10199
|
+
} = f.useContext(bT);
|
|
10200
|
+
return /* @__PURE__ */ f.createElement(
|
|
10199
10201
|
"svg",
|
|
10200
10202
|
{
|
|
10201
10203
|
ref: t,
|
|
10202
10204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10203
|
-
width: o ??
|
|
10204
|
-
height: o ??
|
|
10205
|
+
width: o ?? d,
|
|
10206
|
+
height: o ?? d,
|
|
10205
10207
|
fill: r ?? u,
|
|
10206
10208
|
viewBox: "0 0 256 256",
|
|
10207
10209
|
transform: s || p ? "scale(-1, 1)" : void 0,
|
|
10208
10210
|
...y,
|
|
10209
10211
|
...c
|
|
10210
10212
|
},
|
|
10211
|
-
!!n && /* @__PURE__ */
|
|
10213
|
+
!!n && /* @__PURE__ */ f.createElement("title", null, n),
|
|
10212
10214
|
a,
|
|
10213
10215
|
l.get(i ?? h)
|
|
10214
10216
|
);
|
|
10215
10217
|
}
|
|
10216
10218
|
);
|
|
10217
10219
|
Mt.displayName = "IconBase";
|
|
10218
|
-
const Cd =
|
|
10220
|
+
const Cd = f.forwardRef((e, t) => /* @__PURE__ */ f.createElement(Mt, { ref: t, ...e, weights: fT }));
|
|
10219
10221
|
Cd.displayName = "CaretLeftIcon";
|
|
10220
|
-
const Md =
|
|
10222
|
+
const Md = f.forwardRef((e, t) => /* @__PURE__ */ f.createElement(Mt, { ref: t, ...e, weights: hT }));
|
|
10221
10223
|
Md.displayName = "CaretRightIcon";
|
|
10222
|
-
const Rd =
|
|
10224
|
+
const Rd = f.forwardRef((e, t) => /* @__PURE__ */ f.createElement(Mt, { ref: t, ...e, weights: pT }));
|
|
10223
10225
|
Rd.displayName = "CheckIcon";
|
|
10224
|
-
const Dd =
|
|
10226
|
+
const Dd = f.forwardRef((e, t) => /* @__PURE__ */ f.createElement(Mt, { ref: t, ...e, weights: mT }));
|
|
10225
10227
|
Dd.displayName = "SlidersIcon";
|
|
10226
|
-
const Od =
|
|
10228
|
+
const Od = f.forwardRef((e, t) => /* @__PURE__ */ f.createElement(Mt, { ref: t, ...e, weights: gT }));
|
|
10227
10229
|
Od.displayName = "SpinnerIcon";
|
|
10228
|
-
const Wr =
|
|
10230
|
+
const Wr = f.forwardRef((e, t) => /* @__PURE__ */ f.createElement(Mt, { ref: t, ...e, weights: yT }));
|
|
10229
10231
|
Wr.displayName = "XIcon";
|
|
10230
|
-
const Vd =
|
|
10232
|
+
const Vd = f.forwardRef((e, t) => /* @__PURE__ */ f.createElement(Mt, { ref: t, ...e, weights: vT }));
|
|
10231
10233
|
Vd.displayName = "XCircleIcon";
|
|
10232
10234
|
const wT = "pr-10 truncate", TT = `
|
|
10233
10235
|
border-0 p-0 cursor-pointer
|
|
@@ -10251,7 +10253,7 @@ function Fd({
|
|
|
10251
10253
|
onChange: l,
|
|
10252
10254
|
onClear: c,
|
|
10253
10255
|
onFocus: u,
|
|
10254
|
-
onBlur:
|
|
10256
|
+
onBlur: d
|
|
10255
10257
|
}) {
|
|
10256
10258
|
const [, h, p] = Kn(e), y = (g) => {
|
|
10257
10259
|
typeof l < "u" && l(g);
|
|
@@ -10272,7 +10274,7 @@ function Fd({
|
|
|
10272
10274
|
fieldClassName: wT,
|
|
10273
10275
|
onChange: y,
|
|
10274
10276
|
onFocus: u,
|
|
10275
|
-
onBlur:
|
|
10277
|
+
onBlur: d
|
|
10276
10278
|
}
|
|
10277
10279
|
),
|
|
10278
10280
|
n && /* @__PURE__ */ E(Od, { className: xT }),
|
|
@@ -10318,10 +10320,12 @@ function MT({
|
|
|
10318
10320
|
onChange: i,
|
|
10319
10321
|
onFocus: s
|
|
10320
10322
|
}) {
|
|
10321
|
-
const { isLoading: a } = _r(), { isSubmitting: l } = Yt(), [
|
|
10322
|
-
typeof i < "u" && i(
|
|
10323
|
-
|
|
10324
|
-
|
|
10323
|
+
const { isLoading: a } = _r(), { isSubmitting: l, validateField: c } = Yt(), [u, d] = Kn(e), h = (y) => {
|
|
10324
|
+
typeof i < "u" && i(y), u.onChange(y), setTimeout(() => {
|
|
10325
|
+
u.onBlur(y), c(e);
|
|
10326
|
+
}, 0);
|
|
10327
|
+
}, p = (y) => {
|
|
10328
|
+
typeof s < "u" && s(y);
|
|
10325
10329
|
};
|
|
10326
10330
|
return /* @__PURE__ */ H("div", { className: wt(ST, n || ""), "data-is-disabled": o, children: [
|
|
10327
10331
|
/* @__PURE__ */ H("label", { className: PT, children: [
|
|
@@ -10331,10 +10335,11 @@ function MT({
|
|
|
10331
10335
|
type: "checkbox",
|
|
10332
10336
|
name: e,
|
|
10333
10337
|
className: wt(AT, r || ""),
|
|
10334
|
-
onChange:
|
|
10335
|
-
onFocus:
|
|
10336
|
-
"data-has-error": !!
|
|
10337
|
-
disabled: a || o || l
|
|
10338
|
+
onChange: h,
|
|
10339
|
+
onFocus: p,
|
|
10340
|
+
"data-has-error": !!d.error && d.touched,
|
|
10341
|
+
disabled: a || o || l,
|
|
10342
|
+
"data-testid": `checkbox-${e}`
|
|
10338
10343
|
}
|
|
10339
10344
|
),
|
|
10340
10345
|
t && /* @__PURE__ */ E(Bt, { children: t }),
|
|
@@ -10343,6 +10348,7 @@ function MT({
|
|
|
10343
10348
|
/* @__PURE__ */ E(
|
|
10344
10349
|
Ii,
|
|
10345
10350
|
{
|
|
10351
|
+
"data-testid": `error-${e}`,
|
|
10346
10352
|
name: e,
|
|
10347
10353
|
component: "span",
|
|
10348
10354
|
className: Ni
|
|
@@ -10371,7 +10377,16 @@ function Ml({
|
|
|
10371
10377
|
options: t,
|
|
10372
10378
|
onSelect: n
|
|
10373
10379
|
}) {
|
|
10374
|
-
return e ? /* @__PURE__ */ E("div", { className: RT, children: /* @__PURE__ */ E("ul", { className: DT, children: t.map((r) => /* @__PURE__ */ E(
|
|
10380
|
+
return e ? /* @__PURE__ */ E("div", { className: RT, children: /* @__PURE__ */ E("ul", { className: DT, children: t.map((r, o) => /* @__PURE__ */ E(
|
|
10381
|
+
"li",
|
|
10382
|
+
{
|
|
10383
|
+
className: OT,
|
|
10384
|
+
onClick: () => n(r.value),
|
|
10385
|
+
"data-testid": `search-select-option-${o}`,
|
|
10386
|
+
children: r.label
|
|
10387
|
+
},
|
|
10388
|
+
r.key
|
|
10389
|
+
)) }) }) : null;
|
|
10375
10390
|
}
|
|
10376
10391
|
const VT = "relative group/search-and-select min-w-0 w-full";
|
|
10377
10392
|
function FT({
|
|
@@ -10386,7 +10401,7 @@ function FT({
|
|
|
10386
10401
|
maxLength: l = 255,
|
|
10387
10402
|
prefixIcon: c,
|
|
10388
10403
|
suffixIcon: u,
|
|
10389
|
-
className:
|
|
10404
|
+
className: d,
|
|
10390
10405
|
onChange: h,
|
|
10391
10406
|
onClear: p,
|
|
10392
10407
|
onFocus: y,
|
|
@@ -10430,7 +10445,7 @@ function FT({
|
|
|
10430
10445
|
maxLength: l,
|
|
10431
10446
|
prefixIcon: c,
|
|
10432
10447
|
suffixIcon: v ? void 0 : u,
|
|
10433
|
-
className:
|
|
10448
|
+
className: d,
|
|
10434
10449
|
onChange: h,
|
|
10435
10450
|
onClear: p,
|
|
10436
10451
|
onBlur: C,
|
|
@@ -10458,7 +10473,7 @@ function IT({
|
|
|
10458
10473
|
className: a,
|
|
10459
10474
|
children: l
|
|
10460
10475
|
}) {
|
|
10461
|
-
const [c, u] = _e(null),
|
|
10476
|
+
const [c, u] = _e(null), d = (p) => {
|
|
10462
10477
|
u(p);
|
|
10463
10478
|
}, h = (p, y) => {
|
|
10464
10479
|
typeof s < "u" ? s(p).finally(() => {
|
|
@@ -10468,7 +10483,7 @@ function IT({
|
|
|
10468
10483
|
return /* @__PURE__ */ E(
|
|
10469
10484
|
Wc.Provider,
|
|
10470
10485
|
{
|
|
10471
|
-
value: { isLoading: e, isForcedDirty: i, onNavigationEvent:
|
|
10486
|
+
value: { isLoading: e, isForcedDirty: i, onNavigationEvent: d },
|
|
10472
10487
|
children: /* @__PURE__ */ E(
|
|
10473
10488
|
ty,
|
|
10474
10489
|
{
|
|
@@ -10560,7 +10575,7 @@ const zT = ({
|
|
|
10560
10575
|
rightArrowAriaLabel: n,
|
|
10561
10576
|
children: r
|
|
10562
10577
|
}) => {
|
|
10563
|
-
const { isFiltersDialogOpen: o } = ys(), [i, s] = _e(e), [a, l] = _e(o), [c, u] = _e(!1), [
|
|
10578
|
+
const { isFiltersDialogOpen: o } = ys(), [i, s] = _e(e), [a, l] = _e(o), [c, u] = _e(!1), [d, h] = _e(!0), p = be(null);
|
|
10564
10579
|
return ue(() => {
|
|
10565
10580
|
l(o);
|
|
10566
10581
|
}, [o]), ue(() => {
|
|
@@ -10581,7 +10596,7 @@ const zT = ({
|
|
|
10581
10596
|
ref: p,
|
|
10582
10597
|
onScroll: (v) => {
|
|
10583
10598
|
const T = Dl, w = v.currentTarget.scrollWidth - v.currentTarget.offsetWidth - Dl;
|
|
10584
|
-
v.currentTarget.scrollLeft > T && !c ? u(!0) : v.currentTarget.scrollLeft < T && c && u(!1), v.currentTarget.scrollLeft < w && !
|
|
10599
|
+
v.currentTarget.scrollLeft > T && !c ? u(!0) : v.currentTarget.scrollLeft < T && c && u(!1), v.currentTarget.scrollLeft < w && !d ? h(!0) : v.currentTarget.scrollLeft > w && d && h(!1);
|
|
10585
10600
|
},
|
|
10586
10601
|
tabIndex: 0,
|
|
10587
10602
|
children: [
|
|
@@ -10601,7 +10616,7 @@ const zT = ({
|
|
|
10601
10616
|
}
|
|
10602
10617
|
) }),
|
|
10603
10618
|
r,
|
|
10604
|
-
|
|
10619
|
+
d && /* @__PURE__ */ E("li", { className: UT, children: /* @__PURE__ */ E(
|
|
10605
10620
|
"button",
|
|
10606
10621
|
{
|
|
10607
10622
|
"data-testid": "right-arrow-button",
|
|
@@ -10702,16 +10717,16 @@ function kd(...e) {
|
|
|
10702
10717
|
};
|
|
10703
10718
|
}
|
|
10704
10719
|
function Re(...e) {
|
|
10705
|
-
return
|
|
10720
|
+
return f.useCallback(kd(...e), e);
|
|
10706
10721
|
}
|
|
10707
10722
|
function XT(e, t) {
|
|
10708
|
-
const n =
|
|
10709
|
-
const { children: s, ...a } = i, l =
|
|
10723
|
+
const n = f.createContext(t), r = (i) => {
|
|
10724
|
+
const { children: s, ...a } = i, l = f.useMemo(() => a, Object.values(a));
|
|
10710
10725
|
return /* @__PURE__ */ E(n.Provider, { value: l, children: s });
|
|
10711
10726
|
};
|
|
10712
10727
|
r.displayName = e + "Provider";
|
|
10713
10728
|
function o(i) {
|
|
10714
|
-
const s =
|
|
10729
|
+
const s = f.useContext(n);
|
|
10715
10730
|
if (s) return s;
|
|
10716
10731
|
if (t !== void 0) return t;
|
|
10717
10732
|
throw new Error(`\`${i}\` must be used within \`${e}\``);
|
|
@@ -10721,26 +10736,26 @@ function XT(e, t) {
|
|
|
10721
10736
|
function vs(e, t = []) {
|
|
10722
10737
|
let n = [];
|
|
10723
10738
|
function r(i, s) {
|
|
10724
|
-
const a =
|
|
10739
|
+
const a = f.createContext(s), l = n.length;
|
|
10725
10740
|
n = [...n, s];
|
|
10726
|
-
const c = (
|
|
10727
|
-
const { scope: h, children: p, ...y } =
|
|
10741
|
+
const c = (d) => {
|
|
10742
|
+
const { scope: h, children: p, ...y } = d, m = h?.[e]?.[l] || a, g = f.useMemo(() => y, Object.values(y));
|
|
10728
10743
|
return /* @__PURE__ */ E(m.Provider, { value: g, children: p });
|
|
10729
10744
|
};
|
|
10730
10745
|
c.displayName = i + "Provider";
|
|
10731
|
-
function u(
|
|
10732
|
-
const p = h?.[e]?.[l] || a, y =
|
|
10746
|
+
function u(d, h) {
|
|
10747
|
+
const p = h?.[e]?.[l] || a, y = f.useContext(p);
|
|
10733
10748
|
if (y) return y;
|
|
10734
10749
|
if (s !== void 0) return s;
|
|
10735
|
-
throw new Error(`\`${
|
|
10750
|
+
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
10736
10751
|
}
|
|
10737
10752
|
return [c, u];
|
|
10738
10753
|
}
|
|
10739
10754
|
const o = () => {
|
|
10740
|
-
const i = n.map((s) =>
|
|
10755
|
+
const i = n.map((s) => f.createContext(s));
|
|
10741
10756
|
return function(a) {
|
|
10742
10757
|
const l = a?.[e] || i;
|
|
10743
|
-
return
|
|
10758
|
+
return f.useMemo(
|
|
10744
10759
|
() => ({ [`__scope${e}`]: { ...a, [e]: l } }),
|
|
10745
10760
|
[a, l]
|
|
10746
10761
|
);
|
|
@@ -10758,24 +10773,24 @@ function qT(...e) {
|
|
|
10758
10773
|
}));
|
|
10759
10774
|
return function(i) {
|
|
10760
10775
|
const s = r.reduce((a, { useScope: l, scopeName: c }) => {
|
|
10761
|
-
const
|
|
10762
|
-
return { ...a, ...
|
|
10776
|
+
const d = l(i)[`__scope${c}`];
|
|
10777
|
+
return { ...a, ...d };
|
|
10763
10778
|
}, {});
|
|
10764
|
-
return
|
|
10779
|
+
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
10765
10780
|
};
|
|
10766
10781
|
};
|
|
10767
10782
|
return n.scopeName = t.scopeName, n;
|
|
10768
10783
|
}
|
|
10769
|
-
var At = globalThis?.document ?
|
|
10770
|
-
}, QT =
|
|
10784
|
+
var At = globalThis?.document ? f.useLayoutEffect : () => {
|
|
10785
|
+
}, QT = f[" useId ".trim().toString()] || (() => {
|
|
10771
10786
|
}), JT = 0;
|
|
10772
10787
|
function Eo(e) {
|
|
10773
|
-
const [t, n] =
|
|
10788
|
+
const [t, n] = f.useState(QT());
|
|
10774
10789
|
return At(() => {
|
|
10775
10790
|
n((r) => r ?? String(JT++));
|
|
10776
10791
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
10777
10792
|
}
|
|
10778
|
-
var eE =
|
|
10793
|
+
var eE = f[" useInsertionEffect ".trim().toString()] || At;
|
|
10779
10794
|
function Ld({
|
|
10780
10795
|
prop: e,
|
|
10781
10796
|
defaultProp: t,
|
|
@@ -10788,19 +10803,19 @@ function Ld({
|
|
|
10788
10803
|
onChange: n
|
|
10789
10804
|
}), a = e !== void 0, l = a ? e : o;
|
|
10790
10805
|
{
|
|
10791
|
-
const u =
|
|
10792
|
-
|
|
10793
|
-
const
|
|
10794
|
-
|
|
10795
|
-
`${r} is changing from ${
|
|
10806
|
+
const u = f.useRef(e !== void 0);
|
|
10807
|
+
f.useEffect(() => {
|
|
10808
|
+
const d = u.current;
|
|
10809
|
+
d !== a && console.warn(
|
|
10810
|
+
`${r} is changing from ${d ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
10796
10811
|
), u.current = a;
|
|
10797
10812
|
}, [a, r]);
|
|
10798
10813
|
}
|
|
10799
|
-
const c =
|
|
10814
|
+
const c = f.useCallback(
|
|
10800
10815
|
(u) => {
|
|
10801
10816
|
if (a) {
|
|
10802
|
-
const
|
|
10803
|
-
|
|
10817
|
+
const d = nE(u) ? u(e) : u;
|
|
10818
|
+
d !== e && s.current?.(d);
|
|
10804
10819
|
} else
|
|
10805
10820
|
i(u);
|
|
10806
10821
|
},
|
|
@@ -10812,10 +10827,10 @@ function tE({
|
|
|
10812
10827
|
defaultProp: e,
|
|
10813
10828
|
onChange: t
|
|
10814
10829
|
}) {
|
|
10815
|
-
const [n, r] =
|
|
10830
|
+
const [n, r] = f.useState(e), o = f.useRef(n), i = f.useRef(t);
|
|
10816
10831
|
return eE(() => {
|
|
10817
10832
|
i.current = t;
|
|
10818
|
-
}, [t]),
|
|
10833
|
+
}, [t]), f.useEffect(() => {
|
|
10819
10834
|
o.current !== n && (i.current?.(n), o.current = n);
|
|
10820
10835
|
}, [n, o]), [n, r, i];
|
|
10821
10836
|
}
|
|
@@ -10824,11 +10839,11 @@ function nE(e) {
|
|
|
10824
10839
|
}
|
|
10825
10840
|
// @__NO_SIDE_EFFECTS__
|
|
10826
10841
|
function Or(e) {
|
|
10827
|
-
const t = /* @__PURE__ */ rE(e), n =
|
|
10828
|
-
const { children: i, ...s } = r, a =
|
|
10842
|
+
const t = /* @__PURE__ */ rE(e), n = f.forwardRef((r, o) => {
|
|
10843
|
+
const { children: i, ...s } = r, a = f.Children.toArray(i), l = a.find(iE);
|
|
10829
10844
|
if (l) {
|
|
10830
|
-
const c = l.props.children, u = a.map((
|
|
10831
|
-
return /* @__PURE__ */ E(t, { ...s, ref: o, children:
|
|
10845
|
+
const c = l.props.children, u = a.map((d) => d === l ? f.Children.count(c) > 1 ? f.Children.only(null) : f.isValidElement(c) ? c.props.children : null : d);
|
|
10846
|
+
return /* @__PURE__ */ E(t, { ...s, ref: o, children: f.isValidElement(c) ? f.cloneElement(c, void 0, u) : null });
|
|
10832
10847
|
}
|
|
10833
10848
|
return /* @__PURE__ */ E(t, { ...s, ref: o, children: i });
|
|
10834
10849
|
});
|
|
@@ -10836,19 +10851,19 @@ function Or(e) {
|
|
|
10836
10851
|
}
|
|
10837
10852
|
// @__NO_SIDE_EFFECTS__
|
|
10838
10853
|
function rE(e) {
|
|
10839
|
-
const t =
|
|
10854
|
+
const t = f.forwardRef((n, r) => {
|
|
10840
10855
|
const { children: o, ...i } = n;
|
|
10841
|
-
if (
|
|
10856
|
+
if (f.isValidElement(o)) {
|
|
10842
10857
|
const s = aE(o), a = sE(i, o.props);
|
|
10843
|
-
return o.type !==
|
|
10858
|
+
return o.type !== f.Fragment && (a.ref = r ? kd(r, s) : s), f.cloneElement(o, a);
|
|
10844
10859
|
}
|
|
10845
|
-
return
|
|
10860
|
+
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
10846
10861
|
});
|
|
10847
10862
|
return t.displayName = `${e}.SlotClone`, t;
|
|
10848
10863
|
}
|
|
10849
10864
|
var oE = /* @__PURE__ */ Symbol("radix.slottable");
|
|
10850
10865
|
function iE(e) {
|
|
10851
|
-
return
|
|
10866
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === oE;
|
|
10852
10867
|
}
|
|
10853
10868
|
function sE(e, t) {
|
|
10854
10869
|
const n = { ...t };
|
|
@@ -10884,7 +10899,7 @@ var lE = [
|
|
|
10884
10899
|
"svg",
|
|
10885
10900
|
"ul"
|
|
10886
10901
|
], we = lE.reduce((e, t) => {
|
|
10887
|
-
const n = /* @__PURE__ */ Or(`Primitive.${t}`), r =
|
|
10902
|
+
const n = /* @__PURE__ */ Or(`Primitive.${t}`), r = f.forwardRef((o, i) => {
|
|
10888
10903
|
const { asChild: s, ...a } = o, l = s ? n : t;
|
|
10889
10904
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ E(l, { ...a, ref: i });
|
|
10890
10905
|
});
|
|
@@ -10894,25 +10909,25 @@ function bs(e, t) {
|
|
|
10894
10909
|
e && Ql.flushSync(() => e.dispatchEvent(t));
|
|
10895
10910
|
}
|
|
10896
10911
|
function We(e) {
|
|
10897
|
-
const t =
|
|
10898
|
-
return
|
|
10912
|
+
const t = f.useRef(e);
|
|
10913
|
+
return f.useEffect(() => {
|
|
10899
10914
|
t.current = e;
|
|
10900
|
-
}),
|
|
10915
|
+
}), f.useMemo(() => (...n) => t.current?.(...n), []);
|
|
10901
10916
|
}
|
|
10902
10917
|
function _d(e, t = globalThis?.document) {
|
|
10903
10918
|
const n = We(e);
|
|
10904
|
-
|
|
10919
|
+
f.useEffect(() => {
|
|
10905
10920
|
const r = (o) => {
|
|
10906
10921
|
o.key === "Escape" && n(o);
|
|
10907
10922
|
};
|
|
10908
10923
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
10909
10924
|
}, [n, t]);
|
|
10910
10925
|
}
|
|
10911
|
-
var cE = "DismissableLayer", pi = "dismissableLayer.update", uE = "dismissableLayer.pointerDownOutside", dE = "dismissableLayer.focusOutside", Vl, $d =
|
|
10926
|
+
var cE = "DismissableLayer", pi = "dismissableLayer.update", uE = "dismissableLayer.pointerDownOutside", dE = "dismissableLayer.focusOutside", Vl, $d = f.createContext({
|
|
10912
10927
|
layers: /* @__PURE__ */ new Set(),
|
|
10913
10928
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
10914
10929
|
branches: /* @__PURE__ */ new Set()
|
|
10915
|
-
}), jd =
|
|
10930
|
+
}), jd = f.forwardRef(
|
|
10916
10931
|
(e, t) => {
|
|
10917
10932
|
const {
|
|
10918
10933
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -10922,7 +10937,7 @@ var cE = "DismissableLayer", pi = "dismissableLayer.update", uE = "dismissableLa
|
|
|
10922
10937
|
onInteractOutside: s,
|
|
10923
10938
|
onDismiss: a,
|
|
10924
10939
|
...l
|
|
10925
|
-
} = e, c =
|
|
10940
|
+
} = e, c = f.useContext($d), [u, d] = f.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), y = Re(t, (S) => d(S)), m = Array.from(c.layers), [g] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(g), T = u ? m.indexOf(u) : -1, w = c.layersWithOutsidePointerEventsDisabled.size > 0, P = T >= v, b = pE((S) => {
|
|
10926
10941
|
const A = S.target, N = [...c.branches].some((j) => j.contains(A));
|
|
10927
10942
|
!P || N || (o?.(S), s?.(S), S.defaultPrevented || a?.());
|
|
10928
10943
|
}, h), C = mE((S) => {
|
|
@@ -10931,14 +10946,14 @@ var cE = "DismissableLayer", pi = "dismissableLayer.update", uE = "dismissableLa
|
|
|
10931
10946
|
}, h);
|
|
10932
10947
|
return _d((S) => {
|
|
10933
10948
|
T === c.layers.size - 1 && (r?.(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
|
|
10934
|
-
}, h),
|
|
10949
|
+
}, h), f.useEffect(() => {
|
|
10935
10950
|
if (u)
|
|
10936
10951
|
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Vl = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), Fl(), () => {
|
|
10937
10952
|
n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Vl);
|
|
10938
10953
|
};
|
|
10939
|
-
}, [u, h, n, c]),
|
|
10954
|
+
}, [u, h, n, c]), f.useEffect(() => () => {
|
|
10940
10955
|
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), Fl());
|
|
10941
|
-
}, [u, c]),
|
|
10956
|
+
}, [u, c]), f.useEffect(() => {
|
|
10942
10957
|
const S = () => p({});
|
|
10943
10958
|
return document.addEventListener(pi, S), () => document.removeEventListener(pi, S);
|
|
10944
10959
|
}, []), /* @__PURE__ */ E(
|
|
@@ -10961,9 +10976,9 @@ var cE = "DismissableLayer", pi = "dismissableLayer.update", uE = "dismissableLa
|
|
|
10961
10976
|
}
|
|
10962
10977
|
);
|
|
10963
10978
|
jd.displayName = cE;
|
|
10964
|
-
var fE = "DismissableLayerBranch", hE =
|
|
10965
|
-
const n =
|
|
10966
|
-
return
|
|
10979
|
+
var fE = "DismissableLayerBranch", hE = f.forwardRef((e, t) => {
|
|
10980
|
+
const n = f.useContext($d), r = f.useRef(null), o = Re(t, r);
|
|
10981
|
+
return f.useEffect(() => {
|
|
10967
10982
|
const i = r.current;
|
|
10968
10983
|
if (i)
|
|
10969
10984
|
return n.branches.add(i), () => {
|
|
@@ -10973,9 +10988,9 @@ var fE = "DismissableLayerBranch", hE = d.forwardRef((e, t) => {
|
|
|
10973
10988
|
});
|
|
10974
10989
|
hE.displayName = fE;
|
|
10975
10990
|
function pE(e, t = globalThis?.document) {
|
|
10976
|
-
const n = We(e), r =
|
|
10991
|
+
const n = We(e), r = f.useRef(!1), o = f.useRef(() => {
|
|
10977
10992
|
});
|
|
10978
|
-
return
|
|
10993
|
+
return f.useEffect(() => {
|
|
10979
10994
|
const i = (a) => {
|
|
10980
10995
|
if (a.target && !r.current) {
|
|
10981
10996
|
let l = function() {
|
|
@@ -11003,8 +11018,8 @@ function pE(e, t = globalThis?.document) {
|
|
|
11003
11018
|
};
|
|
11004
11019
|
}
|
|
11005
11020
|
function mE(e, t = globalThis?.document) {
|
|
11006
|
-
const n = We(e), r =
|
|
11007
|
-
return
|
|
11021
|
+
const n = We(e), r = f.useRef(!1);
|
|
11022
|
+
return f.useEffect(() => {
|
|
11008
11023
|
const o = (i) => {
|
|
11009
11024
|
i.target && !r.current && Bd(dE, n, { originalEvent: i }, {
|
|
11010
11025
|
discrete: !1
|
|
@@ -11024,14 +11039,14 @@ function Bd(e, t, n, { discrete: r }) {
|
|
|
11024
11039
|
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
11025
11040
|
t && o.addEventListener(e, t, { once: !0 }), r ? bs(o, i) : o.dispatchEvent(i);
|
|
11026
11041
|
}
|
|
11027
|
-
var xo = "focusScope.autoFocusOnMount", So = "focusScope.autoFocusOnUnmount", Il = { bubbles: !1, cancelable: !0 }, gE = "FocusScope", Ud =
|
|
11042
|
+
var xo = "focusScope.autoFocusOnMount", So = "focusScope.autoFocusOnUnmount", Il = { bubbles: !1, cancelable: !0 }, gE = "FocusScope", Ud = f.forwardRef((e, t) => {
|
|
11028
11043
|
const {
|
|
11029
11044
|
loop: n = !1,
|
|
11030
11045
|
trapped: r = !1,
|
|
11031
11046
|
onMountAutoFocus: o,
|
|
11032
11047
|
onUnmountAutoFocus: i,
|
|
11033
11048
|
...s
|
|
11034
|
-
} = e, [a, l] =
|
|
11049
|
+
} = e, [a, l] = f.useState(null), c = We(o), u = We(i), d = f.useRef(null), h = Re(t, (m) => l(m)), p = f.useRef({
|
|
11035
11050
|
paused: !1,
|
|
11036
11051
|
pause() {
|
|
11037
11052
|
this.paused = !0;
|
|
@@ -11040,16 +11055,16 @@ var xo = "focusScope.autoFocusOnMount", So = "focusScope.autoFocusOnUnmount", Il
|
|
|
11040
11055
|
this.paused = !1;
|
|
11041
11056
|
}
|
|
11042
11057
|
}).current;
|
|
11043
|
-
|
|
11058
|
+
f.useEffect(() => {
|
|
11044
11059
|
if (r) {
|
|
11045
11060
|
let m = function(w) {
|
|
11046
11061
|
if (p.paused || !a) return;
|
|
11047
11062
|
const P = w.target;
|
|
11048
|
-
a.contains(P) ?
|
|
11063
|
+
a.contains(P) ? d.current = P : yt(d.current, { select: !0 });
|
|
11049
11064
|
}, g = function(w) {
|
|
11050
11065
|
if (p.paused || !a) return;
|
|
11051
11066
|
const P = w.relatedTarget;
|
|
11052
|
-
P !== null && (a.contains(P) || yt(
|
|
11067
|
+
P !== null && (a.contains(P) || yt(d.current, { select: !0 }));
|
|
11053
11068
|
}, v = function(w) {
|
|
11054
11069
|
if (document.activeElement === document.body)
|
|
11055
11070
|
for (const b of w)
|
|
@@ -11061,7 +11076,7 @@ var xo = "focusScope.autoFocusOnMount", So = "focusScope.autoFocusOnUnmount", Il
|
|
|
11061
11076
|
document.removeEventListener("focusin", m), document.removeEventListener("focusout", g), T.disconnect();
|
|
11062
11077
|
};
|
|
11063
11078
|
}
|
|
11064
|
-
}, [r, a, p.paused]),
|
|
11079
|
+
}, [r, a, p.paused]), f.useEffect(() => {
|
|
11065
11080
|
if (a) {
|
|
11066
11081
|
kl.add(p);
|
|
11067
11082
|
const m = document.activeElement;
|
|
@@ -11077,7 +11092,7 @@ var xo = "focusScope.autoFocusOnMount", So = "focusScope.autoFocusOnUnmount", Il
|
|
|
11077
11092
|
};
|
|
11078
11093
|
}
|
|
11079
11094
|
}, [a, c, u, p]);
|
|
11080
|
-
const y =
|
|
11095
|
+
const y = f.useCallback(
|
|
11081
11096
|
(m) => {
|
|
11082
11097
|
if (!n && !r || p.paused) return;
|
|
11083
11098
|
const g = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, v = document.activeElement;
|
|
@@ -11152,23 +11167,23 @@ function Ll(e, t) {
|
|
|
11152
11167
|
function EE(e) {
|
|
11153
11168
|
return e.filter((t) => t.tagName !== "A");
|
|
11154
11169
|
}
|
|
11155
|
-
var xE = "Portal", ws =
|
|
11156
|
-
const { container: n, ...r } = e, [o, i] =
|
|
11170
|
+
var xE = "Portal", ws = f.forwardRef((e, t) => {
|
|
11171
|
+
const { container: n, ...r } = e, [o, i] = f.useState(!1);
|
|
11157
11172
|
At(() => i(!0), []);
|
|
11158
11173
|
const s = n || o && globalThis?.document?.body;
|
|
11159
11174
|
return s ? qf.createPortal(/* @__PURE__ */ E(we.div, { ...r, ref: t }), s) : null;
|
|
11160
11175
|
});
|
|
11161
11176
|
ws.displayName = xE;
|
|
11162
11177
|
function SE(e, t) {
|
|
11163
|
-
return
|
|
11178
|
+
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
11164
11179
|
}
|
|
11165
11180
|
var zr = (e) => {
|
|
11166
|
-
const { present: t, children: n } = e, r = AE(t), o = typeof n == "function" ? n({ present: r.isPresent }) :
|
|
11167
|
-
return typeof n == "function" || r.isPresent ?
|
|
11181
|
+
const { present: t, children: n } = e, r = AE(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), i = Re(r.ref, PE(o));
|
|
11182
|
+
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: i }) : null;
|
|
11168
11183
|
};
|
|
11169
11184
|
zr.displayName = "Presence";
|
|
11170
11185
|
function AE(e) {
|
|
11171
|
-
const [t, n] =
|
|
11186
|
+
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), i = f.useRef("none"), s = e ? "mounted" : "unmounted", [a, l] = SE(s, {
|
|
11172
11187
|
mounted: {
|
|
11173
11188
|
UNMOUNT: "unmounted",
|
|
11174
11189
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -11181,7 +11196,7 @@ function AE(e) {
|
|
|
11181
11196
|
MOUNT: "mounted"
|
|
11182
11197
|
}
|
|
11183
11198
|
});
|
|
11184
|
-
return
|
|
11199
|
+
return f.useEffect(() => {
|
|
11185
11200
|
const c = cr(r.current);
|
|
11186
11201
|
i.current = a === "mounted" ? c : "none";
|
|
11187
11202
|
}, [a]), At(() => {
|
|
@@ -11193,7 +11208,7 @@ function AE(e) {
|
|
|
11193
11208
|
}, [e, l]), At(() => {
|
|
11194
11209
|
if (t) {
|
|
11195
11210
|
let c;
|
|
11196
|
-
const u = t.ownerDocument.defaultView ?? window,
|
|
11211
|
+
const u = t.ownerDocument.defaultView ?? window, d = (p) => {
|
|
11197
11212
|
const m = cr(r.current).includes(p.animationName);
|
|
11198
11213
|
if (p.target === t && m && (l("ANIMATION_END"), !o.current)) {
|
|
11199
11214
|
const g = t.style.animationFillMode;
|
|
@@ -11204,14 +11219,14 @@ function AE(e) {
|
|
|
11204
11219
|
}, h = (p) => {
|
|
11205
11220
|
p.target === t && (i.current = cr(r.current));
|
|
11206
11221
|
};
|
|
11207
|
-
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel",
|
|
11208
|
-
u.clearTimeout(c), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel",
|
|
11222
|
+
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
11223
|
+
u.clearTimeout(c), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
11209
11224
|
};
|
|
11210
11225
|
} else
|
|
11211
11226
|
l("ANIMATION_END");
|
|
11212
11227
|
}, [t, l]), {
|
|
11213
11228
|
isPresent: ["mounted", "unmountSuspended"].includes(a),
|
|
11214
|
-
ref:
|
|
11229
|
+
ref: f.useCallback((c) => {
|
|
11215
11230
|
r.current = c ? getComputedStyle(c) : null, n(c);
|
|
11216
11231
|
}, [])
|
|
11217
11232
|
};
|
|
@@ -11225,7 +11240,7 @@ function PE(e) {
|
|
|
11225
11240
|
}
|
|
11226
11241
|
var Ao = 0;
|
|
11227
11242
|
function CE() {
|
|
11228
|
-
|
|
11243
|
+
f.useEffect(() => {
|
|
11229
11244
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
11230
11245
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? _l()), document.body.insertAdjacentElement("beforeend", e[1] ?? _l()), Ao++, () => {
|
|
11231
11246
|
Ao === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ao--;
|
|
@@ -11283,7 +11298,7 @@ function OE(e, t) {
|
|
|
11283
11298
|
})[0];
|
|
11284
11299
|
return n.callback = t, n.facade;
|
|
11285
11300
|
}
|
|
11286
|
-
var VE = typeof window < "u" ?
|
|
11301
|
+
var VE = typeof window < "u" ? f.useLayoutEffect : f.useEffect, $l = /* @__PURE__ */ new WeakMap();
|
|
11287
11302
|
function FE(e, t) {
|
|
11288
11303
|
var n = OE(null, function(r) {
|
|
11289
11304
|
return e.forEach(function(o) {
|
|
@@ -11373,24 +11388,24 @@ var Zd = function(e) {
|
|
|
11373
11388
|
var r = t.read();
|
|
11374
11389
|
if (!r)
|
|
11375
11390
|
throw new Error("Sidecar medium not found");
|
|
11376
|
-
return
|
|
11391
|
+
return f.createElement(r, Xe({}, n));
|
|
11377
11392
|
};
|
|
11378
11393
|
Zd.isSideCarExport = !0;
|
|
11379
11394
|
function LE(e, t) {
|
|
11380
11395
|
return e.useMedium(t), Zd;
|
|
11381
11396
|
}
|
|
11382
11397
|
var Hd = kE(), Co = function() {
|
|
11383
|
-
}, Zr =
|
|
11384
|
-
var n =
|
|
11398
|
+
}, Zr = f.forwardRef(function(e, t) {
|
|
11399
|
+
var n = f.useRef(null), r = f.useState({
|
|
11385
11400
|
onScrollCapture: Co,
|
|
11386
11401
|
onWheelCapture: Co,
|
|
11387
11402
|
onTouchMoveCapture: Co
|
|
11388
|
-
}), o = r[0], i = r[1], s = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled,
|
|
11389
|
-
return
|
|
11390
|
-
|
|
11403
|
+
}), o = r[0], i = r[1], s = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, h = e.sideCar, p = e.noIsolation, y = e.inert, m = e.allowPinchZoom, g = e.as, v = g === void 0 ? "div" : g, T = e.gapMode, w = zd(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), P = h, b = FE([n, t]), C = Xe(Xe({}, w), o);
|
|
11404
|
+
return f.createElement(
|
|
11405
|
+
f.Fragment,
|
|
11391
11406
|
null,
|
|
11392
|
-
u &&
|
|
11393
|
-
s ?
|
|
11407
|
+
u && f.createElement(P, { sideCar: Hd, removeScrollBar: c, shards: d, noIsolation: p, inert: y, setCallbacks: i, allowPinchZoom: !!m, lockRef: n, gapMode: T }),
|
|
11408
|
+
s ? f.cloneElement(f.Children.only(a), Xe(Xe({}, C), { ref: b })) : f.createElement(v, Xe({}, C, { className: l, ref: b }), a)
|
|
11394
11409
|
);
|
|
11395
11410
|
});
|
|
11396
11411
|
Zr.defaultProps = {
|
|
@@ -11434,7 +11449,7 @@ var UE = function() {
|
|
|
11434
11449
|
}, WE = function() {
|
|
11435
11450
|
var e = UE();
|
|
11436
11451
|
return function(t, n) {
|
|
11437
|
-
|
|
11452
|
+
f.useEffect(function() {
|
|
11438
11453
|
return e.add(t), function() {
|
|
11439
11454
|
e.remove();
|
|
11440
11455
|
};
|
|
@@ -11514,7 +11529,7 @@ var UE = function() {
|
|
|
11514
11529
|
var e = parseInt(document.body.getAttribute(hn) || "0", 10);
|
|
11515
11530
|
return isFinite(e) ? e : 0;
|
|
11516
11531
|
}, YE = function() {
|
|
11517
|
-
|
|
11532
|
+
f.useEffect(function() {
|
|
11518
11533
|
return document.body.setAttribute(hn, (jl() + 1).toString()), function() {
|
|
11519
11534
|
var e = jl() - 1;
|
|
11520
11535
|
e <= 0 ? document.body.removeAttribute(hn) : document.body.setAttribute(hn, e.toString());
|
|
@@ -11523,10 +11538,10 @@ var UE = function() {
|
|
|
11523
11538
|
}, XE = function(e) {
|
|
11524
11539
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
11525
11540
|
YE();
|
|
11526
|
-
var i =
|
|
11541
|
+
var i = f.useMemo(function() {
|
|
11527
11542
|
return HE(o);
|
|
11528
11543
|
}, [o]);
|
|
11529
|
-
return
|
|
11544
|
+
return f.createElement(KE, { styles: GE(i, !t, o, n ? "" : "!important") });
|
|
11530
11545
|
}, mi = !1;
|
|
11531
11546
|
if (typeof window < "u")
|
|
11532
11547
|
try {
|
|
@@ -11588,16 +11603,16 @@ var en = mi ? { passive: !1 } : !1, qE = function(e) {
|
|
|
11588
11603
|
}, n2 = function(e, t) {
|
|
11589
11604
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
11590
11605
|
}, r2 = function(e, t, n, r, o) {
|
|
11591
|
-
var i = n2(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, l = t.contains(a), c = !1, u = s > 0,
|
|
11606
|
+
var i = n2(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, l = t.contains(a), c = !1, u = s > 0, d = 0, h = 0;
|
|
11592
11607
|
do {
|
|
11593
11608
|
var p = Xd(e, a), y = p[0], m = p[1], g = p[2], v = m - g - i * y;
|
|
11594
|
-
(y || v) && Yd(e, a) && (
|
|
11609
|
+
(y || v) && Yd(e, a) && (d += v, h += y), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
|
|
11595
11610
|
} while (
|
|
11596
11611
|
// portaled content
|
|
11597
11612
|
!l && a !== document.body || // self content
|
|
11598
11613
|
l && (t.contains(a) || t === a)
|
|
11599
11614
|
);
|
|
11600
|
-
return (u && Math.abs(
|
|
11615
|
+
return (u && Math.abs(d) < 1 || !u && Math.abs(h) < 1) && (c = !0), c;
|
|
11601
11616
|
}, dr = function(e) {
|
|
11602
11617
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
11603
11618
|
}, Ul = function(e) {
|
|
@@ -11613,10 +11628,10 @@ var en = mi ? { passive: !1 } : !1, qE = function(e) {
|
|
|
11613
11628
|
`);
|
|
11614
11629
|
}, s2 = 0, tn = [];
|
|
11615
11630
|
function a2(e) {
|
|
11616
|
-
var t =
|
|
11617
|
-
|
|
11631
|
+
var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(s2++)[0], i = f.useState(Kd)[0], s = f.useRef(e);
|
|
11632
|
+
f.useEffect(function() {
|
|
11618
11633
|
s.current = e;
|
|
11619
|
-
}, [e]),
|
|
11634
|
+
}, [e]), f.useEffect(function() {
|
|
11620
11635
|
if (e.inert) {
|
|
11621
11636
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
11622
11637
|
var m = ME([e.lockRef.current], (e.shards || []).map(Wl), !0).filter(Boolean);
|
|
@@ -11629,7 +11644,7 @@ function a2(e) {
|
|
|
11629
11644
|
};
|
|
11630
11645
|
}
|
|
11631
11646
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
11632
|
-
var a =
|
|
11647
|
+
var a = f.useCallback(function(m, g) {
|
|
11633
11648
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
11634
11649
|
return !s.current.allowPinchZoom;
|
|
11635
11650
|
var v = dr(m), T = n.current, w = "deltaX" in m ? m.deltaX : T[0] - v[0], P = "deltaY" in m ? m.deltaY : T[1] - v[1], b, C = m.target, S = Math.abs(w) > Math.abs(P) ? "h" : "v";
|
|
@@ -11644,7 +11659,7 @@ function a2(e) {
|
|
|
11644
11659
|
return !0;
|
|
11645
11660
|
var N = r.current || b;
|
|
11646
11661
|
return r2(N, g, m, N === "h" ? w : P);
|
|
11647
|
-
}, []), l =
|
|
11662
|
+
}, []), l = f.useCallback(function(m) {
|
|
11648
11663
|
var g = m;
|
|
11649
11664
|
if (!(!tn.length || tn[tn.length - 1] !== i)) {
|
|
11650
11665
|
var v = "deltaY" in g ? Ul(g) : dr(g), T = t.current.filter(function(b) {
|
|
@@ -11661,24 +11676,24 @@ function a2(e) {
|
|
|
11661
11676
|
P && g.cancelable && g.preventDefault();
|
|
11662
11677
|
}
|
|
11663
11678
|
}
|
|
11664
|
-
}, []), c =
|
|
11679
|
+
}, []), c = f.useCallback(function(m, g, v, T) {
|
|
11665
11680
|
var w = { name: m, delta: g, target: v, should: T, shadowParent: l2(v) };
|
|
11666
11681
|
t.current.push(w), setTimeout(function() {
|
|
11667
11682
|
t.current = t.current.filter(function(P) {
|
|
11668
11683
|
return P !== w;
|
|
11669
11684
|
});
|
|
11670
11685
|
}, 1);
|
|
11671
|
-
}, []), u =
|
|
11686
|
+
}, []), u = f.useCallback(function(m) {
|
|
11672
11687
|
n.current = dr(m), r.current = void 0;
|
|
11673
|
-
}, []),
|
|
11688
|
+
}, []), d = f.useCallback(function(m) {
|
|
11674
11689
|
c(m.type, Ul(m), m.target, a(m, e.lockRef.current));
|
|
11675
|
-
}, []), h =
|
|
11690
|
+
}, []), h = f.useCallback(function(m) {
|
|
11676
11691
|
c(m.type, dr(m), m.target, a(m, e.lockRef.current));
|
|
11677
11692
|
}, []);
|
|
11678
|
-
|
|
11693
|
+
f.useEffect(function() {
|
|
11679
11694
|
return tn.push(i), e.setCallbacks({
|
|
11680
|
-
onScrollCapture:
|
|
11681
|
-
onWheelCapture:
|
|
11695
|
+
onScrollCapture: d,
|
|
11696
|
+
onWheelCapture: d,
|
|
11682
11697
|
onTouchMoveCapture: h
|
|
11683
11698
|
}), document.addEventListener("wheel", l, en), document.addEventListener("touchmove", l, en), document.addEventListener("touchstart", u, en), function() {
|
|
11684
11699
|
tn = tn.filter(function(m) {
|
|
@@ -11687,11 +11702,11 @@ function a2(e) {
|
|
|
11687
11702
|
};
|
|
11688
11703
|
}, []);
|
|
11689
11704
|
var p = e.removeScrollBar, y = e.inert;
|
|
11690
|
-
return
|
|
11691
|
-
|
|
11705
|
+
return f.createElement(
|
|
11706
|
+
f.Fragment,
|
|
11692
11707
|
null,
|
|
11693
|
-
y ?
|
|
11694
|
-
p ?
|
|
11708
|
+
y ? f.createElement(i, { styles: i2(o) }) : null,
|
|
11709
|
+
p ? f.createElement(XE, { gapMode: e.gapMode }) : null
|
|
11695
11710
|
);
|
|
11696
11711
|
}
|
|
11697
11712
|
function l2(e) {
|
|
@@ -11700,8 +11715,8 @@ function l2(e) {
|
|
|
11700
11715
|
return t;
|
|
11701
11716
|
}
|
|
11702
11717
|
const c2 = LE(Hd, a2);
|
|
11703
|
-
var qd =
|
|
11704
|
-
return
|
|
11718
|
+
var qd = f.forwardRef(function(e, t) {
|
|
11719
|
+
return f.createElement(Zr, Xe({}, e, { ref: t, sideCar: c2 }));
|
|
11705
11720
|
});
|
|
11706
11721
|
qd.classNames = Zr.classNames;
|
|
11707
11722
|
var u2 = function(e) {
|
|
@@ -11723,12 +11738,12 @@ var u2 = function(e) {
|
|
|
11723
11738
|
}, f2 = function(e, t, n, r) {
|
|
11724
11739
|
var o = d2(t, Array.isArray(e) ? e : [e]);
|
|
11725
11740
|
hr[n] || (hr[n] = /* @__PURE__ */ new WeakMap());
|
|
11726
|
-
var i = hr[n], s = [], a = /* @__PURE__ */ new Set(), l = new Set(o), c = function(
|
|
11727
|
-
!
|
|
11741
|
+
var i = hr[n], s = [], a = /* @__PURE__ */ new Set(), l = new Set(o), c = function(d) {
|
|
11742
|
+
!d || a.has(d) || (a.add(d), c(d.parentNode));
|
|
11728
11743
|
};
|
|
11729
11744
|
o.forEach(c);
|
|
11730
|
-
var u = function(
|
|
11731
|
-
!
|
|
11745
|
+
var u = function(d) {
|
|
11746
|
+
!d || l.has(d) || Array.prototype.forEach.call(d.children, function(h) {
|
|
11732
11747
|
if (a.has(h))
|
|
11733
11748
|
u(h);
|
|
11734
11749
|
else
|
|
@@ -11741,9 +11756,9 @@ var u2 = function(e) {
|
|
|
11741
11756
|
});
|
|
11742
11757
|
};
|
|
11743
11758
|
return u(t), a.clear(), Ro++, function() {
|
|
11744
|
-
s.forEach(function(
|
|
11745
|
-
var h = nn.get(
|
|
11746
|
-
nn.set(
|
|
11759
|
+
s.forEach(function(d) {
|
|
11760
|
+
var h = nn.get(d) - 1, p = i.get(d) - 1;
|
|
11761
|
+
nn.set(d, h), i.set(d, p), h || (fr.has(d) || d.removeAttribute(r), fr.delete(d)), p || d.removeAttribute(n);
|
|
11747
11762
|
}), Ro--, Ro || (nn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), hr = {});
|
|
11748
11763
|
};
|
|
11749
11764
|
}, h2 = function(e, t, n) {
|
|
@@ -11760,7 +11775,7 @@ var u2 = function(e) {
|
|
|
11760
11775
|
defaultOpen: o,
|
|
11761
11776
|
onOpenChange: i,
|
|
11762
11777
|
modal: s = !0
|
|
11763
|
-
} = e, a =
|
|
11778
|
+
} = e, a = f.useRef(null), l = f.useRef(null), [c, u] = Ld({
|
|
11764
11779
|
prop: r,
|
|
11765
11780
|
defaultProp: o ?? !1,
|
|
11766
11781
|
onChange: i,
|
|
@@ -11777,14 +11792,14 @@ var u2 = function(e) {
|
|
|
11777
11792
|
descriptionId: Eo(),
|
|
11778
11793
|
open: c,
|
|
11779
11794
|
onOpenChange: u,
|
|
11780
|
-
onOpenToggle:
|
|
11795
|
+
onOpenToggle: f.useCallback(() => u((d) => !d), [u]),
|
|
11781
11796
|
modal: s,
|
|
11782
11797
|
children: n
|
|
11783
11798
|
}
|
|
11784
11799
|
);
|
|
11785
11800
|
};
|
|
11786
11801
|
ef.displayName = Hr;
|
|
11787
|
-
var tf = "DialogTrigger", m2 =
|
|
11802
|
+
var tf = "DialogTrigger", m2 = f.forwardRef(
|
|
11788
11803
|
(e, t) => {
|
|
11789
11804
|
const { __scopeDialog: n, ...r } = e, o = ze(tf, n), i = Re(t, o.triggerRef);
|
|
11790
11805
|
return /* @__PURE__ */ E(
|
|
@@ -11807,17 +11822,17 @@ var Ts = "DialogPortal", [g2, nf] = Jd(Ts, {
|
|
|
11807
11822
|
forceMount: void 0
|
|
11808
11823
|
}), rf = (e) => {
|
|
11809
11824
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = ze(Ts, t);
|
|
11810
|
-
return /* @__PURE__ */ E(g2, { scope: t, forceMount: n, children:
|
|
11825
|
+
return /* @__PURE__ */ E(g2, { scope: t, forceMount: n, children: f.Children.map(r, (s) => /* @__PURE__ */ E(zr, { present: n || i.open, children: /* @__PURE__ */ E(ws, { asChild: !0, container: o, children: s }) })) });
|
|
11811
11826
|
};
|
|
11812
11827
|
rf.displayName = Ts;
|
|
11813
|
-
var Vr = "DialogOverlay", of =
|
|
11828
|
+
var Vr = "DialogOverlay", of = f.forwardRef(
|
|
11814
11829
|
(e, t) => {
|
|
11815
11830
|
const n = nf(Vr, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = ze(Vr, e.__scopeDialog);
|
|
11816
11831
|
return i.modal ? /* @__PURE__ */ E(zr, { present: r || i.open, children: /* @__PURE__ */ E(v2, { ...o, ref: t }) }) : null;
|
|
11817
11832
|
}
|
|
11818
11833
|
);
|
|
11819
11834
|
of.displayName = Vr;
|
|
11820
|
-
var y2 = /* @__PURE__ */ Or("DialogOverlay.RemoveScroll"), v2 =
|
|
11835
|
+
var y2 = /* @__PURE__ */ Or("DialogOverlay.RemoveScroll"), v2 = f.forwardRef(
|
|
11821
11836
|
(e, t) => {
|
|
11822
11837
|
const { __scopeDialog: n, ...r } = e, o = ze(Vr, n);
|
|
11823
11838
|
return (
|
|
@@ -11834,17 +11849,17 @@ var y2 = /* @__PURE__ */ Or("DialogOverlay.RemoveScroll"), v2 = d.forwardRef(
|
|
|
11834
11849
|
) })
|
|
11835
11850
|
);
|
|
11836
11851
|
}
|
|
11837
|
-
), zt = "DialogContent", sf =
|
|
11852
|
+
), zt = "DialogContent", sf = f.forwardRef(
|
|
11838
11853
|
(e, t) => {
|
|
11839
11854
|
const n = nf(zt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = ze(zt, e.__scopeDialog);
|
|
11840
11855
|
return /* @__PURE__ */ E(zr, { present: r || i.open, children: i.modal ? /* @__PURE__ */ E(b2, { ...o, ref: t }) : /* @__PURE__ */ E(w2, { ...o, ref: t }) });
|
|
11841
11856
|
}
|
|
11842
11857
|
);
|
|
11843
11858
|
sf.displayName = zt;
|
|
11844
|
-
var b2 =
|
|
11859
|
+
var b2 = f.forwardRef(
|
|
11845
11860
|
(e, t) => {
|
|
11846
|
-
const n = ze(zt, e.__scopeDialog), r =
|
|
11847
|
-
return
|
|
11861
|
+
const n = ze(zt, e.__scopeDialog), r = f.useRef(null), o = Re(t, n.contentRef, r);
|
|
11862
|
+
return f.useEffect(() => {
|
|
11848
11863
|
const i = r.current;
|
|
11849
11864
|
if (i) return h2(i);
|
|
11850
11865
|
}, []), /* @__PURE__ */ E(
|
|
@@ -11868,9 +11883,9 @@ var b2 = d.forwardRef(
|
|
|
11868
11883
|
}
|
|
11869
11884
|
);
|
|
11870
11885
|
}
|
|
11871
|
-
), w2 =
|
|
11886
|
+
), w2 = f.forwardRef(
|
|
11872
11887
|
(e, t) => {
|
|
11873
|
-
const n = ze(zt, e.__scopeDialog), r =
|
|
11888
|
+
const n = ze(zt, e.__scopeDialog), r = f.useRef(!1), o = f.useRef(!1);
|
|
11874
11889
|
return /* @__PURE__ */ E(
|
|
11875
11890
|
af,
|
|
11876
11891
|
{
|
|
@@ -11889,9 +11904,9 @@ var b2 = d.forwardRef(
|
|
|
11889
11904
|
}
|
|
11890
11905
|
);
|
|
11891
11906
|
}
|
|
11892
|
-
), af =
|
|
11907
|
+
), af = f.forwardRef(
|
|
11893
11908
|
(e, t) => {
|
|
11894
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...s } = e, a = ze(zt, n), l =
|
|
11909
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...s } = e, a = ze(zt, n), l = f.useRef(null), c = Re(t, l);
|
|
11895
11910
|
return CE(), /* @__PURE__ */ H(Bt, { children: [
|
|
11896
11911
|
/* @__PURE__ */ E(
|
|
11897
11912
|
Ud,
|
|
@@ -11922,21 +11937,21 @@ var b2 = d.forwardRef(
|
|
|
11922
11937
|
] })
|
|
11923
11938
|
] });
|
|
11924
11939
|
}
|
|
11925
|
-
), Es = "DialogTitle", lf =
|
|
11940
|
+
), Es = "DialogTitle", lf = f.forwardRef(
|
|
11926
11941
|
(e, t) => {
|
|
11927
11942
|
const { __scopeDialog: n, ...r } = e, o = ze(Es, n);
|
|
11928
11943
|
return /* @__PURE__ */ E(we.h2, { id: o.titleId, ...r, ref: t });
|
|
11929
11944
|
}
|
|
11930
11945
|
);
|
|
11931
11946
|
lf.displayName = Es;
|
|
11932
|
-
var cf = "DialogDescription", uf =
|
|
11947
|
+
var cf = "DialogDescription", uf = f.forwardRef(
|
|
11933
11948
|
(e, t) => {
|
|
11934
11949
|
const { __scopeDialog: n, ...r } = e, o = ze(cf, n);
|
|
11935
11950
|
return /* @__PURE__ */ E(we.p, { id: o.descriptionId, ...r, ref: t });
|
|
11936
11951
|
}
|
|
11937
11952
|
);
|
|
11938
11953
|
uf.displayName = cf;
|
|
11939
|
-
var df = "DialogClose", ff =
|
|
11954
|
+
var df = "DialogClose", ff = f.forwardRef(
|
|
11940
11955
|
(e, t) => {
|
|
11941
11956
|
const { __scopeDialog: n, ...r } = e, o = ze(df, n);
|
|
11942
11957
|
return /* @__PURE__ */ E(
|
|
@@ -11964,12 +11979,12 @@ var hf = "DialogTitleWarning", [Yx, pf] = XT(hf, {
|
|
|
11964
11979
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
11965
11980
|
|
|
11966
11981
|
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
11967
|
-
return
|
|
11982
|
+
return f.useEffect(() => {
|
|
11968
11983
|
e && (document.getElementById(e) || console.error(n));
|
|
11969
11984
|
}, [n, e]), null;
|
|
11970
11985
|
}, E2 = "DialogDescriptionWarning", x2 = ({ contentRef: e, descriptionId: t }) => {
|
|
11971
11986
|
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pf(E2).contentName}}.`;
|
|
11972
|
-
return
|
|
11987
|
+
return f.useEffect(() => {
|
|
11973
11988
|
const o = e.current?.getAttribute("aria-describedby");
|
|
11974
11989
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
11975
11990
|
}, [r, e, t]), null;
|
|
@@ -12094,12 +12109,12 @@ function z2(e) {
|
|
|
12094
12109
|
}
|
|
12095
12110
|
);
|
|
12096
12111
|
c.displayName = a;
|
|
12097
|
-
const u = e + "CollectionItemSlot",
|
|
12112
|
+
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", h = /* @__PURE__ */ Or(u), p = Ve.forwardRef(
|
|
12098
12113
|
(m, g) => {
|
|
12099
12114
|
const { scope: v, children: T, ...w } = m, P = Ve.useRef(null), b = Re(g, P), C = i(u, v);
|
|
12100
12115
|
return Ve.useEffect(() => (C.itemMap.set(P, { ref: P, ...w }), () => {
|
|
12101
12116
|
C.itemMap.delete(P);
|
|
12102
|
-
})), /* @__PURE__ */ E(h, { [
|
|
12117
|
+
})), /* @__PURE__ */ E(h, { [d]: "", ref: b, children: T });
|
|
12103
12118
|
}
|
|
12104
12119
|
);
|
|
12105
12120
|
p.displayName = u;
|
|
@@ -12108,7 +12123,7 @@ function z2(e) {
|
|
|
12108
12123
|
return Ve.useCallback(() => {
|
|
12109
12124
|
const T = g.collectionRef.current;
|
|
12110
12125
|
if (!T) return [];
|
|
12111
|
-
const w = Array.from(T.querySelectorAll(`[${
|
|
12126
|
+
const w = Array.from(T.querySelectorAll(`[${d}]`));
|
|
12112
12127
|
return Array.from(g.itemMap.values()).sort(
|
|
12113
12128
|
(C, S) => w.indexOf(C.ref.current) - w.indexOf(S.ref.current)
|
|
12114
12129
|
);
|
|
@@ -12120,11 +12135,11 @@ function z2(e) {
|
|
|
12120
12135
|
r
|
|
12121
12136
|
];
|
|
12122
12137
|
}
|
|
12123
|
-
var Z2 = "DismissableLayer", gi = "dismissableLayer.update", H2 = "dismissableLayer.pointerDownOutside", K2 = "dismissableLayer.focusOutside", zl, Tf =
|
|
12138
|
+
var Z2 = "DismissableLayer", gi = "dismissableLayer.update", H2 = "dismissableLayer.pointerDownOutside", K2 = "dismissableLayer.focusOutside", zl, Tf = f.createContext({
|
|
12124
12139
|
layers: /* @__PURE__ */ new Set(),
|
|
12125
12140
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
12126
12141
|
branches: /* @__PURE__ */ new Set()
|
|
12127
|
-
}), Ef =
|
|
12142
|
+
}), Ef = f.forwardRef(
|
|
12128
12143
|
(e, t) => {
|
|
12129
12144
|
const {
|
|
12130
12145
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -12134,7 +12149,7 @@ var Z2 = "DismissableLayer", gi = "dismissableLayer.update", H2 = "dismissableLa
|
|
|
12134
12149
|
onInteractOutside: s,
|
|
12135
12150
|
onDismiss: a,
|
|
12136
12151
|
...l
|
|
12137
|
-
} = e, c =
|
|
12152
|
+
} = e, c = f.useContext(Tf), [u, d] = f.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), y = Re(t, (S) => d(S)), m = Array.from(c.layers), [g] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(g), T = u ? m.indexOf(u) : -1, w = c.layersWithOutsidePointerEventsDisabled.size > 0, P = T >= v, b = Y2((S) => {
|
|
12138
12153
|
const A = S.target, N = [...c.branches].some((j) => j.contains(A));
|
|
12139
12154
|
!P || N || (o?.(S), s?.(S), S.defaultPrevented || a?.());
|
|
12140
12155
|
}, h), C = X2((S) => {
|
|
@@ -12143,14 +12158,14 @@ var Z2 = "DismissableLayer", gi = "dismissableLayer.update", H2 = "dismissableLa
|
|
|
12143
12158
|
}, h);
|
|
12144
12159
|
return _d((S) => {
|
|
12145
12160
|
T === c.layers.size - 1 && (r?.(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
|
|
12146
|
-
}, h),
|
|
12161
|
+
}, h), f.useEffect(() => {
|
|
12147
12162
|
if (u)
|
|
12148
12163
|
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (zl = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), Zl(), () => {
|
|
12149
12164
|
n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = zl);
|
|
12150
12165
|
};
|
|
12151
|
-
}, [u, h, n, c]),
|
|
12166
|
+
}, [u, h, n, c]), f.useEffect(() => () => {
|
|
12152
12167
|
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), Zl());
|
|
12153
|
-
}, [u, c]),
|
|
12168
|
+
}, [u, c]), f.useEffect(() => {
|
|
12154
12169
|
const S = () => p({});
|
|
12155
12170
|
return document.addEventListener(gi, S), () => document.removeEventListener(gi, S);
|
|
12156
12171
|
}, []), /* @__PURE__ */ E(
|
|
@@ -12173,9 +12188,9 @@ var Z2 = "DismissableLayer", gi = "dismissableLayer.update", H2 = "dismissableLa
|
|
|
12173
12188
|
}
|
|
12174
12189
|
);
|
|
12175
12190
|
Ef.displayName = Z2;
|
|
12176
|
-
var G2 = "DismissableLayerBranch", xf =
|
|
12177
|
-
const n =
|
|
12178
|
-
return
|
|
12191
|
+
var G2 = "DismissableLayerBranch", xf = f.forwardRef((e, t) => {
|
|
12192
|
+
const n = f.useContext(Tf), r = f.useRef(null), o = Re(t, r);
|
|
12193
|
+
return f.useEffect(() => {
|
|
12179
12194
|
const i = r.current;
|
|
12180
12195
|
if (i)
|
|
12181
12196
|
return n.branches.add(i), () => {
|
|
@@ -12185,9 +12200,9 @@ var G2 = "DismissableLayerBranch", xf = d.forwardRef((e, t) => {
|
|
|
12185
12200
|
});
|
|
12186
12201
|
xf.displayName = G2;
|
|
12187
12202
|
function Y2(e, t = globalThis?.document) {
|
|
12188
|
-
const n = We(e), r =
|
|
12203
|
+
const n = We(e), r = f.useRef(!1), o = f.useRef(() => {
|
|
12189
12204
|
});
|
|
12190
|
-
return
|
|
12205
|
+
return f.useEffect(() => {
|
|
12191
12206
|
const i = (a) => {
|
|
12192
12207
|
if (a.target && !r.current) {
|
|
12193
12208
|
let l = function() {
|
|
@@ -12215,8 +12230,8 @@ function Y2(e, t = globalThis?.document) {
|
|
|
12215
12230
|
};
|
|
12216
12231
|
}
|
|
12217
12232
|
function X2(e, t = globalThis?.document) {
|
|
12218
|
-
const n = We(e), r =
|
|
12219
|
-
return
|
|
12233
|
+
const n = We(e), r = f.useRef(!1);
|
|
12234
|
+
return f.useEffect(() => {
|
|
12220
12235
|
const o = (i) => {
|
|
12221
12236
|
i.target && !r.current && Sf(K2, n, { originalEvent: i }, {
|
|
12222
12237
|
discrete: !1
|
|
@@ -12238,15 +12253,15 @@ function Sf(e, t, n, { discrete: r }) {
|
|
|
12238
12253
|
}
|
|
12239
12254
|
var q2 = Ef, Q2 = xf;
|
|
12240
12255
|
function J2(e, t) {
|
|
12241
|
-
return
|
|
12256
|
+
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
12242
12257
|
}
|
|
12243
12258
|
var Af = (e) => {
|
|
12244
|
-
const { present: t, children: n } = e, r = ex(t), o = typeof n == "function" ? n({ present: r.isPresent }) :
|
|
12245
|
-
return typeof n == "function" || r.isPresent ?
|
|
12259
|
+
const { present: t, children: n } = e, r = ex(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), i = Re(r.ref, tx(o));
|
|
12260
|
+
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: i }) : null;
|
|
12246
12261
|
};
|
|
12247
12262
|
Af.displayName = "Presence";
|
|
12248
12263
|
function ex(e) {
|
|
12249
|
-
const [t, n] =
|
|
12264
|
+
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), i = f.useRef("none"), s = e ? "mounted" : "unmounted", [a, l] = J2(s, {
|
|
12250
12265
|
mounted: {
|
|
12251
12266
|
UNMOUNT: "unmounted",
|
|
12252
12267
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -12259,7 +12274,7 @@ function ex(e) {
|
|
|
12259
12274
|
MOUNT: "mounted"
|
|
12260
12275
|
}
|
|
12261
12276
|
});
|
|
12262
|
-
return
|
|
12277
|
+
return f.useEffect(() => {
|
|
12263
12278
|
const c = pr(r.current);
|
|
12264
12279
|
i.current = a === "mounted" ? c : "none";
|
|
12265
12280
|
}, [a]), At(() => {
|
|
@@ -12271,7 +12286,7 @@ function ex(e) {
|
|
|
12271
12286
|
}, [e, l]), At(() => {
|
|
12272
12287
|
if (t) {
|
|
12273
12288
|
let c;
|
|
12274
|
-
const u = t.ownerDocument.defaultView ?? window,
|
|
12289
|
+
const u = t.ownerDocument.defaultView ?? window, d = (p) => {
|
|
12275
12290
|
const m = pr(r.current).includes(CSS.escape(p.animationName));
|
|
12276
12291
|
if (p.target === t && m && (l("ANIMATION_END"), !o.current)) {
|
|
12277
12292
|
const g = t.style.animationFillMode;
|
|
@@ -12282,14 +12297,14 @@ function ex(e) {
|
|
|
12282
12297
|
}, h = (p) => {
|
|
12283
12298
|
p.target === t && (i.current = pr(r.current));
|
|
12284
12299
|
};
|
|
12285
|
-
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel",
|
|
12286
|
-
u.clearTimeout(c), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel",
|
|
12300
|
+
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
12301
|
+
u.clearTimeout(c), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
12287
12302
|
};
|
|
12288
12303
|
} else
|
|
12289
12304
|
l("ANIMATION_END");
|
|
12290
12305
|
}, [t, l]), {
|
|
12291
12306
|
isPresent: ["mounted", "unmountSuspended"].includes(a),
|
|
12292
|
-
ref:
|
|
12307
|
+
ref: f.useCallback((c) => {
|
|
12293
12308
|
r.current = c ? getComputedStyle(c) : null, n(c);
|
|
12294
12309
|
}, [])
|
|
12295
12310
|
};
|
|
@@ -12313,7 +12328,7 @@ var nx = Object.freeze({
|
|
|
12313
12328
|
clip: "rect(0, 0, 0, 0)",
|
|
12314
12329
|
whiteSpace: "nowrap",
|
|
12315
12330
|
wordWrap: "normal"
|
|
12316
|
-
}), rx = "VisuallyHidden", Ss =
|
|
12331
|
+
}), rx = "VisuallyHidden", Ss = f.forwardRef(
|
|
12317
12332
|
(e, t) => /* @__PURE__ */ E(
|
|
12318
12333
|
we.span,
|
|
12319
12334
|
{
|
|
@@ -12332,7 +12347,7 @@ var As = "ToastProvider", [Ps, ox, ix] = z2("Toast"), [Pf] = vs("Toast", [ix]),
|
|
|
12332
12347
|
swipeDirection: o = "right",
|
|
12333
12348
|
swipeThreshold: i = 50,
|
|
12334
12349
|
children: s
|
|
12335
|
-
} = e, [a, l] =
|
|
12350
|
+
} = e, [a, l] = f.useState(null), [c, u] = f.useState(0), d = f.useRef(!1), h = f.useRef(!1);
|
|
12336
12351
|
return n.trim() || console.error(
|
|
12337
12352
|
`Invalid prop \`label\` supplied to \`${As}\`. Expected non-empty \`string\`.`
|
|
12338
12353
|
), /* @__PURE__ */ E(Ps.Provider, { scope: t, children: /* @__PURE__ */ E(
|
|
@@ -12346,30 +12361,30 @@ var As = "ToastProvider", [Ps, ox, ix] = z2("Toast"), [Pf] = vs("Toast", [ix]),
|
|
|
12346
12361
|
toastCount: c,
|
|
12347
12362
|
viewport: a,
|
|
12348
12363
|
onViewportChange: l,
|
|
12349
|
-
onToastAdd:
|
|
12350
|
-
onToastRemove:
|
|
12351
|
-
isFocusedToastEscapeKeyDownRef:
|
|
12364
|
+
onToastAdd: f.useCallback(() => u((p) => p + 1), []),
|
|
12365
|
+
onToastRemove: f.useCallback(() => u((p) => p - 1), []),
|
|
12366
|
+
isFocusedToastEscapeKeyDownRef: d,
|
|
12352
12367
|
isClosePausedRef: h,
|
|
12353
12368
|
children: s
|
|
12354
12369
|
}
|
|
12355
12370
|
) });
|
|
12356
12371
|
};
|
|
12357
12372
|
Cf.displayName = As;
|
|
12358
|
-
var Mf = "ToastViewport", ax = ["F8"], yi = "toast.viewportPause", vi = "toast.viewportResume", Rf =
|
|
12373
|
+
var Mf = "ToastViewport", ax = ["F8"], yi = "toast.viewportPause", vi = "toast.viewportResume", Rf = f.forwardRef(
|
|
12359
12374
|
(e, t) => {
|
|
12360
12375
|
const {
|
|
12361
12376
|
__scopeToast: n,
|
|
12362
12377
|
hotkey: r = ax,
|
|
12363
12378
|
label: o = "Notifications ({hotkey})",
|
|
12364
12379
|
...i
|
|
12365
|
-
} = e, s = Kr(Mf, n), a = ox(n), l =
|
|
12366
|
-
|
|
12380
|
+
} = e, s = Kr(Mf, n), a = ox(n), l = f.useRef(null), c = f.useRef(null), u = f.useRef(null), d = f.useRef(null), h = Re(t, d, s.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = s.toastCount > 0;
|
|
12381
|
+
f.useEffect(() => {
|
|
12367
12382
|
const g = (v) => {
|
|
12368
|
-
r.length !== 0 && r.every((w) => v[w] || v.code === w) &&
|
|
12383
|
+
r.length !== 0 && r.every((w) => v[w] || v.code === w) && d.current?.focus();
|
|
12369
12384
|
};
|
|
12370
12385
|
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
12371
|
-
}, [r]),
|
|
12372
|
-
const g = l.current, v =
|
|
12386
|
+
}, [r]), f.useEffect(() => {
|
|
12387
|
+
const g = l.current, v = d.current;
|
|
12373
12388
|
if (y && g && v) {
|
|
12374
12389
|
const T = () => {
|
|
12375
12390
|
if (!s.isClosePausedRef.current) {
|
|
@@ -12391,7 +12406,7 @@ var Mf = "ToastViewport", ax = ["F8"], yi = "toast.viewportPause", vi = "toast.v
|
|
|
12391
12406
|
};
|
|
12392
12407
|
}
|
|
12393
12408
|
}, [y, s.isClosePausedRef]);
|
|
12394
|
-
const m =
|
|
12409
|
+
const m = f.useCallback(
|
|
12395
12410
|
({ tabbingDirection: g }) => {
|
|
12396
12411
|
const T = a().map((w) => {
|
|
12397
12412
|
const P = w.ref.current, b = [P, ...wx(P)];
|
|
@@ -12401,8 +12416,8 @@ var Mf = "ToastViewport", ax = ["F8"], yi = "toast.viewportPause", vi = "toast.v
|
|
|
12401
12416
|
},
|
|
12402
12417
|
[a]
|
|
12403
12418
|
);
|
|
12404
|
-
return
|
|
12405
|
-
const g =
|
|
12419
|
+
return f.useEffect(() => {
|
|
12420
|
+
const g = d.current;
|
|
12406
12421
|
if (g) {
|
|
12407
12422
|
const v = (T) => {
|
|
12408
12423
|
const w = T.altKey || T.ctrlKey || T.metaKey;
|
|
@@ -12458,7 +12473,7 @@ var Mf = "ToastViewport", ax = ["F8"], yi = "toast.viewportPause", vi = "toast.v
|
|
|
12458
12473
|
}
|
|
12459
12474
|
);
|
|
12460
12475
|
Rf.displayName = Mf;
|
|
12461
|
-
var Df = "ToastFocusProxy", bi =
|
|
12476
|
+
var Df = "ToastFocusProxy", bi = f.forwardRef(
|
|
12462
12477
|
(e, t) => {
|
|
12463
12478
|
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, i = Kr(Df, n);
|
|
12464
12479
|
return /* @__PURE__ */ E(
|
|
@@ -12477,7 +12492,7 @@ var Df = "ToastFocusProxy", bi = d.forwardRef(
|
|
|
12477
12492
|
}
|
|
12478
12493
|
);
|
|
12479
12494
|
bi.displayName = Df;
|
|
12480
|
-
var Qn = "Toast", lx = "toast.swipeStart", cx = "toast.swipeMove", ux = "toast.swipeCancel", dx = "toast.swipeEnd", Of =
|
|
12495
|
+
var Qn = "Toast", lx = "toast.swipeStart", cx = "toast.swipeMove", ux = "toast.swipeCancel", dx = "toast.swipeEnd", Of = f.forwardRef(
|
|
12481
12496
|
(e, t) => {
|
|
12482
12497
|
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: i, ...s } = e, [a, l] = Ld({
|
|
12483
12498
|
prop: r,
|
|
@@ -12498,15 +12513,15 @@ var Qn = "Toast", lx = "toast.swipeStart", cx = "toast.swipeMove", ux = "toast.s
|
|
|
12498
12513
|
c.currentTarget.setAttribute("data-swipe", "start");
|
|
12499
12514
|
}),
|
|
12500
12515
|
onSwipeMove: Fe(e.onSwipeMove, (c) => {
|
|
12501
|
-
const { x: u, y:
|
|
12502
|
-
c.currentTarget.setAttribute("data-swipe", "move"), c.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${u}px`), c.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${
|
|
12516
|
+
const { x: u, y: d } = c.detail.delta;
|
|
12517
|
+
c.currentTarget.setAttribute("data-swipe", "move"), c.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${u}px`), c.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${d}px`);
|
|
12503
12518
|
}),
|
|
12504
12519
|
onSwipeCancel: Fe(e.onSwipeCancel, (c) => {
|
|
12505
12520
|
c.currentTarget.setAttribute("data-swipe", "cancel"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
12506
12521
|
}),
|
|
12507
12522
|
onSwipeEnd: Fe(e.onSwipeEnd, (c) => {
|
|
12508
|
-
const { x: u, y:
|
|
12509
|
-
c.currentTarget.setAttribute("data-swipe", "end"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), c.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${u}px`), c.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${
|
|
12523
|
+
const { x: u, y: d } = c.detail.delta;
|
|
12524
|
+
c.currentTarget.setAttribute("data-swipe", "end"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), c.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${u}px`), c.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${d}px`), l(!1);
|
|
12510
12525
|
})
|
|
12511
12526
|
}
|
|
12512
12527
|
) });
|
|
@@ -12516,7 +12531,7 @@ Of.displayName = Qn;
|
|
|
12516
12531
|
var [fx, hx] = Pf(Qn, {
|
|
12517
12532
|
onClose() {
|
|
12518
12533
|
}
|
|
12519
|
-
}), px =
|
|
12534
|
+
}), px = f.forwardRef(
|
|
12520
12535
|
(e, t) => {
|
|
12521
12536
|
const {
|
|
12522
12537
|
__scopeToast: n,
|
|
@@ -12528,19 +12543,19 @@ var [fx, hx] = Pf(Qn, {
|
|
|
12528
12543
|
onPause: l,
|
|
12529
12544
|
onResume: c,
|
|
12530
12545
|
onSwipeStart: u,
|
|
12531
|
-
onSwipeMove:
|
|
12546
|
+
onSwipeMove: d,
|
|
12532
12547
|
onSwipeCancel: h,
|
|
12533
12548
|
onSwipeEnd: p,
|
|
12534
12549
|
...y
|
|
12535
|
-
} = e, m = Kr(Qn, n), [g, v] =
|
|
12550
|
+
} = e, m = Kr(Qn, n), [g, v] = f.useState(null), T = Re(t, (k) => v(k)), w = f.useRef(null), P = f.useRef(null), b = o || m.duration, C = f.useRef(0), S = f.useRef(b), A = f.useRef(0), { onToastAdd: N, onToastRemove: j } = m, X = We(() => {
|
|
12536
12551
|
g?.contains(document.activeElement) && m.viewport?.focus(), s();
|
|
12537
|
-
}), Se =
|
|
12552
|
+
}), Se = f.useCallback(
|
|
12538
12553
|
(k) => {
|
|
12539
12554
|
!k || k === 1 / 0 || (window.clearTimeout(A.current), C.current = (/* @__PURE__ */ new Date()).getTime(), A.current = window.setTimeout(X, k));
|
|
12540
12555
|
},
|
|
12541
12556
|
[X]
|
|
12542
12557
|
);
|
|
12543
|
-
|
|
12558
|
+
f.useEffect(() => {
|
|
12544
12559
|
const k = m.viewport;
|
|
12545
12560
|
if (k) {
|
|
12546
12561
|
const q = () => {
|
|
@@ -12553,10 +12568,10 @@ var [fx, hx] = Pf(Qn, {
|
|
|
12553
12568
|
k.removeEventListener(yi, te), k.removeEventListener(vi, q);
|
|
12554
12569
|
};
|
|
12555
12570
|
}
|
|
12556
|
-
}, [m.viewport, b, l, c, Se]),
|
|
12571
|
+
}, [m.viewport, b, l, c, Se]), f.useEffect(() => {
|
|
12557
12572
|
i && !m.isClosePausedRef.current && Se(b);
|
|
12558
|
-
}, [i, b, m.isClosePausedRef, Se]),
|
|
12559
|
-
const le =
|
|
12573
|
+
}, [i, b, m.isClosePausedRef, Se]), f.useEffect(() => (N(), () => j()), [N, j]);
|
|
12574
|
+
const le = f.useMemo(() => g ? $f(g) : null, [g]);
|
|
12560
12575
|
return m.viewport ? /* @__PURE__ */ H(Bt, { children: [
|
|
12561
12576
|
le && /* @__PURE__ */ E(
|
|
12562
12577
|
mx,
|
|
@@ -12593,7 +12608,7 @@ var [fx, hx] = Pf(Qn, {
|
|
|
12593
12608
|
onPointerMove: Fe(e.onPointerMove, (k) => {
|
|
12594
12609
|
if (!w.current) return;
|
|
12595
12610
|
const q = k.clientX - w.current.x, te = k.clientY - w.current.y, B = !!P.current, M = ["left", "right"].includes(m.swipeDirection), he = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, Te = M ? he(0, q) : 0, De = M ? 0 : he(0, te), Ae = k.pointerType === "touch" ? 10 : 2, G = { x: Te, y: De }, ie = { originalEvent: k, delta: G };
|
|
12596
|
-
B ? (P.current = G, mr(cx,
|
|
12611
|
+
B ? (P.current = G, mr(cx, d, ie, {
|
|
12597
12612
|
discrete: !1
|
|
12598
12613
|
})) : Hl(G, m.swipeDirection, Ae) ? (P.current = G, mr(lx, u, ie, {
|
|
12599
12614
|
discrete: !1
|
|
@@ -12626,8 +12641,8 @@ var [fx, hx] = Pf(Qn, {
|
|
|
12626
12641
|
] }) : null;
|
|
12627
12642
|
}
|
|
12628
12643
|
), mx = (e) => {
|
|
12629
|
-
const { __scopeToast: t, children: n, ...r } = e, o = Kr(Qn, t), [i, s] =
|
|
12630
|
-
return vx(() => s(!0)),
|
|
12644
|
+
const { __scopeToast: t, children: n, ...r } = e, o = Kr(Qn, t), [i, s] = f.useState(!1), [a, l] = f.useState(!1);
|
|
12645
|
+
return vx(() => s(!0)), f.useEffect(() => {
|
|
12631
12646
|
const c = window.setTimeout(() => l(!0), 1e3);
|
|
12632
12647
|
return () => window.clearTimeout(c);
|
|
12633
12648
|
}, []), a ? null : /* @__PURE__ */ E(ws, { asChild: !0, children: /* @__PURE__ */ E(Ss, { ...r, children: i && /* @__PURE__ */ H(Bt, { children: [
|
|
@@ -12635,21 +12650,21 @@ var [fx, hx] = Pf(Qn, {
|
|
|
12635
12650
|
" ",
|
|
12636
12651
|
n
|
|
12637
12652
|
] }) }) });
|
|
12638
|
-
}, gx = "ToastTitle", Vf =
|
|
12653
|
+
}, gx = "ToastTitle", Vf = f.forwardRef(
|
|
12639
12654
|
(e, t) => {
|
|
12640
12655
|
const { __scopeToast: n, ...r } = e;
|
|
12641
12656
|
return /* @__PURE__ */ E(we.div, { ...r, ref: t });
|
|
12642
12657
|
}
|
|
12643
12658
|
);
|
|
12644
12659
|
Vf.displayName = gx;
|
|
12645
|
-
var yx = "ToastDescription", Ff =
|
|
12660
|
+
var yx = "ToastDescription", Ff = f.forwardRef(
|
|
12646
12661
|
(e, t) => {
|
|
12647
12662
|
const { __scopeToast: n, ...r } = e;
|
|
12648
12663
|
return /* @__PURE__ */ E(we.div, { ...r, ref: t });
|
|
12649
12664
|
}
|
|
12650
12665
|
);
|
|
12651
12666
|
Ff.displayName = yx;
|
|
12652
|
-
var If = "ToastAction", Nf =
|
|
12667
|
+
var If = "ToastAction", Nf = f.forwardRef(
|
|
12653
12668
|
(e, t) => {
|
|
12654
12669
|
const { altText: n, ...r } = e;
|
|
12655
12670
|
return n.trim() ? /* @__PURE__ */ E(_f, { altText: n, asChild: !0, children: /* @__PURE__ */ E(Lf, { ...r, ref: t }) }) : (console.error(
|
|
@@ -12658,7 +12673,7 @@ var If = "ToastAction", Nf = d.forwardRef(
|
|
|
12658
12673
|
}
|
|
12659
12674
|
);
|
|
12660
12675
|
Nf.displayName = If;
|
|
12661
|
-
var kf = "ToastClose", Lf =
|
|
12676
|
+
var kf = "ToastClose", Lf = f.forwardRef(
|
|
12662
12677
|
(e, t) => {
|
|
12663
12678
|
const { __scopeToast: n, ...r } = e, o = hx(kf, n);
|
|
12664
12679
|
return /* @__PURE__ */ E(_f, { asChild: !0, children: /* @__PURE__ */ E(
|
|
@@ -12673,7 +12688,7 @@ var kf = "ToastClose", Lf = d.forwardRef(
|
|
|
12673
12688
|
}
|
|
12674
12689
|
);
|
|
12675
12690
|
Lf.displayName = kf;
|
|
12676
|
-
var _f =
|
|
12691
|
+
var _f = f.forwardRef((e, t) => {
|
|
12677
12692
|
const { __scopeToast: n, altText: r, ...o } = e;
|
|
12678
12693
|
return /* @__PURE__ */ E(
|
|
12679
12694
|
we.div,
|
|
@@ -12843,13 +12858,13 @@ const jf = dt({
|
|
|
12843
12858
|
variant: l,
|
|
12844
12859
|
action: c,
|
|
12845
12860
|
actionCallback: u,
|
|
12846
|
-
timeout:
|
|
12861
|
+
timeout: d = 5e3
|
|
12847
12862
|
}) => {
|
|
12848
12863
|
const h = `${Wx()}`;
|
|
12849
12864
|
n((p) => [
|
|
12850
12865
|
...p,
|
|
12851
|
-
{ id: h, title: i, description: s, metadata: a, timeout:
|
|
12852
|
-
]), setTimeout(() => r(h),
|
|
12866
|
+
{ id: h, title: i, description: s, metadata: a, timeout: d, variant: l, action: c, actionCallback: u }
|
|
12867
|
+
]), setTimeout(() => r(h), d);
|
|
12853
12868
|
};
|
|
12854
12869
|
return /* @__PURE__ */ H(jf.Provider, { value: { toastAlerts: t, openToastAlert: o, closeToastAlerts: r }, children: [
|
|
12855
12870
|
e,
|