sidenetai-sdk 1.0.0 → 1.0.1
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/sidenetai-sdk.css +1 -1
- package/dist/sidenetai-sdk.es.js +191 -191
- package/dist/sidenetai-sdk.umd.js +1 -1
- package/package.json +1 -1
package/dist/sidenetai-sdk.es.js
CHANGED
|
@@ -30484,7 +30484,7 @@ const uR = ({ size: u = 16 }) => /* @__PURE__ */ $.jsx(
|
|
|
30484
30484
|
// primaryButtonBgColor: 'bg-black dark:bg-gray-700',
|
|
30485
30485
|
// primaryButtonTextColor: 'text-white dark:text-gray-100',
|
|
30486
30486
|
// Sidebar styling
|
|
30487
|
-
sidebarContainer: "bg-white dark:bg-gray-900 text-black dark:text-gray-100 border-gray-300 dark:border-gray-700",
|
|
30487
|
+
sidebarContainer: "bg-white dark:bg-gray-900 text-black dark:text-gray-100 border-l-1 border-gray-300 dark:border-gray-700 shadow-lg border-shadow-lg",
|
|
30488
30488
|
suggestions: "bg-white dark:bg-gray-800 text-black dark:text-gray-100 border-gray-300 dark:border-gray-700",
|
|
30489
30489
|
cardContainer: "dark:bg-gray-800",
|
|
30490
30490
|
cardTitle: "dark:text-gray-100",
|
|
@@ -32113,7 +32113,7 @@ class PO extends w2 {
|
|
|
32113
32113
|
}), this.resolveNoneKeyframes();
|
|
32114
32114
|
}
|
|
32115
32115
|
}
|
|
32116
|
-
function
|
|
32116
|
+
function tw(u, r, d) {
|
|
32117
32117
|
if (u instanceof EventTarget)
|
|
32118
32118
|
return [u];
|
|
32119
32119
|
if (typeof u == "string") {
|
|
@@ -32127,8 +32127,8 @@ const VM = (u, r) => r && typeof u == "number" ? r.transform(u) : u;
|
|
|
32127
32127
|
function HM(u) {
|
|
32128
32128
|
return tM(u) && "offsetHeight" in u;
|
|
32129
32129
|
}
|
|
32130
|
-
const jx = 30,
|
|
32131
|
-
class
|
|
32130
|
+
const jx = 30, ew = (u) => !isNaN(parseFloat(u));
|
|
32131
|
+
class nw {
|
|
32132
32132
|
/**
|
|
32133
32133
|
* @param init - The initiating value
|
|
32134
32134
|
* @param config - Optional configuration options
|
|
@@ -32144,7 +32144,7 @@ class n4 {
|
|
|
32144
32144
|
}, this.hasAnimated = !1, this.setCurrent(r), this.owner = d.owner;
|
|
32145
32145
|
}
|
|
32146
32146
|
setCurrent(r) {
|
|
32147
|
-
this.current = r, this.updatedAt = Nl.now(), this.canTrackVelocity === null && r !== void 0 && (this.canTrackVelocity =
|
|
32147
|
+
this.current = r, this.updatedAt = Nl.now(), this.canTrackVelocity === null && r !== void 0 && (this.canTrackVelocity = ew(this.current));
|
|
32148
32148
|
}
|
|
32149
32149
|
setPrevFrameValue(r = this.current) {
|
|
32150
32150
|
this.prevFrameValue = r, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -32328,7 +32328,7 @@ class n4 {
|
|
|
32328
32328
|
}
|
|
32329
32329
|
}
|
|
32330
32330
|
function yp(u, r) {
|
|
32331
|
-
return new
|
|
32331
|
+
return new nw(u, r);
|
|
32332
32332
|
}
|
|
32333
32333
|
const { schedule: N2 } = /* @__PURE__ */ hM(queueMicrotask, !1), Xo = {
|
|
32334
32334
|
x: !1,
|
|
@@ -32337,7 +32337,7 @@ const { schedule: N2 } = /* @__PURE__ */ hM(queueMicrotask, !1), Xo = {
|
|
|
32337
32337
|
function LM() {
|
|
32338
32338
|
return Xo.x || Xo.y;
|
|
32339
32339
|
}
|
|
32340
|
-
function
|
|
32340
|
+
function aw(u) {
|
|
32341
32341
|
return u === "x" || u === "y" ? Xo[u] ? null : (Xo[u] = !0, () => {
|
|
32342
32342
|
Xo[u] = !1;
|
|
32343
32343
|
}) : Xo.x || Xo.y ? null : (Xo.x = Xo.y = !0, () => {
|
|
@@ -32345,7 +32345,7 @@ function a4(u) {
|
|
|
32345
32345
|
});
|
|
32346
32346
|
}
|
|
32347
32347
|
function qM(u, r) {
|
|
32348
|
-
const d =
|
|
32348
|
+
const d = tw(u), m = new AbortController(), v = {
|
|
32349
32349
|
passive: !0,
|
|
32350
32350
|
...r,
|
|
32351
32351
|
signal: m.signal
|
|
@@ -32355,7 +32355,7 @@ function qM(u, r) {
|
|
|
32355
32355
|
function Bx(u) {
|
|
32356
32356
|
return !(u.pointerType === "touch" || LM());
|
|
32357
32357
|
}
|
|
32358
|
-
function
|
|
32358
|
+
function lw(u, r, d = {}) {
|
|
32359
32359
|
const [m, v, T] = qM(u, d), b = (A) => {
|
|
32360
32360
|
if (!Bx(A))
|
|
32361
32361
|
return;
|
|
@@ -32371,15 +32371,15 @@ function l4(u, r, d = {}) {
|
|
|
32371
32371
|
A.addEventListener("pointerenter", b, v);
|
|
32372
32372
|
}), T;
|
|
32373
32373
|
}
|
|
32374
|
-
const YM = (u, r) => r ? u === r ? !0 : YM(u, r.parentElement) : !1, j2 = (u) => u.pointerType === "mouse" ? typeof u.button != "number" || u.button <= 0 : u.isPrimary !== !1,
|
|
32374
|
+
const YM = (u, r) => r ? u === r ? !0 : YM(u, r.parentElement) : !1, j2 = (u) => u.pointerType === "mouse" ? typeof u.button != "number" || u.button <= 0 : u.isPrimary !== !1, iw = /* @__PURE__ */ new Set([
|
|
32375
32375
|
"BUTTON",
|
|
32376
32376
|
"INPUT",
|
|
32377
32377
|
"SELECT",
|
|
32378
32378
|
"TEXTAREA",
|
|
32379
32379
|
"A"
|
|
32380
32380
|
]);
|
|
32381
|
-
function
|
|
32382
|
-
return
|
|
32381
|
+
function ow(u) {
|
|
32382
|
+
return iw.has(u.tagName) || u.tabIndex !== -1;
|
|
32383
32383
|
}
|
|
32384
32384
|
const R1 = /* @__PURE__ */ new WeakSet();
|
|
32385
32385
|
function Vx(u) {
|
|
@@ -32390,7 +32390,7 @@ function Vx(u) {
|
|
|
32390
32390
|
function DT(u, r) {
|
|
32391
32391
|
u.dispatchEvent(new PointerEvent("pointer" + r, { isPrimary: !0, bubbles: !0 }));
|
|
32392
32392
|
}
|
|
32393
|
-
const
|
|
32393
|
+
const uw = (u, r) => {
|
|
32394
32394
|
const d = u.currentTarget;
|
|
32395
32395
|
if (!d)
|
|
32396
32396
|
return;
|
|
@@ -32408,7 +32408,7 @@ const u4 = (u, r) => {
|
|
|
32408
32408
|
function Hx(u) {
|
|
32409
32409
|
return j2(u) && !LM();
|
|
32410
32410
|
}
|
|
32411
|
-
function
|
|
32411
|
+
function sw(u, r, d = {}) {
|
|
32412
32412
|
const [m, v, T] = qM(u, d), b = (A) => {
|
|
32413
32413
|
const x = A.currentTarget;
|
|
32414
32414
|
if (!Hx(A))
|
|
@@ -32424,16 +32424,16 @@ function s4(u, r, d = {}) {
|
|
|
32424
32424
|
window.addEventListener("pointerup", R, v), window.addEventListener("pointercancel", w, v);
|
|
32425
32425
|
};
|
|
32426
32426
|
return m.forEach((A) => {
|
|
32427
|
-
(d.useGlobalTarget ? window : A).addEventListener("pointerdown", b, v), HM(A) && (A.addEventListener("focus", (z) =>
|
|
32427
|
+
(d.useGlobalTarget ? window : A).addEventListener("pointerdown", b, v), HM(A) && (A.addEventListener("focus", (z) => uw(z, v)), !ow(A) && !A.hasAttribute("tabindex") && (A.tabIndex = 0));
|
|
32428
32428
|
}), T;
|
|
32429
32429
|
}
|
|
32430
32430
|
function GM(u) {
|
|
32431
32431
|
return tM(u) && "ownerSVGElement" in u;
|
|
32432
32432
|
}
|
|
32433
|
-
function
|
|
32433
|
+
function rw(u) {
|
|
32434
32434
|
return GM(u) && u.tagName === "svg";
|
|
32435
32435
|
}
|
|
32436
|
-
const Za = (u) => !!(u && u.getVelocity),
|
|
32436
|
+
const Za = (u) => !!(u && u.getVelocity), cw = [...NM, Fn, Vc], fw = (u) => cw.find(_M(u)), B2 = Vd({
|
|
32437
32437
|
transformPagePoint: (u) => u,
|
|
32438
32438
|
isStatic: !1,
|
|
32439
32439
|
reducedMotion: "never"
|
|
@@ -32443,7 +32443,7 @@ function Lx(u, r) {
|
|
|
32443
32443
|
return u(r);
|
|
32444
32444
|
u != null && (u.current = r);
|
|
32445
32445
|
}
|
|
32446
|
-
function
|
|
32446
|
+
function dw(...u) {
|
|
32447
32447
|
return (r) => {
|
|
32448
32448
|
let d = !1;
|
|
32449
32449
|
const m = u.map((v) => {
|
|
@@ -32459,10 +32459,10 @@ function d4(...u) {
|
|
|
32459
32459
|
};
|
|
32460
32460
|
};
|
|
32461
32461
|
}
|
|
32462
|
-
function
|
|
32463
|
-
return Le.useCallback(
|
|
32462
|
+
function hw(...u) {
|
|
32463
|
+
return Le.useCallback(dw(...u), u);
|
|
32464
32464
|
}
|
|
32465
|
-
class
|
|
32465
|
+
class mw extends Le.Component {
|
|
32466
32466
|
getSnapshotBeforeUpdate(r) {
|
|
32467
32467
|
const d = this.props.childRef.current;
|
|
32468
32468
|
if (d && r.isPresent && !this.props.isPresent) {
|
|
@@ -32480,14 +32480,14 @@ class m4 extends Le.Component {
|
|
|
32480
32480
|
return this.props.children;
|
|
32481
32481
|
}
|
|
32482
32482
|
}
|
|
32483
|
-
function
|
|
32483
|
+
function pw({ children: u, isPresent: r, anchorX: d, root: m }) {
|
|
32484
32484
|
const v = s2(), T = An(null), b = An({
|
|
32485
32485
|
width: 0,
|
|
32486
32486
|
height: 0,
|
|
32487
32487
|
top: 0,
|
|
32488
32488
|
left: 0,
|
|
32489
32489
|
right: 0
|
|
32490
|
-
}), { nonce: A } = _a(B2), x =
|
|
32490
|
+
}), { nonce: A } = _a(B2), x = hw(T, u?.ref);
|
|
32491
32491
|
return _D(() => {
|
|
32492
32492
|
const { width: z, height: C, top: R, left: w, right: Q } = b.current;
|
|
32493
32493
|
if (r || !T.current || !z || !C)
|
|
@@ -32508,10 +32508,10 @@ function p4({ children: u, isPresent: r, anchorX: d, root: m }) {
|
|
|
32508
32508
|
`), () => {
|
|
32509
32509
|
ot.contains(lt) && ot.removeChild(lt);
|
|
32510
32510
|
};
|
|
32511
|
-
}, [r]), $.jsx(
|
|
32511
|
+
}, [r]), $.jsx(mw, { isPresent: r, childRef: T, sizeRef: b, children: Le.cloneElement(u, { ref: x }) });
|
|
32512
32512
|
}
|
|
32513
|
-
const
|
|
32514
|
-
const z = h2(
|
|
32513
|
+
const yw = ({ children: u, initial: r, isPresent: d, onExitComplete: m, custom: v, presenceAffectsLayout: T, mode: b, anchorX: A, root: x }) => {
|
|
32514
|
+
const z = h2(gw), C = s2();
|
|
32515
32515
|
let R = !0, w = jd(() => (R = !1, {
|
|
32516
32516
|
id: C,
|
|
32517
32517
|
initial: r,
|
|
@@ -32530,9 +32530,9 @@ const y4 = ({ children: u, initial: r, isPresent: d, onExitComplete: m, custom:
|
|
|
32530
32530
|
z.forEach((Q, X) => z.set(X, !1));
|
|
32531
32531
|
}, [d]), Le.useEffect(() => {
|
|
32532
32532
|
!d && !z.size && m && m();
|
|
32533
|
-
}, [d]), b === "popLayout" && (u = $.jsx(
|
|
32533
|
+
}, [d]), b === "popLayout" && (u = $.jsx(pw, { isPresent: d, anchorX: A, root: x, children: u })), $.jsx(V1.Provider, { value: w, children: u });
|
|
32534
32534
|
};
|
|
32535
|
-
function
|
|
32535
|
+
function gw() {
|
|
32536
32536
|
return /* @__PURE__ */ new Map();
|
|
32537
32537
|
}
|
|
32538
32538
|
function XM(u = !0) {
|
|
@@ -32554,7 +32554,7 @@ function qx(u) {
|
|
|
32554
32554
|
rz(d) && r.push(d);
|
|
32555
32555
|
}), r;
|
|
32556
32556
|
}
|
|
32557
|
-
const
|
|
32557
|
+
const vw = ({ children: u, custom: r, initial: d = !0, onExitComplete: m, presenceAffectsLayout: v = !0, mode: T = "sync", propagate: b = !1, anchorX: A = "left", root: x }) => {
|
|
32558
32558
|
const [z, C] = XM(b), R = jd(() => qx(u), [u]), w = b && !z ? [] : R.map(M1), Q = An(!0), X = An(R), lt = h2(() => /* @__PURE__ */ new Map()), [ot, nt] = ia(R), [ft, dt] = ia(R);
|
|
32559
32559
|
ID(() => {
|
|
32560
32560
|
Q.current = !1, X.current = R;
|
|
@@ -32585,7 +32585,7 @@ const v4 = ({ children: u, custom: r, initial: d = !0, onExitComplete: m, presen
|
|
|
32585
32585
|
Xt || (pt = !1);
|
|
32586
32586
|
}), pt && (bt?.(), dt(X.current), b && C?.(), m && m());
|
|
32587
32587
|
};
|
|
32588
|
-
return $.jsx(
|
|
32588
|
+
return $.jsx(yw, { isPresent: I, initial: !Q.current || d ? void 0 : !1, custom: r, presenceAffectsLayout: v, mode: T, root: x, onExitComplete: I ? void 0 : Ot, anchorX: A, children: vt }, xt);
|
|
32589
32589
|
}) });
|
|
32590
32590
|
}, QM = Vd({ strict: !1 }), Yx = {
|
|
32591
32591
|
animation: [
|
|
@@ -32611,14 +32611,14 @@ for (const u in Yx)
|
|
|
32611
32611
|
gp[u] = {
|
|
32612
32612
|
isEnabled: (r) => Yx[u].some((d) => !!r[d])
|
|
32613
32613
|
};
|
|
32614
|
-
function
|
|
32614
|
+
function bw(u) {
|
|
32615
32615
|
for (const r in u)
|
|
32616
32616
|
gp[r] = {
|
|
32617
32617
|
...gp[r],
|
|
32618
32618
|
...u[r]
|
|
32619
32619
|
};
|
|
32620
32620
|
}
|
|
32621
|
-
const
|
|
32621
|
+
const Sw = /* @__PURE__ */ new Set([
|
|
32622
32622
|
"animate",
|
|
32623
32623
|
"exit",
|
|
32624
32624
|
"variants",
|
|
@@ -32651,17 +32651,17 @@ const S4 = /* @__PURE__ */ new Set([
|
|
|
32651
32651
|
"viewport"
|
|
32652
32652
|
]);
|
|
32653
32653
|
function j1(u) {
|
|
32654
|
-
return u.startsWith("while") || u.startsWith("drag") && u !== "draggable" || u.startsWith("layout") || u.startsWith("onTap") || u.startsWith("onPan") || u.startsWith("onLayout") ||
|
|
32654
|
+
return u.startsWith("while") || u.startsWith("drag") && u !== "draggable" || u.startsWith("layout") || u.startsWith("onTap") || u.startsWith("onPan") || u.startsWith("onLayout") || Sw.has(u);
|
|
32655
32655
|
}
|
|
32656
32656
|
let ZM = (u) => !j1(u);
|
|
32657
|
-
function
|
|
32657
|
+
function Tw(u) {
|
|
32658
32658
|
typeof u == "function" && (ZM = (r) => r.startsWith("on") ? !j1(r) : u(r));
|
|
32659
32659
|
}
|
|
32660
32660
|
try {
|
|
32661
|
-
|
|
32661
|
+
Tw(require("@emotion/is-prop-valid").default);
|
|
32662
32662
|
} catch {
|
|
32663
32663
|
}
|
|
32664
|
-
function
|
|
32664
|
+
function Aw(u, r, d) {
|
|
32665
32665
|
const m = {};
|
|
32666
32666
|
for (const v in u)
|
|
32667
32667
|
v === "values" && typeof u.values == "object" || (ZM(v) || d === !0 && j1(v) || !r && !j1(v) || // If trying to use native HTML drag events, forward drag listeners
|
|
@@ -32690,7 +32690,7 @@ function q1(u) {
|
|
|
32690
32690
|
function kM(u) {
|
|
32691
32691
|
return !!(q1(u) || u.variants);
|
|
32692
32692
|
}
|
|
32693
|
-
function
|
|
32693
|
+
function Ew(u, r) {
|
|
32694
32694
|
if (q1(u)) {
|
|
32695
32695
|
const { initial: d, animate: m } = u;
|
|
32696
32696
|
return {
|
|
@@ -32700,30 +32700,30 @@ function E4(u, r) {
|
|
|
32700
32700
|
}
|
|
32701
32701
|
return u.inherit !== !1 ? r : {};
|
|
32702
32702
|
}
|
|
32703
|
-
function
|
|
32704
|
-
const { initial: r, animate: d } =
|
|
32703
|
+
function xw(u) {
|
|
32704
|
+
const { initial: r, animate: d } = Ew(u, _a(H1));
|
|
32705
32705
|
return jd(() => ({ initial: r, animate: d }), [Gx(r), Gx(d)]);
|
|
32706
32706
|
}
|
|
32707
32707
|
function Gx(u) {
|
|
32708
32708
|
return Array.isArray(u) ? u.join(" ") : u;
|
|
32709
32709
|
}
|
|
32710
32710
|
const q0 = {};
|
|
32711
|
-
function
|
|
32711
|
+
function Dw(u) {
|
|
32712
32712
|
for (const r in u)
|
|
32713
32713
|
q0[r] = u[r], A2(r) && (q0[r].isCSSVariable = !0);
|
|
32714
32714
|
}
|
|
32715
32715
|
function JM(u, { layout: r, layoutId: d }) {
|
|
32716
32716
|
return xp.has(u) || u.startsWith("origin") || (r || d !== void 0) && (!!q0[u] || u === "opacity");
|
|
32717
32717
|
}
|
|
32718
|
-
const
|
|
32718
|
+
const Mw = {
|
|
32719
32719
|
x: "translateX",
|
|
32720
32720
|
y: "translateY",
|
|
32721
32721
|
z: "translateZ",
|
|
32722
32722
|
transformPerspective: "perspective"
|
|
32723
|
-
},
|
|
32724
|
-
function
|
|
32723
|
+
}, Cw = Ep.length;
|
|
32724
|
+
function zw(u, r, d) {
|
|
32725
32725
|
let m = "", v = !0;
|
|
32726
|
-
for (let T = 0; T <
|
|
32726
|
+
for (let T = 0; T < Cw; T++) {
|
|
32727
32727
|
const b = Ep[T], A = u[b];
|
|
32728
32728
|
if (A === void 0)
|
|
32729
32729
|
continue;
|
|
@@ -32732,7 +32732,7 @@ function z4(u, r, d) {
|
|
|
32732
32732
|
const z = VM(A, _2[b]);
|
|
32733
32733
|
if (!x) {
|
|
32734
32734
|
v = !1;
|
|
32735
|
-
const C =
|
|
32735
|
+
const C = Mw[b] || b;
|
|
32736
32736
|
m += `${C}(${z}) `;
|
|
32737
32737
|
}
|
|
32738
32738
|
d && (r[b] = z);
|
|
@@ -32756,7 +32756,7 @@ function L2(u, r, d) {
|
|
|
32756
32756
|
x.startsWith("origin") ? (A = !0, T[x] = C) : m[x] = C;
|
|
32757
32757
|
}
|
|
32758
32758
|
}
|
|
32759
|
-
if (r.transform || (b || d ? m.transform =
|
|
32759
|
+
if (r.transform || (b || d ? m.transform = zw(r, u.transform, d) : m.transform && (m.transform = "none")), A) {
|
|
32760
32760
|
const { originX: x = "50%", originY: z = "50%", originZ: C = 0 } = T;
|
|
32761
32761
|
m.transformOrigin = `${x} ${z} ${C}`;
|
|
32762
32762
|
}
|
|
@@ -32771,30 +32771,30 @@ function KM(u, r, d) {
|
|
|
32771
32771
|
for (const m in r)
|
|
32772
32772
|
!Za(r[m]) && !JM(m, d) && (u[m] = r[m]);
|
|
32773
32773
|
}
|
|
32774
|
-
function
|
|
32774
|
+
function Rw({ transformTemplate: u }, r) {
|
|
32775
32775
|
return jd(() => {
|
|
32776
32776
|
const d = q2();
|
|
32777
32777
|
return L2(d, r, u), Object.assign({}, d.vars, d.style);
|
|
32778
32778
|
}, [r]);
|
|
32779
32779
|
}
|
|
32780
|
-
function
|
|
32780
|
+
function Ow(u, r) {
|
|
32781
32781
|
const d = u.style || {}, m = {};
|
|
32782
|
-
return KM(m, d, u), Object.assign(m,
|
|
32782
|
+
return KM(m, d, u), Object.assign(m, Rw(u, r)), m;
|
|
32783
32783
|
}
|
|
32784
|
-
function
|
|
32785
|
-
const d = {}, m =
|
|
32784
|
+
function ww(u, r) {
|
|
32785
|
+
const d = {}, m = Ow(u, r);
|
|
32786
32786
|
return u.drag && u.dragListener !== !1 && (d.draggable = !1, m.userSelect = m.WebkitUserSelect = m.WebkitTouchCallout = "none", m.touchAction = u.drag === !0 ? "none" : `pan-${u.drag === "x" ? "y" : "x"}`), u.tabIndex === void 0 && (u.onTap || u.onTapStart || u.whileTap) && (d.tabIndex = 0), d.style = m, d;
|
|
32787
32787
|
}
|
|
32788
|
-
const
|
|
32788
|
+
const Uw = {
|
|
32789
32789
|
offset: "stroke-dashoffset",
|
|
32790
32790
|
array: "stroke-dasharray"
|
|
32791
|
-
},
|
|
32791
|
+
}, _w = {
|
|
32792
32792
|
offset: "strokeDashoffset",
|
|
32793
32793
|
array: "strokeDasharray"
|
|
32794
32794
|
};
|
|
32795
|
-
function
|
|
32795
|
+
function Nw(u, r, d = 1, m = 0, v = !0) {
|
|
32796
32796
|
u.pathLength = 1;
|
|
32797
|
-
const T = v ?
|
|
32797
|
+
const T = v ? Uw : _w;
|
|
32798
32798
|
u[T.offset] = Ft.transform(-m);
|
|
32799
32799
|
const b = Ft.transform(r), A = Ft.transform(d);
|
|
32800
32800
|
u[T.array] = `${b} ${A}`;
|
|
@@ -32815,13 +32815,13 @@ function $M(u, {
|
|
|
32815
32815
|
}
|
|
32816
32816
|
u.attrs = u.style, u.style = {};
|
|
32817
32817
|
const { attrs: R, style: w } = u;
|
|
32818
|
-
R.transform && (w.transform = R.transform, delete R.transform), (w.transform || R.transformOrigin) && (w.transformOrigin = R.transformOrigin ?? "50% 50%", delete R.transformOrigin), w.transform && (w.transformBox = C?.transformBox ?? "fill-box", delete R.transformBox), r !== void 0 && (R.x = r), d !== void 0 && (R.y = d), m !== void 0 && (R.scale = m), v !== void 0 &&
|
|
32818
|
+
R.transform && (w.transform = R.transform, delete R.transform), (w.transform || R.transformOrigin) && (w.transformOrigin = R.transformOrigin ?? "50% 50%", delete R.transformOrigin), w.transform && (w.transformBox = C?.transformBox ?? "fill-box", delete R.transformBox), r !== void 0 && (R.x = r), d !== void 0 && (R.y = d), m !== void 0 && (R.scale = m), v !== void 0 && Nw(R, v, T, b, !1);
|
|
32819
32819
|
}
|
|
32820
32820
|
const FM = () => ({
|
|
32821
32821
|
...q2(),
|
|
32822
32822
|
attrs: {}
|
|
32823
32823
|
}), WM = (u) => typeof u == "string" && u.toLowerCase() === "svg";
|
|
32824
|
-
function
|
|
32824
|
+
function jw(u, r, d, m) {
|
|
32825
32825
|
const v = jd(() => {
|
|
32826
32826
|
const T = FM();
|
|
32827
32827
|
return $M(T, r, WM(m), u.transformTemplate, u.style), {
|
|
@@ -32835,7 +32835,7 @@ function j4(u, r, d, m) {
|
|
|
32835
32835
|
}
|
|
32836
32836
|
return v;
|
|
32837
32837
|
}
|
|
32838
|
-
const
|
|
32838
|
+
const Bw = [
|
|
32839
32839
|
"animate",
|
|
32840
32840
|
"circle",
|
|
32841
32841
|
"defs",
|
|
@@ -32875,15 +32875,15 @@ function Y2(u) {
|
|
|
32875
32875
|
/**
|
|
32876
32876
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
32877
32877
|
*/
|
|
32878
|
-
!!(
|
|
32878
|
+
!!(Bw.indexOf(u) > -1 || /**
|
|
32879
32879
|
* If it contains a capital letter, it's an SVG component
|
|
32880
32880
|
*/
|
|
32881
32881
|
/[A-Z]/u.test(u))
|
|
32882
32882
|
)
|
|
32883
32883
|
);
|
|
32884
32884
|
}
|
|
32885
|
-
function
|
|
32886
|
-
const A = (Y2(u) ?
|
|
32885
|
+
function Vw(u, r, d, { latestValues: m }, v, T = !1) {
|
|
32886
|
+
const A = (Y2(u) ? jw : ww)(r, m, v, u), x = Aw(r, typeof u == "string", T), z = u !== ND ? { ...x, ...A, ref: d } : {}, { children: C } = r, R = jd(() => Za(C) ? C.get() : C, [C]);
|
|
32887
32887
|
return cz(u, {
|
|
32888
32888
|
...z,
|
|
32889
32889
|
children: R
|
|
@@ -32909,13 +32909,13 @@ function G2(u, r, d, m) {
|
|
|
32909
32909
|
function O1(u) {
|
|
32910
32910
|
return Za(u) ? u.get() : u;
|
|
32911
32911
|
}
|
|
32912
|
-
function
|
|
32912
|
+
function Hw({ scrapeMotionValuesFromProps: u, createRenderState: r }, d, m, v) {
|
|
32913
32913
|
return {
|
|
32914
|
-
latestValues:
|
|
32914
|
+
latestValues: Lw(d, m, v, u),
|
|
32915
32915
|
renderState: r()
|
|
32916
32916
|
};
|
|
32917
32917
|
}
|
|
32918
|
-
function
|
|
32918
|
+
function Lw(u, r, d, m) {
|
|
32919
32919
|
const v = {}, T = m(u, {});
|
|
32920
32920
|
for (const w in T)
|
|
32921
32921
|
v[w] = O1(T[w]);
|
|
@@ -32947,7 +32947,7 @@ function L4(u, r, d, m) {
|
|
|
32947
32947
|
return v;
|
|
32948
32948
|
}
|
|
32949
32949
|
const IM = (u) => (r, d) => {
|
|
32950
|
-
const m = _a(H1), v = _a(V1), T = () =>
|
|
32950
|
+
const m = _a(H1), v = _a(V1), T = () => Hw(u, r, m, v);
|
|
32951
32951
|
return d ? T() : h2(T);
|
|
32952
32952
|
};
|
|
32953
32953
|
function X2(u, r, d) {
|
|
@@ -32956,7 +32956,7 @@ function X2(u, r, d) {
|
|
|
32956
32956
|
(Za(m[T]) || r.style && Za(r.style[T]) || JM(T, u) || d?.getValue(T)?.liveStyle !== void 0) && (v[T] = m[T]);
|
|
32957
32957
|
return v;
|
|
32958
32958
|
}
|
|
32959
|
-
const
|
|
32959
|
+
const qw = /* @__PURE__ */ IM({
|
|
32960
32960
|
scrapeMotionValuesFromProps: X2,
|
|
32961
32961
|
createRenderState: q2
|
|
32962
32962
|
});
|
|
@@ -32969,14 +32969,14 @@ function PM(u, r, d) {
|
|
|
32969
32969
|
}
|
|
32970
32970
|
return m;
|
|
32971
32971
|
}
|
|
32972
|
-
const
|
|
32972
|
+
const Yw = /* @__PURE__ */ IM({
|
|
32973
32973
|
scrapeMotionValuesFromProps: PM,
|
|
32974
32974
|
createRenderState: FM
|
|
32975
|
-
}),
|
|
32975
|
+
}), Gw = Symbol.for("motionComponentSymbol");
|
|
32976
32976
|
function fp(u) {
|
|
32977
32977
|
return u && typeof u == "object" && Object.prototype.hasOwnProperty.call(u, "current");
|
|
32978
32978
|
}
|
|
32979
|
-
function
|
|
32979
|
+
function Xw(u, r, d) {
|
|
32980
32980
|
return uo(
|
|
32981
32981
|
(m) => {
|
|
32982
32982
|
m && u.onMount && u.onMount(m), r && (m ? r.mount(m) : r.unmount()), d && (typeof d == "function" ? d(m) : fp(d) && (d.current = m));
|
|
@@ -32988,8 +32988,8 @@ function X4(u, r, d) {
|
|
|
32988
32988
|
[r]
|
|
32989
32989
|
);
|
|
32990
32990
|
}
|
|
32991
|
-
const Q2 = (u) => u.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
32992
|
-
function
|
|
32991
|
+
const Q2 = (u) => u.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Qw = "framerAppearId", t3 = "data-" + Q2(Qw), e3 = Vd({});
|
|
32992
|
+
function Zw(u, r, d, m, v) {
|
|
32993
32993
|
const { visualElement: T } = _a(H1), b = _a(QM), A = _a(V1), x = _a(B2).reducedMotion, z = An(null);
|
|
32994
32994
|
m = m || b.renderer, !z.current && m && (z.current = m(u, {
|
|
32995
32995
|
visualState: r,
|
|
@@ -33000,7 +33000,7 @@ function Z4(u, r, d, m, v) {
|
|
|
33000
33000
|
reducedMotionConfig: x
|
|
33001
33001
|
}));
|
|
33002
33002
|
const C = z.current, R = _a(e3);
|
|
33003
|
-
C && !C.projection && v && (C.type === "html" || C.type === "svg") &&
|
|
33003
|
+
C && !C.projection && v && (C.type === "html" || C.type === "svg") && kw(z.current, d, v, R);
|
|
33004
33004
|
const w = An(!1);
|
|
33005
33005
|
_D(() => {
|
|
33006
33006
|
C && w.current && C.update(d, A);
|
|
@@ -33014,7 +33014,7 @@ function Z4(u, r, d, m, v) {
|
|
|
33014
33014
|
}), X.current = !1), C.enteringChildren = void 0);
|
|
33015
33015
|
}), C;
|
|
33016
33016
|
}
|
|
33017
|
-
function
|
|
33017
|
+
function kw(u, r, d, m) {
|
|
33018
33018
|
const { layoutId: v, layout: T, drag: b, dragConstraints: A, layoutScroll: x, layoutRoot: z, layoutCrossfade: C } = r;
|
|
33019
33019
|
u.projection = new d(u.latestValues, r["data-framer-portal-id"] ? void 0 : n3(u.parent)), u.projection.setOptions({
|
|
33020
33020
|
layoutId: v,
|
|
@@ -33040,38 +33040,38 @@ function n3(u) {
|
|
|
33040
33040
|
return u.options.allowProjection !== !1 ? u.projection : n3(u.parent);
|
|
33041
33041
|
}
|
|
33042
33042
|
function MT(u, { forwardMotionProps: r = !1 } = {}, d, m) {
|
|
33043
|
-
d &&
|
|
33044
|
-
const v = Y2(u) ?
|
|
33043
|
+
d && bw(d);
|
|
33044
|
+
const v = Y2(u) ? Yw : qw;
|
|
33045
33045
|
function T(A, x) {
|
|
33046
33046
|
let z;
|
|
33047
33047
|
const C = {
|
|
33048
33048
|
..._a(B2),
|
|
33049
33049
|
...A,
|
|
33050
|
-
layoutId:
|
|
33051
|
-
}, { isStatic: R } = C, w =
|
|
33050
|
+
layoutId: Jw(A)
|
|
33051
|
+
}, { isStatic: R } = C, w = xw(A), Q = v(A, R);
|
|
33052
33052
|
if (!R && m2) {
|
|
33053
|
-
|
|
33054
|
-
const X = $
|
|
33055
|
-
z = X.MeasureLayout, w.visualElement =
|
|
33053
|
+
Kw(C, d);
|
|
33054
|
+
const X = $w(C);
|
|
33055
|
+
z = X.MeasureLayout, w.visualElement = Zw(u, Q, C, m, X.ProjectionNode);
|
|
33056
33056
|
}
|
|
33057
|
-
return $.jsxs(H1.Provider, { value: w, children: [z && w.visualElement ? $.jsx(z, { visualElement: w.visualElement, ...C }) : null,
|
|
33057
|
+
return $.jsxs(H1.Provider, { value: w, children: [z && w.visualElement ? $.jsx(z, { visualElement: w.visualElement, ...C }) : null, Vw(u, A, Xw(Q, w.visualElement, x), Q, R, r)] });
|
|
33058
33058
|
}
|
|
33059
33059
|
T.displayName = `motion.${typeof u == "string" ? u : `create(${u.displayName ?? u.name ?? ""})`}`;
|
|
33060
33060
|
const b = fz(T);
|
|
33061
|
-
return b[
|
|
33061
|
+
return b[Gw] = u, b;
|
|
33062
33062
|
}
|
|
33063
|
-
function
|
|
33063
|
+
function Jw({ layoutId: u }) {
|
|
33064
33064
|
const r = _a(d2).id;
|
|
33065
33065
|
return r && u !== void 0 ? r + "-" + u : u;
|
|
33066
33066
|
}
|
|
33067
|
-
function
|
|
33067
|
+
function Kw(u, r) {
|
|
33068
33068
|
const d = _a(QM).strict;
|
|
33069
33069
|
if (process.env.NODE_ENV !== "production" && r && d) {
|
|
33070
33070
|
const m = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
33071
33071
|
u.ignoreStrict ? Tp(!1, m, "lazy-strict-mode") : Ws(!1, m, "lazy-strict-mode");
|
|
33072
33072
|
}
|
|
33073
33073
|
}
|
|
33074
|
-
function $
|
|
33074
|
+
function $w(u) {
|
|
33075
33075
|
const { drag: r, layout: d } = gp;
|
|
33076
33076
|
if (!r && !d)
|
|
33077
33077
|
return {};
|
|
@@ -33081,7 +33081,7 @@ function $4(u) {
|
|
|
33081
33081
|
ProjectionNode: m.ProjectionNode
|
|
33082
33082
|
};
|
|
33083
33083
|
}
|
|
33084
|
-
function
|
|
33084
|
+
function Fw(u, r) {
|
|
33085
33085
|
if (typeof Proxy > "u")
|
|
33086
33086
|
return MT;
|
|
33087
33087
|
const d = /* @__PURE__ */ new Map(), m = (T, b) => MT(T, b, u, r), v = (T, b) => (process.env.NODE_ENV !== "production" && b2(!1, "motion() is deprecated. Use motion.create() instead."), m(T, b));
|
|
@@ -33100,10 +33100,10 @@ function a3({ top: u, left: r, right: d, bottom: m }) {
|
|
|
33100
33100
|
y: { min: u, max: m }
|
|
33101
33101
|
};
|
|
33102
33102
|
}
|
|
33103
|
-
function
|
|
33103
|
+
function Ww({ x: u, y: r }) {
|
|
33104
33104
|
return { top: r.min, right: u.max, bottom: r.max, left: u.min };
|
|
33105
33105
|
}
|
|
33106
|
-
function
|
|
33106
|
+
function Iw(u, r) {
|
|
33107
33107
|
if (!r)
|
|
33108
33108
|
return u;
|
|
33109
33109
|
const d = r({ x: u.left, y: u.top }), m = r({ x: u.right, y: u.bottom });
|
|
@@ -33143,7 +33143,7 @@ function i3(u, { x: r, y: d }) {
|
|
|
33143
33143
|
t2(u.x, r.translate, r.scale, r.originPoint), t2(u.y, d.translate, d.scale, d.originPoint);
|
|
33144
33144
|
}
|
|
33145
33145
|
const kx = 0.999999999999, Jx = 1.0000000000001;
|
|
33146
|
-
function
|
|
33146
|
+
function Pw(u, r, d, m = !1) {
|
|
33147
33147
|
const v = d.length;
|
|
33148
33148
|
if (!v)
|
|
33149
33149
|
return;
|
|
@@ -33170,9 +33170,9 @@ function hp(u, r) {
|
|
|
33170
33170
|
Kx(u.x, r.x, r.scaleX, r.scale, r.originX), Kx(u.y, r.y, r.scaleY, r.scale, r.originY);
|
|
33171
33171
|
}
|
|
33172
33172
|
function o3(u, r) {
|
|
33173
|
-
return a3(
|
|
33173
|
+
return a3(Iw(u.getBoundingClientRect(), r));
|
|
33174
33174
|
}
|
|
33175
|
-
function
|
|
33175
|
+
function t4(u, r, d) {
|
|
33176
33176
|
const m = o3(u, d), { scroll: v } = r;
|
|
33177
33177
|
return v && (dp(m.x, v.offset.x), dp(m.y, v.offset.y)), m;
|
|
33178
33178
|
}
|
|
@@ -33188,7 +33188,7 @@ const $x = () => ({
|
|
|
33188
33188
|
x: Fx(),
|
|
33189
33189
|
y: Fx()
|
|
33190
33190
|
}), e2 = { current: null }, u3 = { current: !1 };
|
|
33191
|
-
function
|
|
33191
|
+
function e4() {
|
|
33192
33192
|
if (u3.current = !0, !!m2)
|
|
33193
33193
|
if (window.matchMedia) {
|
|
33194
33194
|
const u = window.matchMedia("(prefers-reduced-motion)"), r = () => e2.current = u.matches;
|
|
@@ -33196,8 +33196,8 @@ function ew() {
|
|
|
33196
33196
|
} else
|
|
33197
33197
|
e2.current = !1;
|
|
33198
33198
|
}
|
|
33199
|
-
const
|
|
33200
|
-
function
|
|
33199
|
+
const n4 = /* @__PURE__ */ new WeakMap();
|
|
33200
|
+
function a4(u, r, d) {
|
|
33201
33201
|
for (const m in r) {
|
|
33202
33202
|
const v = r[m], T = d[m];
|
|
33203
33203
|
if (Za(v))
|
|
@@ -33226,7 +33226,7 @@ const Wx = [
|
|
|
33226
33226
|
"LayoutAnimationStart",
|
|
33227
33227
|
"LayoutAnimationComplete"
|
|
33228
33228
|
];
|
|
33229
|
-
class
|
|
33229
|
+
class l4 {
|
|
33230
33230
|
/**
|
|
33231
33231
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
33232
33232
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
@@ -33253,7 +33253,7 @@ class lw {
|
|
|
33253
33253
|
}
|
|
33254
33254
|
}
|
|
33255
33255
|
mount(r) {
|
|
33256
|
-
this.current = r,
|
|
33256
|
+
this.current = r, n4.set(r, this), this.projection && !this.projection.instance && this.projection.mount(r), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((d, m) => this.bindToMotionValue(m, d)), u3.current || e4(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : e2.current, process.env.NODE_ENV !== "production" && b2(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
|
|
33257
33257
|
}
|
|
33258
33258
|
unmount() {
|
|
33259
33259
|
this.projection && this.projection.unmount(), Bc(this.notifyUpdate), Bc(this.render), this.valueSubscriptions.forEach((r) => r()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
@@ -33328,7 +33328,7 @@ class lw {
|
|
|
33328
33328
|
const T = "on" + v, b = r[T];
|
|
33329
33329
|
b && (this.propEventSubscriptions[v] = this.on(v, b));
|
|
33330
33330
|
}
|
|
33331
|
-
this.prevMotionValues =
|
|
33331
|
+
this.prevMotionValues = a4(this, this.scrapeMotionValuesFromProps(r, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
33332
33332
|
}
|
|
33333
33333
|
getProps() {
|
|
33334
33334
|
return this.props;
|
|
@@ -33393,7 +33393,7 @@ class lw {
|
|
|
33393
33393
|
*/
|
|
33394
33394
|
readValue(r, d) {
|
|
33395
33395
|
let m = this.latestValues[r] !== void 0 || !this.current ? this.latestValues[r] : this.getBaseTargetFromProps(this.props, r) ?? this.readValueFromInstance(this.current, r, this.options);
|
|
33396
|
-
return m != null && (typeof m == "string" && (PD(m) || eM(m)) ? m = parseFloat(m) : !
|
|
33396
|
+
return m != null && (typeof m == "string" && (PD(m) || eM(m)) ? m = parseFloat(m) : !fw(m) && Vc.test(d) && (m = BM(r, d)), this.setBaseTarget(r, Za(m) ? m.get() : m)), Za(m) ? m.get() : m;
|
|
33397
33397
|
}
|
|
33398
33398
|
/**
|
|
33399
33399
|
* Set the base target to later animate back to. This is currently
|
|
@@ -33428,7 +33428,7 @@ class lw {
|
|
|
33428
33428
|
N2.render(this.render);
|
|
33429
33429
|
}
|
|
33430
33430
|
}
|
|
33431
|
-
class s3 extends
|
|
33431
|
+
class s3 extends l4 {
|
|
33432
33432
|
constructor() {
|
|
33433
33433
|
super(...arguments), this.KeyframeResolver = PO;
|
|
33434
33434
|
}
|
|
@@ -33458,10 +33458,10 @@ function r3(u, { style: r, vars: d }, m, v) {
|
|
|
33458
33458
|
for (b in d)
|
|
33459
33459
|
T.setProperty(b, d[b]);
|
|
33460
33460
|
}
|
|
33461
|
-
function
|
|
33461
|
+
function i4(u) {
|
|
33462
33462
|
return window.getComputedStyle(u);
|
|
33463
33463
|
}
|
|
33464
|
-
class
|
|
33464
|
+
class o4 extends s3 {
|
|
33465
33465
|
constructor() {
|
|
33466
33466
|
super(...arguments), this.type = "html", this.renderInstance = r3;
|
|
33467
33467
|
}
|
|
@@ -33469,7 +33469,7 @@ class ow extends s3 {
|
|
|
33469
33469
|
if (xp.has(d))
|
|
33470
33470
|
return this.projection?.isProjecting ? kT(d) : gO(r, d);
|
|
33471
33471
|
{
|
|
33472
|
-
const m =
|
|
33472
|
+
const m = i4(r), v = (A2(d) ? m.getPropertyValue(d) : m[d]) || 0;
|
|
33473
33473
|
return typeof v == "string" ? v.trim() : v;
|
|
33474
33474
|
}
|
|
33475
33475
|
}
|
|
@@ -33508,12 +33508,12 @@ const c3 = /* @__PURE__ */ new Set([
|
|
|
33508
33508
|
"textLength",
|
|
33509
33509
|
"lengthAdjust"
|
|
33510
33510
|
]);
|
|
33511
|
-
function
|
|
33511
|
+
function u4(u, r, d, m) {
|
|
33512
33512
|
r3(u, r, void 0, m);
|
|
33513
33513
|
for (const v in r.attrs)
|
|
33514
33514
|
u.setAttribute(c3.has(v) ? v : Q2(v), r.attrs[v]);
|
|
33515
33515
|
}
|
|
33516
|
-
class
|
|
33516
|
+
class s4 extends s3 {
|
|
33517
33517
|
constructor() {
|
|
33518
33518
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Nn;
|
|
33519
33519
|
}
|
|
@@ -33534,13 +33534,13 @@ class sw extends s3 {
|
|
|
33534
33534
|
$M(r, d, this.isSVGTag, m.transformTemplate, m.style);
|
|
33535
33535
|
}
|
|
33536
33536
|
renderInstance(r, d, m, v) {
|
|
33537
|
-
|
|
33537
|
+
u4(r, d, m, v);
|
|
33538
33538
|
}
|
|
33539
33539
|
mount(r) {
|
|
33540
33540
|
this.isSVGTag = WM(r.tagName), super.mount(r);
|
|
33541
33541
|
}
|
|
33542
33542
|
}
|
|
33543
|
-
const
|
|
33543
|
+
const r4 = (u, r) => Y2(u) ? new s4(r) : new o4(r, {
|
|
33544
33544
|
allowProjection: u !== ND
|
|
33545
33545
|
});
|
|
33546
33546
|
function pp(u, r, d) {
|
|
@@ -33548,27 +33548,27 @@ function pp(u, r, d) {
|
|
|
33548
33548
|
return G2(m, r, d !== void 0 ? d : m.custom, u);
|
|
33549
33549
|
}
|
|
33550
33550
|
const n2 = (u) => Array.isArray(u);
|
|
33551
|
-
function
|
|
33551
|
+
function c4(u, r, d) {
|
|
33552
33552
|
u.hasValue(r) ? u.getValue(r).set(d) : u.addValue(r, yp(d));
|
|
33553
33553
|
}
|
|
33554
|
-
function
|
|
33554
|
+
function f4(u) {
|
|
33555
33555
|
return n2(u) ? u[u.length - 1] || 0 : u;
|
|
33556
33556
|
}
|
|
33557
|
-
function
|
|
33557
|
+
function d4(u, r) {
|
|
33558
33558
|
const d = pp(u, r);
|
|
33559
33559
|
let { transitionEnd: m = {}, transition: v = {}, ...T } = d || {};
|
|
33560
33560
|
T = { ...T, ...m };
|
|
33561
33561
|
for (const b in T) {
|
|
33562
|
-
const A =
|
|
33563
|
-
|
|
33562
|
+
const A = f4(T[b]);
|
|
33563
|
+
c4(u, b, A);
|
|
33564
33564
|
}
|
|
33565
33565
|
}
|
|
33566
|
-
function
|
|
33566
|
+
function h4(u) {
|
|
33567
33567
|
return !!(Za(u) && u.add);
|
|
33568
33568
|
}
|
|
33569
33569
|
function a2(u, r) {
|
|
33570
33570
|
const d = u.getValue("willChange");
|
|
33571
|
-
if (
|
|
33571
|
+
if (h4(d))
|
|
33572
33572
|
return d.add(r);
|
|
33573
33573
|
if (!d && Is.WillChange) {
|
|
33574
33574
|
const m = new Is.WillChange("auto");
|
|
@@ -33578,30 +33578,30 @@ function a2(u, r) {
|
|
|
33578
33578
|
function f3(u) {
|
|
33579
33579
|
return u.props[t3];
|
|
33580
33580
|
}
|
|
33581
|
-
const
|
|
33582
|
-
function
|
|
33583
|
-
const v = u.filter(
|
|
33581
|
+
const m4 = (u) => u !== null;
|
|
33582
|
+
function p4(u, { repeat: r, repeatType: d = "loop" }, m) {
|
|
33583
|
+
const v = u.filter(m4), T = r && d !== "loop" && r % 2 === 1 ? 0 : v.length - 1;
|
|
33584
33584
|
return v[T];
|
|
33585
33585
|
}
|
|
33586
|
-
const
|
|
33586
|
+
const y4 = {
|
|
33587
33587
|
type: "spring",
|
|
33588
33588
|
stiffness: 500,
|
|
33589
33589
|
damping: 25,
|
|
33590
33590
|
restSpeed: 10
|
|
33591
|
-
},
|
|
33591
|
+
}, g4 = (u) => ({
|
|
33592
33592
|
type: "spring",
|
|
33593
33593
|
stiffness: 550,
|
|
33594
33594
|
damping: u === 0 ? 2 * Math.sqrt(550) : 30,
|
|
33595
33595
|
restSpeed: 10
|
|
33596
|
-
}),
|
|
33596
|
+
}), v4 = {
|
|
33597
33597
|
type: "keyframes",
|
|
33598
33598
|
duration: 0.8
|
|
33599
|
-
},
|
|
33599
|
+
}, b4 = {
|
|
33600
33600
|
type: "keyframes",
|
|
33601
33601
|
ease: [0.25, 0.1, 0.35, 1],
|
|
33602
33602
|
duration: 0.3
|
|
33603
|
-
},
|
|
33604
|
-
function
|
|
33603
|
+
}, S4 = (u, { keyframes: r }) => r.length > 2 ? v4 : xp.has(u) ? u.startsWith("scale") ? g4(r[1]) : y4 : b4;
|
|
33604
|
+
function T4({ when: u, delay: r, delayChildren: d, staggerChildren: m, staggerDirection: v, repeat: T, repeatType: b, repeatDelay: A, from: x, elapsed: z, ...C }) {
|
|
33605
33605
|
return !!Object.keys(C).length;
|
|
33606
33606
|
}
|
|
33607
33607
|
const Z2 = (u, r, d, m = {}, v, T) => (b) => {
|
|
@@ -33624,10 +33624,10 @@ const Z2 = (u, r, d, m = {}, v, T) => (b) => {
|
|
|
33624
33624
|
motionValue: r,
|
|
33625
33625
|
element: T ? void 0 : v
|
|
33626
33626
|
};
|
|
33627
|
-
|
|
33627
|
+
T4(A) || Object.assign(C, S4(u, C)), C.duration && (C.duration = /* @__PURE__ */ Qo(C.duration)), C.repeatDelay && (C.repeatDelay = /* @__PURE__ */ Qo(C.repeatDelay)), C.from !== void 0 && (C.keyframes[0] = C.from);
|
|
33628
33628
|
let R = !1;
|
|
33629
33629
|
if ((C.type === !1 || C.duration === 0 && !C.repeatDelay) && (WT(C), C.delay === 0 && (R = !0)), (Is.instantAnimations || Is.skipAnimations) && (R = !0, WT(C), C.delay = 0), C.allowFlatten = !A.type && !A.ease, R && !T && r.get() !== void 0) {
|
|
33630
|
-
const w =
|
|
33630
|
+
const w = p4(C.keyframes, A);
|
|
33631
33631
|
if (w !== void 0) {
|
|
33632
33632
|
dn.update(() => {
|
|
33633
33633
|
C.onUpdate(w), C.onComplete();
|
|
@@ -33637,7 +33637,7 @@ const Z2 = (u, r, d, m = {}, v, T) => (b) => {
|
|
|
33637
33637
|
}
|
|
33638
33638
|
return A.isSync ? new O2(C) : new qO(C);
|
|
33639
33639
|
};
|
|
33640
|
-
function
|
|
33640
|
+
function A4({ protectedKeys: u, needsAnimating: r }, d) {
|
|
33641
33641
|
const m = u.hasOwnProperty(d) && r[d] !== !0;
|
|
33642
33642
|
return r[d] = !1, m;
|
|
33643
33643
|
}
|
|
@@ -33647,7 +33647,7 @@ function d3(u, r, { delay: d = 0, transitionOverride: m, type: v } = {}) {
|
|
|
33647
33647
|
const x = [], z = v && u.animationState && u.animationState.getState()[v];
|
|
33648
33648
|
for (const C in A) {
|
|
33649
33649
|
const R = u.getValue(C, u.latestValues[C] ?? null), w = A[C];
|
|
33650
|
-
if (w === void 0 || z &&
|
|
33650
|
+
if (w === void 0 || z && A4(z, C))
|
|
33651
33651
|
continue;
|
|
33652
33652
|
const Q = {
|
|
33653
33653
|
delay: d,
|
|
@@ -33669,7 +33669,7 @@ function d3(u, r, { delay: d = 0, transitionOverride: m, type: v } = {}) {
|
|
|
33669
33669
|
}
|
|
33670
33670
|
return b && Promise.all(x).then(() => {
|
|
33671
33671
|
dn.update(() => {
|
|
33672
|
-
b &&
|
|
33672
|
+
b && d4(u, b);
|
|
33673
33673
|
});
|
|
33674
33674
|
}), x;
|
|
33675
33675
|
}
|
|
@@ -33683,7 +33683,7 @@ function l2(u, r, d = {}) {
|
|
|
33683
33683
|
d.transitionOverride && (v = d.transitionOverride);
|
|
33684
33684
|
const T = m ? () => Promise.all(d3(u, m, d)) : () => Promise.resolve(), b = u.variantChildren && u.variantChildren.size ? (x = 0) => {
|
|
33685
33685
|
const { delayChildren: z = 0, staggerChildren: C, staggerDirection: R } = v;
|
|
33686
|
-
return
|
|
33686
|
+
return E4(u, r, x, z, C, R, d);
|
|
33687
33687
|
} : () => Promise.resolve(), { when: A } = v;
|
|
33688
33688
|
if (A) {
|
|
33689
33689
|
const [x, z] = A === "beforeChildren" ? [T, b] : [b, T];
|
|
@@ -33691,7 +33691,7 @@ function l2(u, r, d = {}) {
|
|
|
33691
33691
|
} else
|
|
33692
33692
|
return Promise.all([T(), b(d.delay)]);
|
|
33693
33693
|
}
|
|
33694
|
-
function
|
|
33694
|
+
function E4(u, r, d = 0, m = 0, v = 0, T = 1, b) {
|
|
33695
33695
|
const A = [];
|
|
33696
33696
|
for (const x of u.variantChildren)
|
|
33697
33697
|
x.notify("AnimationStart", r), A.push(l2(x, r, {
|
|
@@ -33700,7 +33700,7 @@ function Ew(u, r, d = 0, m = 0, v = 0, T = 1, b) {
|
|
|
33700
33700
|
}).then(() => x.notify("AnimationComplete", r)));
|
|
33701
33701
|
return Promise.all(A);
|
|
33702
33702
|
}
|
|
33703
|
-
function
|
|
33703
|
+
function x4(u, r, d = {}) {
|
|
33704
33704
|
u.notify("AnimationStart", r);
|
|
33705
33705
|
let m;
|
|
33706
33706
|
if (Array.isArray(r)) {
|
|
@@ -33727,7 +33727,7 @@ function m3(u, r) {
|
|
|
33727
33727
|
return !1;
|
|
33728
33728
|
return !0;
|
|
33729
33729
|
}
|
|
33730
|
-
const
|
|
33730
|
+
const D4 = H2.length;
|
|
33731
33731
|
function p3(u) {
|
|
33732
33732
|
if (!u)
|
|
33733
33733
|
return;
|
|
@@ -33736,18 +33736,18 @@ function p3(u) {
|
|
|
33736
33736
|
return u.props.initial !== void 0 && (d.initial = u.props.initial), d;
|
|
33737
33737
|
}
|
|
33738
33738
|
const r = {};
|
|
33739
|
-
for (let d = 0; d <
|
|
33739
|
+
for (let d = 0; d < D4; d++) {
|
|
33740
33740
|
const m = H2[d], v = u.props[m];
|
|
33741
33741
|
(L0(v) || v === !1) && (r[m] = v);
|
|
33742
33742
|
}
|
|
33743
33743
|
return r;
|
|
33744
33744
|
}
|
|
33745
|
-
const
|
|
33746
|
-
function
|
|
33747
|
-
return (r) => Promise.all(r.map(({ animation: d, options: m }) =>
|
|
33745
|
+
const M4 = [...V2].reverse(), C4 = V2.length;
|
|
33746
|
+
function z4(u) {
|
|
33747
|
+
return (r) => Promise.all(r.map(({ animation: d, options: m }) => x4(u, d, m)));
|
|
33748
33748
|
}
|
|
33749
|
-
function
|
|
33750
|
-
let r =
|
|
33749
|
+
function R4(u) {
|
|
33750
|
+
let r = z4(u), d = Ix(), m = !0;
|
|
33751
33751
|
const v = (x) => (z, C) => {
|
|
33752
33752
|
const R = pp(u, C, x === "exit" ? u.presenceContext?.custom : void 0);
|
|
33753
33753
|
if (R) {
|
|
@@ -33762,8 +33762,8 @@ function Rw(u) {
|
|
|
33762
33762
|
function b(x) {
|
|
33763
33763
|
const { props: z } = u, C = p3(u.parent) || {}, R = [], w = /* @__PURE__ */ new Set();
|
|
33764
33764
|
let Q = {}, X = 1 / 0;
|
|
33765
|
-
for (let ot = 0; ot <
|
|
33766
|
-
const nt =
|
|
33765
|
+
for (let ot = 0; ot < C4; ot++) {
|
|
33766
|
+
const nt = M4[ot], ft = d[nt], dt = z[nt] !== void 0 ? z[nt] : C[nt], St = L0(dt), bt = nt === x ? ft.isActive : null;
|
|
33767
33767
|
bt === !1 && (X = ot);
|
|
33768
33768
|
let vt = dt === C[nt] && dt !== z[nt] && St;
|
|
33769
33769
|
if (vt && m && u.manuallyAnimateOnMount && (vt = !1), ft.protectedKeys = { ...Q }, // If it isn't active and hasn't *just* been set as inactive
|
|
@@ -33771,7 +33771,7 @@ function Rw(u) {
|
|
|
33771
33771
|
!dt && !ft.prevProp || // Or if the prop doesn't define an animation
|
|
33772
33772
|
L1(dt) || typeof dt == "boolean")
|
|
33773
33773
|
continue;
|
|
33774
|
-
const xt =
|
|
33774
|
+
const xt = O4(ft.prevProp, dt);
|
|
33775
33775
|
let I = xt || // If we're making this variant active, we want to always make it active
|
|
33776
33776
|
nt === x && ft.isActive && !vt && St || // If we removed a higher-priority variant (i is in reverse order)
|
|
33777
33777
|
ot > X && St, Ot = !1;
|
|
@@ -33843,7 +33843,7 @@ function Rw(u) {
|
|
|
33843
33843
|
}
|
|
33844
33844
|
};
|
|
33845
33845
|
}
|
|
33846
|
-
function
|
|
33846
|
+
function O4(u, r) {
|
|
33847
33847
|
return typeof r == "string" ? r !== u : Array.isArray(r) ? !m3(r, u) : !1;
|
|
33848
33848
|
}
|
|
33849
33849
|
function zd(u = !1) {
|
|
@@ -33872,14 +33872,14 @@ class Lc {
|
|
|
33872
33872
|
update() {
|
|
33873
33873
|
}
|
|
33874
33874
|
}
|
|
33875
|
-
class
|
|
33875
|
+
class w4 extends Lc {
|
|
33876
33876
|
/**
|
|
33877
33877
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
33878
33878
|
* to the underlying animation library. We only want to load that if we load this,
|
|
33879
33879
|
* so people can optionally code split it out using the `m` component.
|
|
33880
33880
|
*/
|
|
33881
33881
|
constructor(r) {
|
|
33882
|
-
super(r), r.animationState || (r.animationState =
|
|
33882
|
+
super(r), r.animationState || (r.animationState = R4(r));
|
|
33883
33883
|
}
|
|
33884
33884
|
updateAnimationControlsSubscription() {
|
|
33885
33885
|
const { animate: r } = this.node.getProps();
|
|
@@ -33899,10 +33899,10 @@ class ww extends Lc {
|
|
|
33899
33899
|
this.node.animationState.reset(), this.unmountControls?.();
|
|
33900
33900
|
}
|
|
33901
33901
|
}
|
|
33902
|
-
let
|
|
33903
|
-
class
|
|
33902
|
+
let U4 = 0;
|
|
33903
|
+
class _4 extends Lc {
|
|
33904
33904
|
constructor() {
|
|
33905
|
-
super(...arguments), this.id =
|
|
33905
|
+
super(...arguments), this.id = U4++;
|
|
33906
33906
|
}
|
|
33907
33907
|
update() {
|
|
33908
33908
|
if (!this.node.presenceContext)
|
|
@@ -33922,12 +33922,12 @@ class _w extends Lc {
|
|
|
33922
33922
|
unmount() {
|
|
33923
33923
|
}
|
|
33924
33924
|
}
|
|
33925
|
-
const
|
|
33925
|
+
const N4 = {
|
|
33926
33926
|
animation: {
|
|
33927
|
-
Feature:
|
|
33927
|
+
Feature: w4
|
|
33928
33928
|
},
|
|
33929
33929
|
exit: {
|
|
33930
|
-
Feature:
|
|
33930
|
+
Feature: _4
|
|
33931
33931
|
}
|
|
33932
33932
|
};
|
|
33933
33933
|
function Y0(u, r, d, m = { passive: !0 }) {
|
|
@@ -33941,19 +33941,19 @@ function J0(u) {
|
|
|
33941
33941
|
}
|
|
33942
33942
|
};
|
|
33943
33943
|
}
|
|
33944
|
-
const
|
|
33944
|
+
const j4 = (u) => (r) => j2(r) && u(r, J0(r));
|
|
33945
33945
|
function _0(u, r, d, m) {
|
|
33946
|
-
return Y0(u, r,
|
|
33946
|
+
return Y0(u, r, j4(d), m);
|
|
33947
33947
|
}
|
|
33948
|
-
const y3 = 1e-4,
|
|
33948
|
+
const y3 = 1e-4, B4 = 1 - y3, V4 = 1 + y3, g3 = 0.01, H4 = 0 - g3, L4 = 0 + g3;
|
|
33949
33949
|
function yl(u) {
|
|
33950
33950
|
return u.max - u.min;
|
|
33951
33951
|
}
|
|
33952
|
-
function
|
|
33952
|
+
function q4(u, r, d) {
|
|
33953
33953
|
return Math.abs(u - r) <= d;
|
|
33954
33954
|
}
|
|
33955
33955
|
function Px(u, r, d, m = 0.5) {
|
|
33956
|
-
u.origin = m, u.originPoint = Tn(r.min, r.max, u.origin), u.scale = yl(d) / yl(r), u.translate = Tn(d.min, d.max, u.origin) - u.originPoint, (u.scale >=
|
|
33956
|
+
u.origin = m, u.originPoint = Tn(r.min, r.max, u.origin), u.scale = yl(d) / yl(r), u.translate = Tn(d.min, d.max, u.origin) - u.originPoint, (u.scale >= B4 && u.scale <= V4 || isNaN(u.scale)) && (u.scale = 1), (u.translate >= H4 && u.translate <= L4 || isNaN(u.translate)) && (u.translate = 0);
|
|
33957
33957
|
}
|
|
33958
33958
|
function N0(u, r, d, m) {
|
|
33959
33959
|
Px(u.x, r.x, d.x, m ? m.originX : void 0), Px(u.y, r.y, d.y, m ? m.originY : void 0);
|
|
@@ -33961,7 +33961,7 @@ function N0(u, r, d, m) {
|
|
|
33961
33961
|
function tD(u, r, d) {
|
|
33962
33962
|
u.min = d.min + r.min, u.max = u.min + yl(r);
|
|
33963
33963
|
}
|
|
33964
|
-
function
|
|
33964
|
+
function Y4(u, r, d) {
|
|
33965
33965
|
tD(u.x, r.x, d.x), tD(u.y, r.y, d.y);
|
|
33966
33966
|
}
|
|
33967
33967
|
function eD(u, r, d) {
|
|
@@ -33974,7 +33974,7 @@ function oo(u) {
|
|
|
33974
33974
|
return [u("x"), u("y")];
|
|
33975
33975
|
}
|
|
33976
33976
|
const v3 = ({ current: u }) => u ? u.ownerDocument.defaultView : null, nD = (u, r) => Math.abs(u - r);
|
|
33977
|
-
function
|
|
33977
|
+
function G4(u, r) {
|
|
33978
33978
|
const d = nD(u.x, r.x), m = nD(u.y, r.y);
|
|
33979
33979
|
return Math.sqrt(d ** 2 + m ** 2);
|
|
33980
33980
|
}
|
|
@@ -33983,7 +33983,7 @@ class b3 {
|
|
|
33983
33983
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
33984
33984
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
33985
33985
|
return;
|
|
33986
|
-
const w = RT(this.lastMoveEventInfo, this.history), Q = this.startEvent !== null, X =
|
|
33986
|
+
const w = RT(this.lastMoveEventInfo, this.history), Q = this.startEvent !== null, X = G4(w.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
33987
33987
|
if (!Q && !X)
|
|
33988
33988
|
return;
|
|
33989
33989
|
const { point: lt } = w, { timestamp: ot } = Ua;
|
|
@@ -34024,17 +34024,17 @@ function RT({ point: u }, r) {
|
|
|
34024
34024
|
return {
|
|
34025
34025
|
point: u,
|
|
34026
34026
|
delta: aD(u, S3(r)),
|
|
34027
|
-
offset: aD(u,
|
|
34028
|
-
velocity:
|
|
34027
|
+
offset: aD(u, X4(r)),
|
|
34028
|
+
velocity: Q4(r, 0.1)
|
|
34029
34029
|
};
|
|
34030
34030
|
}
|
|
34031
|
-
function
|
|
34031
|
+
function X4(u) {
|
|
34032
34032
|
return u[0];
|
|
34033
34033
|
}
|
|
34034
34034
|
function S3(u) {
|
|
34035
34035
|
return u[u.length - 1];
|
|
34036
34036
|
}
|
|
34037
|
-
function
|
|
34037
|
+
function Q4(u, r) {
|
|
34038
34038
|
if (u.length < 2)
|
|
34039
34039
|
return { x: 0, y: 0 };
|
|
34040
34040
|
let d = u.length - 1, m = null;
|
|
@@ -34052,7 +34052,7 @@ function Qw(u, r) {
|
|
|
34052
34052
|
};
|
|
34053
34053
|
return b.x === 1 / 0 && (b.x = 0), b.y === 1 / 0 && (b.y = 0), b;
|
|
34054
34054
|
}
|
|
34055
|
-
function
|
|
34055
|
+
function Z4(u, { min: r, max: d }, m) {
|
|
34056
34056
|
return r !== void 0 && u < r ? u = m ? Tn(r, u, m.min) : Math.max(u, r) : d !== void 0 && u > d && (u = m ? Tn(d, u, m.max) : Math.min(u, d)), u;
|
|
34057
34057
|
}
|
|
34058
34058
|
function lD(u, r, d) {
|
|
@@ -34061,7 +34061,7 @@ function lD(u, r, d) {
|
|
|
34061
34061
|
max: d !== void 0 ? u.max + d - (u.max - u.min) : void 0
|
|
34062
34062
|
};
|
|
34063
34063
|
}
|
|
34064
|
-
function
|
|
34064
|
+
function k4(u, { top: r, left: d, bottom: m, right: v }) {
|
|
34065
34065
|
return {
|
|
34066
34066
|
x: lD(u.x, d, v),
|
|
34067
34067
|
y: lD(u.y, r, m)
|
|
@@ -34071,23 +34071,23 @@ function iD(u, r) {
|
|
|
34071
34071
|
let d = r.min - u.min, m = r.max - u.max;
|
|
34072
34072
|
return r.max - r.min < u.max - u.min && ([d, m] = [m, d]), { min: d, max: m };
|
|
34073
34073
|
}
|
|
34074
|
-
function
|
|
34074
|
+
function J4(u, r) {
|
|
34075
34075
|
return {
|
|
34076
34076
|
x: iD(u.x, r.x),
|
|
34077
34077
|
y: iD(u.y, r.y)
|
|
34078
34078
|
};
|
|
34079
34079
|
}
|
|
34080
|
-
function
|
|
34080
|
+
function K4(u, r) {
|
|
34081
34081
|
let d = 0.5;
|
|
34082
34082
|
const m = yl(u), v = yl(r);
|
|
34083
34083
|
return v > m ? d = /* @__PURE__ */ B0(r.min, r.max - m, u.min) : m > v && (d = /* @__PURE__ */ B0(u.min, u.max - v, r.min)), Fs(0, 1, d);
|
|
34084
34084
|
}
|
|
34085
|
-
function $
|
|
34085
|
+
function $4(u, r) {
|
|
34086
34086
|
const d = {};
|
|
34087
34087
|
return r.min !== void 0 && (d.min = r.min - u.min), r.max !== void 0 && (d.max = r.max - u.min), d;
|
|
34088
34088
|
}
|
|
34089
34089
|
const i2 = 0.35;
|
|
34090
|
-
function
|
|
34090
|
+
function F4(u = i2) {
|
|
34091
34091
|
return u === !1 ? u = 0 : u === !0 && (u = i2), {
|
|
34092
34092
|
x: oD(u, "left", "right"),
|
|
34093
34093
|
y: oD(u, "top", "bottom")
|
|
@@ -34102,8 +34102,8 @@ function oD(u, r, d) {
|
|
|
34102
34102
|
function uD(u, r) {
|
|
34103
34103
|
return typeof u == "number" ? u : u[r] || 0;
|
|
34104
34104
|
}
|
|
34105
|
-
const
|
|
34106
|
-
class
|
|
34105
|
+
const W4 = /* @__PURE__ */ new WeakMap();
|
|
34106
|
+
class I4 {
|
|
34107
34107
|
constructor(r) {
|
|
34108
34108
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Nn(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = r;
|
|
34109
34109
|
}
|
|
@@ -34116,7 +34116,7 @@ class Iw {
|
|
|
34116
34116
|
w ? this.pauseAnimation() : this.stopAnimation(), d && this.snapToCursor(J0(R).point);
|
|
34117
34117
|
}, b = (R, w) => {
|
|
34118
34118
|
const { drag: Q, dragPropagation: X, onDragStart: lt } = this.getProps();
|
|
34119
|
-
if (Q && !X && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
34119
|
+
if (Q && !X && (this.openDragLock && this.openDragLock(), this.openDragLock = aw(Q), !this.openDragLock))
|
|
34120
34120
|
return;
|
|
34121
34121
|
this.latestPointerEvent = R, this.latestPanInfo = w, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), oo((nt) => {
|
|
34122
34122
|
let ft = this.getAxisMotionValue(nt).get() || 0;
|
|
@@ -34138,7 +34138,7 @@ class Iw {
|
|
|
34138
34138
|
return;
|
|
34139
34139
|
const { offset: nt } = w;
|
|
34140
34140
|
if (X && this.currentDirection === null) {
|
|
34141
|
-
this.currentDirection =
|
|
34141
|
+
this.currentDirection = P4(nt), this.currentDirection !== null && lt && lt(this.currentDirection);
|
|
34142
34142
|
return;
|
|
34143
34143
|
}
|
|
34144
34144
|
this.updateAxis("x", w.point, nt), this.updateAxis("y", w.point, nt), this.visualElement.render(), ot && ot(R, w);
|
|
@@ -34186,12 +34186,12 @@ class Iw {
|
|
|
34186
34186
|
return;
|
|
34187
34187
|
const T = this.getAxisMotionValue(r);
|
|
34188
34188
|
let b = this.originPoint[r] + m[r];
|
|
34189
|
-
this.constraints && this.constraints[r] && (b =
|
|
34189
|
+
this.constraints && this.constraints[r] && (b = Z4(b, this.constraints[r], this.elastic[r])), T.set(b);
|
|
34190
34190
|
}
|
|
34191
34191
|
resolveConstraints() {
|
|
34192
34192
|
const { dragConstraints: r, dragElastic: d } = this.getProps(), m = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, v = this.constraints;
|
|
34193
|
-
r && fp(r) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : r && m ? this.constraints =
|
|
34194
|
-
this.constraints !== !1 && this.getAxisMotionValue(T) && (this.constraints[T] = $
|
|
34193
|
+
r && fp(r) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : r && m ? this.constraints = k4(m.layoutBox, r) : this.constraints = !1, this.elastic = F4(d), v !== this.constraints && m && this.constraints && !this.hasMutatedConstraints && oo((T) => {
|
|
34194
|
+
this.constraints !== !1 && this.getAxisMotionValue(T) && (this.constraints[T] = $4(m.layoutBox[T], this.constraints[T]));
|
|
34195
34195
|
});
|
|
34196
34196
|
}
|
|
34197
34197
|
resolveRefConstraints() {
|
|
@@ -34203,10 +34203,10 @@ class Iw {
|
|
|
34203
34203
|
const { projection: v } = this.visualElement;
|
|
34204
34204
|
if (!v || !v.layout)
|
|
34205
34205
|
return !1;
|
|
34206
|
-
const T =
|
|
34207
|
-
let b =
|
|
34206
|
+
const T = t4(m, v.root, this.visualElement.getTransformPagePoint());
|
|
34207
|
+
let b = J4(v.layout.layoutBox, T);
|
|
34208
34208
|
if (d) {
|
|
34209
|
-
const A = d(
|
|
34209
|
+
const A = d(Ww(b));
|
|
34210
34210
|
this.hasMutatedConstraints = !!A, A && (b = a3(A));
|
|
34211
34211
|
}
|
|
34212
34212
|
return b;
|
|
@@ -34284,7 +34284,7 @@ class Iw {
|
|
|
34284
34284
|
const A = this.getAxisMotionValue(b);
|
|
34285
34285
|
if (A && this.constraints !== !1) {
|
|
34286
34286
|
const x = A.get();
|
|
34287
|
-
v[b] =
|
|
34287
|
+
v[b] = K4({ min: x, max: x }, this.constraints[b]);
|
|
34288
34288
|
}
|
|
34289
34289
|
});
|
|
34290
34290
|
const { transformTemplate: T } = this.visualElement.getProps();
|
|
@@ -34298,7 +34298,7 @@ class Iw {
|
|
|
34298
34298
|
addListeners() {
|
|
34299
34299
|
if (!this.visualElement.current)
|
|
34300
34300
|
return;
|
|
34301
|
-
|
|
34301
|
+
W4.set(this.visualElement, this);
|
|
34302
34302
|
const r = this.visualElement.current, d = _0(r, "pointerdown", (x) => {
|
|
34303
34303
|
const { drag: z, dragListener: C = !0 } = this.getProps();
|
|
34304
34304
|
z && C && this.start(x);
|
|
@@ -34333,13 +34333,13 @@ class Iw {
|
|
|
34333
34333
|
function C1(u, r, d) {
|
|
34334
34334
|
return (r === !0 || r === u) && (d === null || d === u);
|
|
34335
34335
|
}
|
|
34336
|
-
function
|
|
34336
|
+
function P4(u, r = 10) {
|
|
34337
34337
|
let d = null;
|
|
34338
34338
|
return Math.abs(u.y) > r ? d = "y" : Math.abs(u.x) > r && (d = "x"), d;
|
|
34339
34339
|
}
|
|
34340
34340
|
class t5 extends Lc {
|
|
34341
34341
|
constructor(r) {
|
|
34342
|
-
super(r), this.removeGroupControls = co, this.removeListeners = co, this.controls = new
|
|
34342
|
+
super(r), this.removeGroupControls = co, this.removeListeners = co, this.controls = new I4(r);
|
|
34343
34343
|
}
|
|
34344
34344
|
mount() {
|
|
34345
34345
|
const { dragControls: r } = this.node.getProps();
|
|
@@ -34430,7 +34430,7 @@ class a5 extends dz {
|
|
|
34430
34430
|
*/
|
|
34431
34431
|
componentDidMount() {
|
|
34432
34432
|
const { visualElement: r, layoutGroup: d, switchLayoutGroup: m, layoutId: v } = this.props, { projection: T } = r;
|
|
34433
|
-
|
|
34433
|
+
Dw(l5), T && (d.group && d.group.add(T), m && m.register && v && m.register(T), OT && T.root.didUpdate(), T.addEventListener("animationComplete", () => {
|
|
34434
34434
|
this.safeToRemove();
|
|
34435
34435
|
}), T.setOptions({
|
|
34436
34436
|
...T.options,
|
|
@@ -34688,7 +34688,7 @@ function C3({ attachResizeListener: u, defaultParent: r, measureScroll: d, check
|
|
|
34688
34688
|
mount(b) {
|
|
34689
34689
|
if (this.instance)
|
|
34690
34690
|
return;
|
|
34691
|
-
this.isSVG = GM(b) && !
|
|
34691
|
+
this.isSVG = GM(b) && !rw(b), this.instance = b;
|
|
34692
34692
|
const { layoutId: A, layout: x, visualElement: z } = this.options;
|
|
34693
34693
|
if (z && !z.current && z.mount(b), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (x || A) && (this.isLayoutDirty = !0), u) {
|
|
34694
34694
|
let C, R = 0;
|
|
@@ -34911,7 +34911,7 @@ function C3({ attachResizeListener: u, defaultParent: r, measureScroll: d, check
|
|
|
34911
34911
|
const w = this.getClosestProjectingParent();
|
|
34912
34912
|
w && w.layout && this.animationProgress !== 1 ? (this.relativeParent = w, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Nn(), this.relativeTargetOrigin = Nn(), j0(this.relativeTargetOrigin, this.layout.layoutBox, w.layout.layoutBox), io(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
34913
34913
|
}
|
|
34914
|
-
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Nn(), this.targetWithTransforms = Nn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
34914
|
+
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Nn(), this.targetWithTransforms = Nn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Y4(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : io(this.target, this.layout.layoutBox), i3(this.target, this.targetDelta)) : io(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
|
|
34915
34915
|
this.attemptToResolveRelativeTarget = !1;
|
|
34916
34916
|
const w = this.getClosestProjectingParent();
|
|
34917
34917
|
w && !!w.resumingFrom == !!this.resumingFrom && !w.options.layoutScroll && w.target && this.animationProgress !== 1 ? (this.relativeParent = w, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Nn(), this.relativeTargetOrigin = Nn(), j0(this.relativeTargetOrigin, this.target, w.target), io(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -34935,7 +34935,7 @@ function C3({ attachResizeListener: u, defaultParent: r, measureScroll: d, check
|
|
|
34935
34935
|
return;
|
|
34936
34936
|
io(this.layoutCorrected, this.layout.layoutBox);
|
|
34937
34937
|
const R = this.treeScale.x, w = this.treeScale.y;
|
|
34938
|
-
|
|
34938
|
+
Pw(this.layoutCorrected, this.treeScale, this.path, A), b.layout && !b.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (b.target = b.layout.layoutBox, b.targetWithTransforms = Nn());
|
|
34939
34939
|
const { target: Q } = b;
|
|
34940
34940
|
if (!Q) {
|
|
34941
34941
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -35208,7 +35208,7 @@ function N5(u) {
|
|
|
35208
35208
|
OD(u.x), OD(u.y);
|
|
35209
35209
|
}
|
|
35210
35210
|
function z3(u, r, d) {
|
|
35211
|
-
return u === "position" || u === "preserve-aspect" && !
|
|
35211
|
+
return u === "position" || u === "preserve-aspect" && !q4(TD(r), TD(d), 0.2);
|
|
35212
35212
|
}
|
|
35213
35213
|
function j5(u) {
|
|
35214
35214
|
return u !== u.root && u.scroll?.wasRoot;
|
|
@@ -35257,7 +35257,7 @@ function wD(u, r, d) {
|
|
|
35257
35257
|
class H5 extends Lc {
|
|
35258
35258
|
mount() {
|
|
35259
35259
|
const { current: r } = this.node;
|
|
35260
|
-
r && (this.unmount =
|
|
35260
|
+
r && (this.unmount = lw(r, (d, m) => (wD(this.node, m, "Start"), (v) => wD(this.node, v, "End"))));
|
|
35261
35261
|
}
|
|
35262
35262
|
unmount() {
|
|
35263
35263
|
}
|
|
@@ -35295,7 +35295,7 @@ function UD(u, r, d) {
|
|
|
35295
35295
|
class q5 extends Lc {
|
|
35296
35296
|
mount() {
|
|
35297
35297
|
const { current: r } = this.node;
|
|
35298
|
-
r && (this.unmount =
|
|
35298
|
+
r && (this.unmount = sw(r, (d, m) => (UD(this.node, m, "Start"), (v, { success: T }) => UD(this.node, v, T ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
35299
35299
|
}
|
|
35300
35300
|
unmount() {
|
|
35301
35301
|
}
|
|
@@ -35376,11 +35376,11 @@ const K5 = {
|
|
|
35376
35376
|
MeasureLayout: T3
|
|
35377
35377
|
}
|
|
35378
35378
|
}, F5 = {
|
|
35379
|
-
...
|
|
35379
|
+
...N4,
|
|
35380
35380
|
...K5,
|
|
35381
35381
|
...V5,
|
|
35382
35382
|
...$5
|
|
35383
|
-
}, $s = /* @__PURE__ */
|
|
35383
|
+
}, $s = /* @__PURE__ */ Fw(F5, r4);
|
|
35384
35384
|
function W5({
|
|
35385
35385
|
title: u,
|
|
35386
35386
|
titleId: r,
|
|
@@ -35711,7 +35711,7 @@ const f6 = ({ data: u }) => {
|
|
|
35711
35711
|
transition: { duration: 0.4, ease: "easeOut" }
|
|
35712
35712
|
}
|
|
35713
35713
|
),
|
|
35714
|
-
/* @__PURE__ */ $.jsx("div", { className: "grid gap-3", children: /* @__PURE__ */ $.jsx(
|
|
35714
|
+
/* @__PURE__ */ $.jsx("div", { className: "grid gap-3", children: /* @__PURE__ */ $.jsx(vw, { children: r.map((v, T) => /* @__PURE__ */ $.jsx(
|
|
35715
35715
|
$s.div,
|
|
35716
35716
|
{
|
|
35717
35717
|
initial: { opacity: 0, y: 20, scale: 0.95 },
|