lizaui 3.0.50 → 3.0.52
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/button/index.es.js +1 -1
- package/dist/calendar/index.cjs.js +1 -1
- package/dist/calendar/index.es.js +2 -2
- package/dist/chunks/{button-C2uFi79u.js → button-CT1gzAt1.js} +6 -6
- package/dist/chunks/{button-C2uFi79u.js.map → button-CT1gzAt1.js.map} +1 -1
- package/dist/chunks/{index-CMmK7lyb.js → index-BJdSO9mI.js} +2 -2
- package/dist/chunks/{index-CMmK7lyb.js.map → index-BJdSO9mI.js.map} +1 -1
- package/dist/chunks/{index-BNwIrwDo.js → index-D7fbOipG.js} +5 -5
- package/dist/chunks/{index-BNwIrwDo.js.map → index-D7fbOipG.js.map} +1 -1
- package/dist/chunks/{index-CfJPYoVK.js → index-fRQUvivo.js} +3 -3
- package/dist/chunks/index-fRQUvivo.js.map +1 -0
- package/dist/chunks/label-error-8p4Smomu.js +2 -0
- package/dist/chunks/{label-error-noAu6DKg.js.map → label-error-8p4Smomu.js.map} +1 -1
- package/dist/chunks/label-error-D2dOTiDS.js +10 -0
- package/dist/chunks/{label-error-DwHE_f3w.js.map → label-error-D2dOTiDS.js.map} +1 -1
- package/dist/chunks/{proxy-DLzUd3NL.js → proxy-gd0H-9gQ.js} +47 -47
- package/dist/chunks/{proxy-DLzUd3NL.js.map → proxy-gd0H-9gQ.js.map} +1 -1
- package/dist/chunks/{ripple-Bf1OyqK2.js → ripple-DV2Gx-M9.js} +115 -115
- package/dist/chunks/{ripple-Bf1OyqK2.js.map → ripple-DV2Gx-M9.js.map} +1 -1
- package/dist/components/ripple/index.d.ts +3 -1
- package/dist/components/ripple/index.d.ts.map +1 -1
- package/dist/modal/index.cjs.js +1 -1
- package/dist/modal/index.cjs.js.map +1 -1
- package/dist/modal/index.es.js +8 -8
- package/dist/modal/index.es.js.map +1 -1
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +2 -2
- package/dist/ripple/index.cjs.js +1 -1
- package/dist/ripple/index.es.js +3 -2
- package/dist/select-input/index.cjs.js +1 -1
- package/dist/select-input/index.es.js +1 -1
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.es.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/index-CfJPYoVK.js.map +0 -1
- package/dist/chunks/label-error-DwHE_f3w.js +0 -10
- package/dist/chunks/label-error-noAu6DKg.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import { F as _s, a as $s, c as ae, d as se, b as ee, e as ie, i as re, f as te, m as ne, s as oe } from "./proxy-
|
|
1
|
+
import { A as e, a8 as i, ap as r, a9 as t, aq as n, q as o, L as l, s as m, t as b, M as u, b7 as c, aa as p, ab as d, P as f, J as g, S as V, V as y, a as x, n as T, w as S, bn as v, bf as E, h as A, b as C, T as M, U as O, W as D, X as h, o as P, al as I, bB as G, Y as L, Z as k, _ as B, y as N, b9 as w, bg as z, au as F, d as R, an as K, aC as j, k as U, $ as W, aw as q, ai as H, as as J, aL as Z, bj as Q, bq as X, bh as Y, g as _, a0 as $, a1 as aa, a2 as sa, a7 as ea, at as ia, av as ra, f as ta, bi as na, by as oa, ar as la, bC as ma, bD as ba, bE as ua, aB as ca, bx as pa, bk as da, aX as fa, bz as ga, ae as Va, ac as ya, ba as xa, aH as Ta, bb as Sa, bc as va, ah as Ea, aS as Aa, z as Ca, b1 as Ma, a5 as Oa, i as Da, af as ha, ag as Pa, aF as Ia, aG as Ga, a6 as La, ao as ka, aT as Ba, bA as Na, aJ as wa, C as za, D as Fa, aK as Ra, l as Ka, E as ja, aj as Ua, m as Wa, c as qa, ax as Ha, am as Ja, F as Za, aD as Qa, K as Xa, a3 as Ya, aU as _a, aY as $a, aV as as, aZ as ss, a$ as es, aW as is, b0 as rs, a_ as ts, b2 as ns, b8 as os, G as ls, bo as ms, bl as bs, p as us, ad as cs, aM as ps, br as ds, H as fs, aP as gs, aI as Vs, I as ys, bs as xs, bt as Ts, aN as Ss, x as vs, b3 as Es, r as As, a4 as Cs, bd as Ms, be as Os, bp as Ds, N as hs, aO as Ps, ak as Is, az as Gs, ay as Ls, aA as ks, b4 as Bs, b5 as Ns, b6 as ws, bw as zs, aE as Fs, aQ as Rs, aR as Ks, bm as js, e as Us, j as Ws, O as qs, bu as Hs, v as Js, bv as Zs, Q as Qs, B as Xs } from "./ripple-DV2Gx-M9.js";
|
|
2
|
+
import { F as _s, a as $s, c as ae, d as se, b as ee, e as ie, i as re, f as te, m as ne, s as oe } from "./proxy-gd0H-9gQ.js";
|
|
3
3
|
export {
|
|
4
4
|
e as AnimatePresence,
|
|
5
5
|
i as AsyncMotionValueAnimation,
|
|
@@ -169,4 +169,4 @@ export {
|
|
|
169
169
|
Qs as warnOnce,
|
|
170
170
|
Xs as warning
|
|
171
171
|
};
|
|
172
|
-
//# sourceMappingURL=index-
|
|
172
|
+
//# sourceMappingURL=index-fRQUvivo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-fRQUvivo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-DFswc9zO.js"),n=require("./bundle-mjs-Bta93uUH.js"),a=({text:e,className:r})=>{const s=n.twMerge("text-danger font-normal text-xs mt-1 leading-none",r);return t.jsxRuntimeExports.jsx("span",{className:s,children:e})};exports.LabelError=a;
|
|
2
|
+
//# sourceMappingURL=label-error-8p4Smomu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-error-
|
|
1
|
+
{"version":3,"file":"label-error-8p4Smomu.js","sources":["../../src/components/ui/label-error.tsx"],"sourcesContent":["import { twMerge } from \"tailwind-merge\";\nexport type LabelErrorType = {\n\t/**\n\t * @description\n\t * Propiedad para colocar el texto.\n\t * @type\n\t * Puede recibir **string**\n\t */\n\ttext: string;\n\t/**\n\t * @description\n\t * Propiedad para brindar clases personalizadas al componente, este se situa en el container del label.\n\t */\n\tclassName?: string;\n};\n\nexport const LabelError = ({ text, className }: LabelErrorType) => {\n\tconst classLabel = twMerge(\"text-danger font-normal text-xs mt-1 leading-none\", className);\n\n\treturn <span className={classLabel}>{text}</span>;\n};\n"],"names":["LabelError","text","className","classLabel","twMerge","jsx"],"mappings":"gGAgBaA,EAAa,CAAC,CAAE,KAAAC,EAAM,UAAAC,KAAgC,CAC5D,MAAAC,EAAaC,EAAAA,QAAQ,oDAAqDF,CAAS,EAEzF,OAAQG,EAAAA,kBAAAA,IAAA,OAAA,CAAK,UAAWF,EAAa,SAAKF,EAAA,CAC3C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { j as s } from "./jsx-runtime-BYq8_R6m.js";
|
|
2
|
+
import { t as a } from "./bundle-mjs-kGHm2Pod.js";
|
|
3
|
+
const m = ({ text: t, className: r }) => {
|
|
4
|
+
const e = a("text-danger font-normal text-xs mt-1 leading-none", r);
|
|
5
|
+
return /* @__PURE__ */ s.jsx("span", { className: e, children: t });
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
m as L
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=label-error-D2dOTiDS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-error-
|
|
1
|
+
{"version":3,"file":"label-error-D2dOTiDS.js","sources":["../../src/components/ui/label-error.tsx"],"sourcesContent":["import { twMerge } from \"tailwind-merge\";\nexport type LabelErrorType = {\n\t/**\n\t * @description\n\t * Propiedad para colocar el texto.\n\t * @type\n\t * Puede recibir **string**\n\t */\n\ttext: string;\n\t/**\n\t * @description\n\t * Propiedad para brindar clases personalizadas al componente, este se situa en el container del label.\n\t */\n\tclassName?: string;\n};\n\nexport const LabelError = ({ text, className }: LabelErrorType) => {\n\tconst classLabel = twMerge(\"text-danger font-normal text-xs mt-1 leading-none\", className);\n\n\treturn <span className={classLabel}>{text}</span>;\n};\n"],"names":["LabelError","text","className","classLabel","twMerge","jsx"],"mappings":";;AAgBO,MAAMA,IAAa,CAAC,EAAE,MAAAC,GAAM,WAAAC,QAAgC;AAC5D,QAAAC,IAAaC,EAAQ,qDAAqDF,CAAS;AAEzF,SAAQG,gBAAAA,EAAAA,IAAA,QAAA,EAAK,WAAWF,GAAa,UAAKF,GAAA;AAC3C;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aG as L, D as le, bF as J, a as he, b0 as v, bD as D, bC as R, aK as ce, bG as It, H as ue, bB as U, N as de, K as fe, I as K, y as Ot, d as y, bH as I, z as me, bI as pe, bJ as ge, bK as ye, bL as tt, bM as Ft, br as G, bN as Nt, G as j, bt as Wt, bg as et, j as ve, q as xe, S as Pe, n as Te, aD as Gt, bA as De, b8 as $t, w as zt, x as Ht, aE as Xt, _ as Se, bO as it, J as Ee, ae as Re, bE as $, bP as C, bQ as O, bR as F, bS as st, bT as Ae, bU as Le, bV as Ce, bW as V, r as z, bX as nt, bY as Ve, bZ as je, b_ as Be, b$ as be, b as Me, c0 as we } from "./ripple-DV2Gx-M9.js";
|
|
2
2
|
import { j as ke } from "./jsx-runtime-BYq8_R6m.js";
|
|
3
3
|
import { useContext as ot, Component as Ue } from "react";
|
|
4
4
|
function Ie(t) {
|
|
@@ -17,15 +17,15 @@ function Oe(t) {
|
|
|
17
17
|
function M(t, e, s, n) {
|
|
18
18
|
return J(t, e, he(s), n);
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const _t = 1e-4, Fe = 1 - _t, Ne = 1 + _t, qt = 0.01, We = 0 - qt, Ge = 0 + qt;
|
|
21
21
|
function T(t) {
|
|
22
22
|
return t.max - t.min;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function $e(t, e, s) {
|
|
25
25
|
return Math.abs(t - e) <= s;
|
|
26
26
|
}
|
|
27
27
|
function at(t, e, s, n = 0.5) {
|
|
28
|
-
t.origin = n, t.originPoint = v(e.min, e.max, t.origin), t.scale = T(s) / T(e), t.translate = v(s.min, s.max, t.origin) - t.originPoint, (t.scale >= Fe && t.scale <= Ne || isNaN(t.scale)) && (t.scale = 1), (t.translate >= We && t.translate <=
|
|
28
|
+
t.origin = n, t.originPoint = v(e.min, e.max, t.origin), t.scale = T(s) / T(e), t.translate = v(s.min, s.max, t.origin) - t.originPoint, (t.scale >= Fe && t.scale <= Ne || isNaN(t.scale)) && (t.scale = 1), (t.translate >= We && t.translate <= Ge || isNaN(t.translate)) && (t.translate = 0);
|
|
29
29
|
}
|
|
30
30
|
function w(t, e, s, n) {
|
|
31
31
|
at(t.x, e.x, s.x, n ? n.originX : void 0), at(t.y, e.y, s.y, n ? n.originY : void 0);
|
|
@@ -45,12 +45,12 @@ function k(t, e, s) {
|
|
|
45
45
|
function E(t) {
|
|
46
46
|
return [t("x"), t("y")];
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const Kt = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ht = (t, e) => Math.abs(t - e);
|
|
49
49
|
function He(t, e) {
|
|
50
50
|
const s = ht(t.x, e.x), n = ht(t.y, e.y);
|
|
51
51
|
return Math.sqrt(s ** 2 + n ** 2);
|
|
52
52
|
}
|
|
53
|
-
class
|
|
53
|
+
class Zt {
|
|
54
54
|
constructor(e, s, { transformPagePoint: n, contextWindow: r, dragSnapToOrigin: u = !1 } = {}) {
|
|
55
55
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
56
56
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
@@ -124,7 +124,7 @@ function Ye(t, e) {
|
|
|
124
124
|
};
|
|
125
125
|
return i.x === 1 / 0 && (i.x = 0), i.y === 1 / 0 && (i.y = 0), i;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function _e(t, { min: e, max: s }, n) {
|
|
128
128
|
return e !== void 0 && t < e ? t = n ? v(e, t, n.min) : Math.max(t, e) : s !== void 0 && t > s && (t = n ? v(s, t, n.max) : Math.min(t, s)), t;
|
|
129
129
|
}
|
|
130
130
|
function ut(t, e, s) {
|
|
@@ -133,7 +133,7 @@ function ut(t, e, s) {
|
|
|
133
133
|
max: s !== void 0 ? t.max + s - (t.max - t.min) : void 0
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function qe(t, { top: e, left: s, bottom: n, right: r }) {
|
|
137
137
|
return {
|
|
138
138
|
x: ut(t.x, s, r),
|
|
139
139
|
y: ut(t.y, e, n)
|
|
@@ -143,24 +143,24 @@ function dt(t, e) {
|
|
|
143
143
|
let s = e.min - t.min, n = e.max - t.max;
|
|
144
144
|
return e.max - e.min < t.max - t.min && ([s, n] = [n, s]), { min: s, max: n };
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ke(t, e) {
|
|
147
147
|
return {
|
|
148
148
|
x: dt(t.x, e.x),
|
|
149
149
|
y: dt(t.y, e.y)
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ze(t, e) {
|
|
153
153
|
let s = 0.5;
|
|
154
154
|
const n = T(t), r = T(e);
|
|
155
|
-
return r > n ? s =
|
|
155
|
+
return r > n ? s = K(e.min, e.max - n, t.min) : n > r && (s = K(t.min, t.max - r, e.min)), Ot(0, 1, s);
|
|
156
156
|
}
|
|
157
157
|
function Je(t, e) {
|
|
158
158
|
const s = {};
|
|
159
159
|
return e.min !== void 0 && (s.min = e.min - t.min), e.max !== void 0 && (s.max = e.max - t.min), s;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
function Qe(t =
|
|
163
|
-
return t === !1 ? t = 0 : t === !0 && (t =
|
|
161
|
+
const Z = 0.35;
|
|
162
|
+
function Qe(t = Z) {
|
|
163
|
+
return t === !1 ? t = 0 : t === !0 && (t = Z), {
|
|
164
164
|
x: ft(t, "left", "right"),
|
|
165
165
|
y: ft(t, "top", "bottom")
|
|
166
166
|
};
|
|
@@ -192,7 +192,7 @@ class ei {
|
|
|
192
192
|
return;
|
|
193
193
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), E((g) => {
|
|
194
194
|
let x = this.getAxisMotionValue(g).get() || 0;
|
|
195
|
-
if (
|
|
195
|
+
if (G.test(x)) {
|
|
196
196
|
const { projection: A } = this.visualElement;
|
|
197
197
|
if (A && A.layout) {
|
|
198
198
|
const P = A.layout.layoutBox[g];
|
|
@@ -217,7 +217,7 @@ class ei {
|
|
|
217
217
|
var c;
|
|
218
218
|
return this.getAnimationState(h) === "paused" && ((c = this.getAxisMotionValue(h).animation) == null ? void 0 : c.play());
|
|
219
219
|
}), { dragSnapToOrigin: l } = this.getProps();
|
|
220
|
-
this.panSession = new
|
|
220
|
+
this.panSession = new Zt(e, {
|
|
221
221
|
onSessionStart: r,
|
|
222
222
|
onStart: u,
|
|
223
223
|
onMove: i,
|
|
@@ -226,7 +226,7 @@ class ei {
|
|
|
226
226
|
}, {
|
|
227
227
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
228
228
|
dragSnapToOrigin: l,
|
|
229
|
-
contextWindow:
|
|
229
|
+
contextWindow: Kt(this.visualElement)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
stop(e, s) {
|
|
@@ -251,12 +251,12 @@ class ei {
|
|
|
251
251
|
return;
|
|
252
252
|
const u = this.getAxisMotionValue(e);
|
|
253
253
|
let i = this.originPoint[e] + n[e];
|
|
254
|
-
this.constraints && this.constraints[e] && (i =
|
|
254
|
+
this.constraints && this.constraints[e] && (i = _e(i, this.constraints[e], this.elastic[e])), u.set(i);
|
|
255
255
|
}
|
|
256
256
|
resolveConstraints() {
|
|
257
257
|
var u;
|
|
258
258
|
const { dragConstraints: e, dragElastic: s } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (u = this.visualElement.projection) == null ? void 0 : u.layout, r = this.constraints;
|
|
259
|
-
e && I(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && n ? this.constraints =
|
|
259
|
+
e && I(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && n ? this.constraints = qe(n.layoutBox, e) : this.constraints = !1, this.elastic = Qe(s), r !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && E((i) => {
|
|
260
260
|
this.constraints !== !1 && this.getAxisMotionValue(i) && (this.constraints[i] = Je(n.layoutBox[i], this.constraints[i]));
|
|
261
261
|
});
|
|
262
262
|
}
|
|
@@ -270,7 +270,7 @@ class ei {
|
|
|
270
270
|
if (!r || !r.layout)
|
|
271
271
|
return !1;
|
|
272
272
|
const u = pe(n, r.root, this.visualElement.getTransformPagePoint());
|
|
273
|
-
let i =
|
|
273
|
+
let i = Ke(r.layout.layoutBox, u);
|
|
274
274
|
if (s) {
|
|
275
275
|
const o = s(ge(i));
|
|
276
276
|
this.hasMutatedConstraints = !!o, o && (i = ye(o));
|
|
@@ -354,7 +354,7 @@ class ei {
|
|
|
354
354
|
const o = this.getAxisMotionValue(i);
|
|
355
355
|
if (o && this.constraints !== !1) {
|
|
356
356
|
const a = o.get();
|
|
357
|
-
r[i] =
|
|
357
|
+
r[i] = Ze({ min: a, max: a }, this.constraints[i]);
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
360
|
const { transformTemplate: u } = this.visualElement.getProps();
|
|
@@ -388,7 +388,7 @@ class ei {
|
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
getProps() {
|
|
391
|
-
const e = this.visualElement.getProps(), { drag: s = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: u = !1, dragElastic: i =
|
|
391
|
+
const e = this.visualElement.getProps(), { drag: s = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: u = !1, dragElastic: i = Z, dragMomentum: o = !0 } = e;
|
|
392
392
|
return {
|
|
393
393
|
...e,
|
|
394
394
|
drag: s,
|
|
@@ -427,9 +427,9 @@ class ni extends Nt {
|
|
|
427
427
|
super(...arguments), this.removePointerDownListener = j;
|
|
428
428
|
}
|
|
429
429
|
onPointerDown(e) {
|
|
430
|
-
this.session = new
|
|
430
|
+
this.session = new Zt(e, this.createPanHandlers(), {
|
|
431
431
|
transformPagePoint: this.node.getTransformPagePoint(),
|
|
432
|
-
contextWindow:
|
|
432
|
+
contextWindow: Kt(this.node)
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
createPanHandlers() {
|
|
@@ -515,7 +515,7 @@ class ai extends Ue {
|
|
|
515
515
|
}
|
|
516
516
|
componentDidUpdate() {
|
|
517
517
|
const { projection: e } = this.props.visualElement;
|
|
518
|
-
e && (e.root.didUpdate(),
|
|
518
|
+
e && (e.root.didUpdate(), Gt.postRender(() => {
|
|
519
519
|
!e.currentAnimation && e.isLead() && this.safeToRemove();
|
|
520
520
|
}));
|
|
521
521
|
}
|
|
@@ -552,7 +552,7 @@ const ri = {
|
|
|
552
552
|
boxShadow: oi
|
|
553
553
|
};
|
|
554
554
|
function li(t, e, s) {
|
|
555
|
-
const n = De(t) ? t :
|
|
555
|
+
const n = De(t) ? t : $t(t);
|
|
556
556
|
return n.start(Ft("", n, e, s)), n.animation;
|
|
557
557
|
}
|
|
558
558
|
const hi = (t, e) => t.depth - e.depth;
|
|
@@ -585,7 +585,7 @@ function fi(t, e, s, n, r, u) {
|
|
|
585
585
|
let a = xt(e, o), l = xt(s, o);
|
|
586
586
|
if (a === void 0 && l === void 0)
|
|
587
587
|
continue;
|
|
588
|
-
a || (a = 0), l || (l = 0), a === 0 || l === 0 || vt(a) === vt(l) ? (t[o] = Math.max(v(yt(a), yt(l), n), 0), (
|
|
588
|
+
a || (a = 0), l || (l = 0), a === 0 || l === 0 || vt(a) === vt(l) ? (t[o] = Math.max(v(yt(a), yt(l), n), 0), (G.test(l) || G.test(a)) && (t[o] += "%")) : t[o] = l;
|
|
589
589
|
}
|
|
590
590
|
(e.rotate || s.rotate) && (t.rotate = v(e.rotate || 0, s.rotate || 0, n));
|
|
591
591
|
}
|
|
@@ -594,7 +594,7 @@ function xt(t, e) {
|
|
|
594
594
|
}
|
|
595
595
|
const mi = /* @__PURE__ */ ee(0, 0.5, Se), pi = /* @__PURE__ */ ee(0.5, 0.95, j);
|
|
596
596
|
function ee(t, e, s) {
|
|
597
|
-
return (n) => n < t ? 0 : n > e ? 1 : s(
|
|
597
|
+
return (n) => n < t ? 0 : n > e ? 1 : s(K(t, e, n));
|
|
598
598
|
}
|
|
599
599
|
function Pt(t, e) {
|
|
600
600
|
t.min = e.min, t.max = e.max;
|
|
@@ -609,7 +609,7 @@ function Dt(t, e, s, n, r) {
|
|
|
609
609
|
return t -= e, t = it(t, 1 / s, n), r !== void 0 && (t = it(t, 1 / r, n)), t;
|
|
610
610
|
}
|
|
611
611
|
function gi(t, e = 0, s = 1, n = 0.5, r, u = t, i = t) {
|
|
612
|
-
if (
|
|
612
|
+
if (G.test(e) && (e = parseFloat(e), e = v(i.min, i.max, e / 100) - i.min), typeof e != "number")
|
|
613
613
|
return;
|
|
614
614
|
let o = v(u.min, u.max, n);
|
|
615
615
|
t === u && (o -= e), t.min = Dt(t.min, e, s, o, r), t.max = Dt(t.max, e, s, o, r);
|
|
@@ -711,7 +711,7 @@ function Ti(t, e, s) {
|
|
|
711
711
|
}
|
|
712
712
|
const Y = ["", "X", "Y", "Z"], Di = { visibility: "hidden" }, Si = 1e3;
|
|
713
713
|
let Ei = 0;
|
|
714
|
-
function
|
|
714
|
+
function _(t, e, s, n) {
|
|
715
715
|
const { latestValues: r } = e;
|
|
716
716
|
r[t] && (s[t] = r[t], e.setStaticValue(t, 0), n && (n[t] = 0));
|
|
717
717
|
}
|
|
@@ -836,10 +836,10 @@ function oe({ attachResizeListener: t, defaultParent: e, measureScroll: s, check
|
|
|
836
836
|
}
|
|
837
837
|
this.isUpdating || this.nodes.forEach(ji), this.isUpdating = !1, this.nodes.forEach(Bi), this.nodes.forEach(Ri), this.nodes.forEach(Ai), this.clearAllSnapshots();
|
|
838
838
|
const o = Xt.now();
|
|
839
|
-
D.delta = Ot(0, 1e3 / 60, o - D.timestamp), D.timestamp = o, D.isProcessing = !0,
|
|
839
|
+
D.delta = Ot(0, 1e3 / 60, o - D.timestamp), D.timestamp = o, D.isProcessing = !0, $.update.process(D), $.preRender.process(D), $.render.process(D), D.isProcessing = !1;
|
|
840
840
|
}
|
|
841
841
|
didUpdate() {
|
|
842
|
-
this.updateScheduled || (this.updateScheduled = !0,
|
|
842
|
+
this.updateScheduled || (this.updateScheduled = !0, Gt.read(this.scheduleUpdate));
|
|
843
843
|
}
|
|
844
844
|
clearAllSnapshots() {
|
|
845
845
|
this.nodes.forEach(Vi), this.sharedNodes.forEach(ki);
|
|
@@ -1040,7 +1040,7 @@ function oe({ attachResizeListener: t, defaultParent: e, measureScroll: s, check
|
|
|
1040
1040
|
startAnimation(i) {
|
|
1041
1041
|
var o, a, l;
|
|
1042
1042
|
this.notifyListeners("animationStart"), (o = this.currentAnimation) == null || o.stop(), (l = (a = this.resumingFrom) == null ? void 0 : a.currentAnimation) == null || l.stop(), this.pendingAnimation && (U(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = R.update(() => {
|
|
1043
|
-
W.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue =
|
|
1043
|
+
W.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = $t(0)), this.currentAnimation = li(this.motionValue, [0, 1e3], {
|
|
1044
1044
|
...i,
|
|
1045
1045
|
velocity: 0,
|
|
1046
1046
|
isSync: !0,
|
|
@@ -1121,9 +1121,9 @@ function oe({ attachResizeListener: t, defaultParent: e, measureScroll: s, check
|
|
|
1121
1121
|
if ((a.z || a.rotate || a.rotateX || a.rotateY || a.rotateZ || a.skewX || a.skewY) && (o = !0), !o)
|
|
1122
1122
|
return;
|
|
1123
1123
|
const l = {};
|
|
1124
|
-
a.z &&
|
|
1124
|
+
a.z && _("z", i, l, this.animationValues);
|
|
1125
1125
|
for (let h = 0; h < Y.length; h++)
|
|
1126
|
-
|
|
1126
|
+
_(`rotate${Y[h]}`, i, l, this.animationValues), _(`skew${Y[h]}`, i, l, this.animationValues);
|
|
1127
1127
|
i.render();
|
|
1128
1128
|
for (const h in l)
|
|
1129
1129
|
i.setStaticValue(h, l[h]), this.animationValues && (this.animationValues[h] = l[h]);
|
|
@@ -1277,7 +1277,7 @@ function Fi(t) {
|
|
|
1277
1277
|
Ut(t.x), Ut(t.y);
|
|
1278
1278
|
}
|
|
1279
1279
|
function ae(t, e, s) {
|
|
1280
|
-
return t === "position" || t === "preserve-aspect" &&
|
|
1280
|
+
return t === "position" || t === "preserve-aspect" && !$e(Ct(e), Ct(s), 0.2);
|
|
1281
1281
|
}
|
|
1282
1282
|
function Ni(t) {
|
|
1283
1283
|
var e;
|
|
@@ -1290,7 +1290,7 @@ const Wi = oe({
|
|
|
1290
1290
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
1291
1291
|
}),
|
|
1292
1292
|
checkIsScrollRoot: () => !0
|
|
1293
|
-
}),
|
|
1293
|
+
}), q = {
|
|
1294
1294
|
current: void 0
|
|
1295
1295
|
}, re = oe({
|
|
1296
1296
|
measureScroll: (t) => ({
|
|
@@ -1298,17 +1298,17 @@ const Wi = oe({
|
|
|
1298
1298
|
y: t.scrollTop
|
|
1299
1299
|
}),
|
|
1300
1300
|
defaultParent: () => {
|
|
1301
|
-
if (!
|
|
1301
|
+
if (!q.current) {
|
|
1302
1302
|
const t = new Wi({});
|
|
1303
|
-
t.mount(window), t.setOptions({ layoutScroll: !0 }),
|
|
1303
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), q.current = t;
|
|
1304
1304
|
}
|
|
1305
|
-
return
|
|
1305
|
+
return q.current;
|
|
1306
1306
|
},
|
|
1307
1307
|
resetTransform: (t, e) => {
|
|
1308
1308
|
t.style.transform = e !== void 0 ? e : "none";
|
|
1309
1309
|
},
|
|
1310
1310
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
|
1311
|
-
}),
|
|
1311
|
+
}), Gi = {
|
|
1312
1312
|
pan: {
|
|
1313
1313
|
Feature: ni
|
|
1314
1314
|
},
|
|
@@ -1317,7 +1317,7 @@ const Wi = oe({
|
|
|
1317
1317
|
ProjectionNode: re,
|
|
1318
1318
|
MeasureLayout: Qt
|
|
1319
1319
|
}
|
|
1320
|
-
},
|
|
1320
|
+
}, $i = {
|
|
1321
1321
|
layout: {
|
|
1322
1322
|
ProjectionNode: re,
|
|
1323
1323
|
MeasureLayout: Qt
|
|
@@ -1325,9 +1325,9 @@ const Wi = oe({
|
|
|
1325
1325
|
}, zi = /* @__PURE__ */ je({
|
|
1326
1326
|
...Me,
|
|
1327
1327
|
...be,
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
}, Be),
|
|
1328
|
+
...Gi,
|
|
1329
|
+
...$i
|
|
1330
|
+
}, Be), qi = /* @__PURE__ */ we(zi);
|
|
1331
1331
|
export {
|
|
1332
1332
|
ci as F,
|
|
1333
1333
|
M as a,
|
|
@@ -1337,7 +1337,7 @@ export {
|
|
|
1337
1337
|
He as e,
|
|
1338
1338
|
Oe as f,
|
|
1339
1339
|
Yt as i,
|
|
1340
|
-
|
|
1340
|
+
qi as m,
|
|
1341
1341
|
Ie as s
|
|
1342
1342
|
};
|
|
1343
|
-
//# sourceMappingURL=proxy-
|
|
1343
|
+
//# sourceMappingURL=proxy-gd0H-9gQ.js.map
|