@unifold/ui-web 0.1.33 → 0.1.35
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/index.js +429 -324
- package/dist/index.mjs +429 -324
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -43036,19 +43036,35 @@ var API_BASE_URL = (() => {
|
|
|
43036
43036
|
return "https://api.unifold.io";
|
|
43037
43037
|
}
|
|
43038
43038
|
})();
|
|
43039
|
-
var DEFAULT_PUBLISHABLE_KEY = "
|
|
43039
|
+
var DEFAULT_PUBLISHABLE_KEY = "";
|
|
43040
43040
|
var DEFAULT_CONFIG = {};
|
|
43041
|
+
function setApiConfig(config) {
|
|
43042
|
+
if (config.publishableKey !== void 0) {
|
|
43043
|
+
if (!config.publishableKey || config.publishableKey.trim() === "") {
|
|
43044
|
+
throw new Error(
|
|
43045
|
+
"Unifold SDK: publishableKey cannot be empty. Please provide a valid publishable key."
|
|
43046
|
+
);
|
|
43047
|
+
}
|
|
43048
|
+
if (!config.publishableKey.startsWith("pk_test_") && !config.publishableKey.startsWith("pk_live_")) {
|
|
43049
|
+
console.warn(
|
|
43050
|
+
'Unifold SDK: publishableKey should start with "pk_test_" or "pk_live_". Please ensure you are using a valid publishable key.'
|
|
43051
|
+
);
|
|
43052
|
+
}
|
|
43053
|
+
DEFAULT_PUBLISHABLE_KEY = config.publishableKey;
|
|
43054
|
+
}
|
|
43055
|
+
if (config.baseUrl) {
|
|
43056
|
+
API_BASE_URL = config.baseUrl;
|
|
43057
|
+
}
|
|
43058
|
+
if (config.defaultConfig) {
|
|
43059
|
+
DEFAULT_CONFIG = config.defaultConfig;
|
|
43060
|
+
}
|
|
43061
|
+
}
|
|
43041
43062
|
function validatePublishableKey(key) {
|
|
43042
43063
|
if (!key || key.trim() === "") {
|
|
43043
43064
|
throw new Error(
|
|
43044
43065
|
"Unifold SDK: No publishable key configured. Please provide a valid publishable key via setApiConfig() or pass it directly to the API function."
|
|
43045
43066
|
);
|
|
43046
43067
|
}
|
|
43047
|
-
if (key === "pk_test_123") {
|
|
43048
|
-
console.warn(
|
|
43049
|
-
'Unifold SDK: Using default test key "pk_test_123". This should only be used for local development. Please use a real publishable key in production.'
|
|
43050
|
-
);
|
|
43051
|
-
}
|
|
43052
43068
|
}
|
|
43053
43069
|
function getIconUrl(iconPath) {
|
|
43054
43070
|
const normalizedPath = iconPath.startsWith("/") ? iconPath : `/${iconPath}`;
|
|
@@ -48590,24 +48606,34 @@ function CurrencyModal({
|
|
|
48590
48606
|
onClose: handleClose
|
|
48591
48607
|
}
|
|
48592
48608
|
),
|
|
48593
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.
|
|
48594
|
-
|
|
48595
|
-
|
|
48596
|
-
|
|
48597
|
-
|
|
48598
|
-
|
|
48599
|
-
|
|
48600
|
-
className: "uf-w-full uf-px-4 uf-py-2.5 uf-text-sm uf-outline-none focus:uf-ring-2 focus:uf-ring-ring/30",
|
|
48601
|
-
style: {
|
|
48602
|
-
backgroundColor: components.search.backgroundColor,
|
|
48603
|
-
color: components.search.inputColor,
|
|
48604
|
-
fontFamily: fonts.regular,
|
|
48605
|
-
borderRadius: components.input.borderRadius,
|
|
48606
|
-
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
48609
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "uf-pb-2", children: [
|
|
48610
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
48611
|
+
"style",
|
|
48612
|
+
{
|
|
48613
|
+
dangerouslySetInnerHTML: {
|
|
48614
|
+
__html: `.uf-currency-modal-search::placeholder { color: ${components.search.placeholderColor}; }`
|
|
48615
|
+
}
|
|
48607
48616
|
}
|
|
48608
|
-
|
|
48609
|
-
|
|
48610
|
-
|
|
48617
|
+
),
|
|
48618
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "uf-relative", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
48619
|
+
"input",
|
|
48620
|
+
{
|
|
48621
|
+
type: "text",
|
|
48622
|
+
value: searchQuery,
|
|
48623
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
48624
|
+
placeholder: "Search",
|
|
48625
|
+
className: "uf-currency-modal-search uf-w-full uf-p-4 uf-text-sm uf-outline-none focus:uf-ring-2 focus:uf-ring-ring/30",
|
|
48626
|
+
style: {
|
|
48627
|
+
backgroundColor: components.search.backgroundColor,
|
|
48628
|
+
color: components.search.inputColor,
|
|
48629
|
+
fontFamily: fonts.regular,
|
|
48630
|
+
borderRadius: components.input.borderRadius,
|
|
48631
|
+
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
48632
|
+
}
|
|
48633
|
+
}
|
|
48634
|
+
) })
|
|
48635
|
+
] }),
|
|
48636
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "uf-flex-1 sm:uf-flex-none uf-overflow-y-auto uf-pb-4 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden sm:uf-min-h-[200px] sm:uf-max-h-[400px]", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "uf-space-y-2", children: [
|
|
48611
48637
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
48612
48638
|
CurrencyListSection,
|
|
48613
48639
|
{
|
|
@@ -49129,188 +49155,153 @@ function DepositDetailContent({ execution }) {
|
|
|
49129
49155
|
className: "uf-overflow-hidden uf-mb-3",
|
|
49130
49156
|
style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` },
|
|
49131
49157
|
children: [
|
|
49132
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49133
|
-
|
|
49134
|
-
|
|
49135
|
-
|
|
49136
|
-
|
|
49137
|
-
|
|
49138
|
-
|
|
49139
|
-
|
|
49140
|
-
|
|
49141
|
-
|
|
49142
|
-
|
|
49143
|
-
|
|
49144
|
-
|
|
49145
|
-
|
|
49146
|
-
|
|
49147
|
-
|
|
49148
|
-
|
|
49149
|
-
|
|
49150
|
-
"
|
|
49151
|
-
|
|
49152
|
-
|
|
49153
|
-
|
|
49154
|
-
|
|
49155
|
-
|
|
49156
|
-
|
|
49157
|
-
|
|
49158
|
-
|
|
49159
|
-
|
|
49160
|
-
|
|
49161
|
-
|
|
49162
|
-
|
|
49163
|
-
|
|
49164
|
-
|
|
49165
|
-
|
|
49166
|
-
|
|
49167
|
-
|
|
49168
|
-
|
|
49169
|
-
|
|
49170
|
-
|
|
49171
|
-
|
|
49172
|
-
|
|
49173
|
-
|
|
49174
|
-
|
|
49175
|
-
|
|
49176
|
-
|
|
49177
|
-
|
|
49178
|
-
|
|
49179
|
-
|
|
49180
|
-
|
|
49181
|
-
|
|
49182
|
-
|
|
49183
|
-
|
|
49184
|
-
|
|
49185
|
-
|
|
49186
|
-
|
|
49187
|
-
|
|
49188
|
-
"
|
|
49189
|
-
|
|
49190
|
-
|
|
49191
|
-
|
|
49192
|
-
|
|
49193
|
-
|
|
49194
|
-
|
|
49195
|
-
|
|
49196
|
-
|
|
49197
|
-
|
|
49198
|
-
|
|
49199
|
-
|
|
49200
|
-
|
|
49201
|
-
|
|
49202
|
-
|
|
49203
|
-
|
|
49204
|
-
|
|
49205
|
-
|
|
49206
|
-
|
|
49207
|
-
|
|
49208
|
-
|
|
49209
|
-
|
|
49210
|
-
|
|
49211
|
-
|
|
49212
|
-
|
|
49213
|
-
|
|
49214
|
-
|
|
49215
|
-
|
|
49216
|
-
|
|
49217
|
-
className: "uf-text-sm",
|
|
49218
|
-
style: {
|
|
49219
|
-
color: components.card.labelColor,
|
|
49220
|
-
fontFamily: fonts.regular
|
|
49221
|
-
},
|
|
49222
|
-
children: "USD Value"
|
|
49223
|
-
}
|
|
49224
|
-
),
|
|
49225
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49226
|
-
"span",
|
|
49227
|
-
{
|
|
49228
|
-
style: {
|
|
49229
|
-
color: components.card.titleColor,
|
|
49230
|
-
fontFamily: fonts.regular,
|
|
49231
|
-
fontSize: "14px"
|
|
49232
|
-
},
|
|
49233
|
-
children: formatUsdAmount2(
|
|
49234
|
-
execution.source_amount_usd,
|
|
49235
|
-
execution.source_amount_base_unit
|
|
49236
|
-
)
|
|
49237
|
-
}
|
|
49238
|
-
)
|
|
49239
|
-
]
|
|
49240
|
-
}
|
|
49241
|
-
),
|
|
49242
|
-
isPending && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49243
|
-
"div",
|
|
49244
|
-
{
|
|
49245
|
-
className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
|
|
49246
|
-
style: { borderColor: colors2.border },
|
|
49247
|
-
children: [
|
|
49248
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49249
|
-
"span",
|
|
49250
|
-
{
|
|
49251
|
-
className: "uf-text-sm",
|
|
49252
|
-
style: {
|
|
49253
|
-
color: components.card.labelColor,
|
|
49254
|
-
fontFamily: fonts.regular
|
|
49255
|
-
},
|
|
49256
|
-
children: "Estimated delivery time"
|
|
49257
|
-
}
|
|
49258
|
-
),
|
|
49259
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49260
|
-
"span",
|
|
49261
|
-
{
|
|
49262
|
-
style: {
|
|
49263
|
-
color: components.card.titleColor,
|
|
49264
|
-
fontFamily: fonts.regular,
|
|
49265
|
-
fontSize: "14px"
|
|
49266
|
-
},
|
|
49267
|
-
children: formatEstimatedTime(execution?.estimated_processing_time)
|
|
49268
|
-
}
|
|
49158
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49159
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49160
|
+
"span",
|
|
49161
|
+
{
|
|
49162
|
+
className: "uf-text-sm",
|
|
49163
|
+
style: {
|
|
49164
|
+
color: components.card.rowLeftLabel,
|
|
49165
|
+
fontFamily: fonts.regular
|
|
49166
|
+
},
|
|
49167
|
+
children: "Amount Sent"
|
|
49168
|
+
}
|
|
49169
|
+
),
|
|
49170
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49171
|
+
"span",
|
|
49172
|
+
{
|
|
49173
|
+
style: {
|
|
49174
|
+
color: components.card.rowRightLabel,
|
|
49175
|
+
fontFamily: fonts.regular,
|
|
49176
|
+
fontSize: "14px"
|
|
49177
|
+
},
|
|
49178
|
+
children: [
|
|
49179
|
+
formatAmount(
|
|
49180
|
+
execution.source_amount_base_unit,
|
|
49181
|
+
execution.source_token_metadata?.decimals
|
|
49182
|
+
),
|
|
49183
|
+
" ",
|
|
49184
|
+
formatCurrency(execution.source_currency)
|
|
49185
|
+
]
|
|
49186
|
+
}
|
|
49187
|
+
)
|
|
49188
|
+
] }),
|
|
49189
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49190
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49191
|
+
"span",
|
|
49192
|
+
{
|
|
49193
|
+
className: "uf-text-sm",
|
|
49194
|
+
style: {
|
|
49195
|
+
color: components.card.rowLeftLabel,
|
|
49196
|
+
fontFamily: fonts.regular
|
|
49197
|
+
},
|
|
49198
|
+
children: "Amount Received"
|
|
49199
|
+
}
|
|
49200
|
+
),
|
|
49201
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49202
|
+
"span",
|
|
49203
|
+
{
|
|
49204
|
+
style: {
|
|
49205
|
+
color: components.card.rowRightLabel,
|
|
49206
|
+
fontFamily: fonts.regular,
|
|
49207
|
+
fontSize: "14px"
|
|
49208
|
+
},
|
|
49209
|
+
children: [
|
|
49210
|
+
formatAmount(
|
|
49211
|
+
execution.destination_amount_base_unit,
|
|
49212
|
+
execution.destination_token_metadata?.decimals
|
|
49213
|
+
),
|
|
49214
|
+
" ",
|
|
49215
|
+
formatCurrency(execution.destination_currency)
|
|
49216
|
+
]
|
|
49217
|
+
}
|
|
49218
|
+
)
|
|
49219
|
+
] }),
|
|
49220
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49221
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49222
|
+
"span",
|
|
49223
|
+
{
|
|
49224
|
+
className: "uf-text-sm",
|
|
49225
|
+
style: {
|
|
49226
|
+
color: components.card.rowLeftLabel,
|
|
49227
|
+
fontFamily: fonts.regular
|
|
49228
|
+
},
|
|
49229
|
+
children: "USD Value"
|
|
49230
|
+
}
|
|
49231
|
+
),
|
|
49232
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49233
|
+
"span",
|
|
49234
|
+
{
|
|
49235
|
+
style: {
|
|
49236
|
+
color: components.card.rowRightLabel,
|
|
49237
|
+
fontFamily: fonts.regular,
|
|
49238
|
+
fontSize: "14px"
|
|
49239
|
+
},
|
|
49240
|
+
children: formatUsdAmount2(
|
|
49241
|
+
execution.source_amount_usd,
|
|
49242
|
+
execution.source_amount_base_unit
|
|
49269
49243
|
)
|
|
49270
|
-
|
|
49271
|
-
|
|
49272
|
-
),
|
|
49273
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49274
|
-
|
|
49275
|
-
|
|
49276
|
-
|
|
49277
|
-
|
|
49278
|
-
|
|
49279
|
-
|
|
49280
|
-
|
|
49281
|
-
|
|
49282
|
-
|
|
49283
|
-
|
|
49284
|
-
|
|
49285
|
-
|
|
49286
|
-
|
|
49287
|
-
|
|
49288
|
-
|
|
49289
|
-
|
|
49290
|
-
|
|
49291
|
-
"
|
|
49292
|
-
|
|
49293
|
-
|
|
49294
|
-
|
|
49295
|
-
|
|
49296
|
-
|
|
49297
|
-
|
|
49298
|
-
|
|
49299
|
-
|
|
49300
|
-
|
|
49301
|
-
|
|
49302
|
-
|
|
49244
|
+
}
|
|
49245
|
+
)
|
|
49246
|
+
] }),
|
|
49247
|
+
isPending && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49248
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49249
|
+
"span",
|
|
49250
|
+
{
|
|
49251
|
+
className: "uf-text-sm",
|
|
49252
|
+
style: {
|
|
49253
|
+
color: components.card.rowLeftLabel,
|
|
49254
|
+
fontFamily: fonts.regular
|
|
49255
|
+
},
|
|
49256
|
+
children: "Estimated delivery time"
|
|
49257
|
+
}
|
|
49258
|
+
),
|
|
49259
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49260
|
+
"span",
|
|
49261
|
+
{
|
|
49262
|
+
style: {
|
|
49263
|
+
color: components.card.rowRightLabel,
|
|
49264
|
+
fontFamily: fonts.regular,
|
|
49265
|
+
fontSize: "14px"
|
|
49266
|
+
},
|
|
49267
|
+
children: formatEstimatedTime(execution?.estimated_processing_time)
|
|
49268
|
+
}
|
|
49269
|
+
)
|
|
49270
|
+
] }),
|
|
49271
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49272
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49273
|
+
"span",
|
|
49274
|
+
{
|
|
49275
|
+
className: "uf-text-sm",
|
|
49276
|
+
style: {
|
|
49277
|
+
color: components.card.rowLeftLabel,
|
|
49278
|
+
fontFamily: fonts.regular
|
|
49279
|
+
},
|
|
49280
|
+
children: "Source Network"
|
|
49281
|
+
}
|
|
49282
|
+
),
|
|
49283
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49284
|
+
"span",
|
|
49285
|
+
{
|
|
49286
|
+
style: {
|
|
49287
|
+
color: components.card.rowRightLabel,
|
|
49288
|
+
fontFamily: fonts.regular,
|
|
49289
|
+
fontSize: "14px"
|
|
49290
|
+
},
|
|
49291
|
+
children: getNetworkName(
|
|
49292
|
+
execution.source_chain_type,
|
|
49293
|
+
execution.source_chain_id
|
|
49303
49294
|
)
|
|
49304
|
-
|
|
49305
|
-
|
|
49306
|
-
),
|
|
49295
|
+
}
|
|
49296
|
+
)
|
|
49297
|
+
] }),
|
|
49307
49298
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49308
49299
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49309
49300
|
"span",
|
|
49310
49301
|
{
|
|
49311
49302
|
className: "uf-text-sm",
|
|
49312
49303
|
style: {
|
|
49313
|
-
color: components.card.
|
|
49304
|
+
color: components.card.rowLeftLabel,
|
|
49314
49305
|
fontFamily: fonts.regular
|
|
49315
49306
|
},
|
|
49316
49307
|
children: "Destination Network"
|
|
@@ -49320,7 +49311,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49320
49311
|
"span",
|
|
49321
49312
|
{
|
|
49322
49313
|
style: {
|
|
49323
|
-
color: components.card.
|
|
49314
|
+
color: components.card.rowRightLabel,
|
|
49324
49315
|
fontFamily: fonts.regular,
|
|
49325
49316
|
fontSize: "14px"
|
|
49326
49317
|
},
|
|
@@ -49362,15 +49353,14 @@ function DepositDetailContent({ execution }) {
|
|
|
49362
49353
|
href: execution.explorer_url,
|
|
49363
49354
|
target: "_blank",
|
|
49364
49355
|
rel: "noopener noreferrer",
|
|
49365
|
-
className: "uf-grid uf-grid-cols-[auto_1fr_auto] uf-items-center uf-gap-2 uf-px-4 uf-py-3
|
|
49366
|
-
style: { borderColor: colors2.border },
|
|
49356
|
+
className: "uf-grid uf-grid-cols-[auto_1fr_auto] uf-items-center uf-gap-2 uf-px-4 uf-py-3 hover:uf-bg-card/50 uf-transition-colors",
|
|
49367
49357
|
children: [
|
|
49368
49358
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49369
49359
|
"div",
|
|
49370
49360
|
{
|
|
49371
49361
|
className: "uf-text-sm",
|
|
49372
49362
|
style: {
|
|
49373
|
-
color: components.card.
|
|
49363
|
+
color: components.card.rowLeftLabel,
|
|
49374
49364
|
fontFamily: fonts.regular
|
|
49375
49365
|
},
|
|
49376
49366
|
children: "Deposit Tx"
|
|
@@ -49381,7 +49371,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49381
49371
|
{
|
|
49382
49372
|
className: "uf-text-sm uf-text-right",
|
|
49383
49373
|
style: {
|
|
49384
|
-
color: components.card.
|
|
49374
|
+
color: components.card.rowRightLabel,
|
|
49385
49375
|
fontFamily: fonts.regular
|
|
49386
49376
|
},
|
|
49387
49377
|
children: formatTransactionHash(execution.transaction_hash)
|
|
@@ -49391,7 +49381,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49391
49381
|
ExternalLink,
|
|
49392
49382
|
{
|
|
49393
49383
|
className: "uf-w-3.5 uf-h-3.5 uf-block",
|
|
49394
|
-
style: { color: components.card.
|
|
49384
|
+
style: { color: components.card.actionIcon }
|
|
49395
49385
|
}
|
|
49396
49386
|
)
|
|
49397
49387
|
]
|
|
@@ -49410,7 +49400,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49410
49400
|
{
|
|
49411
49401
|
className: "uf-text-sm",
|
|
49412
49402
|
style: {
|
|
49413
|
-
color: components.card.
|
|
49403
|
+
color: components.card.rowLeftLabel,
|
|
49414
49404
|
fontFamily: fonts.regular
|
|
49415
49405
|
},
|
|
49416
49406
|
children: "Completion Tx"
|
|
@@ -49421,7 +49411,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49421
49411
|
{
|
|
49422
49412
|
className: "uf-text-sm uf-text-right",
|
|
49423
49413
|
style: {
|
|
49424
|
-
color: components.card.
|
|
49414
|
+
color: components.card.rowRightLabel,
|
|
49425
49415
|
fontFamily: fonts.regular
|
|
49426
49416
|
},
|
|
49427
49417
|
children: formatTransactionHash(
|
|
@@ -49433,7 +49423,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49433
49423
|
ExternalLink,
|
|
49434
49424
|
{
|
|
49435
49425
|
className: "uf-w-3.5 uf-h-3.5 uf-block",
|
|
49436
|
-
style: { color: components.card.
|
|
49426
|
+
style: { color: components.card.actionIcon }
|
|
49437
49427
|
}
|
|
49438
49428
|
)
|
|
49439
49429
|
]
|
|
@@ -50192,25 +50182,28 @@ function BuyWithCard({
|
|
|
50192
50182
|
}
|
|
50193
50183
|
}
|
|
50194
50184
|
) }) }),
|
|
50195
|
-
selectedCurrencyData?.suggested_amounts && selectedCurrencyData.suggested_amounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: selectedCurrencyData.suggested_amounts.map((quickAmount) =>
|
|
50196
|
-
|
|
50197
|
-
|
|
50198
|
-
|
|
50199
|
-
|
|
50200
|
-
|
|
50201
|
-
|
|
50202
|
-
|
|
50203
|
-
|
|
50204
|
-
|
|
50205
|
-
|
|
50185
|
+
selectedCurrencyData?.suggested_amounts && selectedCurrencyData.suggested_amounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: selectedCurrencyData.suggested_amounts.map((quickAmount) => {
|
|
50186
|
+
const isSelected = parseFloat(amount) === quickAmount;
|
|
50187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
50188
|
+
"button",
|
|
50189
|
+
{
|
|
50190
|
+
onClick: () => handleQuickAmount(quickAmount),
|
|
50191
|
+
className: "uf-w-24 uf-py-2 hover:uf-bg-accent uf-transition-colors uf-text-sm uf-font-medium",
|
|
50192
|
+
style: {
|
|
50193
|
+
backgroundColor: components.card.backgroundColor,
|
|
50194
|
+
color: components.card.titleColor,
|
|
50195
|
+
fontFamily: fonts.medium,
|
|
50196
|
+
borderRadius: components.card.borderRadius,
|
|
50197
|
+
border: `${components.card.borderWidth}px solid ${isSelected ? colors2.primary : components.card.borderColor}`
|
|
50198
|
+
},
|
|
50199
|
+
children: [
|
|
50200
|
+
getCurrencySymbol(currency),
|
|
50201
|
+
quickAmount.toLocaleString()
|
|
50202
|
+
]
|
|
50206
50203
|
},
|
|
50207
|
-
|
|
50208
|
-
|
|
50209
|
-
|
|
50210
|
-
]
|
|
50211
|
-
},
|
|
50212
|
-
quickAmount
|
|
50213
|
-
)) }),
|
|
50204
|
+
quickAmount
|
|
50205
|
+
);
|
|
50206
|
+
}) }),
|
|
50214
50207
|
amountValidationError && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50215
50208
|
"div",
|
|
50216
50209
|
{
|
|
@@ -50229,7 +50222,7 @@ function BuyWithCard({
|
|
|
50229
50222
|
"span",
|
|
50230
50223
|
{
|
|
50231
50224
|
style: {
|
|
50232
|
-
color: components.card.
|
|
50225
|
+
color: components.card.labelColor,
|
|
50233
50226
|
fontFamily: fonts.medium
|
|
50234
50227
|
},
|
|
50235
50228
|
children: "Provider"
|
|
@@ -50288,7 +50281,7 @@ function BuyWithCard({
|
|
|
50288
50281
|
{
|
|
50289
50282
|
className: "uf-text-xs uf-font-normal uf-mb-2",
|
|
50290
50283
|
style: {
|
|
50291
|
-
color: components.card.
|
|
50284
|
+
color: components.card.headerColor,
|
|
50292
50285
|
fontFamily: fonts.regular
|
|
50293
50286
|
},
|
|
50294
50287
|
children: "Auto-picked for you"
|
|
@@ -50403,8 +50396,8 @@ function BuyWithCard({
|
|
|
50403
50396
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50404
50397
|
"div",
|
|
50405
50398
|
{
|
|
50406
|
-
className: `uf-transition-all uf-duration-300 uf-min-h-[420px] ${showQuotesView && !showOnrampView ? "uf-opacity-100" : "uf-opacity-0 uf-pointer-events-none uf-absolute uf-inset-0"}`,
|
|
50407
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-space-y-2 uf-pt-2", children: sortedQuotes.map((quote, index2) => {
|
|
50399
|
+
className: `uf-transition-all uf-duration-300 uf-min-h-[420px] uf-flex uf-flex-col ${showQuotesView && !showOnrampView ? "uf-opacity-100" : "uf-opacity-0 uf-pointer-events-none uf-absolute uf-inset-0"}`,
|
|
50400
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-space-y-2 uf-pt-2 uf-pb-8 uf-overflow-y-auto uf-flex-1 uf-min-h-0", children: sortedQuotes.map((quote, index2) => {
|
|
50408
50401
|
const badges = getProviderBadges(quote, sortedQuotes);
|
|
50409
50402
|
const displayName = quote.service_provider_display_name;
|
|
50410
50403
|
const isSelected = selectedProvider?.service_provider === quote.service_provider;
|
|
@@ -50421,11 +50414,11 @@ function BuyWithCard({
|
|
|
50421
50414
|
},
|
|
50422
50415
|
onMouseEnter: () => setHoveredProviderIndex(index2),
|
|
50423
50416
|
onMouseLeave: () => setHoveredProviderIndex(null),
|
|
50424
|
-
className:
|
|
50417
|
+
className: "uf-w-full uf-transition-colors uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
|
|
50425
50418
|
style: {
|
|
50426
50419
|
backgroundColor: hoveredProviderIndex === index2 ? colors2.cardHover : components.card.backgroundColor,
|
|
50427
50420
|
borderRadius: components.card.borderRadius,
|
|
50428
|
-
border: `${components.card.borderWidth}px solid ${components.card.borderColor}`
|
|
50421
|
+
border: isSelected ? `2px solid ${colors2.primary}` : `${components.card.borderWidth}px solid ${components.card.borderColor}`
|
|
50429
50422
|
},
|
|
50430
50423
|
children: [
|
|
50431
50424
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
|
|
@@ -50452,7 +50445,8 @@ function BuyWithCard({
|
|
|
50452
50445
|
badges.map((badge, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
50453
50446
|
"span",
|
|
50454
50447
|
{
|
|
50455
|
-
className: "uf-text-[10px] uf-
|
|
50448
|
+
className: "uf-text-[10px] uf-font-normal",
|
|
50449
|
+
style: { color: colors2.success },
|
|
50456
50450
|
children: [
|
|
50457
50451
|
badge,
|
|
50458
50452
|
i < badges.length - 1 && ","
|
|
@@ -50460,8 +50454,25 @@ function BuyWithCard({
|
|
|
50460
50454
|
},
|
|
50461
50455
|
i
|
|
50462
50456
|
)),
|
|
50463
|
-
quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50464
|
-
|
|
50457
|
+
quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50458
|
+
"span",
|
|
50459
|
+
{
|
|
50460
|
+
className: "uf-text-[10px]",
|
|
50461
|
+
style: { color: components.card.subtextRightColor },
|
|
50462
|
+
children: "\u2022"
|
|
50463
|
+
}
|
|
50464
|
+
),
|
|
50465
|
+
quote.low_kyc === false && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50466
|
+
"span",
|
|
50467
|
+
{
|
|
50468
|
+
className: "uf-text-[10px] uf-font-normal",
|
|
50469
|
+
style: {
|
|
50470
|
+
color: components.card.subtextRightColor,
|
|
50471
|
+
fontFamily: fonts.regular
|
|
50472
|
+
},
|
|
50473
|
+
children: "No document upload"
|
|
50474
|
+
}
|
|
50475
|
+
)
|
|
50465
50476
|
] })
|
|
50466
50477
|
] })
|
|
50467
50478
|
] }),
|
|
@@ -50562,7 +50573,7 @@ function BuyWithCard({
|
|
|
50562
50573
|
}
|
|
50563
50574
|
)
|
|
50564
50575
|
] }),
|
|
50565
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.
|
|
50576
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.iconColor } }) }),
|
|
50566
50577
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
|
|
50567
50578
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-relative", children: [
|
|
50568
50579
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
@@ -50605,7 +50616,7 @@ function BuyWithCard({
|
|
|
50605
50616
|
}
|
|
50606
50617
|
)
|
|
50607
50618
|
] }),
|
|
50608
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.
|
|
50619
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.iconColor } }) }),
|
|
50609
50620
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
|
|
50610
50621
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-relative", children: [
|
|
50611
50622
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
@@ -51087,7 +51098,7 @@ function DepositExecutionItem({
|
|
|
51087
51098
|
{
|
|
51088
51099
|
className: "uf-font-medium uf-text-sm uf-flex-shrink-0",
|
|
51089
51100
|
style: {
|
|
51090
|
-
color: components.card.
|
|
51101
|
+
color: components.card.textRightColor,
|
|
51091
51102
|
fontFamily: fonts.medium
|
|
51092
51103
|
},
|
|
51093
51104
|
children: formatUsdAmount2(execution.source_amount_usd || "0")
|
|
@@ -51136,7 +51147,7 @@ function TransferCryptoButton({
|
|
|
51136
51147
|
Zap,
|
|
51137
51148
|
{
|
|
51138
51149
|
className: "uf-w-5 uf-h-5",
|
|
51139
|
-
style: { color:
|
|
51150
|
+
style: { color: components.card.iconColor }
|
|
51140
51151
|
}
|
|
51141
51152
|
) }),
|
|
51142
51153
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -51223,7 +51234,7 @@ function DepositWithCardButton({
|
|
|
51223
51234
|
CreditCard,
|
|
51224
51235
|
{
|
|
51225
51236
|
className: "uf-w-5 uf-h-5",
|
|
51226
|
-
style: { color:
|
|
51237
|
+
style: { color: components.card.iconColor }
|
|
51227
51238
|
}
|
|
51228
51239
|
) }),
|
|
51229
51240
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -51316,7 +51327,7 @@ function PayWithExchangeButton({
|
|
|
51316
51327
|
ArrowLeftRight,
|
|
51317
51328
|
{
|
|
51318
51329
|
className: "uf-w-5 uf-h-5",
|
|
51319
|
-
style: { color:
|
|
51330
|
+
style: { color: components.card.iconColor }
|
|
51320
51331
|
}
|
|
51321
51332
|
) }),
|
|
51322
51333
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -51403,7 +51414,7 @@ function DepositTrackerButton({
|
|
|
51403
51414
|
Clock,
|
|
51404
51415
|
{
|
|
51405
51416
|
className: "uf-w-5 uf-h-5",
|
|
51406
|
-
style: { color:
|
|
51417
|
+
style: { color: components.card.iconColor }
|
|
51407
51418
|
}
|
|
51408
51419
|
),
|
|
51409
51420
|
badge !== void 0 && badge > 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
@@ -54233,7 +54244,7 @@ function DepositsModal({
|
|
|
54233
54244
|
onClose: handleClose
|
|
54234
54245
|
}
|
|
54235
54246
|
),
|
|
54236
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-flex-1 uf-min-h-0 uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-space-y-2", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
54247
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-flex-1 uf-min-h-0 uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-space-y-2 uf-pb-8", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
54237
54248
|
"div",
|
|
54238
54249
|
{
|
|
54239
54250
|
className: "uf-text-sm",
|
|
@@ -54427,23 +54438,33 @@ function TokenSelectorSheet({
|
|
|
54427
54438
|
),
|
|
54428
54439
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "uf-w-7 uf-h-5 uf-invisible" })
|
|
54429
54440
|
] }),
|
|
54430
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.
|
|
54431
|
-
|
|
54432
|
-
|
|
54433
|
-
|
|
54434
|
-
|
|
54435
|
-
|
|
54436
|
-
|
|
54437
|
-
className: "uf-w-full uf-px-4 uf-py-2.5 uf-text-sm uf-outline-none focus:uf-ring-2 focus:uf-ring-ring/30",
|
|
54438
|
-
style: {
|
|
54439
|
-
backgroundColor: components.search.backgroundColor,
|
|
54440
|
-
color: components.search.inputColor,
|
|
54441
|
-
fontFamily: fonts.regular,
|
|
54442
|
-
borderRadius: components.input.borderRadius,
|
|
54443
|
-
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
54441
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "uf-pb-3", children: [
|
|
54442
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
54443
|
+
"style",
|
|
54444
|
+
{
|
|
54445
|
+
dangerouslySetInnerHTML: {
|
|
54446
|
+
__html: `.uf-token-sheet-search::placeholder { color: ${components.search.placeholderColor}; }`
|
|
54447
|
+
}
|
|
54444
54448
|
}
|
|
54445
|
-
|
|
54446
|
-
|
|
54449
|
+
),
|
|
54450
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
54451
|
+
"input",
|
|
54452
|
+
{
|
|
54453
|
+
type: "text",
|
|
54454
|
+
placeholder: "Search",
|
|
54455
|
+
value: searchQuery,
|
|
54456
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
54457
|
+
className: "uf-token-sheet-search uf-w-full uf-px-4 uf-py-2.5 uf-text-sm uf-outline-none focus:uf-ring-2 focus:uf-ring-ring/30",
|
|
54458
|
+
style: {
|
|
54459
|
+
backgroundColor: components.search.backgroundColor,
|
|
54460
|
+
color: components.search.inputColor,
|
|
54461
|
+
fontFamily: fonts.regular,
|
|
54462
|
+
borderRadius: components.input.borderRadius,
|
|
54463
|
+
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
54464
|
+
}
|
|
54465
|
+
}
|
|
54466
|
+
) })
|
|
54467
|
+
] }),
|
|
54447
54468
|
quickSelectOptions.length > 0 && !searchQuery && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "uf-pb-3 uf--mx-6", children: [
|
|
54448
54469
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
54449
54470
|
"div",
|
|
@@ -54695,12 +54716,13 @@ function TokenSelectorSheet({
|
|
|
54695
54716
|
style: {
|
|
54696
54717
|
fontSize: 12,
|
|
54697
54718
|
flexShrink: 0,
|
|
54698
|
-
color: components.card.labelColor,
|
|
54699
54719
|
fontFamily: fonts.regular
|
|
54700
54720
|
},
|
|
54701
54721
|
children: [
|
|
54702
|
-
"
|
|
54703
|
-
|
|
54722
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { style: { color: components.card.textRightColor }, children: [
|
|
54723
|
+
"Minimum:",
|
|
54724
|
+
" "
|
|
54725
|
+
] }),
|
|
54704
54726
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { style: { color: components.card.labelHighlightRightColor }, children: [
|
|
54705
54727
|
"$",
|
|
54706
54728
|
chain.minimum_deposit_amount_usd
|
|
@@ -54776,13 +54798,15 @@ function DepositPollingUi({
|
|
|
54776
54798
|
function DepositFooterLinks({
|
|
54777
54799
|
onGlossaryClick
|
|
54778
54800
|
}) {
|
|
54801
|
+
const { colors: colors2 } = useTheme();
|
|
54779
54802
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "uf-flex uf-justify-end uf-items-center uf-gap-2 uf-text-xs uf-text-muted-foreground", children: [
|
|
54780
54803
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
54781
54804
|
"a",
|
|
54782
54805
|
{
|
|
54783
54806
|
href: "https://unifold.io/terms",
|
|
54784
54807
|
target: "_blank",
|
|
54785
|
-
className: "uf-cursor-pointer hover:uf-
|
|
54808
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
54809
|
+
style: { color: colors2.primary },
|
|
54786
54810
|
children: "Terms"
|
|
54787
54811
|
}
|
|
54788
54812
|
),
|
|
@@ -54792,7 +54816,8 @@ function DepositFooterLinks({
|
|
|
54792
54816
|
{
|
|
54793
54817
|
href: "https://unifold.io/support",
|
|
54794
54818
|
target: "_blank",
|
|
54795
|
-
className: "uf-cursor-pointer hover:uf-
|
|
54819
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
54820
|
+
style: { color: colors2.primary },
|
|
54796
54821
|
children: "Help"
|
|
54797
54822
|
}
|
|
54798
54823
|
),
|
|
@@ -54800,8 +54825,9 @@ function DepositFooterLinks({
|
|
|
54800
54825
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
54801
54826
|
"div",
|
|
54802
54827
|
{
|
|
54803
|
-
className: "uf-cursor-pointer hover:uf-
|
|
54828
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
54804
54829
|
onClick: onGlossaryClick,
|
|
54830
|
+
style: { color: colors2.primary },
|
|
54805
54831
|
children: "Glossary"
|
|
54806
54832
|
}
|
|
54807
54833
|
)
|
|
@@ -54811,61 +54837,117 @@ var t3 = i18n2.transferCrypto;
|
|
|
54811
54837
|
function GlossaryModal({
|
|
54812
54838
|
open,
|
|
54813
54839
|
onOpenChange,
|
|
54814
|
-
|
|
54815
|
-
|
|
54840
|
+
backgroundColor: backgroundColorProp,
|
|
54841
|
+
themeClass: themeClassProp,
|
|
54842
|
+
colors: colorsProp
|
|
54816
54843
|
}) {
|
|
54844
|
+
const { themeClass, colors: colors2, components } = useTheme();
|
|
54845
|
+
const resolvedThemeClass = themeClassProp ?? themeClass;
|
|
54846
|
+
const modalBackground = backgroundColorProp ?? colors2.background;
|
|
54817
54847
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54818
54848
|
DialogContent2,
|
|
54819
54849
|
{
|
|
54820
|
-
className: `sm:uf-max-w-[400px] !uf-top-auto !uf-h-auto sm:!uf-top-[50%] uf-border-secondary uf-
|
|
54821
|
-
style: { backgroundColor:
|
|
54850
|
+
className: `sm:uf-max-w-[400px] !uf-top-auto !uf-h-auto sm:!uf-top-[50%] uf-border-secondary uf-p-0 uf-gap-0 [&>button]:uf-hidden ${resolvedThemeClass}`,
|
|
54851
|
+
style: { backgroundColor: modalBackground },
|
|
54822
54852
|
children: [
|
|
54823
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between
|
|
54824
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
54853
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-relative uf-flex uf-items-center uf-justify-between", children: [
|
|
54854
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "uf-invisible uf-w-9 uf-h-9 uf-flex uf-shrink-0 uf-items-center uf-justify-center", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(X, { className: "uf-w-4 uf-h-4" }) }),
|
|
54855
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
54856
|
+
DialogTitle2,
|
|
54857
|
+
{
|
|
54858
|
+
className: "uf-text-base uf-font-medium uf-absolute uf-left-0 uf-right-0 uf-text-center uf-pointer-events-none",
|
|
54859
|
+
style: { color: components.header.titleColor },
|
|
54860
|
+
children: "Glossary"
|
|
54861
|
+
}
|
|
54862
|
+
),
|
|
54825
54863
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
54826
54864
|
"button",
|
|
54827
54865
|
{
|
|
54828
54866
|
onClick: () => onOpenChange(false),
|
|
54829
|
-
className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-
|
|
54867
|
+
className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-flex-shrink-0 uf-z-[1]",
|
|
54868
|
+
style: { color: components.header.buttonColor },
|
|
54830
54869
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(X, { className: "uf-w-4 uf-h-4" })
|
|
54831
54870
|
}
|
|
54832
54871
|
)
|
|
54833
54872
|
] }),
|
|
54834
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-max-h-[60vh] sm:uf-max-h-[400px] uf-overflow-y-auto uf-
|
|
54835
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54836
|
-
|
|
54837
|
-
|
|
54838
|
-
|
|
54839
|
-
|
|
54840
|
-
|
|
54841
|
-
|
|
54842
|
-
|
|
54843
|
-
|
|
54844
|
-
|
|
54845
|
-
|
|
54846
|
-
|
|
54847
|
-
|
|
54848
|
-
|
|
54849
|
-
|
|
54850
|
-
|
|
54851
|
-
|
|
54852
|
-
|
|
54853
|
-
|
|
54854
|
-
|
|
54855
|
-
|
|
54856
|
-
|
|
54857
|
-
|
|
54858
|
-
|
|
54859
|
-
|
|
54860
|
-
|
|
54861
|
-
|
|
54862
|
-
|
|
54863
|
-
|
|
54864
|
-
|
|
54865
|
-
|
|
54866
|
-
|
|
54867
|
-
|
|
54868
|
-
|
|
54873
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-max-h-[60vh] sm:uf-max-h-[400px] uf-overflow-y-auto uf-pb-4 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-space-y-3", children: [
|
|
54874
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54875
|
+
"div",
|
|
54876
|
+
{
|
|
54877
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54878
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54879
|
+
children: [
|
|
54880
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Your Deposit Token" }),
|
|
54881
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.selectTokenDepositTooltip })
|
|
54882
|
+
]
|
|
54883
|
+
}
|
|
54884
|
+
),
|
|
54885
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54886
|
+
"div",
|
|
54887
|
+
{
|
|
54888
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54889
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54890
|
+
children: [
|
|
54891
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Deposit Address" }),
|
|
54892
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: "A unique wallet address generated for you. Send supported tokens to this address and they will be automatically converted and deposited into your account." })
|
|
54893
|
+
]
|
|
54894
|
+
}
|
|
54895
|
+
),
|
|
54896
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54897
|
+
"div",
|
|
54898
|
+
{
|
|
54899
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54900
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54901
|
+
children: [
|
|
54902
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Price Impact" }),
|
|
54903
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.priceImpact.tooltip })
|
|
54904
|
+
]
|
|
54905
|
+
}
|
|
54906
|
+
),
|
|
54907
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54908
|
+
"div",
|
|
54909
|
+
{
|
|
54910
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54911
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54912
|
+
children: [
|
|
54913
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Slippage" }),
|
|
54914
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.slippage.tooltip })
|
|
54915
|
+
]
|
|
54916
|
+
}
|
|
54917
|
+
),
|
|
54918
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54919
|
+
"div",
|
|
54920
|
+
{
|
|
54921
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54922
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54923
|
+
children: [
|
|
54924
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Processing Time" }),
|
|
54925
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: "The estimated time for your deposit to be confirmed and credited. This depends on the source network's block confirmation time and current congestion." })
|
|
54926
|
+
]
|
|
54927
|
+
}
|
|
54928
|
+
),
|
|
54929
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54930
|
+
"div",
|
|
54931
|
+
{
|
|
54932
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54933
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54934
|
+
children: [
|
|
54935
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Minimum Deposit" }),
|
|
54936
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.minDeposit.tooltip })
|
|
54937
|
+
]
|
|
54938
|
+
}
|
|
54939
|
+
),
|
|
54940
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54941
|
+
"div",
|
|
54942
|
+
{
|
|
54943
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54944
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54945
|
+
children: [
|
|
54946
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Recipient Address" }),
|
|
54947
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: "The destination address on the target blockchain where your converted deposit will be sent. This is typically your wallet address on the application's native chain." })
|
|
54948
|
+
]
|
|
54949
|
+
}
|
|
54950
|
+
)
|
|
54869
54951
|
] }) })
|
|
54870
54952
|
]
|
|
54871
54953
|
}
|
|
@@ -55106,7 +55188,7 @@ function TransferCryptoSingleInput({
|
|
|
55106
55188
|
className: "uf-space-y-3 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden",
|
|
55107
55189
|
style: { backgroundColor: colors2.background },
|
|
55108
55190
|
children: [
|
|
55109
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-
|
|
55191
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-mb-1 uf-flex uf-items-center uf-justify-between", style: { color: components.card.labelColor }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-flex uf-items-center uf-gap-1", children: t4.selectTokenDeposit }) }),
|
|
55110
55192
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
55111
55193
|
"button",
|
|
55112
55194
|
{
|
|
@@ -55210,7 +55292,7 @@ function TransferCryptoSingleInput({
|
|
|
55210
55292
|
] })
|
|
55211
55293
|
] }),
|
|
55212
55294
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
|
|
55213
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-
|
|
55295
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: "Intent address" }),
|
|
55214
55296
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-shadow-lg", style: { borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: loading || tokensLoading || !initialSelectionDone ? (
|
|
55215
55297
|
// QR Skeleton - matches QR code appearance
|
|
55216
55298
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
@@ -55255,7 +55337,7 @@ function TransferCryptoSingleInput({
|
|
|
55255
55337
|
}
|
|
55256
55338
|
) })
|
|
55257
55339
|
] }),
|
|
55258
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-text-sm uf-
|
|
55340
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-text-sm uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
|
|
55259
55341
|
loading || tokensLoading || !initialSelectionDone ? (
|
|
55260
55342
|
// Address skeleton
|
|
55261
55343
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
@@ -55267,12 +55349,13 @@ function TransferCryptoSingleInput({
|
|
|
55267
55349
|
}
|
|
55268
55350
|
}
|
|
55269
55351
|
)
|
|
55270
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t4.noAddressAvailable }),
|
|
55352
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", style: { color: components.card.titleColor }, children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t4.noAddressAvailable }),
|
|
55271
55353
|
depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
55272
55354
|
"span",
|
|
55273
55355
|
{
|
|
55274
55356
|
onClick: handleCopyAddress,
|
|
55275
|
-
className:
|
|
55357
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
55358
|
+
style: { color: copied ? colors2.success : components.card.actionColor },
|
|
55276
55359
|
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
55277
55360
|
}
|
|
55278
55361
|
)
|
|
@@ -55334,7 +55417,8 @@ function TransferCryptoSingleInput({
|
|
|
55334
55417
|
"span",
|
|
55335
55418
|
{
|
|
55336
55419
|
onClick: () => handleCopyRecipientAddress(recipientAddress),
|
|
55337
|
-
className:
|
|
55420
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
55421
|
+
style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
|
|
55338
55422
|
children: copiedRecipient ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
55339
55423
|
}
|
|
55340
55424
|
)
|
|
@@ -55725,7 +55809,7 @@ function TransferCryptoDoubleInput({
|
|
|
55725
55809
|
children: [
|
|
55726
55810
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-grid uf-grid-cols-2 uf-gap-2.5", children: [
|
|
55727
55811
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
|
|
55728
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-
|
|
55812
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: t5.selectedToken }),
|
|
55729
55813
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
55730
55814
|
Select2,
|
|
55731
55815
|
{
|
|
@@ -55733,7 +55817,7 @@ function TransferCryptoDoubleInput({
|
|
|
55733
55817
|
onValueChange: setToken,
|
|
55734
55818
|
disabled: tokensLoading || supportedTokens.length === 0,
|
|
55735
55819
|
children: [
|
|
55736
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-
|
|
55820
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-h-10 hover:uf-opacity-90 uf-text-foreground disabled:uf-opacity-50", style: { backgroundColor: components.card.backgroundColor, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t5.loading }) }) : selectedToken ? renderTokenItem(selectedToken) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-xs uf-font-normal", children: token }) }) }) }),
|
|
55737
55821
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", style: { border: `1px solid ${isDarkMode ? "rgba(255,255,255,0.15)" : "rgba(0,0,0,0.15)"}`, ...fonts.regular ? { "--uf-font-family": fonts.regular } : {} }, children: supportedTokens.map((tokenData) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
55738
55822
|
SelectItem2,
|
|
55739
55823
|
{
|
|
@@ -55748,7 +55832,7 @@ function TransferCryptoDoubleInput({
|
|
|
55748
55832
|
)
|
|
55749
55833
|
] }),
|
|
55750
55834
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
|
|
55751
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-xs uf-
|
|
55835
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: [
|
|
55752
55836
|
t5.selectedChain,
|
|
55753
55837
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "uf-font-medium", style: { color: components.card.labelHighlightRightColor }, children: [
|
|
55754
55838
|
"$",
|
|
@@ -55764,7 +55848,7 @@ function TransferCryptoDoubleInput({
|
|
|
55764
55848
|
onValueChange: setChain,
|
|
55765
55849
|
disabled: tokensLoading || availableChainsForToken.length === 0,
|
|
55766
55850
|
children: [
|
|
55767
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-
|
|
55851
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-h-10 hover:uf-opacity-90 uf-text-foreground disabled:uf-opacity-50", style: { backgroundColor: components.card.backgroundColor, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t5.loading }) }) : currentChainFromBackend ? renderChainItem(currentChainFromBackend) : currentChainData ? renderChainItem(currentChainData) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-xs uf-font-normal", children: chain }) }) }) }),
|
|
55768
55852
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
55769
55853
|
SelectContent2,
|
|
55770
55854
|
{
|
|
@@ -55807,7 +55891,7 @@ function TransferCryptoDoubleInput({
|
|
|
55807
55891
|
] })
|
|
55808
55892
|
] }),
|
|
55809
55893
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
|
|
55810
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-
|
|
55894
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: "Intent address" }),
|
|
55811
55895
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-shadow-lg", style: { borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: loading || tokensLoading || !initialSelectionDone ? (
|
|
55812
55896
|
// QR Skeleton - matches QR code appearance
|
|
55813
55897
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -55852,7 +55936,7 @@ function TransferCryptoDoubleInput({
|
|
|
55852
55936
|
}
|
|
55853
55937
|
) })
|
|
55854
55938
|
] }),
|
|
55855
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-sm uf-
|
|
55939
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-sm uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
|
|
55856
55940
|
loading || tokensLoading || !initialSelectionDone ? (
|
|
55857
55941
|
// Address skeleton
|
|
55858
55942
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -55864,12 +55948,13 @@ function TransferCryptoDoubleInput({
|
|
|
55864
55948
|
}
|
|
55865
55949
|
}
|
|
55866
55950
|
)
|
|
55867
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t5.noAddressAvailable }),
|
|
55951
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", style: { color: components.card.titleColor }, children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t5.noAddressAvailable }),
|
|
55868
55952
|
depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
55869
55953
|
"span",
|
|
55870
55954
|
{
|
|
55871
55955
|
onClick: handleCopyAddress,
|
|
55872
|
-
className:
|
|
55956
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
55957
|
+
style: { color: copied ? colors2.success : components.card.actionColor },
|
|
55873
55958
|
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
55874
55959
|
}
|
|
55875
55960
|
)
|
|
@@ -55931,7 +56016,8 @@ function TransferCryptoDoubleInput({
|
|
|
55931
56016
|
"span",
|
|
55932
56017
|
{
|
|
55933
56018
|
onClick: () => handleCopyRecipientAddress(recipientAddress),
|
|
55934
|
-
className:
|
|
56019
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
56020
|
+
style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
|
|
55935
56021
|
children: copiedRecipient ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
55936
56022
|
}
|
|
55937
56023
|
)
|
|
@@ -58325,7 +58411,7 @@ function DepositModal({
|
|
|
58325
58411
|
onClose: handleClose
|
|
58326
58412
|
}
|
|
58327
58413
|
),
|
|
58328
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-h-[460px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: selectedExecution ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DepositDetailContent, { execution: selectedExecution }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-space-y-2 uf-pb-
|
|
58414
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-h-[460px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: selectedExecution ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DepositDetailContent, { execution: selectedExecution }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-space-y-2 uf-pb-8", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58329
58415
|
"div",
|
|
58330
58416
|
{
|
|
58331
58417
|
className: "uf-text-sm",
|
|
@@ -58518,6 +58604,11 @@ function UnifoldProvider2({
|
|
|
58518
58604
|
null
|
|
58519
58605
|
);
|
|
58520
58606
|
const [resolvedTheme, setResolvedTheme] = import_react.default.useState("dark");
|
|
58607
|
+
(0, import_react.useEffect)(() => {
|
|
58608
|
+
if (publishableKey) {
|
|
58609
|
+
setApiConfig({ publishableKey });
|
|
58610
|
+
}
|
|
58611
|
+
}, [publishableKey]);
|
|
58521
58612
|
import_react.default.useEffect(() => {
|
|
58522
58613
|
const appearance = config?.appearance || "dark";
|
|
58523
58614
|
if (appearance === "auto") {
|
|
@@ -58534,12 +58625,16 @@ function UnifoldProvider2({
|
|
|
58534
58625
|
}
|
|
58535
58626
|
}, [config?.appearance]);
|
|
58536
58627
|
const depositPromiseRef = import_react.default.useRef(null);
|
|
58628
|
+
const depositConfigRef = import_react.default.useRef(null);
|
|
58629
|
+
depositConfigRef.current = depositConfig;
|
|
58537
58630
|
const closeTimeoutRef = import_react.default.useRef(null);
|
|
58631
|
+
const closeGuardRef = import_react.default.useRef(false);
|
|
58538
58632
|
const beginDeposit = (0, import_react.useCallback)((config2) => {
|
|
58539
58633
|
if (closeTimeoutRef.current) {
|
|
58540
58634
|
clearTimeout(closeTimeoutRef.current);
|
|
58541
58635
|
closeTimeoutRef.current = null;
|
|
58542
58636
|
}
|
|
58637
|
+
closeGuardRef.current = false;
|
|
58543
58638
|
if (depositPromiseRef.current) {
|
|
58544
58639
|
console.warn("[UnifoldProvider] A deposit is already in progress. Cancelling previous deposit.");
|
|
58545
58640
|
depositPromiseRef.current.reject({
|
|
@@ -58551,17 +58646,27 @@ function UnifoldProvider2({
|
|
|
58551
58646
|
const promise = new Promise((resolve, reject) => {
|
|
58552
58647
|
depositPromiseRef.current = { resolve, reject };
|
|
58553
58648
|
});
|
|
58649
|
+
promise.catch(() => {
|
|
58650
|
+
});
|
|
58554
58651
|
setDepositConfig(config2);
|
|
58555
58652
|
setIsOpen(true);
|
|
58556
58653
|
return promise;
|
|
58557
58654
|
}, []);
|
|
58558
58655
|
const closeDeposit = (0, import_react.useCallback)(() => {
|
|
58559
|
-
if (
|
|
58560
|
-
|
|
58656
|
+
if (closeGuardRef.current) {
|
|
58657
|
+
return;
|
|
58658
|
+
}
|
|
58659
|
+
closeGuardRef.current = true;
|
|
58660
|
+
const promiseToReject = depositPromiseRef.current;
|
|
58661
|
+
depositPromiseRef.current = null;
|
|
58662
|
+
if (depositConfigRef.current?.onClose) {
|
|
58663
|
+
depositConfigRef.current.onClose();
|
|
58664
|
+
}
|
|
58665
|
+
if (promiseToReject) {
|
|
58666
|
+
promiseToReject.reject({
|
|
58561
58667
|
message: "Deposit cancelled by user",
|
|
58562
58668
|
code: "DEPOSIT_CANCELLED"
|
|
58563
58669
|
});
|
|
58564
|
-
depositPromiseRef.current = null;
|
|
58565
58670
|
}
|
|
58566
58671
|
setIsOpen(false);
|
|
58567
58672
|
closeTimeoutRef.current = setTimeout(() => {
|