@unifold/connect-react 0.1.11 → 0.1.13

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.mjs CHANGED
@@ -1223,10 +1223,19 @@ function useUnifold() {
1223
1223
  // ../ui-react/dist/index.mjs
1224
1224
  import { useState as useState72, useEffect as useEffect62 } from "react";
1225
1225
 
1226
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
1226
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
1227
+ import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
1228
+
1229
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
1230
+ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1231
+ var mergeClasses = (...classes) => classes.filter((className, index2, array) => {
1232
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index2;
1233
+ }).join(" ").trim();
1234
+
1235
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
1227
1236
  import { forwardRef, createElement } from "react";
1228
1237
 
1229
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
1238
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
1230
1239
  var defaultAttributes = {
1231
1240
  xmlns: "http://www.w3.org/2000/svg",
1232
1241
  width: 24,
@@ -1239,11 +1248,19 @@ var defaultAttributes = {
1239
1248
  strokeLinejoin: "round"
1240
1249
  };
1241
1250
 
1242
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
1243
- var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim();
1244
- var createLucideIcon = (iconName, iconNode) => {
1245
- const Component = forwardRef(
1246
- ({ color = "currentColor", size: size4 = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, ...rest }, ref) => createElement(
1251
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
1252
+ var Icon = forwardRef(
1253
+ ({
1254
+ color = "currentColor",
1255
+ size: size4 = 24,
1256
+ strokeWidth = 2,
1257
+ absoluteStrokeWidth,
1258
+ className = "",
1259
+ children,
1260
+ iconNode,
1261
+ ...rest
1262
+ }, ref) => {
1263
+ return createElement(
1247
1264
  "svg",
1248
1265
  {
1249
1266
  ref,
@@ -1252,112 +1269,133 @@ var createLucideIcon = (iconName, iconNode) => {
1252
1269
  height: size4,
1253
1270
  stroke: color,
1254
1271
  strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size4) : strokeWidth,
1255
- className: ["lucide", `lucide-${toKebabCase(iconName)}`, className].join(" "),
1272
+ className: mergeClasses("lucide", className),
1256
1273
  ...rest
1257
1274
  },
1258
1275
  [
1259
1276
  ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
1260
1277
  ...Array.isArray(children) ? children : [children]
1261
1278
  ]
1262
- )
1279
+ );
1280
+ }
1281
+ );
1282
+
1283
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
1284
+ var createLucideIcon = (iconName, iconNode) => {
1285
+ const Component = forwardRef2(
1286
+ ({ className, ...props }, ref) => createElement2(Icon, {
1287
+ ref,
1288
+ iconNode,
1289
+ className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
1290
+ ...props
1291
+ })
1263
1292
  );
1264
1293
  Component.displayName = `${iconName}`;
1265
1294
  return Component;
1266
1295
  };
1267
1296
 
1268
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-left.js
1297
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-left.js
1269
1298
  var ArrowLeft = createLucideIcon("ArrowLeft", [
1270
1299
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
1271
1300
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
1272
1301
  ]);
1273
1302
 
1274
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/check.js
1303
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/check.js
1275
1304
  var Check = createLucideIcon("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
1276
1305
 
1277
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js
1306
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js
1278
1307
  var ChevronDown = createLucideIcon("ChevronDown", [
1279
1308
  ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
1280
1309
  ]);
1281
1310
 
1282
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-right.js
1311
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-right.js
1283
1312
  var ChevronRight = createLucideIcon("ChevronRight", [
1284
1313
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
1285
1314
  ]);
1286
1315
 
1287
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-up.js
1316
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-up.js
1288
1317
  var ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
1289
1318
 
1290
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/clock.js
1319
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/clock.js
1291
1320
  var Clock = createLucideIcon("Clock", [
1292
1321
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
1293
1322
  ["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
1294
1323
  ]);
1295
1324
 
1296
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/credit-card.js
1325
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/credit-card.js
1297
1326
  var CreditCard = createLucideIcon("CreditCard", [
1298
1327
  ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
1299
1328
  ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
1300
1329
  ]);
1301
1330
 
1302
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dollar-sign.js
1331
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dollar-sign.js
1303
1332
  var DollarSign = createLucideIcon("DollarSign", [
1304
1333
  ["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
1305
1334
  ["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
1306
1335
  ]);
1307
1336
 
1308
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/external-link.js
1337
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/external-link.js
1309
1338
  var ExternalLink = createLucideIcon("ExternalLink", [
1310
- ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }],
1311
- ["polyline", { points: "15 3 21 3 21 9", key: "mznyad" }],
1312
- ["line", { x1: "10", x2: "21", y1: "14", y2: "3", key: "18c3s4" }]
1339
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
1340
+ ["path", { d: "M10 14 21 3", key: "gplh6r" }],
1341
+ ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
1313
1342
  ]);
1314
1343
 
1315
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/file-text.js
1344
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/file-text.js
1316
1345
  var FileText = createLucideIcon("FileText", [
1317
- [
1318
- "path",
1319
- { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z", key: "1nnpy2" }
1320
- ],
1321
- ["polyline", { points: "14 2 14 8 20 8", key: "1ew0cm" }],
1322
- ["line", { x1: "16", x2: "8", y1: "13", y2: "13", key: "14keom" }],
1323
- ["line", { x1: "16", x2: "8", y1: "17", y2: "17", key: "17nazh" }],
1324
- ["line", { x1: "10", x2: "8", y1: "9", y2: "9", key: "1a5vjj" }]
1346
+ ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
1347
+ ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
1348
+ ["path", { d: "M10 9H8", key: "b1mrlr" }],
1349
+ ["path", { d: "M16 13H8", key: "t4e002" }],
1350
+ ["path", { d: "M16 17H8", key: "z1uh3a" }]
1325
1351
  ]);
1326
1352
 
1327
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/info.js
1353
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/info.js
1328
1354
  var Info = createLucideIcon("Info", [
1329
1355
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
1330
1356
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
1331
1357
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
1332
1358
  ]);
1333
1359
 
1334
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/search.js
1360
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/search.js
1335
1361
  var Search = createLucideIcon("Search", [
1336
1362
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
1337
1363
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
1338
1364
  ]);
1339
1365
 
1340
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/shield-check.js
1366
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/shield-check.js
1341
1367
  var ShieldCheck = createLucideIcon("ShieldCheck", [
1342
- ["path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10", key: "1irkt0" }],
1368
+ [
1369
+ "path",
1370
+ {
1371
+ d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
1372
+ key: "oel41y"
1373
+ }
1374
+ ],
1343
1375
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
1344
1376
  ]);
1345
1377
 
1346
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.js
1378
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.js
1347
1379
  var X = createLucideIcon("X", [
1348
1380
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
1349
1381
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
1350
1382
  ]);
1351
1383
 
1352
- // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/zap.js
1384
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/zap.js
1353
1385
  var Zap = createLucideIcon("Zap", [
1354
- ["polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2", key: "45s27k" }]
1386
+ [
1387
+ "path",
1388
+ {
1389
+ d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
1390
+ key: "1xq2db"
1391
+ }
1392
+ ]
1355
1393
  ]);
1356
1394
 
1357
1395
  // ../ui-react/dist/index.mjs
1358
1396
  import * as React210 from "react";
1359
1397
 
1360
- // ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3_bwdzsrsjkenptt5ry5km67dkui/node_modules/@radix-ui/react-dialog/dist/index.mjs
1398
+ // ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2._c543yfkcelkno3idkccogkevua/node_modules/@radix-ui/react-dialog/dist/index.mjs
1361
1399
  import * as React24 from "react";
1362
1400
 
1363
1401
  // ../../node_modules/.pnpm/@radix-ui+primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs
@@ -1371,7 +1409,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
1371
1409
  };
1372
1410
  }
1373
1411
 
1374
- // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
1412
+ // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
1375
1413
  import * as React from "react";
1376
1414
  function setRef(ref, value) {
1377
1415
  if (typeof ref === "function") {
@@ -1408,7 +1446,7 @@ function useComposedRefs(...refs) {
1408
1446
  return React.useCallback(composeRefs(...refs), refs);
1409
1447
  }
1410
1448
 
1411
- // ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
1449
+ // ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
1412
1450
  import * as React2 from "react";
1413
1451
  import { jsx as jsx2 } from "react/jsx-runtime";
1414
1452
  function createContext22(rootComponentName, defaultContext) {
@@ -1485,15 +1523,15 @@ function composeContextScopes(...scopes) {
1485
1523
  return createScope;
1486
1524
  }
1487
1525
 
1488
- // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
1526
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
1489
1527
  import * as React4 from "react";
1490
1528
 
1491
- // ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
1529
+ // ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
1492
1530
  import * as React3 from "react";
1493
1531
  var useLayoutEffect2 = globalThis?.document ? React3.useLayoutEffect : () => {
1494
1532
  };
1495
1533
 
1496
- // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
1534
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
1497
1535
  var useReactId = React4[" useId ".trim().toString()] || (() => void 0);
1498
1536
  var count = 0;
1499
1537
  function useId(deterministicId) {
@@ -1504,7 +1542,7 @@ function useId(deterministicId) {
1504
1542
  return deterministicId || (id ? `radix-${id}` : "");
1505
1543
  }
1506
1544
 
1507
- // ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
1545
+ // ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
1508
1546
  import * as React5 from "react";
1509
1547
  import * as React22 from "react";
1510
1548
  var useInsertionEffect = React5[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
@@ -1572,14 +1610,14 @@ function isFunction(value) {
1572
1610
  return typeof value === "function";
1573
1611
  }
1574
1612
 
1575
- // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@18.3.7_@types+react@18.3.27__@types_u6tzwtgv5ghthzjquanrhjxpva/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
1613
+ // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.9__@types+_ww6fouyx2m6cwmjzqm53vz7gdi/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
1576
1614
  import * as React10 from "react";
1577
1615
 
1578
- // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18_yolw7mpxxngdeqhbiia4uh4qoe/node_modules/@radix-ui/react-primitive/dist/index.mjs
1616
+ // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19._ttsd3lhl6vteekfa4w7yhzbari/node_modules/@radix-ui/react-primitive/dist/index.mjs
1579
1617
  import * as React7 from "react";
1580
1618
  import * as ReactDOM from "react-dom";
1581
1619
 
1582
- // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
1620
+ // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
1583
1621
  import * as React6 from "react";
1584
1622
  import { Fragment as Fragment2, jsx as jsx3 } from "react/jsx-runtime";
1585
1623
  // @__NO_SIDE_EFFECTS__
@@ -1674,7 +1712,7 @@ function getElementRef(element) {
1674
1712
  return element.props.ref || element.ref;
1675
1713
  }
1676
1714
 
1677
- // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18_yolw7mpxxngdeqhbiia4uh4qoe/node_modules/@radix-ui/react-primitive/dist/index.mjs
1715
+ // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19._ttsd3lhl6vteekfa4w7yhzbari/node_modules/@radix-ui/react-primitive/dist/index.mjs
1678
1716
  import { jsx as jsx4 } from "react/jsx-runtime";
1679
1717
  var NODES = [
1680
1718
  "a",
@@ -1712,7 +1750,7 @@ function dispatchDiscreteCustomEvent(target, event) {
1712
1750
  if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
1713
1751
  }
1714
1752
 
1715
- // ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
1753
+ // ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
1716
1754
  import * as React8 from "react";
1717
1755
  function useCallbackRef(callback) {
1718
1756
  const callbackRef = React8.useRef(callback);
@@ -1722,7 +1760,7 @@ function useCallbackRef(callback) {
1722
1760
  return React8.useMemo(() => (...args) => callbackRef.current?.(...args), []);
1723
1761
  }
1724
1762
 
1725
- // ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
1763
+ // ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
1726
1764
  import * as React9 from "react";
1727
1765
  function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
1728
1766
  const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
@@ -1737,7 +1775,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
1737
1775
  }, [onEscapeKeyDown, ownerDocument]);
1738
1776
  }
1739
1777
 
1740
- // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@18.3.7_@types+react@18.3.27__@types_u6tzwtgv5ghthzjquanrhjxpva/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
1778
+ // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.9__@types+_ww6fouyx2m6cwmjzqm53vz7gdi/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
1741
1779
  import { jsx as jsx5 } from "react/jsx-runtime";
1742
1780
  var DISMISSABLE_LAYER_NAME = "DismissableLayer";
1743
1781
  var CONTEXT_UPDATE = "dismissableLayer.update";
@@ -1942,7 +1980,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
1942
1980
  }
1943
1981
  }
1944
1982
 
1945
- // ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@_vcdvmbqgklingdkgujb3ivph6i/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
1983
+ // ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@1_tfxcpqbhv4yeom5omze5oqyk7a/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
1946
1984
  import * as React11 from "react";
1947
1985
  import { jsx as jsx6 } from "react/jsx-runtime";
1948
1986
  var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
@@ -2146,7 +2184,7 @@ function removeLinks(items) {
2146
2184
  return items.filter((item) => item.tagName !== "A");
2147
2185
  }
2148
2186
 
2149
- // ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3._7latw2vgc5q47ysk2odet7oazm/node_modules/@radix-ui/react-portal/dist/index.mjs
2187
+ // ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2.9_nk6ushapd5m5qcefseikyaidiq/node_modules/@radix-ui/react-portal/dist/index.mjs
2150
2188
  import * as React12 from "react";
2151
2189
  import ReactDOM2 from "react-dom";
2152
2190
  import { jsx as jsx7 } from "react/jsx-runtime";
@@ -2160,7 +2198,7 @@ var Portal = React12.forwardRef((props, forwardedRef) => {
2160
2198
  });
2161
2199
  Portal.displayName = PORTAL_NAME;
2162
2200
 
2163
- // ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18._rdlydof7lkhqrva5s2nvtprt3a/node_modules/@radix-ui/react-presence/dist/index.mjs
2201
+ // ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2_lhxxu3bl2a5egptwobjoj75owm/node_modules/@radix-ui/react-presence/dist/index.mjs
2164
2202
  import * as React23 from "react";
2165
2203
  import * as React13 from "react";
2166
2204
  function useStateMachine(initialState, machine) {
@@ -2286,7 +2324,7 @@ function getElementRef2(element) {
2286
2324
  return element.props.ref || element.ref;
2287
2325
  }
2288
2326
 
2289
- // ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
2327
+ // ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
2290
2328
  import * as React14 from "react";
2291
2329
  var count2 = 0;
2292
2330
  function useFocusGuards() {
@@ -2346,19 +2384,19 @@ function __spreadArray(to, from, pack) {
2346
2384
  return to.concat(ar || Array.prototype.slice.call(from));
2347
2385
  }
2348
2386
 
2349
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js
2387
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js
2350
2388
  import * as React21 from "react";
2351
2389
 
2352
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js
2390
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js
2353
2391
  import * as React17 from "react";
2354
2392
 
2355
- // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
2393
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
2356
2394
  var zeroRightClassName = "right-scroll-bar-position";
2357
2395
  var fullWidthClassName = "width-before-scroll-bar";
2358
2396
  var noScrollbarsClassName = "with-scroll-bars-hidden";
2359
2397
  var removedBarSizeVariable = "--removed-body-scroll-bar-size";
2360
2398
 
2361
- // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js
2399
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.9_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js
2362
2400
  function assignRef(ref, value) {
2363
2401
  if (typeof ref === "function") {
2364
2402
  ref(value);
@@ -2368,7 +2406,7 @@ function assignRef(ref, value) {
2368
2406
  return ref;
2369
2407
  }
2370
2408
 
2371
- // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js
2409
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.9_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js
2372
2410
  import { useState as useState8 } from "react";
2373
2411
  function useCallbackRef2(initialValue, callback) {
2374
2412
  var ref = useState8(function() {
@@ -2396,7 +2434,7 @@ function useCallbackRef2(initialValue, callback) {
2396
2434
  return ref.facade;
2397
2435
  }
2398
2436
 
2399
- // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
2437
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.9_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
2400
2438
  import * as React15 from "react";
2401
2439
  var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React15.useLayoutEffect : React15.useEffect;
2402
2440
  var currentValues = /* @__PURE__ */ new WeakMap();
@@ -2428,7 +2466,7 @@ function useMergeRefs(refs, defaultValue) {
2428
2466
  return callbackRef;
2429
2467
  }
2430
2468
 
2431
- // ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.27_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js
2469
+ // ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.9_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js
2432
2470
  function ItoI(a) {
2433
2471
  return a;
2434
2472
  }
@@ -2514,7 +2552,7 @@ function createSidecarMedium(options) {
2514
2552
  return medium;
2515
2553
  }
2516
2554
 
2517
- // ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.27_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js
2555
+ // ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.9_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js
2518
2556
  import * as React16 from "react";
2519
2557
  var SideCar = function(_a) {
2520
2558
  var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
@@ -2533,10 +2571,10 @@ function exportSidecar(medium, exported) {
2533
2571
  return SideCar;
2534
2572
  }
2535
2573
 
2536
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js
2574
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js
2537
2575
  var effectCar = createSidecarMedium();
2538
2576
 
2539
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js
2577
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js
2540
2578
  var nothing = function() {
2541
2579
  return;
2542
2580
  };
@@ -2568,13 +2606,13 @@ RemoveScroll.classNames = {
2568
2606
  zeroRight: zeroRightClassName
2569
2607
  };
2570
2608
 
2571
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
2609
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
2572
2610
  import * as React20 from "react";
2573
2611
 
2574
- // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js
2612
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js
2575
2613
  import * as React19 from "react";
2576
2614
 
2577
- // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.27_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js
2615
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.9_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js
2578
2616
  import * as React18 from "react";
2579
2617
 
2580
2618
  // ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
@@ -2589,7 +2627,7 @@ var getNonce = function() {
2589
2627
  return void 0;
2590
2628
  };
2591
2629
 
2592
- // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.27_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js
2630
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.9_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js
2593
2631
  function makeStyleTag() {
2594
2632
  if (!document)
2595
2633
  return null;
@@ -2635,7 +2673,7 @@ var stylesheetSingleton = function() {
2635
2673
  };
2636
2674
  };
2637
2675
 
2638
- // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.27_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js
2676
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.9_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js
2639
2677
  var styleHookSingleton = function() {
2640
2678
  var sheet = stylesheetSingleton();
2641
2679
  return function(styles, isDynamic) {
@@ -2648,7 +2686,7 @@ var styleHookSingleton = function() {
2648
2686
  };
2649
2687
  };
2650
2688
 
2651
- // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.27_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.js
2689
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.9_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.js
2652
2690
  var styleSingleton = function() {
2653
2691
  var useStyle = styleHookSingleton();
2654
2692
  var Sheet = function(_a) {
@@ -2659,7 +2697,7 @@ var styleSingleton = function() {
2659
2697
  return Sheet;
2660
2698
  };
2661
2699
 
2662
- // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
2700
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
2663
2701
  var zeroGap = {
2664
2702
  left: 0,
2665
2703
  top: 0,
@@ -2694,7 +2732,7 @@ var getGapWidth = function(gapMode) {
2694
2732
  };
2695
2733
  };
2696
2734
 
2697
- // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js
2735
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js
2698
2736
  var Style = styleSingleton();
2699
2737
  var lockAttribute = "data-scroll-locked";
2700
2738
  var getStyles = function(_a, allowRelative, gapMode, important) {
@@ -2734,7 +2772,7 @@ var RemoveScrollBar = function(_a) {
2734
2772
  return React19.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
2735
2773
  };
2736
2774
 
2737
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
2775
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
2738
2776
  var passiveSupported = false;
2739
2777
  if (typeof window !== "undefined") {
2740
2778
  try {
@@ -2753,7 +2791,7 @@ if (typeof window !== "undefined") {
2753
2791
  var options;
2754
2792
  var nonPassive = passiveSupported ? { passive: false } : false;
2755
2793
 
2756
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
2794
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
2757
2795
  var alwaysContainsScroll = function(node) {
2758
2796
  return node.tagName === "TEXTAREA";
2759
2797
  };
@@ -2853,7 +2891,7 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
2853
2891
  return shouldCancelScroll;
2854
2892
  };
2855
2893
 
2856
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
2894
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
2857
2895
  var getTouchXY = function(event) {
2858
2896
  return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
2859
2897
  };
@@ -3024,10 +3062,10 @@ function getOutermostShadowParent(node) {
3024
3062
  return shadowParent;
3025
3063
  }
3026
3064
 
3027
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js
3065
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js
3028
3066
  var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
3029
3067
 
3030
- // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.27_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js
3068
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.9_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js
3031
3069
  var ReactRemoveScroll = React21.forwardRef(function(props, ref) {
3032
3070
  return React21.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
3033
3071
  });
@@ -3155,7 +3193,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
3155
3193
  return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
3156
3194
  };
3157
3195
 
3158
- // ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3_bwdzsrsjkenptt5ry5km67dkui/node_modules/@radix-ui/react-dialog/dist/index.mjs
3196
+ // ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2._c543yfkcelkno3idkccogkevua/node_modules/@radix-ui/react-dialog/dist/index.mjs
3159
3197
  import { Fragment as Fragment5, jsx as jsx8, jsxs } from "react/jsx-runtime";
3160
3198
  var DIALOG_NAME = "Dialog";
3161
3199
  var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
@@ -5950,6 +5988,30 @@ import { useQuery } from "@tanstack/react-query";
5950
5988
  var API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || "https://api.unifold.io";
5951
5989
  var DEFAULT_PUBLISHABLE_KEY = "pk_test_123";
5952
5990
  var DEFAULT_CONFIG = {};
5991
+ function setApiConfig(config) {
5992
+ if (config.publishableKey !== void 0) {
5993
+ if (!config.publishableKey || config.publishableKey.trim() === "") {
5994
+ throw new Error(
5995
+ "Unifold SDK: publishableKey cannot be empty. Please provide a valid publishable key."
5996
+ );
5997
+ }
5998
+ if (!config.publishableKey.startsWith("pk_test_") && !config.publishableKey.startsWith("pk_live_")) {
5999
+ console.warn(
6000
+ 'Unifold SDK: publishableKey should start with "pk_test_" or "pk_live_". Please ensure you are using a valid publishable key.'
6001
+ );
6002
+ }
6003
+ DEFAULT_PUBLISHABLE_KEY = config.publishableKey;
6004
+ }
6005
+ if (config.baseUrl) {
6006
+ API_BASE_URL = config.baseUrl;
6007
+ }
6008
+ if (config.defaultConfig) {
6009
+ DEFAULT_CONFIG = config.defaultConfig;
6010
+ }
6011
+ }
6012
+ function getApiBaseUrl() {
6013
+ return API_BASE_URL;
6014
+ }
5953
6015
  function validatePublishableKey(key) {
5954
6016
  if (!key || key.trim() === "") {
5955
6017
  throw new Error(
@@ -6014,6 +6076,7 @@ var ExecutionStatus = /* @__PURE__ */ ((ExecutionStatus2) => {
6014
6076
  ExecutionStatus2["WAITING"] = "waiting";
6015
6077
  return ExecutionStatus2;
6016
6078
  })(ExecutionStatus || {});
6079
+ var SOLANA_USDC_ADDRESS = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
6017
6080
  async function queryExecutions(externalUserId, publishableKey) {
6018
6081
  const pk = publishableKey || DEFAULT_PUBLISHABLE_KEY;
6019
6082
  validatePublishableKey(pk);
@@ -6158,6 +6221,116 @@ async function getProjectConfig(publishableKey) {
6158
6221
  }
6159
6222
  return response.json();
6160
6223
  }
6224
+ async function getIpViaIpApi() {
6225
+ const url = "https://ipapi.co/json";
6226
+ const response = await fetch(url);
6227
+ if (!response.ok) {
6228
+ throw new Error(`ipapi.co failed: ${response.statusText}`);
6229
+ }
6230
+ const data = await response.json();
6231
+ return {
6232
+ alpha2: data.country_code.toLowerCase(),
6233
+ state: data.region_code?.toLowerCase()
6234
+ };
6235
+ }
6236
+ function useUserIp() {
6237
+ const {
6238
+ data: userIpInfo,
6239
+ isLoading,
6240
+ error
6241
+ } = useQuery({
6242
+ queryKey: ["getUserIpInfo"],
6243
+ queryFn: async () => {
6244
+ try {
6245
+ const ipApiData = await getIpViaIpApi();
6246
+ console.log("IP detected via ipapi.co:", ipApiData);
6247
+ return ipApiData;
6248
+ } catch (ipApiError) {
6249
+ console.error("IP detection failed:", ipApiError);
6250
+ throw ipApiError;
6251
+ }
6252
+ },
6253
+ // Cache configuration to reduce API calls
6254
+ refetchOnMount: false,
6255
+ refetchOnReconnect: true,
6256
+ refetchOnWindowFocus: false,
6257
+ // Optional: Increase cache duration to 1 hour for even better rate limit protection
6258
+ staleTime: 1e3 * 60 * 60,
6259
+ // 1 hour - data considered fresh for 1 hour
6260
+ gcTime: 1e3 * 60 * 60 * 24
6261
+ // 24 hours - keep in cache for 24 hours
6262
+ });
6263
+ return {
6264
+ userIpInfo,
6265
+ isLoading,
6266
+ error
6267
+ };
6268
+ }
6269
+ var en_default = {
6270
+ transferCrypto: {
6271
+ priceImpact: {
6272
+ label: "Price impact",
6273
+ tooltip: "Price impact reflects the difference between the expected price and the final execution price, influenced by trade size and available liquidity. Larger trades may move the market price during execution.",
6274
+ finalCost: "The final cost reflects price impact and may vary depending on market and network conditions. Larger trade sizes typically benefit from lower relative costs."
6275
+ },
6276
+ slippage: {
6277
+ label: "Max slippage",
6278
+ auto: "Auto",
6279
+ tooltip: "Slippage represents price changes that can occur while a transaction is being processed. Slippage is dynamically adjusted per trading pair to support reliable execution during market movements.",
6280
+ finalCost: "The final cost includes any slippage and may change based on real-time network conditions. Costs are generally reduced for larger transaction amounts."
6281
+ },
6282
+ processingTime: {
6283
+ label: "Processing time",
6284
+ lessThanMinutes: "< {{minutes}} min",
6285
+ lessThanHours: "< {{hours}} hr"
6286
+ },
6287
+ minDeposit: {
6288
+ label: "min",
6289
+ tooltip: "The minimum amount you can deposit on the selected network."
6290
+ },
6291
+ help: {
6292
+ needHelp: "Need help?",
6293
+ contactSupport: "Contact support"
6294
+ },
6295
+ terms: {
6296
+ termsApply: "Terms apply"
6297
+ },
6298
+ supportedToken: "Supported token",
6299
+ supportedChain: "Supported chain",
6300
+ depositAddress: {
6301
+ label: "Your deposit address",
6302
+ tooltip: "Send any supported token to this address, and it will be automatically converted to {{token}} in your account."
6303
+ },
6304
+ copyAddress: "Copy address",
6305
+ copied: "Copied!",
6306
+ loading: "Loading...",
6307
+ loadingQRCode: "Loading QR Code...",
6308
+ noAddressAvailable: "No address available",
6309
+ noChainsAvailable: "No chains available for this token"
6310
+ },
6311
+ depositModal: {
6312
+ transferCrypto: {
6313
+ title: "Transfer Crypto",
6314
+ subtitle: "No limit \u2022 Instant"
6315
+ },
6316
+ depositWithCard: {
6317
+ title: "Deposit with Card",
6318
+ subtitle: "$50,000 limit \u2022 2 min"
6319
+ },
6320
+ quotes: "Quotes"
6321
+ },
6322
+ buyWithCard: {
6323
+ onramp: {
6324
+ completeTransaction: "Complete transaction with {{provider}}",
6325
+ canCloseModal: "You can close this modal.",
6326
+ youUse: "You use",
6327
+ youBuy: "You buy",
6328
+ youReceive: "You receive",
6329
+ intentAddressNote: "The wallet address displayed in the payment provider is a temporary deposit address. Your funds will be automatically converted and deposited into your account."
6330
+ }
6331
+ }
6332
+ };
6333
+ var i18n = en_default;
6161
6334
 
6162
6335
  // ../ui-react/dist/index.mjs
6163
6336
  import { jsx as jsx52, jsxs as jsxs32 } from "react/jsx-runtime";
@@ -6168,7 +6341,7 @@ import { useState as useState32 } from "react";
6168
6341
  import { Fragment as Fragment23, jsx as jsx82, jsxs as jsxs6 } from "react/jsx-runtime";
6169
6342
  import * as React38 from "react";
6170
6343
 
6171
- // ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3._paqmzknjxz7bmndehagaq3tw4m/node_modules/@radix-ui/react-select/dist/index.mjs
6344
+ // ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2.9_5n4syhs66qrtkkphe44qzgdimq/node_modules/@radix-ui/react-select/dist/index.mjs
6172
6345
  import * as React34 from "react";
6173
6346
  import * as ReactDOM4 from "react-dom";
6174
6347
 
@@ -6177,7 +6350,7 @@ function clamp(value, [min2, max2]) {
6177
6350
  return Math.min(max2, Math.max(min2, value));
6178
6351
  }
6179
6352
 
6180
- // ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@1_z3knhvmqmfpwh2up5z67ro7hte/node_modules/@radix-ui/react-collection/dist/index.mjs
6353
+ // ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19_532r4g3s7qk4zcqxxtldqwghxu/node_modules/@radix-ui/react-collection/dist/index.mjs
6181
6354
  import React25 from "react";
6182
6355
  import { jsx as jsx9 } from "react/jsx-runtime";
6183
6356
  import React26 from "react";
@@ -6245,7 +6418,7 @@ function createCollection(name) {
6245
6418
  ];
6246
6419
  }
6247
6420
 
6248
- // ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs
6421
+ // ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs
6249
6422
  import * as React27 from "react";
6250
6423
  import { jsx as jsx10 } from "react/jsx-runtime";
6251
6424
  var DirectionContext = React27.createContext(void 0);
@@ -6254,7 +6427,7 @@ function useDirection(localDir) {
6254
6427
  return localDir || globalDir || "ltr";
6255
6428
  }
6256
6429
 
6257
- // ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3._p4txy2d56fahetuxnqliciup5q/node_modules/@radix-ui/react-popper/dist/index.mjs
6430
+ // ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2.9_64rpffaf3sso2bzgb3su5jbaxm/node_modules/@radix-ui/react-popper/dist/index.mjs
6258
6431
  import * as React31 from "react";
6259
6432
 
6260
6433
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
@@ -8147,7 +8320,7 @@ var arrow3 = (options, deps) => ({
8147
8320
  options: [options, deps]
8148
8321
  });
8149
8322
 
8150
- // ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.7_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3.2_jmx3zqqqg4wfq7l2bjgl4svbuu/node_modules/@radix-ui/react-arrow/dist/index.mjs
8323
+ // ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2.9__3k7jfnq3g5zq63z6pm7q63bd4u/node_modules/@radix-ui/react-arrow/dist/index.mjs
8151
8324
  import * as React29 from "react";
8152
8325
  import { jsx as jsx11 } from "react/jsx-runtime";
8153
8326
  var NAME = "Arrow";
@@ -8169,7 +8342,7 @@ var Arrow = React29.forwardRef((props, forwardedRef) => {
8169
8342
  Arrow.displayName = NAME;
8170
8343
  var Root2 = Arrow;
8171
8344
 
8172
- // ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
8345
+ // ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
8173
8346
  import * as React30 from "react";
8174
8347
  function useSize(element) {
8175
8348
  const [size4, setSize] = React30.useState(void 0);
@@ -8206,7 +8379,7 @@ function useSize(element) {
8206
8379
  return size4;
8207
8380
  }
8208
8381
 
8209
- // ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3._p4txy2d56fahetuxnqliciup5q/node_modules/@radix-ui/react-popper/dist/index.mjs
8382
+ // ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2.9_64rpffaf3sso2bzgb3su5jbaxm/node_modules/@radix-ui/react-popper/dist/index.mjs
8210
8383
  import { jsx as jsx12 } from "react/jsx-runtime";
8211
8384
  var POPPER_NAME = "Popper";
8212
8385
  var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
@@ -8478,7 +8651,7 @@ var Anchor = PopperAnchor;
8478
8651
  var Content2 = PopperContent;
8479
8652
  var Arrow2 = PopperArrow;
8480
8653
 
8481
- // ../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs
8654
+ // ../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs
8482
8655
  import * as React32 from "react";
8483
8656
  function usePrevious(value) {
8484
8657
  const ref = React32.useRef({ value, previous: value });
@@ -8491,7 +8664,7 @@ function usePrevious(value) {
8491
8664
  }, [value]);
8492
8665
  }
8493
8666
 
8494
- // ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@18.3.7_@types+react@18.3.27__@types+re_x2sn5lgxbz6p23eskwwwehakyi/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
8667
+ // ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.9__@types+rea_wt7sdqfyqu7fggokpnlq4zaz2e/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
8495
8668
  import * as React33 from "react";
8496
8669
  import { jsx as jsx13 } from "react/jsx-runtime";
8497
8670
  var VISUALLY_HIDDEN_STYLES = Object.freeze({
@@ -8523,7 +8696,7 @@ var VisuallyHidden = React33.forwardRef(
8523
8696
  VisuallyHidden.displayName = NAME2;
8524
8697
  var Root3 = VisuallyHidden;
8525
8698
 
8526
- // ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3._paqmzknjxz7bmndehagaq3tw4m/node_modules/@radix-ui/react-select/dist/index.mjs
8699
+ // ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2.9_5n4syhs66qrtkkphe44qzgdimq/node_modules/@radix-ui/react-select/dist/index.mjs
8527
8700
  import { Fragment as Fragment6, jsx as jsx14, jsxs as jsxs2 } from "react/jsx-runtime";
8528
8701
  var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
8529
8702
  var SELECTION_KEYS = [" ", "Enter"];
@@ -9644,7 +9817,7 @@ function wrapArray(array, startIndex) {
9644
9817
  var Root23 = Select;
9645
9818
  var Trigger = SelectTrigger;
9646
9819
  var Value = SelectValue;
9647
- var Icon = SelectIcon;
9820
+ var Icon2 = SelectIcon;
9648
9821
  var Portal3 = SelectPortal;
9649
9822
  var Content22 = SelectContent;
9650
9823
  var Viewport = SelectViewport;
@@ -9660,7 +9833,7 @@ var Separator = SelectSeparator;
9660
9833
  import { jsx as jsx92, jsxs as jsxs7 } from "react/jsx-runtime";
9661
9834
  import * as React42 from "react";
9662
9835
 
9663
- // ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.8_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3_hd4qp76o7ebwsrfrhqb6isuuvy/node_modules/@radix-ui/react-tooltip/dist/index.mjs
9836
+ // ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2._aqltx4jspgwttwvtzmq3z5uagy/node_modules/@radix-ui/react-tooltip/dist/index.mjs
9664
9837
  import * as React35 from "react";
9665
9838
  import { jsx as jsx15, jsxs as jsxs3 } from "react/jsx-runtime";
9666
9839
  var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
@@ -10155,7 +10328,7 @@ import { Fragment as Fragment42, jsx as jsx20, jsxs as jsxs16 } from "react/jsx-
10155
10328
  import { jsx as jsx21 } from "react/jsx-runtime";
10156
10329
  import * as React52 from "react";
10157
10330
 
10158
- // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
10331
+ // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
10159
10332
  import * as React36 from "react";
10160
10333
  import { Fragment as Fragment22, jsx as jsx16 } from "react/jsx-runtime";
10161
10334
  var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
@@ -10873,7 +11046,7 @@ function DepositsModal({
10873
11046
  }
10874
11047
  };
10875
11048
  fetchExecutions();
10876
- const pollInterval = setInterval(fetchExecutions, 1e4);
11049
+ const pollInterval = setInterval(fetchExecutions, 3e3);
10877
11050
  return () => {
10878
11051
  clearInterval(pollInterval);
10879
11052
  };
@@ -11103,7 +11276,7 @@ var SelectTrigger2 = React38.forwardRef(({ className, children, ...props }, ref)
11103
11276
  ...props,
11104
11277
  children: [
11105
11278
  children,
11106
- /* @__PURE__ */ jsx92(Icon, { asChild: true, children: /* @__PURE__ */ jsx92(ChevronDown, { className: "uf-h-4 uf-w-4 uf-opacity-50" }) })
11279
+ /* @__PURE__ */ jsx92(Icon2, { asChild: true, children: /* @__PURE__ */ jsx92(ChevronDown, { className: "uf-h-4 uf-w-4 uf-opacity-50" }) })
11107
11280
  ]
11108
11281
  }
11109
11282
  ));
@@ -11180,7 +11353,7 @@ var SelectItem2 = React38.forwardRef(({ className, children, ...props }, ref) =>
11180
11353
  {
11181
11354
  ref,
11182
11355
  className: cn(
11183
- "uf-relative uf-flex uf-w-full uf-cursor-default uf-select-none uf-items-center uf-rounded-sm uf-py-1.5 uf-pl-8 uf-pr-2 uf-text-sm uf-text-foreground uf-outline-none focus:uf-bg-accent focus:uf-text-accent-foreground data-[disabled]:uf-pointer-events-none data-[disabled]:uf-opacity-50 hover:uf-bg-accent",
11356
+ "uf-relative uf-flex uf-w-full uf-cursor-default uf-select-none uf-items-center uf-rounded-sm uf-py-1.5 uf-pl-8 uf-pr-2 uf-text-sm uf-text-foreground uf-outline-none focus:uf-bg-accent focus:uf-text-accent-foreground data-[disabled]:uf-pointer-events-none data-[disabled]:uf-opacity-50 hover:uf-bg-accent [&>span]:uf-flex-1",
11184
11357
  className
11185
11358
  ),
11186
11359
  ...props,
@@ -11220,7 +11393,7 @@ var TooltipContent2 = React42.forwardRef(({ className, sideOffset = 4, ...props
11220
11393
  ) });
11221
11394
  });
11222
11395
  TooltipContent2.displayName = Content23.displayName;
11223
- var en_default = {
11396
+ var en_default2 = {
11224
11397
  transferCrypto: {
11225
11398
  priceImpact: {
11226
11399
  label: "Price impact",
@@ -11284,7 +11457,7 @@ var en_default = {
11284
11457
  }
11285
11458
  }
11286
11459
  };
11287
- var i18n2 = en_default;
11460
+ var i18n2 = en_default2;
11288
11461
  var t = i18n2.transferCrypto;
11289
11462
  var getChainKey = (chainId, chainType) => {
11290
11463
  return `${chainType}:${chainId}`;
@@ -11510,7 +11683,7 @@ function TransferCryptoBase({
11510
11683
  });
11511
11684
  }
11512
11685
  }
11513
- }, 5e3);
11686
+ }, 3e3);
11514
11687
  return () => clearInterval(pollInterval);
11515
11688
  }, [
11516
11689
  userId,
@@ -11568,20 +11741,26 @@ function TransferCryptoBase({
11568
11741
  showDetailedDropdowns && /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-text-muted-foreground", children: tokenData.name })
11569
11742
  ] });
11570
11743
  };
11571
- const renderChainItem = (chainData) => {
11572
- return /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11573
- /* @__PURE__ */ jsx112(
11574
- "img",
11575
- {
11576
- src: chainData.icon_url,
11577
- alt: chainData.chain_name,
11578
- width: 20,
11579
- height: 20,
11580
- className: "uf-rounded-full uf-flex-shrink-0"
11581
- }
11582
- ),
11583
- /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-normal", children: chainData.chain_name }),
11584
- showDetailedDropdowns && /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-text-muted-foreground uf-capitalize", children: chainData.chain_type })
11744
+ const renderChainItem = (chainData, showMinDeposit = false) => {
11745
+ return /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-justify-between uf-w-full", children: [
11746
+ /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11747
+ /* @__PURE__ */ jsx112(
11748
+ "img",
11749
+ {
11750
+ src: chainData.icon_url,
11751
+ alt: chainData.chain_name,
11752
+ width: 20,
11753
+ height: 20,
11754
+ className: "uf-rounded-full uf-flex-shrink-0"
11755
+ }
11756
+ ),
11757
+ /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-normal", children: chainData.chain_name }),
11758
+ showDetailedDropdowns && /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-text-muted-foreground uf-capitalize", children: chainData.chain_type })
11759
+ ] }),
11760
+ showMinDeposit && chainData.minimum_deposit_amount_usd && /* @__PURE__ */ jsxs8("span", { className: "uf-text-xs uf-text-amber-400 uf-font-medium", children: [
11761
+ "$",
11762
+ chainData.minimum_deposit_amount_usd
11763
+ ] })
11585
11764
  ] });
11586
11765
  };
11587
11766
  const selectContainerClass = layoutVariant === "horizontal" ? "uf-grid uf-grid-cols-2 uf-gap-2.5" : "uf-space-y-3";
@@ -11613,7 +11792,7 @@ function TransferCryptoBase({
11613
11792
  /* @__PURE__ */ jsxs8("div", { children: [
11614
11793
  /* @__PURE__ */ jsxs8("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: [
11615
11794
  t.supportedChain,
11616
- /* @__PURE__ */ jsxs8("span", { className: "uf-text-[10px]", children: [
11795
+ /* @__PURE__ */ jsxs8("span", { className: "uf-text-amber-400 uf-font-medium", children: [
11617
11796
  "$",
11618
11797
  minDepositUsd,
11619
11798
  " ",
@@ -11627,7 +11806,7 @@ function TransferCryptoBase({
11627
11806
  tabIndex: 0,
11628
11807
  role: "button",
11629
11808
  "aria-label": "Minimum deposit information",
11630
- children: /* @__PURE__ */ jsx112(Info, { className: "uf-w-3 uf-h-3" })
11809
+ children: /* @__PURE__ */ jsx112(Info, { className: "uf-w-4 uf-h-4" })
11631
11810
  }
11632
11811
  ) }),
11633
11812
  /* @__PURE__ */ jsx112(
@@ -11649,7 +11828,7 @@ function TransferCryptoBase({
11649
11828
  disabled: tokensLoading || availableChainsForToken.length === 0,
11650
11829
  children: [
11651
11830
  /* @__PURE__ */ jsx112(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ jsx112(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ jsx112("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t.loading }) }) : currentChainFromBackend ? renderChainItem(currentChainFromBackend) : currentChainData ? renderChainItem(currentChainData) : /* @__PURE__ */ jsx112("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-normal", children: chain }) }) }) }),
11652
- /* @__PURE__ */ jsx112(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", children: availableChainsForToken.length === 0 ? /* @__PURE__ */ jsx112("div", { className: "uf-px-2 uf-py-3 uf-text-xs uf-text-muted-foreground uf-text-center", children: t.noChainsAvailable }) : availableChainsForToken.map((chainData) => {
11831
+ /* @__PURE__ */ jsx112(SelectContent2, { align: "end", className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px] uf-min-w-[200px]", children: availableChainsForToken.length === 0 ? /* @__PURE__ */ jsx112("div", { className: "uf-px-2 uf-py-3 uf-text-xs uf-text-muted-foreground uf-text-center", children: t.noChainsAvailable }) : availableChainsForToken.map((chainData) => {
11653
11832
  const chainKey = getChainKey(
11654
11833
  chainData.chain_id,
11655
11834
  chainData.chain_type
@@ -11659,7 +11838,7 @@ function TransferCryptoBase({
11659
11838
  {
11660
11839
  value: chainKey,
11661
11840
  className: "focus:uf-bg-accent focus:uf-text-foreground",
11662
- children: renderChainItem(chainData)
11841
+ children: renderChainItem(chainData, true)
11663
11842
  },
11664
11843
  `${chainData.chain_id}-${chainData.chain_type}`
11665
11844
  );
@@ -12044,7 +12223,7 @@ function CurrencyModal({
12044
12223
  ] }) })
12045
12224
  ] }) });
12046
12225
  }
12047
- async function getIpViaIpApi() {
12226
+ async function getIpViaIpApi2() {
12048
12227
  const url = "https://ipapi.co/json";
12049
12228
  const response = await fetch(url);
12050
12229
  if (!response.ok) {
@@ -12065,7 +12244,7 @@ function useUserIp2() {
12065
12244
  queryKey: ["getUserIpInfo"],
12066
12245
  queryFn: async () => {
12067
12246
  try {
12068
- const ipApiData = await getIpViaIpApi();
12247
+ const ipApiData = await getIpViaIpApi2();
12069
12248
  console.log("IP detected via ipapi.co:", ipApiData);
12070
12249
  return ipApiData;
12071
12250
  } catch (ipApiError) {
@@ -12450,7 +12629,8 @@ function BuyWithCard({
12450
12629
  ] }) }),
12451
12630
  quotesLoading ? /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-justify-center", children: /* @__PURE__ */ jsx162("div", { className: "uf-h-4 uf-bg-muted uf-rounded uf-w-40 uf-animate-pulse" }) }) : /* @__PURE__ */ jsxs12("div", { className: "uf-text-sm uf-text-muted-foreground uf-font-normal", children: [
12452
12631
  calculateUSDC(),
12453
- " USDC (Perps)"
12632
+ " ",
12633
+ displayTokenSymbol
12454
12634
  ] })
12455
12635
  ] }),
12456
12636
  /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: QUICK_AMOUNTS.map((quickAmount) => /* @__PURE__ */ jsxs12(
@@ -12584,7 +12764,8 @@ function BuyWithCard({
12584
12764
  /* @__PURE__ */ jsxs12("div", { className: "uf-text-right", children: [
12585
12765
  /* @__PURE__ */ jsxs12("div", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: [
12586
12766
  quote.destination_amount.toFixed(2),
12587
- " USDC"
12767
+ " ",
12768
+ displayTokenSymbol
12588
12769
  ] }),
12589
12770
  /* @__PURE__ */ jsxs12("div", { className: "uf-text-xs uf-text-muted-foreground uf-font-normal", children: [
12590
12771
  currencySymbol,
@@ -13238,12 +13419,33 @@ function useUnifold2() {
13238
13419
  }
13239
13420
  export {
13240
13421
  Button,
13422
+ ExecutionStatus,
13423
+ SOLANA_USDC_ADDRESS,
13241
13424
  UnifoldProvider2 as UnifoldProvider,
13242
- useUnifold2 as useUnifold
13425
+ createDepositAddress,
13426
+ createMeldSession,
13427
+ getApiBaseUrl,
13428
+ getChainName,
13429
+ getFiatCurrencies,
13430
+ getIconUrl,
13431
+ getIconUrlWithCdn,
13432
+ getMeldQuotes,
13433
+ getPreferredIconUrl,
13434
+ getProjectConfig,
13435
+ getSupportedDepositTokens,
13436
+ getTokenChains,
13437
+ getWalletByChainType,
13438
+ i18n,
13439
+ queryExecutions,
13440
+ setApiConfig,
13441
+ useUnifold2 as useUnifold,
13442
+ useUserIp
13243
13443
  };
13244
13444
  /*! Bundled license information:
13245
13445
 
13446
+ lucide-react/dist/esm/shared/src/utils.js:
13246
13447
  lucide-react/dist/esm/defaultAttributes.js:
13448
+ lucide-react/dist/esm/Icon.js:
13247
13449
  lucide-react/dist/esm/createLucideIcon.js:
13248
13450
  lucide-react/dist/esm/icons/arrow-left.js:
13249
13451
  lucide-react/dist/esm/icons/check.js:
@@ -13262,7 +13464,7 @@ lucide-react/dist/esm/icons/x.js:
13262
13464
  lucide-react/dist/esm/icons/zap.js:
13263
13465
  lucide-react/dist/esm/lucide-react.js:
13264
13466
  (**
13265
- * @license lucide-react v0.294.0 - ISC
13467
+ * @license lucide-react v0.454.0 - ISC
13266
13468
  *
13267
13469
  * This source code is licensed under the ISC license.
13268
13470
  * See the LICENSE file in the root directory of this source tree.