@unifold/connect-react 0.1.34 → 0.1.36
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/README.md +11 -0
- package/dist/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +518 -408
- package/dist/index.mjs +526 -409
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -11929,24 +11929,34 @@ function CurrencyModal({
|
|
|
11929
11929
|
onClose: handleClose
|
|
11930
11930
|
}
|
|
11931
11931
|
),
|
|
11932
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.
|
|
11933
|
-
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
11939
|
-
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",
|
|
11940
|
-
style: {
|
|
11941
|
-
backgroundColor: components.search.backgroundColor,
|
|
11942
|
-
color: components.search.inputColor,
|
|
11943
|
-
fontFamily: fonts.regular,
|
|
11944
|
-
borderRadius: components.input.borderRadius,
|
|
11945
|
-
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
|
+
}
|
|
11946
11939
|
}
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
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: [
|
|
11950
11960
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11951
11961
|
CurrencyListSection,
|
|
11952
11962
|
{
|
|
@@ -12468,188 +12478,153 @@ function DepositDetailContent({ execution }) {
|
|
|
12468
12478
|
className: "uf-overflow-hidden uf-mb-3",
|
|
12469
12479
|
style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` },
|
|
12470
12480
|
children: [
|
|
12471
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
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
|
-
className: "uf-text-sm",
|
|
12557
|
-
style: {
|
|
12558
|
-
color: components.card.labelColor,
|
|
12559
|
-
fontFamily: fonts.regular
|
|
12560
|
-
},
|
|
12561
|
-
children: "USD Value"
|
|
12562
|
-
}
|
|
12563
|
-
),
|
|
12564
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12565
|
-
"span",
|
|
12566
|
-
{
|
|
12567
|
-
style: {
|
|
12568
|
-
color: components.card.titleColor,
|
|
12569
|
-
fontFamily: fonts.regular,
|
|
12570
|
-
fontSize: "14px"
|
|
12571
|
-
},
|
|
12572
|
-
children: formatUsdAmount2(
|
|
12573
|
-
execution.source_amount_usd,
|
|
12574
|
-
execution.source_amount_base_unit
|
|
12575
|
-
)
|
|
12576
|
-
}
|
|
12577
|
-
)
|
|
12578
|
-
]
|
|
12579
|
-
}
|
|
12580
|
-
),
|
|
12581
|
-
isPending && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
12582
|
-
"div",
|
|
12583
|
-
{
|
|
12584
|
-
className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
|
|
12585
|
-
style: { borderColor: colors2.border },
|
|
12586
|
-
children: [
|
|
12587
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12588
|
-
"span",
|
|
12589
|
-
{
|
|
12590
|
-
className: "uf-text-sm",
|
|
12591
|
-
style: {
|
|
12592
|
-
color: components.card.labelColor,
|
|
12593
|
-
fontFamily: fonts.regular
|
|
12594
|
-
},
|
|
12595
|
-
children: "Estimated delivery time"
|
|
12596
|
-
}
|
|
12597
|
-
),
|
|
12598
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12599
|
-
"span",
|
|
12600
|
-
{
|
|
12601
|
-
style: {
|
|
12602
|
-
color: components.card.titleColor,
|
|
12603
|
-
fontFamily: fonts.regular,
|
|
12604
|
-
fontSize: "14px"
|
|
12605
|
-
},
|
|
12606
|
-
children: formatEstimatedTime(execution?.estimated_processing_time)
|
|
12607
|
-
}
|
|
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
|
|
12608
12566
|
)
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
),
|
|
12612
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
"
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
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
|
|
12642
12617
|
)
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
),
|
|
12618
|
+
}
|
|
12619
|
+
)
|
|
12620
|
+
] }),
|
|
12646
12621
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
12647
12622
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12648
12623
|
"span",
|
|
12649
12624
|
{
|
|
12650
12625
|
className: "uf-text-sm",
|
|
12651
12626
|
style: {
|
|
12652
|
-
color: components.card.
|
|
12627
|
+
color: components.card.rowLeftLabel,
|
|
12653
12628
|
fontFamily: fonts.regular
|
|
12654
12629
|
},
|
|
12655
12630
|
children: "Destination Network"
|
|
@@ -12659,7 +12634,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12659
12634
|
"span",
|
|
12660
12635
|
{
|
|
12661
12636
|
style: {
|
|
12662
|
-
color: components.card.
|
|
12637
|
+
color: components.card.rowRightLabel,
|
|
12663
12638
|
fontFamily: fonts.regular,
|
|
12664
12639
|
fontSize: "14px"
|
|
12665
12640
|
},
|
|
@@ -12701,15 +12676,14 @@ function DepositDetailContent({ execution }) {
|
|
|
12701
12676
|
href: execution.explorer_url,
|
|
12702
12677
|
target: "_blank",
|
|
12703
12678
|
rel: "noopener noreferrer",
|
|
12704
|
-
className: "uf-grid uf-grid-cols-[auto_1fr_auto] uf-items-center uf-gap-2 uf-px-4 uf-py-3
|
|
12705
|
-
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",
|
|
12706
12680
|
children: [
|
|
12707
12681
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
12708
12682
|
"div",
|
|
12709
12683
|
{
|
|
12710
12684
|
className: "uf-text-sm",
|
|
12711
12685
|
style: {
|
|
12712
|
-
color: components.card.
|
|
12686
|
+
color: components.card.rowLeftLabel,
|
|
12713
12687
|
fontFamily: fonts.regular
|
|
12714
12688
|
},
|
|
12715
12689
|
children: "Deposit Tx"
|
|
@@ -12720,7 +12694,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12720
12694
|
{
|
|
12721
12695
|
className: "uf-text-sm uf-text-right",
|
|
12722
12696
|
style: {
|
|
12723
|
-
color: components.card.
|
|
12697
|
+
color: components.card.rowRightLabel,
|
|
12724
12698
|
fontFamily: fonts.regular
|
|
12725
12699
|
},
|
|
12726
12700
|
children: formatTransactionHash(execution.transaction_hash)
|
|
@@ -12730,7 +12704,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12730
12704
|
ExternalLink,
|
|
12731
12705
|
{
|
|
12732
12706
|
className: "uf-w-3.5 uf-h-3.5 uf-block",
|
|
12733
|
-
style: { color: components.card.
|
|
12707
|
+
style: { color: components.card.actionIcon }
|
|
12734
12708
|
}
|
|
12735
12709
|
)
|
|
12736
12710
|
]
|
|
@@ -12749,7 +12723,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12749
12723
|
{
|
|
12750
12724
|
className: "uf-text-sm",
|
|
12751
12725
|
style: {
|
|
12752
|
-
color: components.card.
|
|
12726
|
+
color: components.card.rowLeftLabel,
|
|
12753
12727
|
fontFamily: fonts.regular
|
|
12754
12728
|
},
|
|
12755
12729
|
children: "Completion Tx"
|
|
@@ -12760,7 +12734,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12760
12734
|
{
|
|
12761
12735
|
className: "uf-text-sm uf-text-right",
|
|
12762
12736
|
style: {
|
|
12763
|
-
color: components.card.
|
|
12737
|
+
color: components.card.rowRightLabel,
|
|
12764
12738
|
fontFamily: fonts.regular
|
|
12765
12739
|
},
|
|
12766
12740
|
children: formatTransactionHash(
|
|
@@ -12772,7 +12746,7 @@ function DepositDetailContent({ execution }) {
|
|
|
12772
12746
|
ExternalLink,
|
|
12773
12747
|
{
|
|
12774
12748
|
className: "uf-w-3.5 uf-h-3.5 uf-block",
|
|
12775
|
-
style: { color: components.card.
|
|
12749
|
+
style: { color: components.card.actionIcon }
|
|
12776
12750
|
}
|
|
12777
12751
|
)
|
|
12778
12752
|
]
|
|
@@ -13531,25 +13505,28 @@ function BuyWithCard({
|
|
|
13531
13505
|
}
|
|
13532
13506
|
}
|
|
13533
13507
|
) }) }),
|
|
13534
|
-
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) =>
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
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
|
+
]
|
|
13545
13526
|
},
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
]
|
|
13550
|
-
},
|
|
13551
|
-
quickAmount
|
|
13552
|
-
)) }),
|
|
13527
|
+
quickAmount
|
|
13528
|
+
);
|
|
13529
|
+
}) }),
|
|
13553
13530
|
amountValidationError && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13554
13531
|
"div",
|
|
13555
13532
|
{
|
|
@@ -13568,7 +13545,7 @@ function BuyWithCard({
|
|
|
13568
13545
|
"span",
|
|
13569
13546
|
{
|
|
13570
13547
|
style: {
|
|
13571
|
-
color: components.card.
|
|
13548
|
+
color: components.card.labelColor,
|
|
13572
13549
|
fontFamily: fonts.medium
|
|
13573
13550
|
},
|
|
13574
13551
|
children: "Provider"
|
|
@@ -13627,7 +13604,7 @@ function BuyWithCard({
|
|
|
13627
13604
|
{
|
|
13628
13605
|
className: "uf-text-xs uf-font-normal uf-mb-2",
|
|
13629
13606
|
style: {
|
|
13630
|
-
color: components.card.
|
|
13607
|
+
color: components.card.headerColor,
|
|
13631
13608
|
fontFamily: fonts.regular
|
|
13632
13609
|
},
|
|
13633
13610
|
children: "Auto-picked for you"
|
|
@@ -13742,8 +13719,8 @@ function BuyWithCard({
|
|
|
13742
13719
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13743
13720
|
"div",
|
|
13744
13721
|
{
|
|
13745
|
-
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"}`,
|
|
13746
|
-
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) => {
|
|
13747
13724
|
const badges = getProviderBadges(quote, sortedQuotes);
|
|
13748
13725
|
const displayName = quote.service_provider_display_name;
|
|
13749
13726
|
const isSelected = selectedProvider?.service_provider === quote.service_provider;
|
|
@@ -13760,11 +13737,11 @@ function BuyWithCard({
|
|
|
13760
13737
|
},
|
|
13761
13738
|
onMouseEnter: () => setHoveredProviderIndex(index2),
|
|
13762
13739
|
onMouseLeave: () => setHoveredProviderIndex(null),
|
|
13763
|
-
className:
|
|
13740
|
+
className: "uf-w-full uf-transition-colors uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
|
|
13764
13741
|
style: {
|
|
13765
13742
|
backgroundColor: hoveredProviderIndex === index2 ? colors2.cardHover : components.card.backgroundColor,
|
|
13766
13743
|
borderRadius: components.card.borderRadius,
|
|
13767
|
-
border: `${components.card.borderWidth}px solid ${components.card.borderColor}`
|
|
13744
|
+
border: isSelected ? `2px solid ${colors2.primary}` : `${components.card.borderWidth}px solid ${components.card.borderColor}`
|
|
13768
13745
|
},
|
|
13769
13746
|
children: [
|
|
13770
13747
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
|
|
@@ -13791,7 +13768,8 @@ function BuyWithCard({
|
|
|
13791
13768
|
badges.map((badge, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
13792
13769
|
"span",
|
|
13793
13770
|
{
|
|
13794
|
-
className: "uf-text-[10px] uf-
|
|
13771
|
+
className: "uf-text-[10px] uf-font-normal",
|
|
13772
|
+
style: { color: colors2.success },
|
|
13795
13773
|
children: [
|
|
13796
13774
|
badge,
|
|
13797
13775
|
i < badges.length - 1 && ","
|
|
@@ -13799,8 +13777,25 @@ function BuyWithCard({
|
|
|
13799
13777
|
},
|
|
13800
13778
|
i
|
|
13801
13779
|
)),
|
|
13802
|
-
quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13803
|
-
|
|
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
|
+
)
|
|
13804
13799
|
] })
|
|
13805
13800
|
] })
|
|
13806
13801
|
] }),
|
|
@@ -13901,7 +13896,7 @@ function BuyWithCard({
|
|
|
13901
13896
|
}
|
|
13902
13897
|
)
|
|
13903
13898
|
] }),
|
|
13904
|
-
/* @__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 } }) }),
|
|
13905
13900
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
|
|
13906
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: [
|
|
13907
13902
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
@@ -13944,7 +13939,7 @@ function BuyWithCard({
|
|
|
13944
13939
|
}
|
|
13945
13940
|
)
|
|
13946
13941
|
] }),
|
|
13947
|
-
/* @__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 } }) }),
|
|
13948
13943
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
|
|
13949
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: [
|
|
13950
13945
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
@@ -14426,7 +14421,7 @@ function DepositExecutionItem({
|
|
|
14426
14421
|
{
|
|
14427
14422
|
className: "uf-font-medium uf-text-sm uf-flex-shrink-0",
|
|
14428
14423
|
style: {
|
|
14429
|
-
color: components.card.
|
|
14424
|
+
color: components.card.textRightColor,
|
|
14430
14425
|
fontFamily: fonts.medium
|
|
14431
14426
|
},
|
|
14432
14427
|
children: formatUsdAmount2(execution.source_amount_usd || "0")
|
|
@@ -14475,7 +14470,7 @@ function TransferCryptoButton({
|
|
|
14475
14470
|
Zap,
|
|
14476
14471
|
{
|
|
14477
14472
|
className: "uf-w-5 uf-h-5",
|
|
14478
|
-
style: { color:
|
|
14473
|
+
style: { color: components.card.iconColor }
|
|
14479
14474
|
}
|
|
14480
14475
|
) }),
|
|
14481
14476
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -14562,7 +14557,7 @@ function DepositWithCardButton({
|
|
|
14562
14557
|
CreditCard,
|
|
14563
14558
|
{
|
|
14564
14559
|
className: "uf-w-5 uf-h-5",
|
|
14565
|
-
style: { color:
|
|
14560
|
+
style: { color: components.card.iconColor }
|
|
14566
14561
|
}
|
|
14567
14562
|
) }),
|
|
14568
14563
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -14655,7 +14650,7 @@ function PayWithExchangeButton({
|
|
|
14655
14650
|
ArrowLeftRight,
|
|
14656
14651
|
{
|
|
14657
14652
|
className: "uf-w-5 uf-h-5",
|
|
14658
|
-
style: { color:
|
|
14653
|
+
style: { color: components.card.iconColor }
|
|
14659
14654
|
}
|
|
14660
14655
|
) }),
|
|
14661
14656
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -14742,7 +14737,7 @@ function DepositTrackerButton({
|
|
|
14742
14737
|
Clock,
|
|
14743
14738
|
{
|
|
14744
14739
|
className: "uf-w-5 uf-h-5",
|
|
14745
|
-
style: { color:
|
|
14740
|
+
style: { color: components.card.iconColor }
|
|
14746
14741
|
}
|
|
14747
14742
|
),
|
|
14748
14743
|
badge !== void 0 && badge > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
@@ -17572,7 +17567,7 @@ function DepositsModal({
|
|
|
17572
17567
|
onClose: handleClose
|
|
17573
17568
|
}
|
|
17574
17569
|
),
|
|
17575
|
-
/* @__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)(
|
|
17576
17571
|
"div",
|
|
17577
17572
|
{
|
|
17578
17573
|
className: "uf-text-sm",
|
|
@@ -17766,23 +17761,33 @@ function TokenSelectorSheet({
|
|
|
17766
17761
|
),
|
|
17767
17762
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "uf-w-7 uf-h-5 uf-invisible" })
|
|
17768
17763
|
] }),
|
|
17769
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
|
|
17776
|
-
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",
|
|
17777
|
-
style: {
|
|
17778
|
-
backgroundColor: components.search.backgroundColor,
|
|
17779
|
-
color: components.search.inputColor,
|
|
17780
|
-
fontFamily: fonts.regular,
|
|
17781
|
-
borderRadius: components.input.borderRadius,
|
|
17782
|
-
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
|
+
}
|
|
17783
17771
|
}
|
|
17784
|
-
|
|
17785
|
-
|
|
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
|
+
] }),
|
|
17786
17791
|
quickSelectOptions.length > 0 && !searchQuery && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "uf-pb-3 uf--mx-6", children: [
|
|
17787
17792
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
17788
17793
|
"div",
|
|
@@ -18034,12 +18039,13 @@ function TokenSelectorSheet({
|
|
|
18034
18039
|
style: {
|
|
18035
18040
|
fontSize: 12,
|
|
18036
18041
|
flexShrink: 0,
|
|
18037
|
-
color: components.card.labelColor,
|
|
18038
18042
|
fontFamily: fonts.regular
|
|
18039
18043
|
},
|
|
18040
18044
|
children: [
|
|
18041
|
-
"
|
|
18042
|
-
|
|
18045
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { style: { color: components.card.textRightColor }, children: [
|
|
18046
|
+
"Minimum:",
|
|
18047
|
+
" "
|
|
18048
|
+
] }),
|
|
18043
18049
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { style: { color: components.card.labelHighlightRightColor }, children: [
|
|
18044
18050
|
"$",
|
|
18045
18051
|
chain.minimum_deposit_amount_usd
|
|
@@ -18115,13 +18121,15 @@ function DepositPollingUi({
|
|
|
18115
18121
|
function DepositFooterLinks({
|
|
18116
18122
|
onGlossaryClick
|
|
18117
18123
|
}) {
|
|
18124
|
+
const { colors: colors2 } = useTheme();
|
|
18118
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: [
|
|
18119
18126
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
18120
18127
|
"a",
|
|
18121
18128
|
{
|
|
18122
18129
|
href: "https://unifold.io/terms",
|
|
18123
18130
|
target: "_blank",
|
|
18124
|
-
className: "uf-cursor-pointer hover:uf-
|
|
18131
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
18132
|
+
style: { color: colors2.primary },
|
|
18125
18133
|
children: "Terms"
|
|
18126
18134
|
}
|
|
18127
18135
|
),
|
|
@@ -18131,7 +18139,8 @@ function DepositFooterLinks({
|
|
|
18131
18139
|
{
|
|
18132
18140
|
href: "https://unifold.io/support",
|
|
18133
18141
|
target: "_blank",
|
|
18134
|
-
className: "uf-cursor-pointer hover:uf-
|
|
18142
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
18143
|
+
style: { color: colors2.primary },
|
|
18135
18144
|
children: "Help"
|
|
18136
18145
|
}
|
|
18137
18146
|
),
|
|
@@ -18139,8 +18148,9 @@ function DepositFooterLinks({
|
|
|
18139
18148
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
18140
18149
|
"div",
|
|
18141
18150
|
{
|
|
18142
|
-
className: "uf-cursor-pointer hover:uf-
|
|
18151
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
18143
18152
|
onClick: onGlossaryClick,
|
|
18153
|
+
style: { color: colors2.primary },
|
|
18144
18154
|
children: "Glossary"
|
|
18145
18155
|
}
|
|
18146
18156
|
)
|
|
@@ -18150,61 +18160,117 @@ var t3 = i18n2.transferCrypto;
|
|
|
18150
18160
|
function GlossaryModal({
|
|
18151
18161
|
open,
|
|
18152
18162
|
onOpenChange,
|
|
18153
|
-
|
|
18154
|
-
|
|
18163
|
+
backgroundColor: backgroundColorProp,
|
|
18164
|
+
themeClass: themeClassProp,
|
|
18165
|
+
colors: colorsProp
|
|
18155
18166
|
}) {
|
|
18167
|
+
const { themeClass, colors: colors2, components } = useTheme();
|
|
18168
|
+
const resolvedThemeClass = themeClassProp ?? themeClass;
|
|
18169
|
+
const modalBackground = backgroundColorProp ?? colors2.background;
|
|
18156
18170
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18157
18171
|
DialogContent2,
|
|
18158
18172
|
{
|
|
18159
|
-
className: `sm:uf-max-w-[400px] !uf-top-auto !uf-h-auto sm:!uf-top-[50%] uf-border-secondary uf-
|
|
18160
|
-
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 },
|
|
18161
18175
|
children: [
|
|
18162
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between
|
|
18163
|
-
/* @__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
|
+
),
|
|
18164
18186
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
18165
18187
|
"button",
|
|
18166
18188
|
{
|
|
18167
18189
|
onClick: () => onOpenChange(false),
|
|
18168
|
-
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 },
|
|
18169
18192
|
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(X, { className: "uf-w-4 uf-h-4" })
|
|
18170
18193
|
}
|
|
18171
18194
|
)
|
|
18172
18195
|
] }),
|
|
18173
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "uf-max-h-[60vh] sm:uf-max-h-[400px] uf-overflow-y-auto uf-
|
|
18174
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
18175
|
-
|
|
18176
|
-
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
|
|
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
|
-
|
|
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
|
+
)
|
|
18208
18274
|
] }) })
|
|
18209
18275
|
]
|
|
18210
18276
|
}
|
|
@@ -18445,7 +18511,7 @@ function TransferCryptoSingleInput({
|
|
|
18445
18511
|
className: "uf-space-y-3 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden",
|
|
18446
18512
|
style: { backgroundColor: colors2.background },
|
|
18447
18513
|
children: [
|
|
18448
|
-
/* @__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 }) }),
|
|
18449
18515
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
18450
18516
|
"button",
|
|
18451
18517
|
{
|
|
@@ -18549,7 +18615,7 @@ function TransferCryptoSingleInput({
|
|
|
18549
18615
|
] })
|
|
18550
18616
|
] }),
|
|
18551
18617
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
|
|
18552
|
-
/* @__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" }),
|
|
18553
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 ? (
|
|
18554
18620
|
// QR Skeleton - matches QR code appearance
|
|
18555
18621
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
@@ -18594,7 +18660,7 @@ function TransferCryptoSingleInput({
|
|
|
18594
18660
|
}
|
|
18595
18661
|
) })
|
|
18596
18662
|
] }),
|
|
18597
|
-
/* @__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: [
|
|
18598
18664
|
loading || tokensLoading || !initialSelectionDone ? (
|
|
18599
18665
|
// Address skeleton
|
|
18600
18666
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
@@ -18606,12 +18672,13 @@ function TransferCryptoSingleInput({
|
|
|
18606
18672
|
}
|
|
18607
18673
|
}
|
|
18608
18674
|
)
|
|
18609
|
-
) : /* @__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 }),
|
|
18610
18676
|
depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
18611
18677
|
"span",
|
|
18612
18678
|
{
|
|
18613
18679
|
onClick: handleCopyAddress,
|
|
18614
|
-
className:
|
|
18680
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
18681
|
+
style: { color: copied ? colors2.success : components.card.actionColor },
|
|
18615
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" })
|
|
18616
18683
|
}
|
|
18617
18684
|
)
|
|
@@ -18673,7 +18740,8 @@ function TransferCryptoSingleInput({
|
|
|
18673
18740
|
"span",
|
|
18674
18741
|
{
|
|
18675
18742
|
onClick: () => handleCopyRecipientAddress(recipientAddress),
|
|
18676
|
-
className:
|
|
18743
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
18744
|
+
style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
|
|
18677
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" })
|
|
18678
18746
|
}
|
|
18679
18747
|
)
|
|
@@ -19064,7 +19132,7 @@ function TransferCryptoDoubleInput({
|
|
|
19064
19132
|
children: [
|
|
19065
19133
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "uf-grid uf-grid-cols-2 uf-gap-2.5", children: [
|
|
19066
19134
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
|
|
19067
|
-
/* @__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 }),
|
|
19068
19136
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
19069
19137
|
Select2,
|
|
19070
19138
|
{
|
|
@@ -19072,7 +19140,7 @@ function TransferCryptoDoubleInput({
|
|
|
19072
19140
|
onValueChange: setToken,
|
|
19073
19141
|
disabled: tokensLoading || supportedTokens.length === 0,
|
|
19074
19142
|
children: [
|
|
19075
|
-
/* @__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 }) }) }) }),
|
|
19076
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)(
|
|
19077
19145
|
SelectItem2,
|
|
19078
19146
|
{
|
|
@@ -19087,7 +19155,7 @@ function TransferCryptoDoubleInput({
|
|
|
19087
19155
|
)
|
|
19088
19156
|
] }),
|
|
19089
19157
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
|
|
19090
|
-
/* @__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: [
|
|
19091
19159
|
t5.selectedChain,
|
|
19092
19160
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "uf-font-medium", style: { color: components.card.labelHighlightRightColor }, children: [
|
|
19093
19161
|
"$",
|
|
@@ -19103,7 +19171,7 @@ function TransferCryptoDoubleInput({
|
|
|
19103
19171
|
onValueChange: setChain,
|
|
19104
19172
|
disabled: tokensLoading || availableChainsForToken.length === 0,
|
|
19105
19173
|
children: [
|
|
19106
|
-
/* @__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 }) }) }) }),
|
|
19107
19175
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
19108
19176
|
SelectContent2,
|
|
19109
19177
|
{
|
|
@@ -19146,7 +19214,7 @@ function TransferCryptoDoubleInput({
|
|
|
19146
19214
|
] })
|
|
19147
19215
|
] }),
|
|
19148
19216
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
|
|
19149
|
-
/* @__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" }),
|
|
19150
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 ? (
|
|
19151
19219
|
// QR Skeleton - matches QR code appearance
|
|
19152
19220
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
@@ -19191,7 +19259,7 @@ function TransferCryptoDoubleInput({
|
|
|
19191
19259
|
}
|
|
19192
19260
|
) })
|
|
19193
19261
|
] }),
|
|
19194
|
-
/* @__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: [
|
|
19195
19263
|
loading || tokensLoading || !initialSelectionDone ? (
|
|
19196
19264
|
// Address skeleton
|
|
19197
19265
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
@@ -19203,12 +19271,13 @@ function TransferCryptoDoubleInput({
|
|
|
19203
19271
|
}
|
|
19204
19272
|
}
|
|
19205
19273
|
)
|
|
19206
|
-
) : /* @__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 }),
|
|
19207
19275
|
depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
19208
19276
|
"span",
|
|
19209
19277
|
{
|
|
19210
19278
|
onClick: handleCopyAddress,
|
|
19211
|
-
className:
|
|
19279
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
19280
|
+
style: { color: copied ? colors2.success : components.card.actionColor },
|
|
19212
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" })
|
|
19213
19282
|
}
|
|
19214
19283
|
)
|
|
@@ -19270,7 +19339,8 @@ function TransferCryptoDoubleInput({
|
|
|
19270
19339
|
"span",
|
|
19271
19340
|
{
|
|
19272
19341
|
onClick: () => handleCopyRecipientAddress(recipientAddress),
|
|
19273
|
-
className:
|
|
19342
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
19343
|
+
style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
|
|
19274
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" })
|
|
19275
19345
|
}
|
|
19276
19346
|
)
|
|
@@ -21267,14 +21337,23 @@ function DepositModal({
|
|
|
21267
21337
|
onDepositSuccess,
|
|
21268
21338
|
onDepositError,
|
|
21269
21339
|
theme = "dark",
|
|
21270
|
-
hideOverlay = false
|
|
21340
|
+
hideOverlay = false,
|
|
21341
|
+
initialScreen = "main"
|
|
21271
21342
|
}) {
|
|
21272
21343
|
const { colors: colors2, fonts, components } = useTheme();
|
|
21344
|
+
const effectiveInitialScreen = (0, import_react8.useMemo)(() => {
|
|
21345
|
+
const s = initialScreen ?? "main";
|
|
21346
|
+
if (s === "tracker" && hideDepositTracker) return "main";
|
|
21347
|
+
return s;
|
|
21348
|
+
}, [initialScreen, hideDepositTracker]);
|
|
21273
21349
|
const [containerEl, setContainerEl] = (0, import_react8.useState)(null);
|
|
21274
21350
|
const containerCallbackRef = (0, import_react8.useCallback)((el) => {
|
|
21275
21351
|
setContainerEl(el);
|
|
21276
21352
|
}, []);
|
|
21277
|
-
const [view, setView] = (0, import_react8.useState)(
|
|
21353
|
+
const [view, setView] = (0, import_react8.useState)(
|
|
21354
|
+
effectiveInitialScreen
|
|
21355
|
+
);
|
|
21356
|
+
const resetViewTimeoutRef = (0, import_react8.useRef)(null);
|
|
21278
21357
|
const [cardView, setCardView] = (0, import_react8.useState)(
|
|
21279
21358
|
"amount"
|
|
21280
21359
|
);
|
|
@@ -21394,6 +21473,43 @@ function DepositModal({
|
|
|
21394
21473
|
const template = errors[code] ?? addressValidationMessages.defaultError;
|
|
21395
21474
|
return interpolate(template, metadata);
|
|
21396
21475
|
};
|
|
21476
|
+
const openingScreen = effectiveInitialScreen;
|
|
21477
|
+
const sessionOpenedFromMenu = openingScreen === "main";
|
|
21478
|
+
const standaloneNeedsDepositPrereq = openingScreen !== "main" && (view === "transfer" || view === "card");
|
|
21479
|
+
let depositPrerequisiteBody;
|
|
21480
|
+
if (isCountryLoading || isAddressValidationLoading || tokensLoading || walletsLoading || !projectConfig) {
|
|
21481
|
+
depositPrerequisiteBody = standaloneNeedsDepositPrereq ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SkeletonButton, { variant: "with-icons" }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
21482
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SkeletonButton, { variant: "with-icons" }),
|
|
21483
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SkeletonButton, { variant: "with-icons" }),
|
|
21484
|
+
!hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SkeletonButton, {})
|
|
21485
|
+
] });
|
|
21486
|
+
} else if (countryError) {
|
|
21487
|
+
depositPrerequisiteBody = /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
|
|
21488
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(TriangleAlert, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
|
|
21489
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "Unable to Verify Location" }),
|
|
21490
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: "We couldn't verify your location. Please check your connection and try again." })
|
|
21491
|
+
] });
|
|
21492
|
+
} else if (!isAllowed) {
|
|
21493
|
+
depositPrerequisiteBody = /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
|
|
21494
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(MapPinOff, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
|
|
21495
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "No Tokens Available" }),
|
|
21496
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: "There are no supported tokens available from your current location." })
|
|
21497
|
+
] });
|
|
21498
|
+
} else if (isAddressValid === false) {
|
|
21499
|
+
depositPrerequisiteBody = /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
|
|
21500
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(TriangleAlert, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
|
|
21501
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: addressValidationMessages.unableToReceiveFunds }),
|
|
21502
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: getAddressValidationErrorMessage(
|
|
21503
|
+
addressFailureCode,
|
|
21504
|
+
addressFailureMetadata
|
|
21505
|
+
) })
|
|
21506
|
+
] });
|
|
21507
|
+
} else {
|
|
21508
|
+
depositPrerequisiteBody = null;
|
|
21509
|
+
}
|
|
21510
|
+
const showBackTransfer = sessionOpenedFromMenu;
|
|
21511
|
+
const showBackCard = cardView !== "amount" || sessionOpenedFromMenu;
|
|
21512
|
+
const showBackTracker = selectedExecution !== null || sessionOpenedFromMenu;
|
|
21397
21513
|
const themeClass = resolvedTheme === "dark" ? "uf-dark" : "";
|
|
21398
21514
|
const handleWalletDisconnect = () => {
|
|
21399
21515
|
setUserDisconnectedWallet(true);
|
|
@@ -21404,13 +21520,37 @@ function DepositModal({
|
|
|
21404
21520
|
};
|
|
21405
21521
|
const handleClose = () => {
|
|
21406
21522
|
onOpenChange(false);
|
|
21407
|
-
|
|
21408
|
-
|
|
21523
|
+
if (resetViewTimeoutRef.current) {
|
|
21524
|
+
clearTimeout(resetViewTimeoutRef.current);
|
|
21525
|
+
}
|
|
21526
|
+
resetViewTimeoutRef.current = setTimeout(() => {
|
|
21527
|
+
setView(effectiveInitialScreen);
|
|
21409
21528
|
setCardView("amount");
|
|
21410
21529
|
setExchangeView("providers");
|
|
21411
21530
|
setBrowserWalletInfo(null);
|
|
21531
|
+
resetViewTimeoutRef.current = null;
|
|
21412
21532
|
}, 200);
|
|
21413
21533
|
};
|
|
21534
|
+
(0, import_react8.useLayoutEffect)(() => {
|
|
21535
|
+
if (!open) return;
|
|
21536
|
+
if (resetViewTimeoutRef.current) {
|
|
21537
|
+
clearTimeout(resetViewTimeoutRef.current);
|
|
21538
|
+
resetViewTimeoutRef.current = null;
|
|
21539
|
+
}
|
|
21540
|
+
setView(effectiveInitialScreen);
|
|
21541
|
+
setCardView("amount");
|
|
21542
|
+
setExchangeView("providers");
|
|
21543
|
+
setBrowserWalletInfo(null);
|
|
21544
|
+
setSelectedExecution(null);
|
|
21545
|
+
}, [open, effectiveInitialScreen]);
|
|
21546
|
+
(0, import_react8.useEffect)(
|
|
21547
|
+
() => () => {
|
|
21548
|
+
if (resetViewTimeoutRef.current) {
|
|
21549
|
+
clearTimeout(resetViewTimeoutRef.current);
|
|
21550
|
+
}
|
|
21551
|
+
},
|
|
21552
|
+
[]
|
|
21553
|
+
);
|
|
21414
21554
|
const handleBack = () => {
|
|
21415
21555
|
if (view === "card" && cardView === "quotes") {
|
|
21416
21556
|
setCardView("amount");
|
|
@@ -21523,95 +21663,64 @@ function DepositModal({
|
|
|
21523
21663
|
publishableKey
|
|
21524
21664
|
}
|
|
21525
21665
|
),
|
|
21526
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children:
|
|
21527
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21528
|
-
|
|
21529
|
-
|
|
21530
|
-
|
|
21531
|
-
|
|
21532
|
-
|
|
21533
|
-
|
|
21534
|
-
|
|
21535
|
-
|
|
21536
|
-
|
|
21537
|
-
|
|
21538
|
-
|
|
21539
|
-
|
|
21540
|
-
|
|
21541
|
-
|
|
21542
|
-
|
|
21543
|
-
|
|
21544
|
-
|
|
21545
|
-
|
|
21546
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.
|
|
21547
|
-
|
|
21548
|
-
|
|
21549
|
-
|
|
21550
|
-
|
|
21551
|
-
|
|
21552
|
-
|
|
21553
|
-
|
|
21554
|
-
|
|
21555
|
-
/*
|
|
21556
|
-
|
|
21557
|
-
|
|
21558
|
-
|
|
21559
|
-
|
|
21560
|
-
|
|
21561
|
-
|
|
21562
|
-
|
|
21563
|
-
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
|
-
|
|
21568
|
-
{
|
|
21569
|
-
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
{
|
|
21579
|
-
onClick: () => setView("card"),
|
|
21580
|
-
title: t6.depositWithCard.title,
|
|
21581
|
-
subtitle: t6.depositWithCard.subtitle,
|
|
21582
|
-
paymentNetworks: projectConfig.payment_networks.networks
|
|
21583
|
-
}
|
|
21584
|
-
),
|
|
21585
|
-
showPayWithExchange && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21586
|
-
PayWithExchangeButton,
|
|
21587
|
-
{
|
|
21588
|
-
onClick: () => setView("exchange"),
|
|
21589
|
-
title: t6.payWithExchange.title,
|
|
21590
|
-
subtitle: t6.payWithExchange.subtitle,
|
|
21591
|
-
exchanges,
|
|
21592
|
-
loading: exchangesLoading
|
|
21593
|
-
}
|
|
21594
|
-
),
|
|
21595
|
-
!hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21596
|
-
DepositTrackerButton,
|
|
21597
|
-
{
|
|
21598
|
-
onClick: () => {
|
|
21599
|
-
setAllExecutions(depositExecutions);
|
|
21600
|
-
setView("tracker");
|
|
21601
|
-
},
|
|
21602
|
-
title: "Deposit Tracker",
|
|
21603
|
-
subtitle: "Track your deposit progress",
|
|
21604
|
-
badge: depositExecutions.length > 0 ? depositExecutions.length : void 0
|
|
21605
|
-
}
|
|
21606
|
-
)
|
|
21607
|
-
] })
|
|
21608
|
-
) })
|
|
21666
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: depositPrerequisiteBody ?? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
21667
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21668
|
+
TransferCryptoButton,
|
|
21669
|
+
{
|
|
21670
|
+
onClick: () => setView("transfer"),
|
|
21671
|
+
title: t6.transferCrypto.title,
|
|
21672
|
+
subtitle: t6.transferCrypto.subtitle,
|
|
21673
|
+
featuredTokens: projectConfig?.transfer_crypto.networks
|
|
21674
|
+
}
|
|
21675
|
+
),
|
|
21676
|
+
enableConnectWallet && !isMobileView && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21677
|
+
BrowserWalletButton,
|
|
21678
|
+
{
|
|
21679
|
+
onClick: handleBrowserWalletClick,
|
|
21680
|
+
onConnectClick: handleWalletConnectClick,
|
|
21681
|
+
onDisconnect: handleWalletDisconnect,
|
|
21682
|
+
chainType: browserWalletChainType,
|
|
21683
|
+
publishableKey
|
|
21684
|
+
}
|
|
21685
|
+
),
|
|
21686
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21687
|
+
DepositWithCardButton,
|
|
21688
|
+
{
|
|
21689
|
+
onClick: () => setView("card"),
|
|
21690
|
+
title: t6.depositWithCard.title,
|
|
21691
|
+
subtitle: t6.depositWithCard.subtitle,
|
|
21692
|
+
paymentNetworks: projectConfig?.payment_networks.networks
|
|
21693
|
+
}
|
|
21694
|
+
),
|
|
21695
|
+
showPayWithExchange && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21696
|
+
PayWithExchangeButton,
|
|
21697
|
+
{
|
|
21698
|
+
onClick: () => setView("exchange"),
|
|
21699
|
+
title: t6.payWithExchange.title,
|
|
21700
|
+
subtitle: t6.payWithExchange.subtitle,
|
|
21701
|
+
exchanges,
|
|
21702
|
+
loading: exchangesLoading
|
|
21703
|
+
}
|
|
21704
|
+
),
|
|
21705
|
+
!hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21706
|
+
DepositTrackerButton,
|
|
21707
|
+
{
|
|
21708
|
+
onClick: () => {
|
|
21709
|
+
setAllExecutions(depositExecutions);
|
|
21710
|
+
setView("tracker");
|
|
21711
|
+
},
|
|
21712
|
+
title: "Deposit Tracker",
|
|
21713
|
+
subtitle: "Track your deposit progress",
|
|
21714
|
+
badge: depositExecutions.length > 0 ? depositExecutions.length : void 0
|
|
21715
|
+
}
|
|
21716
|
+
)
|
|
21717
|
+
] }) })
|
|
21609
21718
|
] }) : view === "transfer" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
21610
21719
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21611
21720
|
DepositHeader,
|
|
21612
21721
|
{
|
|
21613
21722
|
title: t6.transferCrypto.title,
|
|
21614
|
-
showBack:
|
|
21723
|
+
showBack: showBackTransfer,
|
|
21615
21724
|
onBack: handleBack,
|
|
21616
21725
|
onClose: handleClose,
|
|
21617
21726
|
showBalance: showBalanceHeader,
|
|
@@ -21623,7 +21732,7 @@ function DepositModal({
|
|
|
21623
21732
|
publishableKey
|
|
21624
21733
|
}
|
|
21625
21734
|
),
|
|
21626
|
-
transferInputVariant === "single_input" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21735
|
+
standaloneNeedsDepositPrereq && depositPrerequisiteBody !== null ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: depositPrerequisiteBody }) : transferInputVariant === "single_input" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21627
21736
|
TransferCryptoSingleInput,
|
|
21628
21737
|
{
|
|
21629
21738
|
userId,
|
|
@@ -21659,12 +21768,12 @@ function DepositModal({
|
|
|
21659
21768
|
DepositHeader,
|
|
21660
21769
|
{
|
|
21661
21770
|
title: selectedExecution ? "Deposit Details" : "Deposit Tracker",
|
|
21662
|
-
showBack:
|
|
21771
|
+
showBack: showBackTracker,
|
|
21663
21772
|
onBack: handleBack,
|
|
21664
21773
|
onClose: handleClose
|
|
21665
21774
|
}
|
|
21666
21775
|
),
|
|
21667
|
-
/* @__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-
|
|
21776
|
+
/* @__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)(
|
|
21668
21777
|
"div",
|
|
21669
21778
|
{
|
|
21670
21779
|
className: "uf-text-sm",
|
|
@@ -21684,7 +21793,7 @@ function DepositModal({
|
|
|
21684
21793
|
DepositHeader,
|
|
21685
21794
|
{
|
|
21686
21795
|
title: cardView === "quotes" ? t6.quotes : t6.depositWithCard.title,
|
|
21687
|
-
showBack:
|
|
21796
|
+
showBack: showBackCard,
|
|
21688
21797
|
onBack: handleBack,
|
|
21689
21798
|
onClose: handleClose,
|
|
21690
21799
|
badge: cardView === "quotes" ? { count: quotesCount } : void 0,
|
|
@@ -21697,7 +21806,7 @@ function DepositModal({
|
|
|
21697
21806
|
publishableKey
|
|
21698
21807
|
}
|
|
21699
21808
|
),
|
|
21700
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21809
|
+
standaloneNeedsDepositPrereq && depositPrerequisiteBody !== null ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: depositPrerequisiteBody }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
21701
21810
|
BuyWithCard,
|
|
21702
21811
|
{
|
|
21703
21812
|
userId,
|
|
@@ -21990,7 +22099,8 @@ function UnifoldProvider2({
|
|
|
21990
22099
|
enablePayWithExchange: config?.enablePayWithExchange,
|
|
21991
22100
|
onDepositSuccess: handleDepositSuccess,
|
|
21992
22101
|
onDepositError: handleDepositError,
|
|
21993
|
-
theme: resolvedTheme
|
|
22102
|
+
theme: resolvedTheme,
|
|
22103
|
+
initialScreen: depositConfig.initialScreen ?? config?.defaultInitialScreen
|
|
21994
22104
|
}
|
|
21995
22105
|
)
|
|
21996
22106
|
]
|