@gardenfi/garden-book 0.2.13 → 0.2.15
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/components/molecules/TokenNetworkLogos/TokenNetworkLogos.d.ts +1 -0
- package/dist/components/molecules/TokenNetworkLogos/TokenNetworkLogos.stories.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/ui.cjs.js +7 -7
- package/dist/ui.es.js +120 -113
- package/dist/ui.umd.js +2 -2
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, Fragment as be, jsxs as E } from "react/jsx-runtime";
|
|
2
2
|
import * as M from "react";
|
|
3
|
-
import B, { useState as
|
|
3
|
+
import B, { useState as S1, useEffect as H1, forwardRef as p3, useMemo as ae, useLayoutEffect as j6, useRef as D1, createContext as Ue, useContext as x1, useId as g3, useCallback as U6, Component as S9, useInsertionEffect as $6, Fragment as W6, createElement as T9, Children as P9, isValidElement as E9, useImperativeHandle as k9 } from "react";
|
|
4
4
|
import * as Z9 from "react-dom";
|
|
5
5
|
import A9 from "react-dom";
|
|
6
6
|
function z6(e) {
|
|
@@ -2386,9 +2386,9 @@ function f0() {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
};
|
|
2388
2388
|
}
|
|
2389
|
-
const h0 = /* @__PURE__ */ K9(f0),
|
|
2390
|
-
const [e, t] =
|
|
2391
|
-
return
|
|
2389
|
+
const h0 = /* @__PURE__ */ K9(f0), L1 = (...e) => h0(R9(e)), J6 = () => {
|
|
2390
|
+
const [e, t] = S1(!1);
|
|
2391
|
+
return H1(() => {
|
|
2392
2392
|
t(!0);
|
|
2393
2393
|
}, []), e;
|
|
2394
2394
|
}, i2 = ({ children: e, fallback: t = null }) => J6() ? /* @__PURE__ */ a(be, { children: e }) : /* @__PURE__ */ a(be, { children: t }), C0 = ({
|
|
@@ -2397,8 +2397,8 @@ const h0 = /* @__PURE__ */ K9(f0), T1 = (...e) => h0(R9(e)), J6 = () => {
|
|
|
2397
2397
|
autoplay: n = !0,
|
|
2398
2398
|
style: r
|
|
2399
2399
|
}) => {
|
|
2400
|
-
const [i, o] =
|
|
2401
|
-
return
|
|
2400
|
+
const [i, o] = S1(null);
|
|
2401
|
+
return H1(() => {
|
|
2402
2402
|
import("./index.es-BsweaPuE.js").then((s) => {
|
|
2403
2403
|
o(() => s.default);
|
|
2404
2404
|
});
|
|
@@ -2841,7 +2841,7 @@ const h0 = /* @__PURE__ */ K9(f0), T1 = (...e) => h0(R9(e)), J6 = () => {
|
|
|
2841
2841
|
"button",
|
|
2842
2842
|
{
|
|
2843
2843
|
ref: c,
|
|
2844
|
-
className:
|
|
2844
|
+
className: L1(
|
|
2845
2845
|
"gf-transition-colors gf-duration-300",
|
|
2846
2846
|
i,
|
|
2847
2847
|
o5({
|
|
@@ -2940,7 +2940,7 @@ const h0 = /* @__PURE__ */ K9(f0), T1 = (...e) => h0(R9(e)), J6 = () => {
|
|
|
2940
2940
|
return /* @__PURE__ */ a(
|
|
2941
2941
|
e,
|
|
2942
2942
|
{
|
|
2943
|
-
className:
|
|
2943
|
+
className: L1(
|
|
2944
2944
|
s5({
|
|
2945
2945
|
size: t,
|
|
2946
2946
|
weight: n,
|
|
@@ -2969,7 +2969,7 @@ const h0 = /* @__PURE__ */ K9(f0), T1 = (...e) => h0(R9(e)), J6 = () => {
|
|
|
2969
2969
|
className: t,
|
|
2970
2970
|
children: n,
|
|
2971
2971
|
...r
|
|
2972
|
-
}) => /* @__PURE__ */ a("div", { ...r, className:
|
|
2972
|
+
}) => /* @__PURE__ */ a("div", { ...r, className: L1(S0({ level: e }), t), children: n });
|
|
2973
2973
|
var oe = function() {
|
|
2974
2974
|
return oe = Object.assign || function(t) {
|
|
2975
2975
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
@@ -2997,7 +2997,7 @@ function x2(e, t) {
|
|
|
2997
2997
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2998
2998
|
}
|
|
2999
2999
|
function Z0(e, t) {
|
|
3000
|
-
var n =
|
|
3000
|
+
var n = S1(function() {
|
|
3001
3001
|
return {
|
|
3002
3002
|
// value
|
|
3003
3003
|
value: e,
|
|
@@ -3482,7 +3482,7 @@ const f7 = $e(
|
|
|
3482
3482
|
o2,
|
|
3483
3483
|
{
|
|
3484
3484
|
level: "medium",
|
|
3485
|
-
className:
|
|
3485
|
+
className: L1(f7({ open: e, size: t, className: r })),
|
|
3486
3486
|
...i,
|
|
3487
3487
|
children: n
|
|
3488
3488
|
}
|
|
@@ -3502,8 +3502,8 @@ const f7 = $e(
|
|
|
3502
3502
|
}
|
|
3503
3503
|
}
|
|
3504
3504
|
), C7 = ({ open: e, onClose: t, disableScrollLock: n, children: r }) => {
|
|
3505
|
-
const [i, o] =
|
|
3506
|
-
|
|
3505
|
+
const [i, o] = S1(!1);
|
|
3506
|
+
H1(() => {
|
|
3507
3507
|
e && o(!0);
|
|
3508
3508
|
}, [e]);
|
|
3509
3509
|
const s = (l) => {
|
|
@@ -4475,7 +4475,7 @@ function Zn() {
|
|
|
4475
4475
|
function b3(e) {
|
|
4476
4476
|
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
|
|
4477
4477
|
}
|
|
4478
|
-
const Mr = 24, Hr = typeof window < "u" ? j6 :
|
|
4478
|
+
const Mr = 24, Hr = typeof window < "u" ? j6 : H1;
|
|
4479
4479
|
function b5(...e) {
|
|
4480
4480
|
return (...t) => {
|
|
4481
4481
|
for (let n of e)
|
|
@@ -4962,7 +4962,7 @@ function Nn({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
4962
4962
|
document.body.style.pointerEvents = "auto";
|
|
4963
4963
|
}), b || (document.body.style.pointerEvents = "auto");
|
|
4964
4964
|
}
|
|
4965
|
-
}), [j, Y] = B.useState(!1), [Q, X] = B.useState(!1), [c1, d1] = B.useState(!1), o1 = B.useRef(null), s1 = B.useRef(null), y1 = B.useRef(null), G1 = B.useRef(null), N1 = B.useRef(null), P1 = B.useRef(!1), R1 = B.useRef(null), O1 = B.useRef(0), h1 = B.useRef(!1),
|
|
4965
|
+
}), [j, Y] = B.useState(!1), [Q, X] = B.useState(!1), [c1, d1] = B.useState(!1), o1 = B.useRef(null), s1 = B.useRef(null), y1 = B.useRef(null), G1 = B.useRef(null), N1 = B.useRef(null), P1 = B.useRef(!1), R1 = B.useRef(null), O1 = B.useRef(0), h1 = B.useRef(!1), T1 = B.useRef(!k), w1 = B.useRef(0), G = B.useRef(null), Vt = B.useRef(((_ = G.current) == null ? void 0 : _.getBoundingClientRect().height) || 0), Mt = B.useRef(((W = G.current) == null ? void 0 : W.getBoundingClientRect().width) || 0), Ve = B.useRef(0), Me = B.useCallback((b) => {
|
|
4966
4966
|
o && b === he.length - 1 && (s1.current = /* @__PURE__ */ new Date());
|
|
4967
4967
|
}, []), { activeSnapPoint: Xe, activeSnapPointIndex: F1, setActiveSnapPoint: qe, onRelease: ee, snapPointsOffset: he, onDrag: Ht, shouldFade: Qe, getPercentageDragged: w2 } = Ir({
|
|
4968
4968
|
snapPoints: o,
|
|
@@ -5066,7 +5066,7 @@ function Nn({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
5066
5066
|
}
|
|
5067
5067
|
B.useEffect(() => {
|
|
5068
5068
|
window.requestAnimationFrame(() => {
|
|
5069
|
-
|
|
5069
|
+
T1.current = !0;
|
|
5070
5070
|
});
|
|
5071
5071
|
}, []), B.useEffect(() => {
|
|
5072
5072
|
var b;
|
|
@@ -5227,7 +5227,7 @@ function Nn({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
5227
5227
|
onRelease: b2,
|
|
5228
5228
|
onDrag: Pt,
|
|
5229
5229
|
dismissible: d,
|
|
5230
|
-
shouldAnimate:
|
|
5230
|
+
shouldAnimate: T1,
|
|
5231
5231
|
handleOnly: f,
|
|
5232
5232
|
isOpen: e1,
|
|
5233
5233
|
isDragging: Q,
|
|
@@ -5452,7 +5452,7 @@ const It = {
|
|
|
5452
5452
|
/* @__PURE__ */ a("div", { className: "gf-mx-auto gf-mb-3 gf-h-1 gf-w-[60px] gf-rounded-full gf-bg-white/30" }),
|
|
5453
5453
|
/* @__PURE__ */ a("div", { className: "gf-scrollbar-hide gf-flex gf-max-h-[90vh] gf-flex-col gf-gap-5 gf-overflow-y-scroll", children: e })
|
|
5454
5454
|
] }) })
|
|
5455
|
-
] }) }), al = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a("div", { ...n, className:
|
|
5455
|
+
] }) }), al = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a("div", { ...n, className: L1("gf-p-6 gf-rounded-2xl gf-w-fit", t), children: e }), ll = (e) => /* @__PURE__ */ a(
|
|
5456
5456
|
"svg",
|
|
5457
5457
|
{
|
|
5458
5458
|
width: "12",
|
|
@@ -9173,7 +9173,7 @@ const It = {
|
|
|
9173
9173
|
), du = ({ checked: e, color: t, ...n }) => /* @__PURE__ */ a("div", { ...n, children: e ? /* @__PURE__ */ a(Qr, { className: "gf-cursor-pointer", color: t }) : /* @__PURE__ */ a(Jr, { className: "gf-cursor-pointer" }) }), Y1 = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a(
|
|
9174
9174
|
"div",
|
|
9175
9175
|
{
|
|
9176
|
-
className:
|
|
9176
|
+
className: L1(
|
|
9177
9177
|
"gf-flex gf-items-center gf-rounded-full gf-text-dark-grey gf-font-medium gf-w-max gf-bg-white gf-gap-x-2",
|
|
9178
9178
|
t
|
|
9179
9179
|
),
|
|
@@ -9187,7 +9187,7 @@ const fu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a(
|
|
|
9187
9187
|
o2,
|
|
9188
9188
|
{
|
|
9189
9189
|
level: "medium",
|
|
9190
|
-
className:
|
|
9190
|
+
className: L1("gf-px-4 gf-py-3 gf-rounded-3xl gf-w-max", t),
|
|
9191
9191
|
...n,
|
|
9192
9192
|
children: /* @__PURE__ */ a(E1, { size: "h3", weight: "bold", children: e })
|
|
9193
9193
|
}
|
|
@@ -9196,30 +9196,37 @@ const fu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a(
|
|
|
9196
9196
|
chainLogo: t,
|
|
9197
9197
|
className: n,
|
|
9198
9198
|
iconStyle: r,
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
{
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9199
|
+
iconSize: i = 20,
|
|
9200
|
+
...o
|
|
9201
|
+
}) => {
|
|
9202
|
+
const l = t && t !== e ? Math.round(i * 1.9) : i, c = n ? void 0 : { width: l }, u = r ? void 0 : { width: i, height: i };
|
|
9203
|
+
return /* @__PURE__ */ E(
|
|
9204
|
+
"div",
|
|
9205
|
+
{
|
|
9206
|
+
className: L1("gf-relative gf-flex gf-items-center gf-h-5 gf-w-[38px]", n),
|
|
9207
|
+
style: c,
|
|
9208
|
+
...o,
|
|
9209
|
+
children: [
|
|
9210
|
+
/* @__PURE__ */ a(
|
|
9211
|
+
"img",
|
|
9212
|
+
{
|
|
9213
|
+
src: e,
|
|
9214
|
+
className: L1("gf-absolute gf-left-0 gf-z-30 gf-h-5", r),
|
|
9215
|
+
style: u
|
|
9216
|
+
}
|
|
9217
|
+
),
|
|
9218
|
+
t && t !== e && /* @__PURE__ */ a(
|
|
9219
|
+
"img",
|
|
9220
|
+
{
|
|
9221
|
+
src: t,
|
|
9222
|
+
className: L1("gf-absolute gf-right-0 gf-z-20 gf-h-5", r),
|
|
9223
|
+
style: u
|
|
9224
|
+
}
|
|
9225
|
+
)
|
|
9226
|
+
]
|
|
9227
|
+
}
|
|
9228
|
+
);
|
|
9229
|
+
}, hu = ({
|
|
9223
9230
|
symbol: e,
|
|
9224
9231
|
tokenLogo: t,
|
|
9225
9232
|
chainLogo: n,
|
|
@@ -9229,7 +9236,7 @@ const fu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a(
|
|
|
9229
9236
|
}) => /* @__PURE__ */ a(
|
|
9230
9237
|
"div",
|
|
9231
9238
|
{
|
|
9232
|
-
className:
|
|
9239
|
+
className: L1(
|
|
9233
9240
|
"gf-flex gf-text-left gf-cursor-pointer gf-w-max",
|
|
9234
9241
|
r
|
|
9235
9242
|
),
|
|
@@ -9262,15 +9269,15 @@ const fu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a(
|
|
|
9262
9269
|
onClose: i = !1,
|
|
9263
9270
|
...o
|
|
9264
9271
|
}) => {
|
|
9265
|
-
const [s, l] =
|
|
9272
|
+
const [s, l] = S1(!0), [c, u] = S1(!0), d = D1(null), f = D1(null), h = () => {
|
|
9266
9273
|
if (d.current) {
|
|
9267
9274
|
const { scrollTop: g, scrollHeight: w, clientHeight: C } = d.current;
|
|
9268
9275
|
l(g + C < w), u(g > 0);
|
|
9269
9276
|
}
|
|
9270
9277
|
};
|
|
9271
|
-
return
|
|
9278
|
+
return H1(() => {
|
|
9272
9279
|
i && d.current && (d.current.scrollTop = 0);
|
|
9273
|
-
}, [i]),
|
|
9280
|
+
}, [i]), H1(() => {
|
|
9274
9281
|
const g = d.current, w = f.current;
|
|
9275
9282
|
if (!g || !w) return;
|
|
9276
9283
|
h();
|
|
@@ -9283,7 +9290,7 @@ const fu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ a(
|
|
|
9283
9290
|
}, []), /* @__PURE__ */ E(
|
|
9284
9291
|
"div",
|
|
9285
9292
|
{
|
|
9286
|
-
className:
|
|
9293
|
+
className: L1(
|
|
9287
9294
|
"gf-w-full gf-bg-white gf-relative gf-overflow-hidden",
|
|
9288
9295
|
t
|
|
9289
9296
|
),
|
|
@@ -9434,7 +9441,7 @@ function f2(e, { repeat: t, repeatType: n = "loop" }, r) {
|
|
|
9434
9441
|
const i = e.filter(g8), o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
|
|
9435
9442
|
return !o || r === void 0 ? i[o] : r;
|
|
9436
9443
|
}
|
|
9437
|
-
const
|
|
9444
|
+
const V1 = (e) => e;
|
|
9438
9445
|
function m8(e) {
|
|
9439
9446
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1;
|
|
9440
9447
|
const o = /* @__PURE__ */ new WeakSet();
|
|
@@ -9507,11 +9514,11 @@ function Wn(e, t) {
|
|
|
9507
9514
|
s[Nt[H]].cancel(m);
|
|
9508
9515
|
}, state: i, steps: s };
|
|
9509
9516
|
}
|
|
9510
|
-
const { schedule: r1, cancel: z1, state: b1, steps: D2 } = Wn(typeof requestAnimationFrame < "u" ? requestAnimationFrame :
|
|
9517
|
+
const { schedule: r1, cancel: z1, state: b1, steps: D2 } = Wn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : V1, !0), zn = (e) => /^0[^.\s]+$/u.test(e);
|
|
9511
9518
|
function y8(e) {
|
|
9512
9519
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || zn(e) : !0;
|
|
9513
9520
|
}
|
|
9514
|
-
let Ge =
|
|
9521
|
+
let Ge = V1, B1 = V1;
|
|
9515
9522
|
process.env.NODE_ENV !== "production" && (Ge = (e, t) => {
|
|
9516
9523
|
!e && typeof console < "u" && console.warn(t);
|
|
9517
9524
|
}, B1 = (e, t) => {
|
|
@@ -9718,7 +9725,7 @@ const n3 = {
|
|
|
9718
9725
|
test: /* @__PURE__ */ P3("hsl", "hue"),
|
|
9719
9726
|
parse: /* @__PURE__ */ t4("hue", "saturation", "lightness"),
|
|
9720
9727
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + $1.transform(ut(t)) + ", " + $1.transform(ut(n)) + ", " + ut(ct.transform(r)) + ")"
|
|
9721
|
-
},
|
|
9728
|
+
}, M1 = {
|
|
9722
9729
|
test: (e) => ye.test(e) || n3.test(e) || Ae.test(e),
|
|
9723
9730
|
parse: (e) => ye.test(e) ? ye.parse(e) : Ae.test(e) ? Ae.parse(e) : n3.parse(e),
|
|
9724
9731
|
transform: (e) => bt(e) ? e : e.hasOwnProperty("red") ? ye.transform(e) : Ae.transform(e)
|
|
@@ -9735,7 +9742,7 @@ function vt(e) {
|
|
|
9735
9742
|
var: []
|
|
9736
9743
|
}, i = [];
|
|
9737
9744
|
let o = 0;
|
|
9738
|
-
const l = t.replace(F8, (c) => (
|
|
9745
|
+
const l = t.replace(F8, (c) => (M1.test(c) ? (r.color.push(o), i.push(r4), n.push(M1.parse(c))) : c.startsWith(N8) ? (r.var.push(o), i.push(I8), n.push(c)) : (r.number.push(o), i.push(n4), n.push(parseFloat(c))), ++o, k5)).split(k5);
|
|
9739
9746
|
return { values: n, split: l, indexes: r, types: i };
|
|
9740
9747
|
}
|
|
9741
9748
|
function i4(e) {
|
|
@@ -9748,7 +9755,7 @@ function o4(e) {
|
|
|
9748
9755
|
for (let s = 0; s < r; s++)
|
|
9749
9756
|
if (o += t[s], i[s] !== void 0) {
|
|
9750
9757
|
const l = n[s];
|
|
9751
|
-
l === n4 ? o += ut(i[s]) : l === r4 ? o +=
|
|
9758
|
+
l === n4 ? o += ut(i[s]) : l === r4 ? o += M1.transform(i[s]) : o += i[s];
|
|
9752
9759
|
}
|
|
9753
9760
|
return o;
|
|
9754
9761
|
};
|
|
@@ -9854,17 +9861,17 @@ const z8 = /\b([a-z-]*)\(.*?\)/gu, r3 = {
|
|
|
9854
9861
|
}, G8 = {
|
|
9855
9862
|
...E3,
|
|
9856
9863
|
// Color props
|
|
9857
|
-
color:
|
|
9858
|
-
backgroundColor:
|
|
9859
|
-
outlineColor:
|
|
9860
|
-
fill:
|
|
9861
|
-
stroke:
|
|
9864
|
+
color: M1,
|
|
9865
|
+
backgroundColor: M1,
|
|
9866
|
+
outlineColor: M1,
|
|
9867
|
+
fill: M1,
|
|
9868
|
+
stroke: M1,
|
|
9862
9869
|
// Border props
|
|
9863
|
-
borderColor:
|
|
9864
|
-
borderTopColor:
|
|
9865
|
-
borderRightColor:
|
|
9866
|
-
borderBottomColor:
|
|
9867
|
-
borderLeftColor:
|
|
9870
|
+
borderColor: M1,
|
|
9871
|
+
borderTopColor: M1,
|
|
9872
|
+
borderRightColor: M1,
|
|
9873
|
+
borderBottomColor: M1,
|
|
9874
|
+
borderLeftColor: M1,
|
|
9868
9875
|
filter: r3,
|
|
9869
9876
|
WebkitFilter: r3
|
|
9870
9877
|
}, k3 = (e) => G8[e];
|
|
@@ -10198,12 +10205,12 @@ function fi(e, t, n, r, i) {
|
|
|
10198
10205
|
}
|
|
10199
10206
|
function Ye(e, t, n, r) {
|
|
10200
10207
|
if (e === t && n === r)
|
|
10201
|
-
return
|
|
10208
|
+
return V1;
|
|
10202
10209
|
const i = (o) => fi(o, 0, 1, e, n);
|
|
10203
10210
|
return (o) => o === 0 || o === 1 ? o : f4(i(o), t, r);
|
|
10204
10211
|
}
|
|
10205
10212
|
const hi = /* @__PURE__ */ Ye(0.42, 0, 1, 1), Ci = /* @__PURE__ */ Ye(0, 0, 0.58, 1), h4 = /* @__PURE__ */ Ye(0.42, 0, 0.58, 1), C4 = (e) => Array.isArray(e) && typeof e[0] != "number", p4 = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, g4 = (e) => (t) => 1 - e(1 - t), A3 = (e) => 1 - Math.sin(Math.acos(e)), m4 = g4(A3), pi = p4(A3), v4 = /* @__PURE__ */ Ye(0.33, 1.53, 0.69, 0.99), D3 = /* @__PURE__ */ g4(v4), gi = /* @__PURE__ */ p4(D3), mi = (e) => (e *= 2) < 1 ? 0.5 * D3(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), _5 = {
|
|
10206
|
-
linear:
|
|
10213
|
+
linear: V1,
|
|
10207
10214
|
easeIn: hi,
|
|
10208
10215
|
easeInOut: h4,
|
|
10209
10216
|
easeOut: Ci,
|
|
@@ -10273,7 +10280,7 @@ function Li(e, t) {
|
|
|
10273
10280
|
return (n) => u1(e, t, n);
|
|
10274
10281
|
}
|
|
10275
10282
|
function R3(e) {
|
|
10276
|
-
return typeof e == "number" ? Li : typeof e == "string" ? H3(e) ? Qt :
|
|
10283
|
+
return typeof e == "number" ? Li : typeof e == "string" ? H3(e) ? Qt : M1.test(e) ? I5 : Hi : Array.isArray(e) ? y4 : typeof e == "object" ? M1.test(e) ? I5 : Vi : Qt;
|
|
10277
10284
|
}
|
|
10278
10285
|
function y4(e, t) {
|
|
10279
10286
|
const n = [...e], r = n.length, i = e.map((o, s) => R3(o)(o, t[s]));
|
|
@@ -10314,7 +10321,7 @@ function Si(e, t, n) {
|
|
|
10314
10321
|
for (let s = 0; s < o; s++) {
|
|
10315
10322
|
let l = i(e[s], e[s + 1]);
|
|
10316
10323
|
if (t) {
|
|
10317
|
-
const c = Array.isArray(t) ? t[s] ||
|
|
10324
|
+
const c = Array.isArray(t) ? t[s] || V1 : t;
|
|
10318
10325
|
l = q1(c, l);
|
|
10319
10326
|
}
|
|
10320
10327
|
r.push(l);
|
|
@@ -10673,11 +10680,11 @@ class N5 extends c4 {
|
|
|
10673
10680
|
else {
|
|
10674
10681
|
const { resolved: n } = this;
|
|
10675
10682
|
if (!n)
|
|
10676
|
-
return
|
|
10683
|
+
return V1;
|
|
10677
10684
|
const { animation: r } = n;
|
|
10678
10685
|
r.timeline = t, r.onfinish = null;
|
|
10679
10686
|
}
|
|
10680
|
-
return
|
|
10687
|
+
return V1;
|
|
10681
10688
|
}
|
|
10682
10689
|
play() {
|
|
10683
10690
|
if (this.isStopped)
|
|
@@ -11943,11 +11950,11 @@ function Zo(e, t = 10) {
|
|
|
11943
11950
|
}
|
|
11944
11951
|
class Ao extends fe {
|
|
11945
11952
|
constructor(t) {
|
|
11946
|
-
super(t), this.removeGroupControls =
|
|
11953
|
+
super(t), this.removeGroupControls = V1, this.removeListeners = V1, this.controls = new ko(t);
|
|
11947
11954
|
}
|
|
11948
11955
|
mount() {
|
|
11949
11956
|
const { dragControls: t } = this.node.getProps();
|
|
11950
|
-
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
11957
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || V1;
|
|
11951
11958
|
}
|
|
11952
11959
|
unmount() {
|
|
11953
11960
|
this.removeGroupControls(), this.removeListeners();
|
|
@@ -11958,7 +11965,7 @@ const a6 = (e) => (t, n) => {
|
|
|
11958
11965
|
};
|
|
11959
11966
|
class Do extends fe {
|
|
11960
11967
|
constructor() {
|
|
11961
|
-
super(...arguments), this.removePointerDownListener =
|
|
11968
|
+
super(...arguments), this.removePointerDownListener = V1;
|
|
11962
11969
|
}
|
|
11963
11970
|
onPointerDown(t) {
|
|
11964
11971
|
this.session = new R4(t, this.createPanHandlers(), {
|
|
@@ -11993,7 +12000,7 @@ function Ro() {
|
|
|
11993
12000
|
if (e === null)
|
|
11994
12001
|
return [!0, null];
|
|
11995
12002
|
const { isPresent: t, onExitComplete: n, register: r } = e, i = g3();
|
|
11996
|
-
|
|
12003
|
+
H1(() => r(i), []);
|
|
11997
12004
|
const o = U6(() => n && n(i), [i, n]);
|
|
11998
12005
|
return !t && n ? [!1, o] : [!0];
|
|
11999
12006
|
}
|
|
@@ -12118,7 +12125,7 @@ function Fo(e, t, n, r, i, o) {
|
|
|
12118
12125
|
function d6(e, t) {
|
|
12119
12126
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
12120
12127
|
}
|
|
12121
|
-
const jo = /* @__PURE__ */ X4(0, 0.5, m4), Uo = /* @__PURE__ */ X4(0.5, 0.95,
|
|
12128
|
+
const jo = /* @__PURE__ */ X4(0, 0.5, m4), Uo = /* @__PURE__ */ X4(0.5, 0.95, V1);
|
|
12122
12129
|
function X4(e, t, n) {
|
|
12123
12130
|
return (r) => r < e ? 0 : r > t ? 1 : n(Ne(e, t, r));
|
|
12124
12131
|
}
|
|
@@ -12832,7 +12839,7 @@ function hs(e) {
|
|
|
12832
12839
|
const Cs = {
|
|
12833
12840
|
duration: 0.45,
|
|
12834
12841
|
ease: [0.4, 0, 0.1, 1]
|
|
12835
|
-
}, S6 = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), T6 = S6("applewebkit/") && !S6("chrome/") ? Math.round :
|
|
12842
|
+
}, S6 = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), T6 = S6("applewebkit/") && !S6("chrome/") ? Math.round : V1;
|
|
12836
12843
|
function P6(e) {
|
|
12837
12844
|
e.min = T6(e.min), e.max = T6(e.max);
|
|
12838
12845
|
}
|
|
@@ -12932,7 +12939,7 @@ function W2(e, t) {
|
|
|
12932
12939
|
}
|
|
12933
12940
|
class bs extends fe {
|
|
12934
12941
|
constructor() {
|
|
12935
|
-
super(...arguments), this.removeStartListeners =
|
|
12942
|
+
super(...arguments), this.removeStartListeners = V1, this.removeEndListeners = V1, this.removeAccessibleListeners = V1, this.startPointerPress = (t, n) => {
|
|
12936
12943
|
if (this.isPressing)
|
|
12937
12944
|
return;
|
|
12938
12945
|
this.removeEndListeners();
|
|
@@ -13069,7 +13076,7 @@ const Ps = {
|
|
|
13069
13076
|
transformPagePoint: (e) => e,
|
|
13070
13077
|
isStatic: !1,
|
|
13071
13078
|
reducedMotion: "never"
|
|
13072
|
-
}), v2 = Ue({}), W3 = typeof window < "u", z3 = W3 ? j6 :
|
|
13079
|
+
}), v2 = Ue({}), W3 = typeof window < "u", z3 = W3 ? j6 : H1, o9 = Ue({ strict: !1 });
|
|
13073
13080
|
let k6 = !1;
|
|
13074
13081
|
function ks(e, t, n, r, i) {
|
|
13075
13082
|
var o;
|
|
@@ -13089,7 +13096,7 @@ function ks(e, t, n, r, i) {
|
|
|
13089
13096
|
const g = n[E4], w = D1(!!g && !window.MotionHandoffIsComplete && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, g)));
|
|
13090
13097
|
return z3(() => {
|
|
13091
13098
|
f && (f.updateFeatures(), U3.render(f.render), w.current && f.animationState && f.animationState.animateChanges());
|
|
13092
|
-
}),
|
|
13099
|
+
}), H1(() => {
|
|
13093
13100
|
f && (!w.current && f.animationState && f.animationState.animateChanges(), w.current = !1, k6 || (k6 = !0, queueMicrotask(Zs)));
|
|
13094
13101
|
}), f;
|
|
13095
13102
|
}
|
|
@@ -13640,7 +13647,7 @@ function fa(e, t, n) {
|
|
|
13640
13647
|
t[r] === void 0 && e.removeValue(r);
|
|
13641
13648
|
return t;
|
|
13642
13649
|
}
|
|
13643
|
-
const yt = /* @__PURE__ */ new WeakMap(), ha = [...Qn,
|
|
13650
|
+
const yt = /* @__PURE__ */ new WeakMap(), ha = [...Qn, M1, ce], Ca = (e) => ha.find(qn(e)), O6 = [
|
|
13644
13651
|
"AnimationStart",
|
|
13645
13652
|
"AnimationComplete",
|
|
13646
13653
|
"Update",
|
|
@@ -14009,7 +14016,7 @@ function _6(e) {
|
|
|
14009
14016
|
}
|
|
14010
14017
|
const La = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExitComplete: i, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
14011
14018
|
B1(!t, "Replace exitBeforeEnter with mode='wait'");
|
|
14012
|
-
const l = ae(() => _6(e), [e]), c = l.map(Ut), u = D1(!0), d = D1(l), f = Le(() => /* @__PURE__ */ new Map()), [h, g] =
|
|
14019
|
+
const l = ae(() => _6(e), [e]), c = l.map(Ut), u = D1(!0), d = D1(l), f = Le(() => /* @__PURE__ */ new Map()), [h, g] = S1(l), [w, C] = S1(l);
|
|
14013
14020
|
z3(() => {
|
|
14014
14021
|
u.current = !1, d.current = l;
|
|
14015
14022
|
for (let H = 0; H < w.length; H++) {
|
|
@@ -14046,8 +14053,8 @@ const La = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExi
|
|
|
14046
14053
|
function x9(e) {
|
|
14047
14054
|
const t = Le(() => Fe(e)), { isStatic: n } = x1(m2);
|
|
14048
14055
|
if (n) {
|
|
14049
|
-
const [, r] =
|
|
14050
|
-
|
|
14056
|
+
const [, r] = S1(e);
|
|
14057
|
+
H1(() => t.on("change", r), []);
|
|
14051
14058
|
}
|
|
14052
14059
|
return t;
|
|
14053
14060
|
}
|
|
@@ -14098,7 +14105,7 @@ function V9(e, t, n) {
|
|
|
14098
14105
|
return Array.from(e || []);
|
|
14099
14106
|
}
|
|
14100
14107
|
function Pa(e) {
|
|
14101
|
-
return
|
|
14108
|
+
return H1(() => () => e(), []);
|
|
14102
14109
|
}
|
|
14103
14110
|
function Ea(e) {
|
|
14104
14111
|
return typeof e == "object" && !Array.isArray(e);
|
|
@@ -14309,10 +14316,10 @@ const Ya = ({
|
|
|
14309
14316
|
isLogoHovered: t,
|
|
14310
14317
|
maskUrl: n
|
|
14311
14318
|
}) => {
|
|
14312
|
-
const [r] =
|
|
14319
|
+
const [r] = S1(
|
|
14313
14320
|
"https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"
|
|
14314
|
-
), [i, o] =
|
|
14315
|
-
return
|
|
14321
|
+
), [i, o] = S1("initial"), s = D1(null), l = D1(null), c = x9(45), u = Ta(c, (d) => `${d}% center`);
|
|
14322
|
+
return H1(() => {
|
|
14316
14323
|
if (t)
|
|
14317
14324
|
o("visible");
|
|
14318
14325
|
else {
|
|
@@ -14453,9 +14460,9 @@ const Ya = ({
|
|
|
14453
14460
|
return k9(i, () => ({
|
|
14454
14461
|
startAnimation: c,
|
|
14455
14462
|
stopAnimation: u
|
|
14456
|
-
})),
|
|
14463
|
+
})), H1(() => {
|
|
14457
14464
|
t ? c() : u();
|
|
14458
|
-
}, [t]),
|
|
14465
|
+
}, [t]), H1(() => {
|
|
14459
14466
|
const d = () => {
|
|
14460
14467
|
t || c();
|
|
14461
14468
|
}, f = () => {
|
|
@@ -14468,7 +14475,7 @@ const Ya = ({
|
|
|
14468
14475
|
}, [s, t]), /* @__PURE__ */ a("div", { ref: s, children: /* @__PURE__ */ a(
|
|
14469
14476
|
"span",
|
|
14470
14477
|
{
|
|
14471
|
-
className:
|
|
14478
|
+
className: L1(
|
|
14472
14479
|
"gf-flex gf-h-5 gf-items-center gf-justify-start gf-overflow-hidden gf-pr-0.5",
|
|
14473
14480
|
n
|
|
14474
14481
|
),
|
|
@@ -14571,10 +14578,10 @@ const ot = ({
|
|
|
14571
14578
|
maskUrl: n = Xa,
|
|
14572
14579
|
...r
|
|
14573
14580
|
}) => {
|
|
14574
|
-
const [i, o] =
|
|
14581
|
+
const [i, o] = S1(!1), [s, l] = S1(
|
|
14575
14582
|
null
|
|
14576
14583
|
), c = J6(), u = D1(null);
|
|
14577
|
-
|
|
14584
|
+
H1(() => () => {
|
|
14578
14585
|
u.current && clearTimeout(u.current);
|
|
14579
14586
|
}, []);
|
|
14580
14587
|
const d = t && t === "testnet" ? "https://testnet.garden.finance" : "https://app.garden.finance", f = "https://garden.finance", h = {
|
|
@@ -14671,7 +14678,7 @@ const ot = ({
|
|
|
14671
14678
|
isExternal: !0
|
|
14672
14679
|
},
|
|
14673
14680
|
btcTocbBtc: {
|
|
14674
|
-
title: "BTC to
|
|
14681
|
+
title: "BTC to cbBTC",
|
|
14675
14682
|
link: f + "/routes/bridge-btc-to-cbbtc-base",
|
|
14676
14683
|
chain: "Base",
|
|
14677
14684
|
isExternal: !0
|
|
@@ -14701,9 +14708,9 @@ const ot = ({
|
|
|
14701
14708
|
isExternal: !0
|
|
14702
14709
|
},
|
|
14703
14710
|
cbBtcBaseTocbBtcSolana: {
|
|
14704
|
-
title: " to
|
|
14711
|
+
title: " to cbBTC",
|
|
14705
14712
|
link: f + "/routes/bridge-cbbtc-base-to-cbbtc-solana",
|
|
14706
|
-
inputAsset: "
|
|
14713
|
+
inputAsset: "cbBTC",
|
|
14707
14714
|
inputChain: "Base",
|
|
14708
14715
|
chain: "Solana",
|
|
14709
14716
|
isExternal: !0
|
|
@@ -14758,7 +14765,7 @@ const ot = ({
|
|
|
14758
14765
|
return /* @__PURE__ */ E(
|
|
14759
14766
|
"footer",
|
|
14760
14767
|
{
|
|
14761
|
-
className:
|
|
14768
|
+
className: L1(
|
|
14762
14769
|
"gf-z-10 gf-relative gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-center gf-justify-center gf-bg-white gf-px-6 gf-pb-10 gf-pt-20 md:gf-px-10",
|
|
14763
14770
|
e,
|
|
14764
14771
|
i ? "gf-text-white" : "gf-text-dark-grey"
|
|
@@ -15016,27 +15023,27 @@ var H9 = { exports: {} };
|
|
|
15016
15023
|
var q, j, Y, Q, X, c1, d1 = 0, o1 = !1, s1 = !1, y1 = !0;
|
|
15017
15024
|
if (typeof _ != "function") throw new TypeError(l);
|
|
15018
15025
|
function G1(h1) {
|
|
15019
|
-
var
|
|
15020
|
-
return q = j = void 0, d1 = h1, Q = _.apply(w1,
|
|
15026
|
+
var T1 = q, w1 = j;
|
|
15027
|
+
return q = j = void 0, d1 = h1, Q = _.apply(w1, T1);
|
|
15021
15028
|
}
|
|
15022
15029
|
function N1(h1) {
|
|
15023
|
-
var
|
|
15024
|
-
return c1 === void 0 ||
|
|
15030
|
+
var T1 = h1 - c1;
|
|
15031
|
+
return c1 === void 0 || T1 >= W || T1 < 0 || s1 && h1 - d1 >= Y;
|
|
15025
15032
|
}
|
|
15026
15033
|
function P1() {
|
|
15027
15034
|
var h1 = k();
|
|
15028
15035
|
if (N1(h1)) return R1(h1);
|
|
15029
|
-
X = setTimeout(P1, function(
|
|
15030
|
-
var w1 = W - (
|
|
15031
|
-
return s1 ? S(w1, Y - (
|
|
15036
|
+
X = setTimeout(P1, function(T1) {
|
|
15037
|
+
var w1 = W - (T1 - c1);
|
|
15038
|
+
return s1 ? S(w1, Y - (T1 - d1)) : w1;
|
|
15032
15039
|
}(h1));
|
|
15033
15040
|
}
|
|
15034
15041
|
function R1(h1) {
|
|
15035
15042
|
return X = void 0, y1 && q ? G1(h1) : (q = j = void 0, Q);
|
|
15036
15043
|
}
|
|
15037
15044
|
function O1() {
|
|
15038
|
-
var h1 = k(),
|
|
15039
|
-
if (q = arguments, j = this, c1 = h1,
|
|
15045
|
+
var h1 = k(), T1 = N1(h1);
|
|
15046
|
+
if (q = arguments, j = this, c1 = h1, T1) {
|
|
15040
15047
|
if (X === void 0) return function(w1) {
|
|
15041
15048
|
return d1 = w1, X = setTimeout(P1, W), o1 ? G1(w1) : Q;
|
|
15042
15049
|
}(c1);
|
|
@@ -15436,7 +15443,7 @@ var H9 = { exports: {} };
|
|
|
15436
15443
|
} }]) && y1(V.prototype, b), Object.defineProperty(V, "prototype", { writable: !1 }), V;
|
|
15437
15444
|
var V, b;
|
|
15438
15445
|
}(o().Component);
|
|
15439
|
-
const
|
|
15446
|
+
const T1 = o1(h1);
|
|
15440
15447
|
function w1(T) {
|
|
15441
15448
|
return w1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
|
|
15442
15449
|
return typeof p;
|
|
@@ -15512,7 +15519,7 @@ var H9 = { exports: {} };
|
|
|
15512
15519
|
} }, { key: "render", value: function() {
|
|
15513
15520
|
if (this.state.visible) return this.props.children;
|
|
15514
15521
|
var v = this.props, L = v.className, A = v.delayMethod, R = v.delayTime, F = v.height, z = v.placeholder, n1 = v.scrollPosition, J = v.style, t1 = v.threshold, a1 = v.useIntersectionObserver, i1 = v.width;
|
|
15515
|
-
return this.isScrollTracked || a1 && l() ? o().createElement(S, { className: L, height: F, onVisible: this.onVisible, placeholder: z, scrollPosition: n1, style: J, threshold: t1, useIntersectionObserver: a1, width: i1 }) : o().createElement(
|
|
15522
|
+
return this.isScrollTracked || a1 && l() ? o().createElement(S, { className: L, height: F, onVisible: this.onVisible, placeholder: z, scrollPosition: n1, style: J, threshold: t1, useIntersectionObserver: a1, width: i1 }) : o().createElement(T1, { className: L, delayMethod: A, delayTime: R, height: F, onVisible: this.onVisible, placeholder: z, style: J, threshold: t1, width: i1 });
|
|
15516
15523
|
} }]) && G(V.prototype, b), Object.defineProperty(V, "prototype", { writable: !1 }), V;
|
|
15517
15524
|
var V, b;
|
|
15518
15525
|
}(o().Component);
|
|
@@ -15676,18 +15683,18 @@ const G2 = "data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%
|
|
|
15676
15683
|
className: i,
|
|
15677
15684
|
thumbnailClassName: o
|
|
15678
15685
|
}) => {
|
|
15679
|
-
const [s, l] =
|
|
15680
|
-
|
|
15686
|
+
const [s, l] = S1(!1), [c, u] = S1(e ?? G2);
|
|
15687
|
+
H1(() => {
|
|
15681
15688
|
u(e ?? G2);
|
|
15682
15689
|
}, [e]);
|
|
15683
15690
|
const d = () => {
|
|
15684
15691
|
u(G2);
|
|
15685
15692
|
};
|
|
15686
|
-
return /* @__PURE__ */ a(o2, { level: "semi-dark", className: "gf-rounded-2xl h-full", children: /* @__PURE__ */ E("div", { className:
|
|
15693
|
+
return /* @__PURE__ */ a(o2, { level: "semi-dark", className: "gf-rounded-2xl h-full", children: /* @__PURE__ */ E("div", { className: L1(i, "gf-overflow-hidden gf-rounded-2xl"), children: [
|
|
15687
15694
|
/* @__PURE__ */ a(
|
|
15688
15695
|
"div",
|
|
15689
15696
|
{
|
|
15690
|
-
className:
|
|
15697
|
+
className: L1(o, `${s ? "" : "gf-filter gf-blur-md"}`),
|
|
15691
15698
|
children: /* @__PURE__ */ a(
|
|
15692
15699
|
qa.LazyLoadImage,
|
|
15693
15700
|
{
|
|
@@ -15735,7 +15742,7 @@ const G2 = "data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%
|
|
|
15735
15742
|
description: n,
|
|
15736
15743
|
chipContent: r,
|
|
15737
15744
|
logo: i
|
|
15738
|
-
}) => /* @__PURE__ */ E("div", { className:
|
|
15745
|
+
}) => /* @__PURE__ */ E("div", { className: L1(Qa({ variant: e })), children: [
|
|
15739
15746
|
/* @__PURE__ */ E("div", { className: "gf-flex gf-justify-between gf-items-center gf-mb-4", children: [
|
|
15740
15747
|
/* @__PURE__ */ E(Y1, { className: "gf-cursor-pointer gf-px-2 gf-py-1", children: [
|
|
15741
15748
|
/* @__PURE__ */ a(Y1.Logo, { children: i }),
|