@unifold/ui-web 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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +535 -425
- package/dist/index.mjs +535 -425
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -38698,18 +38698,18 @@ function composeContextScopes(...scopes) {
|
|
|
38698
38698
|
createScope.scopeName = baseScope.scopeName;
|
|
38699
38699
|
return createScope;
|
|
38700
38700
|
}
|
|
38701
|
-
var
|
|
38701
|
+
var useLayoutEffect23 = globalThis?.document ? React32.useLayoutEffect : () => {
|
|
38702
38702
|
};
|
|
38703
38703
|
var useReactId = React42[" useId ".trim().toString()] || (() => void 0);
|
|
38704
38704
|
var count = 0;
|
|
38705
38705
|
function useId13(deterministicId) {
|
|
38706
38706
|
const [id, setId] = React42.useState(useReactId());
|
|
38707
|
-
|
|
38707
|
+
useLayoutEffect23(() => {
|
|
38708
38708
|
if (!deterministicId) setId((reactId) => reactId ?? String(count++));
|
|
38709
38709
|
}, [deterministicId]);
|
|
38710
38710
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
38711
38711
|
}
|
|
38712
|
-
var useInsertionEffect = React52[" useInsertionEffect ".trim().toString()] ||
|
|
38712
|
+
var useInsertionEffect = React52[" useInsertionEffect ".trim().toString()] || useLayoutEffect23;
|
|
38713
38713
|
function useControllableState({
|
|
38714
38714
|
prop,
|
|
38715
38715
|
defaultProp,
|
|
@@ -39324,7 +39324,7 @@ var PORTAL_NAME = "Portal";
|
|
|
39324
39324
|
var Portal = React12.forwardRef((props, forwardedRef) => {
|
|
39325
39325
|
const { container: containerProp, ...portalProps } = props;
|
|
39326
39326
|
const [mounted, setMounted] = React12.useState(false);
|
|
39327
|
-
|
|
39327
|
+
useLayoutEffect23(() => setMounted(true), []);
|
|
39328
39328
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
39329
39329
|
return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
39330
39330
|
});
|
|
@@ -39367,7 +39367,7 @@ function usePresence(present) {
|
|
|
39367
39367
|
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
39368
39368
|
prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
|
|
39369
39369
|
}, [state]);
|
|
39370
|
-
|
|
39370
|
+
useLayoutEffect23(() => {
|
|
39371
39371
|
const styles = stylesRef.current;
|
|
39372
39372
|
const wasPresent = prevPresentRef.current;
|
|
39373
39373
|
const hasPresentChanged = wasPresent !== present;
|
|
@@ -39389,7 +39389,7 @@ function usePresence(present) {
|
|
|
39389
39389
|
prevPresentRef.current = present;
|
|
39390
39390
|
}
|
|
39391
39391
|
}, [present, send]);
|
|
39392
|
-
|
|
39392
|
+
useLayoutEffect23(() => {
|
|
39393
39393
|
if (node) {
|
|
39394
39394
|
let timeoutId;
|
|
39395
39395
|
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
@@ -45402,7 +45402,7 @@ Arrow.displayName = NAME;
|
|
|
45402
45402
|
var Root2 = Arrow;
|
|
45403
45403
|
function useSize(element) {
|
|
45404
45404
|
const [size4, setSize] = React27.useState(void 0);
|
|
45405
|
-
|
|
45405
|
+
useLayoutEffect23(() => {
|
|
45406
45406
|
if (element) {
|
|
45407
45407
|
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
45408
45408
|
const resizeObserver = new ResizeObserver((entries) => {
|
|
@@ -45539,7 +45539,7 @@ var PopperContent = React28.forwardRef(
|
|
|
45539
45539
|
});
|
|
45540
45540
|
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
45541
45541
|
const handlePlaced = useCallbackRef(onPlaced);
|
|
45542
|
-
|
|
45542
|
+
useLayoutEffect23(() => {
|
|
45543
45543
|
if (isPositioned) {
|
|
45544
45544
|
handlePlaced?.();
|
|
45545
45545
|
}
|
|
@@ -45548,7 +45548,7 @@ var PopperContent = React28.forwardRef(
|
|
|
45548
45548
|
const arrowY = middlewareData.arrow?.y;
|
|
45549
45549
|
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
45550
45550
|
const [contentZIndex, setContentZIndex] = React28.useState();
|
|
45551
|
-
|
|
45551
|
+
useLayoutEffect23(() => {
|
|
45552
45552
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
45553
45553
|
}, [content]);
|
|
45554
45554
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
@@ -46479,7 +46479,7 @@ var SelectValue = React34.forwardRef(
|
|
|
46479
46479
|
const { onValueNodeHasChildrenChange } = context;
|
|
46480
46480
|
const hasChildren = children !== void 0;
|
|
46481
46481
|
const composedRefs = useComposedRefs(forwardedRef, context.onValueNodeChange);
|
|
46482
|
-
|
|
46482
|
+
useLayoutEffect23(() => {
|
|
46483
46483
|
onValueNodeHasChildrenChange(hasChildren);
|
|
46484
46484
|
}, [onValueNodeHasChildrenChange, hasChildren]);
|
|
46485
46485
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
@@ -46512,7 +46512,7 @@ var SelectContent = React34.forwardRef(
|
|
|
46512
46512
|
(props, forwardedRef) => {
|
|
46513
46513
|
const context = useSelectContext(CONTENT_NAME4, props.__scopeSelect);
|
|
46514
46514
|
const [fragment, setFragment] = React34.useState();
|
|
46515
|
-
|
|
46515
|
+
useLayoutEffect23(() => {
|
|
46516
46516
|
setFragment(new DocumentFragment());
|
|
46517
46517
|
}, []);
|
|
46518
46518
|
if (!context.open) {
|
|
@@ -46874,9 +46874,9 @@ var SelectItemAlignedPosition = React34.forwardRef((props, forwardedRef) => {
|
|
|
46874
46874
|
context.dir,
|
|
46875
46875
|
onPlaced
|
|
46876
46876
|
]);
|
|
46877
|
-
|
|
46877
|
+
useLayoutEffect23(() => position(), [position]);
|
|
46878
46878
|
const [contentZIndex, setContentZIndex] = React34.useState();
|
|
46879
|
-
|
|
46879
|
+
useLayoutEffect23(() => {
|
|
46880
46880
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
46881
46881
|
}, [content]);
|
|
46882
46882
|
const handleScrollButtonChange = React34.useCallback(
|
|
@@ -47173,7 +47173,7 @@ var SelectItemText = React34.forwardRef(
|
|
|
47173
47173
|
[itemContext.disabled, itemContext.value, textContent]
|
|
47174
47174
|
);
|
|
47175
47175
|
const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
|
|
47176
|
-
|
|
47176
|
+
useLayoutEffect23(() => {
|
|
47177
47177
|
onNativeOptionAdd(nativeOption);
|
|
47178
47178
|
return () => onNativeOptionRemove(nativeOption);
|
|
47179
47179
|
}, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
|
|
@@ -47199,7 +47199,7 @@ var SelectScrollUpButton = React34.forwardRef((props, forwardedRef) => {
|
|
|
47199
47199
|
const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
|
|
47200
47200
|
const [canScrollUp, setCanScrollUp] = React34.useState(false);
|
|
47201
47201
|
const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
|
|
47202
|
-
|
|
47202
|
+
useLayoutEffect23(() => {
|
|
47203
47203
|
if (contentContext.viewport && contentContext.isPositioned) {
|
|
47204
47204
|
let handleScroll22 = function() {
|
|
47205
47205
|
const canScrollUp2 = viewport.scrollTop > 0;
|
|
@@ -47233,7 +47233,7 @@ var SelectScrollDownButton = React34.forwardRef((props, forwardedRef) => {
|
|
|
47233
47233
|
const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
|
|
47234
47234
|
const [canScrollDown, setCanScrollDown] = React34.useState(false);
|
|
47235
47235
|
const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
|
|
47236
|
-
|
|
47236
|
+
useLayoutEffect23(() => {
|
|
47237
47237
|
if (contentContext.viewport && contentContext.isPositioned) {
|
|
47238
47238
|
let handleScroll22 = function() {
|
|
47239
47239
|
const maxScroll = viewport.scrollHeight - viewport.clientHeight;
|
|
@@ -47276,7 +47276,7 @@ var SelectScrollButtonImpl = React34.forwardRef((props, forwardedRef) => {
|
|
|
47276
47276
|
React34.useEffect(() => {
|
|
47277
47277
|
return () => clearAutoScrollTimer();
|
|
47278
47278
|
}, [clearAutoScrollTimer]);
|
|
47279
|
-
|
|
47279
|
+
useLayoutEffect23(() => {
|
|
47280
47280
|
const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
|
|
47281
47281
|
activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
47282
47282
|
}, [getItems]);
|
|
@@ -48606,24 +48606,34 @@ function CurrencyModal({
|
|
|
48606
48606
|
onClose: handleClose
|
|
48607
48607
|
}
|
|
48608
48608
|
),
|
|
48609
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.
|
|
48610
|
-
|
|
48611
|
-
|
|
48612
|
-
|
|
48613
|
-
|
|
48614
|
-
|
|
48615
|
-
|
|
48616
|
-
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",
|
|
48617
|
-
style: {
|
|
48618
|
-
backgroundColor: components.search.backgroundColor,
|
|
48619
|
-
color: components.search.inputColor,
|
|
48620
|
-
fontFamily: fonts.regular,
|
|
48621
|
-
borderRadius: components.input.borderRadius,
|
|
48622
|
-
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
48609
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "uf-pb-2", children: [
|
|
48610
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
48611
|
+
"style",
|
|
48612
|
+
{
|
|
48613
|
+
dangerouslySetInnerHTML: {
|
|
48614
|
+
__html: `.uf-currency-modal-search::placeholder { color: ${components.search.placeholderColor}; }`
|
|
48615
|
+
}
|
|
48623
48616
|
}
|
|
48624
|
-
|
|
48625
|
-
|
|
48626
|
-
|
|
48617
|
+
),
|
|
48618
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "uf-relative", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
48619
|
+
"input",
|
|
48620
|
+
{
|
|
48621
|
+
type: "text",
|
|
48622
|
+
value: searchQuery,
|
|
48623
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
48624
|
+
placeholder: "Search",
|
|
48625
|
+
className: "uf-currency-modal-search uf-w-full uf-p-4 uf-text-sm uf-outline-none focus:uf-ring-2 focus:uf-ring-ring/30",
|
|
48626
|
+
style: {
|
|
48627
|
+
backgroundColor: components.search.backgroundColor,
|
|
48628
|
+
color: components.search.inputColor,
|
|
48629
|
+
fontFamily: fonts.regular,
|
|
48630
|
+
borderRadius: components.input.borderRadius,
|
|
48631
|
+
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
48632
|
+
}
|
|
48633
|
+
}
|
|
48634
|
+
) })
|
|
48635
|
+
] }),
|
|
48636
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "uf-flex-1 sm:uf-flex-none uf-overflow-y-auto uf-pb-4 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden sm:uf-min-h-[200px] sm:uf-max-h-[400px]", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "uf-space-y-2", children: [
|
|
48627
48637
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
48628
48638
|
CurrencyListSection,
|
|
48629
48639
|
{
|
|
@@ -49145,188 +49155,153 @@ function DepositDetailContent({ execution }) {
|
|
|
49145
49155
|
className: "uf-overflow-hidden uf-mb-3",
|
|
49146
49156
|
style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` },
|
|
49147
49157
|
children: [
|
|
49148
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49149
|
-
|
|
49150
|
-
|
|
49151
|
-
|
|
49152
|
-
|
|
49153
|
-
|
|
49154
|
-
|
|
49155
|
-
|
|
49156
|
-
|
|
49157
|
-
|
|
49158
|
-
|
|
49159
|
-
|
|
49160
|
-
|
|
49161
|
-
|
|
49162
|
-
|
|
49163
|
-
|
|
49164
|
-
|
|
49165
|
-
|
|
49166
|
-
"
|
|
49167
|
-
|
|
49168
|
-
|
|
49169
|
-
|
|
49170
|
-
|
|
49171
|
-
|
|
49172
|
-
|
|
49173
|
-
|
|
49174
|
-
|
|
49175
|
-
|
|
49176
|
-
|
|
49177
|
-
|
|
49178
|
-
|
|
49179
|
-
|
|
49180
|
-
|
|
49181
|
-
|
|
49182
|
-
|
|
49183
|
-
|
|
49184
|
-
|
|
49185
|
-
|
|
49186
|
-
|
|
49187
|
-
|
|
49188
|
-
|
|
49189
|
-
|
|
49190
|
-
|
|
49191
|
-
|
|
49192
|
-
|
|
49193
|
-
|
|
49194
|
-
|
|
49195
|
-
|
|
49196
|
-
|
|
49197
|
-
|
|
49198
|
-
|
|
49199
|
-
|
|
49200
|
-
|
|
49201
|
-
|
|
49202
|
-
|
|
49203
|
-
|
|
49204
|
-
"
|
|
49205
|
-
|
|
49206
|
-
|
|
49207
|
-
|
|
49208
|
-
|
|
49209
|
-
|
|
49210
|
-
|
|
49211
|
-
|
|
49212
|
-
|
|
49213
|
-
|
|
49214
|
-
|
|
49215
|
-
|
|
49216
|
-
|
|
49217
|
-
|
|
49218
|
-
|
|
49219
|
-
|
|
49220
|
-
|
|
49221
|
-
|
|
49222
|
-
|
|
49223
|
-
|
|
49224
|
-
|
|
49225
|
-
|
|
49226
|
-
|
|
49227
|
-
|
|
49228
|
-
|
|
49229
|
-
|
|
49230
|
-
|
|
49231
|
-
|
|
49232
|
-
|
|
49233
|
-
className: "uf-text-sm",
|
|
49234
|
-
style: {
|
|
49235
|
-
color: components.card.labelColor,
|
|
49236
|
-
fontFamily: fonts.regular
|
|
49237
|
-
},
|
|
49238
|
-
children: "USD Value"
|
|
49239
|
-
}
|
|
49240
|
-
),
|
|
49241
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49242
|
-
"span",
|
|
49243
|
-
{
|
|
49244
|
-
style: {
|
|
49245
|
-
color: components.card.titleColor,
|
|
49246
|
-
fontFamily: fonts.regular,
|
|
49247
|
-
fontSize: "14px"
|
|
49248
|
-
},
|
|
49249
|
-
children: formatUsdAmount2(
|
|
49250
|
-
execution.source_amount_usd,
|
|
49251
|
-
execution.source_amount_base_unit
|
|
49252
|
-
)
|
|
49253
|
-
}
|
|
49254
|
-
)
|
|
49255
|
-
]
|
|
49256
|
-
}
|
|
49257
|
-
),
|
|
49258
|
-
isPending && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49259
|
-
"div",
|
|
49260
|
-
{
|
|
49261
|
-
className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
|
|
49262
|
-
style: { borderColor: colors2.border },
|
|
49263
|
-
children: [
|
|
49264
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49265
|
-
"span",
|
|
49266
|
-
{
|
|
49267
|
-
className: "uf-text-sm",
|
|
49268
|
-
style: {
|
|
49269
|
-
color: components.card.labelColor,
|
|
49270
|
-
fontFamily: fonts.regular
|
|
49271
|
-
},
|
|
49272
|
-
children: "Estimated delivery time"
|
|
49273
|
-
}
|
|
49274
|
-
),
|
|
49275
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49276
|
-
"span",
|
|
49277
|
-
{
|
|
49278
|
-
style: {
|
|
49279
|
-
color: components.card.titleColor,
|
|
49280
|
-
fontFamily: fonts.regular,
|
|
49281
|
-
fontSize: "14px"
|
|
49282
|
-
},
|
|
49283
|
-
children: formatEstimatedTime(execution?.estimated_processing_time)
|
|
49284
|
-
}
|
|
49158
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49159
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49160
|
+
"span",
|
|
49161
|
+
{
|
|
49162
|
+
className: "uf-text-sm",
|
|
49163
|
+
style: {
|
|
49164
|
+
color: components.card.rowLeftLabel,
|
|
49165
|
+
fontFamily: fonts.regular
|
|
49166
|
+
},
|
|
49167
|
+
children: "Amount Sent"
|
|
49168
|
+
}
|
|
49169
|
+
),
|
|
49170
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49171
|
+
"span",
|
|
49172
|
+
{
|
|
49173
|
+
style: {
|
|
49174
|
+
color: components.card.rowRightLabel,
|
|
49175
|
+
fontFamily: fonts.regular,
|
|
49176
|
+
fontSize: "14px"
|
|
49177
|
+
},
|
|
49178
|
+
children: [
|
|
49179
|
+
formatAmount(
|
|
49180
|
+
execution.source_amount_base_unit,
|
|
49181
|
+
execution.source_token_metadata?.decimals
|
|
49182
|
+
),
|
|
49183
|
+
" ",
|
|
49184
|
+
formatCurrency(execution.source_currency)
|
|
49185
|
+
]
|
|
49186
|
+
}
|
|
49187
|
+
)
|
|
49188
|
+
] }),
|
|
49189
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49190
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49191
|
+
"span",
|
|
49192
|
+
{
|
|
49193
|
+
className: "uf-text-sm",
|
|
49194
|
+
style: {
|
|
49195
|
+
color: components.card.rowLeftLabel,
|
|
49196
|
+
fontFamily: fonts.regular
|
|
49197
|
+
},
|
|
49198
|
+
children: "Amount Received"
|
|
49199
|
+
}
|
|
49200
|
+
),
|
|
49201
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49202
|
+
"span",
|
|
49203
|
+
{
|
|
49204
|
+
style: {
|
|
49205
|
+
color: components.card.rowRightLabel,
|
|
49206
|
+
fontFamily: fonts.regular,
|
|
49207
|
+
fontSize: "14px"
|
|
49208
|
+
},
|
|
49209
|
+
children: [
|
|
49210
|
+
formatAmount(
|
|
49211
|
+
execution.destination_amount_base_unit,
|
|
49212
|
+
execution.destination_token_metadata?.decimals
|
|
49213
|
+
),
|
|
49214
|
+
" ",
|
|
49215
|
+
formatCurrency(execution.destination_currency)
|
|
49216
|
+
]
|
|
49217
|
+
}
|
|
49218
|
+
)
|
|
49219
|
+
] }),
|
|
49220
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49221
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49222
|
+
"span",
|
|
49223
|
+
{
|
|
49224
|
+
className: "uf-text-sm",
|
|
49225
|
+
style: {
|
|
49226
|
+
color: components.card.rowLeftLabel,
|
|
49227
|
+
fontFamily: fonts.regular
|
|
49228
|
+
},
|
|
49229
|
+
children: "USD Value"
|
|
49230
|
+
}
|
|
49231
|
+
),
|
|
49232
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49233
|
+
"span",
|
|
49234
|
+
{
|
|
49235
|
+
style: {
|
|
49236
|
+
color: components.card.rowRightLabel,
|
|
49237
|
+
fontFamily: fonts.regular,
|
|
49238
|
+
fontSize: "14px"
|
|
49239
|
+
},
|
|
49240
|
+
children: formatUsdAmount2(
|
|
49241
|
+
execution.source_amount_usd,
|
|
49242
|
+
execution.source_amount_base_unit
|
|
49285
49243
|
)
|
|
49286
|
-
|
|
49287
|
-
|
|
49288
|
-
),
|
|
49289
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
49290
|
-
|
|
49291
|
-
|
|
49292
|
-
|
|
49293
|
-
|
|
49294
|
-
|
|
49295
|
-
|
|
49296
|
-
|
|
49297
|
-
|
|
49298
|
-
|
|
49299
|
-
|
|
49300
|
-
|
|
49301
|
-
|
|
49302
|
-
|
|
49303
|
-
|
|
49304
|
-
|
|
49305
|
-
|
|
49306
|
-
|
|
49307
|
-
"
|
|
49308
|
-
|
|
49309
|
-
|
|
49310
|
-
|
|
49311
|
-
|
|
49312
|
-
|
|
49313
|
-
|
|
49314
|
-
|
|
49315
|
-
|
|
49316
|
-
|
|
49317
|
-
|
|
49318
|
-
|
|
49244
|
+
}
|
|
49245
|
+
)
|
|
49246
|
+
] }),
|
|
49247
|
+
isPending && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49248
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49249
|
+
"span",
|
|
49250
|
+
{
|
|
49251
|
+
className: "uf-text-sm",
|
|
49252
|
+
style: {
|
|
49253
|
+
color: components.card.rowLeftLabel,
|
|
49254
|
+
fontFamily: fonts.regular
|
|
49255
|
+
},
|
|
49256
|
+
children: "Estimated delivery time"
|
|
49257
|
+
}
|
|
49258
|
+
),
|
|
49259
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49260
|
+
"span",
|
|
49261
|
+
{
|
|
49262
|
+
style: {
|
|
49263
|
+
color: components.card.rowRightLabel,
|
|
49264
|
+
fontFamily: fonts.regular,
|
|
49265
|
+
fontSize: "14px"
|
|
49266
|
+
},
|
|
49267
|
+
children: formatEstimatedTime(execution?.estimated_processing_time)
|
|
49268
|
+
}
|
|
49269
|
+
)
|
|
49270
|
+
] }),
|
|
49271
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49272
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49273
|
+
"span",
|
|
49274
|
+
{
|
|
49275
|
+
className: "uf-text-sm",
|
|
49276
|
+
style: {
|
|
49277
|
+
color: components.card.rowLeftLabel,
|
|
49278
|
+
fontFamily: fonts.regular
|
|
49279
|
+
},
|
|
49280
|
+
children: "Source Network"
|
|
49281
|
+
}
|
|
49282
|
+
),
|
|
49283
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49284
|
+
"span",
|
|
49285
|
+
{
|
|
49286
|
+
style: {
|
|
49287
|
+
color: components.card.rowRightLabel,
|
|
49288
|
+
fontFamily: fonts.regular,
|
|
49289
|
+
fontSize: "14px"
|
|
49290
|
+
},
|
|
49291
|
+
children: getNetworkName(
|
|
49292
|
+
execution.source_chain_type,
|
|
49293
|
+
execution.source_chain_id
|
|
49319
49294
|
)
|
|
49320
|
-
|
|
49321
|
-
|
|
49322
|
-
),
|
|
49295
|
+
}
|
|
49296
|
+
)
|
|
49297
|
+
] }),
|
|
49323
49298
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
|
|
49324
49299
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49325
49300
|
"span",
|
|
49326
49301
|
{
|
|
49327
49302
|
className: "uf-text-sm",
|
|
49328
49303
|
style: {
|
|
49329
|
-
color: components.card.
|
|
49304
|
+
color: components.card.rowLeftLabel,
|
|
49330
49305
|
fontFamily: fonts.regular
|
|
49331
49306
|
},
|
|
49332
49307
|
children: "Destination Network"
|
|
@@ -49336,7 +49311,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49336
49311
|
"span",
|
|
49337
49312
|
{
|
|
49338
49313
|
style: {
|
|
49339
|
-
color: components.card.
|
|
49314
|
+
color: components.card.rowRightLabel,
|
|
49340
49315
|
fontFamily: fonts.regular,
|
|
49341
49316
|
fontSize: "14px"
|
|
49342
49317
|
},
|
|
@@ -49378,15 +49353,14 @@ function DepositDetailContent({ execution }) {
|
|
|
49378
49353
|
href: execution.explorer_url,
|
|
49379
49354
|
target: "_blank",
|
|
49380
49355
|
rel: "noopener noreferrer",
|
|
49381
|
-
className: "uf-grid uf-grid-cols-[auto_1fr_auto] uf-items-center uf-gap-2 uf-px-4 uf-py-3
|
|
49382
|
-
style: { borderColor: colors2.border },
|
|
49356
|
+
className: "uf-grid uf-grid-cols-[auto_1fr_auto] uf-items-center uf-gap-2 uf-px-4 uf-py-3 hover:uf-bg-card/50 uf-transition-colors",
|
|
49383
49357
|
children: [
|
|
49384
49358
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
49385
49359
|
"div",
|
|
49386
49360
|
{
|
|
49387
49361
|
className: "uf-text-sm",
|
|
49388
49362
|
style: {
|
|
49389
|
-
color: components.card.
|
|
49363
|
+
color: components.card.rowLeftLabel,
|
|
49390
49364
|
fontFamily: fonts.regular
|
|
49391
49365
|
},
|
|
49392
49366
|
children: "Deposit Tx"
|
|
@@ -49397,7 +49371,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49397
49371
|
{
|
|
49398
49372
|
className: "uf-text-sm uf-text-right",
|
|
49399
49373
|
style: {
|
|
49400
|
-
color: components.card.
|
|
49374
|
+
color: components.card.rowRightLabel,
|
|
49401
49375
|
fontFamily: fonts.regular
|
|
49402
49376
|
},
|
|
49403
49377
|
children: formatTransactionHash(execution.transaction_hash)
|
|
@@ -49407,7 +49381,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49407
49381
|
ExternalLink,
|
|
49408
49382
|
{
|
|
49409
49383
|
className: "uf-w-3.5 uf-h-3.5 uf-block",
|
|
49410
|
-
style: { color: components.card.
|
|
49384
|
+
style: { color: components.card.actionIcon }
|
|
49411
49385
|
}
|
|
49412
49386
|
)
|
|
49413
49387
|
]
|
|
@@ -49426,7 +49400,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49426
49400
|
{
|
|
49427
49401
|
className: "uf-text-sm",
|
|
49428
49402
|
style: {
|
|
49429
|
-
color: components.card.
|
|
49403
|
+
color: components.card.rowLeftLabel,
|
|
49430
49404
|
fontFamily: fonts.regular
|
|
49431
49405
|
},
|
|
49432
49406
|
children: "Completion Tx"
|
|
@@ -49437,7 +49411,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49437
49411
|
{
|
|
49438
49412
|
className: "uf-text-sm uf-text-right",
|
|
49439
49413
|
style: {
|
|
49440
|
-
color: components.card.
|
|
49414
|
+
color: components.card.rowRightLabel,
|
|
49441
49415
|
fontFamily: fonts.regular
|
|
49442
49416
|
},
|
|
49443
49417
|
children: formatTransactionHash(
|
|
@@ -49449,7 +49423,7 @@ function DepositDetailContent({ execution }) {
|
|
|
49449
49423
|
ExternalLink,
|
|
49450
49424
|
{
|
|
49451
49425
|
className: "uf-w-3.5 uf-h-3.5 uf-block",
|
|
49452
|
-
style: { color: components.card.
|
|
49426
|
+
style: { color: components.card.actionIcon }
|
|
49453
49427
|
}
|
|
49454
49428
|
)
|
|
49455
49429
|
]
|
|
@@ -50208,25 +50182,28 @@ function BuyWithCard({
|
|
|
50208
50182
|
}
|
|
50209
50183
|
}
|
|
50210
50184
|
) }) }),
|
|
50211
|
-
selectedCurrencyData?.suggested_amounts && selectedCurrencyData.suggested_amounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: selectedCurrencyData.suggested_amounts.map((quickAmount) =>
|
|
50212
|
-
|
|
50213
|
-
|
|
50214
|
-
|
|
50215
|
-
|
|
50216
|
-
|
|
50217
|
-
|
|
50218
|
-
|
|
50219
|
-
|
|
50220
|
-
|
|
50221
|
-
|
|
50185
|
+
selectedCurrencyData?.suggested_amounts && selectedCurrencyData.suggested_amounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: selectedCurrencyData.suggested_amounts.map((quickAmount) => {
|
|
50186
|
+
const isSelected = parseFloat(amount) === quickAmount;
|
|
50187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
50188
|
+
"button",
|
|
50189
|
+
{
|
|
50190
|
+
onClick: () => handleQuickAmount(quickAmount),
|
|
50191
|
+
className: "uf-w-24 uf-py-2 hover:uf-bg-accent uf-transition-colors uf-text-sm uf-font-medium",
|
|
50192
|
+
style: {
|
|
50193
|
+
backgroundColor: components.card.backgroundColor,
|
|
50194
|
+
color: components.card.titleColor,
|
|
50195
|
+
fontFamily: fonts.medium,
|
|
50196
|
+
borderRadius: components.card.borderRadius,
|
|
50197
|
+
border: `${components.card.borderWidth}px solid ${isSelected ? colors2.primary : components.card.borderColor}`
|
|
50198
|
+
},
|
|
50199
|
+
children: [
|
|
50200
|
+
getCurrencySymbol(currency),
|
|
50201
|
+
quickAmount.toLocaleString()
|
|
50202
|
+
]
|
|
50222
50203
|
},
|
|
50223
|
-
|
|
50224
|
-
|
|
50225
|
-
|
|
50226
|
-
]
|
|
50227
|
-
},
|
|
50228
|
-
quickAmount
|
|
50229
|
-
)) }),
|
|
50204
|
+
quickAmount
|
|
50205
|
+
);
|
|
50206
|
+
}) }),
|
|
50230
50207
|
amountValidationError && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50231
50208
|
"div",
|
|
50232
50209
|
{
|
|
@@ -50245,7 +50222,7 @@ function BuyWithCard({
|
|
|
50245
50222
|
"span",
|
|
50246
50223
|
{
|
|
50247
50224
|
style: {
|
|
50248
|
-
color: components.card.
|
|
50225
|
+
color: components.card.labelColor,
|
|
50249
50226
|
fontFamily: fonts.medium
|
|
50250
50227
|
},
|
|
50251
50228
|
children: "Provider"
|
|
@@ -50304,7 +50281,7 @@ function BuyWithCard({
|
|
|
50304
50281
|
{
|
|
50305
50282
|
className: "uf-text-xs uf-font-normal uf-mb-2",
|
|
50306
50283
|
style: {
|
|
50307
|
-
color: components.card.
|
|
50284
|
+
color: components.card.headerColor,
|
|
50308
50285
|
fontFamily: fonts.regular
|
|
50309
50286
|
},
|
|
50310
50287
|
children: "Auto-picked for you"
|
|
@@ -50419,8 +50396,8 @@ function BuyWithCard({
|
|
|
50419
50396
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50420
50397
|
"div",
|
|
50421
50398
|
{
|
|
50422
|
-
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"}`,
|
|
50423
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-space-y-2 uf-pt-2", children: sortedQuotes.map((quote, index2) => {
|
|
50399
|
+
className: `uf-transition-all uf-duration-300 uf-min-h-[420px] uf-flex uf-flex-col ${showQuotesView && !showOnrampView ? "uf-opacity-100" : "uf-opacity-0 uf-pointer-events-none uf-absolute uf-inset-0"}`,
|
|
50400
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-space-y-2 uf-pt-2 uf-pb-8 uf-overflow-y-auto uf-flex-1 uf-min-h-0", children: sortedQuotes.map((quote, index2) => {
|
|
50424
50401
|
const badges = getProviderBadges(quote, sortedQuotes);
|
|
50425
50402
|
const displayName = quote.service_provider_display_name;
|
|
50426
50403
|
const isSelected = selectedProvider?.service_provider === quote.service_provider;
|
|
@@ -50437,11 +50414,11 @@ function BuyWithCard({
|
|
|
50437
50414
|
},
|
|
50438
50415
|
onMouseEnter: () => setHoveredProviderIndex(index2),
|
|
50439
50416
|
onMouseLeave: () => setHoveredProviderIndex(null),
|
|
50440
|
-
className:
|
|
50417
|
+
className: "uf-w-full uf-transition-colors uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
|
|
50441
50418
|
style: {
|
|
50442
50419
|
backgroundColor: hoveredProviderIndex === index2 ? colors2.cardHover : components.card.backgroundColor,
|
|
50443
50420
|
borderRadius: components.card.borderRadius,
|
|
50444
|
-
border: `${components.card.borderWidth}px solid ${components.card.borderColor}`
|
|
50421
|
+
border: isSelected ? `2px solid ${colors2.primary}` : `${components.card.borderWidth}px solid ${components.card.borderColor}`
|
|
50445
50422
|
},
|
|
50446
50423
|
children: [
|
|
50447
50424
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
|
|
@@ -50468,7 +50445,8 @@ function BuyWithCard({
|
|
|
50468
50445
|
badges.map((badge, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
50469
50446
|
"span",
|
|
50470
50447
|
{
|
|
50471
|
-
className: "uf-text-[10px] uf-
|
|
50448
|
+
className: "uf-text-[10px] uf-font-normal",
|
|
50449
|
+
style: { color: colors2.success },
|
|
50472
50450
|
children: [
|
|
50473
50451
|
badge,
|
|
50474
50452
|
i < badges.length - 1 && ","
|
|
@@ -50476,8 +50454,25 @@ function BuyWithCard({
|
|
|
50476
50454
|
},
|
|
50477
50455
|
i
|
|
50478
50456
|
)),
|
|
50479
|
-
quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50480
|
-
|
|
50457
|
+
quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50458
|
+
"span",
|
|
50459
|
+
{
|
|
50460
|
+
className: "uf-text-[10px]",
|
|
50461
|
+
style: { color: components.card.subtextRightColor },
|
|
50462
|
+
children: "\u2022"
|
|
50463
|
+
}
|
|
50464
|
+
),
|
|
50465
|
+
quote.low_kyc === false && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
50466
|
+
"span",
|
|
50467
|
+
{
|
|
50468
|
+
className: "uf-text-[10px] uf-font-normal",
|
|
50469
|
+
style: {
|
|
50470
|
+
color: components.card.subtextRightColor,
|
|
50471
|
+
fontFamily: fonts.regular
|
|
50472
|
+
},
|
|
50473
|
+
children: "No document upload"
|
|
50474
|
+
}
|
|
50475
|
+
)
|
|
50481
50476
|
] })
|
|
50482
50477
|
] })
|
|
50483
50478
|
] }),
|
|
@@ -50578,7 +50573,7 @@ function BuyWithCard({
|
|
|
50578
50573
|
}
|
|
50579
50574
|
)
|
|
50580
50575
|
] }),
|
|
50581
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.
|
|
50576
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.iconColor } }) }),
|
|
50582
50577
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
|
|
50583
50578
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-relative", children: [
|
|
50584
50579
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
@@ -50621,7 +50616,7 @@ function BuyWithCard({
|
|
|
50621
50616
|
}
|
|
50622
50617
|
)
|
|
50623
50618
|
] }),
|
|
50624
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.
|
|
50619
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4", style: { color: components.card.iconColor } }) }),
|
|
50625
50620
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
|
|
50626
50621
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-relative", children: [
|
|
50627
50622
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
@@ -51103,7 +51098,7 @@ function DepositExecutionItem({
|
|
|
51103
51098
|
{
|
|
51104
51099
|
className: "uf-font-medium uf-text-sm uf-flex-shrink-0",
|
|
51105
51100
|
style: {
|
|
51106
|
-
color: components.card.
|
|
51101
|
+
color: components.card.textRightColor,
|
|
51107
51102
|
fontFamily: fonts.medium
|
|
51108
51103
|
},
|
|
51109
51104
|
children: formatUsdAmount2(execution.source_amount_usd || "0")
|
|
@@ -51152,7 +51147,7 @@ function TransferCryptoButton({
|
|
|
51152
51147
|
Zap,
|
|
51153
51148
|
{
|
|
51154
51149
|
className: "uf-w-5 uf-h-5",
|
|
51155
|
-
style: { color:
|
|
51150
|
+
style: { color: components.card.iconColor }
|
|
51156
51151
|
}
|
|
51157
51152
|
) }),
|
|
51158
51153
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -51239,7 +51234,7 @@ function DepositWithCardButton({
|
|
|
51239
51234
|
CreditCard,
|
|
51240
51235
|
{
|
|
51241
51236
|
className: "uf-w-5 uf-h-5",
|
|
51242
|
-
style: { color:
|
|
51237
|
+
style: { color: components.card.iconColor }
|
|
51243
51238
|
}
|
|
51244
51239
|
) }),
|
|
51245
51240
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -51332,7 +51327,7 @@ function PayWithExchangeButton({
|
|
|
51332
51327
|
ArrowLeftRight,
|
|
51333
51328
|
{
|
|
51334
51329
|
className: "uf-w-5 uf-h-5",
|
|
51335
|
-
style: { color:
|
|
51330
|
+
style: { color: components.card.iconColor }
|
|
51336
51331
|
}
|
|
51337
51332
|
) }),
|
|
51338
51333
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "uf-text-left", children: [
|
|
@@ -51419,7 +51414,7 @@ function DepositTrackerButton({
|
|
|
51419
51414
|
Clock,
|
|
51420
51415
|
{
|
|
51421
51416
|
className: "uf-w-5 uf-h-5",
|
|
51422
|
-
style: { color:
|
|
51417
|
+
style: { color: components.card.iconColor }
|
|
51423
51418
|
}
|
|
51424
51419
|
),
|
|
51425
51420
|
badge !== void 0 && badge > 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
@@ -54249,7 +54244,7 @@ function DepositsModal({
|
|
|
54249
54244
|
onClose: handleClose
|
|
54250
54245
|
}
|
|
54251
54246
|
),
|
|
54252
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-flex-1 uf-min-h-0 uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-space-y-2", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
54247
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-flex-1 uf-min-h-0 uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-space-y-2 uf-pb-8", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
54253
54248
|
"div",
|
|
54254
54249
|
{
|
|
54255
54250
|
className: "uf-text-sm",
|
|
@@ -54443,23 +54438,33 @@ function TokenSelectorSheet({
|
|
|
54443
54438
|
),
|
|
54444
54439
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "uf-w-7 uf-h-5 uf-invisible" })
|
|
54445
54440
|
] }),
|
|
54446
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.
|
|
54447
|
-
|
|
54448
|
-
|
|
54449
|
-
|
|
54450
|
-
|
|
54451
|
-
|
|
54452
|
-
|
|
54453
|
-
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",
|
|
54454
|
-
style: {
|
|
54455
|
-
backgroundColor: components.search.backgroundColor,
|
|
54456
|
-
color: components.search.inputColor,
|
|
54457
|
-
fontFamily: fonts.regular,
|
|
54458
|
-
borderRadius: components.input.borderRadius,
|
|
54459
|
-
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
54441
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "uf-pb-3", children: [
|
|
54442
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
54443
|
+
"style",
|
|
54444
|
+
{
|
|
54445
|
+
dangerouslySetInnerHTML: {
|
|
54446
|
+
__html: `.uf-token-sheet-search::placeholder { color: ${components.search.placeholderColor}; }`
|
|
54447
|
+
}
|
|
54460
54448
|
}
|
|
54461
|
-
|
|
54462
|
-
|
|
54449
|
+
),
|
|
54450
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
54451
|
+
"input",
|
|
54452
|
+
{
|
|
54453
|
+
type: "text",
|
|
54454
|
+
placeholder: "Search",
|
|
54455
|
+
value: searchQuery,
|
|
54456
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
54457
|
+
className: "uf-token-sheet-search uf-w-full uf-px-4 uf-py-2.5 uf-text-sm uf-outline-none focus:uf-ring-2 focus:uf-ring-ring/30",
|
|
54458
|
+
style: {
|
|
54459
|
+
backgroundColor: components.search.backgroundColor,
|
|
54460
|
+
color: components.search.inputColor,
|
|
54461
|
+
fontFamily: fonts.regular,
|
|
54462
|
+
borderRadius: components.input.borderRadius,
|
|
54463
|
+
border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
|
|
54464
|
+
}
|
|
54465
|
+
}
|
|
54466
|
+
) })
|
|
54467
|
+
] }),
|
|
54463
54468
|
quickSelectOptions.length > 0 && !searchQuery && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "uf-pb-3 uf--mx-6", children: [
|
|
54464
54469
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
54465
54470
|
"div",
|
|
@@ -54711,12 +54716,13 @@ function TokenSelectorSheet({
|
|
|
54711
54716
|
style: {
|
|
54712
54717
|
fontSize: 12,
|
|
54713
54718
|
flexShrink: 0,
|
|
54714
|
-
color: components.card.labelColor,
|
|
54715
54719
|
fontFamily: fonts.regular
|
|
54716
54720
|
},
|
|
54717
54721
|
children: [
|
|
54718
|
-
"
|
|
54719
|
-
|
|
54722
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { style: { color: components.card.textRightColor }, children: [
|
|
54723
|
+
"Minimum:",
|
|
54724
|
+
" "
|
|
54725
|
+
] }),
|
|
54720
54726
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { style: { color: components.card.labelHighlightRightColor }, children: [
|
|
54721
54727
|
"$",
|
|
54722
54728
|
chain.minimum_deposit_amount_usd
|
|
@@ -54792,13 +54798,15 @@ function DepositPollingUi({
|
|
|
54792
54798
|
function DepositFooterLinks({
|
|
54793
54799
|
onGlossaryClick
|
|
54794
54800
|
}) {
|
|
54801
|
+
const { colors: colors2 } = useTheme();
|
|
54795
54802
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "uf-flex uf-justify-end uf-items-center uf-gap-2 uf-text-xs uf-text-muted-foreground", children: [
|
|
54796
54803
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
54797
54804
|
"a",
|
|
54798
54805
|
{
|
|
54799
54806
|
href: "https://unifold.io/terms",
|
|
54800
54807
|
target: "_blank",
|
|
54801
|
-
className: "uf-cursor-pointer hover:uf-
|
|
54808
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
54809
|
+
style: { color: colors2.primary },
|
|
54802
54810
|
children: "Terms"
|
|
54803
54811
|
}
|
|
54804
54812
|
),
|
|
@@ -54808,7 +54816,8 @@ function DepositFooterLinks({
|
|
|
54808
54816
|
{
|
|
54809
54817
|
href: "https://unifold.io/support",
|
|
54810
54818
|
target: "_blank",
|
|
54811
|
-
className: "uf-cursor-pointer hover:uf-
|
|
54819
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
54820
|
+
style: { color: colors2.primary },
|
|
54812
54821
|
children: "Help"
|
|
54813
54822
|
}
|
|
54814
54823
|
),
|
|
@@ -54816,8 +54825,9 @@ function DepositFooterLinks({
|
|
|
54816
54825
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
54817
54826
|
"div",
|
|
54818
54827
|
{
|
|
54819
|
-
className: "uf-cursor-pointer hover:uf-
|
|
54828
|
+
className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
|
|
54820
54829
|
onClick: onGlossaryClick,
|
|
54830
|
+
style: { color: colors2.primary },
|
|
54821
54831
|
children: "Glossary"
|
|
54822
54832
|
}
|
|
54823
54833
|
)
|
|
@@ -54827,61 +54837,117 @@ var t3 = i18n2.transferCrypto;
|
|
|
54827
54837
|
function GlossaryModal({
|
|
54828
54838
|
open,
|
|
54829
54839
|
onOpenChange,
|
|
54830
|
-
|
|
54831
|
-
|
|
54840
|
+
backgroundColor: backgroundColorProp,
|
|
54841
|
+
themeClass: themeClassProp,
|
|
54842
|
+
colors: colorsProp
|
|
54832
54843
|
}) {
|
|
54844
|
+
const { themeClass, colors: colors2, components } = useTheme();
|
|
54845
|
+
const resolvedThemeClass = themeClassProp ?? themeClass;
|
|
54846
|
+
const modalBackground = backgroundColorProp ?? colors2.background;
|
|
54833
54847
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54834
54848
|
DialogContent2,
|
|
54835
54849
|
{
|
|
54836
|
-
className: `sm:uf-max-w-[400px] !uf-top-auto !uf-h-auto sm:!uf-top-[50%] uf-border-secondary uf-
|
|
54837
|
-
style: { backgroundColor:
|
|
54850
|
+
className: `sm:uf-max-w-[400px] !uf-top-auto !uf-h-auto sm:!uf-top-[50%] uf-border-secondary uf-p-0 uf-gap-0 [&>button]:uf-hidden ${resolvedThemeClass}`,
|
|
54851
|
+
style: { backgroundColor: modalBackground },
|
|
54838
54852
|
children: [
|
|
54839
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between
|
|
54840
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
54853
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-relative uf-flex uf-items-center uf-justify-between", children: [
|
|
54854
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "uf-invisible uf-w-9 uf-h-9 uf-flex uf-shrink-0 uf-items-center uf-justify-center", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(X, { className: "uf-w-4 uf-h-4" }) }),
|
|
54855
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
54856
|
+
DialogTitle2,
|
|
54857
|
+
{
|
|
54858
|
+
className: "uf-text-base uf-font-medium uf-absolute uf-left-0 uf-right-0 uf-text-center uf-pointer-events-none",
|
|
54859
|
+
style: { color: components.header.titleColor },
|
|
54860
|
+
children: "Glossary"
|
|
54861
|
+
}
|
|
54862
|
+
),
|
|
54841
54863
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
54842
54864
|
"button",
|
|
54843
54865
|
{
|
|
54844
54866
|
onClick: () => onOpenChange(false),
|
|
54845
|
-
className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-
|
|
54867
|
+
className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-flex-shrink-0 uf-z-[1]",
|
|
54868
|
+
style: { color: components.header.buttonColor },
|
|
54846
54869
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(X, { className: "uf-w-4 uf-h-4" })
|
|
54847
54870
|
}
|
|
54848
54871
|
)
|
|
54849
54872
|
] }),
|
|
54850
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-max-h-[60vh] sm:uf-max-h-[400px] uf-overflow-y-auto uf-
|
|
54851
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54852
|
-
|
|
54853
|
-
|
|
54854
|
-
|
|
54855
|
-
|
|
54856
|
-
|
|
54857
|
-
|
|
54858
|
-
|
|
54859
|
-
|
|
54860
|
-
|
|
54861
|
-
|
|
54862
|
-
|
|
54863
|
-
|
|
54864
|
-
|
|
54865
|
-
|
|
54866
|
-
|
|
54867
|
-
|
|
54868
|
-
|
|
54869
|
-
|
|
54870
|
-
|
|
54871
|
-
|
|
54872
|
-
|
|
54873
|
-
|
|
54874
|
-
|
|
54875
|
-
|
|
54876
|
-
|
|
54877
|
-
|
|
54878
|
-
|
|
54879
|
-
|
|
54880
|
-
|
|
54881
|
-
|
|
54882
|
-
|
|
54883
|
-
|
|
54884
|
-
|
|
54873
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-max-h-[60vh] sm:uf-max-h-[400px] uf-overflow-y-auto uf-pb-4 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-space-y-3", children: [
|
|
54874
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54875
|
+
"div",
|
|
54876
|
+
{
|
|
54877
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54878
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54879
|
+
children: [
|
|
54880
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Your Deposit Token" }),
|
|
54881
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.selectTokenDepositTooltip })
|
|
54882
|
+
]
|
|
54883
|
+
}
|
|
54884
|
+
),
|
|
54885
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54886
|
+
"div",
|
|
54887
|
+
{
|
|
54888
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54889
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54890
|
+
children: [
|
|
54891
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Deposit Address" }),
|
|
54892
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: "A unique wallet address generated for you. Send supported tokens to this address and they will be automatically converted and deposited into your account." })
|
|
54893
|
+
]
|
|
54894
|
+
}
|
|
54895
|
+
),
|
|
54896
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54897
|
+
"div",
|
|
54898
|
+
{
|
|
54899
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54900
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54901
|
+
children: [
|
|
54902
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Price Impact" }),
|
|
54903
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.priceImpact.tooltip })
|
|
54904
|
+
]
|
|
54905
|
+
}
|
|
54906
|
+
),
|
|
54907
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54908
|
+
"div",
|
|
54909
|
+
{
|
|
54910
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54911
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54912
|
+
children: [
|
|
54913
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Slippage" }),
|
|
54914
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.slippage.tooltip })
|
|
54915
|
+
]
|
|
54916
|
+
}
|
|
54917
|
+
),
|
|
54918
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54919
|
+
"div",
|
|
54920
|
+
{
|
|
54921
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54922
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54923
|
+
children: [
|
|
54924
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Processing Time" }),
|
|
54925
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: "The estimated time for your deposit to be confirmed and credited. This depends on the source network's block confirmation time and current congestion." })
|
|
54926
|
+
]
|
|
54927
|
+
}
|
|
54928
|
+
),
|
|
54929
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54930
|
+
"div",
|
|
54931
|
+
{
|
|
54932
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54933
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54934
|
+
children: [
|
|
54935
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Minimum Deposit" }),
|
|
54936
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.minDeposit.tooltip })
|
|
54937
|
+
]
|
|
54938
|
+
}
|
|
54939
|
+
),
|
|
54940
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
54941
|
+
"div",
|
|
54942
|
+
{
|
|
54943
|
+
className: "uf-rounded-xl uf-p-3",
|
|
54944
|
+
style: { backgroundColor: components.card.backgroundColor },
|
|
54945
|
+
children: [
|
|
54946
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Recipient Address" }),
|
|
54947
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: "The destination address on the target blockchain where your converted deposit will be sent. This is typically your wallet address on the application's native chain." })
|
|
54948
|
+
]
|
|
54949
|
+
}
|
|
54950
|
+
)
|
|
54885
54951
|
] }) })
|
|
54886
54952
|
]
|
|
54887
54953
|
}
|
|
@@ -55122,7 +55188,7 @@ function TransferCryptoSingleInput({
|
|
|
55122
55188
|
className: "uf-space-y-3 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden",
|
|
55123
55189
|
style: { backgroundColor: colors2.background },
|
|
55124
55190
|
children: [
|
|
55125
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-
|
|
55191
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-mb-1 uf-flex uf-items-center uf-justify-between", style: { color: components.card.labelColor }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-flex uf-items-center uf-gap-1", children: t4.selectTokenDeposit }) }),
|
|
55126
55192
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
55127
55193
|
"button",
|
|
55128
55194
|
{
|
|
@@ -55226,7 +55292,7 @@ function TransferCryptoSingleInput({
|
|
|
55226
55292
|
] })
|
|
55227
55293
|
] }),
|
|
55228
55294
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
|
|
55229
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-
|
|
55295
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: "Intent address" }),
|
|
55230
55296
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-shadow-lg", style: { borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: loading || tokensLoading || !initialSelectionDone ? (
|
|
55231
55297
|
// QR Skeleton - matches QR code appearance
|
|
55232
55298
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
@@ -55271,7 +55337,7 @@ function TransferCryptoSingleInput({
|
|
|
55271
55337
|
}
|
|
55272
55338
|
) })
|
|
55273
55339
|
] }),
|
|
55274
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-text-sm uf-
|
|
55340
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-text-sm uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
|
|
55275
55341
|
loading || tokensLoading || !initialSelectionDone ? (
|
|
55276
55342
|
// Address skeleton
|
|
55277
55343
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
@@ -55283,12 +55349,13 @@ function TransferCryptoSingleInput({
|
|
|
55283
55349
|
}
|
|
55284
55350
|
}
|
|
55285
55351
|
)
|
|
55286
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t4.noAddressAvailable }),
|
|
55352
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", style: { color: components.card.titleColor }, children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t4.noAddressAvailable }),
|
|
55287
55353
|
depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
55288
55354
|
"span",
|
|
55289
55355
|
{
|
|
55290
55356
|
onClick: handleCopyAddress,
|
|
55291
|
-
className:
|
|
55357
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
55358
|
+
style: { color: copied ? colors2.success : components.card.actionColor },
|
|
55292
55359
|
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
55293
55360
|
}
|
|
55294
55361
|
)
|
|
@@ -55350,7 +55417,8 @@ function TransferCryptoSingleInput({
|
|
|
55350
55417
|
"span",
|
|
55351
55418
|
{
|
|
55352
55419
|
onClick: () => handleCopyRecipientAddress(recipientAddress),
|
|
55353
|
-
className:
|
|
55420
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
55421
|
+
style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
|
|
55354
55422
|
children: copiedRecipient ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
55355
55423
|
}
|
|
55356
55424
|
)
|
|
@@ -55741,7 +55809,7 @@ function TransferCryptoDoubleInput({
|
|
|
55741
55809
|
children: [
|
|
55742
55810
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-grid uf-grid-cols-2 uf-gap-2.5", children: [
|
|
55743
55811
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
|
|
55744
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-
|
|
55812
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: t5.selectedToken }),
|
|
55745
55813
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
55746
55814
|
Select2,
|
|
55747
55815
|
{
|
|
@@ -55749,7 +55817,7 @@ function TransferCryptoDoubleInput({
|
|
|
55749
55817
|
onValueChange: setToken,
|
|
55750
55818
|
disabled: tokensLoading || supportedTokens.length === 0,
|
|
55751
55819
|
children: [
|
|
55752
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-
|
|
55820
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-h-10 hover:uf-opacity-90 uf-text-foreground disabled:uf-opacity-50", style: { backgroundColor: components.card.backgroundColor, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t5.loading }) }) : selectedToken ? renderTokenItem(selectedToken) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-xs uf-font-normal", children: token }) }) }) }),
|
|
55753
55821
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", style: { border: `1px solid ${isDarkMode ? "rgba(255,255,255,0.15)" : "rgba(0,0,0,0.15)"}`, ...fonts.regular ? { "--uf-font-family": fonts.regular } : {} }, children: supportedTokens.map((tokenData) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
55754
55822
|
SelectItem2,
|
|
55755
55823
|
{
|
|
@@ -55764,7 +55832,7 @@ function TransferCryptoDoubleInput({
|
|
|
55764
55832
|
)
|
|
55765
55833
|
] }),
|
|
55766
55834
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
|
|
55767
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-xs uf-
|
|
55835
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: [
|
|
55768
55836
|
t5.selectedChain,
|
|
55769
55837
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "uf-font-medium", style: { color: components.card.labelHighlightRightColor }, children: [
|
|
55770
55838
|
"$",
|
|
@@ -55780,7 +55848,7 @@ function TransferCryptoDoubleInput({
|
|
|
55780
55848
|
onValueChange: setChain,
|
|
55781
55849
|
disabled: tokensLoading || availableChainsForToken.length === 0,
|
|
55782
55850
|
children: [
|
|
55783
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-
|
|
55851
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-h-10 hover:uf-opacity-90 uf-text-foreground disabled:uf-opacity-50", style: { backgroundColor: components.card.backgroundColor, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t5.loading }) }) : currentChainFromBackend ? renderChainItem(currentChainFromBackend) : currentChainData ? renderChainItem(currentChainData) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-xs uf-font-normal", children: chain }) }) }) }),
|
|
55784
55852
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
55785
55853
|
SelectContent2,
|
|
55786
55854
|
{
|
|
@@ -55823,7 +55891,7 @@ function TransferCryptoDoubleInput({
|
|
|
55823
55891
|
] })
|
|
55824
55892
|
] }),
|
|
55825
55893
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
|
|
55826
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-
|
|
55894
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-mb-2 uf-flex uf-items-center uf-gap-1", style: { color: components.card.labelColor }, children: "Intent address" }),
|
|
55827
55895
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-shadow-lg", style: { borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` }, children: loading || tokensLoading || !initialSelectionDone ? (
|
|
55828
55896
|
// QR Skeleton - matches QR code appearance
|
|
55829
55897
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -55868,7 +55936,7 @@ function TransferCryptoDoubleInput({
|
|
|
55868
55936
|
}
|
|
55869
55937
|
) })
|
|
55870
55938
|
] }),
|
|
55871
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-sm uf-
|
|
55939
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-sm uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
|
|
55872
55940
|
loading || tokensLoading || !initialSelectionDone ? (
|
|
55873
55941
|
// Address skeleton
|
|
55874
55942
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -55880,12 +55948,13 @@ function TransferCryptoDoubleInput({
|
|
|
55880
55948
|
}
|
|
55881
55949
|
}
|
|
55882
55950
|
)
|
|
55883
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t5.noAddressAvailable }),
|
|
55951
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", style: { color: components.card.titleColor }, children: depositAddress ? truncateAddress(depositAddress, 8, 6) : t5.noAddressAvailable }),
|
|
55884
55952
|
depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
55885
55953
|
"span",
|
|
55886
55954
|
{
|
|
55887
55955
|
onClick: handleCopyAddress,
|
|
55888
|
-
className:
|
|
55956
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
55957
|
+
style: { color: copied ? colors2.success : components.card.actionColor },
|
|
55889
55958
|
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
55890
55959
|
}
|
|
55891
55960
|
)
|
|
@@ -55947,7 +56016,8 @@ function TransferCryptoDoubleInput({
|
|
|
55947
56016
|
"span",
|
|
55948
56017
|
{
|
|
55949
56018
|
onClick: () => handleCopyRecipientAddress(recipientAddress),
|
|
55950
|
-
className:
|
|
56019
|
+
className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
|
|
56020
|
+
style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
|
|
55951
56021
|
children: copiedRecipient ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
|
|
55952
56022
|
}
|
|
55953
56023
|
)
|
|
@@ -57944,14 +58014,23 @@ function DepositModal({
|
|
|
57944
58014
|
onDepositSuccess,
|
|
57945
58015
|
onDepositError,
|
|
57946
58016
|
theme = "dark",
|
|
57947
|
-
hideOverlay = false
|
|
58017
|
+
hideOverlay = false,
|
|
58018
|
+
initialScreen = "main"
|
|
57948
58019
|
}) {
|
|
57949
58020
|
const { colors: colors2, fonts, components } = useTheme();
|
|
58021
|
+
const effectiveInitialScreen = (0, import_react3.useMemo)(() => {
|
|
58022
|
+
const s = initialScreen ?? "main";
|
|
58023
|
+
if (s === "tracker" && hideDepositTracker) return "main";
|
|
58024
|
+
return s;
|
|
58025
|
+
}, [initialScreen, hideDepositTracker]);
|
|
57950
58026
|
const [containerEl, setContainerEl] = (0, import_react3.useState)(null);
|
|
57951
58027
|
const containerCallbackRef = (0, import_react3.useCallback)((el) => {
|
|
57952
58028
|
setContainerEl(el);
|
|
57953
58029
|
}, []);
|
|
57954
|
-
const [view, setView] = (0, import_react3.useState)(
|
|
58030
|
+
const [view, setView] = (0, import_react3.useState)(
|
|
58031
|
+
effectiveInitialScreen
|
|
58032
|
+
);
|
|
58033
|
+
const resetViewTimeoutRef = (0, import_react3.useRef)(null);
|
|
57955
58034
|
const [cardView, setCardView] = (0, import_react3.useState)(
|
|
57956
58035
|
"amount"
|
|
57957
58036
|
);
|
|
@@ -58071,6 +58150,43 @@ function DepositModal({
|
|
|
58071
58150
|
const template = errors[code] ?? addressValidationMessages.defaultError;
|
|
58072
58151
|
return interpolate(template, metadata);
|
|
58073
58152
|
};
|
|
58153
|
+
const openingScreen = effectiveInitialScreen;
|
|
58154
|
+
const sessionOpenedFromMenu = openingScreen === "main";
|
|
58155
|
+
const standaloneNeedsDepositPrereq = openingScreen !== "main" && (view === "transfer" || view === "card");
|
|
58156
|
+
let depositPrerequisiteBody;
|
|
58157
|
+
if (isCountryLoading || isAddressValidationLoading || tokensLoading || walletsLoading || !projectConfig) {
|
|
58158
|
+
depositPrerequisiteBody = standaloneNeedsDepositPrereq ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, { variant: "with-icons" }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
58159
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, { variant: "with-icons" }),
|
|
58160
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, { variant: "with-icons" }),
|
|
58161
|
+
!hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, {})
|
|
58162
|
+
] });
|
|
58163
|
+
} else if (countryError) {
|
|
58164
|
+
depositPrerequisiteBody = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
|
|
58165
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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_runtime66.jsx)(TriangleAlert, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
|
|
58166
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "Unable to Verify Location" }),
|
|
58167
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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." })
|
|
58168
|
+
] });
|
|
58169
|
+
} else if (!isAllowed) {
|
|
58170
|
+
depositPrerequisiteBody = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
|
|
58171
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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_runtime66.jsx)(MapPinOff, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
|
|
58172
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "No Tokens Available" }),
|
|
58173
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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." })
|
|
58174
|
+
] });
|
|
58175
|
+
} else if (isAddressValid === false) {
|
|
58176
|
+
depositPrerequisiteBody = /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
|
|
58177
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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_runtime66.jsx)(TriangleAlert, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
|
|
58178
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: addressValidationMessages.unableToReceiveFunds }),
|
|
58179
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: getAddressValidationErrorMessage(
|
|
58180
|
+
addressFailureCode,
|
|
58181
|
+
addressFailureMetadata
|
|
58182
|
+
) })
|
|
58183
|
+
] });
|
|
58184
|
+
} else {
|
|
58185
|
+
depositPrerequisiteBody = null;
|
|
58186
|
+
}
|
|
58187
|
+
const showBackTransfer = sessionOpenedFromMenu;
|
|
58188
|
+
const showBackCard = cardView !== "amount" || sessionOpenedFromMenu;
|
|
58189
|
+
const showBackTracker = selectedExecution !== null || sessionOpenedFromMenu;
|
|
58074
58190
|
const themeClass = resolvedTheme === "dark" ? "uf-dark" : "";
|
|
58075
58191
|
const handleWalletDisconnect = () => {
|
|
58076
58192
|
setUserDisconnectedWallet(true);
|
|
@@ -58081,13 +58197,37 @@ function DepositModal({
|
|
|
58081
58197
|
};
|
|
58082
58198
|
const handleClose = () => {
|
|
58083
58199
|
onOpenChange(false);
|
|
58084
|
-
|
|
58085
|
-
|
|
58200
|
+
if (resetViewTimeoutRef.current) {
|
|
58201
|
+
clearTimeout(resetViewTimeoutRef.current);
|
|
58202
|
+
}
|
|
58203
|
+
resetViewTimeoutRef.current = setTimeout(() => {
|
|
58204
|
+
setView(effectiveInitialScreen);
|
|
58086
58205
|
setCardView("amount");
|
|
58087
58206
|
setExchangeView("providers");
|
|
58088
58207
|
setBrowserWalletInfo(null);
|
|
58208
|
+
resetViewTimeoutRef.current = null;
|
|
58089
58209
|
}, 200);
|
|
58090
58210
|
};
|
|
58211
|
+
(0, import_react3.useLayoutEffect)(() => {
|
|
58212
|
+
if (!open) return;
|
|
58213
|
+
if (resetViewTimeoutRef.current) {
|
|
58214
|
+
clearTimeout(resetViewTimeoutRef.current);
|
|
58215
|
+
resetViewTimeoutRef.current = null;
|
|
58216
|
+
}
|
|
58217
|
+
setView(effectiveInitialScreen);
|
|
58218
|
+
setCardView("amount");
|
|
58219
|
+
setExchangeView("providers");
|
|
58220
|
+
setBrowserWalletInfo(null);
|
|
58221
|
+
setSelectedExecution(null);
|
|
58222
|
+
}, [open, effectiveInitialScreen]);
|
|
58223
|
+
(0, import_react3.useEffect)(
|
|
58224
|
+
() => () => {
|
|
58225
|
+
if (resetViewTimeoutRef.current) {
|
|
58226
|
+
clearTimeout(resetViewTimeoutRef.current);
|
|
58227
|
+
}
|
|
58228
|
+
},
|
|
58229
|
+
[]
|
|
58230
|
+
);
|
|
58091
58231
|
const handleBack = () => {
|
|
58092
58232
|
if (view === "card" && cardView === "quotes") {
|
|
58093
58233
|
setCardView("amount");
|
|
@@ -58200,95 +58340,64 @@ function DepositModal({
|
|
|
58200
58340
|
publishableKey
|
|
58201
58341
|
}
|
|
58202
58342
|
),
|
|
58203
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children:
|
|
58204
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58205
|
-
|
|
58206
|
-
|
|
58207
|
-
|
|
58208
|
-
|
|
58209
|
-
|
|
58210
|
-
|
|
58211
|
-
|
|
58212
|
-
|
|
58213
|
-
|
|
58214
|
-
|
|
58215
|
-
|
|
58216
|
-
|
|
58217
|
-
|
|
58218
|
-
|
|
58219
|
-
|
|
58220
|
-
|
|
58221
|
-
|
|
58222
|
-
|
|
58223
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.
|
|
58224
|
-
|
|
58225
|
-
|
|
58226
|
-
|
|
58227
|
-
|
|
58228
|
-
|
|
58229
|
-
|
|
58230
|
-
|
|
58231
|
-
|
|
58232
|
-
/*
|
|
58233
|
-
|
|
58234
|
-
|
|
58235
|
-
|
|
58236
|
-
|
|
58237
|
-
|
|
58238
|
-
|
|
58239
|
-
|
|
58240
|
-
|
|
58241
|
-
|
|
58242
|
-
|
|
58243
|
-
|
|
58244
|
-
|
|
58245
|
-
{
|
|
58246
|
-
|
|
58247
|
-
|
|
58248
|
-
|
|
58249
|
-
|
|
58250
|
-
|
|
58251
|
-
|
|
58252
|
-
|
|
58253
|
-
|
|
58254
|
-
|
|
58255
|
-
{
|
|
58256
|
-
onClick: () => setView("card"),
|
|
58257
|
-
title: t6.depositWithCard.title,
|
|
58258
|
-
subtitle: t6.depositWithCard.subtitle,
|
|
58259
|
-
paymentNetworks: projectConfig.payment_networks.networks
|
|
58260
|
-
}
|
|
58261
|
-
),
|
|
58262
|
-
showPayWithExchange && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58263
|
-
PayWithExchangeButton,
|
|
58264
|
-
{
|
|
58265
|
-
onClick: () => setView("exchange"),
|
|
58266
|
-
title: t6.payWithExchange.title,
|
|
58267
|
-
subtitle: t6.payWithExchange.subtitle,
|
|
58268
|
-
exchanges,
|
|
58269
|
-
loading: exchangesLoading
|
|
58270
|
-
}
|
|
58271
|
-
),
|
|
58272
|
-
!hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58273
|
-
DepositTrackerButton,
|
|
58274
|
-
{
|
|
58275
|
-
onClick: () => {
|
|
58276
|
-
setAllExecutions(depositExecutions);
|
|
58277
|
-
setView("tracker");
|
|
58278
|
-
},
|
|
58279
|
-
title: "Deposit Tracker",
|
|
58280
|
-
subtitle: "Track your deposit progress",
|
|
58281
|
-
badge: depositExecutions.length > 0 ? depositExecutions.length : void 0
|
|
58282
|
-
}
|
|
58283
|
-
)
|
|
58284
|
-
] })
|
|
58285
|
-
) })
|
|
58343
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: depositPrerequisiteBody ?? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
58344
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58345
|
+
TransferCryptoButton,
|
|
58346
|
+
{
|
|
58347
|
+
onClick: () => setView("transfer"),
|
|
58348
|
+
title: t6.transferCrypto.title,
|
|
58349
|
+
subtitle: t6.transferCrypto.subtitle,
|
|
58350
|
+
featuredTokens: projectConfig?.transfer_crypto.networks
|
|
58351
|
+
}
|
|
58352
|
+
),
|
|
58353
|
+
enableConnectWallet && !isMobileView && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58354
|
+
BrowserWalletButton,
|
|
58355
|
+
{
|
|
58356
|
+
onClick: handleBrowserWalletClick,
|
|
58357
|
+
onConnectClick: handleWalletConnectClick,
|
|
58358
|
+
onDisconnect: handleWalletDisconnect,
|
|
58359
|
+
chainType: browserWalletChainType,
|
|
58360
|
+
publishableKey
|
|
58361
|
+
}
|
|
58362
|
+
),
|
|
58363
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58364
|
+
DepositWithCardButton,
|
|
58365
|
+
{
|
|
58366
|
+
onClick: () => setView("card"),
|
|
58367
|
+
title: t6.depositWithCard.title,
|
|
58368
|
+
subtitle: t6.depositWithCard.subtitle,
|
|
58369
|
+
paymentNetworks: projectConfig?.payment_networks.networks
|
|
58370
|
+
}
|
|
58371
|
+
),
|
|
58372
|
+
showPayWithExchange && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58373
|
+
PayWithExchangeButton,
|
|
58374
|
+
{
|
|
58375
|
+
onClick: () => setView("exchange"),
|
|
58376
|
+
title: t6.payWithExchange.title,
|
|
58377
|
+
subtitle: t6.payWithExchange.subtitle,
|
|
58378
|
+
exchanges,
|
|
58379
|
+
loading: exchangesLoading
|
|
58380
|
+
}
|
|
58381
|
+
),
|
|
58382
|
+
!hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58383
|
+
DepositTrackerButton,
|
|
58384
|
+
{
|
|
58385
|
+
onClick: () => {
|
|
58386
|
+
setAllExecutions(depositExecutions);
|
|
58387
|
+
setView("tracker");
|
|
58388
|
+
},
|
|
58389
|
+
title: "Deposit Tracker",
|
|
58390
|
+
subtitle: "Track your deposit progress",
|
|
58391
|
+
badge: depositExecutions.length > 0 ? depositExecutions.length : void 0
|
|
58392
|
+
}
|
|
58393
|
+
)
|
|
58394
|
+
] }) })
|
|
58286
58395
|
] }) : view === "transfer" ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
58287
58396
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58288
58397
|
DepositHeader,
|
|
58289
58398
|
{
|
|
58290
58399
|
title: t6.transferCrypto.title,
|
|
58291
|
-
showBack:
|
|
58400
|
+
showBack: showBackTransfer,
|
|
58292
58401
|
onBack: handleBack,
|
|
58293
58402
|
onClose: handleClose,
|
|
58294
58403
|
showBalance: showBalanceHeader,
|
|
@@ -58300,7 +58409,7 @@ function DepositModal({
|
|
|
58300
58409
|
publishableKey
|
|
58301
58410
|
}
|
|
58302
58411
|
),
|
|
58303
|
-
transferInputVariant === "single_input" ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58412
|
+
standaloneNeedsDepositPrereq && depositPrerequisiteBody !== null ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: depositPrerequisiteBody }) : transferInputVariant === "single_input" ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58304
58413
|
TransferCryptoSingleInput,
|
|
58305
58414
|
{
|
|
58306
58415
|
userId,
|
|
@@ -58336,12 +58445,12 @@ function DepositModal({
|
|
|
58336
58445
|
DepositHeader,
|
|
58337
58446
|
{
|
|
58338
58447
|
title: selectedExecution ? "Deposit Details" : "Deposit Tracker",
|
|
58339
|
-
showBack:
|
|
58448
|
+
showBack: showBackTracker,
|
|
58340
58449
|
onBack: handleBack,
|
|
58341
58450
|
onClose: handleClose
|
|
58342
58451
|
}
|
|
58343
58452
|
),
|
|
58344
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-h-[460px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: selectedExecution ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DepositDetailContent, { execution: selectedExecution }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-space-y-2 uf-pb-
|
|
58453
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-h-[460px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: selectedExecution ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DepositDetailContent, { execution: selectedExecution }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-space-y-2 uf-pb-8", children: allExecutions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58345
58454
|
"div",
|
|
58346
58455
|
{
|
|
58347
58456
|
className: "uf-text-sm",
|
|
@@ -58361,7 +58470,7 @@ function DepositModal({
|
|
|
58361
58470
|
DepositHeader,
|
|
58362
58471
|
{
|
|
58363
58472
|
title: cardView === "quotes" ? t6.quotes : t6.depositWithCard.title,
|
|
58364
|
-
showBack:
|
|
58473
|
+
showBack: showBackCard,
|
|
58365
58474
|
onBack: handleBack,
|
|
58366
58475
|
onClose: handleClose,
|
|
58367
58476
|
badge: cardView === "quotes" ? { count: quotesCount } : void 0,
|
|
@@ -58374,7 +58483,7 @@ function DepositModal({
|
|
|
58374
58483
|
publishableKey
|
|
58375
58484
|
}
|
|
58376
58485
|
),
|
|
58377
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58486
|
+
standaloneNeedsDepositPrereq && depositPrerequisiteBody !== null ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: depositPrerequisiteBody }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
58378
58487
|
BuyWithCard,
|
|
58379
58488
|
{
|
|
58380
58489
|
userId,
|
|
@@ -58664,7 +58773,8 @@ function UnifoldProvider2({
|
|
|
58664
58773
|
enablePayWithExchange: config?.enablePayWithExchange,
|
|
58665
58774
|
onDepositSuccess: handleDepositSuccess,
|
|
58666
58775
|
onDepositError: handleDepositError,
|
|
58667
|
-
theme: resolvedTheme
|
|
58776
|
+
theme: resolvedTheme,
|
|
58777
|
+
initialScreen: depositConfig.initialScreen ?? config?.defaultInitialScreen
|
|
58668
58778
|
}
|
|
58669
58779
|
)
|
|
58670
58780
|
]
|