@unifold/connect-react 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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +408 -324
- package/dist/index.mjs +410 -325
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -6072,7 +6072,7 @@ var API_BASE_URL = (() => {
|
|
|
6072
6072
|
return "https://api.unifold.io";
|
|
6073
6073
|
}
|
|
6074
6074
|
})();
|
|
6075
|
-
var DEFAULT_PUBLISHABLE_KEY = "
|
|
6075
|
+
var DEFAULT_PUBLISHABLE_KEY = "";
|
|
6076
6076
|
var DEFAULT_CONFIG = {};
|
|
6077
6077
|
function setApiConfig(config) {
|
|
6078
6078
|
if (config.publishableKey !== void 0) {
|
|
@@ -6104,11 +6104,6 @@ function validatePublishableKey(key) {
|
|
|
6104
6104
|
"Unifold SDK: No publishable key configured. Please provide a valid publishable key via setApiConfig() or pass it directly to the API function."
|
|
6105
6105
|
);
|
|
6106
6106
|
}
|
|
6107
|
-
if (key === "pk_test_123") {
|
|
6108
|
-
console.warn(
|
|
6109
|
-
'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.'
|
|
6110
|
-
);
|
|
6111
|
-
}
|
|
6112
6107
|
}
|
|
6113
6108
|
function getIconUrl(iconPath) {
|
|
6114
6109
|
const normalizedPath = iconPath.startsWith("/") ? iconPath : `/${iconPath}`;
|
|
@@ -11934,24 +11929,34 @@ function CurrencyModal({
|
|
|
11934
11929
|
onClose: handleClose
|
|
11935
11930
|
}
|
|
11936
11931
|
),
|
|
11937
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.
|
|
11938
|
-
|
|
11939
|
-
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11943
|
-
|
|
11944
|
-
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",
|
|
11945
|
-
style: {
|
|
11946
|
-
backgroundColor: components.search.backgroundColor,
|
|
11947
|
-
color: components.search.inputColor,
|
|
11948
|
-
fontFamily: fonts.regular,
|
|
11949
|
-
borderRadius: components.input.borderRadius,
|
|
11950
|
-
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
11932
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "uf-pb-2", children: [
|
|
11933
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11934
|
+
"style",
|
|
11935
|
+
{
|
|
11936
|
+
dangerouslySetInnerHTML: {
|
|
11937
|
+
__html: `.uf-currency-modal-search::placeholder { color: ${components.search.placeholderColor}; }`
|
|
11938
|
+
}
|
|
11951
11939
|
}
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
11940
|
+
),
|
|
11941
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "uf-relative", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11942
|
+
"input",
|
|
11943
|
+
{
|
|
11944
|
+
type: "text",
|
|
11945
|
+
value: searchQuery,
|
|
11946
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
11947
|
+
placeholder: "Search",
|
|
11948
|
+
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",
|
|
11949
|
+
style: {
|
|
11950
|
+
backgroundColor: components.search.backgroundColor,
|
|
11951
|
+
color: components.search.inputColor,
|
|
11952
|
+
fontFamily: fonts.regular,
|
|
11953
|
+
borderRadius: components.input.borderRadius,
|
|
11954
|
+
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
11955
|
+
}
|
|
11956
|
+
}
|
|
11957
|
+
) })
|
|
11958
|
+
] }),
|
|
11959
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.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_runtime23.jsxs)("div", { className: "uf-space-y-2", children: [
|
|
11955
11960
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11956
11961
|
CurrencyListSection,
|
|
11957
11962
|
{
|
|
@@ -12473,188 +12478,153 @@ function DepositDetailContent({ execution }) {
|
|
|
12473
12478
|
className: "uf-overflow-hidden uf-mb-3",
|
|
12474
12479
|
style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` },
|
|
12475
12480
|
children: [
|
|
12476
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
"
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
"
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
className: "uf-text-sm",
|
|
12562
|
-
style: {
|
|
12563
|
-
color: components.card.labelColor,
|
|
12564
|
-
fontFamily: fonts.regular
|
|
12565
|
-
},
|
|
12566
|
-
children: "USD Value"
|
|
12567
|
-
}
|
|
12568
|
-
),
|
|
12569
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12570
|
-
"span",
|
|
12571
|
-
{
|
|
12572
|
-
style: {
|
|
12573
|
-
color: components.card.titleColor,
|
|
12574
|
-
fontFamily: fonts.regular,
|
|
12575
|
-
fontSize: "14px"
|
|
12576
|
-
},
|
|
12577
|
-
children: formatUsdAmount2(
|
|
12578
|
-
execution.source_amount_usd,
|
|
12579
|
-
execution.source_amount_base_unit
|
|
12580
|
-
)
|
|
12581
|
-
}
|
|
12582
|
-
)
|
|
12583
|
-
]
|
|
12584
|
-
}
|
|
12585
|
-
),
|
|
12586
|
-
isPending && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
12587
|
-
"div",
|
|
12588
|
-
{
|
|
12589
|
-
className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
|
|
12590
|
-
style: { borderColor: colors2.border },
|
|
12591
|
-
children: [
|
|
12592
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12593
|
-
"span",
|
|
12594
|
-
{
|
|
12595
|
-
className: "uf-text-sm",
|
|
12596
|
-
style: {
|
|
12597
|
-
color: components.card.labelColor,
|
|
12598
|
-
fontFamily: fonts.regular
|
|
12599
|
-
},
|
|
12600
|
-
children: "Estimated delivery time"
|
|
12601
|
-
}
|
|
12602
|
-
),
|
|
12603
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12604
|
-
"span",
|
|
12605
|
-
{
|
|
12606
|
-
style: {
|
|
12607
|
-
color: components.card.titleColor,
|
|
12608
|
-
fontFamily: fonts.regular,
|
|
12609
|
-
fontSize: "14px"
|
|
12610
|
-
},
|
|
12611
|
-
children: formatEstimatedTime(execution?.estimated_processing_time)
|
|
12612
|
-
}
|
|
12481
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
12482
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12483
|
+
"span",
|
|
12484
|
+
{
|
|
12485
|
+
className: "uf-text-sm",
|
|
12486
|
+
style: {
|
|
12487
|
+
color: components.card.rowLeftLabel,
|
|
12488
|
+
fontFamily: fonts.regular
|
|
12489
|
+
},
|
|
12490
|
+
children: "Amount Sent"
|
|
12491
|
+
}
|
|
12492
|
+
),
|
|
12493
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
12494
|
+
"span",
|
|
12495
|
+
{
|
|
12496
|
+
style: {
|
|
12497
|
+
color: components.card.rowRightLabel,
|
|
12498
|
+
fontFamily: fonts.regular,
|
|
12499
|
+
fontSize: "14px"
|
|
12500
|
+
},
|
|
12501
|
+
children: [
|
|
12502
|
+
formatAmount(
|
|
12503
|
+
execution.source_amount_base_unit,
|
|
12504
|
+
execution.source_token_metadata?.decimals
|
|
12505
|
+
),
|
|
12506
|
+
" ",
|
|
12507
|
+
formatCurrency(execution.source_currency)
|
|
12508
|
+
]
|
|
12509
|
+
}
|
|
12510
|
+
)
|
|
12511
|
+
] }),
|
|
12512
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
12513
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12514
|
+
"span",
|
|
12515
|
+
{
|
|
12516
|
+
className: "uf-text-sm",
|
|
12517
|
+
style: {
|
|
12518
|
+
color: components.card.rowLeftLabel,
|
|
12519
|
+
fontFamily: fonts.regular
|
|
12520
|
+
},
|
|
12521
|
+
children: "Amount Received"
|
|
12522
|
+
}
|
|
12523
|
+
),
|
|
12524
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
12525
|
+
"span",
|
|
12526
|
+
{
|
|
12527
|
+
style: {
|
|
12528
|
+
color: components.card.rowRightLabel,
|
|
12529
|
+
fontFamily: fonts.regular,
|
|
12530
|
+
fontSize: "14px"
|
|
12531
|
+
},
|
|
12532
|
+
children: [
|
|
12533
|
+
formatAmount(
|
|
12534
|
+
execution.destination_amount_base_unit,
|
|
12535
|
+
execution.destination_token_metadata?.decimals
|
|
12536
|
+
),
|
|
12537
|
+
" ",
|
|
12538
|
+
formatCurrency(execution.destination_currency)
|
|
12539
|
+
]
|
|
12540
|
+
}
|
|
12541
|
+
)
|
|
12542
|
+
] }),
|
|
12543
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
12544
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12545
|
+
"span",
|
|
12546
|
+
{
|
|
12547
|
+
className: "uf-text-sm",
|
|
12548
|
+
style: {
|
|
12549
|
+
color: components.card.rowLeftLabel,
|
|
12550
|
+
fontFamily: fonts.regular
|
|
12551
|
+
},
|
|
12552
|
+
children: "USD Value"
|
|
12553
|
+
}
|
|
12554
|
+
),
|
|
12555
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12556
|
+
"span",
|
|
12557
|
+
{
|
|
12558
|
+
style: {
|
|
12559
|
+
color: components.card.rowRightLabel,
|
|
12560
|
+
fontFamily: fonts.regular,
|
|
12561
|
+
fontSize: "14px"
|
|
12562
|
+
},
|
|
12563
|
+
children: formatUsdAmount2(
|
|
12564
|
+
execution.source_amount_usd,
|
|
12565
|
+
execution.source_amount_base_unit
|
|
12613
12566
|
)
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
),
|
|
12617
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
"
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12567
|
+
}
|
|
12568
|
+
)
|
|
12569
|
+
] }),
|
|
12570
|
+
isPending && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
12571
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12572
|
+
"span",
|
|
12573
|
+
{
|
|
12574
|
+
className: "uf-text-sm",
|
|
12575
|
+
style: {
|
|
12576
|
+
color: components.card.rowLeftLabel,
|
|
12577
|
+
fontFamily: fonts.regular
|
|
12578
|
+
},
|
|
12579
|
+
children: "Estimated delivery time"
|
|
12580
|
+
}
|
|
12581
|
+
),
|
|
12582
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12583
|
+
"span",
|
|
12584
|
+
{
|
|
12585
|
+
style: {
|
|
12586
|
+
color: components.card.rowRightLabel,
|
|
12587
|
+
fontFamily: fonts.regular,
|
|
12588
|
+
fontSize: "14px"
|
|
12589
|
+
},
|
|
12590
|
+
children: formatEstimatedTime(execution?.estimated_processing_time)
|
|
12591
|
+
}
|
|
12592
|
+
)
|
|
12593
|
+
] }),
|
|
12594
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
12595
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12596
|
+
"span",
|
|
12597
|
+
{
|
|
12598
|
+
className: "uf-text-sm",
|
|
12599
|
+
style: {
|
|
12600
|
+
color: components.card.rowLeftLabel,
|
|
12601
|
+
fontFamily: fonts.regular
|
|
12602
|
+
},
|
|
12603
|
+
children: "Source Network"
|
|
12604
|
+
}
|
|
12605
|
+
),
|
|
12606
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12607
|
+
"span",
|
|
12608
|
+
{
|
|
12609
|
+
style: {
|
|
12610
|
+
color: components.card.rowRightLabel,
|
|
12611
|
+
fontFamily: fonts.regular,
|
|
12612
|
+
fontSize: "14px"
|
|
12613
|
+
},
|
|
12614
|
+
children: getNetworkName(
|
|
12615
|
+
execution.source_chain_type,
|
|
12616
|
+
execution.source_chain_id
|
|
12647
12617
|
)
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
),
|
|
12618
|
+
}
|
|
12619
|
+
)
|
|
12620
|
+
] }),
|
|
12651
12621
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
12652
12622
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12653
12623
|
"span",
|
|
12654
12624
|
{
|
|
12655
12625
|
className: "uf-text-sm",
|
|
12656
12626
|
style: {
|
|
12657
|
-
color: components.card.
|
|
12627
|
+
color: components.card.rowLeftLabel,
|
|
12658
12628
|
fontFamily: fonts.regular
|
|
12659
12629
|
},
|
|
12660
12630
|
children: "Destination Network"
|
|
@@ -12664,7 +12634,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12664
12634
|
"span",
|
|
12665
12635
|
{
|
|
12666
12636
|
style: {
|
|
12667
|
-
color: components.card.
|
|
12637
|
+
color: components.card.rowRightLabel,
|
|
12668
12638
|
fontFamily: fonts.regular,
|
|
12669
12639
|
fontSize: "14px"
|
|
12670
12640
|
},
|
|
@@ -12706,15 +12676,14 @@ function DepositDetailContent({ execution }) {
|
|
|
12706
12676
|
href: execution.explorer_url,
|
|
12707
12677
|
target: "_blank",
|
|
12708
12678
|
rel: "noopener noreferrer",
|
|
12709
|
-
className: "uf-grid uf-grid-cols-[auto_1fr_auto] uf-items-center uf-gap-2 uf-px-4 uf-py-3
|
|
12710
|
-
style: { borderColor: colors2.border },
|
|
12679
|
+
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",
|
|
12711
12680
|
children: [
|
|
12712
12681
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12713
12682
|
"div",
|
|
12714
12683
|
{
|
|
12715
12684
|
className: "uf-text-sm",
|
|
12716
12685
|
style: {
|
|
12717
|
-
color: components.card.
|
|
12686
|
+
color: components.card.rowLeftLabel,
|
|
12718
12687
|
fontFamily: fonts.regular
|
|
12719
12688
|
},
|
|
12720
12689
|
children: "Deposit Tx"
|
|
@@ -12725,7 +12694,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12725
12694
|
{
|
|
12726
12695
|
className: "uf-text-sm uf-text-right",
|
|
12727
12696
|
style: {
|
|
12728
|
-
color: components.card.
|
|
12697
|
+
color: components.card.rowRightLabel,
|
|
12729
12698
|
fontFamily: fonts.regular
|
|
12730
12699
|
},
|
|
12731
12700
|
children: formatTransactionHash(execution.transaction_hash)
|
|
@@ -12735,7 +12704,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12735
12704
|
ExternalLink,
|
|
12736
12705
|
{
|
|
12737
12706
|
className: "uf-w-3.5 uf-h-3.5 uf-block",
|
|
12738
|
-
style: { color: components.card.
|
|
12707
|
+
style: { color: components.card.actionIcon }
|
|
12739
12708
|
}
|
|
12740
12709
|
)
|
|
12741
12710
|
]
|
|
@@ -12754,7 +12723,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12754
12723
|
{
|
|
12755
12724
|
className: "uf-text-sm",
|
|
12756
12725
|
style: {
|
|
12757
|
-
color: components.card.
|
|
12726
|
+
color: components.card.rowLeftLabel,
|
|
12758
12727
|
fontFamily: fonts.regular
|
|
12759
12728
|
},
|
|
12760
12729
|
children: "Completion Tx"
|
|
@@ -12765,7 +12734,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12765
12734
|
{
|
|
12766
12735
|
className: "uf-text-sm uf-text-right",
|
|
12767
12736
|
style: {
|
|
12768
|
-
color: components.card.
|
|
12737
|
+
color: components.card.rowRightLabel,
|
|
12769
12738
|
fontFamily: fonts.regular
|
|
12770
12739
|
},
|
|
12771
12740
|
children: formatTransactionHash(
|
|
@@ -12777,7 +12746,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12777
12746
|
ExternalLink,
|
|
12778
12747
|
{
|
|
12779
12748
|
className: "uf-w-3.5 uf-h-3.5 uf-block",
|
|
12780
|
-
style: { color: components.card.
|
|
12749
|
+
style: { color: components.card.actionIcon }
|
|
12781
12750
|
}
|
|
12782
12751
|
)
|
|
12783
12752
|
]
|
|
@@ -13536,25 +13505,28 @@ function BuyWithCard({
|
|
|
13536
13505
|
}
|
|
13537
13506
|
}
|
|
13538
13507
|
) }) }),
|
|
13539
|
-
selectedCurrencyData?.suggested_amounts && selectedCurrencyData.suggested_amounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: selectedCurrencyData.suggested_amounts.map((quickAmount) =>
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13508
|
+
selectedCurrencyData?.suggested_amounts && selectedCurrencyData.suggested_amounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: selectedCurrencyData.suggested_amounts.map((quickAmount) => {
|
|
13509
|
+
const isSelected = parseFloat(amount) === quickAmount;
|
|
13510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
13511
|
+
"button",
|
|
13512
|
+
{
|
|
13513
|
+
onClick: () => handleQuickAmount(quickAmount),
|
|
13514
|
+
className: "uf-w-24 uf-py-2 hover:uf-bg-accent uf-transition-colors uf-text-sm uf-font-medium",
|
|
13515
|
+
style: {
|
|
13516
|
+
backgroundColor: components.card.backgroundColor,
|
|
13517
|
+
color: components.card.titleColor,
|
|
13518
|
+
fontFamily: fonts.medium,
|
|
13519
|
+
borderRadius: components.card.borderRadius,
|
|
13520
|
+
border: `${components.card.borderWidth}px solid ${isSelected ? colors2.primary : components.card.borderColor}`
|
|
13521
|
+
},
|
|
13522
|
+
children: [
|
|
13523
|
+
getCurrencySymbol(currency),
|
|
13524
|
+
quickAmount.toLocaleString()
|
|
13525
|
+
]
|
|
13550
13526
|
},
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
]
|
|
13555
|
-
},
|
|
13556
|
-
quickAmount
|
|
13557
|
-
)) }),
|
|
13527
|
+
quickAmount
|
|
13528
|
+
);
|
|
13529
|
+
}) }),
|
|
13558
13530
|
amountValidationError && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13559
13531
|
"div",
|
|
13560
13532
|
{
|
|
@@ -13573,7 +13545,7 @@ function BuyWithCard({
|
|
|
13573
13545
|
"span",
|
|
13574
13546
|
{
|
|
13575
13547
|
style: {
|
|
13576
|
-
color: components.card.
|
|
13548
|
+
color: components.card.labelColor,
|
|
13577
13549
|
fontFamily: fonts.medium
|
|
13578
13550
|
},
|
|
13579
13551
|
children: "Provider"
|
|
@@ -13632,7 +13604,7 @@ function BuyWithCard({
|
|
|
13632
13604
|
{
|
|
13633
13605
|
className: "uf-text-xs uf-font-normal uf-mb-2",
|
|
13634
13606
|
style: {
|
|
13635
|
-
color: components.card.
|
|
13607
|
+
color: components.card.headerColor,
|
|
13636
13608
|
fontFamily: fonts.regular
|
|
13637
13609
|
},
|
|
13638
13610
|
children: "Auto-picked for you"
|
|
@@ -13747,8 +13719,8 @@ function BuyWithCard({
|
|
|
13747
13719
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13748
13720
|
"div",
|
|
13749
13721
|
{
|
|
13750
|
-
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"}`,
|
|
13751
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-space-y-2 uf-pt-2", children: sortedQuotes.map((quote, index2) => {
|
|
13722
|
+
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"}`,
|
|
13723
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.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) => {
|
|
13752
13724
|
const badges = getProviderBadges(quote, sortedQuotes);
|
|
13753
13725
|
const displayName = quote.service_provider_display_name;
|
|
13754
13726
|
const isSelected = selectedProvider?.service_provider === quote.service_provider;
|
|
@@ -13765,11 +13737,11 @@ function BuyWithCard({
|
|
|
13765
13737
|
},
|
|
13766
13738
|
onMouseEnter: () => setHoveredProviderIndex(index2),
|
|
13767
13739
|
onMouseLeave: () => setHoveredProviderIndex(null),
|
|
13768
|
-
className:
|
|
13740
|
+
className: "uf-w-full uf-transition-colors uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
|
|
13769
13741
|
style: {
|
|
13770
13742
|
backgroundColor: hoveredProviderIndex === index2 ? colors2.cardHover : components.card.backgroundColor,
|
|
13771
13743
|
borderRadius: components.card.borderRadius,
|
|
13772
|
-
border: `${components.card.borderWidth}px solid ${components.card.borderColor}`
|
|
13744
|
+
border: isSelected ? `2px solid ${colors2.primary}` : `${components.card.borderWidth}px solid ${components.card.borderColor}`
|
|
13773
13745
|
},
|
|
13774
13746
|
children: [
|
|
13775
13747
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
|
|
@@ -13796,7 +13768,8 @@ function BuyWithCard({
|
|
|
13796
13768
|
badges.map((badge, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
13797
13769
|
"span",
|
|
13798
13770
|
{
|
|
13799
|
-
className: "uf-text-[10px] uf-
|
|
13771
|
+
className: "uf-text-[10px] uf-font-normal",
|
|
13772
|
+
style: { color: colors2.success },
|
|
13800
13773
|
children: [
|
|
13801
13774
|
badge,
|
|
13802
13775
|
i < badges.length - 1 && ","
|
|
@@ -13804,8 +13777,25 @@ function BuyWithCard({
|
|
|
13804
13777
|
},
|
|
13805
13778
|
i
|
|
13806
13779
|
)),
|
|
13807
|
-
quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13808
|
-
|
|
13780
|
+
quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13781
|
+
"span",
|
|
13782
|
+
{
|
|
13783
|
+
className: "uf-text-[10px]",
|
|
13784
|
+
style: { color: components.card.subtextRightColor },
|
|
13785
|
+
children: "\u2022"
|
|
13786
|
+
}
|
|
13787
|
+
),
|
|
13788
|
+
quote.low_kyc === false && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13789
|
+
"span",
|
|
13790
|
+
{
|
|
13791
|
+
className: "uf-text-[10px] uf-font-normal",
|
|
13792
|
+
style: {
|
|
13793
|
+
color: components.card.subtextRightColor,
|
|
13794
|
+
fontFamily: fonts.regular
|
|
13795
|
+
},
|
|
13796
|
+
children: "No document upload"
|
|
13797
|
+
}
|
|
13798
|
+
)
|
|
13809
13799
|
] })
|
|
13810
13800
|
] })
|
|
13811
13801
|
] }),
|
|
@@ -13906,7 +13896,7 @@ function BuyWithCard({
|
|
|
13906
13896
|
}
|
|
13907
13897
|
)
|
|
13908
13898
|
] }),
|
|
13909
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.
|
|
13899
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.iconColor } }) }),
|
|
13910
13900
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
|
|
13911
13901
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "uf-relative", children: [
|
|
13912
13902
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
@@ -13949,7 +13939,7 @@ function BuyWithCard({
|
|
|
13949
13939
|
}
|
|
13950
13940
|
)
|
|
13951
13941
|
] }),
|
|
13952
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.
|
|
13942
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.iconColor } }) }),
|
|
13953
13943
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
|
|
13954
13944
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "uf-relative", children: [
|
|
13955
13945
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
@@ -14431,7 +14421,7 @@ function DepositExecutionItem({
|
|
|
14431
14421
|
{
|
|
14432
14422
|
className: "uf-font-medium uf-text-sm uf-flex-shrink-0",
|
|
14433
14423
|
style: {
|
|
14434
|
-
color: components.card.
|
|
14424
|
+
color: components.card.textRightColor,
|
|
14435
14425
|
fontFamily: fonts.medium
|
|
14436
14426
|
},
|
|
14437
14427
|
children: formatUsdAmount2(execution.source_amount_usd || "0")
|
|
@@ -14480,7 +14470,7 @@ function TransferCryptoButton({
|
|
|
14480
14470
|
Zap,
|
|
14481
14471
|
{
|
|
14482
14472
|
className: "uf-w-5 uf-h-5",
|
|
14483
|
-
style: { color:
|
|
14473
|
+
style: { color: components.card.iconColor }
|
|
14484
14474
|
}
|
|
14485
14475
|
) }),
|
|
14486
14476
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -14567,7 +14557,7 @@ function DepositWithCardButton({
|
|
|
14567
14557
|
CreditCard,
|
|
14568
14558
|
{
|
|
14569
14559
|
className: "uf-w-5 uf-h-5",
|
|
14570
|
-
style: { color:
|
|
14560
|
+
style: { color: components.card.iconColor }
|
|
14571
14561
|
}
|
|
14572
14562
|
) }),
|
|
14573
14563
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -14660,7 +14650,7 @@ function PayWithExchangeButton({
|
|
|
14660
14650
|
ArrowLeftRight,
|
|
14661
14651
|
{
|
|
14662
14652
|
className: "uf-w-5 uf-h-5",
|
|
14663
|
-
style: { color:
|
|
14653
|
+
style: { color: components.card.iconColor }
|
|
14664
14654
|
}
|
|
14665
14655
|
) }),
|
|
14666
14656
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -14747,7 +14737,7 @@ function DepositTrackerButton({
|
|
|
14747
14737
|
Clock,
|
|
14748
14738
|
{
|
|
14749
14739
|
className: "uf-w-5 uf-h-5",
|
|
14750
|
-
style: { color:
|
|
14740
|
+
style: { color: components.card.iconColor }
|
|
14751
14741
|
}
|
|
14752
14742
|
),
|
|
14753
14743
|
badge !== void 0 && badge > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
@@ -17577,7 +17567,7 @@ function DepositsModal({
|
|
|
17577
17567
|
onClose: handleClose
|
|
17578
17568
|
}
|
|
17579
17569
|
),
|
|
17580
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.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_runtime50.jsx)("div", { className: "uf-space-y-2", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
17570
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.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_runtime50.jsx)("div", { className: "uf-space-y-2 uf-pb-8", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
17581
17571
|
"div",
|
|
17582
17572
|
{
|
|
17583
17573
|
className: "uf-text-sm",
|
|
@@ -17771,23 +17761,33 @@ function TokenSelectorSheet({
|
|
|
17771
17761
|
),
|
|
17772
17762
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "uf-w-7 uf-h-5 uf-invisible" })
|
|
17773
17763
|
] }),
|
|
17774
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.
|
|
17775
|
-
|
|
17776
|
-
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
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",
|
|
17782
|
-
style: {
|
|
17783
|
-
backgroundColor: components.search.backgroundColor,
|
|
17784
|
-
color: components.search.inputColor,
|
|
17785
|
-
fontFamily: fonts.regular,
|
|
17786
|
-
borderRadius: components.input.borderRadius,
|
|
17787
|
-
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
17764
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "uf-pb-3", children: [
|
|
17765
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
17766
|
+
"style",
|
|
17767
|
+
{
|
|
17768
|
+
dangerouslySetInnerHTML: {
|
|
17769
|
+
__html: `.uf-token-sheet-search::placeholder { color: ${components.search.placeholderColor}; }`
|
|
17770
|
+
}
|
|
17788
17771
|
}
|
|
17789
|
-
|
|
17790
|
-
|
|
17772
|
+
),
|
|
17773
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
17774
|
+
"input",
|
|
17775
|
+
{
|
|
17776
|
+
type: "text",
|
|
17777
|
+
placeholder: "Search",
|
|
17778
|
+
value: searchQuery,
|
|
17779
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
17780
|
+
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",
|
|
17781
|
+
style: {
|
|
17782
|
+
backgroundColor: components.search.backgroundColor,
|
|
17783
|
+
color: components.search.inputColor,
|
|
17784
|
+
fontFamily: fonts.regular,
|
|
17785
|
+
borderRadius: components.input.borderRadius,
|
|
17786
|
+
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
17787
|
+
}
|
|
17788
|
+
}
|
|
17789
|
+
) })
|
|
17790
|
+
] }),
|
|
17791
17791
|
quickSelectOptions.length > 0 && !searchQuery && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "uf-pb-3 uf--mx-6", children: [
|
|
17792
17792
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
17793
17793
|
"div",
|
|
@@ -18039,12 +18039,13 @@ function TokenSelectorSheet({
|
|
|
18039
18039
|
style: {
|
|
18040
18040
|
fontSize: 12,
|
|
18041
18041
|
flexShrink: 0,
|
|
18042
|
-
color: components.card.labelColor,
|
|
18043
18042
|
fontFamily: fonts.regular
|
|
18044
18043
|
},
|
|
18045
18044
|
children: [
|
|
18046
|
-
"
|
|
18047
|
-
|
|
18045
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { style: { color: components.card.textRightColor }, children: [
|
|
18046
|
+
"Minimum:",
|
|
18047
|
+
" "
|
|
18048
|
+
] }),
|
|
18048
18049
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { style: { color: components.card.labelHighlightRightColor }, children: [
|
|
18049
18050
|
"$",
|
|
18050
18051
|
chain.minimum_deposit_amount_usd
|
|
@@ -18120,13 +18121,15 @@ function DepositPollingUi({
|
|
|
18120
18121
|
function DepositFooterLinks({
|
|
18121
18122
|
onGlossaryClick
|
|
18122
18123
|
}) {
|
|
18124
|
+
const { colors: colors2 } = useTheme();
|
|
18123
18125
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-flex uf-justify-end uf-items-center uf-gap-2 uf-text-xs uf-text-muted-foreground", children: [
|
|
18124
18126
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
18125
18127
|
"a",
|
|
18126
18128
|
{
|
|
18127
18129
|
href: "https://unifold.io/terms",
|
|
18128
18130
|
target: "_blank",
|
|
18129
|
-
className: "uf-cursor-pointer hover:uf-
|
|
18131
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
18132
|
+
style: { color: colors2.primary },
|
|
18130
18133
|
children: "Terms"
|
|
18131
18134
|
}
|
|
18132
18135
|
),
|
|
@@ -18136,7 +18139,8 @@ function DepositFooterLinks({
|
|
|
18136
18139
|
{
|
|
18137
18140
|
href: "https://unifold.io/support",
|
|
18138
18141
|
target: "_blank",
|
|
18139
|
-
className: "uf-cursor-pointer hover:uf-
|
|
18142
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
18143
|
+
style: { color: colors2.primary },
|
|
18140
18144
|
children: "Help"
|
|
18141
18145
|
}
|
|
18142
18146
|
),
|
|
@@ -18144,8 +18148,9 @@ function DepositFooterLinks({
|
|
|
18144
18148
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
18145
18149
|
"div",
|
|
18146
18150
|
{
|
|
18147
|
-
className: "uf-cursor-pointer hover:uf-
|
|
18151
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
18148
18152
|
onClick: onGlossaryClick,
|
|
18153
|
+
style: { color: colors2.primary },
|
|
18149
18154
|
children: "Glossary"
|
|
18150
18155
|
}
|
|
18151
18156
|
)
|
|
@@ -18155,61 +18160,117 @@ var t3 = i18n2.transferCrypto;
|
|
|
18155
18160
|
function GlossaryModal({
|
|
18156
18161
|
open,
|
|
18157
18162
|
onOpenChange,
|
|
18158
|
-
|
|
18159
|
-
|
|
18163
|
+
backgroundColor: backgroundColorProp,
|
|
18164
|
+
themeClass: themeClassProp,
|
|
18165
|
+
colors: colorsProp
|
|
18160
18166
|
}) {
|
|
18167
|
+
const { themeClass, colors: colors2, components } = useTheme();
|
|
18168
|
+
const resolvedThemeClass = themeClassProp ?? themeClass;
|
|
18169
|
+
const modalBackground = backgroundColorProp ?? colors2.background;
|
|
18161
18170
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18162
18171
|
DialogContent2,
|
|
18163
18172
|
{
|
|
18164
|
-
className: `sm:uf-max-w-[400px] !uf-top-auto !uf-h-auto sm:!uf-top-[50%] uf-border-secondary uf-
|
|
18165
|
-
style: { backgroundColor:
|
|
18173
|
+
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}`,
|
|
18174
|
+
style: { backgroundColor: modalBackground },
|
|
18166
18175
|
children: [
|
|
18167
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between
|
|
18168
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
18176
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "uf-relative uf-flex uf-items-center uf-justify-between", children: [
|
|
18177
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsx)(X, { className: "uf-w-4 uf-h-4" }) }),
|
|
18178
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
18179
|
+
DialogTitle2,
|
|
18180
|
+
{
|
|
18181
|
+
className: "uf-text-base uf-font-medium uf-absolute uf-left-0 uf-right-0 uf-text-center uf-pointer-events-none",
|
|
18182
|
+
style: { color: components.header.titleColor },
|
|
18183
|
+
children: "Glossary"
|
|
18184
|
+
}
|
|
18185
|
+
),
|
|
18169
18186
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
18170
18187
|
"button",
|
|
18171
18188
|
{
|
|
18172
18189
|
onClick: () => onOpenChange(false),
|
|
18173
|
-
className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-
|
|
18190
|
+
className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-flex-shrink-0 uf-z-[1]",
|
|
18191
|
+
style: { color: components.header.buttonColor },
|
|
18174
18192
|
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(X, { className: "uf-w-4 uf-h-4" })
|
|
18175
18193
|
}
|
|
18176
18194
|
)
|
|
18177
18195
|
] }),
|
|
18178
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-max-h-[60vh] sm:uf-max-h-[400px] uf-overflow-y-auto uf-
|
|
18179
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
|
|
18183
|
-
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
18188
|
-
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
18193
|
-
|
|
18194
|
-
|
|
18195
|
-
|
|
18196
|
-
|
|
18197
|
-
|
|
18198
|
-
|
|
18199
|
-
|
|
18200
|
-
|
|
18201
|
-
|
|
18202
|
-
|
|
18203
|
-
|
|
18204
|
-
|
|
18205
|
-
|
|
18206
|
-
|
|
18207
|
-
|
|
18208
|
-
|
|
18209
|
-
|
|
18210
|
-
|
|
18211
|
-
|
|
18212
|
-
|
|
18196
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsxs)("div", { className: "uf-space-y-3", children: [
|
|
18197
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18198
|
+
"div",
|
|
18199
|
+
{
|
|
18200
|
+
className: "uf-rounded-xl uf-p-3",
|
|
18201
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
18202
|
+
children: [
|
|
18203
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Your Deposit Token" }),
|
|
18204
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.selectTokenDepositTooltip })
|
|
18205
|
+
]
|
|
18206
|
+
}
|
|
18207
|
+
),
|
|
18208
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18209
|
+
"div",
|
|
18210
|
+
{
|
|
18211
|
+
className: "uf-rounded-xl uf-p-3",
|
|
18212
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
18213
|
+
children: [
|
|
18214
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Deposit Address" }),
|
|
18215
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.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." })
|
|
18216
|
+
]
|
|
18217
|
+
}
|
|
18218
|
+
),
|
|
18219
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18220
|
+
"div",
|
|
18221
|
+
{
|
|
18222
|
+
className: "uf-rounded-xl uf-p-3",
|
|
18223
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
18224
|
+
children: [
|
|
18225
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Price Impact" }),
|
|
18226
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.priceImpact.tooltip })
|
|
18227
|
+
]
|
|
18228
|
+
}
|
|
18229
|
+
),
|
|
18230
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18231
|
+
"div",
|
|
18232
|
+
{
|
|
18233
|
+
className: "uf-rounded-xl uf-p-3",
|
|
18234
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
18235
|
+
children: [
|
|
18236
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Slippage" }),
|
|
18237
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.slippage.tooltip })
|
|
18238
|
+
]
|
|
18239
|
+
}
|
|
18240
|
+
),
|
|
18241
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18242
|
+
"div",
|
|
18243
|
+
{
|
|
18244
|
+
className: "uf-rounded-xl uf-p-3",
|
|
18245
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
18246
|
+
children: [
|
|
18247
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Processing Time" }),
|
|
18248
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.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." })
|
|
18249
|
+
]
|
|
18250
|
+
}
|
|
18251
|
+
),
|
|
18252
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18253
|
+
"div",
|
|
18254
|
+
{
|
|
18255
|
+
className: "uf-rounded-xl uf-p-3",
|
|
18256
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
18257
|
+
children: [
|
|
18258
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Minimum Deposit" }),
|
|
18259
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.minDeposit.tooltip })
|
|
18260
|
+
]
|
|
18261
|
+
}
|
|
18262
|
+
),
|
|
18263
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18264
|
+
"div",
|
|
18265
|
+
{
|
|
18266
|
+
className: "uf-rounded-xl uf-p-3",
|
|
18267
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
18268
|
+
children: [
|
|
18269
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Recipient Address" }),
|
|
18270
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.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." })
|
|
18271
|
+
]
|
|
18272
|
+
}
|
|
18273
|
+
)
|
|
18213
18274
|
] }) })
|
|
18214
18275
|
]
|
|
18215
18276
|
}
|
|
@@ -18450,7 +18511,7 @@ function TransferCryptoSingleInput({
|
|
|
18450
18511
|
className: "uf-space-y-3 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden",
|
|
18451
18512
|
style: { backgroundColor: colors2.background },
|
|
18452
18513
|
children: [
|
|
18453
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "uf-text-xs uf-
|
|
18514
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.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_runtime56.jsx)("div", { className: "uf-flex uf-items-center uf-gap-1", children: t4.selectTokenDeposit }) }),
|
|
18454
18515
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
18455
18516
|
"button",
|
|
18456
18517
|
{
|
|
@@ -18554,7 +18615,7 @@ function TransferCryptoSingleInput({
|
|
|
18554
18615
|
] })
|
|
18555
18616
|
] }),
|
|
18556
18617
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
|
|
18557
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "uf-text-xs uf-
|
|
18618
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.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" }),
|
|
18558
18619
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "uf-shadow-lg", style: { borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: loading || tokensLoading || !initialSelectionDone ? (
|
|
18559
18620
|
// QR Skeleton - matches QR code appearance
|
|
18560
18621
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
@@ -18599,7 +18660,7 @@ function TransferCryptoSingleInput({
|
|
|
18599
18660
|
}
|
|
18600
18661
|
) })
|
|
18601
18662
|
] }),
|
|
18602
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "uf-text-sm uf-
|
|
18663
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "uf-text-sm uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
|
|
18603
18664
|
loading || tokensLoading || !initialSelectionDone ? (
|
|
18604
18665
|
// Address skeleton
|
|
18605
18666
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
@@ -18611,12 +18672,13 @@ function TransferCryptoSingleInput({
|
|
|
18611
18672
|
}
|
|
18612
18673
|
}
|
|
18613
18674
|
)
|
|
18614
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t4.noAddressAvailable }),
|
|
18675
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.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 }),
|
|
18615
18676
|
depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
18616
18677
|
"span",
|
|
18617
18678
|
{
|
|
18618
18679
|
onClick: handleCopyAddress,
|
|
18619
|
-
className:
|
|
18680
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
18681
|
+
style: { color: copied ? colors2.success : components.card.actionColor },
|
|
18620
18682
|
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
18621
18683
|
}
|
|
18622
18684
|
)
|
|
@@ -18678,7 +18740,8 @@ function TransferCryptoSingleInput({
|
|
|
18678
18740
|
"span",
|
|
18679
18741
|
{
|
|
18680
18742
|
onClick: () => handleCopyRecipientAddress(recipientAddress),
|
|
18681
|
-
className:
|
|
18743
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
18744
|
+
style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
|
|
18682
18745
|
children: copiedRecipient ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
18683
18746
|
}
|
|
18684
18747
|
)
|
|
@@ -19069,7 +19132,7 @@ function TransferCryptoDoubleInput({
|
|
|
19069
19132
|
children: [
|
|
19070
19133
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "uf-grid uf-grid-cols-2 uf-gap-2.5", children: [
|
|
19071
19134
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
|
|
19072
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "uf-text-xs uf-
|
|
19135
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.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 }),
|
|
19073
19136
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
19074
19137
|
Select2,
|
|
19075
19138
|
{
|
|
@@ -19077,7 +19140,7 @@ function TransferCryptoDoubleInput({
|
|
|
19077
19140
|
onValueChange: setToken,
|
|
19078
19141
|
disabled: tokensLoading || supportedTokens.length === 0,
|
|
19079
19142
|
children: [
|
|
19080
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectTrigger2, { className: "uf-
|
|
19143
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t5.loading }) }) : selectedToken ? renderTokenItem(selectedToken) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "uf-text-xs uf-font-normal", children: token }) }) }) }),
|
|
19081
19144
|
/* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)(
|
|
19082
19145
|
SelectItem2,
|
|
19083
19146
|
{
|
|
@@ -19092,7 +19155,7 @@ function TransferCryptoDoubleInput({
|
|
|
19092
19155
|
)
|
|
19093
19156
|
] }),
|
|
19094
19157
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
|
|
19095
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "uf-text-xs uf-
|
|
19158
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: [
|
|
19096
19159
|
t5.selectedChain,
|
|
19097
19160
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "uf-font-medium", style: { color: components.card.labelHighlightRightColor }, children: [
|
|
19098
19161
|
"$",
|
|
@@ -19108,7 +19171,7 @@ function TransferCryptoDoubleInput({
|
|
|
19108
19171
|
onValueChange: setChain,
|
|
19109
19172
|
disabled: tokensLoading || availableChainsForToken.length === 0,
|
|
19110
19173
|
children: [
|
|
19111
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectTrigger2, { className: "uf-
|
|
19174
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "uf-text-xs uf-font-normal", children: chain }) }) }) }),
|
|
19112
19175
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
19113
19176
|
SelectContent2,
|
|
19114
19177
|
{
|
|
@@ -19151,7 +19214,7 @@ function TransferCryptoDoubleInput({
|
|
|
19151
19214
|
] })
|
|
19152
19215
|
] }),
|
|
19153
19216
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
|
|
19154
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "uf-text-xs uf-
|
|
19217
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.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" }),
|
|
19155
19218
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "uf-shadow-lg", style: { borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: loading || tokensLoading || !initialSelectionDone ? (
|
|
19156
19219
|
// QR Skeleton - matches QR code appearance
|
|
19157
19220
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
@@ -19196,7 +19259,7 @@ function TransferCryptoDoubleInput({
|
|
|
19196
19259
|
}
|
|
19197
19260
|
) })
|
|
19198
19261
|
] }),
|
|
19199
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "uf-text-sm uf-
|
|
19262
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "uf-text-sm uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
|
|
19200
19263
|
loading || tokensLoading || !initialSelectionDone ? (
|
|
19201
19264
|
// Address skeleton
|
|
19202
19265
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
@@ -19208,12 +19271,13 @@ function TransferCryptoDoubleInput({
|
|
|
19208
19271
|
}
|
|
19209
19272
|
}
|
|
19210
19273
|
)
|
|
19211
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t5.noAddressAvailable }),
|
|
19274
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime58.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 }),
|
|
19212
19275
|
depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
19213
19276
|
"span",
|
|
19214
19277
|
{
|
|
19215
19278
|
onClick: handleCopyAddress,
|
|
19216
|
-
className:
|
|
19279
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
19280
|
+
style: { color: copied ? colors2.success : components.card.actionColor },
|
|
19217
19281
|
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
19218
19282
|
}
|
|
19219
19283
|
)
|
|
@@ -19275,7 +19339,8 @@ function TransferCryptoDoubleInput({
|
|
|
19275
19339
|
"span",
|
|
19276
19340
|
{
|
|
19277
19341
|
onClick: () => handleCopyRecipientAddress(recipientAddress),
|
|
19278
|
-
className:
|
|
19342
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
19343
|
+
style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
|
|
19279
19344
|
children: copiedRecipient ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
19280
19345
|
}
|
|
19281
19346
|
)
|
|
@@ -21669,7 +21734,7 @@ function DepositModal({
|
|
|
21669
21734
|
onClose: handleClose
|
|
21670
21735
|
}
|
|
21671
21736
|
),
|
|
21672
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-h-[460px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: selectedExecution ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DepositDetailContent, { execution: selectedExecution }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-space-y-2 uf-pb-
|
|
21737
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-h-[460px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: selectedExecution ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DepositDetailContent, { execution: selectedExecution }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-space-y-2 uf-pb-8", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21673
21738
|
"div",
|
|
21674
21739
|
{
|
|
21675
21740
|
className: "uf-text-sm",
|
|
@@ -21865,6 +21930,11 @@ function UnifoldProvider2({
|
|
|
21865
21930
|
null
|
|
21866
21931
|
);
|
|
21867
21932
|
const [resolvedTheme, setResolvedTheme] = import_react24.default.useState("dark");
|
|
21933
|
+
(0, import_react24.useEffect)(() => {
|
|
21934
|
+
if (publishableKey) {
|
|
21935
|
+
setApiConfig({ publishableKey });
|
|
21936
|
+
}
|
|
21937
|
+
}, [publishableKey]);
|
|
21868
21938
|
import_react24.default.useEffect(() => {
|
|
21869
21939
|
const appearance = config?.appearance || "dark";
|
|
21870
21940
|
if (appearance === "auto") {
|
|
@@ -21881,12 +21951,16 @@ function UnifoldProvider2({
|
|
|
21881
21951
|
}
|
|
21882
21952
|
}, [config?.appearance]);
|
|
21883
21953
|
const depositPromiseRef = import_react24.default.useRef(null);
|
|
21954
|
+
const depositConfigRef = import_react24.default.useRef(null);
|
|
21955
|
+
depositConfigRef.current = depositConfig;
|
|
21884
21956
|
const closeTimeoutRef = import_react24.default.useRef(null);
|
|
21957
|
+
const closeGuardRef = import_react24.default.useRef(false);
|
|
21885
21958
|
const beginDeposit = (0, import_react24.useCallback)((config2) => {
|
|
21886
21959
|
if (closeTimeoutRef.current) {
|
|
21887
21960
|
clearTimeout(closeTimeoutRef.current);
|
|
21888
21961
|
closeTimeoutRef.current = null;
|
|
21889
21962
|
}
|
|
21963
|
+
closeGuardRef.current = false;
|
|
21890
21964
|
if (depositPromiseRef.current) {
|
|
21891
21965
|
console.warn("[UnifoldProvider] A deposit is already in progress. Cancelling previous deposit.");
|
|
21892
21966
|
depositPromiseRef.current.reject({
|
|
@@ -21898,17 +21972,27 @@ function UnifoldProvider2({
|
|
|
21898
21972
|
const promise = new Promise((resolve, reject) => {
|
|
21899
21973
|
depositPromiseRef.current = { resolve, reject };
|
|
21900
21974
|
});
|
|
21975
|
+
promise.catch(() => {
|
|
21976
|
+
});
|
|
21901
21977
|
setDepositConfig(config2);
|
|
21902
21978
|
setIsOpen(true);
|
|
21903
21979
|
return promise;
|
|
21904
21980
|
}, []);
|
|
21905
21981
|
const closeDeposit = (0, import_react24.useCallback)(() => {
|
|
21906
|
-
if (
|
|
21907
|
-
|
|
21982
|
+
if (closeGuardRef.current) {
|
|
21983
|
+
return;
|
|
21984
|
+
}
|
|
21985
|
+
closeGuardRef.current = true;
|
|
21986
|
+
const promiseToReject = depositPromiseRef.current;
|
|
21987
|
+
depositPromiseRef.current = null;
|
|
21988
|
+
if (depositConfigRef.current?.onClose) {
|
|
21989
|
+
depositConfigRef.current.onClose();
|
|
21990
|
+
}
|
|
21991
|
+
if (promiseToReject) {
|
|
21992
|
+
promiseToReject.reject({
|
|
21908
21993
|
message: "Deposit cancelled by user",
|
|
21909
21994
|
code: "DEPOSIT_CANCELLED"
|
|
21910
21995
|
});
|
|
21911
|
-
depositPromiseRef.current = null;
|
|
21912
21996
|
}
|
|
21913
21997
|
setIsOpen(false);
|
|
21914
21998
|
closeTimeoutRef.current = setTimeout(() => {
|