@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.js CHANGED
@@ -38711,18 +38711,18 @@ function composeContextScopes(...scopes) {
38711
38711
  createScope.scopeName = baseScope.scopeName;
38712
38712
  return createScope;
38713
38713
  }
38714
- var useLayoutEffect22 = globalThis?.document ? React32.useLayoutEffect : () => {
38714
+ var useLayoutEffect23 = globalThis?.document ? React32.useLayoutEffect : () => {
38715
38715
  };
38716
38716
  var useReactId = React42[" useId ".trim().toString()] || (() => void 0);
38717
38717
  var count = 0;
38718
38718
  function useId13(deterministicId) {
38719
38719
  const [id, setId] = React42.useState(useReactId());
38720
- useLayoutEffect22(() => {
38720
+ useLayoutEffect23(() => {
38721
38721
  if (!deterministicId) setId((reactId) => reactId ?? String(count++));
38722
38722
  }, [deterministicId]);
38723
38723
  return deterministicId || (id ? `radix-${id}` : "");
38724
38724
  }
38725
- var useInsertionEffect = React52[" useInsertionEffect ".trim().toString()] || useLayoutEffect22;
38725
+ var useInsertionEffect = React52[" useInsertionEffect ".trim().toString()] || useLayoutEffect23;
38726
38726
  function useControllableState({
38727
38727
  prop,
38728
38728
  defaultProp,
@@ -39337,7 +39337,7 @@ var PORTAL_NAME = "Portal";
39337
39337
  var Portal = React12.forwardRef((props, forwardedRef) => {
39338
39338
  const { container: containerProp, ...portalProps } = props;
39339
39339
  const [mounted, setMounted] = React12.useState(false);
39340
- useLayoutEffect22(() => setMounted(true), []);
39340
+ useLayoutEffect23(() => setMounted(true), []);
39341
39341
  const container = containerProp || mounted && globalThis?.document?.body;
39342
39342
  return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
39343
39343
  });
@@ -39380,7 +39380,7 @@ function usePresence(present) {
39380
39380
  const currentAnimationName = getAnimationName(stylesRef.current);
39381
39381
  prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
39382
39382
  }, [state]);
39383
- useLayoutEffect22(() => {
39383
+ useLayoutEffect23(() => {
39384
39384
  const styles = stylesRef.current;
39385
39385
  const wasPresent = prevPresentRef.current;
39386
39386
  const hasPresentChanged = wasPresent !== present;
@@ -39402,7 +39402,7 @@ function usePresence(present) {
39402
39402
  prevPresentRef.current = present;
39403
39403
  }
39404
39404
  }, [present, send]);
39405
- useLayoutEffect22(() => {
39405
+ useLayoutEffect23(() => {
39406
39406
  if (node) {
39407
39407
  let timeoutId;
39408
39408
  const ownerWindow = node.ownerDocument.defaultView ?? window;
@@ -45415,7 +45415,7 @@ Arrow.displayName = NAME;
45415
45415
  var Root2 = Arrow;
45416
45416
  function useSize(element) {
45417
45417
  const [size4, setSize] = React27.useState(void 0);
45418
- useLayoutEffect22(() => {
45418
+ useLayoutEffect23(() => {
45419
45419
  if (element) {
45420
45420
  setSize({ width: element.offsetWidth, height: element.offsetHeight });
45421
45421
  const resizeObserver = new ResizeObserver((entries) => {
@@ -45552,7 +45552,7 @@ var PopperContent = React28.forwardRef(
45552
45552
  });
45553
45553
  const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
45554
45554
  const handlePlaced = useCallbackRef(onPlaced);
45555
- useLayoutEffect22(() => {
45555
+ useLayoutEffect23(() => {
45556
45556
  if (isPositioned) {
45557
45557
  handlePlaced?.();
45558
45558
  }
@@ -45561,7 +45561,7 @@ var PopperContent = React28.forwardRef(
45561
45561
  const arrowY = middlewareData.arrow?.y;
45562
45562
  const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
45563
45563
  const [contentZIndex, setContentZIndex] = React28.useState();
45564
- useLayoutEffect22(() => {
45564
+ useLayoutEffect23(() => {
45565
45565
  if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
45566
45566
  }, [content]);
45567
45567
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
@@ -46492,7 +46492,7 @@ var SelectValue = React34.forwardRef(
46492
46492
  const { onValueNodeHasChildrenChange } = context;
46493
46493
  const hasChildren = children !== void 0;
46494
46494
  const composedRefs = useComposedRefs(forwardedRef, context.onValueNodeChange);
46495
- useLayoutEffect22(() => {
46495
+ useLayoutEffect23(() => {
46496
46496
  onValueNodeHasChildrenChange(hasChildren);
46497
46497
  }, [onValueNodeHasChildrenChange, hasChildren]);
46498
46498
  return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
@@ -46525,7 +46525,7 @@ var SelectContent = React34.forwardRef(
46525
46525
  (props, forwardedRef) => {
46526
46526
  const context = useSelectContext(CONTENT_NAME4, props.__scopeSelect);
46527
46527
  const [fragment, setFragment] = React34.useState();
46528
- useLayoutEffect22(() => {
46528
+ useLayoutEffect23(() => {
46529
46529
  setFragment(new DocumentFragment());
46530
46530
  }, []);
46531
46531
  if (!context.open) {
@@ -46887,9 +46887,9 @@ var SelectItemAlignedPosition = React34.forwardRef((props, forwardedRef) => {
46887
46887
  context.dir,
46888
46888
  onPlaced
46889
46889
  ]);
46890
- useLayoutEffect22(() => position(), [position]);
46890
+ useLayoutEffect23(() => position(), [position]);
46891
46891
  const [contentZIndex, setContentZIndex] = React34.useState();
46892
- useLayoutEffect22(() => {
46892
+ useLayoutEffect23(() => {
46893
46893
  if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
46894
46894
  }, [content]);
46895
46895
  const handleScrollButtonChange = React34.useCallback(
@@ -47186,7 +47186,7 @@ var SelectItemText = React34.forwardRef(
47186
47186
  [itemContext.disabled, itemContext.value, textContent]
47187
47187
  );
47188
47188
  const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
47189
- useLayoutEffect22(() => {
47189
+ useLayoutEffect23(() => {
47190
47190
  onNativeOptionAdd(nativeOption);
47191
47191
  return () => onNativeOptionRemove(nativeOption);
47192
47192
  }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
@@ -47212,7 +47212,7 @@ var SelectScrollUpButton = React34.forwardRef((props, forwardedRef) => {
47212
47212
  const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
47213
47213
  const [canScrollUp, setCanScrollUp] = React34.useState(false);
47214
47214
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
47215
- useLayoutEffect22(() => {
47215
+ useLayoutEffect23(() => {
47216
47216
  if (contentContext.viewport && contentContext.isPositioned) {
47217
47217
  let handleScroll22 = function() {
47218
47218
  const canScrollUp2 = viewport.scrollTop > 0;
@@ -47246,7 +47246,7 @@ var SelectScrollDownButton = React34.forwardRef((props, forwardedRef) => {
47246
47246
  const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
47247
47247
  const [canScrollDown, setCanScrollDown] = React34.useState(false);
47248
47248
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
47249
- useLayoutEffect22(() => {
47249
+ useLayoutEffect23(() => {
47250
47250
  if (contentContext.viewport && contentContext.isPositioned) {
47251
47251
  let handleScroll22 = function() {
47252
47252
  const maxScroll = viewport.scrollHeight - viewport.clientHeight;
@@ -47289,7 +47289,7 @@ var SelectScrollButtonImpl = React34.forwardRef((props, forwardedRef) => {
47289
47289
  React34.useEffect(() => {
47290
47290
  return () => clearAutoScrollTimer();
47291
47291
  }, [clearAutoScrollTimer]);
47292
- useLayoutEffect22(() => {
47292
+ useLayoutEffect23(() => {
47293
47293
  const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
47294
47294
  activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
47295
47295
  }, [getItems]);
@@ -48619,24 +48619,34 @@ function CurrencyModal({
48619
48619
  onClose: handleClose
48620
48620
  }
48621
48621
  ),
48622
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "uf-relative", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
48623
- "input",
48624
- {
48625
- type: "text",
48626
- value: searchQuery,
48627
- onChange: (e) => setSearchQuery(e.target.value),
48628
- placeholder: "Search",
48629
- 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",
48630
- style: {
48631
- backgroundColor: components.search.backgroundColor,
48632
- color: components.search.inputColor,
48633
- fontFamily: fonts.regular,
48634
- borderRadius: components.input.borderRadius,
48635
- border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
48622
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "uf-pb-2", children: [
48623
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
48624
+ "style",
48625
+ {
48626
+ dangerouslySetInnerHTML: {
48627
+ __html: `.uf-currency-modal-search::placeholder { color: ${components.search.placeholderColor}; }`
48628
+ }
48636
48629
  }
48637
- }
48638
- ) }) }),
48639
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "uf-flex-1 sm:uf-flex-none uf-overflow-y-auto uf-pb-6 [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: [
48630
+ ),
48631
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "uf-relative", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
48632
+ "input",
48633
+ {
48634
+ type: "text",
48635
+ value: searchQuery,
48636
+ onChange: (e) => setSearchQuery(e.target.value),
48637
+ placeholder: "Search",
48638
+ 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",
48639
+ style: {
48640
+ backgroundColor: components.search.backgroundColor,
48641
+ color: components.search.inputColor,
48642
+ fontFamily: fonts.regular,
48643
+ borderRadius: components.input.borderRadius,
48644
+ border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
48645
+ }
48646
+ }
48647
+ ) })
48648
+ ] }),
48649
+ /* @__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: [
48640
48650
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
48641
48651
  CurrencyListSection,
48642
48652
  {
@@ -49158,188 +49168,153 @@ function DepositDetailContent({ execution }) {
49158
49168
  className: "uf-overflow-hidden uf-mb-3",
49159
49169
  style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` },
49160
49170
  children: [
49161
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49162
- "div",
49163
- {
49164
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49165
- style: { borderColor: colors2.border },
49166
- children: [
49167
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49168
- "span",
49169
- {
49170
- className: "uf-text-sm",
49171
- style: {
49172
- color: components.card.labelColor,
49173
- fontFamily: fonts.regular
49174
- },
49175
- children: "Amount Sent"
49176
- }
49177
- ),
49178
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49179
- "span",
49180
- {
49181
- style: {
49182
- color: components.card.titleColor,
49183
- fontFamily: fonts.regular,
49184
- fontSize: "14px"
49185
- },
49186
- children: [
49187
- formatAmount(
49188
- execution.source_amount_base_unit,
49189
- execution.source_token_metadata?.decimals
49190
- ),
49191
- " ",
49192
- formatCurrency(execution.source_currency)
49193
- ]
49194
- }
49195
- )
49196
- ]
49197
- }
49198
- ),
49199
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49200
- "div",
49201
- {
49202
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49203
- style: { borderColor: colors2.border },
49204
- children: [
49205
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49206
- "span",
49207
- {
49208
- className: "uf-text-sm",
49209
- style: {
49210
- color: components.card.labelColor,
49211
- fontFamily: fonts.regular
49212
- },
49213
- children: "Amount Received"
49214
- }
49215
- ),
49216
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49217
- "span",
49218
- {
49219
- style: {
49220
- color: components.card.titleColor,
49221
- fontFamily: fonts.regular,
49222
- fontSize: "14px"
49223
- },
49224
- children: [
49225
- formatAmount(
49226
- execution.destination_amount_base_unit,
49227
- execution.destination_token_metadata?.decimals
49228
- ),
49229
- " ",
49230
- formatCurrency(execution.destination_currency)
49231
- ]
49232
- }
49233
- )
49234
- ]
49235
- }
49236
- ),
49237
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49238
- "div",
49239
- {
49240
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49241
- style: { borderColor: colors2.border },
49242
- children: [
49243
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49244
- "span",
49245
- {
49246
- className: "uf-text-sm",
49247
- style: {
49248
- color: components.card.labelColor,
49249
- fontFamily: fonts.regular
49250
- },
49251
- children: "USD Value"
49252
- }
49253
- ),
49254
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49255
- "span",
49256
- {
49257
- style: {
49258
- color: components.card.titleColor,
49259
- fontFamily: fonts.regular,
49260
- fontSize: "14px"
49261
- },
49262
- children: formatUsdAmount2(
49263
- execution.source_amount_usd,
49264
- execution.source_amount_base_unit
49265
- )
49266
- }
49267
- )
49268
- ]
49269
- }
49270
- ),
49271
- isPending && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49272
- "div",
49273
- {
49274
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49275
- style: { borderColor: colors2.border },
49276
- children: [
49277
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49278
- "span",
49279
- {
49280
- className: "uf-text-sm",
49281
- style: {
49282
- color: components.card.labelColor,
49283
- fontFamily: fonts.regular
49284
- },
49285
- children: "Estimated delivery time"
49286
- }
49287
- ),
49288
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49289
- "span",
49290
- {
49291
- style: {
49292
- color: components.card.titleColor,
49293
- fontFamily: fonts.regular,
49294
- fontSize: "14px"
49295
- },
49296
- children: formatEstimatedTime(execution?.estimated_processing_time)
49297
- }
49171
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
49172
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49173
+ "span",
49174
+ {
49175
+ className: "uf-text-sm",
49176
+ style: {
49177
+ color: components.card.rowLeftLabel,
49178
+ fontFamily: fonts.regular
49179
+ },
49180
+ children: "Amount Sent"
49181
+ }
49182
+ ),
49183
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49184
+ "span",
49185
+ {
49186
+ style: {
49187
+ color: components.card.rowRightLabel,
49188
+ fontFamily: fonts.regular,
49189
+ fontSize: "14px"
49190
+ },
49191
+ children: [
49192
+ formatAmount(
49193
+ execution.source_amount_base_unit,
49194
+ execution.source_token_metadata?.decimals
49195
+ ),
49196
+ " ",
49197
+ formatCurrency(execution.source_currency)
49198
+ ]
49199
+ }
49200
+ )
49201
+ ] }),
49202
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
49203
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49204
+ "span",
49205
+ {
49206
+ className: "uf-text-sm",
49207
+ style: {
49208
+ color: components.card.rowLeftLabel,
49209
+ fontFamily: fonts.regular
49210
+ },
49211
+ children: "Amount Received"
49212
+ }
49213
+ ),
49214
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49215
+ "span",
49216
+ {
49217
+ style: {
49218
+ color: components.card.rowRightLabel,
49219
+ fontFamily: fonts.regular,
49220
+ fontSize: "14px"
49221
+ },
49222
+ children: [
49223
+ formatAmount(
49224
+ execution.destination_amount_base_unit,
49225
+ execution.destination_token_metadata?.decimals
49226
+ ),
49227
+ " ",
49228
+ formatCurrency(execution.destination_currency)
49229
+ ]
49230
+ }
49231
+ )
49232
+ ] }),
49233
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
49234
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49235
+ "span",
49236
+ {
49237
+ className: "uf-text-sm",
49238
+ style: {
49239
+ color: components.card.rowLeftLabel,
49240
+ fontFamily: fonts.regular
49241
+ },
49242
+ children: "USD Value"
49243
+ }
49244
+ ),
49245
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49246
+ "span",
49247
+ {
49248
+ style: {
49249
+ color: components.card.rowRightLabel,
49250
+ fontFamily: fonts.regular,
49251
+ fontSize: "14px"
49252
+ },
49253
+ children: formatUsdAmount2(
49254
+ execution.source_amount_usd,
49255
+ execution.source_amount_base_unit
49298
49256
  )
49299
- ]
49300
- }
49301
- ),
49302
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49303
- "div",
49304
- {
49305
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49306
- style: { borderColor: colors2.border },
49307
- children: [
49308
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49309
- "span",
49310
- {
49311
- className: "uf-text-sm",
49312
- style: {
49313
- color: components.card.labelColor,
49314
- fontFamily: fonts.regular
49315
- },
49316
- children: "Source Network"
49317
- }
49318
- ),
49319
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49320
- "span",
49321
- {
49322
- style: {
49323
- color: components.card.titleColor,
49324
- fontFamily: fonts.regular,
49325
- fontSize: "14px"
49326
- },
49327
- children: getNetworkName(
49328
- execution.source_chain_type,
49329
- execution.source_chain_id
49330
- )
49331
- }
49257
+ }
49258
+ )
49259
+ ] }),
49260
+ isPending && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
49261
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49262
+ "span",
49263
+ {
49264
+ className: "uf-text-sm",
49265
+ style: {
49266
+ color: components.card.rowLeftLabel,
49267
+ fontFamily: fonts.regular
49268
+ },
49269
+ children: "Estimated delivery time"
49270
+ }
49271
+ ),
49272
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49273
+ "span",
49274
+ {
49275
+ style: {
49276
+ color: components.card.rowRightLabel,
49277
+ fontFamily: fonts.regular,
49278
+ fontSize: "14px"
49279
+ },
49280
+ children: formatEstimatedTime(execution?.estimated_processing_time)
49281
+ }
49282
+ )
49283
+ ] }),
49284
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
49285
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49286
+ "span",
49287
+ {
49288
+ className: "uf-text-sm",
49289
+ style: {
49290
+ color: components.card.rowLeftLabel,
49291
+ fontFamily: fonts.regular
49292
+ },
49293
+ children: "Source Network"
49294
+ }
49295
+ ),
49296
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49297
+ "span",
49298
+ {
49299
+ style: {
49300
+ color: components.card.rowRightLabel,
49301
+ fontFamily: fonts.regular,
49302
+ fontSize: "14px"
49303
+ },
49304
+ children: getNetworkName(
49305
+ execution.source_chain_type,
49306
+ execution.source_chain_id
49332
49307
  )
49333
- ]
49334
- }
49335
- ),
49308
+ }
49309
+ )
49310
+ ] }),
49336
49311
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
49337
49312
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49338
49313
  "span",
49339
49314
  {
49340
49315
  className: "uf-text-sm",
49341
49316
  style: {
49342
- color: components.card.labelColor,
49317
+ color: components.card.rowLeftLabel,
49343
49318
  fontFamily: fonts.regular
49344
49319
  },
49345
49320
  children: "Destination Network"
@@ -49349,7 +49324,7 @@ function DepositDetailContent({ execution }) {
49349
49324
  "span",
49350
49325
  {
49351
49326
  style: {
49352
- color: components.card.titleColor,
49327
+ color: components.card.rowRightLabel,
49353
49328
  fontFamily: fonts.regular,
49354
49329
  fontSize: "14px"
49355
49330
  },
@@ -49391,15 +49366,14 @@ function DepositDetailContent({ execution }) {
49391
49366
  href: execution.explorer_url,
49392
49367
  target: "_blank",
49393
49368
  rel: "noopener noreferrer",
49394
- className: "uf-grid uf-grid-cols-[auto_1fr_auto] uf-items-center uf-gap-2 uf-px-4 uf-py-3 uf-border-b hover:uf-bg-card/50 uf-transition-colors",
49395
- style: { borderColor: colors2.border },
49369
+ 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",
49396
49370
  children: [
49397
49371
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49398
49372
  "div",
49399
49373
  {
49400
49374
  className: "uf-text-sm",
49401
49375
  style: {
49402
- color: components.card.labelColor,
49376
+ color: components.card.rowLeftLabel,
49403
49377
  fontFamily: fonts.regular
49404
49378
  },
49405
49379
  children: "Deposit Tx"
@@ -49410,7 +49384,7 @@ function DepositDetailContent({ execution }) {
49410
49384
  {
49411
49385
  className: "uf-text-sm uf-text-right",
49412
49386
  style: {
49413
- color: components.card.titleColor,
49387
+ color: components.card.rowRightLabel,
49414
49388
  fontFamily: fonts.regular
49415
49389
  },
49416
49390
  children: formatTransactionHash(execution.transaction_hash)
@@ -49420,7 +49394,7 @@ function DepositDetailContent({ execution }) {
49420
49394
  ExternalLink,
49421
49395
  {
49422
49396
  className: "uf-w-3.5 uf-h-3.5 uf-block",
49423
- style: { color: components.card.actionColor }
49397
+ style: { color: components.card.actionIcon }
49424
49398
  }
49425
49399
  )
49426
49400
  ]
@@ -49439,7 +49413,7 @@ function DepositDetailContent({ execution }) {
49439
49413
  {
49440
49414
  className: "uf-text-sm",
49441
49415
  style: {
49442
- color: components.card.labelColor,
49416
+ color: components.card.rowLeftLabel,
49443
49417
  fontFamily: fonts.regular
49444
49418
  },
49445
49419
  children: "Completion Tx"
@@ -49450,7 +49424,7 @@ function DepositDetailContent({ execution }) {
49450
49424
  {
49451
49425
  className: "uf-text-sm uf-text-right",
49452
49426
  style: {
49453
- color: components.card.titleColor,
49427
+ color: components.card.rowRightLabel,
49454
49428
  fontFamily: fonts.regular
49455
49429
  },
49456
49430
  children: formatTransactionHash(
@@ -49462,7 +49436,7 @@ function DepositDetailContent({ execution }) {
49462
49436
  ExternalLink,
49463
49437
  {
49464
49438
  className: "uf-w-3.5 uf-h-3.5 uf-block",
49465
- style: { color: components.card.actionColor }
49439
+ style: { color: components.card.actionIcon }
49466
49440
  }
49467
49441
  )
49468
49442
  ]
@@ -50221,25 +50195,28 @@ function BuyWithCard({
50221
50195
  }
50222
50196
  }
50223
50197
  ) }) }),
50224
- 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) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
50225
- "button",
50226
- {
50227
- onClick: () => handleQuickAmount(quickAmount),
50228
- className: "uf-w-24 uf-py-2 hover:uf-bg-accent uf-transition-colors uf-text-sm uf-font-medium",
50229
- style: {
50230
- backgroundColor: components.card.backgroundColor,
50231
- color: components.card.titleColor,
50232
- fontFamily: fonts.medium,
50233
- borderRadius: components.card.borderRadius,
50234
- border: `${components.card.borderWidth}px solid ${components.card.borderColor}`
50198
+ 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) => {
50199
+ const isSelected = parseFloat(amount) === quickAmount;
50200
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
50201
+ "button",
50202
+ {
50203
+ onClick: () => handleQuickAmount(quickAmount),
50204
+ className: "uf-w-24 uf-py-2 hover:uf-bg-accent uf-transition-colors uf-text-sm uf-font-medium",
50205
+ style: {
50206
+ backgroundColor: components.card.backgroundColor,
50207
+ color: components.card.titleColor,
50208
+ fontFamily: fonts.medium,
50209
+ borderRadius: components.card.borderRadius,
50210
+ border: `${components.card.borderWidth}px solid ${isSelected ? colors2.primary : components.card.borderColor}`
50211
+ },
50212
+ children: [
50213
+ getCurrencySymbol(currency),
50214
+ quickAmount.toLocaleString()
50215
+ ]
50235
50216
  },
50236
- children: [
50237
- getCurrencySymbol(currency),
50238
- quickAmount.toLocaleString()
50239
- ]
50240
- },
50241
- quickAmount
50242
- )) }),
50217
+ quickAmount
50218
+ );
50219
+ }) }),
50243
50220
  amountValidationError && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
50244
50221
  "div",
50245
50222
  {
@@ -50258,7 +50235,7 @@ function BuyWithCard({
50258
50235
  "span",
50259
50236
  {
50260
50237
  style: {
50261
- color: components.card.headerColor,
50238
+ color: components.card.labelColor,
50262
50239
  fontFamily: fonts.medium
50263
50240
  },
50264
50241
  children: "Provider"
@@ -50317,7 +50294,7 @@ function BuyWithCard({
50317
50294
  {
50318
50295
  className: "uf-text-xs uf-font-normal uf-mb-2",
50319
50296
  style: {
50320
- color: components.card.labelColor,
50297
+ color: components.card.headerColor,
50321
50298
  fontFamily: fonts.regular
50322
50299
  },
50323
50300
  children: "Auto-picked for you"
@@ -50432,8 +50409,8 @@ function BuyWithCard({
50432
50409
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
50433
50410
  "div",
50434
50411
  {
50435
- 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"}`,
50436
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "uf-space-y-2 uf-pt-2", children: sortedQuotes.map((quote, index2) => {
50412
+ 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"}`,
50413
+ 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) => {
50437
50414
  const badges = getProviderBadges(quote, sortedQuotes);
50438
50415
  const displayName = quote.service_provider_display_name;
50439
50416
  const isSelected = selectedProvider?.service_provider === quote.service_provider;
@@ -50450,11 +50427,11 @@ function BuyWithCard({
50450
50427
  },
50451
50428
  onMouseEnter: () => setHoveredProviderIndex(index2),
50452
50429
  onMouseLeave: () => setHoveredProviderIndex(null),
50453
- className: `uf-w-full uf-transition-colors uf-p-3 uf-flex uf-items-center uf-justify-between uf-group ${isSelected ? "uf-ring-2 uf-ring-inset uf-ring-primary" : ""}`,
50430
+ className: "uf-w-full uf-transition-colors uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
50454
50431
  style: {
50455
50432
  backgroundColor: hoveredProviderIndex === index2 ? colors2.cardHover : components.card.backgroundColor,
50456
50433
  borderRadius: components.card.borderRadius,
50457
- border: `${components.card.borderWidth}px solid ${components.card.borderColor}`
50434
+ border: isSelected ? `2px solid ${colors2.primary}` : `${components.card.borderWidth}px solid ${components.card.borderColor}`
50458
50435
  },
50459
50436
  children: [
50460
50437
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
@@ -50481,7 +50458,8 @@ function BuyWithCard({
50481
50458
  badges.map((badge, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
50482
50459
  "span",
50483
50460
  {
50484
- className: "uf-text-[10px] uf-text-green-400 uf-font-normal",
50461
+ className: "uf-text-[10px] uf-font-normal",
50462
+ style: { color: colors2.success },
50485
50463
  children: [
50486
50464
  badge,
50487
50465
  i < badges.length - 1 && ","
@@ -50489,8 +50467,25 @@ function BuyWithCard({
50489
50467
  },
50490
50468
  i
50491
50469
  )),
50492
- quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: "\u2022" }),
50493
- quote.low_kyc === false && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "uf-text-[10px] uf-text-muted-foreground uf-font-normal", children: "No document upload" })
50470
+ quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
50471
+ "span",
50472
+ {
50473
+ className: "uf-text-[10px]",
50474
+ style: { color: components.card.subtextRightColor },
50475
+ children: "\u2022"
50476
+ }
50477
+ ),
50478
+ quote.low_kyc === false && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
50479
+ "span",
50480
+ {
50481
+ className: "uf-text-[10px] uf-font-normal",
50482
+ style: {
50483
+ color: components.card.subtextRightColor,
50484
+ fontFamily: fonts.regular
50485
+ },
50486
+ children: "No document upload"
50487
+ }
50488
+ )
50494
50489
  ] })
50495
50490
  ] })
50496
50491
  ] }),
@@ -50591,7 +50586,7 @@ function BuyWithCard({
50591
50586
  }
50592
50587
  )
50593
50588
  ] }),
50594
- /* @__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.actionColor } }) }),
50589
+ /* @__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 } }) }),
50595
50590
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
50596
50591
  /* @__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: [
50597
50592
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
@@ -50634,7 +50629,7 @@ function BuyWithCard({
50634
50629
  }
50635
50630
  )
50636
50631
  ] }),
50637
- /* @__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.actionColor } }) }),
50632
+ /* @__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 } }) }),
50638
50633
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
50639
50634
  /* @__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: [
50640
50635
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
@@ -51116,7 +51111,7 @@ function DepositExecutionItem({
51116
51111
  {
51117
51112
  className: "uf-font-medium uf-text-sm uf-flex-shrink-0",
51118
51113
  style: {
51119
- color: components.card.titleColor,
51114
+ color: components.card.textRightColor,
51120
51115
  fontFamily: fonts.medium
51121
51116
  },
51122
51117
  children: formatUsdAmount2(execution.source_amount_usd || "0")
@@ -51165,7 +51160,7 @@ function TransferCryptoButton({
51165
51160
  Zap,
51166
51161
  {
51167
51162
  className: "uf-w-5 uf-h-5",
51168
- style: { color: colors2.foregroundMuted }
51163
+ style: { color: components.card.iconColor }
51169
51164
  }
51170
51165
  ) }),
51171
51166
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "uf-text-left", children: [
@@ -51252,7 +51247,7 @@ function DepositWithCardButton({
51252
51247
  CreditCard,
51253
51248
  {
51254
51249
  className: "uf-w-5 uf-h-5",
51255
- style: { color: colors2.foregroundMuted }
51250
+ style: { color: components.card.iconColor }
51256
51251
  }
51257
51252
  ) }),
51258
51253
  /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-text-left", children: [
@@ -51345,7 +51340,7 @@ function PayWithExchangeButton({
51345
51340
  ArrowLeftRight,
51346
51341
  {
51347
51342
  className: "uf-w-5 uf-h-5",
51348
- style: { color: colors2.foregroundMuted }
51343
+ style: { color: components.card.iconColor }
51349
51344
  }
51350
51345
  ) }),
51351
51346
  /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "uf-text-left", children: [
@@ -51432,7 +51427,7 @@ function DepositTrackerButton({
51432
51427
  Clock,
51433
51428
  {
51434
51429
  className: "uf-w-5 uf-h-5",
51435
- style: { color: colors2.foregroundMuted }
51430
+ style: { color: components.card.iconColor }
51436
51431
  }
51437
51432
  ),
51438
51433
  badge !== void 0 && badge > 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
@@ -54262,7 +54257,7 @@ function DepositsModal({
54262
54257
  onClose: handleClose
54263
54258
  }
54264
54259
  ),
54265
- /* @__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)(
54260
+ /* @__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)(
54266
54261
  "div",
54267
54262
  {
54268
54263
  className: "uf-text-sm",
@@ -54456,23 +54451,33 @@ function TokenSelectorSheet({
54456
54451
  ),
54457
54452
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "uf-w-7 uf-h-5 uf-invisible" })
54458
54453
  ] }),
54459
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "uf-pb-3", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54460
- "input",
54461
- {
54462
- type: "text",
54463
- placeholder: "Search",
54464
- value: searchQuery,
54465
- onChange: (e) => setSearchQuery(e.target.value),
54466
- 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",
54467
- style: {
54468
- backgroundColor: components.search.backgroundColor,
54469
- color: components.search.inputColor,
54470
- fontFamily: fonts.regular,
54471
- borderRadius: components.input.borderRadius,
54472
- border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
54454
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "uf-pb-3", children: [
54455
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54456
+ "style",
54457
+ {
54458
+ dangerouslySetInnerHTML: {
54459
+ __html: `.uf-token-sheet-search::placeholder { color: ${components.search.placeholderColor}; }`
54460
+ }
54473
54461
  }
54474
- }
54475
- ) }) }),
54462
+ ),
54463
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54464
+ "input",
54465
+ {
54466
+ type: "text",
54467
+ placeholder: "Search",
54468
+ value: searchQuery,
54469
+ onChange: (e) => setSearchQuery(e.target.value),
54470
+ 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",
54471
+ style: {
54472
+ backgroundColor: components.search.backgroundColor,
54473
+ color: components.search.inputColor,
54474
+ fontFamily: fonts.regular,
54475
+ borderRadius: components.input.borderRadius,
54476
+ border: `${components.input.borderWidth}px solid ${components.input.borderColor}`
54477
+ }
54478
+ }
54479
+ ) })
54480
+ ] }),
54476
54481
  quickSelectOptions.length > 0 && !searchQuery && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "uf-pb-3 uf--mx-6", children: [
54477
54482
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54478
54483
  "div",
@@ -54724,12 +54729,13 @@ function TokenSelectorSheet({
54724
54729
  style: {
54725
54730
  fontSize: 12,
54726
54731
  flexShrink: 0,
54727
- color: components.card.labelColor,
54728
54732
  fontFamily: fonts.regular
54729
54733
  },
54730
54734
  children: [
54731
- "Minimum:",
54732
- " ",
54735
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { style: { color: components.card.textRightColor }, children: [
54736
+ "Minimum:",
54737
+ " "
54738
+ ] }),
54733
54739
  /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { style: { color: components.card.labelHighlightRightColor }, children: [
54734
54740
  "$",
54735
54741
  chain.minimum_deposit_amount_usd
@@ -54805,13 +54811,15 @@ function DepositPollingUi({
54805
54811
  function DepositFooterLinks({
54806
54812
  onGlossaryClick
54807
54813
  }) {
54814
+ const { colors: colors2 } = useTheme();
54808
54815
  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: [
54809
54816
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
54810
54817
  "a",
54811
54818
  {
54812
54819
  href: "https://unifold.io/terms",
54813
54820
  target: "_blank",
54814
- className: "uf-cursor-pointer hover:uf-text-foreground uf-transition-colors",
54821
+ className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
54822
+ style: { color: colors2.primary },
54815
54823
  children: "Terms"
54816
54824
  }
54817
54825
  ),
@@ -54821,7 +54829,8 @@ function DepositFooterLinks({
54821
54829
  {
54822
54830
  href: "https://unifold.io/support",
54823
54831
  target: "_blank",
54824
- className: "uf-cursor-pointer hover:uf-text-foreground uf-transition-colors",
54832
+ className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
54833
+ style: { color: colors2.primary },
54825
54834
  children: "Help"
54826
54835
  }
54827
54836
  ),
@@ -54829,8 +54838,9 @@ function DepositFooterLinks({
54829
54838
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
54830
54839
  "div",
54831
54840
  {
54832
- className: "uf-cursor-pointer hover:uf-text-foreground uf-transition-colors",
54841
+ className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
54833
54842
  onClick: onGlossaryClick,
54843
+ style: { color: colors2.primary },
54834
54844
  children: "Glossary"
54835
54845
  }
54836
54846
  )
@@ -54840,61 +54850,117 @@ var t3 = i18n2.transferCrypto;
54840
54850
  function GlossaryModal({
54841
54851
  open,
54842
54852
  onOpenChange,
54843
- themeClass,
54844
- colors: colors2
54853
+ backgroundColor: backgroundColorProp,
54854
+ themeClass: themeClassProp,
54855
+ colors: colorsProp
54845
54856
  }) {
54857
+ const { themeClass, colors: colors2, components } = useTheme();
54858
+ const resolvedThemeClass = themeClassProp ?? themeClass;
54859
+ const modalBackground = backgroundColorProp ?? colors2.background;
54846
54860
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54847
54861
  DialogContent2,
54848
54862
  {
54849
- className: `sm:uf-max-w-[400px] !uf-top-auto !uf-h-auto sm:!uf-top-[50%] uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 [&>button]:uf-hidden ${themeClass}`,
54850
- style: { backgroundColor: colors2.card },
54863
+ 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}`,
54864
+ style: { backgroundColor: modalBackground },
54851
54865
  children: [
54852
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between uf-p-4 uf-pb-2", children: [
54853
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DialogTitle2, { className: "uf-text-base uf-font-semibold", children: "Glossary" }),
54866
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-relative uf-flex uf-items-center uf-justify-between", children: [
54867
+ /* @__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" }) }),
54868
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
54869
+ DialogTitle2,
54870
+ {
54871
+ className: "uf-text-base uf-font-medium uf-absolute uf-left-0 uf-right-0 uf-text-center uf-pointer-events-none",
54872
+ style: { color: components.header.titleColor },
54873
+ children: "Glossary"
54874
+ }
54875
+ ),
54854
54876
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
54855
54877
  "button",
54856
54878
  {
54857
54879
  onClick: () => onOpenChange(false),
54858
- className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-text-muted-foreground hover:uf-text-foreground",
54880
+ className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-flex-shrink-0 uf-z-[1]",
54881
+ style: { color: components.header.buttonColor },
54859
54882
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(X, { className: "uf-w-4 uf-h-4" })
54860
54883
  }
54861
54884
  )
54862
54885
  ] }),
54863
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-max-h-[60vh] sm:uf-max-h-[400px] uf-overflow-y-auto uf-px-4 uf-pb-4 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-space-y-4", children: [
54864
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54865
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Your Deposit Token" }),
54866
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t3.selectTokenDepositTooltip })
54867
- ] }),
54868
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54869
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54870
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Deposit Address" }),
54871
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", 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." })
54872
- ] }),
54873
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54874
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54875
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Price Impact" }),
54876
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t3.priceImpact.tooltip })
54877
- ] }),
54878
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54879
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54880
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Slippage" }),
54881
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t3.slippage.tooltip })
54882
- ] }),
54883
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54884
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54885
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Processing Time" }),
54886
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", 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." })
54887
- ] }),
54888
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54889
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54890
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Minimum Deposit" }),
54891
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t3.minDeposit.tooltip })
54892
- ] }),
54893
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54894
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54895
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Recipient Address" }),
54896
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", 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." })
54897
- ] })
54886
+ /* @__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: [
54887
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54888
+ "div",
54889
+ {
54890
+ className: "uf-rounded-xl uf-p-3",
54891
+ style: { backgroundColor: components.card.backgroundColor },
54892
+ children: [
54893
+ /* @__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" }),
54894
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.selectTokenDepositTooltip })
54895
+ ]
54896
+ }
54897
+ ),
54898
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54899
+ "div",
54900
+ {
54901
+ className: "uf-rounded-xl uf-p-3",
54902
+ style: { backgroundColor: components.card.backgroundColor },
54903
+ children: [
54904
+ /* @__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" }),
54905
+ /* @__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." })
54906
+ ]
54907
+ }
54908
+ ),
54909
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54910
+ "div",
54911
+ {
54912
+ className: "uf-rounded-xl uf-p-3",
54913
+ style: { backgroundColor: components.card.backgroundColor },
54914
+ children: [
54915
+ /* @__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" }),
54916
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.priceImpact.tooltip })
54917
+ ]
54918
+ }
54919
+ ),
54920
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54921
+ "div",
54922
+ {
54923
+ className: "uf-rounded-xl uf-p-3",
54924
+ style: { backgroundColor: components.card.backgroundColor },
54925
+ children: [
54926
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", style: { color: components.card.titleColor }, children: "Slippage" }),
54927
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.slippage.tooltip })
54928
+ ]
54929
+ }
54930
+ ),
54931
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54932
+ "div",
54933
+ {
54934
+ className: "uf-rounded-xl uf-p-3",
54935
+ style: { backgroundColor: components.card.backgroundColor },
54936
+ children: [
54937
+ /* @__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" }),
54938
+ /* @__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." })
54939
+ ]
54940
+ }
54941
+ ),
54942
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54943
+ "div",
54944
+ {
54945
+ className: "uf-rounded-xl uf-p-3",
54946
+ style: { backgroundColor: components.card.backgroundColor },
54947
+ children: [
54948
+ /* @__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" }),
54949
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-leading-relaxed", style: { color: components.card.descriptionColor }, children: t3.minDeposit.tooltip })
54950
+ ]
54951
+ }
54952
+ ),
54953
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54954
+ "div",
54955
+ {
54956
+ className: "uf-rounded-xl uf-p-3",
54957
+ style: { backgroundColor: components.card.backgroundColor },
54958
+ children: [
54959
+ /* @__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" }),
54960
+ /* @__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." })
54961
+ ]
54962
+ }
54963
+ )
54898
54964
  ] }) })
54899
54965
  ]
54900
54966
  }
@@ -55135,7 +55201,7 @@ function TransferCryptoSingleInput({
55135
55201
  className: "uf-space-y-3 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden",
55136
55202
  style: { backgroundColor: colors2.background },
55137
55203
  children: [
55138
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-1 uf-flex uf-items-center uf-justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-flex uf-items-center uf-gap-1", children: t4.selectTokenDeposit }) }),
55204
+ /* @__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 }) }),
55139
55205
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
55140
55206
  "button",
55141
55207
  {
@@ -55239,7 +55305,7 @@ function TransferCryptoSingleInput({
55239
55305
  ] })
55240
55306
  ] }),
55241
55307
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
55242
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: "Intent address" }),
55308
+ /* @__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" }),
55243
55309
  /* @__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 ? (
55244
55310
  // QR Skeleton - matches QR code appearance
55245
55311
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
@@ -55284,7 +55350,7 @@ function TransferCryptoSingleInput({
55284
55350
  }
55285
55351
  ) })
55286
55352
  ] }),
55287
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-text-sm uf-text-muted-foreground uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
55353
+ /* @__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: [
55288
55354
  loading || tokensLoading || !initialSelectionDone ? (
55289
55355
  // Address skeleton
55290
55356
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
@@ -55296,12 +55362,13 @@ function TransferCryptoSingleInput({
55296
55362
  }
55297
55363
  }
55298
55364
  )
55299
- ) : /* @__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 }),
55365
+ ) : /* @__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 }),
55300
55366
  depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
55301
55367
  "span",
55302
55368
  {
55303
55369
  onClick: handleCopyAddress,
55304
- className: `uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer ${copied ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
55370
+ className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
55371
+ style: { color: copied ? colors2.success : components.card.actionColor },
55305
55372
  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" })
55306
55373
  }
55307
55374
  )
@@ -55363,7 +55430,8 @@ function TransferCryptoSingleInput({
55363
55430
  "span",
55364
55431
  {
55365
55432
  onClick: () => handleCopyRecipientAddress(recipientAddress),
55366
- className: `uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer ${copiedRecipient ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
55433
+ className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
55434
+ style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
55367
55435
  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" })
55368
55436
  }
55369
55437
  )
@@ -55754,7 +55822,7 @@ function TransferCryptoDoubleInput({
55754
55822
  children: [
55755
55823
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-grid uf-grid-cols-2 uf-gap-2.5", children: [
55756
55824
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
55757
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: t5.selectedToken }),
55825
+ /* @__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 }),
55758
55826
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
55759
55827
  Select2,
55760
55828
  {
@@ -55762,7 +55830,7 @@ function TransferCryptoDoubleInput({
55762
55830
  onValueChange: setToken,
55763
55831
  disabled: tokensLoading || supportedTokens.length === 0,
55764
55832
  children: [
55765
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-bg-secondary uf-h-10 hover:uf-bg-accent uf-text-foreground disabled:uf-opacity-50", style: { border: `1px solid ${isDarkMode ? "rgba(255,255,255,0.15)" : "rgba(0,0,0,0.15)"}` }, 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 }) }) }) }),
55833
+ /* @__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 }) }) }) }),
55766
55834
  /* @__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)(
55767
55835
  SelectItem2,
55768
55836
  {
@@ -55777,7 +55845,7 @@ function TransferCryptoDoubleInput({
55777
55845
  )
55778
55846
  ] }),
55779
55847
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
55780
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: [
55848
+ /* @__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: [
55781
55849
  t5.selectedChain,
55782
55850
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "uf-font-medium", style: { color: components.card.labelHighlightRightColor }, children: [
55783
55851
  "$",
@@ -55793,7 +55861,7 @@ function TransferCryptoDoubleInput({
55793
55861
  onValueChange: setChain,
55794
55862
  disabled: tokensLoading || availableChainsForToken.length === 0,
55795
55863
  children: [
55796
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectTrigger2, { className: "uf-bg-secondary uf-h-10 hover:uf-bg-accent uf-text-foreground disabled:uf-opacity-50", style: { border: `1px solid ${isDarkMode ? "rgba(255,255,255,0.15)" : "rgba(0,0,0,0.15)"}` }, 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 }) }) }) }),
55864
+ /* @__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 }) }) }) }),
55797
55865
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
55798
55866
  SelectContent2,
55799
55867
  {
@@ -55836,7 +55904,7 @@ function TransferCryptoDoubleInput({
55836
55904
  ] })
55837
55905
  ] }),
55838
55906
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
55839
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: "Intent address" }),
55907
+ /* @__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" }),
55840
55908
  /* @__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 ? (
55841
55909
  // QR Skeleton - matches QR code appearance
55842
55910
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
@@ -55881,7 +55949,7 @@ function TransferCryptoDoubleInput({
55881
55949
  }
55882
55950
  ) })
55883
55951
  ] }),
55884
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-text-sm uf-text-muted-foreground uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
55952
+ /* @__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: [
55885
55953
  loading || tokensLoading || !initialSelectionDone ? (
55886
55954
  // Address skeleton
55887
55955
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
@@ -55893,12 +55961,13 @@ function TransferCryptoDoubleInput({
55893
55961
  }
55894
55962
  }
55895
55963
  )
55896
- ) : /* @__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 }),
55964
+ ) : /* @__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 }),
55897
55965
  depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
55898
55966
  "span",
55899
55967
  {
55900
55968
  onClick: handleCopyAddress,
55901
- className: `uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer ${copied ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
55969
+ className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
55970
+ style: { color: copied ? colors2.success : components.card.actionColor },
55902
55971
  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" })
55903
55972
  }
55904
55973
  )
@@ -55960,7 +56029,8 @@ function TransferCryptoDoubleInput({
55960
56029
  "span",
55961
56030
  {
55962
56031
  onClick: () => handleCopyRecipientAddress(recipientAddress),
55963
- className: `uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer ${copiedRecipient ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
56032
+ className: "uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer",
56033
+ style: { color: copiedRecipient ? colors2.success : components.card.actionColor },
55964
56034
  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" })
55965
56035
  }
55966
56036
  )
@@ -57957,14 +58027,23 @@ function DepositModal({
57957
58027
  onDepositSuccess,
57958
58028
  onDepositError,
57959
58029
  theme = "dark",
57960
- hideOverlay = false
58030
+ hideOverlay = false,
58031
+ initialScreen = "main"
57961
58032
  }) {
57962
58033
  const { colors: colors2, fonts, components } = useTheme();
58034
+ const effectiveInitialScreen = (0, import_react3.useMemo)(() => {
58035
+ const s = initialScreen ?? "main";
58036
+ if (s === "tracker" && hideDepositTracker) return "main";
58037
+ return s;
58038
+ }, [initialScreen, hideDepositTracker]);
57963
58039
  const [containerEl, setContainerEl] = (0, import_react3.useState)(null);
57964
58040
  const containerCallbackRef = (0, import_react3.useCallback)((el) => {
57965
58041
  setContainerEl(el);
57966
58042
  }, []);
57967
- const [view, setView] = (0, import_react3.useState)("main");
58043
+ const [view, setView] = (0, import_react3.useState)(
58044
+ effectiveInitialScreen
58045
+ );
58046
+ const resetViewTimeoutRef = (0, import_react3.useRef)(null);
57968
58047
  const [cardView, setCardView] = (0, import_react3.useState)(
57969
58048
  "amount"
57970
58049
  );
@@ -58084,6 +58163,43 @@ function DepositModal({
58084
58163
  const template = errors[code] ?? addressValidationMessages.defaultError;
58085
58164
  return interpolate(template, metadata);
58086
58165
  };
58166
+ const openingScreen = effectiveInitialScreen;
58167
+ const sessionOpenedFromMenu = openingScreen === "main";
58168
+ const standaloneNeedsDepositPrereq = openingScreen !== "main" && (view === "transfer" || view === "card");
58169
+ let depositPrerequisiteBody;
58170
+ if (isCountryLoading || isAddressValidationLoading || tokensLoading || walletsLoading || !projectConfig) {
58171
+ depositPrerequisiteBody = standaloneNeedsDepositPrereq ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, { variant: "with-icons" }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
58172
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, { variant: "with-icons" }),
58173
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, { variant: "with-icons" }),
58174
+ !hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, {})
58175
+ ] });
58176
+ } else if (countryError) {
58177
+ 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: [
58178
+ /* @__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" }) }),
58179
+ /* @__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" }),
58180
+ /* @__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." })
58181
+ ] });
58182
+ } else if (!isAllowed) {
58183
+ 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: [
58184
+ /* @__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" }) }),
58185
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "No Tokens Available" }),
58186
+ /* @__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." })
58187
+ ] });
58188
+ } else if (isAddressValid === false) {
58189
+ 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: [
58190
+ /* @__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" }) }),
58191
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: addressValidationMessages.unableToReceiveFunds }),
58192
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: getAddressValidationErrorMessage(
58193
+ addressFailureCode,
58194
+ addressFailureMetadata
58195
+ ) })
58196
+ ] });
58197
+ } else {
58198
+ depositPrerequisiteBody = null;
58199
+ }
58200
+ const showBackTransfer = sessionOpenedFromMenu;
58201
+ const showBackCard = cardView !== "amount" || sessionOpenedFromMenu;
58202
+ const showBackTracker = selectedExecution !== null || sessionOpenedFromMenu;
58087
58203
  const themeClass = resolvedTheme === "dark" ? "uf-dark" : "";
58088
58204
  const handleWalletDisconnect = () => {
58089
58205
  setUserDisconnectedWallet(true);
@@ -58094,13 +58210,37 @@ function DepositModal({
58094
58210
  };
58095
58211
  const handleClose = () => {
58096
58212
  onOpenChange(false);
58097
- setTimeout(() => {
58098
- setView("main");
58213
+ if (resetViewTimeoutRef.current) {
58214
+ clearTimeout(resetViewTimeoutRef.current);
58215
+ }
58216
+ resetViewTimeoutRef.current = setTimeout(() => {
58217
+ setView(effectiveInitialScreen);
58099
58218
  setCardView("amount");
58100
58219
  setExchangeView("providers");
58101
58220
  setBrowserWalletInfo(null);
58221
+ resetViewTimeoutRef.current = null;
58102
58222
  }, 200);
58103
58223
  };
58224
+ (0, import_react3.useLayoutEffect)(() => {
58225
+ if (!open) return;
58226
+ if (resetViewTimeoutRef.current) {
58227
+ clearTimeout(resetViewTimeoutRef.current);
58228
+ resetViewTimeoutRef.current = null;
58229
+ }
58230
+ setView(effectiveInitialScreen);
58231
+ setCardView("amount");
58232
+ setExchangeView("providers");
58233
+ setBrowserWalletInfo(null);
58234
+ setSelectedExecution(null);
58235
+ }, [open, effectiveInitialScreen]);
58236
+ (0, import_react3.useEffect)(
58237
+ () => () => {
58238
+ if (resetViewTimeoutRef.current) {
58239
+ clearTimeout(resetViewTimeoutRef.current);
58240
+ }
58241
+ },
58242
+ []
58243
+ );
58104
58244
  const handleBack = () => {
58105
58245
  if (view === "card" && cardView === "quotes") {
58106
58246
  setCardView("amount");
@@ -58213,95 +58353,64 @@ function DepositModal({
58213
58353
  publishableKey
58214
58354
  }
58215
58355
  ),
58216
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: isCountryLoading || isAddressValidationLoading || tokensLoading || walletsLoading || !projectConfig ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
58217
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, { variant: "with-icons" }),
58218
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, { variant: "with-icons" }),
58219
- !hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(SkeletonButton, {})
58220
- ] }) : countryError ? (
58221
- /* Error state - couldn't verify location */
58222
- /* @__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: [
58223
- /* @__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" }) }),
58224
- /* @__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" }),
58225
- /* @__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." })
58226
- ] })
58227
- ) : !isAllowed ? (
58228
- /* Blocked country state (isAllowed is false or null without error) */
58229
- /* @__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: [
58230
- /* @__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" }) }),
58231
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "No Tokens Available" }),
58232
- /* @__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." })
58233
- ] })
58234
- ) : isAddressValid === false ? (
58235
- /* Invalid recipient address state (e.g., Algorand not opted in) */
58236
- /* @__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: [
58237
- /* @__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" }) }),
58238
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: addressValidationMessages.unableToReceiveFunds }),
58239
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: getAddressValidationErrorMessage(
58240
- addressFailureCode,
58241
- addressFailureMetadata
58242
- ) })
58243
- ] })
58244
- ) : (
58245
- /* Normal deposit options */
58246
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
58247
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58248
- TransferCryptoButton,
58249
- {
58250
- onClick: () => setView("transfer"),
58251
- title: t6.transferCrypto.title,
58252
- subtitle: t6.transferCrypto.subtitle,
58253
- featuredTokens: projectConfig.transfer_crypto.networks
58254
- }
58255
- ),
58256
- enableConnectWallet && !isMobileView && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58257
- BrowserWalletButton,
58258
- {
58259
- onClick: handleBrowserWalletClick,
58260
- onConnectClick: handleWalletConnectClick,
58261
- onDisconnect: handleWalletDisconnect,
58262
- chainType: browserWalletChainType,
58263
- publishableKey
58264
- }
58265
- ),
58266
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58267
- DepositWithCardButton,
58268
- {
58269
- onClick: () => setView("card"),
58270
- title: t6.depositWithCard.title,
58271
- subtitle: t6.depositWithCard.subtitle,
58272
- paymentNetworks: projectConfig.payment_networks.networks
58273
- }
58274
- ),
58275
- showPayWithExchange && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58276
- PayWithExchangeButton,
58277
- {
58278
- onClick: () => setView("exchange"),
58279
- title: t6.payWithExchange.title,
58280
- subtitle: t6.payWithExchange.subtitle,
58281
- exchanges,
58282
- loading: exchangesLoading
58283
- }
58284
- ),
58285
- !hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58286
- DepositTrackerButton,
58287
- {
58288
- onClick: () => {
58289
- setAllExecutions(depositExecutions);
58290
- setView("tracker");
58291
- },
58292
- title: "Deposit Tracker",
58293
- subtitle: "Track your deposit progress",
58294
- badge: depositExecutions.length > 0 ? depositExecutions.length : void 0
58295
- }
58296
- )
58297
- ] })
58298
- ) })
58356
+ /* @__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: [
58357
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58358
+ TransferCryptoButton,
58359
+ {
58360
+ onClick: () => setView("transfer"),
58361
+ title: t6.transferCrypto.title,
58362
+ subtitle: t6.transferCrypto.subtitle,
58363
+ featuredTokens: projectConfig?.transfer_crypto.networks
58364
+ }
58365
+ ),
58366
+ enableConnectWallet && !isMobileView && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58367
+ BrowserWalletButton,
58368
+ {
58369
+ onClick: handleBrowserWalletClick,
58370
+ onConnectClick: handleWalletConnectClick,
58371
+ onDisconnect: handleWalletDisconnect,
58372
+ chainType: browserWalletChainType,
58373
+ publishableKey
58374
+ }
58375
+ ),
58376
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58377
+ DepositWithCardButton,
58378
+ {
58379
+ onClick: () => setView("card"),
58380
+ title: t6.depositWithCard.title,
58381
+ subtitle: t6.depositWithCard.subtitle,
58382
+ paymentNetworks: projectConfig?.payment_networks.networks
58383
+ }
58384
+ ),
58385
+ showPayWithExchange && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58386
+ PayWithExchangeButton,
58387
+ {
58388
+ onClick: () => setView("exchange"),
58389
+ title: t6.payWithExchange.title,
58390
+ subtitle: t6.payWithExchange.subtitle,
58391
+ exchanges,
58392
+ loading: exchangesLoading
58393
+ }
58394
+ ),
58395
+ !hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58396
+ DepositTrackerButton,
58397
+ {
58398
+ onClick: () => {
58399
+ setAllExecutions(depositExecutions);
58400
+ setView("tracker");
58401
+ },
58402
+ title: "Deposit Tracker",
58403
+ subtitle: "Track your deposit progress",
58404
+ badge: depositExecutions.length > 0 ? depositExecutions.length : void 0
58405
+ }
58406
+ )
58407
+ ] }) })
58299
58408
  ] }) : view === "transfer" ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
58300
58409
  /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58301
58410
  DepositHeader,
58302
58411
  {
58303
58412
  title: t6.transferCrypto.title,
58304
- showBack: true,
58413
+ showBack: showBackTransfer,
58305
58414
  onBack: handleBack,
58306
58415
  onClose: handleClose,
58307
58416
  showBalance: showBalanceHeader,
@@ -58313,7 +58422,7 @@ function DepositModal({
58313
58422
  publishableKey
58314
58423
  }
58315
58424
  ),
58316
- transferInputVariant === "single_input" ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58425
+ 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)(
58317
58426
  TransferCryptoSingleInput,
58318
58427
  {
58319
58428
  userId,
@@ -58349,12 +58458,12 @@ function DepositModal({
58349
58458
  DepositHeader,
58350
58459
  {
58351
58460
  title: selectedExecution ? "Deposit Details" : "Deposit Tracker",
58352
- showBack: true,
58461
+ showBack: showBackTracker,
58353
58462
  onBack: handleBack,
58354
58463
  onClose: handleClose
58355
58464
  }
58356
58465
  ),
58357
- /* @__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-4", 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)(
58466
+ /* @__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)(
58358
58467
  "div",
58359
58468
  {
58360
58469
  className: "uf-text-sm",
@@ -58374,7 +58483,7 @@ function DepositModal({
58374
58483
  DepositHeader,
58375
58484
  {
58376
58485
  title: cardView === "quotes" ? t6.quotes : t6.depositWithCard.title,
58377
- showBack: true,
58486
+ showBack: showBackCard,
58378
58487
  onBack: handleBack,
58379
58488
  onClose: handleClose,
58380
58489
  badge: cardView === "quotes" ? { count: quotesCount } : void 0,
@@ -58387,7 +58496,7 @@ function DepositModal({
58387
58496
  publishableKey
58388
58497
  }
58389
58498
  ),
58390
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
58499
+ 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)(
58391
58500
  BuyWithCard,
58392
58501
  {
58393
58502
  userId,
@@ -58677,7 +58786,8 @@ function UnifoldProvider2({
58677
58786
  enablePayWithExchange: config?.enablePayWithExchange,
58678
58787
  onDepositSuccess: handleDepositSuccess,
58679
58788
  onDepositError: handleDepositError,
58680
- theme: resolvedTheme
58789
+ theme: resolvedTheme,
58790
+ initialScreen: depositConfig.initialScreen ?? config?.defaultInitialScreen
58681
58791
  }
58682
58792
  )
58683
58793
  ]