@unifold/ui-web 0.1.33 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -43049,19 +43049,35 @@ var API_BASE_URL = (() => {
43049
43049
  return "https://api.unifold.io";
43050
43050
  }
43051
43051
  })();
43052
- var DEFAULT_PUBLISHABLE_KEY = "pk_test_123";
43052
+ var DEFAULT_PUBLISHABLE_KEY = "";
43053
43053
  var DEFAULT_CONFIG = {};
43054
+ function setApiConfig(config) {
43055
+ if (config.publishableKey !== void 0) {
43056
+ if (!config.publishableKey || config.publishableKey.trim() === "") {
43057
+ throw new Error(
43058
+ "Unifold SDK: publishableKey cannot be empty. Please provide a valid publishable key."
43059
+ );
43060
+ }
43061
+ if (!config.publishableKey.startsWith("pk_test_") && !config.publishableKey.startsWith("pk_live_")) {
43062
+ console.warn(
43063
+ 'Unifold SDK: publishableKey should start with "pk_test_" or "pk_live_". Please ensure you are using a valid publishable key.'
43064
+ );
43065
+ }
43066
+ DEFAULT_PUBLISHABLE_KEY = config.publishableKey;
43067
+ }
43068
+ if (config.baseUrl) {
43069
+ API_BASE_URL = config.baseUrl;
43070
+ }
43071
+ if (config.defaultConfig) {
43072
+ DEFAULT_CONFIG = config.defaultConfig;
43073
+ }
43074
+ }
43054
43075
  function validatePublishableKey(key) {
43055
43076
  if (!key || key.trim() === "") {
43056
43077
  throw new Error(
43057
43078
  "Unifold SDK: No publishable key configured. Please provide a valid publishable key via setApiConfig() or pass it directly to the API function."
43058
43079
  );
43059
43080
  }
43060
- if (key === "pk_test_123") {
43061
- console.warn(
43062
- 'Unifold SDK: Using default test key "pk_test_123". This should only be used for local development. Please use a real publishable key in production.'
43063
- );
43064
- }
43065
43081
  }
43066
43082
  function getIconUrl(iconPath) {
43067
43083
  const normalizedPath = iconPath.startsWith("/") ? iconPath : `/${iconPath}`;
@@ -48603,24 +48619,34 @@ function CurrencyModal({
48603
48619
  onClose: handleClose
48604
48620
  }
48605
48621
  ),
48606
- /* @__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)(
48607
- "input",
48608
- {
48609
- type: "text",
48610
- value: searchQuery,
48611
- onChange: (e) => setSearchQuery(e.target.value),
48612
- placeholder: "Search",
48613
- 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",
48614
- style: {
48615
- backgroundColor: components.search.backgroundColor,
48616
- color: components.search.inputColor,
48617
- fontFamily: fonts.regular,
48618
- borderRadius: components.input.borderRadius,
48619
- 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
+ }
48620
48629
  }
48621
- }
48622
- ) }) }),
48623
- /* @__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: [
48624
48650
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
48625
48651
  CurrencyListSection,
48626
48652
  {
@@ -49142,188 +49168,153 @@ function DepositDetailContent({ execution }) {
49142
49168
  className: "uf-overflow-hidden uf-mb-3",
49143
49169
  style: { backgroundColor: components.card.backgroundColor, borderRadius: components.card.borderRadius, border: `${components.card.borderWidth}px solid ${components.card.borderColor}` },
49144
49170
  children: [
49145
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49146
- "div",
49147
- {
49148
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49149
- style: { borderColor: colors2.border },
49150
- children: [
49151
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49152
- "span",
49153
- {
49154
- className: "uf-text-sm",
49155
- style: {
49156
- color: components.card.labelColor,
49157
- fontFamily: fonts.regular
49158
- },
49159
- children: "Amount Sent"
49160
- }
49161
- ),
49162
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49163
- "span",
49164
- {
49165
- style: {
49166
- color: components.card.titleColor,
49167
- fontFamily: fonts.regular,
49168
- fontSize: "14px"
49169
- },
49170
- children: [
49171
- formatAmount(
49172
- execution.source_amount_base_unit,
49173
- execution.source_token_metadata?.decimals
49174
- ),
49175
- " ",
49176
- formatCurrency(execution.source_currency)
49177
- ]
49178
- }
49179
- )
49180
- ]
49181
- }
49182
- ),
49183
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49184
- "div",
49185
- {
49186
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49187
- style: { borderColor: colors2.border },
49188
- children: [
49189
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49190
- "span",
49191
- {
49192
- className: "uf-text-sm",
49193
- style: {
49194
- color: components.card.labelColor,
49195
- fontFamily: fonts.regular
49196
- },
49197
- children: "Amount Received"
49198
- }
49199
- ),
49200
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49201
- "span",
49202
- {
49203
- style: {
49204
- color: components.card.titleColor,
49205
- fontFamily: fonts.regular,
49206
- fontSize: "14px"
49207
- },
49208
- children: [
49209
- formatAmount(
49210
- execution.destination_amount_base_unit,
49211
- execution.destination_token_metadata?.decimals
49212
- ),
49213
- " ",
49214
- formatCurrency(execution.destination_currency)
49215
- ]
49216
- }
49217
- )
49218
- ]
49219
- }
49220
- ),
49221
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49222
- "div",
49223
- {
49224
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49225
- style: { borderColor: colors2.border },
49226
- children: [
49227
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49228
- "span",
49229
- {
49230
- className: "uf-text-sm",
49231
- style: {
49232
- color: components.card.labelColor,
49233
- fontFamily: fonts.regular
49234
- },
49235
- children: "USD Value"
49236
- }
49237
- ),
49238
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49239
- "span",
49240
- {
49241
- style: {
49242
- color: components.card.titleColor,
49243
- fontFamily: fonts.regular,
49244
- fontSize: "14px"
49245
- },
49246
- children: formatUsdAmount2(
49247
- execution.source_amount_usd,
49248
- execution.source_amount_base_unit
49249
- )
49250
- }
49251
- )
49252
- ]
49253
- }
49254
- ),
49255
- isPending && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49256
- "div",
49257
- {
49258
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49259
- style: { borderColor: colors2.border },
49260
- children: [
49261
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49262
- "span",
49263
- {
49264
- className: "uf-text-sm",
49265
- style: {
49266
- color: components.card.labelColor,
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.titleColor,
49277
- fontFamily: fonts.regular,
49278
- fontSize: "14px"
49279
- },
49280
- children: formatEstimatedTime(execution?.estimated_processing_time)
49281
- }
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
49282
49256
  )
49283
- ]
49284
- }
49285
- ),
49286
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
49287
- "div",
49288
- {
49289
- className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b",
49290
- style: { borderColor: colors2.border },
49291
- children: [
49292
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49293
- "span",
49294
- {
49295
- className: "uf-text-sm",
49296
- style: {
49297
- color: components.card.labelColor,
49298
- fontFamily: fonts.regular
49299
- },
49300
- children: "Source Network"
49301
- }
49302
- ),
49303
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49304
- "span",
49305
- {
49306
- style: {
49307
- color: components.card.titleColor,
49308
- fontFamily: fonts.regular,
49309
- fontSize: "14px"
49310
- },
49311
- children: getNetworkName(
49312
- execution.source_chain_type,
49313
- execution.source_chain_id
49314
- )
49315
- }
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
49316
49307
  )
49317
- ]
49318
- }
49319
- ),
49308
+ }
49309
+ )
49310
+ ] }),
49320
49311
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
49321
49312
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49322
49313
  "span",
49323
49314
  {
49324
49315
  className: "uf-text-sm",
49325
49316
  style: {
49326
- color: components.card.labelColor,
49317
+ color: components.card.rowLeftLabel,
49327
49318
  fontFamily: fonts.regular
49328
49319
  },
49329
49320
  children: "Destination Network"
@@ -49333,7 +49324,7 @@ function DepositDetailContent({ execution }) {
49333
49324
  "span",
49334
49325
  {
49335
49326
  style: {
49336
- color: components.card.titleColor,
49327
+ color: components.card.rowRightLabel,
49337
49328
  fontFamily: fonts.regular,
49338
49329
  fontSize: "14px"
49339
49330
  },
@@ -49375,15 +49366,14 @@ function DepositDetailContent({ execution }) {
49375
49366
  href: execution.explorer_url,
49376
49367
  target: "_blank",
49377
49368
  rel: "noopener noreferrer",
49378
- 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",
49379
- 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",
49380
49370
  children: [
49381
49371
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
49382
49372
  "div",
49383
49373
  {
49384
49374
  className: "uf-text-sm",
49385
49375
  style: {
49386
- color: components.card.labelColor,
49376
+ color: components.card.rowLeftLabel,
49387
49377
  fontFamily: fonts.regular
49388
49378
  },
49389
49379
  children: "Deposit Tx"
@@ -49394,7 +49384,7 @@ function DepositDetailContent({ execution }) {
49394
49384
  {
49395
49385
  className: "uf-text-sm uf-text-right",
49396
49386
  style: {
49397
- color: components.card.titleColor,
49387
+ color: components.card.rowRightLabel,
49398
49388
  fontFamily: fonts.regular
49399
49389
  },
49400
49390
  children: formatTransactionHash(execution.transaction_hash)
@@ -49404,7 +49394,7 @@ function DepositDetailContent({ execution }) {
49404
49394
  ExternalLink,
49405
49395
  {
49406
49396
  className: "uf-w-3.5 uf-h-3.5 uf-block",
49407
- style: { color: components.card.actionColor }
49397
+ style: { color: components.card.actionIcon }
49408
49398
  }
49409
49399
  )
49410
49400
  ]
@@ -49423,7 +49413,7 @@ function DepositDetailContent({ execution }) {
49423
49413
  {
49424
49414
  className: "uf-text-sm",
49425
49415
  style: {
49426
- color: components.card.labelColor,
49416
+ color: components.card.rowLeftLabel,
49427
49417
  fontFamily: fonts.regular
49428
49418
  },
49429
49419
  children: "Completion Tx"
@@ -49434,7 +49424,7 @@ function DepositDetailContent({ execution }) {
49434
49424
  {
49435
49425
  className: "uf-text-sm uf-text-right",
49436
49426
  style: {
49437
- color: components.card.titleColor,
49427
+ color: components.card.rowRightLabel,
49438
49428
  fontFamily: fonts.regular
49439
49429
  },
49440
49430
  children: formatTransactionHash(
@@ -49446,7 +49436,7 @@ function DepositDetailContent({ execution }) {
49446
49436
  ExternalLink,
49447
49437
  {
49448
49438
  className: "uf-w-3.5 uf-h-3.5 uf-block",
49449
- style: { color: components.card.actionColor }
49439
+ style: { color: components.card.actionIcon }
49450
49440
  }
49451
49441
  )
49452
49442
  ]
@@ -50205,25 +50195,28 @@ function BuyWithCard({
50205
50195
  }
50206
50196
  }
50207
50197
  ) }) }),
50208
- 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)(
50209
- "button",
50210
- {
50211
- onClick: () => handleQuickAmount(quickAmount),
50212
- className: "uf-w-24 uf-py-2 hover:uf-bg-accent uf-transition-colors uf-text-sm uf-font-medium",
50213
- style: {
50214
- backgroundColor: components.card.backgroundColor,
50215
- color: components.card.titleColor,
50216
- fontFamily: fonts.medium,
50217
- borderRadius: components.card.borderRadius,
50218
- 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
+ ]
50219
50216
  },
50220
- children: [
50221
- getCurrencySymbol(currency),
50222
- quickAmount.toLocaleString()
50223
- ]
50224
- },
50225
- quickAmount
50226
- )) }),
50217
+ quickAmount
50218
+ );
50219
+ }) }),
50227
50220
  amountValidationError && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
50228
50221
  "div",
50229
50222
  {
@@ -50242,7 +50235,7 @@ function BuyWithCard({
50242
50235
  "span",
50243
50236
  {
50244
50237
  style: {
50245
- color: components.card.headerColor,
50238
+ color: components.card.labelColor,
50246
50239
  fontFamily: fonts.medium
50247
50240
  },
50248
50241
  children: "Provider"
@@ -50301,7 +50294,7 @@ function BuyWithCard({
50301
50294
  {
50302
50295
  className: "uf-text-xs uf-font-normal uf-mb-2",
50303
50296
  style: {
50304
- color: components.card.labelColor,
50297
+ color: components.card.headerColor,
50305
50298
  fontFamily: fonts.regular
50306
50299
  },
50307
50300
  children: "Auto-picked for you"
@@ -50416,8 +50409,8 @@ function BuyWithCard({
50416
50409
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
50417
50410
  "div",
50418
50411
  {
50419
- 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"}`,
50420
- 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) => {
50421
50414
  const badges = getProviderBadges(quote, sortedQuotes);
50422
50415
  const displayName = quote.service_provider_display_name;
50423
50416
  const isSelected = selectedProvider?.service_provider === quote.service_provider;
@@ -50434,11 +50427,11 @@ function BuyWithCard({
50434
50427
  },
50435
50428
  onMouseEnter: () => setHoveredProviderIndex(index2),
50436
50429
  onMouseLeave: () => setHoveredProviderIndex(null),
50437
- 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",
50438
50431
  style: {
50439
50432
  backgroundColor: hoveredProviderIndex === index2 ? colors2.cardHover : components.card.backgroundColor,
50440
50433
  borderRadius: components.card.borderRadius,
50441
- border: `${components.card.borderWidth}px solid ${components.card.borderColor}`
50434
+ border: isSelected ? `2px solid ${colors2.primary}` : `${components.card.borderWidth}px solid ${components.card.borderColor}`
50442
50435
  },
50443
50436
  children: [
50444
50437
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
@@ -50465,7 +50458,8 @@ function BuyWithCard({
50465
50458
  badges.map((badge, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
50466
50459
  "span",
50467
50460
  {
50468
- className: "uf-text-[10px] uf-text-green-400 uf-font-normal",
50461
+ className: "uf-text-[10px] uf-font-normal",
50462
+ style: { color: colors2.success },
50469
50463
  children: [
50470
50464
  badge,
50471
50465
  i < badges.length - 1 && ","
@@ -50473,8 +50467,25 @@ function BuyWithCard({
50473
50467
  },
50474
50468
  i
50475
50469
  )),
50476
- quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: "\u2022" }),
50477
- 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
+ )
50478
50489
  ] })
50479
50490
  ] })
50480
50491
  ] }),
@@ -50575,7 +50586,7 @@ function BuyWithCard({
50575
50586
  }
50576
50587
  )
50577
50588
  ] }),
50578
- /* @__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 } }) }),
50579
50590
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
50580
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: [
50581
50592
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
@@ -50618,7 +50629,7 @@ function BuyWithCard({
50618
50629
  }
50619
50630
  )
50620
50631
  ] }),
50621
- /* @__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 } }) }),
50622
50633
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
50623
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: [
50624
50635
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
@@ -51100,7 +51111,7 @@ function DepositExecutionItem({
51100
51111
  {
51101
51112
  className: "uf-font-medium uf-text-sm uf-flex-shrink-0",
51102
51113
  style: {
51103
- color: components.card.titleColor,
51114
+ color: components.card.textRightColor,
51104
51115
  fontFamily: fonts.medium
51105
51116
  },
51106
51117
  children: formatUsdAmount2(execution.source_amount_usd || "0")
@@ -51149,7 +51160,7 @@ function TransferCryptoButton({
51149
51160
  Zap,
51150
51161
  {
51151
51162
  className: "uf-w-5 uf-h-5",
51152
- style: { color: colors2.foregroundMuted }
51163
+ style: { color: components.card.iconColor }
51153
51164
  }
51154
51165
  ) }),
51155
51166
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "uf-text-left", children: [
@@ -51236,7 +51247,7 @@ function DepositWithCardButton({
51236
51247
  CreditCard,
51237
51248
  {
51238
51249
  className: "uf-w-5 uf-h-5",
51239
- style: { color: colors2.foregroundMuted }
51250
+ style: { color: components.card.iconColor }
51240
51251
  }
51241
51252
  ) }),
51242
51253
  /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "uf-text-left", children: [
@@ -51329,7 +51340,7 @@ function PayWithExchangeButton({
51329
51340
  ArrowLeftRight,
51330
51341
  {
51331
51342
  className: "uf-w-5 uf-h-5",
51332
- style: { color: colors2.foregroundMuted }
51343
+ style: { color: components.card.iconColor }
51333
51344
  }
51334
51345
  ) }),
51335
51346
  /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "uf-text-left", children: [
@@ -51416,7 +51427,7 @@ function DepositTrackerButton({
51416
51427
  Clock,
51417
51428
  {
51418
51429
  className: "uf-w-5 uf-h-5",
51419
- style: { color: colors2.foregroundMuted }
51430
+ style: { color: components.card.iconColor }
51420
51431
  }
51421
51432
  ),
51422
51433
  badge !== void 0 && badge > 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
@@ -54246,7 +54257,7 @@ function DepositsModal({
54246
54257
  onClose: handleClose
54247
54258
  }
54248
54259
  ),
54249
- /* @__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)(
54250
54261
  "div",
54251
54262
  {
54252
54263
  className: "uf-text-sm",
@@ -54440,23 +54451,33 @@ function TokenSelectorSheet({
54440
54451
  ),
54441
54452
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "uf-w-7 uf-h-5 uf-invisible" })
54442
54453
  ] }),
54443
- /* @__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)(
54444
- "input",
54445
- {
54446
- type: "text",
54447
- placeholder: "Search",
54448
- value: searchQuery,
54449
- onChange: (e) => setSearchQuery(e.target.value),
54450
- 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",
54451
- style: {
54452
- backgroundColor: components.search.backgroundColor,
54453
- color: components.search.inputColor,
54454
- fontFamily: fonts.regular,
54455
- borderRadius: components.input.borderRadius,
54456
- 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
+ }
54457
54461
  }
54458
- }
54459
- ) }) }),
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
+ ] }),
54460
54481
  quickSelectOptions.length > 0 && !searchQuery && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "uf-pb-3 uf--mx-6", children: [
54461
54482
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54462
54483
  "div",
@@ -54708,12 +54729,13 @@ function TokenSelectorSheet({
54708
54729
  style: {
54709
54730
  fontSize: 12,
54710
54731
  flexShrink: 0,
54711
- color: components.card.labelColor,
54712
54732
  fontFamily: fonts.regular
54713
54733
  },
54714
54734
  children: [
54715
- "Minimum:",
54716
- " ",
54735
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { style: { color: components.card.textRightColor }, children: [
54736
+ "Minimum:",
54737
+ " "
54738
+ ] }),
54717
54739
  /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { style: { color: components.card.labelHighlightRightColor }, children: [
54718
54740
  "$",
54719
54741
  chain.minimum_deposit_amount_usd
@@ -54789,13 +54811,15 @@ function DepositPollingUi({
54789
54811
  function DepositFooterLinks({
54790
54812
  onGlossaryClick
54791
54813
  }) {
54814
+ const { colors: colors2 } = useTheme();
54792
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: [
54793
54816
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
54794
54817
  "a",
54795
54818
  {
54796
54819
  href: "https://unifold.io/terms",
54797
54820
  target: "_blank",
54798
- 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 },
54799
54823
  children: "Terms"
54800
54824
  }
54801
54825
  ),
@@ -54805,7 +54829,8 @@ function DepositFooterLinks({
54805
54829
  {
54806
54830
  href: "https://unifold.io/support",
54807
54831
  target: "_blank",
54808
- 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 },
54809
54834
  children: "Help"
54810
54835
  }
54811
54836
  ),
@@ -54813,8 +54838,9 @@ function DepositFooterLinks({
54813
54838
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
54814
54839
  "div",
54815
54840
  {
54816
- className: "uf-cursor-pointer hover:uf-text-foreground uf-transition-colors",
54841
+ className: "uf-cursor-pointer hover:uf-opacity-90 uf-transition-colors",
54817
54842
  onClick: onGlossaryClick,
54843
+ style: { color: colors2.primary },
54818
54844
  children: "Glossary"
54819
54845
  }
54820
54846
  )
@@ -54824,61 +54850,117 @@ var t3 = i18n2.transferCrypto;
54824
54850
  function GlossaryModal({
54825
54851
  open,
54826
54852
  onOpenChange,
54827
- themeClass,
54828
- colors: colors2
54853
+ backgroundColor: backgroundColorProp,
54854
+ themeClass: themeClassProp,
54855
+ colors: colorsProp
54829
54856
  }) {
54857
+ const { themeClass, colors: colors2, components } = useTheme();
54858
+ const resolvedThemeClass = themeClassProp ?? themeClass;
54859
+ const modalBackground = backgroundColorProp ?? colors2.background;
54830
54860
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
54831
54861
  DialogContent2,
54832
54862
  {
54833
- 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}`,
54834
- 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 },
54835
54865
  children: [
54836
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between uf-p-4 uf-pb-2", children: [
54837
- /* @__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
+ ),
54838
54876
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
54839
54877
  "button",
54840
54878
  {
54841
54879
  onClick: () => onOpenChange(false),
54842
- 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 },
54843
54882
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(X, { className: "uf-w-4 uf-h-4" })
54844
54883
  }
54845
54884
  )
54846
54885
  ] }),
54847
- /* @__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: [
54848
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54849
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Your Deposit Token" }),
54850
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t3.selectTokenDepositTooltip })
54851
- ] }),
54852
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54853
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54854
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Deposit Address" }),
54855
- /* @__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." })
54856
- ] }),
54857
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54858
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54859
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Price Impact" }),
54860
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t3.priceImpact.tooltip })
54861
- ] }),
54862
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54863
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54864
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Slippage" }),
54865
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t3.slippage.tooltip })
54866
- ] }),
54867
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54868
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54869
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Processing Time" }),
54870
- /* @__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." })
54871
- ] }),
54872
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54873
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54874
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Minimum Deposit" }),
54875
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t3.minDeposit.tooltip })
54876
- ] }),
54877
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-border-t uf-border-border" }),
54878
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
54879
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Recipient Address" }),
54880
- /* @__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." })
54881
- ] })
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
+ )
54882
54964
  ] }) })
54883
54965
  ]
54884
54966
  }
@@ -55119,7 +55201,7 @@ function TransferCryptoSingleInput({
55119
55201
  className: "uf-space-y-3 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden",
55120
55202
  style: { backgroundColor: colors2.background },
55121
55203
  children: [
55122
- /* @__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 }) }),
55123
55205
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
55124
55206
  "button",
55125
55207
  {
@@ -55223,7 +55305,7 @@ function TransferCryptoSingleInput({
55223
55305
  ] })
55224
55306
  ] }),
55225
55307
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
55226
- /* @__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" }),
55227
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 ? (
55228
55310
  // QR Skeleton - matches QR code appearance
55229
55311
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
@@ -55268,7 +55350,7 @@ function TransferCryptoSingleInput({
55268
55350
  }
55269
55351
  ) })
55270
55352
  ] }),
55271
- /* @__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: [
55272
55354
  loading || tokensLoading || !initialSelectionDone ? (
55273
55355
  // Address skeleton
55274
55356
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
@@ -55280,12 +55362,13 @@ function TransferCryptoSingleInput({
55280
55362
  }
55281
55363
  }
55282
55364
  )
55283
- ) : /* @__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 }),
55284
55366
  depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
55285
55367
  "span",
55286
55368
  {
55287
55369
  onClick: handleCopyAddress,
55288
- 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 },
55289
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" })
55290
55373
  }
55291
55374
  )
@@ -55347,7 +55430,8 @@ function TransferCryptoSingleInput({
55347
55430
  "span",
55348
55431
  {
55349
55432
  onClick: () => handleCopyRecipientAddress(recipientAddress),
55350
- 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 },
55351
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" })
55352
55436
  }
55353
55437
  )
@@ -55738,7 +55822,7 @@ function TransferCryptoDoubleInput({
55738
55822
  children: [
55739
55823
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-grid uf-grid-cols-2 uf-gap-2.5", children: [
55740
55824
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
55741
- /* @__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 }),
55742
55826
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
55743
55827
  Select2,
55744
55828
  {
@@ -55746,7 +55830,7 @@ function TransferCryptoDoubleInput({
55746
55830
  onValueChange: setToken,
55747
55831
  disabled: tokensLoading || supportedTokens.length === 0,
55748
55832
  children: [
55749
- /* @__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 }) }) }) }),
55750
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)(
55751
55835
  SelectItem2,
55752
55836
  {
@@ -55761,7 +55845,7 @@ function TransferCryptoDoubleInput({
55761
55845
  )
55762
55846
  ] }),
55763
55847
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
55764
- /* @__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: [
55765
55849
  t5.selectedChain,
55766
55850
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "uf-font-medium", style: { color: components.card.labelHighlightRightColor }, children: [
55767
55851
  "$",
@@ -55777,7 +55861,7 @@ function TransferCryptoDoubleInput({
55777
55861
  onValueChange: setChain,
55778
55862
  disabled: tokensLoading || availableChainsForToken.length === 0,
55779
55863
  children: [
55780
- /* @__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 }) }) }) }),
55781
55865
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
55782
55866
  SelectContent2,
55783
55867
  {
@@ -55820,7 +55904,7 @@ function TransferCryptoDoubleInput({
55820
55904
  ] })
55821
55905
  ] }),
55822
55906
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
55823
- /* @__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" }),
55824
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 ? (
55825
55909
  // QR Skeleton - matches QR code appearance
55826
55910
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
@@ -55865,7 +55949,7 @@ function TransferCryptoDoubleInput({
55865
55949
  }
55866
55950
  ) })
55867
55951
  ] }),
55868
- /* @__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: [
55869
55953
  loading || tokensLoading || !initialSelectionDone ? (
55870
55954
  // Address skeleton
55871
55955
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
@@ -55877,12 +55961,13 @@ function TransferCryptoDoubleInput({
55877
55961
  }
55878
55962
  }
55879
55963
  )
55880
- ) : /* @__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 }),
55881
55965
  depositAddress && initialSelectionDone && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
55882
55966
  "span",
55883
55967
  {
55884
55968
  onClick: handleCopyAddress,
55885
- 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 },
55886
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" })
55887
55972
  }
55888
55973
  )
@@ -55944,7 +56029,8 @@ function TransferCryptoDoubleInput({
55944
56029
  "span",
55945
56030
  {
55946
56031
  onClick: () => handleCopyRecipientAddress(recipientAddress),
55947
- 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 },
55948
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" })
55949
56035
  }
55950
56036
  )
@@ -58338,7 +58424,7 @@ function DepositModal({
58338
58424
  onClose: handleClose
58339
58425
  }
58340
58426
  ),
58341
- /* @__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)(
58427
+ /* @__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)(
58342
58428
  "div",
58343
58429
  {
58344
58430
  className: "uf-text-sm",
@@ -58531,6 +58617,11 @@ function UnifoldProvider2({
58531
58617
  null
58532
58618
  );
58533
58619
  const [resolvedTheme, setResolvedTheme] = import_react.default.useState("dark");
58620
+ (0, import_react.useEffect)(() => {
58621
+ if (publishableKey) {
58622
+ setApiConfig({ publishableKey });
58623
+ }
58624
+ }, [publishableKey]);
58534
58625
  import_react.default.useEffect(() => {
58535
58626
  const appearance = config?.appearance || "dark";
58536
58627
  if (appearance === "auto") {
@@ -58547,12 +58638,16 @@ function UnifoldProvider2({
58547
58638
  }
58548
58639
  }, [config?.appearance]);
58549
58640
  const depositPromiseRef = import_react.default.useRef(null);
58641
+ const depositConfigRef = import_react.default.useRef(null);
58642
+ depositConfigRef.current = depositConfig;
58550
58643
  const closeTimeoutRef = import_react.default.useRef(null);
58644
+ const closeGuardRef = import_react.default.useRef(false);
58551
58645
  const beginDeposit = (0, import_react.useCallback)((config2) => {
58552
58646
  if (closeTimeoutRef.current) {
58553
58647
  clearTimeout(closeTimeoutRef.current);
58554
58648
  closeTimeoutRef.current = null;
58555
58649
  }
58650
+ closeGuardRef.current = false;
58556
58651
  if (depositPromiseRef.current) {
58557
58652
  console.warn("[UnifoldProvider] A deposit is already in progress. Cancelling previous deposit.");
58558
58653
  depositPromiseRef.current.reject({
@@ -58564,17 +58659,27 @@ function UnifoldProvider2({
58564
58659
  const promise = new Promise((resolve, reject) => {
58565
58660
  depositPromiseRef.current = { resolve, reject };
58566
58661
  });
58662
+ promise.catch(() => {
58663
+ });
58567
58664
  setDepositConfig(config2);
58568
58665
  setIsOpen(true);
58569
58666
  return promise;
58570
58667
  }, []);
58571
58668
  const closeDeposit = (0, import_react.useCallback)(() => {
58572
- if (depositPromiseRef.current) {
58573
- depositPromiseRef.current.reject({
58669
+ if (closeGuardRef.current) {
58670
+ return;
58671
+ }
58672
+ closeGuardRef.current = true;
58673
+ const promiseToReject = depositPromiseRef.current;
58674
+ depositPromiseRef.current = null;
58675
+ if (depositConfigRef.current?.onClose) {
58676
+ depositConfigRef.current.onClose();
58677
+ }
58678
+ if (promiseToReject) {
58679
+ promiseToReject.reject({
58574
58680
  message: "Deposit cancelled by user",
58575
58681
  code: "DEPOSIT_CANCELLED"
58576
58682
  });
58577
- depositPromiseRef.current = null;
58578
58683
  }
58579
58684
  setIsOpen(false);
58580
58685
  closeTimeoutRef.current = setTimeout(() => {