@funkit/connect 12.24.0 → 13.0.0
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/CHANGELOG.md +53 -0
- package/dist/clients/chunk-44LV4GCX.js +83 -0
- package/dist/clients/{chunk-GQINBV24.js → chunk-AJGDTTRJ.js} +1 -6
- package/dist/clients/{chunk-QS3S2PXZ.js → chunk-D6EY2WW4.js} +1 -1
- package/dist/clients/{chunk-4NWQR25X.js → chunk-JXTKKLVA.js} +55 -205
- package/dist/clients/{chunk-JBJ5FEIA.js → chunk-NNMZMHO6.js} +3 -3
- package/dist/clients/{chunk-ENWRWMKF.js → chunk-Q4JGDB4L.js} +1 -1
- package/dist/clients/{chunk-QYUAS6KD.js → chunk-T6YNXIOS.js} +1 -1
- package/dist/clients/{chunk-35XAIUH6.js → chunk-ZBBYOJWK.js} +1 -206
- package/dist/clients/{chunk-55LEL7SW.js → chunk-ZEXIDBIZ.js} +1 -1
- package/dist/clients/fanatics.css +0 -19
- package/dist/clients/fanatics.d.ts +0 -4
- package/dist/clients/fanatics.js +28 -244
- package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +19 -6
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.js +180 -28
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +4 -4
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/clients/polymarket/polymarket.js +2 -2
- package/dist/components/FunPayments/ExchangeIconCluster.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +1 -12
- package/dist/components/FunPayments/SourceExchangeIcon.d.ts +1 -1
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +1 -2
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
- package/dist/consts/centralExchange.d.ts +18 -1
- package/dist/domains/asset.d.ts +1 -1
- package/dist/domains/convert/sourceWallet.d.ts +1 -1
- package/dist/domains/convert/types.d.ts +4 -5
- package/dist/domains/feeEstimate.d.ts +1 -3
- package/dist/domains/fees.d.ts +2 -16
- package/dist/domains/paymentMethods.d.ts +4 -16
- package/dist/domains/quote.d.ts +3 -5
- package/dist/domains/quoteMode/types.d.ts +0 -5
- package/dist/domains/wallet.d.ts +0 -4
- package/dist/hooks/track/CheckoutModalEvent.d.ts +0 -4
- package/dist/hooks/track/analytics/events.d.ts +11 -11
- package/dist/hooks/track/analytics/mappers.d.ts +1 -1
- package/dist/hooks/track/analytics/swappedIframeError.d.ts +3 -0
- package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +1 -9
- package/dist/hooks/track/analytics/useTrackSwappedIframeError.d.ts +2 -0
- package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +1 -1
- package/dist/hooks/useExchangeOptions.d.ts +5 -10
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4584 -6770
- package/dist/interfaces/solanaWallet.d.ts +12 -25
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +4 -12
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +0 -3
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +3 -3
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -4
- package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +3 -4
- package/dist/modals/CheckoutModal/SelectAsset/SelectAssetList.d.ts +0 -2
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +0 -9
- package/dist/modals/CheckoutModal/stepTransition.d.ts +0 -9
- package/dist/providers/FunkitConfigContext.d.ts +1 -14
- package/dist/providers/SolanaWalletProvider.d.ts +5 -5
- package/dist/utils/checkout.d.ts +0 -7
- package/dist/utils/solanaRelayWallet.d.ts +2 -7
- package/dist/wallets/solanaWithdrawal.d.ts +5 -5
- package/dist/wallets/walletConnectors/index.js +38 -38
- package/package.json +3 -16
- package/dist/clients/chunk-CE42WHAA.js +0 -21
- package/dist/clients/chunk-TKEBGMVW.js +0 -176
- package/dist/clients/solana-transfer.d.ts +0 -1
- package/dist/clients/solana-transfer.js +0 -13
- package/dist/consts/bluvo.d.ts +0 -61
- package/dist/hooks/useBluvo.d.ts +0 -1537
- package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +0 -10
- package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +0 -17
- package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +0 -13
- package/dist/modals/CheckoutModal/Brokerage/components/BrokerageSuccess.d.ts +0 -8
- package/dist/providers/FunkitBrokerageProvider.d.ts +0 -20
- package/dist/utils/bluvo.d.ts +0 -153
package/dist/clients/fanatics.js
CHANGED
|
@@ -1,95 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
FUN_BRAND_NAME
|
|
4
|
-
} from "./chunk-CE42WHAA.js";
|
|
5
|
-
import {
|
|
6
|
-
AsyncImage,
|
|
7
3
|
Box,
|
|
8
4
|
Text,
|
|
9
5
|
preloadRemoteImages
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
useFunkitTranslation
|
|
13
|
-
} from "./chunk-55LEL7SW.js";
|
|
14
|
-
import "./chunk-35XAIUH6.js";
|
|
6
|
+
} from "./chunk-JXTKKLVA.js";
|
|
15
7
|
import "./chunk-B67ESBGC.js";
|
|
16
8
|
|
|
17
9
|
// src/clients/fanatics.tsx
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
// src/components/FunOptionBox/FunOptionBox.tsx
|
|
21
|
-
import clsx from "clsx";
|
|
22
|
-
import React, { useRef } from "react";
|
|
23
|
-
|
|
24
|
-
// src/components/FunOptionBox/FunOptionBox.css.ts
|
|
25
|
-
var funOptionBoxStyle = { baseStyle: "_1rfcluh0", compactListStyle: "_1rfcluh1", defaultBorder: "_1rsrm2f2aj _1rsrm2f2aq _1rsrm2f1s6", defaultModeNotActiveBorder: "_1rsrm2f2av _1rsrm2f2b2 _1rsrm2f1s6 _1rsrm2f1n", activeBorder: "_1rsrm2f1s1", disabledOptionBorder: "_1rsrm2f1u1", defaultBackground: "_1rsrm2f1ij _1rsrm2f122", borderedBackground: "_1rsrm2f1ip _1rsrm2f122", activeBackground: "_1rsrm2f1ij _1rsrm2f18w _1rsrm2f18x", uninteractiveBackground: "_1rsrm2f1iv" };
|
|
26
|
-
|
|
27
|
-
// src/components/FunOptionBox/FunOptionBox.tsx
|
|
28
|
-
function FunOptionBox({
|
|
29
|
-
isActive,
|
|
30
|
-
isCompactList,
|
|
31
|
-
onClick,
|
|
32
|
-
paddingX = "15",
|
|
33
|
-
paddingY = "12",
|
|
34
|
-
type = "default",
|
|
35
|
-
as = "button",
|
|
36
|
-
borderStyle = "solid",
|
|
37
|
-
borderWidth = "1",
|
|
38
|
-
borderRadius = "connectButton",
|
|
39
|
-
display = "flex",
|
|
40
|
-
alignItems = "center",
|
|
41
|
-
gap = "24",
|
|
42
|
-
justifyContent = "space-between",
|
|
43
|
-
color = "primaryText",
|
|
44
|
-
children,
|
|
45
|
-
disabled,
|
|
46
|
-
...boxProps
|
|
47
|
-
}) {
|
|
48
|
-
const isClickable = !!onClick && !disabled;
|
|
49
|
-
const ref = useRef(null);
|
|
50
|
-
return /* @__PURE__ */ React.createElement(
|
|
51
|
-
Box,
|
|
52
|
-
{
|
|
53
|
-
ref,
|
|
54
|
-
as,
|
|
55
|
-
borderStyle,
|
|
56
|
-
borderWidth: isActive ? "activeOptionBorderWidth" : borderWidth,
|
|
57
|
-
borderRadius,
|
|
58
|
-
display,
|
|
59
|
-
alignItems,
|
|
60
|
-
gap,
|
|
61
|
-
justifyContent,
|
|
62
|
-
color,
|
|
63
|
-
paddingY,
|
|
64
|
-
paddingX,
|
|
65
|
-
disabled,
|
|
66
|
-
tabIndex: isClickable ? 0 : void 0,
|
|
67
|
-
cursor: isClickable ? "pointer" : disabled ? "not-allowed" : "default",
|
|
68
|
-
style: { opacity: disabled ? 0.5 : 1 },
|
|
69
|
-
className: clsx(
|
|
70
|
-
funOptionBoxStyle.baseStyle,
|
|
71
|
-
isCompactList && funOptionBoxStyle.compactListStyle,
|
|
72
|
-
isActive ? funOptionBoxStyle.activeBorder : (
|
|
73
|
-
// Render a transparent border when the in DEFAULT mode and is not active, to prevent the pixels from shifting around when a border is applied on selection
|
|
74
|
-
type === "default" ? funOptionBoxStyle.defaultModeNotActiveBorder : funOptionBoxStyle.defaultBorder
|
|
75
|
-
),
|
|
76
|
-
disabled && funOptionBoxStyle.disabledOptionBorder,
|
|
77
|
-
isClickable ? isActive ? funOptionBoxStyle.activeBackground : type === "bordered" ? funOptionBoxStyle.borderedBackground : funOptionBoxStyle.defaultBackground : funOptionBoxStyle.uninteractiveBackground
|
|
78
|
-
),
|
|
79
|
-
onClick: isClickable ? (event) => {
|
|
80
|
-
onClick(event);
|
|
81
|
-
ref.current?.blur();
|
|
82
|
-
} : void 0,
|
|
83
|
-
...boxProps
|
|
84
|
-
},
|
|
85
|
-
children
|
|
86
|
-
);
|
|
87
|
-
}
|
|
10
|
+
import React3, { useEffect } from "react";
|
|
88
11
|
|
|
89
12
|
// src/components/Icons/BitcoinIcon.tsx
|
|
90
|
-
import
|
|
13
|
+
import React from "react";
|
|
91
14
|
var BitcoinIcon = ({ size = 16 }) => {
|
|
92
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ React.createElement(
|
|
93
16
|
"svg",
|
|
94
17
|
{
|
|
95
18
|
width: size,
|
|
@@ -98,7 +21,7 @@ var BitcoinIcon = ({ size = 16 }) => {
|
|
|
98
21
|
fill: "none",
|
|
99
22
|
xmlns: "http://www.w3.org/2000/svg"
|
|
100
23
|
},
|
|
101
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ React.createElement(
|
|
102
25
|
"path",
|
|
103
26
|
{
|
|
104
27
|
d: "M11.1467 7.04C11.6133 6.52667 11.8533 5.85333 11.76 5.12C11.6133 3.86667 10.5067 2.89333 9.24 2.89333H9.06667V1.33333H7.73333V2.89333H6.93333V1.33333H5.6V2.89333H3.33333V4.22667H4.4C4.76 4.22667 5.06667 4.53333 5.06667 4.89333V11.1067C5.06667 11.4667 4.76 11.7733 4.4 11.7733H3.33333V13.1067H5.6V14.6667H6.93333V13.1067H7.73333V14.6667H9.06667V13.1067H9.4C10.8267 13.1067 12.0533 12.0267 12.2 10.6133C12.3067 9.70667 11.9467 8.86667 11.3333 8.28C11.28 8.22667 11.2133 8.16 11.1467 8.10667V7.04ZM6.4 4.22667H9.06667C9.8 4.22667 10.4 4.82667 10.4 5.56C10.4 6.29333 9.8 6.89333 9.06667 6.89333H6.4V4.22667ZM9.4 11.7733H6.4V9.10667H9.4C10.1333 9.10667 10.7333 9.70667 10.7333 10.44C10.7333 11.1733 10.1333 11.7733 9.4 11.7733Z",
|
|
@@ -109,9 +32,9 @@ var BitcoinIcon = ({ size = 16 }) => {
|
|
|
109
32
|
};
|
|
110
33
|
|
|
111
34
|
// src/components/Icons/New/CashIcon.tsx
|
|
112
|
-
import
|
|
35
|
+
import React2 from "react";
|
|
113
36
|
var CashIcon = ({ size = 16 }) => {
|
|
114
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ React2.createElement(
|
|
115
38
|
"svg",
|
|
116
39
|
{
|
|
117
40
|
width: size,
|
|
@@ -120,7 +43,7 @@ var CashIcon = ({ size = 16 }) => {
|
|
|
120
43
|
fill: "none",
|
|
121
44
|
xmlns: "http://www.w3.org/2000/svg"
|
|
122
45
|
},
|
|
123
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ React2.createElement(
|
|
124
47
|
"path",
|
|
125
48
|
{
|
|
126
49
|
d: "M9.375 2.5a3.125 3.125 0 1 0 0 6.25 3.125 3.125 0 0 0 0-6.25m0 5a1.875 1.875 0 1 1 0-3.75 1.875 1.875 0 0 1 0 3.75m8.75-7.5H.625A.625.625 0 0 0 0 .625v10a.625.625 0 0 0 .625.625h17.5a.624.624 0 0 0 .625-.625v-10A.625.625 0 0 0 18.125 0m-3.621 10H4.246A4.44 4.44 0 0 0 1.25 7.004V4.246A4.44 4.44 0 0 0 4.246 1.25h10.258A4.43 4.43 0 0 0 17.5 4.246v2.758A4.44 4.44 0 0 0 14.504 10M17.5 2.92a3.2 3.2 0 0 1-1.67-1.67h1.67zM2.92 1.25a3.2 3.2 0 0 1-1.67 1.67V1.25zM1.25 8.33c.75.323 1.347.92 1.67 1.67H1.25zM15.83 10c.323-.75.92-1.347 1.67-1.67V10z",
|
|
@@ -137,7 +60,7 @@ var BaseBanner = ({
|
|
|
137
60
|
children,
|
|
138
61
|
...boxProps
|
|
139
62
|
}) => {
|
|
140
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ React3.createElement(Box, { ...boxProps }, /* @__PURE__ */ React3.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, /* @__PURE__ */ React3.createElement(
|
|
141
64
|
Text,
|
|
142
65
|
{
|
|
143
66
|
color: "primaryText",
|
|
@@ -148,12 +71,12 @@ var BaseBanner = ({
|
|
|
148
71
|
}
|
|
149
72
|
},
|
|
150
73
|
title
|
|
151
|
-
), description && /* @__PURE__ */
|
|
74
|
+
), description && /* @__PURE__ */ React3.createElement(Text, { color: "secondaryText", size: "14", weight: "regular" }, description)), children);
|
|
152
75
|
};
|
|
153
76
|
var VerticalBorder = ({
|
|
154
77
|
style,
|
|
155
78
|
...boxProps
|
|
156
|
-
}) => /* @__PURE__ */
|
|
79
|
+
}) => /* @__PURE__ */ React3.createElement(
|
|
157
80
|
Box,
|
|
158
81
|
{
|
|
159
82
|
as: "span",
|
|
@@ -171,7 +94,7 @@ var VerticalBorder = ({
|
|
|
171
94
|
function FanaticsSourceScreenBanner({ isNewUser = false, apy = "4.0" }) {
|
|
172
95
|
const title = isNewUser ? "CHOOSE HOW TO DEPOSIT" : "DEPOSIT";
|
|
173
96
|
const description = isNewUser ? "Add funds so you're ready when you find a market." : void 0;
|
|
174
|
-
return /* @__PURE__ */
|
|
97
|
+
return /* @__PURE__ */ React3.createElement(BaseBanner, { title, description }, !!apy && /* @__PURE__ */ React3.createElement(
|
|
175
98
|
Text,
|
|
176
99
|
{
|
|
177
100
|
color: "accentColor",
|
|
@@ -179,14 +102,14 @@ function FanaticsSourceScreenBanner({ isNewUser = false, apy = "4.0" }) {
|
|
|
179
102
|
weight: "regular",
|
|
180
103
|
style: { marginTop: "10px" }
|
|
181
104
|
},
|
|
182
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ React3.createElement(VerticalBorder, { marginRight: "8" }),
|
|
183
106
|
" Earn ",
|
|
184
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ React3.createElement("strong", null, apy, "% APY"),
|
|
185
108
|
" on your balance"
|
|
186
109
|
));
|
|
187
110
|
}
|
|
188
111
|
function FanaticsSelectTokenBanner() {
|
|
189
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ React3.createElement(
|
|
190
113
|
BaseBanner,
|
|
191
114
|
{
|
|
192
115
|
title: "SELECT TOKEN",
|
|
@@ -203,7 +126,7 @@ function FanaticsSelectBrokerageBanner() {
|
|
|
203
126
|
"https://sdk-cdn.fun.xyz/clients/fanatics/icons/lock-icon.svg"
|
|
204
127
|
);
|
|
205
128
|
}, []);
|
|
206
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ React3.createElement(
|
|
207
130
|
BaseBanner,
|
|
208
131
|
{
|
|
209
132
|
title: "CHOOSE AN EXCHANGE",
|
|
@@ -213,7 +136,7 @@ function FanaticsSelectBrokerageBanner() {
|
|
|
213
136
|
);
|
|
214
137
|
}
|
|
215
138
|
function FanaticsTransferCryptoBanner() {
|
|
216
|
-
return /* @__PURE__ */
|
|
139
|
+
return /* @__PURE__ */ React3.createElement(
|
|
217
140
|
BaseBanner,
|
|
218
141
|
{
|
|
219
142
|
title: "SEND CRYPTO",
|
|
@@ -223,7 +146,7 @@ function FanaticsTransferCryptoBanner() {
|
|
|
223
146
|
);
|
|
224
147
|
}
|
|
225
148
|
function FanaticsWithdrawalBanner() {
|
|
226
|
-
return /* @__PURE__ */
|
|
149
|
+
return /* @__PURE__ */ React3.createElement(
|
|
227
150
|
BaseBanner,
|
|
228
151
|
{
|
|
229
152
|
title: "WITHDRAW CRYPTO",
|
|
@@ -232,146 +155,8 @@ function FanaticsWithdrawalBanner() {
|
|
|
232
155
|
}
|
|
233
156
|
);
|
|
234
157
|
}
|
|
235
|
-
function FanaticsCustomConnectBrokerageScreen({
|
|
236
|
-
exchangeIcon,
|
|
237
|
-
exchangeName
|
|
238
|
-
}) {
|
|
239
|
-
const { t } = useFunkitTranslation();
|
|
240
|
-
const guarantees = useMemo(() => {
|
|
241
|
-
return [
|
|
242
|
-
{
|
|
243
|
-
title: t("brokerage.credentialsNeverStored"),
|
|
244
|
-
description: t("brokerage.dataEncrypted", {
|
|
245
|
-
appName: FUN_BRAND_NAME,
|
|
246
|
-
exchangeName
|
|
247
|
-
}),
|
|
248
|
-
icon: /* @__PURE__ */ React4.createElement(
|
|
249
|
-
AsyncImage,
|
|
250
|
-
{
|
|
251
|
-
src: "https://sdk-cdn.fun.xyz/clients/fanatics/icons/shield-icon.svg",
|
|
252
|
-
alt: "Shield Icon",
|
|
253
|
-
width: 20,
|
|
254
|
-
height: 20
|
|
255
|
-
}
|
|
256
|
-
)
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
title: t("brokerage.twoFaAlwaysRequired"),
|
|
260
|
-
description: t("brokerage.transfersRequireApproval"),
|
|
261
|
-
icon: /* @__PURE__ */ React4.createElement(
|
|
262
|
-
AsyncImage,
|
|
263
|
-
{
|
|
264
|
-
src: "https://sdk-cdn.fun.xyz/clients/fanatics/icons/lock-icon.svg",
|
|
265
|
-
alt: "Lock Icon",
|
|
266
|
-
width: 20,
|
|
267
|
-
height: 20
|
|
268
|
-
}
|
|
269
|
-
)
|
|
270
|
-
}
|
|
271
|
-
];
|
|
272
|
-
}, [exchangeName, t]);
|
|
273
|
-
return /* @__PURE__ */ React4.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React4.createElement(
|
|
274
|
-
Box,
|
|
275
|
-
{
|
|
276
|
-
display: "flex",
|
|
277
|
-
flexDirection: "column",
|
|
278
|
-
alignItems: "center",
|
|
279
|
-
textAlign: "left",
|
|
280
|
-
gap: "16"
|
|
281
|
-
},
|
|
282
|
-
/* @__PURE__ */ React4.createElement(
|
|
283
|
-
Box,
|
|
284
|
-
{
|
|
285
|
-
display: "flex",
|
|
286
|
-
flexDirection: "row",
|
|
287
|
-
alignItems: "center",
|
|
288
|
-
justifyContent: "center"
|
|
289
|
-
},
|
|
290
|
-
/* @__PURE__ */ React4.createElement(Box, { style: { marginRight: "-10px" } }, /* @__PURE__ */ React4.createElement(
|
|
291
|
-
AsyncImage,
|
|
292
|
-
{
|
|
293
|
-
src: "https://sdk-cdn.fun.xyz/clients/fanatics/fanatics-brokerage-logo.svg",
|
|
294
|
-
alt: "Fanatics Brokerage Icon",
|
|
295
|
-
width: 66,
|
|
296
|
-
height: 80
|
|
297
|
-
}
|
|
298
|
-
)),
|
|
299
|
-
/* @__PURE__ */ React4.createElement(
|
|
300
|
-
Box,
|
|
301
|
-
{
|
|
302
|
-
borderColor: "transparent",
|
|
303
|
-
borderRadius: "full",
|
|
304
|
-
borderStyle: "solid",
|
|
305
|
-
borderWidth: "4",
|
|
306
|
-
color: "primaryText",
|
|
307
|
-
overflow: "hidden"
|
|
308
|
-
},
|
|
309
|
-
exchangeIcon
|
|
310
|
-
)
|
|
311
|
-
),
|
|
312
|
-
/* @__PURE__ */ React4.createElement(
|
|
313
|
-
Box,
|
|
314
|
-
{
|
|
315
|
-
display: "flex",
|
|
316
|
-
flexDirection: "column",
|
|
317
|
-
alignItems: "flex-start",
|
|
318
|
-
textAlign: "left",
|
|
319
|
-
gap: "8",
|
|
320
|
-
width: "full"
|
|
321
|
-
},
|
|
322
|
-
/* @__PURE__ */ React4.createElement(
|
|
323
|
-
Text,
|
|
324
|
-
{
|
|
325
|
-
font: "header",
|
|
326
|
-
color: "primaryText",
|
|
327
|
-
as: "h2",
|
|
328
|
-
size: "header-36",
|
|
329
|
-
textTransform: "uppercase",
|
|
330
|
-
weight: "regular"
|
|
331
|
-
},
|
|
332
|
-
t("brokerage.thirdPartyConnectionMessageTitle", {
|
|
333
|
-
exchangeName
|
|
334
|
-
})
|
|
335
|
-
),
|
|
336
|
-
/* @__PURE__ */ React4.createElement(Text, { color: "secondaryText", size: "body", weight: "regular" }, t("brokerage.thirdPartyConnectionMessageDescription", {
|
|
337
|
-
exchangeName
|
|
338
|
-
}))
|
|
339
|
-
)
|
|
340
|
-
), /* @__PURE__ */ React4.createElement(Box, { display: "flex", flexDirection: "column" }, guarantees.map(({ description, icon, title }, index) => /* @__PURE__ */ React4.createElement(
|
|
341
|
-
FunOptionBox,
|
|
342
|
-
{
|
|
343
|
-
isCompactList: true,
|
|
344
|
-
key: index,
|
|
345
|
-
paddingX: "16",
|
|
346
|
-
paddingY: "16",
|
|
347
|
-
gap: "16"
|
|
348
|
-
},
|
|
349
|
-
/* @__PURE__ */ React4.createElement(
|
|
350
|
-
Box,
|
|
351
|
-
{
|
|
352
|
-
color: "primaryText",
|
|
353
|
-
display: "flex",
|
|
354
|
-
alignItems: "center",
|
|
355
|
-
justifyContent: "center",
|
|
356
|
-
style: { flex: "0 0 auto" },
|
|
357
|
-
width: "20"
|
|
358
|
-
},
|
|
359
|
-
icon
|
|
360
|
-
),
|
|
361
|
-
/* @__PURE__ */ React4.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React4.createElement(Text, { color: "primaryText", size: "header-14", weight: "semibold" }, title), description && /* @__PURE__ */ React4.createElement(Text, { color: "secondaryText", size: "body", weight: "regular" }, description))
|
|
362
|
-
))), /* @__PURE__ */ React4.createElement(
|
|
363
|
-
Text,
|
|
364
|
-
{
|
|
365
|
-
color: "secondaryText",
|
|
366
|
-
size: "body",
|
|
367
|
-
textAlign: "center",
|
|
368
|
-
weight: "regular"
|
|
369
|
-
},
|
|
370
|
-
t("brokerage.dataEncryptedFooter", { appName: FUN_BRAND_NAME })
|
|
371
|
-
));
|
|
372
|
-
}
|
|
373
158
|
function FanaticsWalletIcon() {
|
|
374
|
-
return /* @__PURE__ */
|
|
159
|
+
return /* @__PURE__ */ React3.createElement(
|
|
375
160
|
"svg",
|
|
376
161
|
{
|
|
377
162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -380,7 +165,7 @@ function FanaticsWalletIcon() {
|
|
|
380
165
|
viewBox: "0 0 20 20",
|
|
381
166
|
fill: "none"
|
|
382
167
|
},
|
|
383
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ React3.createElement(
|
|
384
169
|
"path",
|
|
385
170
|
{
|
|
386
171
|
d: "M13.75 11.6667H13.7583M2.5 4.16667V15.8333C2.5 16.7538 3.24619 17.5 4.16667 17.5H15.8333C16.7538 17.5 17.5 16.7538 17.5 15.8333V7.5C17.5 6.57953 16.7538 5.83333 15.8333 5.83333L4.16667 5.83333C3.24619 5.83333 2.5 5.08714 2.5 4.16667ZM2.5 4.16667C2.5 3.24619 3.24619 2.5 4.16667 2.5H14.1667M14.1667 11.6667C14.1667 11.8968 13.9801 12.0833 13.75 12.0833C13.5199 12.0833 13.3333 11.8968 13.3333 11.6667C13.3333 11.4365 13.5199 11.25 13.75 11.25C13.9801 11.25 14.1667 11.4365 14.1667 11.6667Z",
|
|
@@ -393,7 +178,7 @@ function FanaticsWalletIcon() {
|
|
|
393
178
|
);
|
|
394
179
|
}
|
|
395
180
|
function FanaticsTimeEstimateIcon() {
|
|
396
|
-
return /* @__PURE__ */
|
|
181
|
+
return /* @__PURE__ */ React3.createElement(
|
|
397
182
|
"svg",
|
|
398
183
|
{
|
|
399
184
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -402,7 +187,7 @@ function FanaticsTimeEstimateIcon() {
|
|
|
402
187
|
viewBox: "0 0 20 20",
|
|
403
188
|
fill: "none"
|
|
404
189
|
},
|
|
405
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ React3.createElement(
|
|
406
191
|
"path",
|
|
407
192
|
{
|
|
408
193
|
d: "M10 3.4375C8.51664 3.4375 7.0666 3.87737 5.83323 4.70148C4.59986 5.52559 3.63856 6.69693 3.07091 8.06737C2.50325 9.43782 2.35472 10.9458 2.64411 12.4007C2.9335 13.8555 3.64781 15.1919 4.6967 16.2408C5.7456 17.2897 7.08197 18.004 8.53683 18.2934C9.99168 18.5828 11.4997 18.4343 12.8701 17.8666C14.2406 17.2989 15.4119 16.3376 16.236 15.1043C17.0601 13.8709 17.5 12.4209 17.5 10.9375C17.4977 8.94907 16.7068 7.04274 15.3008 5.63671C13.8948 4.23068 11.9884 3.43977 10 3.4375ZM10 16.5625C8.88748 16.5625 7.79995 16.2326 6.87492 15.6145C5.94989 14.9964 5.22892 14.1179 4.80318 13.0901C4.37744 12.0623 4.26604 10.9313 4.48309 9.84012C4.70013 8.74897 5.23586 7.74669 6.02253 6.96002C6.8092 6.17335 7.81148 5.63762 8.90262 5.42058C9.99376 5.20354 11.1248 5.31493 12.1526 5.74068C13.1804 6.16642 14.0589 6.88739 14.677 7.81242C15.2951 8.73744 15.625 9.82498 15.625 10.9375C15.6233 12.4288 15.0302 13.8586 13.9757 14.9131C12.9211 15.9677 11.4913 16.5608 10 16.5625ZM12.8508 7.77422C12.9382 7.86132 13.0075 7.96481 13.0548 8.07876C13.1022 8.19272 13.1265 8.31489 13.1265 8.43828C13.1265 8.56167 13.1022 8.68384 13.0548 8.7978C13.0075 8.91175 12.9382 9.01525 12.8508 9.10234L10.6633 11.2898C10.4872 11.466 10.2483 11.5649 9.99922 11.5649C9.75015 11.5649 9.51128 11.466 9.33516 11.2898C9.15904 11.1137 9.0601 10.8749 9.0601 10.6258C9.0601 10.3767 9.15904 10.1378 9.33516 9.96172L11.5227 7.77422C11.6098 7.68682 11.7133 7.61747 11.8272 7.57015C11.9412 7.52284 12.0633 7.49848 12.1867 7.49848C12.3101 7.49848 12.4323 7.52284 12.5462 7.57015C12.6602 7.61747 12.7637 7.68682 12.8508 7.77422ZM7.1875 1.25C7.1875 1.00136 7.28628 0.762903 7.46209 0.587087C7.63791 0.411272 7.87636 0.3125 8.125 0.3125H11.875C12.1236 0.3125 12.3621 0.411272 12.5379 0.587087C12.7137 0.762903 12.8125 1.00136 12.8125 1.25C12.8125 1.49864 12.7137 1.7371 12.5379 1.91291C12.3621 2.08873 12.1236 2.1875 11.875 2.1875H8.125C7.87636 2.1875 7.63791 2.08873 7.46209 1.91291C7.28628 1.7371 7.1875 1.49864 7.1875 1.25Z",
|
|
@@ -412,7 +197,7 @@ function FanaticsTimeEstimateIcon() {
|
|
|
412
197
|
);
|
|
413
198
|
}
|
|
414
199
|
function FanaticsCircleArrowUpIcon() {
|
|
415
|
-
return /* @__PURE__ */
|
|
200
|
+
return /* @__PURE__ */ React3.createElement(
|
|
416
201
|
"svg",
|
|
417
202
|
{
|
|
418
203
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -421,7 +206,7 @@ function FanaticsCircleArrowUpIcon() {
|
|
|
421
206
|
viewBox: "0 0 20 20",
|
|
422
207
|
fill: "none"
|
|
423
208
|
},
|
|
424
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ React3.createElement("g", { clipPath: "url(#clip0_37040_20205)" }, /* @__PURE__ */ React3.createElement(
|
|
425
210
|
"path",
|
|
426
211
|
{
|
|
427
212
|
d: "M13.3337 9.99984L10.0003 6.6665M10.0003 6.6665L6.66699 9.99984M10.0003 6.6665V13.3332M18.3337 9.99984C18.3337 14.6022 14.6027 18.3332 10.0003 18.3332C5.39795 18.3332 1.66699 14.6022 1.66699 9.99984C1.66699 5.39746 5.39795 1.6665 10.0003 1.6665C14.6027 1.6665 18.3337 5.39746 18.3337 9.99984Z",
|
|
@@ -431,11 +216,11 @@ function FanaticsCircleArrowUpIcon() {
|
|
|
431
216
|
strokeLinejoin: "round"
|
|
432
217
|
}
|
|
433
218
|
)),
|
|
434
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ React3.createElement("defs", null, /* @__PURE__ */ React3.createElement("clipPath", { id: "clip0_37040_20205" }, /* @__PURE__ */ React3.createElement("rect", { width: "20", height: "20", fill: "white" })))
|
|
435
220
|
);
|
|
436
221
|
}
|
|
437
222
|
function FanaticsCircleArrowDownIcon() {
|
|
438
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ React3.createElement(
|
|
439
224
|
"svg",
|
|
440
225
|
{
|
|
441
226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -444,7 +229,7 @@ function FanaticsCircleArrowDownIcon() {
|
|
|
444
229
|
viewBox: "0 0 20 20",
|
|
445
230
|
fill: "none"
|
|
446
231
|
},
|
|
447
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ React3.createElement("g", { clipPath: "url(#clip0_37040_20217)" }, /* @__PURE__ */ React3.createElement(
|
|
448
233
|
"path",
|
|
449
234
|
{
|
|
450
235
|
d: "M13.3337 10.0002L10.0003 13.3335M10.0003 13.3335L6.66699 10.0002M10.0003 13.3335V6.66683M18.3337 10.0002C18.3337 5.39779 14.6027 1.66683 10.0003 1.66683C5.39795 1.66683 1.66699 5.39779 1.66699 10.0002C1.66699 14.6025 5.39795 18.3335 10.0003 18.3335C14.6027 18.3335 18.3337 14.6025 18.3337 10.0002Z",
|
|
@@ -454,7 +239,7 @@ function FanaticsCircleArrowDownIcon() {
|
|
|
454
239
|
strokeLinejoin: "round"
|
|
455
240
|
}
|
|
456
241
|
)),
|
|
457
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ React3.createElement("defs", null, /* @__PURE__ */ React3.createElement("clipPath", { id: "clip0_37040_20217" }, /* @__PURE__ */ React3.createElement(
|
|
458
243
|
"rect",
|
|
459
244
|
{
|
|
460
245
|
width: "20",
|
|
@@ -476,7 +261,6 @@ var FanaticsIcons = {
|
|
|
476
261
|
export {
|
|
477
262
|
FanaticsCircleArrowDownIcon,
|
|
478
263
|
FanaticsCircleArrowUpIcon,
|
|
479
|
-
FanaticsCustomConnectBrokerageScreen,
|
|
480
264
|
FanaticsIcons,
|
|
481
265
|
FanaticsSelectBrokerageBanner,
|
|
482
266
|
FanaticsSelectTokenBanner,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createNadoWithdrawalCallback
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-NNMZMHO6.js";
|
|
5
|
+
import "../../chunk-44LV4GCX.js";
|
|
6
|
+
import "../../chunk-D6EY2WW4.js";
|
|
7
7
|
import "../../chunk-LICTGZXW.js";
|
|
8
8
|
import "../../chunk-OODIKHYE.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-ZBBYOJWK.js";
|
|
10
10
|
import "../../chunk-B67ESBGC.js";
|
|
11
11
|
export {
|
|
12
12
|
createNadoWithdrawalCallback
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isExpectedNadoWithdrawalFailure,
|
|
4
4
|
toNadoWithdrawalErrorMessage
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-D6EY2WW4.js";
|
|
6
|
+
import "../../chunk-ZBBYOJWK.js";
|
|
7
7
|
export {
|
|
8
8
|
isExpectedNadoWithdrawalFailure,
|
|
9
9
|
toNadoWithdrawalErrorMessage
|
|
@@ -2,19 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isNadoWithdrawalConfig
|
|
4
4
|
} from "../../chunk-LCYJLY4X.js";
|
|
5
|
-
import {
|
|
6
|
-
PLACEHOLDER_FUNKIT_USER_INFO
|
|
7
|
-
} from "../../chunk-CE42WHAA.js";
|
|
8
5
|
import "../../chunk-PZSKO3BJ.js";
|
|
9
6
|
import {
|
|
10
7
|
useFunkitConfig
|
|
11
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-AJGDTTRJ.js";
|
|
12
9
|
import {
|
|
13
10
|
useFunkitTranslation
|
|
14
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-ZEXIDBIZ.js";
|
|
15
12
|
import "../../chunk-LICTGZXW.js";
|
|
16
13
|
import "../../chunk-2W2P3OS6.js";
|
|
17
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-ZBBYOJWK.js";
|
|
18
15
|
import {
|
|
19
16
|
logger
|
|
20
17
|
} from "../../chunk-B67ESBGC.js";
|
|
@@ -53,6 +50,22 @@ import React, {
|
|
|
53
50
|
useRef,
|
|
54
51
|
useState
|
|
55
52
|
} from "react";
|
|
53
|
+
|
|
54
|
+
// src/consts/funkit.ts
|
|
55
|
+
import { FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS } from "@funkit/chains";
|
|
56
|
+
var PLACEHOLDER_FUNKIT_USER_INFO = {
|
|
57
|
+
id: "0x",
|
|
58
|
+
address: "0x",
|
|
59
|
+
solanaAddress: void 0,
|
|
60
|
+
name: "Guest",
|
|
61
|
+
nameTruncated: "Guest",
|
|
62
|
+
type: "unknown",
|
|
63
|
+
typeLabel: "",
|
|
64
|
+
iconSrc: "",
|
|
65
|
+
isConnected: false
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
// src/providers/GeneralWalletProvider.tsx
|
|
56
69
|
var GeneralWalletContext = createContext({
|
|
57
70
|
walletAddress: "",
|
|
58
71
|
payerWallets: { evmWallet: { address: "" }, solanaWallet: void 0 },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFunkitConfig
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-AJGDTTRJ.js";
|
|
5
|
+
import "../../chunk-ZEXIDBIZ.js";
|
|
6
6
|
import {
|
|
7
7
|
useAccount
|
|
8
8
|
} from "../../chunk-2W2P3OS6.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-ZBBYOJWK.js";
|
|
10
10
|
import {
|
|
11
11
|
logger
|
|
12
12
|
} from "../../chunk-B67ESBGC.js";
|