@unifold/connect-react 0.1.12 → 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.js +239 -199
- package/dist/index.mjs +134 -94
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1178,7 +1178,7 @@ __export(index_exports, {
|
|
|
1178
1178
|
module.exports = __toCommonJS(index_exports);
|
|
1179
1179
|
|
|
1180
1180
|
// src/provider.tsx
|
|
1181
|
-
var
|
|
1181
|
+
var import_react16 = __toESM(require("react"));
|
|
1182
1182
|
|
|
1183
1183
|
// ../react-provider/dist/index.mjs
|
|
1184
1184
|
var import_react = require("react");
|
|
@@ -1244,12 +1244,21 @@ function useUnifold() {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
1246
|
// ../ui-react/dist/index.mjs
|
|
1247
|
-
var
|
|
1247
|
+
var import_react8 = require("react");
|
|
1248
|
+
|
|
1249
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
1250
|
+
var import_react3 = require("react");
|
|
1251
|
+
|
|
1252
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
1253
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1254
|
+
var mergeClasses = (...classes) => classes.filter((className, index2, array) => {
|
|
1255
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index2;
|
|
1256
|
+
}).join(" ").trim();
|
|
1248
1257
|
|
|
1249
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1258
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
|
1250
1259
|
var import_react2 = require("react");
|
|
1251
1260
|
|
|
1252
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1261
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
1253
1262
|
var defaultAttributes = {
|
|
1254
1263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1255
1264
|
width: 24,
|
|
@@ -1262,11 +1271,19 @@ var defaultAttributes = {
|
|
|
1262
1271
|
strokeLinejoin: "round"
|
|
1263
1272
|
};
|
|
1264
1273
|
|
|
1265
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1266
|
-
var
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1274
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
|
1275
|
+
var Icon = (0, import_react2.forwardRef)(
|
|
1276
|
+
({
|
|
1277
|
+
color = "currentColor",
|
|
1278
|
+
size: size4 = 24,
|
|
1279
|
+
strokeWidth = 2,
|
|
1280
|
+
absoluteStrokeWidth,
|
|
1281
|
+
className = "",
|
|
1282
|
+
children,
|
|
1283
|
+
iconNode,
|
|
1284
|
+
...rest
|
|
1285
|
+
}, ref) => {
|
|
1286
|
+
return (0, import_react2.createElement)(
|
|
1270
1287
|
"svg",
|
|
1271
1288
|
{
|
|
1272
1289
|
ref,
|
|
@@ -1275,112 +1292,133 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
|
1275
1292
|
height: size4,
|
|
1276
1293
|
stroke: color,
|
|
1277
1294
|
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size4) : strokeWidth,
|
|
1278
|
-
className:
|
|
1295
|
+
className: mergeClasses("lucide", className),
|
|
1279
1296
|
...rest
|
|
1280
1297
|
},
|
|
1281
1298
|
[
|
|
1282
1299
|
...iconNode.map(([tag, attrs]) => (0, import_react2.createElement)(tag, attrs)),
|
|
1283
1300
|
...Array.isArray(children) ? children : [children]
|
|
1284
1301
|
]
|
|
1285
|
-
)
|
|
1302
|
+
);
|
|
1303
|
+
}
|
|
1304
|
+
);
|
|
1305
|
+
|
|
1306
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
1307
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
1308
|
+
const Component = (0, import_react3.forwardRef)(
|
|
1309
|
+
({ className, ...props }, ref) => (0, import_react3.createElement)(Icon, {
|
|
1310
|
+
ref,
|
|
1311
|
+
iconNode,
|
|
1312
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
|
1313
|
+
...props
|
|
1314
|
+
})
|
|
1286
1315
|
);
|
|
1287
1316
|
Component.displayName = `${iconName}`;
|
|
1288
1317
|
return Component;
|
|
1289
1318
|
};
|
|
1290
1319
|
|
|
1291
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1320
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-left.js
|
|
1292
1321
|
var ArrowLeft = createLucideIcon("ArrowLeft", [
|
|
1293
1322
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
1294
1323
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
1295
1324
|
]);
|
|
1296
1325
|
|
|
1297
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1326
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/check.js
|
|
1298
1327
|
var Check = createLucideIcon("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
1299
1328
|
|
|
1300
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1329
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
1301
1330
|
var ChevronDown = createLucideIcon("ChevronDown", [
|
|
1302
1331
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
1303
1332
|
]);
|
|
1304
1333
|
|
|
1305
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1334
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-right.js
|
|
1306
1335
|
var ChevronRight = createLucideIcon("ChevronRight", [
|
|
1307
1336
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
1308
1337
|
]);
|
|
1309
1338
|
|
|
1310
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1339
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-up.js
|
|
1311
1340
|
var ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
|
|
1312
1341
|
|
|
1313
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1342
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/clock.js
|
|
1314
1343
|
var Clock = createLucideIcon("Clock", [
|
|
1315
1344
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1316
1345
|
["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
|
|
1317
1346
|
]);
|
|
1318
1347
|
|
|
1319
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1348
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/credit-card.js
|
|
1320
1349
|
var CreditCard = createLucideIcon("CreditCard", [
|
|
1321
1350
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
1322
1351
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
1323
1352
|
]);
|
|
1324
1353
|
|
|
1325
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1354
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dollar-sign.js
|
|
1326
1355
|
var DollarSign = createLucideIcon("DollarSign", [
|
|
1327
1356
|
["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
|
|
1328
1357
|
["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
|
|
1329
1358
|
]);
|
|
1330
1359
|
|
|
1331
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1360
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/external-link.js
|
|
1332
1361
|
var ExternalLink = createLucideIcon("ExternalLink", [
|
|
1333
|
-
["path", { d: "
|
|
1334
|
-
["
|
|
1335
|
-
["
|
|
1362
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
1363
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
1364
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
1336
1365
|
]);
|
|
1337
1366
|
|
|
1338
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1367
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/file-text.js
|
|
1339
1368
|
var FileText = createLucideIcon("FileText", [
|
|
1340
|
-
[
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
],
|
|
1344
|
-
["
|
|
1345
|
-
["line", { x1: "16", x2: "8", y1: "13", y2: "13", key: "14keom" }],
|
|
1346
|
-
["line", { x1: "16", x2: "8", y1: "17", y2: "17", key: "17nazh" }],
|
|
1347
|
-
["line", { x1: "10", x2: "8", y1: "9", y2: "9", key: "1a5vjj" }]
|
|
1369
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
1370
|
+
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
1371
|
+
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
1372
|
+
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
1373
|
+
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
1348
1374
|
]);
|
|
1349
1375
|
|
|
1350
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1376
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/info.js
|
|
1351
1377
|
var Info = createLucideIcon("Info", [
|
|
1352
1378
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1353
1379
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
1354
1380
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
1355
1381
|
]);
|
|
1356
1382
|
|
|
1357
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1383
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/search.js
|
|
1358
1384
|
var Search = createLucideIcon("Search", [
|
|
1359
1385
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
1360
1386
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
1361
1387
|
]);
|
|
1362
1388
|
|
|
1363
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1389
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/shield-check.js
|
|
1364
1390
|
var ShieldCheck = createLucideIcon("ShieldCheck", [
|
|
1365
|
-
[
|
|
1391
|
+
[
|
|
1392
|
+
"path",
|
|
1393
|
+
{
|
|
1394
|
+
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",
|
|
1395
|
+
key: "oel41y"
|
|
1396
|
+
}
|
|
1397
|
+
],
|
|
1366
1398
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
1367
1399
|
]);
|
|
1368
1400
|
|
|
1369
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1401
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.js
|
|
1370
1402
|
var X = createLucideIcon("X", [
|
|
1371
1403
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
1372
1404
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1373
1405
|
]);
|
|
1374
1406
|
|
|
1375
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
|
1407
|
+
// ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/zap.js
|
|
1376
1408
|
var Zap = createLucideIcon("Zap", [
|
|
1377
|
-
[
|
|
1409
|
+
[
|
|
1410
|
+
"path",
|
|
1411
|
+
{
|
|
1412
|
+
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",
|
|
1413
|
+
key: "1xq2db"
|
|
1414
|
+
}
|
|
1415
|
+
]
|
|
1378
1416
|
]);
|
|
1379
1417
|
|
|
1380
1418
|
// ../ui-react/dist/index.mjs
|
|
1381
1419
|
var React210 = __toESM(require("react"), 1);
|
|
1382
1420
|
|
|
1383
|
-
// ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@
|
|
1421
|
+
// ../../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
|
|
1384
1422
|
var React24 = __toESM(require("react"), 1);
|
|
1385
1423
|
|
|
1386
1424
|
// ../../node_modules/.pnpm/@radix-ui+primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
@@ -1394,7 +1432,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
1394
1432
|
};
|
|
1395
1433
|
}
|
|
1396
1434
|
|
|
1397
|
-
// ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@
|
|
1435
|
+
// ../../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
|
|
1398
1436
|
var React = __toESM(require("react"), 1);
|
|
1399
1437
|
function setRef(ref, value) {
|
|
1400
1438
|
if (typeof ref === "function") {
|
|
@@ -1431,7 +1469,7 @@ function useComposedRefs(...refs) {
|
|
|
1431
1469
|
return React.useCallback(composeRefs(...refs), refs);
|
|
1432
1470
|
}
|
|
1433
1471
|
|
|
1434
|
-
// ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@
|
|
1472
|
+
// ../../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
|
|
1435
1473
|
var React2 = __toESM(require("react"), 1);
|
|
1436
1474
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
1437
1475
|
function createContext22(rootComponentName, defaultContext) {
|
|
@@ -1508,15 +1546,15 @@ function composeContextScopes(...scopes) {
|
|
|
1508
1546
|
return createScope;
|
|
1509
1547
|
}
|
|
1510
1548
|
|
|
1511
|
-
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@
|
|
1549
|
+
// ../../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
|
|
1512
1550
|
var React4 = __toESM(require("react"), 1);
|
|
1513
1551
|
|
|
1514
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@
|
|
1552
|
+
// ../../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
|
|
1515
1553
|
var React3 = __toESM(require("react"), 1);
|
|
1516
1554
|
var useLayoutEffect2 = globalThis?.document ? React3.useLayoutEffect : () => {
|
|
1517
1555
|
};
|
|
1518
1556
|
|
|
1519
|
-
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@
|
|
1557
|
+
// ../../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
|
|
1520
1558
|
var useReactId = React4[" useId ".trim().toString()] || (() => void 0);
|
|
1521
1559
|
var count = 0;
|
|
1522
1560
|
function useId(deterministicId) {
|
|
@@ -1527,7 +1565,7 @@ function useId(deterministicId) {
|
|
|
1527
1565
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
1528
1566
|
}
|
|
1529
1567
|
|
|
1530
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@
|
|
1568
|
+
// ../../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
|
|
1531
1569
|
var React5 = __toESM(require("react"), 1);
|
|
1532
1570
|
var React22 = __toESM(require("react"), 1);
|
|
1533
1571
|
var useInsertionEffect = React5[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
@@ -1595,14 +1633,14 @@ function isFunction(value) {
|
|
|
1595
1633
|
return typeof value === "function";
|
|
1596
1634
|
}
|
|
1597
1635
|
|
|
1598
|
-
// ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@
|
|
1636
|
+
// ../../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
|
|
1599
1637
|
var React10 = __toESM(require("react"), 1);
|
|
1600
1638
|
|
|
1601
|
-
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@
|
|
1639
|
+
// ../../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
|
|
1602
1640
|
var React7 = __toESM(require("react"), 1);
|
|
1603
1641
|
var ReactDOM = __toESM(require("react-dom"), 1);
|
|
1604
1642
|
|
|
1605
|
-
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@
|
|
1643
|
+
// ../../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
|
|
1606
1644
|
var React6 = __toESM(require("react"), 1);
|
|
1607
1645
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1608
1646
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1697,7 +1735,7 @@ function getElementRef(element) {
|
|
|
1697
1735
|
return element.props.ref || element.ref;
|
|
1698
1736
|
}
|
|
1699
1737
|
|
|
1700
|
-
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@
|
|
1738
|
+
// ../../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
|
|
1701
1739
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1702
1740
|
var NODES = [
|
|
1703
1741
|
"a",
|
|
@@ -1735,7 +1773,7 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
1735
1773
|
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
1736
1774
|
}
|
|
1737
1775
|
|
|
1738
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@
|
|
1776
|
+
// ../../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
|
|
1739
1777
|
var React8 = __toESM(require("react"), 1);
|
|
1740
1778
|
function useCallbackRef(callback) {
|
|
1741
1779
|
const callbackRef = React8.useRef(callback);
|
|
@@ -1745,7 +1783,7 @@ function useCallbackRef(callback) {
|
|
|
1745
1783
|
return React8.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
1746
1784
|
}
|
|
1747
1785
|
|
|
1748
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@
|
|
1786
|
+
// ../../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
|
|
1749
1787
|
var React9 = __toESM(require("react"), 1);
|
|
1750
1788
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
|
|
1751
1789
|
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
|
@@ -1760,7 +1798,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
1760
1798
|
}, [onEscapeKeyDown, ownerDocument]);
|
|
1761
1799
|
}
|
|
1762
1800
|
|
|
1763
|
-
// ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@
|
|
1801
|
+
// ../../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
|
|
1764
1802
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1765
1803
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
1766
1804
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
@@ -1965,7 +2003,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
|
1965
2003
|
}
|
|
1966
2004
|
}
|
|
1967
2005
|
|
|
1968
|
-
// ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@
|
|
2006
|
+
// ../../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
|
|
1969
2007
|
var React11 = __toESM(require("react"), 1);
|
|
1970
2008
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1971
2009
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
@@ -2169,7 +2207,7 @@ function removeLinks(items) {
|
|
|
2169
2207
|
return items.filter((item) => item.tagName !== "A");
|
|
2170
2208
|
}
|
|
2171
2209
|
|
|
2172
|
-
// ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@
|
|
2210
|
+
// ../../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
|
|
2173
2211
|
var React12 = __toESM(require("react"), 1);
|
|
2174
2212
|
var import_react_dom = __toESM(require("react-dom"), 1);
|
|
2175
2213
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -2183,7 +2221,7 @@ var Portal = React12.forwardRef((props, forwardedRef) => {
|
|
|
2183
2221
|
});
|
|
2184
2222
|
Portal.displayName = PORTAL_NAME;
|
|
2185
2223
|
|
|
2186
|
-
// ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@
|
|
2224
|
+
// ../../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
|
|
2187
2225
|
var React23 = __toESM(require("react"), 1);
|
|
2188
2226
|
var React13 = __toESM(require("react"), 1);
|
|
2189
2227
|
function useStateMachine(initialState, machine) {
|
|
@@ -2309,7 +2347,7 @@ function getElementRef2(element) {
|
|
|
2309
2347
|
return element.props.ref || element.ref;
|
|
2310
2348
|
}
|
|
2311
2349
|
|
|
2312
|
-
// ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@
|
|
2350
|
+
// ../../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
|
|
2313
2351
|
var React14 = __toESM(require("react"), 1);
|
|
2314
2352
|
var count2 = 0;
|
|
2315
2353
|
function useFocusGuards() {
|
|
@@ -2369,19 +2407,19 @@ function __spreadArray(to, from, pack) {
|
|
|
2369
2407
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2370
2408
|
}
|
|
2371
2409
|
|
|
2372
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
2410
|
+
// ../../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
|
|
2373
2411
|
var React21 = __toESM(require("react"));
|
|
2374
2412
|
|
|
2375
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
2413
|
+
// ../../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
|
|
2376
2414
|
var React17 = __toESM(require("react"));
|
|
2377
2415
|
|
|
2378
|
-
// ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@
|
|
2416
|
+
// ../../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
|
|
2379
2417
|
var zeroRightClassName = "right-scroll-bar-position";
|
|
2380
2418
|
var fullWidthClassName = "width-before-scroll-bar";
|
|
2381
2419
|
var noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
2382
2420
|
var removedBarSizeVariable = "--removed-body-scroll-bar-size";
|
|
2383
2421
|
|
|
2384
|
-
// ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@
|
|
2422
|
+
// ../../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
|
|
2385
2423
|
function assignRef(ref, value) {
|
|
2386
2424
|
if (typeof ref === "function") {
|
|
2387
2425
|
ref(value);
|
|
@@ -2391,10 +2429,10 @@ function assignRef(ref, value) {
|
|
|
2391
2429
|
return ref;
|
|
2392
2430
|
}
|
|
2393
2431
|
|
|
2394
|
-
// ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@
|
|
2395
|
-
var
|
|
2432
|
+
// ../../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
|
|
2433
|
+
var import_react4 = require("react");
|
|
2396
2434
|
function useCallbackRef2(initialValue, callback) {
|
|
2397
|
-
var ref = (0,
|
|
2435
|
+
var ref = (0, import_react4.useState)(function() {
|
|
2398
2436
|
return {
|
|
2399
2437
|
// value
|
|
2400
2438
|
value: initialValue,
|
|
@@ -2419,7 +2457,7 @@ function useCallbackRef2(initialValue, callback) {
|
|
|
2419
2457
|
return ref.facade;
|
|
2420
2458
|
}
|
|
2421
2459
|
|
|
2422
|
-
// ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@
|
|
2460
|
+
// ../../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
|
|
2423
2461
|
var React15 = __toESM(require("react"));
|
|
2424
2462
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React15.useLayoutEffect : React15.useEffect;
|
|
2425
2463
|
var currentValues = /* @__PURE__ */ new WeakMap();
|
|
@@ -2451,7 +2489,7 @@ function useMergeRefs(refs, defaultValue) {
|
|
|
2451
2489
|
return callbackRef;
|
|
2452
2490
|
}
|
|
2453
2491
|
|
|
2454
|
-
// ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@
|
|
2492
|
+
// ../../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
|
|
2455
2493
|
function ItoI(a) {
|
|
2456
2494
|
return a;
|
|
2457
2495
|
}
|
|
@@ -2537,7 +2575,7 @@ function createSidecarMedium(options) {
|
|
|
2537
2575
|
return medium;
|
|
2538
2576
|
}
|
|
2539
2577
|
|
|
2540
|
-
// ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@
|
|
2578
|
+
// ../../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
|
|
2541
2579
|
var React16 = __toESM(require("react"));
|
|
2542
2580
|
var SideCar = function(_a) {
|
|
2543
2581
|
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
@@ -2556,10 +2594,10 @@ function exportSidecar(medium, exported) {
|
|
|
2556
2594
|
return SideCar;
|
|
2557
2595
|
}
|
|
2558
2596
|
|
|
2559
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
2597
|
+
// ../../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
|
|
2560
2598
|
var effectCar = createSidecarMedium();
|
|
2561
2599
|
|
|
2562
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
2600
|
+
// ../../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
|
|
2563
2601
|
var nothing = function() {
|
|
2564
2602
|
return;
|
|
2565
2603
|
};
|
|
@@ -2591,13 +2629,13 @@ RemoveScroll.classNames = {
|
|
|
2591
2629
|
zeroRight: zeroRightClassName
|
|
2592
2630
|
};
|
|
2593
2631
|
|
|
2594
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
2632
|
+
// ../../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
|
|
2595
2633
|
var React20 = __toESM(require("react"));
|
|
2596
2634
|
|
|
2597
|
-
// ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@
|
|
2635
|
+
// ../../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
|
|
2598
2636
|
var React19 = __toESM(require("react"));
|
|
2599
2637
|
|
|
2600
|
-
// ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@
|
|
2638
|
+
// ../../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
|
|
2601
2639
|
var React18 = __toESM(require("react"));
|
|
2602
2640
|
|
|
2603
2641
|
// ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
@@ -2612,7 +2650,7 @@ var getNonce = function() {
|
|
|
2612
2650
|
return void 0;
|
|
2613
2651
|
};
|
|
2614
2652
|
|
|
2615
|
-
// ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@
|
|
2653
|
+
// ../../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
|
|
2616
2654
|
function makeStyleTag() {
|
|
2617
2655
|
if (!document)
|
|
2618
2656
|
return null;
|
|
@@ -2658,7 +2696,7 @@ var stylesheetSingleton = function() {
|
|
|
2658
2696
|
};
|
|
2659
2697
|
};
|
|
2660
2698
|
|
|
2661
|
-
// ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@
|
|
2699
|
+
// ../../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
|
|
2662
2700
|
var styleHookSingleton = function() {
|
|
2663
2701
|
var sheet = stylesheetSingleton();
|
|
2664
2702
|
return function(styles, isDynamic) {
|
|
@@ -2671,7 +2709,7 @@ var styleHookSingleton = function() {
|
|
|
2671
2709
|
};
|
|
2672
2710
|
};
|
|
2673
2711
|
|
|
2674
|
-
// ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@
|
|
2712
|
+
// ../../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
|
|
2675
2713
|
var styleSingleton = function() {
|
|
2676
2714
|
var useStyle = styleHookSingleton();
|
|
2677
2715
|
var Sheet = function(_a) {
|
|
@@ -2682,7 +2720,7 @@ var styleSingleton = function() {
|
|
|
2682
2720
|
return Sheet;
|
|
2683
2721
|
};
|
|
2684
2722
|
|
|
2685
|
-
// ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@
|
|
2723
|
+
// ../../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
|
|
2686
2724
|
var zeroGap = {
|
|
2687
2725
|
left: 0,
|
|
2688
2726
|
top: 0,
|
|
@@ -2717,7 +2755,7 @@ var getGapWidth = function(gapMode) {
|
|
|
2717
2755
|
};
|
|
2718
2756
|
};
|
|
2719
2757
|
|
|
2720
|
-
// ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@
|
|
2758
|
+
// ../../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
|
|
2721
2759
|
var Style = styleSingleton();
|
|
2722
2760
|
var lockAttribute = "data-scroll-locked";
|
|
2723
2761
|
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
@@ -2757,7 +2795,7 @@ var RemoveScrollBar = function(_a) {
|
|
|
2757
2795
|
return React19.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
|
|
2758
2796
|
};
|
|
2759
2797
|
|
|
2760
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
2798
|
+
// ../../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
|
|
2761
2799
|
var passiveSupported = false;
|
|
2762
2800
|
if (typeof window !== "undefined") {
|
|
2763
2801
|
try {
|
|
@@ -2776,7 +2814,7 @@ if (typeof window !== "undefined") {
|
|
|
2776
2814
|
var options;
|
|
2777
2815
|
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
2778
2816
|
|
|
2779
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
2817
|
+
// ../../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
|
|
2780
2818
|
var alwaysContainsScroll = function(node) {
|
|
2781
2819
|
return node.tagName === "TEXTAREA";
|
|
2782
2820
|
};
|
|
@@ -2876,7 +2914,7 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
2876
2914
|
return shouldCancelScroll;
|
|
2877
2915
|
};
|
|
2878
2916
|
|
|
2879
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
2917
|
+
// ../../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
|
|
2880
2918
|
var getTouchXY = function(event) {
|
|
2881
2919
|
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
2882
2920
|
};
|
|
@@ -3047,10 +3085,10 @@ function getOutermostShadowParent(node) {
|
|
|
3047
3085
|
return shadowParent;
|
|
3048
3086
|
}
|
|
3049
3087
|
|
|
3050
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
3088
|
+
// ../../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
|
|
3051
3089
|
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
3052
3090
|
|
|
3053
|
-
// ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@
|
|
3091
|
+
// ../../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
|
|
3054
3092
|
var ReactRemoveScroll = React21.forwardRef(function(props, ref) {
|
|
3055
3093
|
return React21.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
|
|
3056
3094
|
});
|
|
@@ -3178,7 +3216,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
3178
3216
|
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
3179
3217
|
};
|
|
3180
3218
|
|
|
3181
|
-
// ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@
|
|
3219
|
+
// ../../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
|
|
3182
3220
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
3183
3221
|
var DIALOG_NAME = "Dialog";
|
|
3184
3222
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
@@ -5961,11 +5999,11 @@ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
|
5961
5999
|
var React37 = __toESM(require("react"), 1);
|
|
5962
6000
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
5963
6001
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
5964
|
-
var import_react8 = require("react");
|
|
5965
6002
|
var import_react9 = require("react");
|
|
6003
|
+
var import_react10 = require("react");
|
|
5966
6004
|
var import_qr_code_styling = __toESM(require_qr_code_styling(), 1);
|
|
5967
6005
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
5968
|
-
var
|
|
6006
|
+
var import_react11 = require("react");
|
|
5969
6007
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
5970
6008
|
|
|
5971
6009
|
// ../core/dist/index.mjs
|
|
@@ -6319,14 +6357,14 @@ var i18n = en_default;
|
|
|
6319
6357
|
|
|
6320
6358
|
// ../ui-react/dist/index.mjs
|
|
6321
6359
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
6322
|
-
var
|
|
6360
|
+
var import_react12 = require("react");
|
|
6323
6361
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
6324
6362
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
6325
|
-
var
|
|
6363
|
+
var import_react13 = require("react");
|
|
6326
6364
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
6327
6365
|
var React38 = __toESM(require("react"), 1);
|
|
6328
6366
|
|
|
6329
|
-
// ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@
|
|
6367
|
+
// ../../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
|
|
6330
6368
|
var React34 = __toESM(require("react"), 1);
|
|
6331
6369
|
var ReactDOM4 = __toESM(require("react-dom"), 1);
|
|
6332
6370
|
|
|
@@ -6335,10 +6373,10 @@ function clamp(value, [min2, max2]) {
|
|
|
6335
6373
|
return Math.min(max2, Math.max(min2, value));
|
|
6336
6374
|
}
|
|
6337
6375
|
|
|
6338
|
-
// ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@
|
|
6339
|
-
var import_react4 = __toESM(require("react"), 1);
|
|
6340
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
6376
|
+
// ../../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
|
|
6341
6377
|
var import_react5 = __toESM(require("react"), 1);
|
|
6378
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
6379
|
+
var import_react6 = __toESM(require("react"), 1);
|
|
6342
6380
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
6343
6381
|
function createCollection(name) {
|
|
6344
6382
|
const PROVIDER_NAME2 = name + "CollectionProvider";
|
|
@@ -6349,14 +6387,14 @@ function createCollection(name) {
|
|
|
6349
6387
|
);
|
|
6350
6388
|
const CollectionProvider = (props) => {
|
|
6351
6389
|
const { scope, children } = props;
|
|
6352
|
-
const ref =
|
|
6353
|
-
const itemMap =
|
|
6390
|
+
const ref = import_react5.default.useRef(null);
|
|
6391
|
+
const itemMap = import_react5.default.useRef(/* @__PURE__ */ new Map()).current;
|
|
6354
6392
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
6355
6393
|
};
|
|
6356
6394
|
CollectionProvider.displayName = PROVIDER_NAME2;
|
|
6357
6395
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
6358
6396
|
const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
|
|
6359
|
-
const CollectionSlot =
|
|
6397
|
+
const CollectionSlot = import_react5.default.forwardRef(
|
|
6360
6398
|
(props, forwardedRef) => {
|
|
6361
6399
|
const { scope, children } = props;
|
|
6362
6400
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
@@ -6368,13 +6406,13 @@ function createCollection(name) {
|
|
|
6368
6406
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
6369
6407
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
6370
6408
|
const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
|
|
6371
|
-
const CollectionItemSlot =
|
|
6409
|
+
const CollectionItemSlot = import_react5.default.forwardRef(
|
|
6372
6410
|
(props, forwardedRef) => {
|
|
6373
6411
|
const { scope, children, ...itemData } = props;
|
|
6374
|
-
const ref =
|
|
6412
|
+
const ref = import_react5.default.useRef(null);
|
|
6375
6413
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
6376
6414
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
6377
|
-
|
|
6415
|
+
import_react5.default.useEffect(() => {
|
|
6378
6416
|
context.itemMap.set(ref, { ref, ...itemData });
|
|
6379
6417
|
return () => void context.itemMap.delete(ref);
|
|
6380
6418
|
});
|
|
@@ -6384,7 +6422,7 @@ function createCollection(name) {
|
|
|
6384
6422
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
6385
6423
|
function useCollection2(scope) {
|
|
6386
6424
|
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
6387
|
-
const getItems =
|
|
6425
|
+
const getItems = import_react5.default.useCallback(() => {
|
|
6388
6426
|
const collectionNode = context.collectionRef.current;
|
|
6389
6427
|
if (!collectionNode) return [];
|
|
6390
6428
|
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
@@ -6403,7 +6441,7 @@ function createCollection(name) {
|
|
|
6403
6441
|
];
|
|
6404
6442
|
}
|
|
6405
6443
|
|
|
6406
|
-
// ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@
|
|
6444
|
+
// ../../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
|
|
6407
6445
|
var React27 = __toESM(require("react"), 1);
|
|
6408
6446
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
6409
6447
|
var DirectionContext = React27.createContext(void 0);
|
|
@@ -6412,7 +6450,7 @@ function useDirection(localDir) {
|
|
|
6412
6450
|
return localDir || globalDir || "ltr";
|
|
6413
6451
|
}
|
|
6414
6452
|
|
|
6415
|
-
// ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@
|
|
6453
|
+
// ../../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
|
|
6416
6454
|
var React31 = __toESM(require("react"), 1);
|
|
6417
6455
|
|
|
6418
6456
|
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
@@ -8023,12 +8061,12 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
8023
8061
|
|
|
8024
8062
|
// ../../node_modules/.pnpm/@floating-ui+react-dom@2.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
8025
8063
|
var React28 = __toESM(require("react"), 1);
|
|
8026
|
-
var
|
|
8064
|
+
var import_react7 = require("react");
|
|
8027
8065
|
var ReactDOM3 = __toESM(require("react-dom"), 1);
|
|
8028
8066
|
var isClient = typeof document !== "undefined";
|
|
8029
8067
|
var noop = function noop2() {
|
|
8030
8068
|
};
|
|
8031
|
-
var index = isClient ?
|
|
8069
|
+
var index = isClient ? import_react7.useLayoutEffect : noop;
|
|
8032
8070
|
function deepEqual(a, b) {
|
|
8033
8071
|
if (a === b) {
|
|
8034
8072
|
return true;
|
|
@@ -8305,7 +8343,7 @@ var arrow3 = (options, deps) => ({
|
|
|
8305
8343
|
options: [options, deps]
|
|
8306
8344
|
});
|
|
8307
8345
|
|
|
8308
|
-
// ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.7_@types+react-dom@
|
|
8346
|
+
// ../../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
|
|
8309
8347
|
var React29 = __toESM(require("react"), 1);
|
|
8310
8348
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
8311
8349
|
var NAME = "Arrow";
|
|
@@ -8327,7 +8365,7 @@ var Arrow = React29.forwardRef((props, forwardedRef) => {
|
|
|
8327
8365
|
Arrow.displayName = NAME;
|
|
8328
8366
|
var Root2 = Arrow;
|
|
8329
8367
|
|
|
8330
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@
|
|
8368
|
+
// ../../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
|
|
8331
8369
|
var React30 = __toESM(require("react"), 1);
|
|
8332
8370
|
function useSize(element) {
|
|
8333
8371
|
const [size4, setSize] = React30.useState(void 0);
|
|
@@ -8364,7 +8402,7 @@ function useSize(element) {
|
|
|
8364
8402
|
return size4;
|
|
8365
8403
|
}
|
|
8366
8404
|
|
|
8367
|
-
// ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@
|
|
8405
|
+
// ../../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
|
|
8368
8406
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
8369
8407
|
var POPPER_NAME = "Popper";
|
|
8370
8408
|
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
@@ -8636,7 +8674,7 @@ var Anchor = PopperAnchor;
|
|
|
8636
8674
|
var Content2 = PopperContent;
|
|
8637
8675
|
var Arrow2 = PopperArrow;
|
|
8638
8676
|
|
|
8639
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@
|
|
8677
|
+
// ../../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
|
|
8640
8678
|
var React32 = __toESM(require("react"), 1);
|
|
8641
8679
|
function usePrevious(value) {
|
|
8642
8680
|
const ref = React32.useRef({ value, previous: value });
|
|
@@ -8649,7 +8687,7 @@ function usePrevious(value) {
|
|
|
8649
8687
|
}, [value]);
|
|
8650
8688
|
}
|
|
8651
8689
|
|
|
8652
|
-
// ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@
|
|
8690
|
+
// ../../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
|
|
8653
8691
|
var React33 = __toESM(require("react"), 1);
|
|
8654
8692
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
8655
8693
|
var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
@@ -8681,7 +8719,7 @@ var VisuallyHidden = React33.forwardRef(
|
|
|
8681
8719
|
VisuallyHidden.displayName = NAME2;
|
|
8682
8720
|
var Root3 = VisuallyHidden;
|
|
8683
8721
|
|
|
8684
|
-
// ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@
|
|
8722
|
+
// ../../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
|
|
8685
8723
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
8686
8724
|
var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
|
|
8687
8725
|
var SELECTION_KEYS = [" ", "Enter"];
|
|
@@ -9802,7 +9840,7 @@ function wrapArray(array, startIndex) {
|
|
|
9802
9840
|
var Root23 = Select;
|
|
9803
9841
|
var Trigger = SelectTrigger;
|
|
9804
9842
|
var Value = SelectValue;
|
|
9805
|
-
var
|
|
9843
|
+
var Icon2 = SelectIcon;
|
|
9806
9844
|
var Portal3 = SelectPortal;
|
|
9807
9845
|
var Content22 = SelectContent;
|
|
9808
9846
|
var Viewport = SelectViewport;
|
|
@@ -9818,7 +9856,7 @@ var Separator = SelectSeparator;
|
|
|
9818
9856
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
9819
9857
|
var React42 = __toESM(require("react"), 1);
|
|
9820
9858
|
|
|
9821
|
-
// ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.8_@types+react-dom@
|
|
9859
|
+
// ../../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
|
|
9822
9860
|
var React35 = __toESM(require("react"), 1);
|
|
9823
9861
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
9824
9862
|
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
@@ -10299,8 +10337,8 @@ var Content23 = TooltipContent;
|
|
|
10299
10337
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
10300
10338
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
10301
10339
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
10302
|
-
var import_react13 = require("react");
|
|
10303
10340
|
var import_react14 = require("react");
|
|
10341
|
+
var import_react15 = require("react");
|
|
10304
10342
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
10305
10343
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
10306
10344
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
@@ -10313,7 +10351,7 @@ var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
|
10313
10351
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
10314
10352
|
var React52 = __toESM(require("react"), 1);
|
|
10315
10353
|
|
|
10316
|
-
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@
|
|
10354
|
+
// ../../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
|
|
10317
10355
|
var React36 = __toESM(require("react"), 1);
|
|
10318
10356
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
10319
10357
|
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
@@ -10584,9 +10622,9 @@ function StyledQRCode({
|
|
|
10584
10622
|
imageSize = 50,
|
|
10585
10623
|
darkMode = false
|
|
10586
10624
|
}) {
|
|
10587
|
-
const ref = (0,
|
|
10588
|
-
const qrCodeRef = (0,
|
|
10589
|
-
(0,
|
|
10625
|
+
const ref = (0, import_react10.useRef)(null);
|
|
10626
|
+
const qrCodeRef = (0, import_react10.useRef)(null);
|
|
10627
|
+
(0, import_react10.useEffect)(() => {
|
|
10590
10628
|
if (!ref.current) return;
|
|
10591
10629
|
if (!qrCodeRef.current) {
|
|
10592
10630
|
qrCodeRef.current = new import_qr_code_styling.default({
|
|
@@ -10626,7 +10664,7 @@ function StyledQRCode({
|
|
|
10626
10664
|
qrCodeRef.current.append(ref.current);
|
|
10627
10665
|
}
|
|
10628
10666
|
}, []);
|
|
10629
|
-
(0,
|
|
10667
|
+
(0, import_react10.useEffect)(() => {
|
|
10630
10668
|
if (qrCodeRef.current) {
|
|
10631
10669
|
qrCodeRef.current.update({
|
|
10632
10670
|
data: value,
|
|
@@ -10797,12 +10835,12 @@ function formatCurrency(currency) {
|
|
|
10797
10835
|
return currency.slice(0, dotIndex).toUpperCase() + currency.slice(dotIndex);
|
|
10798
10836
|
}
|
|
10799
10837
|
function DepositDetailContent({ execution }) {
|
|
10800
|
-
const [chains, setChains] = (0,
|
|
10801
|
-
const [showNetworkDetails, setShowNetworkDetails] = (0,
|
|
10802
|
-
(0,
|
|
10838
|
+
const [chains, setChains] = (0, import_react12.useState)([]);
|
|
10839
|
+
const [showNetworkDetails, setShowNetworkDetails] = (0, import_react12.useState)(false);
|
|
10840
|
+
(0, import_react12.useEffect)(() => {
|
|
10803
10841
|
getTokenChains().then((response) => setChains(response.data)).catch((err) => console.error("Failed to fetch chains:", err));
|
|
10804
10842
|
}, []);
|
|
10805
|
-
(0,
|
|
10843
|
+
(0, import_react12.useEffect)(() => {
|
|
10806
10844
|
setShowNetworkDetails(false);
|
|
10807
10845
|
}, [execution?.id]);
|
|
10808
10846
|
const isPending = execution.status === ExecutionStatus.PENDING || execution.status === ExecutionStatus.WAITING || execution.status === ExecutionStatus.DELAYED;
|
|
@@ -11012,9 +11050,9 @@ function DepositsModal({
|
|
|
11012
11050
|
publishableKey,
|
|
11013
11051
|
themeClass = ""
|
|
11014
11052
|
}) {
|
|
11015
|
-
const [allExecutions, setAllExecutions] = (0,
|
|
11016
|
-
const [selectedExecution, setSelectedExecution] = (0,
|
|
11017
|
-
(0,
|
|
11053
|
+
const [allExecutions, setAllExecutions] = (0, import_react11.useState)(sessionExecutions);
|
|
11054
|
+
const [selectedExecution, setSelectedExecution] = (0, import_react11.useState)(null);
|
|
11055
|
+
(0, import_react11.useEffect)(() => {
|
|
11018
11056
|
if (!open || !userId) return;
|
|
11019
11057
|
const fetchExecutions = async () => {
|
|
11020
11058
|
try {
|
|
@@ -11036,7 +11074,7 @@ function DepositsModal({
|
|
|
11036
11074
|
clearInterval(pollInterval);
|
|
11037
11075
|
};
|
|
11038
11076
|
}, [open, userId, publishableKey, sessionExecutions]);
|
|
11039
|
-
(0,
|
|
11077
|
+
(0, import_react11.useEffect)(() => {
|
|
11040
11078
|
if (!open) {
|
|
11041
11079
|
setSelectedExecution(null);
|
|
11042
11080
|
}
|
|
@@ -11095,7 +11133,7 @@ function DepositSuccessToast({
|
|
|
11095
11133
|
onClose,
|
|
11096
11134
|
execution
|
|
11097
11135
|
}) {
|
|
11098
|
-
const [detailModalOpen, setDetailModalOpen] = (0,
|
|
11136
|
+
const [detailModalOpen, setDetailModalOpen] = (0, import_react13.useState)(false);
|
|
11099
11137
|
const { themeClass } = useTheme();
|
|
11100
11138
|
const isPending = status === ExecutionStatus.PENDING || status === ExecutionStatus.WAITING || status === ExecutionStatus.DELAYED;
|
|
11101
11139
|
const formatDateTime = (timestamp) => {
|
|
@@ -11261,7 +11299,7 @@ var SelectTrigger2 = React38.forwardRef(({ className, children, ...props }, ref)
|
|
|
11261
11299
|
...props,
|
|
11262
11300
|
children: [
|
|
11263
11301
|
children,
|
|
11264
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
11302
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChevronDown, { className: "uf-h-4 uf-w-4 uf-opacity-50" }) })
|
|
11265
11303
|
]
|
|
11266
11304
|
}
|
|
11267
11305
|
));
|
|
@@ -11467,20 +11505,20 @@ function TransferCryptoBase({
|
|
|
11467
11505
|
}) {
|
|
11468
11506
|
const { themeClass } = useTheme();
|
|
11469
11507
|
const isDarkMode = themeClass.includes("uf-dark");
|
|
11470
|
-
const [token, setToken] = (0,
|
|
11471
|
-
const [chain, setChain] = (0,
|
|
11472
|
-
const [copied, setCopied] = (0,
|
|
11473
|
-
const [internalWallets, setInternalWallets] = (0,
|
|
11474
|
-
const [loading, setLoading] = (0,
|
|
11508
|
+
const [token, setToken] = (0, import_react9.useState)("USDC");
|
|
11509
|
+
const [chain, setChain] = (0, import_react9.useState)("solana:mainnet");
|
|
11510
|
+
const [copied, setCopied] = (0, import_react9.useState)(false);
|
|
11511
|
+
const [internalWallets, setInternalWallets] = (0, import_react9.useState)([]);
|
|
11512
|
+
const [loading, setLoading] = (0, import_react9.useState)(!externalWallets?.length);
|
|
11475
11513
|
const wallets = externalWallets?.length ? externalWallets : internalWallets;
|
|
11476
|
-
const [error, setError] = (0,
|
|
11477
|
-
const [depositExecutions, setDepositExecutions] = (0,
|
|
11478
|
-
const [trackedExecutions, setTrackedExecutions] = (0,
|
|
11479
|
-
const [modalOpenedAt, setModalOpenedAt] = (0,
|
|
11480
|
-
const [supportedTokens, setSupportedTokens] = (0,
|
|
11481
|
-
const [tokensLoading, setTokensLoading] = (0,
|
|
11482
|
-
const [detailsExpanded, setDetailsExpanded] = (0,
|
|
11483
|
-
const [depositsModalOpen, setDepositsModalOpen] = (0,
|
|
11514
|
+
const [error, setError] = (0, import_react9.useState)(null);
|
|
11515
|
+
const [depositExecutions, setDepositExecutions] = (0, import_react9.useState)([]);
|
|
11516
|
+
const [trackedExecutions, setTrackedExecutions] = (0, import_react9.useState)(/* @__PURE__ */ new Map());
|
|
11517
|
+
const [modalOpenedAt, setModalOpenedAt] = (0, import_react9.useState)(null);
|
|
11518
|
+
const [supportedTokens, setSupportedTokens] = (0, import_react9.useState)([]);
|
|
11519
|
+
const [tokensLoading, setTokensLoading] = (0, import_react9.useState)(true);
|
|
11520
|
+
const [detailsExpanded, setDetailsExpanded] = (0, import_react9.useState)(false);
|
|
11521
|
+
const [depositsModalOpen, setDepositsModalOpen] = (0, import_react9.useState)(false);
|
|
11484
11522
|
const allChainsMap = /* @__PURE__ */ new Map();
|
|
11485
11523
|
supportedTokens.forEach((t4) => {
|
|
11486
11524
|
t4.chains.forEach((c) => {
|
|
@@ -11498,10 +11536,10 @@ function TransferCryptoBase({
|
|
|
11498
11536
|
const currentChainType = currentChainData?.chain_type || "ethereum";
|
|
11499
11537
|
const currentWallet = getWalletByChainType(wallets, currentChainType);
|
|
11500
11538
|
const depositAddress = currentWallet?.address || "";
|
|
11501
|
-
(0,
|
|
11539
|
+
(0, import_react9.useEffect)(() => {
|
|
11502
11540
|
setModalOpenedAt(/* @__PURE__ */ new Date());
|
|
11503
11541
|
}, []);
|
|
11504
|
-
(0,
|
|
11542
|
+
(0, import_react9.useEffect)(() => {
|
|
11505
11543
|
async function fetchSupportedTokens() {
|
|
11506
11544
|
try {
|
|
11507
11545
|
setTokensLoading(true);
|
|
@@ -11530,12 +11568,12 @@ function TransferCryptoBase({
|
|
|
11530
11568
|
}
|
|
11531
11569
|
fetchSupportedTokens();
|
|
11532
11570
|
}, [publishableKey, chain]);
|
|
11533
|
-
(0,
|
|
11571
|
+
(0, import_react9.useEffect)(() => {
|
|
11534
11572
|
if (onExecutionsChange) {
|
|
11535
11573
|
onExecutionsChange(depositExecutions);
|
|
11536
11574
|
}
|
|
11537
11575
|
}, [depositExecutions, onExecutionsChange]);
|
|
11538
|
-
(0,
|
|
11576
|
+
(0, import_react9.useEffect)(() => {
|
|
11539
11577
|
if (externalWallets?.length) {
|
|
11540
11578
|
setLoading(false);
|
|
11541
11579
|
return;
|
|
@@ -11590,7 +11628,7 @@ function TransferCryptoBase({
|
|
|
11590
11628
|
publishableKey,
|
|
11591
11629
|
externalWallets
|
|
11592
11630
|
]);
|
|
11593
|
-
(0,
|
|
11631
|
+
(0, import_react9.useEffect)(() => {
|
|
11594
11632
|
if (!supportedTokens.length) return;
|
|
11595
11633
|
const currentToken = supportedTokens.find((t4) => t4.symbol === token);
|
|
11596
11634
|
if (!currentToken || currentToken.chains.length === 0) return;
|
|
@@ -11604,7 +11642,7 @@ function TransferCryptoBase({
|
|
|
11604
11642
|
setChain(newChain);
|
|
11605
11643
|
}
|
|
11606
11644
|
}, [token, supportedTokens, chain]);
|
|
11607
|
-
(0,
|
|
11645
|
+
(0, import_react9.useEffect)(() => {
|
|
11608
11646
|
if (!userId || !modalOpenedAt) return;
|
|
11609
11647
|
const pollInterval = setInterval(async () => {
|
|
11610
11648
|
try {
|
|
@@ -12134,7 +12172,7 @@ function CurrencyModal({
|
|
|
12134
12172
|
onSelectCurrency,
|
|
12135
12173
|
themeClass = ""
|
|
12136
12174
|
}) {
|
|
12137
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
12175
|
+
const [searchQuery, setSearchQuery] = (0, import_react15.useState)("");
|
|
12138
12176
|
const preferredCurrencies = preferredCurrencyCodes.map(
|
|
12139
12177
|
(code) => currencies.find(
|
|
12140
12178
|
(currency) => currency.currency_code.toLowerCase() === code.toLowerCase()
|
|
@@ -12283,21 +12321,21 @@ function BuyWithCard({
|
|
|
12283
12321
|
wallets: externalWallets,
|
|
12284
12322
|
assetCdnUrl
|
|
12285
12323
|
}) {
|
|
12286
|
-
const [amount, setAmount] = (0,
|
|
12287
|
-
const [currency, setCurrency] = (0,
|
|
12288
|
-
const [showCurrencyModal, setShowCurrencyModal] = (0,
|
|
12289
|
-
const [quotes, setQuotes] = (0,
|
|
12290
|
-
const [quotesLoading, setQuotesLoading] = (0,
|
|
12291
|
-
const [quotesError, setQuotesError] = (0,
|
|
12292
|
-
const [internalView, setInternalView] = (0,
|
|
12324
|
+
const [amount, setAmount] = (0, import_react14.useState)("500.00");
|
|
12325
|
+
const [currency, setCurrency] = (0, import_react14.useState)("usd");
|
|
12326
|
+
const [showCurrencyModal, setShowCurrencyModal] = (0, import_react14.useState)(false);
|
|
12327
|
+
const [quotes, setQuotes] = (0, import_react14.useState)([]);
|
|
12328
|
+
const [quotesLoading, setQuotesLoading] = (0, import_react14.useState)(false);
|
|
12329
|
+
const [quotesError, setQuotesError] = (0, import_react14.useState)(null);
|
|
12330
|
+
const [internalView, setInternalView] = (0, import_react14.useState)("amount");
|
|
12293
12331
|
const { userIpInfo, isLoading: isLoadingIp } = useUserIp2();
|
|
12294
|
-
const [onrampSession, setOnrampSession] = (0,
|
|
12332
|
+
const [onrampSession, setOnrampSession] = (0, import_react14.useState)(
|
|
12295
12333
|
null
|
|
12296
12334
|
);
|
|
12297
12335
|
const currentView = externalView ?? internalView;
|
|
12298
12336
|
const showQuotesView = currentView === "quotes";
|
|
12299
12337
|
const showOnrampView = currentView === "onramp";
|
|
12300
|
-
(0,
|
|
12338
|
+
(0, import_react14.useEffect)(() => {
|
|
12301
12339
|
if (externalView) {
|
|
12302
12340
|
setInternalView(externalView);
|
|
12303
12341
|
}
|
|
@@ -12310,20 +12348,20 @@ function BuyWithCard({
|
|
|
12310
12348
|
onViewChange?.(newView);
|
|
12311
12349
|
}
|
|
12312
12350
|
};
|
|
12313
|
-
const [selectedProvider, setSelectedProvider] = (0,
|
|
12351
|
+
const [selectedProvider, setSelectedProvider] = (0, import_react14.useState)(
|
|
12314
12352
|
null
|
|
12315
12353
|
);
|
|
12316
|
-
const [isAutoSelected, setIsAutoSelected] = (0,
|
|
12317
|
-
const [autoSelectedProvider, setAutoSelectedProvider] = (0,
|
|
12318
|
-
const [hasManualSelection, setHasManualSelection] = (0,
|
|
12319
|
-
const [internalWallets, setInternalWallets] = (0,
|
|
12320
|
-
const [walletsLoading, setWalletsLoading] = (0,
|
|
12354
|
+
const [isAutoSelected, setIsAutoSelected] = (0, import_react14.useState)(true);
|
|
12355
|
+
const [autoSelectedProvider, setAutoSelectedProvider] = (0, import_react14.useState)(null);
|
|
12356
|
+
const [hasManualSelection, setHasManualSelection] = (0, import_react14.useState)(false);
|
|
12357
|
+
const [internalWallets, setInternalWallets] = (0, import_react14.useState)([]);
|
|
12358
|
+
const [walletsLoading, setWalletsLoading] = (0, import_react14.useState)(!externalWallets?.length);
|
|
12321
12359
|
const wallets = externalWallets?.length ? externalWallets : internalWallets;
|
|
12322
|
-
const [countdown, setCountdown] = (0,
|
|
12323
|
-
const [fiatCurrencies, setFiatCurrencies] = (0,
|
|
12324
|
-
const [preferredCurrencyCodes, setPreferredCurrencyCodes] = (0,
|
|
12325
|
-
const [currenciesLoading, setCurrenciesLoading] = (0,
|
|
12326
|
-
const [supportedTokens, setSupportedTokens] = (0,
|
|
12360
|
+
const [countdown, setCountdown] = (0, import_react14.useState)(60);
|
|
12361
|
+
const [fiatCurrencies, setFiatCurrencies] = (0, import_react14.useState)([]);
|
|
12362
|
+
const [preferredCurrencyCodes, setPreferredCurrencyCodes] = (0, import_react14.useState)([]);
|
|
12363
|
+
const [currenciesLoading, setCurrenciesLoading] = (0, import_react14.useState)(true);
|
|
12364
|
+
const [supportedTokens, setSupportedTokens] = (0, import_react14.useState)([]);
|
|
12327
12365
|
const destinationWallet = getWalletByChainType(wallets, "ethereum");
|
|
12328
12366
|
const walletDestinationChainId = destinationWallet?.destination_chain_id;
|
|
12329
12367
|
const resolvedDestinationChainId = destinationChainId || walletDestinationChainId;
|
|
@@ -12332,7 +12370,7 @@ function BuyWithCard({
|
|
|
12332
12370
|
const destinationChain = destinationToken?.chains.find(
|
|
12333
12371
|
(c) => c.chain_id === resolvedDestinationChainId
|
|
12334
12372
|
);
|
|
12335
|
-
(0,
|
|
12373
|
+
(0, import_react14.useEffect)(() => {
|
|
12336
12374
|
async function fetchFiatCurrencies() {
|
|
12337
12375
|
try {
|
|
12338
12376
|
const response = await getFiatCurrencies(publishableKey);
|
|
@@ -12346,7 +12384,7 @@ function BuyWithCard({
|
|
|
12346
12384
|
}
|
|
12347
12385
|
fetchFiatCurrencies();
|
|
12348
12386
|
}, [publishableKey]);
|
|
12349
|
-
(0,
|
|
12387
|
+
(0, import_react14.useEffect)(() => {
|
|
12350
12388
|
if (externalWallets?.length) {
|
|
12351
12389
|
setWalletsLoading(false);
|
|
12352
12390
|
return;
|
|
@@ -12391,7 +12429,7 @@ function BuyWithCard({
|
|
|
12391
12429
|
}
|
|
12392
12430
|
};
|
|
12393
12431
|
}, [userId, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, publishableKey, externalWallets]);
|
|
12394
|
-
(0,
|
|
12432
|
+
(0, import_react14.useEffect)(() => {
|
|
12395
12433
|
async function fetchSupportedTokens() {
|
|
12396
12434
|
try {
|
|
12397
12435
|
const response = await getSupportedDepositTokens(publishableKey);
|
|
@@ -12402,7 +12440,7 @@ function BuyWithCard({
|
|
|
12402
12440
|
}
|
|
12403
12441
|
fetchSupportedTokens();
|
|
12404
12442
|
}, [publishableKey]);
|
|
12405
|
-
(0,
|
|
12443
|
+
(0, import_react14.useEffect)(() => {
|
|
12406
12444
|
const amountNum = parseFloat(amount);
|
|
12407
12445
|
if (isNaN(amountNum) || amountNum <= 0) {
|
|
12408
12446
|
setQuotes([]);
|
|
@@ -12482,7 +12520,7 @@ function BuyWithCard({
|
|
|
12482
12520
|
setQuotesLoading(false);
|
|
12483
12521
|
}
|
|
12484
12522
|
};
|
|
12485
|
-
(0,
|
|
12523
|
+
(0, import_react14.useEffect)(() => {
|
|
12486
12524
|
if (quotes.length === 0) return;
|
|
12487
12525
|
const timer = setInterval(() => {
|
|
12488
12526
|
setCountdown((prev) => {
|
|
@@ -13008,24 +13046,24 @@ function DepositModal({
|
|
|
13008
13046
|
onDepositError,
|
|
13009
13047
|
theme = "dark"
|
|
13010
13048
|
}) {
|
|
13011
|
-
const [view, setView] = (0,
|
|
13012
|
-
const [cardView, setCardView] = (0,
|
|
13049
|
+
const [view, setView] = (0, import_react8.useState)("main");
|
|
13050
|
+
const [cardView, setCardView] = (0, import_react8.useState)(
|
|
13013
13051
|
"amount"
|
|
13014
13052
|
);
|
|
13015
|
-
const [quotesCount, setQuotesCount] = (0,
|
|
13016
|
-
const [depositsModalOpen, setDepositsModalOpen] = (0,
|
|
13017
|
-
const [depositExecutions, setDepositExecutions] = (0,
|
|
13018
|
-
const [projectConfig, setProjectConfig] = (0,
|
|
13019
|
-
const [wallets, setWallets] = (0,
|
|
13020
|
-
const [walletsLoading, setWalletsLoading] = (0,
|
|
13021
|
-
(0,
|
|
13053
|
+
const [quotesCount, setQuotesCount] = (0, import_react8.useState)(0);
|
|
13054
|
+
const [depositsModalOpen, setDepositsModalOpen] = (0, import_react8.useState)(false);
|
|
13055
|
+
const [depositExecutions, setDepositExecutions] = (0, import_react8.useState)([]);
|
|
13056
|
+
const [projectConfig, setProjectConfig] = (0, import_react8.useState)(null);
|
|
13057
|
+
const [wallets, setWallets] = (0, import_react8.useState)([]);
|
|
13058
|
+
const [walletsLoading, setWalletsLoading] = (0, import_react8.useState)(false);
|
|
13059
|
+
(0, import_react8.useEffect)(() => {
|
|
13022
13060
|
setProjectConfig(null);
|
|
13023
13061
|
}, [publishableKey]);
|
|
13024
|
-
(0,
|
|
13062
|
+
(0, import_react8.useEffect)(() => {
|
|
13025
13063
|
setWallets([]);
|
|
13026
13064
|
}, [userId, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, publishableKey]);
|
|
13027
|
-
const [resolvedTheme, setResolvedTheme] = (0,
|
|
13028
|
-
(0,
|
|
13065
|
+
const [resolvedTheme, setResolvedTheme] = (0, import_react8.useState)(theme === "auto" ? "dark" : theme);
|
|
13066
|
+
(0, import_react8.useEffect)(() => {
|
|
13029
13067
|
if (theme === "auto") {
|
|
13030
13068
|
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
13031
13069
|
setResolvedTheme(mediaQuery.matches ? "dark" : "light");
|
|
@@ -13038,12 +13076,12 @@ function DepositModal({
|
|
|
13038
13076
|
setResolvedTheme(theme);
|
|
13039
13077
|
}
|
|
13040
13078
|
}, [theme]);
|
|
13041
|
-
(0,
|
|
13079
|
+
(0, import_react8.useEffect)(() => {
|
|
13042
13080
|
if (open && !projectConfig) {
|
|
13043
13081
|
getProjectConfig(publishableKey).then(setProjectConfig).catch(console.error);
|
|
13044
13082
|
}
|
|
13045
13083
|
}, [open, publishableKey, projectConfig]);
|
|
13046
|
-
(0,
|
|
13084
|
+
(0, import_react8.useEffect)(() => {
|
|
13047
13085
|
if (!open || wallets.length > 0) return;
|
|
13048
13086
|
let retryTimeout = null;
|
|
13049
13087
|
let isCancelled = false;
|
|
@@ -13272,12 +13310,12 @@ function UnifoldProvider2({
|
|
|
13272
13310
|
publishableKey,
|
|
13273
13311
|
config
|
|
13274
13312
|
}) {
|
|
13275
|
-
const [isOpen, setIsOpen] = (0,
|
|
13276
|
-
const [depositConfig, setDepositConfig] = (0,
|
|
13313
|
+
const [isOpen, setIsOpen] = (0, import_react16.useState)(false);
|
|
13314
|
+
const [depositConfig, setDepositConfig] = (0, import_react16.useState)(
|
|
13277
13315
|
null
|
|
13278
13316
|
);
|
|
13279
|
-
const [resolvedTheme, setResolvedTheme] =
|
|
13280
|
-
|
|
13317
|
+
const [resolvedTheme, setResolvedTheme] = import_react16.default.useState("dark");
|
|
13318
|
+
import_react16.default.useEffect(() => {
|
|
13281
13319
|
const appearance = config?.appearance || "dark";
|
|
13282
13320
|
if (appearance === "auto") {
|
|
13283
13321
|
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -13292,9 +13330,9 @@ function UnifoldProvider2({
|
|
|
13292
13330
|
setResolvedTheme(appearance);
|
|
13293
13331
|
}
|
|
13294
13332
|
}, [config?.appearance]);
|
|
13295
|
-
const depositPromiseRef =
|
|
13296
|
-
const closeTimeoutRef =
|
|
13297
|
-
const beginDeposit = (0,
|
|
13333
|
+
const depositPromiseRef = import_react16.default.useRef(null);
|
|
13334
|
+
const closeTimeoutRef = import_react16.default.useRef(null);
|
|
13335
|
+
const beginDeposit = (0, import_react16.useCallback)((config2) => {
|
|
13298
13336
|
console.log("[UnifoldProvider] beginDeposit called with:", config2);
|
|
13299
13337
|
if (closeTimeoutRef.current) {
|
|
13300
13338
|
clearTimeout(closeTimeoutRef.current);
|
|
@@ -13315,7 +13353,7 @@ function UnifoldProvider2({
|
|
|
13315
13353
|
setIsOpen(true);
|
|
13316
13354
|
return promise;
|
|
13317
13355
|
}, []);
|
|
13318
|
-
const closeDeposit = (0,
|
|
13356
|
+
const closeDeposit = (0, import_react16.useCallback)(() => {
|
|
13319
13357
|
if (depositPromiseRef.current) {
|
|
13320
13358
|
depositPromiseRef.current.reject({
|
|
13321
13359
|
message: "Deposit cancelled by user",
|
|
@@ -13329,7 +13367,7 @@ function UnifoldProvider2({
|
|
|
13329
13367
|
closeTimeoutRef.current = null;
|
|
13330
13368
|
}, 200);
|
|
13331
13369
|
}, []);
|
|
13332
|
-
const handleDepositSuccess = (0,
|
|
13370
|
+
const handleDepositSuccess = (0, import_react16.useCallback)((data) => {
|
|
13333
13371
|
console.log("[UnifoldProvider] Deposit success:", data);
|
|
13334
13372
|
if (depositConfig?.onSuccess) {
|
|
13335
13373
|
depositConfig.onSuccess(data);
|
|
@@ -13339,7 +13377,7 @@ function UnifoldProvider2({
|
|
|
13339
13377
|
depositPromiseRef.current = null;
|
|
13340
13378
|
}
|
|
13341
13379
|
}, [depositConfig]);
|
|
13342
|
-
const handleDepositError = (0,
|
|
13380
|
+
const handleDepositError = (0, import_react16.useCallback)((error) => {
|
|
13343
13381
|
console.error("[UnifoldProvider] Deposit error:", error);
|
|
13344
13382
|
if (depositConfig?.onError) {
|
|
13345
13383
|
depositConfig.onError(error);
|
|
@@ -13349,7 +13387,7 @@ function UnifoldProvider2({
|
|
|
13349
13387
|
depositPromiseRef.current = null;
|
|
13350
13388
|
}
|
|
13351
13389
|
}, [depositConfig]);
|
|
13352
|
-
const contextValue = (0,
|
|
13390
|
+
const contextValue = (0, import_react16.useMemo)(
|
|
13353
13391
|
() => ({
|
|
13354
13392
|
beginDeposit,
|
|
13355
13393
|
closeDeposit,
|
|
@@ -13381,10 +13419,10 @@ function UnifoldProvider2({
|
|
|
13381
13419
|
)
|
|
13382
13420
|
] }) });
|
|
13383
13421
|
}
|
|
13384
|
-
var ConnectContext =
|
|
13422
|
+
var ConnectContext = import_react16.default.createContext(null);
|
|
13385
13423
|
function useUnifold2() {
|
|
13386
13424
|
const baseContext = useUnifold();
|
|
13387
|
-
const connectContext =
|
|
13425
|
+
const connectContext = import_react16.default.useContext(ConnectContext);
|
|
13388
13426
|
if (typeof window === "undefined") {
|
|
13389
13427
|
return {
|
|
13390
13428
|
publishableKey: "",
|
|
@@ -13429,7 +13467,9 @@ function useUnifold2() {
|
|
|
13429
13467
|
});
|
|
13430
13468
|
/*! Bundled license information:
|
|
13431
13469
|
|
|
13470
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
13432
13471
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
13472
|
+
lucide-react/dist/esm/Icon.js:
|
|
13433
13473
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
13434
13474
|
lucide-react/dist/esm/icons/arrow-left.js:
|
|
13435
13475
|
lucide-react/dist/esm/icons/check.js:
|
|
@@ -13448,7 +13488,7 @@ lucide-react/dist/esm/icons/x.js:
|
|
|
13448
13488
|
lucide-react/dist/esm/icons/zap.js:
|
|
13449
13489
|
lucide-react/dist/esm/lucide-react.js:
|
|
13450
13490
|
(**
|
|
13451
|
-
* @license lucide-react v0.
|
|
13491
|
+
* @license lucide-react v0.454.0 - ISC
|
|
13452
13492
|
*
|
|
13453
13493
|
* This source code is licensed under the ISC license.
|
|
13454
13494
|
* See the LICENSE file in the root directory of this source tree.
|