@levo-so/studio 0.1.83 → 0.1.84
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./Button-
|
|
2
|
+
import { t as e } from "./Button-BxZPZfsv.js";
|
|
3
3
|
import { useState as t } from "react";
|
|
4
4
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/bookingCard/BillingStep.tsx
|
|
@@ -911,16 +911,26 @@ var y = r({
|
|
|
911
911
|
if (s(() => {
|
|
912
912
|
if (!r) return;
|
|
913
913
|
let e = c.current;
|
|
914
|
-
if (!e) return;
|
|
914
|
+
if (!e || !(e instanceof Element)) return;
|
|
915
915
|
let { from: t, to: n, offset: i } = r, a = {}, o = Array.from(new Set([...Object.keys(t), ...Object.keys(n)]));
|
|
916
916
|
for (let e of o) {
|
|
917
917
|
let r = t[e] ?? n[e], i = n[e] ?? t[e];
|
|
918
918
|
r !== i && typeof r == "number" && typeof i == "number" && (a[e] = [r, i]);
|
|
919
919
|
}
|
|
920
|
-
if (Object.keys(a).length
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
920
|
+
if (Object.keys(a).length === 0) return;
|
|
921
|
+
let s = d(e, a, { ease: "linear" });
|
|
922
|
+
try {
|
|
923
|
+
return f(s, {
|
|
924
|
+
target: e,
|
|
925
|
+
offset: [i.start, i.end]
|
|
926
|
+
});
|
|
927
|
+
} catch (e) {
|
|
928
|
+
console.error("[AnimatedBlock] Failed to initialise scroll-linked animation", {
|
|
929
|
+
error: e,
|
|
930
|
+
offset: i
|
|
931
|
+
});
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
924
934
|
}, [r]), r) {
|
|
925
935
|
let i = {};
|
|
926
936
|
for (let [e, t] of Object.entries(r.from)) t !== void 0 && (i[e] = t);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as e } from "./AuthProvider-Ch5Ny0il.js";
|
|
3
|
-
import { t } from "./Button-
|
|
3
|
+
import { t } from "./Button-BxZPZfsv.js";
|
|
4
4
|
import { n, t as r } from "./StripePaymentModal-Kk0GUsIU.js";
|
|
5
|
-
import { BillingStep as ee } from "./BillingStep-
|
|
5
|
+
import { BillingStep as ee } from "./BillingStep-BgxKFmgZ.js";
|
|
6
6
|
import { useRef as i, useState as a } from "react";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { cn as te, errorHandler as l, useLevo as u } from "@levo-so/react";
|