lambda-ui-components 1.0.0 → 1.0.2
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/README.md +103 -109
- package/dist/main.mjs +144 -146
- package/dist/main.umd.js +4 -4
- package/package.json +102 -102
package/dist/main.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as m, jsxs as L, Fragment as va } from "react/jsx-runtime";
|
|
3
3
|
import * as za from "react";
|
|
4
|
-
import Be, { forwardRef as xe, createElement as ki, useState as Z, useCallback as le, useMemo as
|
|
4
|
+
import Be, { forwardRef as xe, createElement as ki, useState as Z, useCallback as le, useMemo as ta, useRef as fe, useLayoutEffect as Mt, useId as Pa, useContext as ea, createContext as Na, useEffect as ge, useInsertionEffect as Hn, Children as ei, isValidElement as Ia, Fragment as Un, Component as xc, cloneElement as Wn } from "react";
|
|
5
5
|
import Yn, { createPortal as ai } from "react-dom";
|
|
6
6
|
function Zs(e) {
|
|
7
7
|
var a, t, i = "";
|
|
@@ -1060,7 +1060,7 @@ const du = [
|
|
|
1060
1060
|
u && t ? t(_) : p(_);
|
|
1061
1061
|
},
|
|
1062
1062
|
[f, u, t]
|
|
1063
|
-
), z =
|
|
1063
|
+
), z = ta(
|
|
1064
1064
|
() => ({ activeValue: f, onValueChange: x, size: o, variant: n, radius: l }),
|
|
1065
1065
|
[f, x, o, n, l]
|
|
1066
1066
|
), k = E(mu({ variant: n, radius: l }), r);
|
|
@@ -1248,7 +1248,7 @@ const ov = Object.assign(fu, {
|
|
|
1248
1248
|
style: d,
|
|
1249
1249
|
...u
|
|
1250
1250
|
}, b) => {
|
|
1251
|
-
const p = r || !!l, f =
|
|
1251
|
+
const p = r || !!l, f = ta(() => {
|
|
1252
1252
|
if (!p)
|
|
1253
1253
|
return null;
|
|
1254
1254
|
if (l && e === "neutral" && Be.isValidElement(l))
|
|
@@ -1644,7 +1644,7 @@ function Hu({ hue: e, saturation: a, lightness: t, alpha: i }) {
|
|
|
1644
1644
|
function Ni(e, a) {
|
|
1645
1645
|
return (t) => t > 0 ? a : e;
|
|
1646
1646
|
}
|
|
1647
|
-
const
|
|
1647
|
+
const ma = (e, a, t) => e + (a - e) * t, Gi = (e, a, t) => {
|
|
1648
1648
|
const i = e * e, n = t * (a * a - i) + i;
|
|
1649
1649
|
return n < 0 ? 0 : Math.sqrt(n);
|
|
1650
1650
|
}, Uu = [gn, lt, gt], Wu = (e) => Uu.find((a) => a.test(e));
|
|
@@ -1660,13 +1660,13 @@ const Yr = (e, a) => {
|
|
|
1660
1660
|
if (!t || !i)
|
|
1661
1661
|
return Ni(e, a);
|
|
1662
1662
|
const n = { ...t };
|
|
1663
|
-
return (r) => (n.red = Gi(t.red, i.red, r), n.green = Gi(t.green, i.green, r), n.blue = Gi(t.blue, i.blue, r), n.alpha =
|
|
1663
|
+
return (r) => (n.red = Gi(t.red, i.red, r), n.green = Gi(t.green, i.green, r), n.blue = Gi(t.blue, i.blue, r), n.alpha = ma(t.alpha, i.alpha, r), lt.transform(n));
|
|
1664
1664
|
}, yn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
1665
1665
|
function Yu(e, a) {
|
|
1666
1666
|
return yn.has(e) ? (t) => t <= 0 ? e : a : (t) => t >= 1 ? a : e;
|
|
1667
1667
|
}
|
|
1668
1668
|
function Ku(e, a) {
|
|
1669
|
-
return (t) =>
|
|
1669
|
+
return (t) => ma(e, a, t);
|
|
1670
1670
|
}
|
|
1671
1671
|
function ur(e) {
|
|
1672
1672
|
return typeof e == "number" ? Ku : typeof e == "string" ? dr(e) ? Ni : fa.test(e) ? Yr : Zu : Array.isArray(e) ? Do : typeof e == "object" ? fa.test(e) ? Yr : Gu : Ni;
|
|
@@ -1702,7 +1702,7 @@ const Zu = (e, a) => {
|
|
|
1702
1702
|
return i.indexes.var.length === n.indexes.var.length && i.indexes.color.length === n.indexes.color.length && i.indexes.number.length >= n.indexes.number.length ? yn.has(e) && !n.values.length || yn.has(a) && !i.values.length ? Yu(e, a) : ni(Do(Xu(i, n), n.values), t) : (St(!0, `Complex values '${e}' and '${a}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Ni(e, a));
|
|
1703
1703
|
};
|
|
1704
1704
|
function Io(e, a, t) {
|
|
1705
|
-
return typeof e == "number" && typeof a == "number" && typeof t == "number" ?
|
|
1705
|
+
return typeof e == "number" && typeof a == "number" && typeof t == "number" ? ma(e, a, t) : ur(e)(e, a);
|
|
1706
1706
|
}
|
|
1707
1707
|
const Ju = (e) => {
|
|
1708
1708
|
const a = ({ timestamp: t }) => e(t);
|
|
@@ -1743,7 +1743,7 @@ function jo(e, a, t) {
|
|
|
1743
1743
|
const i = Math.max(a - eb, 0);
|
|
1744
1744
|
return ho(t - e(i), a - i);
|
|
1745
1745
|
}
|
|
1746
|
-
const
|
|
1746
|
+
const ca = {
|
|
1747
1747
|
// Default spring physics
|
|
1748
1748
|
stiffness: 100,
|
|
1749
1749
|
damping: 10,
|
|
@@ -1772,11 +1772,11 @@ const ma = {
|
|
|
1772
1772
|
minDamping: 0.05,
|
|
1773
1773
|
maxDamping: 1
|
|
1774
1774
|
}, Xi = 1e-3;
|
|
1775
|
-
function ab({ duration: e =
|
|
1775
|
+
function ab({ duration: e = ca.duration, bounce: a = ca.bounce, velocity: t = ca.velocity, mass: i = ca.mass }) {
|
|
1776
1776
|
let n, r;
|
|
1777
|
-
St(e <= /* @__PURE__ */ Ra(
|
|
1777
|
+
St(e <= /* @__PURE__ */ Ra(ca.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
1778
1778
|
let l = 1 - a;
|
|
1779
|
-
l = Ha(
|
|
1779
|
+
l = Ha(ca.minDamping, ca.maxDamping, l), e = Ha(ca.minDuration, ca.maxDuration, /* @__PURE__ */ Ea(e)), l < 1 ? (n = (c) => {
|
|
1780
1780
|
const d = c * l, u = d * e, b = d - t, p = vn(c, l), f = Math.exp(-u);
|
|
1781
1781
|
return Xi - b / p * f;
|
|
1782
1782
|
}, r = (c) => {
|
|
@@ -1792,8 +1792,8 @@ function ab({ duration: e = ma.duration, bounce: a = ma.bounce, velocity: t = ma
|
|
|
1792
1792
|
const s = 5 / e, o = ib(n, r, s);
|
|
1793
1793
|
if (e = /* @__PURE__ */ Ra(e), isNaN(o))
|
|
1794
1794
|
return {
|
|
1795
|
-
stiffness:
|
|
1796
|
-
damping:
|
|
1795
|
+
stiffness: ca.stiffness,
|
|
1796
|
+
damping: ca.damping,
|
|
1797
1797
|
duration: e
|
|
1798
1798
|
};
|
|
1799
1799
|
{
|
|
@@ -1821,10 +1821,10 @@ function Kr(e, a) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
function lb(e) {
|
|
1823
1823
|
let a = {
|
|
1824
|
-
velocity:
|
|
1825
|
-
stiffness:
|
|
1826
|
-
damping:
|
|
1827
|
-
mass:
|
|
1824
|
+
velocity: ca.velocity,
|
|
1825
|
+
stiffness: ca.stiffness,
|
|
1826
|
+
damping: ca.damping,
|
|
1827
|
+
mass: ca.mass,
|
|
1828
1828
|
isResolvedFromDuration: !1,
|
|
1829
1829
|
...e
|
|
1830
1830
|
};
|
|
@@ -1833,7 +1833,7 @@ function lb(e) {
|
|
|
1833
1833
|
const t = e.visualDuration, i = 2 * Math.PI / (t * 1.2), n = i * i, r = 2 * Ha(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(n);
|
|
1834
1834
|
a = {
|
|
1835
1835
|
...a,
|
|
1836
|
-
mass:
|
|
1836
|
+
mass: ca.mass,
|
|
1837
1837
|
stiffness: n,
|
|
1838
1838
|
damping: r
|
|
1839
1839
|
};
|
|
@@ -1842,12 +1842,12 @@ function lb(e) {
|
|
|
1842
1842
|
a = {
|
|
1843
1843
|
...a,
|
|
1844
1844
|
...t,
|
|
1845
|
-
mass:
|
|
1845
|
+
mass: ca.mass
|
|
1846
1846
|
}, a.isResolvedFromDuration = !0;
|
|
1847
1847
|
}
|
|
1848
1848
|
return a;
|
|
1849
1849
|
}
|
|
1850
|
-
function Si(e =
|
|
1850
|
+
function Si(e = ca.visualDuration, a = ca.bounce) {
|
|
1851
1851
|
const t = typeof e != "object" ? {
|
|
1852
1852
|
visualDuration: e,
|
|
1853
1853
|
keyframes: [0, 1],
|
|
@@ -1858,7 +1858,7 @@ function Si(e = ma.visualDuration, a = ma.bounce) {
|
|
|
1858
1858
|
...t,
|
|
1859
1859
|
velocity: -/* @__PURE__ */ Ea(t.velocity || 0)
|
|
1860
1860
|
}), f = b || 0, x = c / (2 * Math.sqrt(o * d)), z = l - r, k = /* @__PURE__ */ Ea(Math.sqrt(o / d)), h = Math.abs(z) < 5;
|
|
1861
|
-
i || (i = h ?
|
|
1861
|
+
i || (i = h ? ca.restSpeed.granular : ca.restSpeed.default), n || (n = h ? ca.restDelta.granular : ca.restDelta.default);
|
|
1862
1862
|
let _;
|
|
1863
1863
|
if (x < 1) {
|
|
1864
1864
|
const g = vn(k, x);
|
|
@@ -1970,7 +1970,7 @@ function ob(e, a) {
|
|
|
1970
1970
|
const t = e[e.length - 1];
|
|
1971
1971
|
for (let i = 1; i <= a; i++) {
|
|
1972
1972
|
const n = /* @__PURE__ */ Kt(0, a, i);
|
|
1973
|
-
e.push(
|
|
1973
|
+
e.push(ma(t, 1, n));
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
1976
|
function db(e) {
|
|
@@ -3306,7 +3306,7 @@ function gp({ children: e, isPresent: a, anchorX: t, root: i }) {
|
|
|
3306
3306
|
}
|
|
3307
3307
|
const yp = ({ children: e, initial: a, isPresent: t, onExitComplete: i, custom: n, presenceAffectsLayout: r, mode: l, anchorX: s, root: o }) => {
|
|
3308
3308
|
const c = ii(vp), d = Pa();
|
|
3309
|
-
let u = !0, b =
|
|
3309
|
+
let u = !0, b = ta(() => (u = !1, {
|
|
3310
3310
|
id: d,
|
|
3311
3311
|
initial: a,
|
|
3312
3312
|
isPresent: t,
|
|
@@ -3320,7 +3320,7 @@ const yp = ({ children: e, initial: a, isPresent: t, onExitComplete: i, custom:
|
|
|
3320
3320
|
},
|
|
3321
3321
|
register: (p) => (c.set(p, !1), () => c.delete(p))
|
|
3322
3322
|
}), [t, c, i]);
|
|
3323
|
-
return r && u && (b = { ...b }),
|
|
3323
|
+
return r && u && (b = { ...b }), ta(() => {
|
|
3324
3324
|
c.forEach((p, f) => c.set(f, !1));
|
|
3325
3325
|
}, [t]), za.useEffect(() => {
|
|
3326
3326
|
!t && !c.size && i && i();
|
|
@@ -3349,7 +3349,7 @@ function ml(e) {
|
|
|
3349
3349
|
}), a;
|
|
3350
3350
|
}
|
|
3351
3351
|
const Ba = ({ children: e, custom: a, initial: t = !0, onExitComplete: i, presenceAffectsLayout: n = !0, mode: r = "sync", propagate: l = !1, anchorX: s = "left", root: o }) => {
|
|
3352
|
-
const [c, d] = nd(l), u =
|
|
3352
|
+
const [c, d] = nd(l), u = ta(() => ml(e), [e]), b = l && !c ? [] : u.map(mi), p = fe(!0), f = fe(u), x = ii(() => /* @__PURE__ */ new Map()), [z, k] = Z(u), [h, _] = Z(u);
|
|
3353
3353
|
er(() => {
|
|
3354
3354
|
p.current = !1, f.current = u;
|
|
3355
3355
|
for (let v = 0; v < h.length; v++) {
|
|
@@ -3496,7 +3496,7 @@ function Tp(e, a) {
|
|
|
3496
3496
|
}
|
|
3497
3497
|
function Np(e) {
|
|
3498
3498
|
const { initial: a, animate: t } = Tp(e, ea($i));
|
|
3499
|
-
return
|
|
3499
|
+
return ta(() => ({ initial: a, animate: t }), [bl(a), bl(t)]);
|
|
3500
3500
|
}
|
|
3501
3501
|
function bl(e) {
|
|
3502
3502
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
@@ -3566,7 +3566,7 @@ function dd(e, a, t) {
|
|
|
3566
3566
|
!ya(a[i]) && !od(i, t) && (e[i] = a[i]);
|
|
3567
3567
|
}
|
|
3568
3568
|
function Pp({ transformTemplate: e }, a) {
|
|
3569
|
-
return
|
|
3569
|
+
return ta(() => {
|
|
3570
3570
|
const t = zr();
|
|
3571
3571
|
return xr(t, a, e), Object.assign({}, t.vars, t.style);
|
|
3572
3572
|
}, [a]);
|
|
@@ -3616,7 +3616,7 @@ const md = () => ({
|
|
|
3616
3616
|
attrs: {}
|
|
3617
3617
|
}), ud = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
3618
3618
|
function jp(e, a, t, i) {
|
|
3619
|
-
const n =
|
|
3619
|
+
const n = ta(() => {
|
|
3620
3620
|
const r = md();
|
|
3621
3621
|
return cd(r, a, ud(i), e.transformTemplate, e.style), {
|
|
3622
3622
|
...r.attrs,
|
|
@@ -3677,7 +3677,7 @@ function Tr(e) {
|
|
|
3677
3677
|
);
|
|
3678
3678
|
}
|
|
3679
3679
|
function Rp(e, a, t, { latestValues: i }, n, r = !1) {
|
|
3680
|
-
const s = (Tr(e) ? jp : Ep)(a, i, n, e), o = zp(a, typeof e == "string", r), c = e !== Un ? { ...o, ...s, ref: t } : {}, { children: d } = a, u =
|
|
3680
|
+
const s = (Tr(e) ? jp : Ep)(a, i, n, e), o = zp(a, typeof e == "string", r), c = e !== Un ? { ...o, ...s, ref: t } : {}, { children: d } = a, u = ta(() => ya(d) ? d.get() : d, [d]);
|
|
3681
3681
|
return ki(e, {
|
|
3682
3682
|
...c,
|
|
3683
3683
|
children: u
|
|
@@ -3960,7 +3960,7 @@ function wt(e, a) {
|
|
|
3960
3960
|
e.min = e.min + a, e.max = e.max + a;
|
|
3961
3961
|
}
|
|
3962
3962
|
function yl(e, a, t, i, n = 0.5) {
|
|
3963
|
-
const r =
|
|
3963
|
+
const r = ma(e.min, e.max, n);
|
|
3964
3964
|
Cn(e, a, t, r, i);
|
|
3965
3965
|
}
|
|
3966
3966
|
function kt(e, a) {
|
|
@@ -4761,7 +4761,7 @@ function qf(e, a, t) {
|
|
|
4761
4761
|
return Math.abs(e - a) <= t;
|
|
4762
4762
|
}
|
|
4763
4763
|
function zl(e, a, t, i = 0.5) {
|
|
4764
|
-
e.origin = i, e.originPoint =
|
|
4764
|
+
e.origin = i, e.originPoint = ma(a.min, a.max, e.origin), e.scale = Sa(t) / Sa(a), e.translate = ma(t.min, t.max, e.origin) - e.originPoint, (e.scale >= Rf && e.scale <= Ff || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Bf && e.translate <= Of || isNaN(e.translate)) && (e.translate = 0);
|
|
4765
4765
|
}
|
|
4766
4766
|
function Ut(e, a, t, i) {
|
|
4767
4767
|
zl(e.x, a.x, t.x, i ? i.originX : void 0), zl(e.y, a.y, t.y, i ? i.originY : void 0);
|
|
@@ -4861,7 +4861,7 @@ function Yf(e, a) {
|
|
|
4861
4861
|
return l.x === 1 / 0 && (l.x = 0), l.y === 1 / 0 && (l.y = 0), l;
|
|
4862
4862
|
}
|
|
4863
4863
|
function Kf(e, { min: a, max: t }, i) {
|
|
4864
|
-
return a !== void 0 && e < a ? e = i ?
|
|
4864
|
+
return a !== void 0 && e < a ? e = i ? ma(a, e, i.min) : Math.max(e, a) : t !== void 0 && e > t && (e = i ? ma(t, e, i.max) : Math.min(e, t)), e;
|
|
4865
4865
|
}
|
|
4866
4866
|
function Vl(e, a, t) {
|
|
4867
4867
|
return {
|
|
@@ -5079,7 +5079,7 @@ class ah {
|
|
|
5079
5079
|
const { projection: n } = this.visualElement, r = this.getAxisMotionValue(t);
|
|
5080
5080
|
if (n && n.layout) {
|
|
5081
5081
|
const { min: l, max: s } = n.layout.layoutBox[t];
|
|
5082
|
-
r.set(a[t] -
|
|
5082
|
+
r.set(a[t] - ma(l, s, 0.5));
|
|
5083
5083
|
}
|
|
5084
5084
|
});
|
|
5085
5085
|
}
|
|
@@ -5108,7 +5108,7 @@ class ah {
|
|
|
5108
5108
|
if (!ui(l, a, null))
|
|
5109
5109
|
return;
|
|
5110
5110
|
const s = this.getAxisMotionValue(l), { min: o, max: c } = this.constraints[l];
|
|
5111
|
-
s.set(
|
|
5111
|
+
s.set(ma(o, c, n[l]));
|
|
5112
5112
|
});
|
|
5113
5113
|
}
|
|
5114
5114
|
addListeners() {
|
|
@@ -5233,7 +5233,7 @@ const It = {
|
|
|
5233
5233
|
return i;
|
|
5234
5234
|
const r = Xa.createTransformer(e), l = typeof n[0] != "number" ? 1 : 0, s = t.x.scale * a.x, o = t.y.scale * a.y;
|
|
5235
5235
|
n[0 + l] /= s, n[1 + l] /= o;
|
|
5236
|
-
const c =
|
|
5236
|
+
const c = ma(s, o, 0.5);
|
|
5237
5237
|
return typeof n[2 + l] == "number" && (n[2 + l] /= c), typeof n[3 + l] == "number" && (n[3 + l] /= c), r(n);
|
|
5238
5238
|
}
|
|
5239
5239
|
};
|
|
@@ -5326,15 +5326,15 @@ function mh(e, a) {
|
|
|
5326
5326
|
}
|
|
5327
5327
|
const jd = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], uh = jd.length, Il = (e) => typeof e == "string" ? parseFloat(e) : e, Ll = (e) => typeof e == "number" || Te.test(e);
|
|
5328
5328
|
function bh(e, a, t, i, n, r) {
|
|
5329
|
-
n ? (e.opacity =
|
|
5329
|
+
n ? (e.opacity = ma(0, t.opacity ?? 1, ph(i)), e.opacityExit = ma(a.opacity ?? 1, 0, fh(i))) : r && (e.opacity = ma(a.opacity ?? 1, t.opacity ?? 1, i));
|
|
5330
5330
|
for (let l = 0; l < uh; l++) {
|
|
5331
5331
|
const s = `border${jd[l]}Radius`;
|
|
5332
5332
|
let o = jl(a, s), c = jl(t, s);
|
|
5333
5333
|
if (o === void 0 && c === void 0)
|
|
5334
5334
|
continue;
|
|
5335
|
-
o || (o = 0), c || (c = 0), o === 0 || c === 0 || Ll(o) === Ll(c) ? (e[s] = Math.max(
|
|
5335
|
+
o || (o = 0), c || (c = 0), o === 0 || c === 0 || Ll(o) === Ll(c) ? (e[s] = Math.max(ma(Il(o), Il(c), i), 0), (Fa.test(c) || Fa.test(o)) && (e[s] += "%")) : e[s] = c;
|
|
5336
5336
|
}
|
|
5337
|
-
(a.rotate || t.rotate) && (e.rotate =
|
|
5337
|
+
(a.rotate || t.rotate) && (e.rotate = ma(a.rotate || 0, t.rotate || 0, i));
|
|
5338
5338
|
}
|
|
5339
5339
|
function jl(e, a) {
|
|
5340
5340
|
return e[a] !== void 0 ? e[a] : e.borderRadius;
|
|
@@ -5356,9 +5356,9 @@ function Fl(e, a, t, i, n) {
|
|
|
5356
5356
|
return e -= a, e = Ai(e, 1 / t, i), n !== void 0 && (e = Ai(e, 1 / n, i)), e;
|
|
5357
5357
|
}
|
|
5358
5358
|
function hh(e, a = 0, t = 1, i = 0.5, n, r = e, l = e) {
|
|
5359
|
-
if (Fa.test(a) && (a = parseFloat(a), a =
|
|
5359
|
+
if (Fa.test(a) && (a = parseFloat(a), a = ma(l.min, l.max, a / 100) - l.min), typeof a != "number")
|
|
5360
5360
|
return;
|
|
5361
|
-
let s =
|
|
5361
|
+
let s = ma(r.min, r.max, i);
|
|
5362
5362
|
e === r && (s -= a), e.min = Fl(e.min, a, t, s, n), e.max = Fl(e.max, a, t, s, n);
|
|
5363
5363
|
}
|
|
5364
5364
|
function Bl(e, a, [t, i, n], r, l) {
|
|
@@ -6014,10 +6014,10 @@ function Eh(e) {
|
|
|
6014
6014
|
e.removeLeadSnapshot();
|
|
6015
6015
|
}
|
|
6016
6016
|
function Zl(e, a, t) {
|
|
6017
|
-
e.translate =
|
|
6017
|
+
e.translate = ma(a.translate, 0, t), e.scale = ma(a.scale, 1, t), e.origin = a.origin, e.originPoint = a.originPoint;
|
|
6018
6018
|
}
|
|
6019
6019
|
function Jl(e, a, t, i) {
|
|
6020
|
-
e.min =
|
|
6020
|
+
e.min = ma(a.min, t.min, i), e.max = ma(a.max, t.max, i);
|
|
6021
6021
|
}
|
|
6022
6022
|
function Dh(e, a, t, i) {
|
|
6023
6023
|
Jl(e.x, a.x, t.x, i), Jl(e.y, a.y, t.y, i);
|
|
@@ -6750,7 +6750,7 @@ const rs = [
|
|
|
6750
6750
|
}
|
|
6751
6751
|
}), Kd = Na(null), p_ = xe(
|
|
6752
6752
|
({ children: e, size: a, radius: t, disabled: i }, n) => {
|
|
6753
|
-
const r =
|
|
6753
|
+
const r = ta(
|
|
6754
6754
|
() => ({
|
|
6755
6755
|
size: a ?? "medium",
|
|
6756
6756
|
radius: t,
|
|
@@ -7964,7 +7964,7 @@ const rs = [
|
|
|
7964
7964
|
return o ? o.replace(/{{(\w+)}}/g, (c, d) => l[d] ?? "") : r;
|
|
7965
7965
|
},
|
|
7966
7966
|
[t]
|
|
7967
|
-
), n =
|
|
7967
|
+
), n = ta(() => ({ lang: a, t: i }), [a, i]);
|
|
7968
7968
|
return /* @__PURE__ */ m(ec.Provider, { value: n, children: e });
|
|
7969
7969
|
}, K_ = "_visible_jxfew_65", $e = {
|
|
7970
7970
|
"lambda-tooltip-target-wrapper": "_lambda-tooltip-target-wrapper_jxfew_1",
|
|
@@ -8234,7 +8234,7 @@ const rs = [
|
|
|
8234
8234
|
v.current !== null && (window.clearTimeout(v.current), v.current = null), w.current !== null && (window.clearTimeout(w.current), w.current = null), window.removeEventListener("scroll", re), window.removeEventListener("resize", re);
|
|
8235
8235
|
};
|
|
8236
8236
|
}, [f, t, r]);
|
|
8237
|
-
const B =
|
|
8237
|
+
const B = ta(() => {
|
|
8238
8238
|
if (!Ia(a))
|
|
8239
8239
|
return a;
|
|
8240
8240
|
const re = {
|
|
@@ -8820,7 +8820,7 @@ const gv = ({
|
|
|
8820
8820
|
slideRef: c,
|
|
8821
8821
|
thumbnailsContainerRef: d
|
|
8822
8822
|
}) => {
|
|
8823
|
-
const [u, b] = Z(!1), [p, f] = Z(!1), [x, z] = Z(0), [k, h] = Z(a ? 1 : 0), [_, y] = Z(0), [g, v] = Z(t), [w, N] = Z(!1), [T, $] = Z(1), [A, Y] = Z(1), [S, Q] = Z(!1), ne = fe(null), [oe, B] = Z("center"), O = fe(null), K = fe(null), re =
|
|
8823
|
+
const [u, b] = Z(!1), [p, f] = Z(!1), [x, z] = Z(0), [k, h] = Z(a ? 1 : 0), [_, y] = Z(0), [g, v] = Z(t), [w, N] = Z(!1), [T, $] = Z(1), [A, Y] = Z(1), [S, Q] = Z(!1), ne = fe(null), [oe, B] = Z("center"), O = fe(null), K = fe(null), re = ta(() => ei.toArray(s).filter(Ia), [s]), ie = re.length;
|
|
8824
8824
|
ge(() => {
|
|
8825
8825
|
const de = [...i].sort((ee, _e) => _e.breakpoint - ee.breakpoint), U = () => {
|
|
8826
8826
|
const ee = window.innerWidth, _e = de.find((Xe) => ee >= Xe.breakpoint) || de[de.length - 1];
|
|
@@ -8830,7 +8830,7 @@ const gv = ({
|
|
|
8830
8830
|
}, [i, r, n, e]);
|
|
8831
8831
|
const J = () => {
|
|
8832
8832
|
if (d.current && o && o.current) {
|
|
8833
|
-
const de = d.current.getBoundingClientRect().width, U = Array.from(d.current.children), _e = U.reduce((Xe,
|
|
8833
|
+
const de = d.current.getBoundingClientRect().width, U = Array.from(d.current.children), _e = U.reduce((Xe, aa) => Xe + aa.getBoundingClientRect().width, 0) + U.length * 8;
|
|
8834
8834
|
de < _e ? B("start") : B("center");
|
|
8835
8835
|
}
|
|
8836
8836
|
};
|
|
@@ -8896,8 +8896,8 @@ const gv = ({
|
|
|
8896
8896
|
const U = Math.max(0, Math.min(de, ie - 1));
|
|
8897
8897
|
if (!a) {
|
|
8898
8898
|
if (T > 1 && r === "single") {
|
|
8899
|
-
const
|
|
8900
|
-
let sa = U -
|
|
8899
|
+
const aa = Math.floor(T / 2);
|
|
8900
|
+
let sa = U - aa;
|
|
8901
8901
|
sa = Math.max(0, Math.min(sa, ie - T)), y(U), te(sa);
|
|
8902
8902
|
return;
|
|
8903
8903
|
}
|
|
@@ -8906,9 +8906,9 @@ const gv = ({
|
|
|
8906
8906
|
return;
|
|
8907
8907
|
}
|
|
8908
8908
|
if (T > 1 && r === "single") {
|
|
8909
|
-
const _e = Math.max(T, A || T), Xe = Math.floor(T / 2),
|
|
8909
|
+
const _e = Math.max(T, A || T), Xe = Math.floor(T / 2), aa = _e + U - Xe;
|
|
8910
8910
|
y(U);
|
|
8911
|
-
const sa = Math.max(0, Math.min(
|
|
8911
|
+
const sa = Math.max(0, Math.min(aa, _e + ie - 1));
|
|
8912
8912
|
te(sa);
|
|
8913
8913
|
return;
|
|
8914
8914
|
}
|
|
@@ -8989,18 +8989,18 @@ const gv = ({
|
|
|
8989
8989
|
b(!0), ne.current = { x: de.clientX, y: de.clientY }, z(0);
|
|
8990
8990
|
const U = (_e) => {
|
|
8991
8991
|
if (!ne.current || w || p) return;
|
|
8992
|
-
const Xe = { x: _e.clientX, y: _e.clientY },
|
|
8993
|
-
if (!a && (k === 0 &&
|
|
8994
|
-
const G =
|
|
8992
|
+
const Xe = { x: _e.clientX, y: _e.clientY }, aa = e === "vertical" ? Xe.y - ne.current.y : Xe.x - ne.current.x, sa = Ge();
|
|
8993
|
+
if (!a && (k === 0 && aa > 0 || k === ie - T && aa < 0)) {
|
|
8994
|
+
const G = aa * 0.2;
|
|
8995
8995
|
z(G);
|
|
8996
8996
|
return;
|
|
8997
8997
|
}
|
|
8998
|
-
const X = sa, D = Math.max(Math.min(
|
|
8998
|
+
const X = sa, D = Math.max(Math.min(aa, X), -X);
|
|
8999
8999
|
z(D);
|
|
9000
9000
|
}, ee = (_e) => {
|
|
9001
9001
|
if (!ne.current || w || p) return;
|
|
9002
|
-
const Xe = { x: _e.clientX, y: _e.clientY },
|
|
9003
|
-
b(!1), z(0), Math.abs(
|
|
9002
|
+
const Xe = { x: _e.clientX, y: _e.clientY }, aa = e === "vertical" ? ne.current.y - Xe.y : ne.current.x - Xe.x, X = Ge() * 0.2;
|
|
9003
|
+
b(!1), z(0), Math.abs(aa) > X ? aa > 0 ? !a && k >= ie - T ? (f(!0), setTimeout(() => f(!1), 300)) : M() : !a && k <= 0 ? (f(!0), setTimeout(() => f(!1), 300)) : q() : (f(!0), setTimeout(() => f(!1), 300)), ne.current = null, document.removeEventListener("mousemove", U), document.removeEventListener("mouseup", ee);
|
|
9004
9004
|
};
|
|
9005
9005
|
document.addEventListener("mousemove", U), document.addEventListener("mouseup", ee);
|
|
9006
9006
|
},
|
|
@@ -9015,8 +9015,8 @@ const gv = ({
|
|
|
9015
9015
|
z(sa);
|
|
9016
9016
|
return;
|
|
9017
9017
|
}
|
|
9018
|
-
const Xe = _e,
|
|
9019
|
-
z(
|
|
9018
|
+
const Xe = _e, aa = Math.max(Math.min(ee, Xe), -Xe);
|
|
9019
|
+
z(aa);
|
|
9020
9020
|
},
|
|
9021
9021
|
handleTouchEnd: (de) => {
|
|
9022
9022
|
if (!ne.current || w || p) return;
|
|
@@ -9107,7 +9107,7 @@ const gv = ({
|
|
|
9107
9107
|
ge(() => {
|
|
9108
9108
|
Le.current = B;
|
|
9109
9109
|
}, [B]);
|
|
9110
|
-
const Ge = !u && B <= 0,
|
|
9110
|
+
const Ge = !u && B <= 0, ia = !u && B >= g - O, ua = 100 / O, wa = () => {
|
|
9111
9111
|
if (b === "thumbnail")
|
|
9112
9112
|
return /* @__PURE__ */ m(
|
|
9113
9113
|
"div",
|
|
@@ -9235,7 +9235,7 @@ const gv = ({
|
|
|
9235
9235
|
"aria-hidden": !U,
|
|
9236
9236
|
animate: ee,
|
|
9237
9237
|
transition: { duration: Ke ? 0 : 0.4, ease: "easeOut" },
|
|
9238
|
-
style: o === "vertical" ? { height: `${
|
|
9238
|
+
style: o === "vertical" ? { height: `${ua}%` } : { width: `${ua}%` },
|
|
9239
9239
|
children: /* @__PURE__ */ m("div", { className: E(we["lambda-carousel-item-inner"]), children: qe })
|
|
9240
9240
|
},
|
|
9241
9241
|
je
|
|
@@ -9270,7 +9270,7 @@ const gv = ({
|
|
|
9270
9270
|
radius: "small",
|
|
9271
9271
|
size: "tiny",
|
|
9272
9272
|
onClick: S,
|
|
9273
|
-
disabled: Y || A ||
|
|
9273
|
+
disabled: Y || A || ia,
|
|
9274
9274
|
"aria-label": "Siguiente",
|
|
9275
9275
|
icon: /* @__PURE__ */ m(qa, {})
|
|
9276
9276
|
}
|
|
@@ -10255,13 +10255,13 @@ function pg() {
|
|
|
10255
10255
|
w && Ke > w.reach && (w.reach = Ke);
|
|
10256
10256
|
var Ge = O.prev;
|
|
10257
10257
|
Pe && (Ge = b(_, Ge, Pe), K += Pe.length), p(_, Ge, ie);
|
|
10258
|
-
var
|
|
10259
|
-
if (O = b(_, Ge,
|
|
10260
|
-
var
|
|
10258
|
+
var ia = new o(N, Y ? s.tokenize(be, Y) : be, ne, be);
|
|
10259
|
+
if (O = b(_, Ge, ia), Le && b(_, O, Le), ie > 1) {
|
|
10260
|
+
var ua = {
|
|
10261
10261
|
cause: N + "," + $,
|
|
10262
10262
|
reach: Ke
|
|
10263
10263
|
};
|
|
10264
|
-
d(h, _, y, O.prev, K,
|
|
10264
|
+
d(h, _, y, O.prev, K, ua), w && ua.reach > w.reach && (w.reach = ua.reach);
|
|
10265
10265
|
}
|
|
10266
10266
|
}
|
|
10267
10267
|
}
|
|
@@ -11814,7 +11814,7 @@ function jg({
|
|
|
11814
11814
|
ge(() => () => {
|
|
11815
11815
|
w();
|
|
11816
11816
|
}, [w]);
|
|
11817
|
-
const T =
|
|
11817
|
+
const T = ta(() => {
|
|
11818
11818
|
if (d) {
|
|
11819
11819
|
const A = Number(k(o));
|
|
11820
11820
|
return isNaN(A) ? void 0 : A;
|
|
@@ -11824,7 +11824,7 @@ function jg({
|
|
|
11824
11824
|
}
|
|
11825
11825
|
}, [d, o, k, b, e]);
|
|
11826
11826
|
return {
|
|
11827
|
-
displayedValue:
|
|
11827
|
+
displayedValue: ta(() => d ? o : T != null && !isNaN(T) ? z(T) : "", [d, o, T, z]),
|
|
11828
11828
|
handleChange: h,
|
|
11829
11829
|
handleBlur: _,
|
|
11830
11830
|
handleFocus: y,
|
|
@@ -12356,14 +12356,12 @@ const fi = xe(
|
|
|
12356
12356
|
ne(!0), x && S(!0);
|
|
12357
12357
|
}, Ke = () => {
|
|
12358
12358
|
ne(!1), x && !J && S(!1);
|
|
12359
|
-
}, Ge = x ? "" : z,
|
|
12360
|
-
console.log(aa), console.log(da);
|
|
12361
|
-
const wa = ia(() => {
|
|
12359
|
+
}, Ge = x ? "" : z, ia = v === "tiny" || v === "small" ? 20 : v === "medium" ? 32 : 28, ua = v === "tiny" ? 13 : v === "small" ? 14 : v === "medium" ? 10 : v === "large" ? 8 : 6, wa = ta(() => {
|
|
12362
12360
|
var qe, je;
|
|
12363
12361
|
return {
|
|
12364
12362
|
default: {
|
|
12365
|
-
y: `calc(100% - ${
|
|
12366
|
-
x: (qe = B.current) != null && qe.offsetWidth ? `calc(${(je = B.current) == null ? void 0 : je.offsetWidth}px + ${
|
|
12363
|
+
y: `calc(100% - ${ua}px)`,
|
|
12364
|
+
x: (qe = B.current) != null && qe.offsetWidth ? `calc(${(je = B.current) == null ? void 0 : je.offsetWidth}px + ${ia}px)` : `calc(${ia}px)`,
|
|
12367
12365
|
//scale: 1,
|
|
12368
12366
|
color: "var(--placeholder-color)",
|
|
12369
12367
|
/*fontSize: "1rem",*/
|
|
@@ -12380,7 +12378,7 @@ const fi = xe(
|
|
|
12380
12378
|
// ajusta si quieres que se mueva a la izquierda
|
|
12381
12379
|
}
|
|
12382
12380
|
};
|
|
12383
|
-
}, [
|
|
12381
|
+
}, [ia, ua, B.current]);
|
|
12384
12382
|
return /* @__PURE__ */ L(
|
|
12385
12383
|
"div",
|
|
12386
12384
|
{
|
|
@@ -12548,7 +12546,7 @@ const fi = xe(
|
|
|
12548
12546
|
), ks = () => typeof window < "u" && "EyeDropper" in window, Og = () => {
|
|
12549
12547
|
throw new Error("Unsupported browser: no EyeDropper in Window. Check https://developer.mozilla.org/en-US/docs/Web/API/EyeDropper_API.");
|
|
12550
12548
|
}, qg = (e) => {
|
|
12551
|
-
const a =
|
|
12549
|
+
const a = ta(() => {
|
|
12552
12550
|
var s;
|
|
12553
12551
|
return (s = ks() && new EyeDropper(e)) ? EyeDropper.prototype.open.bind(s) : Og;
|
|
12554
12552
|
}, [e]), [t, i] = (() => {
|
|
@@ -12589,7 +12587,7 @@ const fi = xe(
|
|
|
12589
12587
|
}, xs = () => typeof window < "u" && "EyeDropper" in window, Hg = () => {
|
|
12590
12588
|
throw new Error("Unsupported browser.");
|
|
12591
12589
|
}, Ug = (e) => {
|
|
12592
|
-
const a =
|
|
12590
|
+
const a = ta(() => {
|
|
12593
12591
|
var s;
|
|
12594
12592
|
return (s = xs() && new EyeDropper(e)) ? EyeDropper.prototype.open.bind(s) : Hg;
|
|
12595
12593
|
}, [e]), [t, i] = (() => {
|
|
@@ -12960,7 +12958,7 @@ const fi = xe(
|
|
|
12960
12958
|
return Math.max(a, Math.min(t, ae));
|
|
12961
12959
|
},
|
|
12962
12960
|
[a, t, i]
|
|
12963
|
-
), oe = S(v), B = S(w), O =
|
|
12961
|
+
), oe = S(v), B = S(w), O = ta(() => {
|
|
12964
12962
|
if (Q)
|
|
12965
12963
|
if (g) {
|
|
12966
12964
|
const M = 100 - Math.max(oe, B), q = Math.abs(B - oe);
|
|
@@ -13061,8 +13059,8 @@ const fi = xe(
|
|
|
13061
13059
|
if (Ke === 0)
|
|
13062
13060
|
be = [Math.max(a, Math.min(Ge, t)), Le];
|
|
13063
13061
|
else {
|
|
13064
|
-
let
|
|
13065
|
-
be = [Pe,
|
|
13062
|
+
let ia = Math.max(a, Math.min(Ge, t));
|
|
13063
|
+
be = [Pe, ia];
|
|
13066
13064
|
}
|
|
13067
13065
|
Array.isArray(be) && be[0] > be[1] && (be = [be[1], be[0]]);
|
|
13068
13066
|
} else
|
|
@@ -13102,8 +13100,8 @@ const fi = xe(
|
|
|
13102
13100
|
const Ge = Le + be;
|
|
13103
13101
|
Pe = [Math.max(a, Math.min(Ke, Ge)), Ke];
|
|
13104
13102
|
} else {
|
|
13105
|
-
const Ge = Ke + be,
|
|
13106
|
-
Pe = [Le,
|
|
13103
|
+
const Ge = Ke + be, ia = Math.max(Le, Math.min(t, Ge));
|
|
13104
|
+
Pe = [Le, ia];
|
|
13107
13105
|
}
|
|
13108
13106
|
} else {
|
|
13109
13107
|
const Ke = y + be;
|
|
@@ -13140,8 +13138,8 @@ const fi = xe(
|
|
|
13140
13138
|
if (q === null) return;
|
|
13141
13139
|
let ae, be = 0;
|
|
13142
13140
|
if (g) {
|
|
13143
|
-
const [Pe, Le] = y, Ke = S(Pe), Ge = S(Le),
|
|
13144
|
-
if (
|
|
13141
|
+
const [Pe, Le] = y, Ke = S(Pe), Ge = S(Le), ia = S(q), ua = Math.abs(ia - Ke), wa = Math.abs(ia - Ge);
|
|
13142
|
+
if (ua <= wa) {
|
|
13145
13143
|
const qe = Math.min(q, Le);
|
|
13146
13144
|
ae = [Math.max(a, qe), Le], be = 0;
|
|
13147
13145
|
} else {
|
|
@@ -13480,15 +13478,15 @@ const ay = xe(
|
|
|
13480
13478
|
const Ma = Vs(Ze, ba, ka), La = `hsl(${Ma.h}, ${Ma.s}%, ${Ma.l}%)`;
|
|
13481
13479
|
_(La), n == null || n(La), A({ r: Ze, g: ba, b: ka });
|
|
13482
13480
|
}
|
|
13483
|
-
},
|
|
13484
|
-
let X =
|
|
13481
|
+
}, ia = async () => {
|
|
13482
|
+
let X = ua();
|
|
13485
13483
|
if (navigator.clipboard)
|
|
13486
13484
|
try {
|
|
13487
13485
|
await navigator.clipboard.writeText(X), S(!0), setTimeout(() => S(!1), 2e3);
|
|
13488
13486
|
} catch (D) {
|
|
13489
13487
|
console.error("Error al copiar el color:", D);
|
|
13490
13488
|
}
|
|
13491
|
-
},
|
|
13489
|
+
}, ua = () => {
|
|
13492
13490
|
const X = h.match(/hsl\((\d+),\s*(\d+)%?,\s*(\d+)%?\)/), D = X ? parseInt(X[1]) : 0, G = X ? parseInt(X[2]) : 0, ue = X ? parseInt(X[3]) : 0;
|
|
13493
13491
|
if (v === "hex") {
|
|
13494
13492
|
const De = mn(D, G, ue);
|
|
@@ -13525,7 +13523,7 @@ const ay = xe(
|
|
|
13525
13523
|
)}%)`;
|
|
13526
13524
|
_(ft), n == null || n(ft);
|
|
13527
13525
|
}
|
|
13528
|
-
}, je = h.match(/hsl\((\d+),\s*(\d+)%?,\s*(\d+)%?\)/), de = je ? parseInt(je[1]) : 0, U = je ? parseInt(je[2]) : 0, ee = je ? parseInt(je[3]) : 0, _e = (sa = K.current) == null ? void 0 : sa.getBoundingClientRect(), Xe = Q - ((_e == null ? void 0 : _e.width) || 0) / 2,
|
|
13526
|
+
}, je = h.match(/hsl\((\d+),\s*(\d+)%?,\s*(\d+)%?\)/), de = je ? parseInt(je[1]) : 0, U = je ? parseInt(je[2]) : 0, ee = je ? parseInt(je[3]) : 0, _e = (sa = K.current) == null ? void 0 : sa.getBoundingClientRect(), Xe = Q - ((_e == null ? void 0 : _e.width) || 0) / 2, aa = oe - ((_e == null ? void 0 : _e.height) || 0) / 2;
|
|
13529
13527
|
return ae ? /* @__PURE__ */ L(
|
|
13530
13528
|
"div",
|
|
13531
13529
|
{
|
|
@@ -13604,7 +13602,7 @@ const ay = xe(
|
|
|
13604
13602
|
variant: "soft",
|
|
13605
13603
|
color: "neutral",
|
|
13606
13604
|
size: "tiny",
|
|
13607
|
-
onClick:
|
|
13605
|
+
onClick: ia,
|
|
13608
13606
|
icon: Y ? /* @__PURE__ */ m(Gn, {}) : /* @__PURE__ */ m(ao, {}),
|
|
13609
13607
|
radius: "small"
|
|
13610
13608
|
}
|
|
@@ -13633,7 +13631,7 @@ const ay = xe(
|
|
|
13633
13631
|
ref: K,
|
|
13634
13632
|
onKeyDown: qe,
|
|
13635
13633
|
style: {
|
|
13636
|
-
transform: `translate(${Xe}px, ${
|
|
13634
|
+
transform: `translate(${Xe}px, ${aa}px)`
|
|
13637
13635
|
}
|
|
13638
13636
|
}
|
|
13639
13637
|
)
|
|
@@ -13796,7 +13794,7 @@ const ay = xe(
|
|
|
13796
13794
|
) }),
|
|
13797
13795
|
document.body
|
|
13798
13796
|
),
|
|
13799
|
-
l && /* @__PURE__ */ m("span", { className: E(xg({ size: a })), children:
|
|
13797
|
+
l && /* @__PURE__ */ m("span", { className: E(xg({ size: a })), children: ua() })
|
|
13800
13798
|
]
|
|
13801
13799
|
}
|
|
13802
13800
|
) : null;
|
|
@@ -14366,17 +14364,17 @@ const xv = xe(
|
|
|
14366
14364
|
"slide"
|
|
14367
14365
|
), A = k.getFullYear(), [Y, S] = Z(A), [Q, ne] = Z(!1), oe = fe(e), B = fe(""), { isOpen: O, setIsOpen: K, menuPosition: re, triggerRef: ie, contentRef: J, handleKeyDown: te } = Bi({
|
|
14368
14366
|
y: 3
|
|
14369
|
-
}), { t: M } = pt(), q = e ? new Date(e) : void 0, ae = k.getMonth(), be = Cs(A, ae), Pe = new Date(A, ae, 1).getDay(), Le = 6 - new Date(A, ae, be).getDay(), Ke = Cs(A, ae - 1), Ge = Array.from({ length: Ke }, (D, G) => G + 1).reverse().map((D) => new Date(A, ae - 1, D)).filter((D, G) => G < Pe).reverse(),
|
|
14367
|
+
}), { t: M } = pt(), q = e ? new Date(e) : void 0, ae = k.getMonth(), be = Cs(A, ae), Pe = new Date(A, ae, 1).getDay(), Le = 6 - new Date(A, ae, be).getDay(), Ke = Cs(A, ae - 1), Ge = Array.from({ length: Ke }, (D, G) => G + 1).reverse().map((D) => new Date(A, ae - 1, D)).filter((D, G) => G < Pe).reverse(), ia = [];
|
|
14370
14368
|
for (let D = 0; D < Pe; D++)
|
|
14371
|
-
|
|
14369
|
+
ia.push({ date: Ge[D], type: "prev" });
|
|
14372
14370
|
for (let D = 1; D <= be; D++)
|
|
14373
|
-
|
|
14371
|
+
ia.push({ date: new Date(A, ae, D), type: "current" });
|
|
14374
14372
|
for (let D = 0; D < Le; D++)
|
|
14375
|
-
|
|
14373
|
+
ia.push({ date: new Date(A, ae + 1, D + 1), type: "next" });
|
|
14376
14374
|
ge(() => {
|
|
14377
14375
|
ne(!0);
|
|
14378
14376
|
}, []);
|
|
14379
|
-
const
|
|
14377
|
+
const ua = (D) => {
|
|
14380
14378
|
D.preventDefault(), N(-1), $("slide"), h((G) => new Date(G.getFullYear(), G.getMonth() - 1, 1));
|
|
14381
14379
|
}, wa = (D) => {
|
|
14382
14380
|
D.preventDefault(), N(1), $("slide"), h((G) => new Date(G.getFullYear(), G.getMonth() + 1, 1));
|
|
@@ -14392,7 +14390,7 @@ const xv = xe(
|
|
|
14392
14390
|
D.preventDefault(), v(!1), h((ue) => new Date(G, ue.getMonth(), 1));
|
|
14393
14391
|
}, Xe = (D) => {
|
|
14394
14392
|
D.preventDefault(), B.current = "prev", h((G) => new Date(G.getFullYear() - 15, G.getMonth(), 1));
|
|
14395
|
-
},
|
|
14393
|
+
}, aa = (D) => {
|
|
14396
14394
|
D.preventDefault(), B.current = "next", h((G) => new Date(G.getFullYear() + 15, G.getMonth(), 1));
|
|
14397
14395
|
}, sa = () => /* @__PURE__ */ L(
|
|
14398
14396
|
"div",
|
|
@@ -14425,7 +14423,7 @@ const xv = xe(
|
|
|
14425
14423
|
color: "neutral",
|
|
14426
14424
|
title: "Previous Month",
|
|
14427
14425
|
size: "tiny",
|
|
14428
|
-
onClick:
|
|
14426
|
+
onClick: ua,
|
|
14429
14427
|
"aria-label": M("date-picker.prev-month"),
|
|
14430
14428
|
disabled: n,
|
|
14431
14429
|
icon: /* @__PURE__ */ m(Yt, {}),
|
|
@@ -14516,7 +14514,7 @@ const xv = xe(
|
|
|
14516
14514
|
opacity: { duration: 0.2 }
|
|
14517
14515
|
},
|
|
14518
14516
|
style: { width: "100%" },
|
|
14519
|
-
children: /* @__PURE__ */ m("div", { className: F["lambda-datepicker-grid"], children:
|
|
14517
|
+
children: /* @__PURE__ */ m("div", { className: F["lambda-datepicker-grid"], children: ia.map((D, G) => {
|
|
14520
14518
|
if ((D == null ? void 0 : D.type) === "prev" || (D == null ? void 0 : D.type) === "next")
|
|
14521
14519
|
return /* @__PURE__ */ m(
|
|
14522
14520
|
"span",
|
|
@@ -14658,7 +14656,7 @@ const xv = xe(
|
|
|
14658
14656
|
variant: "text",
|
|
14659
14657
|
color: "neutral",
|
|
14660
14658
|
size: "small",
|
|
14661
|
-
onClick:
|
|
14659
|
+
onClick: aa,
|
|
14662
14660
|
"aria-label": M("date-picker.close"),
|
|
14663
14661
|
title: "Next Years",
|
|
14664
14662
|
icon: /* @__PURE__ */ m(zi, {}),
|
|
@@ -15363,7 +15361,7 @@ const zv = xe(
|
|
|
15363
15361
|
}
|
|
15364
15362
|
});
|
|
15365
15363
|
function wy(e) {
|
|
15366
|
-
const a =
|
|
15364
|
+
const a = ta(() => e.map((i) => {
|
|
15367
15365
|
if (i.file.type.startsWith("image/") && !i.previewUrl)
|
|
15368
15366
|
try {
|
|
15369
15367
|
return { ...i, previewUrl: URL.createObjectURL(i.file) };
|
|
@@ -15532,24 +15530,24 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15532
15530
|
);
|
|
15533
15531
|
}, [b]);
|
|
15534
15532
|
const M = wy(T), q = le((ee, _e) => {
|
|
15535
|
-
const Xe = _e.split(",").map((ue) => ue.trim().toLowerCase()),
|
|
15533
|
+
const Xe = _e.split(",").map((ue) => ue.trim().toLowerCase()), aa = ee.type.toLowerCase(), sa = ee.name.toLowerCase(), X = ee.size, D = sa.lastIndexOf("."), G = D > -1 ? sa.slice(D) : "";
|
|
15536
15534
|
return d && X > d ? !1 : Xe.some((ue) => {
|
|
15537
15535
|
if (ue.startsWith("."))
|
|
15538
15536
|
return G === ue;
|
|
15539
15537
|
if (ue.endsWith("/*")) {
|
|
15540
15538
|
const De = ue.slice(0, -1);
|
|
15541
|
-
return
|
|
15539
|
+
return aa.startsWith(De);
|
|
15542
15540
|
} else
|
|
15543
|
-
return
|
|
15541
|
+
return aa === ue;
|
|
15544
15542
|
});
|
|
15545
15543
|
}, []), ae = le(
|
|
15546
15544
|
(ee) => {
|
|
15547
|
-
const _e = ee.target.files, Xe = _e ? Array.from(_e) : [],
|
|
15545
|
+
const _e = ee.target.files, Xe = _e ? Array.from(_e) : [], aa = [], sa = [];
|
|
15548
15546
|
Xe.forEach((D) => {
|
|
15549
|
-
!u || q(D, u) ?
|
|
15547
|
+
!u || q(D, u) ? aa.push(D) : sa.push(D);
|
|
15550
15548
|
}), sa.length > 0 && (v == null || v(sa));
|
|
15551
15549
|
let X = [];
|
|
15552
|
-
c ? (X = [...T],
|
|
15550
|
+
c ? (X = [...T], aa.forEach((D) => {
|
|
15553
15551
|
X.some(
|
|
15554
15552
|
(ue) => ue.file.name === D.name && ue.file.size === D.size
|
|
15555
15553
|
) || X.push({
|
|
@@ -15557,10 +15555,10 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15557
15555
|
id: `${Date.now()}-${D.name}-${Math.random().toString(36).slice(2, 9)}`,
|
|
15558
15556
|
previewUrl: void 0
|
|
15559
15557
|
});
|
|
15560
|
-
})) :
|
|
15558
|
+
})) : aa.length > 0 ? X = [
|
|
15561
15559
|
{
|
|
15562
|
-
file:
|
|
15563
|
-
id: `${Date.now()}-${
|
|
15560
|
+
file: aa[0],
|
|
15561
|
+
id: `${Date.now()}-${aa[0].name}-${Math.random().toString(36).slice(2, 9)}`,
|
|
15564
15562
|
previewUrl: void 0
|
|
15565
15563
|
}
|
|
15566
15564
|
] : X = [], _e ? p == null || p(X.map((D) => D.file)) : ($(X), p == null || p(X.map((D) => D.file)));
|
|
@@ -15594,9 +15592,9 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15594
15592
|
[a, n, ae, _]
|
|
15595
15593
|
), Ge = (ee) => {
|
|
15596
15594
|
f == null || f(ee);
|
|
15597
|
-
},
|
|
15595
|
+
}, ia = (ee) => {
|
|
15598
15596
|
x == null || x(ee);
|
|
15599
|
-
},
|
|
15597
|
+
}, ua = le(
|
|
15600
15598
|
(ee) => {
|
|
15601
15599
|
const _e = T.filter((Xe) => Xe.id !== ee);
|
|
15602
15600
|
$(_e);
|
|
@@ -15632,7 +15630,7 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15632
15630
|
}),
|
|
15633
15631
|
onClick: be,
|
|
15634
15632
|
onFocus: Ge,
|
|
15635
|
-
onBlur:
|
|
15633
|
+
onBlur: ia,
|
|
15636
15634
|
disabled: n,
|
|
15637
15635
|
tabIndex: n ? -1 : 0,
|
|
15638
15636
|
role: "button",
|
|
@@ -15689,7 +15687,7 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15689
15687
|
onDragLeave: Le,
|
|
15690
15688
|
onDrop: Ke,
|
|
15691
15689
|
onFocus: Ge,
|
|
15692
|
-
onBlur:
|
|
15690
|
+
onBlur: ia,
|
|
15693
15691
|
tabIndex: n ? -1 : 0,
|
|
15694
15692
|
role: "button",
|
|
15695
15693
|
"aria-controls": K,
|
|
@@ -15706,7 +15704,7 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15706
15704
|
js,
|
|
15707
15705
|
{
|
|
15708
15706
|
fileData: ee,
|
|
15709
|
-
onRemove:
|
|
15707
|
+
onRemove: ua,
|
|
15710
15708
|
size: i,
|
|
15711
15709
|
multiple: c,
|
|
15712
15710
|
invalid: r,
|
|
@@ -15740,7 +15738,7 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15740
15738
|
"button",
|
|
15741
15739
|
{
|
|
15742
15740
|
type: "button",
|
|
15743
|
-
onClick: () => U &&
|
|
15741
|
+
onClick: () => U && ua(U.id),
|
|
15744
15742
|
className: H["lambda-fileup-file-name-remove-button"],
|
|
15745
15743
|
"aria-label": `Remover archivo ${U == null ? void 0 : U.file.name}`,
|
|
15746
15744
|
children: /* @__PURE__ */ m(Ti, { className: H["lambda-fileup-file-name-remove-icon"] })
|
|
@@ -15752,7 +15750,7 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15752
15750
|
"button",
|
|
15753
15751
|
{
|
|
15754
15752
|
type: "button",
|
|
15755
|
-
onClick: () => U &&
|
|
15753
|
+
onClick: () => U && ua(U.id),
|
|
15756
15754
|
className: H["lambda-fileup-file-name-remove-button"],
|
|
15757
15755
|
"aria-label": `Remover archivo ${U == null ? void 0 : U.file.name}`,
|
|
15758
15756
|
children: /* @__PURE__ */ m(Ti, { className: H["lambda-fileup-file-name-remove-icon"] })
|
|
@@ -15777,7 +15775,7 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15777
15775
|
js,
|
|
15778
15776
|
{
|
|
15779
15777
|
fileData: ee,
|
|
15780
|
-
onRemove:
|
|
15778
|
+
onRemove: ua,
|
|
15781
15779
|
size: i,
|
|
15782
15780
|
invalid: r,
|
|
15783
15781
|
viewFileSize: g,
|
|
@@ -15965,7 +15963,7 @@ const rc = ({ className: e, ...a }) => /* @__PURE__ */ m("svg", { width: 15, hei
|
|
|
15965
15963
|
}
|
|
15966
15964
|
);
|
|
15967
15965
|
Ny.displayName = "Flex";
|
|
15968
|
-
const
|
|
15966
|
+
const da = {
|
|
15969
15967
|
"lambda-link": "_lambda-link_ssyql_1",
|
|
15970
15968
|
"lambda-link-neutral": "_lambda-link-neutral_ssyql_16",
|
|
15971
15969
|
"lambda-link-primary": "_lambda-link-primary_ssyql_24",
|
|
@@ -15987,28 +15985,28 @@ const ca = {
|
|
|
15987
15985
|
"lambda-link-small": "_lambda-link-small_ssyql_142",
|
|
15988
15986
|
"lambda-link-medium": "_lambda-link-medium_ssyql_158",
|
|
15989
15987
|
"lambda-link-large": "_lambda-link-large_ssyql_174"
|
|
15990
|
-
}, My = C(
|
|
15988
|
+
}, My = C(da["lambda-link"], {
|
|
15991
15989
|
variants: {
|
|
15992
15990
|
color: {
|
|
15993
|
-
neutral:
|
|
15994
|
-
primary:
|
|
15995
|
-
secondary:
|
|
15996
|
-
success:
|
|
15997
|
-
danger:
|
|
15998
|
-
warning:
|
|
15999
|
-
info:
|
|
15991
|
+
neutral: da["lambda-link-neutral"],
|
|
15992
|
+
primary: da["lambda-link-primary"],
|
|
15993
|
+
secondary: da["lambda-link-secondary"],
|
|
15994
|
+
success: da["lambda-link-success"],
|
|
15995
|
+
danger: da["lambda-link-danger"],
|
|
15996
|
+
warning: da["lambda-link-warning"],
|
|
15997
|
+
info: da["lambda-link-info"]
|
|
16000
15998
|
},
|
|
16001
15999
|
size: {
|
|
16002
|
-
tiny:
|
|
16003
|
-
small:
|
|
16004
|
-
medium:
|
|
16005
|
-
large:
|
|
16000
|
+
tiny: da["lambda-link-tiny"],
|
|
16001
|
+
small: da["lambda-link-small"],
|
|
16002
|
+
medium: da["lambda-link-medium"],
|
|
16003
|
+
large: da["lambda-link-large"]
|
|
16006
16004
|
},
|
|
16007
16005
|
onlyIcon: {
|
|
16008
|
-
true:
|
|
16006
|
+
true: da["lambda-link-only-icon"]
|
|
16009
16007
|
},
|
|
16010
16008
|
disabled: {
|
|
16011
|
-
true:
|
|
16009
|
+
true: da["lambda-link-disabled"]
|
|
16012
16010
|
}
|
|
16013
16011
|
},
|
|
16014
16012
|
defaultVariants: {
|
|
@@ -16017,12 +16015,12 @@ const ca = {
|
|
|
16017
16015
|
onlyIcon: !1,
|
|
16018
16016
|
disabled: !1
|
|
16019
16017
|
}
|
|
16020
|
-
}), Sy = C(
|
|
16018
|
+
}), Sy = C(da["lambda-link-button"], {
|
|
16021
16019
|
variants: {
|
|
16022
16020
|
justify: {
|
|
16023
|
-
start:
|
|
16024
|
-
center:
|
|
16025
|
-
end:
|
|
16021
|
+
start: da["lambda-link-button-start"],
|
|
16022
|
+
center: da["lambda-link-button-center"],
|
|
16023
|
+
end: da["lambda-link-button-end"]
|
|
16026
16024
|
}
|
|
16027
16025
|
},
|
|
16028
16026
|
defaultVariants: {
|
|
@@ -16064,17 +16062,17 @@ const ca = {
|
|
|
16064
16062
|
}),
|
|
16065
16063
|
Sy({ justify: x })
|
|
16066
16064
|
] : [My({ color: b, size: p, disabled: r })],
|
|
16067
|
-
{ [
|
|
16065
|
+
{ [da["lambda-link--disabled"]]: r },
|
|
16068
16066
|
e
|
|
16069
|
-
), w =
|
|
16067
|
+
), w = ta(() => n ? /* @__PURE__ */ m(
|
|
16070
16068
|
"span",
|
|
16071
16069
|
{
|
|
16072
16070
|
className: E(
|
|
16073
|
-
g ? ze["lambda-btn-icon"] :
|
|
16071
|
+
g ? ze["lambda-btn-icon"] : da["lambda-link-icon"]
|
|
16074
16072
|
),
|
|
16075
16073
|
children: n
|
|
16076
16074
|
}
|
|
16077
|
-
) : null, [n, g]), N =
|
|
16075
|
+
) : null, [n, g]), N = ta(() => y ? /* @__PURE__ */ m("span", { className: E(da["lambda-link-content"]), children: y }) : null, [y]), T = ta(() => !g || !w && !N ? /* @__PURE__ */ L(va, { children: [
|
|
16078
16076
|
w,
|
|
16079
16077
|
N
|
|
16080
16078
|
] }) : /* @__PURE__ */ L(va, { children: [
|
|
@@ -16087,7 +16085,7 @@ const ca = {
|
|
|
16087
16085
|
ref: _,
|
|
16088
16086
|
className: E(
|
|
16089
16087
|
v,
|
|
16090
|
-
k === "left" ?
|
|
16088
|
+
k === "left" ? da["lambda-link-icon-left"] : da["lambda-link-icon-right"]
|
|
16091
16089
|
),
|
|
16092
16090
|
style: a,
|
|
16093
16091
|
href: r ? "#" : s,
|
|
@@ -16334,7 +16332,7 @@ const ca = {
|
|
|
16334
16332
|
return y.forEach((N) => w.add(N)), w;
|
|
16335
16333
|
});
|
|
16336
16334
|
}, [u, e, c, h]);
|
|
16337
|
-
const _ =
|
|
16335
|
+
const _ = ta(
|
|
16338
16336
|
() => ({
|
|
16339
16337
|
expanded: c ? k(e) : p,
|
|
16340
16338
|
toggleNode: x,
|
|
@@ -16932,7 +16930,7 @@ const Oe = {
|
|
|
16932
16930
|
className: u,
|
|
16933
16931
|
...b
|
|
16934
16932
|
}, p) => {
|
|
16935
|
-
const f =
|
|
16933
|
+
const f = ta(() => {
|
|
16936
16934
|
const w = [];
|
|
16937
16935
|
if (a <= i)
|
|
16938
16936
|
for (let N = 1; N <= a; N++)
|
|
@@ -17768,7 +17766,7 @@ const Oe = {
|
|
|
17768
17766
|
t && t(g), f(g);
|
|
17769
17767
|
},
|
|
17770
17768
|
[t]
|
|
17771
|
-
), _ =
|
|
17769
|
+
), _ = ta(() => {
|
|
17772
17770
|
let g = "radio";
|
|
17773
17771
|
return ei.forEach(b, (v) => {
|
|
17774
17772
|
Ia(v) && (v.type === Us.Button ? g = "button" : v.type === Us.Card && (g = "card"));
|
|
@@ -17778,7 +17776,7 @@ const Oe = {
|
|
|
17778
17776
|
const g = x.current;
|
|
17779
17777
|
g && _ === "radio" && g.style.setProperty("--spacing-radio-size", u);
|
|
17780
17778
|
}, [u, _]);
|
|
17781
|
-
const y =
|
|
17779
|
+
const y = ta(
|
|
17782
17780
|
() => ({
|
|
17783
17781
|
name: k,
|
|
17784
17782
|
selectedValue: a ?? p,
|
|
@@ -20771,7 +20769,7 @@ const On = ({
|
|
|
20771
20769
|
x(_), i == null || i(_);
|
|
20772
20770
|
},
|
|
20773
20771
|
[i]
|
|
20774
|
-
), h =
|
|
20772
|
+
), h = ta(
|
|
20775
20773
|
() => ({
|
|
20776
20774
|
expanded: b,
|
|
20777
20775
|
toggleNode: z,
|